forms/js/survey.jquery.min.js
2019-05-13 19:15:45 -04:00

6 lines
399 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*!
* surveyjs - Survey JavaScript library v1.0.1
* Copyright (c) 2015-2017 Devsoft Baltic OÜ - http://surveyjs.io/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("Survey",["jquery"],t):"object"==typeof exports?exports.Survey=t(require("jquery")):e.Survey=t(e.jQuery)}(this,function(e){return function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=109)}([function(e,t,r){"use strict";function n(e,t){function r(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}r.d(t,"a",function(){return i}),t.b=n,r.d(t,"c",function(){return o});var i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},o=function(e,t,r,n){var i,o=arguments.length,a=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,r,a):i(t,r))||a);return o>3&&a&&Object.defineProperty(t,r,a),a}},function(e,t,r){"use strict";r.d(t,"a",function(){return n}),r.d(t,"b",function(){return i});var n={currentLocale:"",defaultLocale:"en",locales:{},supportedLocales:[],getString:function(e){var t=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale];return t&&t[e]||(t=this.locales[this.defaultLocale]),t[e]},getLocales:function(){var e=[];if(e.push(""),this.supportedLocales&&this.supportedLocales.length>0)for(var t=0;t<this.supportedLocales.length;t++)e.push(this.supportedLocales[t]);else for(var r in this.locales)e.push(r);return e.sort(),e}},i={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",startSurveyText:"Start",otherItemText:"Other (describe)",progressText:"Page {0} of {1}",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Thank you for completing the survey!",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Survey is loading...",optionsCaption:"Choose...",value:"value",requiredError:"Please answer the question.",requiredErrorInPanel:"Please answer at least one question.",requiredInAllRowsError:"Please answer questions in all rows.",numericError:"The value should be numeric.",textMinLength:"Please enter at least {0} characters.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Please enter more than {0} and less than {1} characters.",minRowCountError:"Please fill in at least {0} rows.",minSelectError:"Please select at least {0} variants.",maxSelectError:"Please select no more than {0} variants.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"The '{0}' should be equal or more than {1}",numericMax:"The '{0}' should be equal or less than {1}",invalidEmail:"Please enter a valid e-mail address.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",otherRequiredError:"Please enter the other value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addRow:"Add row",removeRow:"Remove",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",savingData:"The results are saving on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total."};n.locales.en=i},function(e,t,r){"use strict";(function(e){function n(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(){return null}function a(e){var t=e.nodeName,r=e.attributes;e.attributes={},t.defaultProps&&w(e.attributes,t.defaultProps),r&&w(e.attributes,r)}function s(e,t){var r=void 0,n=void 0,i=void 0;if(t){for(i in t)if(r=G.test(i))break;if(r){n=e.attributes={};for(i in t)t.hasOwnProperty(i)&&(n[G.test(i)?i.replace(/([A-Z0-9])/,"-$1").toLowerCase():i]=t[i])}}}function u(e,t,r){var n=t&&t._preactCompatRendered;n&&n.parentNode!==t&&(n=null),n||(n=t.children[0]);for(var i=t.childNodes.length;i--;)t.childNodes[i]!==n&&t.removeChild(t.childNodes[i]);var o=(0,H.render)(e,t,n);return t&&(t._preactCompatRendered=o),"function"==typeof r&&r(),o&&o._component||o.base}function l(e,t,r,n){var i=(0,H.h)(te,{context:e.context},t),o=u(i,r);return n&&n(o),o}function c(e){var t=e._preactCompatRendered;return!(!t||t.parentNode!==e)&&((0,H.render)((0,H.h)(o),e,t),!0)}function p(e){return m.bind(null,e)}function h(e,t){for(var r=t||0;r<e.length;r++){var n=e[r];Array.isArray(n)?h(n):n&&"object"===(void 0===n?"undefined":A(n))&&!b(n)&&(n.props&&n.type||n.attributes&&n.nodeName||n.children)&&(e[r]=m(n.type||n.nodeName,n.props||n.attributes,n.children))}}function d(e){return"function"==typeof e&&!(e.prototype&&e.prototype.render)}function f(e){return O({displayName:e.displayName||e.name,render:function(){return e(this.props,this.context)}})}function g(e){var t=e[J];return t?!0===t?e:t:(t=f(e),Object.defineProperty(t,J,{configurable:!0,value:!0}),t.displayName=e.displayName,t.propTypes=e.propTypes,t.defaultProps=e.defaultProps,Object.defineProperty(e,J,{configurable:!0,value:t}),t)}function m(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return h(t,2),y(H.h.apply(void 0,t))}function y(e){e.preactCompatNormalized=!0,x(e),d(e.nodeName)&&(e.nodeName=g(e.nodeName));var t=e.attributes.ref,r=t&&(void 0===t?"undefined":A(t));return!ie||"string"!==r&&"number"!==r||(e.attributes.ref=P(t,ie)),C(e),e}function v(e,t){if(!b(e))return e;for(var r=e.attributes||e.props,n=(0,H.h)(e.nodeName||e.type,r,e.children||r&&r.children),i=arguments.length,o=Array(i>2?i-2:0),a=2;a<i;a++)o[a-2]=arguments[a];return y(H.cloneElement.apply(void 0,[n,t].concat(o)))}function b(e){return e&&(e instanceof K||e.$$typeof===U)}function P(e,t){return t._refProxies[e]||(t._refProxies[e]=function(r){t&&t.refs&&(t.refs[e]=r,null===r&&(delete t._refProxies[e],t=null))})}function C(e){var t=e.nodeName,r=e.attributes;if(r&&"string"==typeof t){var n={};for(var i in r)n[i.toLowerCase()]=i;if(n.ondoubleclick&&(r.ondblclick=r[n.ondoubleclick],delete r[n.ondoubleclick]),n.onchange&&("textarea"===t||"input"===t.toLowerCase()&&!/^fil|che|rad/i.test(r.type))){var o=n.oninput||"oninput";r[o]||(r[o]=k([r[o],r[n.onchange]]),delete r[n.onchange])}}}function x(e){var t=e.attributes;if(t){var r=t.className||t.class;r&&(t.className=r)}}function w(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function V(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}function S(e){return e&&e.base||e}function T(){}function O(e){function t(e,t){R(this),D.call(this,e,t,Z),L.call(this,e,t)}return e=w({constructor:t},e),e.mixins&&q(e,E(e.mixins)),e.statics&&w(t,e.statics),e.propTypes&&(t.propTypes=e.propTypes),e.defaultProps&&(t.defaultProps=e.defaultProps),e.getDefaultProps&&(t.defaultProps=e.getDefaultProps()),T.prototype=D.prototype,t.prototype=w(new T,e),t.displayName=e.displayName||"Component",t}function E(e){for(var t={},r=0;r<e.length;r++){var n=e[r];for(var i in n)n.hasOwnProperty(i)&&"function"==typeof n[i]&&(t[i]||(t[i]=[])).push(n[i])}return t}function q(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=k(t[r].concat(e[r]||re),"getDefaultProps"===r||"getInitialState"===r||"getChildContext"===r))}function R(e){for(var t in e){var r=e[t];"function"!=typeof r||r.__bound||$.hasOwnProperty(t)||((e[t]=r.bind(e)).__bound=!0)}}function _(e,t,r){if("string"==typeof t&&(t=e.constructor.prototype[t]),"function"==typeof t)return t.apply(e,r)}function k(e,t){return function(){for(var r=void 0,n=0;n<e.length;n++){var i=_(this,e[n],arguments);if(t&&null!=i){r||(r={});for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])}else void 0!==i&&(r=i)}return r}}function L(e,t){N.call(this,e,t),this.componentWillReceiveProps=k([N,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=k([N,I,this.render||"render",j])}function N(e,t){if(e){var r=e.children;if(r&&Array.isArray(r)&&1===r.length&&(e.children=r[0],e.children&&"object"===A(e.children)&&(e.children.length=1,e.children[0]=e.children)),X){var n="function"==typeof this?this:this.constructor,i=this.propTypes||n.propTypes;if(i)for(var o in i)if(i.hasOwnProperty(o)&&"function"==typeof i[o]){var a=this.displayName||n.name,s=i[o](e,o,a,"prop");s&&console.error(new Error(s.message||s))}}}}function I(e){ie=this}function j(){ie===this&&(ie=null)}function D(e,t,r){H.Component.call(this,e,t),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},r!==Z&&L.call(this,e,t)}function M(e,t){D.call(this,e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.unstable_renderSubtreeIntoContainer=t.PureComponent=t.Component=t.unmountComponentAtNode=t.findDOMNode=t.isValidElement=t.cloneElement=t.createElement=t.createFactory=t.createClass=t.render=t.Children=t.PropTypes=t.DOM=t.version=void 0;var A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),B=r(50),F=n(B),H=r(48),Q="15.1.0",W="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),U="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,J="undefined"!=typeof Symbol?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",$={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},G=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vert|word|writing|x)[A-Z]/,Z={},X=void 0===e||!e.env||"production"!==e.env.NODE_ENV,K=(0,H.h)("a",null).constructor;K.prototype.$$typeof=U,K.prototype.preactCompatUpgraded=!1,K.prototype.preactCompatNormalized=!1,Object.defineProperty(K.prototype,"type",{get:function(){return this.nodeName},set:function(e){this.nodeName=e},configurable:!0}),Object.defineProperty(K.prototype,"props",{get:function(){return this.attributes},set:function(e){this.attributes=e},configurable:!0});var Y=H.options.event;H.options.event=function(e){return Y&&(e=Y(e)),e.persist=Object,e.nativeEvent=e,e};var ee=H.options.vnode;H.options.vnode=function(e){if(!e.preactCompatUpgraded){e.preactCompatUpgraded=!0;var t=e.nodeName,r=e.attributes;r||(r=e.attributes={}),"function"==typeof t?(!0===t[J]||t.prototype&&"isReactComponent"in t.prototype)&&(e.children&&!e.children.length&&(e.children=void 0),e.children&&(r.children=e.children),e.preactCompatNormalized||y(e),a(e)):(e.children&&!e.children.length&&(e.children=void 0),e.children&&(r.children=e.children),r.defaultValue&&(r.value||0===r.value||(r.value=r.defaultValue),delete r.defaultValue),s(e,r))}ee&&ee(e)};for(var te=function(){function e(){i(this,e)}return z(e,[{key:"getChildContext",value:function(){return this.props.context}},{key:"render",value:function(e){return e.children[0]}}]),e}(),re=[],ne={map:function(e,t,r){return null==e?null:(e=ne.toArray(e),r&&r!==e&&(t=t.bind(r)),e.map(t))},forEach:function(e,t,r){if(null==e)return null;e=ne.toArray(e),r&&r!==e&&(t=t.bind(r)),e.forEach(t)},count:function(e){return e&&e.length||0},only:function(e){if(e=ne.toArray(e),1!==e.length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:function(e){return Array.isArray&&Array.isArray(e)?e:re.concat(e)}},ie=void 0,oe={},ae=W.length;ae--;)oe[W[ae]]=p(W[ae]);w(D.prototype=new H.Component,{constructor:D,isReactComponent:{},replaceState:function(e,t){this.setState(e,t);for(var r in this.state)r in e||delete this.state[r]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),T.prototype=D.prototype,M.prototype=new T,M.prototype.shouldComponentUpdate=function(e,t){return V(this.props,e)||V(this.state,t)},t.version=Q,t.DOM=oe,t.PropTypes=F.default,t.Children=ne,t.render=u,t.createClass=O,t.createFactory=p,t.createElement=m,t.cloneElement=v,t.isValidElement=b,t.findDOMNode=S,t.unmountComponentAtNode=c,t.Component=D,t.PureComponent=M,t.unstable_renderSubtreeIntoContainer=l,t.default={version:Q,DOM:oe,PropTypes:F.default,Children:ne,render:u,createClass:O,createFactory:p,createElement:m,cloneElement:v,isValidElement:b,findDOMNode:S,unmountComponentAtNode:c,Component:D,PureComponent:M,unstable_renderSubtreeIntoContainer:l}}).call(t,r(49))},function(e,t,r){"use strict";var n=r(0),i=r(10);r.d(t,"i",function(){return o}),r.d(t,"a",function(){return a}),r.d(t,"f",function(){return s}),r.d(t,"e",function(){return u}),r.d(t,"c",function(){return l}),r.d(t,"k",function(){return c}),r.d(t,"h",function(){return p}),r.d(t,"g",function(){return h}),r.d(t,"d",function(){return d}),r.d(t,"j",function(){return f}),r.d(t,"b",function(){return g});var o=function(){function e(e,t){void 0===t&&(t=!1),this.name=e,this.typeValue=null,this.choicesValue=null,this.isRequiredValue=!1,this.readOnlyValue=null,this.visibleValue=null,this.isLocalizableValue=null,this.choicesfunc=null,this.isSerializable=!0,this.className=null,this.alternativeName=null,this.classNamePart=null,this.baseClassName=null,this.defaultValue=null,this.serializationProperty=null,this.onGetValue=null,this.onSetValue=null,this.isRequiredValue=t}return Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){this.typeValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!0,configurable:!0}),e.prototype.isDefaultValue=function(e){return i.a.isValueEmpty(this.defaultValue)?!1===e||""===e||i.a.isValueEmpty(e):this.defaultValue==e},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty].text:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!0,configurable:!0}),e.prototype.setValue=function(e,t,r){this.onSetValue?this.onSetValue(e,t,r):this.serializationProperty?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),"boolean"==this.type&&(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},e.prototype.getClassName=function(e){return this.classNamePart&&e.indexOf(this.classNamePart)<0?e+this.classNamePart:e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!0,configurable:!0}),e.prototype.getChoices=function(e){return null!=this.choicesValue?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e):null},e.prototype.setChoices=function(e,t){this.choicesValue=e,this.choicesfunc=t},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!0,configurable:!0}),e.prototype.mergeWith=function(t){for(var r=e.mergableValues,n=0;n<r.length;n++)this.mergeValue(t,r[n])},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.mergableValues=["typeValue","choicesValue","readOnlyValue","visibleValue","isSerializable","isLocalizableValue","className","alternativeName","classNamePart","baseClassName","defaultValue","serializationProperty","onGetValue","onSetValue"],e}(),a=function(){function e(){}return e.addProperty=function(t,r){var n=e.properties;n[t]||(n[t]=[]),n[t].push(r)},e.removeProperty=function(t,r){var n=e.properties;if(n[t])for(var i=n[t],o=0;o<i.length;o++)if(i[o].name==r){n[t].splice(o,1);break}},e.addClass=function(t,r){e.parentClasses[t]=r},e.getProperties=function(t){for(var r=[],n=e.properties;t;){var i=n[t];if(i)for(var o=0;o<i.length;o++)r.push(i[o]);t=e.parentClasses[t]}return r},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,r){var n=e.properties;n[r]&&e.createPropertiesInObj(t,n[r]);var i=e.parentClasses[r];i&&e.createPropertiesCore(t,i)},e.createPropertiesInObj=function(t,r){for(var n=0;n<r.length;n++)e.createPropertyInObj(t,r[n])},e.createPropertyInObj=function(e,t){if(!e[t.name]&&!e.hasOwnProperty(t.name)){var r={get:function(){return e.getPropertyValue(t.name,t.defaultValue)},set:function(r){e.setPropertyValue(t.name,r)}};Object.defineProperty(e,t.name,r)}},e.properties={},e.parentClasses={},e}(),s=function(){function e(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),this.name=e,this.creator=r,this.parentName=n,this.properties=null,this.requiredProperties=null,n&&a.addClass(e,n),this.properties=new Array;for(var i=0;i<t.length;i++){var o=this.createProperty(t[i]);o&&this.properties.push(o)}}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.createProperty=function(t){var r="string"==typeof t?t:t.name;if(r){var n=null,a=r.indexOf(e.typeSymbol);a>-1&&(n=r.substring(a+1),r=r.substring(0,a));var s=this.getIsPropertyNameRequired(r);r=this.getPropertyName(r);var u=new o(r,s);if(n&&(u.type=n),"object"==typeof t){if(t.type&&(u.type=t.type),i.a.isValueEmpty(t.default)||(u.defaultValue=t.default),i.a.isValueEmpty(t.isSerializable)||(u.isSerializable=t.isSerializable),!1===t.visible&&(u.visible=!1),t.isRequired&&this.makePropertyRequired(u.name),t.choices){var l="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;u.setChoices(c,l)}if(t.onGetValue&&(u.onGetValue=t.onGetValue),t.onSetValue&&(u.onSetValue=t.onSetValue),t.serializationProperty){u.serializationProperty=t.serializationProperty;u.serializationProperty&&0==u.serializationProperty.indexOf("loc")&&(u.isLocalizable=!0)}t.isLocalizable&&(u.isLocalizable=t.isLocalizable),t.className&&(u.className=t.className),t.baseClassName&&(u.baseClassName=t.baseClassName),t.classNamePart&&(u.classNamePart=t.classNamePart),t.alternativeName&&(u.alternativeName=t.alternativeName)}return u}},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?(e=e.slice(1),this.makePropertyRequired(e),e):e},e.prototype.makePropertyRequired=function(e){this.requiredProperties||(this.requiredProperties=new Array),this.requiredProperties.push(e)},e.requiredSymbol="!",e.typeSymbol=":",e}(),u=function(){function e(){this.classes={},this.childrenClasses={},this.classProperties={},this.classRequiredProperties={}}return e.prototype.addClass=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null);var i=new s(e,t,r,n);if(this.classes[e]=i,n){this.childrenClasses[n]||(this.childrenClasses[n]=[]),this.childrenClasses[n].push(i)}return i},e.prototype.overrideClassCreatore=function(e,t){var r=this.findClass(e);r&&(r.creator=t)},e.prototype.getProperties=function(e){var t=this.classProperties[e];return t||(t=new Array,this.fillProperties(e,t),this.classProperties[e]=t),t},e.prototype.findProperty=function(e,t){for(var r=this.getProperties(e),n=0;n<r.length;n++)if(r[n].name==t)return r[n];return null},e.prototype.createClass=function(e){var t=this.findClass(e);if(!t)return null;if(t.creator)return t.creator();for(var r=t.parentName;r;){if(!(t=this.findClass(r)))return null;if(r=t.parentName,t.creator)return this.createCustomType(e,t.creator)}return null},e.prototype.createCustomType=function(e,t){var r=t();return r.customTypeName=e,r.customTemplateName=r.getTemplate?r.getTemplate():r.getType(),r.getType=function(){return r.customTypeName},r.getTemplate=function(){return r.customTemplateName},a.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1);var r=[];return this.fillChildrenClasses(e,t,r),r},e.prototype.getRequiredProperties=function(e){var t=this.classRequiredProperties[e];return t||(t=new Array,this.fillRequiredProperties(e,t),this.classRequiredProperties[e]=t),t},e.prototype.addProperties=function(e,t){for(var r=this.findClass(e),n=0;n<t.length;n++)this.addCustomPropertyCore(r,t[n])},e.prototype.addProperty=function(e,t){this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(e){var r=e.createProperty(t);r&&(this.addPropertyToClass(e,r),this.emptyClassPropertiesHash(e),a.addProperty(e.name,r))}},e.prototype.removeProperty=function(e,t){var r=this.findClass(e);if(!r)return!1;var n=r.find(t);n&&(this.removePropertyFromClass(r,n),this.emptyClassPropertiesHash(r),a.removeProperty(e,t))},e.prototype.addPropertyToClass=function(e,t){null==e.find(t.name)&&e.properties.push(t)},e.prototype.removePropertyFromClass=function(e,t){var r=e.properties.indexOf(t);r<0||(e.properties.splice(r,1),e.requiredProperties&&(r=e.requiredProperties.indexOf(t.name))>=0&&e.requiredProperties.splice(r,1))},e.prototype.emptyClassPropertiesHash=function(e){this.classProperties[e.name]=null;for(var t=this.getChildrenClasses(e.name),r=0;r<t.length;r++)this.classProperties[t[r].name]=null},e.prototype.fillChildrenClasses=function(e,t,r){var n=this.childrenClasses[e];if(n)for(var i=0;i<n.length;i++)t&&!n[i].creator||r.push(n[i]),this.fillChildrenClasses(n[i].name,t,r)},e.prototype.findClass=function(e){return this.classes[e]},e.prototype.fillProperties=function(e,t){var r=this.findClass(e);if(r){r.parentName&&this.fillProperties(r.parentName,t);for(var n=0;n<r.properties.length;n++)this.addPropertyCore(r.properties[n],t,t.length)}},e.prototype.addPropertyCore=function(e,t,r){for(var n=-1,i=0;i<r;i++)if(t[i].name==e.name){n=i;break}n<0?t.push(e):(e.mergeWith(t[n]),t[n]=e)},e.prototype.fillRequiredProperties=function(e,t){var r=this.findClass(e);r&&(r.requiredProperties&&Array.prototype.push.apply(t,r.requiredProperties),r.parentName&&this.fillRequiredProperties(r.parentName,t))},e}(),l=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),c=function(e){function t(t,r){var n=e.call(this,"unknownproperty","The property '"+t+"' in class '"+r+"' is unknown.")||this;n.propertyName=t,n.className=r;var i=g.metaData.getProperties(r);if(i){n.description="The list of available properties are: ";for(var o=0;o<i.length;o++)o>0&&(n.description+=", "),n.description+=i[o].name;n.description+="."}return n}return n.b(t,e),t}(l),p=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;i.baseClassName=t,i.type=r,i.message=n,i.description="The following types are available: ";for(var o=g.metaData.getChildrenClasses(t,!0),a=0;a<o.length;a++)a>0&&(i.description+=", "),i.description+="'"+o[a].name+"'";return i.description+=".",i}return n.b(t,e),t}(l),h=function(e){function t(t,r){var n=e.call(this,r,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return n.b(t,e),t}(p),d=function(e){function t(t,r){var n=e.call(this,r,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return n.b(t,e),t}(p),f=function(e){function t(t,r){var n=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+r+"'.")||this;return n.propertyName=t,n.className=r,n}return n.b(t,e),t}(l),g=function(){function e(){this.errors=new Array}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!0,configurable:!0}),e.prototype.toJsonObject=function(e){return this.toJsonObjectCore(e,null)},e.prototype.toObject=function(t,r){if(t){var n=null;if(r.getType&&(n=e.metaData.getProperties(r.getType())),n){r.startLoadingFromJson&&r.startLoadingFromJson();for(var i in t)if(i!=e.typePropertyName)if(i!=e.positionPropertyName){var o=this.findProperty(n,i);o?this.valueToObj(t[i],r,i,o):this.addNewError(new c(i.toString(),r.getType()),t)}else r[i]=t[i];r.endLoadingFromJson&&r.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,r){if(!t.getType)return t;var n={};null==r||r.className||(n[e.typePropertyName]=r.getObjType(t.getType()));for(var i=e.metaData.getProperties(t.getType()),o=0;o<i.length;o++)this.valueToJson(t,n,i[o]);return n},e.prototype.valueToJson=function(e,t,r){if(!1!==r.isSerializable){var n=r.getValue(e);if(!r.isDefaultValue(n)){if(this.isValueArray(n)){for(var i=[],o=0;o<n.length;o++)i.push(this.toJsonObjectCore(n[o],r));n=i.length>0?i:null}else n=this.toJsonObjectCore(n,r);r.isDefaultValue(n)||(t[r.name]=n)}}},e.prototype.valueToObj=function(e,t,r,n){if(null!=e){if(null!=n&&n.hasToUseSetValue)return void n.setValue(t,e,this);if(this.isValueArray(e))return void this.valueToArray(e,t,n.name,n);var i=this.createNewObj(e,n);i.newObj&&(this.toObject(e,i.newObj),e=i.newObj),i.error||(null!=n?n.setValue(t,e,this):t[n.name]=e)}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)},e.prototype.createNewObj=function(t,r){var n={newObj:null,error:null},i=t[e.typePropertyName];return!i&&null!=r&&r.className&&(i=r.className),i=r.getClassName(i),n.newObj=i?e.metaData.createClass(i):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,r,i),n},e.prototype.checkNewObjectOnErrors=function(t,r,n,i){var o=null;if(t){var a=e.metaData.getRequiredProperties(i);if(a)for(var s=0;s<a.length;s++)if(!r[a[s]]){o=new f(a[s],i);break}}else n.baseClassName&&(o=i?new d(n.name,n.baseClassName):new h(n.name,n.baseClassName));return o&&this.addNewError(o,r),o},e.prototype.addNewError=function(t,r){r&&r[e.positionPropertyName]&&(t.at=r[e.positionPropertyName].start),this.errors.push(t)},e.prototype.valueToArray=function(e,t,r,n){t[r]&&e.length>0&&t[r].splice(0,t[r].length),t[r]||(t[r]=[]);for(var i=0;i<e.length;i++){var o=this.createNewObj(e[i],n);o.newObj?(t[r].push(o.newObj),this.toObject(e[i],o.newObj)):o.error||t[r].push(e[i])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var r=0;r<e.length;r++){var n=e[r];if(n.name==t||n.alternativeName==t)return n}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new u,e}()},function(e,t,r){"use strict";var n=r(0),i=r(2);r.n(i);r.d(t,"a",function(){return o}),r.d(t,"c",function(){return a}),r.d(t,"b",function(){return s});var o=function(e){function t(t){var r=e.call(this,t)||this;return r.isDisplayMode=t.isDisplayMode||!1,r}return n.b(t,e),t.renderLocString=function(e,t){if(void 0===t&&(t=null),e.hasHtml){var r={__html:e.renderedHtml};return i.createElement("span",{style:t,dangerouslySetInnerHTML:r})}return i.createElement("span",{style:t},e.renderedHtml)},t.prototype.componentWillReceiveProps=function(e){this.isDisplayMode=e.isDisplayMode||!1},t.prototype.renderLocString=function(e,r){return void 0===r&&(r=null),t.renderLocString(e,r)},t}(i.Component),a=function(e){function t(t){var r=e.call(this,t)||this;return r.cssClasses=t.cssClasses,r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.cssClasses=t.cssClasses},t}(o),s=function(e){function t(t){var r=e.call(this,t)||this;return r.questionBase=t.question,r.creator=t.creator,r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.questionBase=t.question,this.creator=t.creator},t.prototype.shouldComponentUpdate=function(){return!this.questionBase.customWidget||!!this.questionBase.customWidgetData.isNeedRender||!!this.questionBase.customWidget.widgetJson.render},t}(o)},function(e,t,r){"use strict";var n=r(1);r.d(t,"a",function(){return i}),r.d(t,"b",function(){return o});var i=function(){function e(){this.creatorHash={}}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[n.a.getString("choices_Item")+"1",n.a.getString("choices_Item")+"2",n.a.getString("choices_Item")+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=n.a.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!0,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=n.a.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!0,configurable:!0}),e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var r=this.creatorHash[e];return null==r?null:r(t)},e.Instance=new e,e}(),o=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.getAllTypes=function(){var e=i.Instance.getAllTypes();for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createElement=function(e,t){var r=this.creatorHash[e];return null==r?i.Instance.createQuestion(e,t):r(t)},e.Instance=new e,e}()},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(){function e(){this.creatorHash={}}return e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var r=this.creatorHash[e];return null==r?null:r(t)},e.Instance=new e,e}()},function(e,t,r){"use strict";var n=r(0),i=r(22),o=r(10),a=r(11),s=r(3);r.d(t,"c",function(){return u}),r.d(t,"d",function(){return l}),r.d(t,"a",function(){return c}),r.d(t,"b",function(){return p});var u=function(){function e(){this.propertyHash={},this.localizableStrings={},this.arraysInfo={},this.onPropChangeFunctions=[],this.isLoadingFromJsonValue=!1,this.onPropertyChanged=new p,s.a.createProperties(this)}return e.prototype.isValueEmpty=function(e){return o.a.isValueEmpty(e)},e.prototype.IsPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.prototype.getType=function(){return"base"},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue},enumerable:!0,configurable:!0}),e.prototype.startLoadingFromJson=function(){this.isLoadingFromJsonValue=!0},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.onLocaleChanged=function(){for(var e in this.arraysInfo){var t=this.arraysInfo[e];if(t&&t.isItemValues){var r=this.getPropertyValue(e);r&&a.a.NotifyArrayOnLocaleChanged(r)}}for(var e in this.localizableStrings){var t=this.getLocalizableString(e);t&&t.onChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var r=this.propertyHash[e];return this.IsPropertyEmpty(r)&&null!=t?t:r},e.prototype.setPropertyValueCore=function(e,t,r){this.setPropertyValueCoreHandler?this.setPropertyValueCoreHandler(e,t,r):e[t]=r},e.prototype.setPropertyValue=function(e,t){var r=this.propertyHash[e];if(r&&Array.isArray(r)){if(this.isTwoValueEquals(r,t))return;var n=this.arraysInfo[e];this.setArray(r,t,!!n&&n.isItemValues,n?n.onPush:null),this.propertyValueChanged(e,r,r)}else this.setPropertyValueCore(this.propertyHash,e,t),this.isTwoValueEquals(r,t)||this.propertyValueChanged(e,r,t)},e.prototype.propertyValueChanged=function(e,t,r){if(!this.isLoadingFromJson){this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:r});for(var n=0;n<this.onPropChangeFunctions.length;n++)this.onPropChangeFunctions[n].name==e&&this.onPropChangeFunctions[n].func()}},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,r){if(void 0===r&&(r=null),r)for(var n=0;n<this.onPropChangeFunctions.length;n++){var i=this.onPropChangeFunctions[n];if(i.name==e&&i.key==r)return void(i.func=t)}this.onPropChangeFunctions.push({name:e,func:t,key:r})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,r){void 0===r&&(r=null);for(var n=0;n<e.length;n++)this.registerFunctionOnPropertyValueChanged(e[n],t,r)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){void 0===t&&(t=null);for(var r=0;r<this.onPropChangeFunctions.length;r++){var n=this.onPropChangeFunctions[r];if(n.name==e&&n.key==t)return void this.onPropChangeFunctions.splice(r,1)}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null);for(var r=0;r<e.length;r++)this.unRegisterFunctionOnPropertyValueChanged(e[r],t)},e.prototype.createLocalizableString=function(e,t,r){void 0===r&&(r=!1);var n=new i.a(t,r);return this.localizableStrings[e]=n,n},e.prototype.getLocalizableString=function(e){return this.localizableStrings[e]},e.prototype.getLocalizableStringText=function(e,t){void 0===t&&(t="");var r=this.getLocalizableString(e);if(!r)return"";var n=r.text;return n||t},e.prototype.setLocalizableStringText=function(e,t){var r=this.getLocalizableString(e);if(r){var n=r.text;n!==t&&(r.text=t,this.propertyValueChanged(e,n,t))}},e.prototype.createItemValues=function(e){var t=this,r=this.createNewArray(e,function(e){e.locOwner=t});return this.arraysInfo[e].isItemValues=!0,r},e.prototype.createNewArray=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=new Array;this.setPropertyValueCore(this.propertyHash,e,n),this.arraysInfo[e]={onPush:t,isItemValues:!1};var i=this;return n.push=function(r){var o=Array.prototype.push.call(n,r);return t&&t(r),i.propertyValueChanged(e,n,n),o},n.pop=function(){var t=Array.prototype.pop.call(n);return r&&r(t),i.propertyValueChanged(e,n,n),t},n.splice=function(o,a){for(var s=[],u=2;u<arguments.length;u++)s[u-2]=arguments[u];o||(o=0),a||(a=0);var l=(p=Array.prototype.splice).call.apply(p,[n,o,a].concat(s));if(s||(s=[]),r&&l)for(var c=0;c<l.length;c++)r(l[c]);if(t)for(var c=0;c<s.length;c++)t(s[c],o+c);return i.propertyValueChanged(e,n,n),l;var p},n},e.prototype.setArray=function(e,t,r,n){if(e.length=0,t)for(var i=0;i<t.length;i++){if(r){var o=t[i];o=new a.a(null),o.setData(t[i]),Array.prototype.push.call(e,o)}else Array.prototype.push.call(e,t[i]);n&&n(e[i])}},e.prototype.isTwoValueEquals=function(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;for(var r in e)if(e.hasOwnProperty(r)){if(!t.hasOwnProperty(r))return!1;if(e[r]!==t[r]){if("object"!=typeof e[r])return!1;if(!this.isTwoValueEquals(e[r],t[r]))return!1}}for(r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0},e.commentPrefix="-Comment",e}(),l=function(){function e(){}return e.prototype.getText=function(){throw new Error("This method is abstract")},e}(),c=function(e){function t(t){var r=e.call(this)||this;return r.name=t,r.selectedElementInDesignValue=r,r.errorsValue=[],r}return n.b(t,e),t.ScrollElementToTop=function(e){if(!e)return!1;var t=document.getElementById(e);if(!t||!t.scrollIntoView)return!1;var r=t.getBoundingClientRect().top;return r<0&&t.scrollIntoView(),r<0},t.GetFirstNonTextElement=function(e){if(e&&e.length){for(var t=0;t<e.length;t++)if("#text"!=e[t].nodeName&&"#comment"!=e[t].nodeName)return e[t];return null}},t.FocusElement=function(e){if(!e)return!1;var t=document.getElementById(e);return!!t&&(t.focus(),!0)},t.setVisibleIndex=function(e,t,r){for(var n=t,i=0;i<e.length;i++){var o=e[i];r&&o.visible&&o.hasTitle?t+=o.setVisibleIndex(t):o.setVisibleIndex(-1)}return t-n},t.prototype.setSurveyImpl=function(e){this.surveyImplValue=e,this.surveyImplValue&&(this.surveyDataValue=this.surveyImplValue.geSurveyData(),this.surveyValue=this.surveyImplValue.getSurvey(),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData())},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this.survey&&this.survey.isDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLoadingFromJson",{get:function(){return this.survey?this.survey.isLoadingFromJson:this.isLoadingFromJsonValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.errorsValue},set:function(e){this.errorsValue=e},enumerable:!0,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.survey||this.onSurveyLoad()},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!0,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.setPage=function(e,t){this.getPage(e)!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.copyCssClasses=function(e,t){if(t)if("string"==typeof t||t instanceof String)e.root=t;else for(var r in t)e[r]=t[r]},t}(u),p=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return null==this.callbacks||0==this.callbacks.length},enumerable:!0,configurable:!0}),e.prototype.fire=function(e,t){if(null!=this.callbacks)for(var r=0;r<this.callbacks.length;r++){this.callbacks[r](e,t)}},e.prototype.add=function(e){null==this.callbacks&&(this.callbacks=new Array),this.callbacks.push(e)},e.prototype.remove=function(e){if(null!=this.callbacks){var t=this.callbacks.indexOf(e,0);void 0!=t&&this.callbacks.splice(t,1)}},e}()},function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(25),a=r(7),s=r(1),u=r(9),l=r(29),c=r(17),p=r(13);r.d(t,"a",function(){return h});var h=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.validatorsValue=r.createNewArray("validators"),r.isvalueChangedCallbackFiring=!1,r.isValueChangedInSurvey=!1;var n=r;return r.createLocalizableString("title",r,!0).onRenderedHtmlCallback=function(e){return n.fullTitle},r.createLocalizableString("description",r,!0).onGetTextCallback=function(e){return n.getProcessedHtml(e)},r.createLocalizableString("commentText",r,!0),r.createLocalizableString("requiredErrorText",r),r}return n.b(t,e),t.prototype.getValueName=function(){return this.valueName?this.valueName:this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescription",{get:function(){return""!=this.description},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation","default")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),t.prototype.getTitleLocation=function(){var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){if("default"!==this.titleLocation)return this.titleLocation;var e="top";return this.parent?e=this.parent.getQuestionTitleLocation():this.survey&&(e=this.survey.questionTitleLocation),e},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"==this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"==this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"==this.getTitleLocation()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"==e||"top"==e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.name)},set:function(e){this.setLocalizableStringText("title",e),this.fireCallback(this.titleChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText",s.a.getString("otherItemText"))},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitleHtml",{get:function(){var e=this.locTitle.textOrHtml;return e||this.name},enumerable:!0,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getProcessedHtml(this.locTitleHtml)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){if(this.survey&&this.survey.getQuestionTitleTemplate()){if(!this.textPreProcessor){var e=this;this.textPreProcessor=new c.a,this.textPreProcessor.onProcess=function(t){e.getProcessedTextValue(t)}}return this.textPreProcessor.process(this.survey.getQuestionTitleTemplate())}var t=this.requiredText;t&&(t+=" ");var r=this.no;return r&&(r+=". "),r+t+this.processedTitle},enumerable:!0,configurable:!0}),t.prototype.focus=function(e){void 0===e&&(e=!1),a.a.ScrollElementToTop(this.id);var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();a.a.FocusElement(t)&&this.fireCallback(this.focusCallback)},t.prototype.updateCssClasses=function(t,r){e.prototype.updateCssClasses.call(this,t,r),this.isRequired&&(r.question.required&&(t.root+=" "+r.question.required),r.question.titleRequired&&(t.title+=" "+r.question.titleRequired))},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var t=e.name.toLocaleLowerCase();e.isExists="no"==t||"title"==t||"require"==t,"no"==t&&(e.value=this.no),"title"==t&&(e.value=this.processedTitle),"require"==t&&(e.value=this.requiredText)},t.prototype.supportComment=function(){return!1},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.isRequired!=e&&(this.setPropertyValue("isRequired",e),this.fireCallback(this.titleChangedCallback))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.getPropertyValue("hasComment",!1)},set:function(e){this.supportComment()&&(this.setPropertyValue("hasComment",e),this.hasComment&&(this.hasOther=!1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.getPropertyValue("hasOther",!1)},set:function(e){this.supportOther()&&this.hasOther!=e&&(this.setPropertyValue("hasOther",e),this.hasOther&&(this.hasComment=!1),this.hasOtherChanged())},enumerable:!0,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly||null!=this.survey&&this.survey.isDisplayMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),this.onReadOnlyChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t){e.prototype.runCondition.call(this,t),this.enableIf&&(this.conditionEnabelRunner||(this.conditionEnabelRunner=new p.a(this.enableIf)),this.conditionEnabelRunner.expression=this.enableIf,this.readOnly=!this.conditionEnabelRunner.run(t))},t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isReadOnly",this.isReadOnly)},t.prototype.onAnyValueChanged=function(e){if(e){var t=this.locTitle.text;t&&t.toLocaleLowerCase().indexOf("{"+e.toLowerCase())>-1&&this.fireCallback(this.titleChangedCallback)}},Object.defineProperty(t.prototype,"no",{get:function(){if(this.visibleIndex<0)return"";var e=1,t=!0,r="";return this.survey&&this.survey.questionStartIndex&&(r=this.survey.questionStartIndex,parseInt(r)?e=parseInt(r):1==r.length&&(t=!1)),t?(this.visibleIndex+e).toString():String.fromCharCode(r.charCodeAt(0)+this.visibleIndex)},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.defaultValue&&this.updateValueWithDefaults()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onSurveyValueChanged(this.value),this.defaultValue&&this.updateValueWithDefaults()},Object.defineProperty(t.prototype,"value",{get:function(){return this.valueFromData(this.getValueCore())},set:function(e){this.setNewValue(e),this.isvalueChangedCallbackFiring||(this.isvalueChangedCallbackFiring=!0,this.fireCallback(this.valueChangedCallback),this.isvalueChangedCallbackFiring=!1)},enumerable:!0,configurable:!0}),t.prototype.clearValue=function(){this.value=null,this.comment=null},t.prototype.clearValueIfInvisible=function(){this.isVisible||this.clearValue()},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",e)},enumerable:!0,configurable:!0}),t.prototype.isAnswerCorrect=function(){return!this.isValueEmpty(this.value)&&!this.isValueEmpty(this.correctAnswer)&&this.isTwoValueEquals(this.value,this.correctAnswer)},t.prototype.updateValueWithDefaults=function(){this.isLoadingFromJson||!this.isDesignMode&&this.isValueEmpty(this.defaultValue)||(this.isDesignMode||this.isEmpty())&&this.setDefaultValue()},t.prototype.setDefaultValue=function(){this.value=this.defaultValue},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getComment()},set:function(e){this.comment!=e&&(this.setComment(e),this.fireCallback(this.commentChangedCallback))},enumerable:!0,configurable:!0}),t.prototype.getComment=function(){return null!=this.data?this.data.getComment(this.getValueName()):this.questionComment},t.prototype.setComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value)},Object.defineProperty(t.prototype,"validators",{get:function(){return this.validatorsValue},set:function(e){this.setPropertyValue("validators",e)},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e){return void 0===e&&(e=!0),this.checkForErrors(e),this.errors.length>0},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!0,configurable:!0}),t.prototype.addError=function(e){this.errors.push(e),this.fireCallback(this.errorsChangedCallback)},t.prototype.checkForErrors=function(e){var t=this.errors?this.errors.length:0;if(this.errors=[],this.onCheckForErrors(this.errors),0==this.errors.length&&!this.isEmpty()){var r=this.runValidators();r&&(this.errors=[],this.errors.push(r))}if(this.survey&&0==this.errors.length){var r=this.fireSurveyValidation();r&&this.errors.push(r)}e&&(t!=this.errors.length||t>0)&&this.fireCallback(this.errorsChangedCallback)},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this.name):null},t.prototype.onCheckForErrors=function(e){this.hasRequiredError()&&this.errors.push(new u.a(this.requiredErrorText))},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},t.prototype.runValidators=function(){return(new l.a).run(this)},t.prototype.setNewValue=function(e){this.setNewValueInData(e),this.onValueChanged()},t.prototype.setNewValueInData=function(e){this.isValueChangedInSurvey||(e=this.valueToData(e),this.setValueCore(e))},t.prototype.getValueCore=function(){return null!=this.data?this.data.getValue(this.getValueName()):this.questionValue},t.prototype.setValueCore=function(e){null!=this.data?this.data.setValue(this.getValueName(),e):this.questionValue=e},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.setNewComment=function(e){null!=this.data?this.data.setComment(this.getValueName(),e):this.questionComment=e},t.prototype.onSurveyValueChanged=function(e){this.isValueChangedInSurvey=!0,this.value=this.valueFromData(e),this.fireCallback(this.commentChangedCallback),this.isValueChangedInSurvey=!1},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),t}(o.a);i.b.metaData.addClass("question",[{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"commentText",serializationProperty:"locCommentText"},"valueName","enableIf:condition","defaultValue:value","correctAnswer:value","isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"titleLocation",default:"default",choices:["default","top","bottom","left"]}],null,"questionbase")},function(e,t,r){"use strict";var n=r(0),i=r(1),o=r(7);r.d(t,"a",function(){return a}),r.d(t,"e",function(){return s}),r.d(t,"b",function(){return u}),r.d(t,"d",function(){return l}),r.d(t,"c",function(){return c});var a=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.customErrorText=t,r}return n.b(t,e),t.prototype.getText=function(){return this.customErrorText?this.customErrorText:i.a.getString("requiredError")},t}(o.d),s=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.customErrorText=t,r}return n.b(t,e),t.prototype.getText=function(){return this.customErrorText?this.customErrorText:i.a.getString("requiredErrorInPanel")},t}(o.d),u=function(e){function t(){return e.call(this)||this}return n.b(t,e),t.prototype.getText=function(){return i.a.getString("numericError")},t}(o.d),l=function(e){function t(t){var r=e.call(this)||this;return r.maxSize=t,r}return n.b(t,e),t.prototype.getText=function(){return i.a.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){var e=["Bytes","KB","MB","GB","TB"],t=[0,0,2,3,3];if(0==this.maxSize)return"0 Byte";var r=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,r)).toFixed(t[r])+" "+e[r]},t}(o.d),c=function(e){function t(t){var r=e.call(this)||this;return r.text=t,r}return n.b(t,e),t.prototype.getText=function(){return this.text},t}(o.d)},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(){function e(){}return e.isValueEmpty=function(e){return!(!Array.isArray(e)||0!==e.length)||(e&&("string"==typeof e||e instanceof String)&&(e=e.trim()),!e&&0!==e&&!1!==e)},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e},e}();String.prototype.format||(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,function(t,r){return void 0!==e[r]?e[r]:t})})},function(e,t,r){"use strict";var n=r(22),i=r(3);r.d(t,"a",function(){return o});var o=function(){function e(e,t){void 0===t&&(t=null),this.locTextValue=new n.a(null,!0);var r=this;this.locTextValue.onGetTextCallback=function(e){return e||(r.isValueEmpty?null:r.value.toString())},t&&(this.locText.text=t),this.value=e}return e.createArray=function(t){var r=[];return e.setupArray(r,t),r},e.setupArray=function(e,t){e.push=function(e){var r=Array.prototype.push.call(this,e);return e.locOwner=t,r},e.splice=function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o=(s=Array.prototype.splice).call.apply(s,[this,e,r].concat(n));n||(n=[]);for(var a=0;a<n.length;a++)n[a].locOwner=t;return o;var s}},e.setData=function(t,r){t.length=0;for(var n=0;n<r.length;n++){var i=r[n],o=new e(null);o.setData(i),t.push(o)}},e.getData=function(e){for(var t=new Array,r=0;r<e.length;r++)t.push(e[r].getData());return t},e.getItemByValue=function(e,t){for(var r=0;r<e.length;r++)if(e[r].value==t)return e[r];return null},e.getTextOrHtmlByValue=function(t,r){var n=e.getItemByValue(t,r);return null!==n?n.locText.textOrHtml:""},e.NotifyArrayOnLocaleChanged=function(e){for(var t=0;t<e.length;t++)e[t].locText.onChanged()},e.prototype.getType=function(){return"itemvalue"},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locOwner",{get:function(){return this.locText.owner},set:function(e){this.locText.owner=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.itemValue},set:function(t){if(this.itemValue=t,this.itemValue){var r=this.itemValue.toString(),n=r.indexOf(e.Separator);n>-1&&(this.itemValue=r.slice(0,n),this.text=r.slice(n+1))}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.locText.text},set:function(e){this.locText.text=e},enumerable:!0,configurable:!0}),e.prototype.getData=function(){var e=this.getCustomAttributes(),t=this.locText.getJson();if(!e&&!t)return this.value;var r={value:this.value};if(t&&(r.text=t),e)for(var n in e)r[n]=e[n];return r},e.prototype.setData=function(t){if(void 0!==t.value){var r=null;this.isObjItemValue(t)&&(t.itemValue=t.itemValue,this.locText.setJson(t.locText.getJson()),r=e.itemValueProp),this.copyAttributes(t,r)}else this.value=t},Object.defineProperty(e.prototype,"isValueEmpty",{get:function(){return!this.itemValue&&0!==this.itemValue&&!1!==this.itemValue},enumerable:!0,configurable:!0}),e.prototype.isObjItemValue=function(e){return void 0!==e.getType&&"itemvalue"==e.getType()},e.prototype.copyAttributes=function(e,t){for(var r in e)"function"!=typeof e[r]&&(t&&t.indexOf(r)>-1||("text"==r?this.locText.setJson(e[r]):this[r]=e[r]))},e.prototype.getCustomAttributes=function(){var t=null;for(var r in this)"function"==typeof this[r]||e.itemValueProp.indexOf(r)>-1||"itemValue"==r||(null==t&&(t={}),t[r]=this[r]);return t},e.Separator="|",e.itemValueProp=["text","value","hasText","locOwner","locText","isValueEmpty","locTextValue","pos"],e}();i.b.metaData.addClass("itemvalue",["!value",{name:"text",onGetValue:function(e){return e.locText.pureText}}])},function(e,t,r){"use strict";r.d(t,"b",function(){return n}),r.d(t,"a",function(){return i});var n={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:i;return e||(e=i),e}},i={root:"sv_main sv_default_css",header:"sv_header",body:"sv_body",footer:"sv_nav",navigationButton:"",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",page:{root:"sv_p_root",title:"",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",title:"sv_q_title",description:"sv_q_description",comment:"",required:"",titleRequired:"",indent:20,footer:"sv_q_footer"},panel:{title:"sv_p_title",description:"",container:"sv_p_container"},error:{root:"sv_q_erbox",icon:"",item:""},boolean:{root:"sv_qcbc sv_qbln",item:"sv_q_checkbox"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",label:"sv_q_checkbox_label",itemControl:"sv_q_checkbox_control_item",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other"},comment:"",dropdown:{root:"",control:"sv_q_dropdown_control",selectWrapper:"sv_select_wrapper",other:"sv_q_other"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label"},matrixdropdown:{root:"sv_q_matrix_dropdown"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",button:""},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",row:"sv_q_mt_row",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",label:"sv_q_radiogroup_label",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text"},text:"sv_q_text_root",expression:"",saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}}};n.standard=i},function(e,t,r){"use strict";var n=r(0),i=r(31),o=r(33),a=r(15);r.d(t,"e",function(){return s}),r.d(t,"d",function(){return u}),r.d(t,"f",function(){return l}),r.d(t,"g",function(){return c}),r.d(t,"c",function(){return p}),r.d(t,"b",function(){return h}),r.d(t,"h",function(){return d}),r.d(t,"a",function(){return f});var s=function(){function e(e){this.origionalValue=e}return e.prototype.getValue=function(e){var t=this.getSimpleValue(this.origionalValue);if(t.isSimple)return t.value;var r=this.removeQuotesAndEscapes(this.origionalValue);if(e){var n=this.getValueName(r);if(n)return e.hasValue(n)?(r=e.getValue(n),this.getSimpleValue(r).value):null}return r},Object.defineProperty(e.prototype,"isBoolean",{get:function(){return this.isBooleanValue(this.origionalValue)},enumerable:!0,configurable:!0}),e.prototype.toString=function(){var e=this.origionalValue;return!e||this.isNumeric(e)||this.isBooleanValue(e)||(e="'"+e+"'"),e},e.prototype.removeQuotesAndEscapes=function(e){e.length>0&&("'"==e[0]||'"'==e[0])&&(e=e.substr(1));var t=e.length;return t>0&&("'"==e[t-1]||'"'==e[t-1])&&(e=e.substr(0,t-1)),e&&(e=e.replace("\\'","'"),e=e.replace('\\"','"')),e},e.prototype.getValueName=function(e){return e.length<3||"{"!=e[0]||"}"!=e[e.length-1]?null:e.substr(1,e.length-2)},e.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.prototype.isNumeric=function(e){if(e&&(e.indexOf("-")>-1||e.indexOf("+")>1||e.indexOf("*")>-1||e.indexOf("/")>-1||e.indexOf("%")>-1))return!1;var t=parseFloat(e);return!isNaN(t)&&isFinite(t)},e.prototype.getSimpleValue=function(e){var t={isSimple:!1,value:e};return void 0===e||"undefined"===e?(t.value=null,t.isSimple=!0,t):e&&"string"==typeof e?this.isNumeric(e)?(t.isSimple=!0,t.value=parseFloat(e),t):this.isBooleanValue(e)?(t.value="true"==e.toLowerCase(),t.isSimple=!0,t):t:(t.isSimple=!0,t)},e}(),u=function(e){function t(t){var r=e.call(this,t)||this;return r.origionalValue=t,r.parameters=new Array,r}return n.b(t,e),t.prototype.getValue=function(e){for(var t=[],r=0;r<this.parameters.length;r++)t.push(this.parameters[r].getValue(e));return o.a.Instance.run(this.origionalValue,t)},t.prototype.toString=function(){for(var e=this.origionalValue+"(",t=0;t<this.parameters.length;t++)t>0&&(e+=", "),e+=this.parameters[t].toString();return e},t}(s),l=function(e){function t(){return e.call(this,null)||this}return n.b(t,e),t.prototype.getValue=function(e){if(!this.left||!this.right)return null;var t=this.left.getValue(e),r=this.right.getValue(e);return"+"==this.operator?t+r:"-"==this.operator?t-r:"*"==this.operator?t*r:"/"==this.operator?r?t/r:null:"%"==this.operator&&r?t%r:null},t.prototype.toString=function(){var e=this.left?this.left.toString():"";return e+=" "+this.operator+" ",this.right&&(e+=this.right.toString()),e},t}(s),c=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this,null)||this;return t&&(r.root=t),r}return n.b(t,e),t.prototype.getValue=function(e){return!!this.root&&(this.processValue=e,this.runNode(this.root))},t.prototype.toString=function(){return this.root?this.root.toString():""},t.prototype.runNode=function(e){for(var t="and"==e.connective,r=0;r<e.children.length;r++){var n=this.runNodeCondition(e.children[r]);if(!n&&t)return!1;if(n&&!t)return!0}return t},t.prototype.runNodeCondition=function(e){return e.children?this.runNode(e):!!e.left&&this.runCondition(e)},t.prototype.runCondition=function(e){return e.performExplicit(e.left,e.right,this.processValue)},t}(s),p=function(){function e(){this.opValue="equal",this.leftValue=null,this.rightValue=null}return Object.defineProperty(e,"operators",{get:function(){return null!=e.operatorsValue?e.operatorsValue:(e.operatorsValue={empty:function(e,t){return null==e||!e},notempty:function(e,t){return null!=e&&!!e},equal:function(e,t){return!(null==e&&null!=t||null!=e&&null==t)&&(null==e&&null==t||e==t)},notequal:function(e,t){return null==e&&null!=t||null!=e&&null==t||(null!=e||null!=t)&&e!=t},contains:function(t,r){return e.operatorsValue.containsCore(t,r,!0)},notcontains:function(t,r){return e.operatorsValue.containsCore(t,r,!1)},containsCore:function(e,t,r){if(!e)return!1;if(e.length||(e=e.toString()),"string"==typeof e||e instanceof String){if(!t)return!1;t=t.toString();var n=e.indexOf(t)>-1;return r?n:!n}for(var i=0;i<e.length;i++)if(e[i]==t)return r;return!r},greater:function(e,t){return null!=e&&null!=t&&e>t},less:function(e,t){return null!=e&&null!=t&&e<t},greaterorequal:function(e,t){return null!=e&&null!=t&&e>=t},lessorequal:function(e,t){return null!=e&&null!=t&&e<=t}},e.operatorsValue)},enumerable:!0,configurable:!0}),e.getOperator=function(t){return e.operators[t]},e.setOperator=function(t,r){e.operators[t]=r},e.isCorrectOperator=function(t){return!!t&&(t=t.toLowerCase(),void 0!=e.operators[t])},e.isNoRightOperation=function(e){return"empty"==e||"notempty"==e},Object.defineProperty(e.prototype,"left",{get:function(){return this.leftValue},set:function(e){this.leftValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.rightValue},set:function(e){this.rightValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"operator",{get:function(){return this.opValue},set:function(t){t&&(t=t.toLowerCase(),e.operators[t]&&(this.opValue=t))},enumerable:!0,configurable:!0}),e.prototype.perform=function(e,t,r){return void 0===e&&(e=null),void 0===t&&(t=null),void 0===r&&(r=null),e||(e=this.left),t||(t=this.right),this.performExplicit(e,t,r)},e.prototype.performExplicit=function(t,r,n){var i=t?t.getValue(n):null;if(!r&&(!0===i||!1===i))return i;var o=r?r.getValue(n):null;return e.operators[this.operator](i,o)},e.prototype.toString=function(){if(!this.right||!this.operator)return"";var t=this.left.toString(),r=t+" "+this.operationToString();return e.isNoRightOperation(this.operator)?r:r+" "+this.right.toString()},e.prototype.operationToString=function(){var e=this.operator;return"equal"==e?"=":"notequal"==e?"!=":"greater"==e?">":"less"==e?"<":"greaterorequal"==e?">=":"lessorequal"==e?"<=":e},e.operatorsValue=null,e}(),h=function(){function e(){this.connectiveValue="and",this.children=[]}return Object.defineProperty(e.prototype,"connective",{get:function(){return this.connectiveValue},set:function(e){e&&(e=e.toLowerCase(),"&"!=e&&"&&"!=e||(e="and"),"|"!=e&&"||"!=e||(e="or"),"and"!=e&&"or"!=e||(this.connectiveValue=e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.children.length},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.children=[],this.connective="and"},e.prototype.toString=function(){if(this.isEmpty)return"";for(var e="",t=0;t<this.children.length;t++){var r=this.children[t],n=r.toString();r.children&&r.children.length>0&&(n="("+n+")"),n&&(e&&(e+=" "+this.connective+" "),e+=n)}return e},e}(),d=function(){function e(e){this.expression=e,this.processValue=new a.a}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},set:function(e){this.expression!=e&&(this.expressionValue=e,this.operand=(new i.a).parseExpression(this.expressionValue))},enumerable:!0,configurable:!0}),e.prototype.run=function(e){return this.operand?(this.processValue.values=e,this.operand.getValue(this.processValue)):null},e}(),f=function(){function e(e){this.root=new h,this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},set:function(e){this.expression!=e&&(this.expressionValue=e,(new i.a).parse(this.expressionValue,this.root))},enumerable:!0,configurable:!0}),e.prototype.run=function(e){var t=new c(this.root),r=new a.a;return r.values=e,t.getValue(r)},e}()},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(6);r.d(t,"b",function(){return s}),r.d(t,"a",function(){return u});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.state={value:r.getStateValue()},r.handleOnChange=r.handleOnChange.bind(r),r.handleOnBlur=r.handleOnBlur.bind(r),r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setState({value:this.getStateValue()})},t.prototype.handleOnChange=function(e){this.setState({value:e.target.value})},t.prototype.handleOnBlur=function(e){this.question.value=e.target.value,this.setState({value:this.getStateValue()})},t.prototype.render=function(){if(!this.question)return null;var e=this.question.cssClasses;return i.createElement("textarea",{id:this.question.inputId,className:e.root,type:"text",readOnly:this.isDisplayMode,value:this.state.value,placeholder:this.question.placeHolder,onBlur:this.handleOnBlur,onChange:this.handleOnChange,cols:this.question.cols,rows:this.question.rows,"aria-label":this.question.locTitle.renderedHtml})},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.value},t}(o.b),u=function(e){function t(t){var r=e.call(this,t)||this;return r.question=t.question,r.comment=r.question.comment,r.otherCss=t.otherCss,r.state={value:r.comment},r.handleOnChange=r.handleOnChange.bind(r),r.handleOnBlur=r.handleOnBlur.bind(r),r}return n.b(t,e),t.prototype.handleOnChange=function(e){this.comment=e.target.value,this.setState({value:this.comment})},t.prototype.handleOnBlur=function(e){this.question.comment=this.comment},t.prototype.componentWillReceiveProps=function(e){this.question=e.question},t.prototype.render=function(){if(!this.question)return null;if(this.isDisplayMode)return i.createElement("div",{className:this.cssClasses.comment},this.comment);var e=this.otherCss?this.otherCss:this.cssClasses.comment;return i.createElement("input",{type:"text",className:e,value:this.state.value,onChange:this.handleOnChange,onBlur:this.handleOnBlur,"aria-label":this.question.locTitle.renderedHtml})},t}(o.c);a.a.Instance.registerQuestion("comment",function(e){return i.createElement(s,e)})},function(e,t,r){"use strict";var n=r(10);r.d(t,"a",function(){return i});var i=function(){function e(){this.values=null}return e.prototype.getFirstName=function(e){if(!e)return e;for(var t="",r=0;r<e.length;r++){var n=e[r];if("."==n||"["==n)break;t+=n}return t},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),t||(t=this.values),this.getValueCore(e,t).value},e.prototype.getValueCore=function(e,t){var r={hasValue:!1,value:null},i=t;if(!i)return r;for(var o=!0;e&&e.length>0;){if(!o&&"["==e[0]){if(!Array.isArray(i))return r;for(var a=1,s="";a<e.length&&"]"!=e[a];)s+=e[a],a++;if(e=a<e.length?e.substr(a+1):"",(a=this.getIntValue(s))<0||a>=i.length)return r;i=i[a]}else{o||(e=e.substr(1));var u=this.getFirstName(e);if(!u)return r;if(n.a.isValueEmpty(i[u]))return r;i=i[u],e=e.substr(u.length)}o=!1}return r.value=i,r.hasValue=!0,r},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(8),a=r(11),s=r(10),u=r(1),l=r(9),c=r(21);r.d(t,"b",function(){return p}),r.d(t,"a",function(){return h});var p=function(e){function t(t){var r=e.call(this,t)||this;r.visibleChoicesCache=null,r.otherItemValue=new a.a("other",u.a.getString("otherItemText")),r.choicesFromUrl=null,r.cachedValueForUrlRequests=null,r.isSettingComment=!1;var n=r;return r.choicesValues=r.createItemValues("choices"),r.choicesByUrl=r.createRestfull(),r.choicesByUrl.owner=r,r.createLocalizableString("otherText",r,!0),r.createLocalizableString("otherErrorText",r,!0),r.otherItemValue.locOwner=r,r.choicesByUrl.getResultCallback=function(e){n.onLoadChoicesFromUrl(e)},r}return n.b(t,e),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue.text=this.otherText?this.otherText:u.a.getString("otherItemText"),this.otherItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.getStoreOthersAsComment()?this.getHasOther(this.value):this.getHasOther(this.cachedValue)},enumerable:!0,configurable:!0}),t.prototype.getHasOther=function(e){return e==this.otherItem.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.valueToDataCore(this.value)},enumerable:!0,configurable:!0}),t.prototype.createRestfull=function(){return new c.a},t.prototype.getComment=function(){return this.getStoreOthersAsComment()?e.prototype.getComment.call(this):this.commentValue},t.prototype.setComment=function(t){this.getStoreOthersAsComment()?e.prototype.setComment.call(this,t):this.isSettingComment||t==this.commentValue||(this.isSettingComment=!0,this.commentValue=t,this.isOtherSelected&&this.setNewValueInData(this.cachedValue),this.isSettingComment=!1)},t.prototype.setNewValue=function(t){this.cachedValueForUrlRequests=t,e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){return this.getStoreOthersAsComment()?e.prototype.valueFromData.call(this,t):(this.cachedValue=this.valueFromDataCore(t),this.cachedValue)},t.prototype.valueToData=function(t){return this.getStoreOthersAsComment()?e.prototype.valueToData.call(this,t):(this.cachedValue=t,this.valueToDataCore(t))},t.prototype.valueFromDataCore=function(e){return this.hasUnknownValue(e)?e==this.otherItem.value?e:(this.comment=e,this.otherItem.value):e},t.prototype.valueToDataCore=function(e){return e==this.otherItem.value&&this.getComment()&&(e=this.getComment()),e},t.prototype.hasUnknownValue=function(e){if(!e)return!1;for(var t=this.activeChoices,r=0;r<t.length;r++)if(t[r].value==e)return!1;return!0},Object.defineProperty(t.prototype,"choices",{get:function(){return this.choicesValues},set:function(e){this.setPropertyValue("choices",e),this.onVisibleChoicesChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment",!0)},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!0,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder","none")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.hasOther||"none"!=this.choicesOrder?(this.visibleChoicesCache||(this.visibleChoicesCache=this.sortVisibleChoices(this.activeChoices.slice()),this.hasOther&&this.visibleChoicesCache.push(this.otherItem)),this.visibleChoicesCache):this.activeChoices},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isEmpty()?"":this.getDisplayValue(this.visibleChoices,this.value)},enumerable:!0,configurable:!0}),t.prototype.getDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.comment?this.comment:"";var r=a.a.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},Object.defineProperty(t.prototype,"activeChoices",{get:function(){return this.choicesFromUrl?this.choicesFromUrl:this.choices},enumerable:!0,configurable:!0}),t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!0},t.prototype.onCheckForErrors=function(t){if(e.prototype.onCheckForErrors.call(this,t),this.hasOther&&this.isOtherSelected&&!this.comment){var r=this.otherErrorText;r||(r=u.a.getString("otherRequiredError")),t.push(new l.c(r))}},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.runChoicesByUrl()},t.prototype.onLocaleChanged=function(){e.prototype.onLocaleChanged.call(this),this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.runChoicesByUrl(),this.onVisibleChoicesChanged()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),this.runChoicesByUrl()},t.prototype.runChoicesByUrl=function(){if(this.choicesByUrl&&!this.isLoadingFromJson){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&this.choicesByUrl.run(e)}},t.prototype.onLoadChoicesFromUrl=function(e){var t=this.errors.length;this.errors=[],this.choicesByUrl&&this.choicesByUrl.error&&this.errors.push(this.choicesByUrl.error),(t>0||this.errors.length>0)&&this.fireCallback(this.errorsChangedCallback);var r=null,n=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests);if(e&&e.length>0&&(r=new Array,a.a.setData(r,e)),this.choicesFromUrl=r,r){var i=this.updateCachedValueForUrlRequests(n);i&&(this.value=i.value)}this.onVisibleChoicesChanged()},t.prototype.createCachedValueForUrlRequests=function(e){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var t=[],r=0;r<e.length;r++)t.push(this.createCachedValueForUrlRequests(e[r]));return t}return{value:e,isExists:!this.hasUnknownValue(e)}},t.prototype.updateCachedValueForUrlRequests=function(e){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var t=[],r=0;r<e.length;r++){var n=this.updateCachedValueForUrlRequests(e[r]);n&&!this.isValueEmpty(n.value)&&t.push(n.value)}return{value:t}}return{value:e.isExists&&this.hasUnknownValue(e.value)?null:e.value}},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||(this.visibleChoicesCache=null,this.fireCallback(this.choicesChangedCallback))},t.prototype.sortVisibleChoices=function(e){var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort(function(e,r){return e.text<r.text?-1*t:e.text>r.text?1*t:0})},t.prototype.randomizeArray=function(e){return s.a.randomizeArray(e)},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||this.hasComment||(this.comment=null)},t}(o.a),h=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.colCountValue=1,r}return n.b(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.colCountValue},set:function(e){e<0||e>4||(this.colCountValue=e,this.fireCallback(this.colCountChangedCallback))},enumerable:!0,configurable:!0}),t}(p);i.b.metaData.addClass("selectbase",["hasComment:boolean","hasOther:boolean",{name:"choices:itemvalues",onGetValue:function(e){return a.a.getData(e.choices)},onSetValue:function(e,t){e.choices=t}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"]},{name:"choicesByUrl:restfull",className:"ChoicesRestfull",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},{name:"otherText",serializationProperty:"locOtherText"},{name:"otherErrorText",serializationProperty:"locOtherErrorText"},{name:"storeOthersAsComment:boolean",default:!0}],null,"question"),i.b.metaData.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4]}],null,"selectbase")},function(e,t,r){"use strict";r.d(t,"a",function(){return o});var n=function(){function e(){}return e}(),i=function(){function e(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1}return e}(),o=function(){function e(){this.hasAllValuesOnLastRunValue=!1}return e.prototype.process=function(e,t){if(void 0===t&&(t=!1),this.hasAllValuesOnLastRunValue=!0,!e)return e;if(!this.onProcess)return e;for(var r=this.getItems(e),n=r.length-1;n>=0;n--){var o=r[n],a=this.getName(e.substring(o.start+1,o.end));if(this.canProcessName(a)){var s=new i(a,t);this.onProcess(s),s.isExists?(null==s.value&&(s.value="",this.hasAllValuesOnLastRunValue=!1),e=e.substr(0,o.start)+s.value+e.substr(o.end+1)):this.hasAllValuesOnLastRunValue=!1}}return e},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return this.hasAllValuesOnLastRunValue},enumerable:!0,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],r=e.length,i=-1,o="",a=0;a<r;a++)if(o=e[a],"{"==o&&(i=a),"}"==o){if(i>-1){var s=new n;s.start=i,s.end=a,t.push(s)}i=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e.prototype.canProcessName=function(e){if(!e)return!1;for(var t=0;t<e.length;t++){var r=e[t];if(" "==r||"-"==r||"&"==r)return!1}return!0},e}()},function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(7),a=r(34),s=r(17),u=r(15),l=r(32),c=r(1),p=r(9),h=r(42),d=r(44);r.d(t,"a",function(){return f});var f=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;r.currentPageValue=null,r.valuesHash={},r.variablesHash={},r.localeValue="",r.isCompleted=!1,r.isStartedState=!1,r.isCompletedBefore=!1,r.isLoading=!1,r.completedStateValue="",r.completedStateTextValue="",r.isTimerStarted=!1,r.onComplete=new o.b,r.onStarted=new o.b,r.onPartialSend=new o.b,r.onCurrentPageChanged=new o.b,r.onValueChanged=new o.b,r.onVisibleChanged=new o.b,r.onPageVisibleChanged=new o.b,r.onPanelVisibleChanged=new o.b,r.onQuestionAdded=new o.b,r.onQuestionRemoved=new o.b,r.onPanelAdded=new o.b,r.onPanelRemoved=new o.b,r.onPageAdded=new o.b,r.onValidateQuestion=new o.b,r.onProcessHtml=new o.b,r.onTextMarkdown=new o.b,r.onSendResult=new o.b,r.onGetResult=new o.b,r.onUploadFile=new o.b,r.onUpdateQuestionCssClasses=new o.b,r.onUpdatePanelCssClasses=new o.b,r.onAfterRenderSurvey=new o.b,r.onAfterRenderPage=new o.b,r.onAfterRenderQuestion=new o.b,r.onAfterRenderPanel=new o.b,r.onMatrixRowAdded=new o.b,r.onMatrixRowRemoved=new o.b,r.onMatrixCellCreated=new o.b,r.onMatrixAfterCellRender=new o.b,r.onMatrixCellValueChanged=new o.b,r.onMatrixCellValidate=new o.b,r.onTimer=new o.b,r.onTimerPanelInfoText=new o.b,r.jsonErrors=null,r.origionalPages=null,r.timerFunc=null;var n=r;return r.createLocalizableString("title",r,!0).onRenderedHtmlCallback=function(e){return n.processedTitle},r.createLocalizableString("completedHtml",r),r.createLocalizableString("completedBeforeHtml",r),r.createLocalizableString("loadingHtml",r),r.createLocalizableString("startSurvey",r),r.createLocalizableString("pagePrev",r),r.createLocalizableString("pageNext",r),r.createLocalizableString("complete",r),r.createLocalizableString("questionTitleTemplate",r,!0),r.textPreProcessor=new s.a,r.textPreProcessor.onProcess=function(e){n.getProcessedTextValue(e)},r.pagesValue=r.createNewArray("pages",function(e){n.doOnPageAdded(e)}),r.triggersValue=r.createNewArray("triggers",function(e){e.setOwner(n)}),r.registerFunctionOnPropertyValueChanged("firstPageIsStarted",function(){n.onFirstPageIsStartedChanged()}),r.registerFunctionOnPropertyValueChanged("isSinglePage",function(){n.onIsSinglePageChanged()}),r.onBeforeCreating(),t&&(("string"==typeof t||t instanceof String)&&(t=JSON.parse(t)),t&&t.clientId&&(r.clientId=t.clientId),r.setJsonObject(t),r.surveyId&&r.loadSurveyFromService(r.surveyId,r.clientId)),r.onCreating(),r}return n.b(t,e),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return o.c.commentPrefix},set:function(e){o.c.commentPrefix=e},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"survey"},Object.defineProperty(t.prototype,"pages",{get:function(){return this.pagesValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"triggers",{get:function(){return this.triggersValue},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext",!1)},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving",!1)},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic",!0)},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons",!0)},set:function(e){this.setPropertyValue("showNavigationButtons",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton",!0)},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle",!0)},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles",!0)},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage",!0)},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment",!0)},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic",!1)},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues","onComplete")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.localeValue},set:function(e){this.localeValue=e,this.setPropertyValue("locale",e),c.a.currentLocale=e;for(var t=0;t<this.pages.length;t++)this.pages[t].onLocaleChanged()},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.locale},t.prototype.getMarkdownHtml=function(e){var t={text:e,html:null};return this.onTextMarkdown.fire(this,t),t.html},t.prototype.getLocString=function(e){return c.a.getString(e)},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocString("emptySurvey")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title")},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurvey",this.getLocString("startSurveyText"))},set:function(e){this.setLocalizableStringText("startSurvey",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurvey")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrev",this.getLocString("pagePrevText"))},set:function(e){this.setLocalizableStringText("pagePrev",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrev")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNext",this.getLocString("pageNextText"))},set:function(e){this.setLocalizableStringText("pageNext",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNext")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("complete",this.getLocString("completeText"))},set:function(e){this.setLocalizableStringText("complete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("complete")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e)},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitleTemplate=function(){return this.locQuestionTitleTemplate.textOrHtml},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers",!1)},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers","on")},set:function(e){e=e.toLowerCase(),(e="onpage"===e?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar","off")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.processText(this.locTitle.textOrHtml,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation","top")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation","top")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode","edit")},set:function(e){if((e=e.toLowerCase())!=this.mode&&("edit"==e||"display"==e)){this.setPropertyValue("mode",e);for(var t=this.getAllQuestions(),r=0;r<t.length;r++)t[r].onReadOnlyChanged()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){var e={};for(var t in this.valuesHash)e[t]=this.valuesHash[t];return e},set:function(e){if(this.valuesHash={},e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]),this.checkTriggers(t,e[t],!1);this.notifyAllQuestionsOnValueChanged(),this.runConditions()},enumerable:!0,configurable:!0}),t.prototype.getAllValues=function(){return this.data},t.prototype.setDataValueCore=function(e,t,r){e[t]=r},Object.defineProperty(t.prototype,"comments",{get:function(){var e={};for(var t in this.valuesHash)t.indexOf(this.commentPrefix)>0&&(e[t]=this.valuesHash[t]);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=new Array,t=0;t<this.pages.length;t++)this.pages[t].isVisible&&e.push(this.pages[t]);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){return this.firstPageIsStarted&&this.pages.length>0?this.pages[0]:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){var e=this.visiblePages;return null!=this.currentPageValue&&e.indexOf(this.currentPageValue)<0&&(this.currentPage=null),null==this.currentPageValue&&e.length>0&&(this.currentPage=e[0]),this.currentPageValue},set:function(e){var t=this.visiblePages;if(!(null!=e&&t.indexOf(e)<0)&&e!=this.currentPageValue){var r=this.currentPageValue;this.currentPageValue=e,e&&(e.updateCustomWidgets(),e.setWasShown(!0)),this.currentPageChanged(e,r)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){this.visiblePages;e<0||e>=this.visiblePages.length||(this.currentPage=this.visiblePages[e])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder","initial")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!0,configurable:!0}),t.prototype.focusFirstQuestion=function(){var e=this.currentPage;e&&(e.scrollToTop(),e.focusFirstQuestion())},t.prototype.scrollToTopOnPageChange=function(){var e=this.currentPage;e&&(e.scrollToTop(),this.focusFirstQuestionAutomatic&&e.focusFirstQuestion())},Object.defineProperty(t.prototype,"state",{get:function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.currentPage?"running":"empty"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.completedStateValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.completedStateTextValue},enumerable:!0,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.completedStateValue=e,t||("saving"==e&&(t=this.getLocString("savingData")),"error"==e&&(t=this.getLocString("savingDataError")),"success"==e&&(t=this.getLocString("savingDataSuccess"))),this.completedStateTextValue=t},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),e&&(this.data=null,this.variablesHash={}),this.setTimeSpent(0);for(var r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1);this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.isStartedState=this.firstPageIsStarted,t&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0])},t.prototype.mergeValues=function(e,t){if(t&&e)for(var r in e){var n=e[r];n&&"object"==typeof n?(t[r]||(t[r]={}),this.mergeValues(n,t[r])):t[r]=n}},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanged=function(e,t){this.onCurrentPageChanged.fire(this,{oldCurrentPage:t,newCurrentPage:e})},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;var e=this.visiblePages.indexOf(this.currentPage)+1;return Math.ceil(100*e/this.visiblePageCount)},Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return!1;var e=this.currentPage;return!!e&&("show"==e.navigationButtonsVisibility||"hide"!=e.navigationButtonsVisibility&&this.showNavigationButtons)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this.getPropertyValue("isDesignMode",!1)},enumerable:!0,configurable:!0}),t.prototype.setDesignMode=function(e){this.setPropertyValue("isDesignMode",e),this.onIsSinglePageChanged()},Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!0,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&(document.cookie=this.cookieName+"=;")},t.prototype.nextPage=function(){return!this.isLastPage&&((!this.isEditMode||!this.isCurrentPageHasErrors)&&(!this.doServerValidation()&&(this.doNextPage(),!0)))},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return null==this.currentPage||this.currentPage.hasErrors(!0,!0)},enumerable:!0,configurable:!0}),t.prototype.prevPage=function(){if(this.isFirstPage)return!1;var e=this.visiblePages,t=e.indexOf(this.currentPage);this.currentPage=e[t-1]},t.prototype.completeLastPage=function(){return(!this.isEditMode||!this.isCurrentPageHasErrors)&&(!this.doServerValidation()&&(this.doComplete(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return this.getPropertyValue("isSinglePage",!1)},set:function(e){this.setPropertyValue("isSinglePage",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted",!1)},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!0,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>0&&this.pages[0]===e},t.prototype.onFirstPageIsStartedChanged=function(){0!=this.pages.length&&(this.isStartedState=this.firstPageIsStarted,this.pageVisibilityChanged(this.pages[0],!this.firstPageIsStarted))},t.prototype.onIsSinglePageChanged=function(){if(!this.isSinglePage||this.isDesignMode){if(this.origionalPages){this.pages.splice(0,this.pages.length);for(var e=0;e<this.origionalPages.length;e++)this.pages.push(this.origionalPages[e])}this.origionalPages=null}else{this.origionalPages=this.pages.slice(0,this.pages.length);var t=this.firstPageIsStarted?1:0,r=this.createSinglePage(t),n=this.pages.length-t;this.pages.splice(t,n,r)}},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var r=e;r<this.pages.length;r++){var n=this.pages[r],o=t.addNewPanel(n.name),a=(new i.b).toJsonObject(n);(new i.b).toObject(a,o)}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return null==this.currentPage||0==this.visiblePages.indexOf(this.currentPage)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){if(this.isFirstPage||!this.showPrevButton)return!1;if(this.maxTimeToFinish>0)return!1;var e=this.visiblePages[this.currentPageNo-1];return this.getPageMaxTimeToFinish(e)<=0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){if(null==this.currentPage)return!0;var e=this.visiblePages;return e.indexOf(this.currentPage)==e.length-1},enumerable:!0,configurable:!0}),t.prototype.doComplete=function(){var e=this.hasCookie;this.stopTimer(),this.clearUnusedValues(),this.setCookie(),this.setCompleted();var t=this,r={showDataSaving:function(e){t.setCompletedState("saving",e)},showDataSavingError:function(e){t.setCompletedState("error",e)},showDataSavingSuccess:function(e){t.setCompletedState("success",e)},showDataSavingClear:function(e){t.setCompletedState("","")}};this.onComplete.fire(this,r),!e&&this.surveyPostId&&this.sendResult()},t.prototype.start=function(){this.firstPageIsStarted&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}))},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!0,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(){if(!this.onServerValidateQuestions)return!1;for(var e=this,t={data:{},errors:{},survey:this,complete:function(){e.completeServerValidation(t)}},r=0;r<this.currentPage.questions.length;r++){var n=this.currentPage.questions[r];if(n.visible){var i=this.getValue(n.getValueName());this.isValueEmpty(i)||(t.data[n.getValueName()]=i)}}return this.setIsValidatingOnServer(!0),this.onServerValidateQuestions(this,t),!0},t.prototype.completeServerValidation=function(e){if(this.setIsValidatingOnServer(!1),e||e.survey){var t=e.survey,r=!1;if(e.errors)for(var n in e.errors){var i=t.getQuestionByName(n);i&&i.errors&&(r=!0,i.addError(new p.c(e.errors[n])))}r||(t.isLastPage?t.doComplete():t.doNextPage())}},t.prototype.doNextPage=function(){this.checkOnPageTriggers(),this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0);var e=this.visiblePages,t=e.indexOf(this.currentPage);this.currentPage=e[t+1]},t.prototype.setCompleted=function(){this.isCompleted=!0},Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){return this.completedHtml?this.processHtml(this.completedHtml):"<h3>"+this.getLocString("completingSurvey")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.completedBeforeHtml?this.processHtml(this.completedBeforeHtml):"<h3>"+this.getLocString("completingSurveyBefore")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.loadingHtml?this.processHtml(this.loadingHtml):"<h3>"+this.getLocString("loadingSurvey")+"</h3>"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){if(null==this.currentPage)return"";var e=this.visiblePages,t=e.indexOf(this.currentPage)+1;return this.getLocString("progressText").format(t,e.length)},enumerable:!0,configurable:!0}),t.prototype.afterRenderSurvey=function(e){this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e})},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})},t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.afterRenderPage=function(e){this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.currentPage,htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.matrixRowAdded=function(e){this.onMatrixRowAdded.fire(this,{question:e})},t.prototype.matrixRowRemoved=function(e,t,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:r})},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onMatrixAfterCellRender.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new p.c(t.error):null},t.prototype.uploadFile=function(e,t,r,n){var i=!0;return this.onUploadFile.fire(this,{name:e,file:t,accept:i}),!!i&&(!r&&this.surveyPostId&&this.uploadFileCore(e,t,n),!0)},t.prototype.createSurveyService=function(){return new l.a},t.prototype.uploadFileCore=function(e,t,r){var n=this;r&&r("uploading"),this.createSurveyService().sendFile(this.surveyPostId,t,function(t,i){r&&r(t?"success":"error"),t&&n.setValue(e,i)})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e){null!=e&&(this.pages.push(e),this.updateVisibleIndexes())},t.prototype.addNewPage=function(e){void 0===e&&(e=null);var t=this.createNewPage(e);return this.addPage(t),t},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPageValue==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null),this.updateVisibleIndexes())},t.prototype.getQuestionByName=function(e,t){void 0===t&&(t=!1);var r=this.getAllQuestions();t&&(e=e.toLowerCase());for(var n=0;n<r.length;n++){var i=r[n].name;if(t&&(i=i.toLowerCase()),i==e)return r[n]}return null},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var r=this.getAllQuestions();t&&(e=e.toLowerCase());for(var n=0;n<r.length;n++){var i=r[n].getValueName();if(t&&(i=i.toLowerCase()),i==e)return r[n]}return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var r=[];if(!e)return r;for(var n=0;n<e.length;n++)if(e[n]){var i=this.getQuestionByName(e[n],t);i&&r.push(i)}return r},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var r=this.pages[t];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var r=0;r<e.length;r++)if(e[r]){var n=this.getPageByName(e[r]);n&&t.push(n)}return t},t.prototype.getAllQuestions=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=new Array,n=0;n<this.pages.length;n++)this.pages[n].addQuestionsToList(r,e,t);return r},t.prototype.getQuizQuestions=function(){for(var e=new Array,t=this.firstPageIsStarted?1:0,r=t;r<this.pages.length;r++)if(this.pages[r].isVisible)for(var n=this.pages[r].questions,i=0;i<n.length;i++){var o=n[i];o.isVisible&&o.hasInput&&e.push(o)}return e},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=new Array,n=0;n<this.pages.length;n++)this.pages[n].addPanelsIntoList(r,e,t);return r},t.prototype.createNewPage=function(e){return new a.a(e)},t.prototype.notifyQuestionOnValueChanged=function(e,t){for(var r=this.getAllQuestions(),n=null,i=0;i<r.length;i++)r[i].getValueName()==e&&(n=r[i],this.doSurveyValueChanged(n,t),this.onValueChanged.fire(this,{name:e,question:n,value:t}));n||this.onValueChanged.fire(this,{name:e,question:null,value:t}),this.notifyElementsOnAnyValueOrVariableChanged(e)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e)},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)this.doSurveyValueChanged(e[t],this.getValue(e[t].getValueName()))},t.prototype.doSurveyValueChanged=function(e,t){e.onSurveyValueChanged(t)},t.prototype.checkOnPageTriggers=function(){for(var e=this.getCurrentPageQuestions(),t=0;t<e.length;t++){var r=e[t],n=this.getValue(r.getValueName());this.checkTriggers(r.getValueName(),n,!0)}},t.prototype.getCurrentPageQuestions=function(){var e=[],t=this.currentPage;if(!t)return e;for(var r=0;r<t.questions.length;r++){var n=t.questions[r];n.visible&&n.name&&e.push(n)}return e},t.prototype.checkTriggers=function(e,t,r){for(var n=0;n<this.triggers.length;n++){var i=this.triggers[n];i.name==e&&i.isOnNextPage==r&&i.check(t)}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},t.prototype.runConditions=function(){for(var e=this.pages,t=0;t<e.length;t++)e[t].runCondition(this.valuesHash)},t.prototype.sendResult=function(e,t,r){if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===r&&(r=!1),this.isEditMode&&(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),e&&(t&&(this.clientId=t),!r||this.clientId))){var n=this;this.surveyShowDataSaving&&this.setCompletedState("saving",""),this.createSurveyService().sendResult(e,this.data,function(e,t){n.surveyShowDataSaving&&(e?n.setCompletedState("success",""):n.setCompletedState("error","")),n.onSendResult.fire(n,{success:e,response:t})},this.clientId,r)}},t.prototype.getResult=function(e,t){var r=this;this.createSurveyService().getResult(e,t,function(e,t,n,i){r.onGetResult.fire(r,{success:e,data:t,dataList:n,response:i})})},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(e,t,n,i){r.isLoading=!1,e&&(r.isCompletedBefore="completed"==n,r.loadSurveyFromServiceJson(t))}):this.createSurveyService().loadSurvey(this.surveyId,function(e,t,n){r.isLoading=!1,e&&r.loadSurveyFromServiceJson(t)})},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.setJsonObject(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService())},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.checkPageVisibility=function(e,t){var r=this.getPageByQuestion(e);if(r){var n=r.isVisible;(n!=r.getIsPageVisible(e)||t)&&this.pageVisibilityChanged(r,n)}},t.prototype.updateVisibleIndexes=function(){if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)this.updateQuestionVisibleIndexes(e[t].questions,!0);else this.updateQuestionVisibleIndexes(this.getAllQuestions(!1),"on"==this.showQuestionNumbers)},t.prototype.updatePageVisibleIndexes=function(e){for(var t=0,r=0;r<this.pages.length;r++)this.pages[r].visibleIndex=this.pages[r].visible?t++:-1,this.pages[r].num=e&&this.pages[r].visible?this.pages[r].visibleIndex+1:-1},t.prototype.updateQuestionVisibleIndexes=function(e,t){o.a.setVisibleIndex(e,0,t)},t.prototype.setJsonObject=function(e){if(e){this.jsonErrors=null;var t=new i.b;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors)}},t.prototype.endLoadingFromJson=function(){this.isStartedState=this.firstPageIsStarted,this.onIsSinglePageChanged(),this.runConditions(),this.updateVisibleIndexes(),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&this.doComplete(),this.doElementsOnLoad()},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){var t=e.name.toLocaleLowerCase();if("pageno"===t){e.isExists=!0;var r=this.currentPage;return void(e.value=null!=r?this.visiblePages.indexOf(r)+1:0)}if("pagecount"===t)return e.isExists=!0,void(e.value=this.visiblePageCount);if("correctedanswers"===t||"correctedanswercount"===t)return e.isExists=!0,void(e.value=this.getCorrectedAnswerCount());if("incorrectedanswers"===t||"incorrectedanswercount"===t)return e.isExists=!0,void(e.value=this.getInCorrectedAnswerCount());if("questioncount"===t)return e.isExists=!0,void(e.value=this.getQuizQuestions().length);var n=(new u.a).getFirstName(t),i=this.getVariable(t);if(void 0!==i)return e.isExists=!0,void(e.value=i);var o=this.getQuestionByValueName(n,!0);if(o){e.isExists=!0,t=o.getValueName()+t.substr(n.length);var a={};return a[n]=e.returnDisplayValue?o.displayValue:this.getValue(n),void(e.value=(new u.a).getValue(t,a))}var s=this.getValue(e.name);void 0!==s&&(e.isExists=!0,e.value=s)},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();"onComplete"==this.clearInvisibleValues&&this.clearInvisibleQuestionValues()},t.prototype.clearInvisibleQuestionValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearValueIfInvisible()},t.prototype.getVariable=function(e){return e?this.variablesHash[e]:null},t.prototype.setVariable=function(e,t){e&&(this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e))},t.prototype.getUnbindValue=function(e){return e&&e instanceof Object?JSON.parse(JSON.stringify(e)):e},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.valuesHash[e];return this.getUnbindValue(t)},t.prototype.setValue=function(e,t){this.isValueEqual(e,t)||(this.isValueEmpty(t)?delete this.valuesHash[e]:(t=this.getUnbindValue(t),this.setDataValueCore(this.valuesHash,e,t)),this.notifyQuestionOnValueChanged(e,t),this.checkTriggers(e,t,!1),this.runConditions(),this.tryGoNextPageAutomatic(e))},t.prototype.isValueEqual=function(e,t){""==t&&(t=null);var r=this.getValue(e);return null===t||null===r?t===r:this.isTwoValueEquals(t,r)},t.prototype.doOnPageAdded=function(e){e.setSurveyImpl(this),e.name||(e.name=this.generateNewName(this.pages,"page"));var t={page:e};this.onPageAdded.fire(this,t)},t.prototype.generateNewName=function(e,t){for(var r={},n=0;n<e.length;n++)r[e[n].name]=!0;for(var i=1;r[t+i];)i++;return t+i},t.prototype.tryGoNextPageAutomatic=function(e){if(this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByName(e);if(!t||t.visible&&t.supportGoNextPageAutomatic()){for(var r=this.getCurrentPageQuestions(),n=0;n<r.length;n++){var i=this.getValue(r[n].getValueName());if(r[n].hasInput&&this.isValueEmpty(i))return}this.currentPage.hasErrors(!0,!1)||(this.isLastPage?!0===this.goNextPageAutomatic&&this.completeLastPage():this.nextPage())}}},t.prototype.getComment=function(e){var t=this.data[e+this.commentPrefix];return null==t&&(t=""),t},t.prototype.setComment=function(e,t){var r=e+this.commentPrefix;""===t||null===t?delete this.valuesHash[r]:(this.setDataValueCore(this.valuesHash,r,t),this.tryGoNextPageAutomatic(e));var n=this.getQuestionByName(e);n&&this.onValueChanged.fire(this,{name:r,question:n,value:t})},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onVisibleChanged.fire(this,{question:e,name:e.name,visible:t}),this.checkPageVisibility(e,!t),e&&!e.visible&&"onHidden"==this.clearInvisibleValues&&e.clearValue()},t.prototype.pageVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t})},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),this.updateVisibleIndexes(),this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parentPanel:r,rootPanel:n})},t.prototype.questionRemoved=function(e){this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name})},t.prototype.panelAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.updateVisibleIndexes(),this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parentPanel:r,rootPanel:n})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(),this.onPanelRemoved.fire(this,{panel:e,name:e.name})},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e,value:this.getValue(e),error:null};return this.onValidateQuestion.fire(this,t),t.error?new p.c(t.error):null},t.prototype.processHtml=function(e){var t={html:e};return this.onProcessHtml.fire(this,t),this.processText(t.html,!0)},t.prototype.processText=function(e,t){return this.textPreProcessor.process(e,t)},t.prototype.processTextEx=function(e){var t={text:this.textPreProcessor.process(e),hasAllValuesOnLastRun:!0};return t.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,t},t.prototype.getCorrectedAnswerCount=function(){for(var e=this.getQuizQuestions(),t=0,r=0;r<e.length;r++)e[r].isAnswerCorrect()&&t++;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getQuizQuestions().length-this.getCorrectedAnswerCount()},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.getPropertyValue("showTimerPanel","none")},set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.isTimerStarted&&"top"==this.showTimerPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.isTimerStarted&&"bottom"==this.showTimerPanel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode","all")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};return this.onTimerPanelInfoText.fire(this,e),e.text},enumerable:!0,configurable:!0}),t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),n=this.getPageMaxTimeToFinish(e),i=this.getDisplayTime(n),o=this.getDisplayTime(this.maxTimeToFinish);if("page"==this.showTimerPanelMode)return this.getTimerInfoPageText(e,t,i);if("survey"==this.showTimerPanelMode)return this.getTimerInfoSurveyText(r,o);if("all"==this.showTimerPanelMode){if(n<=0&&this.maxTimeToFinish<=0)return this.getLocString("timerSpentAll").format(t,r);if(n>0&&this.maxTimeToFinish>0)return this.getLocString("timerLimitAll").format(t,i,r,o);return this.getTimerInfoPageText(e,t,i)+" "+this.getTimerInfoSurveyText(r,o)}return""},t.prototype.getTimerInfoPageText=function(e,t,r){return this.getPageMaxTimeToFinish(e)>0?this.getLocString("timerLimitPage").format(t,r):this.getLocString("timerSpentPage").format(t,r)},t.prototype.getTimerInfoSurveyText=function(e,t){return this.maxTimeToFinish>0?this.getLocString("timerLimitSurvey").format(e,t):this.getLocString("timerSpentSurvey").format(e,t)},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),r=e%60,n="";return t>0&&(n+=t+" "+this.getLocString("timerMin")),n&&0==r?n:(n&&(n+=" "),n+r+" "+this.getLocString("timerSec"))},t.prototype.startTimer=function(){if(!this.isTimerStarted&&!this.isDesignMode){var e=this;this.timerFunc=function(){e.doTimer()},this.isTimerStarted=!0,d.a.instance.start(this.timerFunc)}},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.isTimerStarted&&(this.isTimerStarted=!1,d.a.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.getPropertyValue("timeSpent",0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!0,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(){var e=this.currentPage;if(e&&(e.timeSpent=e.timeSpent+1),this.setTimeSpent(this.timeSpent+1),this.onTimer.fire(this,{}),this.maxTimeToFinish>0&&this.maxTimeToFinish==this.timeSpent&&this.completeLastPage(),e){var t=this.getPageMaxTimeToFinish(e);t>0&&t==e.timeSpent&&(this.isLastPage?this.completeLastPage():this.nextPage())}},t.prototype.setTimeSpent=function(e){this.setPropertyValue("timeSpent",e)},t.prototype.geSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(t)),r},t.prototype.setTriggerValue=function(e,t,r){e&&(r?this.setVariable(e,t):this.setValue(e,t))},t.stylesManager=new h.a,t.platform="unknown",t}(o.c);i.b.metaData.addClass("survey",[{name:"locale",choices:function(){return c.a.getLocales()}},{name:"title:text",serializationProperty:"locTitle"},{name:"focusFirstQuestionAutomatic:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages",className:"page",visible:!1},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,onGetValue:function(e){return null},onSetValue:function(e,t,r){var n=e.addNewPage("");r.toObject({questions:t},n)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons:boolean",default:!0},{name:"showPrevButton:boolean",default:!0},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},{name:"questionsOrder",default:"initial",choices:["initial","random"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","top","bottom"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},"goNextPageAutomatic:boolean",{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden"]},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"requiredText",default:"*"},"questionStartIndex",{name:"questionTitleTemplate",serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1},{name:"maxTimeToFinish:number",default:0},{name:"maxTimeToFinishPage:number",default:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["all","page","survey"]}])},function(e,t,r){"use strict";var n=r(0),i=r(18),o=r(43);r.d(t,"a",function(){return a}),r.d(t,"b",function(){return s});var a=function(e){function t(t){return void 0===t&&(t=null),e.call(this,t)||this}return n.b(t,e),t.prototype.render=function(){this.renderCallback&&this.renderCallback()},t.prototype.mergeCss=function(e,t){this.mergeValues(e,t)},t.prototype.doAfterRenderSurvey=function(e){this.afterRenderSurvey(e)},t.prototype.onLoadSurveyFromService=function(){this.render()},t.prototype.onLoadingSurveyFromService=function(){this.render()},t.prototype.setCompletedState=function(t,r){e.prototype.setCompletedState.call(this,t,r),this.render()},t.prototype.start=function(){e.prototype.start.call(this),this.render()},t}(i.a),s=function(e){function t(t,r){return void 0===t&&(t=null),void 0===r&&(r=null),e.call(this,t,r)||this}return n.b(t,e),t.prototype.createSurvey=function(e){return new a(e)},t}(o.a);i.a.platform="react"},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(19)),a=r(27),s=r(38),u=r(6),l=r(12),c=r(39),p=r(41),h=r(4);r.d(t,"a",function(){return d});var d=function(e){function t(t){var r=e.call(this,t)||this;return r.isCurrentPageChanged=!1,r.handleTryAgainClick=r.handleTryAgainClick.bind(r),r.state=r.getState(),r.updateSurvey(t),r}return n.b(t,e),Object.defineProperty(t,"cssType",{get:function(){return l.b.currentType},set:function(e){l.b.currentType=e},enumerable:!0,configurable:!0}),t.prototype.componentWillReceiveProps=function(e){this.setState(this.getState()),this.updateSurvey(e)},t.prototype.componentDidUpdate=function(){this.isCurrentPageChanged&&(this.isCurrentPageChanged=!1,this.survey.scrollToTopOnPageChange())},t.prototype.componentDidMount=function(){var e=this.refs.root;e&&this.survey&&this.survey.doAfterRenderSurvey(e),this.survey&&this.survey.startTimerFromUI()},t.prototype.componentWillUnmount=function(){this.survey&&this.survey.stopTimer()},t.prototype.render=function(){return"completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():"starting"==this.survey.state?this.renderStartPage():this.renderSurvey()},Object.defineProperty(t.prototype,"css",{get:function(){return l.b.getCss()},set:function(e){this.survey.mergeCss(e,this.css)},enumerable:!0,configurable:!0}),t.prototype.handleTryAgainClick=function(e){this.survey.doComplete()},t.prototype.renderCompleted=function(){if(!this.survey.showCompletedPage)return null;var e=null;if(this.survey.completedState){var t=null;if("error"==this.survey.completedState){var r=this.survey.getLocString("saveAgainButton");t=i.createElement("input",{type:"button",value:r,className:this.css.saveData.saveAgainButton,onClick:this.handleTryAgainClick})}var n=this.css.saveData[this.survey.completedState];e=i.createElement("div",{className:this.css.saveData.root},i.createElement("div",{className:n},i.createElement("span",null,this.survey.completedStateText),t))}var o={__html:this.survey.processedCompletedHtml};return i.createElement("div",null,i.createElement("div",{dangerouslySetInnerHTML:o}),e)},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return i.createElement("div",{dangerouslySetInnerHTML:e})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return i.createElement("div",{dangerouslySetInnerHTML:e})},t.prototype.renderStartPage=function(){var e=this.survey.startedPage?this.renderPage(this.survey.startedPage):null,t=this.survey.startedPage?this.survey.startedPage.id:"",r=this.renderNavigation();return i.createElement("div",{ref:"root",className:this.css.root},i.createElement("div",{id:t,className:this.css.body},e),r)},t.prototype.renderSurvey=function(){var e=this.renderTitle(),t=this.survey.currentPage?this.renderPage(this.survey.currentPage):null,r=this.survey.currentPage?this.survey.currentPage.id:"",n="top"==this.survey.showProgressBar?this.renderProgress(!0):null,o="bottom"==this.survey.showProgressBar?this.renderProgress(!1):null,a=t?this.renderNavigation():null;return t||(t=this.renderEmptySurvey()),i.createElement("div",{ref:"root",className:this.css.root},i.createElement("div",{className:"sv_custom_header"}),i.createElement("div",{className:"sv_container"},e,i.createElement("div",{id:r,className:this.css.body},n,this.renderTimerPanel("top"),t,this.renderTimerPanel("bottom"),o,a)))},t.prototype.renderTitle=function(){var e=null;return this.survey.title&&this.survey.showTitle&&(e=h.a.renderLocString(this.survey.locTitle)),i.createElement("div",{className:this.css.header},i.createElement("h3",null,e))},t.prototype.renderTimerPanel=function(e){return this.survey.showTimerPanel!=e?null:i.createElement(p.a,{survey:this.survey,css:this.css})},t.prototype.renderPage=function(e){return i.createElement(a.a,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderProgress=function(e){return i.createElement(c.a,{survey:this.survey,css:this.css,isTop:e})},t.prototype.renderNavigation=function(){return i.createElement(s.a,{survey:this.survey,css:this.css})},t.prototype.renderEmptySurvey=function(){return i.createElement("span",null,this.survey.emptySurveyText)},t.prototype.updateSurvey=function(e){if(e?e.model?this.survey=e.model:e.json&&(this.survey=new o.a(e.json)):this.survey=new o.a,e){var t=function(){if("model"==n||"children"==n)return"continue";if("css"==n)return r.survey.mergeCss(e.css,r.css),"continue";if(0==n.indexOf("on")&&r.survey[n]&&r.survey[n].add){var t=e[n],i=function(e,r){t(e,r)};r.survey[n].add(i)}else r.survey[n]=e[n]},r=this;for(var n in e)t()}this.survey.currentPage;this.setSurveyEvents(e)},t.prototype.getState=function(){return{pageIndexChange:0,isCompleted:!1,modelChanged:0}},t.prototype.setSurveyEvents=function(e){var t=this;this.survey.renderCallback=function(){t.setState({modelChanged:t.state.modelChanged+1})},this.survey.onComplete.add(function(e){t.setState({isCompleted:!0})}),this.survey.onPartialSend.add(function(e){t.setState(t.state)}),this.survey.onCurrentPageChanged.add(function(r,n){t.isCurrentPageChanged=!0,t.setState({pageIndexChange:t.state.pageIndexChange+1}),e&&e.onCurrentPageChanged&&e.onCurrentPageChanged(r,n)}),this.survey.onVisibleChanged.add(function(e,t){if(t.question&&t.question.react){var r=t.question.react.state;r.visible=t.question.visible,t.question.react.setState(r)}}),this.survey.onValueChanged.add(function(t,r){if(r.question&&r.question.react){var n=r.question.react.state;n.value=r.value,r.question.react.setState(n)}e&&e.data&&(e.data[r.name]=r.value)})},t.prototype.createQuestionElement=function(e){return u.a.Instance.createQuestion(e.getTemplate(),{question:e,isDisplayMode:e.isReadOnly,creator:this})},t.prototype.renderError=function(e,t,r){return i.createElement("div",{key:e,className:r.error.item},t)},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(i.Component)},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(11),a=r(3),s=r(1),u=r(9);r.d(t,"a",function(){return c});var l=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,r){Array.isArray(e[t])?e[t].push(r):void 0!==e[t]?e[t]=[e[t]].concat(r):"object"==typeof r&&1===Object.keys(r).length&&Object.keys(r)[0]===t?e[t]=r[t]:e[t]=r},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var r=0;r<e.children.length;r++){var n=e.children[r],i={};this.xml2Json(n,i),this.assignValue(t,n.nodeName,i)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),r={};return this.xml2Json(t,r),r},e}(),c=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.processedUrl="",t.processedPath="",t.error=null,t}return n.b(t,e),t.getCachedItemsResult=function(e){var r=e.objHash,n=t.itemsResult[r];return!!n&&(e.getResultCallback&&e.getResultCallback(n),!0)},t.prototype.run=function(e){if(void 0===e&&(e=null),this.url&&this.getResultCallback){if(this.processedText(e),!this.processedUrl)return void this.getResultCallback([]);this.lastObjHash!=this.objHash&&(this.lastObjHash=this.objHash,this.useChangedItemsResults()||(this.error=null,this.sendRequest()))}},t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.processedText=function(e){if(e){var t=e.processTextEx(this.url),r=e.processTextEx(this.path);t.hasAllValuesOnLastRun&&r.hasAllValuesOnLastRun?(this.processedUrl=t.text,this.processedPath=r.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=this.url,this.processedPath=this.path},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<")){t=(new l).parseXmlString(e)}else t=JSON.parse(e);return t},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var t=this;e.onload=function(){200===e.status?t.onLoad(t.parseResponse(e.response)):t.onError(e.statusText,e.responseText)},e.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!(this.url||this.path||this.valueName||this.titleName)},enumerable:!0,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=new Array,r=0;r<e.length;r++)t.push(this.getCustomPropertyName(e[r].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=a.b.metaData.getProperties(this.itemValueType),t=[],r=0;r<e.length;r++)"value"!==e[r].name&&"text"!==e[r].name&&t.push(e[r]);return t},t.prototype.setData=function(e){this.clear(),e.url&&(this.url=e.url),e.path&&(this.path=e.path),e.valueName&&(this.valueName=e.valueName),e.titleName&&(this.titleName=e.titleName);for(var t=this.getCustomPropertiesNames(),r=0;r<t.length;r++)e[t[r]]&&(this[t[r]]=e[t[r]])},t.prototype.getData=function(){if(this.isEmpty)return null;var e={};this.url&&(e.url=this.url),this.path&&(e.path=this.path),this.valueName&&(e.valueName=this.valueName),this.titleName&&(e.titleName=this.titleName);for(var t=this.getCustomPropertiesNames(),r=0;r<t.length;r++)this[t[r]]&&(e[t[r]]=this[t[r]]);return e},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url","")},set:function(e){this.setPropertyValue("url",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=a.b.metaData.findProperty(this.owner.getType(),"choices");return e?"itemvalues"==e.type?"itemvalue":e.type:"itemvalue"},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.onLoad=function(e){var r=[];if((e=this.getResultAfterPath(e))&&e.length)for(var n=0;n<e.length;n++){var i=e[n];if(i){var a=this.getValue(i),l=this.getTitle(i),c=new o.a(a,l);this.setCustomProperties(c,i),r.push(c)}}else this.error=new u.c(s.a.getString("urlGetChoicesError"));t.itemsResult[this.objHash]=r,this.getResultCallback(r)},t.prototype.setCustomProperties=function(e,t){for(var r=this.getCustomProperties(),n=0;n<r.length;n++){var i=r[n],o=this.getValueCore(t,this.getPropertyBinding(i.name));this.isValueEmpty(o)||(e[i.name]=o)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,t){this.error=new u.c(s.a.getString("urlRequestError").format(e,t)),this.getResultCallback([])},t.prototype.getResultAfterPath=function(e){if(!e)return e;if(!this.processedPath)return e;for(var t=this.getPathes(),r=0;r<t.length;r++)if(!(e=e[t[r]]))return null;return e},t.prototype.getPathes=function(){var e=[];return e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(","),0==e.length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.getTitle=function(e){var t=this.titleName?this.titleName:"title";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(t.indexOf(".")<0)return e[t];for(var r=t.split("."),n=0;n<r.length;n++)if(!(e=e[r[n]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName},enumerable:!0,configurable:!0}),t.itemsResult={},t}(i.c);a.b.metaData.addClass("choicesByUrl",["url","path","valueName","titleName"],function(){return new c})},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(){function e(e,t){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.values={},this.htmlValues={},this.onGetTextCallback=null,this.onCreating()}return Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner?this.owner.getLocale():""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){var e=this.pureText;return this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pureText",{get:function(){var t=this.locale;t||(t=e.defaultLocale);var r=this.values[t];return r||t===e.defaultLocale||(r=this.values[e.defaultLocale]),r||(r=""),r},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){var e=this.textOrHtml;return this.onRenderedHtmlCallback?this.onRenderedHtmlCallback(e):e},enumerable:!0,configurable:!0}),e.prototype.getLocaleText=function(t){t||(t=e.defaultLocale);var r=this.values[t];return r||""},e.prototype.setLocaleText=function(t,r){r!=this.getLocaleText(t)&&(t||(t=e.defaultLocale),delete this.htmlValues[t],r?"string"==typeof r&&(t!=e.defaultLocale&&r==this.getLocaleText(e.defaultLocale)?this.setLocaleText(t,null):(this.values[t]=r,t==e.defaultLocale&&this.deleteValuesEqualsToDefault(r))):this.values[t]&&delete this.values[t],this.onChanged())},e.prototype.getJson=function(){var t=Object.keys(this.values);return 0==t.length?null:1==t.length&&t[0]==e.defaultLocale?this.values[t[0]]:this.values},e.prototype.setJson=function(e){if(this.values={},this.htmlValues={},e){if("string"==typeof e)this.setLocaleText(null,e);else for(var t in e)this.setLocaleText(t,e[t]);this.onChanged()}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var t=this.text;if(!t)return!1;var r=this.locale;return r||(r=e.defaultLocale),r in this.htmlValues||(this.htmlValues[r]=this.owner.getMarkdownHtml(t)),!!this.htmlValues[r]},e.prototype.getHtmlValue=function(){var t=this.locale;return t||(t=e.defaultLocale),this.htmlValues[t]},e.prototype.deleteValuesEqualsToDefault=function(t){for(var r=Object.keys(this.values),n=0;n<r.length;n++)r[n]!=e.defaultLocale&&this.values[r[n]]==t&&delete this.values[r[n]]},e.defaultLocale="default",e}()},function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(7),a=r(13),s=r(5),u=r(12),l=r(9);r.d(t,"c",function(){return c}),r.d(t,"b",function(){return p}),r.d(t,"a",function(){return h});var c=function(){function e(e){this.panel=e,this.elements=[],this.visibleValue=e.isDesignMode}return Object.defineProperty(e.prototype,"questions",{get:function(){return this.elements},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.visibleValue},set:function(e){e!=this.visible&&(this.visibleValue=e,this.onVisibleChanged())},enumerable:!0,configurable:!0}),e.prototype.updateVisible=function(){this.visible=this.calcVisible(),this.setWidth()},e.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},e.prototype.onVisibleChanged=function(){this.visibilityChangedCallback&&this.visibilityChangedCallback()},e.prototype.setWidth=function(){var e=this.getVisibleCount();if(0!=e)for(var t=0,r=0;r<this.elements.length;r++)if(this.elements[r].isVisible){var n=this.elements[r];n.renderWidth=n.width?n.width:Math.floor(100/e)+"%",n.rightIndent=t<e-1?1:0,t++}else this.elements[r].renderWidth=""},e.prototype.getVisibleCount=function(){for(var e=0,t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e++;return e},e.prototype.calcVisible=function(){return this.getVisibleCount()>0},e}(),p=function(e){function t(r){void 0===r&&(r="");var n=e.call(this,r)||this;n.name=r,n.rowValues=null,n.conditionRunner=null,n.isQuestionsReady=!1,n.questionsValue=new Array,n.elementsValue=n.createNewArray("elements",function(e){i.onAddElement(e,i.elementsValue.length)},function(e){i.onRemoveElement(e)}),n.registerFunctionOnPropertyValueChanged("elements",function(){i.markQuestionListDirty(),i.onRowsChanged()}),n.id=t.getPanelId();var i=n;return n.createLocalizableString("title",n,!0).onRenderedHtmlCallback=function(e){return i.getRenderedTitle(e)},n.createLocalizableString("description",n,!0).onGetTextCallback=function(e){return i.getProcessedHtml(e)},n.createLocalizableString("requiredErrorText",n),n}return n.b(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.isDesignMode&&this.onVisibleChanged();for(var r=0;r<this.elements.length;r++)this.elements[r].setSurveyImpl(t)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title")},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"description",{get:function(){return this.getLocalizableStringText("description")},set:function(e){this.setLocalizableStringText("description",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescription",{get:function(){return""!=this.description},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.survey?this.survey.getMarkdownHtml(e):null},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e={error:{}};return this.copyCssClasses(e,this.css),this.copyCssClasses(e.error,this.css.error),this.survey&&this.survey.updatePanelCssClasses(this,e),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return u.b.getCss()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel)for(var r=t.questions,n=0;n<r.length;n++)this.questionsValue.push(r[n]);else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!0,configurable:!0}),t.prototype.getQuestionByName=function(e){for(var t=this.questions,r=0;r<t.length;r++)if(t[r].name==e)return t[r];return null},t.prototype.getQuestionByValueName=function(e){for(var t=this.questions,r=0;r<t.length;r++)if(t[r].getValueName()==e)return t[r];return null},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!0,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var r=this.elements[t];if(r==e)return!0;if(r.isPanel&&r.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var r={fireCallback:e,focuseOnFirstError:t,firstErrorQuestion:null,result:!1};return this.hasErrorsCore(r),r.firstErrorQuestion&&r.firstErrorQuestion.focus(!0),r.result},t.prototype.hasRequiredError=function(e){if(this.isRequired){var t=this.errors.length;this.errors=[];var r=[];if(this.addQuestionsToList(r,!0),0!=r.length){for(var n=0;n<r.length;n++)if(!r[n].isEmpty())return;e.result=!0,this.errors.push(new l.e(this.requiredErrorText)),e.firstErrorQuestion||(e.firstErrorQuestion=r[0]),e.fireCallback&&(t!=this.errors.length||t>0)&&this.errorsChangedCallback&&this.errorsChangedCallback()}}},t.prototype.hasErrorsCore=function(e){for(var t=0;t<this.elements.length;t++)if(this.elements[t].isVisible)if(this.elements[t].isPanel)this.elements[t].hasErrorsCore(e);else{var r=this.elements[t];if(r.isReadOnly)continue;r.hasErrors(e.fireCallback)&&(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=r),e.result=!0)}this.hasRequiredError(e)},t.prototype.addQuestionsToList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!1)},t.prototype.addPanelsIntoList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!0)},t.prototype.addElementsToList=function(e,t,r,n){t&&!this.visible||this.addElementsToListCore(e,this.elements,t,r,n)},t.prototype.addElementsToListCore=function(e,t,r,n,i){for(var o=0;o<t.length;o++){var a=t[o];r&&!a.visible||((i&&a.isPanel||!i&&!a.isPanel)&&e.push(a),a.isPanel?a.addElementsToListCore(e,a.elements,r,n,i):n&&this.addElementsToListCore(e,a.getElementsInDesign(!1),r,n,i))}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.rowValues||(this.rowValues=this.buildRows()),this.rowValues},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!this.survey||this.survey.currentPage==this.root},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation","default")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),t.prototype.createRow=function(){return new c(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.rowsChangedCallback&&this.rowsChangedCallback()},t.prototype.onRowsChanged=function(){this.rowValues=null,this.rowsChangedCallback&&!this.isLoadingFromJson&&this.rowsChangedCallback()},t.prototype.onAddElement=function(e,t){if(e.setSurveyImpl(this.surveyImpl),e.parent=this,e.isPanel){var r=e;this.survey&&this.survey.panelAdded(r,t,this,this.root)}else if(this.survey){var n=e;this.survey.questionAdded(n,t,this,this.root)}var i=this;e.registerFunctionOnPropertiesValueChanged(["visible","isVisible"],function(){i.onElementVisibilityChanged(e)},this.id),e.registerFunctionOnPropertyValueChanged("startWithNewLine",function(){i.onElementStartWithNewLineChanged(e)},this.id)},t.prototype.onRemoveElement=function(e){e.parent=null,e.unRegisterFunctionOnPropertiesValueChanged(["visible","isVisible","startWithNewLine"],this.id),e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e)},t.prototype.onElementVisibilityChanged=function(e){this.rowValues&&this.updateRowsVisibility(e),this.parent&&this.parent.onElementVisibilityChanged(this)},t.prototype.onElementStartWithNewLineChanged=function(e){this.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=0;t<this.rowValues.length;t++){var r=this.rowValues[t];if(r.elements.indexOf(e)>-1){r.updateVisible();break}}},t.prototype.buildRows=function(){for(var e=new Array,t=0;t<this.elements.length;t++){var r=this.elements[t],n=0==t||r.startWithNewLine,i=n?this.createRow():e[e.length-1];n&&e.push(i),i.addElement(r)}for(var t=0;t<e.length;t++)e[t].updateVisible();return e},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!0,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),this.isLoadingFromJson||this.onVisibleChanged())},enumerable:!0,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.isDesignMode||this.getIsPageVisible(null)},enumerable:!0,configurable:!0}),t.prototype.getIsPageVisible=function(e){if(!this.visible)return!1;for(var t=0;t<this.questions.length;t++)if(this.questions[t]!=e&&this.questions[t].visible)return!0;return!1},t.prototype.addElement=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e))},t.prototype.addQuestion=function(e,t){void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t){void 0===t&&(t=null);var r=s.a.Instance.createQuestion(e,t);return this.addQuestion(r),r},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t),t},t.prototype.createNewPanel=function(e){return new h(e)},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(t,1),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e){for(var t=0;t<this.elements.length;t++)this.elements[t].runCondition(e);this.visibleIf&&(this.conditionRunner||(this.conditionRunner=new a.a(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.visible=this.conditionRunner.run(e))},t.prototype.onLocaleChanged=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onLocaleChanged();this.locTitle.onChanged()},t.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.elements.length;t++)this.elements[t].onAnyValueChanged(e);var r=this.locTitle.text;r&&r.toLocaleLowerCase().indexOf("{"+e.toLowerCase())>-1&&this.locTitle.onChanged()},t.panelCounter=100,t}(o.a),h=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;r.name=t;var n=r;return r.registerFunctionOnPropertyValueChanged("state",function(){n.stateChangedCallback&&n.stateChangedCallback()}),r}return n.b(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","default")},set:function(e){this.setPropertyValue("state",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return"collapsed"==this.state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){if(!this.isDesignMode)return"expanded"==this.state},enumerable:!0,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.hasErrorsCore=function(t){e.prototype.hasErrorsCore.call(this,t),this.isCollapsed&&t.result&&t.fireCallback&&this.expand()},t.prototype.getRenderedTitle=function(t){if(!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent",0)},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine",!0)},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!0,configurable:!0}),t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.setPropertyValue("isVisible",this.isVisible),null!=this.survey&&this.survey.panelVisibilityChanged(this,this.visible)},t}(p);i.b.metaData.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1},{name:"visible:boolean",default:!0},"visibleIf:condition",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],function(){return new p}),i.b.metaData.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,choices:function(e){var t=e?e.survey:null;return t?t.pages:[]}}],function(){return new h},"panelbase")},function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(8),a=r(10),s=r(7),u=r(17),l=r(15),c=r(11),p=r(1),h=r(16),d=r(21),f=r(5);r.d(t,"b",function(){return g}),r.d(t,"a",function(){return m}),r.d(t,"c",function(){return y}),r.d(t,"d",function(){return v});var g=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;n.colOwner=null,n.validators=new Array,n.name=t,n.choicesValue=n.createItemValues("choices");var i=n;return n.createLocalizableString("title",n,!0).onRenderedHtmlCallback=function(e){return i.getFullTitle(e)},n.createLocalizableString("optionsCaption",n),n.createLocalizableString("placeHolder",n),n.choicesByUrl=new d.a,r&&(n.title=r),n}return n.b(t,e),t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(e){this.setPropertyValue("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder","none")},set:function(e){e=e.toLocaleLowerCase(),this.setPropertyValue("choicesOrder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType","text")},set:function(e){e=e.toLocaleLowerCase(),this.setPropertyValue("inputType",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType","default")},set:function(e){e=e.toLocaleLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.name)},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.getFullTitle(this.locTitle.textOrHtml)},enumerable:!0,configurable:!0}),t.prototype.getFullTitle=function(e){if(e||(e=this.name),this.isRequired){var t=this.colOwner?this.colOwner.getRequiredText():"";t&&(t+=" "),e=t+e}return e},Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption")},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.choicesValue},set:function(e){this.setPropertyValue("choices",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",-1)},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired",!1)},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.getPropertyValue("hasOther",!1)},set:function(e){this.setPropertyValue("hasOther",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"booleanDefaultValue",{get:function(){return this.getPropertyValue("booleanDefaultValue","indeterminate")},set:function(e){this.setPropertyValue("booleanDefaultValue",e)},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.colOwner?this.colOwner.getMarkdownHtml(e):null},t.prototype.propertyValueChanged=function(t,r,n){e.prototype.propertyValueChanged.call(this,t,r,n),null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnPropertiesChanged(this)},t}(s.c),m=function(){function e(e,t,r){var n=this;this.column=e,this.row=t,this.data=r,this.questionValue=r.createQuestion(this.row,this.column),this.questionValue.validateValueCallback=function(){return r.validateCell(t,e.name,t.value)},i.a.getProperties(e.getType()).forEach(function(t){var r=t.name;void 0!==e[r]&&null==n.questionValue.getPropertyValue(r,null)&&(n.questionValue[r]=e[r])}),Object.keys(e).forEach(function(e){}),this.questionValue.updateCustomWidget()}return Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!0,configurable:!0}),e.prototype.runCondition=function(e){this.question.runCondition(e)},e}(),y=function(){function e(t,r){this.rowValues={},this.isSettingValue=!1,this.cells=[],this.data=t,this.value=r,this.textPreProcessor=new u.a;var n=this;this.textPreProcessor.onProcess=function(e){n.getProcessedTextValue(e)};for(var i=0;i<this.data.columns.length;i++)void 0===this.rowValues[this.data.columns[i].name]&&(this.rowValues[this.data.columns[i].name]=null);this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.rowValues},set:function(e){if(this.isSettingValue=!0,this.rowValues={},null!=e)for(var t in e)this.rowValues[t]=e[t];for(var r=0;r<this.cells.length;r++)this.cells[r].question.onSurveyValueChanged(this.getValue(this.cells[r].column.name));this.isSettingValue=!1},enumerable:!0,configurable:!0}),e.prototype.getAllValues=function(){return this.value},e.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.cells.length;t++)this.cells[t].question.onAnyValueChanged(e)},e.prototype.getValue=function(e){return this.rowValues[e]},e.prototype.setValue=function(e,t){this.isSettingValue||(""===t&&(t=null),null!=t?this.rowValues[e]=t:delete this.rowValues[e],this.data.onRowChanged(this,e,this.value),this.onAnyValueChanged("row"))},e.prototype.getComment=function(e){var t=this.getValue(e+s.c.commentPrefix);return t||""},e.prototype.setComment=function(e,t){this.setValue(e+s.c.commentPrefix,t)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(a.a.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!0,configurable:!0}),e.prototype.getQuestionByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t].question;return null},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e){return this.data?this.data.getMarkdownHtml(e):null},e.prototype.onLocaleChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].question.onLocaleChanged()},e.prototype.runCondition=function(e){e.row=this.value;for(var t=0;t<this.cells.length;t++)this.cells[t].runCondition(e)},e.prototype.buildCells=function(){for(var e=this.data.columns,t=0;t<e.length;t++){var r=e[t];this.cells.push(this.createCell(r))}},e.prototype.createCell=function(e){return new m(e,this,this.data)},e.prototype.geSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getProcessedTextValue=function(e){var t=(new l.a).getFirstName(e.name);if(e.isExists="row"==t,e.isExists){var r={row:this.value};e.value=(new l.a).getValue(e.name,r)}},e.prototype.getTextProcessor=function(){return this},e.prototype.processText=function(e,t){return e=this.textPreProcessor.process(e,t),this.getSurvey().processText(e,t)},e.prototype.processTextEx=function(e){e=this.processText(e,!0);var t=this.textPreProcessor.hasAllValuesOnLastRun,r=this.getSurvey().processTextEx(e);return r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&t,r},e.idCounter=1,e}(),v=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.isRowChanging=!1,r.generatedVisibleRows=null;var n=r;return r.columnsValue=r.createNewArray("columns",function(e){e.colOwner=n}),r.choicesValue=r.createItemValues("choices"),r.createLocalizableString("optionsCaption",r),r.registerFunctionOnPropertyValueChanged("columns",function(){n.generatedVisibleRows=null,n.fireCallback(n.columnsChangedCallback)}),r}return n.b(t,e),t.addDefaultColumns=function(e){for(var t=f.a.DefaultColums,r=0;r<t.length;r++)e.addColumn(t[r])},t.prototype.getType=function(){return"matrixdropdownbase"},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.columnsValue},set:function(e){this.setPropertyValue("columns",e)},enumerable:!0,configurable:!0}),t.prototype.onMatrixRowCreated=function(e){if(this.survey)for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.columns.length;r++){t.column=this.columns[r],t.columnName=t.column.name;var n=e.cells[r];t.cell=n,t.cellQuestion=n.question,t.value=n.value,this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType","dropdown")},set:function(e){e=e.toLowerCase(),this.cellType!=e&&(this.setPropertyValue("cellType",e),this.fireCallback(this.updateCellsCallback))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount",0)},set:function(e){e<0||e>4||(this.setPropertyValue("columnColCount",e),this.fireCallback(this.updateCellsCallback))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll",!1)},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!0,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.onColumnPropertiesChanged=function(e){if(this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++)for(var r=this.generatedVisibleRows[t],n=0;n<r.cells.length;n++)if(r.cells[n].column===e){this.setQuestionProperties(r.cells[n].question,e,r);break}},t.prototype.runCondition=function(t){e.prototype.runCondition.call(this,t),this.runCellsCondition(t)},t.prototype.runCellsCondition=function(e){if(this.generatedVisibleRows){var t={};e&&e instanceof Object&&(t=JSON.parse(JSON.stringify(e))),t.row={};for(var r=this.generatedVisibleRows,n=0;n<r.length;n++)r[n].runCondition(t)}},t.prototype.onLocaleChanged=function(){e.prototype.onLocaleChanged.call(this);for(var t=0;t<this.columns.length;t++)this.columns[t].onLocaleChanged();var r=this.visibleRows;if(r){for(var t=0;t<r.length;t++)r[t].onLocaleChanged();this.fireCallback(this.updateCellsCallback)}},t.prototype.getColumnName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnWidth=function(e){return e.minWidth?e.minWidth:this.columnMinWidth},Object.defineProperty(t.prototype,"choices",{get:function(){return this.choicesValue},set:function(e){this.setPropertyValue("choices",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",p.a.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!0,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var r=new g(e,t);return this.columnsValue.push(r),r},Object.defineProperty(t.prototype,"visibleRows",{get:function(){if(!this.isLoadingFromJson)return this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.data&&this.runCellsCondition(this.data.getAllValues())),this.generatedVisibleRows},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.generatedVisibleRows=null},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;if(e>=t.length)return null;var r=this.createNewValue(this.value);return this.getRowValueCore(t[e],r)},t.prototype.setRowValue=function(e,t){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;this.onRowChanged(r[e],"",t),this.onValueChanged()},t.prototype.generateRows=function(){return null},t.prototype.createNewValue=function(e){return e||{}},t.prototype.getRowValueCore=function(e,t,r){void 0===r&&(r=!1);var n=t[e.rowName]?t[e.rowName]:null;return!n&&r&&(n={},t[e.rowName]=n),n},t.prototype.getRowDisplayValue=function(e,t){for(var r=0;r<this.columns.length;r++){var n=this.columns[r];t[n.name]&&(t[n.name]=e.cells[r].question.displayValue)}return t},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onValueChanged=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(this.value),t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var r=this.generatedVisibleRows[t].cells;if(r)for(var n=0;n<r.length;n++){var i=r[n].question;if(i&&(!i.supportGoNextPageAutomatic()||!i.value))return!1}}return!0},t.prototype.hasErrors=function(t){void 0===t&&(t=!0);var r=this.hasErrorInColumns(t);return e.prototype.hasErrors.call(this,t)||r},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=this.generatedVisibleRows,n=0;n<r.length;n++)for(var i=r[n],o=0;o<i.cells.length;o++){var a=i.cells[o].question.getAllErrors();a&&a.length>0&&(t=t.concat(a))}return t},t.prototype.hasErrorInColumns=function(e){if(!this.generatedVisibleRows)return!1;for(var t=!1,r=0;r<this.generatedVisibleRows.length;r++){var n=this.generatedVisibleRows[r].cells;if(n)for(var i=0;i<this.columns.length;i++)if(n[i]){var o=n[i].question;t=o&&o.visible&&o.hasErrors(e)||t}}return t},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++)for(var r=this.generatedVisibleRows[t].cells,n=0;n<this.columns.length;n++){if(!e)return r[n].question;if(r[n].question.currentErrorCount>0)return r[n].question}return null},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var r="default"==t.cellType?this.cellType:t.cellType,n=this.createCellQuestion(r,t.name);return n.setSurveyImpl(e),this.setQuestionProperties(n,t,e),n},t.prototype.getColumnChoices=function(e){return e.choices&&e.choices.length>0?e.choices:this.choices},t.prototype.getColumnOptionsCaption=function(e){return e.optionsCaption?e.optionsCaption:this.optionsCaption},t.prototype.setQuestionProperties=function(e,t,r){if(e){e.name=t.name,e.isRequired=t.isRequired,e.hasOther=t.hasOther,e.readOnly=this.readOnly,e.validators=t.validators,e.visibleIf=t.visibleIf,e.enableIf=t.enableIf,t.hasOther&&e instanceof h.b&&(e.storeOthersAsComment=!1);var n=e.getType();"checkbox"!=n&&"radiogroup"!=n||(e.colCount=t.colCount>-1?t.colCount:this.columnColCount,this.setSelectBaseProperties(e,t,r)),"dropdown"==n&&(e.optionsCaption=this.getColumnOptionsCaption(t),this.setSelectBaseProperties(e,t,r)),"text"==n&&(e.inputType=t.inputType,e.placeHolder=t.placeHolder),"comment"==n&&(e.placeHolder=t.placeHolder),"boolean"==n&&(e.defaultValue=t.booleanDefaultValue,e.showTitle=!0)}},t.prototype.setSelectBaseProperties=function(e,t,r){e.choicesOrder=t.choicesOrder,e.choices=this.getColumnChoices(t),e.choicesByUrl.setData(t.choicesByUrl),e.choicesByUrl.isEmpty||e.choicesByUrl.run(r)},t.prototype.createCellQuestion=function(e,t){return f.a.Instance.createQuestion(e,t)},t.prototype.deleteRowValue=function(e,t){return delete e[t.rowName],0==Object.keys(e).length?null:e},t.prototype.onAnyValueChanged=function(e){if(!this.isLoadingFromJson)for(var t=this.visibleRows,r=0;r<t.length;r++)t[r].onAnyValueChanged(e)},t.prototype.onCellValueChanged=function(e,t,r){if(this.survey){var n=this,i=function(t){for(var r=0;n.columns.length;r++)if(n.columns[r].name==t)return e.cells[r].question;return null},o={row:e,columnName:t,rowValue:r,value:r[t],getCellQuestion:i};this.survey.matrixCellValueChanged(this,o)}},t.prototype.validateCell=function(e,t,r){if(this.survey){var n={row:e,columnName:t,rowValue:r,value:r[t]};return this.survey.matrixCellValidate(this,n)}},t.prototype.onRowChanged=function(e,t,r){var n=this.createNewValue(this.value);this.isMatrixValueEmpty(n)&&(n=null);var i=this.createNewValue(this.value),o=this.getRowValueCore(e,i,!0);o||(o={});for(var a in o)delete o[a];if(r){r=JSON.parse(JSON.stringify(r));for(var a in r)this.isValueEmpty(r[a])||(o[a]=r[a])}0==Object.keys(o).length&&(i=this.deleteRowValue(i,e)),this.isTwoValueEquals(n,i)||(this.isRowChanging=!0,this.setNewValue(i),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,o))},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},t.prototype.getSurvey=function(){return this.survey},t}(o.a);i.b.metaData.addClass("matrixdropdowncolumn",["name",{name:"title",serializationProperty:"locTitle"},{name:"choices:itemvalues",onGetValue:function(e){return c.a.getData(e.choices)},onSetValue:function(e,t){e.choices=t}},{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"cellType",default:"default",choices:["default","dropdown","checkbox","radiogroup","text","comment","boolean"]},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","hasOther:boolean","minWidth",{name:"placeHolder",serializationProperty:"locPlaceHolder"},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"]},{name:"choicesByUrl:restfull",className:"ChoicesRestfull",onGetValue:function(e){return e.choicesByUrl.isEmpty?null:e.choicesByUrl},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},{name:"booleanDefaultValue",default:"indeterminate",choices:["indeterminate","false","true"]},{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},"visibleIf:condition","enableIf:condition",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new g("")}),i.b.metaData.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},"horizontalScroll:boolean",{name:"choices:itemvalues",onGetValue:function(e){return c.a.getData(e.choices)},onSetValue:function(e,t){e.choices=t}},{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"cellType",default:"dropdown",choices:["dropdown","checkbox","radiogroup","text","comment","boolean"]},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth"],function(){return new v("")},"question")},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(3),a=r(13),s=r(12),u=r(35);r.d(t,"a",function(){return l});var l=function(e){function t(r){var n=e.call(this,r)||this;return n.name=r,n.conditionRunner=null,n.isCustomWidgetRequested=!1,n.customWidgetData={isNeedRender:!0},n.localeChanged=new i.b,n.id=t.getQuestionId(),n.onCreating(),n}return n.b(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.getType=function(){return"questionbase"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.survey&&this.survey.isDesignMode&&this.onVisibleChanged()},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!0,configurable:!0}),t.prototype.isAnswerCorrect=function(){return!1},t.prototype.getValueName=function(){return this.name},Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.survey&&this.survey.questionVisibilityChanged(this,this.visible))},enumerable:!0,configurable:!0}),t.prototype.onVisibleChanged=function(){this.setPropertyValue("isVisible",this.isVisible),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[],this.fireCallback(this.errorsChangedCallback))},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible||this.isDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!0,configurable:!0}),t.prototype.hasErrors=function(e){return void 0===e&&(e=!0),!1},t.prototype.isEmpty=function(){return!0},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDescription",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!0,configurable:!0}),t.prototype.getAllErrors=function(){return[]},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!0,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=u.a.Instance.getCustomWidget(this)},Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine",!0)},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e=this.css,t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),this.survey&&this.survey.updateQuestionCssClasses(this,t),t},enumerable:!0,configurable:!0}),t.prototype.getRootCss=function(e){return e.question.root},t.prototype.updateCssClasses=function(e,t){var r=t[this.getType()];if(void 0!==r&&null!==r)if("string"==typeof r||r instanceof String)e.root=r;else for(var n in r)e[n]=r[n]},Object.defineProperty(t.prototype,"css",{get:function(){return s.b.getCss()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent",0)},set:function(e){this.setPropertyValue("indent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!0,configurable:!0}),t.prototype.focus=function(e){void 0===e&&(e=!1)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.onCreating=function(){},t.prototype.runCondition=function(e){this.visibleIf&&(this.conditionRunner||(this.conditionRunner=new a.a(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.visible=this.conditionRunner.run(e))},t.prototype.onSurveyValueChanged=function(e){},t.prototype.onSurveyLoad=function(){this.fireCallback(this.surveyLoadCallback)},t.prototype.setVisibleIndex=function(e){return this.visibleIndex==e?1:(this.setPropertyValue("visibleIndex",e),1)},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.clearUnusedValues=function(){},Object.defineProperty(t.prototype,"displayValue",{get:function(){return""},enumerable:!0,configurable:!0}),t.prototype.clearValue=function(){},t.prototype.clearValueIfInvisible=function(){},t.prototype.onLocaleChanged=function(){e.prototype.onLocaleChanged.call(this),this.localeChanged.fire(this,this.getLocale())},t.prototype.onReadOnlyChanged=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.survey?this.survey.getMarkdownHtml(e):null},t.questionCounter=100,t}(i.a);o.b.metaData.addClass("questionbase",["!name",{name:"visible:boolean",default:!0},"visibleIf:condition",{name:"width"},{name:"startWithNewLine:boolean",default:!0},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,choices:function(e){var t=e?e.survey:null;return t?t.pages:[]}}])},function(e,t,r){"use strict";var n=r(0),i=r(2);r.n(i);r.d(t,"a",function(){return o});var o=function(e){function t(t){var r=e.call(this,t)||this;return r.updateStateFunction=null,r.survey=t.survey,r.css=t.css,r.state={update:0},r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(e){this.survey=e.survey,this.css=e.css},t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(i.Component)},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(28)),a=r(4);r.d(t,"a",function(){return s}),r.d(t,"c",function(){return u}),r.d(t,"b",function(){return l});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.page=t.page,r.survey=t.survey,r.creator=t.creator,r.css=t.css,r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(e){this.page=e.page,this.survey=e.survey,this.creator=e.creator,this.css=e.css},t.prototype.componentDidMount=function(){this.doAfterRender()},t.prototype.componentDidUpdate=function(e,t){this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.refs.root;e&&this.survey&&this.survey.afterRenderPage(e)},t.prototype.render=function(){if(null==this.page||null==this.survey||null==this.creator)return null;for(var e=this.renderTitle(),t=this.renderDescription(),r=[],n=this.page.rows,o=this,a=0;a<n.length;a++){n[a].visibilityChangedCallback=function(){o.forceUpdate()},r.push(this.createRow(n[a],a))}return i.createElement("div",{ref:"root",className:this.css.page.root},e,t,r)},t.prototype.createRow=function(e,t){var r="row"+(t+1);return i.createElement(l,{key:r,row:e,survey:this.survey,creator:this.creator,css:this.css})},t.prototype.renderTitle=function(){if(!this.page.title||!this.survey.showPageTitles)return null;var e=a.a.renderLocString(this.page.locTitle);return i.createElement("h4",{className:this.css.pageTitle},e)},t.prototype.renderDescription=function(){if(!this.page.description||!this.survey.showPageTitles)return null;var e=a.a.renderLocString(this.page.locDescription);return i.createElement("div",{className:this.css.pageDescription},e)},t}(i.Component),u=function(e){function t(t){var r=e.call(this,t)||this;return r.panel=t.panel,r.survey=t.survey,r.creator=t.creator,r.css=t.css,r.state={modelChanged:0},r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(e){this.panel=e.panel,this.survey=e.survey,this.creator=e.creator,this.css=e.css},t.prototype.componentDidMount=function(){var e=this;this.doAfterRender(),this.panel.registerFunctionOnPropertiesValueChanged(["isVisible","renderWidth","innerIndent","rightIndent","state"],function(){e.setState({modelChanged:e.state.modelChanged+1})},"react")},t.prototype.componentDidUpdate=function(e,t){this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.refs.root;e&&this.survey&&this.survey.afterRenderPanel(this.panel,e)},t.prototype.componentWillUnmount=function(){this.panel&&this.panel.unRegisterFunctionOnPropertiesValueChanged(["isVisible","renderWidth","innerIndent","rightIndent","state"],"react")},t.prototype.render=function(){if(null==this.panel||null==this.survey||null==this.creator)return null;if(!this.panel.isVisible)return null;for(var e=this.renderTitle(),t=this.renderDescription(),r=i.createElement(o.b,{element:this.panel,cssClasses:this.panel.cssClasses,creator:this.creator}),n=[],a=this.panel.rows,s=this,u=0;u<a.length;u++){a[u].visibilityChangedCallback=function(){s.forceUpdate()},n.push(this.createRow(a[u],u))}var l={paddingLeft:this.panel.innerIndent*this.css.question.indent+"px",display:this.panel.isCollapsed?"none":"block"},c={};return this.panel.renderWidth&&(c.width=this.panel.renderWidth),i.createElement("div",{ref:"root",className:this.css.panel.container,style:c},e,t,r,i.createElement("div",{style:l},n))},t.prototype.createRow=function(e,t){var r="row"+(t+1);return i.createElement(l,{key:r,row:e,survey:this.survey,creator:this.creator,css:this.css})},t.prototype.renderTitle=function(){var e=this;if(!this.panel.title)return null;var t=a.a.renderLocString(this.panel.locTitle),r=null;if(this.panel.isCollapsed||this.panel.isExpanded){var n="sv_panel_icon";this.panel.isCollapsed||(n+=" sv_expanded");var o=function(){e.panel.isCollapsed?e.panel.expand():e.panel.collapse(),e.setState({modelChanged:e.state.modelChanged+1})};r=i.createElement("span",{className:n})}return i.createElement("h4",{className:this.css.panel.title,onClick:o},t,r)},t.prototype.renderDescription=function(){if(!this.panel.description)return null;var e=a.a.renderLocString(this.panel.locDescription);return i.createElement("div",{className:this.css.panel.description},e)},t}(i.Component),l=function(e){function t(t){var r=e.call(this,t)||this;return r.setProperties(t),r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(e){this.setProperties(e)},t.prototype.setProperties=function(e){this.row=e.row,this.survey=e.survey,this.creator=e.creator,this.css=e.css},t.prototype.render=function(){if(null==this.row||null==this.survey||null==this.creator)return null;if(this.row.visible){for(var e=[],t=0;t<this.row.elements.length;t++){var r=this.row.elements[t];e.push(this.createQuestion(r))}return i.createElement("div",{className:this.css.row},e)}return null},t.prototype.createQuestion=function(e){return e.isPanel?i.createElement(u,{key:e.name,panel:e,creator:this.creator,survey:this.survey,css:this.css}):i.createElement(o.a,{key:e.name,question:e,creator:this.creator,css:this.css})},t}(i.Component)},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(8)),a=r(7),s=r(14),u=r(4),l=r(37);r.d(t,"a",function(){return c}),r.d(t,"b",function(){return p});var c=function(e){function t(t){var r=e.call(this,t)||this;return r.setQuestion(t.question),r.state=r.getState(),r.creator=t.creator,r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(e){this.creator=e.creator,this.setQuestion(e.question),this.setState(this.getState())},t.prototype.setQuestion=function(e){this.questionBase=e,this.question=e instanceof o.a?e:null},t.prototype.getState=function(){var e=this.question?this.question.value:null;return{visible:this.questionBase.visible,value:e,error:0,renderWidth:0,visibleIndexValue:-1,isReadOnly:this.questionBase.isReadOnly}},t.prototype.componentDidMount=function(){if(this.questionBase){var e=this;this.questionBase.react=e,this.questionBase.registerFunctionOnPropertiesValueChanged(["renderWidth","indent","rightIndent"],function(){e.setState({renderWidth:e.state.renderWidth+1})},"react"),this.questionBase.registerFunctionOnPropertyValueChanged("visibleIndex",function(){e.setState({visibleIndexValue:e.questionBase.visibleIndex})},"react"),this.questionBase.registerFunctionOnPropertyValueChanged("isReadOnly",function(){e.setState({isReadOnly:e.questionBase.isReadOnly})},"react")}this.doAfterRender()},t.prototype.componentWillUnmount=function(){this.questionBase&&(this.questionBase.react=null,this.questionBase.unRegisterFunctionOnPropertiesValueChanged(["visibleIndex","renderWidth","indent","rightIndent, isReadOnly"],"react"))},t.prototype.componentDidUpdate=function(e,t){this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.questionBase){var e=this.refs.root;e&&this.questionBase.survey&&this.questionBase.survey.afterRenderQuestion(this.questionBase,e)}},t.prototype.render=function(){if(!this.questionBase||!this.creator)return null;if(!this.questionBase.visible)return null;var e=this.questionBase.cssClasses,t=this.renderQuestion(),r=this.questionBase.hasTitle?this.renderTitle(e):null,n=this.renderDescription(e),o=this.question?this.question.getTitleLocation():"",a="top"===o?r:null,s="bottom"===o?r:null,u="left"===o?r:null,l="left"===o?"title-left":null,c="left"===o?"content-left":null,p="left"===o?n:null,h="top"===o?n:null,d="bottom"===o?n:null,f="left"===o?e.mainRoot+" sv_qstn_left":e.mainRoot,g=this.question&&this.question.hasComment?this.renderComment(e):null,m=this.renderErrors(e),y="top"===this.creator.questionErrorLocation()?m:null,v="bottom"===this.creator.questionErrorLocation()?m:null,b=this.questionBase.indent>0?this.questionBase.indent*e.indent+"px":null,P=this.questionBase.rightIndent>0?this.questionBase.rightIndent*e.indent+"px":null,C={};return this.questionBase.renderWidth&&(C.width=this.questionBase.renderWidth),b&&(C.paddingLeft=b),P&&(C.paddingRight=P),i.createElement("div",{ref:"root",id:this.questionBase.id,className:f,style:C},i.createElement("div",{className:l},a,h,u,p),i.createElement("div",{className:c},y,t,g,v,s,d))},t.prototype.renderQuestion=function(){return this.questionBase.customWidget?i.createElement(l.a,{creator:this.creator,question:this.questionBase}):this.creator.createQuestionElement(this.questionBase)},t.prototype.renderTitle=function(e){var t=u.a.renderLocString(this.question.locTitle);return i.createElement("h5",{className:e.title},t)},t.prototype.renderDescription=function(e){if(!this.questionBase.hasDescription)return null;var t=u.a.renderLocString(this.question.locDescription);return i.createElement("div",{className:e.description},t)},t.prototype.renderComment=function(e){var t=u.a.renderLocString(this.question.locCommentText);return i.createElement("div",null,i.createElement("div",null,t),i.createElement(s.a,{question:this.question,cssClasses:e}))},t.prototype.renderErrors=function(e){return i.createElement(p,{element:this.question,cssClasses:e,creator:this.creator})},t}(i.Component),p=function(e){function t(t){var r=e.call(this,t)||this;return r.setElement(t.element),r.state=r.getState(),r.creator=t.creator,r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(e){this.setElement(e.element),this.setState(this.getState()),this.creator=e.creator},t.prototype.setElement=function(e){if(this.element=e instanceof a.a?e:null,this.element){var t=this;this.element.errorsChangedCallback=function(){t.setState(t.getState(t.state))}}},t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.render=function(){if(!this.element||0==this.element.errors.length)return null;for(var e=[],t=0;t<this.element.errors.length;t++){var r=this.element.errors[t].getText(),n="error"+t;e.push(this.creator.renderError(n,r,this.cssClasses))}return i.createElement("div",{role:"alert",className:this.cssClasses.error.root},e)},t}(u.c)},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(9),a=r(1),s=r(3);r.d(t,"h",function(){return u}),r.d(t,"f",function(){return l}),r.d(t,"a",function(){return c}),r.d(t,"d",function(){return p}),r.d(t,"g",function(){return h}),r.d(t,"b",function(){return d}),r.d(t,"e",function(){return f}),r.d(t,"c",function(){return g});var u=function(){function e(e,t){void 0===t&&(t=null),this.value=e,this.error=t}return e}(),l=function(e){function t(){var t=e.call(this)||this;return t.text="",t}return n.b(t,e),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t){return void 0===t&&(t=null),null},t}(i.c),c=function(){function e(){}return e.prototype.run=function(e){for(var t=0;t<e.validators.length;t++){var r=e.validators[t].validate(e.validatedValue,e.getValidatorTitle());if(null!=r){if(r.error)return r.error;r.value&&(e.validatedValue=r.value)}}return null},e}(),p=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minValue=t,n.maxValue=r,n}return n.b(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t){if(void 0===t&&(t=null),!this.isNumber(e))return new u(null,new o.b);var r=new u(parseFloat(e));return null!==this.minValue&&this.minValue>r.value?(r.error=new o.c(this.getErrorText(t)),r):null!==this.maxValue&&this.maxValue<r.value?(r.error=new o.c(this.getErrorText(t)),r):"number"==typeof e?null:r},t.prototype.getDefaultErrorText=function(e){var t=e||a.a.getString("value");return null!==this.minValue&&null!==this.maxValue?a.a.getString("numericMinMax").format(t,this.minValue,this.maxValue):null!==this.minValue?a.a.getString("numericMin").format(t,this.minValue):a.a.getString("numericMax").format(t,this.maxValue)},t.prototype.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},t}(l),h=function(e){function t(t,r){void 0===t&&(t=0),void 0===r&&(r=0);var n=e.call(this)||this;return n.minLength=t,n.maxLength=r,n}return n.b(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t){return void 0===t&&(t=null),this.minLength>0&&e.length<this.minLength?new u(null,new o.c(this.getErrorText(t))):this.maxLength>0&&e.length>this.maxLength?new u(null,new o.c(this.getErrorText(t))):null},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?a.a.getString("textMinMaxLength").format(this.minLength,this.maxLength):this.minLength>0?a.a.getString("textMinLength").format(this.minLength):a.a.getString("textMaxLength").format(this.maxLength)},t}(l),d=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minCount=t,n.maxCount=r,n}return n.b(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t){if(void 0===t&&(t=null),null==e||e.constructor!=Array)return null;var r=e.length;return this.minCount&&r<this.minCount?new u(null,new o.c(this.getErrorText(a.a.getString("minSelectError").format(this.minCount)))):this.maxCount&&r>this.maxCount?new u(null,new o.c(this.getErrorText(a.a.getString("maxSelectError").format(this.maxCount)))):null},t.prototype.getDefaultErrorText=function(e){return e},t}(l),f=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.regex=t,r}return n.b(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t){if(void 0===t&&(t=null),!this.regex||!e)return null;var r=new RegExp(this.regex);if(Array.isArray(e))for(var n=0;n<e.length;n++){var i=this.hasError(r,e[n],t);if(i)return i}return this.hasError(r,e,t)},t.prototype.hasError=function(e,t,r){return e.test(t)?null:new u(t,new o.c(this.getErrorText(r)))},t}(l),g=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i,t}return n.b(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t){return void 0===t&&(t=null),e?this.re.test(e)?null:new u(e,new o.c(this.getErrorText(t))):null},t.prototype.getDefaultErrorText=function(e){return a.a.getString("invalidEmail")},t}(l);s.b.metaData.addClass("surveyvalidator",["text"]),s.b.metaData.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new p},"surveyvalidator"),s.b.metaData.addClass("textvalidator",["minLength:number","maxLength:number"],function(){return new h},"surveyvalidator"),s.b.metaData.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new d},"surveyvalidator"),s.b.metaData.addClass("regexvalidator",["regex"],function(){return new f},"surveyvalidator"),s.b.metaData.addClass("emailvalidator",[],function(){return new g},"surveyvalidator")},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(20)),a=r(19),s=r(4);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnExpanded=r.handleOnExpanded.bind(r),r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(e){this.updateSurvey(e)},t.prototype.handleOnExpanded=function(e){this.window.isExpanded=!this.window.isExpanded},t.prototype.render=function(){if(!this.window.isShowing)return null;var e=this.renderHeader(),t=this.window.isExpanded?this.renderBody():null,r={position:"fixed",bottom:3,right:10};return i.createElement("div",{className:this.css.window.root,style:r},e,t)},t.prototype.renderHeader=function(){var e={width:"100%",cursor:"pointer"},t={paddingRight:"10px"},r=this.window.isExpanded?this.css.window.header.buttonCollapsed:this.css.window.header.buttonExpanded;r="glyphicon pull-right "+r;var n=s.a.renderLocString(this.survey.locTitle);return i.createElement("div",{className:this.css.window.header.root},i.createElement("span",{onClick:this.handleOnExpanded,style:e},i.createElement("span",{className:this.css.window.header.title,style:t},n),i.createElement("span",{className:r,"aria-hidden":"true"})))},t.prototype.renderBody=function(){return i.createElement("div",{className:this.css.window.body},this.renderSurvey())},t.prototype.updateSurvey=function(t){t||(t={}),t.window?this.window=t.window:t.json?this.window=new a.b(t.json):t.model&&(this.window=new a.b(null,t.model)),this.window||(this.window=new a.b),t.model=this.window.survey,(t.expanded||t.isExpanded)&&this.window.expand(),this.window.isShowing=!0,e.prototype.updateSurvey.call(this,t),this.setState({expanded:this.window.isExpanded,isShowing:this.window.isShowing});var r=this;this.window.expandedChangedCallback=function(){r.setState({expanded:r.window.isExpanded})},this.window.showingChangedCallback=function(){r.setState({isShowing:r.window.isShowing})},this.survey.onComplete.add(function(e){r.window.hide()})},t}(o.a)},function(e,t,r){"use strict";var n=r(13);r.d(t,"a",function(){return i});var i=function(){function e(){}return e.prototype.parse=function(e,t){return this.setProperties(e,t),this.parseText()},e.prototype.parseExpression=function(e){return this.setProperties(e,new n.b),this.readExpressionOperand()},e.prototype.setProperties=function(e,t){this.text=e,this.at=0,this.length=this.text.length,this.root=t,this.root.clear(),this.node=this.root,this.expressionNodes=[],this.expressionNodes.push(this.node)},e.prototype.toString=function(e){return e.toString()},e.prototype.parseText=function(){return this.readConditions()&&this.at>=this.length},e.prototype.readConditions=function(){var e=this.readCondition();if(!e)return e;var t=this.readConnective();return!t||(this.addConnective(t),this.readConditions())},e.prototype.readCondition=function(){var e=this.readExpression();if(e<0)return!1;if(1==e)return!0;var t=this.readExpressionOperand();if(!t)return!1;var r=this.readOperator();if(!r){if(t.isBoolean){var i=new n.c;return i.left=t,this.addCondition(i),!0}return!1}var i=new n.c;if(i.left=t,i.operator=r,!n.c.isNoRightOperation(r)){var o=this.readExpressionOperand();if(!o)return!1;i.right=o}return this.addCondition(i),!0},e.prototype.readOperand=function(){var e=this.readString();if(!e)return null;var t=this.readParameters();if(t){var r=new n.d(e);return r.parameters=t,r}return new n.e(e)},e.prototype.readExpression=function(){if(this.skip(),this.at>=this.length||"("!=this.ch)return 0;this.at++,this.pushExpression();var e=this.readConditions();return e?(this.skip(),e=")"==this.ch,this.at++,this.popExpression(),1):-1},e.prototype.readExpressionOperand=function(e,t){if(void 0===e&&(e=null),void 0===t&&(t=null),this.skip(),this.at>=this.length)return null;var r=this.isOpenBracket(this.ch);r&&(this.at++,this.pushExpression());var i=this.readOperand();if(!i)return null;var o=this.readOperandOperator();if(!o){if(null!=e&&(e.right=i,i=e),this.isCloseBracket(this.ch)){e=t&&t.length>0?t.pop():null;var a=this.at;this.at++,o=this.readOperandOperator();var s=o||e&&e.isOpenBracket;o||(this.at=a+(s?1:0)),s&&this.popExpression()}if(o){var u=new n.f;return u.left=e||i,u.operator=o,this.readExpressionOperand(u,t)}return i}var u=new n.f;if(u.isOpenBracket=r,u.left=i,u.operator=o,t||(t=[]),(0==t.length||r)&&t.push(u),e){if(r||!this.isHighPriorityOperand(e.operator)&&this.isHighPriorityOperand(o))return e.right=this.readExpressionOperand(u,t),e;e.right=i,u.left=e;var l=t.indexOf(e);l>-1&&(t[l]=u)}return this.readExpressionOperand(u,t)},Object.defineProperty(e.prototype,"ch",{get:function(){return this.text.charAt(this.at)},enumerable:!0,configurable:!0}),e.prototype.skip=function(){for(;this.at<this.length&&this.isSpace(this.ch);)this.at++},e.prototype.isSpace=function(e){return" "==e||"\n"==e||"\t"==e||"\r"==e},e.prototype.isQuotes=function(e){return"'"==e||'"'==e},e.prototype.isComma=function(e){return","==e},e.prototype.isOperatorChar=function(e){return">"==e||"<"==e||"="==e||"!"==e||"+"==e||"-"==e||"*"==e||"/"==e||"%"==e},e.prototype.isOpenBracket=function(e){return"("==e},e.prototype.isCloseBracket=function(e){return")"==e},e.prototype.isBrackets=function(e){return this.isOpenBracket(e)||this.isCloseBracket(e)},e.prototype.readString=function(){if(this.skip(),this.at>=this.length)return null;var e=this.at,t=this.isQuotes(this.ch),r="{"==this.ch;t&&this.at++;for(var n=this.isOperatorChar(this.ch),i=!1;this.at<this.length;)if(r){var o="}"==this.ch;if(this.at++,o)break}else{if(!t&&this.isSpace(this.ch))break;if(this.isQuotes(this.ch)&&!i){t&&this.at++;break}if(!t){if("-"!=this.ch&&n!=this.isOperatorChar(this.ch))break;if(this.isBrackets(this.ch)||this.isComma(this.ch))break}i="\\"===this.ch,this.at++}if(this.at<=e)return null;var a=this.text.substr(e,this.at-e);if(a&&a.length>1&&this.isQuotes(a[0])){var s=a.length-1;this.isQuotes(a[a.length-1])&&s--,a=a.substr(1,s)}return a},e.prototype.readParameter=function(){for(var t=0,r=this.at;this.at<this.length&&(this.isOpenBracket(this.ch)&&t++,this.isCloseBracket(this.ch)&&t--,!(t<0))&&(0!==t||","!==this.ch);)this.at++;var i=this.text.substring(r,this.at);if(!i)return null;var o=new e,a=new n.b;return o.parse(i,a)?new n.g(a):o.parseExpression(i)},e.prototype.readParameters=function(){if(!this.isOpenBracket(this.ch))return null;for(var e=[];this.at<this.length&&!this.isCloseBracket(this.ch);){this.at++;var t=this.readParameter();t&&e.push(t)}return this.at++,e},e.prototype.isHighPriorityOperand=function(e){return"*"==e||"/"==e||"%"==e},e.prototype.readOperandOperator=function(){if(this.skip(),"+"==this.ch||"-"==this.ch||"*"==this.ch||"/"==this.ch||"%"==this.ch){var e=this.ch;return this.at++,e}return null},e.prototype.readOperator=function(){this.skip();var e=this.at,t=this.readString();return t?(t=t.toLowerCase(),">"==t&&(t="greater"),"<"==t&&(t="less"),">="!=t&&"=>"!=t||(t="greaterorequal"),"<="!=t&&"=<"!=t||(t="lessorequal"),"="!=t&&"=="!=t||(t="equal"),"<>"!=t&&"!="!=t||(t="notequal"),"equals"==t&&(t="equal"),"notequals"==t&&(t="notequals"),"contain"!=t&&"*="!=t||(t="contains"),"notcontain"==t&&(t="notcontains"),n.c.isCorrectOperator(t)?t:(this.at=e,null)):null},e.prototype.readConnective=function(){var e=this.readString();return e?(e=e.toLowerCase(),"&"!=e&&"&&"!=e||(e="and"),"|"!=e&&"||"!=e||(e="or"),"and"!=e&&"or"!=e&&(e=null),e):null},e.prototype.pushExpression=function(){var e=null;this.expressionNodes.push(e),this.node=e},e.prototype.makeNodeCondition=function(){this.node&&this.node.children||(this.node=new n.b,this.expressionNodes[this.expressionNodes.length-1]=this.node)},e.prototype.popExpression=function(){var e=this.expressionNodes.pop();this.node=this.expressionNodes[this.expressionNodes.length-1],e&&(this.makeNodeCondition(),this.node.children.push(e))},e.prototype.addCondition=function(e){this.makeNodeCondition(),this.node.children.push(e)},e.prototype.addConnective=function(e){if(this.makeNodeCondition(),this.node.children.length<2)this.node.connective=e;else if(this.node.connective!=e){var t=this.node.connective,r=this.node.children;this.node.clear(),this.node.connective=e;var i=new n.b;i.connective=t,i.children=r,this.node.children.push(i);var o=new n.b;this.node.children.push(o),this.node=o}},e}()},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(){function e(){}return e.prototype.loadSurvey=function(t,r){var n=new XMLHttpRequest;n.open("GET",e.serviceUrl+"/getSurvey?surveyId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=JSON.parse(n.response);r(200==n.status,e,n.response)},n.send()},e.prototype.getSurveyJsonAndIsCompleted=function(t,r,n){var i=new XMLHttpRequest;i.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+r),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.onload=function(){var e=JSON.parse(i.response),t=e?e.survey:null,r=e?e.isCompleted:null;n(200==i.status,t,r,i.response)},i.send()},e.prototype.sendResult=function(t,r,n,i,o){void 0===i&&(i=null),void 0===o&&(o=!1);var a=new XMLHttpRequest;a.open("POST",e.serviceUrl+"/post/"),a.setRequestHeader("Content-Type","application/json; charset=utf-8");var s={postId:t,surveyResult:JSON.stringify(r)};i&&(s.clientId=i),o&&(s.isPartialCompleted=!0);var u=JSON.stringify(s);a.onload=a.onerror=function(){n&&n(200==a.status,a.response)},a.send(u)},e.prototype.sendFile=function(t,r,n){var i=new XMLHttpRequest;i.onload=i.onerror=function(){n&&n(200==i.status,JSON.parse(i.response))},i.open("POST",e.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",r),o.append("postId",t),i.send(o)},e.prototype.getResult=function(t,r,n){var i=new XMLHttpRequest,o="resultId="+t+"&name="+r;i.open("GET",e.serviceUrl+"/getResult?"+o),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");i.onload=function(){var e=null,t=null;if(200==i.status){e=JSON.parse(i.response),t=[];for(var r in e.QuestionResult){var o={name:r,value:e.QuestionResult[r]};t.push(o)}}n(200==i.status,e,t,i.response)},i.send()},e.prototype.isCompleted=function(t,r,n){var i=new XMLHttpRequest,o="resultId="+t+"&clientId="+r;i.open("GET",e.serviceUrl+"/isCompleted?"+o),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");i.onload=function(){var e=null;200==i.status&&(e=JSON.parse(i.response)),n(200==i.status,e,i.response)},i.send()},e.serviceUrl="https://dxsurveyapi.azurewebsites.net/api/Survey",e}()},function(e,t,r){"use strict";function n(e){for(var t=0,r=0;r<e.length;r++)t+=e[r];return t}function i(e){if(2!=e.length)return 0;var t=e[0];if(Array.isArray(t)){var r=e[1];if("string"!=typeof r&&!(r instanceof String))return 0;for(var n=0,i=0;i<t.length;i++){var o=t[i];o&&o[r]&&(n+=o[r])}return n}}function o(e){return e||3===e.length?e[0]?e[1]:e[2]:""}function a(e){if(!e&&e.length<1)return null;if(!e[0])return null;var t=new Date(e[0]),r=Date.now()-t.getTime(),n=new Date(r);return Math.abs(n.getUTCFullYear()-1970)}r.d(t,"a",function(){return s});var s=function(){function e(){this.functionHash={}}return e.prototype.register=function(e,t){this.functionHash[e]=t},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t){var r=this.functionHash[e];return r?r(t):null},e.Instance=new e,e}();s.Instance.register("sum",n),s.Instance.register("sumInArray",i),s.Instance.register("iif",o),s.Instance.register("age",a)},function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(10),a=r(7),s=r(23);r.d(t,"a",function(){return u});var u=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.name=t,r.hasShownValue=!1,r}return n.b(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!0,configurable:!0}),t.prototype.getIsPageVisible=function(t){return!this.isStarted&&e.prototype.getIsPageVisible.call(this,t)},Object.defineProperty(t.prototype,"num",{get:function(){return this.getPropertyValue("num",-1)},set:function(e){this.num!=e&&(this.setPropertyValue("num",e),this.onNumChanged(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility","inherit")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!0,configurable:!0}),t.prototype.getRenderedTitle=function(t){return t=e.prototype.getRenderedTitle.call(this,t),this.num>0&&(t=this.num+". "+t),t},Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!0,configurable:!0}),t.prototype.setWasShown=function(e){this.survey.isDesignMode||e!=this.hasShownValue&&(1==e&&this.areQuestionsRandomized&&this.randomizeElements(),this.hasShownValue=e)},t.prototype.randomizeElements=function(){for(var e=[],t=0;t<this.elements.length;t++)e.push(this.elements[t]);var r=o.a.randomizeArray(e);this.elements.splice(0,this.elements.length);for(var t=0;t<r.length;t++)this.elements.push(r[t])},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder","default")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!0,configurable:!0}),t.prototype.focusFirstQuestion=function(){for(var e=0;e<this.questions.length;e++){var t=this.questions[e];if(t.visible&&t.hasInput){this.questions[e].focus();break}}},t.prototype.focusFirstErrorQuestion=function(){for(var e=0;e<this.questions.length;e++)if(this.questions[e].visible&&0!=this.questions[e].currentErrorCount){this.questions[e].focus(!0);break}},t.prototype.scrollToTop=function(){a.a.ScrollElementToTop(this.id)},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.getPropertyValue("timeSpent",0)},set:function(e){this.setPropertyValue("timeSpent",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!0,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.visible)},t}(s.b);i.b.metaData.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"maxTimeToFinish:number",default:0}],function(){return new u},"panelbase")},function(e,t,r){"use strict";var n=r(7);r.d(t,"b",function(){return i}),r.d(t,"a",function(){return o});var i=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){this.widgetJson.afterRender&&this.widgetJson.afterRender(e,t)},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.isFit=function(e){return!(!this.isLibraryLoaded()||!this.widgetJson.isFit)&&this.widgetJson.isFit(e)},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||1==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!0,configurable:!0}),e}(),o=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new n.b}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!0,configurable:!0}),e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var r=e.name;r||(r="widget_"+this.widgets.length+1);var n=new i(r,e);this.widgetsValues.push(n),this.widgetsActivatedBy[r]=t,n.activatedByChanged(t),this.onCustomWidgetAdded.fire(n,null)},e.prototype.getActivatedBy=function(e){var t=this.widgetsActivatedBy[e];return t||"property"},e.prototype.setActivatedBy=function(e,t){if(e&&t){var r=this.getCustomWidgetByName(e);r&&(this.widgetsActivatedBy[e]=t,r.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}()},function(e,t,r){"use strict";var n=r(0),i=r(5),o=r(3),a=r(8);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("placeHolder",r),r}return n.b(t,e),t.prototype.getType=function(){return"text"},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType","text")},set:function(e){e=e.toLowerCase(),"datetime_local"==e&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size",25)},set:function(e){this.setPropertyValue("size",e)},enumerable:!0,configurable:!0}),t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!0,configurable:!0}),t.prototype.setNewValue=function(t){t=this.correctValueType(t),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){return e&&("number"==this.inputType||"range"==this.inputType)?this.isNumber(e)?parseFloat(e):"":e},t.prototype.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},t}(a.a);o.b.metaData.addClass("text",[{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"size:number",default:25},{name:"placeHolder",serializationProperty:"locPlaceHolder"}],function(){return new s("")},"question"),i.a.Instance.registerQuestion("text",function(e){return new s(e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4));r.d(t,"a",function(){return a});var a=function(e){function t(t){var r=e.call(this,t)||this;return r.localeChangedHandler=function(e){return e.customWidgetData.isNeedRender=!0},r}return n.b(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.refs.widget;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){this.questionBase&&(this._afterRender(),this.questionBase.localeChanged.add(this.localeChangedHandler))},t.prototype.componentDidUpdate=function(){this.questionBase&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(this.questionBase.customWidget){var e=this.refs.widget;e&&this.questionBase.customWidget.willUnmount(this.questionBase,e)}this.questionBase.localeChanged.remove(this.localeChangedHandler)},t.prototype.render=function(){if(!this.questionBase||!this.creator)return null;if(!this.questionBase.visible)return null;var e=this.questionBase.customWidget;if(e.isDefaultRender)return i.createElement("div",{ref:"widget"},this.creator.createQuestionElement(this.questionBase));var t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var r={__html:e.htmlTemplate};return i.createElement("div",{ref:"widget",dangerouslySetInnerHTML:r})}return i.createElement("div",{ref:"widget"},t)},t}(o.b)},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(26));r.d(t,"a",function(){return a});var a=function(e){function t(t){var r=e.call(this,t)||this;return r.handlePrevClick=r.handlePrevClick.bind(r),r.handleNextClick=r.handleNextClick.bind(r),r.handleCompleteClick=r.handleCompleteClick.bind(r),r.handleStartClick=r.handleStartClick.bind(r),r}return n.b(t,e),t.prototype.handlePrevClick=function(e){this.survey.prevPage()},t.prototype.handleNextClick=function(e){this.survey.nextPage()},t.prototype.handleCompleteClick=function(e){this.survey.completeLastPage()},t.prototype.handleStartClick=function(e){this.survey.start()},t.prototype.render=function(){if(!this.survey||!this.survey.isNavigationButtonsShowing)return null;var e="starting"===this.survey.state,t=e||this.survey.isFirstPage||!this.survey.isShowPrevButton?null:this.renderButton(this.handlePrevClick,this.survey.pagePrevText,this.css.navigation.prev),r=e||this.survey.isLastPage?null:this.renderButton(this.handleNextClick,this.survey.pageNextText,this.css.navigation.next),n=!e&&this.survey.isLastPage&&this.survey.isEditMode?this.renderButton(this.handleCompleteClick,this.survey.completeText,this.css.navigation.complete):null,o=e?this.renderButton(this.handleStartClick,this.survey.startSurveyText,this.css.navigationButton.start):null;return i.createElement("div",{className:this.css.footer},o,t,r,n)},t.prototype.renderButton=function(e,t,r){var n={marginRight:"5px"},o=this.css.navigationButton+(r?" "+r:"");return i.createElement("input",{className:o,style:n,type:"button",onClick:e,value:t})},t}(o.a)},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(26));r.d(t,"a",function(){return a});var a=function(e){function t(t){var r=e.call(this,t)||this;return r.isTop=t.isTop,r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.isTop=t.isTop},Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.getProgress()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!0,configurable:!0}),t.prototype.render=function(){var e=this.isTop?{}:{marginTop:"1em"},t={width:this.progress+"%"};return i.createElement("div",{className:this.css.progress,style:e},i.createElement("div",{style:t,className:this.css.progressBar,role:"progressbar","aria-valuemin":"0","aria-valuemax":"100"},i.createElement("span",null,this.progressText)))},t}(o.a)},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(28),s=r(6),u=r(37);r.d(t,"a",function(){return l}),r.d(t,"b",function(){return c}),r.d(t,"c",function(){return p});var l=function(e){function t(t){return e.call(this,t)||this}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.render=function(){if(!this.question)return null;for(var e=this.question.cssClasses,t=[],r=0;r<this.question.columns.length;r++){var n=this.question.columns[r],o="column"+r,a=this.question.getColumnWidth(n),s=a?{minWidth:a}:{},u=this.renderLocString(n.locTitle);t.push(i.createElement("th",{key:o,style:s},u))}for(var l=[],p=this.question.visibleRows,r=0;r<p.length;r++){var h=p[r];l.push(i.createElement(c,{key:r,row:h,cssClasses:e,isDisplayMode:this.isDisplayMode,creator:this.creator}))}var d=this.question.horizontalScroll?{overflowX:"scroll"}:{};return i.createElement("div",{style:d},i.createElement("table",{className:e.root},i.createElement("thead",null,i.createElement("tr",null,i.createElement("td",null),t)),i.createElement("tbody",null,l)))},t}(o.b),c=function(e){function t(t){var r=e.call(this,t)||this;return r.setProperties(t),r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setProperties(t)},t.prototype.setProperties=function(e){this.row=e.row,this.creator=e.creator},t.prototype.render=function(){if(!this.row)return null;for(var e=[],t=0;t<this.row.cells.length;t++){var r=this.row.cells[t],n=i.createElement(p,{key:"row"+t,cssClasses:this.cssClasses,cell:r,creator:this.creator});e.push(n)}var o=this.renderLocString(this.row.locText);return i.createElement("tr",null,i.createElement("td",null,o),e)},t}(o.c),p=function(e){function t(t){var r=e.call(this,t)||this;if(r.setProperties(t),r.cell&&r.cell.question){var n=r.cell.question;r.state={isReadOnly:n.isReadOnly,visible:n.visible}}return r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setProperties(t)},t.prototype.setProperties=function(e){this.cell=e.cell,this.creator=e.creator},t.prototype.componentDidMount=function(){var e=this.refs.cell;if(e&&this.cell&&this.cell.question.survey){var t={cell:this.cell,cellQuestion:this.cell.question,htmlElement:e,row:this.cell.row,column:this.cell.column};this.cell.question.survey.matrixAfterCellRender(this.cell.question,t)}if(this.cell&&this.cell.question){var r=this;this.cell.question.registerFunctionOnPropertyValueChanged("isReadOnly",function(){r.setState({isReadOnly:r.cell.question.isReadOnly})},"react"),this.cell.question.registerFunctionOnPropertyValueChanged("visible",function(){r.setState({visible:r.cell.question.visible})},"react")}},t.prototype.componentWillUnmount=function(){this.cell&&this.cell.question&&this.cell.question.unRegisterFunctionOnPropertiesValueChanged(["visible","isReadOnly"],"react")},t.prototype.render=function(){if(!this.cell)return null;var e=i.createElement(a.b,{element:this.cell.question,cssClasses:this.cssClasses,creator:this.creator}),t=this.renderCell();return i.createElement("td",{ref:"cell",className:this.cssClasses.itemValue},e,t)},t.prototype.renderCell=function(){return this.cell.question.visible?this.cell.question.customWidget?i.createElement(u.a,{creator:this.creator,question:this.cell.question}):this.creator.createQuestionElement(this.cell.question):null},t}(o.c);s.a.Instance.registerQuestion("matrixdropdown",function(e){return i.createElement(l,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2);r.n(i);r.d(t,"a",function(){return o});var o=function(e){function t(t){var r=e.call(this,t)||this;return r.survey=t.survey,r.css=t.css,r.state={timeSpent:0},r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(e){this.survey=e.survey,this.css=e.css},t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.survey.registerFunctionOnPropertyValueChanged("timeSpent",function(){e.setState({timeSpent:e.survey.timeSpent})},"timerPanel")}},t.prototype.componentWillUnmount=function(){this.survey&&this.survey.unRegisterFunctionOnPropertyValueChanged("timeSpent","timerPanel")},t.prototype.render=function(){if(this.survey)return i.createElement("div",null,this.survey.timerInfoText)},t}(i.Component)},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n=function(){function e(){this.sheet=null,this.sheet=e.findSheet(e.SurveyJSStylesSheetId),this.sheet||(this.sheet=e.createSheet(e.SurveyJSStylesSheetId),this.initializeStyles(this.sheet))}return e.findSheet=function(e){for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode.id===e)return document.styleSheets[t];return null},e.createSheet=function(e){var t=document.createElement("style");return t.id=e,t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet},e.applyTheme=function(t,r){void 0===t&&(t="default"),void 0===r&&(r=".sv_main");var n=e.findSheet(t+r);if(!n){n=e.createSheet(t+r);var i=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(e.ThemeCss).forEach(function(t){var o=e.ThemeCss[t];Object.keys(i).forEach(function(e){return o=o.replace(new RegExp("\\"+e,"g"),i[e])}),n.insertRule(r+t+" { "+o+" }",0)})}},e.prototype.initializeStyles=function(t){Object.keys(e.Styles).forEach(function(r){return t.insertRule(r+" { "+e.Styles[r]+" }",0)})},e.SurveyJSStylesSheetId="surveyjs",e.Styles={".sv_bootstrap_css .sv_qstn":"padding: 0.5em 1em 1.5em 1em;",".sv_bootstrap_css .sv_qcbc input[type=checkbox], .sv_bootstrap_css .sv_qcbc input[type=radio]":"vertical-align: middle; margin-top: -1px",".sv_qstn":"display: inline-block; vertical-align: top;",".progress":"width: 60%;",".progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_p_container":"display: inline-block; vertical-align: top;",".sv_qbln .checkbox-material":"margin-right: 3px;",".sv_qcbx .checkbox-material":"margin-right: 5px;",".sv_qcbx .checkbox label":"justify-content: left; display: inline-block;",".sv_qstn .radio label":"justify-content: left; display: inline-block;",".sv_qstn label.sv_q_m_label":"position: absolute; margin: 0;",".sv_q_mt_item_value":"float: left;",".sv_qstn.sv_qstn_left":"margin-top: 0.75em;",".sv_qstn .title-left":"float: left; margin-right: 1em;",".sv_qstn .content-left":"overflow: hidden",".sv_q_radiogroup_inline .sv_q_radiogroup_other":"display: inline-block;",".sv_q_checkbox_inline .sv_q_checkbox_other":"display: inline-block;",".sv_q_checkbox_inline, .sv_q_radiogroup_inline":"line-height: 2.5em;",".form-inline .sv_q_checkbox_inline:not(:last-child)":"margin-right: 1em;",".form-inline .sv_q_radiogroup_inline:not(:last-child)":"margin-right: 1em;",".sv_qstn fieldset":"border: none; margin: 0; padding: 0;","fieldset.form-inline":"display: inline-block;",".sv_p_title":"cursor: pointer; padding-left: 1em; padding-bottom: 0.3em;",".sv_p_title .sv_panel_icon":"float: right; margin-right: 1em;",".sv_p_title .sv_panel_icon::before":"content: ''; background-repeat: no-repeat; background-position: center; padding: 0.5em; display: inline-block; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxMCAxMCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTAgMTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+DQoJLnN0MHtmaWxsOiM2RDcwNzI7fQ0KPC9zdHlsZT4NCjxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMiwyIDAsNCA1LDkgMTAsNCA4LDIgNSw1ICIvPg0KPC9zdmc+DQo=);",".sv_p_title .sv_panel_icon.sv_expanded::before":"transform: rotate(180deg);"},e.ThemeColors={default:{"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},orange:{"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},darkblue:{"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},darkrose:{"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},stone:{"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},winter:{"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"},winterstone:{"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$header-color":"#fff","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575"}},e.ThemeCss={".sv_default_css":"background-color: $body-container-background-color;",".sv_default_css hr":"border-color: $border-color;",".sv_default_css input[type='button'], .sv_default_css button":"color: $body-background-color; background-color: $main-color;",".sv_default_css input[type='button']:hover, .sv_default_css button:hover":"background-color: $main-hover-color;",".sv_default_css .sv_header":"color: $header-color;",".sv_default_css .sv_custom_header":"background-color: $header-background-color;",".sv_default_css .sv_container":"color: $text-color;",".sv_default_css .sv_body":"background-color: $body-background-color; border-color: $main-color;",".sv_default_css .sv_progress":"background-color: $border-color;",".sv_default_css .sv_progress_bar":"background-color: $main-color;",".sv_default_css .sv_p_root > .sv_row":"border-color: $border-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(odd)":"background-color: $body-background-color;",".sv_default_css .sv_p_root > .sv_row:nth-child(even)":"background-color: $body-container-background-color;",".sv_default_css .sv_q_other input":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_text_root":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_dropdown_control":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css input[type='text']":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css select":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css textarea":"color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_other input:focus":"border-color: $main-color;",".sv_default_css .sv_q_text_root:focus":"border-color: $main-color;",".sv_default_css .sv_q_dropdown_control:focus":"border-color: $main-color;",".sv_default_css input[type='text']:focus":"border-color: $main-color;",".sv_default_css select:focus":"border-color: $main-color;",".sv_default_css textarea:focus":"border-color: $main-color;",".sv_default_css .sv_select_wrapper":"background-color: $body-background-color;",".sv_default_css .sv_select_wrapper::before":"background-color: $main-color;",".sv_default_css .sv_q_rating_item.active .sv_q_rating_item_text":"background-color: $main-hover-color; border-color: $main-hover-color; color: $body-background-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text":"border-color: $border-color;",".sv_default_css .sv_q_rating_item .sv_q_rating_item_text:hover":"border-color: $main-hover-color;",".sv_default_css table.sv_q_matrix tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dropdown tr":"border-color: $border-color;",".sv_default_css table.sv_q_matrix_dynamic tr":"border-color: $border-color;"},e}()},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(18);r.d(t,"a",function(){return a});var a=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.isExpandedValue=!1,n.surveyValue=r||n.createSurvey(t),n.surveyValue.showTitle=!1,"undefined"!=typeof document&&(n.windowElement=document.createElement("div")),n}return n.b(t,e),t.prototype.getType=function(){return"window"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.isShowingValue},set:function(e){this.isShowing!=e&&(this.isShowingValue=e,this.showingChangedCallback&&this.showingChangedCallback())},enumerable:!0,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.isExpandedValue},set:function(e){e?this.expand():this.collapse()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle},enumerable:!0,configurable:!0}),t.prototype.expand=function(){this.expandcollapse(!0)},t.prototype.collapse=function(){this.expandcollapse(!1)},t.prototype.createSurvey=function(e){return new o.a(e)},t.prototype.expandcollapse=function(e){this.isExpandedValue!=e&&(this.isExpandedValue=e,this.expandedChangedCallback&&this.expandedChangedCallback())},t.surveyElementName="windowSurveyJS",t}(i.c)},function(e,t,r){"use strict";var n=r(7);r.d(t,"a",function(){return o});var i={setInterval:function(e){return window.setInterval(e,1e3)},clearInterval:function(e){window.clearInterval(e)}},o=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new n.b}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!0,configurable:!0}),e.prototype.start=function(e){if(void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0){var t=this;this.timerId=i.setInterval(function(){t.doTimer()})}this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),0==--this.listenerCounter&&this.timerId>-1&&(i.clearInterval(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){this.timerId<0||this.onTimer.fire(this,{})},e.instanceValue=null,e}()},function(e,t,r){"use strict";var n=r(54);r.d(t,"T",function(){return n.a}),r.d(t,"U",function(){return n.b}),r.d(t,"V",function(){return n.c}),r.d(t,"W",function(){return n.d}),r.d(t,"X",function(){return n.e}),r.d(t,"Y",function(){return n.f}),r.d(t,"Z",function(){return n.g}),r.d(t,"_0",function(){return n.h}),r.d(t,"_1",function(){return n.i}),r.d(t,"_2",function(){return n.j}),r.d(t,"_3",function(){return n.k}),r.d(t,"_4",function(){return n.l}),r.d(t,"_5",function(){return n.m}),r.d(t,"_6",function(){return n.n}),r.d(t,"_7",function(){return n.o}),r.d(t,"_8",function(){return n.p}),r.d(t,"_9",function(){return n.q}),r.d(t,"_10",function(){return n.r}),r.d(t,"_11",function(){return n.s}),r.d(t,"_12",function(){return n.t}),r.d(t,"_13",function(){return n.u}),r.d(t,"_14",function(){return n.v}),r.d(t,"_15",function(){return n.w}),r.d(t,"_16",function(){return n.x}),r.d(t,"_17",function(){return n.y}),r.d(t,"_18",function(){return n.z}),r.d(t,"_19",function(){return n.A}),r.d(t,"_20",function(){return n.B}),r.d(t,"_21",function(){return n.C}),r.d(t,"_22",function(){return n.D}),r.d(t,"_23",function(){return n.E}),r.d(t,"_24",function(){return n.F}),r.d(t,"_25",function(){return n.G}),r.d(t,"_26",function(){return n.H}),r.d(t,"_27",function(){return n.I}),r.d(t,"_28",function(){return n.J}),r.d(t,"_29",function(){return n.K}),r.d(t,"_30",function(){return n.L}),r.d(t,"_31",function(){return n.M}),r.d(t,"_32",function(){return n.N}),r.d(t,"_33",function(){return n.O}),r.d(t,"_34",function(){return n.P}),r.d(t,"_35",function(){return n.Q}),r.d(t,"_36",function(){return n.R}),r.d(t,"_37",function(){return n.S}),r.d(t,"_38",function(){return n.T}),r.d(t,"_39",function(){return n.U}),r.d(t,"_40",function(){return n.V}),r.d(t,"_41",function(){return n.W}),r.d(t,"_42",function(){return n.X}),r.d(t,"_43",function(){return n.Y}),r.d(t,"_44",function(){return n.Z}),r.d(t,"_45",function(){return n._0}),r.d(t,"_46",function(){return n._1}),r.d(t,"_47",function(){return n._2}),r.d(t,"_48",function(){return n._3}),r.d(t,"_49",function(){return n._4}),r.d(t,"_50",function(){return n._5}),r.d(t,"_51",function(){return n._6}),r.d(t,"_52",function(){return n._7}),r.d(t,"_53",function(){return n._8}),r.d(t,"_54",function(){return n._9}),r.d(t,"_55",function(){return n._10}),r.d(t,"_56",function(){return n._11}),r.d(t,"_57",function(){return n._12}),r.d(t,"_58",function(){return n._13}),r.d(t,"_59",function(){return n._14}),r.d(t,"_60",function(){return n._15}),r.d(t,"_61",function(){return n._16}),r.d(t,"_62",function(){return n._17}),r.d(t,"_63",function(){return n._18}),r.d(t,"_64",function(){return n._19}),r.d(t,"_65",function(){return n._20}),r.d(t,"_66",function(){return n._21}),r.d(t,"_67",function(){return n._22}),r.d(t,"_68",function(){return n._23}),r.d(t,"_69",function(){return n._24}),r.d(t,"_70",function(){return n._25}),r.d(t,"_71",function(){return n._26}),r.d(t,"_72",function(){return n._27}),r.d(t,"_73",function(){return n._28}),r.d(t,"_74",function(){return n._29}),r.d(t,"_75",function(){return n._30}),r.d(t,"_76",function(){return n._31}),r.d(t,"_77",function(){return n._32});var i=(r(53),r(0));r.d(t,"a",function(){return i.a}),r.d(t,"b",function(){return i.b}),r.d(t,"c",function(){return i.c});var o=r(12);r.d(t,"d",function(){return o.a});var a=r(51);r.d(t,"e",function(){return a.a});var s=r(52);r.d(t,"f",function(){return s.a});var u=r(20);r.d(t,"g",function(){return u.a});var l=r(19);r.d(t,"h",function(){return l.a}),r.d(t,"i",function(){return l.b}),r.d(t,"j",function(){return l.a}),r.d(t,"k",function(){return l.b});var c=r(26);r.d(t,"l",function(){return c.a});var p=r(41);r.d(t,"m",function(){return p.a});var h=r(38);r.d(t,"n",function(){return h.a});var d=r(27);r.d(t,"o",function(){return d.a}),r.d(t,"p",function(){return d.b});var f=r(28);r.d(t,"q",function(){return f.a}),r.d(t,"r",function(){return f.b});var g=r(4);r.d(t,"s",function(){return g.a}),r.d(t,"t",function(){return g.b});var m=r(14);r.d(t,"u",function(){return m.a}),r.d(t,"v",function(){return m.b});var y=r(94);r.d(t,"w",function(){return y.a}),r.d(t,"x",function(){return y.b});var v=r(95);r.d(t,"y",function(){return v.a});var b=r(40);r.d(t,"z",function(){return b.a}),r.d(t,"A",function(){return b.b});var P=r(100);r.d(t,"B",function(){return P.a}),r.d(t,"C",function(){return P.b});var C=r(99);r.d(t,"D",function(){return C.a});var x=r(98);r.d(t,"E",function(){return x.a});var w=r(102);r.d(t,"F",function(){return w.a}),r.d(t,"G",function(){return w.b});var V=r(104);r.d(t,"H",function(){return V.a});var S=r(106);r.d(t,"I",function(){return S.a});var T=r(93);r.d(t,"J",function(){return T.a});var O=r(96);r.d(t,"K",function(){return O.a});var E=r(101);r.d(t,"L",function(){return E.a}),r.d(t,"M",function(){return E.b});var q=r(103);r.d(t,"N",function(){return q.a});var R=r(39);r.d(t,"O",function(){return R.a});var _=r(105);r.d(t,"P",function(){return _.a});var k=r(97);r.d(t,"Q",function(){return k.a});var L=r(30);r.d(t,"R",function(){return L.a});var N=r(6);r.d(t,"S",function(){return N.a})},function(t,r){t.exports=e},function(e,t){},function(e,t,r){!function(e,r){r(t)}(0,function(e){function t(e,t,r){this.nodeName=e,this.attributes=t,this.children=r,this.key=t&&t.key}function r(e,r){var n,i,o,a,s;for(s=arguments.length;s-- >2;)A.push(arguments[s]);for(r&&r.children&&(A.length||A.push(r.children),delete r.children);A.length;)if((o=A.pop())instanceof Array)for(s=o.length;s--;)A.push(o[s]);else null!=o&&!0!==o&&!1!==o&&("number"==typeof o&&(o=String(o)),a="string"==typeof o,a&&i?n[n.length-1]+=o:((n||(n=[])).push(o),i=a));var u=new t(e,r||void 0,n||z);return M.vnode&&M.vnode(u),u}function n(e,t){if(t)for(var r in t)e[r]=t[r];return e}function i(e){return n({},e)}function o(e,t){for(var r=t.split("."),n=0;n<r.length&&e;n++)e=e[r[n]];return e}function a(e){return"function"==typeof e}function s(e){return"string"==typeof e}function u(e){var t="";for(var r in e)e[r]&&(t&&(t+=" "),t+=r);return t}function l(e,t){return r(e.nodeName,n(i(e.attributes),t),arguments.length>2?[].slice.call(arguments,2):e.children)}function c(e,t,r){var n=t.split(".");return function(t){for(var i=t&&t.target||this,a={},u=a,l=s(r)?o(t,r):i.nodeName?i.type.match(/^che|rad/)?i.checked:i.value:t,c=0;c<n.length-1;c++)u=u[n[c]]||(u[n[c]]=!c&&e.state[n[c]]||{});u[n[c]]=l,e.setState(a)}}function p(e){!e._dirty&&(e._dirty=!0)&&1==G.push(e)&&(M.debounceRendering||Q)(h)}function h(){var e,t=G;for(G=[];e=t.pop();)e._dirty&&L(e)}function d(e){var t=e&&e.nodeName;return t&&a(t)&&!(t.prototype&&t.prototype.render)}function f(e,t){return e.nodeName(y(e),t||W)}function g(e,t){return s(t)?e instanceof Text:s(t.nodeName)?!e._componentConstructor&&m(e,t.nodeName):a(t.nodeName)?!e._componentConstructor||e._componentConstructor===t.nodeName||d(t):void 0}function m(e,t){return e.normalizedNodeName===t||F(e.nodeName)===F(t)}function y(e){var t=i(e.attributes);t.children=e.children;var r=e.nodeName.defaultProps;if(r)for(var n in r)void 0===t[n]&&(t[n]=r[n]);return t}function v(e){var t=e.parentNode;t&&t.removeChild(e)}function b(e,t,r,n,i){if("className"===t&&(t="class"),"class"===t&&n&&"object"==typeof n&&(n=u(n)),"key"===t);else if("class"!==t||i)if("style"===t){if((!n||s(n)||s(r))&&(e.style.cssText=n||""),n&&"object"==typeof n){if(!s(r))for(var o in r)o in n||(e.style[o]="");for(var o in n)e.style[o]="number"!=typeof n[o]||J[o]?n[o]:n[o]+"px"}}else if("dangerouslySetInnerHTML"===t)n&&(e.innerHTML=n.__html||"");else if("o"==t[0]&&"n"==t[1]){var l=e._listeners||(e._listeners={});t=F(t.substring(2)),n?l[t]||e.addEventListener(t,C,!!$[t]):l[t]&&e.removeEventListener(t,C,!!$[t]),l[t]=n}else if("list"!==t&&"type"!==t&&!i&&t in e)P(e,t,null==n?"":n),null!=n&&!1!==n||e.removeAttribute(t);else{var c=i&&t.match(/^xlink\:?(.+)/);null==n||!1===n?c?e.removeAttributeNS("http://www.w3.org/1999/xlink",F(c[1])):e.removeAttribute(t):"object"==typeof n||a(n)||(c?e.setAttributeNS("http://www.w3.org/1999/xlink",F(c[1]),n):e.setAttribute(t,n))}else e.className=n||""}function P(e,t,r){try{e[t]=r}catch(e){}}function C(e){return this._listeners[e.type](M.event&&M.event(e)||e)}function x(e){if(v(e),e instanceof Element){e._component=e._componentConstructor=null;var t=e.normalizedNodeName||F(e.nodeName);(Z[t]||(Z[t]=[])).push(e)}}function w(e,t){var r=F(e),n=Z[r]&&Z[r].pop()||(t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e));return n.normalizedNodeName=r,n}function V(){for(var e;e=X.pop();)M.afterMount&&M.afterMount(e),e.componentDidMount&&e.componentDidMount()}function S(e,t,r,n,i,o){K++||(Y=i&&void 0!==i.ownerSVGElement,ee=e&&!(U in e));var a=T(e,t,r,n);return i&&a.parentNode!==i&&i.appendChild(a),--K||(ee=!1,o||V()),a}function T(e,t,r,n){for(var i=t&&t.attributes&&t.attributes.ref;d(t);)t=f(t,r);if(null==t&&(t=""),s(t))return e&&e instanceof Text&&e.parentNode?e.nodeValue!=t&&(e.nodeValue=t):(e&&E(e),e=document.createTextNode(t)),e;if(a(t.nodeName))return N(e,t,r,n);var o=e,u=String(t.nodeName),l=Y,c=t.children;if(Y="svg"===u||"foreignObject"!==u&&Y,e){if(!m(e,u)){for(o=w(u,Y);e.firstChild;)o.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(o,e),E(e)}}else o=w(u,Y);var p=o.firstChild,h=o[U];if(!h){o[U]=h={};for(var g=o.attributes,y=g.length;y--;)h[g[y].name]=g[y].value}return!ee&&c&&1===c.length&&"string"==typeof c[0]&&p&&p instanceof Text&&!p.nextSibling?p.nodeValue!=c[0]&&(p.nodeValue=c[0]):(c&&c.length||p)&&O(o,c,r,n,!!h.dangerouslySetInnerHTML),q(o,t.attributes,h),i&&(h.ref=i)(o),Y=l,o}function O(e,t,r,n,i){var o,a,s,u,l=e.childNodes,c=[],p={},h=0,d=0,f=l.length,m=0,y=t&&t.length;if(f)for(var b=0;b<f;b++){var P=l[b],C=P[U],x=y?(a=P._component)?a.__key:C?C.key:null:null;null!=x?(h++,p[x]=P):(ee||i||C||P instanceof Text)&&(c[m++]=P)}if(y)for(var b=0;b<y;b++){s=t[b],u=null;var x=s.key;if(null!=x)h&&x in p&&(u=p[x],p[x]=void 0,h--);else if(!u&&d<m)for(o=d;o<m;o++)if((a=c[o])&&g(a,s)){u=a,c[o]=void 0,o===m-1&&m--,o===d&&d++;break}u=T(u,s,r,n),u&&u!==e&&(b>=f?e.appendChild(u):u!==l[b]&&(u===l[b+1]&&v(l[b]),e.insertBefore(u,l[b]||null)))}if(h)for(var b in p)p[b]&&E(p[b]);for(;d<=m;)(u=c[m--])&&E(u)}function E(e,t){var r=e._component;if(r)I(r,!t);else{e[U]&&e[U].ref&&e[U].ref(null),t||x(e);for(var n;n=e.lastChild;)E(n,t)}}function q(e,t,r){var n;for(n in r)t&&n in t||null==r[n]||b(e,n,r[n],r[n]=void 0,Y);if(t)for(n in t)"children"===n||"innerHTML"===n||n in r&&t[n]===("value"===n||"checked"===n?e[n]:r[n])||b(e,n,r[n],r[n]=t[n],Y)}function R(e){var t=e.constructor.name,r=te[t];r?r.push(e):te[t]=[e]}function _(e,t,r){var n=new e(t,r),i=te[e.name];if(j.call(n,t,r),i)for(var o=i.length;o--;)if(i[o].constructor===e){n.nextBase=i[o].nextBase,i.splice(o,1);break}return n}function k(e,t,r,n,i){e._disable||(e._disable=!0,(e.__ref=t.ref)&&delete t.ref,(e.__key=t.key)&&delete t.key,!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,n),n&&n!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=n),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==r&&(1!==r&&!1===M.syncComponentUpdates&&e.base?p(e):L(e,1,i)),e.__ref&&e.__ref(e))}function L(e,t,r,o){if(!e._disable){var s,u,l,c,p=e.props,h=e.state,g=e.context,m=e.prevProps||p,v=e.prevState||h,b=e.prevContext||g,P=e.base,C=e.nextBase,x=P||C,w=e._component;if(P&&(e.props=m,e.state=v,e.context=b,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(p,h,g)?s=!0:e.componentWillUpdate&&e.componentWillUpdate(p,h,g),e.props=p,e.state=h,e.context=g),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!s){for(e.render&&(u=e.render(p,h,g)),e.getChildContext&&(g=n(i(g),e.getChildContext()));d(u);)u=f(u,g);var T,O,q=u&&u.nodeName;if(a(q)){var R=y(u);l=w,l&&l.constructor===q&&R.key==l.__key?k(l,R,1,g):(T=l,l=_(q,R,g),l.nextBase=l.nextBase||C,l._parentComponent=e,e._component=l,k(l,R,0,g),L(l,1,r,!0)),O=l.base}else c=x,T=w,T&&(c=e._component=null),(x||1===t)&&(c&&(c._component=null),O=S(c,u,g,r||!P,x&&x.parentNode,!0));if(x&&O!==x&&l!==w){var N=x.parentNode;N&&O!==N&&(N.replaceChild(O,x),T||(x._component=null,E(x)))}if(T&&I(T,O!==x),e.base=O,O&&!o){for(var j=e,D=e;D=D._parentComponent;)(j=D).base=O;O._component=j,O._componentConstructor=j.constructor}}!P||r?X.unshift(e):s||(e.componentDidUpdate&&e.componentDidUpdate(m,v,b),M.afterUpdate&&M.afterUpdate(e));var A,z=e._renderCallbacks;if(z)for(;A=z.pop();)A.call(e);K||o||V()}}function N(e,t,r,n){for(var i=e&&e._component,o=i,a=e,s=i&&e._componentConstructor===t.nodeName,u=s,l=y(t);i&&!u&&(i=i._parentComponent);)u=i.constructor===t.nodeName;return i&&u&&(!n||i._component)?(k(i,l,3,r,n),e=i.base):(o&&!s&&(I(o,!0),e=a=null),i=_(t.nodeName,l,r),e&&!i.nextBase&&(i.nextBase=e,a=null),k(i,l,1,r,n),e=i.base,a&&e!==a&&(a._component=null,E(a))),e}function I(e,t){M.beforeUnmount&&M.beforeUnmount(e);var r=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;if(n)I(n,t);else if(r){r[U]&&r[U].ref&&r[U].ref(null),e.nextBase=r,t&&(v(r),R(e));for(var i;i=r.lastChild;)E(i,!t)}e.__ref&&e.__ref(null),e.componentDidUnmount&&e.componentDidUnmount()}function j(e,t){this._dirty=!0,this.context=t,this.props=e,this.state||(this.state={})}function D(e,t,r){return S(r,e,{},!1,t)}var M={},A=[],z=[],B={},F=function(e){return B[e]||(B[e]=e.toLowerCase())},H="undefined"!=typeof Promise&&Promise.resolve(),Q=H?function(e){H.then(e)}:setTimeout,W={},U="undefined"!=typeof Symbol?Symbol.for("preactattr"):"__preactattr_",J={boxFlex:1,boxFlexGroup:1,columnCount:1,fillOpacity:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,fontWeight:1,lineClamp:1,lineHeight:1,opacity:1,order:1,orphans:1,strokeOpacity:1,widows:1,zIndex:1,zoom:1},$={blur:1,error:1,focus:1,load:1,resize:1,scroll:1},G=[],Z={},X=[],K=0,Y=!1,ee=!1,te={};n(j.prototype,{linkState:function(e,t){var r=this._linkedStates||(this._linkedStates={});return r[e+t]||(r[e+t]=c(this,e,t))},setState:function(e,t){var r=this.state;this.prevState||(this.prevState=i(r)),n(r,a(e)?e(r,this.props):e),t&&(this._renderCallbacks=this._renderCallbacks||[]).push(t),p(this)},forceUpdate:function(){L(this,2)},render:function(){}}),e.h=r,e.cloneElement=l,e.Component=j,e.render=D,e.rerender=h,e.options=M})},function(e,t){function r(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function i(e){if(c===setTimeout)return setTimeout(e,0);if((c===r||!c)&&setTimeout)return c=setTimeout,setTimeout(e,0);try{return c(e,0)}catch(t){try{return c.call(null,e,0)}catch(t){return c.call(this,e,0)}}}function o(e){if(p===clearTimeout)return clearTimeout(e);if((p===n||!p)&&clearTimeout)return p=clearTimeout,clearTimeout(e);try{return p(e)}catch(t){try{return p.call(null,e)}catch(t){return p.call(this,e)}}}function a(){g&&d&&(g=!1,d.length?f=d.concat(f):m=-1,f.length&&s())}function s(){if(!g){var e=i(a);g=!0;for(var t=f.length;t;){for(d=f,f=[];++m<t;)d&&d[m].run();m=-1,t=f.length}d=null,g=!1,o(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var c,p,h=e.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:r}catch(e){c=r}try{p="function"==typeof clearTimeout?clearTimeout:n}catch(e){p=n}}();var d,f=[],g=!1,m=-1;h.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];f.push(new u(e,t)),1!==f.length||g||i(s)},u.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=l,h.addListener=l,h.once=l,h.off=l,h.removeListener=l,h.removeAllListeners=l,h.emit=l,h.prependListener=l,h.prependOnceListener=l,h.listeners=function(e){return[]},h.binding=function(e){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(e){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(e,t,r){var n,i,o;!function(r,a){i=[t,e],n=a,void 0!==(o="function"==typeof n?n.apply(t,i):n)&&(e.exports=o)}(0,function(e,t){"use strict";function r(e){var t=e&&(w&&e[w]||e[V]);if("function"==typeof t)return t}function n(e){function t(t,r,n,i,o,a){if(i=i||S,a=a||n,null==r[n]){var s=C[o];return t?new Error("Required "+s+" `"+a+"` was not specified in `"+i+"`."):null}return e(r,n,i,o,a)}var r=t.bind(null,!1);return r.isRequired=t.bind(null,!0),r}function i(e){function t(t,r,n,i,o){var a=t[r];if(m(a)!==e){var s=C[i],u=y(a);return new Error("Invalid "+s+" `"+o+"` of type `"+u+"` supplied to `"+n+"`, expected `"+e+"`.")}return null}return n(t)}function o(){return n(x.thatReturns(null))}function a(e){function t(t,r,n,i,o){var a=t[r];if(!Array.isArray(a)){var s=C[i],u=m(a);return new Error("Invalid "+s+" `"+o+"` of type `"+u+"` supplied to `"+n+"`, expected an array.")}for(var l=0;l<a.length;l++){var c=e(a,l,n,i,o+"["+l+"]");if(c instanceof Error)return c}return null}return n(t)}function s(){function e(e,t,r,n,i){if(!P.isValidElement(e[t])){var o=C[n];return new Error("Invalid "+o+" `"+i+"` supplied to `"+r+"`, expected a single ReactElement.")}return null}return n(e)}function u(e){function t(t,r,n,i,o){if(!(t[r]instanceof e)){var a=C[i],s=e.name||S,u=v(t[r]);return new Error("Invalid "+a+" `"+o+"` of type `"+u+"` supplied to `"+n+"`, expected instance of `"+s+"`.")}return null}return n(t)}function l(e){function t(t,r,n,i,o){for(var a=t[r],s=0;s<e.length;s++)if(a===e[s])return null;var u=C[i],l=JSON.stringify(e);return new Error("Invalid "+u+" `"+o+"` of value `"+a+"` supplied to `"+n+"`, expected one of "+l+".")}return n(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOf, expected an instance of array.")})}function c(e){function t(t,r,n,i,o){var a=t[r],s=m(a);if("object"!==s){var u=C[i];return new Error("Invalid "+u+" `"+o+"` of type `"+s+"` supplied to `"+n+"`, expected an object.")}for(var l in a)if(a.hasOwnProperty(l)){var c=e(a,l,n,i,o+"."+l);if(c instanceof Error)return c}return null}return n(t)}function p(e){function t(t,r,n,i,o){for(var a=0;a<e.length;a++){if(null==(0,e[a])(t,r,n,i,o))return null}var s=C[i];return new Error("Invalid "+s+" `"+o+"` supplied to `"+n+"`.")}return n(Array.isArray(e)?t:function(){return new Error("Invalid argument supplied to oneOfType, expected an instance of array.")})}function h(){function e(e,t,r,n,i){if(!f(e[t])){var o=C[n];return new Error("Invalid "+o+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")}return null}return n(e)}function d(e){function t(t,r,n,i,o){var a=t[r],s=m(a);if("object"!==s){var u=C[i];return new Error("Invalid "+u+" `"+o+"` of type `"+s+"` supplied to `"+n+"`, expected `object`.")}for(var l in e){var c=e[l];if(c){var p=c(a,l,n,i,o+"."+l);if(p)return p}}return null}return n(t)}function f(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(f);if(null===e||P.isValidElement(e))return!0;var t=r(e);if(!t)return!1;var n,i=t.call(e);if(t!==e.entries){for(;!(n=i.next()).done;)if(!f(n.value))return!1}else for(;!(n=i.next()).done;){var o=n.value;if(o&&!f(o[1]))return!1}return!0;default:return!1}}function g(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":g(t,e)?"symbol":t}function y(e){var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function v(e){return e.constructor&&e.constructor.name?e.constructor.name:S}var b="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,P={};P.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===b};var C={prop:"prop",context:"context",childContext:"child context"},x={thatReturns:function(e){return function(){return e}}},w="function"==typeof Symbol&&Symbol.iterator,V="@@iterator",S="<<anonymous>>",T={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),symbol:i("symbol"),any:o(),arrayOf:a,element:s(),instanceOf:u,node:h(),objectOf:c,oneOf:l,oneOfType:p,shape:d};t.exports=T})},function(e,t,r){"use strict";var n=r(12);r.d(t,"a",function(){return i});var i={root:"sv_bootstrap_css",header:"panel-heading card-header",body:"panel-body card-block",footer:"panel-footer card-footer",navigationButton:"",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",page:{root:"",title:"",description:""},pageTitle:"",pageDescription:"small",row:"",question:{mainRoot:"sv_qstn",title:"",description:"small",comment:"form-control",required:"",titleRequired:"",indent:20},panel:{title:"sv_p_title",description:"small",container:"sv_p_container"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:""},boolean:{root:"sv_qbln form-inline checkbox",item:""},checkbox:{root:"sv_qcbc sv_qcbx form-inline",item:"checkbox",itemControl:"",controlLabel:"",other:"sv_q_checkbox_other"},comment:"form-control",dropdown:{root:"",control:"form-control",other:""},matrix:{root:"table",label:"sv_q_m_label"},matrixdropdown:{root:"table"},matrixdynamic:{root:"table",button:"button"},paneldynamic:{root:"",button:"button"},multipletext:{root:"table",itemTitle:"",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"sv_qcbc form-inline",item:"radio",label:"",itemControl:"",controlLabel:"",other:"sv_q_radiogroup_other"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text"},text:"form-control",expression:"form-control",saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header panel-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};n.b.bootstrap=i},function(e,t,r){"use strict";var n=r(12);r.d(t,"a",function(){return i});var i={root:"sv_bootstrapmaterial_css",header:"panel-heading",body:"panel-body",footer:"panel-footer",navigationButton:"",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",page:{root:"",title:"",description:""},pageTitle:"",pageDescription:"small",row:"",question:{mainRoot:"sv_qstn form-group",title:"",description:"small",comment:"form-control",required:"",titleRequired:"",indent:20},panel:{title:"sv_p_title",description:"small",container:"sv_p_container"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:""},boolean:{root:"sv_qbln form-inline checkbox",item:""},checkbox:{root:"sv_qcbx form-inline",item:"checkbox",itemControl:"",controlLabel:"",other:"sv_q_checkbox_other"},comment:"form-control",dropdown:{root:"",control:"form-control",other:""},matrix:{root:"table",row:"form-group",label:"sv_q_m_label radio-inline",itemValue:"form-control"},matrixdropdown:{root:"table",itemValue:"form-group"},matrixdynamic:{root:"table",button:"button"},paneldynamic:{root:"",button:"button"},multipletext:{root:"table",itemTitle:"",row:"form-group",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"form-inline",item:"radio-inline",label:"radio-inline",itemControl:"",controlLabel:"",other:"sv_q_radiogroup_other"},rating:{root:"btn-group",item:"btn btn-default btn-secondary",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text"},text:"form-control",expression:"form-control",saveData:{root:"",saving:"alert alert-info",error:"alert alert-danger",success:"alert alert-success",saveAgainButton:""},window:{root:"modal-content",body:"modal-body",header:{root:"modal-header panel-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};n.b.bootstrapmaterial=i},function(e,t,r){"use strict";r(55),r(56),r(57),r(58),r(59),r(60),r(61),r(62),r(63),r(64),r(65),r(66),r(67),r(68),r(69),r(70),r(71),r(72),r(73),r(74),r(75),r(76),r(77)},function(e,t,r){"use strict";var n=r(47),i=(r.n(n),r(10));r.d(t,"b",function(){return i.a});var o=r(29);r.d(t,"c",function(){return o.b}),r.d(t,"d",function(){return o.c}),r.d(t,"e",function(){return o.d}),r.d(t,"f",function(){return o.e}),r.d(t,"g",function(){return o.f}),r.d(t,"h",function(){return o.g}),r.d(t,"i",function(){return o.h}),r.d(t,"j",function(){return o.a});var a=r(11);r.d(t,"k",function(){return a.a});var s=r(7);r.d(t,"l",function(){return s.c}),r.d(t,"m",function(){return s.b}),r.d(t,"n",function(){return s.d});var u=r(22);r.d(t,"o",function(){return u.a});var l=r(21);r.d(t,"p",function(){return l.a});var c=r(33);r.d(t,"q",function(){return c.a});var p=r(13);r.d(t,"r",function(){return p.c}),r.d(t,"s",function(){return p.b}),r.d(t,"t",function(){return p.a});var h=r(31);r.d(t,"u",function(){return h.a});var d=r(15);r.d(t,"v",function(){return d.a});var f=r(9);r.d(t,"w",function(){return f.c}),r.d(t,"x",function(){return f.d}),r.d(t,"y",function(){return f.b});var g=r(3);r.d(t,"z",function(){return g.c}),r.d(t,"A",function(){return g.d}),r.d(t,"B",function(){return g.e}),r.d(t,"C",function(){return g.f}),r.d(t,"D",function(){return g.g}),r.d(t,"E",function(){return g.h}),r.d(t,"F",function(){return g.b}),r.d(t,"G",function(){return g.i}),r.d(t,"H",function(){return g.j}),r.d(t,"I",function(){return g.k});var m=r(24);r.d(t,"J",function(){return m.a}),r.d(t,"K",function(){return m.b}),r.d(t,"L",function(){return m.c}),r.d(t,"M",function(){return m.d});var y=r(87);r.d(t,"N",function(){return y.a}),r.d(t,"O",function(){return y.b});var v=r(88);r.d(t,"P",function(){return v.a}),r.d(t,"Q",function(){return v.b});var b=r(86);r.d(t,"R",function(){return b.a}),r.d(t,"S",function(){return b.b});var P=r(89);r.d(t,"T",function(){return P.a}),r.d(t,"U",function(){return P.b});var C=r(23);r.d(t,"V",function(){return C.a}),r.d(t,"W",function(){return C.b}),r.d(t,"X",function(){return C.c});var x=r(34);r.d(t,"Y",function(){return x.a});var w=r(8);r.d(t,"Z",function(){return w.a});var V=r(25);r.d(t,"_0",function(){return V.a});var S=r(82);r.d(t,"_1",function(){return S.a});var T=r(16);r.d(t,"_2",function(){return T.a}),r.d(t,"_3",function(){return T.b});var O=r(79);r.d(t,"_4",function(){return O.a});var E=r(80);r.d(t,"_5",function(){return E.a});var q=r(81);r.d(t,"_6",function(){return q.a});var R=r(5);r.d(t,"_7",function(){return R.a}),r.d(t,"_8",function(){return R.b});var _=r(84);r.d(t,"_9",function(){return _.a});var k=r(85);r.d(t,"_10",function(){return k.a});var L=r(91);r.d(t,"_11",function(){return L.a});var N=r(92);r.d(t,"_12",function(){return N.a});var I=r(83);r.d(t,"_13",function(){return I.a});var j=r(36);r.d(t,"_14",function(){return j.a});var D=r(78);r.d(t,"_15",function(){return D.a});var M=r(90);r.d(t,"_16",function(){return M.a}),r.d(t,"_17",function(){return M.b});var A=r(44);r.d(t,"_18",function(){return A.a});var z=r(18);r.d(t,"_19",function(){return z.a});var B=r(107);r.d(t,"_20",function(){return B.a}),r.d(t,"_21",function(){return B.b}),r.d(t,"_22",function(){return B.c}),r.d(t,"_23",function(){return B.d}),r.d(t,"_24",function(){return B.e});var F=r(43);r.d(t,"_25",function(){return F.a});var H=r(17);r.d(t,"_26",function(){return H.a});var Q=r(32);r.d(t,"_27",function(){return Q.a});var W=r(1);r.d(t,"_28",function(){return W.a}),r.d(t,"_29",function(){return W.b});var U=r(35);r.d(t,"_30",function(){return U.b}),r.d(t,"_31",function(){return U.a});var J=r(42);r.d(t,"_32",function(){return J.a}),r.d(t,"a",function(){return $});var $;$="1.0.1"},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"السابق",pageNextText:"التالي",completeText:"انهاء- تم",progressText:"{1} صفحة {0} من",otherItemText:"نص آخر",emptySurvey:"لا توجد صفحة مرئية أو سؤال في المسح",completingSurvey:"شكرا لك لاستكمال الاستبيان!",loadingSurvey:"...يتم تحميل الاستبيان",optionsCaption:"...اختر",requiredError:".يرجى الإجابة على السؤال",requiredInAllRowsError:"يرجى الإجابة على الأسئلة في جميع الصفوف",numericError:"يجب أن تكون القيمة الرقمية.",textMinLength:"الرجاء إدخال ما لا يقل عن {0} حرف",textMaxLength:"الرجاء إدخال أقل من {0} حرف",textMinMaxLength:"يرجى إدخال أكثر من {0} وأقل من {1} حرف",minRowCountError:"يرجى ملء ما لا يقل عن {0} الصفوف",minSelectError:"يرجى تحديد ما لا يقل عن {0} المتغيرات",maxSelectError:"يرجى تحديد ما لا يزيد عن {0} المتغيرات",numericMinMax:"و'{0}' يجب أن تكون مساوية أو أكثر من {1} ويساوي أو أقل من {2}ا",numericMin:"و'{0}' يجب أن تكون مساوية أو أكثر من {1}ا",numericMax:"و'{0}' يجب أن تكون مساوية أو أقل من {1}ا",invalidEmail:"رجاء قم بإدخال بريد الكتروني صحيح",urlRequestError:"طلب إرجاع خطأ '{0}'. {1}ا",urlGetChoicesError:"عاد طلب بيانات فارغة أو 'المسار' ممتلكات غير صحيحة ",exceedMaxSize:"وينبغي ألا يتجاوز حجم الملف {0}ا",otherRequiredError:"الرجاء إدخال قيمة أخرى",uploadingFile:"الملف الخاص بك تحميل. يرجى الانتظار عدة ثوان وحاول مرة أخرى",addRow:"اضافة صف",removeRow:"إزالة صف"};n.a.locales.ar=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Předchozí",pageNextText:"Další",completeText:"Hotovo",otherItemText:"Jiná odpověď (napište)",progressText:"Strana {0} z {1}",emptySurvey:"Průzkumu neobsahuje žádné otázky.",completingSurvey:"Děkujeme za vyplnění průzkumu!",loadingSurvey:"Probíhá načítání průzkumu...",optionsCaption:"Vyber...",requiredError:"Odpovězte prosím na otázku.",requiredInAllRowsError:"Odpovězte prosím na všechny otázky.",numericError:"V tomto poli lze zadat pouze čísla.",textMinLength:"Zadejte prosím alespoň {0} znaků.",textMaxLength:"Zadejte prosím méně než {0} znaků.",textMinMaxLength:"Zadejte prosím více než {0} a méně než {1} znaků.",minRowCountError:"Vyplňte prosím alespoň {0} řádků.",minSelectError:"Vyberte prosím alespoň {0} varianty.",maxSelectError:"Nevybírejte prosím více než {0} variant.",numericMinMax:"Odpověď '{0}' by mělo být větší nebo rovno {1} a menší nebo rovno {2}",numericMin:"Odpověď '{0}' by mělo být větší nebo rovno {1}",numericMax:"Odpověď '{0}' by mělo být menší nebo rovno {1}",invalidEmail:"Zadejte prosím platnou e-mailovou adresu.",urlRequestError:"Požadavek vrátil chybu '{0}'. {1}",urlGetChoicesError:"Požadavek nevrátil data nebo cesta je neplatná",exceedMaxSize:"Velikost souboru by neměla být větší než {0}.",otherRequiredError:"Zadejte prosím jinou hodnotu.",uploadingFile:"Váš soubor se nahrává. Zkuste to prosím za několik sekund.",addRow:"Přidat řádek",removeRow:"Odstranit"};n.a.locales.cz=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Tilbage",pageNextText:"Videre",completeText:"Færdig",progressText:"Side {0} af {1}",emptySurvey:"Der er ingen synlige spørgsmål.",completingSurvey:"Mange tak for din besvarelse!",loadingSurvey:"Spørgeskemaet hentes fra serveren...",otherItemText:"Valgfrit svar...",optionsCaption:"Vælg...",requiredError:"Besvar venligst spørgsmålet.",numericError:"Angiv et tal.",textMinLength:"Angiv mindst {0} tegn.",minSelectError:"Vælg venligst mindst {0} svarmulighed(er).",maxSelectError:"Vælg venligst færre {0} svarmuligheder(er).",numericMinMax:"'{0}' skal være lig med eller større end {1} og lig med eller mindre end {2}",numericMin:"'{0}' skal være lig med eller større end {1}",numericMax:"'{0}' skal være lig med eller mindre end {1}",invalidEmail:"Angiv venligst en gyldig e-mail adresse.",exceedMaxSize:"Filstørrelsen må ikke overstige {0}.",otherRequiredError:"Angiv en værdi for dit valgfrie svar."};n.a.locales.da=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Vorige",pageNextText:"Volgende",completeText:"Afsluiten",otherItemText:"Andere",progressText:"Pagina {0} van {1}",emptySurvey:"Er is geen zichtbare pagina of vraag in deze vragenlijst",completingSurvey:"Bedankt om deze vragenlijst in te vullen",loadingSurvey:"De vragenlijst is aan het laden...",optionsCaption:"Kies...",requiredError:"Gelieve een antwoord in te vullen",numericError:"Het antwoord moet een getal zijn",textMinLength:"Gelieve minsten {0} karakters in te vullen.",minSelectError:"Gelieve minimum {0} antwoorden te selecteren.",maxSelectError:"Gelieve niet meer dan {0} antwoorden te selecteren.",numericMinMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1} en kleiner of gelijk aan {2}",numericMin:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",numericMax:"Uw antwoord '{0}' moet groter of gelijk zijn aan {1}",invalidEmail:"Gelieve een geldig e-mailadres in te vullen.",exceedMaxSize:"De grootte van het bestand mag niet groter zijn dan {0}.",otherRequiredError:"Gelieve het veld 'Andere' in te vullen"};n.a.locales.nl=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Edellinen",pageNextText:"Seuraava",completeText:"Valmis",otherItemText:"Muu (kuvaile)",progressText:"Sivu {0}/{1}",emptySurvey:"Tässä kyselyssä ei ole yhtäkään näkyvillä olevaa sivua tai kysymystä.",completingSurvey:"Kiitos kyselyyn vastaamisesta!",loadingSurvey:"Kyselyä ladataan palvelimelta...",optionsCaption:"Valitse...",requiredError:"Vastaa kysymykseen, kiitos.",numericError:"Arvon tulee olla numeerinen.",textMinLength:"Ole hyvä ja syötä vähintään {0} merkkiä.",minSelectError:"Ole hyvä ja valitse vähintään {0} vaihtoehtoa.",maxSelectError:"Ole hyvä ja valitse enintään {0} vaihtoehtoa.",numericMinMax:"'{0}' täytyy olla enemmän tai yhtä suuri kuin {1} ja vähemmän tai yhtä suuri kuin {2}",numericMin:"'{0}' täytyy olla enemmän tai yhtä suuri kuin {1}",numericMax:"'{0}' täytyy olla vähemmän tai yhtä suuri kuin {1}",invalidEmail:"Syötä validi sähköpostiosoite.",otherRequiredError:'Ole hyvä ja syötä "Muu (kuvaile)"'};n.a.locales.fi=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Précédent",pageNextText:"Suivant",completeText:"Terminer",otherItemText:"Autre (préciser)",progressText:"Page {0} sur {1}",emptySurvey:"Il n'y a ni page visible ni question visible dans ce questionnaire",completingSurvey:"Merci d'avoir répondu au questionnaire!",loadingSurvey:"Le questionnaire est en cours de chargement...",optionsCaption:"Choisissez...",requiredError:"La réponse à cette question est obligatoire.",requiredInAllRowsError:"Toutes les lignes sont obligatoires",numericError:"La réponse doit être un nombre.",textMinLength:"Merci d'entrer au moins {0} symboles.",minSelectError:"Merci de sélectionner au moins {0}réponses.",maxSelectError:"Merci de sélectionner au plus {0}réponses.",numericMinMax:"Votre réponse '{0}' doit êtresupérieure ou égale à {1} et inférieure ouégale à {2}",numericMin:"Votre réponse '{0}' doit êtresupérieure ou égale à {1}",numericMax:"Votre réponse '{0}' doit êtreinférieure ou égale à {1}",invalidEmail:"Merci d'entrer une adresse mail valide.",exceedMaxSize:"La taille du fichier ne doit pas excéder {0}.",otherRequiredError:"Merci de préciser le champ 'Autre'."};n.a.locales.fr=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"უკან",pageNextText:"შემდეგ",completeText:"დასრულება",progressText:"გვერდი {0} / {1}",emptySurvey:"არცერთი კითხვა არ არის.",completingSurvey:"გმადლობთ კითხვარის შევსებისთვის!",loadingSurvey:"ჩატვირთვა სერვერიდან...",otherItemText:"სხვა (გთხოვთ მიუთითეთ)",optionsCaption:"არჩევა...",requiredError:"გთხოვთ უპასუხეთ კითხვას.",numericError:"პასუხი უნდა იყოს რიცხვი.",textMinLength:"გთხოვთ შეიყვანეთ არანაკლებ {0} სიმბოლო.",minSelectError:"გთხოვთ აირჩიეთ არანაკლებ {0} ვარიანტი.",maxSelectError:"გთხოვთ აირჩიეთ არაუმეტეს {0} ვარიანტი.",numericMinMax:"'{0}' უნდა იყოს მეტი ან ტოლი, ვიდრე {1}, და ნაკლები ან ტოლი ვიდრე {2}",numericMin:"'{0}' უნდა იყოს მეტი ან ტოლი ვიდრე {1}",numericMax:"'{0}' უნდა იყოს ნაკლები ან ტოლი ვიდრე {1}",invalidEmail:"გთხოვთ შეიყვანოთ ელ. ფოსტის რეალური მისამართი.",otherRequiredEror:"გთხოვთ შეავსეთ ველი 'სხვა'"};n.a.locales.ka=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Zurück",pageNextText:"Weiter",completeText:"Absenden",progressText:"Seite {0} von {1}",emptySurvey:"Es gibt keine sichtbare Frage.",completingSurvey:"Vielen Dank für die Beantwortung des Fragebogens!",loadingSurvey:"Der Fragebogen wird vom Server geladen...",otherItemText:"Benutzerdefinierte Antwort...",optionsCaption:"Wählen...",requiredError:"Bitte beantworten Sie diese Frage.",numericError:"Der Wert sollte eine Zahl sein.",textMinLength:"Bitte geben Sie mindestens {0} Zeichen ein.",minSelectError:"Bitte wählen Sie mindestens {0} Einträge.",maxSelectError:"Bitte wählen Sie nicht mehr als {0} Einträge.",numericMinMax:"'{0}' sollte gleich oder größer sein als {1} und gleich oder kleiner als {2}.",numericMin:"'{0}' sollte gleich oder größer sein als {1}.",numericMax:"'{0}' sollte gleich oder kleiner als {1} sein.",invalidEmail:"Bitte geben Sie eine gültige E-Mail Adresse ein.",exceedMaxSize:"Die Dateigröße darf {0} KB nicht überschreiten.",otherRequiredError:"Bitte geben Sie Ihre benutzerdefinierte Antwort ein."};n.a.locales.de=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Προηγούμενο",pageNextText:"Επόμενο",completeText:"Ολοκλήρωση",otherItemText:"Άλλο (παρακαλώ διευκρινίστε)",progressText:"Σελίδα {0} από {1}",emptySurvey:"Δεν υπάρχει καμία ορατή σελίδα ή ορατή ερώτηση σε αυτό το ερωτηματολόγιο.",completingSurvey:"Ευχαριστούμε για την συμπλήρωση αυτου του ερωτηματολογίου!",loadingSurvey:"Το ερωτηματολόγιο φορτώνεται απο το διακομιστή...",optionsCaption:"Επιλέξτε...",requiredError:"Παρακαλώ απαντήστε στην ερώτηση.",requiredInAllRowsError:"Παρακαλώ απαντήστε στις ερωτήσεις σε όλες τις γραμμές.",numericError:"Η τιμή πρέπει να είναι αριθμιτική.",textMinLength:"Παρακαλώ συμπληρώστε τουλάχιστον {0} σύμβολα.",minRowCountError:"Παρακαλώ συμπληρώστε τουλάχιστον {0} γραμμές.",minSelectError:"Παρακαλώ επιλέξτε τουλάχιστον {0} παραλλαγές.",maxSelectError:"Παρακαλώ επιλέξτε όχι παραπάνω απο {0} παραλλαγές.",numericMinMax:"Το '{0}' θα πρέπει να είναι ίσο ή μεγαλύτερο απο το {1} και ίσο ή μικρότερο απο το {2}",numericMin:"Το '{0}' πρέπει να είναι μεγαλύτερο ή ισο με το {1}",numericMax:"Το '{0}' πρέπει να είναι μικρότερο ή ίσο απο το {1}",invalidEmail:"Παρακαλώ δώστε μια αποδεκτή διεύθυνση e-mail.",urlRequestError:"Η αίτηση επέστρεψε σφάλμα '{0}'. {1}",urlGetChoicesError:"Η αίτηση επέστρεψε κενά δεδομένα ή η ιδότητα 'μονοπάτι/path' είναι εσφαλέμένη",exceedMaxSize:"Το μέγεθος δεν μπορεί να υπερβένει τα {0}.",otherRequiredError:"Παρακαλώ συμπληρώστε την τιμή για το πεδίο 'άλλο'.",uploadingFile:"Το αρχείο σας ανεβαίνει. Παρακαλώ περιμένετε καποια δευτερόλεπτα και δοκιμάστε ξανά.",addRow:"Προσθήκη γραμμής",removeRow:"Αφαίρεση"};n.a.locales.gr=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"אחורה",pageNextText:"קדימה",completeText:"סיום",progressText:"דף {1} מתוך {0}",emptySurvey:"אין שאלות",completingSurvey:"תודה על מילוי השאלון!",loadingSurvey:"טעינה מהשרת...",otherItemText:"אחר (נא לתאר)",optionsCaption:"בחר...",requiredError:"אנא השב על השאלה",numericError:"התשובה צריכה להיות מספר.",textMinLength:"הזן לפחות {0} תווים.",minSelectError:"בחר לפחות {0} אפשרויות.",maxSelectError:"בחר עד {0} אפשרויות.",numericMinMax:"'{0}' חייב להיות שווה או גדול מ {1}, ושווה ל- {2} או פחות מ- {}}",numericMin:"'{0}' חייב להיות שווה או גדול מ {1}",numericMax:"'{0}' חייב להיות שווה או קטן מ {1}",invalidEmail:'הזן כתובת דוא"ל חוקית.',otherRequiredError:'נא להזין נתונים בשדה "אחר"'};n.a.locales.he=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Vissza",pageNextText:"Tovább",completeText:"Kész",otherItemText:"Egyéb (adja meg)",progressText:"{0}./{1} oldal",emptySurvey:"There is no visible page or question in the survey.",completingSurvey:"Köszönjük, hogy kitöltötte felmérésünket!",completingSurveyBefore:"Már kitöltötte a felmérést.",loadingSurvey:"Felmérés betöltése...",optionsCaption:"Válasszon...",value:"érték",requiredError:"Kérjük, válaszolja meg ezt a kérdést!",requiredInAllRowsError:"Kérjük adjon választ minden sorban!",numericError:"Az érték szám kell, hogy legyen!",textMinLength:"Adjon meg legalább {0} karaktert!",textMaxLength:"Legfeljebb {0} karaktert adjon meg!",textMinMaxLength:"Adjon meg legalább {0}, de legfeljebb {1} karaktert!",minRowCountError:"Töltsön ki minimum {0} sort!",minSelectError:"Válasszon ki legalább {0} lehetőséget!",maxSelectError:"Ne válasszon többet, mint {0} lehetőség!",numericMinMax:"'{0}' legyen nagyobb, vagy egyenlő, mint {1} és kisebb, vagy egyenlő, mint {2}!",numericMin:"'{0}' legyen legalább {1}!",numericMax:"The '{0}' ne legyen nagyobb, mint {1}!",invalidEmail:"Adjon meg egy valós email címet!",urlRequestError:"A lekérdezés hibával tért vissza: '{0}'. {1}",urlGetChoicesError:"A lekérdezés üres adattal tért vissza, vagy a 'path' paraméter helytelen.",exceedMaxSize:"A méret nem lehet nagyobb, mint {0}.",otherRequiredError:"Adja meg az egyéb értéket!",uploadingFile:"Feltöltés folyamatban. Várjon pár másodpercet, majd próbálja újra.",confirmDelete:"Törli ezt a rekordot?",keyDuplicationError:"Az értéknek egyedinek kell lennie.",addRow:"Sor hozzáadása",removeRow:"Eltávolítás",addPanel:"Új hozzáadása",removePanel:"Eltávolítás",choices_Item:"elem",matrix_column:"Oszlop",matrix_row:"Sor",savingData:"Eredmény mentése a szerverre...",savingDataError:"Egy hiba folytán nem tudtuk elmenteni az eredményt.",savingDataSuccess:"Eredmény sikeresen mentve!",saveAgainButton:"Próbálja újra"};n.a.locales.hu=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Tilbaka",pageNextText:"Áfram",completeText:"Lokið",otherItemText:"Hinn (skýring)",progressText:"Síða {0} of {1}",emptySurvey:"Það er enginn síða eða spurningar í þessari könnun.",completingSurvey:"Takk fyrir að fyllja út þessa könnun!",loadingSurvey:"Könnunin er að hlaða...",optionsCaption:"Veldu...",requiredError:"Vinsamlegast svarið spurningunni.",requiredInAllRowsError:"Vinsamlegast svarið spurningum í öllum röðum.",numericError:"Þetta gildi verður að vera tala.",textMinLength:"Það ætti að vera minnst {0} tákn.",textMaxLength:"Það ætti að vera mest {0} tákn.",textMinMaxLength:"Það ætti að vera fleiri en {0} og færri en {1} tákn.",minRowCountError:"Vinsamlegast fyllið úr að minnsta kosti {0} raðir.",minSelectError:"Vinsamlegast veljið að minnsta kosti {0} möguleika.",maxSelectError:"Vinsamlegast veljið ekki fleiri en {0} möguleika.",numericMinMax:"'{0}' ætti að vera meira en eða jafnt og {1} minna en eða jafnt og {2}",numericMin:"{0}' ætti að vera meira en eða jafnt og {1}",numericMax:"'{0}' ætti að vera minna en eða jafnt og {1}",invalidEmail:"Vinsamlegast sláið inn gilt netfang.",urlRequestError:"Beiðninn skilaði eftirfaranadi villu '{0}'. {1}",urlGetChoicesError:"Beiðninng skilaði engum gögnum eða slóðinn var röng",exceedMaxSize:"Skráinn skal ekki vera stærri en {0}.",otherRequiredError:"Vinamlegast fyllið út hitt gildið.",uploadingFile:"Skráinn þín var send. Vinsamlegast bíðið í nokkrar sekúndur og reynið aftur.",addRow:"Bæta við röð",removeRow:"Fjarlægja",choices_firstItem:"fyrsti hlutur",choices_secondItem:"annar hlutur",choices_thirdItem:"þriðji hlutur",matrix_column:"Dálkur",matrix_row:"Röð"};n.a.locales.is=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Precedente",pageNextText:"Successivo",completeText:"Salva",otherItemText:"Altro (descrivi)",progressText:"Pagina {0} di {1}",emptySurvey:"Non ci sono pagine o domande visibili nel questionario.",completingSurvey:"Grazie per aver completato il questionario!",loadingSurvey:"Caricamento del questionario in corso...",optionsCaption:"Scegli...",requiredError:"Campo obbligatorio",requiredInAllRowsError:"Completare tutte le righe",numericError:"Il valore deve essere numerico",textMinLength:"Inserire almeno {0} caratteri",textMaxLength:"Lunghezza massima consentita {0} caratteri",textMinMaxLength:"Inserire una stringa con minimo {0} e massimo {1} caratteri",minRowCountError:"Completare almeno {0} righe.",minSelectError:"Selezionare almeno {0} varianti.",maxSelectError:"Selezionare massimo {0} varianti.",numericMinMax:"'{0}' deve essere uguale o superiore a {1} e uguale o inferiore a {2}",numericMin:"'{0}' deve essere uguale o superiore a {1}",numericMax:"'{0}' deve essere uguale o inferiore a {1}",invalidEmail:"Inserire indirizzo mail valido",urlRequestError:"La richiesta ha risposto con un errore '{0}'. {1}",urlGetChoicesError:"La richiesta ha risposto null oppure il percorso non è corretto",exceedMaxSize:"Il file non può eccedere {0}",otherRequiredError:"Inserire il valore 'altro'",uploadingFile:"File in caricamento. Attendi alcuni secondi e riprova",addRow:"Aggiungi riga",removeRow:"Rimuovi riga",choices_Item:"Elemento",matrix_column:"Colonna",matrix_row:"Riga"};n.a.locales.it=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Atpakaļ",pageNextText:"Tālāk",completeText:"Pabeigt",progressText:"Lappuse {0} no {1}",emptySurvey:"Nav neviena jautājuma.",completingSurvey:"Pateicamies Jums par anketas aizpildīšanu!",loadingSurvey:"Ielāde no servera...",otherItemText:"Cits (lūdzu, aprakstiet!)",optionsCaption:"Izvēlēties...",requiredError:"Lūdzu, atbildiet uz jautājumu!",numericError:"Atbildei ir jābūt skaitlim.",textMinLength:"Lūdzu, ievadiet vismaz {0} simbolus.",minSelectError:"Lūdzu, izvēlieties vismaz {0} variantu.",maxSelectError:"Lūdzu, izvēlieties ne vairak par {0} variantiem.",numericMinMax:"'{0}' jābūt vienādam vai lielākam nekā {1}, un vienādam vai mazākam, nekā {2}",numericMin:"'{0}' jābūt vienādam vai lielākam {1}",numericMax:"'{0}' jābūt vienādam vai lielākam {1}",invalidEmail:"Lūdzu, ievadiet patiesu e-pasta adresi!",otherRequiredError:'Lūdzu, ievadiet datus laukā "Cits"'};n.a.locales.lv=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"قبلی",pageNextText:"بعدی",completeText:"تکمیل",otherItemText:"دیگر(توضیح)",progressText:"صفحه {0} از {1}",emptySurvey:"صفحه ای یا گزینه ای برای این پرسشنامه موجود نیست.",completingSurvey:"از شما بابت تکمیل این پرسشنامه متشکریم",completingSurveyBefore:"به نظر می رسد هم هم اکنون پرسشنامه را تکمیل کرده اید.",loadingSurvey:"درحال ایجاد پرسشنامه",optionsCaption:"انتخاب کنید...",value:"مقدار",requiredError:"لطفا به سوال پاسخ دهید",requiredInAllRowsError:"لطفا به تمام سطر های سوالات پاسخ دهید",numericError:"مقدار باید عددی باشد",textMinLength:"لطفا حداقل {0} حرف وارد کنید",textMaxLength:"لطفا کمتر از {0} حرف وارد کنید.",textMinMaxLength:"لطفا بیشتر از {0} حرف و کمتر از {1} حرف وارد کنید.",minRowCountError:"لطفا حداقل {0} سطر وارد کنید.",minSelectError:"حداقل {0} انتخاب کنید.",maxSelectError:"لطفا بیشتر از {0} انتخاب کنید.",numericMinMax:"'{0}' باید بین {1} و {2} باشد",numericMin:"'{0}' بزرگتر مساوی {1} باشد",numericMax:"'{0}' باید کوچکتر یا مساوی {1} باشد",invalidEmail:"لطفا ایمیل صحیح درج کنید",urlRequestError:"درخواست با خطا روبرو شد: '{0}'. {1}",urlGetChoicesError:"درخواست مسیری خالی بازگشت داده یا مسیر درست تنظیم نشده",exceedMaxSize:"بیشترین حجم مجاز فایل: {0}",otherRequiredError:"مقدار 'دیگر' را وارد کنید",uploadingFile:"فایل در حال آیلود می باشد. لطفا صبر کنید.",confirmDelete:"آیا مایل به حذف این ردیف هستید؟",keyDuplicationError:"این مقدار باید غیر تکراری باشد",addRow:"سطر جدید",removeRow:"حذف",addPanel:"جدید",removePanel:"حذف",choices_Item:"آیتم",matrix_column:"ستون",matrix_row:"سطر",savingData:"نتایج در حال ذخیره سازی در سرور می باشد",savingDataError:"خطایی در ذخیره سازی نتایج رخ داده است",savingDataSuccess:"نتایج با موفقیت ذخیره شد",saveAgainButton:"مجدد تلاش کنید"};n.a.locales.fa=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Wstecz",pageNextText:"Dalej",completeText:"Gotowe",otherItemText:"Inna odpowiedź (wpisz)",progressText:"Strona {0} z {1}",emptySurvey:"Nie ma widocznych pytań.",completingSurvey:"Dziękujemy za wypełnienie ankiety!",loadingSurvey:"Trwa wczytywanie ankiety...",optionsCaption:"Wybierz...",requiredError:"Proszę odpowiedzieć na to pytanie.",requiredInAllRowsError:"Proszę odpowiedzieć na wszystkie pytania.",numericError:"W tym polu można wpisać tylko liczby.",textMinLength:"Proszę wpisać co najmniej {0} znaków.",textMaxLength:"Proszę wpisać mniej niż {0} znaków.",textMinMaxLength:"Proszę wpisać więcej niż {0} i mniej niż {1} znaków.",minRowCountError:"Proszę uzupełnić przynajmniej {0} wierszy.",minSelectError:"Proszę wybrać co najmniej {0} pozycji.",maxSelectError:"Proszę wybrać nie więcej niż {0} pozycji.",numericMinMax:"Odpowiedź '{0}' powinna być większa lub równa {1} oraz mniejsza lub równa {2}",numericMin:"Odpowiedź '{0}' powinna być większa lub równa {1}",numericMax:"Odpowiedź '{0}' powinna być mniejsza lub równa {1}",invalidEmail:"Proszę podać prawidłowy adres email.",urlRequestError:"Żądanie zwróciło błąd '{0}'. {1}",urlGetChoicesError:"Żądanie nie zwróciło danych albo ścieżka jest nieprawidłowa",exceedMaxSize:"Rozmiar przesłanego pliku nie może przekraczać {0}.",otherRequiredError:"Proszę podać inną odpowiedź.",uploadingFile:"Trwa przenoszenie Twojego pliku, proszę spróbować ponownie za kilka sekund.",addRow:"Dodaj wiersz",removeRow:"Usuń"};n.a.locales.pl=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Anterior",pageNextText:"Próximo",completeText:"Finalizar",otherItemText:"Outros (descrever)",progressText:"Pagina {0} de {1}",emptySurvey:"Não há página visível ou pergunta na pesquisa.",completingSurvey:"Obrigado por finalizar a pesquisa!",completingSurveyBefore:"Nossos registros mostram que você já finalizou a pesquisa.",loadingSurvey:"A pesquisa está carregando...",optionsCaption:"Selecione...",value:"valor",requiredError:"Por favor, responda a pergunta.",requiredInAllRowsError:"Por favor, responda as perguntas em todas as linhas.",numericError:"O valor deve ser numérico.",textMinLength:"Por favor, insira pelo menos {0} caracteres.",textMaxLength:"Por favor, insira menos de {0} caracteres.",textMinMaxLength:"Por favor, insira mais de {0} e menos de {1} caracteres.",minRowCountError:"Preencha pelo menos {0} linhas.",minSelectError:"Selecione pelo menos {0} opções.",maxSelectError:"Por favor, selecione não mais do que {0} opções.",numericMinMax:"O '{0}' deve ser igual ou superior a {1} e igual ou menor que {2}",numericMin:"O '{0}' deve ser igual ou superior a {1}",numericMax:"O '{0}' deve ser igual ou inferior a {1}",invalidEmail:"Por favor, informe um e-mail válido.",urlRequestError:"A requisição retornou o erro '{0}'. {1}",urlGetChoicesError:"A requisição não retornou dados ou o 'caminho' da requisição não está correto",exceedMaxSize:"O tamanho do arquivo não deve exceder {0}.",otherRequiredError:"Por favor, informe o outro valor.",uploadingFile:"Seu arquivo está sendo carregado. Por favor, aguarde alguns segundos e tente novamente.",addRow:"Adicionar linha",removeRow:"Remover linha",addPanel:"Adicionar novo",removePanel:"Remover",choices_Item:"item",matrix_column:"Coluna",matrix_row:"Linha",savingData:"Os resultados esto sendo salvos no servidor...",savingDataError:"Ocorreu um erro e não foi possível salvar os resultados.",savingDataSuccess:"Os resultados foram salvos com sucesso!",saveAgainButton:"Tente novamente"};n.a.locales.pt=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Precedent",pageNextText:"Următor",completeText:"Finalizare",otherItemText:"Altul(precizaţi)",progressText:"Pagina {0} din {1}",emptySurvey:"Nu sunt întrebări pentru acest chestionar",completingSurvey:"Vă mulţumim pentru timpul acordat!",loadingSurvey:"Chestionarul se încarcă...",optionsCaption:"Alegeţi...",requiredError:"Răspunsul la această întrebare este obligatoriu.",requiredInAllRowsError:"Toate răspunsurile sunt obligatorii",numericError:"Răspunsul trebuie să fie numeric.",textMinLength:"Trebuie să introduci minim {0} caractere.",minSelectError:"Trebuie să selectezi minim {0} opţiuni.",maxSelectError:"Trebuie să selectezi maxim {0} opţiuni.",numericMinMax:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1} şî mai mic sau egal cu {2}",numericMin:"Răspunsul '{0}' trebuie să fie mai mare sau egal ca {1}",numericMax:"Răspunsul '{0}' trebuie să fie mai mic sau egal ca {1}",invalidEmail:"Trebuie să introduceţi o adresa de email validă.",exceedMaxSize:"Dimensiunea fişierului nu trebuie să depăşească {0}.",otherRequiredError:"Trebuie să completezi câmpul 'Altul'."};n.a.locales.ro=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Назад",pageNextText:"Далее",completeText:"Готово",progressText:"Страница {0} из {1}",emptySurvey:"Нет ни одного вопроса.",completingSurvey:"Благодарим Вас за заполнение анкеты!",loadingSurvey:"Загрузка с сервера...",otherItemText:"Другое (пожалуйста, опишите)",optionsCaption:"Выбрать...",requiredError:"Пожалуйста, ответьте на вопрос.",numericError:"Ответ должен быть числом.",textMinLength:"Пожалуйста, введите хотя бы {0} символов.",minSelectError:"Пожалуйста, выберите хотя бы {0} вариантов.",maxSelectError:"Пожалуйста, выберите не более {0} вариантов.",numericMinMax:"'{0}' должно быть равным или больше, чем {1}, и равным или меньше, чем {2}",numericMin:"'{0}' должно быть равным или больше, чем {1}",numericMax:"'{0}' должно быть равным или меньше, чем {1}",invalidEmail:"Пожалуйста, введите действительный адрес электронной почты.",otherRequiredError:'Пожалуйста, введите данные в поле "Другое"'};n.a.locales.ru=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"上一页",pageNextText:"下一页",completeText:"提交问卷",otherItemText:"填写其他答案",progressText:"第 {0} 页, 共 {1} 页",emptySurvey:"问卷中没有问题或页面",completingSurvey:"感谢您的参与!",loadingSurvey:"问卷正在加载中...",optionsCaption:"请选择...",requiredError:"请填写此问题",requiredInAllRowsError:"请填写所有行中问题",numericError:"答案必须是个数字",textMinLength:"答案长度至少 {0} 个字符",textMaxLength:"答案长度不能超过 {0} 个字符",textMinMaxLength:"答案长度必须在 {0} - {1} 个字符之间",minRowCountError:"最少需要填写 {0} 行答案",minSelectError:"最少需要选择 {0} 项答案",maxSelectError:"最多只能选择 {0} 项答案",numericMinMax:"答案 '{0}' 必须大于等于 {1} 且小于等于 {2}",numericMin:"答案 '{0}' 必须大于等于 {1}",numericMax:"答案 '{0}' 必须小于等于 {1}",invalidEmail:"请输入有效的 Email 地址",urlRequestError:"载入选项时发生错误 '{0}': {1}",urlGetChoicesError:"未能载入有效的选项或请求参数路径有误",exceedMaxSize:"文件大小不能超过 {0}",otherRequiredError:"请完成其他问题",uploadingFile:"文件上传中... 请耐心等待几秒后重试",addRow:"添加答案",removeRow:"删除答案",choices_Item:"选项",matrix_column:"列",matrix_row:"行",savingData:"正在将结果保存到服务器...",savingDataError:"在保存结果过程中发生了错误,结果未能保存",savingDataSuccess:"结果保存成功!",saveAgainButton:"请重试"};n.a.locales["zh-cn"]=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Anterior",pageNextText:"Siguiente",completeText:"Completo",otherItemText:"Otro (describa)",progressText:"Página {0} de {1}",emptySurvey:"No hay página visible o pregunta en la encuesta.",completingSurvey:"Gracias por completar la encuesta!",loadingSurvey:"La encuesta está cargando...",optionsCaption:"Seleccione...",requiredError:"Por favor conteste la pregunta.",requiredInAllRowsError:"Por favor conteste las preguntas en cada hilera.",numericError:"La estimación debe ser numérica.",textMinLength:"Por favor entre por lo menos {0} símbolos.",textMaxLength:"Por favor entre menos de {0} símbolos.",textMinMaxLength:"Por favor entre más de {0} y menos de {1} símbolos.",minRowCountError:"Por favor llene por lo menos {0} hileras.",minSelectError:"Por favor seleccione por lo menos {0} variantes.",maxSelectError:"Por favor seleccione no más de {0} variantes.",numericMinMax:"El '{0}' debe de ser igual o más de {1} y igual o menos de {2}",numericMin:"El '{0}' debe ser igual o más de {1}",numericMax:"El '{0}' debe ser igual o menos de {1}",invalidEmail:"Por favor agregue un correo electrónico válido.",urlRequestError:"La solicitud regresó error '{0}'. {1}",urlGetChoicesError:"La solicitud regresó vacío de data o la propiedad 'trayectoria' no es correcta",exceedMaxSize:"El tamaño del archivo no debe de exceder {0}.",otherRequiredError:"Por favor agregue la otra estimación.",uploadingFile:"Su archivo se está subiendo. Por favor espere unos segundos e intente de nuevo.",addRow:"Agregue una hilera",removeRow:"Eliminar una hilera",choices_firstItem:"primer artículo",choices_secondItem:"segundo artículo",choices_thirdItem:"tercera artículo",matrix_column:"Columna",matrix_row:"Hilera"};n.a.locales.es=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Föregående",pageNextText:"Nästa",completeText:"Färdig",otherItemText:"Annat (beskriv)",progressText:"Sida {0} av {1}",emptySurvey:"Det finns ingen synlig sida eller fråga i enkäten.",completingSurvey:"Tack för att du genomfört enkäten!!",loadingSurvey:"Enkäten laddas...",optionsCaption:"Välj...",requiredError:"Var vänlig besvara frågan.",requiredInAllRowsError:"Var vänlig besvara frågorna på alla rader.",numericError:"Värdet ska vara numeriskt.",textMinLength:"Var vänlig ange minst {0} tecken.",minRowCountError:"Var vänlig fyll i minst {0} rader.",minSelectError:"Var vänlig välj åtminstone {0} varianter.",maxSelectError:"Var vänlig välj inte fler än {0} varianter.",numericMinMax:"'{0}' ska vara lika med eller mer än {1} samt lika med eller mindre än {2}",numericMin:"'{0}' ska vara lika med eller mer än {1}",numericMax:"'{0}' ska vara lika med eller mindre än {1}",invalidEmail:"Var vänlig ange en korrekt e-postadress.",urlRequestError:"Förfrågan returnerade felet '{0}'. {1}",urlGetChoicesError:"Antingen returnerade förfrågan ingen data eller så är egenskapen 'path' inte korrekt",exceedMaxSize:"Filstorleken får ej överstiga {0}.",otherRequiredError:"Var vänlig ange det andra värdet.",uploadingFile:"Din fil laddas upp. Var vänlig vänta några sekunder och försök sedan igen.",addRow:"Lägg till rad",removeRow:"Ta bort"};n.a.locales.sv=i},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Geri",pageNextText:"İleri",completeText:"Anketi Tamamla",otherItemText:"Diğer (açıklayınız)",progressText:"Sayfa {0} / {1}",emptySurvey:"Ankette görüntülenecek sayfa ya da soru mevcut değil.",completingSurvey:"Anketimizi tamamladığınız için teşekkür ederiz.",loadingSurvey:"Anket sunucudan yükleniyor ...",optionsCaption:"Seçiniz ...",requiredError:"Lütfen soruya cevap veriniz",numericError:"Girilen değer numerik olmalıdır",textMinLength:"En az {0} sembol giriniz.",minRowCountError:"Lütfen en az {0} satırı doldurun.",minSelectError:"Lütfen en az {0} seçeneği seçiniz.",maxSelectError:"Lütfen {0} adetten fazla seçmeyiniz.",numericMinMax:"The '{0}' should be equal or more than {1} and equal or less than {2}",numericMin:"'{0}' değeri {1} değerine eşit veya büyük olmalıdır",numericMax:"'{0}' değeri {1} değerine eşit ya da küçük olmalıdır.",invalidEmail:"Lütfen geçerli bir eposta adresi giriniz.",urlRequestError:"Talebi şu hatayı döndü '{0}'. {1}",urlGetChoicesError:"Talep herhangi bir veri dönmedi ya da 'path' özelliği hatalı.",exceedMaxSize:"Dosya boyutu {0} değerini geçemez.",otherRequiredError:"Lütfen diğer değerleri giriniz.",uploadingFile:"Dosyanız yükleniyor. LÜtfen birkaç saniye bekleyin ve tekrar deneyin.",addRow:"Satır Ekle",removeRow:"Kaldır"};n.a.locales.tr=i},function(e,t,r){"use strict";var n=r(0),i=r(5),o=r(3),a=r(8);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("label",r,!0),r}return n.b(t,e),t.prototype.getType=function(){return"boolean"},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.showTitle},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isValueEmpty(e)?this.value=null:this.value=1==e?this.getValueTrue():this.getValueFalse()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue","indeterminate")},set:function(e){this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this.getLocalizableStringText("label")},set:function(e){this.setLocalizableStringText("label",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locLabel",{get:function(){return this.getLocalizableString("label")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locDisplayLabel",{get:function(){return this.locLabel.text?this.locLabel:this.showTitle?this.locLabel:this.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueTrue",{get:function(){return this.getPropertyValue("valueTrue")},set:function(e){this.setPropertyValue("valueTrue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueFalse",{get:function(){return this.getPropertyValue("valueFalse")},set:function(e){this.setPropertyValue("valueFalse",e)},enumerable:!0,configurable:!0}),t.prototype.getValueTrue=function(){return!this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return!!this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){"true"==this.defaultValue&&(this.checkedValue=!0),"false"==this.defaultValue&&(this.checkedValue=!1),"indeterminate"==this.defaultValue&&(this.value=null)},t}(a.a);o.b.metaData.addClass("boolean",[{name:"defaultValue:dropdown",default:"indeterminate",choices:["indeterminate","false","true"]},{name:"label:text",serializationProperty:"locLabel"},"showTitle:boolean","valueTrue","valueFalse"],function(){return new s("")},"question"),i.a.Instance.registerQuestion("boolean",function(e){return new s(e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(5),a=r(16);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return n.b(t,e),Object.defineProperty(t.prototype,"displayValue",{get:function(){if(this.isEmpty())return"";for(var e=this.visibleChoices,t=this.value,r="",n=0;n<t.length;n++){var i=this.getDisplayValue(e,t[n]);i&&(r&&(r+=", "),r+=i)}return r},enumerable:!0,configurable:!0}),t.prototype.getHasOther=function(e){return!(!e||!Array.isArray(e))&&e.indexOf(this.otherItem.value)>=0},t.prototype.valueFromData=function(t){return t?Array.isArray(t)?e.prototype.valueFromData.call(this,t):[t]:t},t.prototype.valueFromDataCore=function(e){for(var t=0;t<e.length;t++){if(e[t]==this.otherItem.value)return e;if(this.hasUnknownValue(e[t])){this.comment=e[t];var r=e.slice();return r[t]=this.otherItem.value,r}}return e},t.prototype.valueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.getComment()){var r=e.slice();return r[t]=this.getComment(),r}return e},t.prototype.getType=function(){return"checkbox"},t}(a.a);i.b.metaData.addClass("checkbox",[],function(){return new s("")},"checkboxbase"),o.a.Instance.registerQuestion("checkbox",function(e){var t=new s(e);return t.choices=o.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),i=r(8),o=r(3),a=r(5);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("placeHolder",r),r}return n.b(t,e),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.getLocalizableStringText("placeHolder")},set:function(e){this.setLocalizableStringText("placeHolder",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.getLocalizableString("placeHolder")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows",4)},set:function(e){this.setPropertyValue("rows",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols",50)},set:function(e){this.setPropertyValue("cols",e)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},t}(i.a);o.b.metaData.addClass("comment",[{name:"cols:number",default:50},{name:"rows:number",default:4},{name:"placeHolder",serializationProperty:"locPlaceHolder"}],function(){return new s("")},"question"),a.a.Instance.registerQuestion("comment",function(e){return new s(e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(5),a=r(16),s=r(1);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("optionsCaption",r),r}return n.b(t,e),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",s.a.getString("optionsCaption"))},set:function(e){this.setLocalizableStringText("optionsCaption",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locOptionsCaption",{get:function(){return this.getLocalizableString("optionsCaption")},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"dropdown"},t.prototype.supportGoNextPageAutomatic=function(){return!0},t}(a.b);i.b.metaData.addClass("dropdown",[{name:"optionsCaption",serializationProperty:"locOptionsCaption"}],function(){return new u("")},"selectbase"),o.a.Instance.registerQuestion("dropdown",function(e){var t=new u(e);return t.choices=o.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(8);r.d(t,"a",function(){return a});var a=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return n.b(t,e),t.prototype.getType=function(){return"empty"},t}(o.a);i.b.metaData.addClass("empty",[],function(){return new a("")},"question")},function(e,t,r){"use strict";function n(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZAR","ZMW","ZWL"]}var i=r(0),o=r(8),a=r(3),s=r(5),u=r(13);r.d(t,"a",function(){return l});var l=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.createLocalizableString("format",r);var n=r;return r.registerFunctionOnPropertyValueChanged("expression",function(){n.expressionRunner&&(n.expressionRunner=new u.h(n.expression))}),r}return i.b(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t){e.prototype.runCondition.call(this,t),this.expression&&!this.expressionIsRunning&&(this.expressionIsRunning=!0,this.expressionRunner||(this.expressionRunner=new u.h(this.expression)),this.value=this.expressionRunner.run(t),this.expressionIsRunning=!1)},Object.defineProperty(t.prototype,"displayValue",{get:function(){var e=this.isValueEmpty(this.value)?this.defaultValue:this.value;if(this.isValueEmpty(e))return"";var t=this.getValueAsStr(e);return this.format?this.format.format(t):t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle","none")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency","USD")},set:function(e){n().indexOf(e)<0||this.setPropertyValue("currency",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping",!0)},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!0,configurable:!0}),t.prototype.getValueAsStr=function(e){if("none"!=this.displayStyle&&!isNaN(parseFloat(e))&&isFinite(e)){var t=this.getLocale();t||(t="en");var r={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return e.toLocaleString(t,r)}return e.toString()},t}(o.a);a.b.metaData.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"decimal",choices:["none","decimal","currency","percent"]},{name:"currency",choices:function(){return n()},default:"USD"},{name:"useGrouping:boolean",default:!0},{name:"commentText",visible:!1},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"validators",visible:!1}],function(){return new l("")},"question"),s.a.Instance.registerQuestion("expression",function(e){return new l(e)})},function(e,t,r){"use strict";var n=r(0),i=r(8),o=r(3),a=r(5),s=r(9),u=r(1);r.d(t,"a",function(){return l});var l=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.isUploading=!1,r}return n.b(t,e),t.prototype.getType=function(){return"file"},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview",!1)},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText",!0)},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize",0)},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!0,configurable:!0}),t.prototype.loadFile=function(e){var t=this;this.survey&&!this.survey.uploadFile(this.name,e,this.storeDataAsText,function(e){t.isUploading="uploading"==e})||this.setFileValue(e)},t.prototype.setFileValue=function(e){if(FileReader&&(this.showPreview||this.storeDataAsText)&&!this.checkFileForErrors(e)){var t=new FileReader,r=this;t.onload=function(n){r.showPreview&&(r.previewValue=r.isFileImage(e)?t.result:null,r.fireCallback(r.previewValueLoadedCallback)),r.storeDataAsText&&(r.value=t.result)},t.readAsDataURL(e)}},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.isUploading&&t.push(new s.c(u.a.getString("uploadingFile")))},t.prototype.checkFileForErrors=function(e){var t=this.errors?this.errors.length:0;return this.errors=[],this.maxSize>0&&e.size>this.maxSize&&this.errors.push(new s.d(this.maxSize)),(t!=this.errors.length||this.errors.length>0)&&this.fireCallback(this.errorsChangedCallback),this.errors.length>0},t.prototype.isFileImage=function(e){if(e&&e.type){return 0==e.type.toLowerCase().indexOf("image")}},t}(i.a);o.b.metaData.addClass("file",["showPreview:boolean","imageHeight","imageWidth",{name:"storeDataAsText:boolean",default:!0},"maxSize:number"],function(){return new l("")},"question"),a.a.Instance.registerQuestion("file",function(e){return new l(e)})},function(e,t,r){"use strict";var n=r(0),i=r(25),o=r(3),a=r(5);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.createLocalizableString("html",r),r}return n.b(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.survey?this.survey.processHtml(this.html):this.html},enumerable:!0,configurable:!0}),t}(i.a);o.b.metaData.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new s("")},"questionbase"),a.a.Instance.registerQuestion("html",function(e){return new s(e)})},function(e,t,r){"use strict";var n=r(0),i=r(11),o=r(8),a=r(3),s=r(1),u=r(9),l=r(5);r.d(t,"a",function(){return c}),r.d(t,"b",function(){return p});var c=function(){function e(e,t,r,n){this.fullName=t,this.item=e,this.data=r,this.rowValue=n}return Object.defineProperty(e.prototype,"name",{get:function(){return this.item.value},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.item.text},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return this.item.locText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.rowValue},set:function(e){this.rowValue=e,this.data&&this.data.onMatrixRowChanged(this),this.onValueChanged()},enumerable:!0,configurable:!0}),e.prototype.onValueChanged=function(){},e}(),p=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.isRowChanging=!1,r.columnsValue=r.createItemValues("columns"),r.rowsValue=r.createItemValues("rows"),r}return n.b(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired",!1)},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rowsValue.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.columnsValue},set:function(e){this.setPropertyValue("columns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.rowsValue},set:function(e){this.setPropertyValue("rows",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleRows",{get:function(){var e=new Array,t=this.value;t||(t={});for(var r=0;r<this.rows.length;r++)this.rows[r].value&&e.push(this.createMatrixRow(this.rows[r],this.name+"_"+this.rows[r].value.toString(),t[this.rows[r].value]));return 0==e.length&&e.push(this.createMatrixRow(new i.a(null),this.name,t)),this.generatedVisibleRows=e,e},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasErrorInRows()&&t.push(new u.c(s.a.getString("requiredInAllRowsError")))},t.prototype.hasErrorInRows=function(){return!!this.isAllRowRequired&&!this.hasValuesInAllRows()},t.prototype.hasValuesInAllRows=function(){var e=this.generatedVisibleRows;if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){if(!e[t].value)return!1}return!0},t.prototype.createMatrixRow=function(e,t,r){return new c(e,t,this,r)},t.prototype.onValueChanged=function(){if(!this.isRowChanging&&this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var e=this.value;if(e||(e={}),0==this.rows.length)this.generatedVisibleRows[0].value=e;else for(var t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t],n=e[r.name]?e[r.name]:null;this.generatedVisibleRows[t].value=n}this.isRowChanging=!1}},Object.defineProperty(t.prototype,"displayValue",{get:function(){var e=this.value;if(!e)return e;for(var t in e)e[t]=i.a.getTextOrHtmlByValue(this.columns,e[t]);return e},enumerable:!0,configurable:!0}),t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;t||(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t}(o.a);a.b.metaData.addClass("matrix",[{name:"columns:itemvalues",onGetValue:function(e){return i.a.getData(e.columns)},onSetValue:function(e,t){e.columns=t}},{name:"rows:itemvalues",onGetValue:function(e){return i.a.getData(e.rows)},onSetValue:function(e,t){e.rows=t}},"isAllRowRequired:boolean"],function(){return new p("")},"question"),l.a.Instance.registerQuestion("matrix",function(e){var t=new p(e);return t.rows=l.a.DefaultRows,t.columns=l.a.DefaultColums,t})},function(e,t,r){"use strict";var n=r(0),i=r(24),o=r(3),a=r(11),s=r(5);r.d(t,"a",function(){return u}),r.d(t,"b",function(){return l});var u=function(e){function t(t,r,n,i){var o=e.call(this,n,i)||this;return o.name=t,o.item=r,o.buildCells(),o}return n.b(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!0,configurable:!0}),t}(i.c),l=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.rowsValue=r.createItemValues("rows");var n=r;return r.registerFunctionOnPropertyValueChanged("rows",function(){n.generatedVisibleRows=null}),r}return n.b(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"displayValue",{get:function(){var e=this.value;if(!e)return e;for(var t=this.visibleRows,r=0;r<t.length;r++){var n=this.rows[r].value,i=e[n];i&&(e[n]=this.getRowDisplayValue(t[r],i))}return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.rowsValue},set:function(e){this.setPropertyValue("rows",e)},enumerable:!0,configurable:!0}),t.prototype.generateRows=function(){var e=new Array;if(!this.rows||0===this.rows.length)return e;var t=this.value;t||(t={});for(var r=0;r<this.rows.length;r++)this.rows[r].value&&e.push(this.createMatrixRow(this.rows[r],t[this.rows[r].value]));return e},t.prototype.createMatrixRow=function(e,t){var r=new u(e.value,e,this,t);return this.onMatrixRowCreated(r),r},t}(i.d);o.b.metaData.addClass("matrixdropdown",[{name:"rows:itemvalues",onGetValue:function(e){return a.a.getData(e.rows)},onSetValue:function(e,t){e.rows=t}}],function(){return new l("")},"matrixdropdownbase"),s.a.Instance.registerQuestion("matrixdropdown",function(e){var t=new l(e);return t.choices=[1,2,3,4,5],t.rows=s.a.DefaultColums,i.d.addDefaultColumns(t),t})},function(e,t,r){"use strict";var n=r(0),i=r(24),o=r(3),a=r(5),s=r(1),u=r(9);r.d(t,"a",function(){return l}),r.d(t,"b",function(){return c});var l=function(e){function t(t,r,n){var i=e.call(this,r,n)||this;return i.index=t,i.buildCells(),i}return n.b(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!0,configurable:!0}),t}(i.c),c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.rowCounter=0,r.rowCountValue=2,r.createLocalizableString("confirmDeleteText",r),r.createLocalizableString("keyDuplicationError",r),r.createLocalizableString("addRowText",r),r.createLocalizableString("removeRowText",r),r}return n.b(t,e),t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!(e<0||e>t.MaxRowCount)){var r=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var n=this.value;n.splice(e),this.value=n}if(!this.isLoadingFromJson){if(this.generatedVisibleRows){this.generatedVisibleRows.splice(e);for(var i=r;i<e;i++)this.generatedVisibleRows.push(this.createMatrixRow(null))}this.fireCallback(this.rowCountChangedCallback)}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount",0)},set:function(e){e<0&&(e=0),e==this.minRowCount||e>this.maxRowCount||(this.setPropertyValue("minRowCount",e),this.rowCount<e&&(this.rowCount=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount",t.MaxRowCount)},set:function(e){e<=0||(e>t.MaxRowCount&&(e=t.MaxRowCount),e==this.maxRowCount||e<this.minRowCount||(this.setPropertyValue("maxRowCount",e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.rowCount<this.maxRowCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRow",{get:function(){return this.rowCount>this.minRowCount},enumerable:!0,configurable:!0}),t.prototype.addRow=function(){if(this.canAddRow){var e=this.rowCount;this.rowCount=this.rowCount+1,this.data&&this.runCellsCondition(this.data.getAllValues()),this.survey&&e+1==this.rowCount&&this.survey.matrixRowAdded(this)}},t.prototype.removeRowUI=function(e){this.confirmDelete&&!confirm(this.confirmDeleteText)||this.removeRow(e)},t.prototype.removeRow=function(e){if(this.canRemoveRow&&!(e<0||e>=this.rowCount)){if(this.survey){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;this.survey.matrixRowRemoved(this,e,t)}if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.value){var r=this.createNewValue(this.value);r.splice(e,1),r=this.deleteRowValue(r,null),this.value=r}this.rowCountValue--,this.fireCallback(this.rowCountChangedCallback)}},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",s.a.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",s.a.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",s.a.getString("addRow"))},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText",s.a.getString("removeRow"))},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"displayValue",{get:function(){var e=this.value;if(!e)return e;for(var t=this.visibleRows,r=0;r<t.length&&r<e.length;r++){var n=e[r];n&&(e[r]=this.getRowDisplayValue(t[r],n))}return e},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasErrorInRows()&&t.push(new u.c(s.a.getString("minRowCountError").format(this.minRowCount)))},t.prototype.hasErrors=function(t){void 0===t&&(t=!0);var r=e.prototype.hasErrors.call(this,t);return this.isValueDuplicated()||r},t.prototype.hasErrorInRows=function(){if(this.minRowCount<=0||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++){this.generatedVisibleRows[t].isEmpty||e++}return e<this.minRowCount},t.prototype.isValueDuplicated=function(){if(!this.keyName||!this.generatedVisibleRows)return!1;var e=this.getColumnName(this.keyName);if(!e)return!1;for(var t=[],r=!1,n=0;n<this.generatedVisibleRows.length;n++)r=this.isValueDuplicatedInRow(this.generatedVisibleRows[n],e,t)||r;return r},t.prototype.isValueDuplicatedInRow=function(e,t,r){var n=e.getQuestionByColumn(t);if(!n||n.isEmpty())return!1;for(var i=n.value,o=0;o<r.length;o++)if(i==r[o])return n.addError(new u.c(this.keyDuplicationError)),!0;return r.push(i),!1},t.prototype.generateRows=function(){var e=new Array;if(0===this.rowCount)return e;for(var t=this.createNewValue(this.value),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,r)));return e},t.prototype.createMatrixRow=function(e){var t=new l(this.rowCounter++,this,e);return this.onMatrixRowCreated(t),t},t.prototype.onBeforeValueChanged=function(e){var t=e&&Array.isArray(e)?e.length:0;t<=this.rowCount||(this.rowCountValue=t,this.generatedVisibleRows&&(this.generatedVisibleRows=null,this.generatedVisibleRows=this.visibleRows))},t.prototype.createNewValue=function(e){var t=e;t||(t=[]);t.length>this.rowCount&&t.splice(this.rowCount-1);for(var r=t.length;r<this.rowCount;r++)t.push({});return t},t.prototype.deleteRowValue=function(e,t){for(var r=!0,n=0;n<e.length;n++)if(Object.keys(e[n]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,t){return t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,r){return void 0===r&&(r=!1),this.generatedVisibleRows?this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e)):{}},t.MaxRowCount=100,t}(i.d);o.b.metaData.addClass("matrixdynamic",[{name:"rowCount:number",default:2},{name:"minRowCount:number",default:0},{name:"maxRowCount:number",default:c.MaxRowCount},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"}],function(){return new c("")},"matrixdropdownbase"),a.a.Instance.registerQuestion("matrixdynamic",function(e){var t=new c(e);return t.choices=[1,2,3,4,5],i.d.addDefaultColumns(t),t})},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(29),a=r(8),s=r(36),u=r(3),l=r(5),c=r(9);r.d(t,"a",function(){return p}),r.d(t,"b",function(){return h});var p=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.validators=new Array,n.editorValue=n.createEditor(t),n.editor.titleLocation="left",r&&(n.title=r),n}return n.b(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!0,configurable:!0}),t.prototype.createEditor=function(e){return new s.a(e)},t.prototype.setData=function(e){this.data=e,e&&this.editor.setSurveyImpl(this)},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.editor.placeHolder},set:function(e){this.editor.placeHolder=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.editor.locPlaceHolder},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!0,configurable:!0}),t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.geSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!0,configurable:!0}),t}(i.c),h=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.itemsValues=new Array,r.isMultipleItemValueChanging=!1;var n=r;return r.itemsValues=r.createNewArray("items",function(e){e.setData(n)}),r.registerFunctionOnPropertyValueChanged("items",function(){n.fireCallback(n.colCountChangedCallback)}),r.registerFunctionOnPropertyValueChanged("colCount",function(){n.fireCallback(n.colCountChangedCallback)}),r}return n.b(t,e),t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t);for(var r=0;r<this.items.length;r++)this.items[r].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.fireCallback(this.colCountChangedCallback)},Object.defineProperty(t.prototype,"items",{get:function(){return this.itemsValues},set:function(e){this.setPropertyValue("items",e)},enumerable:!0,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var r=this.createTextItem(e,t);return this.items.push(r),r},t.prototype.onLocaleChanged=function(){e.prototype.onLocaleChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].onLocaleChanged()},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(!this.items[e].value)return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",1)},set:function(e){e<1||e>4||this.setPropertyValue("colCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize",25)},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!0,configurable:!0}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,r=[],n=0,i=0;i<t.length;i++)0==n&&r.push([]),r[r.length-1].push(t[i]),++n>=e&&(n=0);return r},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new p(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.runValidators=function(){var t=e.prototype.runValidators.call(this);if(null!=t)return t;for(var r=0;r<this.items.length;r++)if(null!=(t=(new o.a).run(this.items[r])))return t;return null},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t);for(var r=0;r<this.items.length;r++){var n=this.items[r];n.isRequired&&!n.value&&t.push(new c.a)}},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0;var r=this.value;r||(r={}),r[e]=t,this.setNewValue(r),this.isMultipleItemValueChanging=!1},t.prototype.getSurvey=function(){return this.survey},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t}(a.a);u.b.metaData.addClass("multipletextitem",["name","isRequired:boolean",{name:"placeHolder",serializationProperty:"locPlaceHolder"},{name:"inputType",default:"text",choices:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"]},{name:"title",serializationProperty:"locTitle"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new p("")}),u.b.metaData.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",default:25},{name:"colCount:number",default:1,choices:[1,2,3,4]}],function(){return new h("")},"question"),l.a.Instance.registerQuestion("multipletext",function(e){var t=new h(e);return t.addItem("text1"),t.addItem("text2"),t})},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(1),a=r(17),s=r(15),u=r(8),l=r(23),c=r(3),p=r(5),h=r(9);r.d(t,"b",function(){return d}),r.d(t,"a",function(){return f});var d=function(){function e(e,t){this.data=e,this.panelValue=t;var r=this;this.textPreProcessor=new a.a,this.textPreProcessor.onProcess=function(e){r.getProcessedTextValue(e)},this.panel.setSurveyImpl(this),this.panel.updateCustomWidgets()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!0,configurable:!0}),e.prototype.runCondition=function(e){this.panel.runCondition(e)},e.prototype.getValue=function(e){return this.data.getPanelItemData(this)[e]},e.prototype.setValue=function(e,t){this.data.setPanelItemData(this,e,t)},e.prototype.getComment=function(e){var t=this.getValue(e+i.c.commentPrefix);return t||""},e.prototype.setComment=function(e,t){this.setValue(e+i.c.commentPrefix,t)},e.prototype.onSurveyValueChanged=function(){for(var e=this.panel.questions,t=this.data.getPanelItemData(this),r=0;r<e.length;r++){var n=e[r];n.onSurveyValueChanged(t[n.getValueName()])}},e.prototype.setVisibleIndex=function(e,t){return i.a.setVisibleIndex(this.panel.questions,e,t)},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.geSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this},e.prototype.getProcessedTextValue=function(t){if(t.name==e.IndexVariableName)return t.isExists=!0,void(t.value=this.data.getItemIndex(this)+1);var r=(new s.a).getFirstName(t.name);if(t.isExists=r==e.ItemVariableName,t){t.name=t.name.replace(e.ItemVariableName+".","");var r=(new s.a).getFirstName(t.name),n=this.panel.getQuestionByValueName(r),i={};if(n)i[r]=t.returnDisplayValue?n.displayValue:n.value;else{var o=this.getAllValues();o&&(i[r]=o[r])}t.value=(new s.a).getValue(t.name,i)}},e.prototype.processText=function(e,t){e=this.textPreProcessor.process(e,t);var r=this.getSurvey();return r?r.processText(e,t):e},e.prototype.processTextEx=function(e){e=this.processText(e,!0);var t=this.textPreProcessor.hasAllValuesOnLastRun,r={hasAllValuesOnLastRun:!0,text:e};return this.getSurvey()&&(r=this.getSurvey().processTextEx(e)),r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&t,r},e.prototype.onAnyValueChanged=function(t){this.panel.onAnyValueChanged(t),this.panel.onAnyValueChanged(e.ItemVariableName)},e.ItemVariableName="panel",e.IndexVariableName="panelIndex",e}(),f=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.itemsValue=new Array,r.loadingPanelCount=0,r.currentIndexValue=-1,r.templateValue=r.createAndSetupNewPanelObject(),r.template.renderWidth="100%",r.template.selectedElementInDesign=r;var n=r;return r.oldTemplateRowsChangedCallback=r.template.rowsChangedCallback,r.template.rowsChangedCallback=function(){n.templateOnRowsChanged(),n.oldTemplateRowsChangedCallback&&n.oldTemplateRowsChangedCallback()},r.createLocalizableString("confirmDeleteText",r),r.createLocalizableString("keyDuplicationError",r),r.createLocalizableString("panelAddText",r),r.createLocalizableString("panelRemoveText",r),r.createLocalizableString("panelPrevText",r),r.createLocalizableString("panelNextText",r),r}return n.b(t,e),t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.template.setSurveyImpl(this.surveyImpl)},t.prototype.templateOnRowsChanged=function(){this.isLoadingFromJson||this.rebuildPanels()},t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.itemsValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].panel);return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:(this.currentIndexValue<0&&this.panelCount>0&&(this.currentIndexValue=0),this.currentIndexValue>=this.panelCount&&(this.currentIndexValue=this.panelCount-1),this.currentIndexValue)},set:function(e){e>=this.panelCount&&(e=this.panelCount-1),this.currentIndexValue=e,this.fireCallback(this.currentIndexChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){var e=this.currentIndex;return e<0||e>=this.panels.length?null:this.panels[e]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",o.a.getString("confirmDelete"))},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError",o.a.getString("keyDuplicationError"))},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText",o.a.getString("pagePrevText"))},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText",o.a.getString("pageNextText"))},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText",o.a.getString("addPanel"))},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText",o.a.getString("removePanel"))},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"==this.renderMode||"progressTopBottom"==this.renderMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"==this.renderMode||"progressTopBottom"==this.renderMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.currentIndex>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.panelCount-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.panelCount>1},enumerable:!0,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.isDesignMode?this.loadingPanelCount:this.items.length},set:function(e){if(!(e<0)){if(this.isLoadingFromJson||this.isDesignMode)return void(this.loadingPanelCount=e);if(e!=this.items.length&&!this.isDesignMode){for(var t=this.panelCount;t<e;t++)this.items.push(this.createNewItem());e<this.panelCount&&this.items.splice(e,this.panelCount-e),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}}},enumerable:!0,configurable:!0}),t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if(e&&Array.isArray(e)||(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++)e.push({});e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.value=e}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount",0)},set:function(e){e<0&&(e=0),e==this.minPanelCount||e>this.maxPanelCount||(this.setPropertyValue("minPanelCount",e),this.panelCount<e&&(this.panelCount=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount",t.MaxPanelCount)},set:function(e){e<=0||(e>t.MaxPanelCount&&(e=t.MaxPanelCount),e==this.maxPanelCount||e<this.minPanelCount||(this.setPropertyValue("maxPanelCount",e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel",!0)},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel",!0)},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation","default")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers","off")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress",!0)},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode","list")},set:function(e){this.setPropertyValue("renderMode",e),this.fireCallback(this.renderModeChangedCallback)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"==this.renderMode},enumerable:!0,configurable:!0}),t.prototype.setVisibleIndex=function(t){for(var r="onSurvey"==this.showQuestionNumbers?t:0,n=0;n<this.items.length;n++){var i=this.items[n].setVisibleIndex(r,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(r+=i)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:r-t},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return(!this.survey||!this.survey.isDesignMode)&&(this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return(!this.survey||!this.survey.isDesignMode)&&(this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount)},enumerable:!0,configurable:!0}),t.prototype.rebuildPanels=function(){var e=new Array;if(this.isDesignMode)e.push(new d(this,this.template)),this.oldTemplateRowsChangedCallback&&this.oldTemplateRowsChangedCallback(),this.rebuildTemplateRowsInElements(this.template.elements);else for(var t=0;t<this.panelCount;t++)e.push(this.createNewItem());this.itemsValue=e,this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)},t.prototype.rebuildTemplateRowsInElements=function(e){for(var t=0;t<e.length;t++)if(e[t].isPanel){var r=e[t];r.rowsChangedCallback&&r.rowsChangedCallback(),this.rebuildTemplateRowsInElements(r.elements)}},t.prototype.addPanel=function(){return this.canAddPanel?(this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1),this.items[this.panelCount-1].panel):null},t.prototype.removePanelUI=function(e){this.confirmDelete&&!confirm(this.confirmDeleteText)||this.removePanel(e)},t.prototype.removePanel=function(e){if(this.canRemovePanel){var t=this.getPanelIndex(e);if(!(t<0||t>=this.panelCount)){this.items.splice(t,1);var e=this.value;!e||!Array.isArray(e)||t>=e.length||(e.splice(t,1),this.value=e,this.fireCallback(this.panelCountChangedCallback))}}},t.prototype.getPanelIndex=function(e){if(!isNaN(parseFloat(e))&&isFinite(e))return e;for(var t=0;t<this.items.length;t++)if(this.items[t]===e||this.items[t].panel===e)return t;return-1},t.prototype.onSurveyLoad=function(){this.loadingPanelCount>0&&(this.panelCount=this.loadingPanelCount),this.isDesignMode&&this.rebuildPanels(),e.prototype.onSurveyLoad.call(this)},t.prototype.runCondition=function(t){e.prototype.runCondition.call(this,t),this.runPanelsCondition(t)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.data.getAllValues())},t.prototype.runPanelsCondition=function(e){var t={};e&&e instanceof Object&&(t=JSON.parse(JSON.stringify(e)));for(var r=0;r<this.items.length;r++)t[d.ItemVariableName]=this.getPanelItemData(this.items[r]),t[d.IndexVariableName]=r,this.items[r].runCondition(t)},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var r=0;r<this.items.length;r++)this.items[r].onAnyValueChanged(t)},t.prototype.hasErrors=function(t){void 0===t&&(t=!0);var r=this.hasErrorInPanels(t);return e.prototype.hasErrors.call(this,t)||r},t.prototype.clearValueIfInvisible=function(){e.prototype.clearValueIfInvisible.call(this);for(var t=0;t<this.panels.length;t++)for(var r=this.panels[t].questions,n=0;n<r.length;n++)r[n].clearValueIfInvisible()},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=0;r<this.panels.length;r++)for(var n=this.panels[r].questions,i=0;i<n.length;i++){var o=n[i].getAllErrors();o&&o.length>0&&(t=t.concat(o))}return t},t.prototype.hasErrorInPanels=function(e){for(var t=!1,r=this.panels,n=[],i=0;i<r.length;i++){var o=r[i].hasErrors(e);o=this.isValueDuplicated(r[i],n)||o,this.isRenderModeList||!o||t||(this.currentIndex=i),t=o||t}return t},t.prototype.isValueDuplicated=function(e,t){if(!this.keyName)return!1;var r=e.getQuestionByValueName(this.keyName);if(!r||r.isEmpty())return!1;for(var n=r.value,i=0;i<t.length;i++)if(n==t[i])return r.addError(new h.c(this.keyDuplicationError)),!0;return t.push(n),!1},t.prototype.createNewItem=function(){return new d(this,this.createNewPanel())},t.prototype.createNewPanel=function(){var e=this.createAndSetupNewPanelObject(),t=new c.b,r=t.toJsonObject(this.template);return t.toObject(r,e),e.renderWidth="100%",e},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject(),t=this;return e.onGetQuestionTitleLocation=function(){return t.getTemplateQuestionTitleLocation()},e},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.createNewPanelObject=function(){return new l.a},t.prototype.onValueChanged=function(){if(!this.isValueChangingInternally){var e=this.value,t=e&&Array.isArray(e)?e.length:0;t<=this.panelCount||(this.panelCount=t)}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var r=0;r<this.items.length;r++)this.items[r].onSurveyValueChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.isDesignMode&&(this.template.setSurveyImpl(this.surveyImpl),this.isLoadingFromJson||this.rebuildPanels())},t.prototype.getItemIndex=function(e){return this.items.indexOf(e)},t.prototype.getPanelItemData=function(e){var t=this.items.indexOf(e);if(t<0)return{};var r=this.value;return!r||!Array.isArray(r)||r.length<=t?{}:r[t]},t.prototype.setPanelItemData=function(e,t,r){var n=this.items.indexOf(e);if(!(n<0)){var i=this.value;if(!i){i=[];for(var o=0;o<this.items.length;o++)i.push({})}!Array.isArray(i)||i.length<=n||(i[n]||(i[n]={}),this.isValueEmpty(r)?delete i[n][t]:i[n][t]=r,this.isValueChangingInternally=!0,this.value=i,this.isValueChangingInternally=!1)}},t.prototype.getSurvey=function(){return this.survey},t.MaxPanelCount=100,t}(u.a);c.b.metaData.addClass("paneldynamic",[{name:"templateElements",alternativeName:"questions",visible:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"panelCount:number",default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0},{name:"maxPanelCount:number",default:f.MaxPanelCount},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"panelAddText",serializationProperty:"locPanelAddText"},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText"},{name:"panelPrevText",serializationProperty:"locPanelPrevText"},{name:"panelNextText",serializationProperty:"locPanelNextText"},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"showRangeInProgress",default:!0},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom"]},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]}],function(){return new f("")},"question"),p.a.Instance.registerQuestion("paneldynamic",function(e){return new f(e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=r(5),a=r(16);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r}return n.b(t,e),t.prototype.getType=function(){return"radiogroup"},t.prototype.supportGoNextPageAutomatic=function(){return!0},t}(a.a);i.b.metaData.addClass("radiogroup",[],function(){return new s("")},"checkboxbase"),o.a.Instance.registerQuestion("radiogroup",function(e){var t=new s(e);return t.choices=o.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),i=r(11),o=r(8),a=r(3),s=r(5);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.rates=r.createItemValues("rates");var n=r;r.registerFunctionOnPropertyValueChanged("rates",function(){n.fireCallback(n.rateValuesChangedCallback)}),r.onPropertyChanged.add(function(e,t){"rateMin"!=t.name&&"rateMax"!=t.name&&"rateStep"!=t.name||n.fireCallback(n.rateValuesChangedCallback)});var i=r.createLocalizableString("minRateDescription",r,!0),o=r.createLocalizableString("maxRateDescription",r,!0);return i.onGetTextCallback=function(e){return e?e+" ":e},o.onGetTextCallback=function(e){return e?" "+e:e},r}return n.b(t,e),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.fireCallback(this.rateValuesChangedCallback)},Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.rates},set:function(e){this.setPropertyValue("rates",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin",1)},set:function(e){e>this.rateMax-this.rateStep&&(e=this.rateMax-this.rateStep),this.setPropertyValue("rateMin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax",5)},set:function(e){e<this.rateMin+this.rateStep&&(e=this.rateMin+this.rateStep),this.setPropertyValue("rateMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep",1)},set:function(e){e<=0&&(e=1),e>this.rateMax-this.rateMin&&(e=this.rateMax-this.rateMin),this.setPropertyValue("rateStep",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){if(this.rateValues.length>0)return this.rateValues;for(var e=[],r=this.rateMin;r<=this.rateMax&&e.length<t.MaximumRateValueCount;)e.push(new i.a(r)),r+=this.rateStep;return e},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"rating"},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!0,configurable:!0}),t.MaximumRateValueCount=20,t}(o.a);a.b.metaData.addClass("rating",["hasComment:boolean",{name:"rateValues:itemvalues",onGetValue:function(e){return i.a.getData(e.rateValues)},onSetValue:function(e,t){e.rateValues=t}},{name:"rateMin:number",default:1},{name:"rateMax:number",default:5},{name:"rateStep:number",default:1},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription"},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription"}],function(){return new u("")},"question"),s.a.Instance.registerQuestion("rating",function(e){return new u(e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(6);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.state={value:r.question.checkedValue},r.handleOnChange=r.handleOnChange.bind(r),r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setState({value:this.question.checkedValue})},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.handleOnChange=function(e){this.question.checkedValue=e.target.checked,this.setState({value:this.question.checkedValue})},t.prototype.componentDidMount=function(){this.updateIndeterminate()},t.prototype.componentDidUpdate=function(){this.updateIndeterminate()},t.prototype.updateIndeterminate=function(){if(this.question){var e=this.refs.check;e&&(e.indeterminate=this.question.isIndeterminate)}},t.prototype.render=function(){if(!this.question)return null;var e=this.question.cssClasses,t=this.renderLocString(this.question.locDisplayLabel),r=this.question.checkedValue,n=e.item+(r?" checked":"");return i.createElement("form",{className:e.root},i.createElement("label",{className:n},i.createElement("input",{ref:"check",type:"checkbox",value:this.question.checkedValue,id:this.question.inputId,disabled:this.isDisplayMode,checked:this.question.checkedValue,onChange:this.handleOnChange,"aria-label":this.question.locTitle.renderedHtml}),i.createElement("span",{className:"checkbox-material"},i.createElement("span",{className:"check"})),i.createElement("span",null,t)))},t}(o.b);a.a.Instance.registerQuestion("boolean",function(e){return i.createElement(s,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(14),s=r(6);r.d(t,"a",function(){return u}),r.d(t,"b",function(){return l});var u=function(e){function t(t){var r=e.call(this,t)||this;r.state={choicesChanged:0};var n=r;return r.question.choicesChangedCallback=function(){n.setState({choicesChanged:n.state.choicesChanged+1})},r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.render=function(){if(!this.question)return null;var e=this.question.cssClasses;return i.createElement("fieldset",{className:e.root},this.getItems(e),i.createElement("legend",{style:{display:"none"}},this.question.locTitle.renderedHtml))},t.prototype.getItems=function(e){for(var t=[],r=0;r<this.question.visibleChoices.length;r++){var n=this.question.visibleChoices[r],i="item"+r;t.push(this.renderItem(i,n,0==r,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.renderItem=function(e,t,r,n){return i.createElement(l,{key:e,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,isFirst:r})},t}(o.b),l=function(e){function t(t){var r=e.call(this,t)||this;return r.item=t.item,r.question=t.question,r.textStyle=t.textStyle,r.isFirst=t.isFirst,r.handleOnChange=r.handleOnChange.bind(r),r}return n.b(t,e),t.prototype.shouldComponentUpdate=function(){return!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.render},t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.item=t.item,this.textStyle=t.textStyle,this.question=t.question,this.isFirst=t.isFirst},t.prototype.handleOnChange=function(e){var t=this.question.value;t||(t=[]);var r=t.indexOf(this.item.value);e.target.checked?r<0&&t.push(this.item.value):r>-1&&t.splice(r,1),this.question.value=t,this.setState({value:this.question.value})},t.prototype.render=function(){if(!this.item||!this.question)return null;var e=this.question.colCount>0?100/this.question.colCount+"%":"",t={display:"inline-block"};e&&(t.width=e);var r=this.question.value&&this.question.value.indexOf(this.item.value)>-1||!1,n=this.item.value===this.question.otherItem.value&&r?this.renderOther():null;return this.renderCheckbox(r,t,n)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return{marginRight:"3px"}},enumerable:!0,configurable:!0}),t.prototype.renderCheckbox=function(e,t,r){var n=this.isFirst?this.question.inputId:null,o=this.renderLocString(this.item.locText),a=this.cssClasses.item+(0===this.question.colCount?" sv_q_checkbox_inline":"");return e&&(a+=" checked"),i.createElement("div",{className:a,style:t},i.createElement("label",{className:this.cssClasses.label},i.createElement("input",{className:this.cssClasses.itemControl,type:"checkbox",value:this.item.value,id:n,style:this.inputStyle,disabled:this.isDisplayMode,checked:e,onChange:this.handleOnChange,"aria-label":this.question.locTitle.renderedHtml}),i.createElement("span",{className:"checkbox-material"},i.createElement("span",{className:"check"})),i.createElement("span",{className:this.cssClasses.controlLabel},o)),r)},t.prototype.renderOther=function(){return i.createElement("div",{className:this.cssClasses.other},i.createElement(a.a,{question:this.question,otherCss:this.cssClasses.other,cssClasses:this.cssClasses,isDisplayMode:this.isDisplayMode}))},t}(o.c);s.a.Instance.registerQuestion("checkbox",function(e){return i.createElement(u,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(14),s=r(6),u=r(108);r.d(t,"a",function(){return l});var l=function(e){function t(t){var r=e.call(this,t)||this;r.state={value:r.getStateValue(),choicesChanged:0};var n=r;return r.question.choicesChangedCallback=function(){n.setState({choicesChanged:n.state.choicesChanged+1,value:n.question.value})},r.handleOnChange=r.handleOnChange.bind(r),r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setState({value:this.getStateValue()})},t.prototype.handleOnChange=function(e){this.question.value=e.target.value,this.setState({value:this.getStateValue()})},t.prototype.render=function(){if(!this.question)return null;var e=this.question.cssClasses,t=this.question.value===this.question.otherItem.value?this.renderOther(e):null,r=this.renderSelect(e);return i.createElement("div",{className:e.root},r,t)},t.prototype.renderSelect=function(e){if(this.isDisplayMode)return i.createElement("div",{id:this.question.inputId,className:e.control},this.question.displayValue);for(var t=[],n=0;n<this.question.visibleChoices.length;n++){var o=this.question.visibleChoices[n],a="item"+n,s=i.createElement("option",{key:a,value:o.value},o.text);t.push(s)}var l=null;return(u.a.msie||u.a.firefox&&r.i(u.b)(u.a.version,"51")<0||u.a.firefox&&r.i(u.c)())&&(l=this.handleOnChange),i.createElement("div",{className:e.selectWrapper},i.createElement("select",{id:this.question.inputId,className:e.control,value:this.state.value,onChange:l,onInput:this.handleOnChange,"aria-label":this.question.locTitle.renderedHtml},i.createElement("option",{value:""},this.question.optionsCaption),t))},t.prototype.renderOther=function(e){var t={marginTop:"3px"};return i.createElement("div",{style:t},i.createElement(a.a,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.value},t}(o.b);s.a.Instance.registerQuestion("dropdown",function(e){return i.createElement(l,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(6);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.state={value:r.question.value},r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.render=function(){return i.createElement("div",null)},t}(o.b);a.a.Instance.registerQuestion("empty",function(e){return i.createElement(s,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(6);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.state={value:r.question.value},r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setState({value:this.question.value})},t.prototype.render=function(){if(!this.question)return null;var e=this.question.cssClasses;return i.createElement("div",{id:this.question.inputId,className:e.root},this.question.displayValue)},t}(o.b);a.a.Instance.registerQuestion("expression",function(e){return i.createElement(s,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(6);r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.state={fileLoaded:0},r.handleOnChange=r.handleOnChange.bind(r),r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.handleOnChange=function(e){var t=e.target||e.srcElement;window.FileReader&&(!t||!t.files||t.files.length<1||(this.question.loadFile(t.files[0]),this.setState({fileLoaded:this.state.fileLoaded+1})))},t.prototype.render=function(){if(!this.question)return null;var e=this.renderImage(),t=null;return this.isDisplayMode||(t=i.createElement("input",{id:this.question.inputId,type:"file",onChange:this.handleOnChange,"aria-label":this.question.locTitle.renderedHtml})),i.createElement("div",null,t,e)},t.prototype.renderImage=function(){return this.question.previewValue?i.createElement("div",null," ",i.createElement("img",{src:this.question.previewValue,height:this.question.imageHeight,width:this.question.imageWidth})):null},t}(o.b);a.a.Instance.registerQuestion("file",function(e){return i.createElement(s,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(6);r.d(t,"a",function(){return s});var s=function(e){function t(t){return e.call(this,t)||this}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.render=function(){if(!this.question||!this.question.html)return null;var e={__html:this.question.processedHtml};return i.createElement("div",{dangerouslySetInnerHTML:e})},t}(o.b);a.a.Instance.registerQuestion("html",function(e){return i.createElement(s,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(6);r.d(t,"a",function(){return s}),r.d(t,"b",function(){return u});var s=function(e){function t(t){return e.call(this,t)||this}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.render=function(){if(!this.question)return null;for(var e=this.question.cssClasses,t=this.question.hasRows?i.createElement("td",null):null,r=[],n=0;n<this.question.columns.length;n++){var o=this.question.columns[n],a="column"+n,s=this.renderLocString(o.locText);r.push(i.createElement("th",{key:a},s))}for(var l=[],c=this.question.visibleRows,n=0;n<c.length;n++){var p=c[n],a="row"+n;l.push(i.createElement(u,{key:a,question:this.question,cssClasses:e,isDisplayMode:this.isDisplayMode,row:p,isFirst:0==n}))}return i.createElement("fieldset",null,i.createElement("table",{className:e.root},i.createElement("thead",null,i.createElement("tr",null,t,r)),i.createElement("tbody",null,l)),i.createElement("legend",{style:{display:"none"}},this.question.locTitle.renderedHtml))},t}(o.b),u=function(e){function t(t){var r=e.call(this,t)||this;return r.question=t.question,r.row=t.row,r.isFirst=t.isFirst,r.handleOnChange=r.handleOnChange.bind(r),r}return n.b(t,e),t.prototype.handleOnChange=function(e){this.row.value=e.target.value,this.setState({value:this.row.value})},t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.question=t.question,this.row=t.row,this.isFirst=t.isFirst},t.prototype.render=function(){if(!this.row)return null;var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText);e=i.createElement("td",null,t)}for(var r=[],n=0;n<this.question.columns.length;n++){var o=this.question.columns[n],a="value"+n,s=this.row.value==o.value,u=this.cssClasses.label+(s?" checked":""),l=this.isFirst&&0===n?this.question.inputId:null,c=i.createElement("td",{key:a},i.createElement("label",{className:u},i.createElement("input",{id:l,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:o.value,disabled:this.isDisplayMode,checked:s,onChange:this.handleOnChange,"aria-label":this.question.locTitle.renderedHtml}),i.createElement("span",{className:"circle"}),i.createElement("span",{className:"check"}),i.createElement("span",{style:{display:"none"}},this.question.locTitle.renderedHtml)));r.push(c)}return i.createElement("tr",null,e,r)},t}(o.c);a.a.Instance.registerQuestion("matrix",function(e){return i.createElement(s,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(6),s=r(40);r.d(t,"a",function(){return u}),r.d(t,"b",function(){return l});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.setProperties(t),r.state=r.getState(),r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setProperties(t)},t.prototype.setProperties=function(e){var t=this;this.setState({rowCounter:0}),this.question.rowCountChangedCallback=function(){t.setState(t.getState(t.state))},this.handleOnRowAddClick=this.handleOnRowAddClick.bind(this)},t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.handleOnRowAddClick=function(e){this.question.addRow()},t.prototype.render=function(){if(!this.question)return null;for(var e=this.question.cssClasses,t=[],r=0;r<this.question.columns.length;r++){var n=this.question.columns[r],o="column"+r,a=this.question.getColumnWidth(n),s=a?{minWidth:a}:{},u=this.renderLocString(n.locTitle);t.push(i.createElement("th",{key:o,style:s},u))}for(var c=[],p=this.question.visibleRows,r=0;r<p.length;r++){var h=p[r];c.push(i.createElement(l,{key:h.id,row:h,question:this.question,index:r,cssClasses:e,isDisplayMode:this.isDisplayMode,creator:this.creator}))}var d=this.question.horizontalScroll?{overflowX:"scroll"}:{},f=this.isDisplayMode?null:i.createElement("td",null);return i.createElement("div",null,i.createElement("div",{style:d},i.createElement("table",{className:e.root},i.createElement("thead",null,i.createElement("tr",null,t,f)),i.createElement("tbody",null,c))),i.createElement("div",{className:e.footer},this.renderAddRowButton(e)))},t.prototype.renderAddRowButton=function(e){return this.isDisplayMode||!this.question.canAddRow?null:i.createElement("input",{className:e.button,type:"button",onClick:this.handleOnRowAddClick,value:this.question.addRowText})},t}(o.b),l=function(e){function t(t){var r=e.call(this,t)||this;return r.setProperties(t),r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setProperties(t)},t.prototype.setProperties=function(e){this.row=e.row,this.question=e.question,this.index=e.index,this.creator=e.creator,this.handleOnRowRemoveClick=this.handleOnRowRemoveClick.bind(this)},t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.index)},t.prototype.render=function(){if(!this.row)return null;for(var e=[],t=0;t<this.row.cells.length;t++){var r=this.row.cells[t],n=i.createElement(s.c,{key:"row"+t,cssClasses:this.cssClasses,cell:r,creator:this.creator});e.push(n)}if(!this.isDisplayMode&&this.question.canRemoveRow){var o=this.renderButton();e.push(i.createElement("td",{key:"row"+this.row.cells.length+1},o))}return i.createElement("tr",null,e)},t.prototype.renderButton=function(){return i.createElement("input",{className:this.cssClasses.button,type:"button",onClick:this.handleOnRowRemoveClick,value:this.question.removeRowText})},t}(o.c);a.a.Instance.registerQuestion("matrixdynamic",function(e){return i.createElement(u,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(10),s=r(6);r.d(t,"a",function(){return u}),r.d(t,"b",function(){return l});var u=function(e){function t(t){var r=e.call(this,t)||this;r.state={colCountChanged:0};var n=r;return r.question.colCountChangedCallback=function(){n.setState({colCountChanged:n.state.colCountChanged+1})},r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.render=function(){if(!this.question)return null;for(var e=this.question.cssClasses,t=this.question.getRows(),r=[],n=0;n<t.length;n++)r.push(this.renderRow(n,t[n],e));return i.createElement("table",{className:e.root},i.createElement("tbody",null,r))},t.prototype.renderRow=function(e,t,r){for(var n="item"+e,o=[],a=0;a<t.length;a++){var s=t[a],u=this.renderLocString(s.locTitle);o.push(i.createElement("td",{key:"label"+a},i.createElement("span",{className:r.itemTitle},u))),o.push(i.createElement("td",{key:"value"+a},this.renderItem(s,0===e&&0===a,r)))}return i.createElement("tr",{key:n,className:r.row},o)},t.prototype.renderItem=function(e,t,r){t&&this.question.inputId;return i.createElement(l,{item:e,cssClasses:r,isDisplayMode:this.isDisplayMode})},t}(o.b),l=function(e){function t(t){var r=e.call(this,t)||this;return r.item=t.item,r.state={value:r.getValue(r.item.value)},r.handleOnChange=r.handleOnChange.bind(r),r.handleOnBlur=r.handleOnBlur.bind(r),r}return n.b(t,e),t.prototype.handleOnChange=function(e){this.setState({value:e.target.value})},t.prototype.handleOnBlur=function(e){this.item.value=e.target.value,this.setState({value:this.item.value})},t.prototype.componentWillReceiveProps=function(e){this.item=e.item},t.prototype.componentDidMount=function(){if(this.item){var e=this;this.item.valueChangedCallback=function(t){e.setState({value:e.getValue(t)})}}},t.prototype.componentWillUnmount=function(){this.item&&(this.item.valueChangedCallback=null)},t.prototype.render=function(){return this.item?this.isDisplayMode?i.createElement("div",{id:this.item.id,className:this.cssClasses.itemValue},this.item.value):i.createElement("input",{id:this.item.id,className:this.cssClasses.itemValue,type:this.item.inputType,value:this.state.value,placeholder:this.item.placeHolder,onBlur:this.handleOnBlur,onChange:this.handleOnChange,"aria-label":this.item.locTitle.renderedHtml}):null},Object.defineProperty(t.prototype,"mainClassName",{get:function(){return""},enumerable:!0,configurable:!0}),t.prototype.getValue=function(e){return a.a.isValueEmpty(e)?"":e},t}(o.c);s.a.Instance.registerQuestion("multipletext",function(e){return i.createElement(u,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(27),s=r(12),u=r(6);r.d(t,"a",function(){return l});var l=function(e){function t(t){var r=e.call(this,t)||this;return r.setProperties(t),r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setProperties(t)},t.prototype.setProperties=function(e){var t=this;this.setState({panelCounter:0}),this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()},this.handleOnPanelAddClick=this.handleOnPanelAddClick.bind(this),this.handleOnPanelPrevClick=this.handleOnPanelPrevClick.bind(this),this.handleOnPanelNextClick=this.handleOnPanelNextClick.bind(this),this.handleOnRangeChange=this.handleOnRangeChange.bind(this)},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state.panelCounter+1})},t.prototype.handleOnPanelAddClick=function(e){this.question.addPanel()},t.prototype.handleOnPanelPrevClick=function(e){this.question.currentIndex--},t.prototype.handleOnPanelNextClick=function(e){this.question.currentIndex++},t.prototype.handleOnRangeChange=function(e){this.question.currentIndex=e.target.value},t.prototype.render=function(){if(!this.question)return null;var e=this.question.cssClasses,t=[];if(this.question.isRenderModeList)for(var r=0;r<this.question.panels.length;r++){var n=this.question.panels[r];t.push(i.createElement(c,{key:r,panel:n,question:this.question,index:r,cssClasses:e,isDisplayMode:this.isDisplayMode,creator:this.creator}))}else if(null!=this.question.currentPanel){var n=this.question.currentPanel;t.push(i.createElement(c,{key:this.question.currentIndex,panel:n,question:this.question,index:this.question.currentIndex,cssClasses:e,isDisplayMode:this.isDisplayMode,creator:this.creator}))}var o=(this.isDisplayMode||i.createElement("td",null),this.question.isRenderModeList?this.renderAddRowButton(e,{marginTop:"5px"}):null),a=this.question.isProgressTopShowing?this.renderNavigator(e):null,s=this.question.isProgressBottomShowing?this.renderNavigator(e):null;return i.createElement("div",{className:e.root},a,t,s,o)},t.prototype.renderNavigator=function(e){var t={float:"left",margin:"5px"},r=this.question.isRangeShowing?this.renderRange(t):null,n=this.question.isPrevButtonShowing?this.renderButton(this.question.panelPrevText,e,t,this.handleOnPanelPrevClick):null,o=this.question.isNextButtonShowing?this.renderButton(this.question.panelNextText,e,t,this.handleOnPanelNextClick):null,a=this.renderAddRowButton(e,t);return i.createElement("div",null,r,n,o,a)},t.prototype.renderRange=function(e){var t={width:"25%"};for(var r in e)t[r]=e[r];return i.createElement("input",{style:t,type:"range",onChange:this.handleOnRangeChange,min:0,max:this.question.panelCount-1,value:this.question.currentIndex})},t.prototype.renderAddRowButton=function(e,t){return this.question.canAddPanel?this.renderButton(this.question.panelAddText,e,t,this.handleOnPanelAddClick):null},t.prototype.renderButton=function(e,t,r,n){return i.createElement("input",{className:t.button,style:r,type:"button",onClick:n,value:e})},t}(o.b),c=function(e){function t(t){var r=e.call(this,t)||this;return r.setProperties(t),r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setProperties(t)},t.prototype.setProperties=function(e){this.panel=e.panel,this.question=e.question,this.index=e.index,this.creator=e.creator,this.handleOnPanelRemoveClick=this.handleOnPanelRemoveClick.bind(this)},t.prototype.handleOnPanelRemoveClick=function(e){this.question.removePanelUI(this.index)},t.prototype.render=function(){if(!this.panel)return null;this.question.survey;var e=i.createElement(a.c,{key:this.index,panel:this.panel,css:s.b.getCss(),survey:this.question.survey,creator:this.creator}),t=this.question.isRenderModeList&&this.index<this.question.panelCount-1?i.createElement("hr",null):null,r=this.renderButton();return i.createElement("div",null,e,r,t)},t.prototype.renderButton=function(){if(!this.question.canRemovePanel)return null;var e={marginTop:"5px"};return i.createElement("input",{className:this.cssClasses.button,style:e,type:"button",onClick:this.handleOnPanelRemoveClick,value:this.question.panelRemoveText})},t}(o.c);u.a.Instance.registerQuestion("paneldynamic",function(e){return i.createElement(l,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(14),s=r(6);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;r.state={choicesChanged:0};var n=r;return r.question.choicesChangedCallback=function(){n.setState({choicesChanged:n.state.choicesChanged+1})},r.handleOnChange=r.handleOnChange.bind(r),r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.handleOnChange=this.handleOnChange.bind(this)},t.prototype.handleOnChange=function(e){this.question.value=e.target.value,this.setState({value:this.question.value})},t.prototype.render=function(){if(!this.question)return null;var e=this.question.cssClasses;return i.createElement("fieldset",{className:e.root},this.getItems(e),i.createElement("legend",{style:{display:"none"}},this.question.locTitle.renderedHtml))},t.prototype.getItems=function(e){for(var t=[],r=0;r<this.question.visibleChoices.length;r++){var n=this.question.visibleChoices[r],i="item"+r;t.push(this.renderItem(i,n,0===r,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!0,configurable:!0}),t.prototype.renderItem=function(e,t,r,n){var i=this.question.colCount>0?100/this.question.colCount+"%":"",o={display:"inline-block"};i&&(o.width=i);var a=this.question.value==t.value,s=a&&t.value===this.question.otherItem.value?this.renderOther(n):null;return this.renderRadio(e,t,a,o,s,r,n)},t.prototype.renderRadio=function(e,t,r,n,o,a,s){var u=a?this.question.inputId:null,l=this.renderLocString(t.locText,this.textStyle),c=s.item+(0===this.question.colCount?" sv_q_radiogroup_inline":"");return r&&(c+=" checked"),i.createElement("div",{key:e,className:c,style:n},i.createElement("label",{className:s.label},i.createElement("input",{className:s.itemControl,id:u,type:"radio",name:this.question.name+"_"+this.questionBase.id,checked:r,value:t.value,disabled:this.isDisplayMode,onChange:this.handleOnChange,"aria-label":this.question.locTitle.renderedHtml}),i.createElement("span",{className:"circle"}),i.createElement("span",{className:"check"}),i.createElement("span",{className:s.controlLabel},l)),o)},t.prototype.renderOther=function(e){return i.createElement("div",{className:e.other},i.createElement(a.a,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t}(o.b);s.a.Instance.registerQuestion("radiogroup",function(e){return i.createElement(u,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(4)),a=r(14),s=r(6);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.handleOnChange=function(e){this.question.value=e.target.value,this.setState({value:this.question.value})},t.prototype.render=function(){if(!this.question)return null;for(var e=this.question.cssClasses,t=[],r=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,n=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null,o=0;o<this.question.visibleRateValues.length;o++){var a=0==o?r:null,s=o==this.question.visibleRateValues.length-1?n:null;t.push(this.renderItem("value"+o,this.question.visibleRateValues[o],a,s,e))}var u=this.question.hasOther?this.renderOther(e):null;return i.createElement("div",{className:e.root},t,u)},t.prototype.renderItem=function(e,t,r,n,o){var a=this.question.value==t.value,s=o.item;a&&(s+=" "+o.selected);var u=this.renderLocString(t.locText),l=r?i.createElement("span",{className:o.minText},r):null,c=n?i.createElement("span",{className:o.maxText},n):null;return i.createElement("label",{key:e,className:s},i.createElement("input",{type:"radio",style:{display:"none"},name:this.question.name,value:t.value,disabled:this.isDisplayMode,checked:this.question.value==t.value,onChange:this.handleOnChange,"aria-label":t.locText.text}),l,i.createElement("span",{className:o.itemText},u),c)},t.prototype.renderOther=function(e){return i.createElement("div",{className:e.other},i.createElement(a.a,{question:this.question,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t}(o.b);s.a.Instance.registerQuestion("rating",function(e){return i.createElement(u,e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=(r.n(i),r(10)),a=r(4),s=r(6);r.d(t,"a",function(){return u});var u=function(e){function t(t){var r=e.call(this,t)||this;return r.state={value:r.getValue(r.question.value)},r.handleOnChange=r.handleOnChange.bind(r),r.handleOnBlur=r.handleOnBlur.bind(r),r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setState({value:this.getValue(this.question.value)})},t.prototype.handleOnChange=function(e){this.setState({value:this.getValue(e.target.value)})},t.prototype.handleOnBlur=function(e){this.question.value=e.target.value,this.setState({value:this.getValue(this.question.value)})},t.prototype.render=function(){if(!this.question)return null;var e=this.question.cssClasses;return this.isDisplayMode?i.createElement("div",{id:this.question.inputId,className:e.root},this.question.value):i.createElement("input",{id:this.question.inputId,className:e.root,type:this.question.inputType,value:this.state.value,size:this.question.size,placeholder:this.question.placeHolder,onBlur:this.handleOnBlur,onChange:this.handleOnChange,"aria-label":this.question.locTitle.renderedHtml})},t.prototype.getValue=function(e){return o.a.isValueEmpty(e)?"":e},t}(a.b);s.a.Instance.registerQuestion("text",function(e){return i.createElement(u,e)})},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(3);r.d(t,"e",function(){return a}),r.d(t,"a",function(){return s}),r.d(t,"d",function(){return u}),r.d(t,"b",function(){return l}),r.d(t,"c",function(){return c});var a=function(e){function t(){var t=e.call(this)||this;return t.opValue="equal",t}return n.b(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue?t.operatorsValue:(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}},t.operatorsValue)},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},Object.defineProperty(t.prototype,"operator",{get:function(){return this.opValue},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&(this.opValue=e))},enumerable:!0,configurable:!0}),t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess():this.onFailure()},t.prototype.onSuccess=function(){},t.prototype.onFailure=function(){},t.operatorsValue=null,t}(i.c),s=function(e){function t(){var t=e.call(this)||this;return t.owner=null,t}return n.b(t,e),t.prototype.setOwner=function(e){this.owner=e},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!1},enumerable:!0,configurable:!0}),t}(a),u=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return n.b(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner)for(var t=this.owner.getObjects(this.pages,this.questions),r=0;r<t.length;r++)e(t[r])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(s),l=function(e){function t(){return e.call(this)||this}return n.b(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.onSuccess=function(){this.owner&&this.owner.doComplete()},t}(s),c=function(e){function t(){return e.call(this)||this}return n.b(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.onSuccess=function(){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(s);o.b.metaData.addClass("trigger",["operator","!value"]),o.b.metaData.addClass("surveytrigger",["!name"],null,"trigger"),o.b.metaData.addClass("visibletrigger",["pages","questions"],function(){return new u},"surveytrigger"),o.b.metaData.addClass("completetrigger",[],function(){return new l},"surveytrigger"),o.b.metaData.addClass("setvaluetrigger",["!setToName","setValue","isVariable:boolean"],function(){return new c},"surveytrigger")},function(e,t,r){"use strict";function n(e,t){var r,n,i=/(\.0+)+$/,o=e.replace(i,"").split("."),a=t.replace(i,"").split("."),s=Math.min(o.length,a.length);for(r=0;r<s;r++)if(n=parseInt(o[r],10)-parseInt(a[r],10))return n;return o.length-a.length}function i(){return void 0!==window.orientation}r.d(t,"a",function(){return p}),r.d(t,"b",function(){return n}),r.d(t,"c",function(){return i});var o=/(webkit)[ \/]([\w.]+)/,a=/(msie) (\d{1,2}\.\d)/,s=/(trident).*rv:(\d{1,2}\.\d)/,u=/(edge)\/((\d+)?[\w\.]+)/,l=/(mozilla)(?:.*? rv:([\w.]+))/,c=function(e){e=e.toLowerCase();var t={},r=a.exec(e)||s.exec(e)||u.exec(e)||e.indexOf("compatible")<0&&l.exec(e)||o.exec(e)||[],n=r[1],i=r[2];return"trident"===n||"edge"===n?n="msie":"mozilla"===n&&(n="firefox"),n&&(t[n]=!0,t.version=i),t},p=c(navigator.userAgent)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0),i=r(2),o=(r.n(i),r(2)),a=(r.n(o),r(18)),s=r(20),u=r(30),l=r(46),c=r.n(l),p=r(45);r.d(t,"__assign",function(){return p.a}),r.d(t,"__extends",function(){return p.b}),r.d(t,"__decorate",function(){return p.c}),r.d(t,"defaultStandardCss",function(){return p.d}),r.d(t,"defaultBootstrapCss",function(){return p.e}),r.d(t,"defaultBootstrapMaterialCss",function(){return p.f}),r.d(t,"Survey",function(){return p.g}),r.d(t,"ReactSurveyModel",function(){return p.h}),r.d(t,"ReactWindowModel",function(){return p.i}),r.d(t,"Model",function(){return p.j}),r.d(t,"WindowModel",function(){return p.k}),r.d(t,"SurveyNavigationBase",function(){return p.l}),r.d(t,"SurveyTimerPanel",function(){return p.m}),r.d(t,"SurveyNavigation",function(){return p.n}),r.d(t,"SurveyPage",function(){return p.o}),r.d(t,"SurveyRow",function(){return p.p}),r.d(t,"SurveyQuestion",function(){return p.q}),r.d(t,"SurveyElementErrors",function(){return p.r}),r.d(t,"SurveyElementBase",function(){return p.s}),r.d(t,"SurveyQuestionElementBase",function(){return p.t}),r.d(t,"SurveyQuestionCommentItem",function(){return p.u}),r.d(t,"SurveyQuestionComment",function(){return p.v}),r.d(t,"SurveyQuestionCheckbox",function(){return p.w}),r.d(t,"SurveyQuestionCheckboxItem",function(){return p.x}),r.d(t,"SurveyQuestionDropdown",function(){return p.y}),r.d(t,"SurveyQuestionMatrixDropdown",function(){return p.z}),r.d(t,"SurveyQuestionMatrixDropdownRow",function(){return p.A}),r.d(t,"SurveyQuestionMatrix",function(){return p.B}),r.d(t,"SurveyQuestionMatrixRow",function(){return p.C}),r.d(t,"SurveyQuestionHtml",function(){return p.D}),r.d(t,"SurveyQuestionFile",function(){return p.E}),r.d(t,"SurveyQuestionMultipleText",function(){return p.F}),r.d(t,"SurveyQuestionMultipleTextItem",function(){return p.G}),r.d(t,"SurveyQuestionRadiogroup",function(){return p.H}),r.d(t,"SurveyQuestionText",function(){return p.I}),r.d(t,"SurveyQuestionBoolean",function(){return p.J}),r.d(t,"SurveyQuestionEmpty",function(){return p.K}),r.d(t,"SurveyQuestionMatrixDynamic",function(){return p.L}),r.d(t,"SurveyQuestionMatrixDynamicRow",function(){return p.M}),r.d(t,"SurveyQuestionPanelDynamic",function(){return p.N}),r.d(t,"SurveyProgress",function(){return p.O}),r.d(t,"SurveyQuestionRating",function(){return p.P}),r.d(t,"SurveyQuestionExpression",function(){return p.Q}),r.d(t,"SurveyWindow",function(){return p.R}),r.d(t,"ReactQuestionFactory",function(){return p.S}),r.d(t,"Version",function(){return p.T}),r.d(t,"Helpers",function(){return p.U}),r.d(t,"AnswerCountValidator",function(){return p.V}),r.d(t,"EmailValidator",function(){return p.W}),r.d(t,"NumericValidator",function(){return p.X}),r.d(t,"RegexValidator",function(){return p.Y}),r.d(t,"SurveyValidator",function(){return p.Z}),r.d(t,"TextValidator",function(){return p._0}),r.d(t,"ValidatorResult",function(){return p._1}),r.d(t,"ValidatorRunner",function(){return p._2}),r.d(t,"ItemValue",function(){return p._3}),r.d(t,"Base",function(){return p._4}),r.d(t,"Event",function(){return p._5}),r.d(t,"SurveyError",function(){return p._6}),r.d(t,"LocalizableString",function(){return p._7}),r.d(t,"ChoicesRestfull",function(){return p._8}),r.d(t,"FunctionFactory",function(){return p._9}),r.d(t,"Condition",function(){return p._10}),r.d(t,"ConditionNode",function(){return p._11}),r.d(t,"ConditionRunner",function(){return p._12}),r.d(t,"ConditionsParser",function(){return p._13}),r.d(t,"ProcessValue",function(){return p._14}),r.d(t,"CustomError",function(){return p._15}),r.d(t,"ExceedSizeError",function(){return p._16}),r.d(t,"RequreNumericError",function(){return p._17}),r.d(t,"JsonError",function(){return p._18}),r.d(t,"JsonIncorrectTypeError",function(){return p._19}),r.d(t,"JsonMetadata",function(){return p._20}),r.d(t,"JsonMetadataClass",function(){return p._21}),r.d(t,"JsonMissingTypeError",function(){return p._22}),r.d(t,"JsonMissingTypeErrorBase",function(){return p._23}),r.d(t,"JsonObject",function(){return p._24}),r.d(t,"JsonObjectProperty",function(){return p._25}),r.d(t,"JsonRequiredPropertyError",function(){return p._26}),r.d(t,"JsonUnknownPropertyError",function(){return p._27}),r.d(t,"MatrixDropdownCell",function(){return p._28}),r.d(t,"MatrixDropdownColumn",function(){return p._29}),r.d(t,"MatrixDropdownRowModelBase",function(){return p._30}),r.d(t,"QuestionMatrixDropdownModelBase",function(){return p._31}),r.d(t,"MatrixDropdownRowModel",function(){return p._32}),r.d(t,"QuestionMatrixDropdownModel",function(){return p._33}),r.d(t,"MatrixDynamicRowModel",function(){return p._34}),r.d(t,"QuestionMatrixDynamicModel",function(){return p._35}),r.d(t,"MatrixRowModel",function(){return p._36}),r.d(t,"QuestionMatrixModel",function(){return p._37}),r.d(t,"MultipleTextItemModel",function(){return p._38}),r.d(t,"QuestionMultipleTextModel",function(){return p._39}),r.d(t,"PanelModel",function(){return p._40}),r.d(t,"PanelModelBase",function(){return p._41}),r.d(t,"QuestionRowModel",function(){return p._42}),r.d(t,"PageModel",function(){return p._43}),r.d(t,"Question",function(){return p._44}),r.d(t,"QuestionBase",function(){return p._45}),r.d(t,"QuestionEmptyModel",function(){return p._46}),r.d(t,"QuestionCheckboxBase",function(){return p._47}),r.d(t,"QuestionSelectBase",function(){return p._48}),r.d(t,"QuestionCheckboxModel",function(){return p._49}),r.d(t,"QuestionCommentModel",function(){return p._50}),r.d(t,"QuestionDropdownModel",function(){return p._51}),r.d(t,"QuestionFactory",function(){return p._52}),r.d(t,"ElementFactory",function(){return p._53}),r.d(t,"QuestionFileModel",function(){return p._54}),r.d(t,"QuestionHtmlModel",function(){return p._55}),r.d(t,"QuestionRadiogroupModel",function(){return p._56}),r.d(t,"QuestionRatingModel",function(){return p._57}),r.d(t,"QuestionExpressionModel",function(){return p._58}),r.d(t,"QuestionTextModel",function(){return p._59}),r.d(t,"QuestionBooleanModel",function(){return p._60}),r.d(t,"QuestionPanelDynamicModel",function(){return p._61}),r.d(t,"QuestionPanelDynamicItem",function(){return p._62}),r.d(t,"SurveyTimer",function(){return p._63}),r.d(t,"SurveyModel",function(){return p._64}),r.d(t,"SurveyTrigger",function(){return p._65}),r.d(t,"SurveyTriggerComplete",function(){return p._66}),r.d(t,"SurveyTriggerSetValue",function(){return p._67}),r.d(t,"SurveyTriggerVisible",function(){return p._68}),r.d(t,"Trigger",function(){return p._69}),r.d(t,"SurveyWindowModel",function(){return p._70}),r.d(t,"TextPreProcessor",function(){return p._71}),r.d(t,"dxSurveyService",function(){return p._72}),r.d(t,"surveyLocalization",function(){return p._73}),r.d(t,"surveyStrings",function(){return p._74}),r.d(t,"QuestionCustomWidget",function(){return p._75}),r.d(t,"CustomWidgetCollection",function(){return p._76}),r.d(t,"StylesManager",function(){return p._77}),c.a.fn.extend({Survey:function(e){this.each(function(){o.render(i.createElement(s.a,n.a({},e)),this)})},SurveyWindow:function(e){this.each(function(){o.render(i.createElement(u.a,n.a({},e)),this)})}}),a.a.platform="jquery"}])});