/*!
 * surveyjs - Survey JavaScript library v1.0.50
 * Copyright (c) 2015-2018 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("react")):"function"==typeof define&&define.amd?define("Survey",["react"],t):"object"==typeof exports?exports.Survey=t(require("react")):e.Survey=t(e.React)}(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=113)}([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,s=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}},function(e,t,r){"use strict";var n=r(36);r.d(t,"a",function(){return i}),r.d(t,"b",function(){return o});var i={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(e){this.currentLocaleValue=e},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(e){this.defaultLocaleValue=e},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}},o=n.a;i.locales.en=n.a,i.localeNames.en="english"},function(e,t,r){"use strict";var n=r(0),i=r(6);r.d(t,"i",function(){return o}),r.d(t,"a",function(){return s}),r.d(t,"f",function(){return a}),r.d(t,"e",function(){return l}),r.d(t,"c",function(){return u}),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.isDynamicChoices=!1,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},set:function(e){this.isRequiredValue=e},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 e&&(e=e.toLowerCase()),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","isDynamicChoices","isLocalizableValue","className","alternativeName","classNamePart","baseClassName","defaultValue","serializationProperty","onGetValue","onSetValue"],e}(),s=function(){function e(){}return e.addProperty=function(t,r){t=t.toLowerCase();var n=e.properties;n[t]||(n[t]=[]),n[t].push(r)},e.removeProperty=function(t,r){t=t.toLowerCase();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){t=t.toLowerCase(),r&&(r=r.toLowerCase()),e.parentClasses[t]=r},e.getProperties=function(t){t=t.toLowerCase();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))if(t.isLocalizable&&t.serializationProperty&&!e[t.serializationProperty]&&e.createCustomLocalizableObj){e.createCustomLocalizableObj(t.name);var r={get:function(){return e.getLocalizableString(t.name)}};Object.defineProperty(e,t.serializationProperty,r);var n={get:function(){return e.getLocalizableStringText(t.name,t.defaultValue)},set:function(r){e.setLocalizableStringText(t.name,r)}};Object.defineProperty(e,t.name,n)}else{"itemvalues"===t.typeValue&&"function"==typeof e.createNewArray&&e.createNewArray(t.name);var n={get:function(){return e.getPropertyValue(t.name,t.defaultValue)},set:function(r){e.setPropertyValue(t.name,r)}};Object.defineProperty(e,t.name,n)}},e.properties={},e.parentClasses={},e}(),a=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,e=e.toLowerCase(),n&&(n=n.toLowerCase(),s.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,s=r.indexOf(e.typeSymbol);s>-1&&(n=r.substring(s+1),r=r.substring(0,s));var a=this.getIsPropertyNameRequired(r);r=this.getPropertyName(r);var l=new o(r,a);if(n&&(l.type=n),"object"==typeof t){if(t.type&&(l.type=t.type),i.a.isValueEmpty(t.default)||(l.defaultValue=t.default),i.a.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),i.a.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),!1===t.visible&&(l.visible=!1),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}if(t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.isLocalizable&&(t.serializationProperty="loc"+t.name),t.serializationProperty){l.serializationProperty=t.serializationProperty;l.serializationProperty&&0==l.serializationProperty.indexOf("loc")&&(l.isLocalizable=!0)}t.isLocalizable&&(l.isLocalizable=t.isLocalizable),t.className&&(l.className=t.className),t.baseClassName&&(l.baseClassName=t.baseClassName),t.classNamePart&&(l.classNamePart=t.classNamePart),t.alternativeName&&(l.alternativeName=t.alternativeName)}return l}},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):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),l=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.classProperties={}}return e.prototype.addClass=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),e=e.toLowerCase();var i=new a(e,t,r,n);if(this.classes[e]=i,n){n=n.toLowerCase();this.childrenClasses[n]||(this.childrenClasses[n]=[]),this.childrenClasses[n].push(i)}return i},e.prototype.overrideClassCreatore=function(e,t){e=e.toLowerCase();var r=this.findClass(e);r&&(r.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);if(!t)return[];var r=this.classProperties[t.name];return r||(r=new Array,this.fillProperties(t.name,r),this.classProperties[t.name]=r),r},e.prototype.getDynamicProperties=function(e){if(e.getDynamicProperties&&e.getDynamicType){var t=e.getDynamicProperties();return g.metaData.findProperties(e.getDynamicType(),t)}return[]},e.prototype.getPropertiesByObj=function(e){if(!e||!e.getType)return[];for(var t=[],r=this.getProperties(e.getType()),n=0;n<r.length;n++)t.push(r[n]);var i=this.getDynamicProperties(e);if(i&&i.length>0)for(var n=0;n<i.length;n++)t.push(i[n]);return t},e.prototype.findProperty=function(e,t){return e=e.toLowerCase(),this.findPropertyCore(this.getProperties(e),t)},e.prototype.findProperties=function(e,t){e=e.toLowerCase();for(var r=[],n=this.getProperties(e),i=0;i<t.length;i++){var o=this.findPropertyCore(n,t[i]);o&&r.push(o)}return r},e.prototype.findPropertyCore=function(e,t){for(var r=0;r<e.length;r++)if(e[r].name==t)return e[r];return null},e.prototype.createClass=function(e){e=e.toLowerCase();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){e=e.toLowerCase();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},s.createProperties(r),r},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=[];return this.fillChildrenClasses(e,t,r),r},e.prototype.getRequiredProperties=function(e){for(var t=this.getProperties(e),r=[],n=0;n<t.length;n++)t[n].isRequired&&r.push(t[n].name);return r},e.prototype.addProperties=function(e,t){e=e.toLowerCase();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),s.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),s.removeProperty(r.name,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.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){e=e.toLowerCase();var t=this.classes[e];if(!t){var r=this.alternativeNames[e];if(r&&r!=e)return this.findClass(r)}return t},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},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}(),u=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}(u),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),s=0;s<o.length;s++)s>0&&(i.description+=", "),i.description+="'"+o[s].name+"'";return i.description+=".",i}return n.b(t,e),t}(u),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}(u),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,t){return void 0===t&&(t=!1),this.toJsonObjectCore(e,null,t)},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(),n=this.addDynamicProperties(r,t,n);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,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,n){if(void 0===n&&(n=!1),!t||!t.getType)return t;var i={};return null==r||r.className||(i[e.typePropertyName]=r.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),i,n),this.propertiesToJson(t,this.getDynamicProperties(t),i,n),i},e.prototype.getDynamicProperties=function(t){if(t.getDynamicProperties&&t.getDynamicType){var r=t.getDynamicProperties();return e.metaData.findProperties(t.getDynamicType(),r)}return[]},e.prototype.addDynamicProperties=function(e,t,r){if(!e.getDynamicPropertyName)return r;var n=e.getDynamicPropertyName();if(!n)return r;t[n]&&(e[n]=t[n]);for(var i=this.getDynamicProperties(e),o=[],s=0;s<r.length;s++)o.push(r[s]);for(var s=0;s<i.length;s++)o.push(i[s]);return o},e.prototype.propertiesToJson=function(e,t,r,n){void 0===n&&(n=!1);for(var i=0;i<t.length;i++)this.valueToJson(e,r,t[i],n)},e.prototype.valueToJson=function(e,t,r,n){if(void 0===n&&(n=!1),!1!==r.isSerializable){var i=r.getValue(e);if(n||!r.isDefaultValue(i)){if(this.isValueArray(i)){for(var o=[],s=0;s<i.length;s++)o.push(this.toJsonObjectCore(i[s],r,n));i=o.length>0?o:null}else i=this.toJsonObjectCore(i,r,n);var a="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(r.name,null);(n&&a||!r.isDefaultValue(i))&&(t[r.name]=i)}}},e.prototype.valueToObj=function(e,t,r){if(null!=e){if(this.removePos(r,e),null!=r&&r.hasToUseSetValue)return void r.setValue(t,e,this);if(this.isValueArray(e))return void this.valueToArray(e,t,r.name,r);var n=this.createNewObj(e,r);n.newObj&&(this.toObject(e,n.newObj),e=n.newObj),n.error||(null!=r?r.setValue(t,e,this):t[r.name]=e)}},e.prototype.removePos=function(e,t){!e||!e.type||e.type.indexOf("value")<0||this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.removePosFromObj(t[r]);t[e.positionPropertyName]&&delete t[e.positionPropertyName]}},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 s=e.metaData.getRequiredProperties(i);if(s)for(var a=0;a<s.length;a++)if(!r[s[a]]){o=new f(s[a],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 l,e}()},function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(0),i=r(3);r.n(i);r.d(t,"d",function(){return o}),r.d(t,"a",function(){return s}),r.d(t,"c",function(){return a}),r.d(t,"b",function(){return l});var o=function(e){function t(t){var r=e.call(this,t)||this;return r.style=null,r.setProperties(t),r.state={changed:0},r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(e){this.setProperties(e)},t.prototype.setProperties=function(e){this.locStr=e.locStr,this.style=e.style;var t=this;this.locStr.onChanged=function(){t.setState({changed:t.state.changed+1})}},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.createElement("span",{style:this.style,dangerouslySetInnerHTML:e})}return i.createElement("span",{style:this.style},this.locStr.renderedHtml)},t}(i.Component),s=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){return void 0===t&&(t=null),i.createElement(o,{locStr:e,style:t})},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.prototype.makeBaseElementReact=function(e){var t=this;e&&(e.iteratePropertiesHash(function(e,r){var n=e[r];Array.isArray(n)&&(n.onArrayChanged=function(){return t.setState(function(e){var t={};return t[r]=n,t})})}),e.setPropertyValueCoreHandler=function(e,r,n){e[r]=n,t.setState(function(e){var t={};return t[r]=n,t})})},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}(s),l=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}(s)},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";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.isArrayContainsEqual=function(t,r){if(!Array.isArray(t)||!Array.isArray(r))return!1;if(t.length!==r.length)return!1;for(var n=0;n<t.length;n++){for(var i=0;i<r.length&&!e.isTwoValueEquals(t[n],r[i]);i++);if(i===r.length)return!1}return!0},e.isArraysEqual=function(t,r,n){if(void 0===n&&(n=!1),!Array.isArray(t)||!Array.isArray(r))return!1;if(t.length!==r.length)return!1;if(n){for(var i=[],o=[],s=0;s<t.length;s++)i.push(t[s]),o.push(r[s]);i.sort(),o.sort(),t=i,r=o}for(var s=0;s<t.length;s++)if(!e.isTwoValueEquals(t[s],r[s]))return!1;return!0},e.isTwoValueEquals=function(t,r,n){if(void 0===n&&(n=!1),t===r)return!0;if(t&&!r||!t&&r)return!1;if(!(t instanceof Object||r instanceof Object))return t==r;if(!(t instanceof Object&&r instanceof Object))return!1;if(t.equals)return t.equals(r);if(Array.isArray(t)&&Array.isArray(r))return e.isArraysEqual(t,r,n);for(var i in t)if(t.hasOwnProperty(i)){if(!r.hasOwnProperty(i))return!1;if(t[i]!==r[i]){if("object"!=typeof t[i])return!1;if(!this.isTwoValueEquals(t[i],r[i]))return!1}}for(i in r)if(r.hasOwnProperty(i)&&!t.hasOwnProperty(i))return!1;return!0},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.getUnbindValue=function(e){return e&&e instanceof Object?JSON.parse(JSON.stringify(e)):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},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(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";var n=r(0),i=r(20),o=r(6),s=r(11),a=r(2);r.d(t,"b",function(){return l}),r.d(t,"d",function(){return u}),r.d(t,"a",function(){return c}),r.d(t,"c",function(){return p});var l=function(){function e(){this.propertyHash={},this.localizableStrings={},this.arraysInfo={},this.onPropChangeFunctions=[],this.isLoadingFromJsonValue=!1,this.onPropertyChanged=new p,a.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.toJSON=function(){return(new a.b).toJsonObject(this)},e.prototype.locStrsChanged=function(){for(var e in this.arraysInfo){var t=this.arraysInfo[e];if(t&&t.isItemValues){var r=this.getPropertyValue(e);r&&s.a.locStrsChanged(r)}}for(var e in this.localizableStrings){var t=this.getLocalizableString(e);t&&t.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var r=this.getPropertyValueCore(this.propertyHash,e);return this.IsPropertyEmpty(r)&&null!=t?t:r},e.prototype.getPropertyValueCore=function(e,t){return this.getPropertyValueCoreHandler?this.getPropertyValueCoreHandler(e,t):e[t]},e.prototype.setPropertyValueCore=function(e,t,r){this.setPropertyValueCoreHandler?this.setPropertyValueCoreHandler(e,t,r):e[t]=r},e.prototype.iteratePropertiesHash=function(e){var t=this,r=[];for(var n in this.propertyHash)r.push(n);r.forEach(function(r){return e(t.propertyHash,r)})},e.prototype.setPropertyValue=function(e,t){var r=this.getPropertyValue(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(r)}},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.createCustomLocalizableObj=function(e){!this.getLocalizableString(e)&&this.getLocale&&this.createLocalizableString(e,this)},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.notifyArrayChanged=function(e){!!e.onArrayChanged&&e.onArrayChanged()},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=Object.getPrototypeOf(n).push.call(n,r);return t&&t(r),i.propertyValueChanged(e,n,n),i.notifyArrayChanged(n),o},n.pop=function(){var t=Object.getPrototypeOf(n).pop.call(n);return r&&r(t),i.propertyValueChanged(e,n,n),i.notifyArrayChanged(n),t},n.splice=function(o,s){for(var a=[],l=2;l<arguments.length;l++)a[l-2]=arguments[l];o||(o=0),s||(s=0);var u=(p=Object.getPrototypeOf(n).splice).call.apply(p,[n,o,s].concat(a));if(a||(a=[]),r&&u)for(var c=0;c<u.length;c++)r(u[c]);if(t)for(var c=0;c<a.length;c++)t(a[c],o+c);return i.propertyValueChanged(e,n,n),i.notifyArrayChanged(n),u;var p},n},e.prototype.setArray=function(e,t,r,n){if(Object.getPrototypeOf(e).splice.call(e,0,e.length),!t)return void this.notifyArrayChanged(e);for(var i=0;i<t.length;i++){var o=t[i];r&&(o="function"==typeof t[i].getType?new s.a(null,void 0,t[i].getType()):new s.a(null),o.setData(t[i])),Object.getPrototypeOf(e).push.call(e,o),n&&n(e[i])}this.notifyArrayChanged(e)},e.prototype.isTwoValueEquals=function(e,t){return o.a.isTwoValueEquals(e,t)},e.commentPrefix="-Comment",e}(),u=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.locTextValue=new i.a(t,!0),this.locText.text=this.getText()}return Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!0,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),e},e.prototype.getDefaultText=function(){return""},e}(),c=function(e){function t(t){var r=e.call(this)||this;return r.selectedElementInDesignValue=r,r.name=t,r.createNewArray("errors"),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.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,"isVisible",{get:function(){return!0},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,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",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()},t.prototype.setVisibleIndex=function(e){return 0},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!0,configurable:!0}),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.copyObject=function(e,t){for(var r in t){var n=t[r];"object"==typeof n&&(n={},this.copyObject(n,t[r])),e[r]=n}},t.prototype.copyCssClasses=function(e,r){r&&("string"==typeof r||r instanceof String?e.root=r:t.copyObject(e,r))},t}(l),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.clear=function(){this.callbacks=[]},e.prototype.add=function(e){this.hasFunc(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.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e}()},function(e,t,r){"use strict";var n=r(0),i=r(2),o=r(8),s=r(1),a=r(10),l=r(21),u=r(18),c=r(12),p=r(13),h=r(39);r.d(t,"a",function(){return d});var d=function(e){function t(r){var n=e.call(this,r)||this;n.name=r,n.conditionRunner=null,n.isCustomWidgetRequested=!1,n.customWidgetData={isNeedRender:!0},n.isvalueChangedCallbackFiring=!1,n.isValueChangedInSurvey=!1,n.locOwner=null,n.id=t.getQuestionId(),n.onCreating();var i=n;return n.createNewArray("validators",function(e){e.locOwner=i}),n.createLocalizableString("title",n,!0).onRenderedHtmlCallback=function(e){return i.fullTitle},n.createLocalizableString("description",n,!0),n.createLocalizableString("commentText",n,!0),n.createLocalizableString("requiredErrorText",n),n.registerFunctionOnPropertyValueChanged("width",function(){i.parent&&i.parent.elementWidthChanged(i)}),n.registerFunctionOnPropertiesValueChanged(["indent","rightIndent"],function(){i.onIndentChanged()}),n}return n.b(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},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,"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=[])},Object.defineProperty(t.prototype,"useDisplayValuesInTitle",{get:function(){return this.getPropertyValue("useDisplayValuesInTitle",!0)},set:function(e){this.setPropertyValue("useDisplayValuesInTitle",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,"isVisible",{get:function(){return this.visible||this.isDesignMode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!0,configurable:!0}),t.prototype.propertyValueChanged=function(t,r,n){"name"===t&&this.onNameValueChanged(r,n),e.prototype.propertyValueChanged.call(this,t,r,n)},t.prototype.onNameValueChanged=function(e,t){t&&(t.indexOf(".")>-1?this.valueName&&!this.isCorrectedNameEqualsValueName(e)||(this.valueName=this.getCorrectedName(t)):this.valueName&&this.isCorrectedNameEqualsValueName(e)&&(this.valueName=""))},t.prototype.getCorrectedName=function(e){for(;e.indexOf(".")>-1;)e=e.replace("."," ");return e.trim()},t.prototype.isCorrectedNameEqualsValueName=function(e){return!(!e||e.indexOf(".")<0||!this.valueName)&&this.getCorrectedName(e)==this.valueName},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.getType=function(){return"question"},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.survey&&this.survey.isDesignMode&&this.onVisibleChanged(),this.data&&!this.isLoadingFromJson&&(this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():null},t.prototype.getDataFilteredProperties=function(){return this.data?this.data.getFilteredProperties():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,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},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){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("questionTitleLocation",e.toLowerCase()),t&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!0,configurable:!0}),t.prototype.getTitleLocation=function(){var e=this.getTitleLocationCore();return"left"!==e||this.isAllowTitleLeft||(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},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)},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,"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=h.b.Instance.getCustomWidget(this)},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locTitle.textOrHtml;return e||this.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){var e=this.calcFullTitle();return this.survey?this.survey.getUpdatedQuestionTitle(this,e):e},enumerable:!0,configurable:!0}),t.prototype.getQuestionTitleTemplate=function(){return this.questionTitleTemplateCallback?this.questionTitleTemplateCallback():this.survey?this.survey.getQuestionTitleTemplate():null},t.prototype.calcFullTitle=function(){if(this.getQuestionTitleTemplate()){if(!this.textPreProcessor){var e=this;this.textPreProcessor=new u.a,this.textPreProcessor.onProcess=function(t){e.getProcessedTextValue(t)}}return this.textPreProcessor.process(this.getQuestionTitleTemplate(),this.useDisplayValuesInTitle)}var t=this.requiredText;t&&(t+=" ");var r=this.no;return r&&(r+=". "),r+t+this.processedTitle},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){this.isRequired&&(t.question.required&&(e.root+=" "+t.question.required),t.question.titleRequired&&(e.title+=" "+t.question.titleRequired));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 p.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}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddintLeft","")},set:function(e){this.setPropertyValue("paddintLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!0,configurable:!0}),t.prototype.onIndentChanged=function(){this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return e<1?"":e*this.cssClasses.indent+"px"},t.prototype.focus=function(e){void 0===e&&(e=!1),o.a.ScrollElementToTop(this.id);var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();o.a.FocusElement(t)&&this.fireCallback(this.focusCallback)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey&&this.survey.maxOthersLength>0?this.survey.maxOthersLength:null},t.prototype.onCreating=function(){},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var r=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(r)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[r]||e.name]},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.isLoadingFromJson||this.locTitle.onChanged())},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,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},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||!!this.parent&&this.parent.isReadOnly||!!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(e,t){this.isDesignMode||(this.runVisibleIfCondition(e,t),this.runEnableIfCondition(e,t))},t.prototype.runVisibleIfCondition=function(e,t){this.visibleIf&&(this.conditionRunner||(this.conditionRunner=new c.a(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.visible=this.conditionRunner.run(e,t))},t.prototype.runEnableIfCondition=function(e,t){this.enableIf&&(this.conditionEnabelRunner||(this.conditionEnabelRunner=new c.a(this.enableIf)),this.conditionEnabelRunner.expression=this.enableIf,this.readOnly=!this.conditionEnabelRunner.run(e,t))},t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isReadOnly",this.isReadOnly)},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(){this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onSurveyValueChanged(this.value),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.canClearValueAsInvisible=function(){return(!this.isVisible||!this.isParentVisible)&&(!this.survey||!this.valueName||!this.survey.hasVisibleQuestionByValueName(this.valueName))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!0,configurable:!0}),t.prototype.clearValueIfInvisible=function(){this.canClearValueAsInvisible()&&this.clearValue()},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.getDisplayValue(!0)},enumerable:!0,configurable:!0}),t.prototype.getDisplayValue=function(e){if(this.customWidget){var t=this.customWidget.getDisplayValue(this);if(t)return t}return this.getDisplayValueCore(e)},t.prototype.getDisplayValueCore=function(e){return this.value},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.isDefaultValueEmpty()||(this.isDesignMode||this.isEmpty())&&this.setDefaultValue()},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return this.isValueEmpty(this.defaultValue)},t.prototype.setDefaultValue=function(){this.value=this.defaultValue},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getComment()},set:function(e){e&&(e=e.trim()),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.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!0,configurable:!0}),t.prototype.addConditionNames=function(e){e.push(this.name)},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var r=(new i.b).toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e){void 0===e&&(e=!0);var t=this.checkForErrors();return e&&(this.errors=t),t.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)},t.prototype.checkForErrors=function(){var e=new Array;return this.isVisible&&!this.isReadOnly&&this.collectErrors(e),e},t.prototype.collectErrors=function(e){if(this.onCheckForErrors(e),0==e.length){var t=this.runValidators();t&&(e.length=0,e.push(t))}if(this.survey&&0==e.length){var t=this.fireSurveyValidation();t&&e.push(t)}},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e){this.hasRequiredError()&&e.push(new a.c(this.requiredErrorText))},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},t.prototype.runValidators=function(){return(new l.h).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.setVisibleIndex=function(e){return this.isVisible&&this.hasTitle||(e=-1),this.setPropertyValue("visibleIndex",e),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.clearIncorrectValues=function(){},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.survey?this.survey.getSurveyMarkdownHtml(this,e):this.locOwner?this.locOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.textProcessor?this.textProcessor.processText(e,this.useDisplayValuesInTitle):this.locOwner?this.locOwner.getProcessedText(e):e},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.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,t}(o.a);i.b.metaData.addClass("question",["!name",{name:"visible:boolean",default:!0},{name:"useDisplayValuesInTitle: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:[]}},{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","hidden"]}]),i.b.metaData.addAlterNativeClassName("question","questionbase")},function(e,t,r){"use strict";var n=r(0),i=r(1),o=r(8);r.d(t,"c",function(){return s}),r.d(t,"b",function(){return a}),r.d(t,"d",function(){return l}),r.d(t,"e",function(){return u}),r.d(t,"a",function(){return c});var s=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return n.b(t,e),t.prototype.getDefaultText=function(){return i.a.getString("requiredError")},t}(o.d),a=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return n.b(t,e),t.prototype.getDefaultText=function(){return i.a.getString("requiredErrorInPanel")},t}(o.d),l=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return n.b(t,e),t.prototype.getDefaultText=function(){return i.a.getString("numericError")},t}(o.d),u=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,null,r)||this;return n.maxSize=t,n.locText.text=n.getText(),n}return n.b(t,e),t.prototype.getDefaultText=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,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return n.b(t,e),t}(o.d)},function(e,t,r){"use strict";var n=r(20),i=r(2),o=r(6),s=r(12);r.d(t,"a",function(){return a});var a=function(){function e(e,t,r){void 0===t&&(t=null),void 0===r&&(r="itemvalue");var i=this;this.visibleIfValue="",this.isVisibleValue=!0,this.getType=function(){return r},this.locTextValue=new n.a(null,!0),this.locTextValue.onGetTextCallback=function(e){return e||(i.isValueEmpty?null:i.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.unshift=function(e){var r=Array.prototype.unshift.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=(a=Array.prototype.splice).call.apply(a,[this,e,r].concat(n));n||(n=[]);for(var s=0;s<n.length;s++)n[s].locOwner=t;return o;var a}},e.setData=function(t,r){t.length=0;for(var n=0;n<r.length;n++){var i,o=r[n];i="function"==typeof o.getType?new e(null,void 0,o.getType()):new e(null),i.setData(o),t.push(i)}},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(o.a.isTwoValueEquals(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.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locText.strChanged()},e.runConditionsForItems=function(e,t,r,n,i){n||(n={});for(var o=n.item,s=n.choice,a=!1,l=0;l<e.length;l++){var u=e[l];n.item=u.value,n.choice=u.value;var c=!!u.getConditionRunner&&u.getConditionRunner();c||(c=r);var p=!0;c?(p=c.run(n,i))&&t.push(u):t.push(u),p!=u.isVisible&&(a=!0,u.setIsVisible&&u.setIsVisible(p))}return o?n.item=o:delete n.item,s?n.choice=s:delete n.choice,a},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!0,configurable:!0}),e.prototype.setLocText=function(e){this.locTextValue=e},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)):this.hasText||this.locText.onChanged()}},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&&!this.visibleIf)return this.value;var r=this.value;r&&r.pos&&delete r.pos;var n={value:r};if(t&&(n.text=t),this.visibleIf&&(n.visibleIf=this.visibleIf),e)for(var i in e)n[i]=e[i];return n},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()),t.visibleIf&&(this.visibleIf=t.visibleIf),r=e.itemValueProp),this.copyAttributes(t,r)}else this.value=t},Object.defineProperty(e.prototype,"visibleIf",{get:function(){return this.visibleIfValue},set:function(e){this.visibleIfValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.isVisibleValue},enumerable:!0,configurable:!0}),e.prototype.setIsVisible=function(e){this.isVisibleValue=e},e.prototype.getConditionRunner=function(){return this.visibleIf?(this.conditionRunner||(this.conditionRunner=new s.a(this.visibleIf)),this.conditionRunner.expression=this.visibleIf,this.conditionRunner):null},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]):-1===["locText","hasText","isVisible","isValueEmpty"].indexOf(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","visibleIfValue","visibleIf","hasText","locOwner","locText","isValueEmpty","isVisible","isVisibleValue","locTextValue","conditionRunner","pos","survey"],e}();i.b.metaData.addClass("itemvalue",["!value",{name:"text",onGetValue:function(e){return e.locText.pureText}},{name:"visibleIf:condition",visible:!1}])},function(e,t,r){"use strict";var n=r(0),i=r(6),o=r(33),s=r(35),a=r(15);r.d(t,"d",function(){return l}),r.d(t,"e",function(){return u}),r.d(t,"f",function(){return c}),r.d(t,"g",function(){return p}),r.d(t,"c",function(){return h}),r.d(t,"b",function(){return d}),r.d(t,"h",function(){return f}),r.d(t,"a",function(){return g});var l=function(){function e(e){this.origionalValue=e}return e.prototype.getValue=function(t){if(Array.isArray(this.origionalValue)){for(var r=[],n=0;n<this.origionalValue.length;n++){var i=new e(this.origionalValue[n]);r.push(i.getValue(t))}return r}var o=this.getSimpleValue(this.origionalValue);if(o.isSimple)return o.value;var s=this.removeQuotesAndEscapes(this.origionalValue);if(t){var a=this.getValueName(s);if(a)return t.hasValue(a)?(s=t.getValue(a),this.getSimpleValue(s).value):null}return s},Object.defineProperty(e.prototype,"isBoolean",{get:function(){return this.isBooleanValue(this.origionalValue)},enumerable:!0,configurable:!0}),e.prototype.fillVariables=function(e){var t=this.getValueName(this.origionalValue);t&&e.push(t)},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||e.indexOf("%")>-1))return!1;var t=Number(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,0==e.indexOf("0x")?t.value=parseInt(e):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 s.a.Instance.run(this.origionalValue,t,e.properties)},t.prototype.fillVariables=function(e){for(var t=0;t<this.parameters.length;t++)this.parameters[t].fillVariables(e)},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}(l),c=function(e){function t(){return e.call(this,null)||this}return n.b(t,e),t.prototype.getValue=function(e){if(i.a.isValueEmpty(this.left)||i.a.isValueEmpty(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?Math.pow(t,r):"/"==this.operator?r?t/r:null:"%"==this.operator&&r?t%r:null},t.prototype.fillVariables=function(e){this.left&&this.left.fillVariables(e),this.right&&this.left.fillVariables(e)},t.prototype.toString=function(){var e=this.left?this.left.toString():"";return e+=" "+this.operator+" ",this.right&&(e+=this.right.toString()),e},t}(l),p=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.fillVariables=function(e){this.root&&this.root.fillVariables(e)},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 e.isNot;if(n&&!t)return!e.isNot}return e.isNot?!t: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}(l),h=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 i.a.isTwoValueEquals(e,t,!0)},notequal:function(e,t){return!i.a.isTwoValueEquals(e,t,!0)},contains:function(t,r){return e.operatorsValue.containsCore(t,r,!0)},notcontains:function(t,r){return!t&&!i.a.isValueEmpty(r)||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=Array.isArray(t)?t:[t],o=0;o<i.length;o++){var s=0;for(t=i[o];s<e.length&&e[s]!=t;s++);if(s==e.length)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.fillVariables=function(e){this.left&&this.left.fillVariables(e),this.right&&this.right.fillVariables(e)},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}(),d=function(){function e(){this.connectiveValue="and",this.isNot=!1,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.getVariables=function(){var e=[];return this.fillVariables(e),e},e.prototype.fillVariables=function(e){for(var t=0;t<this.children.length;t++)this.children[t].fillVariables(e)},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}(),f=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 o.a).parseExpression(this.expressionValue))},enumerable:!0,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t){return void 0===t&&(t=null),this.operand?(this.processValue.values=e,this.processValue.properties=t,this.operand.getValue(this.processValue)):null},e}(),g=function(){function e(e){this.root=new d,this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},set:function(e){this.expression!=e&&(this.expressionValue=e,(new o.a).parse(this.expressionValue,this.root))},enumerable:!0,configurable:!0}),e.prototype.getVariables=function(){return this.root?this.root.getVariables():[]},e.prototype.run=function(e,t){void 0===t&&(t=null);var r=new p(this.root),n=new a.a;return n.values=e,n.properties=t,r.getValue(n)},e}()},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:"",completedPage:"sv_completed_page",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:"",hasError:"",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",label:"",materialDecorator:"checkbox-material"},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",materialDecorator:"checkbox-material",other:"sv_q_other sv_q_checkbox_other"},comment:"",dropdown:{root:"",control:"sv_q_dropdown_control",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label"},matrixdropdown:{root:"sv_q_matrix_dropdown"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:""},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",button:"",buttonPrev:"",buttonNext:"",buttonAdd:"",buttonRemove:""},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:"",materialDecorator:"circle",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},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:"",file:{root:"sv_q_file",placeholderInput:"sv_q_file_placeholder",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",removeFile:"sv_q_file_remove"},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(3),o=(r.n(i),r(4)),s=r(5);r.d(t,"b",function(){return a}),r.d(t,"a",function(){return l});var a=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,readOnly:this.isDisplayMode,value:this.state.value,maxLength:this.question.getMaxLength(),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),l=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,maxLength:this.question.getOthersMaxLength(),onChange:this.handleOnChange,onBlur:this.handleOnBlur,"aria-label":this.question.locTitle.renderedHtml})},t}(o.c);s.a.Instance.registerQuestion("comment",function(e){return i.createElement(a,e)})},function(e,t,r){"use strict";var n=r(6);r.d(t,"a",function(){return i});var i=function(){function e(){this.values=null,this.properties=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;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-".length".length&&(r.value=0,r.hasValue=!0);for(var o=!0;e&&e.length>0;){if(!o&&"["==e[0]){if(!Array.isArray(i))return r;for(var s=1,a="";s<e.length&&"]"!=e[s];)a+=e[s],s++;if(e=s<e.length?e.substr(s+1):"",(s=this.getIntValue(a))<0||s>=i.length)return r;i=i[s]}else{o||(e=e.substr(1));var l=this.getFirstName(e);if(!l)return r;if(i=this.getObjectValue(i,l),n.a.isValueEmpty(i))return r;e=e.substr(l.length)}o=!1}return r.value=i,r.hasValue=!0,r},e.prototype.getObjectValue=function(e,t){if(e[t])return e[t];t=t.toLowerCase();for(var r in e)if(r.toLowerCase()==t)return e[r];return null},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(27),o=r(44),s=r(13);r.d(t,"a",function(){return a}),r.d(t,"b",function(){return l});var a=function(e){function t(t){return void 0===t&&(t=null),e.call(this,t)||this}return n.b(t,e),Object.defineProperty(t.prototype,"css",{get:function(){return s.b.getCss()},set:function(e){this.mergeValues(e,this.css)},enumerable:!0,configurable:!0}),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),l=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(9),s=r(11),a=r(6),l=r(1),u=r(10),c=r(32),p=r(12);r.d(t,"b",function(){return h}),r.d(t,"a",function(){return d});var h=function(e){function t(t){var r=e.call(this,t)||this;r.visibleChoicesCache=null,r.filteredChoicesValue=null,r.otherItemValue=new s.a("other"),r.choicesFromUrl=null,r.cachedValueForUrlRequests=null,r.isSettingComment=!1,r.isFirstLoadChoicesFromUrl=!0;var n=r;r.choices=r.createItemValues("choices"),r.registerFunctionOnPropertyValueChanged("choices",function(){n.filterItems()||n.onVisibleChoicesChanged()}),r.registerFunctionOnPropertyValueChanged("hideIfChoicesEmpty",function(){n.updateVisibilityBasedOnChoices()}),r.choicesByUrl=r.createRestfull(),r.choicesByUrl.owner=r;var i=r.createLocalizableString("otherText",r,!0);return r.createLocalizableString("otherErrorText",r,!0),r.otherItemValue.locOwner=r,r.otherItemValue.setLocText(i),i.onGetTextCallback=function(e){return e||l.a.getString("otherItemText")},r.choicesByUrl.getResultCallback=function(e){n.onLoadChoicesFromUrl(e)},r.choicesByUrl.updateResultCallback=function(e,t){return n.survey?n.survey.updateChoicesFromServer(n,e,t):e},r}return n.b(t,e),Object.defineProperty(t.prototype,"otherItem",{get:function(){return 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}),Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runItemsCondition(t,r)},t.prototype.setDefaultValue=function(){this.hasOther&&this.getStoreOthersAsComment()&&this.hasUnknownValue(this.defaultValue,!0)?this.setDefaultValueWithOthers():e.prototype.setDefaultValue.call(this)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.otherItem.value,this.comment=this.defaultValue},t.prototype.filterItems=function(){return!(this.isLoadingFromJson||!this.data||this.isDesignMode)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,t);return this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=null),r&&(this.filteredChoicesValue&&this.clearIncorrectValues(),this.onVisibleChoicesChanged()),r},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.a(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.runConditionsForItems=function(e,t){return this.filteredChoicesValue=[],s.a.runConditionsForItems(this.activeChoices,this.filteredChoices,this.conditionChoicesVisibleIfRunner,e,t)},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.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(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,!0)?(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,t){return void 0===t&&(t=!1),!a.a.isValueEmpty(e)&&((!t||e!=this.otherItem.value)&&null==s.a.getItemByValue(this.filteredChoices,e))},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty",!1)},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",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}),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",l.a.getString("otherItemText"))},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",l.a.getString("otherRequiredError"))},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.canUseFilteredChoices()?this.filteredChoices:(this.visibleChoicesCache||(this.visibleChoicesCache=this.sortVisibleChoices(this.filteredChoices.slice()),this.addToVisibleChoices(this.visibleChoicesCache)),this.visibleChoicesCache)},enumerable:!0,configurable:!0}),t.prototype.canUseFilteredChoices=function(){return!this.hasOther&&"none"==this.choicesOrder},t.prototype.addToVisibleChoices=function(e){this.hasOther&&e.push(this.otherItem)},t.prototype.getDisplayValueCore=function(e){return this.isEmpty()?"":this.getChoicesDisplayValue(this.visibleChoices,this.value)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.comment?this.comment:this.locOtherText.textOrHtml;var r=s.a.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},Object.defineProperty(t.prototype,"filteredChoices",{get:function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},enumerable:!0,configurable:!0}),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){e.prototype.onCheckForErrors.call(this,t),this.hasOther&&this.isOtherSelected&&!this.comment&&t.push(new u.a(this.otherErrorText,this))},t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.runChoicesByUrl()},t.prototype.getStoreOthersAsComment=function(){return this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.runChoicesByUrl(),this.onVisibleChoicesChanged()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&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){this.errors=[],this.choicesByUrl&&this.choicesByUrl.error&&this.errors.push(this.choicesByUrl.error);var t=null,r=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,r=!1),this.isFirstLoadChoicesFromUrl=!1;var n=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,r);if(e&&e.length>0&&(t=new Array,s.a.setData(t,e)),this.choicesFromUrl=t,this.onVisibleChoicesChanged(),t){var i=this.updateCachedValueForUrlRequests(n);i&&(this.value=i.value)}},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++)r.push(this.createCachedValueForUrlRequests(e[n],!0));return r}return{value:e,isExists:!t||!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),this.updateVisibilityBasedOnChoices())},t.prototype.updateVisibilityBasedOnChoices=function(){this.hideIfChoicesEmpty&&(this.visible=!this.filteredChoices||this.filteredChoices.length>0)},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 a.a.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){var e=this.value;this.hasUnknownValue(e,!0)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||this.hasComment||(this.comment=null)},t}(o.a),d=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,"colCount",{get:function(){return this.getPropertyValue("colCount",1)},set:function(e){e<0||e>5||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!0,configurable:!0}),t}(h);i.b.metaData.addClass("selectbase",["hasComment:boolean","hasOther:boolean",{name:"choices:itemvalues",onGetValue:function(e){return s.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)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition",{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,5]}],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,this.canProcess=!0}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],s=this.getName(e.substring(o.start+1,o.end));if(s){var a=new i(s,t);this.onProcess(a),a.isExists?(null==a.value&&(a.value="",this.hasAllValuesOnLastRunValue=!1),e=e.substr(0,o.start)+a.value+e.substr(o.end+1)):a.canProcess&&(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="",s=0;s<r;s++)if(o=e[s],"{"==o&&(i=s),"}"==o){if(i>-1){var a=new n;a.start=i,a.end=s,t.push(a)}i=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}()},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(8)),s=r(14),a=r(4),l=r(110);r.d(t,"a",function(){return u}),r.d(t,"b",function(){return c}),r.d(t,"c",function(){return p});var u=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.question=e,this.makeBaseElementReact(this.question)},t.prototype.getState=function(){var e=this.question?this.question.value:null;return{visible:this.question.visible,value:e,error:0,renderWidth:0,visibleIndexValue:-1,isReadOnly:this.question.isReadOnly}},t.prototype.componentDidMount=function(){if(this.question){var e=this;this.question.react=e,this.question.registerFunctionOnPropertyValueChanged("visibleIndex",function(){e.setState({visibleIndexValue:e.question.visibleIndex})},"react")}this.doAfterRender()},t.prototype.componentWillUnmount=function(){if(this.question){this.question.react=null,this.question.unRegisterFunctionOnPropertiesValueChanged(["visibleIndex"],"react");var e=this.refs.root;e&&e.removeAttribute("data-rendered")}},t.prototype.componentDidUpdate=function(e,t){this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.question){var e=this.refs.root;e&&this.question.survey&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.question.survey.afterRenderQuestion(this.question,e))}},t.prototype.render=function(){if(!this.question||!this.creator)return null;if(!this.question.visible)return null;var e=this.question.cssClasses,t=this.renderQuestion(),r=this.question.hasTitle?this.renderTitle(e):null,n=this.renderDescription(e),o=this.question?this.question.getTitleLocation():"",s="top"===o?r:null,a="bottom"===o?r:null,l="left"===o?r:null,u="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;this.question.errors&&this.question.errors.length>0&&(f+=" "+e.hasError);var 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={};return this.question.renderWidth&&(b.width=this.question.renderWidth),this.question.paddingLeft&&(b.paddingLeft=this.question.paddingLeft),this.question.paddingRight&&(b.paddingRight=this.question.paddingRight),i.createElement("div",{ref:"root",id:this.question.id,className:f,style:b},i.createElement("div",{className:u},s,h,l,p),i.createElement("div",{className:c},y,t,g,v,a,d))},t.prototype.renderQuestion=function(){return this.question.customWidget?i.createElement(l.a,{creator:this.creator,question:this.question}):this.creator.createQuestionElement(this.question)},t.prototype.renderTitle=function(e){var t=a.a.renderLocString(this.question.locTitle);return i.createElement("h5",{className:e.title},t)},t.prototype.renderDescription=function(e){if(!this.question.hasDescription)return null;var t=a.a.renderLocString(this.question.locDescription);return i.createElement("div",{className:e.description},t)},t.prototype.renderComment=function(e){var t=this.question.commentText;return i.createElement("div",{className:"form-group"},i.createElement("div",null,t),i.createElement(s.a,{question:this.question,cssClasses:e,otherCss:e.other}))},t.prototype.renderErrors=function(e){return i.createElement(c,{element:this.question,cssClasses:e,creator:this.creator})},t}(a.a),c=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){this.element=e instanceof o.a?e:null},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="error"+t;e.push(this.creator.renderError(r,this.element.errors[t],this.cssClasses))}return i.createElement("div",{role:"alert",className:this.cssClasses.error.root},e)},t}(a.c),p=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),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.setProperties(t)},t.prototype.setProperties=function(e){this.question=e.question,this.creator=e.creator},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionValue},set:function(e){this.questionValue=e,this.makeBaseElementReact(this.question)},enumerable:!0,configurable:!0}),t.prototype.getState=function(e){if(void 0===e&&(e=!1),this.question){var t=this.question,r=this.state&&this.state.error?this.state.error:0;return e&&r++,{isReadOnly:t.isReadOnly,visible:t.visible,error:r}}},t.prototype.componentDidMount=function(){if(this.doAfterRender(),this.question){var e=this;this.question.registerFunctionOnPropertyValueChanged("isReadOnly",function(){e.setState(e.getState())},"react"),this.question.registerFunctionOnPropertyValueChanged("visible",function(){e.setState(e.getState())},"react")}},t.prototype.componentWillUnmount=function(){if(this.question){this.question.unRegisterFunctionOnPropertiesValueChanged(["visible","isReadOnly"],"react");var e=this.refs.cell;e&&e.removeAttribute("data-rendered")}},t.prototype.componentDidUpdate=function(e,t){this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.getCellClass=function(){return null},t.prototype.render=function(){if(!this.question)return null;var e=i.createElement(c,{element:this.question,cssClasses:this.cssClasses,creator:this.creator}),t=this.renderCell();return i.createElement("td",{ref:"cell",className:this.getCellClass(),headers:this.question.visible&&this.cell?this.cell.column.locTitle.renderedHtml:""},e,t)},t.prototype.renderCell=function(){return this.question.visible?this.question.customWidget?i.createElement(l.a,{creator:this.creator,question:this.question}):this.creator.createQuestionElement(this.question):null},t}(a.c)},function(e,t,r){"use strict";var n=r(6),i=r(1);r.d(t,"a",function(){return o});var o=function(){function e(e,t){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.values={},this.htmlValues={},this.renderedText=null,this.calculatedText=null,this.onGetTextCallback=null,this.onCreating()}return Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner?this.owner.getLocale():""},enumerable:!0,configurable:!0}),e.prototype.strChanged=function(){null!==this.renderedText&&(this.calculatedText=this.calText(),this.renderedText!==this.calculatedText&&this.onChanged())},Object.defineProperty(e.prototype,"text",{get:function(){return this.renderedText=null!==this.calculatedText?this.calculatedText:this.calText(),this.calculatedText=null,this.renderedText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!0,configurable:!0}),e.prototype.calText=function(){var e=this.pureText;return e&&this.owner&&this.owner.getProcessedText&&e.indexOf("{")>-1&&(e=this.owner.getProcessedText(e)),this.onGetTextCallback&&(e=this.onGetTextCallback(e)),e},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[i.a.defaultLocale]),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,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},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)&&(r&&t&&t!=e.defaultLocale&&!this.values[t]&&r==this.getLocaleText(e.defaultLocale)||(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.strChanged()))},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.strChanged()}},e.prototype.equals=function(e){return!(!e||!e.values)&&n.a.isTwoValueEquals(this.values,e.values)},e.prototype.onChanged=function(){this.onStrChanged&&this.onStrChanged()},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),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(8),o=r(10),s=r(1),a=r(2),l=r(12),u=r(6);r.d(t,"g",function(){return c}),r.d(t,"e",function(){return p}),r.d(t,"h",function(){return h}),r.d(t,"c",function(){return d}),r.d(t,"f",function(){return f}),r.d(t,"a",function(){return g}),r.d(t,"d",function(){return m}),r.d(t,"b",function(){return y});var c=function(){function e(e,t){void 0===t&&(t=null),this.value=e,this.error=t}return e}(),p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return n.b(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!0,configurable:!0}),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.prototype.validateAllValues=function(e,t,r,n){return void 0===n&&(n=null),null},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e){return this.locOwner?this.locOwner.getMarkdownHtml(e):null},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){return new o.a(this.getErrorText(e),this.locOwner)},t}(i.b),h=function(){function e(){}return e.prototype.run=function(e){for(var t=0;t<e.validators.length;t++){var r=null,n=e.validators[t];if(null!=(r=n.isValidateAllValues?n.validateAllValues(e.validatedValue,e.getDataFilteredValues(),e.getDataFilteredProperties(),e.getValidatorTitle()):n.validate(e.validatedValue,e.getValidatorTitle()))){if(r.error)return r.error;r.value&&(e.validatedValue=r.value)}}return null},e}(),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.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),u.a.isValueEmpty(e))return null;if(!this.isNumber(e))return new c(null,new o.d);var r=new c(parseFloat(e));return null!==this.minValue&&this.minValue>r.value?(r.error=this.createCustomError(t),r):null!==this.maxValue&&this.maxValue<r.value?(r.error=this.createCustomError(t),r):"number"==typeof e?null:r},t.prototype.getDefaultErrorText=function(e){var t=e||s.a.getString("value");return null!==this.minValue&&null!==this.maxValue?s.a.getString("numericMinMax").format(t,this.minValue,this.maxValue):null!==this.minValue?s.a.getString("numericMin").format(t,this.minValue):s.a.getString("numericMax").format(t,this.maxValue)},t.prototype.isNumber=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},t}(p),f=function(e){function t(t,r,n){void 0===t&&(t=0),void 0===r&&(r=0),void 0===n&&(n=!0);var i=e.call(this)||this;return i.minLength=t,i.maxLength=r,i.allowDigits=n,i}return n.b(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t){if(void 0===t&&(t=null),""!==e&&u.a.isValueEmpty(e))return null;if(!this.allowDigits){if(!/^[A-Za-z\s]*$/.test(e))return new c(null,this.createCustomError(t))}return this.minLength>0&&e.length<this.minLength?new c(null,this.createCustomError(t)):this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?s.a.getString("textMinMaxLength").format(this.minLength,this.maxLength):this.minLength>0?s.a.getString("textMinLength").format(this.minLength):s.a.getString("textMaxLength").format(this.maxLength)},t}(p),g=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 c(null,this.createCustomError(s.a.getString("minSelectError").format(this.minCount))):this.maxCount&&r>this.maxCount?new c(null,this.createCustomError(s.a.getString("maxSelectError").format(this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},t}(p),m=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 c(t,this.createCustomError(r))},t}(p),y=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 c(e,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return s.a.getString("invalidEmail")},t}(p),v=function(e){function t(){var t=e.call(this)||this;return t.conditionRunner=null,t}return n.b(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.validateAllValues=function(e,t,r,n){return void 0===n&&(n=null),this.expression?(this.conditionRunner||(this.conditionRunner=new l.a(this.expression)),this.conditionRunner.expression=this.expression,this.conditionRunner.run(t,r)?null:new c(e,this.createCustomError(n))):null},t.prototype.getDefaultErrorText=function(e){return s.a.getString("invalidExpression").format(this.expression)},t}(p);a.b.metaData.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),a.b.metaData.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new d},"surveyvalidator"),a.b.metaData.addClass("textvalidator",["minLength:number","maxLength:number","allowDigits:boolean"],function(){return new f},"surveyvalidator"),a.b.metaData.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new g},"surveyvalidator"),a.b.metaData.addClass("regexvalidator",["regex"],function(){return new m},"surveyvalidator"),a.b.metaData.addClass("emailvalidator",[],function(){return new y},"surveyvalidator"),a.b.metaData.addClass("expressionvalidator",["expression:condition"],function(){return new v},"surveyvalidator")},function(e,t,r){"use strict";var n=r(0),i=r(3);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(3),o=(r.n(i),r(19)),s=r(4);r.d(t,"a",function(){return l}),r.d(t,"c",function(){return u}),r.d(t,"b",function(){return c});var a=function(e){function t(t){var r=e.call(this,t)||this;return r.survey=t.survey,r.creator=t.creator,r.css=t.css,r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(e){this.survey=e.survey,this.creator=e.creator,this.css=e.css},Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.panelValue},set:function(e){this.panelValue=e,this.makeBaseElementReact(this.panelBase)},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.doAfterRender()},t.prototype.componentWillUnmount=function(){var e=this.refs.root;e&&e.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(e,t){this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.refs.root;e&&this.survey&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.panelBase.isPanel?this.survey.afterRenderPanel(this.panelBase,e):this.survey.afterRenderPage(e))},t.prototype.renderRows=function(){for(var e=[],t=this.panelBase.rows,r=0;r<t.length;r++)e.push(this.createRow(t[r],r));return e},t.prototype.createRow=function(e,t){var r="row"+(t+1);return i.createElement(c,{key:r,row:e,survey:this.survey,creator:this.creator,css:this.css})},t}(s.a),l=function(e){function t(t){var r=e.call(this,t)||this;return r.panelBase=t.page,r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.panelBase=t.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!0,configurable:!0}),t.prototype.render=function(){if(null==this.page||null==this.survey||null==this.creator)return null;var e=this.renderTitle(),t=this.renderDescription(),r=this.renderRows();return i.createElement("div",{ref:"root",className:this.css.page.root},e,t,r)},t.prototype.renderTitle=function(){if(!this.page.title||!this.survey.showPageTitles)return null;var e=s.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=s.a.renderLocString(this.page.locDescription);return i.createElement("div",{className:this.css.pageDescription},e)},t}(a),u=function(e){function t(t){var r=e.call(this,t)||this;return r.panelBase=t.panel,r.state={modelChanged:0},r}return n.b(t,e),t.prototype.componentWillReceiveProps=function(t){e.prototype.componentWillReceiveProps.call(this,t),this.panelBase=t.panel},Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this);var t=this;this.panelBase.registerFunctionOnPropertiesValueChanged(["isVisible","state"],function(){t.setState({modelChanged:t.state.modelChanged+1})},"react")},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.panelBase&&this.panelBase.unRegisterFunctionOnPropertiesValueChanged(["isVisible","state"],"react")},t.prototype.render=function(){if(null==this.panelBase||null==this.survey||null==this.creator)return null;if(!this.panelBase.isVisible)return null;var e=this.renderTitle(),t=this.renderDescription(),r=i.createElement(o.b,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),n=this.renderRows(),s={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.isCollapsed?"none":"block"},a={};return this.panel.renderWidth&&(a.width=this.panel.renderWidth),i.createElement("div",{ref:"root",className:this.css.panel.container,style:a},e,t,r,i.createElement("div",{style:s},n))},t.prototype.renderTitle=function(){var e=this;if(!this.panelBase.title)return null;var t=s.a.renderLocString(this.panelBase.locTitle),r=null,n=this.css.panel.title;if(this.panel.isCollapsed||this.panel.isExpanded){n+=" sv_p_title_expandable";var o="sv_panel_icon";this.panel.isCollapsed||(o+=" sv_expanded");var a=function(){e.panel.isCollapsed?e.panel.expand():e.panel.collapse(),e.setState({modelChanged:e.state.modelChanged+1})};r=i.createElement("span",{className:o})}return i.createElement("h4",{className:n,onClick:a},t,r)},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=s.a.renderLocString(this.panelBase.locDescription);return i.createElement("div",{className:this.css.panel.description},e)},t}(a),c=function(e){function t(t){var r=e.call(this,t)||this;return r.setProperties(t),r.makeBaseElementReact(r.row),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}(s.a)},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(19);r.d(t,"b",function(){return a}),r.d(t,"c",function(){return l}),r.d(t,"a",function(){return u});var a=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.setProperties=function(e){var t=this;this.refs.matrixDynamicRef&&this.setState({rowCounter:0}),this.question.visibleRowsChangedCallback=function(){t.setState(t.getState(t.state))}},t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.render=function(){return this.question?this.renderTableDiv():null},t.prototype.renderTableDiv=function(){var e=this.question.isColumnLayoutHorizontal?this.renderHeader():this.renderRowsAsHeaders(),t=this.question.isColumnLayoutHorizontal?this.renderRows():this.renderColumnsAsRows(),r=this.question.horizontalScroll?{overflowX:"scroll"}:{};return i.createElement("div",{style:r},i.createElement("table",{className:this.question.cssClasses.root},e,t))},t.prototype.renderHeader=function(){if(!this.question.showHeader)return null;var e=[];this.addHeaderLeft(e);for(var t=0;t<this.question.visibleColumns.length;t++){var r=this.question.visibleColumns[t],n="column"+t,o=this.question.getColumnWidth(r),s=o?{minWidth:o}:{},a=this.renderLocString(r.locTitle);e.push(i.createElement("th",{key:n,style:s},a))}return this.addHeaderRight(e),i.createElement("thead",null,i.createElement("tr",null,e))},t.prototype.renderRowsAsHeaders=function(){return null},t.prototype.renderColumnsAsRows=function(){for(var e=this.question.cssClasses,t=[],r=this.question.visibleColumns,n=0;n<r.length;n++){var o=r[n];t.push(this.renderColumnAsRow(n,o,e))}return this.addBottomColumnAsRows(t),i.createElement("tbody",null,t)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],r=this.question.visibleRows,n=0;n<r.length;n++){var o=r[n];t.push(this.renderRow(n,o,e))}return i.createElement("tbody",null,t)},t.prototype.renderRow=function(e,t,r){return null},t.prototype.renderColumnAsRow=function(e,t,r){var n=[];if(this.question.showHeader){var o=this.renderLocString(t.locTitle);n.push(i.createElement("td",{key:"header"},o))}for(var s=this.question.visibleRows,a=0;a<s.length;a++){var l=s[a].cells[e],c=i.createElement(u,{key:"cell"+a,cssClasses:r,cell:l,creator:this.creator});n.push(c)}return i.createElement("tr",{key:"columnAsrow"+e},n)},t.prototype.addHeaderLeft=function(e){},t.prototype.addHeaderRight=function(e){},t.prototype.addBottomColumnAsRows=function(e){},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.creator=e.creator},t.prototype.render=function(){if(!this.row)return null;var e=[];this.AddLeftCells(e);for(var t=0;t<this.row.cells.length;t++){var r=this.row.cells[t],n=i.createElement(u,{key:"row"+t,cssClasses:this.cssClasses,cell:r,creator:this.creator});e.push(n)}return this.AddRightCells(e),i.createElement("tr",null,e)},t.prototype.AddLeftCells=function(e){},t.prototype.AddRightCells=function(e){},t}(o.c),u=function(e){function t(t){return e.call(this,t)||this}return n.b(t,e),t.prototype.setProperties=function(t){e.prototype.setProperties.call(this,t),this.cell=t.cell,!this.question&&this.cell&&(this.question=this.cell.question)},t.prototype.doAfterRender=function(){var e=this.refs.cell;if(e&&this.cell&&this.question&&this.question.survey&&"r"!==e.getAttribute("data-rendered")){e.setAttribute("data-rendered","r");var t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.column};this.question.survey.matrixAfterCellRender(this.question,t)}},t.prototype.getCellClass=function(){return this.cssClasses.itemValue},t}(s.c)},function(e,t,r){"use strict";var n=r(0),i=r(2),o=r(8),s=r(12),a=r(7),l=r(13),u=r(10);r.d(t,"a",function(){return c}),r.d(t,"d",function(){return p}),r.d(t,"b",function(){return h}),r.d(t,"c",function(){return d});var c=function(){function e(e,t){this.source=e,this.target=t}return e}(),p=function(e){function t(t){var r=e.call(this)||this;return r.panel=t,r.visible=t.isDesignMode,r.createNewArray("elements"),r}return n.b(t,e),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},enumerable:!0,configurable:!0}),t.prototype.updateVisible=function(){this.visible=this.calcVisible(),this.setWidth()},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!0,configurable:!0}),t.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:(100/e).toFixed(6)+"%",n.rightIndent=t<e-1?1:0,t++}else this.elements[r].renderWidth=""},t.prototype.getVisibleCount=function(){for(var e=0,t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e++;return e},t.prototype.calcVisible=function(){return this.getVisibleCount()>0},t}(o.b),h=function(e){function t(r){void 0===r&&(r="");var n=e.call(this,r)||this;n.name=r,n.isQuestionsReady=!1,n.questionsValue=new Array,n.conditionVersion=-1,n.createNewArray("rows"),n.elementsValue=n.createNewArray("elements",function(e){i.onAddElement(e,i.elementsValue.length)},function(e){i.onRemoveElement(e)}),n.registerFunctionOnPropertyValueChanged("elements",function(){i.onRowsChanged()}),n.registerFunctionOnPropertyValueChanged("questionTitleLocation",function(){i.onVisibleChanged()}),n.id=t.getPanelId();var i=n;return n.createLocalizableString("title",n,!0),n.createLocalizableString("description",n,!0),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}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},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.getSurveyMarkdownHtml(this,e):null},t.prototype.getProcessedText=function(e){return this.textProcessor?this.textProcessor.processText(e,!0):e},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 l.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.getValue=function(){for(var e={},t=this.questions,r=0;r<t.length;r++){var n=t[r];n.isEmpty()||(e[n.getValueName()]=n.value)}return e},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,r=0;r<t.length;r++){var n=t[r],i=this.data.getComment(n.getValueName());i&&(e[n.getValueName()]=i)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},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.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.survey){var r=this.survey.validatePanel(this);r&&(t.push(r),e.result=!0)}e.fireCallback&&(this.errors=t)},t.prototype.hasRequiredError=function(e,t){if(this.isRequired){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,t.push(new u.b(this.requiredErrorText)),e.firstErrorQuestion||(e.firstErrorQuestion=r[0])}}},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.hasErrorsInPanels(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 s=t[o];r&&!s.visible||((i&&s.isPanel||!i&&!s.isPanel)&&e.push(s),s.isPanel?s.addElementsToListCore(e,s.elements,r,n,i):n&&this.addElementsToListCore(e,s.getElementsInDesign(!1),r,n,i))}},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.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible")&&this.onVisibleChanged()},t.prototype.createRow=function(){return new p(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onRowsChanged()},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!0,configurable:!0}),t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setPropertyValue("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){if(e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),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)}this.addElementCallback&&this.addElementCallback(e);var i=this;e.registerFunctionOnPropertiesValueChanged(["visible","isVisible"],function(){i.onElementVisibilityChanged(e)},this.id),e.registerFunctionOnPropertyValueChanged("startWithNewLine",function(){i.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unRegisterFunctionOnPropertiesValueChanged(["visible","isVisible","startWithNewLine"],this.id),e.isPanel?this.survey&&this.survey.panelRemoved(e):this.survey&&this.survey.questionRemoved(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this)},t.prototype.onElementVisibilityChanged=function(e){this.isLoadingFromJson||(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){this.onRowsChanged()},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,r=0;r<t.length;r++){var n=t[r];if(n.elements.indexOf(e)>-1){n.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},t.prototype.findRowByElement=function(e){for(var t=this.rows,r=0;r<t.length;r++)if(t[r].elements.indexOf(e)>-1)return t[r];return null},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},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.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0){for(var t=0;t<this.elements.length;t++)this.elements[t].setVisibleIndex(-1);return 0}for(var r=e,t=0;t<this.elements.length;t++)e+=this.elements[t].setVisibleIndex(e);return e-r},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!!this.readOnly||(this.parent?this.parent.isReadOnly:!(!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.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=a.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 d(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,t){if(!(this.isDesignMode||e.conditionVersion<this.conditionVersion)){this.conditionVersion=e.conditionVersion;for(var r=this.elements.slice(),n=0;n<r.length;n++){if(e.conditionVersion<this.conditionVersion)return;r[n].runCondition(e,t)}e.conditionVersion<this.conditionVersion||(this.runVisibleCondition(e,t),this.runEnableCondition(e,t))}},t.prototype.runVisibleCondition=function(e,t){if(this.visibleIf){var r=new s.a(this.visibleIf);this.visible=r.run(e,t)}},t.prototype.runEnableCondition=function(e,t){if(this.enableIf){var r=new s.a(this.enableIf);this.readOnly=!r.run(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.elements.length;t++)this.elements[t].onAnyValueChanged(e)},t.prototype.onReadOnlyChanged=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onReadOnlyChanged()},t.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.dragDropRemoveTarget(e.target,t)},t.prototype.dragDropRemoveTarget=function(e,t){if(t&&t.panel){var r=t.elements.indexOf(e);r<0||(t.elements.splice(r,1),t.elements.length>0?t.updateVisible():t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=e,r=this.rows,n=0;n<r.length;n++)if(r[n].elements.indexOf(t)>-1)return r[n];for(var n=0;n<this.elements.length;n++){var i=this.elements[n];if(i.isPanel){var o=i.dragDropFindRow(t);if(o)return o}}return null},t.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination)return!0;if(this.dragDropAddTargetToEmptyPage(e))return!0;var r=e.destination,n=this.dragDropFindRow(r);return!n||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,n,t):this.dragDropAddTargetToExistingRow(e,n,t))},t.prototype.dragDropAddTargetToEmptyPage=function(e){if(!e.destination.isPage)return!1;var t=new p(this.root);return t.addElement(e.target),this.root.rows.push(t),!0},t.prototype.dragDropAddTargetToExistingRow=function(e,t,r){var n=t.elements.indexOf(e.destination);if(0==n&&!e.isBottom)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,r)):this.dragDropAddTargetToNewRow(e,t,r);var i=-1;return r==t&&(i=t.elements.indexOf(e.target)),e.isBottom&&n++,n!=i&&(i>-1&&(t.elements.splice(i,1),i<n&&n--),t.elements.splice(n,0,e.target),t.updateVisible(),i<0)},t.prototype.dragDropAddTargetToNewRow=function(e,t,r){var n=new p(t.panel);n.addElement(e.target);var i=t.index;return e.isBottom&&i++,(!r||r.panel!=n.panel||r.index!=i)&&(t.panel.rows.splice(i,0,n),!0)},t.panelCounter=100,t}(o.a),d=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.registerFunctionOnPropertyValueChanged("width",function(){n.parent&&n.parent.elementWidthChanged(n)}),r.registerFunctionOnPropertiesValueChanged(["indent","innerIndent","rightIndent"],function(){n.onIndentChanged()}),r}return n.b(t,e),t.prototype.getType=function(){return"panel"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},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,"indent",{get:function(){return this.getPropertyValue("indent",0)},set:function(e){this.setPropertyValue("indent",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}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!0,configurable:!0}),t.prototype.onIndentChanged=function(){this.innerPaddingLeft=this.getIndentSize(this.innerIndent),this.paddingLeft=this.getIndentSize(this.indent),this.paddingRight=this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){if(e<1)return"";if(!this.data)return"";var t=this.survey.css;return t?e*t.question.indent+"px":""},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.setPropertyValue("isVisible",this.isVisible),null!=this.survey&&this.survey.panelVisibilityChanged(this,this.visible)},t}(h);i.b.metaData.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1},{name:"visible:boolean",default:!0},"visibleIf:condition","enableIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],function(){return new h}),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:"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(){return new d},"panelbase")},function(e,t,r){"use strict";function n(e,t,r,n){e.hasOther&&(e.storeOthersAsComment=!1),e.choices&&0!=e.choices.length||!e.choicesByUrl.isEmpty||(e.choices=r.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(n)}var i=r(0),o=r(2),s=r(37),a=r(6),l=r(8),u=r(18),c=r(15),p=r(11),h=r(1),d=r(7);r.d(t,"c",function(){return f}),r.d(t,"b",function(){return g}),r.d(t,"a",function(){return m}),r.d(t,"d",function(){return y}),r.d(t,"e",function(){return v});var f={dropdown:{properties:["choices","choicesOrder","choicesByUrl","optionsCaption","otherText"],onCellQuestionUpdate:function(e,t,r,i){n(e,t,r,i),e.optionsCaption||(e.optionsCaption=r.optionsCaption)}},checkbox:{properties:["choices","choicesOrder","choicesByUrl","otherText"],onCellQuestionUpdate:function(e,t,r,i){n(e,t,r,i),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},radiogroup:{properties:["choices","choicesOrder","choicesByUrl","otherText"],onCellQuestionUpdate:function(e,t,r,i){n(e,t,r,i),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},text:{properties:["placeHolder","inputType","maxLength"],onCellQuestionUpdate:function(e,t,r,n){}},comment:{properties:["placeHolder","rows","maxLength"],onCellQuestionUpdate:function(e,t,r,n){}},boolean:{properties:["defaultValue"],onCellQuestionUpdate:function(e,t,r,n){e.showTitle=!0}},expression:{properties:["expression"],onCellQuestionUpdate:function(e,t,r,n){}}},g=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.colOwnerValue=null,n.indexValue=-1,n._isVisible=!0,n.updateTemplateQuestion(),n.name=t,r&&(n.title=r),n}return i.b(t,e),t.getColumnTypes=function(){var e=[];for(var t in f)e.push(t);return e},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return this.calcCellQuestionType()},t.prototype.getDynamicProperties=function(){var e=this.calcCellQuestionType(),t=f[e];return t?t.properties:[]},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,this.updateTemplateQuestion()},enumerable:!0,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!0,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType","default")},set:function(e){e=e.toLocaleLowerCase(),this.setPropertyValue("cellType",e),this.updateTemplateQuestion()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!0,configurable:!0}),t.prototype.setIsVisible=function(e){this._isVisible=e},Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},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,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=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,"colCount",{get:function(){return this.getPropertyValue("colCount",-1)},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",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.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(),r=this.createNewQuestion(t);return this.updateCellQuestion(r,e),r},t.prototype.updateCellQuestion=function(e,t){this.setQuestionProperties(e);var r=this.calcCellQuestionType(),n=f[r];n&&n.onCellQuestionUpdate&&n.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(){return"default"!==this.cellType?this.cellType:this.colOwner?this.colOwner.getCellType():"dropdown"},t.prototype.updateTemplateQuestion=function(){var e=this.templateQuestion?this.templateQuestion.getType():"",t=this.calcCellQuestionType();if(t!==e){this.templateQuestion&&this.removeProperties(e),this.templateQuestionValue=this.createNewQuestion(t),this.templateQuestion.locOwner=this,this.addProperties(t);var r=this;this.templateQuestion.locTitle.onGetTextCallback=function(e){return r.getFullTitle(e)},this.templateQuestion.onPropertyChanged.add(function(){r.doColumnPropertiesChanged()})}},t.prototype.createNewQuestion=function(e){var t=o.b.metaData.createClass(e);return this.setQuestionProperties(t),t},t.prototype.setQuestionProperties=function(e){if(this.templateQuestion){var t=(new o.b).toJsonObject(this.templateQuestion,!0);t.type=e.getType(),(new o.b).toObject(t,e)}},t.prototype.propertyValueChanged=function(t,r,n){e.prototype.propertyValueChanged.call(this,t,r,n),this.doColumnPropertiesChanged()},t.prototype.doColumnPropertiesChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnPropertiesChanged(this)},t.prototype.getProperties=function(e){var t=f[e];return t&&t.properties?o.b.metaData.findProperties(e,t.properties):[]},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),r=0;r<t.length;r++){var n=t[r];delete this[n.name],n.serializationProperty&&delete this[n.serializationProperty]}},t.prototype.addProperties=function(e){for(var t=this.templateQuestion,r=this.getProperties(e),n=0;n<r.length;n++){var i=r[n];this.addProperty(t,i.name,!1),i.serializationProperty&&this.addProperty(t,i.serializationProperty,!0)}},t.prototype.addProperty=function(e,t,r){var n={configurable:!0,get:function(){return e[t]}};r||(n.set=function(r){e[t]=r}),Object.defineProperty(this,t,n)},t}(l.b),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)},o.a.getProperties(e.getType()).forEach(function(t){var r=t.name;void 0!==e[r]&&(n.questionValue[r]=e[r])}),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,t){this.question.runCondition(e,t)},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.setDataValueCore(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.getFilteredValues=function(){var e=this.getAllValues(),t={row:e};for(var r in e)t[r]=e[r];return t},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},e.prototype.onReadOnlyChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].question.onReadOnlyChanged()},e.prototype.onAnyValueChanged=function(e){for(var t=0;t<this.cells.length;t++)this.cells[t].question.onAnyValueChanged(e)},e.prototype.setDataValueCore=function(e,t,r){var n=this.getSurvey();n?n.setDataValueCore(e,t,r):e[t]=r},e.prototype.deleteDataValueCore=function(e,t){var r=this.getSurvey();r?r.deleteDataValueCore(e,t):delete e[t]},e.prototype.getValue=function(e){return this.rowValues[e]},e.prototype.setValue=function(t,r){this.isSettingValue||(""===r&&(r=null),null!=r?this.setDataValueCore(this.rowValues,t,r):this.deleteDataValueCore(this.rowValues,t),this.data.onRowChanged(this,t,this.value),this.onAnyValueChanged(e.RowVariableName))},e.prototype.getComment=function(e){var t=this.getValue(e+l.b.commentPrefix);return t||""},e.prototype.setComment=function(e,t){this.setValue(e+l.b.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.getQuestionByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t].question;return null},e.prototype.clearIncorrectValues=function(){var e=this.value;for(var t in e){var r=this.getQuestionByColumnName(t);if(r){var n=r.value;r.clearIncorrectValues(),a.a.isTwoValueEquals(n,r.value)||this.setValue(t,r.value)}else this.setValue(t,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.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].question.locStrsChanged()},e.prototype.runCondition=function(t,r){t[e.RowVariableName]=this.value,t[e.IndexVariableName]=this.rowIndex;for(var n=0;n<this.cells.length;n++)this.cells[n].runCondition(t,r)},e.prototype.buildCells=function(){for(var e=this.data.columns,t=0;t<e.length;t++){var r=e[t];r.isVisible&&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},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1},enumerable:!0,configurable:!0}),e.prototype.getProcessedTextValue=function(t){var r=(new c.a).getFirstName(t.name);if(t.isExists=r==e.RowVariableName,t.canProcess=t.isExists,t.isExists){var n={row:this.value};t.value=(new c.a).getValue(t.name,n)}},e.prototype.getTextProcessor=function(){return this},e.prototype.processText=function(e,t){return e=this.textPreProcessor.process(e,t),this.getSurvey()?this.getSurvey().processText(e,t):e},e.prototype.processTextEx=function(e,t){if(e=this.processText(e,t),!this.getSurvey())return e;var r=this.textPreProcessor.hasAllValuesOnLastRun,n=this.getSurvey().processTextEx(e,t);return n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&r,n},e.RowVariableName="row",e.IndexVariableName="rowIndex",e.idCounter=1,e}(),v=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.isRowChanging=!1,r.isDoingonAnyValueChanged=!1;var n=r;return r.choicesValue=r.createItemValues("choices"),r.createLocalizableString("optionsCaption",r),r.registerFunctionOnPropertyValueChanged("columns",function(e){n.updateColumnsIndexes(e),n.generatedVisibleRows=null,n.fireCallback(n.columnsChangedCallback)}),r.registerFunctionOnPropertiesValueChanged(["columnLayout","addRowLocation"],function(){n.fireCallback(n.columnLayoutChangedCallback)}),r.registerFunctionOnPropertyValueChanged("cellType",function(){n.generatedVisibleRows=null,n.fireCallback(n.columnsChangedCallback)}),r}return i.b(t,e),t.addDefaultColumns=function(e){for(var t=d.a.DefaultColums,r=0;r<t.length;r++)e.addColumn(t[r])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",function(t){t.colOwner=e})},t.prototype.getType=function(){return"matrixdropdownbase"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout","horizontal")},set:function(e){this.setPropertyValue("columnLayout",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return"vertical"!=this.columnLayout},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.visibleColumns.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.updateColumnsCellType(),this.fireCallback(this.updateCellsCallback))},enumerable:!0,configurable:!0}),t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},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){e.updateCellQuestion(r.cells[n].question,r);break}},t.prototype.getCellType=function(){return this.cellType},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);for(var n="",i=r.length-1;i>=0&&"."!=r[i];i--)n=r[i]+n;var o=this.getColumnByName(n);if(!o)return null;var s=o.createCellQuestion(null);return s?s.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){var e=this.visibleRows;if(e)for(var t=0;t<e.length;t++)e[t].clearIncorrectValues()},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runCellsCondition(t,r)},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){var r={};e&&e instanceof Object&&(r=JSON.parse(JSON.stringify(e))),r.row={};for(var n=this.generatedVisibleRows,i=0;i<n.length;i++)n[i].runCondition(r,t)}},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,r=0;r<t.length;r++)t[r].locStrsChanged();var n=this.generatedVisibleRows;if(n)for(var r=0;r<n.length;r++)n[r].locStrsChanged()},t.prototype.getColumnByName=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.getColumnName=function(e){return this.getColumnByName(e)},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",h.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},t.prototype.getVisibleRows=function(){var e=this;if(!this.isLoadingFromJson){if(!this.generatedVisibleRows&&(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach(function(t){return e.onMatrixRowCreated(t)}),this.data)){var t={survey:this.survey};this.runCellsCondition(this.data.getAllValues(),t)}return this.generatedVisibleRows}},Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader",!0)},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!0,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),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 s=i.cells[o].question.getAllErrors();s&&s.length>0&&(t=t.concat(s))}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=t.createCellQuestion(e);return this.isReadOnly&&(r.readOnly=!0),r.setSurveyImpl(e),r},t.prototype.deleteRowValue=function(e,t){return delete e[t.rowName],0==Object.keys(e).length?null:e},t.prototype.onReadOnlyChanged=function(){if(!this.isLoadingFromJson)for(var e=this.visibleRows,t=0;t<e.length;t++)e[t].onReadOnlyChanged()},t.prototype.onAnyValueChanged=function(e){if(!this.isLoadingFromJson&&!this.isDoingonAnyValueChanged){this.isDoingonAnyValueChanged=!0;for(var t=this.visibleRows,r=0;r<t.length;r++)t[r].onAnyValueChanged(e);this.isDoingonAnyValueChanged=!1}},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 s in o)delete o[s];if(r){r=JSON.parse(JSON.stringify(r));for(var s in r)this.isValueEmpty(r[s])||(o[s]=r[s])}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.getRowIndex=function(e){return this.visibleRows.indexOf(e)},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}(s.a);o.b.metaData.addClass("matrixdropdowncolumn",["!name",{name:"title",serializationProperty:"locTitle"},{name:"cellType",default:"default",choices:function(){var e=g.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"hasOther:boolean","readOnly:boolean","minWidth","visibleIf:condition","enableIf:condition",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new g("")}),o.b.metaData.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},"horizontalScroll:boolean",{name:"choices:itemvalues",onGetValue:function(e){return p.a.getData(e.choices)},onSetValue:function(e,t){e.choices=t}},{name:"optionsCaption",serializationProperty:"locOptionsCaption"},{name:"cellType",default:"dropdown",choices:function(){return g.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"showHeader:boolean",default:!0}],function(){return new v("")},"matrixbase")},function(e,t,r){"use strict";var n=r(0),i=r(6),o=r(2),s=r(8),a=r(38),l=r(18),u=r(15),c=r(34),p=r(1),h=r(10),d=r(43),f=r(45);r.d(t,"a",function(){return g});var g=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.onCompleting=new s.c,r.onComplete=new s.c,r.onStarted=new s.c,r.onPartialSend=new s.c,r.onCurrentPageChanging=new s.c,r.onCurrentPageChanged=new s.c,r.onValueChanging=new s.c,r.onValueChanged=new s.c,r.onVisibleChanged=new s.c,r.onPageVisibleChanged=new s.c,r.onPanelVisibleChanged=new s.c,r.onQuestionAdded=new s.c,r.onQuestionRemoved=new s.c,r.onPanelAdded=new s.c,r.onPanelRemoved=new s.c,r.onPageAdded=new s.c,r.onValidateQuestion=new s.c,r.onValidatePanel=new s.c,r.onProcessHtml=new s.c,r.onGetQuestionTitle=new s.c,r.onTextMarkdown=new s.c,r.onSendResult=new s.c,r.onGetResult=new s.c,r.onUploadFiles=new s.c,r.onDownloadFile=new s.c,r.onClearFiles=new s.c,r.onLoadChoicesFromServer=new s.c,r.onUpdateQuestionCssClasses=new s.c,r.onUpdatePanelCssClasses=new s.c,r.onAfterRenderSurvey=new s.c,r.onAfterRenderPage=new s.c,r.onAfterRenderQuestion=new s.c,r.onAfterRenderPanel=new s.c,r.onMatrixRowAdded=new s.c,r.onMatrixBeforeRowAdded=new s.c,r.onMatrixRowRemoved=new s.c,r.onMatrixCellCreated=new s.c,r.onMatrixAfterCellRender=new s.c,r.onMatrixCellValueChanged=new s.c,r.onMatrixCellValidate=new s.c,r.onDynamicPanelAdded=new s.c,r.onDynamicPanelRemoved=new s.c,r.onTimer=new s.c,r.onTimerPanelInfoText=new s.c,r.onDynamicPanelItemValueChanged=new s.c,r.onIsAnswerCorrect=new s.c,r.jsonErrors=null,r.conditionVersion=0,r.origionalPages=null,r.timerFunc=null;var n=r;return r.createLocalizableString("title",r,!0),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 l.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 s.b.commentPrefix},set:function(e){s.b.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,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength",0)},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength",0)},set:function(e){this.setPropertyValue("maxOthersLength",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,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode","onNextPage")},set:function(e){this.setPropertyValue("checkErrorsMode",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}),t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].clearIncorrectValues()},Object.defineProperty(t.prototype,"locale",{get:function(){return this.localeValue},set:function(e){p.a.currentLocale=e,this.localeValue=p.a.currentLocale,this.setPropertyValue("locale",this.localeValue),this.locStrsChanged()},enumerable:!0,configurable:!0}),t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.currentPage&&this.currentPage.locStrsChanged()},t.prototype.getMarkdownHtml=function(e){return this.getSurveyMarkdownHtml(this,e)},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return p.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}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var r={question:e,title:t};return this.onGetQuestionTitle.fire(this,r),r.title},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,"isShowProgressBarOnTop",{get:function(){return"top"===this.showProgressBar||"both"===this.showProgressBar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return"bottom"===this.showProgressBar||"both"===this.showProgressBar},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},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=0;t<this.pages.length;t++)this.pages[t].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(this.valuesHash,!1),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions()},enumerable:!0,configurable:!0}),t.prototype.getAllValues=function(){return this.data},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];for(var t in this.valuesHash)e[t]=this.valuesHash[t];return e.conditionVersion=++this.conditionVersion,e},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.setDataValueCore=function(e,t,r){e[t]=r},t.prototype.deleteDataValueCore=function(e,t){delete e[t]},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.getPageByObject(e);if(!e||t){var r=this.visiblePages;if(!(null!=t&&r.indexOf(t)<0)&&t!=this.currentPageValue){var n=this.currentPageValue;this.currentPageChanging(t,n)&&(this.currentPageValue=t,t&&(t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.currentPageChanged(t,n))}}},enumerable:!0,configurable:!0}),t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;e<0||e>=t.length||(this.currentPage=t[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.timeSpent=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]),e&&this.updateValuesWithDefaults()},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.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[0].questions,r=0;r<t.length;r++)t[r].updateValueWithDefaults()},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t){var r={oldCurrentPage:t,newCurrentPage:e,allowChanging:!0};return this.onCurrentPageChanging.fire(this,r),r.allowChanging},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)}this.updateVisibleIndexes()},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],i=o.b.metaData.createClass("panel");t.addPanel(i);var s=(new o.b).toJsonObject(n);(new o.b).toObject(s,i)}return t.endLoadingFromJson(),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;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={allowComplete:!0};if(this.onCompleting.fire(this,e),e.allowComplete){var t=this.hasCookie;this.stopTimer(),this.setCompleted(),this.clearUnusedValues(),this.setCookie();var r=this,n={showDataSaving:function(e){r.setCompletedState("saving",e)},showDataSavingError:function(e){r.setCompletedState("error",e)},showDataSavingSuccess:function(e){r.setCompletedState("success",e)},showDataSavingClear:function(e){r.setCompletedState("","")}};this.onComplete.fire(this,n),!t&&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 h.a(e.errors[n],this)))}r||(t.isLastPage?t.doComplete():t.doNextPage())}},t.prototype.doNextPage=function(){if(this.checkOnPageTriggers(),this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),!this.isCompleted){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.matrixBeforeRowAdded=function(e){this.onMatrixBeforeRowAdded.fire(this,e)},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 h.a(t.error,this):null},t.prototype.dynamicPanelAdded=function(e){this.onDynamicPanelAdded.fire(this,{question:e})},t.prototype.dynamicPanelRemoved=function(e,t){this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t})},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.uploadFiles=function(e,t,r){this.onUploadFiles.isEmpty?r("error",t):this.onUploadFiles.fire(this,{name:e,files:t||[],callback:r}),this.surveyPostId&&this.uploadFilesCore(e,t,r)},t.prototype.downloadFile=function(e,t,r){this.onDownloadFile.isEmpty&&!!r&&r("success",t.content||t),this.onDownloadFile.fire(this,{name:e,content:t.content||t,fileValue:t,callback:r})},t.prototype.clearFiles=function(e,t,r,n){this.onClearFiles.isEmpty&&!!n&&n("success",t),this.onClearFiles.fire(this,{name:e,value:t,fileName:r,callback:n})},t.prototype.updateChoicesFromServer=function(e,t,r){var n={question:e,choices:t,serverResult:r};return this.onLoadChoicesFromServer.fire(this,n),n.choices},t.prototype.createSurveyService=function(){return new c.a},t.prototype.uploadFilesCore=function(e,t,r){var n=this,i=[];t.forEach(function(e){r&&r("uploading",e),n.createSurveyService().sendFile(n.surveyPostId,e,function(n,o){n?(i.push({content:o,file:e}),i.length===t.length&&r&&r("success",i)):r&&r("error",{response:o,file:e})})})},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.getPanelByName=function(e,t){void 0===t&&(t=!1);var r=this.getAllPanels();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.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.questionOnValueChanging=function(e,t){var r={name:e,question:this.getQuestionByValueName(e),value:t};return this.onValueChanging.fire(this,r),r.value},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){for(var r=this.getAllQuestions(),n=null,i=0;i<r.length;i++)r[i].getValueName()==e&&(n=r[i],"onValueChanged"==this.checkErrorsMode&&n.hasErrors(!0),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);this.locStrsChanged()},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={},r=0;r<e.length;r++){var n=e[r],i=n.getValueName();t[i]=this.getValue(i)}this.checkTriggers(t,!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){if(!this.isCompleted)for(var r=this.getFilteredValues(),n=this.getFilteredProperties(),i=0;i<this.triggers.length;i++){var o=this.triggers[i];o.isOnNextPage==t&&o.checkExpression(e,r,n)}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},t.prototype.runConditions=function(){if(!this.isCompleted)for(var e=this.pages,t=this.getFilteredValues(),r=this.getFilteredProperties(),n=0;n<e.length;n++)e[n].runCondition(t,r)},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.updateVisibleIndexes=function(){if(this.updatePageVisibleIndexes(this.showPageNumbers),"onPage"==this.showQuestionNumbers)for(var e=this.visiblePages,t=0;t<e.length;t++)e[t].setVisibleIndex(0);else for(var r="on"==this.showQuestionNumbers?0:-1,t=0;t<this.pages.length;t++)r+=this.pages[t].setVisibleIndex(r)},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.setJsonObject=function(e){if(e){this.jsonErrors=null;var t=new o.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("locale"===t)return e.isExists=!0,void(e.value=this.locale?this.locale:p.a.defaultLocale);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),t=t.toLocaleLowerCase();var s={};return s[n]=e.returnDisplayValue?o.getDisplayValue(!1):o.value,void(e.value=(new u.a).getValue(t,s))}var a=this.getValue(e.name);void 0!==a&&(e.isExists=!0,e.value=a)},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();"none"!=this.clearInvisibleValues&&this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){for(var t=this.getAllQuestions(),r=0;r<t.length;r++)if(t[r].getValueName()==e&&t[r].isVisible)return!0;return!1},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?(e=e.toLowerCase(),this.variablesHash[e]):null},t.prototype.setVariable=function(e,t){e&&(e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditions())},t.prototype.getUnbindValue=function(e){return i.a.getUnbindValue(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){if(t=this.questionOnValueChanging(e,t),!this.isValueEqual(e,t)){this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,e):(t=this.getUnbindValue(t),this.setDataValueCore(this.valuesHash,e,t));var r={};r[e]=t,this.checkTriggers(r,!1),this.runConditions(),this.notifyQuestionOnValueChanged(e,t),this.tryGoNextPageAutomatic(e)}},t.prototype.isValueEqual=function(e,t){""!==t&&void 0!==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.getQuestionByValueName(e);if(t&&(!t||t.visible&&t.supportGoNextPageAutomatic())){var r=this.getCurrentPageQuestions();if(!(r.indexOf(t)<0)){for(var n=0;n<r.length;n++)if(r[n].hasInput&&r[n].isEmpty())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?this.deleteDataValueCore(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}),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.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new h.a(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new h.a(t.error,this):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.processTextCore(e,t)},t.prototype.processTextEx=function(e,t){var r={text:this.processTextCore(e,t),hasAllValuesOnLastRun:!0};return r.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,r},t.prototype.processTextCore=function(e,t){return this.isDesignMode?e:this.textPreProcessor.process(e,t)},t.prototype.getSurveyMarkdownHtml=function(e,t){var r={element:e,text:t,html:null};return this.onTextMarkdown.fire(this,r),r.html},t.prototype.getCorrectedAnswerCount=function(){for(var e=this.getQuizQuestions(),t=0,r={question:null,result:!1},n=0;n<e.length;n++)r.question=e[n],r.result=r.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,r),r.result&&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,f.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,f.a.instance.stop(this.timerFunc))},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}),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.timeSpent=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.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.prototype.copyTriggerValue=function(e,t){e&&t&&this.setValue(e,this.getValue(t))},t.stylesManager=new d.a,t.platform="unknown",t}(s.b);o.b.metaData.addClass("survey",[{name:"locale",choices:function(){return p.a.getLocales()},onGetValue:function(e){return e.locale==p.a.defaultLocale?null:e.locale}},{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","both"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0},{name:"maxOthersLength:number",default:0},"goNextPageAutomatic:boolean",{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged"]},{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(3),o=(r.n(i),r(16)),s=r(23),a=r(29),l=r(5),u=r(13),c=r(30),p=r(31),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 u.b.currentType},set:function(e){u.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.doRender=function(){var e;e="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();var t=this.renderTitle();return i.createElement("div",{ref:"root",className:this.css.root},i.createElement("div",{className:"sv_custom_header"}),i.createElement("div",{className:"sv_container"},t,e))},t.prototype.render=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return u.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,className:[this.css.body,this.css.completedPage].join(" ")}),e)},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return i.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return i.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},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",null,i.createElement("div",{id:t,className:this.css.body},e,r))},t.prototype.renderSurvey=function(){var e=this.survey.currentPage?this.renderPage(this.survey.currentPage):null,t=this.survey.currentPage?this.survey.currentPage.id:"",r=this.survey.isShowProgressBarOnTop?this.renderProgress(!0):null,n=this.survey.isShowProgressBarOnBottom?this.renderProgress(!1):null,o=e?this.renderNavigation():null;return e||(e=this.renderEmptySurvey()),i.createElement("div",{id:t,className:this.css.body},r,this.renderTimerPanel("top"),e,this.renderTimerPanel("bottom"),n,o)},t.prototype.renderTitle=function(){var e=null;return this.survey.title&&this.survey.showTitle&&(e=h.a.renderLocString(this.survey.locTitle)),e?i.createElement("div",{className:this.css.header},i.createElement("h3",null,e)):null},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(s.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(a.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(e,r){t.isCurrentPageChanged=!0,t.setState({pageIndexChange:t.state.pageIndexChange+1})}),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 l.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},i.createElement(h.d,{locStr:t.locText}))},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(3),o=(r.n(i),r(22));r.d(t,"a",function(){return s});var s=function(e){function t(t){var r=e.call(this,t)||this;return r.mouseDownPage=null,r.handlePrevClick=r.handlePrevClick.bind(r),r.handleNextClick=r.handleNextClick.bind(r),r.handleNextMouseDown=r.handleNextMouseDown.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.mouseDownPage&&this.mouseDownPage!==this.survey.currentPage||(this.mouseDownPage=null,this.survey.nextPage())},t.prototype.handleNextMouseDown=function(e){this.mouseDownPage=this.survey.currentPage;var t=document.activeElement;t&&t.blur&&t.blur()},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,null,this.survey.pagePrevText,this.css.navigation.prev),r=e||this.survey.isLastPage?null:this.renderButton(this.handleNextClick,this.handleNextMouseDown,this.survey.pageNextText,this.css.navigation.next),n=!e&&this.survey.isLastPage&&this.survey.isEditMode?this.renderButton(this.handleCompleteClick,null,this.survey.completeText,this.css.navigation.complete):null,o=e?this.renderButton(this.handleStartClick,null,this.survey.startSurveyText,this.css.navigation.start):null;return i.createElement("div",{className:this.css.footer},o,t,r,n)},t.prototype.renderButton=function(e,t,r,n){var o={marginRight:"5px"},s=this.css.navigationButton+(n?" "+n:"");return i.createElement("input",{className:s,style:o,type:"button",onMouseDown:t,onClick:e,value:r})},t}(o.a)},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(22));r.d(t,"a",function(){return s});var s=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(3);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";var n=r(0),i=r(8),o=r(11),s=r(2),a=r(1),l=r(10);r.d(t,"a",function(){return c});var u=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.isRunningValue=!1,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.doEmptyResultCallback({});this.lastObjHash!=this.objHash&&(this.lastObjHash=this.objHash,this.useChangedItemsResults()||(this.error=null,this.sendRequest()))}},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!0,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){if(e){var t=e.processTextEx(this.url,!1),r=e.processTextEx(this.path,!1);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("<")){var r=new u;t=r.parseXmlString(e)}else try{t=JSON.parse(e)}catch(r){t=(e||"").split("\n").map(function(e){return e.trim(" ")}).filter(function(e){return!!e})}return t},t.prototype.sendRequest=function(){this.isRunningValue=!0;var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var r=this;e.onload=function(){r.isRunningValue=!1,200===e.status?r.onLoad(r.parseResponse(e.response)):r.onError(e.statusText,e.responseText)};var n={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(this,n),n.request.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=s.b.metaData.getProperties(this.itemValueType),t=[],r=0;r<e.length;r++)"value"!==e[r].name&&"text"!==e[r].name&&"visibleIf"!==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=s.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=[],n=this.getResultAfterPath(e);if(n&&n.length)for(var i=0;i<n.length;i++){var s=n[i];if(s){var u=this.getValue(s),c=this.getTitle(s),p=new o.a(u,c);this.setCustomProperties(p,s),r.push(p)}}else this.error=new l.a(a.a.getString("urlGetChoicesError"));this.updateResultCallback&&(r=this.updateResultCallback(r,e)),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 l.a(a.a.getString("urlRequestError").format(e,t)),this.doEmptyResultCallback(t)},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.b);s.b.metaData.addClass("choicesByUrl",["url","path","valueName","titleName"],function(){return new c})},function(e,t,r){"use strict";var n=r(12);r.d(t,"a",function(){return o});var i=function(){function e(e,t){this.at=e,this.code=t}return e}(),o=function(){function e(){this.ERROR_OperatorExpected="OPERATOR_EXPECTED",this.ERROR_RightPartExpected="RIGHTPART_EXPECTED",this.ERROR_ExpressionExpected="EXPRESSION_EXPECTED",this.ERROR_EndExpected="END_EXPECTED"}return e.prototype.parse=function(e,t){return this.setProperties(e,t),this.parseText()},e.prototype.createCondition=function(e){var t=new n.b;return this.parse(e,t)||(t=null),t},e.prototype.parseExpression=function(e){return this.setProperties(e,new n.b),this.readExpressionOperand()},Object.defineProperty(e.prototype,"error",{get:function(){return this.errorValue},enumerable:!0,configurable:!0}),e.prototype.createError=function(e){this.errorValue||(this.errorValue=new i(this.at,e))},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),this.errorValue=null},e.prototype.toString=function(e){return e.toString()},e.prototype.parseText=function(){var e=this.readConditions();return this.at<this.length&&this.createError(this.ERROR_EndExpected),e&&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 this.createError(this.ERROR_ExpressionExpected),!1;var r=this.readOperator();if(!r){if(t.isBoolean){var i=new n.c;return i.left=t,this.addCondition(i),!0}return this.createError(this.ERROR_OperatorExpected),!1}var i=new n.c;if(i.left=t,i.operator=r,!n.c.isNoRightOperation(r)){var o=this.readExpressionOperand();if(!o)return this.createError(this.ERROR_RightPartExpected),!1;i.right=o}return this.addCondition(i),!0},e.prototype.readOperand=function(){var e=this.readArray();if(e)return new n.d(e);var t=this.readString();if(!t)return null;var r=this.readParameters();if(r){var i=new n.e(t);return i.parameters=r,i}return new n.d(t)},e.prototype.readNotOperand=function(){this.skip();var e=this.at,t=this.readString();return!(!t||"not"!=t.toLowerCase()&&"!"!=t)||(this.at=e,!1)},e.prototype.readExpression=function(){var e=this.readNotOperand();if(this.at>=this.length||"("!=this.ch)return 0;this.at++,this.pushExpression();var t=this.readConditions();return t?(this.skip(),t=")"==this.ch,this.at++,this.popExpression(e),1):-1},e.prototype.readExpressionOperand=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var r=this.readNotOperand();if(this.at>=this.length)return null;var i=this.isOpenBracket(this.ch);i&&(this.at++,this.pushExpression());var o=this.readOperand();if(!o)return null;var s=this.readOperandOperator();if(!s){if(null!=e&&(e.right=o,o=e),this.isCloseBracket(this.ch)){e=t&&t.length>0?t.pop():null;var a=this.at;this.at++,s=this.readOperandOperator();var l=s||e&&e.isOpenBracket;s||(this.at=a+(l?1:0)),l&&this.popExpression(r)}if(s){var u=new n.f;return u.left=e||o,u.operator=s,this.readExpressionOperand(u,t)}return o}var u=new n.f;if(u.isOpenBracket=i,u.left=o,u.operator=s,t||(t=[]),(0==t.length||i)&&t.push(u),e){if(i||!this.isHighPriorityOperand(e.operator)&&this.isHighPriorityOperand(s))return e.right=this.readExpressionOperand(u,t),e;e.right=o,u.left=e;var c=t.indexOf(e);c>-1&&(t[c]=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},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.readArray=function(){if(this.skip(),this.at>=this.length)return null;if("["!==this.ch)return null;this.at++;for(var e=[];this.at<this.length;){var t=this.readString();t&&e.push(t),this.skip();var r=this.ch;if(","==r&&this.at++,"]"==r){this.at++;break}}return 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;if("]"===this.ch)break}i="\\"===this.ch,this.at++}if(this.at<=e)return null;var s=this.text.substr(e,this.at-e);if(s&&s.length>1&&this.isQuotes(s[0])){var a=s.length-1;this.isQuotes(s[s.length-1])&&a--,s=s.substr(1,a)}return s},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,s=new n.b;return o.parse(i,s)?new n.g(s):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},e.prototype.readOperandOperator=function(){if(this.skip(),"+"==this.ch||"-"==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(e){var t=this.expressionNodes.pop();this.node=this.expressionNodes[this.expressionNodes.length-1],t&&(t.isNot=e,this.makeNodeCondition(),this.node.children.push(t))},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 s=new XMLHttpRequest;s.open("POST",e.serviceUrl+"/post/"),s.setRequestHeader("Content-Type","application/json; charset=utf-8");var a={postId:t,surveyResult:JSON.stringify(r)};i&&(a.clientId=i),o&&(a.isPartialCompleted=!0);var l=JSON.stringify(a);s.onload=s.onerror=function(){n&&n(200==s.status,s.response)},s.send(l)},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){for(var t=0,r=0;r<e.length;r++)t+=e[r];return e.length>0?t/e.length:0}function o(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 s(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)}function l(e){if(!e&&e.length<1)return!1;if(!e[0]||!this.survey)return!1;var t=e[0],r=this.survey.getPageByName(t);if(r||(r=this.survey.getPanelByName(t)),!r)return!1;for(var n=r.questions,i=0;i<n.length;i++)if(n[i].hasErrors(!1))return!1;return!0}function u(){return this.survey&&this.survey.isDisplayMode}function c(){return new Date}r.d(t,"a",function(){return p});var p=function(){function e(){this.functionHash={}}return e.prototype.register=function(e,t){this.functionHash[e]=t},e.prototype.unregister=function(e){delete this.functionHash[e]},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,r){void 0===r&&(r=null);var n=this.functionHash[e];if(!n)return null;var i={func:n};if(r)for(var o in r)i[o]=r[o];return i.func(t)},e.Instance=new e,e}();p.Instance.register("sum",n),p.Instance.register("avg",i),p.Instance.register("sumInArray",o),p.Instance.register("iif",s),p.Instance.register("age",a),p.Instance.register("isContainerReady",l),p.Instance.register("isDisplayMode",u),p.Instance.register("currentDate",c)},function(e,t,r){"use strict";r.d(t,"a",function(){return n});var n={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",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.",invalidExpression:"The expression: {0} should return 'true'.",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.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add column",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.",cleanCaption:"Clean",clearCaption:"Clear",removeFileCaption:"Remove this file"}},function(e,t,r){"use strict";var n=r(0),i=r(11),o=r(9),s=r(2),a=r(12);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.generatedVisibleRows=null,r.filteredRows=null,r.filteredColumns=null,r.columnsValue=r.createColumnValues(),r.rows=r.createItemValues("rows"),r}return n.b(t,e),t.prototype.createColumnValues=function(){return[]},t.prototype.getType=function(){return"matrixbase"},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}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!0,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runItemsCondition(t,r)},t.prototype.filterItems=function(){return this.isDesignMode?(this.onRowsChanged(),!1):!(this.isLoadingFromJson||!this.data)&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onRowsChanged=function(){this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.runItemsCondition=function(e,t){var r=this.runConditionsForRows(e,t);return r=this.runConditionsForColumns(e,t)||r,r&&((this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),this.generatedVisibleRows=null,this.onRowsChanged()),r},t.prototype.runConditionsForRows=function(e,t){var r=this.rowsVisibleIf?new a.a(this.rowsVisibleIf):null;this.filteredRows=[];var n=i.a.runConditionsForItems(this.rows,this.filteredRows,r,e,t);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),n},t.prototype.runConditionsForColumns=function(e,t){var r=this.columnsVisibleIf?new a.a(this.columnsVisibleIf):null;this.filteredColumns=[];var n=i.a.runConditionsForItems(this.columns,this.filteredColumns,r,e,t);return this.filteredColumns.length===this.columns.length&&(this.filteredColumns=null),n},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var r=null,n=!1,o=this.filteredRows?this.filteredRows:this.rows,s=this.filteredColumns?this.filteredColumns:this.columns;for(var a in t)i.a.getItemByValue(o,a)&&i.a.getItemByValue(s,t[a])?(null==r&&(r={}),r[a]=t[a]):n=!0;n&&(this.value=r),e.prototype.clearIncorrectValues.call(this)}},t}(o.a);s.b.metaData.addClass("matrixbase",["columnsVisibleIf:condition","rowsVisibleIf:condition"],void 0,"question")},function(e,t,r){"use strict";var n=r(0),i=r(2),o=r(6),s=r(8),a=r(25);r.d(t,"a",function(){return l});var l=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;r.name=t,r.hasShownValue=!1;var n=r;return r.locTitle.onRenderedHtmlCallback=function(e){return n.num>0?n.num+". "+e:e},r}return n.b(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!0},enumerable:!0,configurable:!0}),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}),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.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(){s.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}),t.prototype.getPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var r=new Array;return this.addPanelsIntoList(r,e,t),r},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.isVisible)},t.prototype.dragDropStart=function(e,t){this.dragDropInfo=new a.a(e,t)},t.prototype.dragDropMoveTo=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),!!this.dragDropInfo&&(e==this.dragDropInfo.target||(!e||e!=this.dragDropInfo.source)&&(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=r,this.dragDropAddTarget(this.dragDropInfo),!0))},t.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,r=this.dragDropFindRow(t);if(e)this.dragDropRemoveTarget(t,r);else{var n=this.dragDropGetElementIndex(t,r),i=this.dragDropInfo.source;if(i&&i.parent){var o=i.parent.elements.indexOf(i);r&&r.panel==i.parent&&n>o&&n--,i.parent.removeElement(i)}this.dragDropRemoveTarget(t,r),r&&n>-1&&r.panel.addElement(t,n)}this.dragDropInfo=null}},t.prototype.dragDropGetElementIndex=function(e,t){if(!t)return-1;var r=t.elements.indexOf(e);if(0==t.index)return r;var n=t.panel.rows[t.index-1],i=n.elements[n.elements.length-1];return r+t.panel.elements.indexOf(i)+1},t}(a.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 l},"panelbase")},function(e,t,r){"use strict";var n=r(8);r.d(t,"a",function(){return i}),r.d(t,"b",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.getDisplayValue=function(e){return this.widgetJson.getDisplayValue?this.widgetJson.getDisplayValue(e):null},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.c}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(2),o=r(7),s=r(17),a=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.createLocalizableString("optionsCaption",r),r}return n.b(t,e),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.getLocalizableStringText("optionsCaption",a.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}(s.b);i.b.metaData.addClass("dropdown",[{name:"optionsCaption",serializationProperty:"locOptionsCaption"}],function(){return new l("")},"selectbase"),o.a.Instance.registerQuestion("dropdown",function(e){var t=new l(e);return t.choices=o.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(2),s=r(9),a=r(6),l=r(21);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("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()),this.isLoadingFromJson||"email"!==e||this.validators.some(function(e){return"emailvalidator"===e.getType()})||this.validators.push(new l.b)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength",-1)},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){return a.a.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},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}(s.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:"maxLength:number",default:-1},{name:"placeHolder",serializationProperty:"locPlaceHolder"}],function(){return new u("")},"question"),i.a.Instance.registerQuestion("text",function(e){return new u(e)})},function(e,t,r){"use strict";var n=r(0),i=r(9),o=r(2);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"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasDescription",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionNames=function(e){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t}(i.a);o.b.metaData.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"commentText",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"isRequired",visible:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"validators",visible:!1}],function(){return new s("")},"question")},function(e,t,r){"use strict";var n=r(13);r.d(t,"a",function(){return i});var i=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&&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 i;-1!==["bootstrap","bootstrapmaterial"].indexOf(t)?(i=e[t+"ThemeCss"],n.b.currentType=t):(i=e.ThemeCss,n.b.currentType="standard");var o=e.findSheet(t+r);if(!o){o=e.createSheet(t+r);var s=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(i).forEach(function(e){var t=i[e];Object.keys(s).forEach(function(e){return t=t.replace(new RegExp("\\"+e,"g"),s[e])}),o.insertRule(r+e+" { "+t+" }",0)})}},e.prototype.initializeStyles=function(t){Object.keys(e.Styles).forEach(function(r){return t.insertRule(r+" { "+e.Styles[r]+" }",0)}),Object.keys(e.Media).forEach(function(r){t.insertRule(e.Media[r].media+" { "+r+" { "+e.Media[r].style+" } }",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_bootstrap_css .sv_qstn fieldset":"display: block;",".sv_bootstrap_css .sv_qstn  .sv_q_checkbox_inline, .sv_bootstrap_css .sv_qstn .sv_q_radiogroup_inline":"display: inline-block;",".sv_main.sv_bootstrapmaterial_css .sv_q_radiogroup_control_label":"display: inline; position: static;",".sv_main.sv_bootstrapmaterial_css .checkbox":"margin-top:10px;margin-bottom:10px;",".sv_row":"clear: both;",".sv_row .sv_qstn":"float: left",".sv_row .sv_qstn:last-child":"float: none",".sv_qstn":"display: inline-block; vertical-align: top; overflow: auto;",".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 .sv_q_imgsel.sv_q_imagepicker_inline":"display: inline-block;",".sv_qstn label.sv_q_m_label":"position: absolute; margin: 0;",".sv_qstn td":"position: relative;",".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, .sv_q_imagepicker_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_imgsel .sv_q_imagepicker_inline:not(:last-child)":"margin-right: 1em;",".sv_qstn fieldset":"border: none; margin: 0; padding: 0;",".sv_qstn .sv_q_file_placeholder":"display:none",".sv_p_title":"padding-left: 1em; padding-bottom: 0.3em;",".sv_p_title_expandable":"cursor: pointer;",".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);",".sv_q_file > input[type=file], .sv_q_file > button":"display: inline-block;",".sv_q_file_preview":"display: inline-block; vertical-align: top; border: 1px solid lightgray; padding: 5px; margin-top: 10px;",".sv_q_file_preview > a":"display: block; overflow: hidden; vertical-align: top; white-space: nowrap; text-overflow: ellipsis;",".sv_q_file_remove_button":"line-height: normal;",".sv_q_file_remove":"display: block; cursor: pointer;",".sv_q_m_cell_text":"cursor: pointer;",".sv_q_dd_other":"margin-top: 1em;",".sv_q_dd_other input":"width: 100%;",".sv_qstn .sv-q-col-1":"width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-all;",".sv_qstn .sv-q-col-2":"width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-all;",".sv_qstn .sv-q-col-3":"width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-all;",".sv_qstn .sv-q-col-4":"width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-all;",".sv_qstn .sv-q-col-5":"width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-all;",".sv_qstn .sv_q_file_input":"color: transparent;",".sv_qstn .sv_q_imgsel label > div":"overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 4px; border: 1px solid lightgray; border-radius: 4px;",".sv_qstn .sv_q_imgsel label > div > img, .sv_qstn .sv_q_imgsel label > div > embed":"display: block;",".sv_qstn table tr td .sv_q_m_cell_label":"position: absolute; left: 0; right: 0; top: 0; bottom: 0;"},e.Media={".sv_qstn fieldset .sv-q-col-1":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-2":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-3":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-4":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_qstn fieldset .sv-q-col-5":{style:"width: 100%;",media:"@media only screen and (max-width: 480px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn":{style:"display: block; width: 100% !important;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .title-left":{style:"float: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_radiogroup_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_checkbox_inline, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .sv_q_imagepicker_inline":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table thead":{style:"display: none;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tbody, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table tr, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table td":{style:"display: block;",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.table:not(.sv_q_matrix) td:before":{style:"content: attr(headers);",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn table.sv_q_matrix td:after":{style:"content: attr(headers); padding-left: 1em",media:"@media (max-width: 600px)"},".sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .radio label, .sv_main .sv_container .panel-body.card-block .sv_row .sv_qstn .checkbox label":{style:"line-height: 12px; vertical-align: top;",media:"@media (max-width: 600px)"}},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;",".sv_default_css .sv_q_m_cell_selected":"color: $body-background-color; background-color: $main-hover-color;",".sv_main .sv_q_file_remove:hover":"color: $main-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color"},e.bootstrapThemeCss={".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color"},e.bootstrapmaterialThemeCss={".sv_main.sv_bootstrapmaterial_css .form-group.is-focused .form-control":"background-image: linear-gradient($main-color, $main-color), linear-gradient(#D2D2D2, #D2D2D2);",".sv_main.sv_bootstrapmaterial_css .form-group.is-focused label":"color:$main-color;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .checkbox input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.checkbox-inline input[type=checkbox]:checked + .checkbox-material .check:before":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .circle":"border-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .radio input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css label.radio-inline input[type=radio]:checked ~ .check":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .btn-default.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-default:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary.active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .btn-secondary:active":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css .open>.dropdown-toggle.btn-default":"background-color: $main-color; color: $body-background-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary, .sv_main.sv_bootstrapmaterial_css button.btn-primary":"color: $body-background-color; background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css input[type='button'].btn-primary:hover, .sv_main.sv_bootstrapmaterial_css button.btn-primary:hover":"background-color: $main-hover-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .sv_q_file_remove:hover":"color: $main-color;",".sv_main.sv_bootstrapmaterial_css .form-group input[type=file]":"position: relative; opacity: 1;"},e}()},function(e,t,r){"use strict";var n=r(0),i=r(8),o=r(27);r.d(t,"a",function(){return s});var s=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;n.isExpandedValue=!1,n.closeOnCompleteTimeout=0,n.surveyValue=r||n.createSurvey(t),n.surveyValue.showTitle=!1,"undefined"!=typeof document&&(n.windowElement=document.createElement("div"));var i=n;return n.survey.onComplete.add(function(e,t){i.onSurveyComplete()}),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.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.closeWindowOnComplete();else{var e=this,t=null,r=function(){e.closeWindowOnComplete(),window.clearInterval(t)};t=window.setInterval(r,1e3*this.closeOnCompleteTimeout)}},t.prototype.closeWindowOnComplete=function(){this.closeWindowOnCompleteCallback&&this.closeWindowOnCompleteCallback()},t.surveyElementName="windowSurveyJS",t}(i.b)},function(e,t,r){"use strict";var n=r(8);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.c}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(13);r.d(t,"a",function(){return i});var i={root:"sv_main sv_bootstrap_css",header:"panel-heading card-header",body:"panel-body card-block mt-4",footer:"panel-footer card-footer",navigationButton:"",completedPage:"",navigation:{complete:"btn sv_complete_btn",prev:"btn sv_prev_btn",next:"btn sv_next_btn",start:"btn sv_start_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",page:{root:"",title:"",description:""},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn",title:"",description:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",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:"",label:"",materialDecorator:"checkbox-material"},checkbox:{root:"sv_qcbc sv_qcbx form-inline",item:"checkbox",itemControl:"",controlLabel:"",materialDecorator:"checkbox-material",other:"sv_q_checkbox_other form-control"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other form-control"},matrix:{root:"table sv_q_matrix",label:"sv_q_m_label",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label"},matrixdropdown:{root:"table"},matrixdynamic:{root:"table",button:"button",buttonAdd:"",buttonRemove:""},paneldynamic:{root:"",button:"button",buttonPrev:"",buttonNext:"",buttonAdd:"",buttonRemove:""},multipletext:{root:"table",itemTitle:"",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"sv_qcbc form-inline",item:"radio",label:"",itemControl:"",controlLabel:"",materialDecorator:"circle",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},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",file:{root:"sv_q_file",placeholderInput:"sv_q_file_placeholder",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",removeFile:"sv_q_file_remove"},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(13);r.d(t,"a",function(){return i});var i={root:"sv_main sv_bootstrapmaterial_css",header:"panel-heading",body:"panel-body",footer:"panel-footer",navigationButton:"",completedPage:"",navigation:{complete:"btn sv_complete_btn btn-primary",prev:"btn sv_prev_btn btn-primary",next:"btn sv_next_btn btn-primary",start:"btn sv_start_btn btn-primary"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",page:{root:"",title:"",description:""},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn form-group",title:"",description:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",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:"",label:"",materialDecorator:"checkbox-material"},checkbox:{root:"sv_qcbx form-inline",item:"checkbox",itemControl:"",controlLabel:"",materialDecorator:"checkbox-material",other:"sv_q_checkbox_other form-control"},comment:"form-control",dropdown:{root:"",control:"form-control",other:"sv_q_dd_other form-control"},matrix:{root:"table sv_q_matrix",row:"form-group",label:"sv_q_m_label radio-inline",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label",itemValue:"form-control"},matrixdropdown:{root:"table",itemValue:"form-group"},matrixdynamic:{root:"table",button:"btn btn-primary",itemValue:"form-group",buttonAdd:"",buttonRemove:""},paneldynamic:{root:"",button:"btn btn-primary",buttonPrev:"",buttonNext:"",buttonAdd:"",buttonRemove:""},multipletext:{root:"table",itemTitle:"",row:"form-group",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"",item:"radio",label:"",itemControl:"",controlLabel:"sv_q_radiogroup_control_label",materialDecorator:"circle",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button btn btn-primary"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear"},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",file:{root:"form-group is-fileinput sv_q_file",placeholderInput:"",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",removeFile:"sv_q_file_remove"},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(68),r(69),r(70),r(71),r(72),r(73),r(74),r(75),r(76),r(77),r(78),r(79),r(80),r(81),r(82),r(83),r(84),r(85),r(86),r(87),r(88),r(89),r(90),r(91),r(92),r(94),r(93)},function(e,t,r){"use strict";var n=r(67),i=(r.n(n),r(6));r.d(t,"b",function(){return i.a});var o=r(21);r.d(t,"c",function(){return o.a}),r.d(t,"d",function(){return o.b}),r.d(t,"e",function(){return o.c}),r.d(t,"f",function(){return o.d}),r.d(t,"g",function(){return o.e}),r.d(t,"h",function(){return o.f}),r.d(t,"i",function(){return o.g}),r.d(t,"j",function(){return o.h});var s=r(11);r.d(t,"k",function(){return s.a});var a=r(8);r.d(t,"l",function(){return a.b}),r.d(t,"m",function(){return a.c}),r.d(t,"n",function(){return a.d}),r.d(t,"o",function(){return a.a});var l=r(10);r.d(t,"p",function(){return l.a}),r.d(t,"q",function(){return l.c}),r.d(t,"r",function(){return l.b}),r.d(t,"s",function(){return l.d}),r.d(t,"t",function(){return l.e});var u=r(20);r.d(t,"u",function(){return u.a});var c=r(32);r.d(t,"v",function(){return c.a});var p=r(35);r.d(t,"w",function(){return p.a});var h=r(12);r.d(t,"x",function(){return h.c}),r.d(t,"y",function(){return h.b}),r.d(t,"z",function(){return h.a}),r.d(t,"A",function(){return h.h});var d=r(33);r.d(t,"B",function(){return d.a});var f=r(15);r.d(t,"C",function(){return f.a});var g=r(2);r.d(t,"D",function(){return g.c}),r.d(t,"E",function(){return g.d}),r.d(t,"F",function(){return g.e}),r.d(t,"G",function(){return g.f}),r.d(t,"H",function(){return g.g}),r.d(t,"I",function(){return g.h}),r.d(t,"J",function(){return g.b}),r.d(t,"K",function(){return g.i}),r.d(t,"L",function(){return g.j}),r.d(t,"M",function(){return g.k});var m=r(26);r.d(t,"N",function(){return m.a}),r.d(t,"O",function(){return m.b}),r.d(t,"P",function(){return m.c}),r.d(t,"Q",function(){return m.d}),r.d(t,"R",function(){return m.e});var y=r(104);r.d(t,"S",function(){return y.a}),r.d(t,"T",function(){return y.b});var v=r(105);r.d(t,"U",function(){return v.a}),r.d(t,"V",function(){return v.b});var b=r(103);r.d(t,"W",function(){return b.a}),r.d(t,"X",function(){return b.b}),r.d(t,"Y",function(){return b.c});var C=r(106);r.d(t,"Z",function(){return C.a}),r.d(t,"_0",function(){return C.b});var P=r(25);r.d(t,"_1",function(){return P.c}),r.d(t,"_2",function(){return P.b}),r.d(t,"_3",function(){return P.d});var x=r(38);r.d(t,"_4",function(){return x.a});var V=r(9);r.d(t,"_5",function(){return V.a});var w=r(42);r.d(t,"_6",function(){return w.a});var T=r(98);r.d(t,"_7",function(){return T.a});var S=r(17);r.d(t,"_8",function(){return S.a}),r.d(t,"_9",function(){return S.b});var O=r(96);r.d(t,"_10",function(){return O.a});var q=r(97);r.d(t,"_11",function(){return q.a});var E=r(40);r.d(t,"_12",function(){return E.a});var R=r(7);r.d(t,"_13",function(){return R.a}),r.d(t,"_14",function(){return R.b});var _=r(100);r.d(t,"_15",function(){return _.a});var L=r(101);r.d(t,"_16",function(){return L.a});var k=r(108);r.d(t,"_17",function(){return k.a});var I=r(109);r.d(t,"_18",function(){return I.a});var D=r(99);r.d(t,"_19",function(){return D.a});var N=r(41);r.d(t,"_20",function(){return N.a});var j=r(95);r.d(t,"_21",function(){return j.a});var A=r(102);r.d(t,"_22",function(){return A.a});var M=r(107);r.d(t,"_23",function(){return M.a}),r.d(t,"_24",function(){return M.b});var z=r(45);r.d(t,"_25",function(){return z.a});var F=r(27);r.d(t,"_26",function(){return F.a});var B=r(111);r.d(t,"_27",function(){return B.a}),r.d(t,"_28",function(){return B.b}),r.d(t,"_29",function(){return B.c}),r.d(t,"_30",function(){return B.d}),r.d(t,"_31",function(){return B.e});var Q=r(44);r.d(t,"_32",function(){return Q.a});var H=r(18);r.d(t,"_33",function(){return H.a});var W=r(34);r.d(t,"_34",function(){return W.a});var U=r(36);r.d(t,"_35",function(){return U.a});var J=r(1);r.d(t,"_36",function(){return J.a}),r.d(t,"_37",function(){return J.b});var $=r(39);r.d(t,"_38",function(){return $.a}),r.d(t,"_39",function(){return $.b});var G=r(43);r.d(t,"_40",function(){return G.a}),r.d(t,"a",function(){return X});var X;X="1.0.50"},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(5);r.d(t,"a",function(){return a});var a=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){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}else 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.value===t.value;return this.question.multiSelect&&(i=-1!==this.question.value.indexOf(t.value)),this.renderElement(e,t,i,r,n)},t.prototype.renderElement=function(e,t,r,n,o){var s=n?this.question.inputId:null,a=o.item+(0===this.question.colCount?" sv_q_imagepicker_inline":" sv-q-col-"+this.question.colCount);r&&(a+=" checked");var l=null;this.question.showLabel&&(l=i.createElement("span",{title:t.text||t.value,className:this.question.cssClasses.itemText},t.text||t.value));var u={objectFit:this.question.imageFit},c=null;return"image"===this.question.contentMode&&(c=i.createElement("img",{className:o.image,src:t.imageLink,width:this.question.imageWidth?this.question.imageWidth+"px":void 0,height:this.question.imageHeight?this.question.imageHeight+"px":void 0,style:u})),"video"===this.question.contentMode&&(c=i.createElement("embed",{className:o.image,src:t.imageLink,width:this.question.imageWidth?this.question.imageWidth+"px":void 0,height:this.question.imageHeight?this.question.imageHeight+"px":void 0,style:u})),i.createElement("div",{key:e,className:a},i.createElement("label",{className:o.label},i.createElement("input",{style:{display:"none"},className:o.itemControl,id:s,type:this.question.multiSelect?"checkbox":"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("div",null,c,l)))},t}(o.b);s.a.Instance.registerQuestion("imagepicker",function(e){return i.createElement(a,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(28)),s=r(16),a=r(4);r.d(t,"a",function(){return l});var l=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,maxWidth:"60%"};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=a.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"})),this.window.isExpanded?i.createElement("span",{onClick:this.handleOnExpanded,style:{float:"right",cursor:"pointer"}},i.createElement("span",{className:this.css.window.header.title,style:t},"X")):null)},t.prototype.renderBody=function(){return i.createElement("div",{className:this.css.window.body},this.doRender())},t.prototype.updateSurvey=function(t){t||(t={}),t.window?this.window=t.window:t.json?this.window=new s.b(t.json):t.model&&(this.window=new s.b(null,t.model)),this.window||(this.window=new s.b),t.closeOnCompleteTimeout&&(this.window.closeOnCompleteTimeout=t.closeOnCompleteTimeout),(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.window.closeWindowOnCompleteCallback=function(){r.window.hide()}},t}(o.a)},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(5);r.d(t,"a",function(){return a});var a=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("div",{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:e.materialDecorator},i.createElement("span",{className:"check"})),i.createElement("span",{className:e.label},t)))},t}(o.b);s.a.Instance.registerQuestion("boolean",function(e){return i.createElement(a,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(14),a=r(5);r.d(t,"a",function(){return l}),r.d(t,"b",function(){return u});var l=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(u,{key:e,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,isFirst:r})},t}(o.b),u=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.selectAllChanged=r.selectAllChanged.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.selectAllChanged=function(e){this.question.toggleSelectAll()},t.prototype.render=function(){if(!this.item||!this.question)return null;var e=this.question.isItemSelected(this.item),t=this.item.value===this.question.otherItem.value&&e?this.renderOther():null;return this.renderCheckbox(e,t)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return{marginRight:"3px"}},enumerable:!0,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var r=this.question.inputId,n=this.renderLocString(this.item.locText),o=this.cssClasses.item+(0===this.question.colCount?" sv_q_checkbox_inline":" sv-q-col-"+this.question.colCount);e&&(o+=" checked");var s=this.item==this.question.selectAllItem?this.selectAllChanged:this.handleOnChange;return i.createElement("div",{className:o},i.createElement("label",{className:this.cssClasses.label},i.createElement("input",{className:this.cssClasses.itemControl,type:"checkbox",value:this.item.value,id:r,style:this.inputStyle,disabled:this.isDisplayMode,checked:e,onChange:s,"aria-label":this.item.locText.renderedHtml}),i.createElement("span",{className:this.cssClasses.materialDecorator},i.createElement("span",{className:"check"})),i.createElement("span",{className:this.cssClasses.controlLabel},n)),t)},t.prototype.renderOther=function(){return i.createElement("div",{className:"form-group"},i.createElement(s.a,{question:this.question,otherCss:this.cssClasses.other,cssClasses:this.cssClasses,isDisplayMode:this.isDisplayMode}))},t}(o.c);a.a.Instance.registerQuestion("checkbox",function(e){return i.createElement(l,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(14),a=r(5),l=r(112);r.d(t,"a",function(){return u});var u=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.hasOther&&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){var t=this.question.value===this.question.otherItem.value;return i.createElement("div",{id:this.question.inputId,className:e.control},t?this.question.otherText:this.question.displayValue)}for(var n=[],o=0;o<this.question.visibleChoices.length;o++){var s=this.question.visibleChoices[o],a="item"+o,u=i.createElement("option",{key:a,value:s.value},s.text);n.push(u)}var c=null;return(l.a.msie||l.a.firefox&&r.i(l.b)(l.a.version,"51")<0||l.a.firefox&&r.i(l.c)())&&(c=this.handleOnChange),i.createElement("div",{className:e.selectWrapper},i.createElement("select",{id:this.question.inputId,className:e.control,value:this.state.value,onChange:c,onInput:this.handleOnChange,"aria-label":this.question.locTitle.renderedHtml},i.createElement("option",{value:""},this.question.optionsCaption),n))},t.prototype.renderOther=function(e){return i.createElement("div",{className:"form-group"},i.createElement(s.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);a.a.Instance.registerQuestion("dropdown",function(e){return i.createElement(u,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(5);r.d(t,"a",function(){return a});var a=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);s.a.Instance.registerQuestion("empty",function(e){return i.createElement(a,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(5);r.d(t,"a",function(){return a});var a=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);s.a.Instance.registerQuestion("expression",function(e){return i.createElement(a,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(5);r.d(t,"a",function(){return a});var a=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnClean=function(e){var t=e.target||e.srcElement;r.question.clear(),t.parentElement.querySelectorAll("input")[0].value="",r.setState({fileLoaded:r.state.fileLoaded+1})},r.handleOnRemoveFile=function(e){r.question.removeFile(e),r.setState({fileLoaded:r.state.fileLoaded+1})},r.state={fileLoaded:0,state:"empty"},r.handleOnChange=r.handleOnChange.bind(r),r.question.onStateChanged.add(function(e){return r.setState({fileLoaded:r.state.fileLoaded+1,state:e})}),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;if(window.FileReader&&t&&t.files&&!(t.files.length<1)){for(var r=[],n=0;n<t.files.length;n++)r.push(t.files[n]);t.value="",this.question.loadFiles(r),this.setState({fileLoaded:this.state.fileLoaded+1})}},t.prototype.render=function(){if(!this.question)return null;var e=this.renderPreview(),t=null,r=null,n=null;return this.isDisplayMode?n=i.createElement("input",{disabled:!0,className:this.question.cssClasses.fileInput,id:this.question.inputId,type:"file","aria-label":this.question.locTitle.renderedHtml,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes}):(t=i.createElement("input",{className:this.question.cssClasses.fileInput,id:this.question.inputId,type:"file",onChange:this.handleOnChange,"aria-label":this.question.locTitle.renderedHtml,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes}),this.question.value&&(r=i.createElement("button",{onClick:this.handleOnClean,className:this.question.cssClasses.removeButton},this.question.cleanButtonCaption))),i.createElement("div",{className:this.question.cssClasses.root},t,r,n,e)},t.prototype.renderPreview=function(){var e=this;if(!this.question.previewValue)return null;var t=this.question.previewValue.map(function(t,r){return t?i.createElement("span",{key:e.question.inputId+"_"+r,className:e.question.cssClasses.preview},t.name?i.createElement("div",null,i.createElement("a",{href:t.content,title:t.name,download:t.name,style:{width:e.question.imageWidth+"px"}},t.name)):null,e.question.canPreviewImage(t)?i.createElement("img",{src:t.content,height:e.question.imageHeight,width:e.question.imageWidth,alt:"File preview"}):null,t.name?i.createElement("div",null,e.question.isReadOnly?null:i.createElement("span",{className:e.question.cssClasses.removeFile,onClick:function(r){return e.handleOnRemoveFile(t)}},e.question.removeFileCaption)):null):null});return i.createElement("div",null,t)},t}(o.b);s.a.Instance.registerQuestion("file",function(e){return i.createElement(a,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(5);r.d(t,"a",function(){return a});var a=function(e){function t(t){var r=e.call(this,t)||this;return r.state={htmlChanged:0},r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){if(this.question){var e=this;this.question.locHtml.onStrChanged=function(){e.setState({htmlChanged:e.state.htmlChanged+1})}}},t.prototype.componentWillUnmount=function(){this.question&&(this.question.locHtml.onStrChanged=null)},t.prototype.render=function(){if(!this.question||!this.question.html)return null;var e={__html:this.question.locHtml.renderedHtml};return i.createElement("div",{dangerouslySetInnerHTML:e})},t}(o.b);s.a.Instance.registerQuestion("html",function(e){return i.createElement(a,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(5);r.d(t,"a",function(){return a}),r.d(t,"b",function(){return l});var a=function(e){function t(t){var r=e.call(this,t)||this;return r.state={rowsChanged:0},r}return n.b(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){if(this.question){var e=this;this.question.visibleRowsChangedCallback=function(){e.setState({rowsChanged:e.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){this.question&&(this.question.visibleRowsChangedCallback=null)},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.visibleColumns.length;n++){var o=this.question.visibleColumns[n],s="column"+n,a=this.renderLocString(o.locText);r.push(i.createElement("th",{key:s},a))}for(var u=[],c=this.question.visibleRows,n=0;n<c.length;n++){var p=c[n],s="row"+n;u.push(i.createElement(l,{key:s,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,u)),i.createElement("legend",{style:{display:"none"}},this.question.locTitle.renderedHtml))},t}(o.b),l=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)}var r=this.generateTds();return i.createElement("tr",null,e,r)},t.prototype.generateTds=function(){for(var e=this,t=[],r=this.row,n=0;n<this.question.visibleColumns.length;n++){var o=null,s=this.question.visibleColumns[n],a="value"+n,l=r.value==s.value,u=this.getItemClass(r,s),c=this.question.inputId+"_"+r.name+"_"+n;if(this.question.hasCellText){var p=this.question.isReadOnly?null:function(t){return function(){return e.cellClick(r,t)}};o=i.createElement("td",{key:a,className:u,onClick:p(s)},this.renderLocString(this.question.getCellDisplayLocText(r.name,s)))}else o=i.createElement("td",{key:a,headers:s.locText.renderedHtml},i.createElement("label",{className:u},i.createElement("input",{id:c,type:"radio",className:this.cssClasses.itemValue,name:r.fullName,value:s.value,disabled:this.isDisplayMode,checked:l,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)),i.createElement("label",{className:this.question.cssClasses.cellLabel,htmlFor:c}));t.push(o)}return t},t.prototype.getItemClass=function(e,t){var r=e.value==t.value,n=this.question.hasCellText?this.cssClasses.cellTextSelected:"checked";return(this.question.hasCellText?this.cssClasses.cellText:this.cssClasses.label)+(r?" "+n:"")},t.prototype.cellClick=function(e,t){e.value=t.value},t}(o.c);s.a.Instance.registerQuestion("matrix",function(e){return i.createElement(a,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(24)),s=r(5);r.d(t,"a",function(){return a}),r.d(t,"b",function(){return l});var a=function(e){function t(t){return e.call(this,t)||this}return n.b(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!0,configurable:!0}),t.prototype.addHeaderLeft=function(e){e.push(i.createElement("td",null))},t.prototype.renderRow=function(e,t,r){return i.createElement(l,{key:t.id,row:t,cssClasses:r,isDisplayMode:this.isDisplayMode,creator:this.creator})},t.prototype.renderRowsAsHeaders=function(){var e=[];this.question.showHeader&&e.push(i.createElement("td",null));for(var t=this.matrix.visibleRows,r=0;r<t.length;r++){var n="column"+r,o=t[r],s=this.renderLocString(o.locText);e.push(i.createElement("th",{key:n},s))}return i.createElement("thead",null,i.createElement("tr",null,e))},t}(o.b),l=function(e){function t(t){return e.call(this,t)||this}return n.b(t,e),t.prototype.AddLeftCells=function(e){var t=this.row,r=this.renderLocString(t.locText);e.push(i.createElement("td",null,r))},t}(o.c);s.a.Instance.registerQuestion("matrixdropdown",function(e){return i.createElement(a,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(5),a=r(24);r.d(t,"a",function(){return l}),r.d(t,"b",function(){return c});var l=function(e){function t(t){return e.call(this,t)||this}return n.b(t,e),Object.defineProperty(t.prototype,"matrix",{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(t){e.prototype.setProperties.call(this,t),this.handleOnRowAddClick=this.handleOnRowAddClick.bind(this)},t.prototype.handleOnRowAddClick=function(e){this.matrix.addRow()},t.prototype.render=function(){if(!this.question)return null;var e=this.question.cssClasses,t=this.renderTableDiv();return i.createElement("div",{ref:"matrixDynamicRef"},this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderRow=function(e,t,r){return i.createElement(c,{key:t.id,row:t,index:e,cssClasses:r,isDisplayMode:this.isDisplayMode,creator:this.creator,question:this.question})},t.prototype.addHeaderRigth=function(e){this.matrix.canRemoveRow&&e.push(i.createElement("td",null))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.isAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.isAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderAddRowButton=function(e){return i.createElement("div",{className:e.footer},i.createElement("input",{className:e.button+" "+e.buttonAdd,type:"button",onClick:this.handleOnRowAddClick,value:this.matrix.addRowText}))},t.prototype.addBottomColumnAsRows=function(e){if(this.matrix.canRemoveRow){var t=this.question.cssClasses,r=[];this.question.showHeader&&r.push(i.createElement("td",{key:"header"}));for(var n=this.question.visibleRows,o=0;o<n.length;o++){var s=i.createElement(u,{question:this.question,index:o,cssClasses:t});r.push(i.createElement("td",{key:"cell"+o},s))}e.push(i.createElement("tr",{key:"removeRow"},r))}},t}(a.b),u=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.question=e.question,this.index=e.index,this.handleOnRowRemoveClick=this.handleOnRowRemoveClick.bind(this)},t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.index)},t.prototype.render=function(){return i.createElement("input",{className:this.cssClasses.button+" "+this.cssClasses.buttonRemove,type:"button",onClick:this.handleOnRowRemoveClick,value:this.question.removeRowText})},t}(o.c),c=function(e){function t(t){return e.call(this,t)||this}return n.b(t,e),t.prototype.setProperties=function(t){e.prototype.setProperties.call(this,t),this.question=t.question,this.index=t.index},t.prototype.AddRightCells=function(e){if(this.question.canRemoveRow){var t=i.createElement(u,{question:this.question,index:this.index,cssClasses:this.cssClasses});e.push(i.createElement("td",{key:"row"+this.row.cells.length+1},t))}},t}(a.c);s.a.Instance.registerQuestion("matrixdynamic",function(e){return i.createElement(l,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(19),a=r(5);r.d(t,"a",function(){return l});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=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 l=t[a],u=this.renderLocString(l.locTitle);o.push(i.createElement("td",{key:"label"+a},i.createElement("span",{className:r.itemTitle},u))),o.push(i.createElement(s.c,{key:"value"+a,cssClasses:r,question:l.editor,creator:this.creator}))}return i.createElement("tr",{key:n,className:r.row},o)},t}(o.b);a.a.Instance.registerQuestion("multipletext",function(e){return i.createElement(l,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(23),a=r(13),l=r(5);r.d(t,"a",function(){return u});var u=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.componentDidMount=function(){this.setState({panelCounter:0});var e=this;this.question.panelCountChangedCallback=function(){e.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){e.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){e.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){this.question.panelCountChangedCallback=null,this.question.currentIndexChangedCallback=null,this.question.renderModeChangedCallback=null},t.prototype.setProperties=function(e){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?this.state.panelCounter+1:1})},t.prototype.handleOnPanelAddClick=function(e){this.question.addPanelUI()},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:n.id,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),s=this.question.isProgressTopShowing?this.renderNavigator(e):null,a=this.question.isProgressBottomShowing?this.renderNavigator(e):null;return i.createElement("div",{className:e.root},s,t,a,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,s=this.renderAddRowButton(e,t);return i.createElement("div",null,r,n,o,s)},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+" "+t.buttonAdd,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(s.c,{key:this.index,panel:this.panel,css:a.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+" "+this.cssClasses.buttonRemove,style:e,type:"button",onClick:this.handleOnPanelRemoveClick,value:this.question.panelRemoveText})},t}(o.c);l.a.Instance.registerQuestion("paneldynamic",function(e){return i.createElement(u,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(14),a=r(5);r.d(t,"a",function(){return l});var l=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(){var e=this;if(!this.question)return null;var t=this.question.cssClasses,r=null;return this.question.showClearButton&&(r=i.createElement("div",null,i.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue()},value:this.question.clearButtonCaption}))),i.createElement("fieldset",{className:t.root},this.getItems(t),r,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.value==t.value,o=i&&t.value===this.question.otherItem.value?this.renderOther(n):null;return this.renderRadio(e,t,i,o,r,n)},t.prototype.renderRadio=function(e,t,r,n,o,s){var a=this.question.inputId,l=this.renderLocString(t.locText,this.textStyle),u=s.item+(0===this.question.colCount?" sv_q_radiogroup_inline":" sv-q-col-"+this.question.colCount);return r&&(u+=" checked"),i.createElement("div",{key:e,className:u},i.createElement("label",{className:s.label},i.createElement("input",{className:s.itemControl,id:a,type:"radio",name:this.question.name+"_"+this.questionBase.id,checked:r,value:t.value,disabled:this.isDisplayMode,onChange:this.handleOnChange,"aria-label":t.locText.renderedHtml}),i.createElement("span",{className:s.materialDecorator}),i.createElement("span",{className:"check"}),i.createElement("span",{className:s.controlLabel},l)),n)},t.prototype.renderOther=function(e){return i.createElement("div",{className:"form-group"},i.createElement(s.a,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t}(o.b);a.a.Instance.registerQuestion("radiogroup",function(e){return i.createElement(l,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4)),s=r(14),a=r(5);r.d(t,"a",function(){return l});var l=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 s=0==o?r:null,a=o==this.question.visibleRateValues.length-1?n:null;t.push(this.renderItem("value"+o,this.question.visibleRateValues[o],s,a,e))}var l=this.question.hasOther?this.renderOther(e):null;return i.createElement("div",{className:e.root},t,l)},t.prototype.renderItem=function(e,t,r,n,o){var s=this.question.value==t.value,a=o.item;s&&(a+=" "+o.selected);var l=this.renderLocString(t.locText),u=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:a},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}),u,i.createElement("span",{className:o.itemText},l),c)},t.prototype.renderOther=function(e){return i.createElement("div",{className:e.other},i.createElement(s.a,{question:this.question,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t}(o.b);a.a.Instance.registerQuestion("rating",function(e){return i.createElement(l,e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(6)),s=r(4),a=r(5);r.d(t,"a",function(){return l});var l=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("input",{disabled:!0,id:this.question.inputId,className:e.root,type:this.question.inputType,value:this.state.value,maxLength:this.question.getMaxLength(),size:this.question.size,placeholder:this.question.placeHolder,"aria-label":this.question.locTitle.renderedHtml}):i.createElement("input",{id:this.question.inputId,className:e.root,type:this.question.inputType,value:this.state.value,maxLength:this.question.getMaxLength(),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}(s.b);a.a.Instance.registerQuestion("text",function(e){return i.createElement(l,e)})},function(e,t){},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,n.a.localeNames.ar="العربية"},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Anterior",pageNextText:"Següent",completeText:"Complet",otherItemText:"Un altre (descrigui)",progressText:"Pàgina {0} de {1}",emptySurvey:"No hi ha cap pàgina visible o pregunta a l'enquesta.",completingSurvey:"Gràcies per completar l'enquesta!",loadingSurvey:"L'enquesta s'està carregant ...",optionsCaption:"Selecciona ...",requiredError:"Si us plau contesti la pregunta.",requiredInAllRowsError:"Si us plau contesti les preguntes de cada filera.",numericError:"L'estimació ha de ser numèrica.",textMinLength:"Si us plau entre almenys {0} símbols.",textMaxLength:"Si us plau entre menys de {0} símbols.",textMinMaxLength:"Si us plau entre més de {0} i menys de {1} símbols.",minRowCountError:"Si us plau ompli almenys {0} fileres.",minSelectError:"Si us plau seleccioni almenys {0} variants.",maxSelectError:"Si us plau seleccioni no més de {0} variants.",numericMinMax:"El '{0}' deu ser igual o més de {1} i igual o menys de {2}",numericMin:"El '{0}' ha de ser igual o més de {1}",numericMax:"El '{0}' ha de ser igual o menys de {1}",invalidEmail:"Si us plau afegiu un correu electrònic vàlid.",urlRequestError:"La sol·licitud va tornar error '{0}'. {1}",urlGetChoicesError:"La sol·licitud va tornar buida de dates o la propietat 'trajectòria' no és correcta",exceedMaxSize:"La mida de l'arxiu no pot excedir {0}.",otherRequiredError:"Si us plau afegiu l'altra estimació.",uploadingFile:"El seu arxiu s'està pujant. Si us plau esperi uns segons i intenteu-ho de nou.",addRow:"Afegiu una filera",removeRow:"Eliminar una filera",choices_firstItem:"primer article",choices_secondItem:"segon article",choices_thirdItem:"tercer article",matrix_column:"Columna",matrix_row:"Filera"};n.a.locales.ca=i,n.a.localeNames.ca="català"},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,n.a.localeNames.cz="čeština"},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,n.a.localeNames.da="dansk"},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Vorige",pageNextText:"Volgende",completeText:"Verzenden",otherItemText:"Andere",progressText:"Pagina {0} van {1}",emptySurvey:"Er is geen zichtbare pagina of vraag in deze vragenlijst",completingSurvey:"Bedankt voor het invullen van de vragenlijst",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,n.a.localeNames.nl="nederlands"},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,n.a.localeNames.fi="suomalainen"},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Précédent",pageNextText:"Suivant",completeText:"Terminer",startSurveyText:"Commencer",otherItemText:"Autre (préciser)",noneItemText:"Aucun",selectAllItemText:"Tout sélectionner",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 !",completingSurveyBefore:"Nos données indiquent que vous avez déjà rempli ce questionnaire.",loadingSurvey:"Le questionnaire est en cours de chargement...",optionsCaption:"Choisissez...",value:"valeur",requiredError:"La réponse à cette question est obligatoire.",requiredErrorInPanel:"Merci de répondre au moins à une question.",requiredInAllRowsError:"Toutes les lignes sont obligatoires",numericError:"La réponse doit être un nombre.",textMinLength:"Merci de saisir au moins {0} caractères.",textMaxLength:"Merci de saisir moins de {0} caractères.",textMinMaxLength:"Merci de saisir entre {0} et {1} caractères.",minRowCountError:"Merci de compléter au moins {0} lignes.",minSelectError:"Merci de sélectionner au minimum {0} réponses.",maxSelectError:"Merci de sélectionner au maximum {0} réponses.",numericMinMax:"Votre réponse '{0}' doit être supérieure ou égale à {1} et inférieure ou égale à {2}",numericMin:"Votre réponse '{0}' doit être supérieure ou égale à {1}",numericMax:"Votre réponse '{0}' doit être inférieure ou égale à {1}",invalidEmail:"Merci d'entrer une adresse mail valide.",invalidExpression:"L'expression: {0} doit retourner 'true'.",urlRequestError:"La requête a renvoyé une erreur '{0}'. {1}",urlGetChoicesError:"La requête a renvoyé des données vides ou la propriété 'path' est incorrecte",exceedMaxSize:"La taille du fichier ne doit pas excéder {0}.",otherRequiredError:"Merci de préciser le champ 'Autre'.",uploadingFile:"Votre fichier est en cours de chargement. Merci d'attendre quelques secondes et de réessayer.",loadingFile:"Chargement...",chooseFile:"Ajouter des fichiers...",confirmDelete:"Voulez-vous supprimer cet enregistrement ?",keyDuplicationError:"Cette valeur doit être unique.",addColumn:"Ajouter une colonne",addRow:"Ajouter une ligne",removeRow:"Supprimer",addPanel:"Ajouter",removePanel:"Supprimer",choices_Item:"item",matrix_column:"Colonne",matrix_row:"Ligne",savingData:"Les résultats sont en cours de sauvegarde sur le serveur...",savingDataError:"Une erreur est survenue et a empêché la sauvegarde des résultats.",savingDataSuccess:"Les résultats ont bien été enregistrés !",saveAgainButton:"Réessayer",timerMin:"min",timerSec:"sec",timerSpentAll:"Vous avez passé {0} sur cette page et {1} au total.",timerSpentPage:"Vous avez passé {0} sur cette page.",timerSpentSurvey:"Vous avez passé {0} au total.",timerLimitAll:"Vous avez passé {0} sur {1} sur cette page et {2} sur {3} au total.",timerLimitPage:"Vous avez passé {0} sur {1} sur cette page.",timerLimitSurvey:"Vous avez passé {0} sur {1} au total.",cleanCaption:"Nettoyer",clearCaption:"Vider",removeFileCaption:"Enlever ce fichier"};n.a.locales.fr=i,n.a.localeNames.fr="français"},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,n.a.localeNames.ka="ქართული"},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} nicht überschreiten.",otherRequiredError:"Bitte geben Sie Ihre benutzerdefinierte Antwort ein.",addRow:"Reihe hinzufügen",removeRow:"Löschen"};n.a.locales.de=i,n.a.localeNames.de="deutsch"},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,n.a.localeNames.gr="ελληνικά"},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,n.a.localeNames.he="עברית"},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,n.a.localeNames.hu="magyar"},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,n.a.localeNames.is="íslenska"},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Precedente",pageNextText:"Successivo",completeText:"Salva",startSurveyText:"Inizio",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!",completingSurveyBefore:"I nostri records mostrano che hai già completato questo questionario.",loadingSurvey:"Caricamento del questionario in corso...",optionsCaption:"Scegli...",value:"valore",requiredError:"Campo obbligatorio",requiredErrorInPanel:"Per Favore, rispondi ad almeno una domanda.",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",confirmDelete:"Sei sicuro di voler elminare il record?",keyDuplicationError:"Questo valore deve essere univoco.",addRow:"Aggiungi riga",removeRow:"Rimuovi riga",addPanel:"Aggiungi riga",removePanel:"Elimina",choices_Item:"Elemento",matrix_column:"Colonna",matrix_row:"Riga",savingData:"Salvataggio dati sul server...",savingDataError:"Si è verificato un errore e non è stato possibile salvare i risultati.",savingDataSuccess:"I risultati sono stati salvati con successo!",saveAgainButton:"Riprova",timerMin:"min",timerSec:"sec",timerSpentAll:"Hai impiegato {0} su questa pagina e {1} in totale.",timerSpentPage:"Hai impiegato {0} su questa pagina.",timerSpentSurvey:"Hai impiegato {0} in totale.",timerLimitAll:"Hai impiegato {0} di {1} su questa pagina e {2} di {3} in totale.",timerLimitPage:"Hai impiegato {0} di {1} su questa pagina.",timerLimitSurvey:"Hai impiegato {0} di {1} in totale.",cleanCaption:"Pulisci"};n.a.locales.it=i,n.a.localeNames.it="italiano"},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"이전",pageNextText:"다음",completeText:"완료",startSurveyText:"시작",otherItemText:"기타(설명)",progressText:"페이지 {1} 중 {0}",emptySurvey:"설문지에 보여지는 페이지나 질문이 없습니다",completingSurvey:"설문 조사를 완료해 주셔서 감사합니다!",completingSurveyBefore:"기록에 따르면 이미 설문 조사를 마치셨습니다.",loadingSurvey:"설문조사가 로드중입니다...",optionsCaption:"선택하십시오...",value:"값",requiredError:"질문에 답하시오.",requiredErrorInPanel:"하나 이상의 질문에 답하십시오.",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:"올바른 이메일 주소를 입력하십시오.",invalidExpression:"표현식: {0}은 '참'이어야 합니다.",urlRequestError:"'{0}'으로 잘못된 요청입니다. {1}",urlGetChoicesError:"비어있는 데이터를 요청했거나 잘못된 속성의 경로입니다.",exceedMaxSize:"파일 크기가 {0}을 초과 할 수 없습니다.",otherRequiredError:"다른 질문을 작성하십시오.",uploadingFile:"파일 업로드 중입니다. 잠시 후 다시 시도하십시오.",loadingFile:"로드 중...",chooseFile:"파일 선택...",confirmDelete:"기록을 삭제하시겠습니까?",keyDuplicationError:" 이 값은 고유해야합니다.",addColumn:"열 추가",addRow:"행 추가",removeRow:"제거",addPanel:"새롭게 추가",removePanel:"제거",choices_Item:"항목",matrix_column:"열",matrix_row:"행",savingData:"결과가 서버에 저장 중입니다...",savingDataError:"오류가 발생하여 결과를 저장할 수 없습니다.",savingDataSuccess:"결과가 성공적으로 저장되었습니다!",saveAgainButton:"다시 시도하십시오",timerMin:"분",timerSec:"초",timerSpentAll:"현재 페이지에서 {0}을 소요해 총 {1}이 걸렸습니다.",timerSpentPage:"현재 페이지에서 {0]이 걸렸습니다",timerSpentSurvey:"총 {0}이 걸렸습니다.",timerLimitAll:"현재 페이지에서 {0}/{1}을 소요해 총 {2}/{3}이 걸렸습니다.",timerLimitPage:"현재 페이지에서 {0}/{1}이 걸렸습니다.",timerLimitSurvey:"총 {0}/{1}이 걸렸습니다.",cleanCaption:"닦기",clearCaption:"지우기"};n.a.locales.ko=i,n.a.localeNames.ko="한국어"},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,n.a.localeNames.lv="latviešu"},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Forrige",pageNextText:"Neste",completeText:"Fullfør",startSurveyText:"Start",otherItemText:"Annet (beskriv)",progressText:"Side {0} av {1}",emptySurvey:"Det er ingen synlig side eller spørsmål i undersøkelsen.",completingSurvey:"Takk for at du fullførte undersøkelsen!",completingSurveyBefore:"Våre data viser at du allerede har gjennomført denne undersøkelsen.",loadingSurvey:"Undersøkelsen laster...",optionsCaption:"Velg...",value:"verdi",requiredError:"Vennligst svar på spørsmålet.",requiredErrorInPanel:"Vennligst svar på minst ett spørsmål.",requiredInAllRowsError:"Vennligst svar på spørsmål i alle rader.",numericError:"Verdien skal være numerisk.",textMinLength:"Vennligst skriv inn minst {0} tegn.",textMaxLength:"Vennligst skriv inn mindre enn {0} tegn.",textMinMaxLength:"Vennligst skriv inn mer enn {0} og mindre enn {1} tegn.",minRowCountError:"Vennligst fyll inn minst {0} rader.",minSelectError:"Vennligst velg minst {0} varianter.",maxSelectError:"Vennligst ikke velg mer enn {0} varianter.",numericMinMax:"'{0}' bør være lik eller mer enn {1} og lik eller mindre enn {2}",numericMin:"'{0}' bør være lik eller mer enn {1}",numericMax:"'{0}' bør være lik eller mindre enn {1}",invalidEmail:"Vennligst skriv inn en gyldig e-post adresse.",urlRequestError:"Forespørselen returnerte feilen '{0}'. {1}",urlGetChoicesError:"Forespørselen returnerte tomme data, eller 'sti' -egenskapen er feil",exceedMaxSize:"Filstørrelsen bør ikke overstige {0}.",otherRequiredError:"Vennligst skriv inn den andre verdien.",uploadingFile:"Filen din lastes opp. Vennligst vent noen sekunder og prøv igjen.",confirmDelete:"Ønsker du å slette posten?",keyDuplicationError:"Denne verdien skal være unik.",addRow:"Legg til rad",removeRow:"Fjern",addPanel:"Legg til ny",removePanel:"Fjerne",choices_Item:"element",matrix_column:"Kolonne",matrix_row:"Rad",savingData:"Resultatene lagres på serveren ...",savingDataError:"Det oppsto en feil, og vi kunne ikke lagre resultatene.",savingDataSuccess:"Resultatene ble lagret!",saveAgainButton:"Prøv igjen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har tilbrakt {0} på denne siden og {1} totalt.",timerSpentPage:"Du har tilbrakt {0} på denne siden.",timerSpentSurvey:"Du har tilbrakt {0} totalt.",timerLimitAll:"Du har tilbrakt {0} av {1} på denne siden og totalt {2} av {3}.",timerLimitPage:"Du har tilbrakt {0} av {1} på denne siden.",timerLimitSurvey:"Du har tilbrakt {0} av {1} totalt.",cleanCaption:"Rens"};n.a.locales.no=i,n.a.localeNames.no="norsk"},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,n.a.localeNames.fa="فارْسِى"},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ń",addPanel:"Dodaj panel",removePanel:"Usuń",choices_Item:"element",matrix_column:"Kolumna",matrix_row:"Wiersz",savingData:"Zapisuję wyniki ankiety na serwerze...",savingDataError:"Wystąpił błąd i wyniki nie mogły zostać zapisane.",savingDataSuccess:"Wyniki zostały poprawnie zapisane!",saveAgainButton:"Spróbuj ponownie",timerMin:"min",timerSec:"sek",timerSpentAll:"Spędziłeś {0} na tej stronie a w sumie {1}.",timerSpentPage:"Spędziłeś {0} na tej stronie.",timerSpentSurvey:"Spędziłeś w smumie {0}.",timerLimitAll:"Spędziłeś {0} z {1} na tej stronie a w sumie {2} z {3}.",timerLimitPage:"Spędziłeś {0} z {1} na tej stronie",timerLimitSurvey:"Spędziłeś {0} z {1}.",cleanCaption:"Wyczyść"};n.a.locales.pl=i,n.a.localeNames.pl="polski"},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,n.a.localeNames.pt="português"},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ă introduceți minim {0} caractere.",minSelectError:"Trebuie să selectați minim {0} opţiuni.",maxSelectError:"Trebuie să selectați 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ă completați câmpul 'Altul'.",completingSurveyBefore:"Din înregistrările noastre reiese că ați completat deja acest chestionar.",value:"valoare",requiredErrorInPanel:"Vă rugăm să răspundeți la cel puțin o întrebare.",textMaxLength:"Trebuie să introduceți maxim {0} caractere.",textMinMaxLength:"Trebuie să introduceți mai mult de {0} și mai puțin de {1} caractere.",minRowCountError:"Trebuie să completați minim {0} rânduri.",urlRequestError:"Request-ul a returnat eroarea '{0}'. {1}",urlGetChoicesError:"Request-ul nu a returnat date sau proprietatea 'path' este incorectă",uploadingFile:"Fișierul dumneavoastră este în curs de încărcare. Vă rugăm așteptați câteva secunde și reveniți apoi.",confirmDelete:"Sunteți sigur că doriți să ștergeți înregistrarea?",keyDuplicationError:"Valoarea trebuie să fie unică.",addRow:"Adăugare rând",removeRow:"Ștergere",addPanel:"Adăugare",removePanel:"Ștergere",choices_Item:"opțiune",matrix_column:"Coloană",matrix_row:"Rând",savingData:"Rezultatele sunt în curs de salvare...",savingDataError:"A intervenit o eroare, rezultatele nu au putut fi salvate.",savingDataSuccess:"Rezultatele au fost salvate cu succes!",saveAgainButton:"Încercați din nou",timerMin:"min",timerSec:"sec",timerSpentAll:"Ați petrecut {0} pe această pagină și {1} în total.",timerSpentPage:"Ați petrecut {0} pe această pagină.",timerSpentSurvey:"Ați petrecut {0} în total.",timerLimitAll:"Ați petrecut {0} din {1} pe această pagină și {2} din {3} în total.",timerLimitPage:"Ați petrecut {0} din {1} pe această pagină.",timerLimitSurvey:"Ați petrecut {0} din {1} în total."};n.a.locales.ro=i,n.a.localeNames.ro="română"},function(e,t,r){"use strict";var n=r(1),i={pagePrevText:"Назад",pageNextText:"Далее",completeText:"Готово",startSurveyText:"Начать",otherItemText:"Другое (пожалуйста, опишите)",noneItemText:"Нет",selectAllItemText:"Выбрать всё",progressText:"Страница {0} из {1}",emptySurvey:"Нет ни одного вопроса.",completingSurvey:"Благодарим Вас за заполнение анкеты!",completingSurveyBefore:"Вы уже проходили этот опрос.",loadingSurvey:"Загрузка с сервера...",optionsCaption:"Выбрать...",value:"значение",requiredError:"Пожалуйста, ответьте на вопрос.",requiredErrorInPanel:"Пожалуйста, ответьте по крайней мере на один вопрос.",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:"Пожалуйста, введите действительный адрес электронной почты.",invalidExpression:"Выражение {0} должно возвращать 'true'.",urlRequestError:"Запрос вернул ошибку '{0}'. {1}",urlGetChoicesError:"Ответ на запрос пришел пустой или свойство 'path' указано неверно",exceedMaxSize:"Размер файла не должен превышать {0}.",otherRequiredError:"Пожалуйста, введите данные в поле 'Другое'",uploadingFile:"Ваш файл загружается. Подождите несколько секунд и попробуйте снова.",loadingFile:"Загрузка...",chooseFile:"Выберите файл(ы)...",confirmDelete:"Вы точно хотите удалить запись?",keyDuplicationError:"Это значение должно быть уникальным.",addColumn:"Добавить колонку",addRow:"Добавить строку",removeRow:"Удалить",addPanel:"Добавить новую",removePanel:"Удалить",choices_Item:"Вариант",matrix_column:"Колонка",matrix_row:"Строка",savingData:"Результаты сохраняются на сервер...",savingDataError:"Произошла ошибка, результат не был сохранён.",savingDataSuccess:"Результат успешно сохранён!",saveAgainButton:"Попробовать снова",timerMin:"мин",timerSec:"сек",timerSpentAll:"Вы потратили {0} на этой странице и {1} всего.",timerSpentPage:"Вы потратили {0} на этой странице.",timerSpentSurvey:"Вы потратили {0} в течение теста.",timerLimitAll:"Вы потратили {0} из {1} на этой странице и {2} из {3} для всего теста.",timerLimitPage:"Вы потратили {0} из {1} на этой странице.",timerLimitSurvey:"Вы потратили {0} из {1} для всего теста.",cleanCaption:"Очистить",clearCaption:"Очистить",removeFileCaption:"Удалить файл"};n.a.locales.ru=i,n.a.localeNames.ru="русский"},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,n.a.localeNames["zh-cn"]="简体中文"},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,n.a.localeNames.es="español"},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,n.a.localeNames.sv="svenska"},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-tw"]=i,n.a.localeNames["zh-tw"]="繁體中文"},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,n.a.localeNames.tr="türkçe"},function(e,t,r){"use strict";var n=r(0),i=r(7),o=r(2),s=r(9);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.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}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue?null:"true"==this.defaultValue?this.getValueTrue():this.getValueFalse()},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}(s.a);o.b.metaData.addClass("boolean",[{name:"defaultValue:dropdown",alternativeName:"booleanDefaultValue",default:"indeterminate",choices:["indeterminate","false","true"]},{name:"label:text",serializationProperty:"locLabel"},"showTitle:boolean","valueTrue","valueFalse"],function(){return new a("")},"question"),i.a.Instance.registerQuestion("boolean",function(e){return new a(e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=r(7),s=r(17),a=r(6),l=r(11),u=r(1);r.d(t,"a",function(){return c});var c=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.noneItemValue=new l.a("none"),r.selectAllItemValue=new l.a("selectall");var n=r.createLocalizableString("noneText",r,!0);n.onGetTextCallback=function(e){return e||u.a.getString("noneItemText")},r.noneItemValue.locOwner=r,r.noneItemValue.setLocText(n);var i=r.createLocalizableString("selectAllText",r,!0);i.onGetTextCallback=function(e){return e||u.a.getString("selectAllItemText")},r.selectAllItem.locOwner=r,r.selectAllItem.setLocText(i);var o=r;return r.registerFunctionOnPropertiesValueChanged(["hasNone","noneText","hasSelectAll","selectAllText"],function(){o.onVisibleChoicesChanged()}),r}return n.b(t,e),Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText",u.a.getString("noneItemText"))},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText",u.a.getString("selectAllItemText"))},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.getPropertyValue("hasSelectAll",!1)},set:function(e){this.setPropertyValue("hasSelectAll",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){var e=this.value;if(!e||!Array.isArray(e))return!1;if(this.isItemSelected(this.noneItem))return!1;var t=this.visibleChoices.length;this.hasOther&&t--,this.hasNone&&t--,this.hasSelectAll&&t--;var r=e.length;return this.isItemSelected(this.otherItem)&&r--,r===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!0,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.selectAll=function(){for(var e=[],t=0;t<this.visibleChoices.length;t++){var r=this.visibleChoices[t];r!==this.noneItem&&r!==this.otherItem&&r!==this.selectAllItem&&e.push(r.value)}this.value=e},Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.getPropertyValue("hasNone",!1)},set:function(e){this.setPropertyValue("hasNone",e)},enumerable:!0,configurable:!0}),t.prototype.isItemSelected=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.value;return!(!t||!Array.isArray(t))&&t.indexOf(e.value)>-1},t.prototype.setNewValue=function(t){if(this.hasNone){var r=this.value;if(!a.a.isTwoValueEquals(r,t)){var n=this.noneIndexInArray(r),i=this.noneIndexInArray(t);n>-1?i>-1&&t.length>1&&t.splice(i,1):i>-1&&(t=[this.noneItem.value])}}e.prototype.setNewValue.call(this,t)},t.prototype.noneIndexInArray=function(e){if(!e||!Array.isArray(e))return-1;for(var t=this.noneItem.value,r=0;r<e.length;r++)if(e[r]==t)return r;return-1},t.prototype.canUseFilteredChoices=function(){return!this.hasNone&&!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.addToVisibleChoices=function(t){this.hasSelectAll&&t.unshift(this.selectAllItem),this.hasNone&&t.push(this.noneItem),e.prototype.addToVisibleChoices.call(this,t)},t.prototype.getDisplayValueCore=function(e){if(this.isEmpty())return"";for(var t=this.visibleChoices,r=this.value,n="",i=0;i<r.length;i++){var o=this.getChoicesDisplayValue(t,r[i]);o&&(n&&(n+=", "),n+=o)}return n},t.prototype.clearIncorrectValues=function(){var e=this.value;if(e){if(!Array.isArray(e)||0==e.length)return void this.clearValue();for(var t=[],r=0;r<e.length;r++)this.hasUnknownValue(e[r],!0)||t.push(e[r]);t.length!=e.length&&(0==t.length?this.clearValue():this.value=t)}},t.prototype.getConditionJson=function(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.prototype.getConditionJson.call(this);return"contains"!=t&&"notcontains"!=t||(n.type="radiogroup"),n},t.prototype.getValueCore=function(){return e.prototype.getValueCore.call(this)||[]},t.prototype.isAnswerCorrect=function(){return a.a.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.valueFromDataCore(this.defaultValue)},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}(s.a);i.b.metaData.addClass("checkbox",["hasSelectAll:boolean","hasNone:boolean",{name:"noneText",serializationProperty:"locNoneText"},{name:"selectAllText",serializationProperty:"locSelectAllText"}],function(){return new c("")},"checkboxbase"),o.a.Instance.registerQuestion("checkbox",function(e){var t=new c(e);return t.choices=o.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),i=r(9),o=r(2),s=r(7),a=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.name=t,r.createLocalizableString("placeHolder",r),r}return n.b(t,e),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength",-1)},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){return a.a.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},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:"maxLength:number",default:-1},{name:"cols:number",default:50},{name:"rows:number",default:4},{name:"placeHolder",serializationProperty:"locPlaceHolder"}],function(){return new l("")},"question"),s.a.Instance.registerQuestion("comment",function(e){return new l(e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=r(9);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"empty"},t}(o.a);i.b.metaData.addClass("empty",[],function(){return new s("")},"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(9),s=r(2),a=r(7),l=r(12);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.createLocalizableString("format",r);var n=r;return r.registerFunctionOnPropertyValueChanged("expression",function(){n.expressionRunner&&(n.expressionRunner=new l.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,r){e.prototype.runCondition.call(this,t,r),this.expression&&!this.expressionIsRunning&&(this.expressionIsRunning=!0,this.expressionRunner||(this.expressionRunner=new l.h(this.expression)),this.value=this.expressionRunner.run(t,r),this.expressionIsRunning=!1)},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits",-1)},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!0,configurable:!0}),t.prototype.getDisplayValueCore=function(e){var t=this.isValueEmpty(this.value)?this.defaultValue:this.value;if(this.isValueEmpty(t))return"";var r=this.getValueAsStr(t);return this.format?this.format.format(r):r},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 this.maximumFractionDigits>-1&&(r.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(r.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(t,r)}return e.toString()},t}(o.a);s.b.metaData.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"currency",choices:function(){return n()},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{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 u("")},"question"),a.a.Instance.registerQuestion("expression",function(e){return new u(e)})},function(e,t,r){"use strict";var n=r(0),i=r(9),o=r(2),s=r(7),a=r(8),l=r(10),u=r(1);r.d(t,"a",function(){return c});var c=function(e){function t(t){var r=e.call(this,t)||this;return r.name=t,r.isUploading=!1,r.onStateChanged=new a.c,r.previewValue=[],r.currentState="empty",r}return n.b(t,e),t.prototype.getType=function(){return"file"},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview",!0)},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple",!1)},set:function(e){this.setPropertyValue("allowMultiple",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,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",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,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload",!1)},set:function(e){this.setPropertyValue("waitForUpload",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}),Object.defineProperty(t.prototype,"cleanButtonCaption",{get:function(){return u.a.getString("cleanCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeFileCaption",{get:function(){return u.a.getString("removeFileCaption")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?u.a.getString("loadingFile"):this.isEmpty()?u.a.getString("chooseFile"):" "},enumerable:!0,configurable:!0}),t.prototype.clear=function(){var e=this;this.survey.clearFiles(this.name,this.value,null,function(t,r){"success"===t&&(e.value=void 0,e.errors=[])})},t.prototype.removeFile=function(e){var t=this;this.survey.clearFiles(this.name,this.value,e.name,function(r,n){if("success"===r){var i=t.value;Array.isArray(i)?t.value=i.filter(function(t){return t.name!==e.name}):t.value=void 0}})},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){this.stateChanged("loading");var r=[];this.storeDataAsText?e.forEach(function(n){var i=new FileReader;i.onload=function(o){r=r.concat([{name:n.name,type:n.type,content:i.result}]),r.length===e.length&&(t.value=(t.value||[]).concat(r))},i.readAsDataURL(n)}):this.survey.uploadFiles(this.name,e,function(e,r){"error"===e&&t.stateChanged("error"),"success"===e&&(t.value=(t.value||[]).concat(r.map(function(e){return{name:e.file.name,type:e.file.type,content:e.content}})))})}},t.prototype.canPreviewImage=function(e){return!!e&&this.isFileImage(e)},t.prototype.setNewValue=function(t){var r=this;e.prototype.setNewValue.call(this,t),this.previewValue=[];var n=!Array.isArray(t)&&t||Array.isArray(t)&&t.length>0?this.showPreview?"loading":"loaded":"empty";if(this.stateChanged(n),this.showPreview&&t){var i=Array.isArray(t)?t:t?[t]:[];this.storeDataAsText?(i.forEach(function(e){var t=e.content||e;r.previewValue=r.previewValue.concat([{name:e.name,type:e.type,content:t}])}),"loading"===n&&this.stateChanged("loaded")):i.forEach(function(e){e.content;r.survey.downloadFile(r.name,e,function(t,n){"success"===t?(r.previewValue=r.previewValue.concat([{content:n,name:e.name,type:e.type}]),r.previewValue.length===i.length&&r.stateChanged("loaded")):r.stateChanged("error")})})}},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.isUploading&&this.waitForUpload&&t.push(new l.a(u.a.getString("uploadingFile"),this))},t.prototype.stateChanged=function(e){"loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e})},t.prototype.allFilesOk=function(e){var t=this,r=this.errors?this.errors.length:0;return(e||[]).forEach(function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new l.e(t.maxSize))}),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e)return!1;var t="data:image",r=e.content&&e.content.substr(0,t.length);return(r=r&&r.toLowerCase())===t||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t}(i.a);o.b.metaData.addClass("file",[{name:"showPreview:boolean",default:!0},"allowMultiple:boolean","imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},"maxSize:number"],function(){return new c("")},"question"),s.a.Instance.registerQuestion("file",function(e){return new c(e)})},function(e,t,r){"use strict";var n=r(0),i=r(42),o=r(2),s=r(7);r.d(t,"a",function(){return a});var a=function(e){function t(t){var r=e.call(this,t)||this;r.name=t;var n=r.createLocalizableString("html",r),i=r;return n.onGetTextCallback=function(e){return i.survey?i.survey.processHtml(e):e},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 a("")},"nonvalue"),s.a.Instance.registerQuestion("html",function(e){return new a(e)})},function(e,t,r){"use strict";var n=r(0),i=r(2),o=r(7),s=r(17),a=r(11);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.colCount=0,r}return n.b(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect",!1)},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel",!1)},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!0,configurable:!0}),t.prototype.getValueCore=function(){return e.prototype.getValueCore.call(this)||this.multiSelect&&[]||void 0},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight",150)},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth",200)},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit","contain")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode","image")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!0,configurable:!0}),t}(s.a);i.b.metaData.addClass("imageitemvalue",[],null,"itemvalue"),i.b.metaData.addProperty("imageitemvalue",{name:"imageLink"}),i.b.metaData.addClass("imagepicker",[{name:"hasOther",visible:!1},{name:"otherText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",default:150},{name:"imageWidth:number",default:200}],function(){return new l("")},"checkboxbase"),i.b.metaData.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),i.b.metaData.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),i.b.metaData.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),i.b.metaData.addProperty("imagepicker",{name:"choices:imageitemvalue",onGetValue:function(e){return a.a.getData(e.choices)},onSetValue:function(e,t){e.choices=t}}),o.a.Instance.registerQuestion("imagepicker",function(e){return new l(e)})},function(e,t,r){"use strict";var n=r(0),i=r(11),o=r(37),s=r(2),a=r(1),l=r(10),u=r(7),c=r(20),p=r(40);r.d(t,"a",function(){return h}),r.d(t,"b",function(){return d}),r.d(t,"c",function(){return f});var h=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}(),d=function(){function e(e){this.cellsOwner=e,this.values={}}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!0,configurable:!0}),e.prototype.setCellText=function(e,t,r){if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t)if(r)this.values[e]||(this.values[e]={}),this.values[e][t]||(this.values[e][t]=this.createString()),this.values[e][t].text=r;else if(this.values[e]&&this.values[e][t]){var n=this.values[e][t];n.text="",n.isEmpty&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e])}},e.prototype.setDefaultCellText=function(t,r){this.setCellText(e.DefaultRowName,t,r)},e.prototype.getCellLocText=function(e,t){return e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),e&&t&&this.values[e]&&this.values[e][t]?this.values[e][t]:null},e.prototype.getDefaultCellLocText=function(t,r){return this.getCellLocText(e.DefaultRowName,t)},e.prototype.getCellDisplayLocText=function(t,r){var n=this.getCellLocText(t,r);return n&&!n.isEmpty?n:(n=this.getCellLocText(e.DefaultRowName,r))&&!n.isEmpty?n:("number"==typeof r&&(r=r>=0&&r<this.columns.length?this.columns[r]:null),r&&r.locText?r.locText:null)},e.prototype.getCellText=function(e,t){var r=this.getCellLocText(e,t);return r?r.text:null},e.prototype.getDefaultCellText=function(t){var r=this.getCellLocText(e.DefaultRowName,t);return r?r.text:null},e.prototype.getCellDisplayText=function(e,t){var r=this.getCellDisplayLocText(e,t);return r?r.text:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!0,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},e.prototype.getJson=function(){if(this.isEmpty)return null;var e={};for(var t in this.values){var r={},n=this.values[t];for(var i in n)r[i]=n[i].getJson();e[t]=r}return e},e.prototype.setJson=function(e){if(this.values={},e)for(var t in e)if("pos"!=t){var r=e[t];this.values[t]={};for(var n in r)if("pos"!=n){var i=this.createString();i.setJson(r[n]),this.values[t][n]=i}}},e.prototype.createString=function(){return new c.a(this.cellsOwner,!0)},e.DefaultRowName="default",e}(),f=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.isRowChanging=!1,r.emptyLocalizableString=new c.a(r),r.cellsValue=new d(r);var n=r;return r.registerFunctionOnPropertyValueChanged("rows",function(){n.filterItems()||n.onRowsChanged()}),r}return n.b(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrix"},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.rows.length>0},enumerable:!0,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.getVisibleRows=function(){var e=new Array,t=this.value;t||(t={});for(var r=this.filteredRows?this.filteredRows:this.rows,n=0;n<r.length;n++)r[n].value&&e.push(this.createMatrixRow(r[n],this.id+"_"+this.rows[n].value.toString(),t[this.rows[n].value]));return 0!=e.length||this.filteredRows||e.push(this.createMatrixRow(new i.a(null),this.name,t)),this.generatedVisibleRows=e,e},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return!this.cells.isEmpty},enumerable:!0,configurable:!0}),t.prototype.setCellText=function(e,t,r){this.cells.setCellText(e,t,r)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){var r=this.cells.getCellDisplayLocText(e,t);return r||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasErrorInRows()&&t.push(new l.a(a.a.getString("requiredInAllRowsError"),this))},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 h(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}},t.prototype.getDisplayValueCore=function(e){var t=this.value;if(!t)return t;var r={};for(var n in t){var o=e?i.a.getTextOrHtmlByValue(this.rows,n):n;o||(o=n);var s=i.a.getTextOrHtmlByValue(this.columns,t[n]);s||(s=t[n]),r[o]=s}return r},t.prototype.addConditionNames=function(e){for(var t=0;t<this.rows.length;t++)this.rows[t].value&&e.push(this.name+"."+this.rows[t].value)},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);var n=new p.a(r);n.choices=this.columns;var i=(new s.b).toJsonObject(n);return i.type=n.getType(),i},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);s.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}},{name:"cells:cells",serializationProperty:"cells"},"isAllRowRequired:boolean"],function(){return new f("")},"matrixbase"),u.a.Instance.registerQuestion("matrix",function(e){var t=new f(e);return t.rows=u.a.DefaultRows,t.columns=u.a.DefaultColums,t})},function(e,t,r){"use strict";var n=r(0),i=r(26),o=r(2),s=r(11),a=r(7);r.d(t,"a",function(){return l}),r.d(t,"b",function(){return u});var l=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.d),u=function(e){function t(t){var r=e.call(this,t)||this;r.name=t;var n=r;return r.registerFunctionOnPropertyValueChanged("rows",function(){n.generatedVisibleRows=null,n.filterItems()}),r}return n.b(t,e),t.prototype.getType=function(){return"matrixdropdown"},t.prototype.getDisplayValueCore=function(e){var t=this.value;if(!t)return t;for(var r=this.visibleRows,n={},i=0;i<r.length;i++){var o=this.rows[i].value,a=t[o];if(a){if(e){var l=s.a.getTextOrHtmlByValue(this.rows,o);l&&(o=l)}n[o]=this.getRowDisplayValue(r[i],a)}}return t},t.prototype.addConditionNames=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].value)for(var r=this.name+"."+this.rows[t].value+".",n=0;n<this.columns.length;n++)e.push(r+this.columns[n].name)},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var r=null,n=!1,i=this.filteredRows?this.filteredRows:this.rows;for(var o in t)s.a.getItemByValue(i,o)?(null==r&&(r={}),r[o]=t[o]):n=!0;n&&(this.value=r),e.prototype.clearIncorrectValues.call(this)}},t.prototype.generateRows=function(){var e=new Array,t=this.filteredRows?this.filteredRows:this.rows;if(!t||0===t.length)return e;var r=this.value;r||(r={});for(var n=0;n<t.length;n++)t[n].value&&e.push(this.createMatrixRow(t[n],r[t[n].value]));return e},t.prototype.createMatrixRow=function(e,t){return new l(e.value,e,this,t)},t}(i.e);o.b.metaData.addClass("matrixdropdown",[{name:"rows:itemvalues",onGetValue:function(e){return s.a.getData(e.rows)},onSetValue:function(e,t){e.rows=t}},"rowsVisibleIf:condition"],function(){return new u("")},"matrixdropdownbase"),a.a.Instance.registerQuestion("matrixdropdown",function(e){var t=new u(e);return t.choices=[1,2,3,4,5],t.rows=a.a.DefaultColums,i.e.addDefaultColumns(t),t})},function(e,t,r){"use strict";var n=r(0),i=r(26),o=r(2),s=r(7),a=r(1),l=r(10),u=r(6);r.d(t,"a",function(){return c}),r.d(t,"b",function(){return p});var c=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.d),p=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,"isRowsDynamic",{get:function(){return!0},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,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!0,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue))return void e.prototype.setDefaultValue.call(this);if(this.isEmpty()&&0!=this.rowCount){for(var t=[],r=0;r<this.rowCount;r++)t.push(this.defaultRowValue);this.value=t}},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++){var o=this.createMatrixRow(null);this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}}this.fireCallback(this.visibleRowsChangedCallback)}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount",0)},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=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&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRow",{get:function(){return!this.isReadOnly&&this.rowCount>this.minRowCount},enumerable:!0,configurable:!0}),t.prototype.addRow=function(){var e={question:this,canAddRow:this.canAddRow};if(this.survey&&this.survey.matrixBeforeRowAdded(e),e.canAddRow){var t=this.rowCount;this.rowCount=this.rowCount+1;var r=this.getDefaultRowValue(!0);if(!this.isValueEmpty(r)){var n=this.createNewValue(this.value);n.length==this.rowCount&&(n[n.length-1]=r,this.value=n)}this.data&&this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.survey&&t+1==this.rowCount&&(this.survey.matrixRowAdded(this),this.fireCallback(this.visibleRowsChangedCallback))}},t.prototype.getDefaultRowValue=function(e){for(var t=null,r=0;r<this.columns.length;r++){var n=this.columns[r].templateQuestion;n&&!this.isValueEmpty(n.getDefaultValue())&&(t=t||{},t[this.columns[r].name]=n.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var i in this.defaultRowValue)t=t||{},t[i]=this.defaultRowValue[i];if(e&&this.defaultValueFromLastRow){var o=this.value;if(o&&Array.isArray(o)&&o.length>=this.rowCount-1){var s=o[this.rowCount-2];for(var i in s)t=t||{},t[i]=s[i]}}return t},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.visibleRowsChangedCallback)}},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText",a.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",a.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(){var e=this.isColumnLayoutHorizontal?"addRow":"addColumn";return this.getLocalizableStringText("addRowText",a.a.getString(e))},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,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation","default")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddRowOnTop",{get:function(){return!!this.canAddRow&&("default"===this.addRowLocation?"vertical"===this.columnLayout:"bottom"!==this.addRowLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAddRowOnBottom",{get:function(){return!!this.canAddRow&&("default"===this.addRowLocation?"horizontal"===this.columnLayout:"top"!==this.addRowLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText",a.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}),t.prototype.getDisplayValueCore=function(e){var t=this.value;if(!t)return t;for(var r=this.visibleRows,n=0;n<r.length&&n<t.length;n++){var i=t[n];i&&(t[n]=this.getRowDisplayValue(r[n],i))}return t},t.prototype.addConditionNames=function(e){for(var t=0;t<this.columns.length;t++)e.push(this.name+"[0]."+this.columns[t].name)},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.onCheckForErrors=function(t){e.prototype.onCheckForErrors.call(this,t),this.hasErrorInRows()&&t.push(new l.a(a.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.getColumnByName(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 l.a(this.keyDuplicationError,this)),!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 this.isValueEmpty(this.getDefaultRowValue(!1))||(this.value=t),e},t.prototype.createMatrixRow=function(e){return new c(this.rowCounter++,this,e)},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&&Array.isArray(t)||(t=[]);t.length>this.rowCount&&t.splice(this.rowCount-1);var r=this.getDefaultRowValue(!1);r=r||{};for(var n=t.length;n<this.rowCount;n++)t.push(u.a.getUnbindValue(r));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.e);o.b.metaData.addClass("matrixdynamic",[{name:"rowCount:number",default:2},{name:"minRowCount:number",default:0},{name:"maxRowCount:number",default:p.MaxRowCount},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"}],function(){return new p("")},"matrixdropdownbase"),s.a.Instance.registerQuestion("matrixdynamic",function(e){var t=new p(e);return t.choices=[1,2,3,4,5],i.e.addDefaultColumns(t),t})},function(e,t,r){"use strict";var n=r(0),i=r(8),o=r(21),s=r(9),a=r(41),l=r(2),u=r(7),c=r(10),p=r(6);r.d(t,"a",function(){return h}),r.d(t,"b",function(){return d});var h=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.questionTitleTemplateCallback=function(){return""},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 a.a(e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.setSurveyImpl(this),this.editor.parent=e)},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,"maxLength",{get:function(){return this.getPropertyValue("maxLength",-1)},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!0,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return p.a.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},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.isEmpty=function(){return p.a.isValueEmpty(this.value)},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.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},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.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(i.b),d=function(e){function t(t){var r=e.call(this,t)||this;r.name=t,r.isMultipleItemValueChanging=!1;var n=r;return r.items=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.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.callEditorFunction("onSurveyLoad"),this.fireCallback(this.colCountChangedCallback)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.callEditorFunction("onReadOnlyChanged")},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var r=0;r<this.items.length;r++){var n=this.items[r];n.editor&&n.editor.onSurveyValueChanged(n.value)}},t.prototype.callEditorFunction=function(e){for(var t=0;t<this.items.length;t++){var r=this.items[t];r.editor&&r.editor[e]&&r.editor[e]()}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},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.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.addConditionNames=function(e){for(var t=0;t<this.items.length;t++)e.push(this.name+"."+this.items[t].name)},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this);var n=this.getItemByName(r);if(!n)return null;var i=(new l.b).toJsonObject(n);return i.type="text",i},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())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 h(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(!this.items[r].isEmpty()&&null!=(t=(new o.h).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&&p.a.isValueEmpty(n.value)&&t.push(new c.c)}},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.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.elementWidthChanged=function(e){},t}(s.a);l.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:"maxLength:number",default:-1},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new h("")}),l.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 d("")},"question"),u.a.Instance.registerQuestion("multipletext",function(e){var t=new d(e);return t.addItem("text1"),t.addItem("text2"),t})},function(e,t,r){"use strict";var n=r(0),i=r(8),o=r(1),s=r(18),a=r(15),l=r(9),u=r(25),c=r(2),p=r(7),h=r(10);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 s.a,this.textPreProcessor.onProcess=function(e){r.getProcessedTextValue(e)},this.setSurveyImpl(),this.panel.updateCustomWidgets()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!0,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.runCondition=function(e,t){this.panel.runCondition(e,t)},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.b.commentPrefix);return t||""},e.prototype.setComment=function(e,t){this.setValue(e+i.b.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 t?this.panel.setVisibleIndex(e):(this.panel.setVisibleIndex(-1),0)},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var e=this.getAllValues(),t={panel:e};for(var r in e)t[r]=e[r];return t},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},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){if(t.name==e.IndexVariableName)return t.isExists=!0,void(t.value=this.data.getItemIndex(this)+1);var r=(new a.a).getFirstName(t.name);if(t.isExists=r==e.ItemVariableName,t.canProcess=t.isExists,t.canProcess){t.name=t.name.replace(e.ItemVariableName+".","");var r=(new a.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 a.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,t){e=this.processText(e,t);var r=this.textPreProcessor.hasAllValuesOnLastRun,n={hasAllValuesOnLastRun:!0,text:e};return this.getSurvey()&&(n=this.getSurvey().processTextEx(e,t)),n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&r,n},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.template.addElementCallback=function(e){n.addOnPropertyChangedCallback(e),n.rebuildPanels()},r.template.removeElementCallback=function(e){n.rebuildPanels()},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.registerFunctionOnPropertyValueChanged("panelsState",function(){n.setPanelsState()}),r}return n.b(t,e),t.prototype.setSurveyImpl=function(t){e.prototype.setSurveyImpl.call(this,t),this.template.setSurveyImpl(this.surveyImpl)},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.onPropertyChanged.add(function(e,r){t.onTemplateElementPropertyChanged(e,r)}),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.isDesignMode&&this.items&&0!=this.items.length&&"visibleIndex"!==t.name&&"isVisible"!==t.name)for(var r=this.panels,n=0;n<r.length;n++){var i=r[n].getQuestionByName(e.name);i&&i[t.name]!==t.newValue&&(i[t.name]=t.newValue)}},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++){var r=this.createNewItem();this.items.push(r),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?r.panel.expand():r.panel.collapse())}e<this.panelCount&&this.items.splice(e,this.panelCount-e),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState","default")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!0,configurable:!0}),t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.items.length;e++)this.items[e].setSurveyImpl()},t.prototype.setPanelsState=function(){if(!this.isDesignMode&&"list"==this.renderMode)for(var e=0;e<this.items.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.items[e].panel.state=t}},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&&(this.setPropertyValue("minPanelCount",e),e>this.maxPanelCount&&(this.maxPanelCount=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&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=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){if(!this.isVisible)return 0;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(){if(!this.isLoadingFromJson){var e=new Array;if(this.isDesignMode)e.push(new d(this,this.template));else for(var t=0;t<this.panelCount;t++)e.push(this.createNewItem());this.setPanelsState(),this.itemsValue=e,this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!0,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultPanelValue)||!this.isValueEmpty(this.defaultValue))return void e.prototype.setDefaultValue.call(this);if(this.isEmpty()&&0!=this.panelCount){for(var t=[],r=0;r<this.panelCount;r++)t.push(this.defaultPanelValue);this.value=t}},t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel)return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.items[this.panelCount-1].panel},t.prototype.copyValue=function(e,t){for(var r in t)e[r]=t[r]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!confirm(this.confirmDeleteText)||this.removePanel(e))},t.prototype.removePanel=function(e){var r=this.getPanelIndex(e);if(!(r<0||r>=this.panelCount)){this.items.splice(r,1);var e=this.value;!e||!Array.isArray(e)||r>=e.length||(e.splice(r,1),t.isPanelRemoving=!0,this.value=e,t.isPanelRemoving=!1,this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,r))}},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.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,r=0;r<t.length;r++)t[r].locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panels.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var r=this.value,n=e<r.length?r[e]:null;if(n){var i=!1;for(var o in n)t.getQuestionByName(o)||(delete n[o],i=!0);i&&(r[e]=n,this.value=r)}},t.prototype.addConditionNames=function(e){for(var t=this.name+"[0].",r=[],n=this.template.questions,i=0;i<n.length;i++)n[i].addConditionNames(r);for(var i=0;i<r.length;i++)e.push(t+r[i])},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this,t,r);var n=r,i=r.indexOf(".");i>-1&&(n=r.substr(0,i),r=r.substr(i+1));var o=this.template.getQuestionByName(n);return o?o.getConditionJson(t,r):null},t.prototype.onSurveyLoad=function(){this.template.onSurveyLoad(),this.loadingPanelCount>0&&(this.panelCount=this.loadingPanelCount),this.isDesignMode&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),e.prototype.onSurveyLoad.call(this)},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runPanelsCondition(t,r)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var r={};e&&e instanceof Object&&(r=JSON.parse(JSON.stringify(e)));for(var n=0;n<this.items.length;n++)r[d.ItemVariableName]=this.getPanelItemData(this.items[n]),r[d.IndexVariableName]=n,this.items[n].runCondition(r,t)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].onReadOnlyChanged()},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(){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();e.prototype.clearValueIfInvisible.call(this)},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.a(this.keyDuplicationError,this)),!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 u.c},t.prototype.onValueChanged=function(){if(!this.isValueChangingInternally){var e=this.value,r=e&&Array.isArray(e)?e.length:0;!t.isPanelRemoving&&r<=this.panelCount||(this.panelCount=r)}},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.rebuildPanels())},t.prototype.getItemIndex=function(e){return this.items.indexOf(e)},t.prototype.getPanelItemData=function(e){var t=this.items.indexOf(e),r=this.value;return t<0&&Array.isArray(r)&&r.length>this.items.length&&(t=this.items.length),t<0?{}:!r||!Array.isArray(r)||r.length<=t?{}:r[t]},t.prototype.setPanelItemData=function(e,t,r){var n=this.items.indexOf(e);n<0&&(n=this.items.length);var i=this.value;if(i&&Array.isArray(i)||(i=[]),i.length<=n)for(var o=i.length;o<=n;o++)i.push({});if(i[n]||(i[n]={}),this.isValueEmpty(r)?delete i[n][t]:i[n][t]=r,this.isValueChangingInternally=!0,this.value=i,this.isValueChangingInternally=!1,this.survey){var s={question:this,panel:e.panel,name:t,itemIndex:n,itemValue:i[n],value:r};this.survey.dynamicPanelItemValueChanged(this,s)}},t.prototype.getSurvey=function(){return this.survey},t.MaxPanelCount=100,t.isPanelRemoving=!1,t}(l.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},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"]},{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(2),o=r(7),s=r(17),a=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}return n.b(t,e),t.prototype.getType=function(){return"radiogroup"},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton",!1)},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return a.a.getString("clearCaption")},enumerable:!0,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},t}(s.a);i.b.metaData.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1}],function(){return new l("")},"checkboxbase"),o.a.Instance.registerQuestion("radiogroup",function(e){var t=new l(e);return t.choices=o.a.DefaultChoices,t})},function(e,t,r){"use strict";var n=r(0),i=r(11),o=r(9),s=r(2),a=r(7);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.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}),t.prototype.getDisplayValueCore=function(e){if(this.isEmpty())return"";var t=i.a.getTextOrHtmlByValue(this.visibleRateValues,this.value);return t||this.value},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);s.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 l("")},"question"),a.a.Instance.registerQuestion("rating",function(e){return new l(e)})},function(e,t,r){"use strict";var n=r(0),i=r(3),o=(r.n(i),r(4));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),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()},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)}},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(6),o=r(8),s=r(2),a=r(12),l=r(15);r.d(t,"e",function(){return u}),r.d(t,"a",function(){return c}),r.d(t,"d",function(){return p}),r.d(t,"b",function(){return h}),r.d(t,"c",function(){return d});var u=function(e){function t(){var t=e.call(this)||this;t.usedNames=[];var r=t;return t.registerFunctionOnPropertiesValueChanged(["operator","value","name"],function(){r.oldPropertiesChanged()}),t.registerFunctionOnPropertyValueChanged("expression",function(){r.onExpressionChanged()}),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.getPropertyValue("operator","equal")},set:function(e){e&&(e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!0,configurable:!0}),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,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!0,configurable:!0}),t.prototype.checkExpression=function(e,t,r){void 0===r&&(r=null),this.isCheckRequired(e)&&this.conditionRunner&&this.perform(t,r)},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},t.prototype.perform=function(e,t){this.conditionRunner.run(e,t)?this.onSuccess(e,t):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?i.a.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+new a.d(this.value).toString():""},t.prototype.isCheckRequired=function(e){if(!e)return!1;this.buildUsedNames();for(var t=0;t<this.usedNames.length;t++)if(e.hasOwnProperty(this.usedNames[t]))return!0;return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;if(e||(e=this.buildExpression()),e){this.conditionRunner=new a.a(e),this.usedNames=this.conditionRunner.getVariables();for(var t=new l.a,r=0;r<this.usedNames.length;r++)this.usedNames[r]=t.getFirstName(this.usedNames[r])}}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!0,configurable:!0}),t.operatorsValue=null,t}(o.b),c=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}(u),p=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(e,t){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}(c),h=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(e,t){this.owner&&this.owner.doComplete()},t}(c),d=function(e){function t(){return e.call(this)||this}return n.b(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(c),f=function(e){function t(){return e.call(this)||this}return n.b(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},t.prototype.onSuccess=function(e,t){if(this.owner&&this.runExpression){var r=void 0,n=new a.h(this.runExpression);n.canRun&&(r=n.run(e,t)),this.setToName&&void 0===r||this.owner.setTriggerValue(this.setToName,r,!1)}},t}(c),g=function(e){function t(){return e.call(this)||this}return n.b(t,e),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName)},t}(c);s.b.metaData.addClass("trigger",[{name:"operator",default:"equal"},"value","expression:condition"]),s.b.metaData.addClass("surveytrigger",["name"],null,"trigger"),s.b.metaData.addClass("visibletrigger",["pages","questions"],function(){return new p},"surveytrigger"),s.b.metaData.addClass("completetrigger",[],function(){return new h},"surveytrigger"),s.b.metaData.addClass("setvaluetrigger",["!setToName","setValue","isVariable:boolean"],function(){return new d},"surveytrigger"),s.b.metaData.addClass("copyvaluetrigger",["!setToName","!fromName"],function(){return new g},"surveytrigger"),s.b.metaData.addClass("runExpressiontrigger",["setToName","runExpression"],function(){return new f},"surveytrigger")},function(e,t,r){"use strict";function n(e,t){var r,n,i=/(\.0+)+$/,o=e.replace(i,"").split("."),s=t.replace(i,"").split("."),a=Math.min(o.length,s.length);for(r=0;r<a;r++)if(n=parseInt(o[r],10)-parseInt(s[r],10))return n;return o.length-s.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.]+)/,s=/(msie) (\d{1,2}\.\d)/,a=/(trident).*rv:(\d{1,2}\.\d)/,l=/(edge)\/((\d+)?[\w\.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))/,c=function(e){e=e.toLowerCase();var t={},r=s.exec(e)||a.exec(e)||l.exec(e)||e.indexOf("compatible")<0&&u.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(49);r.d(t,"Version",function(){return n.a}),r.d(t,"Helpers",function(){return n.b}),r.d(t,"AnswerCountValidator",function(){return n.c}),r.d(t,"EmailValidator",function(){return n.d}),r.d(t,"NumericValidator",function(){return n.e}),r.d(t,"RegexValidator",function(){return n.f}),r.d(t,"SurveyValidator",function(){return n.g}),r.d(t,"TextValidator",function(){return n.h}),r.d(t,"ValidatorResult",function(){return n.i}),r.d(t,"ValidatorRunner",function(){return n.j}),r.d(t,"ItemValue",function(){return n.k}),r.d(t,"Base",function(){return n.l}),r.d(t,"Event",function(){return n.m}),r.d(t,"SurveyError",function(){return n.n}),r.d(t,"SurveyElement",function(){return n.o}),r.d(t,"CustomError",function(){return n.p}),r.d(t,"AnswerRequiredError",function(){return n.q}),r.d(t,"OneAnswerRequiredError",function(){return n.r}),r.d(t,"RequreNumericError",function(){return n.s}),r.d(t,"ExceedSizeError",function(){return n.t}),r.d(t,"LocalizableString",function(){return n.u}),r.d(t,"ChoicesRestfull",function(){return n.v}),r.d(t,"FunctionFactory",function(){return n.w}),r.d(t,"Condition",function(){return n.x}),r.d(t,"ConditionNode",function(){return n.y}),r.d(t,"ConditionRunner",function(){return n.z}),r.d(t,"ExpressionRunner",function(){return n.A}),r.d(t,"ConditionsParser",function(){return n.B}),r.d(t,"ProcessValue",function(){return n.C}),r.d(t,"JsonError",function(){return n.D}),r.d(t,"JsonIncorrectTypeError",function(){return n.E}),r.d(t,"JsonMetadata",function(){return n.F}),r.d(t,"JsonMetadataClass",function(){return n.G}),r.d(t,"JsonMissingTypeError",function(){return n.H}),r.d(t,"JsonMissingTypeErrorBase",function(){return n.I}),r.d(t,"JsonObject",function(){return n.J}),r.d(t,"JsonObjectProperty",function(){return n.K}),r.d(t,"JsonRequiredPropertyError",function(){return n.L}),r.d(t,"JsonUnknownPropertyError",function(){return n.M}),r.d(t,"MatrixDropdownCell",function(){return n.N}),r.d(t,"MatrixDropdownColumn",function(){return n.O}),r.d(t,"matrixDropdownColumnTypes",function(){return n.P}),r.d(t,"MatrixDropdownRowModelBase",function(){return n.Q}),r.d(t,"QuestionMatrixDropdownModelBase",function(){return n.R}),r.d(t,"MatrixDropdownRowModel",function(){return n.S}),r.d(t,"QuestionMatrixDropdownModel",function(){return n.T}),r.d(t,"MatrixDynamicRowModel",function(){return n.U}),r.d(t,"QuestionMatrixDynamicModel",function(){return n.V}),r.d(t,"MatrixRowModel",function(){return n.W}),r.d(t,"MartrixCells",function(){return n.X}),r.d(t,"QuestionMatrixModel",function(){return n.Y}),r.d(t,"MultipleTextItemModel",function(){return n.Z}),r.d(t,"QuestionMultipleTextModel",function(){return n._0}),r.d(t,"PanelModel",function(){return n._1}),r.d(t,"PanelModelBase",function(){return n._2}),r.d(t,"QuestionRowModel",function(){return n._3}),r.d(t,"PageModel",function(){return n._4}),r.d(t,"Question",function(){return n._5}),r.d(t,"QuestionNonValue",function(){return n._6}),r.d(t,"QuestionEmptyModel",function(){return n._7}),r.d(t,"QuestionCheckboxBase",function(){return n._8}),r.d(t,"QuestionSelectBase",function(){return n._9}),r.d(t,"QuestionCheckboxModel",function(){return n._10}),r.d(t,"QuestionCommentModel",function(){return n._11}),r.d(t,"QuestionDropdownModel",function(){return n._12}),r.d(t,"QuestionFactory",function(){return n._13}),r.d(t,"ElementFactory",function(){return n._14}),r.d(t,"QuestionFileModel",function(){return n._15}),r.d(t,"QuestionHtmlModel",function(){return n._16}),r.d(t,"QuestionRadiogroupModel",function(){return n._17}),r.d(t,"QuestionRatingModel",function(){return n._18}),r.d(t,"QuestionExpressionModel",function(){return n._19}),r.d(t,"QuestionTextModel",function(){return n._20}),r.d(t,"QuestionBooleanModel",function(){return n._21}),r.d(t,"QuestionImagePickerModel",function(){return n._22}),r.d(t,"QuestionPanelDynamicModel",function(){return n._23}),r.d(t,"QuestionPanelDynamicItem",function(){return n._24}),r.d(t,"SurveyTimer",function(){return n._25}),r.d(t,"SurveyModel",function(){return n._26}),r.d(t,"SurveyTrigger",function(){return n._27}),r.d(t,"SurveyTriggerComplete",function(){return n._28}),r.d(t,"SurveyTriggerSetValue",function(){return n._29}),r.d(t,"SurveyTriggerVisible",function(){return n._30}),r.d(t,"Trigger",function(){return n._31}),r.d(t,"SurveyWindowModel",function(){return n._32}),r.d(t,"TextPreProcessor",function(){return n._33}),r.d(t,"dxSurveyService",function(){return n._34}),r.d(t,"englishStrings",function(){return n._35}),r.d(t,"surveyLocalization",function(){return n._36}),r.d(t,"surveyStrings",function(){return n._37}),r.d(t,"QuestionCustomWidget",function(){return n._38}),r.d(t,"CustomWidgetCollection",function(){return n._39}),r.d(t,"StylesManager",function(){return n._40});var i=(r(48),r(0));r.d(t,"__assign",function(){return i.a}),r.d(t,"__extends",function(){return i.b}),r.d(t,"__decorate",function(){return i.c});var o=r(13);r.d(t,"defaultStandardCss",function(){return o.a});var s=r(46);r.d(t,"defaultBootstrapCss",function(){return s.a});var a=r(47);r.d(t,"defaultBootstrapMaterialCss",function(){return a.a});var l=r(28);r.d(t,"Survey",function(){return l.a});var u=r(16);r.d(t,"ReactSurveyModel",function(){return u.a}),r.d(t,"ReactWindowModel",function(){return u.b}),r.d(t,"Model",function(){return u.a}),r.d(t,"WindowModel",function(){return u.b});var c=r(22);r.d(t,"SurveyNavigationBase",function(){return c.a});var p=r(31);r.d(t,"SurveyTimerPanel",function(){return p.a});var h=r(29);r.d(t,"SurveyNavigation",function(){return h.a});var d=r(23);r.d(t,"SurveyPage",function(){return d.a}),r.d(t,"SurveyRow",function(){return d.b}),r.d(t,"SurveyPanel",function(){return d.c});var f=r(19);r.d(t,"SurveyQuestion",function(){return f.a}),r.d(t,"SurveyElementErrors",function(){return f.b}),r.d(t,"SurveyQuestionAndErrorsCell",function(){return f.c});var g=r(4);r.d(t,"SurveyElementBase",function(){return g.a}),r.d(t,"SurveyQuestionElementBase",function(){return g.b});var m=r(14);r.d(t,"SurveyQuestionCommentItem",function(){return m.a}),r.d(t,"SurveyQuestionComment",function(){return m.b});var y=r(53);r.d(t,"SurveyQuestionCheckbox",function(){return y.a}),r.d(t,"SurveyQuestionCheckboxItem",function(){return y.b});var v=r(54);r.d(t,"SurveyQuestionDropdown",function(){return v.a});var b=r(59);r.d(t,"SurveyQuestionMatrix",function(){return b.a}),r.d(t,"SurveyQuestionMatrixRow",function(){return b.b});var C=r(58);r.d(t,"SurveyQuestionHtml",function(){return C.a});var P=r(57);r.d(t,"SurveyQuestionFile",function(){return P.a});var x=r(62);r.d(t,"SurveyQuestionMultipleText",function(){return x.a});var V=r(64);r.d(t,"SurveyQuestionRadiogroup",function(){return V.a});var w=r(66);r.d(t,"SurveyQuestionText",function(){return w.a});var T=r(52);r.d(t,"SurveyQuestionBoolean",function(){return T.a});var S=r(55);r.d(t,"SurveyQuestionEmpty",function(){return S.a});var O=r(24);r.d(t,"SurveyQuestionMatrixDropdownCell",function(){return O.a});var q=r(60);r.d(t,"SurveyQuestionMatrixDropdown",function(){return q.a}),r.d(t,"SurveyQuestionMatrixDropdownRow",function(){return q.b});var E=r(61);r.d(t,"SurveyQuestionMatrixDynamic",function(){return E.a}),r.d(t,"SurveyQuestionMatrixDynamicRow",function(){return E.b});var R=r(63);r.d(t,"SurveyQuestionPanelDynamic",function(){return R.a});var _=r(30);r.d(t,"SurveyProgress",function(){return _.a});var L=r(65);r.d(t,"SurveyQuestionRating",function(){return L.a});var k=r(56);r.d(t,"SurveyQuestionExpression",function(){return k.a});var I=r(51);r.d(t,"SurveyWindow",function(){return I.a});var D=r(5);r.d(t,"ReactQuestionFactory",function(){return D.a});var N=r(50);r.d(t,"SurveyQuestionImagePicker",function(){return N.a})}])});