PageSourceSearch

https://clinic.joinfound.com/_next/static/chunks/47a68864.00808c4ec4c3e56e.js

js joinfound.com collected 2026-09-28 08:13:32 UTC 1,563,322 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="36292caf-8b50-45b4-9264-0e6c9260eb80",e._sentryDebugIdIdentifier="sentry-dbid-36292caf-8b50-45b4-9264-0e6c9260eb80")}catch(e){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4219],{92338:function(e,t,r){e.exports=function(e,t){var r={
vendor: 1,675 bytes, line 1
1"./node_modules/process/browser.js":function(e,t){var r,n,o,i=e.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}try{r="function"==typeof setTimeout?setTimeout:s}catch(e){r=s}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===s||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}var u=[],c=!1,p=-1;function d(){c&&o&&(c=!1,o.length?u=o.concat(u):p=-1,u.length&&h())}function h(){if(!c){var e=l(d);c=!0;for(var t=u.length;t;){for(o=u,u=[];++p<t;)o&&o[p].run();p=-1,t=u.length}o=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new m(e,t)),1!==u.length||c||l(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.prependListener=f,i.prependOnceListener=f,i.listeners=function(e){return[]},i.binding=function(e){throw Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw Error("process.chdir is not supported")},i.umask=function(){return 0}},
vendor: 1,759 bytes, line 1
1"./node_modules/setimmediate/setImmediate.js":function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,o,i,s,a,l=1,u={},c=!1,p=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"===({}).toString.call(e.process)?a=function(e){t.nextTick(function(){m(e)})}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(n="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(n)&&m(+t.data.slice(n.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),a=function(t){e.postMessage(n+t,"*")}):e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){m(e.data)},a=function(e){i.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(s=p.documentElement,a=function(e){var t=p.createElement("script");t.onreadystatechange=function(){m(e),t.onreadystatechange=null,s.removeChild(t),t=null},s.appendChild(t)}):a=function(e){setTimeout(m,0,e)},d.setImmediate=function(e){"function"!=typeof e&&(e=Function(""+e));for(var t=Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var n={callback:e,args:t};return u[l]=n,a(l),l++},d.clearImmediate=h}function h(e){delete u[e]}function m(e){if(c)setTimeout(m,0,e);else{var t=u[e];if(t){c=!0;try{var n=t.callback,o=t.args;switch(o.length){case 0:n();break;case 1:n(o[0]);break;case 2:n(o[0],o[1]);break;case 3:n(o[0],o[1],o[2]);break;default:n.apply(r,o)}}finally{h(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r("./node_modules/webpack/buildin/global.js"),r("./node_modules/process/browser.js"))},
vendor: 9,226 bytes, line 1
1"./node_modules/signature_pad/dist/signature_pad.mjs":function(e,t,r){"use strict";function n(e,t,r){this.x=e,this.y=t,this.time=r||new Date().getTime()}function o(e,t,r,n){this.startPoint=e,this.control1=t,this.control2=r,this.endPoint=n}function i(e,t){var r,n,o,s,a,l,u,c,p,d=this,h=t||{};(this.velocityFilterWeight=h.velocityFilterWeight||.7,this.minWidth=h.minWidth||.5,this.maxWidth=h.maxWidth||2.5,this.throttle="throttle"in h?h.throttle:16,this.minDistance="minDistance"in h?h.minDistance:5,this.throttle)?this._strokeMoveUpdate=(r=i.prototype._strokeUpdate,n=this.throttle,u=null,c=0,o||(o={}),p=function(){c=!1===o.leading?0:Date.now(),u=null,l=r.apply(s,a),u||(s=a=null)},function(){var e=Date.now();c||!1!==o.leading||(c=e);var t=n-(e-c);return s=this,a=arguments,t<=0||t>n?(u&&(clearTimeout(u),u=null),c=e,l=r.apply(s,a),u||(s=a=null)):u||!1===o.trailing||(u=setTimeout(p,t)),l}):this._strokeMoveUpdate=i.prototype._strokeUpdate,this.dotSize=h.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=h.penColor||"black",this.backgroundColor=h.backgroundColor||"rgba(0,0,0,0)",this.onBegin=h.onBegin,this.onEnd=h.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(d._mouseButtonDown=!0,d._strokeBegin(e))},this._handleMouseMove=function(e){d._mouseButtonDown&&d._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&d._mouseButtonDown&&(d._mouseButtonDown=!1,d._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];d._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];d._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===d._canvas&&(e.preventDefault(),d._strokeEnd(e))},this.on()}r.r(t),n.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},n.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},n.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},o.prototype.length=function(){for(var e=0,t=void 0,r=void 0,n=0;n<=10;n+=1){var o=n/10,i=this._point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this._point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(n>0){var a=i-t,l=s-r;e+=Math.sqrt(a*a+l*l)}t=i,r=s}return e},o.prototype._point=function(e,t,r,n,o){return t*(1-e)*(1-e)*(1-e)+3*r*(1-e)*(1-e)*e+3*n*(1-e)*e*e+o*e*e*e},i.prototype.clear=function(){var e=this._ctx,t=this._canvas;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(),this._isEmpty=!0},i.prototype.fromDataURL=function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new Image,o=r.ratio||window.devicePixelRatio||1,i=r.width||this._canvas.width/o,s=r.height||this._canvas.height/o;this._reset(),n.src=e,n.onload=function(){t._ctx.drawImage(n,0,0,i,s)},this._isEmpty=!1},i.prototype.toDataURL=function(e){var t;if("image/svg+xml"===e)return this._toSVG();for(var r=arguments.length,n=Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];return(t=this._canvas).toDataURL.apply(t,[e].concat(n))},i.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},i.prototype.off=function(){this._canvas.removeEventListener("mousedown",this._handleMouseDown),this._canvas.removeEventListener("mousemove",this._handleMouseMove),document.removeEventListener("mouseup",this._handleMouseUp),this._canvas.removeEventListener("touchstart",this._handleTouchStart),this._canvas.removeEventListener("touchmove",this._handleTouchMove),this._canvas.removeEventListener("touchend",this._handleTouchEnd)},i.prototype.isEmpty=function(){return this._isEmpty},i.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},i.prototype._strokeUpdate=function(e){var t=e.clientX,r=e.clientY,n=this._createPoint(t,r),o=this._data[this._data.length-1],i=o&&o[o.length-1],s=i&&n.distanceTo(i)<this.minDistance;if(!(i&&s)){var a=this._addPoint(n),l=a.curve,u=a.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:n.x,y:n.y,time:n.time,color:this.penColor})}},i.prototype._strokeEnd=function(e){var t=this.points.length>2,r=this.points[0];if(!t&&r&&this._drawDot(r),r){var n=this._data[this._data.length-1],o=n[n.length-1];r.equals(o)||n.push({x:r.x,y:r.y,time:r.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},i.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},i.prototype._handleTouchEvents=function(){this._canvas.style.msTouchAction="none",this._canvas.style.touchAction="none",this._canvas.addEventListener("touchstart",this._handleTouchStart),this._canvas.addEventListener("touchmove",this._handleTouchMove),this._canvas.addEventListener("touchend",this._handleTouchEnd)},i.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},i.prototype._createPoint=function(e,t,r){var o=this._canvas.getBoundingClientRect();return new n(e-o.left,t-o.top,r||new Date().getTime())},i.prototype._addPoint=function(e){var t=this.points;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var r=this._calculateCurveControlPoints(t[0],t[1],t[2]).c2,n=this._calculateCurveControlPoints(t[1],t[2],t[3]).c1,i=new o(t[1],r,n,t[2]),s=this._calculateCurveWidths(i);return t.shift(),{curve:i,widths:s}}return{}},i.prototype._calculateCurveControlPoints=function(e,t,r){var o=e.x-t.x,i=e.y-t.y,s=t.x-r.x,a=t.y-r.y,l={x:(e.x+t.x)/2,y:(e.y+t.y)/2},u={x:(t.x+r.x)/2,y:(t.y+r.y)/2},c=Math.sqrt(o*o+i*i),p=Math.sqrt(s*s+a*a),d=l.x-u.x,h=l.y-u.y,m=p/(c+p),f={x:u.x+d*m,y:u.y+h*m},g=t.x-f.x,y=t.y-f.y;return{c1:new n(l.x+g,l.y+y),c2:new n(u.x+g,u.y+y)}},i.prototype._calculateCurveWidths=function(e){var t=e.startPoint,r=e.endPoint,n={start:null,end:null},o=this.velocityFilterWeight*r.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(o);return n.start=this._lastWidth,n.end=i,this._lastVelocity=o,this._lastWidth=i,n},i.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},i.prototype._drawPoint=function(e,t,r){var n=this._ctx;n.moveTo(e,t),n.arc(e,t,r,0,2*Math.PI,!1),this._isEmpty=!1},i.prototype._drawCurve=function(e,t,r){var n=this._ctx,o=r-t,i=Math.floor(e.length());n.beginPath();for(var s=0;s<i;s+=1){var a=s/i,l=a*a,u=l*a,c=1-a,p=c*c,d=p*c,h=d*e.startPoint.x;h+=3*p*a*e.control1.x+3*c*l*e.control2.x+u*e.endPoint.x;var m=d*e.startPoint.y;m+=3*p*a*e.control1.y+3*c*l*e.control2.y+u*e.endPoint.y;var f=t+u*o;this._drawPoint(h,m,f)}n.closePath(),n.fill()},i.prototype._drawDot=function(e){var t=this._ctx,r="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,r),t.closePath(),t.fill()},i.prototype._fromData=function(e,t,r){for(var o=0;o<e.length;o+=1){var i=e[o];if(i.length>1)for(var s=0;s<i.length;s+=1){var a=i[s],l=new n(a.x,a.y,a.time),u=a.color;if(0===s)this.penColor=u,this._reset(),this._addPoint(l);else if(s!==i.length-1){var c=this._addPoint(l),p=c.curve,d=c.widths;p&&d&&t(p,d,u)}}else this._reset(),r(i[0])}},i.prototype._toSVG=function(){var e=this,t=this._data,r=this._canvas,n=Math.max(window.devicePixelRatio||1,1),o=r.width/n,i=r.height/n,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttributeNS(null,"width",r.width),s.setAttributeNS(null,"height",r.height),this._fromData(t,function(e,t,r){var n=document.createElement("path");if(!isNaN(e.control1.x)&&!isNaN(e.control1.y)&&!isNaN(e.control2.x)&&!isNaN(e.control2.y)){var o="M "+e.startPoint.x.toFixed(3)+","+e.startPoint.y.toFixed(3)+" "+("C "+e.control1.x.toFixed(3)+",")+e.control1.y.toFixed(3)+" "+(e.control2.x.toFixed(3)+",")+e.control2.y.toFixed(3)+" "+e.endPoint.x.toFixed(3)+","+e.endPoint.y.toFixed(3);n.setAttribute("d",o),n.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),n.setAttribute("stroke",r),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),s.appendChild(n)}},function(t){var r=document.createElement("circle"),n="function"==typeof e.dotSize?e.dotSize():e.dotSize;r.setAttribute("r",n),r.setAttribute("cx",t.x),r.setAttribute("cy",t.y),r.setAttribute("fill",t.color),s.appendChild(r)});var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"'+(' viewBox="0 0 '+o+" ")+i+'" width="'+o+'" height="'+i+'">',l=s.innerHTML;if(void 0===l){var u=document.createElement("dummy"),c=s.childNodes;u.innerHTML="";for(var p=0;p<c.length;p+=1)u.appendChild(c[p].cloneNode(!0));l=u.innerHTML}return"data:image/svg+xml;base64,"+btoa(a+l+"</svg>")},i.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,function(e,r){return t._drawCurve(e,r.start,r.end)},function(e){return t._drawDot(e)}),this._data=e},i.prototype.toData=function(){return this._data},t.default=i},
vendor: 1,191 bytes, line 1
1"./node_modules/timers-browserify/main.js":function(e,t,r){(function(e){var n=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r("./node_modules/setimmediate/setImmediate.js"),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r("./node_modules/webpack/buildin/global.js"))},
vendor: 184 bytes, line 1
1"./node_modules/webpack/buildin/global.js":function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},
1"./src/actions/action.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"createDropdownActionModel",function(){return h}),r.d(t,"createDropdownActionModelAdvanced",function(){return m}),r.d(t,"Action",function(){return f}),r.d(t,"ActionDropdownViewModel",function(){return g});var n,o=r("./src/base.ts"),i=r("./src/surveyStrings.ts"),s=r("./src/jsonobject.ts"),a=r("./src/list.ts"),l=r("./src/popup.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/actions/container.ts"),p=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};function h(e,t,r){return m(e,t,t,r)}function m(e,t,r,n){var o=new a.ListModel(t.items,function(e){t.onSelectionChanged(e),i.toggleVisibility()},t.allowSelection,t.selectedItem,t.onFilterStringChangedCallback);o.locOwner=n;var i=new l.PopupModel("sv-list",{model:o},null==r?void 0:r.verticalPosition,null==r?void 0:r.horizontalPosition,null==r?void 0:r.showPointer,null==r?void 0:r.isModal,null==r?void 0:r.onCancel,null==r?void 0:r.onApply,null==r?void 0:r.onHide,null==r?void 0:r.onShow,null==r?void 0:r.cssClass,null==r?void 0:r.title);i.displayMode=null==r?void 0:r.displayMode;var s=new f(Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(){e.action&&e.action(),i.toggleVisibility()}}));return s.data=o,s}var f=function(e){function t(t){var r=e.call(this)||this;if(r.innerItem=t,r.iconSize=24,r.locTitleChanged=function(){var e=r.locTitle.renderedHtml;r.setPropertyValue("title",e||void 0)},r.locTitle=t?t.locTitle:null,t)for(var n in t)r[n]=t[n];return r.locTitleName&&r.locTitleChanged(),r.locStrChangedInPopupModel(),r}return p(t,e),t.prototype.raiseUpdate=function(){this.updateCallback&&this.updateCallback()},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.locTitleValue},set:function(e){e||this.locTitleValue||(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach(function(e){e.locStrsChanged&&e.locStrsChanged()})}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=i.surveyLocalization.getString(this.locTooltipName,this.locTitle.locale))},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||c.defaultActionBarCss},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!!this.iconName},enumerable:!1,configurable:!0}),t.prototype.getActionRootCss=function(){return new u.CssClassBuilder().append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getActionBarItemTitleCss=function(){return new u.CssClassBuilder().append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return new u.CssClassBuilder().append(this.cssClasses.item).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},d([Object(s.property)()],t.prototype,"id",void 0),d([Object(s.property)()],t.prototype,"iconName",void 0),d([Object(s.property)()],t.prototype,"iconSize",void 0),d([Object(s.property)({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"visible",void 0),d([Object(s.property)()],t.prototype,"tooltip",void 0),d([Object(s.property)({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),d([Object(s.property)()],t.prototype,"enabled",void 0),d([Object(s.property)()],t.prototype,"showTitle",void 0),d([Object(s.property)()],t.prototype,"action",void 0),d([Object(s.property)()],t.prototype,"css",void 0),d([Object(s.property)()],t.prototype,"innerCss",void 0),d([Object(s.property)()],t.prototype,"data",void 0),d([Object(s.property)()],t.prototype,"popupModel",void 0),d([Object(s.property)()],t.prototype,"needSeparator",void 0),d([Object(s.property)()],t.prototype,"active",void 0),d([Object(s.property)()],t.prototype,"pressed",void 0),d([Object(s.property)()],t.prototype,"template",void 0),d([Object(s.property)()],t.prototype,"component",void 0),d([Object(s.property)()],t.prototype,"items",void 0),d([Object(s.property)()],t.prototype,"visibleIndex",void 0),d([Object(s.property)({defaultValue:"large"})],t.prototype,"mode",void 0),d([Object(s.property)()],t.prototype,"disableTabStop",void 0),d([Object(s.property)()],t.prototype,"disableShrink",void 0),d([Object(s.property)()],t.prototype,"disableHide",void 0),d([Object(s.property)({defaultValue:!1})],t.prototype,"needSpace",void 0),d([Object(s.property)()],t.prototype,"ariaChecked",void 0),d([Object(s.property)({defaultValue:"button"})],t.prototype,"ariaRole",void 0),d([Object(s.property)({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"title",void 0),t}(o.Base),g=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1},this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}()},
1"./src/actions/adaptive-container.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"AdaptiveActionContainer",function(){return u});var n,o=r("./src/utils/responsivity-manager.ts"),i=r("./src/actions/action.ts"),s=r("./src/actions/container.ts"),a=r("./src/surveyStrings.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){var r=e.call(this)||this;return r.minVisibleItemsCount=0,r.isResponsivenessDisabled=!1,r.dotsItem=Object(i.createDropdownActionModelAdvanced)({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:a.surveyLocalization.getString("more")},{items:[],onSelectionChanged:function(e){r.hiddenItemSelected(e)},allowSelection:!1}),r}return l(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.visibleActions.filter(function(e){return!e.disableHide});e=Math.max(e,this.minVisibleItemsCount)-(this.visibleActions.length-t.length);var r=[];t.forEach(function(t){e<=0&&(t.mode="popup",r.push(t.innerItem)),e--}),this.hiddenItemsListModel.setItems(r)},t.prototype.getVisibleItemsCount=function(e){for(var t=this.visibleActions.map(function(e){return e.minDimension}),r=0,n=0;n<t.length&&!((r+=t[n])>e);n++);return n},t.prototype.updateItemMode=function(e,t){for(var r=this.visibleActions,n=r.length-1;n>=0;n--)t>e&&!r[n].disableShrink?(t-=r[n].maxDimension-r[n].minDimension,r[n].mode="small"):r[n].mode="large"},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.hiddenItemSelected=function(e){e&&"function"==typeof e.action&&e.action()},t.prototype.onSet=function(){var t=this;this.actions.forEach(function(e){return e.updateCallback=function(){return t.raiseUpdate(!1)}}),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var r=this;t.updateCallback=function(){return r.raiseUpdate(!1)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){this.isResponsivenessDisabled||e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var r=0,n=0;this.visibleActions.forEach(function(e){r+=e.minDimension,n+=e.maxDimension}),e>=n?this.setActionsMode("large"):e<r?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!0):this.updateItemMode(e,n)}},t.prototype.initResponsivityManager=function(e){this.responsivityManager=new o.ResponsivityManager(e,this,".sv-action:not(.sv-dots)>.sv-action__content")},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach(function(t){return t.mode=e})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetResponsivityManager()},t.ContainerID=1,t}(s.ActionContainer)},
1"./src/actions/container.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"defaultActionBarCss",function(){return p}),r.d(t,"ActionContainer",function(){return d});var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/actions/action.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/utils/utils.ts"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return u(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach(function(e){return e.locStrsChanged()})},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some(function(e){return e.visible}),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach(function(t){e.setActionCssClasses(t)}),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter(function(e){return!1!==e.visible})},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return new a.CssClassBuilder().append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return p},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),Object(l.mergeValues)(e,this.cssClasses),this.actions.forEach(function(e){t.setActionCssClasses(e)})},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof s.Action?e:new s.Action(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var r=this.createAction(e);return this.actions.push(r),this.sortItems(),r},t.prototype.sortItems=function(){this.actions=[].concat(this.actions.filter(function(e){return void 0===e.visibleIndex||e.visibleIndex>=0})).sort(function(e,t){return e.visibleIndex-t.visibleIndex})},t.prototype.setItems=function(e,t){var r=this;void 0===t&&(t=!0),this.actions=e.map(function(e){return r.createAction(e)}),t&&this.sortItems()},t.prototype.initResponsivityManager=function(e){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},c([Object(o.propertyArray)({onSet:function(e,t){t.onSet()},onPush:function(e,t,r){r.onPush(e)},onRemove:function(e,t,r){r.onRemove(e)}})],t.prototype,"actions",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isEmpty",void 0),t}(i.Base)},
1"./src/base.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Bindings",function(){return d}),r.d(t,"Dependencies",function(){return h}),r.d(t,"ComputedUpdater",function(){return m}),r.d(t,"Base",function(){return f}),r.d(t,"ArrayChanges",function(){return g}),r.d(t,"Event",function(){return y}),r.d(t,"EventBase",function(){return v});var n,o=r("./src/localizablestring.ts"),i=r("./src/helpers.ts"),s=r("./src/jsonobject.ts"),a=r("./src/settings.ts"),l=r("./src/conditions.ts"),u=r("./src/surveyStrings.ts"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},d=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){this.values||(this.values={});var r=this.getJson();r!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(r))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var r in this.values)this.values[r]==e&&t.push(r);return t},e.prototype.getJson=function(){if(!this.isEmpty()){var e={};for(var t in this.values)e[t]=this.values[t];return e}},e.prototype.setJson=function(e){var t=this.getJson();if(this.values=null,e)for(var r in this.values={},e)this.values[r]=e[r];this.onChangedJSON(t)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=s.Serializer.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),h=function(){function e(t,r,n){this.currentDependency=t,this.target=r,this.property=n,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){(this.target!==e||this.property!==t)&&(this.dependencies.some(function(r){return r.obj===e&&r.prop===t})||(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id)))},e.prototype.dispose=function(){this.dependencies.forEach(function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)})}
1,e.DependenciesCount=0,e}(),m=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies()},e.ComputedUpdaterType="__dependency_computed",e}(),f=function(){function e(){this.propertyHash={},this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.bindingsValue=new d(this),s.CustomPropertiesCollection.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,r,n){if(void 0!==e.currentDependencis)throw Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new h(t,r,n)},e.collectDependency=function(t,r){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,r)},Object.defineProperty(e,"commentPrefix",{get:function(){return a.settings.commentPrefix},set:function(e){a.settings.commentPrefix=e},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),i.Helpers.isValueEmpty(e)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.isPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.prototype.dispose=function(){for(var e=0;e<this.eventList.length;e++)this.eventList[e].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new v;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return s.Serializer.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var r=this.bindings.getValueNameByPropertyName(e);r&&this.updateBindingValue(r,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()},Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!!this.loadingOwner&&!!this.loadingOwner.isLoadingFromJson||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(){return new s.JsonObject().toJsonObject(this)},e.prototype.fromJSON=function(e){new s.JsonObject().toObject(e,this),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=s.Serializer.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){return s.Serializer.findProperty(this.getType(),e)},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){var r=this.arraysInfo[t];if(r&&r.isItemValues){var n=this.getPropertyValue(t);n&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(n)}}if(this.localizableStrings)for(var t in this.localizableStrings){var r=this.getLocalizableString(t);r&&r.strChanged()}},e.prototype.getPropertyValue=function(e,t){void 0===t&&(t=null);var r=this.getPropertyValueCore(this.propertyHash,e);if(this.isPropertyEmpty(r)){if(null!=t)return t;var n=s.Serializer.findProperty(this.getType(),e);
1if(n&&(!n.isCustom||!this.isCreating)){if(!this.isPropertyEmpty(n.defaultValue)&&!Array.isArray(n.defaultValue))return n.defaultValue;if("boolean"==n.type||"switch"==n.type)return!1;if(n.isCustom&&n.onGetValue)return n.onGetValue(this)}}return r},e.prototype.getPropertyValueCore=function(t,r){return(e.collectDependency(this,r),this.getPropertyValueCoreHandler)?this.getPropertyValueCoreHandler(t,r):t[r]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,r){this.setPropertyValueCoreHandler?this.isDisposedValue?console.warn("Attempt to set property '"+t+"' of a disposed object '"+this.getType()+"'"):this.setPropertyValueCoreHandler(e,t,r):e[t]=r},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,r=[];for(var n in this.propertyHash)"value"===n&&this.isEditingSurveyElement&&Array.isArray(this.value)||r.push(n);r.forEach(function(r){return e(t.propertyHash,r)})},e.prototype.setPropertyValue=function(e,t){if(!this.isLoadingFromJson){var r=this.getPropertyByName(e);r&&(t=r.settingValue(this,t))}var n=this.getPropertyValue(e);if(n&&Array.isArray(n)&&this.arraysInfo&&(!t||Array.isArray(t))){if(this.isTwoValueEquals(n,t))return;this.setArrayPropertyDirectly(e,t)}else this.setPropertyValueDirectly(e,t),this.isDisposedValue||this.isTwoValueEquals(n,t)||this.propertyValueChanged(e,n,t)},e.prototype.setArrayPropertyDirectly=function(e,t,r){void 0===r&&(r=!0);var n=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!n&&n.isItemValues,n?r&&n.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,r,n,o){},e.prototype.itemValuePropertyChanged=function(e,t,r,n){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:r,newValue:n,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,r){},e.prototype.propertyValueChanged=function(e,t,r,n,o){if(!this.isLoadingFromJson&&(this.updateBindings(e,r),this.onPropertyValueChanged(e,t,r),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:r}),this.doPropertyValueChangedCallback(e,t,r,n,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions))for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(r)},e.prototype.onBindingChanged=function(e,t){this.isLoadingFromJson||this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1},enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,r,n,o){if(!this.isInternal){o||(o=this);var i=this.getSurvey();i||(i=this),i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,r,o,n),i!==this&&this.onPropertyValueChangedCallback&&this.onPropertyValueChangedCallback(e,t,r,o,n)}},e.prototype.addExpressionProperty=function(e,t,r){this.expressionInfo||(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:r}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var r in this.expressionInfo)this.runConditionItemCore(r,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){this.expressionInfo&&this.expressionInfo[e]&&this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,r){var n=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);i&&(!o.canRun||o.canRun(this))&&(o.runner||(o.runner=new l.ExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(n,e)}),o.runner.expression=i,o.runner.run(t,r))}
1,e.prototype.registerPropertyChangedHandlers=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.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var r=0;r<e.length;r++)this.unRegisterFunctionOnPropertyValueChanged(e[r],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,r){if(void 0===r&&(r=null),this.onPropChangeFunctions||(this.onPropChangeFunctions=[]),r)for(var n=0;n<this.onPropChangeFunctions.length;n++){var o=this.onPropChangeFunctions[n];if(o.name==e&&o.key==r){o.func=t;return}}this.onPropChangeFunctions.push({name:e,func:t,key:r})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,r){void 0===r&&(r=null),this.registerPropertyChangedHandlers(e,t,r)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)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),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){this.getLocalizableString(e)||this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return u.surveyLocalization.getString(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.getLocalizationString(e);return n&&n.format?n.format.apply(n,t):""},e.prototype.createLocalizableString=function(e,t,r,n){var i=this;void 0===r&&(r=!1),void 0===n&&(n=!1);var s=new o.LocalizableString(t,r,e);return n&&(s.localizationName=!0===n?e:n),s.onStrChanged=function(t,r){i.propertyValueChanged(e,t,r)},this.localizableStrings||(this.localizableStrings={}),this.localizableStrings[e]=s,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,r){void 0===r&&(r=""),e.collectDependency(this,t);var n=this.getLocalizableString(t);return n?n.text||r:""},e.prototype.setLocalizableStringText=function(e,t){var r=this.getLocalizableString(e);r&&r.text!=t&&(r.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings){var r=this.getLocalizableString(t);r&&this.AddLocStringToUsedLocales(r,e)}if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.getPropertyValue(t);if(n&&n.length)for(var o=0;o<n.length;o++){var r=n[o];r&&r.addUsedLocales&&r.addUsedLocales(e)}}},e.prototype.searchText=function(e,t){var r=[];this.getSearchableLocalizedStrings(r);for(var n=0;n<r.length;n++)r[n].setFindText(e)&&t.push({element:this,str:r[n]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var r=0;r<t.length;r++){var n=this.getLocalizableString(t[r]);n&&e.push(n)}}if(this.arraysInfo){var o=[];this.getSearchableItemValueKeys(o);for(var r=0;r<o.length;r++){var i=this.getPropertyValue(o[r]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var r=e.getLocales(),n=0;n<r.length;n++)0>t.indexOf(r[n])&&t.push(r[n])},e.prototype.createItemValues=function(e){var t=this,r=this.createNewArray(e,function(r){if(r.locOwner=t,r.ownerPropertyName=e,"function"==typeof r.getSurvey){var n=r.getSurvey();n&&"function"==typeof n.makeReactive&&n.makeReactive(r)}});return this.arraysInfo[e].isItemValues=!0,r},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),t||(t=[],this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,r)},e.prototype.createNewArray=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=this.createNewArrayCore(e);this.arraysInfo||(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return n.push=function(r){var i=Object.getPrototypeOf(n).push.call(n,r);if(!o.isDisposedValue){t&&t(r,n.length-1);var s=new g(n.length-1,0,[r],[]);o.propertyValueChanged(e,n,n,s),o.notifyArrayChanged(n,s)}return i},n.shift=function(){var t=Object.getPrototypeOf(n).shift.call(n);if(!o.isDisposedValue&&t){r&&r(t);var i=new g(n.length-1,1,[],[]);o.propertyValueChanged(e,n,n,i),o.notifyArrayChanged(n,i)}return t},n.unshift=function(r){var i=Object.getPrototypeOf(n).unshift.call(n,r);if(!o.isDisposedValue){t&&t(r,n.length-1);var s=new g(0,0,[r],[]);o.propertyValueChanged(e,n,n,s),o.notifyArrayChanged(n,s)}return i},n.pop=function(){var t=Object.getPrototypeOf(n).pop.call(n);if(!o.isDisposedValue){r&&r(t);var i=new g(n.length-1,1,[],[]);o.propertyValueChanged(e,n,n,i),o.notifyArrayChanged(n,i)}return t},n.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];i||(i=0),s||(s=0);var c=(a=Object.getPrototypeOf(n).splice).call.apply(a,p([n,i,s],l,!1));if(l||(l=[]),!o.isDisposedValue){if(r&&c)for(var d=0;d<c.length;d++)r(c[d]);if(t)for(var d=0;d<l.length;d++)t(l[d],i+d);var h=new g(i,s,l,c);o.propertyValueChanged(e,n,n,h),o.notifyArrayChanged(n,h)}return c},n}
1,e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,r,n,o,i){var s=[].concat(r);if(Object.getPrototypeOf(r).splice.call(r,0,r.length),n)for(var a=0;a<n.length;a++){var l=n[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(r).push.call(r,l),i&&i(r[a])}var u=new g(0,s.length,r,s);this.propertyValueChanged(t,s,r,u),this.notifyArrayChanged(r,u)},e.prototype.isTwoValueEquals=function(e,t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),i.Helpers.isTwoValueEquals(e,t,!1,!r,n)},e.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}},e.prototype.copyCssClasses=function(t,r){r&&("string"==typeof r||r instanceof String?t.root=r:e.copyObject(t,r))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},e.currentDependencis=void 0,e}(),g=function(e,t,r,n){this.index=e,this.deleteCount=t,this.itemsToAdd=r,this.deletedItems=n},y=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks){for(var r=0;r<this.callbacks.length;r++)if(this.callbacks[r](e,t()),!this.callbacks)return}},e.prototype.fire=function(e,t){if(this.callbacks){for(var r=0;r<this.callbacks.length;r++)if(this.callbacks[r](e,t),!this.callbacks)return}},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){this.hasFunc(e)||(this.callbacks||(this.callbacks=[]),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t}(y)},
1"./src/calculatedValue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"CalculatedValue",function(){return u});var n,o=r("./src/helpers.ts"),i=r("./src/base.ts"),s=r("./src/conditions.ts"),a=r("./src/jsonobject.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.expressionIsRunning=!1,n.isCalculated=!1,t&&(n.name=t),r&&(n.expression=r),n}return l(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult",!1)},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,r){this.isCalculated||(this.runExpressionCore(e,t,r),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!!this.data&&!this.isLoadingFromJson&&!!this.expression&&!this.expressionIsRunning&&!!this.name},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,r){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,r),this.expressionRunner.run(t,r))},t.prototype.runDependentExpressions=function(e,t,r){var n=this.expressionRunner.getVariables();if(n)for(var o=0;o<e.length;o++){var i=e[o];i===this||0>n.indexOf(i.name)||(i.doCalculation(e,t,r),t[i.name]=i.value)}},t.prototype.ensureExpression=function(e){var t=this;this.expressionRunner||(this.expressionRunner=new s.ExpressionRunner(this.expression),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,t.value)||t.setValue(e),t.unlocCalculation()})},t}(i.Base);a.Serializer.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],function(){return new u},"base")},
1"./src/choicesRestful.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ChoicesRestful",function(){return p}),r.d(t,"ChoicesRestfull",function(){return d});var n,o=r("./src/base.ts"),i=r("./src/itemvalue.ts"),s=r("./src/jsonobject.ts"),a=r("./src/error.ts"),l=r("./src/settings.ts"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=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],o={};this.xml2Json(n,o),this.assignValue(t,n.nodeName,o)}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}(),p=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t.createItemValue=function(e){return new i.ItemValue(e)},t}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return l.settings.webserviceEncodeParameters},set:function(e){l.settings.webserviceEncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var r=e.objHash,n=t.sendingSameRequests[r];return n?(n.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,r){if(e.isUsingCache){var n=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],n)for(var o=0;o<n.length;o++)n[o].isRunningValue=!1,n[o].getResultCallback&&n[o].getResultCallback(r)}},t.getCachedItemsResult=function(e){var r=e.objHash,n=t.itemsResult[r];return!!n&&(e.getResultCallback&&e.getResultCallback(n),!0)},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner?this.owner.survey:null},t.prototype.run=function(e){if(void 0===e&&(e=null),!this.url||!this.getResultCallback)return;if(this.processedText(e),!this.processedUrl){this.doEmptyResultCallback({}),this.lastObjHash=this.objHash;return}if(this.lastObjHash!==this.objHash)this.lastObjHash=this.objHash,this.error=null,!this.useChangedItemsResults()&&(t.addSameRequest(this)||this.sendRequest())},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&l.settings.useCachingForChoicesRestful},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,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){var r=this.url;if(r&&(r=r.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var n=e.processTextEx(r,!1,l.settings.webserviceEncodeParameters),o=e.processTextEx(this.path,!1,l.settings.webserviceEncodeParameters);n.hasAllValuesOnLastRun&&o.hasAllValuesOnLastRun?(this.processedUrl=n.text,this.processedPath=o.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=r,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;
1if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=new c().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(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var r=this,n=this.objHash;e.onload=function(){r.beforeLoadRequest(),200===e.status?r.onLoad(r.parseResponse(e.response),n):r.onError(e.statusText,e.responseText)};var o={request:e};t.onBeforeSendRequest&&t.onBeforeSendRequest(this,o),this.beforeSendRequest(),o.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.url&&!this.path&&!this.valueName&&!this.titleName&&!this.imageLinkName},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=[],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.Serializer.getProperties(this.itemValueType),t=[],r=0;r<e.length;r++)"value"!==e[r].name&&"text"!==e[r].name&&"visibleIf"!==e[r].name&&"enableIf"!==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),e.imageLinkName&&(this.imageLinkName=e.imageLinkName),void 0!==e.allowEmptyResponse&&(this.allowEmptyResponse=e.allowEmptyResponse),void 0!==e.attachOriginalItems&&(this.attachOriginalItems=e.attachOriginalItems);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),this.imageLinkName&&(e.imageLinkName=this.imageLinkName),this.allowEmptyResponse&&(e.allowEmptyResponse=this.allowEmptyResponse),this.attachOriginalItems&&(e.attachOriginalItems=this.attachOriginalItems);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),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path","")},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=s.Serializer.findProperty(this.owner.getType(),"choices");return e&&"itemvalue[]"!=e.type?e.type:"itemvalue"}
1,enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.url="",this.path="",this.valueName="",this.titleName="",this.imageLinkName="";for(var e=this.getCustomPropertiesNames(),t=0;t<e.length;t++)this[e[t]]&&(this[e[t]]="")},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,r){void 0===r&&(r=null),r||(r=this.objHash);var n=[],o=this.getResultAfterPath(e);if(o&&o.length)for(var i=0;i<o.length;i++){var s=o[i];if(s){var l=this.getItemValueCallback?this.getItemValueCallback(s):this.getValue(s),u=this.createItemValue(l);this.setTitle(u,s),this.setCustomProperties(u,s),this.attachOriginalItems&&(u.originalItem=s);var c=this.getImageLink(s);c&&(u.imageLink=c),n.push(u)}}else this.allowEmptyResponse||(this.error=new a.WebRequestEmptyError(null,this.owner));this.updateResultCallback&&(n=this.updateResultCallback(n,e)),this.isUsingCache&&(t.itemsResult[r]=n),this.callResultCallback(n,r),t.unregisterSameRequests(this,n)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var r=this.getCustomProperties(),n=0;n<r.length;n++){var o=r[n],i=this.getValueCore(t,this.getPropertyBinding(o.name));this.isValueEmpty(i)||(e[o.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,r){this.error=new a.WebRequestError(e,r,this.owner),this.doEmptyResultCallback(r),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e||!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 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.split(",")).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.setTitle=function(e,t){var r=this.titleName?this.titleName:"title",n=this.getValueCore(t,r);n&&("string"==typeof n?e.text=n:e.locText.setJson(n))},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(0>t.indexOf("."))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+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(o.Base),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return p.EncodeParameters},set:function(e){p.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){p.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return p.onBeforeSendRequest},set:function(e){p.onBeforeSendRequest=e},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],function(){return new p})},
1"./src/conditionProcessValue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ProcessValue",function(){return i});var n=r("./src/helpers.ts"),o="@survey",i=function(){function e(){this.values=null,this.properties=null}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var r="";if(t&&(r=this.getFirstPropertyName(e,t)))return r;for(var n=0;n<e.length;n++){var o=e[n];if("."==o||"["==o)break;r+=o}return r},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.setValue=function(e,t,r){if(t){var n=this.getNonNestedObject(e,t,!0);n&&(e=n.value,t=n.text,e&&t&&(e[t]=r))}},e.prototype.getValueInfo=function(e){if(e.path){e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!n.Helpers.isValueEmpty(e.value),!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0);return}var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===o)return this.getValueFromSurvey(e[1]);for(var r=0;t&&r<e.length;){var i=e[r];if(n.Helpers.isNumber(i)&&Array.isArray(t)&&i>=t.length)return null;t=t[i],r++}return t},e.prototype.getValueCore=function(e,t){var r=this.getQuestionDirectly(e);if(r)return{hasValue:!0,value:r.value,path:[e]};var n=this.getValueFromValues(e,t);if(e&&!n.hasValue){var i=this.getValueFromSurvey(e);void 0!==i&&(n.hasValue=!0,n.value=i,n.path=[o,e])}return n},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var r={hasValue:!1,value:null,path:null};if(!t&&0!==t&&!1!==t)return r;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(r.value=0,r.hasValue=!0);var o=this.getNonNestedObject(t,e,!1);return o&&(r.path=o.path,r.value=o.text?this.getObjectValue(o.value,o.text):o.value,r.hasValue=!n.Helpers.isValueEmpty(r.value)),r},e.prototype.getNonNestedObject=function(e,t,r){for(var o=this.getFirstPropertyName(t,e,r),i=o?[o]:null;t!=o&&e;){if("["==t[0]){var s=this.getObjInArray(e,t);if(!s)return null;e=s.value,t=s.text,i.push(s.index)}else{if(!o&&t==this.getFirstName(t))return{value:e,text:t,path:i};if(e=this.getObjectValue(e,o),n.Helpers.isValueEmpty(e)&&!r)return null;t=t.substring(o.length)}t&&"."==t[0]&&(t=t.substring(1)),(o=this.getFirstPropertyName(t,e,r))&&i.push(o)}return{value:e,text:t,path:i}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var r=1,n="";r<t.length&&"]"!=t[r];)n+=t[r],r++;return(t=r<t.length?t.substring(r+1):"",(r=this.getIntValue(n))<0||r>=e.length)?null:{value:e[r],text:t,index:r}},e.prototype.getFirstPropertyName=function(e,t,r){if(void 0===r&&(r=!1),!e||(t||(t={}),t.hasOwnProperty(e)))return e;var n=e.toLowerCase(),o=n[0],i=o.toUpperCase();for(var s in t){var a=s[0];if(a===i||a===o){var l=s.toLowerCase();if(l==n)return s;if(n.length<=l.length)continue;var u=n[l.length];if("."!=u&&"["!=u)continue;if(l==n.substring(0,l.length))return s}}if(r&&"["!==e[0]){var c=e.indexOf(".");return c>-1&&(t[e=e.substring(0,c)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}()},
1"./src/conditions.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ExpressionExecutor",function(){return a}),r.d(t,"ExpressionRunnerBase",function(){return l}),r.d(t,"ConditionRunner",function(){return u}),r.d(t,"ExpressionRunner",function(){return c});var n,o=r("./src/conditionProcessValue.ts"),i=r("./src/conditionsParser.ts"),s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(){function e(e){this.processValue=new o.ProcessValue,this.parser=new i.ConditionsParser,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t){var r=this;if(void 0===t&&(t=null),!this.operand)return null;if(this.processValue.values=e,this.processValue.properties=t,!this.isAsync)return this.runValues();this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var n=0;n<this.asyncFuncList.length;n++)this.asyncFuncList[n].onAsyncReady=function(){r.doAsyncFunctionReady()};for(var n=0;n<this.asyncFuncList.length;n++)this.asyncFuncList[n].evaluateAsync(this.processValue);return!1},e.prototype.doAsyncFunctionReady=function(){for(var e=0;e<this.asyncFuncList.length;e++)if(!this.asyncFuncList[e].isReady)return;this.runValues()},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e),e},e.createExpressionExecutor=function(t){return new e(t)},e}(),l=function(){function e(e){this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;this.expressionExecutor&&e===this.expression||(this.expressionExecutor=a.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e){t.doOnComplete(e)})},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return this.expressionExecutor.getVariables()},e.prototype.hasFunction=function(){return this.expressionExecutor.hasFunction()},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(e,t){return void 0===t&&(t=null),this.expressionExecutor.run(e,t)},e.prototype.doOnComplete=function(e){},e}(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),!0==this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(!0==e)},t}(l),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(e){this.onRunComplete&&this.onRunComplete(e)},t}(l)},
1"./src/conditionsParser.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ConditionsParserError",function(){return o}),r.d(t,"ConditionsParser",function(){return i});var n=r("./src/expressions/expressionParser.ts"),o=function(e,t){this.at=e,this.code=t},i=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var r=e.parserCache[t];return void 0===r&&((r=Object(n.parse)(this.patchExpression(t))).hasAsyncFunction()||(e.parserCache[t]=r)),r}catch(e){e instanceof n.SyntaxError&&(this.conditionError=new o(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}()},
1"./src/defaultCss/cssbootstrap.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"defaultBootstrapCss",function(){return o});var n=r("./src/defaultCss/cssstandard.ts"),o={root:"sv_main sv_bootstrap_css",container:"sv_container",header:"panel-heading card-header",body:"panel-body card-block mt-4",bodyEmpty:"panel-body card-block mt-4 sv_body_empty",footer:"panel-footer card-footer",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"btn sv_nav_btn",completedPage:"",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"sv-hidden",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"",title:"",description:"small"},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",title:"",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"small",descriptionUnderInput:"small",requiredText:"sv_q_required_text",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20,formGroup:"form-group",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"small sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qbln form-inline checkbox",rootRadio:"sv_qbln form-inline checkbox",item:"sv-boolean",control:"sv-visuallyhidden",controlCheckbox:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",materialDecorator:"sv-item__decorator sv-boolean__decorator",itemDecorator:"sv-item__svg sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},checkbox:{root:"sv_qcbc sv_qcbx form-inline",item:"checkbox",itemChecked:"checked",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemInline:"sv_q_checkbox_inline",itemControl:"",itemDecorator:"sv-hidden",label:"",labelChecked:"",controlLabel:"",materialDecorator:"checkbox-material",other:"sv_q_checkbox_other form-control",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:"form-control",dropdown:{root:"sv_q_dd_root",selectWrapper:"sv_q_dd_select_wrapper",control:"form-control sv_q_dd_control",controlValue:"sv_q_dd_value",other:"sv_q_dd_other form-control",cleanButton:"sv_q_dd_clean-button",cleanButtonSvg:"sv_q_dd_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv_q_dd_filter-string-input"},tagbox:{root:"sv_q_dd_root",selectWrapper:"sv_q_dd_select_wrapper",control:"form-control sv_q_dd_control",controlValue:"sv_q_dd_value",other:"sv_q_dd_other form-control",cleanButton:"sv_q_dd_clean-button",cleanButtonSvg:"sv_q_dd_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv_q_dd_filter-string-input"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"table sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected bg-primary",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv-hidden"},matrixdropdown:{root:"table",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"table",button:"button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"",navigation:"sv-paneldynamic__navigation",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",title:"sv-title sv-question__title",button:"button",buttonAdd:"button sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_bt
1n",buttonRemoveRight:"button sv-paneldynamic__remove-btn--right",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt table",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",itemLabel:"sv_q_mt_label",row:"form-group bmd-form-group",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"sv_qcbc form-inline",item:"radio",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",label:"",labelChecked:"",itemControl:"",itemDecorator:"sv-hidden",controlLabel:"",materialDecorator:"circle",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",itemInline:"sv_q_imagepicker_inline",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",disabled:""},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",fileDecorator:"sv-hidden",fileSign:"sv_q_file_sign",removeButtonBottom:"sv-hidden",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},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.surveyCss.bootstrap=o},
1"./src/defaultCss/cssbootstrapmaterial.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"defaultBootstrapMaterialCss",function(){return o});var n=r("./src/defaultCss/cssstandard.ts"),o={root:"sv_main sv_bootstrapmaterial_css",container:"sv_container",header:"card-heading",body:"card-body",bodyEmpty:"card-body sv_body_empty",footer:"card-footer",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"btn-primary sv_nav_btn",completedPage:"",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"sv-hidden",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"",title:"",description:"small"},pageTitle:"",pageDescription:"small",row:"sv_row",question:{mainRoot:"sv_qstn form-group bmd-form-group",flowRoot:"sv_q_flow form-group bmd-form-group",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"small",descriptionUnderInput:"small",comment:"form-control",required:"",titleRequired:"",hasError:"has-error",indent:20,formGroup:"form-group bmd-form-group",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"small sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"alert alert-danger",icon:"glyphicon glyphicon-exclamation-sign",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qbln checkbox",rootRadio:"sv_qbln form-inline checkbox",item:"sv-boolean",control:"sv-visuallyhidden",controlCheckbox:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",materialDecorator:"sv-item__decorator sv-boolean__decorator",itemDecorator:"sv-item__svg sv-boolean__svg",checkedPath:"sv-boolean__checked-path",uncheckedPath:"sv-boolean__unchecked-path",indeterminatePath:"sv-boolean__indeterminate-path"},checkbox:{root:"sv_qcbx",item:"checkbox",itemChecked:"checked",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemInline:"sv_q_checkbox_inline",itemDecorator:"sv-hidden",itemControl:"",label:"",labelChecked:"",controlLabel:"",materialDecorator:"checkbox-decorator",other:"sv_q_checkbox_other form-control",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:"form-control",dropdown:{root:"sv_q_dd_root",selectWrapper:"sv_q_dd_select_wrapper",control:"form-control sv_q_dd_control",controlValue:"sv_q_dd_value",other:"sv_q_dd_other form-control",cleanButton:"sv_q_dd_clean-button",cleanButtonSvg:"sv_q_dd_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv_q_dd_filter-string-input"},tagbox:{root:"sv_q_dd_root",selectWrapper:"sv_q_dd_select_wrapper",control:"form-control sv_q_dd_control",controlValue:"sv_q_dd_value",other:"sv_q_dd_other form-control",cleanButton:"sv_q_dd_clean-button",cleanButtonSvg:"sv_q_dd_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv_q_dd_filter-string-input"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"table sv_q_matrix",row:"form-group bmd-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",itemChecked:"checked",itemDecorator:"sv-hidden",materialDecorator:"bmd-radio",cellResponsiveTitle:"sv-hidden"},matrixdropdown:{root:"table",itemValue:"form-group bmd-form-group",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{mainRoot:"sv_qstn",flowRoot:"sv_q_flow",root:"table",button:"btn btn-primary",itemValue:"form-group bmd-form-group",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"",navigation:"sv-paneldynamic__navigation",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",title:"sv-title sv-question__title",button:"button",buttonAdd:"button sv-paneldynamic__add-btn btn btn-primary",buttonRemove:"button sv-paneldynamic__remove-btn btn btn-primary",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",progressBtnIcon:"icon-progressbutton",footer
1:""},multipletext:{root:"sv_q_mt table",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",itemLabel:"sv_q_mt_label",row:"form-group bmd-form-group",itemValue:"sv_q_mt_item_value form-control"},radiogroup:{root:"",item:"radio",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"",labelChecked:"",itemControl:"",controlLabel:"sv_q_radiogroup_control_label",materialDecorator:"bmd-radio",other:"sv_q_radiogroup_other form-control",clearButton:"sv_q_radiogroup_clear button btn btn-primary",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",itemInline:"sv_q_imagepicker_inline",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",disabled:""},text:"form-control",expression:"form-control",file:{root:"form-group bmd-form-group is-fileinput sv_q_file",placeholderInput:"",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv_q_file_input",fileSign:"sv_q_file_sign",removeFile:"sv_q_file_remove",fileDecorator:"sv-hidden",removeButtonBottom:"sv-hidden",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},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 card-title",title:"pull-left",button:"glyphicon pull-right",buttonExpanded:"glyphicon pull-right glyphicon-chevron-up",buttonCollapsed:"glyphicon pull-right glyphicon-chevron-down"}}};n.surveyCss.bootstrapmaterial=o},
1"./src/defaultCss/cssmodern.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"modernCss",function(){return o});var n=r("./src/defaultCss/cssstandard.ts"),o={root:"sv-root-modern",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"}
1,checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg  sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component"},tagbox:{root:"",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-hidden",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component"},comment:{root:"sv-comment",small:"sv-row__question--small"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",preview:"sv-file__preview",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{themeMark:"--sv-modern-mark"}};n.surveyCss.modern=o},
1"./src/defaultCss/cssstandard.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"surveyCss",function(){return n}),r.d(t,"defaultStandardCss",function(){return o});var n={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:o;return e||(e=o),e}},o={root:"sv_main sv_default_css",container:"sv_container",header:"sv_header",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag"},comment:"",dropdown:{root:"",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv-hidden"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_bt
1n",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},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-visuallyhidden",preview:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},variables:{themeMark:"--sv-default-mark"},tagbox:{root:"",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input"}};n.standard=o},
1"./src/defaultCss/defaultV2Css.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"defaultV2Css",function(){return o});var n=r("./src/defaultCss/cssstandard.ts"),o={root:"sd-root-modern",rootMobile:"sd-root-modern--mobile",rootReadOnly:"sd-root--readonly",container:"sd-container-modern",header:"sd-title sd-container-modern__title",body:"sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:""},panel:{title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",navigationButton:""},paneldynamic:{mainRoot:"sd-element  sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder"},progress:"sd-progress sd-body__progress",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",pageRow:"sd-page__row",question:{mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-question__content",contentLeft:"sd-question__content--left",titleLeftRoot:"sd-question--left",titleOnAnswer:"sd-question__title--answer",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-description sd-question__description",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",formGroup:"sd-question__form-group",hasError:"sd-question--error",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex",disabled:"sd-question--disabled"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:""},error:{root:"sd-question__erbox",icon:"",item:"",tooltip:"sd-question__erbox--tooltip",outsideQuestion:"sd-question__erbox--outside-question",aboveQuestion:"sd-question__erbox--above-question",belowQuestion:"sd-question__erbox--below-question",locationTop:"sd-question__erbox--location--top",locationBottom:"sd-question__erbox--location--bottom"},checkbox:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-v2check",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",label:"sd-boolean__label",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-checkbox--disabled",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-v2check"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",itemLabel:"sd-multipletext__item-container sd-input",itemLabelOnError:"sd-multipletext__item-container--error",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",row:"sd-multipletext__row",cell:"sd-multipletext__cell"},dropdown:{root:"sd-selectbase",small:"sd-row__question--small",selectWrapper:"",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",f
1ilterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"#icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-v2check_24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix",root:"sd-table sd-matrix__table",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",actionsCell:"sd-table__cell sd-table__cell--actions",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",cell:"sd-table__cell",row:"sd-table__row",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",actionsCell:"sd-table__cell sd-table__cell--actions",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-v2dragelement_16x16",footer
1:"sd-matrixdynamic__footer",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-table__question-wrapper"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-scrollable-container sd-rating sd-rating--wrappable",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",control:"sd-input sd-dropdown",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",preview:"sd-file__preview",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-context-btn sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",removeButton:"sd-context-btn sd-context-btn--negative sd-file__btn sd-file__clean-btn",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-delete",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear"},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"sv_window",body:"sv_window_content",header:{root:"sv_window_title",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootDesignMode:"sv-ranking--design-mode",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",imagepickerGapBetweenItems:"--sd-imagepicker-gap",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",small:"sd-row__question--small",selectWrapper:"",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlDisabled:"sd-input--disabled",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",f
1ilterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator"}};n.surveyCss.defaultV2=o},
1"./src/defaultTitle.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DefaultTitleModel",function(){return o});var n=r("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getIconCss=function(e,t){return new n.CssClassBuilder().append(e.icon).append(e.iconExpanded,!t).toString()},e}()},
1"./src/dragdrop/choices.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropChoices",function(){return s});var n,o=r("./src/dragdrop/core.ts"),i=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDragOver=function(){"imagepicker"!==t.parentElement.getType()&&(t.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="grabbing")},t.doBanDropHere=function(){"imagepicker"!==t.parentElement.getType()&&(t.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="not-allowed")},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){if("imagepicker"===this.parentElement.getType())return this.createImagePickerShortcut(this.draggedElement,e,t,r);var n=document.createElement("div");n.style.cssText=' \n          cursor: grabbing;\n          position: absolute;\n          z-index: 1000;\n          font-family: "Open Sans";\n        ';var o=t.closest("[data-sv-drop-target-item-value]").cloneNode(!0);o.style.cssText="\n      min-width: 100px;\n      box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n      background-color: var(--background, white);\n      border-radius: 36px;\n      padding-right: 16px;\n      margin-left: 0;\n    ",o.querySelector(".svc-item-value-controls__drag-icon").style.visibility="visible",o.querySelector(".svc-item-value-controls__remove").style.backgroundColor="transparent",o.classList.remove("svc-item-value--moveup"),o.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,n.appendChild(o);var i=t.getBoundingClientRect();return n.shortcutXOffset=r.clientX-i.x,n.shortcutYOffset=r.clientY-i.y,this.isBottom=null,n},t.prototype.createImagePickerShortcut=function(e,t,r,n){var o=document.createElement("div");o.style.cssText=" \n      cursor: grabbing;\n      position: absolute;\n      z-index: 1000;\n      box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n      padding: 4px;\n      border-radius: 4px;\n      background: white;\n    ";var i=r.closest("[data-sv-drop-target-item-value]"),s=i.querySelector(".svc-image-item-value-controls"),a=i.querySelector(".sd-imagepicker__image-container"),l=i.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return s.style.display="none",a.style.width=l.width+"px",a.style.height=l.height+"px",l.style.objectFit="cover",l.style.borderRadius="4px",o.appendChild(l),o},t.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.choices.filter(function(t){return""+t.value==e})[0]},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return"ranking"===e.getType()?e.rankingChoices:e.visibleChoices},t.prototype.isDropTargetValid=function(e){var t=this.getVisibleChoices();if("imagepicker"!==this.parentElement.getType()){var r=t.indexOf(this.dropTarget),n=t.indexOf(this.draggedElement);if(n>r&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(n<r&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return -1!==t.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.getVisibleChoices();return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var r=this.getVisibleChoices(),n=r.indexOf(this.dropTarget),o=r.indexOf(this.draggedElement);r.splice(o,1),r.splice(n,0,this.draggedElement),"imagepicker"!==this.parentElement.getType()&&(o!==n&&(t.classList.remove("svc-item-value--moveup"),t.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>n&&(this.dropTarget.isDragDropMoveDown=!0),o<n&&(this.dropTarget.isDragDropMoveUp=!0),e.prototype.ghostPositionChanged.call(this))}},t.prototype.doDrop=function(){var e=this.parentElement.choices,t=this.getVisibleChoices().filter(function(t){return -1!==e.indexOf(t)}),r=e.indexOf(this.draggedElement),n=t.indexOf(this.draggedElement);return e.splice(r,1),e.splice(n,0,this.draggedElement),this.parentElement},t.prototype.doClear=function(){this.updateVisibleChoices()},t.prototype.updateVisibleChoices=function(){var e=this.parentElement;"ranking"===this.parentElement.getType()?e.updateRankingChoices():e.updateVisibleChoices()},t}(o.DragDropCore)},
1"./src/dragdrop/core.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropCore",function(){return c});var n,o=r("./src/base.ts"),i=r("./src/jsonobject.ts"),s=r("./src/utils/utils.ts"),a=r("./src/utils/devices.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};"undefined"!=typeof window&&window.addEventListener("touchmove",function(e){c.PreventScrolling&&e.preventDefault()},{passive:!1});var c=function(e){function t(r,n,i){var s=e.call(this)||this;return s.surveyValue=r,s.creator=n,s.longTap=i,s.onGhostPositionChanged=new o.EventBase,s.onBeforeDrop=new o.EventBase,s.onAfterDrop=new o.EventBase,s.draggedElement=null,s.dropTarget=null,s.prevDropTarget=null,s.draggedElementShortcut=null,s.scrollIntervalId=null,s.allowDropHere=!1,s.stopLongTapIfMoveEnough=function(e){e.preventDefault(),s.currentX=e.pageX,s.currentY=e.pageY,s.isMicroMovement||(document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select",""),s.stopLongTap())},s.stopLongTap=function(e){clearTimeout(s.timeoutID),s.timeoutID=null,document.removeEventListener("pointerup",s.stopLongTap),document.removeEventListener("pointermove",s.stopLongTapIfMoveEnough)},s.onContextMenu=function(e){e.preventDefault(),e.stopPropagation()},s.dragOver=function(e){s.moveShortcutElement(e),s.draggedElementShortcut.style.cursor="grabbing";var t=s.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(!t)return void s.banDropHere();s.dropTarget=s.getDropTargetByNode(t,e);var r=s.isDropTargetValid(s.dropTarget,t);if(s.doDragOver(t,e),!r)return void s.banDropHere();var n=s.calculateIsBottom(e.clientY,t);s.allowDropHere=!0,s.isDropTargetDoesntChanged(n)||(s.isBottom=null,s.isBottom=n,s.afterDragOver(t,e),s.prevDropTarget=s.dropTarget)},s.drop=function(){if(s.allowDropHere){s.onBeforeDrop.fire(s,null);var e=s.doDrop();s.onAfterDrop.fire(s,{draggedElement:e})}s.clear()},s.handlePointerCancel=function(e){s.clear()},s.handleEscapeButton=function(e){27==e.keyCode&&s.clear()},s.banDropHere=function(){s.allowDropHere=!1,s.doBanDropHere(),s.dropTarget=null,s.draggedElementShortcut.style.cursor="not-allowed",s.isBottom=null},s.doBanDropHere=function(){},s.clear=function(){cancelAnimationFrame(s.scrollIntervalId),document.removeEventListener("pointermove",s.dragOver),document.removeEventListener("pointercancel",s.handlePointerCancel),document.removeEventListener("keydown",s.handleEscapeButton),document.removeEventListener("pointerup",s.drop),s.draggedElementShortcut.removeEventListener("pointerup",s.drop),a.IsTouch&&s.draggedElementShortcut.removeEventListener("contextmenu",s.onContextMenu),document.body.removeChild(s.draggedElementShortcut),s.doClear(),s.dropTarget=null,s.draggedElementShortcut=null,s.draggedElement=null,s.isBottom=null,s.parentElement=null,s.scrollIntervalId=null,a.IsTouch&&(s.savedTargetNode&&document.body.removeChild(s.savedTargetNode),t.PreventScrolling=!1),document.body.style.setProperty("touch-action",""),document.body.style.setProperty("user-select",""),document.body.style.setProperty("-webkit-user-select","")},s}return l(t,e),t.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(t.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-".concat(this.draggedElementType,"]")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue||this.creator.survey}
1,enumerable:!1,configurable:!0}),t.prototype.startDrag=function(e,t,r,n,o){if(void 0===o&&(o=!1),a.IsTouch)return void this.startLongTapProcessing(e,t,r,n,o);this.doStartDrag(e,t,r,n)},t.prototype.startLongTapProcessing=function(e,t,r,n,o){var i=this;void 0===o&&(o=!1),this.startX=e.pageX,this.startY=e.pageY,document.body.style.setProperty("touch-action","none","important"),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),this.timeoutID=setTimeout(function(){i.doStartDrag(e,t,r,n),o||(i.savedTargetNode=e.target,i.savedTargetNode.style.cssText="\n          position: absolute;\n          height: 1px!important;\n          width: 1px!important;\n          overflow: hidden;\n          clip: rect(1px 1px 1px 1px);\n          clip: rect(1px, 1px, 1px, 1px);\n        ",document.body.appendChild(i.savedTargetNode)),i.stopLongTap()},500*!!this.longTap),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},Object.defineProperty(t.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<5&&t<5},enumerable:!1,configurable:!0}),t.prototype.doStartDrag=function(e,r,n,o){if(a.IsTouch&&(t.PreventScrolling=!0),3!==e.which){this.draggedElement=r,this.parentElement=n,this.onStartDrag();var i=this.getShortcutText(this.draggedElement);this.draggedElementShortcut=this.createDraggedElementShortcut(i,o,e),document.body.append(this.draggedElementShortcut),this.moveShortcutElement(e),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),a.IsTouch?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop)}},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},t.prototype.onStartDrag=function(){},t.prototype.getShortcutText=function(e){return e.shortcutText},t.prototype.createDraggedElementShortcut=function(e,t,r){var n=document.createElement("div");return n.innerText=e,n.className=this.getDraggedElementClass(),n},t.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},t.prototype.doDragOver=function(e,t){},t.prototype.afterDragOver=function(e,t){},t.prototype.getGhostPosition=function(e){return this.dropTarget!==e?null:this.isBottom?"bottom":"top"},t.prototype.moveShortcutElement=function(e){this.doScroll(e.clientY,e.clientX);var t=this.draggedElementShortcut.offsetHeight,r=this.draggedElementShortcut.offsetWidth,n=this.draggedElementShortcut.shortcutXOffset||r/2,o=this.draggedElementShortcut.shortcutYOffset||t/2;0!==document.querySelectorAll("[dir='rtl']").length&&(n=r/2,o=t/2);var i=document.documentElement.clientHeight,s=document.documentElement.clientWidth,a=this.getShortcutBottomCoordinate(e.clientY,t,o);if(this.getShortcutRightCoordinate(e.clientX,r,n)>=s){this.draggedElementShortcut.style.left=e.pageX-e.clientX+s-r+"px",this.draggedElementShortcut.style.top=e.pageY-o+"px";return}if(e.clientX-n<=0){this.draggedElementShortcut.style.left=e.pageX-e.clientX+"px",this.draggedElementShortcut.style.top=e.pageY-o+"px";return}if(a>=i){this.draggedElementShortcut.style.left=e.pageX-n+"px",this.draggedElementShortcut.style.top=e.pageY-e.clientY+i-t+"px";return}if(e.clientY-o<=0){this.draggedElementShortcut.style.left=e.pageX-n+"px",this.draggedElementShortcut.style.top=e.pageY-e.clientY+"px";return}this.draggedElementShortcut.style.left=e.pageX-n+"px",this.draggedElementShortcut.style.top=e.pageY-o+"px"},t.prototype.getShortcutBottomCoordinate=function(e,t,r){return e+t-r},t.prototype.getShortcutRightCoordinate=function(e,t,r){return e+t-r},t.prototype.doScroll=function(e,t){var r,n,o,i,a=this;cancelAnimationFrame(this.scrollIntervalId),this.draggedElementShortcut.hidden=!0;var l=document.elementFromPoint(t,e);this.draggedElementShortcut.hidden=!1;var u=Object(s.findScrollableParent)(l);"HTML"===u.tagName?(r=0,n=document.documentElement.clientHeight,o=0,i=document.documentElement.clientWidth):(r=u.getBoundingClientRect().top,n=u.getBoundingClientRect().bottom,o=u.getBoundingClientRect().left,i=u.getBoundingClientRect().right);var c=function(){e-r<=50?u.scrollTop-=15:n-e<=50?u.scrollTop+=15:i-t<=50?u.scrollLeft+=15:t-o<=50&&(u.scrollLeft-=15),a.scrollIntervalId=requestAnimationFrame(c)};this.scrollIntervalId=requestAnimationFrame(c)},t.prototype.getDataAttributeValueByNode=function(e){var t=this,r="svDropTarget";return this.draggedElementType.split("-").forEach(function(e){r+=t.capitalizeFirstLetter(e)}),e.dataset[r]},t.prototype.getDropTargetByNode=function(e,t){var r=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(r,e,t)},t.prototype.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.prototype.calculateVerticalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.y+t.height/2},t.prototype.calculateHorizontalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.x+t.width/2},t.prototype.findDropTargetNodeFromPoint=function(e,t){this.draggedElementShortcut.hidden=!0;var r=document.elementFromPoint(e,t);return(this.draggedElementShortcut.hidden=!1,r)?this.findDropTargetNodeByDragOverNode(r):null},t.prototype.findDropTargetNodeByDragOverNode=function(e){return e.querySelector(this.dropTargetDataAttributeName)||e.closest(this.dropTargetDataAttributeName)},t.prototype.doClear=function(){},t.PreventScrolling=!1,u([Object(i.property)({defaultValue:null,onSet:function(e,t){t.ghostPositionChanged()}})],t.prototype,"isBottom",void 0),t}(o.Base)},
1"./src/dragdrop/matrix-rows.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropMatrixRows",function(){return s});var n,o=r("./src/dragdrop/core.ts"),i=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fromIndex=null,t.toIndex=null,t.doDrop=function(){return t.parentElement.moveRowByIndex(t.fromIndex,t.toIndex),t.parentElement},t}return i(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){var n=this,o=document.createElement("div");o.style.cssText=' \n          cursor: grabbing;\n          position: absolute;\n          z-index: 1000;\n          font-family: "Open Sans";\n        ';var i=t.closest("[data-sv-drop-target-matrix-row]"),s=i.cloneNode(!0);s.style.cssText="\n      box-shadow: rgb(0 0 0 / 10%) 0px 8px 16px;\n      background-color: white;\n      display: flex;\n      flex-grow: 0;\n      flex-shrink: 0;\n      align-items: center;\n      line-height: 0;\n      width: ".concat(i.offsetWidth,"px;\n    "),s.classList.remove("sv-matrix__drag-drop--moveup"),s.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(s);var a=t.getBoundingClientRect();return o.shortcutXOffset=r.clientX-a.x,o.shortcutYOffset=r.clientY-a.y,this.parentElement.renderedTable.rows.forEach(function(e,t){e.row===n.draggedElement&&(e.isGhostRow=!0)}),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),o},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.renderedTable.rows.filter(function(t){return t.row.id===e})[0].row},t.prototype.isDropTargetValid=function(e){return!0},t.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.renderedTable.rows.map(function(e){return e.row});return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){var r,n,o,i=this;if(!this.isDropTargetDoesntChanged(this.isBottom)&&this.dropTarget!==this.draggedElement){var s=this.parentElement.renderedTable.rows;s.forEach(function(e,t){e.row===i.dropTarget&&(r=t),e.row===i.draggedElement&&(o=e,n=t,o.isGhostRow=!0)}),s.splice(n,1),s.splice(r,0,o),this.toIndex=r,e.prototype.ghostPositionChanged.call(this)}},t.prototype.doClear=function(){this.parentElement.resetRenderedTable(),this.fromIndex=null,this.toIndex=null},t}(o.DragDropCore)},
1"./src/dragdrop/ranking-choices.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropRankingChoices",function(){return l});var n,o=r("./src/dragdrop/choices.ts"),i=r("./src/utils/cssClassBuilder.ts"),s=r("./src/utils/devices.ts"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragOverRootNode=!1,t.doDragOver=function(){t.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="grabbing"},t.doBanDropHere=function(){if(t.isDragOverRootNode){t.allowDropHere=!0;return}t.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="not-allowed"},t.doDrop=function(){return t.parentElement.setValue(),t.parentElement},t.doClear=function(){t.parentElement.dropTargetNodeMove=null,t.parentElement.updateRankingChoices(!0)},t}return a(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){var n=document.createElement("div");n.className=this.shortcutClass+" sv-ranking-shortcut",n.style.cssText=' \n          cursor: grabbing;\n          position: absolute;\n          z-index: 1000;\n          border-radius: 36px;\n          min-width: 100px;\n          box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n          background-color: var(--background, white);\n          font-family: "Open Sans";\n        ';var o=t.cloneNode(!0);n.appendChild(o);var i=t.getBoundingClientRect();return n.shortcutXOffset=r.clientX-i.x,n.shortcutYOffset=r.clientY-i.y,n},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new i.CssClassBuilder().append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,s.IsMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(e){return this.isDragOverRootNode=this.getIsDragOverRootNode(e),e.closest(this.dropTargetDataAttributeName)},t.prototype.getIsDragOverRootNode=function(e){return"string"==typeof e.className&&-1!==e.className.indexOf("sv-ranking")},t.prototype.isDropTargetValid=function(e,t){var r=this.parentElement.rankingChoices,n=r.indexOf(this.dropTarget),o=r.indexOf(this.draggedElement);return o>n&&t.classList.contains("sv-dragdrop-moveup")||o<n&&t.classList.contains("sv-dragdrop-movedown")?(this.parentElement.dropTargetNodeMove=null,!1):-1!==r.indexOf(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.rankingChoices;return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(e){var t=this.parentElement.rankingChoices,r=t.indexOf(this.dropTarget),n=t.indexOf(this.draggedElement);t.splice(n,1),t.splice(r,0,this.draggedElement),this.parentElement.setPropertyValue("rankingChoices",t),this.updateDraggedElementShortcut(r+1),n!==r&&(e.classList.remove("sv-dragdrop-moveup"),e.classList.remove("sv-dragdrop-movedown"),this.parentElement.dropTargetNodeMove=null),n>r&&(this.parentElement.dropTargetNodeMove="down"),n<r&&(this.parentElement.dropTargetNodeMove="up")},t.prototype.updateDraggedElementShortcut=function(e){this.draggedElementShortcut.querySelector(".sv-ranking-item__index").innerText=e+""},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,e.prototype.ghostPositionChanged.call(this)},t}(o.DragDropChoices)},
1"./src/dragdrop/survey-elements.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropSurveyElements",function(){return l});var n,o=r("./src/survey-element.ts"),i=r("./src/jsonobject.ts"),s=r("./src/dragdrop/core.ts"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isEdge=!1,t.prevIsEdge=null,t.ghostSurveyElement=null,t.isDraggedElementSelected=!1,t.doBanDropHere=function(){t.removeGhostElementFromSurvey(),t.isEdge=null},t.doDrop=function(){return t.dropTarget?(document.activeElement.blur(),t.insertRealElementIntoSurvey()):null},t.doClear=function(){t.removeGhostElementFromSurvey(),t.isEdge=null,t.ghostSurveyElement=null,t.draggedElement&&(t.draggedElement.isDragMe=!1),t.isRight=null},t}return a(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"survey-element"},enumerable:!1,configurable:!0}),t.prototype.startDragToolboxItem=function(e,t,r){var n=this.createElementFromJson(t);n.toolboxItemTitle=r,this.startDrag(e,n,null,null,!0)},t.prototype.startDragSurveyElement=function(e,t,r){this.isDraggedElementSelected=r,this.startDrag(e,t)},t.prototype.getShortcutText=function(t){return t.toolboxItemTitle||e.prototype.getShortcutText.call(this,t)},t.prototype.createDraggedElementShortcut=function(e,t,r){var n=document.createElement("div"),o=document.createElement("span");return o.className="svc-dragged-element-shortcut__text",o.innerText=e,n.appendChild(this.createDraggedElementIcon()),n.appendChild(o),n.className=this.getDraggedElementClass(),n},t.prototype.createDraggedElementIcon=function(){var e=document.createElement("span"),t=this.draggedElement.getType();return e.className="svc-dragged-element-shortcut__icon",e.innerHTML='<svg class="sv-svg-icon" role="img" style="width: 24px; height: 24px;"><use xlink:href="#icon-'.concat(t,'"></use></svg>'),e},t.prototype.getDraggedElementClass=function(){var e="svc-dragged-element-shortcut";return this.isDraggedElementSelected&&(e+=" svc-dragged-element-shortcut--selected"),e},t.prototype.createElementFromJson=function(e){var t=this.createNewElement(e);return t.setSurveyImpl?t.setSurveyImpl(this.survey):t.setData(this.survey),t.renderWidth="100%",t},t.prototype.createNewElement=function(e){var t=i.Serializer.createClass(e.type);return new i.JsonObject().toObject(e,t),t},t.prototype.getDropTargetByDataAttributeValue=function(e,r,n){if(this.isEdge=this.calculateIsEdge(r,n.clientY),!e){var o,i,s=r.parentElement.closest(this.dropTargetDataAttributeName);e=this.getDataAttributeValueByNode(s)}if(!e)throw Error("Can't find drop target survey element name");if(e===t.ghostSurveyElementName)return this.prevDropTarget;if("newGhostPage"===e)return t.newGhostPage;var a=this.survey.getPageByName(e);if(a)return 0!==a.elements.length?null:a;if(this.survey.pages.forEach(function(t){(i=t.getElementByName(e))&&(o=i)}),"paneldynamic"!==o.getType()||this.isEdge||(o=o.template),"matrixdropdown"!==o.getType()&&"matrixdynamic"!==o.getType()||"none"===o.detailPanelMode||this.isEdge?o.isPanel&&(o=this.getPanelDropTarget(r,o,n)):o=o.detailPanel,!o.page){e=r.parentElement.closest("[data-sv-drop-target-page]").dataset.svDropTargetPage;var l=this.survey.getPageByName(e);o.__page=l}return o},t.prototype.isDropTargetValid=function(){return!(!this.dropTarget||this.dropTarget===this.draggedElement||"paneldynamic"===this.draggedElement.getType()&&this.dropTarget===this.draggedElement.template||t.restrictDragQuestionBetweenPages&&this.shouldRestricDragQuestionBetweenPages(this.dropTarget))},t.prototype.calculateIsBottom=function(e,r){return this.getDataAttributeValueByNode(r)===t.ghostSurveyElementName?this.isBottom:e>=this.calculateVerticalMiddleOfHTMLElement(r)},t.prototype.calculateIsRight=function(e,r){return this.getDataAttributeValueByNode(r)===t.ghostSurveyElementName?this.isRight:e>=this.calculateHorizontalMiddleOfHTMLElement(r)},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.ghostSurveyElement||this.dropTarget===this.prevDropTarget&&e===this.isBottom&&this.isEdge===this.prevIsEdge&&this.isRight===this.prevIsRight},t.prototype.shouldRestricDragQuestionBetweenPages=function(e){var t=this.draggedElement.page,r=e.isPage?e:e.page;return t&&t!==r},t.prototype.getPanelDropTarget=function(e,t,r){return this.isEdge||0===t.questions.length||(e=this.findDeepestDropTargetChild(e),t=this.getDropTargetByNode(e,r)),t},t.prototype.findDeepestDropTargetChild=function(e){for(var t=this.dropTargetDataAttributeName,r=e;e;)r=e,e=e.querySelector(t);return r},t.prototype.calculateIsEdge=function(e,r){var n=e.getBoundingClientRect();return r-n.top<=t.edgeHeight||n.bottom-r<=t.edgeHeight},t.prototype.doDragOver=function(e,t){this.isRight=this.calculateIsRight(t.clientX,e)},t.prototype.afterDragOver=function(e,t){this.prevIsEdge=this.isEdge,this.prevIsRight=this.isRight,this.insertGhostElementIntoSurvey()},t.prototype.onStartDrag=function(){this.ghostSurveyElement=this.createGhostSurveyElement(),this.draggedElement.isDragMe=!0},t.prototype.insertGhostElementIntoSurvey=function(){this.removeGhostElementFromSurvey();var e=this.calcTargetRowMultiple();if(this.ghostSurveyElement=this.createGhostSurveyElement(e),this.ghostSurveyElement.name=t.ghostSurveyElementName,this.parentElement=this.dropTarget.isPage?this.dropTarget:this.dropTarget.page||this.dropTarget.__page,this.isDragOverInsideEmptyPanel()){this.dropTarget.dragTypeOverMe=o.DragTypeOverMeEnum.InsideEmptyPanel;return}if(!this.isEdge&&e){this.dropTarget.dragTypeOverMe=this.isRight?o.DragTypeOverMeEnum.MultilineRight:o.DragTypeOverMeEnum.MultilineLeft;return}return this.parentElement.dragDropStart(this.draggedElement,this.ghostSurveyElement,t.nestedPanelDepth),this.parentElement.dragDropMoveTo(this.dropTarget,e?this.isRight:this.isBottom,this.isEdge)},t.prototype.calcTargetRowMultiple=function(){var e=this.getTargetParent(this.dropTarget),t=this.getTargetRow(this.dropTarget),r=t&&t.elements.length>1,n=e.isPanel&&!e.name;return this.isEdge&&r&&!n?(e.__page=this.dropTarget.page||this.dropTarget.__page,this.dropTarget=e,!1):r},t.prototype.getTargetParent=function(e){var t=e.isPage||e.isPanel?e:e.parent;return"paneldynamic"===e.getType()&&(t=e.templateValue),t},t.prototype.getTargetRow=function(e){var t;return this.getTargetParent(e).rows.forEach(function(r){-1!==r.elements.indexOf(e)&&(t=r)}),t},t.prototype.isDragOverInsideEmptyPanel=function(){var e=this.dropTarget.isPanel&&0===this.dropTarget.questions.length,t=!this.isEdge;return e&&t},t.prototype.removeGhostElementFromSurvey=function(){var e=this.prevDropTarget||this.dropTarget;e&&(e.dragTypeOverMe=null),this.parentElement&&this.parentElement.dragDropFinish(!0)},t.prototype.insertRealElementIntoSurvey=function(){this.removeGhostElementFromSurvey();var e=this.calcTargetRowMultiple();this.dropTarget.isPage&&this.dropTarget._isGhost&&this.dropTarget._addGhostPageViewModel();var r=new i.JsonObject().toJsonObject(this.draggedElement);r.type=this.draggedElement.getType();var n=this.createFakeTargetElement(this.draggedElement.name,r);return this.parentElement.dragDropStart(this.draggedElement,n,t.nestedPanelDepth),this.parentElement.dragDropMoveTo(this.dropTarget,e?this.isRight:this.isBottom,this.isEdge),this.parentElement.dragDropFinish()},t.prototype.createFakeTargetElement=function(e,t){if(!e||!t)return null;var r=null;return r=i.Serializer.createClass(t.type),new i.JsonObject().toObject(t,r),r.name=e,r.setSurveyImpl?r.setSurveyImpl(this.survey):r.setData(this.survey),r.renderWidth="100%",r},t.prototype.createGhostSurveyElement=function(e){void 0===e&&(e=!1);var r="sv-drag-drop-ghost",n="300px";e&&(n="4px",r+=" sv-drag-drop-ghost--vertical");var o={type:"html",minWidth:n,name:t.ghostSurveyElementName,html:'<div class="'.concat(r,'"></div>')},i=this.createElementFromJson(o);return i.startWithNewLine=!e,e&&(i.maxWidth="4px",i.renderWidth="0px",i.paddingRight="0px",
1i.paddingLeft="0px"),i},t.newGhostPage=null,t.restrictDragQuestionBetweenPages=!1,t.edgeHeight=30,t.nestedPanelDepth=-1,t.ghostSurveyElementName="sv-drag-drop-ghost-survey-element-name",t}(s.DragDropCore)},
1"./src/dropdownListModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DropdownListModel",function(){return d});var n,o=r("./src/actions/action.ts"),i=r("./src/base.ts"),s=r("./src/jsonobject.ts"),a=r("./src/list.ts"),l=r("./src/popup.ts"),u=r("./src/utils/utils.ts"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},d=function(e){function t(t,r){var n=e.call(this)||this;return n.question=t,n.onSelectionChanged=r,n.minPageSize=25,n.loadingItemHeight=40,n.focusFirstInputSelector=".sv-list__item--selected",n.itemsSettings={skip:0,take:0,totalCount:0,items:[]},n.isRunningLoadQuestionChoices=!1,n.popupCssClasses="sv-single-select-list",n.listModel=n.createListModel(),n.updateAfterListModelCreated(n.listModel),n.setSearchEnabled(n.question.searchEnabled),n.createPopup(),n.resetItemsSettings(),n}return c(t,e),t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.updateListItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.setItems=function(e,t){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.question.choices=this.itemsSettings.items,this.itemsSettings.totalCount=t,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.question.choices.length==this.itemsSettings.totalCount,this.updateListItems()},t.prototype.updateQuestionChoices=function(e){var t=this;if(!this.isRunningLoadQuestionChoices){var r=this.itemsSettings.skip+1<this.itemsSettings.totalCount;(!this.itemsSettings.skip||r)&&(this.isRunningLoadQuestionChoices=!0,this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(r,n){t.isRunningLoadQuestionChoices=!1,t.setItems(r||[],n||0),t.popupRecalculatePosition(t.itemsSettings.skip===t.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take)}},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=!this.listModel.showFilter&&this.question.value?this.focusFirstInputSelector:""},t.prototype.createPopup=function(){var e=this;this._popupModel=new l.PopupModel("sv-list",{model:this.listModel},"bottom","center",!1),this._popupModel.positionMode="fixed",this._popupModel.isFocusedContent=!1,this._popupModel.setWidthByTarget=!0,this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],function(){e.updatePopupFocusFirstInputSelector()}),this._popupModel.cssClass=this.popupCssClasses,this._popupModel.onVisibilityChanged.add(function(t,r){r.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.updateQuestionChoices()),r.isVisible&&e.question.onOpenedCallBack&&(e.updatePopupFocusFirstInputSelector(),e.question.onOpenedCallBack()),!r.isVisible&&(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings())})},t.prototype.setFilterStringToListModel=function(e){this.listModel.filterString=e,this.listModel.focusedItem&&this.listModel.isItemVisible(this.listModel.focusedItem)||this.listModel.focusFirstVisibleItem()},t.prototype.popupRecalculatePosition=function(e){var t=this;setTimeout(function(){t.popupModel.recalculatePosition(e)},1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.listModel.refresh()},t.prototype.getAvailableItems=function(){var e=this;return this.question.visibleChoices.map(function(t){return new o.Action({id:t.value,data:t,locTitle:t.locText,component:new i.ComputedUpdater(function(){return e.question.itemComponent}),visible:new i.ComputedUpdater(function(){return t.isVisible}),enabled:new i.ComputedUpdater(function(){return t.isEnabled})})})},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),r=this.onSelectionChanged;return r||(r=function(t){e.question.value=t.id,e._popupModel.toggleVisibility()}),new a.ListModel(t,r,!0,this.question.selectedItem)},t.prototype.updateAfterListModelCreated=function(e){var t=this;e.locOwner=this.question,e.onPropertyChanged.add(function(e,r){"hasVerticalScroller"
1==r.name&&(t.hasScroll=r.newValue)}),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled},t.prototype.updateListCssClasses=function(e){this.listModel.cssClasses=e},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.onSetFilterString=function(){var e=this;this.filterString&&!this.popupModel.isVisible&&(this.popupModel.isVisible=!0),this.setInputHasValue(!!this.filterString);var t=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(t)):t()},t.prototype.setInputHasValue=function(e){this.question.inputHasValue=e},Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputReadOnly",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.searchEnabled=!1,this.searchEnabled=e},t.prototype.updateItems=function(){this.updateListItems()},t.prototype.onClick=function(e){if(this._popupModel.toggleVisibility(),this.listModel.focusNextVisibleItem(),this.searchEnabled&&e&&e.target){var t=e.target.querySelector("input");t&&t.focus()}},t.prototype.onClear=function(e){this.question.clearValue(),this.resetFilterString(),this.listModel.selectedItem=void 0,e.preventDefault(),e.stopPropagation()},t.prototype.getSelectedAction=function(){var e=this;return this.question.selectedItem?this.listModel.actions.filter(function(t){return e.question.selectedItem.value===t.id})[0]:null},t.prototype.keyHandler=function(e){var t=e.which||e.keyCode;this.popupModel.isVisible&&38===e.keyCode?(this.listModel.focusPrevVisibleItem(),this.scrollToFocusedItem(),e.preventDefault(),e.stopPropagation()):40===e.keyCode?(this.popupModel.isVisible||this.popupModel.toggleVisibility(),this.listModel.focusNextVisibleItem(),this.scrollToFocusedItem(),e.preventDefault(),e.stopPropagation()):this.popupModel.isVisible&&(13===e.keyCode||32===e.keyCode)?(this.listModel.selectFocusedItem(),e.preventDefault(),e.stopPropagation()):46===t?this.onClear(e):27===e.keyCode?this.popupModel.isVisible=!1:((38===e.keyCode||40===e.keyCode||32===e.keyCode)&&(e.preventDefault(),e.stopPropagation()),Object(u.doKey2ClickUp)(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly}))},t.prototype.onScroll=function(e){var t=e.target;t.scrollHeight-(t.scrollTop+t.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){this.popupModel.isVisible&&this.listModel.selectFocusedItem(),this.resetFilterString(),this._popupModel.isVisible=!1,this.setInputHasValue(!1),Object(u.doKey2ClickBlur)(e)},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},p([Object(s.property)({defaultValue:!0})],t.prototype,"searchEnabled",void 0),p([Object(s.property)({defaultValue:"",onSet:function(e,t){t.onSetFilterString()}})],t.prototype,"filterString",void 0),p([Object(s.property)({defaultValue:!1,onSet:function(e,t){e?t.listModel.addScrollEventListener(function(e){t.onScroll(e)}):t.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),t}(i.Base)},
1"./src/dropdownMultiSelectListModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DropdownMultiSelectListModel",function(){return p});var n,o=r("./src/dropdownListModel.ts"),i=r("./src/itemvalue.ts"),s=r("./src/jsonobject.ts"),a=r("./src/multiSelectListModel.ts"),l=r("./src/settings.ts"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.setHideSelectedItems(t.hideSelectedItems),n.syncFilterStringPlaceholder(),n.closeOnSelect=t.closeOnSelect,n}return u(t,e),t.prototype.syncFilterStringPlaceholder=function(e){(e||this.getSelectedActions()).length||this.question.selectedItems.length?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(e){var t=this;return(e||this.listModel.actions).filter(function(e){return t.question.isAllSelected&&"selectall"===e.id||!!i.ItemValue.getItemByValue(t.question.selectedItems,e.id)})},t.prototype.syncSelectedItemsFromQuestion=function(){var e=this.getSelectedActions();this.listModel.setSelectedItems(e),this.syncFilterStringPlaceholder(e)},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),r=this.onSelectionChanged;return r||(r=function(t,r){e.resetFilterString(),"selectall"===t.id?e.selectAllItems():"added"===r&&t.id===l.settings.selectNoneItemValue?e.selectNoneItem():"added"===r?e.selectItem(t.id):"removed"===r&&e.deselectItem(t.id),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)}),new a.MultiSelectListModel(t,r,!0,this.getSelectedActions(t))},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.syncSelectedItemsFromQuestion()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[l.settings.selectNoneItemValue],this.syncSelectedItemsFromQuestion()},t.prototype.selectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.push(e),this.question.renderedValue=t,this.syncSelectedItemsFromQuestion()},t.prototype.deselectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.splice(t.indexOf(e),1),this.question.renderedValue=t,this.syncSelectedItemsFromQuestion()},t.prototype.onClear=function(t){e.prototype.onClear.call(this,t),this.syncSelectedItemsFromQuestion()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.syncSelectedItemsFromQuestion()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){8!==e.keyCode||this.filterString||(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},c([Object(s.property)({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),c([Object(s.property)({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),t}(o.DropdownListModel)},
1"./src/dxSurveyService.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"dxSurveyService",function(){return o});var n=r("./src/settings.ts"),o=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return n.settings.surveyServiceUrl},set:function(e){n.settings.surveyServiceUrl=e},enumerable:!1,configurable:!0}),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 o=new XMLHttpRequest;o.open("GET",e.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+t+"&clientId="+r),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=JSON.parse(o.response),t=e?e.survey:null,r=e?e.isCompleted:null;n(200==o.status,t,r,o.response)},o.send()},e.prototype.sendResult=function(t,r,n,o,i){void 0===o&&(o=null),void 0===i&&(i=!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)};o&&(a.clientId=o),i&&(a.isPartialCompleted=!0);var l=JSON.stringify(a);s.onload=s.onerror=function(){n&&n(200===s.status,s.response,s)},s.send(l)},e.prototype.sendFile=function(t,r,n){var o=new XMLHttpRequest;o.onload=o.onerror=function(){n&&n(200==o.status,JSON.parse(o.response))},o.open("POST",e.serviceUrl+"/upload/",!0);var i=new FormData;i.append("file",r),i.append("postId",t),o.send(i)},e.prototype.getResult=function(t,r,n){var o=new XMLHttpRequest;o.open("GET",e.serviceUrl+"/getResult?"+("resultId="+t)+"&name="+r),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null,t=null;if(200==o.status)for(var r in e=JSON.parse(o.response),t=[],e.QuestionResult){var i={name:r,value:e.QuestionResult[r]};t.push(i)}n(200==o.status,e,t,o.response)},o.send()},e.prototype.isCompleted=function(t,r,n){var o=new XMLHttpRequest;o.open("GET",e.serviceUrl+"/isCompleted?"+("resultId="+t)+"&clientId="+r),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=null;200==o.status&&(e=JSON.parse(o.response)),n(200==o.status,e,o.response)},o.send()},e}()},
1"./src/element-helper.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ElementHelper",function(){return n});var n=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=window.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}()},
1"./src/entries/chunks/localization.ts":function(e,t,r){"use strict";r.r(t),r("./src/localization/arabic.ts"),r("./src/localization/basque.ts"),r("./src/localization/bulgarian.ts"),r("./src/localization/catalan.ts"),r("./src/localization/croatian.ts"),r("./src/localization/czech.ts"),r("./src/localization/danish.ts"),r("./src/localization/dutch.ts"),r("./src/localization/nl-BE.ts"),r("./src/localization/estonian.ts"),r("./src/localization/finnish.ts"),r("./src/localization/french.ts"),r("./src/localization/georgian.ts"),r("./src/localization/german.ts"),r("./src/localization/greek.ts"),r("./src/localization/hebrew.ts"),r("./src/localization/hindi.ts"),r("./src/localization/hungarian.ts"),r("./src/localization/icelandic.ts"),r("./src/localization/indonesian.ts"),r("./src/localization/italian.ts"),r("./src/localization/japanese.ts"),r("./src/localization/kazakh.ts"),r("./src/localization/korean.ts"),r("./src/localization/latvian.ts"),r("./src/localization/lithuanian.ts"),r("./src/localization/macedonian.ts"),r("./src/localization/malay.ts"),r("./src/localization/norwegian.ts"),r("./src/localization/persian.ts"),r("./src/localization/polish.ts"),r("./src/localization/portuguese.ts"),r("./src/localization/portuguese-br.ts"),r("./src/localization/romanian.ts"),r("./src/localization/russian.ts"),r("./src/localization/serbian.ts"),r("./src/localization/simplified-chinese.ts"),r("./src/localization/slovak.ts"),r("./src/localization/spanish.ts"),r("./src/localization/swahili.ts"),r("./src/localization/swedish.ts"),r("./src/localization/tajik.ts"),r("./src/localization/thai.ts"),r("./src/localization/traditional-chinese.ts"),r("./src/localization/turkish.ts"),r("./src/localization/ukrainian.ts"),r("./src/localization/vietnamese.ts"),r("./src/localization/welsh.ts"),r("./src/localization/telugu")},
1"./src/entries/chunks/model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Version",function(){return n}),r.d(t,"checkLibraryVersion",function(){return ek});var n,o=r("./src/settings.ts");r.d(t,"settings",function(){return o.settings});var i=r("./src/helpers.ts");r.d(t,"Helpers",function(){return i.Helpers});var s=r("./src/validator.ts");r.d(t,"AnswerCountValidator",function(){return s.AnswerCountValidator}),r.d(t,"EmailValidator",function(){return s.EmailValidator}),r.d(t,"NumericValidator",function(){return s.NumericValidator}),r.d(t,"RegexValidator",function(){return s.RegexValidator}),r.d(t,"SurveyValidator",function(){return s.SurveyValidator}),r.d(t,"TextValidator",function(){return s.TextValidator}),r.d(t,"ValidatorResult",function(){return s.ValidatorResult}),r.d(t,"ExpressionValidator",function(){return s.ExpressionValidator}),r.d(t,"ValidatorRunner",function(){return s.ValidatorRunner});var a=r("./src/itemvalue.ts");r.d(t,"ItemValue",function(){return a.ItemValue});var l=r("./src/base.ts");r.d(t,"Base",function(){return l.Base}),r.d(t,"Event",function(){return l.Event}),r.d(t,"EventBase",function(){return l.EventBase}),r.d(t,"ArrayChanges",function(){return l.ArrayChanges}),r.d(t,"ComputedUpdater",function(){return l.ComputedUpdater});var u=r("./src/survey-error.ts");r.d(t,"SurveyError",function(){return u.SurveyError});var c=r("./src/survey-element.ts");r.d(t,"SurveyElementCore",function(){return c.SurveyElementCore}),r.d(t,"SurveyElement",function(){return c.SurveyElement}),r.d(t,"DragTypeOverMeEnum",function(){return c.DragTypeOverMeEnum});var p=r("./src/calculatedValue.ts");r.d(t,"CalculatedValue",function(){return p.CalculatedValue});var d=r("./src/error.ts");r.d(t,"CustomError",function(){return d.CustomError}),r.d(t,"AnswerRequiredError",function(){return d.AnswerRequiredError}),r.d(t,"OneAnswerRequiredError",function(){return d.OneAnswerRequiredError}),r.d(t,"RequreNumericError",function(){return d.RequreNumericError}),r.d(t,"ExceedSizeError",function(){return d.ExceedSizeError});var h=r("./src/localizablestring.ts");r.d(t,"LocalizableString",function(){return h.LocalizableString}),r.d(t,"LocalizableStrings",function(){return h.LocalizableStrings});var m=r("./src/expressionItems.ts");r.d(t,"HtmlConditionItem",function(){return m.HtmlConditionItem}),r.d(t,"UrlConditionItem",function(){return m.UrlConditionItem});var f=r("./src/choicesRestful.ts");r.d(t,"ChoicesRestful",function(){return f.ChoicesRestful}),r.d(t,"ChoicesRestfull",function(){return f.ChoicesRestfull});var g=r("./src/functionsfactory.ts");r.d(t,"FunctionFactory",function(){return g.FunctionFactory}),r.d(t,"registerFunction",function(){return g.registerFunction});var y=r("./src/conditions.ts");r.d(t,"ConditionRunner",function(){return y.ConditionRunner}),r.d(t,"ExpressionRunner",function(){return y.ExpressionRunner}),r.d(t,"ExpressionExecutor",function(){return y.ExpressionExecutor});var v=r("./src/expressions/expressions.ts");r.d(t,"Operand",function(){return v.Operand}),r.d(t,"Const",function(){return v.Const}),r.d(t,"BinaryOperand",function(){return v.BinaryOperand}),r.d(t,"Variable",function(){return v.Variable}),r.d(t,"FunctionOperand",function(){return v.FunctionOperand}),r.d(t,"ArrayOperand",function(){return v.ArrayOperand}),r.d(t,"UnaryOperand",function(){return v.UnaryOperand});var b=r("./src/conditionsParser.ts");r.d(t,"ConditionsParser",function(){return b.ConditionsParser});var C=r("./src/conditionProcessValue.ts");r.d(t,"ProcessValue",function(){return C.ProcessValue});var x=r("./src/jsonobject.ts");r.d(t,"JsonError",function(){return x.JsonError}),r.d(t,"JsonIncorrectTypeError",function(){return x.JsonIncorrectTypeError}),r.d(t,"JsonMetadata",function(){return x.JsonMetadata}),r.d(t,"JsonMetadataClass",function(){return x.JsonMetadataClass}),r.d(t,"JsonMissingTypeError",function(){return x.JsonMissingTypeError}),r.d(t,"JsonMissingTypeErrorBase",function(){return x.JsonMissingTypeErrorBase}),r.d(t,"JsonObject",function(){return x.JsonObject}),r.d(t,"JsonObjectProperty",function(){return x.JsonObjectProperty}),r.d(t,"JsonRequiredPropertyError",function(){return x.JsonRequiredPropertyError}),r.d(t,"JsonUnknownPropertyError",function(){return x.JsonUnknownPropertyError}),r.d(t,"Serializer",function(){return x.Serializer}),r.d(t,"property",function(){return x.property}),r.d(t,"propertyArray",function(){return x.propertyArray});
1var w=r("./src/question_matrixdropdownbase.ts");r.d(t,"MatrixDropdownCell",function(){return w.MatrixDropdownCell}),r.d(t,"MatrixDropdownRowModelBase",function(){return w.MatrixDropdownRowModelBase}),r.d(t,"QuestionMatrixDropdownModelBase",function(){return w.QuestionMatrixDropdownModelBase});var _=r("./src/question_matrixdropdowncolumn.ts");r.d(t,"MatrixDropdownColumn",function(){return _.MatrixDropdownColumn}),r.d(t,"matrixDropdownColumnTypes",function(){return _.matrixDropdownColumnTypes});var P=r("./src/question_matrixdropdownrendered.ts");r.d(t,"QuestionMatrixDropdownRenderedCell",function(){return P.QuestionMatrixDropdownRenderedCell}),r.d(t,"QuestionMatrixDropdownRenderedRow",function(){return P.QuestionMatrixDropdownRenderedRow}),r.d(t,"QuestionMatrixDropdownRenderedTable",function(){return P.QuestionMatrixDropdownRenderedTable});var S=r("./src/question_matrixdropdown.ts");r.d(t,"MatrixDropdownRowModel",function(){return S.MatrixDropdownRowModel}),r.d(t,"QuestionMatrixDropdownModel",function(){return S.QuestionMatrixDropdownModel});var V=r("./src/question_matrixdynamic.ts");r.d(t,"MatrixDynamicRowModel",function(){return V.MatrixDynamicRowModel}),r.d(t,"QuestionMatrixDynamicModel",function(){return V.QuestionMatrixDynamicModel});var E=r("./src/question_matrix.ts");r.d(t,"MatrixRowModel",function(){return E.MatrixRowModel}),r.d(t,"MatrixCells",function(){return E.MatrixCells}),r.d(t,"QuestionMatrixModel",function(){return E.QuestionMatrixModel});var T=r("./src/martixBase.ts");r.d(t,"QuestionMatrixBaseModel",function(){return T.QuestionMatrixBaseModel});var O=r("./src/question_multipletext.ts");r.d(t,"MultipleTextItemModel",function(){return O.MultipleTextItemModel}),r.d(t,"QuestionMultipleTextModel",function(){return O.QuestionMultipleTextModel});var R=r("./src/panel.ts");r.d(t,"PanelModel",function(){return R.PanelModel}),r.d(t,"PanelModelBase",function(){return R.PanelModelBase}),r.d(t,"QuestionRowModel",function(){return R.QuestionRowModel});var I=r("./src/flowpanel.ts");r.d(t,"FlowPanelModel",function(){return I.FlowPanelModel});var k=r("./src/page.ts");r.d(t,"PageModel",function(){return k.PageModel}),r("./src/template-renderer.ts");var q=r("./src/defaultTitle.ts");r.d(t,"DefaultTitleModel",function(){return q.DefaultTitleModel});var D=r("./src/question.ts");r.d(t,"Question",function(){return D.Question});var j=r("./src/questionnonvalue.ts");r.d(t,"QuestionNonValue",function(){return j.QuestionNonValue});var M=r("./src/question_empty.ts");r.d(t,"QuestionEmptyModel",function(){return M.QuestionEmptyModel});var L=r("./src/question_baseselect.ts");r.d(t,"QuestionCheckboxBase",function(){return L.QuestionCheckboxBase}),r.d(t,"QuestionSelectBase",function(){return L.QuestionSelectBase});var A=r("./src/question_checkbox.ts");r.d(t,"QuestionCheckboxModel",function(){return A.QuestionCheckboxModel});var N=r("./src/question_tagbox.ts");r.d(t,"QuestionTagboxModel",function(){return N.QuestionTagboxModel});var B=r("./src/question_ranking.ts");r.d(t,"QuestionRankingModel",function(){return B.QuestionRankingModel});var F=r("./src/question_comment.ts");r.d(t,"QuestionCommentModel",function(){return F.QuestionCommentModel});var z=r("./src/question_dropdown.ts");r.d(t,"QuestionDropdownModel",function(){return z.QuestionDropdownModel});var Q=r("./src/questionfactory.ts");r.d(t,"QuestionFactory",function(){return Q.QuestionFactory}),r.d(t,"ElementFactory",function(){return Q.ElementFactory});var H=r("./src/question_file.ts");r.d(t,"QuestionFileModel",function(){return H.QuestionFileModel});var U=r("./src/question_html.ts");r.d(t,"QuestionHtmlModel",function(){return U.QuestionHtmlModel});var W=r("./src/question_radiogroup.ts");r.d(t,"QuestionRadiogroupModel",function(){return W.QuestionRadiogroupModel});var $=r("./src/question_rating.ts");r.d(t,"QuestionRatingModel",function(){return $.QuestionRatingModel}),r.d(t,"RenderedRatingItem",function(){return $.RenderedRatingItem});var J=r("./src/question_expression.ts");r.d(t,"QuestionExpressionModel",function(){return J.QuestionExpressionModel});var G=r("./src/question_textbase.ts");r.d(t,"QuestionTextBase",function(){return G.QuestionTextBase});var K=r("./src/question_text.ts");r.d(t,"QuestionTextModel",function(){return K.QuestionTextModel});var Z=r("./src/question_boolean.ts");r.d(t,"QuestionBooleanModel",function(){return Z.QuestionBooleanModel});var X=r("./src/question_imagepicker.ts");r.d(t,"QuestionImagePickerModel",function(){return X.QuestionImagePickerModel}),r.d(t,"ImageItemValue",function(){return X.ImageItemValue});var Y=r("./src/question_image.ts");r.d(t,"QuestionImageModel",function(){return Y.QuestionImageModel});var ee=r("./src/question_signaturepad.ts");r.d(t,"QuestionSignaturePadModel",function(){return ee.QuestionSignaturePadModel});var et=r("./src/question_paneldynamic.ts");r.d(t,"QuestionPanelDynamicModel",function(){return et.QuestionPanelDynamicModel}),r.d(t,"QuestionPanelDynamicItem",function(){return et.QuestionPanelDynamicItem});var er=r("./src/surveytimer.ts");r.d(t,"SurveyTimer",function(){return er.SurveyTimer});var en=r("./src/surveyTimerModel.ts");r.d(t,"SurveyTimerModel",function(){return en.SurveyTimerModel});var eo=r("./src/surveyProgress.ts");r.d(t,"SurveyProgressModel",function(){return eo.SurveyProgressModel});var ei=r("./src/surveyProgressButtons.ts");r.d(t,"SurveyProgressButtonsModel",function(){return ei.SurveyProgressButtonsModel});var es=r("./src/survey.ts");r.d(t,"SurveyModel",function(){return es.SurveyModel});var ea=r("./src/trigger.ts");r.d(t,"SurveyTrigger",function(){return ea.SurveyTrigger}),r.d(t,"SurveyTriggerComplete",function(){return ea.SurveyTriggerComplete}),r.d(t,"SurveyTriggerSetValue",function(){return ea.SurveyTriggerSetValue}),r.d(t,"SurveyTriggerVisible",function(){return ea.SurveyTriggerVisible}),r.d(t,"SurveyTriggerCopyValue",function(){return ea.SurveyTriggerCopyValue}),r.d(t,"SurveyTriggerRunExpression",function(){return ea.SurveyTriggerRunExpression}),r.d(t,"Trigger",function(){return ea.Trigger});var el=r("./src/popup-survey.ts");r.d(t,"PopupSurveyModel",function(){return el.PopupSurveyModel}),r.d(t,"SurveyWindowModel",function(){return el.SurveyWindowModel});var eu=r("./src/textPreProcessor.ts");r.d(t,"TextPreProcessor",function(){return eu.TextPreProcessor});var ec=r("./src/dxSurveyService.ts");r.d(t,"dxSurveyService",function(){return ec.dxSurveyService});var ep=r("./src/localization/english.ts");r.d(t,"englishStrings",function(){return ep.englishStrings});var ed=r("./src/surveyStrings.ts");r.d(t,"surveyLocalization",function(){return ed.surveyLocalization}),r.d(t,"surveyStrings",function(){return ed.surveyStrings});var eh=r("./src/questionCustomWidgets.ts");r.d(t,"QuestionCustomWidget",function(){return eh.QuestionCustomWidget}),r.d(t,"CustomWidgetCollection",function(){return eh.CustomWidgetCollection});var em=r("./src/question_custom.ts");r.d(t,"QuestionCustomModel",function(){return em.QuestionCustomModel}),r.d(t,"QuestionCompositeModel",function(){return em.QuestionCompositeModel}),r.d(t,"ComponentQuestionJSON",function(){return em.ComponentQuestionJSON}),r.d(t,"ComponentCollection",function(){return em.ComponentCollection});var ef=r("./src/stylesmanager.ts");r.d(t,"StylesManager",function(){return ef.StylesManager});var eg=r("./src/list.ts");r.d(t,"ListModel",function(){return eg.ListModel});var ey=r("./src/multiSelectListModel.ts");r.d(t,"MultiSelectListModel",function(){return ey.MultiSelectListModel});var ev=r("./src/popup.ts");r.d(t,"PopupModel",function(){return ev.PopupModel}),r.d(t,"createDialogOptions",function(){return ev.createDialogOptions});var eb=r("./src/popup-view-model.ts");r.d(t,"PopupBaseViewModel",function(){return eb.PopupBaseViewModel});var eC=r("./src/popup-dropdown-view-model.ts");r.d(t,"PopupDropdownViewModel",function(){return eC.PopupDropdownViewModel});var ex=r("./src/popup-modal-view-model.ts");r.d(t,"PopupModalViewModel",function(){return ex.PopupModalViewModel});var ew=r("./src/popup-utils.ts");r.d(t,"createPopupViewModel",function(){return ew.createPopupViewModel}),r.d(t,"createPopupModalViewModel",function(){return ew.createPopupModalViewModel});var e_=r("./src/dropdownListModel.ts");r.d(t,"DropdownListModel",function(){return e_.DropdownListModel});var eP=r("./src/dropdownMultiSelectListModel.ts");r.d(t,"DropdownMultiSelectListModel",function(){return eP.DropdownMultiSelectListModel});var eS=r("./src/question_buttongroup.ts");r.d(t,"QuestionButtonGroupModel",function(){return eS.QuestionButtonGroupModel}),r.d(t,"ButtonGroupItemModel",function(){return eS.ButtonGroupItemModel}),r.d(t,"ButtonGroupItemValue",function(){return eS.ButtonGroupItemValue});var eV=r("./src/utils/devices.ts");r.d(t,"IsMobile",function(){return eV.IsMobile}),r.d(t,"IsTouch",function(){return eV.IsTouch});var eE=r("./src/utils/utils.ts");r.d(t,"confirmAction",function(){return eE.confirmAction}),r.d(t,"detectIEOrEdge",function(){return eE.detectIEOrEdge}),r.d(t,"doKey2ClickUp",function(){return eE.doKey2ClickUp}),r.d(t,"doKey2ClickDown",function(){return eE.doKey2ClickDown}),r.d(t,"doKey2ClickBlur",function(){return eE.doKey2ClickBlur}),r.d(t,"loadFileFromBase64",function(){return eE.loadFileFromBase64}),r.d(t,"increaseHeightByContent",function(){return eE.increaseHeightByContent}),r.d(t,"createSvg",function(){return eE.createSvg}),r.d(t,"sanitizeEditableContent",function(){return eE.sanitizeEditableContent});var eT=r("./src/utils/cssClassBuilder.ts");r.d(t,"CssClassBuilder",function(){return eT.CssClassBuilder});var eO=r("./src/defaultCss/cssstandard.ts");r.d(t,"surveyCss",function(){return eO.surveyCss});var eR=r("./src/dragdrop/survey-elements.ts");r.d(t,"DragDropSurveyElements",function(){return eR.DragDropSurveyElements});var eI=r("./src/dragdrop/choices.ts");
1function ek(e,t){n!=e&&console.error("survey-core has version '"+n+"' and "+t+" has version '"+e+"'. SurveyJS libraries should have the same versions to work correctly.")}r.d(t,"DragDropChoices",function(){return eI.DragDropChoices}),n="".concat("1.9.65")},
1"./src/entries/core-wo-model.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/entries/chunks/model.ts");r.d(t,"Version",function(){return n.Version}),r.d(t,"checkLibraryVersion",function(){return n.checkLibraryVersion}),r.d(t,"settings",function(){return n.settings}),r.d(t,"Helpers",function(){return n.Helpers}),r.d(t,"AnswerCountValidator",function(){return n.AnswerCountValidator}),r.d(t,"EmailValidator",function(){return n.EmailValidator}),r.d(t,"NumericValidator",function(){return n.NumericValidator}),r.d(t,"RegexValidator",function(){return n.RegexValidator}),r.d(t,"SurveyValidator",function(){return n.SurveyValidator}),r.d(t,"TextValidator",function(){return n.TextValidator}),r.d(t,"ValidatorResult",function(){return n.ValidatorResult}),r.d(t,"ExpressionValidator",function(){return n.ExpressionValidator}),r.d(t,"ValidatorRunner",function(){return n.ValidatorRunner}),r.d(t,"ItemValue",function(){return n.ItemValue}),r.d(t,"Base",function(){return n.Base}),r.d(t,"Event",function(){return n.Event}),r.d(t,"EventBase",function(){return n.EventBase}),r.d(t,"ArrayChanges",function(){return n.ArrayChanges}),r.d(t,"ComputedUpdater",function(){return n.ComputedUpdater}),r.d(t,"SurveyError",function(){return n.SurveyError}),r.d(t,"SurveyElementCore",function(){return n.SurveyElementCore}),r.d(t,"SurveyElement",function(){return n.SurveyElement}),r.d(t,"DragTypeOverMeEnum",function(){return n.DragTypeOverMeEnum}),r.d(t,"CalculatedValue",function(){return n.CalculatedValue}),r.d(t,"CustomError",function(){return n.CustomError}),r.d(t,"AnswerRequiredError",function(){return n.AnswerRequiredError}),r.d(t,"OneAnswerRequiredError",function(){return n.OneAnswerRequiredError}),r.d(t,"RequreNumericError",function(){return n.RequreNumericError}),r.d(t,"ExceedSizeError",function(){return n.ExceedSizeError}),r.d(t,"LocalizableString",function(){return n.LocalizableString}),r.d(t,"LocalizableStrings",function(){return n.LocalizableStrings}),r.d(t,"HtmlConditionItem",function(){return n.HtmlConditionItem}),r.d(t,"UrlConditionItem",function(){return n.UrlConditionItem}),r.d(t,"ChoicesRestful",function(){return n.ChoicesRestful}),r.d(t,"ChoicesRestfull",function(){return n.ChoicesRestfull}),r.d(t,"FunctionFactory",function(){return n.FunctionFactory}),r.d(t,"registerFunction",function(){return n.registerFunction}),r.d(t,"ConditionRunner",function(){return n.ConditionRunner}),r.d(t,"ExpressionRunner",function(){return n.ExpressionRunner}),r.d(t,"ExpressionExecutor",function(){return n.ExpressionExecutor}),r.d(t,"Operand",function(){return n.Operand}),r.d(t,"Const",function(){return n.Const}),r.d(t,"BinaryOperand",function(){return n.BinaryOperand}),r.d(t,"Variable",function(){return n.Variable}),r.d(t,"FunctionOperand",function(){return n.FunctionOperand}),r.d(t,"ArrayOperand",function(){return n.ArrayOperand}),r.d(t,"UnaryOperand",function(){return n.UnaryOperand}),r.d(t,"ConditionsParser",function(){return n.ConditionsParser}),r.d(t,"ProcessValue",function(){return n.ProcessValue}),r.d(t,"JsonError",function(){return n.JsonError}),r.d(t,"JsonIncorrectTypeError",function(){return n.JsonIncorrectTypeError}),r.d(t,"JsonMetadata",function(){return n.JsonMetadata}),r.d(t,"JsonMetadataClass",function(){return n.JsonMetadataClass}),r.d(t,"JsonMissingTypeError",function(){return n.JsonMissingTypeError}),r.d(t,"JsonMissingTypeErrorBase",function(){return n.JsonMissingTypeErrorBase}),r.d(t,"JsonObject",function(){return n.JsonObject}),r.d(t,"JsonObjectProperty",function(){return n.JsonObjectProperty}),r.d(t,"JsonRequiredPropertyError",function(){return n.JsonRequiredPropertyError}),r.d(t,"JsonUnknownPropertyError",function(){return n.JsonUnknownPropertyError}),r.d(t,"Serializer",function(){return n.Serializer}),r.d(t,"property",function(){return n.property}),r.d(t,"propertyArray",function(){return n.propertyArray}),r.d(t,"MatrixDropdownCell",function(){return n.MatrixDropdownCell}),r.d(t,"MatrixDropdownRowModelBase",function(){return n.MatrixDropdownRowModelBase}),r.d(t,"QuestionMatrixDropdownModelBase",function(){return n.QuestionMatrixDropdownModelBase}),r.d(t,"MatrixDropdownColumn",function(){return n.MatrixDropdownColumn}),r.d(t,"matrixDropdownColumnTypes",function(){return n.matrixDropdownColumnTypes}),r.d(t,"QuestionMatrixDropdownRenderedCell",function(){return n.QuestionMatrixDropdownRenderedCell}),r.d(t,"QuestionMatrixDropdownRenderedRow",function(){return n.QuestionMatrixDropdownRenderedRow}),r.d(t,"QuestionMatrixDropdownRenderedTable",function(){return n.QuestionMatrixDropdownRenderedTable}),r.d(t,"MatrixDropdownRowModel",function(){return n.MatrixDropdownRowModel}),r.d(t,"QuestionMatrixDropdownModel",function(){return n.QuestionMatrixDropdownModel}),r.d(t,"MatrixDynamicRowModel",function(){return n.MatrixDynamicRowModel}),r.d(t,"QuestionMatrixDynamicModel",function(){return n.QuestionMatrixDynamicModel}),r.d(t,"MatrixRowModel",function(){return n.MatrixRowModel}),r.d(t,"MatrixCells",function(){return n.MatrixCells}),r.d(t,"QuestionMatrixModel",function(){return n.QuestionMatrixModel}),r.d(t,"QuestionMatrixBaseModel",function(){return n.QuestionMatrixBaseModel}),r.d(t,"MultipleTextItemModel",function(){return n.MultipleTextItemModel}),r.d(t,"QuestionMultipleTextModel",function(){return n.QuestionMultipleTextModel}),r.d(t,"PanelModel",function(){return n.PanelModel}),r.d(t,"PanelModelBase",function(){return n.PanelModelBase}),r.d(t,"QuestionRowModel",function(){return n.QuestionRowModel}),r.d(t,"FlowPanelModel",function(){return n.FlowPanelModel}),r.d(t,"PageModel",function(){return n.PageModel}),r.d(t,"DefaultTitleModel",function(){return n.DefaultTitleModel}),r.d(t,"Question",function(){return n.Question}),r.d(t,"QuestionNonValue",function(){return n.QuestionNonValue}),r.d(t,"QuestionEmptyModel",function(){return n.QuestionEmptyModel}),r.d(t,"QuestionCheckboxBase",function(){return n.QuestionCheckboxBase}),r.d(t,"QuestionSelectBase",function(){return n.QuestionSelectBase}
1),r.d(t,"QuestionCheckboxModel",function(){return n.QuestionCheckboxModel}),r.d(t,"QuestionTagboxModel",function(){return n.QuestionTagboxModel}),r.d(t,"QuestionRankingModel",function(){return n.QuestionRankingModel}),r.d(t,"QuestionCommentModel",function(){return n.QuestionCommentModel}),r.d(t,"QuestionDropdownModel",function(){return n.QuestionDropdownModel}),r.d(t,"QuestionFactory",function(){return n.QuestionFactory}),r.d(t,"ElementFactory",function(){return n.ElementFactory}),r.d(t,"QuestionFileModel",function(){return n.QuestionFileModel}),r.d(t,"QuestionHtmlModel",function(){return n.QuestionHtmlModel}),r.d(t,"QuestionRadiogroupModel",function(){return n.QuestionRadiogroupModel}),r.d(t,"QuestionRatingModel",function(){return n.QuestionRatingModel}),r.d(t,"RenderedRatingItem",function(){return n.RenderedRatingItem}),r.d(t,"QuestionExpressionModel",function(){return n.QuestionExpressionModel}),r.d(t,"QuestionTextBase",function(){return n.QuestionTextBase}),r.d(t,"QuestionTextModel",function(){return n.QuestionTextModel}),r.d(t,"QuestionBooleanModel",function(){return n.QuestionBooleanModel}),r.d(t,"QuestionImagePickerModel",function(){return n.QuestionImagePickerModel}),r.d(t,"ImageItemValue",function(){return n.ImageItemValue}),r.d(t,"QuestionImageModel",function(){return n.QuestionImageModel}),r.d(t,"QuestionSignaturePadModel",function(){return n.QuestionSignaturePadModel}),r.d(t,"QuestionPanelDynamicModel",function(){return n.QuestionPanelDynamicModel}),r.d(t,"QuestionPanelDynamicItem",function(){return n.QuestionPanelDynamicItem}),r.d(t,"SurveyTimer",function(){return n.SurveyTimer}),r.d(t,"SurveyTimerModel",function(){return n.SurveyTimerModel}),r.d(t,"SurveyProgressModel",function(){return n.SurveyProgressModel}),r.d(t,"SurveyProgressButtonsModel",function(){return n.SurveyProgressButtonsModel}),r.d(t,"SurveyModel",function(){return n.SurveyModel}),r.d(t,"SurveyTrigger",function(){return n.SurveyTrigger}),r.d(t,"SurveyTriggerComplete",function(){return n.SurveyTriggerComplete}),r.d(t,"SurveyTriggerSetValue",function(){return n.SurveyTriggerSetValue}),r.d(t,"SurveyTriggerVisible",function(){return n.SurveyTriggerVisible}),r.d(t,"SurveyTriggerCopyValue",function(){return n.SurveyTriggerCopyValue}),r.d(t,"SurveyTriggerRunExpression",function(){return n.SurveyTriggerRunExpression}),r.d(t,"Trigger",function(){return n.Trigger}),r.d(t,"PopupSurveyModel",function(){return n.PopupSurveyModel}),r.d(t,"SurveyWindowModel",function(){return n.SurveyWindowModel}),r.d(t,"TextPreProcessor",function(){return n.TextPreProcessor}),r.d(t,"dxSurveyService",function(){return n.dxSurveyService}),r.d(t,"englishStrings",function(){return n.englishStrings}),r.d(t,"surveyLocalization",function(){return n.surveyLocalization}),r.d(t,"surveyStrings",function(){return n.surveyStrings}),r.d(t,"QuestionCustomWidget",function(){return n.QuestionCustomWidget}),r.d(t,"CustomWidgetCollection",function(){return n.CustomWidgetCollection}),r.d(t,"QuestionCustomModel",function(){return n.QuestionCustomModel}),r.d(t,"QuestionCompositeModel",function(){return n.QuestionCompositeModel}),r.d(t,"ComponentQuestionJSON",function(){return n.ComponentQuestionJSON}),r.d(t,"ComponentCollection",function(){return n.ComponentCollection}),r.d(t,"StylesManager",function(){return n.StylesManager}),r.d(t,"ListModel",function(){return n.ListModel}),r.d(t,"MultiSelectListModel",function(){return n.MultiSelectListModel}),r.d(t,"PopupModel",function(){return n.PopupModel}),r.d(t,"createDialogOptions",function(){return n.createDialogOptions}),r.d(t,"PopupBaseViewModel",function(){return n.PopupBaseViewModel}),r.d(t,"PopupDropdownViewModel",function(){return n.PopupDropdownViewModel}),r.d(t,"PopupModalViewModel",function(){return n.PopupModalViewModel}),r.d(t,"createPopupViewModel",function(){return n.createPopupViewModel}),r.d(t,"createPopupModalViewModel",function(){return n.createPopupModalViewModel}),r.d(t,"DropdownListModel",function(){return n.DropdownListModel}),r.d(t,"DropdownMultiSelectListModel",function(){return n.DropdownMultiSelectListModel}),r.d(t,"QuestionButtonGroupModel",function(){return n.QuestionButtonGroupModel}),r.d(t,"ButtonGroupItemModel",function(){return n.ButtonGroupItemModel}),r.d(t,"ButtonGroupItemValue",function(){return n.ButtonGroupItemValue}),r.d(t,"IsMobile",function(){return n.IsMobile}),r.d(t,"IsTouch",function(){return n.IsTouch}),r.d(t,"confirmAction",function(){return n.confirmAction}),r.d(t,"detectIEOrEdge",function(){return n.detectIEOrEdge}),r.d(t,"doKey2ClickUp",function(){return n.doKey2ClickUp}),r.d(t,"doKey2ClickDown",function(){return n.doKey2ClickDown}),r.d(t,"doKey2ClickBlur",function(){return n.doKey2ClickBlur}),r.d(t,"loadFileFromBase64",function(){return n.loadFileFromBase64}),r.d(t,"increaseHeightByContent",function(){return n.increaseHeightByContent}),r.d(t,"createSvg",function(){return n.createSvg}),r.d(t,"sanitizeEditableContent",function(){return n.sanitizeEditableContent}),r.d(t,"CssClassBuilder",function(){return n.CssClassBuilder}),r.d(t,"surveyCss",function(){return n.surveyCss}),r.d(t,"DragDropSurveyElements",function(){return n.DragDropSurveyElements}),r.d(t,"DragDropChoices",function(){return n.DragDropChoices});var o=r("./src/defaultCss/cssstandard.ts");r.d(t,"defaultStandardCss",function(){return o.defaultStandardCss});var i=r("./src/defaultCss/cssbootstrap.ts");r.d(t,"defaultBootstrapCss",function(){return i.defaultBootstrapCss});var s=r("./src/defaultCss/cssbootstrapmaterial.ts");r.d(t,"defaultBootstrapMaterialCss",function(){return s.defaultBootstrapMaterialCss});var a=r("./src/defaultCss/defaultV2Css.ts");r.d(t,"defaultV2Css",function(){return a.defaultV2Css});var l=r("./src/defaultCss/cssmodern.ts");r.d(t,"modernCss",function(){return l.modernCss});var u=r("./src/svgbundle.ts");r.d(t,"SvgIconRegistry",function(){return u.SvgIconRegistry}),r.d(t,"SvgRegistry",function(){return u.SvgRegistry}),r.d(t,"SvgBundleViewModel",function(){return u.SvgBundleViewModel});var c=r("./src/rendererFactory.ts");r.d(t,"RendererFactory",function(){return c.RendererFactory});var p=r("./src/utils/responsivity-manager.ts");r.d(t,"ResponsivityManager",function(){return p.ResponsivityManager}),r.d(t,"VerticalResponsivityManager",function(){return p.VerticalResponsivityManager});var d=r("./src/utils/utils.ts");r.d(t,"unwrap",function(){return d.unwrap}),r.d(t,"getOriginalEvent",function(){return d.getOriginalEvent});var h=r("./src/actions/action.ts");r.d(t,"createDropdownActionModel",function(){return h.createDropdownActionModel}),r.d(t,"createDropdownActionModelAdvanced",function(){return h.createDropdownActionModelAdvanced}),r.d(t,"Action",function(){return h.Action}),r.d(t,"ActionDropdownViewModel",function(){return h.ActionDropdownViewModel});var m=r("./src/actions/adaptive-container.ts");r.d(t,"AdaptiveActionContainer",function(){return m.AdaptiveActionContainer});var f=r("./src/actions/container.ts");r.d(t,"defaultActionBarCss",function(){return f.defaultActionBarCss}),r.d(t,"ActionContainer",function(){return f.ActionContainer});var g=r("./src/utils/tooltip.ts");r.d(t,"TooltipManager",function(){return g.TooltipManager});var y=r("./src/utils/dragOrClickHelper.ts");r.d(t,"DragOrClickHelper",function(){return y.DragOrClickHelper})},
1"./src/entries/core.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/entries/core-wo-model.ts");r.d(t,"Version",function(){return n.Version}),r.d(t,"checkLibraryVersion",function(){return n.checkLibraryVersion}),r.d(t,"settings",function(){return n.settings}),r.d(t,"Helpers",function(){return n.Helpers}),r.d(t,"AnswerCountValidator",function(){return n.AnswerCountValidator}),r.d(t,"EmailValidator",function(){return n.EmailValidator}),r.d(t,"NumericValidator",function(){return n.NumericValidator}),r.d(t,"RegexValidator",function(){return n.RegexValidator}),r.d(t,"SurveyValidator",function(){return n.SurveyValidator}),r.d(t,"TextValidator",function(){return n.TextValidator}),r.d(t,"ValidatorResult",function(){return n.ValidatorResult}),r.d(t,"ExpressionValidator",function(){return n.ExpressionValidator}),r.d(t,"ValidatorRunner",function(){return n.ValidatorRunner}),r.d(t,"ItemValue",function(){return n.ItemValue}),r.d(t,"Base",function(){return n.Base}),r.d(t,"Event",function(){return n.Event}),r.d(t,"EventBase",function(){return n.EventBase}),r.d(t,"ArrayChanges",function(){return n.ArrayChanges}),r.d(t,"ComputedUpdater",function(){return n.ComputedUpdater}),r.d(t,"SurveyError",function(){return n.SurveyError}),r.d(t,"SurveyElementCore",function(){return n.SurveyElementCore}),r.d(t,"SurveyElement",function(){return n.SurveyElement}),r.d(t,"DragTypeOverMeEnum",function(){return n.DragTypeOverMeEnum}),r.d(t,"CalculatedValue",function(){return n.CalculatedValue}),r.d(t,"CustomError",function(){return n.CustomError}),r.d(t,"AnswerRequiredError",function(){return n.AnswerRequiredError}),r.d(t,"OneAnswerRequiredError",function(){return n.OneAnswerRequiredError}),r.d(t,"RequreNumericError",function(){return n.RequreNumericError}),r.d(t,"ExceedSizeError",function(){return n.ExceedSizeError}),r.d(t,"LocalizableString",function(){return n.LocalizableString}),r.d(t,"LocalizableStrings",function(){return n.LocalizableStrings}),r.d(t,"HtmlConditionItem",function(){return n.HtmlConditionItem}),r.d(t,"UrlConditionItem",function(){return n.UrlConditionItem}),r.d(t,"ChoicesRestful",function(){return n.ChoicesRestful}),r.d(t,"ChoicesRestfull",function(){return n.ChoicesRestfull}),r.d(t,"FunctionFactory",function(){return n.FunctionFactory}),r.d(t,"registerFunction",function(){return n.registerFunction}),r.d(t,"ConditionRunner",function(){return n.ConditionRunner}),r.d(t,"ExpressionRunner",function(){return n.ExpressionRunner}),r.d(t,"ExpressionExecutor",function(){return n.ExpressionExecutor}),r.d(t,"Operand",function(){return n.Operand}),r.d(t,"Const",function(){return n.Const}),r.d(t,"BinaryOperand",function(){return n.BinaryOperand}),r.d(t,"Variable",function(){return n.Variable}),r.d(t,"FunctionOperand",function(){return n.FunctionOperand}),r.d(t,"ArrayOperand",function(){return n.ArrayOperand}),r.d(t,"UnaryOperand",function(){return n.UnaryOperand}),r.d(t,"ConditionsParser",function(){return n.ConditionsParser}),r.d(t,"ProcessValue",function(){return n.ProcessValue}),r.d(t,"JsonError",function(){return n.JsonError}),r.d(t,"JsonIncorrectTypeError",function(){return n.JsonIncorrectTypeError}),r.d(t,"JsonMetadata",function(){return n.JsonMetadata}),r.d(t,"JsonMetadataClass",function(){return n.JsonMetadataClass}),r.d(t,"JsonMissingTypeError",function(){return n.JsonMissingTypeError}),r.d(t,"JsonMissingTypeErrorBase",function(){return n.JsonMissingTypeErrorBase}),r.d(t,"JsonObject",function(){return n.JsonObject}),r.d(t,"JsonObjectProperty",function(){return n.JsonObjectProperty}),r.d(t,"JsonRequiredPropertyError",function(){return n.JsonRequiredPropertyError}),r.d(t,"JsonUnknownPropertyError",function(){return n.JsonUnknownPropertyError}),r.d(t,"Serializer",function(){return n.Serializer}),r.d(t,"property",function(){return n.property}),r.d(t,"propertyArray",function(){return n.propertyArray}),r.d(t,"MatrixDropdownCell",function(){return n.MatrixDropdownCell}),r.d(t,"MatrixDropdownRowModelBase",function(){return n.MatrixDropdownRowModelBase}),r.d(t,"QuestionMatrixDropdownModelBase",function(){return n.QuestionMatrixDropdownModelBase}),r.d(t,"MatrixDropdownColumn",function(){return n.MatrixDropdownColumn}),r.d(t,"matrixDropdownColumnTypes",function(){return n.matrixDropdownColumnTypes}),r.d(t,"QuestionMatrixDropdownRenderedCell",function(){return n.QuestionMatrixDropdownRenderedCell}),r.d(t,"QuestionMatrixDropdownRenderedRow",function(){return n.QuestionMatrixDropdownRenderedRow}),r.d(t,"QuestionMatrixDropdownRenderedTable",function(){return n.QuestionMatrixDropdownRenderedTable}),r.d(t,"MatrixDropdownRowModel",function(){return n.MatrixDropdownRowModel}),r.d(t,"QuestionMatrixDropdownModel",function(){return n.QuestionMatrixDropdownModel}),r.d(t,"MatrixDynamicRowModel",function(){return n.MatrixDynamicRowModel}),r.d(t,"QuestionMatrixDynamicModel",function(){return n.QuestionMatrixDynamicModel}),r.d(t,"MatrixRowModel",function(){return n.MatrixRowModel}),r.d(t,"MatrixCells",function(){return n.MatrixCells}),r.d(t,"QuestionMatrixModel",function(){return n.QuestionMatrixModel}),r.d(t,"QuestionMatrixBaseModel",function(){return n.QuestionMatrixBaseModel}),r.d(t,"MultipleTextItemModel",function(){return n.MultipleTextItemModel}),r.d(t,"QuestionMultipleTextModel",function(){return n.QuestionMultipleTextModel}),r.d(t,"PanelModel",function(){return n.PanelModel}),r.d(t,"PanelModelBase",function(){return n.PanelModelBase}),r.d(t,"QuestionRowModel",function(){return n.QuestionRowModel}),r.d(t,"FlowPanelModel",function(){return n.FlowPanelModel}),r.d(t,"PageModel",function(){return n.PageModel}),r.d(t,"DefaultTitleModel",function(){return n.DefaultTitleModel}),r.d(t,"Question",function(){return n.Question}),r.d(t,"QuestionNonValue",function(){return n.QuestionNonValue}),r.d(t,"QuestionEmptyModel",function(){return n.QuestionEmptyModel}),r.d(t,"QuestionCheckboxBase",function(){return n.QuestionCheckboxBase}),r.d(t,"QuestionSelectBase",function(){return n.QuestionSelectBase}
1),r.d(t,"QuestionCheckboxModel",function(){return n.QuestionCheckboxModel}),r.d(t,"QuestionTagboxModel",function(){return n.QuestionTagboxModel}),r.d(t,"QuestionRankingModel",function(){return n.QuestionRankingModel}),r.d(t,"QuestionCommentModel",function(){return n.QuestionCommentModel}),r.d(t,"QuestionDropdownModel",function(){return n.QuestionDropdownModel}),r.d(t,"QuestionFactory",function(){return n.QuestionFactory}),r.d(t,"ElementFactory",function(){return n.ElementFactory}),r.d(t,"QuestionFileModel",function(){return n.QuestionFileModel}),r.d(t,"QuestionHtmlModel",function(){return n.QuestionHtmlModel}),r.d(t,"QuestionRadiogroupModel",function(){return n.QuestionRadiogroupModel}),r.d(t,"QuestionRatingModel",function(){return n.QuestionRatingModel}),r.d(t,"RenderedRatingItem",function(){return n.RenderedRatingItem}),r.d(t,"QuestionExpressionModel",function(){return n.QuestionExpressionModel}),r.d(t,"QuestionTextBase",function(){return n.QuestionTextBase}),r.d(t,"QuestionTextModel",function(){return n.QuestionTextModel}),r.d(t,"QuestionBooleanModel",function(){return n.QuestionBooleanModel}),r.d(t,"QuestionImagePickerModel",function(){return n.QuestionImagePickerModel}),r.d(t,"ImageItemValue",function(){return n.ImageItemValue}),r.d(t,"QuestionImageModel",function(){return n.QuestionImageModel}),r.d(t,"QuestionSignaturePadModel",function(){return n.QuestionSignaturePadModel}),r.d(t,"QuestionPanelDynamicModel",function(){return n.QuestionPanelDynamicModel}),r.d(t,"QuestionPanelDynamicItem",function(){return n.QuestionPanelDynamicItem}),r.d(t,"SurveyTimer",function(){return n.SurveyTimer}),r.d(t,"SurveyTimerModel",function(){return n.SurveyTimerModel}),r.d(t,"SurveyProgressModel",function(){return n.SurveyProgressModel}),r.d(t,"SurveyProgressButtonsModel",function(){return n.SurveyProgressButtonsModel}),r.d(t,"SurveyModel",function(){return n.SurveyModel}),r.d(t,"SurveyTrigger",function(){return n.SurveyTrigger}),r.d(t,"SurveyTriggerComplete",function(){return n.SurveyTriggerComplete}),r.d(t,"SurveyTriggerSetValue",function(){return n.SurveyTriggerSetValue}),r.d(t,"SurveyTriggerVisible",function(){return n.SurveyTriggerVisible}),r.d(t,"SurveyTriggerCopyValue",function(){return n.SurveyTriggerCopyValue}),r.d(t,"SurveyTriggerRunExpression",function(){return n.SurveyTriggerRunExpression}),r.d(t,"Trigger",function(){return n.Trigger}),r.d(t,"PopupSurveyModel",function(){return n.PopupSurveyModel}),r.d(t,"SurveyWindowModel",function(){return n.SurveyWindowModel}),r.d(t,"TextPreProcessor",function(){return n.TextPreProcessor}),r.d(t,"dxSurveyService",function(){return n.dxSurveyService}),r.d(t,"englishStrings",function(){return n.englishStrings}),r.d(t,"surveyLocalization",function(){return n.surveyLocalization}),r.d(t,"surveyStrings",function(){return n.surveyStrings}),r.d(t,"QuestionCustomWidget",function(){return n.QuestionCustomWidget}),r.d(t,"CustomWidgetCollection",function(){return n.CustomWidgetCollection}),r.d(t,"QuestionCustomModel",function(){return n.QuestionCustomModel}),r.d(t,"QuestionCompositeModel",function(){return n.QuestionCompositeModel}),r.d(t,"ComponentQuestionJSON",function(){return n.ComponentQuestionJSON}),r.d(t,"ComponentCollection",function(){return n.ComponentCollection}),r.d(t,"StylesManager",function(){return n.StylesManager}),r.d(t,"ListModel",function(){return n.ListModel}),r.d(t,"MultiSelectListModel",function(){return n.MultiSelectListModel}),r.d(t,"PopupModel",function(){return n.PopupModel}),r.d(t,"createDialogOptions",function(){return n.createDialogOptions}),r.d(t,"PopupBaseViewModel",function(){return n.PopupBaseViewModel}),r.d(t,"PopupDropdownViewModel",function(){return n.PopupDropdownViewModel}),r.d(t,"PopupModalViewModel",function(){return n.PopupModalViewModel}),r.d(t,"createPopupViewModel",function(){return n.createPopupViewModel}),r.d(t,"createPopupModalViewModel",function(){return n.createPopupModalViewModel}),r.d(t,"DropdownListModel",function(){return n.DropdownListModel}),r.d(t,"DropdownMultiSelectListModel",function(){return n.DropdownMultiSelectListModel}),r.d(t,"QuestionButtonGroupModel",function(){return n.QuestionButtonGroupModel}),r.d(t,"ButtonGroupItemModel",function(){return n.ButtonGroupItemModel}),r.d(t,"ButtonGroupItemValue",function(){return n.ButtonGroupItemValue}),r.d(t,"IsMobile",function(){return n.IsMobile}),r.d(t,"IsTouch",function(){return n.IsTouch}),r.d(t,"confirmAction",function(){return n.confirmAction}),r.d(t,"detectIEOrEdge",function(){return n.detectIEOrEdge}),r.d(t,"doKey2ClickUp",function(){return n.doKey2ClickUp}),r.d(t,"doKey2ClickDown",function(){return n.doKey2ClickDown}),r.d(t,"doKey2ClickBlur",function(){return n.doKey2ClickBlur}),r.d(t,"loadFileFromBase64",function(){return n.loadFileFromBase64}),r.d(t,"increaseHeightByContent",function(){return n.increaseHeightByContent}),r.d(t,"createSvg",function(){return n.createSvg}),r.d(t,"sanitizeEditableContent",function(){return n.sanitizeEditableContent}),r.d(t,"CssClassBuilder",function(){return n.CssClassBuilder}),r.d(t,"surveyCss",function(){return n.surveyCss}),r.d(t,"DragDropSurveyElements",function(){return n.DragDropSurveyElements}),r.d(t,"DragDropChoices",function(){return n.DragDropChoices}),r.d(t,"defaultStandardCss",function(){return n.defaultStandardCss}),r.d(t,"defaultBootstrapCss",function(){return n.defaultBootstrapCss}),r.d(t,"defaultBootstrapMaterialCss",function(){return n.defaultBootstrapMaterialCss}),r.d(t,"defaultV2Css",function(){return n.defaultV2Css}),r.d(t,"modernCss",function(){return n.modernCss}),r.d(t,"SvgIconRegistry",function(){return n.SvgIconRegistry}),r.d(t,"SvgRegistry",function(){return n.SvgRegistry}),r.d(t,"SvgBundleViewModel",function(){return n.SvgBundleViewModel}),r.d(t,"RendererFactory",function(){return n.RendererFactory}),r.d(t,"ResponsivityManager",function(){return n.ResponsivityManager}),r.d(t,"VerticalResponsivityManager",function(){return n.VerticalResponsivityManager}),r.d(t,"unwrap",function(){return n.unwrap}),r.d(t,"getOriginalEvent",function(){return n.getOriginalEvent}),r.d(t,"createDropdownActionModel",function(){return n.createDropdownActionModel}),r.d(t,"createDropdownActionModelAdvanced",function(){return n.createDropdownActionModelAdvanced}),r.d(t,"Action",function(){return n.Action}),r.d(t,"ActionDropdownViewModel",function(){return n.ActionDropdownViewModel}),r.d(t,"AdaptiveActionContainer",function(){return n.AdaptiveActionContainer}),r.d(t,"defaultActionBarCss",function(){return n.defaultActionBarCss}),r.d(t,"ActionContainer",function(){return n.ActionContainer}),r.d(t,"TooltipManager",function(){return n.TooltipManager}),r.d(t,"DragOrClickHelper",function(){return n.DragOrClickHelper});var o=r("./src/survey.ts");r.d(t,"Model",function(){return o.SurveyModel})},
1"./src/entries/react-ui-model.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/react/reactSurvey.tsx");r.d(t,"Survey",function(){return n.Survey}),r.d(t,"attachKey2click",function(){return n.attachKey2click});var o=r("./src/react/reactsurveymodel.tsx");r.d(t,"ReactSurveyElementsWrapper",function(){return o.ReactSurveyElementsWrapper});var i=r("./src/react/reactSurveyNavigationBase.tsx");r.d(t,"SurveyNavigationBase",function(){return i.SurveyNavigationBase});var s=r("./src/react/reacttimerpanel.tsx");r.d(t,"SurveyTimerPanel",function(){return s.SurveyTimerPanel});var a=r("./src/react/page.tsx");r.d(t,"SurveyPage",function(){return a.SurveyPage});var l=r("./src/react/row.tsx");r.d(t,"SurveyRow",function(){return l.SurveyRow});var u=r("./src/react/panel.tsx");r.d(t,"SurveyPanel",function(){return u.SurveyPanel});var c=r("./src/react/flow-panel.tsx");r.d(t,"SurveyFlowPanel",function(){return c.SurveyFlowPanel});var p=r("./src/react/reactquestion.tsx");r.d(t,"SurveyQuestion",function(){return p.SurveyQuestion}),r.d(t,"SurveyElementErrors",function(){return p.SurveyElementErrors}),r.d(t,"SurveyQuestionAndErrorsCell",function(){return p.SurveyQuestionAndErrorsCell});var d=r("./src/react/reactquestion_element.tsx");r.d(t,"ReactSurveyElement",function(){return d.ReactSurveyElement}),r.d(t,"SurveyElementBase",function(){return d.SurveyElementBase}),r.d(t,"SurveyQuestionElementBase",function(){return d.SurveyQuestionElementBase});var h=r("./src/react/reactquestion_comment.tsx");r.d(t,"SurveyQuestionCommentItem",function(){return h.SurveyQuestionCommentItem}),r.d(t,"SurveyQuestionComment",function(){return h.SurveyQuestionComment});var m=r("./src/react/reactquestion_checkbox.tsx");r.d(t,"SurveyQuestionCheckbox",function(){return m.SurveyQuestionCheckbox}),r.d(t,"SurveyQuestionCheckboxItem",function(){return m.SurveyQuestionCheckboxItem});var f=r("./src/react/reactquestion_ranking.tsx");r.d(t,"SurveyQuestionRanking",function(){return f.SurveyQuestionRanking}),r.d(t,"SurveyQuestionRankingItem",function(){return f.SurveyQuestionRankingItem});var g=r("./src/react/tagbox-filter.tsx");r.d(t,"TagboxFilterString",function(){return g.TagboxFilterString});var y=r("./src/react/dropdown-item.tsx");r.d(t,"SurveyQuestionOptionItem",function(){return y.SurveyQuestionOptionItem});var v=r("./src/react/dropdown-base.tsx");r.d(t,"SurveyQuestionDropdownBase",function(){return v.SurveyQuestionDropdownBase});var b=r("./src/react/reactquestion_dropdown.tsx");r.d(t,"SurveyQuestionDropdown",function(){return b.SurveyQuestionDropdown});var C=r("./src/react/tagbox-item.tsx");r.d(t,"SurveyQuestionTagboxItem",function(){return C.SurveyQuestionTagboxItem});var x=r("./src/react/reactquestion_tagbox.tsx");r.d(t,"SurveyQuestionTagbox",function(){return x.SurveyQuestionTagbox});var w=r("./src/react/dropdown-select.tsx");r.d(t,"SurveyQuestionDropdownSelect",function(){return w.SurveyQuestionDropdownSelect});var _=r("./src/react/reactquestion_matrix.tsx");r.d(t,"SurveyQuestionMatrix",function(){return _.SurveyQuestionMatrix}),r.d(t,"SurveyQuestionMatrixRow",function(){return _.SurveyQuestionMatrixRow});var P=r("./src/react/reactquestion_html.tsx");r.d(t,"SurveyQuestionHtml",function(){return P.SurveyQuestionHtml});var S=r("./src/react/reactquestion_file.tsx");r.d(t,"SurveyQuestionFile",function(){return S.SurveyQuestionFile});var V=r("./src/react/reactquestion_multipletext.tsx");r.d(t,"SurveyQuestionMultipleText",function(){return V.SurveyQuestionMultipleText});var E=r("./src/react/reactquestion_radiogroup.tsx");r.d(t,"SurveyQuestionRadiogroup",function(){return E.SurveyQuestionRadiogroup}),r.d(t,"SurveyQuestionRadioItem",function(){return E.SurveyQuestionRadioItem});var T=r("./src/react/reactquestion_text.tsx");r.d(t,"SurveyQuestionText",function(){return T.SurveyQuestionText});var O=r("./src/react/boolean.tsx");r.d(t,"SurveyQuestionBoolean",function(){return O.SurveyQuestionBoolean});var R=r("./src/react/boolean-checkbox.tsx");r.d(t,"SurveyQuestionBooleanCheckbox",function(){return R.SurveyQuestionBooleanCheckbox});var I=r("./src/react/boolean-radio.tsx");r.d(t,"SurveyQuestionBooleanRadio",function(){return I.SurveyQuestionBooleanRadio});var k=r("./src/react/reactquestion_empty.tsx");r.d(t,"SurveyQuestionEmpty",function(){return k.SurveyQuestionEmpty});
1var q=r("./src/react/reactquestion_matrixdropdownbase.tsx");r.d(t,"SurveyQuestionMatrixDropdownCell",function(){return q.SurveyQuestionMatrixDropdownCell}),r.d(t,"SurveyQuestionMatrixDropdownBase",function(){return q.SurveyQuestionMatrixDropdownBase});var D=r("./src/react/reactquestion_matrixdropdown.tsx");r.d(t,"SurveyQuestionMatrixDropdown",function(){return D.SurveyQuestionMatrixDropdown});var j=r("./src/react/reactquestion_matrixdynamic.tsx");r.d(t,"SurveyQuestionMatrixDynamic",function(){return j.SurveyQuestionMatrixDynamic}),r.d(t,"SurveyQuestionMatrixDynamicAddButton",function(){return j.SurveyQuestionMatrixDynamicAddButton});var M=r("./src/react/reactquestion_paneldynamic.tsx");r.d(t,"SurveyQuestionPanelDynamic",function(){return M.SurveyQuestionPanelDynamic});var L=r("./src/react/reactSurveyProgress.tsx");r.d(t,"SurveyProgress",function(){return L.SurveyProgress});var A=r("./src/react/reactSurveyProgressButtons.tsx");r.d(t,"SurveyProgressButtons",function(){return A.SurveyProgressButtons});var N=r("./src/react/reactquestion_rating.tsx");r.d(t,"SurveyQuestionRating",function(){return N.SurveyQuestionRating});var B=r("./src/react/rating-dropdown.tsx");r.d(t,"SurveyQuestionRatingDropdown",function(){return B.SurveyQuestionRatingDropdown});var F=r("./src/react/reactquestion_expression.tsx");r.d(t,"SurveyQuestionExpression",function(){return F.SurveyQuestionExpression});var z=r("./src/react/react-popup-survey.tsx");r.d(t,"PopupSurvey",function(){return z.PopupSurvey}),r.d(t,"SurveyWindow",function(){return z.SurveyWindow});var Q=r("./src/react/reactquestion_factory.tsx");r.d(t,"ReactQuestionFactory",function(){return Q.ReactQuestionFactory});var H=r("./src/react/element-factory.tsx");r.d(t,"ReactElementFactory",function(){return H.ReactElementFactory});var U=r("./src/react/imagepicker.tsx");r.d(t,"SurveyQuestionImagePicker",function(){return U.SurveyQuestionImagePicker});var W=r("./src/react/image.tsx");r.d(t,"SurveyQuestionImage",function(){return W.SurveyQuestionImage});var $=r("./src/react/signaturepad.tsx");r.d(t,"SurveyQuestionSignaturePad",function(){return $.SurveyQuestionSignaturePad});var J=r("./src/react/reactquestion_buttongroup.tsx");r.d(t,"SurveyQuestionButtonGroup",function(){return J.SurveyQuestionButtonGroup});var G=r("./src/react/reactquestion_custom.tsx");r.d(t,"SurveyQuestionCustom",function(){return G.SurveyQuestionCustom}),r.d(t,"SurveyQuestionComposite",function(){return G.SurveyQuestionComposite});var K=r("./src/react/components/popup/popup.tsx");r.d(t,"Popup",function(){return K.Popup});var Z=r("./src/react/components/list/list.tsx");r.d(t,"List",function(){return Z.List});var X=r("./src/react/components/title/title-actions.tsx");r.d(t,"TitleActions",function(){return X.TitleActions});var Y=r("./src/react/components/title/title-element.tsx");r.d(t,"TitleElement",function(){return Y.TitleElement});var ee=r("./src/react/components/action-bar/action-bar.tsx");r.d(t,"SurveyActionBar",function(){return ee.SurveyActionBar});var et=r("./src/react/components/survey-header/logo-image.tsx");r.d(t,"LogoImage",function(){return et.LogoImage});var er=r("./src/react/components/survey-header/survey-header.tsx");r.d(t,"SurveyHeader",function(){return er.SurveyHeader});var en=r("./src/react/components/svg-icon/svg-icon.tsx");r.d(t,"SvgIcon",function(){return en.SvgIcon});var eo=r("./src/react/components/matrix-actions/remove-button/remove-button.tsx");r.d(t,"SurveyQuestionMatrixDynamicRemoveButton",function(){return eo.SurveyQuestionMatrixDynamicRemoveButton});var ei=r("./src/react/components/matrix-actions/detail-button/detail-button.tsx");r.d(t,"SurveyQuestionMatrixDetailButton",function(){return ei.SurveyQuestionMatrixDetailButton});var es=r("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx");r.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return es.SurveyQuestionMatrixDynamicDragDropIcon});var ea=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicAddButton",function(){return ea.SurveyQuestionPanelDynamicAddButton});var el=r("./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicRemoveButton",function(){return el.SurveyQuestionPanelDynamicRemoveButton});var eu=r("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicPrevButton",function(){return eu.SurveyQuestionPanelDynamicPrevButton});var ec=r("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx");r.d(t,"SurveyQuestionPanelDynamicNextButton",function(){return ec.SurveyQuestionPanelDynamicNextButton});var ep=r("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx");r.d(t,"SurveyQuestionPanelDynamicProgressText",function(){return ep.SurveyQuestionPanelDynamicProgressText});var ed=r("./src/react/components/survey-actions/survey-nav-button.tsx");r.d(t,"SurveyNavigationButton",function(){return ed.SurveyNavigationButton});var eh=r("./src/react/components/matrix/row.tsx");r.d(t,"MatrixRow",function(){return eh.MatrixRow});var em=r("./src/react/components/skeleton.tsx");r.d(t,"Skeleton",function(){return em.Skeleton});var ef=r("./src/react/string-viewer.tsx");r.d(t,"SurveyLocStringViewer",function(){return ef.SurveyLocStringViewer});var eg=r("./src/react/string-editor.tsx");r.d(t,"SurveyLocStringEditor",function(){return eg.SurveyLocStringEditor})},
1"./src/entries/react.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/entries/core.ts");r.d(t,"Version",function(){return n.Version}),r.d(t,"checkLibraryVersion",function(){return n.checkLibraryVersion}),r.d(t,"settings",function(){return n.settings}),r.d(t,"Helpers",function(){return n.Helpers}),r.d(t,"AnswerCountValidator",function(){return n.AnswerCountValidator}),r.d(t,"EmailValidator",function(){return n.EmailValidator}),r.d(t,"NumericValidator",function(){return n.NumericValidator}),r.d(t,"RegexValidator",function(){return n.RegexValidator}),r.d(t,"SurveyValidator",function(){return n.SurveyValidator}),r.d(t,"TextValidator",function(){return n.TextValidator}),r.d(t,"ValidatorResult",function(){return n.ValidatorResult}),r.d(t,"ExpressionValidator",function(){return n.ExpressionValidator}),r.d(t,"ValidatorRunner",function(){return n.ValidatorRunner}),r.d(t,"ItemValue",function(){return n.ItemValue}),r.d(t,"Base",function(){return n.Base}),r.d(t,"Event",function(){return n.Event}),r.d(t,"EventBase",function(){return n.EventBase}),r.d(t,"ArrayChanges",function(){return n.ArrayChanges}),r.d(t,"ComputedUpdater",function(){return n.ComputedUpdater}),r.d(t,"SurveyError",function(){return n.SurveyError}),r.d(t,"SurveyElementCore",function(){return n.SurveyElementCore}),r.d(t,"SurveyElement",function(){return n.SurveyElement}),r.d(t,"DragTypeOverMeEnum",function(){return n.DragTypeOverMeEnum}),r.d(t,"CalculatedValue",function(){return n.CalculatedValue}),r.d(t,"CustomError",function(){return n.CustomError}),r.d(t,"AnswerRequiredError",function(){return n.AnswerRequiredError}),r.d(t,"OneAnswerRequiredError",function(){return n.OneAnswerRequiredError}),r.d(t,"RequreNumericError",function(){return n.RequreNumericError}),r.d(t,"ExceedSizeError",function(){return n.ExceedSizeError}),r.d(t,"LocalizableString",function(){return n.LocalizableString}),r.d(t,"LocalizableStrings",function(){return n.LocalizableStrings}),r.d(t,"HtmlConditionItem",function(){return n.HtmlConditionItem}),r.d(t,"UrlConditionItem",function(){return n.UrlConditionItem}),r.d(t,"ChoicesRestful",function(){return n.ChoicesRestful}),r.d(t,"ChoicesRestfull",function(){return n.ChoicesRestfull}),r.d(t,"FunctionFactory",function(){return n.FunctionFactory}),r.d(t,"registerFunction",function(){return n.registerFunction}),r.d(t,"ConditionRunner",function(){return n.ConditionRunner}),r.d(t,"ExpressionRunner",function(){return n.ExpressionRunner}),r.d(t,"ExpressionExecutor",function(){return n.ExpressionExecutor}),r.d(t,"Operand",function(){return n.Operand}),r.d(t,"Const",function(){return n.Const}),r.d(t,"BinaryOperand",function(){return n.BinaryOperand}),r.d(t,"Variable",function(){return n.Variable}),r.d(t,"FunctionOperand",function(){return n.FunctionOperand}),r.d(t,"ArrayOperand",function(){return n.ArrayOperand}),r.d(t,"UnaryOperand",function(){return n.UnaryOperand}),r.d(t,"ConditionsParser",function(){return n.ConditionsParser}),r.d(t,"ProcessValue",function(){return n.ProcessValue}),r.d(t,"JsonError",function(){return n.JsonError}),r.d(t,"JsonIncorrectTypeError",function(){return n.JsonIncorrectTypeError}),r.d(t,"JsonMetadata",function(){return n.JsonMetadata}),r.d(t,"JsonMetadataClass",function(){return n.JsonMetadataClass}),r.d(t,"JsonMissingTypeError",function(){return n.JsonMissingTypeError}),r.d(t,"JsonMissingTypeErrorBase",function(){return n.JsonMissingTypeErrorBase}),r.d(t,"JsonObject",function(){return n.JsonObject}),r.d(t,"JsonObjectProperty",function(){return n.JsonObjectProperty}),r.d(t,"JsonRequiredPropertyError",function(){return n.JsonRequiredPropertyError}),r.d(t,"JsonUnknownPropertyError",function(){return n.JsonUnknownPropertyError}),r.d(t,"Serializer",function(){return n.Serializer}),r.d(t,"property",function(){return n.property}),r.d(t,"propertyArray",function(){return n.propertyArray}),r.d(t,"MatrixDropdownCell",function(){return n.MatrixDropdownCell}),r.d(t,"MatrixDropdownRowModelBase",function(){return n.MatrixDropdownRowModelBase}),r.d(t,"QuestionMatrixDropdownModelBase",function(){return n.QuestionMatrixDropdownModelBase}),r.d(t,"MatrixDropdownColumn",function(){return n.MatrixDropdownColumn}),r.d(t,"matrixDropdownColumnTypes",function(){return n.matrixDropdownColumnTypes}),r.d(t,"QuestionMatrixDropdownRenderedCell",function(){return n.QuestionMatrixDropdownRenderedCell}),r.d(t,"QuestionMatrixDropdownRenderedRow",function(){return n.QuestionMatrixDropdownRenderedRow}),r.d(t,"QuestionMatrixDropdownRenderedTable",function(){return n.QuestionMatrixDropdownRenderedTable}),r.d(t,"MatrixDropdownRowModel",function(){return n.MatrixDropdownRowModel}),r.d(t,"QuestionMatrixDropdownModel",function(){return n.QuestionMatrixDropdownModel}),r.d(t,"MatrixDynamicRowModel",function(){return n.MatrixDynamicRowModel}),r.d(t,"QuestionMatrixDynamicModel",function(){return n.QuestionMatrixDynamicModel}),r.d(t,"MatrixRowModel",function(){return n.MatrixRowModel}),r.d(t,"MatrixCells",function(){return n.MatrixCells}),r.d(t,"QuestionMatrixModel",function(){return n.QuestionMatrixModel}),r.d(t,"QuestionMatrixBaseModel",function(){return n.QuestionMatrixBaseModel}),r.d(t,"MultipleTextItemModel",function(){return n.MultipleTextItemModel}),r.d(t,"QuestionMultipleTextModel",function(){return n.QuestionMultipleTextModel}),r.d(t,"PanelModel",function(){return n.PanelModel}),r.d(t,"PanelModelBase",function(){return n.PanelModelBase}),r.d(t,"QuestionRowModel",function(){return n.QuestionRowModel}),r.d(t,"FlowPanelModel",function(){return n.FlowPanelModel}),r.d(t,"PageModel",function(){return n.PageModel}),r.d(t,"DefaultTitleModel",function(){return n.DefaultTitleModel}),r.d(t,"Question",function(){return n.Question}),r.d(t,"QuestionNonValue",function(){return n.QuestionNonValue}),r.d(t,"QuestionEmptyModel",function(){return n.QuestionEmptyModel}),r.d(t,"QuestionCheckboxBase",function(){return n.QuestionCheckboxBase}),r.d(t,"QuestionSelectBase",function(){return n.QuestionSelectBase}
1),r.d(t,"QuestionCheckboxModel",function(){return n.QuestionCheckboxModel}),r.d(t,"QuestionTagboxModel",function(){return n.QuestionTagboxModel}),r.d(t,"QuestionRankingModel",function(){return n.QuestionRankingModel}),r.d(t,"QuestionCommentModel",function(){return n.QuestionCommentModel}),r.d(t,"QuestionDropdownModel",function(){return n.QuestionDropdownModel}),r.d(t,"QuestionFactory",function(){return n.QuestionFactory}),r.d(t,"ElementFactory",function(){return n.ElementFactory}),r.d(t,"QuestionFileModel",function(){return n.QuestionFileModel}),r.d(t,"QuestionHtmlModel",function(){return n.QuestionHtmlModel}),r.d(t,"QuestionRadiogroupModel",function(){return n.QuestionRadiogroupModel}),r.d(t,"QuestionRatingModel",function(){return n.QuestionRatingModel}),r.d(t,"RenderedRatingItem",function(){return n.RenderedRatingItem}),r.d(t,"QuestionExpressionModel",function(){return n.QuestionExpressionModel}),r.d(t,"QuestionTextBase",function(){return n.QuestionTextBase}),r.d(t,"QuestionTextModel",function(){return n.QuestionTextModel}),r.d(t,"QuestionBooleanModel",function(){return n.QuestionBooleanModel}),r.d(t,"QuestionImagePickerModel",function(){return n.QuestionImagePickerModel}),r.d(t,"ImageItemValue",function(){return n.ImageItemValue}),r.d(t,"QuestionImageModel",function(){return n.QuestionImageModel}),r.d(t,"QuestionSignaturePadModel",function(){return n.QuestionSignaturePadModel}),r.d(t,"QuestionPanelDynamicModel",function(){return n.QuestionPanelDynamicModel}),r.d(t,"QuestionPanelDynamicItem",function(){return n.QuestionPanelDynamicItem}),r.d(t,"SurveyTimer",function(){return n.SurveyTimer}),r.d(t,"SurveyTimerModel",function(){return n.SurveyTimerModel}),r.d(t,"SurveyProgressModel",function(){return n.SurveyProgressModel}),r.d(t,"SurveyProgressButtonsModel",function(){return n.SurveyProgressButtonsModel}),r.d(t,"SurveyModel",function(){return n.SurveyModel}),r.d(t,"SurveyTrigger",function(){return n.SurveyTrigger}),r.d(t,"SurveyTriggerComplete",function(){return n.SurveyTriggerComplete}),r.d(t,"SurveyTriggerSetValue",function(){return n.SurveyTriggerSetValue}),r.d(t,"SurveyTriggerVisible",function(){return n.SurveyTriggerVisible}),r.d(t,"SurveyTriggerCopyValue",function(){return n.SurveyTriggerCopyValue}),r.d(t,"SurveyTriggerRunExpression",function(){return n.SurveyTriggerRunExpression}),r.d(t,"Trigger",function(){return n.Trigger}),r.d(t,"PopupSurveyModel",function(){return n.PopupSurveyModel}),r.d(t,"SurveyWindowModel",function(){return n.SurveyWindowModel}),r.d(t,"TextPreProcessor",function(){return n.TextPreProcessor}),r.d(t,"dxSurveyService",function(){return n.dxSurveyService}),r.d(t,"englishStrings",function(){return n.englishStrings}),r.d(t,"surveyLocalization",function(){return n.surveyLocalization}),r.d(t,"surveyStrings",function(){return n.surveyStrings}),r.d(t,"QuestionCustomWidget",function(){return n.QuestionCustomWidget}),r.d(t,"CustomWidgetCollection",function(){return n.CustomWidgetCollection}),r.d(t,"QuestionCustomModel",function(){return n.QuestionCustomModel}),r.d(t,"QuestionCompositeModel",function(){return n.QuestionCompositeModel}),r.d(t,"ComponentQuestionJSON",function(){return n.ComponentQuestionJSON}),r.d(t,"ComponentCollection",function(){return n.ComponentCollection}),r.d(t,"StylesManager",function(){return n.StylesManager}),r.d(t,"ListModel",function(){return n.ListModel}),r.d(t,"MultiSelectListModel",function(){return n.MultiSelectListModel}),r.d(t,"PopupModel",function(){return n.PopupModel}),r.d(t,"createDialogOptions",function(){return n.createDialogOptions}),r.d(t,"PopupBaseViewModel",function(){return n.PopupBaseViewModel}),r.d(t,"PopupDropdownViewModel",function(){return n.PopupDropdownViewModel}),r.d(t,"PopupModalViewModel",function(){return n.PopupModalViewModel}),r.d(t,"createPopupViewModel",function(){return n.createPopupViewModel}),r.d(t,"createPopupModalViewModel",function(){return n.createPopupModalViewModel}),r.d(t,"DropdownListModel",function(){return n.DropdownListModel}),r.d(t,"DropdownMultiSelectListModel",function(){return n.DropdownMultiSelectListModel}),r.d(t,"QuestionButtonGroupModel",function(){return n.QuestionButtonGroupModel}),r.d(t,"ButtonGroupItemModel",function(){return n.ButtonGroupItemModel}),r.d(t,"ButtonGroupItemValue",function(){return n.ButtonGroupItemValue}),r.d(t,"IsMobile",function(){return n.IsMobile}),r.d(t,"IsTouch",function(){return n.IsTouch}),r.d(t,"confirmAction",function(){return n.confirmAction}),r.d(t,"detectIEOrEdge",function(){return n.detectIEOrEdge}),r.d(t,"doKey2ClickUp",function(){return n.doKey2ClickUp}),r.d(t,"doKey2ClickDown",function(){return n.doKey2ClickDown}),r.d(t,"doKey2ClickBlur",function(){return n.doKey2ClickBlur}),r.d(t,"loadFileFromBase64",function(){return n.loadFileFromBase64}),r.d(t,"increaseHeightByContent",function(){return n.increaseHeightByContent}),r.d(t,"createSvg",function(){return n.createSvg}),r.d(t,"sanitizeEditableContent",function(){return n.sanitizeEditableContent}),r.d(t,"CssClassBuilder",function(){return n.CssClassBuilder}),r.d(t,"surveyCss",function(){return n.surveyCss}),r.d(t,"DragDropSurveyElements",function(){return n.DragDropSurveyElements}),r.d(t,"DragDropChoices",function(){return n.DragDropChoices}),r.d(t,"defaultStandardCss",function(){return n.defaultStandardCss}),r.d(t,"defaultBootstrapCss",function(){return n.defaultBootstrapCss}),r.d(t,"defaultBootstrapMaterialCss",function(){return n.defaultBootstrapMaterialCss}),r.d(t,"defaultV2Css",function(){return n.defaultV2Css}),r.d(t,"modernCss",function(){return n.modernCss}),r.d(t,"SvgIconRegistry",function(){return n.SvgIconRegistry}),r.d(t,"SvgRegistry",function(){return n.SvgRegistry}),r.d(t,"SvgBundleViewModel",function(){return n.SvgBundleViewModel}),r.d(t,"RendererFactory",function(){return n.RendererFactory}),r.d(t,"ResponsivityManager",function(){return n.ResponsivityManager}),r.d(t,"VerticalResponsivityManager",function(){return n.VerticalResponsivityManager}),r.d(t,"unwrap",function(){return n.unwrap}),r.d(t,"getOriginalEvent",function(){return n.getOriginalEvent}),r.d(t,"createDropdownActionModel",function(){return n.createDropdownActionModel}),r.d(t,"createDropdownActionModelAdvanced",function(){return n.createDropdownActionModelAdvanced}),r.d(t,"Action",function(){return n.Action}),r.d(t,"ActionDropdownViewModel",function(){return n.ActionDropdownViewModel}),r.d(t,"AdaptiveActionContainer",function(){return n.AdaptiveActionContainer}),r.d(t,"defaultActionBarCss",function(){return n.defaultActionBarCss}),r.d(t,"ActionContainer",function(){return n.ActionContainer}),r.d(t,"TooltipManager",function(){return n.TooltipManager}),r.d(t,"DragOrClickHelper",function(){return n.DragOrClickHelper}),r.d(t,"Model",function(){return n.Model}),r("./src/entries/chunks/localization.ts");var o=r("./src/entries/react-ui-model.ts");r.d(t,"Survey",function(){return o.Survey}),r.d(t,"attachKey2click",function(){return o.attachKey2click}),r.d(t,"ReactSurveyElementsWrapper",function(){return o.ReactSurveyElementsWrapper}),r.d(t,"SurveyNavigationBase",function(){return o.SurveyNavigationBase}),r.d(t,"SurveyTimerPanel",function(){return o.SurveyTimerPanel}),r.d(t,"SurveyPage",function(){return o.SurveyPage}),r.d(t,"SurveyRow",function(){return o.SurveyRow}),r.d(t,"SurveyPanel",function(){return o.SurveyPanel}),r.d(t,"SurveyFlowPanel",function(){return o.SurveyFlowPanel}),r.d(t,"SurveyQuestion",function(){return o.SurveyQuestion}),r.d(t,"SurveyElementErrors",function(){return o.SurveyElementErrors}),r.d(t,"SurveyQuestionAndErrorsCell",function(){return o.SurveyQuestionAndErrorsCell}),r.d(t,"ReactSurveyElement",function(){return o.ReactSurveyElement}),r.d(t,"SurveyElementBase",function(){return o.SurveyElementBase}),r.d(t,"SurveyQuestionElementBase",function(){return o.SurveyQuestionElementBase}),r.d(t,"SurveyQuestionCommentItem",function(){return o.SurveyQuestionCommentItem}),r.d(t,"SurveyQuestionComment",function(){return o.SurveyQuestionComment}),r.d(t,"SurveyQuestionCheckbox",function(){return o.SurveyQuestionCheckbox}),r.d(t,"SurveyQuestionCheckboxItem",function(){return o.SurveyQuestionCheckboxItem}),r.d(t,"SurveyQuestionRanking",function(){return o.SurveyQuestionRanking}),r.d(t,"SurveyQuestionRankingItem",function(){return o.SurveyQuestionRankingItem}),r.d(t,"TagboxFilterString",function(){return o.TagboxFilterString}),r.d(t,"SurveyQuestionOptionItem",function(){return o.SurveyQuestionOptionItem}),r.d(t,"SurveyQuestionDropdownBase",function(){return o.SurveyQuestionDropdownBase}),r.d(t,"SurveyQuestionDropdown",function(){return o.SurveyQuestionDropdown}),r.d(t,"SurveyQuestionTagboxItem",function(){return o.SurveyQuestionTagboxItem}),r.d(t,"SurveyQuestionTagbox",function(){return o.SurveyQuestionTagbox}),r.d(t,"SurveyQuestionDropdownSelect",function(){return o.SurveyQuestionDropdownSelect}),r.d(t,"SurveyQuestionMatrix",function(){return o.SurveyQuestionMatrix}),r.d(t,"SurveyQuestionMatrixRow",function(){return o.SurveyQuestionMatrixRow}),r.d(t,"SurveyQuestionHtml",function(){return o.SurveyQuestionHtml}),r.d(t,"SurveyQuestionFile",function(){return o.SurveyQuestionFile}),r.d(t,"SurveyQuestionMultipleText",function(){return o.SurveyQuestionMultipleText}),r.d(t,"SurveyQuestionRadiogroup",function(){return o.SurveyQuestionRadiogroup}),r.d(t,"SurveyQuestionRadioItem",function(){return o.SurveyQuestionRadioItem}),r.d(t,"SurveyQuestionText",function(){return o.SurveyQuestionText}),r.d(t,"SurveyQuestionBoolean",function(){return o.SurveyQuestionBoolean}),r.d(t,"SurveyQuestionBooleanCheckbox",function(){return o.SurveyQuestionBooleanCheckbox}),r.d(t,"SurveyQuestionBooleanRadio",function(){return o.SurveyQuestionBooleanRadio}),r.d(t,"SurveyQuestionEmpty",function(){return o.SurveyQuestionEmpty}),r.d(t,"SurveyQuestionMatrixDropdownCell",function(){return o.SurveyQuestionMatrixDropdownCell}),r.d(t,"SurveyQuestionMatrixDropdownBase",function(){return o.SurveyQuestionMatrixDropdownBase}),r.d(t,"SurveyQuestionMatrixDropdown",function(){return o.SurveyQuestionMatrixDropdown}),r.d(t,"SurveyQuestionMatrixDynamic",function(){return o.SurveyQuestionMatrixDynamic}),r.d(t,"SurveyQuestionMatrixDynamicAddButton",function(){return o.SurveyQuestionMatrixDynamicAddButton}),r.d(t,"SurveyQuestionPanelDynamic",function(){return o.SurveyQuestionPanelDynamic}),r.d(t,"SurveyProgress",function(){return o.SurveyProgress}),r.d(t,"SurveyProgressButtons",function(){return o.SurveyProgressButtons}),r.d(t,"SurveyQuestionRating",function(){return o.SurveyQuestionRating}),r.d(t,"SurveyQuestionRatingDropdown",function(){return o.SurveyQuestionRatingDropdown}),r.d(t,"SurveyQuestionExpression",function(){return o.SurveyQuestionExpression}),r.d(t,"PopupSurvey",function(){return o.PopupSurvey}),r.d(t,"SurveyWindow",function(){return o.SurveyWindow}),r.d(t,"ReactQuestionFactory",function(){return o.ReactQuestionFactory}),r.d(t,"ReactElementFactory",function(){return o.ReactElementFactory}),r.d(t,"SurveyQuestionImagePicker",function(){return o.SurveyQuestionImagePicker}),r.d(t,"SurveyQuestionImage",function(){return o.SurveyQuestionImage}),r.d(t,"SurveyQuestionSignaturePad",function(){return o.SurveyQuestionSignaturePad}),r.d(t,"SurveyQuestionButtonGroup",function(){return o.SurveyQuestionButtonGroup}),r.d(t,"SurveyQuestionCustom",function(){return o.SurveyQuestionCustom}),r.d(t,"SurveyQuestionComposite",function(){return o.SurveyQuestionComposite}),r.d(t,"Popup",function(){return o.Popup}),r.d(t,"List",function(){return o.List}),r.d(t,"TitleActions",function(){return o.TitleActions}),r.d(t,"TitleElement",function(){return o.TitleElement}),r.d(t,"SurveyActionBar",function(){return o.SurveyActionBar}),r.d(t,"LogoImage",function(){return o.LogoImage}),r.d(t,"SurveyHeader",function(){return o.SurveyHeader}),r.d(t,"SvgIcon",function(){return o.SvgIcon}),r.d(t,"SurveyQuestionMatrixDynamicRemoveButton",function(){return o.SurveyQuestionMatrixDynamicRemoveButton}),r.d(t,"SurveyQuestionMatrixDetailButton",function(){return o.SurveyQuestionMatrixDetailButton}),r.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return o.SurveyQuestionMatrixDynamicDragDropIcon}),r.d(t,"SurveyQuestionPanelDynamicAddButton",function(){return o.SurveyQuestionPanelDynamicAddButton}),r.d(t,"SurveyQuestionPanelDynamicRemoveButton",function(){return o.SurveyQuestionPanelDynamicRemoveButton}),r.d(t,"SurveyQuestionPanelDynamicPrevButton",function(){return o.SurveyQuestionPanelDynamicPrevButton}),r.d(t,"SurveyQuestionPanelDynamicNextButton",function(){return o.SurveyQuestionPanelDynamicNextButton}),r.d(t,"SurveyQuestionPanelDynamicProgressText",function(){return o.SurveyQuestionPanelDynamicProgressText}),r.d(t,"SurveyNavigationButton",function(){return o.SurveyNavigationButton}),r.d(t,"MatrixRow",function(){return o.MatrixRow}),r.d(t,"Skeleton",function(){return o.Skeleton}),r.d(t,"SurveyLocStringViewer",function(){return o.SurveyLocStringViewer}),r.d(t,"SurveyLocStringEditor",function(){return o.SurveyLocStringEditor})},
1"./src/error.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"AnswerRequiredError",function(){return a}),r.d(t,"OneAnswerRequiredError",function(){return l}),r.d(t,"RequreNumericError",function(){return u}),r.d(t,"ExceedSizeError",function(){return c}),r.d(t,"WebRequestError",function(){return p}),r.d(t,"WebRequestEmptyError",function(){return d}),r.d(t,"OtherEmptyError",function(){return h}),r.d(t,"UploadingFileError",function(){return m}),r.d(t,"RequiredInAllRowsError",function(){return f}),r.d(t,"MinRowCountError",function(){return g}),r.d(t,"KeyDuplicationError",function(){return y}),r.d(t,"CustomError",function(){return v});var n,o=r("./src/surveyStrings.ts"),i=r("./src/survey-error.ts"),s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),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 s(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(i.SurveyError),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 s(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(i.SurveyError),u=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 s(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(i.SurveyError),c=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 s(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(i.SurveyError),p=function(e){function t(t,r,n){void 0===n&&(n=null);var o=e.call(this,null,n)||this;return o.status=t,o.response=r,o}return s(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(i.SurveyError),d=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 s(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(i.SurveyError),h=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 s(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(i.SurveyError),m=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 s(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(i.SurveyError),f=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 s(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(i.SurveyError),g=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,null,r)||this;return n.minRowCount=t,n}return s(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return o.surveyLocalization.getString("minRowCountError").format(this.minRowCount)},t}(i.SurveyError),y=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 s(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(i.SurveyError),v=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 s(t,e),t.prototype.getErrorType=function(){return"custom"},t}(i.SurveyError)},
1"./src/expressionItems.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ExpressionItem",function(){return l}),r.d(t,"HtmlConditionItem",function(){return u}),r.d(t,"UrlConditionItem",function(){return c});var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/conditions.ts"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.expression=t,r}return a(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new s.ConditionRunner(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner},t}(i.Base),u=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t)||this;return n.createLocalizableString("html",n),n.html=r,n}return a(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(l),c=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t)||this;return n.createLocalizableString("url",n),n.url=r,n}return a(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(l);o.Serializer.addClass("expressionitem",["expression:condition"],function(){return new l},"base"),o.Serializer.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new u},"expressionitem"),o.Serializer.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new c},"expressionitem")},
1"./src/expressions/expressionParser.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SyntaxError",function(){return s}),r.d(t,"parse",function(){return a});var n,o=r("./src/expressions/expressions.ts"),i=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(r,n,o,i){var s=e.call(this)||this;return s.message=r,s.expected=n,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return i(t,e),t.buildMessage=function(e,t){function r(e){return e.charCodeAt(0).toString(16).toUpperCase()}function n(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+r(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+r(e)})}function i(e){switch(e.type){case"literal":return'"'+n(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(i);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+(t?'"'+n(t)+'"':"end of input")+" found."},t}(Error),a=function(e,t){t=void 0!==t?t:{};var r,n,i,a,l={},u={Expression:eX},c=eX,p=function(e,t){return td(e,t,!0)},d=e$("||",!1),h=e$("or",!0),m=e$("&&",!1),f=e$("and",!0),g=function(e,t){return td(e,t)},y=e$("<=",!1),v=e$("lessorequal",!0),b=e$(">=",!1),C=e$("greaterorequal",!0),x=e$("==",!1),w="equal",_=e$("equal",!0),P=function(){return"equal"},S=e$("=",!1),V=e$("!=",!1),E=e$("notequal",!0),T=e$("<",!1),O=e$("less",!0),R=e$(">",!1),I=e$("greater",!0),k=e$("+",!1),q=e$("-",!1),D=e$("*",!1),j=e$("/",!1),M=e$("%",!1),L=e$("^",!1),A=e$("power",!0),N=e$("*=",!1),B=e$("contains",!0),F=e$("contain",!0),z=e$("notcontains",!0),Q=e$("notcontain",!0),H=e$("anyof",!0),U=e$("allof",!0),W=e$("(",!1),$=e$(")",!1),J=e$("!",!1),G=e$("negate",!0),K=e$("empty",!0),Z=e$("notempty",!0),X="undefined",Y=e$("undefined",!1),ee="null",et=e$("null",!1),er=e$("{",!1),en=e$("}",!1),eo=function(e){return e},ei=e$("''",!1),es=function(){return""},ea=e$('""',!1),el=e$("'",!1),eu=function(e){return"'"+e+"'"},ec=e$('"',!1),ep=e$("[",!1),ed=e$("]",!1),eh=e$(",",!1),em=function(e,t){if(null==e)return new o.ArrayOperand([]);var r=[e];if(Array.isArray(t)){for(var n,i=(n=t,[].concat.apply([],n)),s=3;s<i.length;s+=4)r.push(i[s])}return new o.ArrayOperand(r)},ef=e$("true",!0),eg=e$("false",!0),ey=e$("0x",!1),ev=/^[\-]/,eb=eJ(["-"],!1,!1),eC=e$(".",!1),ex=e$("0",!1),ew=function(e){return e.join("")},e_=e$("\\'",!1),eP=e$('\\"',!1),eS=/^[^"']/,eV=eJ(['"',"'"],!0,!1),eE=function(){return eW()},eT=/^[^{}]/,eO=eJ(["{","}"],!0,!1),eR=/^[0-9]/,eI=eJ([["0","9"]],!1,!1),ek=/^[1-9]/,eq=eJ([["1","9"]],!1,!1),eD=/^[a-zA-Z_]/,ej=eJ([["a","z"],["A","Z"],"_"],!1,!1),eM={type:"other",description:"whitespace"},eL=/^[ \t\n\r]/,eA=eJ([" ","	","\n","\r"],!1,!1),eN=0,eB=0,eF=[{line:1,column:1}],ez=0,eQ=[],eH=0,eU={};if(void 0!==t.startRule){if(!(t.startRule in u))throw Error("Can't start parsing from rule \""+t.startRule+'".');c=u[t.startRule]}function eW(){return e.substring(eB,eN)}function e$(e,t){return{type:"literal",text:e,ignoreCase:t}}function eJ(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function eG(t){var r,n=eF[t];if(n)return n;for(r=t-1;!eF[r];)r--;for(n={line:(n=eF[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return eF[t]=n,n}function eK(e,t){var r=eG(e),n=eG(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function eZ(e){eN<ez||(eN>ez&&(ez=eN,eQ=[]),eQ.push(e))}function eX(){var e,t,r,n,o,i,s,a,u=34*eN+0,c=eU[u];if(c)return eN=c.nextPos,c.result;if(e=eN,tp()!==l)if((t=e0())!==l){for(r=[],n=eN,(o=tp())!==l&&(i=eY())!==l&&(s=tp())!==l&&(a=e0())!==l?n=o=[o,i,s,a]:(eN=n,n=l);n!==l;)r.push(n),n=eN,(o=tp())!==l&&(i=eY())!==l&&(s=tp())!==l&&(a=e0())!==l?n=o=[o,i,s,a]:(eN=n,n=l);r!==l&&(n=tp())!==l?(eB=e,e=p(t,r)):(eN=e,e=l)}else eN=e,e=l;else eN=e,e=l;return eU[u]={nextPos:eN,result:e},e}function eY(){var t,r,n=34*eN+1,o=eU[n];return o?(eN=o.nextPos,o.result):(t=eN,"||"===e.substr(eN,2)?(r="||",eN+=2):(r=l,0===eH&&eZ(d)),r===l&&("or"===e.substr(eN,2).toLowerCase()?(r=e.substr(eN,2),eN+=2):(r=l,0===eH&&eZ(h))),r!==l&&(eB=t,r="or"),t=r,eU[n]={nextPos:eN,result:t},t)}function e0(){var e,t,r,n,o,i,s,a,u=34*eN+2,c=eU[u];if(c)return eN=c.nextPos,c.result;
vendor: 4,736 bytes, line 1
1if(e=eN,(t=e2())!==l){for(r=[],n=eN,(o=tp())!==l&&(i=e1())!==l&&(s=tp())!==l&&(a=e2())!==l?n=o=[o,i,s,a]:(eN=n,n=l);n!==l;)r.push(n),n=eN,(o=tp())!==l&&(i=e1())!==l&&(s=tp())!==l&&(a=e2())!==l?n=o=[o,i,s,a]:(eN=n,n=l);r!==l?(eB=e,e=t=p(t,r)):(eN=e,e=l)}else eN=e,e=l;return eU[u]={nextPos:eN,result:e},e}function e1(){var t,r,n=34*eN+3,o=eU[n];return o?(eN=o.nextPos,o.result):(t=eN,"&&"===e.substr(eN,2)?(r="&&",eN+=2):(r=l,0===eH&&eZ(m)),r===l&&("and"===e.substr(eN,3).toLowerCase()?(r=e.substr(eN,3),eN+=3):(r=l,0===eH&&eZ(f))),r!==l&&(eB=t,r="and"),t=r,eU[n]={nextPos:eN,result:t},t)}function e2(){var e,t,r,n,o,i,s,a,u=34*eN+4,c=eU[u];if(c)return eN=c.nextPos,c.result;if(e=eN,(t=e4())!==l){for(r=[],n=eN,(o=tp())!==l&&(i=e3())!==l&&(s=tp())!==l&&(a=e4())!==l?n=o=[o,i,s,a]:(eN=n,n=l);n!==l;)r.push(n),n=eN,(o=tp())!==l&&(i=e3())!==l&&(s=tp())!==l&&(a=e4())!==l?n=o=[o,i,s,a]:(eN=n,n=l);r!==l?(eB=e,e=t=g(t,r)):(eN=e,e=l)}else eN=e,e=l;return eU[u]={nextPos:eN,result:e},e}function e3(){var t,r,n=34*eN+5,o=eU[n];return o?(eN=o.nextPos,o.result):(t=eN,"<="===e.substr(eN,2)?(r="<=",eN+=2):(r=l,0===eH&&eZ(y)),r===l&&("lessorequal"===e.substr(eN,11).toLowerCase()?(r=e.substr(eN,11),eN+=11):(r=l,0===eH&&eZ(v))),r!==l&&(eB=t,r="lessorequal"),(t=r)===l&&(t=eN,">="===e.substr(eN,2)?(r=">=",eN+=2):(r=l,0===eH&&eZ(b)),r===l&&("greaterorequal"===e.substr(eN,14).toLowerCase()?(r=e.substr(eN,14),eN+=14):(r=l,0===eH&&eZ(C))),r!==l&&(eB=t,r="greaterorequal"),(t=r)===l&&(t=eN,"=="===e.substr(eN,2)?(r="==",eN+=2):(r=l,0===eH&&eZ(x)),r===l&&(e.substr(eN,5).toLowerCase()===w?(r=e.substr(eN,5),eN+=5):(r=l,0===eH&&eZ(_))),r!==l&&(eB=t,r=P()),(t=r)===l&&(t=eN,61===e.charCodeAt(eN)?(r="=",eN++):(r=l,0===eH&&eZ(S)),r===l&&(e.substr(eN,5).toLowerCase()===w?(r=e.substr(eN,5),eN+=5):(r=l,0===eH&&eZ(_))),r!==l&&(eB=t,r=P()),(t=r)===l&&(t=eN,"!="===e.substr(eN,2)?(r="!=",eN+=2):(r=l,0===eH&&eZ(V)),r===l&&("notequal"===e.substr(eN,8).toLowerCase()?(r=e.substr(eN,8),eN+=8):(r=l,0===eH&&eZ(E))),r!==l&&(eB=t,r="notequal"),(t=r)===l&&(t=eN,60===e.charCodeAt(eN)?(r="<",eN++):(r=l,0===eH&&eZ(T)),r===l&&("less"===e.substr(eN,4).toLowerCase()?(r=e.substr(eN,4),eN+=4):(r=l,0===eH&&eZ(O))),r!==l&&(eB=t,r="less"),(t=r)===l&&(t=eN,62===e.charCodeAt(eN)?(r=">",eN++):(r=l,0===eH&&eZ(R)),r===l&&("greater"===e.substr(eN,7).toLowerCase()?(r=e.substr(eN,7),eN+=7):(r=l,0===eH&&eZ(I))),r!==l&&(eB=t,r="greater"),t=r)))))),eU[n]={nextPos:eN,result:t},t)}function e4(){var e,t,r,n,o,i,s,a,u=34*eN+6,c=eU[u];if(c)return eN=c.nextPos,c.result;if(e=eN,(t=e6())!==l){for(r=[],n=eN,(o=tp())!==l&&(i=e9())!==l&&(s=tp())!==l&&(a=e6())!==l?n=o=[o,i,s,a]:(eN=n,n=l);n!==l;)r.push(n),n=eN,(o=tp())!==l&&(i=e9())!==l&&(s=tp())!==l&&(a=e6())!==l?n=o=[o,i,s,a]:(eN=n,n=l);r!==l?(eB=e,e=t=p(t,r)):(eN=e,e=l)}else eN=e,e=l;return eU[u]={nextPos:eN,result:e},e}function e9(){var t,r,n=34*eN+7,o=eU[n];return o?(eN=o.nextPos,o.result):(t=eN,43===e.charCodeAt(eN)?(r="+",eN++):(r=l,0===eH&&eZ(k)),r!==l&&(eB=t,r="plus"),(t=r)===l&&(t=eN,45===e.charCodeAt(eN)?(r="-",eN++):(r=l,0===eH&&eZ(q)),r!==l&&(eB=t,r="minus"),t=r),eU[n]={nextPos:eN,result:t},t)}function e6(){var e,t,r,n,o,i,s,a,u=34*eN+8,c=eU[u];if(c)return eN=c.nextPos,c.result;if(e=eN,(t=e8())!==l){for(r=[],n=eN,(o=tp())!==l&&(i=e5())!==l&&(s=tp())!==l&&(a=e8())!==l?n=o=[o,i,s,a]:(eN=n,n=l);n!==l;)r.push(n),n=eN,(o=tp())!==l&&(i=e5())!==l&&(s=tp())!==l&&(a=e8())!==l?n=o=[o,i,s,a]:(eN=n,n=l);r!==l?(eB=e,e=t=p(t,r)):(eN=e,e=l)}else eN=e,e=l;return eU[u]={nextPos:eN,result:e},e}function e5(){var t,r,n=34*eN+9,o=eU[n];return o?(eN=o.nextPos,o.result):(t=eN,42===e.charCodeAt(eN)?(r="*",eN++):(r=l,0===eH&&eZ(D)),r!==l&&(eB=t,r="mul"),(t=r)===l&&(t=eN,47===e.charCodeAt(eN)?(r="/",eN++):(r=l,0===eH&&eZ(j)),r!==l&&(eB=t,r="div"),(t=r)===l&&(t=eN,37===e.charCodeAt(eN)?(r="%",eN++):(r=l,0===eH&&eZ(M)),r!==l&&(eB=t,r="mod"),t=r)),eU[n]={nextPos:eN,result:t},t)}function e8(){var e,t,r,n,o,i,s,a,u=34*eN+10,c=eU[u];if(c)return eN=c.nextPos,c.result;if(e=eN,(t=te())!==l){for(r=[],n=eN,(o=tp())!==l&&(i=e7())!==l&&(s=tp())!==l&&(a=te())!==l?n=o=[o,i,s,a]:(eN=n,n=l);n!==l;)r.push(n),n=eN,(o=tp())!==l&&(i=e7())!==l&&(s=tp())!==l&&(a=te())!==l?n=o=[o,i,s,a]:(eN=n,n=l);r!==l?(eB=e,e=t=p(t,r)):(eN=e,e=l)}else eN=e,e=l;return eU[u]={nextPos:eN,result:e},e}function e7(){var t,r,n=34*eN+11,o=eU[n];return o?(eN=o.nextPos,o.result):(t=eN,94===e.charCodeAt(eN)?(r="^",eN++):(r=l,0===eH&&eZ(L)),r===l&&("power"===e.substr(eN,5).toLowerCase()?(r=e.substr(eN,5),eN+=5):(r=l,0===eH&&eZ(A))),r!==l&&(eB=t,r="power"),t=r,eU[n]={nextPos:eN,result:t},t)}function te(){var e,t,r,n,o,i,s,a,u=34*eN+12,c=eU[u];if(c)return eN=c.nextPos,c.result;if(e=eN,(t=tr())!==l){for(r=[],n=eN,(o=tp())!==l&&(i=tt())!==l&&(s=tp())!==l?((a=tr()
1)===l&&(a=null),a!==l?n=o=[o,i,s,a]:(eN=n,n=l)):(eN=n,n=l);n!==l;)r.push(n),n=eN,(o=tp())!==l&&(i=tt())!==l&&(s=tp())!==l?((a=tr())===l&&(a=null),a!==l?n=o=[o,i,s,a]:(eN=n,n=l)):(eN=n,n=l);r!==l?(eB=e,e=t=g(t,r)):(eN=e,e=l)}else eN=e,e=l;return eU[u]={nextPos:eN,result:e},e}function tt(){var t,r,n=34*eN+13,o=eU[n];return o?(eN=o.nextPos,o.result):(t=eN,"*="===e.substr(eN,2)?(r="*=",eN+=2):(r=l,0===eH&&eZ(N)),r===l&&("contains"===e.substr(eN,8).toLowerCase()?(r=e.substr(eN,8),eN+=8):(r=l,0===eH&&eZ(B)),r===l&&("contain"===e.substr(eN,7).toLowerCase()?(r=e.substr(eN,7),eN+=7):(r=l,0===eH&&eZ(F)))),r!==l&&(eB=t,r="contains"),(t=r)===l&&(t=eN,"notcontains"===e.substr(eN,11).toLowerCase()?(r=e.substr(eN,11),eN+=11):(r=l,0===eH&&eZ(z)),r===l&&("notcontain"===e.substr(eN,10).toLowerCase()?(r=e.substr(eN,10),eN+=10):(r=l,0===eH&&eZ(Q))),r!==l&&(eB=t,r="notcontains"),(t=r)===l&&(t=eN,"anyof"===e.substr(eN,5).toLowerCase()?(r=e.substr(eN,5),eN+=5):(r=l,0===eH&&eZ(H)),r!==l&&(eB=t,r="anyof"),(t=r)===l&&(t=eN,"allof"===e.substr(eN,5).toLowerCase()?(r=e.substr(eN,5),eN+=5):(r=l,0===eH&&eZ(U)),r!==l&&(eB=t,r="allof"),t=r))),eU[n]={nextPos:eN,result:t},t)}function tr(){var t,r,n,i,s,a,u,c,p,d,h=34*eN+14,m=eU[h];if(m)return eN=m.nextPos,m.result;return(u=eN,40===e.charCodeAt(eN)?(c="(",eN++):(c=l,0===eH&&eZ(W)),c!==l&&tp()!==l&&(p=eX())!==l&&tp()!==l&&(41===e.charCodeAt(eN)?(d=")",eN++):(d=l,0===eH&&eZ($)),d===l&&(d=null),d!==l))?(eB=u,u=c=p):(eN=u,u=l),u===l&&(u=function(){var t,r,n,i,s,a,u=34*eN+15,c=eU[u];return c?(eN=c.nextPos,c.result):((r=eN,(n=tl())!==l&&(40===e.charCodeAt(eN)?(i="(",eN++):(i=l,0===eH&&eZ(W)),i!==l&&(s=to())!==l&&(41===e.charCodeAt(eN)?(a=")",eN++):(a=l,0===eH&&eZ($)),a===l&&(a=null),a!==l)))?(eB=r,t=n,r=n=new o.FunctionOperand(t,s)):(eN=r,r=l),eU[u]={nextPos:eN,result:r},r)}())===l&&(u=function(){var t,r,n,i,s,a,u,c,p,d,h=34*eN+16,m=eU[h];if(m)return eN=m.nextPos,m.result;if((c=eN,33===e.charCodeAt(eN)?(p="!",eN++):(p=l,0===eH&&eZ(J)),p===l&&("negate"===e.substr(eN,6).toLowerCase()?(p=e.substr(eN,6),eN+=6):(p=l,0===eH&&eZ(G))),p!==l&&tp()!==l&&(d=eX())!==l)?(eB=c,s=d,c=p=new o.UnaryOperand(s,"negate")):(eN=c,c=l),c===l)if(c=eN,(p=tn())!==l)if(tp()!==l){if((d=(i=eU[n=34*eN+17])?(eN=i.nextPos,i.result):(t=eN,"empty"===e.substr(eN,5).toLowerCase()?(r=e.substr(eN,5),eN+=5):(r=l,0===eH&&eZ(K)),r!==l&&(eB=t,r="empty"),(t=r)===l&&(t=eN,"notempty"===e.substr(eN,8).toLowerCase()?(r=e.substr(eN,8),eN+=8):(r=l,0===eH&&eZ(Z)),r!==l&&(eB=t,r="notempty"),t=r),eU[n]={nextPos:eN,result:t},t))!==l)eB=c,a=p,u=d,c=p=new o.UnaryOperand(a,u);else eN=c,c=l}else eN=c,c=l;else eN=c,c=l;return eU[h]={nextPos:eN,result:c},c}())===l&&(u=tn())===l&&(u=(a=eU[s=34*eN+20])?(eN=a.nextPos,a.result):((t=eN,91===e.charCodeAt(eN)?(r="[",eN++):(r=l,0===eH&&eZ(ep)),r!==l&&(n=to())!==l&&(93===e.charCodeAt(eN)?(i="]",eN++):(i=l,0===eH&&eZ(ed)),i!==l))?(eB=t,t=r=n):(eN=t,t=l),eU[s]={nextPos:eN,result:t},t)),eU[h]={nextPos:eN,result:u},u}function tn(){var t,r,n,i,s,a,u,c,p,d,h,m,f,g,y,v,b=34*eN+18,C=eU[b];if(C)return eN=C.nextPos,C.result;if(m=eN,(f=tp())!==l?(e.substr(eN,9)===X?(g=X,eN+=9):(g=l,0===eH&&eZ(Y)),g===l&&(e.substr(eN,4)===ee?(g=ee,eN+=4):(g=l,0===eH&&eZ(et))),g!==l?(eB=m,m=null):(eN=m,m=l)):(eN=m,m=l),m===l){if(m=eN,(f=tp())!==l){if((g=(a=eU[s=34*eN+19])?(eN=a.nextPos,a.result):(t=eN,(r=(d=eU[p=34*eN+22])?(eN=d.nextPos,d.result):(u=eN,"true"===e.substr(eN,4).toLowerCase()?(c=e.substr(eN,4),eN+=4):(c=l,0===eH&&eZ(ef)),c!==l&&(eB=u,c=!0),(u=c)===l&&(u=eN,"false"===e.substr(eN,5).toLowerCase()?(c=e.substr(eN,5),eN+=5):(c=l,0===eH&&eZ(eg)),c!==l&&(eB=u,c=!1),u=c),eU[p]={nextPos:eN,result:u},u))!==l&&(eB=t,r=eo(r)),(t=r)===l&&(t=eN,(r=function(){var t,r,n,o,i,s,a,u,c,p,d=34*eN+23,h=eU[d];if(h)return eN=h.nextPos,h.result;if(u=eN,"0x"===e.substr(eN,2)?(c="0x",eN+=2):(c=l,0===eH&&eZ(ey)),c!==l&&(p=tu())!==l?(eB=u,u=c=parseInt(eW(),16)):(eN=u,u=l),u===l)if(u=eN,ev.test(e.charAt(eN))?(c=e.charAt(eN),eN++):(c=l,0===eH&&eZ(eb)),c===l&&(c=null),c!==l){if((p=(i=eU[o=34*eN+24])?(eN=i.nextPos,i.result):(t=eN,(r=tu())!==l?(46===e.charCodeAt(eN)?(n=".",eN++):(n=l,0===eH&&eZ(eC)),n!==l&&tu()!==l?(eB=t,t=r=parseFloat(eW())):(eN=t,t=l)):(eN=t,t=l),t===l&&(t=eN,(r=function(){var t,r,n=34*eN+31,o=eU[n];if(o)return eN=o.nextPos,o.result;if(t=[],ek.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=l,0===eH&&eZ(eq)),r!==l)for(;r!==l;)t.push(r),ek.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=l,0===eH&&eZ(eq));else t=l;return eU[n]={nextPos:eN,result:t},t}
1())!==l?((n=tu())===l&&(n=null),n!==l?(eB=t,t=r=parseInt(eW(),10)):(eN=t,t=l)):(eN=t,t=l),t===l&&(t=eN,48===e.charCodeAt(eN)?(r="0",eN++):(r=l,0===eH&&eZ(ex)),r!==l&&(eB=t,r=0),t=r)),eU[o]={nextPos:eN,result:t},t))!==l)eB=u,s=c,a=p,u=c=null==s?a:-a;else eN=u,u=l}else eN=u,u=l;return eU[d]={nextPos:eN,result:u},u}())!==l&&(eB=t,r=eo(r)),(t=r)===l&&(t=eN,(r=tl())!==l&&(eB=t,r=eo(r)),(t=r)===l&&(t=eN,"''"===e.substr(eN,2)?(r="''",eN+=2):(r=l,0===eH&&eZ(ei)),r!==l&&(eB=t,r=es()),(t=r)===l&&(t=eN,'""'===e.substr(eN,2)?(r='""',eN+=2):(r=l,0===eH&&eZ(ea)),r!==l&&(eB=t,r=es()),(t=r)===l&&(t=eN,39===e.charCodeAt(eN)?(r="'",eN++):(r=l,0===eH&&eZ(el)),r!==l&&(n=ti())!==l?(39===e.charCodeAt(eN)?(i="'",eN++):(i=l,0===eH&&eZ(el)),i!==l?(eB=t,t=r=eu(n)):(eN=t,t=l)):(eN=t,t=l),t===l&&(t=eN,34===e.charCodeAt(eN)?(r='"',eN++):(r=l,0===eH&&eZ(ec)),r!==l&&(n=ti())!==l?(34===e.charCodeAt(eN)?(i='"',eN++):(i=l,0===eH&&eZ(ec)),i!==l?(eB=t,t=r=eu(n)):(eN=t,t=l)):(eN=t,t=l))))))),eU[s]={nextPos:eN,result:t},t))!==l)eB=m,h=g,m=f=new o.Const(h);else eN=m,m=l}else eN=m,m=l;m===l&&((m=eN,(f=tp())!==l&&(123===e.charCodeAt(eN)?(g="{",eN++):(g=l,0===eH&&eZ(er)),g!==l&&(y=function(){var e,t,r,n=34*eN+25,o=eU[n];if(o)return eN=o.nextPos,o.result;if(e=eN,t=[],(r=ta())!==l)for(;r!==l;)t.push(r),r=ta();else t=l;return t!==l&&(eB=e,t=ew(t)),e=t,eU[n]={nextPos:eN,result:e},e}())!==l&&(125===e.charCodeAt(eN)?(v="}",eN++):(v=l,0===eH&&eZ(en)),v!==l)))?(eB=m,m=f=new o.Variable(y)):(eN=m,m=l))}return eU[b]={nextPos:eN,result:m},m}function to(){var t,r,n,o,i,s,a,u,c=34*eN+21,p=eU[c];if(p)return eN=p.nextPos,p.result;if(t=eN,(r=eX())===l&&(r=null),r!==l){for(n=[],o=eN,(i=tp())!==l?(44===e.charCodeAt(eN)?(s=",",eN++):(s=l,0===eH&&eZ(eh)),s!==l&&(a=tp())!==l&&(u=eX())!==l?o=i=[i,s,a,u]:(eN=o,o=l)):(eN=o,o=l);o!==l;)n.push(o),o=eN,(i=tp())!==l?(44===e.charCodeAt(eN)?(s=",",eN++):(s=l,0===eH&&eZ(eh)),s!==l&&(a=tp())!==l&&(u=eX())!==l?o=i=[i,s,a,u]:(eN=o,o=l)):(eN=o,o=l);n!==l?(eB=t,t=r=em(r,n)):(eN=t,t=l)}else eN=t,t=l;return eU[c]={nextPos:eN,result:t},t}function ti(){var e,t,r,n=34*eN+26,o=eU[n];if(o)return eN=o.nextPos,o.result;if(e=eN,t=[],(r=ts())!==l)for(;r!==l;)t.push(r),r=ts();else t=l;return t!==l&&(eB=e,t=ew(t)),e=t,eU[n]={nextPos:eN,result:e},e}function ts(){var t,r,n=34*eN+27,o=eU[n];return o?(eN=o.nextPos,o.result):(t=eN,"\\'"===e.substr(eN,2)?(r="\\'",eN+=2):(r=l,0===eH&&eZ(e_)),r!==l&&(eB=t,r="'"),(t=r)===l&&(t=eN,'\\"'===e.substr(eN,2)?(r='\\"',eN+=2):(r=l,0===eH&&eZ(eP)),r!==l&&(eB=t,r='"'),(t=r)===l&&(t=eN,eS.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=l,0===eH&&eZ(eV)),r!==l&&(eB=t,r=eE()),t=r)),eU[n]={nextPos:eN,result:t},t)}function ta(){var t,r,n=34*eN+28,o=eU[n];return o?(eN=o.nextPos,o.result):(t=eN,eT.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=l,0===eH&&eZ(eO)),r!==l&&(eB=t,r=eE()),t=r,eU[n]={nextPos:eN,result:t},t)}function tl(){var e,t,r,n,o,i,s=34*eN+29,a=eU[s];if(a)return eN=a.nextPos,a.result;if(e=eN,tc()!==l){if(t=[],r=eN,(n=tu())!==l){for(o=[],i=tc();i!==l;)o.push(i),i=tc();o!==l?r=n=[n,o]:(eN=r,r=l)}else eN=r,r=l;for(;r!==l;)if(t.push(r),r=eN,(n=tu())!==l){for(o=[],i=tc();i!==l;)o.push(i),i=tc();o!==l?r=n=[n,o]:(eN=r,r=l)}else eN=r,r=l;t!==l?(eB=e,e=eE()):(eN=e,e=l)}else eN=e,e=l;return eU[s]={nextPos:eN,result:e},e}function tu(){var t,r,n=34*eN+30,o=eU[n];if(o)return eN=o.nextPos,o.result;if(t=[],eR.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=l,0===eH&&eZ(eI)),r!==l)for(;r!==l;)t.push(r),eR.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=l,0===eH&&eZ(eI));else t=l;return eU[n]={nextPos:eN,result:t},t}function tc(){var t,r,n=34*eN+32,o=eU[n];if(o)return eN=o.nextPos,o.result;if(t=[],eD.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=l,0===eH&&eZ(ej)),r!==l)for(;r!==l;)t.push(r),eD.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=l,0===eH&&eZ(ej));else t=l;return eU[n]={nextPos:eN,result:t},t}function tp(){var t,r,n=34*eN+33,o=eU[n];if(o)return eN=o.nextPos,o.result;for(eH++,t=[],eL.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=l,0===eH&&eZ(eA));r!==l;)t.push(r),eL.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=l,0===eH&&eZ(eA));return eH--,t===l&&(r=l,0===eH&&eZ(eM)),eU[n]={nextPos:eN,result:t},t}function td(e,t,r){return void 0===r&&(r=!1),t.reduce(function(e,t){return new o.BinaryOperand(t[1],e,t[3],r)},e)}if((a=c())!==l&&eN===e.length)return a;throw a!==l&&eN<e.length&&eZ({type:"end"}),r=eQ,n=ez<e.length?e.charAt(ez):null,i=ez<e.length?eK(ez,ez+1):eK(ez,ez),new s(s.buildMessage(r,n),r,n,i)}},
1"./src/expressions/expressions.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Operand",function(){return u}),r.d(t,"BinaryOperand",function(){return c}),r.d(t,"UnaryOperand",function(){return p}),r.d(t,"ArrayOperand",function(){return d}),r.d(t,"Const",function(){return h}),r.d(t,"Variable",function(){return m}),r.d(t,"FunctionOperand",function(){return f}),r.d(t,"OperandMaker",function(){return g});var n,o=r("./src/helpers.ts"),i=r("./src/functionsfactory.ts"),s=r("./src/conditionProcessValue.ts"),a=r("./src/settings.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(){function e(){}return e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e}(),c=function(e){function t(t,r,n,o){void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=r,i.right=n,i.isArithmeticValue=o,o?i.consumer=g.binaryFunctions.arithmeticOp(t):i.consumer=g.binaryFunctions[t],null==i.consumer&&g.throwInvalidOperatorError(t),i}return l(t,e),t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){return e.operator===this.operator&&this.areOperatorsEquals(this.left,e.left)&&this.areOperatorsEquals(this.right,e.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e))},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+g.safeToString(this.left,e)+" "+g.operatorToString(this.operatorName)+" "+g.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(u),p=function(e){function t(t,r){var n=e.call(this)||this;return n.expressionValue=t,n.operatorName=r,n.consumer=g.unaryFunctions[r],null==n.consumer&&g.throwInvalidOperatorError(r),n}return l(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return g.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){return e.operator==this.operator&&this.areOperatorsEquals(this.expression,e.expression)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(u),d=function(e){function t(t){var r=e.call(this)||this;return r.values=t,r}return l(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map(function(t){return t.toString(e)}).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map(function(t){return t.evaluate(e)})}
1,t.prototype.setVariables=function(e){this.values.forEach(function(t){t.setVariables(e)})},t.prototype.hasFunction=function(){return this.values.some(function(e){return e.hasFunction()})},t.prototype.hasAsyncFunction=function(){return this.values.some(function(e){return e.hasAsyncFunction()})},t.prototype.addToAsyncList=function(e){this.values.forEach(function(t){return t.addToAsyncList(e)})},t.prototype.isContentEqual=function(e){if(e.values.length!==this.values.length)return!1;for(var t=0;t<this.values.length;t++)if(!e.values[t].isEqual(this.values[t]))return!1;return!0},t}(u),h=function(e){function t(t){var r=e.call(this)||this;return r.value=t,r}return l(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){return e&&"string"==typeof e?this.isBooleanValue(e)?"true"===e.toLowerCase():e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1])?e.substring(1,e.length-1):g.isNumeric(e)?0==e.indexOf("0x")?parseInt(e):e.length>1&&"0"==e[0]?e:parseFloat(e):e:e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.isBooleanValue=function(e){return e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},t}(u),m=function(e){function t(r){var n=e.call(this,r)||this;return n.variableName=r,n.valueInfo={},n.useValueAsItIs=!1,n.variableName&&n.variableName.length>1&&n.variableName[0]===t.DisableConversionChar&&(n.variableName=n.variableName.substring(1),n.useValueAsItIs=!0),n}return l(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return a.settings.expressionDisableConversionChar},set:function(e){a.settings.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var r=e(this);if(r)return r}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(h),f=function(e){function t(t,r){var n=e.call(this)||this;return n.originalValue=t,n.parameters=r,n.isReadyValue=!1,Array.isArray(r)&&0===r.length&&(n.parameters=new d([])),n}return l(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluateAsync=function(e){var t=this;this.isReadyValue=!1;var r=new s.ProcessValue;r.values=o.Helpers.createCopy(e.values),r.properties=o.Helpers.createCopy(e.properties),r.properties.returnResult=function(e){t.asynResult=e,t.isReadyValue=!0,t.onAsyncReady()},this.evaluateCore(r)},t.prototype.evaluate=function(e){return this.isReady?this.asynResult:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){return i.FunctionFactory.Instance.run(this.originalValue,this.parameters.evaluate(e),e.properties)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return i.FunctionFactory.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){this.hasAsyncFunction()&&e.push(this)},t.prototype.isContentEqual=function(e){return e.originalValue==this.originalValue&&this.areOperatorsEquals(e.parameters,this.parameters)},t}(u),g=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return!t||e.isNumeric(t)||e.isBooleanValue(t)||(t="'"+t+"'"),t},e.isSpaceString=function(e){return!!e&&!e.replace(" ","")},e.isNumeric=function(t){return!(t&&(t.indexOf("-")>-1||t.indexOf("+")>1||t.indexOf("*")>-1||t.indexOf("^")>-1||t.indexOf("/")>-1||t.indexOf("%")>-1)||e.isSpaceString(t))&&o.Helpers.isNumber(t)},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(o.Helpers.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,r,n){var o=e.countDecimals(t),i=e.countDecimals(r);if(o>0||i>0){var s=Math.max(o,i);n=parseFloat(n.toFixed(s))}return n},e.isTwoValueEquals=function(e,t){return"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),o.Helpers.isTwoValueEquals(e,t,!0)},e.operatorToString=function(t){var r=e.signs[t];return null==r?t:r},e.unaryFunctions={empty:function(e){return o.Helpers.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){return function(r,n){o.Helpers.isValueEmpty(r)&&!e.isSpaceString(r)&&(r="string"==typeof n?"":0),o.Helpers.isValueEmpty(n)&&!e.isSpaceString(n)&&(n="string"==typeof r?"":0);var i=e.binaryFunctions[t];return null==i?null:i.call(this,r,n)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return o.Helpers.isNumber(e)&&o.Helpers.isNumber(t)?o.Helpers.correctAfterPlusMinis(e,t,e+t):e+t},minus:function(e,t){return o.Helpers.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return o.Helpers.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(e,t){return null!=e&&null!=t&&e>t},less:function(e,t){return null!=e&&null!=t&&e<t},greaterorequal:function(t,r){return!!e.binaryFunctions.equal(t,r)||e.binaryFunctions.greater(t,r)},lessorequal:function(t,r){return!!e.binaryFunctions.equal(t,r)||e.binaryFunctions.less(t,r)},equal:function(t,r){return e.isTwoValueEquals(t,r)},notequal:function(t,r){return!e.binaryFunctions.equal(t,r)},contains:function(t,r){return e.binaryFunctions.containsCore(t,r,!0)},notcontains:function(t,r){return!(t||o.Helpers.isValueEmpty(r))||e.binaryFunctions.containsCore(t,r,!1)},anyof:function(t,r){if(o.Helpers.isValueEmpty(t)&&o.Helpers.isValueEmpty(r))return!0;
1if(o.Helpers.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(o.Helpers.isValueEmpty(r))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(r,t);if(!Array.isArray(r))return e.binaryFunctions.contains(t,r);for(var n=0;n<r.length;n++)if(e.binaryFunctions.contains(t,r[n]))return!0;return!1},allof:function(t,r){if(!t&&!o.Helpers.isValueEmpty(r))return!1;if(!Array.isArray(r))return e.binaryFunctions.contains(t,r);for(var n=0;n<r.length;n++)if(!e.binaryFunctions.contains(t,r[n]))return!1;return!0},containsCore:function(t,r,n){if(!t&&0!==t&&!1!==t)return!1;if(!t.length&&(t=t.toString(),("string"==typeof r||r instanceof String)&&(t=t.toUpperCase(),r=r.toUpperCase())),"string"==typeof t||t instanceof String){if(!r)return!1;r=r.toString();var o=t.indexOf(r)>-1;return n?o:!o}for(var i=Array.isArray(r)?r:[r],s=0;s<i.length;s++){var a=0;for(r=i[s];a<t.length&&!e.isTwoValueEquals(t[a],r);a++);if(a==t.length)return!n}return n}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}()},
1"./src/flowpanel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FlowPanelModel",function(){return a});var n,o=r("./src/jsonobject.ts"),i=r("./src/panel.ts"),s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.createLocalizableString("content",r,!0),r.registerPropertyChangedHandlers(["content"],function(){r.onContentChanged()}),r}return s(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e="";e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,r=this.content,n=0,o=null;null!==(o=t.exec(r));){o.index>n&&(e.push(r.substring(n,o.index)),n=o.index);var i=this.getQuestionFromText(o[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(r.substring(n,o.index+o[0].length)),n=o.index+o[0].length}return n<r.length&&e.push(r.substring(n,r.length)),e.join("").replace(RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substring(1,e.length-1)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,r){e.prototype.onAddElement.call(this,t,r),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var r=this.getElementContentText(t);this.content=this.content.replace(r,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,r){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);this.insertTextAtCursor(t)||(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||"undefined"==typeof document||!window.getSelection)return!1;var r=window.getSelection();if(r.getRangeAt&&r.rangeCount){var n=r.getRangeAt(0);if(n.deleteContents(),n.insertNode(document.createTextNode(e)),this.getContent){var o=this.getContent(t);this.content=o}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(i.PanelModel);o.Serializer.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new a},"panel")},
1"./src/functionsfactory.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FunctionFactory",function(){return i}),r.d(t,"registerFunction",function(){return s});var n=r("./src/helpers.ts"),o=r("./src/settings.ts"),i=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,r){void 0===r&&(r=!1),this.functionHash[e]=t,r&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[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 o={func:n};if(r)for(var i in r)o[i]=r[i];return o.func(t)},e.Instance=new e,e}(),s=i.Instance.register;function a(e,t){if(null!=e)if(Array.isArray(e))for(var r=0;r<e.length;r++)a(e[r],t);else n.Helpers.isNumber(e)&&(e=parseFloat(e)),t.push(e)}function l(e){var t=[];a(e,t);for(var r=0,o=0;o<t.length;o++)r=n.Helpers.correctAfterPlusMinis(r,t[o],r+t[o]);return r}function u(e,t){var r=[];a(e,r);for(var n=void 0,o=0;o<r.length;o++)void 0===n&&(n=r[o]),t?n>r[o]&&(n=r[o]):n<r[o]&&(n=r[o]);return n}function c(e,t,r,o,i){var s;return!e||n.Helpers.isValueEmpty(e[t])?r:o(r,i?"string"==typeof(s=e[t])?n.Helpers.isNumber(s)?parseFloat(s):void 0:s:1)}function p(e,t,r){void 0===r&&(r=!0);var n=function(e){if(2!=e.length)return null;var t=e[0];if(!t||!Array.isArray(t)&&!Array.isArray(Object.keys(t)))return null;var r=e[1];return"string"==typeof r||r instanceof String?{data:t,name:r}:null}(e);if(n){var o=void 0;if(Array.isArray(n.data))for(var i=0;i<n.data.length;i++)o=c(n.data[i],n.name,o,t,r);else for(var s in n.data)o=c(n.data[s],n.name,o,t,r);return o}}function d(e){var t=p(e,function(e,t){return(void 0==e&&(e=0),void 0==t||null==t)?e:n.Helpers.correctAfterPlusMinis(e,t,e+t)});return void 0!==t?t:0}function h(e){var t=p(e,function(e,t){return(void 0==e&&(e=0),void 0==t||null==t)?e:e+1},!1);return void 0!==t?t:0}function m(e){if(!e)return!1;for(var t=e.questions,r=0;r<t.length;r++)if(t[r].hasErrors(!1))return!1;return!0}i.Instance.register("sum",l),i.Instance.register("min",function(e){return u(e,!0)}),i.Instance.register("max",function(e){return u(e,!1)}),i.Instance.register("count",function(e){var t=[];return a(e,t),t.length}),i.Instance.register("avg",function(e){var t=[];a(e,t);var r=l(e);return t.length>0?r/t.length:0}),i.Instance.register("sumInArray",d),i.Instance.register("minInArray",function(e){return p(e,function(e,t){return void 0==e?t:void 0==t||null==t||e<t?e:t})}),i.Instance.register("maxInArray",function(e){return p(e,function(e,t){return void 0==e?t:void 0==t||null==t||e>t?e:t})}),i.Instance.register("countInArray",h),i.Instance.register("avgInArray",function(e){var t=h(e);return 0==t?0:d(e)/t}),i.Instance.register("iif",function(e){return e||3===e.length?e[0]?e[1]:e[2]:""}),i.Instance.register("getDate",function(e){return(e||!(e.length<1))&&e[0]?new Date(e[0]):null}),i.Instance.register("age",function(e){if(!e&&e.length<1||!e[0])return null;var t=new Date(e[0]),r=new Date,n=r.getFullYear()-t.getFullYear(),o=r.getMonth()-t.getMonth();
1return(o<0||0===o&&r.getDate()<t.getDate())&&(n-=n>0),n}),i.Instance.register("isContainerReady",function(e){if(!e&&e.length<1||!e[0]||!this.survey)return!1;var t=e[0],r=this.survey.getPageByName(t);if(r||(r=this.survey.getPanelByName(t)),!r){var n=this.survey.getQuestionByName(t);if(!n||!Array.isArray(n.panels))return!1;if(e.length>1)e[1]<n.panels.length&&(r=n.panels[e[1]]);else{for(var o=0;o<n.panels.length;o++)if(!m(n.panels[o]))return!1;return!0}}return m(r)}),i.Instance.register("isDisplayMode",function(){return this.survey&&this.survey.isDisplayMode}),i.Instance.register("currentDate",function(){return new Date}),i.Instance.register("today",function(e){var t=new Date;return o.settings.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t}),i.Instance.register("getYear",function(e){if(1===e.length&&e[0])return new Date(e[0]).getFullYear()}),i.Instance.register("currentYear",function(){return new Date().getFullYear()}),i.Instance.register("diffDays",function(e){if(!Array.isArray(e)||2!==e.length||!e[0]||!e[1])return 0;var t=new Date(e[0]);return Math.ceil(Math.abs(new Date(e[1])-t)/864e5)})},
1"./src/helpers.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Helpers",function(){return o});var n=r("./src/settings.ts"),o=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&"object"==typeof t&&t.constructor===Object){for(var r in t)if(!e.isValueEmpty(t[r]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,r){if(!Array.isArray(t)||!Array.isArray(r)||t.length!==r.length)return!1;for(var n=0;n<t.length;n++){for(var o=0;o<r.length&&!e.isTwoValueEquals(t[n],r[o]);o++);if(o===r.length)return!1}return!0},e.isArraysEqual=function(t,r,n,o,i){if(void 0===n&&(n=!1),!Array.isArray(t)||!Array.isArray(r)||t.length!==r.length)return!1;if(n){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(r[l]);s.sort(),a.sort(),t=s,r=a}for(var l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],r[l],n,o,i))return!1;return!0},e.isTwoValueEquals=function(t,r,o,i,s){if(void 0===o&&(o=!1),t===r||Array.isArray(t)&&0===t.length&&void 0===r||Array.isArray(r)&&0===r.length&&void 0===t||null==t&&""===r||null==r&&""===t)return!0;if(void 0===s&&(s=n.settings.comparator.trimStrings),void 0===i&&(i=n.settings.comparator.caseSensitive),"string"==typeof t&&"string"==typeof r)return s&&(t=t.trim(),r=r.trim()),i||(t=t.toLowerCase(),r=r.toLowerCase()),t===r;if(t instanceof Date&&r instanceof Date)return t.getTime()==r.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(r)&&parseInt(t)===parseInt(r)&&parseFloat(t)===parseFloat(r))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(r)||e.isValueEmpty(t)&&!e.isValueEmpty(r))return!1;if((!0===t||!1===t)&&"string"==typeof r)return t.toString()===r.toLocaleLowerCase();if((!0===r||!1===r)&&"string"==typeof t)return r.toString()===t.toLocaleLowerCase();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(t.toJSON&&r.toJSON&&t.getType&&r.getType)return!t.isDiposed&&!r.isDiposed&&t.getType()===r.getType()&&(!t.name||t.name===r.name)&&this.isTwoValueEquals(t.toJSON(),r.toJSON(),o,i,s);if(Array.isArray(t)&&Array.isArray(r))return e.isArraysEqual(t,r,o,i,s);if(t.equalsTo&&r.equalsTo)return t.equalsTo(r);for(var a in t)if(t.hasOwnProperty(a)&&(!r.hasOwnProperty(a)||!this.isTwoValueEquals(t[a],r[a],o,i,s)))return!1;for(a in r)if(r.hasOwnProperty(a)&&!t.hasOwnProperty(a))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&&!(e instanceof Date)?JSON.parse(JSON.stringify(e)):e},e.createCopy=function(e){var t={};if(!e)return t;for(var r in e)t[r]=e[r];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isNumber=function(e){return("string"!=typeof e||!e||0!=e.indexOf("0x")||!(e.length>32))&&!isNaN(parseFloat(e))&&isFinite(e)},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getNumberByIndex=function(t,r){if(t<0)return"";var n=1,o="",i=".",s=!0,a="A",l="";if(r){for(var u=(l=r).length-1,c=!1,p=0;p<l.length;p++)if(e.isCharDigit(l[p])){c=!0;break}for(var d=function(){return c&&!e.isCharDigit(l[u])||e.isCharNotLetterAndDigit(l[u])};u>=0&&d();)u--;var h="";for(u<l.length-1&&(h=l.substring(u+1),l=l.substring(0,u+1)),u=l.length-1;u>=0&&!d()&&(u--,c););a=l.substring(u+1),o=l.substring(0,u+1),parseInt(a)?n=parseInt(a):1==a.length&&(s=!1),(h||o)&&(i=h)}return s?o+(t+n).toString()+i:o+String.fromCharCode(a.charCodeAt(0)+t)+i},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var r=t.toString().split(".");return r.length>1&&r[1].length||0}return 0},e.correctAfterPlusMinis=function(t,r,n){var o=e.countDecimals(t),i=e.countDecimals(r);if(o>0||i>0){var s=Math.max(o,i);n=parseFloat(n.toFixed(s))}return n},e.correctAfterMultiple=function(t,r,n){var o=e.countDecimals(t)+e.countDecimals(r);return o>0&&(n=parseFloat(n.toFixed(o))),n},e.convertArrayValueToObject=function(t,r,n){void 0===n&&(n=void 0);var o=[];if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(n)&&(s=e.findObjByPropValue(n,r,t[i])),s||((s={})[r]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,r,n){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][r],n))return t[o]},e.convertArrayObjectToValue=function(t,r){var n=[];if(!t||!Array.isArray(t))return n;for(var o=0;o<t.length;o++){var i=t[o]?t[o][r]:void 0;e.isValueEmpty(i)||n.push(i)}return n},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,r){return t instanceof Date?"datetime"===r?e.convertDateTimeToString(t):e.convertDateToString(t):t},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})})},"./src/images sync \\.svg$":function(e,t,r){var n={"./ArrowDown_34x34.svg":"./src/images/ArrowDown_34x34.svg","./ArrowLeft.svg":"./src/images/ArrowLeft.svg","./ArrowRight.svg":"./src/images/ArrowRight.svg","./Arrow_downGREY_10x10.svg":"./src/images/Arrow_downGREY_10x10.svg","./ChooseFile.svg":"./src/images/ChooseFile.svg","./Clear.svg":"./src/images/Clear.svg","./DefaultFile.svg":"./src/images/DefaultFile.svg","./Delete.svg":"./src/images/Delete.svg","./Down_34x34.svg":"./src/images/Down_34x34.svg","./Left.svg":"./src/images/Left.svg","./ModernBooleanCheckChecked.svg":"./src/images/ModernBooleanCheckChecked.svg","./ModernBooleanCheckInd.svg":"./src/images/ModernBooleanCheckInd.svg","./ModernBooleanCheckUnchecked.svg":"./src/images/ModernBooleanCheckUnchecked.svg","./ModernCheck.svg":"./src/images/ModernCheck.svg","./ModernRadio.svg":"./src/images/ModernRadio.svg","./More.svg":"./src/images/More.svg","./ProgressButton.svg":"./src/images/ProgressButton.svg","./ProgressButtonV2.svg":"./src/images/ProgressButtonV2.svg","./RemoveFile.svg":"./src/images/RemoveFile.svg","./Right.svg":"./src/images/Right.svg","./TimerCircle.svg":"./src/images/TimerCircle.svg","./V2Check.svg":"./src/images/V2Check.svg","./V2Check_24x24.svg":"./src/images/V2Check_24x24.svg","./V2DragElement_16x16.svg":"./src/images/V2DragElement_16x16.svg","./clear_16x16.svg":"./src/images/clear_16x16.svg","./collapseDetail.svg":"./src/images/collapseDetail.svg","./expandDetail.svg":"./src/images/expandDetail.svg","./no-image.svg":"./src/images/no-image.svg","./search.svg":"./src/images/search.svg"};function o(e){return r(i(e))}function i(e){if(!r.o(n,e)){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return n[e]}o.keys=function(){return Object.keys(n)},o.resolve=i,e.exports=o,o.id="./src/images sync \\.svg$"},
1"./src/images/ArrowDown_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><polygon class="st0" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></svg>'},
1"./src/images/ArrowLeft.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},
1"./src/images/ArrowRight.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M1 6.99999H11.6L7.3 2.69999L8.7 1.29999L15.4 7.99999L8.7 14.7L7.3 13.3L11.6 8.99999H1V6.99999Z"></path></svg>'},
1"./src/images/Arrow_downGREY_10x10.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 10 10" xml:space="preserve"><polygon class="st0" points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},
1"./src/images/ChooseFile.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 9V7C22 5.9 21.1 5 20 5H12L10 3H4C2.9 3 2 3.9 2 5V9V10V21H22L24 9H22ZM4 5H9.2L10.6 6.4L11.2 7H12H20V9H4V5ZM20.3 19H4V11H21.6L20.3 19Z"></path></svg>'},
1"./src/images/Clear.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22.6 8.6L16.4 2.4C16 2 15.5 1.8 15 1.8C14.5 1.8 14 2 13.6 2.4L1.4 14.6C0.600003 15.4 0.600003 16.6 1.4 17.4L6 22H12L22.6 11.4C23.3 10.6 23.3 9.3 22.6 8.6ZM11.1 20H6.8L2.8 16L6.2 12.6L12.4 18.8L11.1 20ZM13.8 17.4L7.6 11.2L15 3.8L21.2 10L13.8 17.4ZM16 20H23V22H14L16 20Z"></path></svg>'},
1"./src/images/DefaultFile.svg":function(e,t){e.exports='<svg viewBox="0 0 56 68" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_9011_41219)"><path d="M54.83 10.83L45.17 1.17C44.7982 0.798664 44.357 0.504208 43.8714 0.303455C43.3858 0.102703 42.8654 -0.000411943 42.34 1.2368e-06H6C4.4087 1.2368e-06 2.88257 0.632142 1.75735 1.75736C0.632136 2.88258 0 4.4087 0 6V62C0 63.5913 0.632136 65.1174 1.75735 66.2426C2.88257 67.3679 4.4087 68 6 68H50C51.5913 68 53.1174 67.3679 54.2426 66.2426C55.3679 65.1174 56 63.5913 56 62V13.66C56.0004 13.1346 55.8973 12.6142 55.6965 12.1286C55.4958 11.643 55.2013 11.2018 54.83 10.83ZM44 2.83L53.17 12H48C46.9391 12 45.9217 11.5786 45.1716 10.8284C44.4214 10.0783 44 9.06087 44 8V2.83ZM54 62C54 63.0609 53.5786 64.0783 52.8284 64.8284C52.0783 65.5786 51.0609 66 50 66H6C4.93913 66 3.92172 65.5786 3.17157 64.8284C2.42142 64.0783 2 63.0609 2 62V6C2 4.93914 2.42142 3.92172 3.17157 3.17157C3.92172 2.42143 4.93913 2 6 2H42V8C42 9.5913 42.6321 11.1174 43.7574 12.2426C44.8826 13.3679 46.4087 14 48 14H54V62ZM14 24H42V26H14V24ZM14 30H42V32H14V30ZM14 36H42V38H14V36ZM14 42H42V44H14V42Z" fill="#909090"></path></g><defs><clipPath id="clip0_9011_41219"><rect width="56" height="68" fill="white"></rect></clipPath></defs></svg>'},
1"./src/images/Delete.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M22 4H20H16V2C16 0.9 15.1 0 14 0H10C8.9 0 8 0.9 8 2V4H4H2V6H4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V6H22V4ZM10 2H14V4H10V2ZM18 20H6V6H8H16H18V20ZM14 8H16V18H14V8ZM11 8H13V18H11V8ZM8 8H10V18H8V8Z"></path></svg>'},
1"./src/images/Down_34x34.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 34 34" xml:space="preserve"><g><path class="st0" d="M33,34H0V0h33c0.6,0,1,0.4,1,1v32C34,33.6,33.6,34,33,34z"></path><polygon class="st1" points="12,16 14,14 17,17 20,14 22,16 17,21 "></polygon></g></svg>'},
1"./src/images/Left.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="11,12 9,14 3,8 9,2 11,4 7,8 "></polygon></svg>'},
1"./src/images/ModernBooleanCheckChecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><polygon points="19,10 14,10 14,5 10,5 10,10 5,10 5,14 10,14 10,19 14,19 14,14 19,14 "></polygon></svg>'},
1"./src/images/ModernBooleanCheckInd.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M22,0H2C0.9,0,0,0.9,0,2v20c0,1.1,0.9,2,2,2h20c1.1,0,2-0.9,2-2V2C24,0.9,23.1,0,22,0z M21,18L6,3h15V18z M3,6l15,15H3V6z"></path></svg>'},
1"./src/images/ModernBooleanCheckUnchecked.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><rect x="5" y="10" width="14" height="4"></rect></svg>'},
1"./src/images/ModernCheck.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24"><path d="M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"></path></svg>'},
1"./src/images/ModernRadio.svg":function(e,t){e.exports='<svg viewBox="-12 -12 24 24"><circle r="6" cx="0" cy="0"></circle></svg>'},
1"./src/images/More.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M6 12C6 13.1 5.1 14 4 14C2.9 14 2 13.1 2 12C2 10.9 2.9 10 4 10C5.1 10 6 10.9 6 12ZM12 10C10.9 10 10 10.9 10 12C10 13.1 10.9 14 12 14C13.1 14 14 13.1 14 12C14 10.9 13.1 10 12 10ZM20 10C18.9 10 18 10.9 18 12C18 13.1 18.9 14 20 14C21.1 14 22 13.1 22 12C22 10.9 21.1 10 20 10Z"></path></svg>'},
1"./src/images/ProgressButton.svg":function(e,t){e.exports='<svg viewBox="0 0 10 10"><polygon points="2,2 0,4 5,9 10,4 8,2 5,5 "></polygon></svg>'},
1"./src/images/ProgressButtonV2.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M15 8.99999H4.39998L8.69998 13.3L7.29998 14.7L0.599976 7.99999L7.29998 1.29999L8.69998 2.69999L4.39998 6.99999H15V8.99999Z"></path></svg>'},
1"./src/images/RemoveFile.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16"><path d="M8,2C4.7,2,2,4.7,2,8s2.7,6,6,6s6-2.7,6-6S11.3,2,8,2z M11,10l-1,1L8,9l-2,2l-1-1l2-2L5,6l1-1l2,2l2-2l1,1L9,8 L11,10z"></path></svg>'},
1"./src/images/Right.svg":function(e,t){e.exports='<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 16 16" xml:space="preserve"><polygon points="5,4 7,2 13,8 7,14 5,12 9,8 "></polygon></svg>'},
1"./src/images/TimerCircle.svg":function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 160 160"><circle cx="80" cy="80" r="70" style="stroke: var(--sd-timer-stroke-background-color); stroke-width: var(--sd-timer-stroke-background-width)" stroke-dasharray="none" stroke-dashoffset="none"></circle><circle cx="80" cy="80" r="70"></circle></svg>'},
1"./src/images/V2Check.svg":function(e,t){e.exports='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.00001 15.8L2.60001 10.4L4.00001 9L8.00001 13L16 5L17.4 6.4L8.00001 15.8Z"></path></svg>'},
1"./src/images/V2Check_24x24.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M9 20.1L1 12L3.1 9.9L9 15.9L20.9 4L23 6.1L9 20.1Z"></path></svg>'},
1"./src/images/V2DragElement_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M2 4C2 3.73478 2.10536 3.48043 2.29289 3.29289C2.48043 3.10536 2.73478 3 3 3H13C13.2652 3 13.5196 3.10536 13.7071 3.29289C13.8946 3.48043 14 3.73478 14 4C14 4.26522 13.8946 4.51957 13.7071 4.70711C13.5196 4.89464 13.2652 5 13 5H3C2.73478 5 2.48043 4.89464 2.29289 4.70711C2.10536 4.51957 2 4.26522 2 4ZM13 7H3C2.73478 7 2.48043 7.10536 2.29289 7.29289C2.10536 7.48043 2 7.73478 2 8C2 8.26522 2.10536 8.51957 2.29289 8.70711C2.48043 8.89464 2.73478 9 3 9H13C13.2652 9 13.5196 8.89464 13.7071 8.70711C13.8946 8.51957 14 8.26522 14 8C14 7.73478 13.8946 7.48043 13.7071 7.29289C13.5196 7.10536 13.2652 7 13 7ZM13 11H3C2.73478 11 2.48043 11.1054 2.29289 11.2929C2.10536 11.4804 2 11.7348 2 12C2 12.2652 2.10536 12.5196 2.29289 12.7071C2.48043 12.8946 2.73478 13 3 13H13C13.2652 13 13.5196 12.8946 13.7071 12.7071C13.8946 12.5196 14 12.2652 14 12C14 11.7348 13.8946 11.4804 13.7071 11.2929C13.5196 11.1054 13.2652 11 13 11Z"></path></svg>'},
1"./src/images/clear_16x16.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13.35 3.34999L12.65 2.64999L8.05002 7.24999L3.35002 2.64999L2.65002 3.34999L7.25002 8.04999L2.65002 12.65L3.35002 13.35L8.05002 8.74999L12.65 13.35L13.35 12.65L8.75002 8.04999L13.35 3.34999Z"></path></svg>'},
1"./src/images/collapseDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H3V9H13V7Z"></path></svg>'},
1"./src/images/expandDetail.svg":function(e,t){e.exports='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M13 7H9V3H7V7H3V9H7V13H9V9H13V7Z"></path></svg>'},
1"./src/images/no-image.svg":function(e,t){e.exports='<svg viewBox="0 0 48 48"><g opacity="0.5"><path d="M14 17.01C14 16.4167 14.1759 15.8366 14.5056 15.3433C14.8352 14.8499 15.3038 14.4654 15.8519 14.2384C16.4001 14.0113 17.0033 13.9519 17.5853 14.0676C18.1672 14.1834 18.7018 14.4691 19.1213 14.8887C19.5409 15.3082 19.8266 15.8428 19.9424 16.4247C20.0581 17.0067 19.9987 17.6099 19.7716 18.1581C19.5446 18.7062 19.1601 19.1748 18.6667 19.5044C18.1734 19.8341 17.5933 20.01 17 20.01C16.2044 20.01 15.4413 19.6939 14.8787 19.1313C14.3161 18.5687 14 17.8056 14 17.01ZM27.09 24.14L20 36.01H36L27.09 24.14ZM36.72 8.14L35.57 10.01H36C36.5304 10.01 37.0391 10.2207 37.4142 10.5958C37.7893 10.9709 38 11.4796 38 12.01V36.01C38 36.5404 37.7893 37.0491 37.4142 37.4242C37.0391 37.7993 36.5304 38.01 36 38.01H18.77L17.57 40.01H36C37.0609 40.01 38.0783 39.5886 38.8284 38.8384C39.5786 38.0883 40 37.0709 40 36.01V12.01C39.9966 11.0765 39.6668 10.1737 39.0678 9.45778C38.4688 8.74188 37.6382 8.25802 36.72 8.09V8.14ZM36.86 4.5L12.86 44.5L11.14 43.5L13.23 40.01H12C10.9391 40.01 9.92172 39.5886 9.17157 38.8384C8.42143 38.0883 8 37.0709 8 36.01V12.01C8 10.9491 8.42143 9.93172 9.17157 9.18157C9.92172 8.43143 10.9391 8.01 12 8.01H32.43L35.14 3.5L36.86 4.5ZM14.43 38.01L15.63 36.01H12L19 27.01L20.56 27.8L31.23 10.01H12C11.4696 10.01 10.9609 10.2207 10.5858 10.5958C10.2107 10.9709 10 11.4796 10 12.01V36.01C10 36.5404 10.2107 37.0491 10.5858 37.4242C10.9609 37.7993 11.4696 38.01 12 38.01H14.43Z"></path></g></svg>'},
1"./src/images/search.svg":function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M14 2C9.6 2 6 5.6 6 10C6 11.8 6.6 13.5 7.7 14.9L2.3 20.3C1.9 20.7 1.9 21.3 2.3 21.7C2.5 21.9 2.7 22 3 22C3.3 22 3.5 21.9 3.7 21.7L9.1 16.3C10.5 17.4 12.2 18 14 18C18.4 18 22 14.4 22 10C22 5.6 18.4 2 14 2ZM14 16C10.7 16 8 13.3 8 10C8 6.7 10.7 4 14 4C17.3 4 20 6.7 20 10C20 13.3 17.3 16 14 16Z"></path></svg>'},
1"./src/itemvalue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ItemValue",function(){return p});var n,o=r("./src/localizablestring.ts"),i=r("./src/jsonobject.ts"),s=r("./src/helpers.ts"),a=r("./src/conditions.ts"),l=r("./src/base.ts"),u=r("./src/settings.ts"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="itemvalue");var a=e.call(this)||this;return a.typeName=n,a.ownerPropertyName="",a.locTextValue=new o.LocalizableString(a,!0,"text"),a.locTextValue.onStrChanged=function(e,t){t==a.value&&(t=void 0),a.propertyValueChanged("text",e,t)},a.locTextValue.onGetTextCallback=function(e){return e||(s.Helpers.isValueEmpty(a.value)?null:a.value.toString())},r&&(a.locText.text=r),t&&"object"==typeof t?a.setData(t):a.value=t,"itemvalue"!=a.getType()&&i.CustomPropertiesCollection.createProperties(a),a.onCreating(),a}return c(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return u.settings.itemValueSeparator},set:function(e){u.settings.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,t,r){e.length=0;for(var n=0;n<t.length;n++){var o=t[n],s=o&&"function"==typeof o.getType?o.getType():null!=r?r:"itemvalue",a=i.Serializer.createClass(s);
1a.setData(o),o.originalItem&&(a.originalItem=o.originalItem),e.push(a)}},t.getData=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].getData());return t},t.getItemByValue=function(e,t){if(!Array.isArray(e))return null;for(var r=s.Helpers.isValueEmpty(t),n=0;n<e.length;n++)if(r&&s.Helpers.isValueEmpty(e[n].value)||s.Helpers.isTwoValueEquals(e[n].value,t,!1,!0,!1))return e[n];return null},t.getTextOrHtmlByValue=function(e,r){var n=t.getItemByValue(e,r);return null!==n?n.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()},t.runConditionsForItems=function(e,r,n,o,i,s,a){return void 0===s&&(s=!0),t.runConditionsForItemsCore(e,r,n,o,i,!0,s,a)},t.runEnabledConditionsForItems=function(e,r,n,o,i){return t.runConditionsForItemsCore(e,null,r,n,o,!1,!0,i)},t.runConditionsForItemsCore=function(e,t,r,n,o,i,s,a){void 0===s&&(s=!0),n||(n={});for(var l=n.item,u=n.choice,c=!1,p=0;p<e.length;p++){var d=e[p];n.item=d.value,n.choice=d.value;var h=!!s&&!!d.getConditionRunner&&d.getConditionRunner(i);h||(h=r);var m=!0;h&&(m=h.run(n,o)),a&&(m=a(d,m)),t&&m&&t.push(d),m!=(i?d.isVisible:d.isEnabled)&&(c=!0,i?d.setIsVisible&&d.setIsVisible(m):d.setIsEnabled&&d.setIsEnabled(m))}return l?n.item=l:delete n.item,u?n.choice=u:delete n.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){var t=void 0;if(!s.Helpers.isValueEmpty(e)){var r=e.toString(),n=r.indexOf(u.settings.itemValueSeparator);n>-1&&(e=r.slice(0,n),t=r.slice(n+1))}this.setPropertyValue("value",e),t&&(this.text=t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return null!=e&&!Array.isArray(e)&&"object"!=typeof e},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,s.Helpers.isValueEmpty(e.value))return e;var t=this.canSerializeValue();return t&&(u.settings.itemValueAlwaysSerializeAsObject||u.settings.itemValueAlwaysSerializeText)||1!=Object.keys(e).length?(u.settings.itemValueAlwaysSerializeText&&void 0===e.text&&t&&(e.text=this.value.toString()),e):this.value},t.prototype.toJSON=function(){var e={},t=i.Serializer.getProperties(this.getType());t&&0!=t.length||(t=i.Serializer.getProperties("itemvalue"));for(var r=new i.JsonObject,n=0;n<t.length;n++){var o=t[n];"text"===o.name&&!this.locText.hasNonDefaultText()&&s.Helpers.isTwoValueEquals(this.value,this.text,!1,!0,!1)||r.valueToJson(this,e,o)}return e},t.prototype.setData=function(e){if(!s.Helpers.isValueEmpty(e)){if(void 0===e.value&&void 0!==e.text&&1===Object.keys(e).length&&(e.value=e.text),void 0!==e.value){var t=void 0;t="function"==typeof e.toJSON?e.toJSON():e,new i.JsonObject().toObject(t,this)}else this.value=e;this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!0)},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){return this.getPropertyValue("isEnabled",!0)},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,t,r){"value"!==e||this.hasText||this.locText.strChanged();var n="itemValuePropertyChanged";this.locOwner&&this.locOwner[n]&&this.locOwner[n](this,e,t,r)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(this.visibleConditionRunner||(this.visibleConditionRunner=new a.ConditionRunner(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(this.enableConditionRunner||(this.enableConditionRunner=new a.ConditionRunner(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},t}(l.Base);l.Base.createItemValue=function(e,t){var r=null;return(r=t?i.JsonObject.metaData.createClass(t,{}):"function"==typeof e.getType?new p(null,void 0,e.getType()):new p(null)).setData(e),r},l.Base.itemValueLocStrChanged=function(e){p.locStrsChanged(e)},i.JsonObjectProperty.getItemValuesDefaultValue=function(e,t){var r=[];return p.setData(r,Array.isArray(e)?e:[],t),r},i.Serializer.addClass("itemvalue",["!value",{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(e){return!e||"rateValues"!==e.ownerPropertyName}}],function(e){return new p(e)})},
1"./src/jsonobject.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"property",function(){return c}),r.d(t,"propertyArray",function(){return d}),r.d(t,"JsonObjectProperty",function(){return h}),r.d(t,"CustomPropertiesCollection",function(){return m}),r.d(t,"JsonMetadataClass",function(){return f}),r.d(t,"JsonMetadata",function(){return g}),r.d(t,"JsonError",function(){return y}),r.d(t,"JsonUnknownPropertyError",function(){return v}),r.d(t,"JsonMissingTypeErrorBase",function(){return b}),r.d(t,"JsonMissingTypeError",function(){return C}),r.d(t,"JsonIncorrectTypeError",function(){return x}),r.d(t,"JsonRequiredPropertyError",function(){return w}),r.d(t,"JsonObject",function(){return _}),r.d(t,"Serializer",function(){return P});var n,o=r("./src/surveyStrings.ts"),i=r("./src/base.ts"),s=r("./src/helpers.ts"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};function u(e,t,r){var n=e.getLocalizableString(r);n||(n=e.createLocalizableString(r,e,!0),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(n.onGetTextCallback=t.localizable.onGetTextCallback))}function c(e){return function(t,r){var n=function(e,t){if(t&&"object"==typeof t&&t.type===i.ComputedUpdater.ComputedUpdaterType){i.Base.startCollectDependencies(function(){return e[r]=t.updater()},e,r);var n=t.updater(),o=i.Base.finishCollectDependencies();return t.setDependencies(o),n}return t};e&&e.localizable?(Object.defineProperty(t,r,{get:function(){u(this,e,r);var t=this.getLocalizableStringText(r);if(t)return t;if("object"==typeof e.localizable&&e.localizable.defaultStr){var n=this.getLocale?this.getLocale():"";return o.surveyLocalization.getString(e.localizable.defaultStr,n)}return""},set:function(t){u(this,e,r);var o=n(this,t);this.setLocalizableStringText(r,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+r.charAt(0).toUpperCase()+r.slice(1),{get:function(){return u(this,e,r),this.getLocalizableString(r)}})):Object.defineProperty(t,r,{get:function(){var t=this.getPropertyValue(r);if(void 0!==t)return t;if(e){if("function"==typeof e.getDefaultValue)return e.getDefaultValue(this);if(void 0!==e.defaultValue)return e.defaultValue}},set:function(t){var o=n(this,t);this.setPropertyValue(r,o),e&&e.onSet&&e.onSet(o,this)}})}}function p(e,t,r){e.ensureArray(r,function(r,n){var o=t?t.onPush:null;o&&o(r,n,e)},function(r,n){var o=t?t.onRemove:null;o&&o(r,n,e)})}function d(e){return function(t,r){Object.defineProperty(t,r,{get:function(){return p(this,e,r),this.getPropertyValue(r)},set:function(t){p(this,e,r);var n=this.getPropertyValue(r);t!==n&&(n?n.splice.apply(n,l([0,n.length],t||[],!1)):this.setPropertyValue(r,t),e&&e.onSet&&e.onSet(t,this))}})}}var h=function(){function e(t,r,n){void 0===n&&(n=!1),this.name=r,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=n,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){this.isRequiredValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){var t=this.defaultValueValue;return e.getItemValuesDefaultValue&&_.metaData.isDescendantOf(this.className,"itemvalue")&&(t=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),t},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return s.Helpers.isValueEmpty(this.defaultValue)?!1===e&&("boolean"==this.type||"switch"==this.type)||""===e||s.Helpers.isValueEmpty(e):s.Helpers.isTwoValueEquals(e,this.defaultValue,!1,!0,!1)},e.prototype.getValue=function(e){return this.onGetValue?this.onGetValue(e):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,r){this.onSetValue?this.onSetValue(e,t,r):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),("boolean"==this.type||"switch"==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&&0>e.indexOf(this.classNamePart)?e+this.classNamePart:e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return(void 0===t&&(t=null),null!=this.choicesValue)?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var r=!this.layout||this.layout==e;return!!this.visible&&!!r&&(!this.visibleIf||!t||this.visibleIf(t))},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,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.addDependedProperty=function(e){this.dependedProperties||(this.dependedProperties=[]),0>this.dependedProperties.indexOf(e)&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){return this.className||this.baseClassName?"array":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","layout","classNamePart","baseClassName","defaultValue","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","
1nextToProperty","showMode","dependedProperties","visibleIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),m=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 o=n[t],i=0;i<o.length;i++)if(o[i].name==r){n[t].splice(i,1);break}}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},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 o=n[t];if(o)for(var i=0;i<o.length;i++)r.push(o[i]);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 o=e.parentClasses[r];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,r){for(var n=0;n<r.length;n++)e.createPropertyInObj(t,r[n])},e.createPropertyInObj=function(t,r){if(!e.checkIsPropertyExists(t,r.name)&&!(r.serializationProperty&&e.checkIsPropertyExists(t,r.serializationProperty))){if(r.isLocalizable&&r.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(r.name),Object.defineProperty(t,r.serializationProperty,{get:function(){return t.getLocalizableString(r.name)}});var n={get:function(){return t.getLocalizableStringText(r.name,r.defaultValue)},set:function(e){t.setLocalizableStringText(r.name,e)}};Object.defineProperty(t,r.name,n)}else{var o=r.defaultValue,i=r.isArray||"multiplevalues"===r.type;if("function"==typeof t.createNewArray&&(_.metaData.isDescendantOf(r.className,"itemvalue")?(t.createNewArray(r.name,function(e){e.locOwner=t,e.ownerPropertyName=r.name}),i=!0):i&&t.createNewArray(r.name),i&&(Array.isArray(o)&&t.setPropertyValue(r.name,o),o=null)),t.getPropertyValue&&t.setPropertyValue){var n={get:function(){return r.onGetValue?r.onGetValue(t):t.getPropertyValue(r.name,o)},set:function(e){r.onSetValue?r.onSetValue(t,e,null):t.setPropertyValue(r.name,e)}};Object.defineProperty(t,r.name,n)}}("condition"===r.type||"expression"===r.type)&&r.onExecuteExpression&&t.addExpressionProperty(r.name,r.onExecuteExpression)}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),f=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(),this.isCustomValue=!r&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),m.addClass(e,this.parentName),r&&this.makeParentRegularClass()),this.properties=[];for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}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},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!P.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;m.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=P.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,r){void 0===r&&(r=!1);var n="string"==typeof t?t:t.name;if(n){var o=null,i=n.indexOf(e.typeSymbol);i>-1&&(o=n.substring(i+1),n=n.substring(0,i));var a=this.getIsPropertyNameRequired(n)||!!t.isRequired,l=new h(this,n=this.getPropertyName(n),a);if(o&&(l.type=o),"object"==typeof t){if(t.type&&(l.type=t.type),void 0!==t.default&&(l.defaultValue=t.default),s.Helpers.isValueEmpty(t.isSerializable)||(l.isSerializable=t.isSerializable),s.Helpers.isValueEmpty(t.isLightSerializable)||(l.isLightSerializable=t.isLightSerializable),s.Helpers.isValueEmpty(t.maxLength)||(l.maxLength=t.maxLength),s.Helpers.isValueEmpty(t.displayName)||(l.displayName=t.displayName),s.Helpers.isValueEmpty(t.category)||(l.category=t.category),s.Helpers.isValueEmpty(t.categoryIndex)||(l.categoryIndex=t.categoryIndex),s.Helpers.isValueEmpty(t.nextToProperty)||(l.nextToProperty=t.nextToProperty),s.Helpers.isValueEmpty(t.visibleIndex)||(l.visibleIndex=t.visibleIndex),s.Helpers.isValueEmpty(t.showMode)||(l.showMode=t.showMode),s.Helpers.isValueEmpty(t.maxValue)||(l.maxValue=t.maxValue),s.Helpers.isValueEmpty(t.minValue)||(l.minValue=t.minValue),s.Helpers.isValueEmpty(t.dataList)||(l.dataList=t.dataList),s.Helpers.isValueEmpty(t.isDynamicChoices)||(l.isDynamicChoices=t.isDynamicChoices),s.Helpers.isValueEmpty(t.isBindable)||(l.isBindable=t.isBindable),s.Helpers.isValueEmpty(t.isUnique)||(l.isUnique=t.isUnique),s.Helpers.isValueEmpty(t.uniqueProperty)||(l.uniquePropertyName=t.uniqueProperty),s.Helpers.isValueEmpty(t.isArray)||(l.isArray=t.isArray),(!0===t.visible||!1===t.visible)&&(l.visible=t.visible),t.visibleIf&&(l.visibleIf=t.visibleIf),t.onExecuteExpression&&(l.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(l.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(l.readOnly=!0),t.choices){var u="function"==typeof t.choices?t.choices:null,c="function"!=typeof t.choices?t.choices:null;l.setChoices(c,u)}t.baseValue&&l.setBaseValue(t.baseValue),t.onGetValue&&(l.onGetValue=t.onGetValue),t.onSetValue&&(l.onSetValue=t.onSetValue),t.onSettingValue&&(l.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+l.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),t.layout&&(l.layout=t.layout),t.depen
1dsOn&&this.addDependsOnProperties(l,t.dependsOn)}return this.properties.push(l),r&&!this.isOverridedProp(l.name)&&(l.isCustom=!0,m.addProperty(this.name,l)),l}},e.prototype.addDependsOnProperties=function(e,t){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.addDependsOnProperty(e,t[r]);else this.addDependsOnProperty(e,t)},e.prototype.addDependsOnProperty=function(e,t){var r=this.find(t);r||(r=P.findProperty(this.parentName,t)),r&&r.addDependedProperty(e.name)},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}(),g=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.classProperties={},this.classHashProperties={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)){var r=e.getOriginalObj(),n=P.findProperty(r.getType(),t);if(n)return this.getObjPropertyValueCore(r,n)}var n=P.findProperty(e.getType(),t);return n?this.getObjPropertyValueCore(e,n):e[t]},e.prototype.setObjPropertyValue=function(e,t,r){if(e[t]!==r)if(e[t]&&e[t].setJson)e[t].setJson(r);else{if(Array.isArray(r)){for(var n=[],o=0;o<r.length;o++)n.push(r[o]);r=n}e[t]=r}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.addClass=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null);var o=new f(e=e.toLowerCase(),t,r,n);return this.classes[e]=o,n&&(n=n.toLowerCase(),this.childrenClasses[n]||(this.childrenClasses[n]=[]),this.childrenClasses[n].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var r=this.childrenClasses[t.parentName].indexOf(t);r>-1&&this.childrenClasses[t.parentName].splice(r,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=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||(this.fillPropertiesForClass(t.name),this.classProperties[t.name])},e.prototype.getHashProperties=function(e){var t=this.findClass(e);if(!t)return{};var r=this.classHashProperties[t.name];return r||(this.fillPropertiesForClass(t.name),this.classHashProperties[t.name])},e.prototype.fillPropertiesForClass=function(e){var t=[],r={};this.fillProperties(e,t,r),this.classProperties[e]=t,this.classHashProperties[e]=r},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[r[n].name]=r[n];var o=e.getDynamicType?this.getProperties(e.getDynamicType()):null;if(o&&o.length>0)for(var n=0;n<o.length;n++){var i=o[n];t[i.name]||(t[i.name]=i)}return Object.keys(t).map(function(e){return t[e]})},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType||!e.getDynamicType&&!t)return[];var r=t||e.getDynamicType();if(!r)return[];var n=this.getProperties(r);if(!n||0==n.length)return[];for(var o={},i=this.getProperties(e.getType()),s=0;s<i.length;s++)o[i[s].name]=i[s];for(var a=[],s=0;s<n.length;s++){var l=n[s];o[l.name]||a.push(l)}return a},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){var r=this.findProperty(e.getType(),t);return r||(this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null)},e.prototype.getProperty=function(e,t){var r=this.findProperty(e,t);if(!r)return r;var n=this.findClass(e);if(r.classInfo===n)return r;var o=new h(n,r.name,r.isRequired);return o.mergeWith(r),o.isArray=r.isArray,n.properties.push(o),this.emptyClassPropertiesHash(n),o},e.prototype.findProperty=function(e,t){return this.getHashProperties(e)[t]||null},e.prototype.findProperties=function(e,t){for(var r=[],n=this.getHashProperties(e),o=0;o<t.length;o++){var i=n[t[o]];i&&r.push(i)}return r},e.prototype.getAllPropertiesByName=function(e){for(var t=[],r=this.getAllClasses(),n=0;n<r.length;n++)for(var o=this.findClass(r[n]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}return t},e.prototype.getAllClasses=function(){var e=[];for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var r=this.findClass(e);if(!r)return null;if(r.creator)return r.creator(t);for(var n=r.parentName;n&&(r=this.findClass(n));)if(n=r.parentName,r.creator)return this.createCustomType(e,r.creator,t);return null},e.prototype.createCustomType=function(e,t,r){void 0===r&&(r=void 0),e=e.toLowerCase();var n=t(r),o=e,i=n.getTemplate?n.getTemplate():n.getType();return n.getType=function(){return o},n.getTemplate=function(){return i},m.createProperties(n),n},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){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var r=e.createProperty(t,!0);return r&&this.emptyClassPropertiesHash(e),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),m.removeProperty(r.name,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,this.classHashProperties[e.name]=null;for(var t=this.getChildrenClasses(e.name),r=0;r<t.length;r++)this.classProperties[t[r].name]=null,this.classHashProperties[t[r].name]=null},e.prototype.fillChildrenClasses=function(e,t,r){var n=this.childrenClasses[e];if(n)for(var o=0;o<n.length;o++)(!t||n[o].creator)&&r.push(n[o]),this.fillChildrenClasses(n[o].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.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var r=this.findClass(e);if(!r)return!1;var n=r;do{if(n.name===t)return!0;n=this.classes[n.parentName]}while(!!n);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),e||(e="survey");var t=this.findClass(e);if(!t)return null;var r={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{}};return this.generateSchemaProperties(t,r.properties,r.definitions),r},e.prototype.generateSchemaProperties=function(e,t,r){if(e)for(var n=0;n<e.properties.length;n++){var o=e.properties[n];t[o.name]=this.generateSchemaProperty(o,r)}},e.prototype.generateSchemaProperty=function(e,t){var r={type:e.schemaType()};if(e.hasChoices&&(r.enum=e.getChoices(null)),e.className&&(r.items={$ref:"#"+e.className},this.generateChemaClass(e.className,t)),e.baseClassName){var n=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&n.push(this.findClass("panel")),r.items=[];for(var o=0;o<n.length;o++){var i=n[o].name;r.items.push({$ref:"#"+i}),this.generateChemaClass(i,t)}}return r},e.prototype.generateChemaClass=function(e,t){if(!t[e]){var r=this.findClass(e);if(r){var n=!!r.parentName&&"base"!=r.parentName;n&&this.generateChemaClass(r.parentName,t);var o={type:"object",$id:"#"+e};t[e]=o;var i={};this.generateSchemaProperties(r,i,t),n?o.allOff=[{$ref:"#"+r.parentName},{properties:i}]:o.properties=i}}},e.prototype.fillProperties=function(e,t,r){var n=this.findClass(e);if(n){n.parentName&&this.fillProperties(n.parentName,t,r);for(var o=0;o<n.properties.length;o++){var i=n.properties[o];this.addPropertyCore(i,t,r),r[i.name]=i,i.alternativeName&&(r[i.alternativeName]=i)}}},e.prototype.addPropertyCore=function(e,t,r){if(!r[e.name])return void t.push(e);for(var n=-1,o=0;o<t.length;o++)if(t[o].name==e.name||t[o].alternativeName==e.name){n=o;break}e.mergeWith(t[n]),t[n]=e},e}(),y=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}(),v=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 o=_.metaData.getProperties(r);if(o){n.description="The list of available properties are: ";for(var i=0;i<o.length;i++)i>0&&(n.description+=", "),n.description+=o[i].name;n.description+="."}return n}return a(t,e),t}(y),b=function(e){function t(t,r,n){var o=e.call(this,r,n)||this;o.baseClassName=t,o.type=r,o.message=n,o.description="The following types are available: ";for(var i=_.metaData.getChildrenClasses(t,!0),s=0;s<i.length;s++)s>0&&(o.description+=", "),o.description+="'"+i[s].name+"'";return o.description+=".",o}return a(t,e),t}(y),C=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 a(t,e),t}(b),x=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 a(t,e),t}(b),w=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 a(t,e),t}(y),_=function(){function e(){this.errors=[],this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue}
1,enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return void 0===t&&(t=!1),this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t){this.toObjectCore(e,t);var r=this.getRequiredError(t,e);r&&this.addNewError(r,e)},e.prototype.toObjectCore=function(t,r){if(t){var n=null,o=void 0,i=!0;if(r.getType&&(o=r.getType(),n=e.metaData.getProperties(o),i=!!o&&!e.metaData.isDescendantOf(o,"itemvalue")),n){for(var s in r.startLoadingFromJson&&r.startLoadingFromJson(t),n=this.addDynamicProperties(r,t,n),t)if(s!==e.typePropertyName){if(s===e.positionPropertyName){r[s]=t[s];continue}var a=this.findProperty(n,s);if(!a){i&&this.addNewError(new v(s.toString(),o),t);continue}this.valueToObj(t[s],r,a)}r.endLoadingFromJson&&r.endLoadingFromJson()}}},e.prototype.toJsonObjectCore=function(t,r,n){if(void 0===n&&(n=!1),!t||!t.getType)return t;if("function"==typeof t.getData)return t.getData();var o={};return null==r||r.className||(o[e.typePropertyName]=r.getObjType(t.getType())),this.propertiesToJson(t,e.metaData.getProperties(t.getType()),o,n),this.propertiesToJson(t,this.getDynamicProperties(t),o,n),o},e.prototype.getDynamicProperties=function(e){return P.getDynamicPropertiesByObj(e)},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 o=this.getDynamicProperties(e),i=[],s=0;s<r.length;s++)i.push(r[s]);for(var s=0;s<o.length;s++)i.push(o[s]);return i},e.prototype.propertiesToJson=function(e,t,r,n){void 0===n&&(n=!1);for(var o=0;o<t.length;o++)this.valueToJson(e,r,t[o],n)},e.prototype.valueToJson=function(e,t,r,n){if(void 0===n&&(n=!1),!1!==r.isSerializable&&(!1!==r.isLightSerializable||!this.lightSerializing)){var o=r.getValue(e);if(!(!n&&r.isDefaultValue(o))){if(this.isValueArray(o)){for(var i=[],s=0;s<o.length;s++)i.push(this.toJsonObjectCore(o[s],r,n));o=i.length>0?i:null}else o=this.toJsonObjectCore(o,r,n);var a="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(r.name,null);(!n||!a)&&r.isDefaultValue(o)||P.onSerializingProperty&&P.onSerializingProperty(e,r,o,t)||(t[r.name]=o)}}},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.toObjectCore(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||0>e.type.indexOf("value")||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},o=t[e.typePropertyName];return!o&&null!=r&&r.className&&(o=r.className),n.newObj=(o=r.getClassName(o))?e.metaData.createClass(o,t):null,n.error=this.checkNewObjectOnErrors(n.newObj,t,r,o),n},e.prototype.checkNewObjectOnErrors=function(e,t,r,n){var o=null;return e?o=this.getRequiredError(e,t):r.baseClassName&&(o=n?new x(r.name,r.baseClassName):new C(r.name,r.baseClassName)),o&&this.addNewError(o,t),o},e.prototype.getRequiredError=function(t,r){if(!t.getType||"function"==typeof t.getData)return null;var n=t.getType(),o=e.metaData.getRequiredProperties(n);if(!Array.isArray(o))return null;for(var i=0;i<o.length;i++){var a=P.findProperty(n,o[i]);if(a&&s.Helpers.isValueEmpty(a.defaultValue)&&!r[a.name])return new w(a.name,n)}return null},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){if(!t[r]||this.isValueArray(t[r])){t[r]&&e.length>0&&t[r].splice(0,t[r].length);var o=t[r]?t[r]:[];this.addValuesIntoArray(e,o,n),t[r]||(t[r]=o)}},e.prototype.addValuesIntoArray=function(e,t,r){for(var n=0;n<e.length;n++){var o=this.createNewObj(e[n],r);o.newObj?(e[n].name&&(o.newObj.name=e[n].name),t.push(o.newObj),this.toObjectCore(e[n],o.newObj)):o.error||t.push(e[n])}},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 g,e}(),P=_.metaData}
1,
1"./src/list.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"defaultListCss",function(){return p}),r.d(t,"ListModel",function(){return d});var n,o=r("./src/jsonobject.ts"),i=r("./src/actions/container.ts"),s=r("./src/actions/action.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/element-helper.ts"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p={root:"sv-list__container",item:"sv-list__item",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemIcon:"sv-list__item-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},d=function(e){function t(r,n,o,i,s){var l=e.call(this)||this;return l.onSelectionChanged=n,l.allowSelection=o,l.onFilterStringChangedCallback=s,l.onItemClick=function(e){!l.isItemDisabled(e)&&(l.isExpanded=!1,l.allowSelection&&(l.selectedItem=e),l.onSelectionChanged&&l.onSelectionChanged(e))},l.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},l.isItemSelected=function(e){return!!l.allowSelection&&!!l.selectedItem&&l.selectedItem.id==e.id},l.isItemFocused=function(e){return!!l.focusedItem&&l.focusedItem.id==e.id},l.getItemClass=function(e){return new a.CssClassBuilder().append(l.cssClasses.item).append(l.cssClasses.itemWithIcon,!!e.iconName).append(l.cssClasses.itemDisabled,l.isItemDisabled(e)).append(l.cssClasses.itemFocused,l.isItemFocused(e)).append(l.cssClasses.itemSelected,e.active||l.isItemSelected(e)).append(e.css).toString()},l.getItemIndent=function(e){return((e.level||0)+1)*t.INDENT+"px"},l.setItems(r),l.selectedItem=i,l}return u(t,e),t.prototype.hasText=function(e,t){return!t||(e.title||"").toLocaleLowerCase().indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter(function(t){return e.isItemVisible(t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){var t=this;this.isEmpty=0===this.renderedActions.filter(function(e){return t.isItemVisible(e)}).length,this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e)},t.prototype.setItems=function(t,r){void 0===r&&(r=!0),e.prototype.setItems.call(this,t,r),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.actions||[]).length>t.MINELEMENTCOUNT,e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return p},t.prototype.updateItemActiveState=function(){var e=this;this.actions.forEach(function(t){return t.active=e.isItemSelected(t)})},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.getLocalizationString("emptyMessage")}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector("."+this.getDefaultCssClasses().itemsContainer)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return this.loadingIndicatorValue||(this.loadingIndicatorValue=new s.Action({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement;l.ElementHelper.focusElement(l.ElementHelper.getNextElementPreorder(t.nextElementSibling.firstElementChild)),e.preventDefault()}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPreorder(t)),e.preventDefault()):("ArrowUp"===e.key||38===e.keyCode)&&(l.ElementHelper.focusElement(l.ElementHelper.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){this.filterString="",this.resetFocusedItem()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.selectedItem?this.focusedItem=this.visibleItems.filter(function(t){return t.id===e.selectedItem.id})[0]:this.focusFirstVisibleItem()},t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),r=e[t+1];r?this.focusedItem=r:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),r=e[t-1];r?this.focusedItem=r:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){!this.isAllDataLoaded&&e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=l.ElementHelper.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){var e=this;setTimeout(function(){if(e.listContainerHtmlElement){var t=e.listContainerHtmlElement.querySelector("."+e.getDefaultCssClasses().itemFocused);t&&t.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})}},0)},t.prototype.addScrollEventListener=function(e){e&&(this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.INDENT=16,t.MINELEMENTCOUNT=10,c([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"showFilter",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"isExpanded",void 0),c([Object(o.property)({onSet:function(e,t){t.updateItemActiveState()}})],t.prototype,"selectedItem",void 0),c([Object(o.property)()],t.prototype,"focusedItem",void 0),c([Object(o.property)({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),c([Object(o.property)({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),t}(i.ActionContainer)},
1"./src/localizablestring.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"LocalizableString",function(){return a}),r.d(t,"LocalizableStrings",function(){return l});var n=r("./src/helpers.ts"),o=r("./src/surveyStrings.ts"),i=r("./src/settings.ts"),s=r("./src/base.ts"),a=function(){function e(e,t,r){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=r,this.values={},this.htmlValues={},this.onStringChanged=new s.EventBase,this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return i.settings.defaultLocaleName},set:function(e){i.settings.defaultLocaleName=e},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,void 0!==this.renderedText&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=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 e=this.locale;e||(e=this.defaultLoc);var t=this.getValue(e);if(t||e!==this.defaultLoc||(t=this.getValue(o.surveyLocalization.defaultLocale)),!t){var r=this.getRootDialect(e);r&&(t=this.getValue(r))}return t||e===this.defaultLoc||(t=this.getValue(this.defaultLoc)),!t&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),t||(t=""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?o.surveyLocalization.getString(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){return e||(e=this.defaultLoc),this.getValue(e)||""},e.prototype.getLocaleTextWithDefault=function(e){var t=this.getLocaleText(e);return!t&&this.onGetDefaultTextCallback?this.onGetDefaultTextCallback():t},e.prototype.setLocaleText=function(e,t){if(!this.storeDefaultText&&t==this.getLocaleTextWithDefault(e)){if(t||e&&e!==this.defaultLoc)return;var r=o.surveyLocalization.defaultLocale,n=this.getValue(r);r&&n&&(this.setValue(r,t),this.fireStrChanged(n,t));return}if(i.settings.storeDuplicatedTranslations||!t||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var s=this.locale;e||(e=this.defaultLoc),s||(s=this.defaultLoc);var a=this.onStrChanged&&e===s?this.pureText:void 0;delete this.htmlValues[e],t?"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))):this.getValue(e)&&this.deleteValue(e),this.fireStrChanged(a,t)}},e.prototype.canRemoveLocValue=function(e,t){if(i.settings.storeDuplicatedTranslations||e===this.defaultLoc)return!1;var r=this.getRootDialect(e);
1if(!r)return t==this.getLocaleText(this.defaultLoc);var n=this.getLocaleText(r);return n?n==t:this.canRemoveLocValue(r,t)},e.prototype.fireStrChanged=function(e,t){this.strChanged(),this.onStrChanged&&e!==t&&this.onStrChanged(e,t)},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.defaultLocaleName||i.settings.serializeLocalizableStringAsObject?this.values:this.values[e[0]]},e.prototype.setJson=function(e){if(this.sharedData)return void this.sharedData.setJson(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()}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!!e&&!!e.values&&n.Helpers.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var r=this.searchableText,n=r&&e?r.indexOf(e):void 0;return n<0&&(n=void 0),(void 0!=n||this.searchIndex!=n)&&(this.searchIndex=n,this.onSearchChanged&&this.onSearchChanged()),void 0!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(e||(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t||this.getLocalizationName()&&t===this.getLocalizationStr())return!1;var r=this.owner.getMarkdownHtml(t,this.name);return this.htmlValues[e]=r,!!r},e.prototype.getHtmlValue=function(){var e=this.locale;return e||(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){for(var t=this.getValuesKeys(),r=0;r<t.length;r++)t[r]!=this.defaultLoc&&this.getValue(t[r])==e&&this.deleteValue(t[r])},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[e]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[e]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[e]},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return i.settings.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),l=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var r=t?t.split("\n"):null;this.setValue(e,r)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var r=i.settings.defaultLocaleName;if(e!==r&&this.values[r])return this.values[r]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var r=n.Helpers.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(r,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length}
1,enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e||(e=this.locale)||i.settings.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=i.settings.defaultLocaleName||i.settings.serializeLocalizableStringAsObject?n.Helpers.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e)if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}()},
1"./src/localization/arabic.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"arabicSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"السابق",pageNextText:"التالي",completeText:"إرسال البيانات",previewText:"معاينة",editText:"تعديل",startSurveyText:"بداية",otherItemText:"نص آخر",noneItemText:"لا شيء",selectAllItemText:"اختر الكل",progressText:"{1} صفحة {0} من",panelDynamicProgressText:"سجل {0} من {1}",questionsProgressText:"تمت الإجابة على أسئلة {0} / {1}",emptySurvey:"لا توجد صفحة مرئية أو سؤال في النموذج",completingSurvey:"شكرا لكم لاستكمال النموذج!",completingSurveyBefore:"تظهر سجلاتنا أنك قد أكملت هذا الاستطلاع بالفعل.",loadingSurvey:"...يتم تحميل النموذج",placeholder:"...اختر",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:"اختر الملفات...",noFileChosen:"لم تقم باختيار ملف",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}.",clearCaption:"واضح",chooseFileCaption:"اختر ملف",removeFileCaption:"قم بإزالة هذا الملف",booleanCheckedLabel:"نعم",booleanUncheckedLabel:"لا",confirmRemoveFile:"هل أنت متأكد أنك تريد إزالة هذا الملف: {0}؟",confirmRemoveAllFiles:"هل أنت متأكد أنك تريد إزالة كافة الملفات؟",questionTitlePatternText:"عنوان السؤال"};n.surveyLocalization.locales.ar=o,n.surveyLocalization.localeNames.ar="العربية"},
1"./src/localization/basque.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"basqueSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Aurrekoa",pageNextText:"Hurrengoa",completeText:"Bukatu",previewText:"Aurrebista",editText:"Editatu",startSurveyText:"Hasi",otherItemText:"Beste bat (zehaztu)",noneItemText:"Bat ere ez",selectAllItemText:"Guztia hautatu",progressText:"{1}-(e)tik {0} orrialde",panelDynamicProgressText:"{0} errigistro {1}-(e)tik",questionsProgressText:"Erantzundako galderak {0}/{1}",emptySurvey:"Ez dago orrialde bistaragarririk edo ez dago galderarik.",completingSurvey:"Eskerrik asko galdetegia erantzuteagatik!",completingSurveyBefore:"Gure datuek diote dagoeneko galdetegia erantzun duzula.",loadingSurvey:"Galdetegia kargatzen...",placeholder:"Hautatu...",value:"balioa",requiredError:"Mesedez, galdera erantzun.",requiredErrorInPanel:"Mesedez, gutxienez galdera bat erantzun.",requiredInAllRowsError:"Mesedez, errenkadako galdera guztiak erantzun.",numericError:"Estimazioa zenbakizkoa izan behar du.",minError:"Balioa ez da {0} baino txikiagoa izan behar",maxError:"Balioa ez da {0} baino handiagoa izan behar",textMinLength:"Mesedez, gutxienez {0} karaktere erabili behar dira.",textMaxLength:"Mesedez, gehienez {0} karaktere erabili behar dira.",textMinMaxLength:"Mesedez, gehienez {0} eta gutxienez {1} karaktere erabili behar dira.",minRowCountError:"Mesedez, gutxienez {0} errenkada bete.",minSelectError:"Mesedez, gutxienez {0} aukera hautatu.",maxSelectError:"Mesedez, {0} aukera baino gehiago ez hautatu.",numericMinMax:"El '{0}' debe de ser igual o m\xe1s de {1} y igual o menos de {2}",numericMin:"'{0}' {1} baino handiagoa edo berdin izan behar da",numericMax:"'{0}' {1} baino txikiago edo berdin izan behar da",invalidEmail:"Mesedez, baliozko emaila idatz ezazu.",invalidExpression:"{0} adierazpenak 'egiazkoa' itzuli beharko luke.",urlRequestError:"Eskaerak '{0}' errorea itzuli du. {1}",urlGetChoicesError:"La solicitud regres\xf3 vac\xedo de data o la propiedad 'trayectoria' no es correcta",exceedMaxSize:"Fitxategiaren tamaina ez da {0} baino handiagoa izan behar.",otherRequiredError:"Mesedez, beste estimazioa gehitu.",uploadingFile:"Zure fitxategia igotzen ari da. Mesedez, segundo batzuk itxaron eta saiatu berriro.",loadingFile:"Kargatzen...",chooseFile:"Fitxategia(k) hautatu...",noFileChosen:"Ez da inolako fitxategirik hautatu",confirmDelete:"\xbfErregistroa borratu nahi al duzu?",keyDuplicationError:"Balio hau bakarra izan behar du.",addColumn:"Zutabe bat gehitu",addRow:"Errenkada bat gehitu",removeRow:"Errenkada bat kendu",emptyRowsText:"Ez dago errenkadarik.",addPanel:"Berria gehitu",removePanel:"Kendu",choices_Item:"artikulua",matrix_column:"Zutabea",matrix_row:"Errenkada",multipletext_itemname:"testua",savingData:"Erantzunak zerbitzarian gordetzen ari dira...",savingDataError:"Erroreren bat gertatu eta erantzunak ez dira zerbitzarian gorde ahal izan.",savingDataSuccess:"Erantzunak egoki gorde dira!",saveAgainButton:"Berriro saiatu.",timerMin:"min",timerSec:"seg",timerSpentAll:"{0} erabili duzu orrialde honetan eta orotara {1}.",timerSpentPage:"Zuk {0} erabili duzu.",timerSpentSurvey:"Orotara gastatu duzu.",timerLimitAll:"{0} gastatu duzu {1}-(e)tik orrialde honetan eta orotara {2} {3}-(e)tik.",timerLimitPage:"{0} gastatu duzu orrialde honetan {1}-(e)tik.",timerLimitSurvey:"Zuk orotara {0} gastatu duzu {1}-(e)tik.",clearCaption:"Hustu",signaturePlaceHolder:"Sinatu hemen",chooseFileCaption:"Fitxategia hautatu",removeFileCaption:"Fitxategi hau ezabatu",booleanCheckedLabel:"Bai",booleanUncheckedLabel:"Ez",confirmRemoveFile:"Ziur zaude hurrengo fitxategia ezabatu nahi duzula: {0}?",confirmRemoveAllFiles:"Ziur al zaude fitxategi guztiak ezabatu nahi dituzula?",questionTitlePatternText:"Galderaren izenburua",modalCancelButtonText:"Ezeztatu",modalApplyButtonText:"Ezarri"};n.surveyLocalization.locales.eu=o,n.surveyLocalization.localeNames.eu="Euskara"},
1"./src/localization/bulgarian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"bulgarianStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Назад",pageNextText:"Напред",completeText:"Край",previewText:"Визуализация",editText:"редактиране",startSurveyText:"Начало",otherItemText:"Друго (опишете)",noneItemText:"Нито един",selectAllItemText:"Всички",progressText:"стр. {0}, общо стр. {1}",panelDynamicProgressText:"Запис {0} от {1}",questionsProgressText:"Отговорени на {0} / {1} въпроса",emptySurvey:"Анкетата не съдържа видими страници или въпроси.",completingSurvey:"Благодарим ви за участието в анкетата!",completingSurveyBefore:"Изглежда, че вие вече сте попълнили анкетата.",loadingSurvey:"Зареждане на анкетата...",placeholder:"Изберете...",value:"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:"Изберете файл(ове)...",noFileChosen:"Няма избран файл",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}.",clearCaption:"Начално състояние",chooseFileCaption:"Изберете файл",removeFileCaption:"Премахване на файла",booleanCheckedLabel:"Да",booleanUncheckedLabel:"Не",confirmRemoveFile:"Наистина ли искате да премахнете този файл: {0}?",confirmRemoveAllFiles:"Наистина ли искате да премахнете всички файлове?",questionTitlePatternText:"Заглавие на въпроса"};n.surveyLocalization.locales.bg=o,n.surveyLocalization.localeNames.bg="български"},
1"./src/localization/catalan.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"catalanSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Anterior",pageNextText:"Seg\xfcent",completeText:"Complet",otherItemText:"Un altre (descrigui)",progressText:"P\xe0gina {0} de {1}",emptySurvey:"No hi ha cap p\xe0gina visible o pregunta a l'enquesta.",completingSurvey:"Gr\xe0cies per completar l'enquesta!",loadingSurvey:"L'enquesta s'est\xe0 carregant ...",placeholder:"Selecciona ...",requiredError:"Si us plau contesti la pregunta.",requiredInAllRowsError:"Si us plau contesti les preguntes de cada filera.",numericError:"L'estimaci\xf3 ha de ser num\xe8rica.",textMinLength:"Si us plau entre almenys {0} s\xedmbols.",textMaxLength:"Si us plau entre menys de {0} s\xedmbols.",textMinMaxLength:"Si us plau entre m\xe9s de {0} i menys de {1} s\xedmbols.",minRowCountError:"Si us plau ompli almenys {0} fileres.",minSelectError:"Si us plau seleccioni almenys {0} variants.",maxSelectError:"Si us plau seleccioni no m\xe9s de {0} variants.",numericMinMax:"El '{0}' deu ser igual o m\xe9s de {1} i igual o menys de {2}",numericMin:"El '{0}' ha de ser igual o m\xe9s de {1}",numericMax:"El '{0}' ha de ser igual o menys de {1}",invalidEmail:"Si us plau afegiu un correu electr\xf2nic v\xe0lid.",urlRequestError:"La sol\xb7licitud va tornar error '{0}'. {1}",urlGetChoicesError:"La sol\xb7licitud va tornar buida de dates o la propietat 'traject\xf2ria' no \xe9s correcta",exceedMaxSize:"La mida de l'arxiu no pot excedir {0}.",otherRequiredError:"Si us plau afegiu l'altra estimaci\xf3.",uploadingFile:"El seu arxiu s'est\xe0 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.surveyLocalization.locales.ca=o,n.surveyLocalization.localeNames.ca="catal\xe0"},
1"./src/localization/croatian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"croatianStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Prethodni",pageNextText:"Sljedeći",completeText:"Kompletan",previewText:"Pregled",editText:"Uređivanje",startSurveyText:"Početak",otherItemText:"Ostali (opis)",noneItemText:"Nitko",selectAllItemText:"Select All",progressText:"Stranica {0} od {1}",panelDynamicProgressText:"Zapisa {0} od {1}",questionsProgressText:"Odgovorio na {0}/{1} pitanja",emptySurvey:"U anketi nema vidljive stranice ili pitanja.",completingSurvey:"Hvala vam što ste završili anketu!",completingSurveyBefore:"Naši zapisi pokazuju da ste već završili ovu anketu.",loadingSurvey:"Anketa o učitavanje...",placeholder:"Odaberite...",value:"vrijednost",requiredError:"Molim vas odgovorite na pitanje.",requiredErrorInPanel:"Molim vas odgovorite na barem jedno pitanje.",requiredInAllRowsError:"Odgovorite na pitanja u svim redovima.",numericError:"Vrijednost bi trebala biti brojčana.",textMinLength:"Unesite najmanje {0} znak(ova).",textMaxLength:"Unesite manje od {0} znak(ova).",textMinMaxLength:"Unesite više od {0} i manje od {1} znakova.",minRowCountError:"Molimo ispunite najmanje {0} redaka.",minSelectError:"Odaberite barem {0} varijante.",maxSelectError:"Odaberite ne više od {0} varijanti.",numericMinMax:"'{0}'bi trebao biti jednak ili više od {1} i jednak ili manji od {2}.",numericMin:"'{0}' bi trebao biti jednak ili više od {1}.",numericMax:"'{0}' bi trebao biti jednak ili manji od {1}",invalidEmail:"Unesite valjanu e-mail adresu.",invalidExpression:"Izraz: {0} treba vratiti 'true'.",urlRequestError:"Zahtjev vratio pogrešku '{0}'. {1}",urlGetChoicesError:"Zahtjev je vratio prazne podatke ili je 'path' svojstvo netočna.",exceedMaxSize:"Veličina datoteke ne smije prelaziti {0}.",otherRequiredError:"Unesite drugu vrijednost.",uploadingFile:"Vaša datoteka se prenosi. Pričekajte nekoliko sekundi i pokušajte ponovno.",loadingFile:"Učitavanje...",chooseFile:"Odaberite datoteku...",noFileChosen:"Nije odabrana datoteka",confirmDelete:"Želite li izbrisati zapis?",keyDuplicationError:"Ta bi vrijednost trebala biti jedinstvena.",addColumn:"Dodavanje stupca",addRow:"Dodavanje redaka",removeRow:"Ukloniti",addPanel:"Dodavanje novih",removePanel:"Ukloniti",choices_Item:"stavku",matrix_column:"Stupca",matrix_row:"Redak",savingData:"Rezultati se spremaju na poslužitelju...",savingDataError:"Došlo je do pogreške i nismo mogli spremiti rezultate.",savingDataSuccess:"Rezultati su uspješno spremljeni!",saveAgainButton:"Pokušaj ponovo",timerMin:"min",timerSec:"sec",timerSpentAll:"Vi ste proveli {0} na ovoj stranici i {1} ukupno.",timerSpentPage:"Potrošili ste {0} na ovu stranicu.",timerSpentSurvey:"You have spent {0} in total. {0}.",timerLimitAll:"Vi ste proveli {0} od {1} na ovoj stranici i {2} od {3} ukupno.",timerLimitPage:"Potrošio si {0} od {1} na ovoj stranici.",timerLimitSurvey:"Ukupno ste potrošili {0} od {1}.",clearCaption:"Očistiti",chooseFileCaption:"Odaberite datoteku",removeFileCaption:"Uklonite ovu datoteku",booleanCheckedLabel:"Da",booleanUncheckedLabel:"Ne",confirmRemoveFile:"Jeste li sigurni da želite ukloniti ovu datoteku: {0}?",confirmRemoveAllFiles:"Jeste li sigurni da želite ukloniti sve datoteke?",questionTitlePatternText:"Naslov pitanja",modalCancelButtonText:"Otkazati",modalApplyButtonText:"Primijeniti"};n.surveyLocalization.locales.hr=o,n.surveyLocalization.localeNames.hr="hrvatski"},
1"./src/localization/czech.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"czechSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Předchoz\xed",pageNextText:"Dalš\xed",completeText:"Dokončit",previewText:"N\xe1hled",editText:"Upravit",startSurveyText:"Zač\xedt",otherItemText:"Jin\xe1 odpověď (napište)",noneItemText:"Ž\xe1dn\xfd",selectAllItemText:"Vybrat vše",progressText:"Strana {0} z {1}",panelDynamicProgressText:"Z\xe1znam {0} z {1}",questionsProgressText:"Zodpovězen\xe9 ot\xe1zky: {0} / {1}",emptySurvey:"Průzkum neobsahuje ž\xe1dn\xe9 ot\xe1zky.",completingSurvey:"Děkujeme za vyplněn\xed průzkumu!",completingSurveyBefore:"Naše z\xe1znamy ukazuj\xed, že jste tento průzkum již dokončil/a.",loadingSurvey:"Prob\xedh\xe1 nač\xedt\xe1n\xed průzkumu...",placeholder:"Vyberte...",value:"hodnota",requiredError:"Odpovězte pros\xedm na ot\xe1zku.",requiredErrorInPanel:"Odpovězte pros\xedm alespoň jednu ot\xe1zku.",requiredInAllRowsError:"Odpovězte pros\xedm na všechny ot\xe1zky.",numericError:"V tomto poli lze zadat pouze č\xedsla.",textMinLength:"Zadejte pros\xedm alespoň {0} znaků.",textMaxLength:"Zadejte pros\xedm m\xe9ně než {0} znaků.",textMinMaxLength:"Zadejte pros\xedm v\xedce než {0} a m\xe9ně než {1} znaků.",minRowCountError:"Vyplňte pros\xedm alespoň {0} ř\xe1dků.",minSelectError:"Vyberte pros\xedm alespoň {0} varianty.",maxSelectError:"Nevyb\xedrejte pros\xedm v\xedce než {0} variant.",numericMinMax:"Odpověď '{0}' by mělo b\xfdt větš\xed nebo rovno {1} a menš\xed nebo rovno {2}",numericMin:"Odpověď '{0}' by mělo b\xfdt větš\xed nebo rovno {1}",numericMax:"Odpověď '{0}' by mělo b\xfdt menš\xed nebo rovno {1}",invalidEmail:"Zadejte pros\xedm platnou e-mailovou adresu.",invalidExpression:"V\xfdraz: {0} by měl vr\xe1tit hodnotu „true“.",urlRequestError:"Požadavek vr\xe1til chybu '{0}'. {1}",urlGetChoicesError:"Požadavek nevr\xe1til data nebo je neplatn\xe1 vlastnost 'path'",exceedMaxSize:"Velikost souboru by neměla b\xfdt větš\xed než {0}.",otherRequiredError:"Zadejte pros\xedm jinou hodnotu.",uploadingFile:"V\xe1š soubor se nahr\xe1v\xe1. Zkuste to pros\xedm za několik sekund.",loadingFile:"Nač\xedt\xe1n\xed...",chooseFile:"Vyberte soubory...",noFileChosen:"Nen\xed zvolen\xfd ž\xe1dn\xfd soubor",confirmDelete:"Chcete z\xe1znam smazat?",keyDuplicationError:"Tato hodnota by měla b\xfdt unik\xe1tn\xed.",addColumn:"Přidat sloupec",addRow:"Přidat ř\xe1dek",removeRow:"Odstranit",addPanel:"Přidat nov\xfd",removePanel:"Odstranit",choices_Item:"položka",matrix_column:"Sloupec",matrix_row:"Ř\xe1dek",savingData:"V\xfdsledky se ukl\xe1daj\xed na server...",savingDataError:"Došlo k chybě a v\xfdsledky jsme nemohli uložit.",savingDataSuccess:"V\xfdsledky byly \xfaspěšně uloženy!",saveAgainButton:"Zkuste to znovu",timerMin:"min",timerSec:"sek",timerSpentAll:"Na t\xe9to str\xe1nce jste str\xe1vil/a celkem {0} z {1}.",timerSpentPage:"Na t\xe9to str\xe1nce jste str\xe1vil/a {0}.",timerSpentSurvey:"Celkem jste str\xe1vil/a {0}.",timerLimitAll:"Na t\xe9to str\xe1nce jste str\xe1vil/a {0} z {1} a celkem {2} z {3}.",timerLimitPage:"Na t\xe9to str\xe1nce jste str\xe1vil/a {0} z {1}.",timerLimitSurvey:"Celkově jste str\xe1vil/a {0} z {1}.",clearCaption:"Vymazat",chooseFileCaption:"Vyberte soubor",removeFileCaption:"Odeberte tento soubor",booleanCheckedLabel:"Ano",booleanUncheckedLabel:"Ne",confirmRemoveFile:"Opravdu chcete odebrat tento soubor: {0}?",confirmRemoveAllFiles:"Opravdu chcete odstranit všechny soubory?",questionTitlePatternText:"N\xe1zev ot\xe1zky"};n.surveyLocalization.locales.cs=o,n.surveyLocalization.localeNames.cs="čeština"},
1"./src/localization/danish.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"danishSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Tilbage",pageNextText:"Videre",completeText:"F\xe6rdig",previewText:"Forpremiere",editText:"Redig\xe9r",startSurveyText:"Start",otherItemText:"Valgfrit svar...",noneItemText:"Ingen",selectAllItemText:"V\xe6lg alle",progressText:"Side {0} af {1}",panelDynamicProgressText:"Optag {0} af {1}",questionsProgressText:"Besvarede {0} / {1} sp\xf8rgsm\xe5l",emptySurvey:"Der er ingen synlige sp\xf8rgsm\xe5l.",completingSurvey:"Mange tak for din besvarelse!",completingSurveyBefore:"Vores data viser at du allerede har gennemf\xf8rt dette sp\xf8rgeskema.",loadingSurvey:"Sp\xf8rgeskemaet hentes fra serveren...",placeholder:"V\xe6lg...",value:"v\xe6rdi",requiredError:"Besvar venligst sp\xf8rgsm\xe5let.",requiredErrorInPanel:"Besvar venligst mindst \xe9t sp\xf8rgsm\xe5l.",requiredInAllRowsError:"Besvar venligst sp\xf8rgsm\xe5l i alle r\xe6kker.",numericError:"Angiv et tal.",textMinLength:"Angiv mindst {0} tegn.",textMaxLength:"Please enter less than {0} characters.",textMinMaxLength:"Angiv mere end {0} og mindre end {1} tegn.",minRowCountError:"Udfyld mindst {0} r\xe6kker.",minSelectError:"V\xe6lg venligst mindst {0} svarmulighed(er).",maxSelectError:"V\xe6lg venligst f\xe6rre {0} svarmuligheder(er).",numericMinMax:"'{0}' skal v\xe6re lig med eller st\xf8rre end {1} og lig med eller mindre end {2}",numericMin:"'{0}' skal v\xe6re lig med eller st\xf8rre end {1}",numericMax:"'{0}' skal v\xe6re lig med eller mindre end {1}",invalidEmail:"Angiv venligst en gyldig e-mail adresse.",invalidExpression:"Udtrykket: {0} skal returnere 'true'.",urlRequestError:"Foresp\xf8rgslen returnerede fejlen '{0}'. {1}",urlGetChoicesError:"Foresp\xf8rgslen returnerede ingen data eller 'path' parameteren er forkert",exceedMaxSize:"Filst\xf8rrelsen m\xe5 ikke overstige {0}.",otherRequiredError:"Angiv en v\xe6rdi for dit valgfrie svar.",uploadingFile:"Din fil bliver uploadet. Vent nogle sekunder og pr\xf8v eventuelt igen.",loadingFile:"Indl\xe6ser...",chooseFile:"V\xe6lg fil(er)...",noFileChosen:"Ingen fil er valgt",confirmDelete:"Vil du fjerne den?",keyDuplicationError:"Denne v\xe6rdi skal v\xe6re unik.",addColumn:"Tilf\xf8j kolonne",addRow:"Tilf\xf8j r\xe6kke",removeRow:"Fjern",addPanel:"Tilf\xf8j ny",removePanel:"Fjern",choices_Item:"valg",matrix_column:"Kolonne",matrix_row:"R\xe6kke",savingData:"Resultaterne bliver gemt p\xe5 serveren...",savingDataError:"Der opstod en fejl og vi kunne ikke gemme resultatet.",savingDataSuccess:"Resultatet blev gemt!",saveAgainButton:"Pr\xf8v igen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har brugt {0} p\xe5 denne side og {1} i alt.",timerSpentPage:"Du har brugt {0} p\xe5 denne side.",timerSpentSurvey:"Du har brugt {0} i alt.",timerLimitAll:"Du har brugt {0} af {1} p\xe5 denne side og {2} af {3} i alt.",timerLimitPage:"Du har brugt {0} af {1} p\xe5 denne side.",timerLimitSurvey:"Du har brugt {0} af {1} i alt.",clearCaption:"Fjern",chooseFileCaption:"V\xe6lg fil",removeFileCaption:"Fjern denne fil",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Ingen",confirmRemoveFile:"Er du sikker p\xe5, at du vil fjerne denne fil: {0}?",confirmRemoveAllFiles:"Er du sikker p\xe5, at du vil fjerne alle filer?",questionTitlePatternText:"Sp\xf8rgsm\xe5ls titel"};n.surveyLocalization.locales.da=o,n.surveyLocalization.localeNames.da="dansk"},
1"./src/localization/dutch.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"dutchSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Vorige",pageNextText:"Volgende",completeText:"Verzenden",previewText:"Voorbeeld",editText:"Bewerk",startSurveyText:"Start",otherItemText:"Anders, nl.",noneItemText:"Geen",selectAllItemText:"Selecteer Alles",progressText:"Pagina {0} van {1}",panelDynamicProgressText:"Record {0} of {1}",questionsProgressText:"Geantwoord {0}/{1} vragen",emptySurvey:"Er is geen zichtbare pagina of vraag in deze vragenlijst",completingSurvey:"Bedankt voor het invullen van de vragenlijst",completingSurveyBefore:"Onze gegevens tonen aan dat je deze vragenlijst reeds beantwoord hebt.",loadingSurvey:"De vragenlijst is aan het laden...",placeholder:"Kies...",value:"waarde",requiredError:"Dit is een vereiste vraag",requiredErrorInPanel:"Gelieve ten minste een vraag te beantwoorden.",requiredInAllRowsError:"Deze vraag vereist \xe9\xe9n antwoord per rij",numericError:"Het antwoord moet een getal zijn",textMinLength:"Vul minstens {0} karakters in",textMaxLength:"Gelieve minder dan {0} karakters in te vullen.",textMinMaxLength:"Gelieve meer dan {0} en minder dan {1} karakters in te vullen.",minRowCountError:"Gelieve ten minste {0} rijen in te vullen.",minSelectError:"Selecteer minimum {0} antwoorden",maxSelectError:"Selecteer niet meer dan {0} antwoorden",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:"Vul een geldig e-mailadres in",invalidExpression:"De uitdrukking: {0} moet 'waar' teruggeven.",urlRequestError:"De vraag keerde een fout terug '{0}'. {1}",urlGetChoicesError:"De vraag gaf een leeg antwoord terug of de 'pad' eigenschap is niet correct",exceedMaxSize:"De grootte van het bestand mag niet groter zijn dan {0}",otherRequiredError:"Vul het veld 'Anders, nl.' in",uploadingFile:"Uw bestand wordt opgeladen. Gelieve enkele seconden te wachten en opnieuw te proberen.",loadingFile:"Opladen...",chooseFile:"Kies uw bestand(en)...",noFileChosen:"Geen bestand gekozen",fileDragAreaPlaceholder:"Sleep het bestand naar hier",confirmDelete:"Wil je deze gegevens verwijderen?",keyDuplicationError:"Deze waarde moet uniek zijn.",addColumn:"Voeg kolom toe",addRow:"Voeg rij toe",removeRow:"Verwijder",addPanel:"Nieuwe toevoegen",removePanel:"Verwijder",choices_Item:"onderwerp",matrix_column:"Kolom",matrix_row:"Rij",savingData:"De resultaten worden bewaard op de server...",savingDataError:"Er was een probleem en we konden de resultaten niet bewaren.",savingDataSuccess:"De resultaten werden succesvol bewaard!",saveAgainButton:"Probeer opnieuw",timerMin:"minimum",timerSec:"sec",timerSpentAll:"U heeft {0} gespendeerd op deze pagina en {1} in totaal.",timerSpentPage:"U heeft {0} op deze pagina gespendeerd.",timerSpentSurvey:"U heeft in totaal {0} gespendeerd.",timerLimitAll:"U heeft {0} van {1} op deze pagina gespendeerd en {2} van {3} in totaal.",timerLimitPage:"U heeft {0} van {1} gespendeerd op deze pagina.",timerLimitSurvey:"U heeft {0} van {1} in het totaal.",clearCaption:"Kuis op",signaturePlaceHolder:"Hier tekenen",chooseFileCaption:"Gekozen bestand",removeFileCaption:"Verwijder deze file",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Nee",confirmRemoveFile:"Bent u zeker dat u deze file wilt verwijderen: {0}?",confirmRemoveAllFiles:"Bent u zeker dat u al deze files wilt verwijderen?",questionTitlePatternText:"Titel van de vraag"};n.surveyLocalization.locales.nl=o,n.surveyLocalization.localeNames.nl="nederlands"},
1"./src/localization/english.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"englishStrings",function(){return n});var n={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",selectAllItemText:"Select All",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain visible pages or questions.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"Our records show that you have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Tap to rate here...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} variant(s).",maxSelectError:"Please select no more than {0} variant(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {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:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file chosen",fileDragAreaPlaceholder:"Drop a file here or click the button below to load the file.",confirmDelete:"Do you want to delete the record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved 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.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",chooseFileCaption:"Choose file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:"There are no entries yet.\nClick the button below to add a new entry.",more:"More"}},
1"./src/localization/estonian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"estonianSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Tagasi",pageNextText:"Edasi",completeText:"L\xf5peta",previewText:"Eelvaade",editText:"Muuda",startSurveyText:"Alusta",otherItemText:"Muu (t\xe4psusta)",noneItemText:"Mitte midagi",selectAllItemText:"Vali k\xf5ik",progressText:"Lehek\xfclg {0}/{1}",panelDynamicProgressText:"Kirje {0}/{1}",questionsProgressText:"Vastatud {0} k\xfcsimust {1}-st",emptySurvey:"Selles uuringus ei ole \xfchtki n\xe4htavat lehek\xfclge v\xf5i k\xfcsimust.",completingSurvey:"Ait\xe4h, et vastasid ankeedile!",completingSurveyBefore:"Meie andmetel oled sa sellele ankeedile juba vastanud.",loadingSurvey:"Laen ankeeti...",placeholder:"Vali...",value:"v\xe4\xe4rtus",requiredError:"Palun vasta k\xfcsimusele.",requiredErrorInPanel:"Palun vasta v\xe4hemalt \xfchele k\xfcsimusele.",requiredInAllRowsError:"Palun anna vastus igal real.",numericError:"See peaks olema numbriline v\xe4\xe4rtus.",textMinLength:"Palun sisesta v\xe4hemalt {0} t\xe4hem\xe4rki.",textMaxLength:"Palun \xe4ra sisesta rohkem kui {0} t\xe4hem\xe4rki.",textMinMaxLength:"Sisesta palun {0} - {1} t\xe4hem\xe4rki.",minRowCountError:"Sisesta plaun v\xe4hemalt {0} rida.",minSelectError:"Palun vali v\xe4hemalt {0} varianti.",maxSelectError:"Palun vali k\xf5ige rohkem {0} varianti.",numericMinMax:"'{0}' peaks olema v\xf5rdne v\xf5i suurem kui {1} ja v\xf5rdne v\xf5i v\xe4iksem kui {2}",numericMin:"'{0}' peaks olema v\xf5rdne v\xf5i suurem kui {1}",numericMax:"'{0}' peaks olema v\xf5rnde v\xf5i v\xe4iksem kui {1}",invalidEmail:"Sisesta palun korrektne e-posti aadress.",invalidExpression:"Avaldis: {0} peaks tagastama t\xf5ese.",urlRequestError:"Taotlus tagastas vea „{0}”. {1}",urlGetChoicesError:"Taotlus tagastas t\xfchjad andmed v\xf5i atribuut 'path' on vale",exceedMaxSize:"Faili suurus ei tohi \xfcletada {0}.",otherRequiredError:"Sisesta palun muu vastus.",uploadingFile:"Sinu fail laeb \xfcles. Palun oota m\xf5ned sekundid ning proovi seej\xe4rel uuesti.",loadingFile:"Laen...",chooseFile:"Vali fail(id)...",noFileChosen:"Faili pole valitud",confirmDelete:"Kas tahad kirje kustutada?",keyDuplicationError:"See v\xe4\xe4rtus peab olema unikaalne.",addColumn:"Lisa veerg",addRow:"Lisa rida",removeRow:"Eemalda",addPanel:"Lisa uus",removePanel:"Eemalda",choices_Item:"\xfcksus",matrix_column:"Veerg",matrix_row:"Rida",savingData:"Salvestan andmed serveris...",savingDataError:"Tekkis viga ning me ei saanud vastuseid salvestada.",savingDataSuccess:"Vastuste salvestamine \xf5nnestus!",saveAgainButton:"Proovi uuesti",timerMin:"min",timerSec:"sek",timerSpentAll:"Oled veetnud {0} sellel lehel ning kokku {1}.",timerSpentPage:"Oled veetnud {0} sellel lehel.",timerSpentSurvey:"Oled veetnud {0} kokku.",timerLimitAll:"Oled kulutanud {0} v\xf5imalikust {1} sellel lehel ning {2} v\xf5imalikust {3} kokku.",timerLimitPage:"Oled kulutanud {0} v\xf5imalikust {1} sellel lehel.",timerLimitSurvey:"Oled kulutanud {0} v\xf5imalikust {1} koguajast.",clearCaption:"Puhasta",chooseFileCaption:"Vali fail",removeFileCaption:"Eemalda see fail",booleanCheckedLabel:"Jah",booleanUncheckedLabel:"Ei",confirmRemoveFile:"Oled sa kindel, et soovid selle faili eemaldada: {0}?",confirmRemoveAllFiles:"Oled sa kindel, et soovid eemaldada k\xf5ik failid?",questionTitlePatternText:"K\xfcsimuse pealkiri"};n.surveyLocalization.locales.et=o,n.surveyLocalization.localeNames.et="eesti keel"},
1"./src/localization/finnish.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"finnishSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Edellinen",pageNextText:"Seuraava",completeText:"Valmis",previewText:"Esikatselu",editText:"Muokkaa",startSurveyText:"Aloita",otherItemText:"Muu (tarkenna)",noneItemText:"Ei mit\xe4\xe4n",selectAllItemText:"Valitse kaikki",progressText:"Sivu {0} / {1}",panelDynamicProgressText:"Osio {0} / {1}",questionsProgressText:"Olet vastannut {0} / {1} kysymykseen.",emptySurvey:"T\xe4ss\xe4 kyselyss\xe4 ei ole yht\xe4\xe4n n\xe4kyvill\xe4 olevaa sivua tai kysymyst\xe4.",completingSurvey:"Kiitos kyselyyn vastaamisesta!",completingSurveyBefore:"Tietojemme mukaan olet jo suorittanut t\xe4m\xe4n kyselyn.",loadingSurvey:"Kysely\xe4 ladataan palvelimelta...",placeholder:"Valitse...",value:"arvo",requiredError:"Vastaa kysymykseen, kiitos.",requiredErrorInPanel:"Vastaa ainakin yhteen kysymykseen.",requiredInAllRowsError:"Vastaa kysymyksiin kaikilla riveill\xe4.",numericError:"Arvon tulee olla numeerinen.",textMinLength:"Sy\xf6t\xe4 v\xe4hint\xe4\xe4n {0} merkki\xe4.",textMaxLength:"\xc4l\xe4 sy\xf6t\xe4 yli {0} merkki\xe4.",textMinMaxLength:"Sy\xf6t\xe4 v\xe4hint\xe4\xe4n {0} ja enint\xe4\xe4n {1} merkki\xe4.",minRowCountError:"T\xe4yt\xe4 v\xe4hint\xe4\xe4n {0} rivi\xe4.",minSelectError:"Valitse v\xe4hint\xe4\xe4n {0} vaihtoehtoa.",maxSelectError:"Valitse enint\xe4\xe4n {0} vaihtoehtoa.",numericMinMax:"Luvun '{0}' tulee olla v\xe4hint\xe4\xe4n {1} ja korkeintaan {2}.",numericMin:"Luvun '{0}' tulee olla v\xe4hint\xe4\xe4n {1}.",numericMax:"Luvun '{0}' tulee olla korkeintaan {1}.",invalidEmail:"Sy\xf6t\xe4 validi s\xe4hk\xf6postiosoite.",invalidExpression:"Lausekkeen: {0} pit\xe4isi palauttaa 'true'.",urlRequestError:"Pyynt\xf6 palautti virheen {0}. {1}",urlGetChoicesError:"Pyynt\xf6 palautti tyhj\xe4n tiedoston tai 'path'-asetus on v\xe4\xe4r\xe4",exceedMaxSize:"Tiedoston koko ei saa olla suurempi kuin {0}.",otherRequiredError:"Tarkenna vastaustasi tekstikentt\xe4\xe4n.",uploadingFile:"Tiedostoa l\xe4hetet\xe4\xe4n. Odota muutama sekunti ja yrit\xe4 uudelleen.",loadingFile:"Ladataan...",chooseFile:"Valitse tiedosto(t)...",fileDragAreaPlaceholder:"Pudota tiedosto t\xe4h\xe4n tai lataa tiedosto napsauttamalla alla olevaa painiketta.",noFileChosen:"Ei tiedostoa valittuna",confirmDelete:"Haluatko poistaa osion?",keyDuplicationError:"T\xe4m\xe4 arvo on jo k\xe4
1yt\xf6ss\xe4. Sy\xf6t\xe4 toinen arvo.",addColumn:"Lis\xe4\xe4 sarake",addRow:"Lis\xe4\xe4 rivi",removeRow:"Poista",emptyRowsText:"Ei rivej\xe4",addPanel:"Lis\xe4\xe4 uusi",removePanel:"Poista",choices_Item:"kohde",matrix_column:"Sarake",matrix_row:"Rivi",savingData:"Tietoja tallennetaan palvelimelle...",savingDataError:"Tapahtui virhe, emmek\xe4 voineet tallentaa kyselyn tietoja.",savingDataSuccess:"Tiedot tallennettiin onnistuneesti!",saveAgainButton:"Yrit\xe4 uudelleen",timerMin:"min",timerSec:"sek",timerSpentAll:"Olet k\xe4ytt\xe4nyt {0} t\xe4ll\xe4 sivulla ja yhteens\xe4 {1}.",timerSpentPage:"Olet k\xe4ytt\xe4nyt {0} t\xe4ll\xe4 sivulla.",timerSpentSurvey:"Olet k\xe4ytt\xe4nyt yhteens\xe4 {0}.",timerLimitAll:"Olet k\xe4ytt\xe4nyt t\xe4ll\xe4 sivulla {0} / {1} ja yhteens\xe4 {2} / {3}.",timerLimitPage:"Olet k\xe4ytt\xe4nyt {0} / {1} t\xe4ll\xe4 sivulla.",timerLimitSurvey:"Olet k\xe4ytt\xe4nyt yhteens\xe4 {0} / {1}.",clearCaption:"Tyhjenn\xe4",chooseFileCaption:"Valitse tiedosto",removeFileCaption:"Poista t\xe4m\xe4 tiedosto",booleanCheckedLabel:"Kyll\xe4",booleanUncheckedLabel:"Ei",confirmRemoveFile:"Haluatko varmasti poistaa t\xe4m\xe4n tiedoston: {0}?",confirmRemoveAllFiles:"Haluatko varmasti poistaa kaikki tiedostot?",questionTitlePatternText:"Kysymyksen otsikko",modalCancelButtonText:"Peruuta",modalApplyButtonText:"K\xe4yt\xe4",ratingOptionsCaption:"Arvioi napauttamalla t\xe4t\xe4...",filterStringPlaceholder:"Hae kirjoittamalla...",indexText:"{0} / {1}",minError:"Arvo ei saa olla pienempi kuin {0}",maxError:"Arvo ei saa olla suurempi kuin {0}",multipletext_itemname:"teksti",noEntriesText:"Merkint\xf6j\xe4 ei ole viel\xe4.\nLis\xe4\xe4 uusi merkint\xe4 napsauttamalla alla olevaa painiketta.",signaturePlaceHolder:"Allekirjoita t\xe4h\xe4n"};n.surveyLocalization.locales.fi=o,n.surveyLocalization.localeNames.fi="suomi"},
1"./src/localization/french.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"frenchSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Pr\xe9c\xe9dent",pageNextText:"Suivant",completeText:"Terminer",previewText:"Aper\xe7u",editText:"Modifier",startSurveyText:"Commencer",otherItemText:"Autre (pr\xe9ciser)",noneItemText:"Aucun",selectAllItemText:"Tout s\xe9lectionner",progressText:"Page {0} sur {1}",panelDynamicProgressText:"Enregistrement {0} sur {1}",questionsProgressText:"{0}/{1} question(s) r\xe9pondue(s)",emptySurvey:"Il n'y a ni page visible ni question visible dans ce questionnaire",completingSurvey:"Merci d'avoir r\xe9pondu au questionnaire !",completingSurveyBefore:"Nos donn\xe9es indiquent que vous avez d\xe9j\xe0 rempli ce questionnaire.",loadingSurvey:"Le questionnaire est en cours de chargement...",placeholder:"Choisissez...",ratingOptionsCaption:"Appuyez ici pour noter...",value:"valeur",requiredError:"La r\xe9ponse \xe0 cette question est obligatoire.",requiredErrorInPanel:"Merci de r\xe9pondre au moins \xe0 une question.",requiredInAllRowsError:"Toutes les lignes sont obligatoires",numericError:"La r\xe9ponse doit \xeatre un nombre.",textMinLength:"Merci de saisir au moins {0} caract\xe8res.",textMaxLength:"Merci de saisir moins de {0} caract\xe8res.",textMinMaxLength:"Merci de saisir entre {0} et {1} caract\xe8res.",minRowCountError:"Merci de compl\xe9ter au moins {0} lignes.",minSelectError:"Merci de s\xe9lectionner au minimum {0} r\xe9ponses.",maxSelectError:"Merci de s\xe9lectionner au maximum {0} r\xe9ponses.",numericMinMax:"Votre r\xe9ponse '{0}' doit \xeatre sup\xe9rieure ou \xe9gale \xe0 {1} et inf\xe9rieure ou \xe9gale \xe0 {2}",numericMin:"Votre r\xe9ponse '{0}' doit \xeatre sup\xe9rieure ou \xe9gale \xe0 {1}",numericMax:"Votre r\xe9ponse '{0}' doit \xeatre inf\xe9rieure ou \xe9gale \xe0 {1}",invalidEmail:"Merci d'entrer une adresse mail valide.",invalidExpression:"L'expression: {0} doit retourner 'true'.",urlRequestError:"La requ\xeate a renvoy\xe9 une erreur '{0}'. {1}",urlGetChoicesError:"La requ\xeate a renvoy\xe9 des donn\xe9es vides ou la propri\xe9t\xe9 'path' est incorrecte",exceedMaxSize:"La taille du fichier ne doit pas exc\xe9der {0}.",otherRequiredError:"Merci de pr\xe9ciser le champ 'Autre'.",uploadingFile:"Votre fichier est en cours de chargement. Merci d'attendre quelques secondes et de r\xe9essayer.",loadingFile:"Chargement...",chooseFile:"Ajouter des fichiers...",fileDragAreaPlaceholder:"D\xe9posez un fichier ici ou cliquez sur le bouton ci-dessous pour charger le fichier.",noFileChosen:"Aucun fichier ajout\xe9",confirmDelete:"Voulez-vous supprimer cet enregistrement ?",keyDuplicationError:"Cette valeur doit \xeatre 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\xe9sultats sont en cours de sauvegarde sur le serveur...",savingDataError:"Une erreur est survenue et a emp\xeach\xe9 la sauvegarde des r\xe9sultats.",savingDataSuccess:"Les r\xe9sultats ont bien \xe9t\xe9 enregistr\xe9s !",saveAgainButton:"R\xe9essayer",timerMin:"min",timerSec:"sec",timerSpentAll:"Vous avez pass\xe9 {0} sur cette page et {1} au total.",timerSpentPage:"Vous avez pass\xe9 {0} sur cette page.",timerSpentSurvey:"Vous avez pass\xe9 {0} au total.",timerLimitAll:"Vous avez pass\xe9 {0} sur {1} sur cette page et {2} sur {3} au total.",timerLimitPage:"Vous avez pass\xe9 {0} sur {1} sur cette page.",timerLimitSurvey:"Vous avez pass\xe9 {0} sur {1} au total.",clearCaption:"Vider",chooseFileCaption:"Ajouter un fichier",removeFileCaption:"Enlever ce fichier",booleanCheckedLabel:"Oui",booleanUncheckedLabel:"Non",confirmRemoveFile:"\xcates-vous certains de vouloir supprimer ce fichier : {0}?",confirmRemoveAllFiles:"\xcates-vous certains de vouloir supprimer tous les fichiers?",questionTitlePatternText:"Titre de la question",emptyRowsText:"Il n'y a pas de lignes.",filterStringPlaceholder:"Tapez pour rechercher...",indexText:"{0} sur {1}",minError:"La valeur ne doit pas \xeatre inf\xe9rieure \xe0 {0}",maxError:"La valeur ne doit pas \xeatre sup\xe9rieure \xe0 {0}",modalApplyButtonText:"Appliquer",modalCancelButtonText:"Annuler",multipletext_itemname:"texte",noEntriesText:"Il n'y a pas encore d'entr\xe9es.\nCliquez sur le bouton ci-dessous pour ajouter une nouvelle entr\xe9e.",signaturePlaceHolder:"Signez ici"};n.surveyLocalization.locales.fr=o,n.surveyLocalization.localeNames.fr="fran\xe7ais"},
1"./src/localization/georgian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"georgianSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"უკან",pageNextText:"შემდეგ",completeText:"დასრულება",progressText:"გვერდი {0} / {1}",emptySurvey:"არცერთი კითხვა არ არის.",completingSurvey:"გმადლობთ კითხვარის შევსებისთვის!",loadingSurvey:"ჩატვირთვა სერვერიდან...",otherItemText:"სხვა (გთხოვთ მიუთითეთ)",placeholder:"არჩევა...",requiredError:"გთხოვთ უპასუხეთ კითხვას.",numericError:"პასუხი უნდა იყოს რიცხვი.",textMinLength:"გთხოვთ შეიყვანეთ არანაკლებ {0} სიმბოლო.",minSelectError:"გთხოვთ აირჩიეთ არანაკლებ {0} ვარიანტი.",maxSelectError:"გთხოვთ აირჩიეთ არაუმეტეს {0} ვარიანტი.",numericMinMax:"'{0}' უნდა იყოს მეტი ან ტოლი, ვიდრე {1}, და ნაკლები ან ტოლი ვიდრე {2}",numericMin:"'{0}' უნდა იყოს მეტი ან ტოლი ვიდრე {1}",numericMax:"'{0}' უნდა იყოს ნაკლები ან ტოლი ვიდრე {1}",invalidEmail:"გთხოვთ შეიყვანოთ ელ. ფოსტის რეალური მისამართი.",otherRequiredEror:"გთხოვთ შეავსეთ ველი 'სხვა'"};n.surveyLocalization.locales.ka=o,n.surveyLocalization.localeNames.ka="ქართული"},
1"./src/localization/german.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"germanSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Zur\xfcck",pageNextText:"Weiter",completeText:"Abschlie\xdfen",previewText:"Vorschau",editText:"Bearbeiten",startSurveyText:"Start",otherItemText:"Sonstiges (Bitte angeben)",noneItemText:"Nichts trifft zu",selectAllItemText:"Alles ausw\xe4hlen",progressText:"Seite {0} von {1}",panelDynamicProgressText:"Eintrag {0} von {1}",questionsProgressText:"{0}/{1} Fragen beantwortet",emptySurvey:"Es sind keine Fragen vorhanden.",completingSurvey:"Vielen Dank, dass Sie die Umfrage abgeschlossen haben!",completingSurveyBefore:"Wir haben festgestellt, dass Sie diese Umfrage bereits abgeschlossen haben.",loadingSurvey:"Umfrage wird geladen...",placeholder:"Bitte ausw\xe4hlen...",value:"Wert",requiredError:"Bitte beantworten Sie diese Frage.",requiredErrorInPanel:"Bitte beantworten Sie mindestens eine Frage.",requiredInAllRowsError:"Bitte beantworten Sie alle Fragen.",numericError:"Der Wert muss eine Zahl sein.",textMinLength:"Bitte geben Sie mindestens {0} Zeichen ein.",textMaxLength:"Bitte geben Sie nicht mehr als {0} Zeichen ein.",textMinMaxLength:"Bitte geben Sie mindestens {0} und maximal {1} Zeichen ein.",minRowCountError:"Bitte machen Sie in mindestens {0} Zeilen eine Eingabe.",minSelectError:"Bitte w\xe4hlen Sie mindestens {0} Antwort(en) aus.",maxSelectError:"Bitte w\xe4hlen Sie nicht mehr als {0} Antwort(en) aus.",numericMinMax:"'{0}' muss gr\xf6\xdfer oder gleich {1} und kleiner oder gleich {2} sein",numericMin:"'{0}' muss gr\xf6\xdfer oder gleich {1} sein",numericMax:"'{0}' muss kleiner oder gleich {1} sein",invalidEmail:"Bitte geben Sie eine g\xfcltige E-Mail-Adresse ein.",invalidExpression:"Der Ausdruck: {0} muss den Wert 'wahr' zur\xfcckgeben.",urlRequestError:"Ein Netzwerkdienst hat folgenden Fehler zur\xfcckgegeben '{0}'. {1}",urlGetChoicesError:"Eine Netzwerkdienst hat ung\xfcltige Daten zur\xfcckgegeben",exceedMaxSize:"Die Datei darf nicht gr\xf6\xdfer als {0} sein.",otherRequiredError:"Bitte geben Sie einen Wert an.",uploadingFile:"Bitte warten Sie bis der Upload Ihrer Dateien abgeschlossen ist.",loadingFile:"Wird hochgeladen...",chooseFile:"Datei(en) ausw\xe4hlen...",fileDragAreaPlaceholder:"Legen Sie hier eine Datei ab oder klicken Sie auf die Schaltfl\xe4che unten, um die Datei zu laden.",noFileChosen:"Keine Datei ausgew\xe4hlt",confirmDelete:"Wollen Sie den Eintrag l\xf6schen?",keyDuplicationError:"Dieser Wert muss einmalig sein.",addColumn:"Spalte hinzuf\xfcgen",addRow:"Zeile hinzuf\xfcgen",removeRow:"Entfernen",addPanel:"Neu hinzuf\xfcgen",removePanel:"Entfernen",choices_Item:"Element",matrix_column:"Spalte",matrix_row:"Zeile",savingData:"Die Ergebnisse werden auf dem Server gespeichert...",savingDataError:"Es ist ein Fehler aufgetreten. Die Ergebnisse konnten nicht gespeichert werden.",savingDataSuccess:"Die Ergebnisse wurden gespeichert!",saveAgainButton:"Erneut absenden",timerMin:"Min.",timerSec:"Sek.",timerSpentAll:"Sie waren {0} auf dieser Seite und brauchten insgesamt {1}.",timerSpentPage:"Sie waren {0} auf dieser Seite.",timerSpentSurvey:"Sie haben insgesamt {0} gebraucht.",timerLimitAll:"Sie waren {0} von {1} auf dieser Seite und brauchten insgesamt {2} von {3}.",timerLimitPage:"Sie waren {0} von {1} auf dieser Seite.",timerLimitSurvey:"Sie haben insgesamt {0} von {1} gebraucht.",clearCaption:"Auswahl entfernen",chooseFileCaption:"Datei ausw\xe4hlen",removeFileCaption:"Datei l\xf6schen",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Nein",confirmRemoveFile:"Sind Sie sicher, dass Sie diese Datei l\xf6schen m\xf6chten: {0}?",confirmRemoveAllFiles:"Sind Sie sicher, dass Sie alle Dateien l\xf6schen m\xf6chten?",questionTitlePatternText:"Fragentitel",ratingOptionsCaption:"Tippen Sie hier, um zu bewerten...",emptyRowsText:"Es gibt keine Reihen.",filterStringPlaceholder:"Tippe um zu suchen...",indexText:"{0} von {1}",minError:"Der Wert sollte nicht kleiner als {0} sein",maxError:"Der Wert sollte nicht gr\xf6\xdfer als {0} sein",modalApplyButtonText:"Anwenden",modalCancelButtonText:"Stornieren",multipletext_itemname:"Text",noEntriesText:"Es gibt noch keine Eintr\xe4ge.\nKlicken Sie auf die Schaltfl\xe4che unten, um einen neuen Eintrag hinzuzuf\xfcgen.",signaturePlaceHolder:"Hier unterschreiben"};n.surveyLocalization.locales.de=o,n.surveyLocalization.localeNames.de="deutsch"},
1"./src/localization/greek.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"greekSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Προηγούμενο",pageNextText:"Επόμενο",completeText:"Ολοκλήρωση",previewText:"Προεπισκόπηση",editText:"Επεξεργασία",startSurveyText:"Αρχή",otherItemText:"Άλλο (παρακαλώ διευκρινίστε)",noneItemText:"Κανένας",selectAllItemText:"Επιλογή όλων",progressText:"Σελίδα {0} από {1}",panelDynamicProgressText:"Εγγραφή {0} από {1}",questionsProgressText:"Απαντήθηκαν {0} / {1} ερωτήσεις",emptySurvey:"Δεν υπάρχει καμία ορατή σελίδα ή ορατή ερώτηση σε αυτό το ερωτηματολόγιο.",completingSurvey:"Ευχαριστούμε για την συμπλήρωση αυτού του ερωτηματολογίου!",completingSurveyBefore:"Τα αρχεία μας δείχνουν ότι έχετε ήδη ολοκληρώσει αυτήν την έρευνα.",loadingSurvey:"Το ερωτηματολόγιο φορτώνεται απο το διακομιστή...",placeholder:"Επιλέξτε...",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:"Παρακαλώ δώστε μια αποδεκτή διεύθυνση e-mail.",invalidExpression:"Η έκφραση: {0} θα πρέπει να επιστρέψει 'true'.",urlRequestError:"Η αίτηση επέστρεψε σφάλμα '{0}'. {1}",urlGetChoicesError:"Η αίτηση επέστρεψε κενά δεδομένα ή η ιδιότητα 'μονοπάτι/path' είναι εσφαλμένη",exceedMaxSize:"Το μέγεθος δεν μπορεί να υπερβαίνει τα {0}.",otherRequiredError:"Παρακαλώ συμπληρώστε την τιμή για το πεδίο 'άλλο'.",uploadingFile:"Το αρχείο σας ανεβαίνει. Παρακαλώ περιμένετε καποια δευτερόλεπτα και δοκιμάστε ξανά.",loadingFile:"Φόρτωση...",chooseFile:"Επιλογή αρχείων ...",noFileChosen:"Δεν έχει επιλεγεί αρχείο",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} συνολικά.",clearCaption:"Σαφή",chooseFileCaption:"Επιλέξτε το αρχείο",removeFileCaption:"Καταργήστε αυτό το αρχείο",booleanCheckedLabel:"Ναί",booleanUncheckedLabel:"Οχι",confirmRemoveFile:"Είστε βέβαιοι ότι θέλετε να καταργήσετε αυτό το αρχείο: {0};",confirmRemoveAllFiles:"Είστε βέβαιοι ότι θέλετε να καταργήσετε όλα τα αρχεία;",questionTitlePatternText:"Τίτλος ερώτησης"};
1n.surveyLocalization.locales.gr=o,n.surveyLocalization.localeNames.gr="ελληνικά"},
1"./src/localization/hebrew.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"hebrewSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"אחורה",pageNextText:"קדימה",completeText:"סיום",previewText:"תצוגה מקדימה",editText:"לַעֲרוֹך",startSurveyText:"הַתחָלָה",otherItemText:"אחר (נא לתאר)",noneItemText:"אף אחד",selectAllItemText:"בחר הכל",progressText:"דף {1} מתוך {0}",panelDynamicProgressText:"הקלטה {0} מתוך {1}",questionsProgressText:"ענה על שאלות",emptySurvey:"אין שאלות",completingSurvey:"תודה על מילוי השאלון!",completingSurveyBefore:"הרשומות שלנו מראות שכבר סיימת את הסקר הזה.",loadingSurvey:"טעינה מהשרת...",placeholder:"בחר...",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:"לבחור קבצים...",noFileChosen:"לא נבחר קובץ",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}.",clearCaption:"ברור",chooseFileCaption:"בחר קובץ",removeFileCaption:"הסר קובץ זה",booleanCheckedLabel:"כן",booleanUncheckedLabel:"לא",confirmRemoveFile:"האם אתה בטוח שברצונך להסיר קובץ זה: {0}?",confirmRemoveAllFiles:"האם אתה בטוח שברצונך להסיר את כל הקבצים?",questionTitlePatternText:"כותרת שאלה"};n.surveyLocalization.locales.he=o,n.surveyLocalization.localeNames.he="עברית"},
1"./src/localization/hindi.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"hindiStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"पिछला",pageNextText:"अगला",completeText:"पूरा",previewText:"पूर्वसमीक्षा",editText:"संपादित",startSurveyText:"शुरू",otherItemText:"दूसरा (वर्णन करें)",noneItemTex:"कोई नहीं",selectAllItemText:"सभी का चयन करें",progressText:"पृष्ठ 1 में से 0",panelDynamicProgressText:" दस्तावेज {1} के {0}",questionsProgressText:"{1} सवालों में से {0} के जवाब दिए",emptySurvey:"सर्वेक्षण में कोई दृश्यमान पृष्ठ या प्रश्न नहीं है",completingSurvey:"सर्वेक्षण को पूरा करने के लिए धन्यवाद",completingSurveyBefore:" हमारे रिकॉर्ड बताते हैं कि आप पहले ही इस सर्वेक्षण को पूरा कर चुके हैं",loadingSurvey:"सर्वेक्षण खुल रहा है.…",placeholder:"चुनें",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:"फ़ाइल चुनें",noFileChosen:"कोई फाइल नहीं चुनी गई",confirmDelete:"क्या आप रिकॉर्ड हटाना चाहते हैं",keyDuplicationError:"यह मान अनोखा होना चाहिए",addColumn:"कॉलम जोड़ें",addRow:"पंक्ति जोड़ें",removeRow:"हटाए",addPanel:"नया जोड़ें",removePanel:"हटाए",choices_Item:"मद",matrix_column:"कॉलम",matrix_row:"पंक्ति",savingData:"परिणाà
1¤® सर्वर पर सेव हो रहे हैं",savingDataError:"एक त्रुटि हुई और हम परिणामों को नहीं सेव कर सके",savingDataSuccess:"परिणाम सफलतापूर्वक सेव हो गए",saveAgainButton:"फिर कोशिश करो",timerMin:"मिनट",timerSec:"सेकंड",timerSpentAll:"आपने इस पृष्ठ पर {0} खर्च किए हैं और कुल {1}",timerSpentPage:"आपने इस पृष्ठ पर {0} खर्च किया है",timerSpentSurvey:"आपने कुल {0} खर्च किया है",timerLimitAll:"आपने इस पृष्ठ पर {1} की {0} और कुल {3} की {2} खर्च की है।",timerLimitPage:"आपने इस पृष्ठ पर {1} का {0} खर्च किया है",timerLimitSurvey:"आपने कुल {1} की {0} खर्च की है",clearCaption:"स्पष्ट",chooseFileCaption:"फ़ाइल चुनें",removeFileCaption:"इस फाइल को निकालें",booleanCheckedLabel:"हाँ",booleanUncheckedLabel:"नहीं",confirmRemoveFile:"क्या आप सुनिश्चित हैं कि आप इस फ़ाइल को हटाना चाहते हैं: {0}",confirmRemoveAllFiles:"क्या आप सुनिश्चित हैं कि आप सभी फ़ाइलों को हटाना चाहते हैं",questionTitlePatternText:"प्रश्न का शीर्षक"};n.surveyLocalization.locales.hi=o,n.surveyLocalization.localeNames.hi="hindi"},
1"./src/localization/hungarian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"hungarianSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Vissza",pageNextText:"Tov\xe1bb",completeText:"K\xe9sz",previewText:"Előn\xe9zet",editText:"Szerkeszt\xe9s",startSurveyText:"Rajt",otherItemText:"Egy\xe9b (adja meg)",noneItemText:"Egyik sem",selectAllItemText:"Mindet kiv\xe1laszt",progressText:"{0}./{1} oldal",panelDynamicProgressText:"{0} / {1} rekord",questionsProgressText:"V\xe1laszolt k\xe9rd\xe9sek: {0} / {1}",emptySurvey:"The survey doesn't contain visible pages or questions.",completingSurvey:"K\xf6sz\xf6nj\xfck, hogy kit\xf6lt\xf6tte felm\xe9r\xe9s\xfcnket!",completingSurveyBefore:"M\xe1r kit\xf6lt\xf6tte a felm\xe9r\xe9st.",loadingSurvey:"Felm\xe9r\xe9s bet\xf6lt\xe9se...",placeholder:"V\xe1lasszon...",value:"\xe9rt\xe9k",requiredError:"K\xe9rj\xfck, v\xe1laszolja meg ezt a k\xe9rd\xe9st!",requiredErrorInPanel:"K\xe9rj\xfck, v\xe1laszoljon legal\xe1bb egy k\xe9rd\xe9sre.",requiredInAllRowsError:"K\xe9rj\xfck adjon v\xe1laszt minden sorban!",numericError:"Az \xe9rt\xe9k sz\xe1m kell, hogy legyen!",textMinLength:"Adjon meg legal\xe1bb {0} karaktert!",textMaxLength:"Legfeljebb {0} karaktert adjon meg!",textMinMaxLength:"Adjon meg legal\xe1bb {0}, de legfeljebb {1} karaktert!",minRowCountError:"T\xf6lts\xf6n ki minimum {0} sort!",minSelectError:"V\xe1lasszon ki legal\xe1bb {0} lehetős\xe9get!",maxSelectError:"Ne v\xe1lasszon t\xf6bbet, mint {0} lehetős\xe9g!",numericMinMax:"'{0}' legyen nagyobb, vagy egyenlő, mint {1} \xe9s kisebb, vagy egyenlő, mint {2}!",numericMin:"'{0}' legyen legal\xe1bb {1}!",numericMax:"The '{0}' ne legyen nagyobb, mint {1}
1!",invalidEmail:"Adjon meg egy val\xf3s email c\xedmet!",invalidExpression:"A k\xf6vetkező kifejez\xe9s: {0} vissza kell adnia az „igaz” \xe9rt\xe9ket.",urlRequestError:"A lek\xe9rdez\xe9s hib\xe1val t\xe9rt vissza: '{0}'. {1}",urlGetChoicesError:"A lek\xe9rdez\xe9s \xfcres adattal t\xe9rt vissza, vagy a 'path' param\xe9ter helytelen.",exceedMaxSize:"A m\xe9ret nem lehet nagyobb, mint {0}.",otherRequiredError:"Adja meg az egy\xe9b \xe9rt\xe9ket!",uploadingFile:"Felt\xf6lt\xe9s folyamatban. V\xe1rjon p\xe1r m\xe1sodpercet, majd pr\xf3b\xe1lja \xfajra.",loadingFile:"Bet\xf6lt\xe9s...",chooseFile:"F\xe1jlok kiv\xe1laszt\xe1sa ...",fileDragAreaPlaceholder:"Dobjon ide egy f\xe1jlt, vagy kattintson az al\xe1bbi gombra a f\xe1jl bet\xf6lt\xe9s\xe9hez.",noFileChosen:"Nincs kiv\xe1lasztva f\xe1jl",confirmDelete:"T\xf6rli ezt a rekordot?",keyDuplicationError:"Az \xe9rt\xe9knek egyedinek kell lennie.",addColumn:"Oszlop hozz\xe1ad\xe1sa",addRow:"Sor hozz\xe1ad\xe1sa",removeRow:"Elt\xe1vol\xedt\xe1s",addPanel:"\xdaj hozz\xe1ad\xe1sa",removePanel:"Elt\xe1vol\xedt\xe1s",choices_Item:"elem",matrix_column:"Oszlop",matrix_row:"Sor",savingData:"Eredm\xe9ny ment\xe9se a szerverre...",savingDataError:"Egy hiba folyt\xe1n nem tudtuk elmenteni az eredm\xe9nyt.",savingDataSuccess:"Eredm\xe9ny sikeresen mentve!",saveAgainButton:"Pr\xf3b\xe1lja \xfajra",timerMin:"min",timerSec:"sec",timerSpentAll:"\xd6n {0} \xf6sszeget k\xf6lt\xf6tt ezen az oldalon, \xe9s \xf6sszesen {1}.",timerSpentPage:"{0} \xf6sszeget k\xf6lt\xf6tt ezen az oldalon.",timerSpentSurvey:"\xd6sszesen {0} k\xf6lt\xf6tt.",timerLimitAll:"\xd6n {0} / {1} \xf6sszeget k\xf6lt\xf6tt ezen az oldalon, \xe9s \xf6sszesen {2} / {3}.",timerLimitPage:"\xd6n {0} / {1} \xf6sszeget k\xf6lt\xf6tt ezen az oldalon.",timerLimitSurvey:"\xd6sszesen {0} / {1} \xf6sszeget k\xf6lt\xf6tt el.",clearCaption:"Egy\xe9rtelmű",chooseFileCaption:"V\xe1lassz f\xe1jlt",removeFileCaption:"T\xe1vol\xedtsa el ezt a f\xe1jlt",booleanCheckedLabel:"Igen",booleanUncheckedLabel:"Nem",confirmRemoveFile:"Biztosan elt\xe1vol\xedtja ezt a f\xe1jlt: {0}?",confirmRemoveAllFiles:"Biztosan el akarja t\xe1vol\xedtani az \xf6sszes f\xe1jlt?",questionTitlePatternText:"K\xe9rd\xe9s c\xedme"};n.surveyLocalization.locales.hu=o,n.surveyLocalization.localeNames.hu="magyar"},
1"./src/localization/icelandic.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"icelandicSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Tilbaka",pageNextText:"\xc1fram",completeText:"Loki\xf0",previewText:"Forsko\xf0a",editText:"Breyta",startSurveyText:"Byrja\xf0u",otherItemText:"Hinn (sk\xfdring)",noneItemText:"Enginn",selectAllItemText:"Velja allt",progressText:"S\xed\xf0a {0} of {1}",panelDynamicProgressText:"Taka upp {0} af {1}",questionsProgressText:"Svara\xf0 {0} / {1} spurningum",emptySurvey:"\xdea\xf0 er enginn s\xed\xf0a e\xf0a spurningar \xed \xfeessari k\xf6nnun.",completingSurvey:"Takk fyrir a\xf0 fyllja \xfat \xfeessa k\xf6nnun!",completingSurveyBefore:"Skr\xe1r okkar s\xfdna a\xf0 \xfe\xfa hefur \xfeegar loki\xf0 \xfeessari k\xf6nnun.",loadingSurvey:"K\xf6nnunin er a\xf0 hla\xf0a...",placeholder:"Veldu...",value:"gildi",requiredError:"Vinsamlegast svari\xf0 spurningunni.",requiredErrorInPanel:"Vinsamlegast svara\xf0u a\xf0 minnsta kosti einni spurningu.",requiredInAllRowsError:"Vinsamlegast svari\xf0 spurningum \xed \xf6llum r\xf6\xf0um.",numericError:"\xdeetta gildi ver\xf0ur a\xf0 vera tala.",textMinLength:"\xdea\xf0 \xe6tti a\xf0 vera minnst {0} t\xe1kn.",textMaxLength:"\xdea\xf0 \xe6tti a\xf0 vera mest {0} t\xe1kn.",textMinMaxLength:"\xdea\xf0 \xe6tti a\xf0 vera fleiri en {0} og f\xe6rri en {1} t\xe1kn.",minRowCountError:"Vinsamlegast fylli\xf0 \xfar a\xf0 minnsta kosti {0} ra\xf0ir.",minSelectError:"Vinsamlegast velji\xf0 a\xf0 minnsta kosti {0} m\xf6guleika.",maxSelectError:"Vinsamlegast velji\xf0 ekki fleiri en {0} m\xf6guleika.",numericMinMax:"'{0}' \xe6tti a\xf0 vera meira en e\xf0a jafnt og {1} minna en e\xf0a jafnt og {2}",numericMin:"{0}' \xe6tti a\xf0 vera meira en e\xf0a jafnt og {1}",numericMax:"'{0}' \xe6tti a\xf0 vera minna en e\xf0a jafnt og {1}",invalidEmail:"Vinsamlegast sl\xe1i\xf0 inn gilt netfang.",invalidExpression:"Tj\xe1ningin: {0} \xe6tti a\xf0 skila 'satt'.",urlRequestError:"Bei\xf0ninn skila\xf0i eftirfaranadi villu '{0}'. {1}",urlGetChoicesError:"Bei\xf0ninng skila\xf0i engum g\xf6gnum e\xf0a sl\xf3\xf0inn var r\xf6ng",exceedMaxSize:"Skr\xe1inn skal ekki vera st\xe6rri en {0}.",otherRequiredError:"Vinamlegast fylli\xf0 \xfat hitt gildi\xf0.",uploadingFile:"Skr\xe1inn \xfe\xedn var send. Vinsamlegast b\xed\xf0i\xf0 \xed nokkrar sek\xfandur og reyni\xf0 aftur.",loadingFile:"Hle\xf0ur ...",chooseFile:"Veldu skr\xe1r ...",noFileChosen:"Engin skr\xe1 valin",confirmDelete:"Viltu ey\xf0a skr\xe1nni?",keyDuplicationError:"\xdeetta gildi \xe6tti a\xf0 vera einstakt.",addColumn:"B\xe6ta vi\xf0 d\xe1lki",addRow:"B\xe6ta vi\xf0 r\xf6\xf0",removeRow:"Fjarl\xe6gja",addPanel:"B\xe6ta vi\xf0 n\xfdju",removePanel:"Fjarl\xe6g\xf0u",choices_Item:"hlutur",matrix_column:"D\xe1lkur",matrix_row:"R\xf6\xf0",savingData:"Ni\xf0urst\xf6\xf0urnar eru a\xf0 spara \xe1 net\xfej\xf3ninum ... ",savingDataError:"Villa kom upp og vi\xf0 g\xe1tum ekki vista\xf0 ni\xf0urst\xf6\xf0urnar.",savingDataSuccess:"\xc1rangurinn var vista\xf0ur me\xf0 g\xf3\xf0um \xe1rangri!",saveAgainButton:"Reyndu aftur",timerMin:"m\xedn",timerSec:"sek",timerSpentAll:"\xde\xfa hefur eytt {0} \xe1 \xfeessari s\xed\xf0u og {1} samtals.",timerSpentPage:"\xde\xfa hefur eytt {0} \xe1 \xfeessari s\xed\xf0u.",timerSpentSurvey:"\xde\xfa hefur eytt {0} samtals.",timerLimitAll:"\xde\xfa hefur eytt {0} af {1} \xe1 \xfeessari s\xed\xf0u og {2} af {3} samtals.",timerLimitPage:"\xde\xfa hefur eytt {0} af {1} \xe1 \xfeessari s\xed\xf0u.",timerLimitSurvey:"\xde\xfa hefur eytt {0} af {1} samtals.",clearCaption:"Hreinsa",chooseFileCaption:"Veldu skr\xe1",removeFileCaption:"Fjarl\xe6g\xf0u \xfeessa skr\xe1",booleanCheckedLabel:"J\xe1",booleanUncheckedLabel:"Nei",confirmRemoveFile:"Ertu viss um a\xf0 \xfe\xfa viljir fjarl\xe6gja \xfeessa skr\xe1: {0}?",confirmRemoveAllFiles:"Ertu viss um a\xf0 \xfe\xfa viljir fjarl\xe6gja allar skr\xe1r?",questionTitlePatternText:"Spurningartitill"};n.surveyLocalization.locales.is=o,n.surveyLocalization.localeNames.is="\xedslenska"},
1"./src/localization/indonesian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"indonesianStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Sebelumnya",pageNextText:"Selanjutnya",completeText:"Selesai",previewText:"Pratinjau",editText:"Sunting",startSurveyText:"Mulai",otherItemText:"Lainnya (jelaskan)",noneItemText:"Tidak Ada",selectAllItemText:"Pilih Semua",progressText:"Halaman {0} dari {1}",panelDynamicProgressText:"Rekam {0} dari {1}",questionsProgressText:"Menjawab pertanyaan {0} / {1}",emptySurvey:"Tidak ada halaman atau pertanyaan dalam survei.",completingSurvey:"Terima kasih telah menyelesaikan survei!",completingSurveyBefore:"Catatan kami menunjukkan bahwa Anda telah menyelesaikan survei ini.",loadingSurvey:"Memuat survei...",placeholder:"Pilih...",value:"nilai",requiredError:"Silahkan jawab pertanyaan berikut.",requiredErrorInPanel:"Silahkan jawab setidaknya satu petanyaan.",requiredInAllRowsError:"Silahkan jawab pertanyaan pada semua baris.",numericError:"Nilai harus berupa angka.",textMinLength:"Silahkan masukkan setidaknya {0} karakter.",textMaxLength:"Silahkan masukkan kurang {0} karakter.",textMinMaxLength:"PSilahkan masukkan lebih dari {0} dan kurang dari {1} karakter.",minRowCountError:"Silahkan isi setidaknya {0} baris.",minSelectError:"Silahkan pilih setidaknya {0} varian.",maxSelectError:"Silahkan pilih tidak lebih dari {0} varian.",numericMinMax:"'{0}' harus sama dengan atau lebih dari {1} dan harus sama dengan atau kurang dari {2}",numericMin:"'{0}' harus sama dengan atau lebih dari {1}",numericMax:"'{0}' harus sama dengan atau kurang dari {1}",invalidEmail:"Silahkan masukkan e-mail yang benar.",invalidExpression:"Ekspresi: {0} harus mengembalikan 'benar'.",urlRequestError:"Permintaan mengembalikan kesalahan '{0}'. {1}",urlGetChoicesError:"Permintaan mengembalikan data kosong atau properti 'path' salah.",exceedMaxSize:"Ukuran berkas tidak boleh melebihi {0}.",otherRequiredError:"Silahkan masukkan nilai lainnnya.",uploadingFile:"Berkas Anda sedang diunggah. Silahkan tunggu beberapa saat atau coba lagi.",loadingFile:"Memuat...",chooseFile:"Pilih berkas...",noFileChosen:"Tidak ada file yang dipilih",confirmDelete:"Apakah Anda ingin menghapus catatan?",keyDuplicationError:"Nilai harus unik.",addColumn:"Tambah kolom",addRow:"Tambah baris",removeRow:"Hapus",addPanel:"Tambah baru",removePanel:"Hapus",choices_Item:"item",matrix_column:"Kolom",matrix_row:"Baris",savingData:"Hasil sedang disimpan pada server...",savingDataError:"Kesalahan terjadi dan kami tidak dapat menyimpan hasil.",savingDataSuccess:"Hasil telah sukses disimpan!",saveAgainButton:"Coba lagi",timerMin:"menit",timerSec:"detik",timerSpentAll:"Anda telah menghabiskan {0} pada halaman ini dan {1} secara keseluruhan.",timerSpentPage:"YAnda telah menghabiskan {0} pada halaman ini.",timerSpentSurvey:"Anda telah menghabiskan {0} secara keseluruhan.",timerLimitAll:"Anda telah menghabiskan {0} dari {1} pada halaman ini dan {2} dari {3} secara keseluruhan.",timerLimitPage:"Anda telah menghabiskan {0} dari {1} pada halaman ini.",timerLimitSurvey:"Anda telah menghabiskan {0} dari {1} secara keseluruhan.",clearCaption:"Bersihkan",chooseFileCaption:"Pilih File",removeFileCaption:"Hapus berkas ini",booleanCheckedLabel:"Iya",booleanUncheckedLabel:"Tidak",confirmRemoveFile:"Anda yakin ingin menghapus file ini: {0}?",confirmRemoveAllFiles:"Anda yakin ingin menghapus semua file?",questionTitlePatternText:"Judul pertanyaan"};n.surveyLocalization.locales.id=o,n.surveyLocalization.localeNames.id="bahasa Indonesia"},
1"./src/localization/italian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"italianSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Precedente",pageNextText:"Successivo",completeText:"Salva",previewText:"Anteprima",editText:"Modifica",startSurveyText:"Inizio",otherItemText:"Altro (descrivi)",noneItemText:"Nessuno",selectAllItemText:"Seleziona tutti",progressText:"Pagina {0} di {1}",panelDynamicProgressText:"Record di {0} di {1}",questionsProgressText:"Risposte a {0}/{1} domande",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\xe0 completato questo questionario.",loadingSurvey:"Caricamento del questionario in corso...",placeholder:"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",invalidExpression:"L'espressione: {0} dovrebbe tornare 'vero'.",urlRequestError:"La richiesta ha risposto con un errore '{0}'. {1}",urlGetChoicesError:"La richiesta ha risposto null oppure il percorso non \xe8 corretto",exceedMaxSize:"Il file non pu\xf2 eccedere {0}",otherRequiredError:"Inserire il valore 'altro'",uploadingFile:"File in caricamento. Attendi alcuni secondi e riprova",loadingFile:"Caricamento...",chooseFile:"Selezionare file(s)...",fileDragAreaPlaceholder:"Trascina un file qui o fai clic sul pulsante in basso per caricare il file.",noFileChosen:"Nessun file selezionato",confirmDelete:"Sei sicuro di voler elminare il record?",keyDuplicationError:"Questo valore deve essere univoco.",addColumn:"Aggiungi colonna",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 \xe8 verificato un errore e non \xe8 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.",clearCaption:"Cancella",chooseFileCaption:"Scegliere il file",removeFileCaption:"Rimuovere questo file",booleanCheckedLabel:"S\xec",booleanUncheckedLabel:"No",confirmRemoveFile:"Sei sicuro di voler elminare questo file: {0}?",confirmRemoveAllFiles:"Sei sicuro di voler elminare tutti i files?",questionTitlePatternText:"Titolo della domanda",ratingOptionsCaption:"Tocca qui per valutare...",emptyRowsText:"Non ci sono righe.",filterStringPlaceholder:"Digita per cercare...",indexText:"{0} da {1}",minError:"Il valore non deve essere inferiore a {0}",maxError:"Il valore non deve essere maggiore di {0}",modalApplyButtonText:"Applicare",modalCancelButtonText:"Annulla",multipletext_itemname:"testo",noEntriesText:"Non ci sono ancora voci.\nFai clic sul pulsante qui sotto per aggiungere una nuova voce.",signaturePlaceHolder:"Firmare qui"};n.surveyLocalization.locales.it=o,n.surveyLocalization.localeNames.it="italiano"},
1"./src/localization/japanese.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"japaneseSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"前へ",pageNextText:"次へ",completeText:"完了",previewText:"プレビュー",editText:"編集",startSurveyText:"スタート",otherItemText:"その他(説明)",noneItemText:"なし",selectAllItemText:"すべて選択",progressText:"{0}/{1}頁",panelDynamicProgressText:"{1}の{0}を記録する",questionsProgressText:"{0}/{1}の質問に回答しました。",emptySurvey:"この調査に表示できるページや質問はありません",completingSurvey:"調査を完了してくれてありがとうございました",completingSurveyBefore:"当社の記録によると、この調査はすでに完了しています。",loadingSurvey:"調査をダウンロード中",placeholder:"選択",value:"値打ち",requiredError:"質問にお答え下さい",requiredErrorInPanel:"最低でも1つの質問に答えてください。",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:"有効なメールアドレスをご記入下さい",invali
1dExpression:"式は {0}は'true'を返すべきです。",urlRequestError:"リクエストはエラー '{0}' を返しました。{1}",urlGetChoicesError:"リクエストが空のデータを返したか、'path' プロパティが正しくありません。",exceedMaxSize:"ファイルのサイズは{0}を超えてはいけません",otherRequiredError:"その他の値を入力してください。",uploadingFile:"ファイルをアップロード中です。しばらくしてから再度お試し下さい",loadingFile:"読み込み中",chooseFile:"ファイルを選択",noFileChosen:"選択されたファイルはありません",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:"このページに{1}のうち{0}を費やし、{3}のうち{2}を合計で費やしました。",timerLimitPage:"このページで{1}の{0}を使ったことがあります。",timerLimitSurvey:"合計で{1}の{0}を使ったことがあります。",clearCaption:"空白",chooseFileCaption:"ファイルを選択",removeFileCaption:"このファイルを削除",booleanCheckedLabel:"噫",booleanUncheckedLabel:"否",confirmRemoveFile:"このファイルを削除してもよろしいですか?{0}?",confirmRemoveAllFiles:"すべてのファイルを削除してもよろしいですか?",questionTitlePatternText:"質問名"};n.surveyLocalization.locales.ja=o,n.surveyLocalization.localeNames.ja="日本語"},
1"./src/localization/kazakh.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"kazakhStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Артқа",pageNextText:"Келесі",completeText:"Дайын",previewText:"Алдын ала қарау",editText:"Редакциялау",startSurveyText:"Бастау",otherItemText:"Басқа (өтінеміз, жазыңыз)",noneItemText:"Жоқ",selectAllItemText:"Барлығын таңдау",progressText:"{0} ден {1} бет ",panelDynamicProgressText:"{0} ден {1} жазба",questionsProgressText:"{0}/{1} сұрақтарға жауап",emptySurvey:"Бір де бір сұрақ жоқ.",completingSurvey:"Сауалнаманы толтырғаныңыз үшін рахмет!",completingSurveyBefore:"Сіз бұл сауалнаманы өтіп қойдыңыз.",loadingSurvey:"Серверден жүктеу...",placeholder:"Таңдау...",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:"Файлдарды таңдаңыз...",noFileChosen:"Файл таңдалынбады",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} кетірдіңіз ",clearCaption:"Тазалау",chooseFileCaption:"Файл таңдаңыз",removeFileCaption:"Файлды жойыңыз",booleanCheckedLabel:"Иә",booleanUncheckedLabel:"Жоқ",confirmRemoveFile:"Сіз бұл файлды жоятыныңызға сенімдісіз бе: {0}?",confirmRemoveAllFiles:"Сіз барлық файлдарды жоятыныңызға сенімдісіз бе?",questionTitlePatternText:"Сұрақтың атауы"};n.surveyLocalization.locales.kk=o,n.surveyLocalization.localeNames.kk="Kazakh"},
1"./src/localization/korean.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"koreanStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"이전",pageNextText:"다음",completeText:"완료",previewText:"미리보기",editText:"수정",startSurveyText:"시작",otherItemText:"기타 (설명)",noneItemText:"없음",selectAllItemText:"모두 선택",progressText:"페이지 {1} / {0}",indexText:"{0} / {1}",panelDynamicProgressText:"{0} / {1}",questionsProgressText:"{0} / {1} 개의 질문에 답변함",emptySurvey:"설문지에 보여지는 페이지나 질문이 없습니다.",completingSurvey:"설문조사를 완료해 주셔서 감사합니다.",completingSurveyBefore:"기록에 따르면 이미 설문 조사를 마치셨습니다.",loadingSurvey:"설문조사가 로드중입니다...",placeholder:"선택...",ratingOptionsCaption:"등급을 매기려면 누르세요.",value:"값",requiredError:"질문에 답하시오.",requiredErrorInPanel:"하나 이상의 질문에 답하십시오.",requiredInAllRowsError:"모든 행에 있는 질문에 답하십시오.",numericError:"값은 숫자여야 합니다.",minError:"값은 {0}보다 작으면 안됩니다.",maxError:"값은 {0}보다 클 수 없습니다.",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:"파일 선택...",noFileChosen:"선택된 파일이 없습니다.",fileDragAreaPlaceholder:"파일을 여기에 놓거나 아래 버튼을 클릭하여 파일을 불러오세요.",confirmDelete:"기록을 삭제하시겠습니까?",keyDuplicationError:" 이 값은 고유해야합니다.",addColumn:"열 추가",addRow:"행 추가",removeRow:"제거",emptyRowsText:"행이 없습니다.",addPanel:"추가",removePanel:"제거",choices_Item:"항목",matrix_column:"열",matrix_row:"행",multipletext_itemname:"텍스트",savingData:"결과가 서버에 저장 중입니다...",savingDataError:"오류가 발생하여 결과를 저장할 수 없습니다.",savingDataSuccess:"결과가 성공적으로 저장되었습니다.",saveAgainButton:"다시 시도하세요.",timerMin:"분",timerSec:"초",timerSpentAll:"현재 페이지에서 {0}을 소요해 총 {1}이 걸렸습니다.",timerSpentPage:"현재 페이지에서 {0}이 걸렸습니다.",timerSpentSurvey:"총 {0}이 걸렸습니다.",timerLimitAll:"현재 페이지에서 {0}/{1}을 소요해 총 {2}/{3}이 걸렸습니다.",timerLimitPage:"현재 페이지에서 {0}/{1}이 걸렸습니다.",timerLimitSurvey:"총 {0}/{1}이 걸렸습니다.",clearCaption:"지우기",signaturePlaceHolder:"서명하세요.",chooseFileCaption:"파일 선택",removeFileCaption:"파일 제거",booleanCheckedLabel:"예",booleanUncheckedLabel:"아니오",confirmRemoveFile:"{0} 파일을 제거 하시겠습니까?",confirmRemoveAllFiles:"모든 파일을 제거 하시겠습니까?",questionTitlePatternText:"질문 제목",modalCancelButtonText:"취소",modalApplyButtonText:"적용",filterStringPlaceholder:"검색 유형...",noEntriesText:"아직 항목이 없습니다.\n새 항목을 추가하려면 아래 버튼을 클릭하세요.",more:"더보기"};n.surveyLocalization.locales.ko=o,n.surveyLocalization.localeNames.ko="한국어"},
1"./src/localization/latvian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"latvianSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Atpakaļ",pageNextText:"Tālāk",completeText:"Pabeigt",previewText:"Priekšskatījums",editText:"Rediģēt",startSurveyText:"Sākt",otherItemText:"Cits (lūdzu, aprakstiet!)",noneItemText:"Nav",selectAllItemText:"Izvēlēties visus",progressText:"{0}. lapa no {1}",panelDynamicProgressText:"Ierakstīt {0} no {1}",questionsProgressText:"Atbildēts uz {0} / {1} jautājumiem",emptySurvey:"Nav neviena jautājuma.",completingSurvey:"Pateicamies Jums par anketas aizpildīšanu!",completingSurveyBefore:"Mūsu ieraksti liecina, ka Jūs jau esat aizpildījis šo aptauju.",loadingSurvey:"Ielāde no servera...",placeholder:"Izvēlēties...",value:"value",requiredError:"Lūdzu, atbildiet uz jautājumu!",requiredErrorInPanel:"Lūdzu, atbildiet uz vismaz vienu jautājumu.",requiredInAllRowsError:"Lūdzu, atbildiet uz jautājumiem visās rindās.",numericError:"Atbildei ir jābūt skaitlim.",textMinLength:"Lūdzu, ievadiet vismaz {0} simbolus.",textMaxLength:"Lūdzu, ievadiet mazāk nekā {0} rakstzīmes.",textMinMaxLength:"Lūdzu, ievadiet vairāk nekā {0} rakstzīmes un mazāk nekā {1} rakstzīmes.",minRowCountError:"Lūdzu, aizpildiet vismaz {0} rindas.",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 pareizu e-pasta adresi!",invalidExpression:"Izteicienam: {0} jāatgriež “true”.",urlRequestError:"Pieprasījumā tika atgriezta kļūda “{0}”. {1}",urlGetChoicesError:"Pieprasījums atgrieza tukšus datus vai rekvizīts “path” ir nepareizs",exceedMaxSize:"Faila lielums nedrīkst pārsniegt {0}.",otherRequiredError:"Lūdzu, ievadiet datus laukā 'Cits'",uploadingFile:"Jūsu fails tiek augšupielādēts. Lūdzu, uzgaidiet dažas sekundes un mēģiniet vēlreiz.",loadingFile:"Notiek ielāde ...",chooseFile:"Izvēlieties failus ...",fileDragAreaPlaceholder:"Lai pievienotu, ievelciet failu šeit vai arī klikšķiniet uz zemāk redzamās pogas",noFileChosen:"Nav izvēlēts neviens fails",confirmDelete:"Vai vēlaties izdzēst ierakstu?",keyDuplicationError:"Šai vērtībai jābūt unikālai.",addColumn:"Pievienot kolonnu",addRow:"Pievienot rindu",removeRow:"Noņemt",addPanel:"Pievieno jaunu",removePanel:"Noņemt",choices_Item:"vienums",matrix_column:"Sleja",matrix_row:"Rinda",savingData:"Rezultāti tiek saglabāti serverī ...",savingDataError:"Radās kļūda, un mēs nevarējām saglabāt rezultātus.",savingDataSuccess:"Rezultāti tika veiksmīgi saglabāti!",saveAgainButton:"Mēģiniet vēlreiz",timerMin:"min",timerSec:"sek",timerSpentAll:"Šajā lapā esat iztērējis {0} un kopā {1}.",timerSpentPage:"Šajā lapā esat iztērējis {0}.",timerSpentSurvey:"Kopā esat iztērējis {0}.",timerLimitAll:"Šajā lapā esat iztērējis {0} no {1} un kopā {2} no {3}.",timerLimitPage:"Šajā lapā esat iztērējis {0} no {1}.",timerLimitSurvey:"Kopā esat iztērējis {0} no {1}.",clearCaption:"Iztīrīt",chooseFileCaption:"Izvēlēties failu",removeFileCaption:"Noņemiet šo failu",booleanCheckedLabel:"Jā",booleanUncheckedLabel:"Nē",confirmRemoveFile:"Vai tiešām vēlaties noņemt šo failu: {0}?",confirmRemoveAllFiles:"Vai tiešām vēlaties noņemt visus failus?",questionTitlePatternText:"Jautājuma nosaukums",ratingOptionsCaption:"Nospiediet šeit, lai novērtētu...",emptyRowsText:"Nav rindu.",filterStringPlaceholder:"Ierakstiet, lai meklētu...",indexText:"{0} no {1}",minError:"Vērtība nedrīkst būt mazāka par {0}",maxError:"Vērtība nedrīkst būt lielāka par {0}",modalApplyButtonText:"Pielietot",modalCancelButtonText:"Atcelt",multipletext_itemname:"teksts",noEntriesText:"Vēl nav neviena ieraksta.\nNoklikšķiniet uz zemāk esošās pogas, lai pievienotu jaunu ierakstu.",signaturePlaceHolder:"Parakstieties šeit"};n.surveyLocalization.locales.lv=o,n.surveyLocalization.localeNames.lv="latviešu"},
1"./src/localization/lithuanian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"lithuaniaSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Atgal",pageNextText:"Toliau",completeText:"Baigti",previewText:"Peržiūra",editText:"Redaguoti",startSurveyText:"Pradėti",otherItemText:"Kita (įvesti)",noneItemText:"Nėra",selectAllItemText:"Pasirinkti visus",progressText:"Puslapis {0} iš {1}",panelDynamicProgressText:"Įrašyti {0} iš {1}",questionsProgressText:"Atsakė į {0} / {1} klausimus",emptySurvey:"Apklausoje nėra matomo puslapio ar klausimo.",completingSurvey:"Dėkojame už dalyvavimą apklausoje!",completingSurveyBefore:"Mūsų įrašai rodo, kad jau atlikote šią apklausą.",loadingSurvey:"Prašome palaukti...",placeholder:"Pasirinkti...",value:"reikšmė",requiredError:"Būtina atsakyti į šį klausimą.",requiredErrorInPanel:"Būtina atsakyti bent į vieną klausimą.",requiredInAllRowsError:"Prašome atsakyti į klausimus visose eilutėse.",numericError:"Turi būti skaičiai.",textMinLength:"Prašome suvesti bent {0} simbolius.",textMaxLength:"Prašome suvesti mažiau nei {0} simbolių.",textMinMaxLength:"Prašome suvesti daugiau nei {0} ir mažiau nei {1} simbolių.",minRowCountError:"Prašome suvesti ne mažiau nei {0} eilučių.",minSelectError:"Prašome pasirinkti bent {0} variantų.",maxSelectError:"Pasirinkite ne daugiau kaip {0} variantus.",numericMinMax:"'{0}' turi būti lygus arba didesnis nei {1} ir lygus arba mažesnis nei {2}",numericMin:"'{0}' turėtų būti lygus arba didesnis nei {1}",numericMax:"'{0}' turėtų būti lygus ar mažesnis už {1}",invalidEmail:"Prašome įvesti galiojantį elektroninio pašto adresą.",invalidExpression:"Reikšmė: {0} turi grąžinti 'true'.",urlRequestError:"Užklausa grąžino klaidą'{0}'. {1}",urlGetChoicesError:"Užklausa grąžino tuščius duomenis arba 'path' savybė yra neteisinga",exceedMaxSize:"Failo dydis neturi viršyti {0}.",otherRequiredError:"Įveskite kitą reikšmę.",uploadingFile:"Jūsų failas yra keliamas. Palaukite keletą sekundžių ir bandykite dar kartą.",loadingFile:"Prašome palaukti...",chooseFile:"Pasirinkti failą(us)...",noFileChosen:"Nepasirinktas joks failas",confirmDelete:"Ar norite ištrinti įrašą?",keyDuplicationError:"Ši reikšmė turėtų būti unikali.",addColumn:"Pridėti stulpelį",addRow:"Pridėti eilutę",removeRow:"Ištrinti",addPanel:"Pridėti naują",removePanel:"Ištrinti",choices_Item:"elementas",matrix_column:"Stulpelis",matrix_row:"Eilutė",savingData:"Rezultatai saugomi serveryje...",savingDataError:"Įvyko klaida ir mes negalėjome išsaugoti rezultatų.",savingDataSuccess:"Rezultatai buvo išsaugoti sėkmingai!",saveAgainButton:"Bandyti dar kartą",timerMin:"min",timerSec:"sek",timerSpentAll:"Praleidote {0} šiame puslapyje ir {1} iš viso.",timerSpentPage:"Praleidote {0} šiame puslapyje.",timerSpentSurvey:"Praleidote {0} iš viso.",timerLimitAll:"Praleidote {0} iš {1} šiame puslapyje ir {2} iš {3} iš viso.",timerLimitPage:"Praleidote {0} iš {1} šiame puslapyje.",timerLimitSurvey:"Praleidote {0} iš {1} iš viso.",clearCaption:"Valyti",chooseFileCaption:"Pasirinkti failą",removeFileCaption:"Ištrinti šį failą",booleanCheckedLabel:"Taip",booleanUncheckedLabel:"Ne",confirmRemoveFile:"Ar tikrai norite pašalinti šį failą: {0}?",confirmRemoveAllFiles:"Ar tikrai norite pašalinti visus failus?",questionTitlePatternText:"Klausimo pavadinimas"};n.surveyLocalization.locales.lt=o,n.surveyLocalization.localeNames.lt="lietuvių"},
1"./src/localization/macedonian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"macedonianSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Претходна",pageNextText:"Следно",completeText:"Заврши",previewText:"Преглед",editText:"Уредување",startSurveyText:"Започнете",otherItemText:"Друго (опиши)",noneItemText:"Ништо",selectAllItemText:"Селектирај се",progressText:"Страница {0} од {1}",panelDynamicProgressText:"Сними {0} од {1}",questionsProgressText:"Одговорени на {0} / {1} прашања",emptySurvey:"Нема видлива страница или прашање во истражувањето.",completingSurvey:"Ви благодариме што го завршивте истражувањето!",completingSurveyBefore:"Нашите записи покажуваат дека веќе сте го завршиле ова истражување.",loadingSurvey:"Анкетата се вчитува ...",placeholder:"Изберете ...",value:"вредност",requiredError:"Ве молам, одговорете на прашањето.",requiredErrorInPanel:"Ве молам, одговорете барем на едно прашање.",requiredInAllRowsError:"Ве молиме, одговорете на прашања во сите редови.",numericError:"Вредноста треба да биде нумеричка.",minError:"Вредноста не треба да биде помала од {0}",maxError:"Вредноста не треба да биде поголема од {0}",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:"Изберете датотека (и) ...",fileDragAreaPlaceholder:"Пуштете датотека овде или кликнете на копчето подолу за да ја вчитате датотеката.",noFileChosen:"Не се избрани датотеки",confirmDelete:"Дали сакате да го избришете записот?",keyDuplicationError:"Оваа вредност треба да биде единствена.",addColumn:"Додај колона",addRow:"Додади ред",removeRow:"Отстрани",emptyRowsText:"Нема редови.",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}.",clearCaption:"Да расчисти",chooseFileCaption:"Изберете датотека",removeFileCaption:"Отстранете ја оваа датотека",booleanCheckedLabel:"Да",booleanUncheckedLabel:"Не",confirmRemoveFile:"Дали сте сигурни дека сакате да ја отстраните оваа датотека: {0}?",confirmRemoveAllFiles:"Дали сте сигурни дека сакате да ги отстраните сите датотеки?",questionTitlePatternText:"Наслов на прашањето",modalCancelButtonText:"Откажи",modalApplyButtonText:"Аплицирај"};n.surveyLocalization.locales.mk=o,n.surveyLocalization.localeNames.mk="Македонски"},
1"./src/localization/malay.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"malaySurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Sebelumnya",pageNextText:"Seterusnya",completeText:"Selesai",previewText:"Pratonton",editText:"Edit",startSurveyText:"Mula",otherItemText:"Lain (terangkan)",noneItemText:"Tiada",selectAllItemText:"Pilih Semua",progressText:"Halaman {0} daripada {1}",panelDynamicProgressText:"Rekod {0} daripada {1}",questionsProgressText:"{0}/{1} soalan telah dijawab",emptySurvey:"Tiada halaman atau soalan boleh dilihat dalam tinjauan.",completingSurvey:"Terima kasih kerana melengkapkan tinjauan!",completingSurveyBefore:"Rekod kami menunjukkan yang anda telah melengkapkan tinjauan ini.",loadingSurvey:"Memuatkan Tinjauan...",placeholder:"Pilih...",value:"nilai",requiredError:"Respons diperlukan.",requiredErrorInPanel:"Respons diperlukan: jawab sekurang-kurangnya satu soalan.",requiredInAllRowsError:"Respons diperlukan: jawab soalan dalam semua baris.",numericError:"Nilai mestilah numerik.",minError:"Nilai tidak boleh kurang daripada {0}",maxError:"Nilai tidak boleh lebih besar daripada {0}",textMinLength:"Sila masukkan sekurang-kurangnya {0} aksara.",textMaxLength:"Sila masukkan tidak lebih daripada {0} aksara.",textMinMaxLength:"Sila masukkan sekurang-kurangnya {0} dan tidak lebih daripada {1} aksara.",minRowCountError:"Sila isikan sekurang-kurangnya {0} baris.",minSelectError:"Sila pilih sekurang-kurangnya {0} varian.",maxSelectError:"Sila pilih tidak lebih daripada {0} varian.",numericMinMax:"'{0}' mestilah sekurang-kurangnya {1} dan paling banyak {2}",numericMin:"'{0}' mestilah sekurang-kurangnya {1}",numericMax:"'{0}' mestilah paling banyak {1}",invalidEmail:"Sila masukkan alamat e-mel yang sah.",invalidExpression:"Ekspresi: {0} hendaklah mengembalikan nilai 'benar'.",urlRequestError:"Permintaan mengembalikan ralat '{0}'. {1}",urlGetChoicesError:"Permintaan mengembalikan data kosong atau ciri 'laluan' salah",exceedMaxSize:"Saiz fail hendaklah tidak melebihi {0}.",otherRequiredError:"Respons diperlukan: masukkan nilai lain.",uploadingFile:"Fail anda sedang dimuat naik. Sila tunggu beberapa saat dan cuba lagi.",loadingFile:"Memuat...",chooseFile:"Pilih fail...",noFileChosen:"Tiada fail dipilih",fileDragAreaPlaceholder:"Letakkan fail di sini atau klik butang di bawah untuk memuatkan fail.",confirmDelete:"Adakah anda ingin memadamkan rekod?",keyDuplicationError:"Nilai ini hendaklah unik.",addColumn:"Tambahkan lajur",addRow:"Tambahkan baris",removeRow:"Alih keluar",emptyRowsText:"Tiada baris.",addPanel:"Tambah baharu",removePanel:"Alih keluar",choices_Item:"item",matrix_column:"Lajur",matrix_row:"Baris",multipletext_itemname:"teks",savingData:"Keputusan sedang disimpan pada pelayan...",savingDataError:"Ralat berlaku dan kami tidak dapat menyimpan keputusan.",savingDataSuccess:"Keputusan berjaya disimpan!",saveAgainButton:"Cuba lagi",timerMin:"min",timerSec:"saat",timerSpentAll:"Anda telah meluangkan {0} pada halaman ini dan {1} secara keseluruhan.",timerSpentPage:"Anda telah meluangkan {0} pada halaman ini.",timerSpentSurvey:"Anda telah meluangkan {0} secara keseluruhan.",timerLimitAll:"Anda telah meluangkan {0} daripada {1} pada halaman ini dan {2} daripada {3} secara keseluruhan.",timerLimitPage:"Anda telah meluangkan {0} daripada {1} pada halaman ini.",timerLimitSurvey:"Anda telah meluangkan {0} daripada {1} secara keseluruhan.",clearCaption:"Kosongkan",signaturePlaceHolder:"Tandatangan di sini",chooseFileCaption:"Pilih fail",removeFileCaption:"Alih keluar fail ini",booleanCheckedLabel:"Ya",booleanUncheckedLabel:"Tidak",confirmRemoveFile:"Anda pasti ingin mengalih keluar fail ini: {0}?",confirmRemoveAllFiles:"Anda pasti ingin mengalih keluar semua fail?",questionTitlePatternText:"Tajuk Soalan",modalCancelButtonText:"Batal",modalApplyButtonText:"Guna",filterStringPlaceholder:"Taip untuk membuat carian...",noEntriesText:"Belum ada entri.\nKlik butang di bawah untuk menambahkan entri."};n.surveyLocalization.locales.ms=o,n.surveyLocalization.localeNames.ms="melayu"},
1"./src/localization/nl-BE.ts":function(e,t,r){"use strict";r.r(t);var n=r("./src/entries/core.ts"),o=r("./src/localization/dutch.ts");n.surveyLocalization.locales["nl-BE"]=o.dutchSurveyStrings,n.surveyLocalization.localeNames["nl-BE"]="vlaams"},
1"./src/localization/norwegian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"norwegianSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Forrige",pageNextText:"Neste",completeText:"Fullf\xf8r",previewText:"Forh\xe5ndsvisning",editText:"Redigere",startSurveyText:"Start",otherItemText:"Annet (beskriv)",noneItemText:"Ingen",selectAllItemText:"Velg alle",progressText:"Side {0} av {1}",panelDynamicProgressText:"Ta opp {0} av {1}",questionsProgressText:"Besvarte {0} / {1} sp\xf8rsm\xe5l",emptySurvey:"Det er ingen synlig side eller sp\xf8rsm\xe5l i unders\xf8kelsen.",completingSurvey:"Takk for at du fullf\xf8rte unders\xf8kelsen!",completingSurveyBefore:"V\xe5re data viser at du allerede har gjennomf\xf8rt denne unders\xf8kelsen.",loadingSurvey:"Unders\xf8kelsen laster...",placeholder:"Velg...",value:"verdi",requiredError:"Vennligst svar p\xe5 sp\xf8rsm\xe5let.",requiredErrorInPanel:"Vennligst svar p\xe5 minst ett sp\xf8rsm\xe5l.",requiredInAllRowsError:"Vennligst svar p\xe5 sp\xf8rsm\xe5l i alle rader.",numericError:"Verdien skal v\xe6re 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\xf8r v\xe6re lik eller mer enn {1} og lik eller mindre enn {2}",numericMin:"'{0}' b\xf8r v\xe6re lik eller mer enn {1}",numericMax:"'{0}' b\xf8r v\xe6re lik eller mindre enn {1}",invalidEmail:"Vennligst skriv inn en gyldig e-post adresse.",invalidExpression:"Uttrykket: {0} skal returnere 'sant'.",urlRequestError:"Foresp\xf8rselen returnerte feilen '{0}'. {1}",urlGetChoicesError:"Foresp\xf8rselen returnerte tomme data, eller 'sti' -egenskapen er feil",exceedMaxSize:"Filst\xf8rrelsen b\xf8r ikke overstige {0}.",otherRequiredError:"Vennligst skriv inn den andre verdien.",uploadingFile:"Filen din lastes opp. Vennligst vent noen sekunder og pr\xf8v igjen.",loadingFile:"Laster inn ...",chooseFile:"Velg fil (er) ...",noFileChosen:"Ingen fil valgt",confirmDelete:"\xd8nsker du \xe5 slette posten?",keyDuplicationError:"Denne verdien skal v\xe6re unik.",addColumn:"Legg til kolonne",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\xe5 serveren ...",savingDataError:"Det oppsto en feil, og vi kunne ikke lagre resultatene.",savingDataSuccess:"Resultatene ble lagret!",saveAgainButton:"Pr\xf8v igjen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har tilbrakt {0} p\xe5 denne siden og {1} totalt.",timerSpentPage:"Du har tilbrakt {0} p\xe5 denne siden.",timerSpentSurvey:"Du har tilbrakt {0} totalt.",timerLimitAll:"Du har tilbrakt {0} av {1} p\xe5 denne siden og totalt {2} av {3}.",timerLimitPage:"Du har tilbrakt {0} av {1} p\xe5 denne siden.",timerLimitSurvey:"Du har tilbrakt {0} av {1} totalt.",clearCaption:"Klar",chooseFileCaption:"Velg Fil",removeFileCaption:"Fjern denne filen",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Nei",confirmRemoveFile:"Er du sikker p\xe5 at du vil fjerne denne filen: {0}?",confirmRemoveAllFiles:"Er du sikker p\xe5 at du vil fjerne alle filene?",questionTitlePatternText:"Sp\xf8rsm\xe5lstittel"};n.surveyLocalization.locales.no=o,n.surveyLocalization.localeNames.no="norsk"},
1"./src/localization/persian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"persianSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"قبلی",pageNextText:"بعدی",completeText:"تکمیل",previewText:"پیش نمایش",editText:"ویرایش",startSurveyText:"شروع",otherItemText:"دیگر(توضیح)",noneItemText:"هیچ",selectAllItemText:"انتخاب همه",progressText:"صفحه {0} از {1}",panelDynamicProgressText:"مورد {0} از {1}",questionsProgressText:"تعداد پاسخ {0}/{1} سوال",emptySurvey:"صفحه ای یا گزینه ای برای این پرسشنامه موجود نیست.",completingSurvey:"از شما بابت تکمیل این پرسشنامه متشکریم",completingSurveyBefore:"به نظر می رسد هم هم اکنون پرسشنامه را تکمیل کرده اید.",loadingSurvey:"درحال ایجاد پرسشنامه",placeholder:"انتخاب کنید...",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:"درخواست مسیری خالی بازگشت داده یا مسیر درست تنظیم نشده",exceedMaxSize:"بیشترین حجم مجاز فایل: {0}",otherRequiredError:"مقدار 'دیگر' را وارد کنید",uploadingFile:"فایل در حال آیلود است. لطفا صبر کنید.",loadingFile:"بارگیری...",chooseFile:"انتخاب فایل(ها)...",noFileChosen:"هیچ فایلی انتخاب نشده",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} را در مجموع سپری کرده اید.",clearCaption:"خالی کردن",chooseFileCaption:"انتخاب فایل",removeFileCaption:"حذف این فایل",booleanCheckedLabel:"بله",booleanUncheckedLabel:"خیر",confirmRemoveFile:"آیا میخواهید این فایل را پاک کنید: {0}?",confirmRemoveAllFiles:"آیا میخواهید تمام فایل ها را پاک کنید?",questionTitlePatternText:"عنوان سوال"};n.surveyLocalization.locales.fa=o,n.surveyLocalization.localeNames.fa="فارْسِى"},
1"./src/localization/polish.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"polishSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Wstecz",pageNextText:"Dalej",completeText:"Gotowe",previewText:"Premiera",editText:"Edycja",startSurveyText:"Start",otherItemText:"Inna odpowiedź (wpisz)",noneItemText:"Brak",selectAllItemText:"Wybierz wszystkie",progressText:"Strona {0} z {1}",panelDynamicProgressText:"Zapis {0} z {1}",questionsProgressText:"Odpowiedzi na {0}/{1} pytania",emptySurvey:"Nie ma widocznych pytań.",completingSurvey:"Dziękujemy za wypełnienie ankiety!",completingSurveyBefore:"Z naszych zapis\xf3w wynika, że wypełniłeś już tę ankietę.",loadingSurvey:"Trwa wczytywanie ankiety...",placeholder:"Wybierz...",value:"Wartość",requiredError:"Proszę odpowiedzieć na to pytanie.",requiredErrorInPanel:"Proszę odpowiedzieć na co najmniej jedno pytanie.",requiredInAllRowsError:"Proszę odpowiedzieć na wszystkie pytania.",numericError:"W tym polu można wpisać tylko liczby.",textMinLength:"Proszę wpisać co najmniej {0} znak\xf3w.",textMaxLength:"Proszę wpisać mniej niż {0} znak\xf3w.",textMinMaxLength:"Proszę wpisać więcej niż {0} i mniej niż {1} znak\xf3w.",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\xf3wna {1} oraz mniejsza lub r\xf3wna {2}",numericMin:"Odpowiedź '{0}' powinna być większa lub r\xf3wna {1}",numericMax:"Odpowiedź '{0}' powinna być mniejsza lub r\xf3wna {1}",invalidEmail:"Proszę podać prawidłowy adres email.",invalidExpression:"Wyrażenie: {0} powinno wracać 'prawdziwe'.",urlRequestError:"Żądanie zwr\xf3ciło błąd '{0}'. {1}",urlGetChoicesError:"Żądanie nie zwr\xf3cił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\xf3bować ponownie za kilka sekund.",loadingFile:"Ładowanie...",chooseFile:"Wybierz plik(i)...",fileDragAreaPlaceholder:"Upuść plik tutaj lub kliknij przycisk poniżej, aby załadować plik.",noFileChosen:"Nie wybrano żadnego pliku",confirmDelete:"Chcesz skasować nagranie?",keyDuplicationError:"Ta wartość powinna być wyjątkowa.",addColumn:"Dodaj kolumnę",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\xf3buj 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 sumie {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}.",clearCaption:"Jasne",chooseFileCaption:"Wybierz plik",removeFileCaption:"Usuń ten plik",booleanCheckedLabel:"Tak",booleanUncheckedLabel:"Nie",confirmRemoveFile:"Jesteś pewien, że chcesz usunąć ten plik: {0}?",confirmRemoveAllFiles:"Jesteś pewien, że chcesz usunąć wszystkie pliki?",questionTitlePatternText:"Tytuł pytania",ratingOptionsCaption:"Kliknij tutaj, aby ocenić...",emptyRowsText:"Nie ma rzęd\xf3w.",filterStringPlaceholder:"Wpisz aby wyszukać...",indexText:"{0} od {1}",minError:"Wartość nie powinna być mniejsza niż {0}",maxError:"Wartość nie powinna być większa niż {0}",modalApplyButtonText:"Zastosować",modalCancelButtonText:"Anulować",multipletext_itemname:"tekst",noEntriesText:"Nie ma jeszcze wpis\xf3w.\nKliknij przycisk poniżej, aby dodać nowy wpis.",signaturePlaceHolder:"Podpisz tutaj"};n.surveyLocalization.locales.pl=o,n.surveyLocalization.localeNames.pl="polski"},
1"./src/localization/portuguese-br.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"portugueseBrSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={emptySurvey:"N\xe3o h\xe1 p\xe1gina vis\xedvel ou pergunta na pesquisa.",completingSurvey:"Obrigado por finalizar a pesquisa!",completingSurveyBefore:"Nossos registros mostram que voc\xea j\xe1 finalizou a pesquisa.",loadingSurvey:"A pesquisa est\xe1 carregando...",requiredError:"Por favor, responda a pergunta.",requiredErrorInPanel:"Por favor, responda pelo menos uma pergunta.",requiredInAllRowsError:"Por favor, responda as perguntas em todas as linhas.",maxSelectError:"Por favor, selecione n\xe3o mais do que {0} op\xe7\xf5es.",invalidEmail:"Por favor, informe um e-mail v\xe1lido.",urlRequestError:"A requisi\xe7\xe3o retornou o erro '{0}'. {1}",urlGetChoicesError:"A requisi\xe7\xe3o n\xe3o retornou dados ou o 'caminho' da requisi\xe7\xe3o n\xe3o est\xe1 correto",otherRequiredError:"Por favor, informe o outro valor.",uploadingFile:"Seu arquivo est\xe1 sendo carregado. Por favor, aguarde alguns segundos e tente novamente.",loadingFile:"Carregando...",noFileChosen:"Nenhum arquivo escolhido",confirmDelete:"Tem certeza que deseja deletar?",keyDuplicationError:"Esse valor deve ser \xfanico.",savingData:"Os resultados esto sendo salvos no servidor...",savingDataError:"Ocorreu um erro e n\xe3o foi poss\xedvel salvar os resultados.",savingDataSuccess:"Os resultados foram salvos com sucesso!",chooseFileCaption:"Escolher arquivo",removeFileCaption:"Remover este arquivo",confirmRemoveFile:"Tem certeza que deseja remover este arquivo: {0}?",confirmRemoveAllFiles:"Tem certeza que deseja remover todos os arquivos?"};n.surveyLocalization.locales["pt-br"]=o,n.surveyLocalization.localeNames["pt-br"]="portugu\xeas brasileiro"},
1"./src/localization/portuguese.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"portugueseSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Anterior",pageNextText:"Pr\xf3ximo",completeText:"Finalizar",previewText:"Pr\xe9-visualiza\xe7\xe3o",editText:"Editar",startSurveyText:"Come\xe7ar",otherItemText:"Outros (descrever)",noneItemText:"Nenhum",selectAllItemText:"Selecionar Todos",progressText:"P\xe1gina {0} de {1}",panelDynamicProgressText:"Registo {0} de {1}",questionsProgressText:"Respostas {0}/{1} perguntas",emptySurvey:"N\xe3o h\xe1 p\xe1gina vis\xedvel ou pergunta no question\xe1rio.",completingSurvey:"Obrigado por finalizar o question\xe1rio!",completingSurveyBefore:"Os nossos registos mostram que j\xe1 finalizou o question\xe1rio.",loadingSurvey:"O question\xe1rio est\xe1 a carregar...",placeholder:"Selecione...",value:"valor",requiredError:"Por favor, responda \xe0 pergunta.",requiredErrorInPanel:"Por favor, responda pelo menos a uma pergunta.",requiredInAllRowsError:"Por favor, responda \xe0s perguntas em todas as linhas.",numericError:"O valor deve ser num\xe9rico.",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\xe7\xf5es.",maxSelectError:"Por favor, selecione no m\xe1ximo {0} op\xe7\xf5es.",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, insira um e-mail v\xe1lido.",invalidExpression:"A express\xe3o: {0} deve retornar 'verdadeiro'.",urlRequestError:"O pedido retornou o erro '{0}'. {1}",urlGetChoicesError:"O pedido n\xe3o retornou dados ou o 'caminho' do pedido n\xe3o est\xe1 correto",exceedMaxSize:"O tamanho do arquivo n\xe3o deve exceder {0}.",otherRequiredError:"Por favor, insira o outro valor.",uploadingFile:"O seu ficheiro est\xe1 a carregar. Por favor, aguarde alguns segundos e tente novamente.",loadingFile:"A carregar...",chooseFile:"Selecione o(s) arquivo(s)...",noFileChosen:"Nenhum ficheiro escolhido",confirmDelete:"Tem a certeza que deseja apagar?",keyDuplicationError:"Este valor deve ser \xfanico.",addColumn:"Adicionar coluna",addRow:"Adicionar linha",removeRow:"Remover linha",addPanel:"Adicionar novo",removePanel:"Remover",choices_Item:"item",matrix_column:"Coluna",matrix_row:"Linha",savingData:"Os resultados est\xe3o a ser guardados no servidor...",savingDataError:"Ocorreu um erro e n\xe3o foi poss\xedvel guardar os resultados.",savingDataSuccess:"Os resultados foram guardados com sucesso!",saveAgainButton:"Tente novamente",timerMin:"min",timerSec:"seg",timerSpentAll:"Voc\xea gastou {0} nesta p\xe1gina e {1} no total.",timerSpentPage:"Voc\xea gastou {0} nesta p\xe1gina.",timerSpentSurvey:"Voc\xea gastou {0} no total.",timerLimitAll:"Voc\xea gastou {0} de {1} nesta p\xe1gina e {2} de {3} no total.",timerLimitPage:"Voc\xea gastou {0} de {1} nesta p\xe1gina.",timerLimitSurvey:"Voc\xea gastou {0} de {1} no total.",clearCaption:"Limpar",chooseFileCaption:"Escolher ficheiro",removeFileCaption:"Remover este ficheiro",booleanCheckedLabel:"Sim",booleanUncheckedLabel:"N\xe3o",confirmRemoveFile:"Tem a certeza que deseja remover este ficheiro: {0}?",confirmRemoveAllFiles:"Tem a certeza que deseja remover todos os ficheiros?",questionTitlePatternText:"T\xedtulo da quest\xe3o"};n.surveyLocalization.locales.pt=o,n.surveyLocalization.localeNames.pt="portugu\xeas"},
1"./src/localization/romanian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"romanianSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Precedent",pageNextText:"Următor",completeText:"Finalizare",previewText:"previzualizare",editText:"Editați",startSurveyText:"start",otherItemText:"Altul(precizaţi)",noneItemText:"Nici unul",selectAllItemText:"Selectează tot",progressText:"Pagina {0} din {1}",panelDynamicProgressText:"\xcenregistrare {0} din {1}",questionsProgressText:"Răspunsuri la {0} / {1} \xeentrebări",emptySurvey:"Nu sunt \xeentrebări pentru acest chestionar",completingSurvey:"Vă mulţumim pentru timpul acordat!",completingSurveyBefore:"Din \xeenregistrările noastre reiese că ați completat deja acest chestionar.",loadingSurvey:"Chestionarul se \xeencarcă...",placeholder:"Alegeţi...",value:"valoare",requiredError:"Răspunsul la această \xeentrebare este obligatoriu.",requiredErrorInPanel:"Vă rugăm să răspundeți la cel puțin o \xeentrebare.",requiredInAllRowsError:"Toate răspunsurile sunt obligatorii",numericError:"Răspunsul trebuie să fie numeric.",textMinLength:"Trebuie să introduceți minim {0} caractere.",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\xe2nduri.",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} ş\xee 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ă.",invalidExpression:"Expresia: {0} ar trebui să returneze „adevărat”.",urlRequestError:"Request-ul a returnat eroarea '{0}'. {1}",urlGetChoicesError:"Request-ul nu a returnat date sau proprietatea 'path' este incorectă",exceedMaxSize:"Dimensiunea fişierului nu trebuie să depăşească {0}.",otherRequiredError:"Trebuie să completați c\xe2mpul 'Altul'.",uploadingFile:"Fișierul dumneavoastră este \xeen curs de \xeencărcare. Vă rugăm așteptați c\xe2teva secunde și reveniți apoi.",loadingFile:"Se \xeencarcă...",chooseFile:"Alege fisierele...",noFileChosen:"Niciun fișier ales",confirmDelete:"Sunteți sigur că doriți să ștergeți \xeenregistrarea?",keyDuplicationError:"Valoarea trebuie să fie unică.",addColumn:"Adăugați coloană",addRow:"Adăugare r\xe2nd",removeRow:"Ștergere",addPanel:"Adăugare",removePanel:"Ștergere",choices_Item:"opțiune",matrix_column:"Coloană",matrix_row:"R\xe2nd",savingData:"Rezultatele sunt \xeen curs de salvare...",savingDataError:"A intervenit o eroare, rezultatele nu au putut fi salvate.",savingDataSuccess:"Rezultatele au fost salvate cu succes!",saveAgainButton:"\xcencercați din nou",timerMin:"min",timerSec:"sec",timerSpentAll:"Ați petrecut {0} pe această pagină și {1} \xeen total.",timerSpentPage:"Ați petrecut {0} pe această pagină.",timerSpentSurvey:"Ați petrecut {0} \xeen total.",timerLimitAll:"Ați petrecut {0} din {1} pe această pagină și {2} din {3} \xeen total.",timerLimitPage:"Ați petrecut {0} din {1} pe această pagină.",timerLimitSurvey:"Ați petrecut {0} din {1} \xeen total.",clearCaption:"clar",chooseFileCaption:"Alege fișierul",removeFileCaption:"Eliminați acest fișier",booleanCheckedLabel:"da",booleanUncheckedLabel:"Nu",confirmRemoveFile:"Sigur doriți să eliminați acest fișier: {0}?",confirmRemoveAllFiles:"Sigur doriți să eliminați toate fișierele?",questionTitlePatternText:"Titlul intrebarii"};n.surveyLocalization.locales.ro=o,n.surveyLocalization.localeNames.ro="rom\xe2nă"},
1"./src/localization/russian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"russianSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Назад",pageNextText:"Далее",completeText:"Готово",previewText:"Предварительный просмотр",editText:"Редактирование",startSurveyText:"Начать",otherItemText:"Другое (пожалуйста, опишите)",noneItemText:"Нет",selectAllItemText:"Выбрать всё",progressText:"Страница {0} из {1}",panelDynamicProgressText:"Запись {0} из {1}",questionsProgressText:"Oтвечено на {0}/{1} вопросов",emptySurvey:"Нет ни одного вопроса.",completingSurvey:"Благодарим Вас за заполнение анкеты!",completingSurveyBefore:"Вы уже проходили этот опрос.",loadingSurvey:"Загрузка с сервера...",placeholder:"Выбрать...",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:"Выберите файл(ы)...",fileDragAreaPlaceholder:"Перетащите файл сюда или нажмите кнопку ниже, чтобы загрузить файл.",noFileChosen:"Файл не выбран",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} для всего теста.",clearCaption:"Очистить",chooseFileCaption:"Выберите файл",removeFileCaption:"Удалить файл",booleanCheckedLabel:"Да",booleanUncheckedLabel:"Нет",confirmRemoveFile:"Вы уверены, что хотите удалить этот файл: {0}?",confirmRemoveAllFiles:"Вы уверены, что хотите удалить все файлы?",questionTitlePatternText:"Название вопроса",ratingOptionsCaption:"Нажмите здесь, чтобы оценить...",emptyRowsText:"Рядов нет.",filterStringPlaceholder:"Введите для поиска...",indexText:"{0} из {1}",minError:"Значение не должно быть меньше {0}.",maxError:"Значение не должно превышать {0}.",modalApplyButtonText:"Применять",modalCancelButtonText:"Отменить",multipletext_itemname:"текст",noEntriesText:"Пока нет записей.\nНажмите кнопку ниже, чтобы добавить новую запись.",signaturePlaceHolder:"Подпишите здесь"};n.surveyLocalization.locales.ru=o,n.surveyLocalization.localeNames.ru="русский"},
1"./src/localization/serbian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"serbianStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Nazad",pageNextText:"Dalje",completeText:"Završi",previewText:"Pregledaj",editText:"Izmeni",startSurveyText:"Započni",otherItemText:"Drugo (upiši)",noneItemText:"Ništa",selectAllItemText:"Izaberi sve",progressText:"Stranica {0} od {1}",panelDynamicProgressText:"Upis {0} od {1}",questionsProgressText:"Odgovoreno na {0}/{1} pitanja",emptySurvey:"Nema vidljivih stranica ili pitanja u anketi.",completingSurvey:"Hvala na popunjavanju ankete!",completingSurveyBefore:"Prema našim podacima, već ste popunili ovu anketu.",loadingSurvey:"Učitavam anketu...",placeholder:"Izaberi...",value:"vrednost",requiredError:"Molimo odgovorite na ovo pitanje.",requiredErrorInPanel:"Molimo odgovorite na bar jedno pitanje.",requiredInAllRowsError:"Molimo odgovorite na pitanja u svim redovima.",numericError:"Vrednost bi trebalo da bude numerička.",minError:"Vrednost ne bi trebalo da bude manja od {0}",maxError:"Vrednost ne bi trebalo da bude veća od {0}",textMinLength:"Molimo unesite bar {0} znak(ov)a.",textMaxLength:"Molimo unesite najviše {0} znak(ov)a.",textMinMaxLength:"Molimo unesite najmanje {0} i ne više od {1} znak(ov)a.",minRowCountError:"Molimo popunite najmanje {0} red(ova).",minSelectError:"Molimo izaberite najmanje {0} opcija/e.",maxSelectError:"Molimo izaberite najviše {0} opcija/e.",numericMinMax:"'{0}' bi trebalo da bude najmanje {1} i najviše {2}",numericMin:"'{0}' bi trebalo da bude najmanje {1}",numericMax:"'{0}' bi trebalo da bude najviše {1}",invalidEmail:"Molimo unesite ispravnu e-mail adresu.",invalidExpression:"Izraz: {0} bi trebalo da bude tačan.",urlRequestError:"Zahtev je naišao na grešku '{0}'. {1}",urlGetChoicesError:"Zahtev nije pronašao podatke, ili je putanja netačna",exceedMaxSize:"Veličina fajla ne bi trebalo da prelazi {0}.",otherRequiredError:"Molimo unesite drugu vrednost.",uploadingFile:"Fajl se šalje. Molimo sačekajte neko vreme i pokušajte ponovo.",loadingFile:"Učitavanje...",chooseFile:"Izaberite fajlove...",noFileChosen:"Nije izabran nijedan fajl",confirmDelete:"Da li želite da izbrišete unos?",keyDuplicationError:"Ova vrednost treba da bude jedinstvena.",addColumn:"Dodaj kolonu",addRow:"Dodaj red",removeRow:"Ukloni",emptyRowsText:"Nema redova.",addPanel:"Dodaj novo",removePanel:"Ukloni",choices_Item:"stavka",matrix_column:"Kolona",matrix_row:"Red",multipletext_itemname:"tekst",savingData:"U toku je čuvanje podataka na serveru...",savingDataError:"Došlo je do greške i rezultati nisu sačuvani.",savingDataSuccess:"Rezultati su uspešno sačuvani!",saveAgainButton:"Pokušajte ponovo",timerMin:"min",timerSec:"sek",timerSpentAll:"Proveli ste {0} na ovoj stranici i {1} ukupno.",timerSpentPage:"Proveli ste {0} na ovoj stranici.",timerSpentSurvey:"Proveli ste {0} ukupno.",timerLimitAll:"Proveli ste {0} od {1} na ovoj stranici i {2} od {3} ukupno.",timerLimitPage:"Proveli ste {0} od {1} na ovoj stranici.",timerLimitSurvey:"Proveli ste {0} od {1} ukupno.",clearCaption:"Poništi",chooseFileCaption:"Izaberi fajl",removeFileCaption:"Ukloni ovaj fajl",booleanCheckedLabel:"Da",booleanUncheckedLabel:"Ne",confirmRemoveFile:"Da li ste sigurni da želite da uklonite ovaj fajl: {0}?",confirmRemoveAllFiles:"Da li ste sigurni da želite da uklonite sve fajlove?",questionTitlePatternText:"Naslov pitanja",modalCancelButtonText:"Otkaži",modalApplyButtonText:"Primeni"};n.surveyLocalization.locales.rs=o,n.surveyLocalization.localeNames.rs="Srpski"},
1"./src/localization/simplified-chinese.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"simplifiedChineseSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"上一页",pageNextText:"下一页",completeText:"提交问卷",previewText:"预览",editText:"编辑",startSurveyText:"开始问卷",otherItemText:"填写其他答案",noneItemText:"无",selectAllItemText:"选择全部",progressText:"第 {0} 页, 共 {1} 页",panelDynamicProgressText:"{0} of {1}",questionsProgressText:"第 {0}/{1} 题",emptySurvey:"问卷中没有问题或页面",completingSurvey:"感谢您的参与!",completingSurveyBefore:"你已完成问卷.",loadingSurvey:"问卷正在加载中...",placeholder:"请选择...",value:"值",requiredError:"请填写此问题",requiredErrorInPanel:"至少回答一题.",requiredInAllRowsError:"请填写所有行中问题",numericError:"答案必须是个数字",minError:"该值不能小于 {0}",maxError:"该值不能大于 {0}",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 地址",invalidExpression:"公式: {0} 无效.",urlRequestError:"载入选项时发生错误 '{0}': {1}",urlGetChoicesError:"未能载入有效的选项或请求参数路径有误",exceedMaxSize:"文件大小不能超过 {0}",otherRequiredError:"请完成其他问题",uploadingFile:"文件上传中... 请耐心等待几秒后重试",loadingFile:"加载...",chooseFile:"选择文件...",noFileChosen:"未选择文件",confirmDelete:"删除记录?",keyDuplicationError:"主键不能重复",addColumn:"添加列",addRow:"添加行",removeRow:"删除答案",emptyRowsText:"无内容",addPanel:"新添",removePanel:"删除",choices_Item:"选项",matrix_column:"列",matrix_row:"行",multipletext_itemname:"文本",savingData:"正在将结果保存到服务器...",savingDataError:"在保存结果过程中发生了错误,结果未能保存",savingDataSuccess:"结果保存成功!",saveAgainButton:"请重试",timerMin:"分",timerSec:"秒",timerSpentAll:"本页用时 {0} 总计用时{1} .",timerSpentPage:"本页用时{0} .",timerSpentSurvey:"总计用时 {0} .",timerLimitAll:"本页用时 {0} 共 {1}, 总计用时 {2} 共 {3} .",timerLimitPage:"本页用时 {0} 共 {1} .",timerLimitSurvey:"总计用时 {0} 共 {1}.",clearCaption:"清除",chooseFileCaption:"选择文件",removeFileCaption:"移除文件",booleanCheckedLabel:"是",booleanUncheckedLabel:"否",confirmRemoveFile:"删除文件: {0}?",confirmRemoveAllFiles:"删除所有文件?",questionTitlePatternText:"标题",modalCancelButtonText:"取消",modalApplyButtonText:"确定"};n.surveyLocalization.locales["zh-cn"]=o,n.surveyLocalization.localeNames["zh-cn"]="简体中文"},
1"./src/localization/slovak.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"slovakSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Predch\xe1dzaj\xfaca",pageNextText:"Ďalej",completeText:"Dokončen\xe9",previewText:"Uk\xe1žka",editText:"Upraviť",startSurveyText:"Spustiť",otherItemText:"In\xe9 (op\xedšte)",noneItemText:"Žiadne",selectAllItemText:"Vybrať všetky",progressText:"Strana {0} z {1}",panelDynamicProgressText:"Z\xe1znam {0} z {1}",questionsProgressText:"Zodpovedan\xe9 ot\xe1zky {0}/{1}",emptySurvey:"V prieskume nie je žiadna vidieľn\xe1 str\xe1nka ani ot\xe1zka.",completingSurvey:"Ďakujeme v\xe1m za dokončenie prieskumu.",completingSurveyBefore:"Podľa našich z\xe1znamov ste už tento prieskum dokončili.",loadingSurvey:"Nač\xedtanie prieskumu...",placeholder:"Vybrať...",value:"hodnota",requiredError:"Požaduje sa odozva.",requiredErrorInPanel:"Požaduje sa odozva: zodpovedajte aspoň jednu ot\xe1zku.",requiredInAllRowsError:"Požaduje sa odozva: zodpovedajte ot\xe1zky vo všetk\xfdch riadkoch.",numericError:"Hodnota m\xe1 byť č\xedseln\xe1.",minError:"Hodnota nem\xe1 byť nižšia než {0}",maxError:"Hodnota nem\xe1 byť vyššia než {0}",textMinLength:"Zadajte aspoň {0} znak(-y/-ov).",textMaxLength:"Nezad\xe1vajte viac než {0} znak(-y/-ov).",textMinMaxLength:"Zadajte aspoň {0} a nie viac než {1} znaky(-ov).",minRowCountError:"Vyplňte aspoň {0} riadok(-y/-ov).",minSelectError:"Vyberte aspoň {0} variant(-y/-ov).",maxSelectError:"Nevyberajte viac než {0} variant(-y/-ov).",numericMinMax:"„{0}“ m\xe1 byť minim\xe1lne {1} a maxim\xe1lne {2}",numericMin:"„{0}“ m\xe1 byť minim\xe1lne {1}",numericMax:"„{0}“ m\xe1 byť maxim\xe1lne {1}",invalidEmail:"Zadajte platn\xfa e-mailov\xfa adresu.",invalidExpression:"V\xfdraz: {0} m\xe1 vr\xe1tiť hodnotu „true“.",urlRequestError:"Požiadavky vr\xe1tila hodnotu „{0}“. {1}",urlGetChoicesError:"Požiadavka vr\xe1tila pr\xe1zdne \xfadaje alebo je vlastnosť „cesta“ nespr\xe1vna",exceedMaxSize:"Veľkosť s\xfaboru nem\xe1 prekročiť {0}.",otherRequiredError:"Požaduje sa odozva: zadajte in\xfa hodnotu.",uploadingFile:"S\xfabor sa odovzd\xe1va. Počkajte niekoľko sek\xfand a sk\xfaste to znova.",loadingFile:"Nač\xedtanie...",chooseFile:"Vyberte s\xfabor(-y)...",noFileChosen:"Žiadny vybrat\xfd s\xfabor",fileDragAreaPlaceholder:"Presuňte s\xfabor sem alebo kliknite na n
1asleduj\xface tlačidlo a nač\xedtajte s\xfabor.",confirmDelete:"Chcete z\xe1znam odstr\xe1niť?",keyDuplicationError:"T\xe1to hodnota m\xe1 byť jedinečn\xe1.",addColumn:"Pridať stĺpec",addRow:"Pridať riadok",removeRow:"Odstr\xe1niť",emptyRowsText:"K dispoz\xedcii nie s\xfa žiadne riadky.",addPanel:"Pridať nov\xe9",removePanel:"Odstr\xe1niť",choices_Item:"položka",matrix_column:"Stĺpec",matrix_row:"Riadok",multipletext_itemname:"text",savingData:"V\xfdsledky sa ukladaj\xfa na server...",savingDataError:"V d\xf4sledku chyby sa nepodarilo v\xfdsledky uložiť.",savingDataSuccess:"V\xfdsledky sa \xfaspešne uložili.",saveAgainButton:"Sk\xfaste to znova",timerMin:"min",timerSec:"s",timerSpentAll:"Na tejto str\xe1nke ste str\xe1vili {0} a celkovo {1}.",timerSpentPage:"Na tejto str\xe1nke ste str\xe1vili {0}.",timerSpentSurvey:"Celkovo ste str\xe1vili {0}.",timerLimitAll:"Na tejto str\xe1nke ste str\xe1vili {0} z {1} a celkovo {2} z {3}.",timerLimitPage:"Na tejto str\xe1nke ste str\xe1vili {0} z {1}.",timerLimitSurvey:"Celkovo ste str\xe1vili {0} z {1}.",clearCaption:"Vymazať",signaturePlaceHolder:"Podp\xedsať tu",chooseFileCaption:"Vybrať s\xfabor",removeFileCaption:"Odstr\xe1niť tento s\xfabor",booleanCheckedLabel:"\xc1no",booleanUncheckedLabel:"Nie",confirmRemoveFile:"Naozaj chcete odstr\xe1niť tento s\xfabor: {0}?",confirmRemoveAllFiles:"Naozaj chcete odstr\xe1niť všetky s\xfabory?",questionTitlePatternText:"Titul ot\xe1zky",modalCancelButtonText:"Zrušiť",modalApplyButtonText:"Použiť",filterStringPlaceholder:"Vyhľad\xe1vanie p\xedsan\xedm...",noEntriesText:"K dispoz\xedcii ešte nie s\xfa žiadne zadania.\nKliknut\xedm na nasleduj\xface tlačidlo pridajte nov\xe9 zadanie."};n.surveyLocalization.locales.sk=o,n.surveyLocalization.localeNames.sk="slovenčina"},
1"./src/localization/spanish.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"spanishSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Anterior",pageNextText:"Siguiente",completeText:"Completar",previewText:"Vista previa",editText:"Edita",startSurveyText:"Comienza",otherItemText:"Otro (describa)",noneItemText:"Ninguno",selectAllItemText:"Seleccionar todo",progressText:"P\xe1gina {0} de {1}",panelDynamicProgressText:"Registro {0} de {1}",questionsProgressText:"Respondi\xf3 a {0}/{1} preguntas",emptySurvey:"No hay p\xe1gina visible o pregunta en la encuesta.",completingSurvey:"\xa1Gracias por completar la encuesta!",completingSurveyBefore:"Nuestros registros muestran que ya ha completado esta encuesta.",loadingSurvey:"La encuesta est\xe1 cargando...",placeholder:"Seleccione...",value:"valor",requiredError:"Por favor conteste la pregunta.",requiredErrorInPanel:"Por favor, responda al menos una pregunta.",requiredInAllRowsError:"Por favor conteste las preguntas en cada hilera.",numericError:"La estimaci\xf3n debe ser num\xe9rica.",minError:"La estimaci\xf3n no debe ser menor que {0}",maxError:"La estimaci\xf3n no debe ser mayor que {0}",textMinLength:"Por favor entre por lo menos {0} s\xedmbolos.",textMaxLength:"Por favor entre menos de {0} s\xedmbolos.",textMinMaxLength:"Por favor entre m\xe1s de {0} y menos de {1} s\xedmbolos.",minRowCountError:"Por favor llene por lo menos {0} hileras.",minSelectError:"Por favor seleccione por lo menos {0} variantes.",maxSelectError:"Por favor seleccione no m\xe1s de {0} variantes.",numericMinMax:"El '{0}' debe de ser igual o m\xe1s de {1} y igual o menos de {2}",numericMin:"El '{0}' debe ser igual o m\xe1s de {1}",numericMax:"El '{0}' debe ser igual o menos de {1}",invalidEmail:"Por favor agregue un correo electr\xf3nico v\xe1lido.",invalidExpression:"La expresi\xf3n: {0} deber\xeda devolver 'verdadero'.",urlRequestError:"La solicitud regres\xf3 error '{0}'. {1}",urlGetChoicesError:"La solicitud regres\xf3 vac\xedo de data o la propiedad 'trayectoria' no es correcta",exceedMaxSize:"El tama\xf1o del archivo no debe de exceder {0}.",otherRequiredError:"Por favor agregue la otra estimaci\xf3n.",uploadingFile:"Su archivo se est\xe1 subiendo. Por favor espere unos segundos e intente de nuevo.",loadingFile:"Cargando...",chooseFile:"Elija archivo(s)...",fileDragAreaPlaceholder:"Suelte un archivo aqu\xed o haga clic en el bot\xf3n de abajo para cargar el archivo",noFileChosen:"No se ha elegido ning\xfan archivo",confirmDelete:"\xbfQuieres borrar el registro?",keyDuplicationError:"Este valor debe ser \xfanico.",addColumn:"A\xf1adir columna",addRow:"Agregue una hilera",removeRow:"Eliminar una hilera",emptyRowsText:"No hay hileras.",addPanel:"A\xf1adir nuevo",removePanel:"Retire",choices_Item:"art\xedculo",matrix_column:"Columna",matrix_row:"Hilera",multipletext_itemname:"texto",savingData:"Los resultados se est\xe1n guardando en el servidor...",savingDataError:"Los resultados se est\xe1n guardando en el servidor...",savingDataSuccess:"\xa1Los resultados se guardaron con \xe9xito!",saveAgainButton:"Int\xe9ntalo de nuevo.",timerMin:"min",timerSec:"sec",timerSpentAll:"Has gastado {0} en esta p\xe1gina y {1} en total.",timerSpentPage:"Usted ha pasado {0} en esta p\xe1gina.",timerSpentSurvey:"Has gastado en total.",timerLimitAll:"Has gastado {0} de {1} en esta p\xe1gina y {2} de {3} en total.",timerLimitPage:"Has gastado {0} de {1} en esta p\xe1gina.",timerLimitSurvey:"Usted ha gastado {0} de {1} en total.",clearCaption:"Despejen",signaturePlaceHolder:"Firma aqui",chooseFileCaption:"Elija el archivo",removeFileCaption:"Elimina este archivo",booleanCheckedLabel:"S\xed",booleanUncheckedLabel:"No",confirmRemoveFile:"\xbfEst\xe1s seguro de que quieres eliminar este archivo: {0}?",confirmRemoveAllFiles:"\xbfEst\xe1s seguro de que quieres eliminar todos los archivos?",questionTitlePatternText:"T\xedtulo de la pregunta",modalCancelButtonText:"Anular",modalApplyButtonText:"Aplicar",ratingOptionsCaption:"Toca aqu\xed para calificar...",filterStringPlaceholder:"Escribe para buscar...",indexText:"{0} de {1}",noEntriesText:"A\xfan no hay entradas.\nHaga clic en el bot\xf3n de abajo para agregar una nueva entrada."};n.surveyLocalization.locales.es=o,n.surveyLocalization.localeNames.es="espa\xf1ol"},
1"./src/localization/swahili.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"swahiliStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Iliyotangulia",pageNextText:"Ifuatayo",completeText:"Kamili",previewText:"Hakiki",editText:"Hariri",startSurveyText:"Anza",otherItemText:"Nyingine (eleza)",noneItemText:"Hakuna",selectAllItemText:"Chagua Zote",progressText:"Ukurasa {0} wa {1}",panelDynamicProgressText:"Rekodi {0} ya {1}",questionsProgressText:"Yaliyojibiwa {0}/{1} maswali",emptySurvey:"Hakuna ukurasa unaoonekana au swali katika utafiti.",completingSurvey:"Asanti kwa kukamilisha utafiti!",completingSurveyBefore:"Recodi zetu zinatuonyesha tayari umekamilisha utafiti.",loadingSurvey:"Tunaandaa utafiti...",placeholder:"Chagua...",value:"thamani",requiredError:"Tafadhali jibu hili swali.",requiredErrorInPanel:"Tafadhali jibu swali angalau moja.",requiredInAllRowsError:"Tafadhali jibu maswali katika safu zote.",numericError:"Thamani inapaswa kuwa ya nambari.",textMinLength:"Tafadhali ingiza angalau{0} husika.",textMaxLength:"Tafadhali ingiza isiozidi {0} husika.",textMinMaxLength:"Tafadhali ingiza kiwango zaidi ya {0} na kisichopungua {1} husika.",minRowCountError:"Tafadhali jaza isiopungua {0} safu.",minSelectError:"Tafadhali chagua angalau {0} lahaja.",maxSelectError:"Tafadhali changua isiozidi {0} lahaja.",numericMinMax:" '{0}' inapaswa kuwa sawa au zaidi ya {1} na sawa au chini ya {2}",numericMin:" '{0}'inapaswa kuwa sawa au zaidi ya {1}",numericMax:" '{0}'inapaswa kuwa sawa au chini ya {1}",invalidEmail:"Tafadhali ingiza anwani halali ya barua-pepe.",invalidExpression:"Usemi:{0} inapaswa kurudi 'kweli'.",urlRequestError:"Ombi lina kosa '{0}'. {1}",urlGetChoicesError:"Ombi lilirudisha data tupu au the 'path' mali ya njia sio sahihi",exceedMaxSize:"Saizi ya faili haipaswi kuzidi {0}.",otherRequiredError:"Tafadhali ingiza thamani nyingine.",uploadingFile:"Faili yako inapakia.Tafadhali subiri sekunde kadhaa na ujaribu tena.",loadingFile:"Inapakia...",chooseFile:"Chagua faili...",noFileChosen:"Hujachagua faili",confirmDelete:"Je! Unataka kufuta rekodi?",keyDuplicationError:"Thamani hii inapaswa kuwa ya kipekee.",addColumn:"Ongeza Kolamu",addRow:"Ongeza safu",removeRow:"Toa",addPanel:"Ongeza mpya",removePanel:"Toa",choices_Item:"kitu",matrix_column:"Kolamu",matrix_row:"Safu",savingData:"Matokeo yamehifadhiwa kwa seva...",savingDataError:"Kosa limetokea na hatukuweza kuhifadhi matokeo.",savingDataSuccess:"Matokeo yamehifadhiwa!",saveAgainButton:"Jaribu tena",timerMin:"dakika",timerSec:"sekunde",timerSpentAll:"Umetumia {0} kwenye ukurasa huu na {1} kwa jumla.",timerSpentPage:"Umetumia {0} kwenye ukurasa huu.",timerSpentSurvey:"Umetumia {0} kwa jumla.",timerLimitAll:"Umetumia {0} ya {1} kwenye ukurasa huu {2} wa {3} kwa jumla.",timerLimitPage:"Umetumia {0} ya {1} kwenye ukurasa huu.",timerLimitSurvey:"Umetumia {0} ya {1} kwa jumla.",clearCaption:"Ondoa",chooseFileCaption:"Chagua faili",removeFileCaption:"Ondoa faili",booleanCheckedLabel:"Ndio",booleanUncheckedLabel:"Hapana",confirmRemoveFile:"Je! Una uhakika kuwa unataka kuondoa faili hii: {0}?",confirmRemoveAllFiles:"Je! Una uhakika kuwa unataka kuondoa faili zote?",questionTitlePatternText:"Kichwa cha Swali"};
1n.surveyLocalization.locales.sw=o,n.surveyLocalization.localeNames.sw="swahili"},
1"./src/localization/swedish.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"swedishSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"F\xf6reg\xe5ende",pageNextText:"N\xe4sta",completeText:"Slutf\xf6r",previewText:"F\xf6rhandsvisning",editText:"Redigera",startSurveyText:"B\xf6rja",otherItemText:"Annat (beskriv)",noneItemText:"Ingen",selectAllItemText:"V\xe4lj alla",progressText:"Sida {0} av {1}",indexText:"{0} av {1}",panelDynamicProgressText:"{0} av {1}",questionsProgressText:"{0} / {1} fr\xe5gor besvarade",emptySurvey:"Det finns ingen synlig sida eller fr\xe5ga i enk\xe4ten.",completingSurvey:"Tack f\xf6r att du genomf\xf6rt enk\xe4ten!!",completingSurveyBefore:"V\xe5ra register visar att du redan har slutf\xf6rt denna unders\xf6kning.",loadingSurvey:"Enk\xe4ten laddas...",placeholder:"V\xe4lj...",ratingOptionsCaption:"Tryck h\xe4r f\xf6r att betygs\xe4tta...",value:"v\xe4rde",requiredError:"Fr\xe5gan \xe4r obligatorisk.",requiredErrorInPanel:"V\xe4nligen svara p\xe5 minst en fr\xe5ga.",requiredInAllRowsError:"Var v\xe4nlig besvara fr\xe5gorna p\xe5 alla rader.",numericError:"V\xe4rdet ska vara numeriskt.",minError:"V\xe4rdet f\xe5r inte vara mindre \xe4n {0}",maxError:"V\xe4rdet f\xe5r inte vara st\xf6rre \xe4n {0}",textMinLength:"Ange minst {0} tecken.",textMaxLength:"Ange f\xe4rre \xe4n {0} tecken.",textMinMaxLength:"Ange mer \xe4n {0} och f\xe4rre \xe4n {1} tecken.",minRowCountError:"Var v\xe4nlig fyll i minst {0} rader.",minSelectError:"Var v\xe4nlig v\xe4lj \xe5tminstone {0} varianter.",maxSelectError:"Var v\xe4nlig v\xe4lj inte fler \xe4n {0} varianter.",numericMinMax:"'{0}' ska vara lika med eller mer \xe4n {1} samt lika med eller mindre \xe4n {2}",numericMin:"'{0}' ska vara lika med eller mer \xe4n {1}",numericMax:"'{0}' ska vara lika med eller mindre \xe4n {1}",invalidEmail:"Var v\xe4nlig ange en korrekt e-postadress.",invalidExpression:"Uttrycket: {0} ska returnera 'true'.",urlRequestError:"F\xf6rfr\xe5gan returnerade felet '{0}'. {1}",urlGetChoicesError:"Antingen returnerade f\xf6rfr\xe5gan ingen data eller s\xe5 \xe4r egenskapen 'path' inte korrekt",exceedMaxSize:"Filstorleken f\xe5r ej \xf6verstiga {0}.",otherRequiredError:"Var v\xe4nlig ange det andra v\xe4rdet.",uploadingFile:"Din fil laddas upp. Var v\xe4nlig v\xe4nta n\xe5gra sekunder och f\xf6rs\xf6k sedan igen.",loadingFile:"Laddar...",chooseFile:"V\xe4lj fil(er) ...",noFileChosen:"Ingen fil vald",confirmDelete:"Vill du radera posten?",keyDuplicationError:"Detta v\xe4rde ska vara unikt.",addColumn:"L\xe4gg till kolumn",addRow:"L\xe4gg till rad",removeRow:"Ta bort",addPanel:"L\xe4gg till ny",removePanel:"Ta bort",choices_Item:"Artikel",matrix_column:"Kolumn",matrix_row:"Rad",multipletext_itemname:"text",savingData:"Resultaten sparas p\xe5 servern ...",savingDataError:"Ett fel intr\xe4ffade och vi kunde inte spara resultaten.",savingDataSuccess:"Resultaten lyckades sparas!",saveAgainButton:"F\xf6rs\xf6k igen",timerMin:"min",timerSec:"sek",timerSpentAll:"Du har spenderat {0} p\xe5 den h\xe4r sidan och {1} totalt.",timerSpentPage:"Du har spenderat {0} p\xe5 den h\xe4r sidan.",timerSpentSurvey:"Du har spenderat {0} totalt.",timerLimitAll:"Du har spenderat {0} av {1} p\xe5 den h\xe4r sidan och {2} av {3} totalt.",timerLimitPage:"Du har spenderat {0} av {1} p\xe5 den h\xe4r sidan.",timerLimitSurvey:"Du har spenderat {0} av {1} totalt.",clearCaption:"Klar",signaturePlaceHolder:"Signera h\xe4r",chooseFileCaption:"V\xe4lj fil",removeFileCaption:"Ta bort den h\xe4r filen",booleanCheckedLabel:"Ja",booleanUncheckedLabel:"Nej",confirmRemoveFile:"\xc4r du s\xe4ker p\xe5 att du vill ta bort den h\xe4r filen: {0}?",confirmRemoveAllFiles:"\xc4r du s\xe4ker p\xe5 att du vill ta bort alla filer?",questionTitlePatternText:"Fr\xe5getitel",modalCancelButtonText:"Avbryt",modalApplyButtonText:"Spara",filterStringPlaceholder:"Skriv f\xf6r att s\xf6ka...",emptyMessage:"Ingen data finns",noEntriesText:"Det finns inga v\xe4rden \xe4n.\nKlicka p\xe5 knappen nedan f\xf6r att l\xe4gga till nytt v\xe4rde.",more:"Mer"};n.surveyLocalization.locales.sv=o,n.surveyLocalization.localeNames.sv="svenska"},
1"./src/localization/tajik.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"tajikSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Бозгашт",pageNextText:"Оянда",completeText:"Иҷро шуд",startSurveyText:"Оғоз",otherItemText:"Дигар (лутфан тавсиф кунед)",noneItemText:"Не",selectAllItemText:"Ҳамаро интихоб кардан",progressText:"Саҳифаи {0} аз {1}",emptySurvey:"Ягон савол вуҷуд надорад.",completingSurvey:"Ташаккур барои пур кардани саволнома!",completingSurveyBefore:"Шумо аллакай ин пурсишро анҷом додаед.",loadingSurvey:"Боргирӣ аз сервер...",placeholder:"Интихоб кардан...",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:"Шумо {
10} дар ин тест сарф намудед.",timerLimitAll:"Шумо {0} аз {1} дар ин саҳифа ва {2} аз {3} дар умум сарф кардед дар дохили ин тест.",timerLimitPage:"Шумо {0} аз {1} дар ин саҳифа сарф кардед.",timerLimitSurvey:"Шумо {0} аз {1} дар ҳамаи тест сарф кардед.",clearCaption:"Тоза кардан",removeFileCaption:"Файлро нест кардан"};n.surveyLocalization.locales.tg=o,n.surveyLocalization.localeNames.tg="тоҷикӣ"},"./src/localization/telugu":function(e,t,r){"use strict";r.r(t),r.d(t,"teluguStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"వెనకటి",pageNextText:"తరువాయ",completeText:"పూర్తి చేయండి",previewText:"ముందుగా వీక్షించు",editText:"మార్పులు చెయ్యి",startSurveyText:"ప్రారంభించు",otherItemText:"ఇతరమైన(వివరించండి)",noneItemTex:"ఏదీకాదు",selectAllItemText:"అన్ని ఎంచుకో",progressText:"పేజీ{0}/{1}",panelDynamicProgressText:"దాఖలాలు{0}/{1}",questionsProgressText:"{0}/{1} ప్రశ్నలకు జవాబు ఇవ్వడం అయినది",emptySurvey:"ఈ సర్వేలో పేజీలు గాని ప్రశ్నలు గాని కనబడుట లేదు",completingSurvey:"సర్వేను ముగించి నందుకు ధన్యవాదములు",completingSurveyBefore:" మీరు ఇప్పటికే సర్వేను ముగించినట్లు మా రికార్డులు చూపిస్తున్నాయి",loadingSurvey:"సర్వే లోడ్ అవుతుంది",placeholder:"ఎన్నుకోండి",value:"విలువ",requiredError:"దయచేసి ప్రశ్నకు జవాబు ఇవ్వండి",requiredErrorInPanel:"దయచేసి కనీసం ఒక్క ప్రశ్నకైనా జవాబు ఇవ్వండి",requiredInAllRowsError:"దయచేసి అన్ని వరుసలలో ఉన్న ప్రశ్నలకు జవాబు ఇవ్వండి",numericError:"విలువను సంఖ్యలలో తెలియజేయండి",textMinLength:"దయచేసి కనీసం {0} అక్షరాలను నమోదు చేయండి",textMaxLength:"దయచేసి {0} కన్నా తక్కువ అక్షరాలను నమోదు చేయండి",textMinMaxLength:"దయచేసి {0} కన్నా ఎక్కువ మరియు{1} కన్నా తక్కువ అక్షరాలను నమోదు చేయండి",minRowCountError:"దయచేసి కనీసం {0}వరుసలను పూరించండి",minSelectError:"దయచేసి కనీసం{0} రకాలను ఎన్నుకోండి",maxSelectError:"దయచేసి {0} కన్నా ఎక్కువ రకాలను ఎన్నుకో కండి",numericMinMax:"'{0}' {1}తొ సమానంగా లేదా {1} కన్నా ఎక్కువ గా మరియు  {2}కన్నా తక్కువ ఉండాలి లెదా {2}తొ సమానంగా ఉండాలి",numericMin:"''{0}' {1}తొ  సమానంగా లేదా  {1}కన్నా ఎక్కువగా ఉండాలి",numericMax:"'{0}'  {1}  తక్కువ లేదా సమానంగా ఉండాలి",invalidEmail:"దయచేసి సరైన ఈమెయిల్  నమోదు చేయండి",invalidExpression:"{0} 'నిజం' అని తిరిగివ్వాలి",urlRequestError:"విన్నపము {0} ని తప్పుగా గుర్తించింది {1}",urlGetChoicesError:"విన్నపము ఖాళీ డేటాని తిరిగిచ్చింది, లేదా path తప్పైన ది",exceedMaxSize:"ఫైల్ పరిమాణం{0} కంటే పెద్దదిగా ఉండకూడదు",otherRequiredError:"దయచేసి ఇతర విలువలను నమో దించండి",uploadingFile:"మీ ఫైల్ అప్లోడ్ అవుతున్నది దయచేసి కొన్ని సెకండ్లు వేచి ఉండండి మరియు మళ్లీ ప్రయత్నించండి",loadingFile:"లోడ్ అవుతున్నది",chooseFile:"ఫైళ్లను ఎన్నుకోండి",noFileChosen:"ఏ ఫైల్ ఎన్నుకో లేదు",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:"ఈ పేజీ పైన మీరు {1}లో {0} భాగాన్ని ఉపయోగించారు. మోతంగా {3}లో {2} భాగాన్ని ఉపయోగించారు.",timerLimitPage:"ఈ పేజీలో మీరు {1}లోని{0} ని ఉపయోగించారు",timerLimitSurvey:" మొత్తంగా మీరు {1} లో {0} ని ఉపయోగించారు ",clearCaption:"స్పష్టమ్",chooseFileCaption:"ఫైల్ ఎంచుకోండి",removeFileCaption:"ఈ ఫైల్ తీసేయండి",booleanCheckedLabel:"అవును",booleanUncheckedLabel:"లేదు",confirmRemoveFile:" ఈ ఫైల్ని తీయించాలని మీరు ఖచ్చితంగా అనుకుంటున్నారా:{0} ?",confirmRemoveAllFiles:"అన్ని ఫైళ్లను తీసేయాలని మీరు ఖచ్చితంగా అనుకుంటున్నారా",questionTitlePatternText:"ప్రశ్న శీర్షిక"};n.surveyLocalization.locales.tel=o,n.surveyLocalization.localeNames.tel="Telugu"},
1"./src/localization/thai.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"thaiStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"ก่อนหน้า",pageNextText:"ถัดไป",completeText:"สำเร็จ",previewText:"ดูตัวอย่าง",editText:"แก้ไข",startSurveyText:"เริ่ม",otherItemText:"อื่นๆ (โปรดระบุ)",noneItemText:"ไม่มี",selectAllItemText:"เลือกทั้งหมด",progressText:"หน้าที่ {0} จาก {1}",panelDynamicProgressText:"รายการที่ {0} จาก {1}",questionsProgressText:"คำตอบที่ {0}/{1} จำนวนคำถาม",emptySurvey:"ไม่มีหน้าเพจที่มองเห็น หรือ คำถามใน survey นี้",completingSurvey:"ขอบคุณที่ทำ survey จนเสร็จ",completingSurveyBefore:"รายการของเราแสดงว่าคุณได้ทำ survey เสร็จเรียบร้อยแล้ว",loadingSurvey:"กำลังโหลด Survey...",placeholder:"เลือก...",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:"กรุณาใส่อีเมล์แอดเดรสที่ถูกต้อง",invali
1dExpression:"The expression: {0} ต้องรีเทิร์น 'true'.",urlRequestError:"รีเควสรีเทิร์น error '{0}'. {1}",urlGetChoicesError:"รีเควสรีเทิร์นข้อมูลว่างเปล่า หรือ 'path' property ไม่ถูกต้อง",exceedMaxSize:"ขนาดไฟล์ต้องไม่เกิน {0}.",otherRequiredError:"กรุณาใส่ค่าอื่น",uploadingFile:"ไฟล์ของคุณกำลังอัพโหลดอยู่. กรุณารอสักครู่แล้วทำการลองอีกครั้ง",loadingFile:"กำลังโหลด...",chooseFile:"เลือกไฟล์...",noFileChosen:"ไม่ไฟล์ที่เลือก",confirmDelete:"คุณต้องการลบรายการนี้จริงหรือไม่?",keyDuplicationError:"ข้อมูลนี้ต้องเป็น unique.",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} รวมทั้งหมด",clearCaption:"เคลียร์",chooseFileCaption:"เลือกไฟล์",removeFileCaption:"นำไฟล์นี้ออก",booleanCheckedLabel:"ใช่",booleanUncheckedLabel:"ไม่ใช่",confirmRemoveFile:"คุณแน่ใจที่จะนำไฟล์นี้ออกใช่หรือไม่: {0}?",confirmRemoveAllFiles:"คุณแน่ใจที่จะนำไฟล์ทั้งหมดออกใช่หรือไม่",questionTitlePatternText:"ชื่อคำถาม"};n.surveyLocalization.locales.th=o,n.surveyLocalization.localeNames.th="ไทย"},
1"./src/localization/traditional-chinese.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"traditionalChineseSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"上一頁",pageNextText:"下一頁",completeText:"提交問卷",otherItemText:"填寫其他答案",progressText:"第 {0} 頁, 共 {1} 頁",emptySurvey:"問卷中沒有問題或頁面",completingSurvey:"感謝您的參與!",loadingSurvey:"問卷載入中...",placeholder:"請選擇...",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.surveyLocalization.locales["zh-tw"]=o,n.surveyLocalization.localeNames["zh-tw"]="繁體中文"},
1"./src/localization/turkish.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"turkishSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Geri",pageNextText:"İleri",completeText:"Anketi Tamamla",previewText:"\xd6n izleme",editText:"D\xfczenle",startSurveyText:"Başlat",otherItemText:"Diğer (a\xe7ıklayınız)",noneItemText:"Yok",selectAllItemText:"Hepsini se\xe7",progressText:"Sayfa {0} / {1}",panelDynamicProgressText:"Kayıt {0} / {1}",questionsProgressText:"Soruları cevapladı {0} / {1}",emptySurvey:"Ankette g\xf6r\xfcnt\xfclenecek sayfa ya da soru mevcut değil.",completingSurvey:"Anketimizi tamamladığınız i\xe7in teşekk\xfcr ederiz.",completingSurveyBefore:"Kayıtlarımız, bu anketi zaten tamamladığınızı g\xf6steriyor.",loadingSurvey:"Anket sunucudan y\xfckleniyor ...",placeholder:"Se\xe7iniz ...",value:"değer",requiredError:"L\xfctfen soruya cevap veriniz",requiredErrorInPanel:"L\xfctfen en az bir soruyu yanıtlayın.",requiredInAllRowsError:"L\xfctfen t\xfcm satırlardaki soruları cevaplayınız.",numericError:"Girilen değer numerik olmalıdır",textMinLength:"En az {0} sembol giriniz.",textMaxLength:"L\xfctfen {0} karakterden az girin.",textMinMaxLength:"L\xfctfen {0} ’den fazla ve {1} ’den az karakter girin.",minRowCountError:"L\xfctfen en az {0} satırı doldurun.",minSelectError:"L\xfctfen en az {0} se\xe7eneği se\xe7iniz.",maxSelectError:"L\xfctfen {0} adetten fazla se\xe7meyiniz.",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\xfcy\xfck olmalıdır",numericMax:"'{0}' değeri {1} değerine eşit ya da k\xfc\xe7\xfck olmalıdır.",invalidEmail:"L\xfctfen ge\xe7erli bir eposta adresi giriniz.",invalidExpression:"İfade: {0} 'true' d\xf6nd\xfcrmelidir.",urlRequestError:"Talebi şu hatayı d\xf6nd\xfc '{0}'. {1}",urlGetChoicesError:"Talep herhangi bir veri d\xf6nmedi ya da 'path' \xf6zelliği hatalı.",exceedMaxSize:"Dosya boyutu {0} değerini ge\xe7emez.",otherRequiredError:"L\xfctfen diğer değerleri giriniz.",uploadingFile:"Dosyanız y\xfckleniyor. L\xdctfen birka\xe7 saniye bekleyin ve tekrar deneyin.",loadingFile:"Y\xfckleniyor...",chooseFile:"Dosyaları se\xe7in ...",noFileChosen:"Dosya se\xe7ili değil",confirmDelete:"Kaydı silmek istiyor musunuz?",keyDuplicationError:"Bu değer benzersiz olmalıdır.",addColumn:"S\xfctun ekleyin",addRow:"Satır Ekle",removeRow:"Kaldır",addPanel:"Yeni ekle",removePanel:"Kaldırmak",choices_Item:"eşya",matrix_column:"S\xfctun",matrix_row:"K\xfcrek \xe7ekmek",savingData:"Sonu\xe7lar sunucuya kaydediliyor ...",savingDataError:"Bir hata oluştu ve sonu\xe7ları kaydedemedik.",savingDataSuccess:"Sonu\xe7lar başarıyla kaydedildi!",saveAgainButton:"Tekrar deneyin",timerMin:"min",timerSec:"saniye",timerSpentAll:"Bu sayfada {0} ve toplamda {1} harcadınız.",timerSpentPage:"Bu sayfaya {0} harcadınız.",timerSpentSurvey:"Toplamda {0} harcadınız.",timerLimitAll:"Bu sayfaya {0} / {1} ve toplamda {2} / {3} harcadınız.",timerLimitPage:"Bu sayfaya {0} / {1} harcadınız.",timerLimitSurvey:"Toplamda {0} / {1} harcadınız.",clearCaption:"A\xe7ık",chooseFileCaption:"Dosya se\xe7in",removeFileCaption:"Bu dosyayı kaldır",booleanCheckedLabel:"Evet",booleanUncheckedLabel:"Hayır",confirmRemoveFile:"Bu dosyayı kaldırmak istediğinizden emin misiniz: {0}?",confirmRemoveAllFiles:"T\xfcm dosyaları kaldırmak istediğinizden emin misiniz?",questionTitlePatternText:"Soru başlığı"};n.surveyLocalization.locales.tr=o,n.surveyLocalization.localeNames.tr="t\xfcrk\xe7e"},
1"./src/localization/ukrainian.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ukrainianSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Назад",pageNextText:"Далі",completeText:"Завершити",previewText:"Попередній перегляд",editText:"Редагувати",startSurveyText:"Почати",otherItemText:"Інше (будь ласка, опишіть)",noneItemText:"Жоден",selectAllItemText:"Вибрати все",progressText:"Сторінка {0} з {1}",panelDynamicProgressText:"Запис {0} із {1}",questionsProgressText:"Відповіли на {0}/{1} питань",emptySurvey:"Немає жодного питання.",completingSurvey:"Дякуємо Вам за заповнення анкети!",completingSurveyBefore:"Ви вже проходили це опитування.",loadingSurvey:"Завантаження опитування...",placeholder:"Вибрати...",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:"Виберіть файл(и)...",noFileChosen:"Файл не вибрано",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} для всього тесту.",clearCaption:"Очистити",chooseFileCaption:"Виберіть файл",removeFileCaption:"Видалити файл",booleanCheckedLabel:"Так",booleanUncheckedLabel:"Ні",confirmRemoveFile:"Ви впевнені, що хочете видалити цей файл: {0}?",confirmRemoveAllFiles:"Ви впевнені, що хочете видалити всі файли?",questionTitlePatternText:"Назва запитання"};n.surveyLocalization.locales.ua=o,n.surveyLocalization.localeNames.ua="українська"},
1"./src/localization/vietnamese.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"vietnameseSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Trở về",pageNextText:"Tiếp theo",completeText:"Ho\xe0n th\xe0nh",previewText:"Xem trước",editText:"Chỉnh sửa",startSurveyText:"Bắt đầu",otherItemText:"Kh\xe1c (m\xf4 tả)",noneItemText:"Trống",selectAllItemText:"Chọn tất cả",progressText:"Trang {0} / {1}",panelDynamicProgressText:"D\xf2ng {0} / {1}",questionsProgressText:"Đ\xe3 trả lời {0}/{1} c\xe2u hỏi",emptySurvey:"Kh\xf4ng c\xf3 trang hoặc c\xe2u hỏi n\xe0o được hiển thị trong cuộc khảo s\xe1t n\xe0y.",completingSurvey:"Cảm ơn đ\xe3 ho\xe0n th\xe0nh khảo s\xe1t!",completingSurveyBefore:"Hồ sơ ch\xfang t\xf4i cho thấy rằng bạn đ\xe3 ho\xe0n th\xe0nh cuộc khảo s\xe1t n\xe0y.",loadingSurvey:"Đang tải khảo s\xe1t...",placeholder:"Chọn...",value:"Gi\xe1 trị",requiredError:"Vui l\xf2ng trả lời c\xe2u hỏi.",requiredErrorInPanel:"Vui l\xf2ng trả lời \xedt nhất một c\xe2u hỏi.",requiredInAllRowsError:"Vui l\xf2ng trả lời c\xe1c c\xe2u hỏi tr\xean tất cả c\xe1c d\xf2ng.",numericError:"Gi\xe1 trị n\xean l\xe0 kiểu số.",textMinLength:"Vui l\xf2ng nhập \xedt nhất {0} k\xed tự.",textMaxLength:"Vui l\xf2ng nhập \xedt hơn {0} k\xed tự.",textMinMaxLength:"Vui l\xf2ng nhập nhiều hơn {0} hoặc \xedt hơn {1} k\xed tự.",minRowCountError:"Vui l\xf2ng nhập \xedt nhất {0} d\xf2ng.",minSelectError:"Vui l\xf2ng chọn \xedt nhất {0} loại.",maxSelectError:"Vui l\xf2ng kh\xf4ng chọn nhiều hơn {0} loại.",numericMinMax:"Gi\xe1 trị '{0}' n\xean bằng hoặc lớn hơn {1} v\xe0 bằng hoặc nhỏ hơn {2}",numericMin:"Gi\xe1 trị '{0}' n\xean bằng hoặc lớn hơn {1}",numericMax:"Gi\xe1 trị '{0}' n\xean bằng hoặc nhỏ hơn {1}",invalidEmail:"Vui l\xf2ng điền địa chỉ email hợp lệ.",invalidExpression:"Biểu thức: {0} n\xean trả về 'true'.",urlRequestError:"Y\xeau cầu trả về lỗi '{0}'. {1}",urlGetChoicesError:"Y\xeau cầu trả về dữ liệu trống hoặc thuộc t\xednh 'path' kh\xf4ng đ\xfang",exceedMaxSize:"K\xedch thước tập tin kh\xf4ng n\xean vượt qu\xe1 {0}.",otherRequiredError:"Vui l\xf2ng điền gi\xe1 trị kh\xe1c.",uploadingFile:"Tập tin đang được tải l\xean. Vui l\xf2ng chờ một l\xfac v\xe0 thử lại.",loadingFile:"Đang tải...",chooseFile:"Chọn c\xe1c tập tin...",noFileChosen:"Kh\xf4ng c\xf3 tập tin n\xe0o được chọn",confirmDelete:"Bạn muốn x\xf3a d\xf2ng n\xe0y?",keyDuplicationError:"Gi\xe1 trị n\xe0y kh\xf4ng n\xean bị tr\xf9ng lặp.",addColumn:"Th\xeam cột",addRow:"Th\xeam d\xf2ng",removeRow:"X\xf3a",addPanel:"Th\xeam mới",removePanel:"X\xf3a",choices_Item:"mục",matrix_column:"Cột",matrix_row:"D\xf2ng",savingData:"Kết quả đang lưu lại tr\xean hệ thống...",savingDataError:"C\xf3 lỗi xảy ra v\xe0 ch\xfang ta kh\xf4ng thể lưu kết quả.",savingDataSuccess:"Kết quả đ\xe3 được lưu th\xe0nh c\xf4ng!",saveAgainButton:"Thử lại",timerMin:"ph\xfat",timerSec:"gi\xe2y",timerSpentAll:"Bạn đ\xe3 sử dụng {0} tr\xean trang n\xe0y v\xe0 {1} tr\xean to\xe0n bộ.",timerSpentPage:"Bạn đ\xe3 sử dụng {0} tr\xean trang.",timerSpentSurvey:"Bạn đ\xe3 sử dụng {0} tr\xean to\xe0n bộ.",timerLimitAll:"Bạn đ\xe3 sử dụng {0} / {1} tr\xean trang n\xe0y v\xe0 {2} / {3} tr\xean to\xe0n bộ.",timerLimitPage:"Bạn đ\xe3 sử dụng {0} / {1} tr\xean trang n\xe0y.",timerLimitSurvey:"Bạn đ\xe3 sử dụng {0} / {1} tr\xean to\xe0n bộ.",clearCaption:"X\xf3a",chooseFileCaption:"Chọn tập tin",removeFileCaption:"X\xf3a tập tin",booleanCheckedLabel:"C\xf3",booleanUncheckedLabel:"Kh\xf4ng",confirmRemoveFile:"Bạn c\xf3 chắc chắn muốn x\xf3a tập tin n\xe0y: {0}?",confirmRemoveAllFiles:"Bạn c\xf3 chắc chắn muốn x\xf3a to\xe0n bộ tập tin?",questionTitlePatternText:"Ti\xeau đề c\xe2u hỏi"};n.surveyLocalization.locales.vi=o,n.surveyLocalization.localeNames.vi="Việt Nam"},
1"./src/localization/welsh.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"welshSurveyStrings",function(){return o});var n=r("./src/entries/core.ts"),o={pagePrevText:"Blaenorol",pageNextText:"Nesaf",completeText:"Cwblhau",previewText:"Rhagolwg",editText:"Golygu",startSurveyText:"Dechrau",otherItemText:"Arall (disgrifiwch)",noneItemText:"Dim",selectAllItemText:"Dewis y Cyfan ",progressText:"Tudalen {0} o {1}",panelDynamicProgressText:"Cofnod {0} o {1}",questionsProgressText:"Wedi ateb {0}/{1} cwestiwn",emptySurvey:"Does dim modd gweld tudalen na chwestiwn yn yr arolwg.",completingSurvey:"Diolch am lenwi’r holiadur!",completingSurveyBefore:"Rydych chi wedi llenwi’r arolwg hwn yn barod yn \xf4l ein cofnodion.",loadingSurvey:"Wrthi’n Llwytho’r Arolwg...",placeholder:"Dewiswch...",value:"gwerth",requiredError:"Atebwch y cwestiwn.",requiredErrorInPanel:"Atebwch o leiaf un cwestiwn.",requiredInAllRowsError:"Atebwch y cwestiynau ym mhob rhes.",numericError:"Dylai’r gwerth fod yn rhif.",textMinLength:"Rhowch o leiaf {0} nod.",textMaxLength:"Rhowch lai na {0} nod.",textMinMaxLength:"Rhowch o leiaf {0} nod ond dim mwy na {1}.",minRowCountError:"Llenwch o leiaf {0} rhes.",minSelectError:"Dewiswch o leiaf {0} amrywiolyn.",maxSelectError:"Peidiwch \xe2 dewis mwy na {0} amrywiolyn.",numericMinMax:"Dylai’r '{0}' fod yr un fath \xe2 {1} neu’n fwy, a’r fath \xe2 {2} neu’n llai",numericMin:"Dylai’r '{0}' fod yr un fath \xe2 {1} neu’n fwy",numericMax:"Dylai’r '{0}' fod yr un fath \xe2 {1} neu’n llai",invalidEmail:"Rhowch gyfeiriad e-bost dilys.",invalidExpression:"Dylai’r mynegiad {0} arwain at 'true'.",urlRequestError:"Roedd y cais wedi arwain at y gwall '{0}'. {1}",urlGetChoicesError:"Roedd y cais wedi arwain at ddata gwag neu mae priodwedd y ‘path’ yn anghywir ",exceedMaxSize:"Ddylai’r ffeil ddim bod yn fwy na {0}.",otherRequiredError:"Rhowch y gwerth arall.",uploadingFile:"Mae eich ffeil wrthi’n llwytho i fyny. Arhoswch ychydig o eiliadau a rhoi cynnig arall arni.",loadingFile:"Wrthi’n llwytho...",chooseFile:"Dewiswch ffeil(iau)...",noFileChosen:"Heb ddewis ffeil ",confirmDelete:"Ydych chi am ddileu’r cofnod?",keyDuplicationError:"Dylai’r gwerth hwn fod yn unigryw.",addColumn:"Ychwanegu colofn ",addRow:"Ychwanegu rhes",removeRow:"Tynnu",addPanel:"Ychwanegu o’r newydd",removePanel:"Tynnu",choices_Item:"eitem",matrix_column:"Colofn",matrix_row:"Rhes",savingData:"Mae’r canlyniadau’n cael eu cadw ar y gweinydd...",savingDataError:"Roedd gwall a doedd dim modd cadw’r canlyniadau.",savingDataSuccess:"Wedi llwyddo i gadw’r canlyniadau!",saveAgainButton:"Rhowch gynnig arall arni",timerMin:"mun",timerSec:"eil",timerSpentAll:"Rydych chi wedi treulio {0} ar y dudalen hon a {1} gyda’i gilydd.",timerSpentPage:"Rydych chi wedi treulio {0} ar y dudalen hon.",timerSpentSurvey:"Rydych chi wedi treulio {0} gyda’i gilydd.",timerLimitAll:"Rydych chi wedi treulio {0} o {1} ar y dudalen hon a {2} o {3} gyda’i gilydd.",timerLimitPage:"Rydych chi wedi treulio {0} o {1} ar y dudalen hon.",timerLimitSurvey:"Rydych chi wedi treulio {0} o {1} gyda’i gilydd.",clearCaption:"Clirio",chooseFileCaption:"Dewiswch ffeil ",removeFileCaption:"Tynnu’r ffeil hon ",booleanCheckedLabel:"Iawn",booleanUncheckedLabel:"Na",confirmRemoveFile:"Ydych chi’n siŵr eich bod am dynnu’r ffeil hon: {0}?",confirmRemoveAllFiles:"Ydych chi’n siŵr eich bod am dynnu pob ffeil?",questionTitlePatternText:"Teitl y Cwestiwn "};n.surveyLocalization.locales.cy=o,n.surveyLocalization.localeNames.cy="cymraeg"},
1"./src/martixBase.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionMatrixBaseModel",function(){return d});var n,o=r("./src/itemvalue.ts"),i=r("./src/question.ts"),s=r("./src/jsonobject.ts"),a=r("./src/conditions.ts"),l=r("./src/helpers.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},d=function(e){function t(t){var r=e.call(this,t)||this;return r.generatedVisibleRows=null,r.generatedTotalRow=null,r.filteredRows=null,r.filteredColumns=null,r.columns=r.createColumnValues(),r.rows=r.createItemValues("rows"),r}return c(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){return this.filteredColumns?this.filteredColumns:this.columns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),this.filterItems()},enumerable:!1,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.areInvisibleElementsShowing?(this.onRowsChanged(),!1):!this.isLoadingFromJson&&!!this.data&&this.runItemsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&(this.visible=this.rows.length>0&&(!this.filteredRows||this.filteredRows.length>0))},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var r=null;if(this.filteredRows&&!l.Helpers.isValueEmpty(this.defaultValue)){r=[];for(var n=0;n<this.filteredRows.length;n++)r.push(this.filteredRows[n])}var o=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),i=this.runConditionsForColumns(e,t);return(o=i||o)&&(this.isClearValueOnHidden&&(this.filteredColumns||this.filteredRows)&&this.clearIncorrectValues(),r&&this.restoreNewVisibleRowsValues(r),this.clearGeneratedRows(),i&&this.onColumnsChanged(),this.onRowsChanged()),o},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.runConditionsForRows=function(e,t){var r=!!this.survey&&this.survey.areInvisibleElementsShowing,n=!r&&this.rowsVisibleIf?new a.ConditionRunner(this.rowsVisibleIf):null;this.filteredRows=[];var i=o.ItemValue.runConditionsForItems(this.rows,this.filteredRows,n,e,t,!r);return this.filteredRows.length===this.rows.length&&(this.filteredRows=null),i},t.prototype.runConditionsForColumns=function(e,t){var r=this.survey&&
1!this.survey.areInvisibleElementsShowing&&this.columnsVisibleIf?new a.ConditionRunner(this.columnsVisibleIf):null;this.filteredColumns=[];var n=o.ItemValue.runConditionsForItems(this.columns,this.filteredColumns,r,e,t,this.shouldRunColumnExpression());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,i=this.filteredRows?this.filteredRows:this.rows,s=this.filteredColumns?this.filteredColumns:this.columns;for(var a in t)o.ItemValue.getItemByValue(i,a)&&o.ItemValue.getItemByValue(s,t[a])?(null==r&&(r={}),r[a]=t[a]):n=!0;n&&(this.value=r),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()){for(var e=this.getUnbindValue(this.value),t=this.rows,r=0;r<t.length;r++){var n=t[r].value;e[n]&&!t[r].isVisible&&delete e[n]}this.isTwoValueEquals(e,this.value)||(this.value=e)}},t.prototype.restoreNewVisibleRowsValues=function(e){var t=this.filteredRows?this.filteredRows:this.rows,r=this.defaultValue,n=this.getUnbindValue(this.value),i=!1;for(var s in r)o.ItemValue.getItemByValue(t,s)&&!o.ItemValue.getItemByValue(e,s)&&(null==n&&(n={}),n[s]=r[s],i=!0);i&&(this.value=n)},t.prototype.needResponsiveWidth=function(){return!0},t.prototype.getTableCss=function(){return new u.CssClassBuilder().append(this.cssClasses.root).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,"top"===this.verticalAlign).append(this.cssClasses.rootVerticalAlignMiddle,"middle"===this.verticalAlign).toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth","")},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth","")},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),p([Object(s.property)({defaultValue:"middle"})],t.prototype,"verticalAlign",void 0),p([Object(s.property)({defaultValue:!1})],t.prototype,"alternateRows",void 0),t}(i.Question);s.Serializer.addClass("matrixbase",["columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1}],void 0,"question")},
1"./src/multiSelectListModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MultiSelectListModel",function(){return l});var n,o=r("./src/jsonobject.ts"),i=r("./src/list.ts"),s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},l=function(e){function t(t,r,n,o,i){var s=e.call(this,t,r,n,void 0,i)||this;return s.onItemClick=function(e){if(s.isExpanded=!1,s.isItemSelected(e)){var t=s.selectedItems.splice(s.selectedItems.indexOf(e),1)[0];s.onSelectionChanged&&s.onSelectionChanged(t,"removed")}else s.selectedItems.push(e),s.onSelectionChanged&&s.onSelectionChanged(e,"added")},s.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},s.isItemSelected=function(e){return!!s.allowSelection&&s.selectedItems.filter(function(t){return t.id==e.id}).length>0},s.setSelectedItems(o||[]),s}return s(t,e),t.prototype.updateItemState=function(){var e=this;this.actions.forEach(function(t){var r=e.isItemSelected(t);t.active=r,t.visible=!e.hideSelectedItems||!r})},t.prototype.setSelectedItems=function(e){var t=this;this.selectedItems=e,this.updateItemState(),this.isEmpty=0===this.renderedActions.filter(function(e){return t.isItemVisible(e)}).length},t.prototype.initFocusedItem=function(){var e=this;this.hideSelectedItems||!this.selectedItems.length?this.focusFirstVisibleItem():this.selectedItems.length&&(this.focusedItem=this.visibleItems.filter(function(t){return t.id===e.selectedItems[0].id})[0])},t.prototype.selectFocusedItem=function(){e.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},a([Object(o.property)()],t.prototype,"hideSelectedItems",void 0),t}(i.ListModel)},
1"./src/page.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PageModel",function(){return c});var n,o=r("./src/jsonobject.ts"),i=r("./src/panel.ts"),s=r("./src/utils/cssClassBuilder.ts"),a=r("./src/settings.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},c=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.hasShownValue=!1,r.timeSpent=0,r.locTitle.onGetTextCallback=function(e){return r.canShowPageNumber()&&e?r.num+". "+e:e},r.createLocalizableString("navigationTitle",r,!0),r.createLocalizableString("navigationDescription",r,!0),r}return l(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:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(){return this.survey&&this.survey.showPageTitles},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},t.prototype.onFirstRendering=function(){this.wasShown||e.prototype.onFirstRendering.call(this)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||0==this.visibleIndex},Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={page:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:""};return this.copyCssClasses(t.page,e.page),e.pageTitle&&(t.pageTitle=e.pageTitle),e.pageDescription&&(t.pageDescription=e.pageDescription),e.row&&(t.row=e.row),e.pageRow&&(t.pageRow=e.pageRow),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePageCssClasses(this,t),t},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.cssClasses.page?new s.CssClassBuilder().append(this.cssClasses.page.title).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.cssClasse
1s.page&&this.survey?new s.CssClassBuilder().append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!this.survey.renderedHasHeader&&!(this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString():""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue&&(this.hasShownValue=e,!this.isDesignMode&&!0===e)){for(var t=this.elements,r=0;r<t.length;r++)t[r].isPanel&&t[r].randomizeElements(this.areQuestionsRandomized);this.randomizeElements(this.areQuestionsRandomized)}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var r=[];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:!1,configurable:!0}),t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){this.isRandomizing||(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropInfo},t.prototype.dragDropStart=function(e,t,r){void 0===r&&(r=-1),this.dragDropInfo=new i.DragDropInfo(e,t,r)},t.prototype.dragDropMoveTo=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),!this.dragDropInfo||(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=r,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert()))return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var n=this.dragDropFindRow(this.dragDropInfo.target);this.updateRowsRemoveElementFromRow(this.dragDropInfo.target,n)}return!1}return this.dragDropAddTarget(this.dragDropInfo),!0},t.prototype.correctDragDropInfo=function(e){if(e.destination){var t=e.destination.isPanel?e.destination:null;t&&(e.target.isLayoutTypeSupported(t.getChildrenLayoutType())||(e.isEdge=!0))}},t.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.survey)return!0;var t=null,r=null,n=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var o=e.parent;if(o){var i=o.elements,s=i.indexOf(e);s>-1&&(t=e,r=e,this.dragDropInfo.isBottom?t=s<i.length-1?i[s+1]:null:r=s>0?i[s-1]:null)}}var a={target:this.dragDropInfo.target,source:this.dragDropInfo.source,parent:n,insertAfter:r,insertBefore:t};return this.survey.dragAndDropAllow(a)},t.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,r=this.dragDropInfo.source,n=this.dragDropInfo.destination,o=this.dragDropFindRow(t),i=this.dragDropGetElementIndex(t,o);this.updateRowsRemoveElementFromRow(t,o);var s=[],l=[];if(!e&&o){if(this.isDesignMode&&a.settings.supportCreatorV2){var u=r&&r.parent&&r.parent.dragDropFindRow(r);o.panel.elements[i]&&o.panel.elements[i].startWithNewLine&&o.elements.length>1&&o.panel.elements[i]===n&&(s.push(t),l.push(o.panel.elements[i])),t.startWithNewLine&&o.elements.length>1&&(!o.panel.elements[i]||!o.panel.elements[i].startWithNewLine)&&l.push(t),u&&u.elements[0]===r&&u.elements[1]&&s.push(u.elements[1]),o.elements.length<=1&&s.push(t),t.startWithNewLine&&o.elements.length>1&&o.elements[0]!==n&&l.push(t)}r&&r.parent&&(this.survey.startMovingQuestion(),o.panel==r.parent?(o.panel.dragDropMoveElement(r,t,i),i=-1):r.parent.removeElement(r)),i>-1&&o.panel.addElement(t,i),this.survey.stopMovingQuestion()}return s.map(function(e){e.startWithNewLine=!0}),l.map(function(e){e.startWithNewLine=!1}),this.dragDropInfo=null,e?null:t}},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],o=n.elements[n.elements.length-1];return r+t.panel.elements.indexOf(o)+1},t.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!e||!!e.isPage||this.dragDropCanDropCore(this.dragDropInfo.target,e)},t.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(e,t))return!1;if(this.isDesignMode&&a.settings.supportCreatorV2){if(this.dragDropFindRow(e)!==this.dragDropFindRow(t)&&(!e.startWithNewLine&&t.startWithNewLine||e.startWithNewLine&&!t.startWithNewLine))return!0;var r=this.dragDropFindRow(t);
1if(r&&1==r.elements.length)return!0}return this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},t.prototype.dragDropCanDropCore=function(e,t){return!t||!(this.dragDropIsSameElement(t,e)||e.isPanel&&(e.containsElement(t)||e.getElementByName(t.name)))&&!0},t.prototype.dragDropCanDropNotNext=function(e,t,r,n){if(!t||t.isPanel&&!r||void 0===e.parent||e.parent!==t.parent)return!0;var o=e.parent,i=o.elements.indexOf(e),s=o.elements.indexOf(t);return s<i&&!n&&s--,n&&s++,i<s?s-i>1:i-s>0},t.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},t.prototype.ensureRowsVisibility=function(){e.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach(function(e){return e.ensureRowsVisibility()})},u([Object(o.property)({defaultValue:-1,onSet:function(e,t){return t.onNumChanged(e)}})],t.prototype,"num",void 0),t}(i.PanelModelBase);o.Serializer.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"}],function(){return new c},"panelbase")},
1"./src/panel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragDropInfo",function(){return g}),r.d(t,"QuestionRowModel",function(){return y}),r.d(t,"PanelModelBase",function(){return v}),r.d(t,"PanelModel",function(){return b});var n,o=r("./src/jsonobject.ts"),i=r("./src/helpers.ts"),s=r("./src/base.ts"),a=r("./src/survey-element.ts"),l=r("./src/question.ts"),u=r("./src/questionfactory.ts"),c=r("./src/error.ts"),p=r("./src/settings.ts"),d=r("./src/utils/utils.ts"),h=r("./src/utils/cssClassBuilder.ts"),m=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},g=function(e,t,r){void 0===r&&(r=-1),this.source=e,this.target=t,this.nestedPanelDepth=r},y=function(e){function t(r){var n=e.call(this)||this;return n.panel=r,n._scrollableParent=void 0,n._updateVisibility=void 0,n.idValue=t.getRowId(),n.visible=r.areInvisibleElementsShowing,n.createNewArray("elements"),n.createNewArray("visibleElements"),n}return m(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},t.prototype.startLazyRendering=function(e,t){var r=this;void 0===t&&(t=d.findScrollableParent),this._scrollableParent=t(e),this._scrollableParent===document.documentElement&&(this._scrollableParent=window);var n=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!n,n&&(this._updateVisibility=function(){var t=Object(d.isElementVisible)(e,50);!r.isNeedRender&&t&&(r.isNeedRender=!0,r.stopLazyRendering())},setTimeout(function(){r._scrollableParent&&r._scrollableParent.addEventListener&&r._scrollableParent.addEventListener("scroll",r._updateVisibility),r.ensureVisibility()},10))},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return!0===this.isLazyRenderingValue},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){var e=this.calcVisible();this.setWidth(),this.visible=e},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:!1,configurable:!0}),t.prototype.setWidth=function(){var e,t=this.visibleElements.length;if(0!=t){for(var r=1===this.visibleElements.length,n=0,o=[],i=0;i<this.elements.length;i++){var s=this.elements[i];if(this.setElementMaxMinWidth(s),s.isVisible){s.isSingleInRow=r;var a=this.getElementWidth(s);a&&(s.renderWidth=this.getRenderedWidthFromWidth(a),o.push(s)),this.panel.isDefaultV2Theme||(null==(e=this.panel.parentQuestion)?void 0:e.isDefaultV2Theme)||(s.rightIndent=+(n<t-1)),n++}else s.renderWidth=""}for(var i=0;i<this.elements.length;i++){var s=this.elements[i];!s.isVisible||o.indexOf(s)>-1||(0==o.length?s.renderWidth=(100/t).toFixed(6)+"%":s.renderWidth=this.getRenderedCalcWidth(s,o,t))}}},t.prototype.setElementMaxMinWidth=function(e){e.width&&"string"==typeof e.width&&-1===e.width.indexOf("%")&&(e.minWidth=e.width,e.maxWidth=e.width)},t.prototype.getRenderedCalcWidth=function(e,t,r){for(var n="100%",o=0;o<t.length;o++)n+=" - "+t[o].renderWidth;var i=r-t.length;return i>1&&(n="("+n+")/"+i.toString()),"calc("+n+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return i.Helpers.isNumber(e)?e+"px":e},t.prototype.calcVisible=function(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]);return this.needToUpdateVisibleElements(e)&&this.setPropertyValue("visibleElements",e),e.length>0},t.prototype.needToUpdateVisibleElements=function(e){if(e.length!==this.visibleElements.length)return!0;for(var t=0;t<e.length;t++)if(e[t]!==this.visibleElements[t])return!0;return!1},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return new h.CssClassBuilder().append(this.panel.cssClasse
1s.row).append(this.panel.cssClasses.pageRow,this.panel.isPage).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.rowCounter=100,t}(s.Base),v=function(e){function t(r){void 0===r&&(r="");var n=e.call(this,r)||this;return n.isQuestionsReady=!1,n.questionsValue=[],n.isRandomizing=!1,n.createNewArray("rows"),n.elementsValue=n.createNewArray("elements",n.onAddElement.bind(n),n.onRemoveElement.bind(n)),n.id=t.getPanelId(),n.addExpressionProperty("visibleIf",function(e,t){n.visible=!0===t},function(e){return!n.areInvisibleElementsShowing}),n.addExpressionProperty("enableIf",function(e,t){n.readOnly=!1===t}),n.addExpressionProperty("requiredIf",function(e,t){n.isRequired=!0===t}),n.createLocalizableString("requiredErrorText",n),n.registerPropertyChangedHandlers(["questionTitleLocation"],function(){n.onVisibleChanged.bind(n),n.updateElementCss(!0)}),n.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],function(){n.updateVisibleIndexes()}),n}return m(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.isDesignMode&&this.onVisibleChanged();for(var n=0;n<this.elements.length;n++)this.elements[n].setSurveyImpl(t,r)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged()},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle()&&this.title.length>0||this.showTitle&&this.isDesignMode&&p.settings.allowShowEmptyTitleInDesignMode},enumerable:!1,configurable:!0}),t.prototype.canShowTitle=function(){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&p.settings.allowShowEmptyTitleInDesignMode&&p.settings.allowShowEmptyDescriptionInDesignMode},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].localeChanged()},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,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&"initial"!==this.questionsOrder||"random"===this.questionsOrder},t.prototype.randomizeElements=function(e){if(this.canRandomize(e)&&!this.isRandomizing){this.isRandomizing=!0;for(var t=[],r=this.elements,n=0;n<r.length;n++)t.push(r[n]);var o=i.Helpers.randomizeArray(t);this.setArrayPropertyDirectly("elements",o,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1}},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={panel:{},error:{},row:"",rowMultiple:""};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.row&&(t.row=e.row),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,t),t},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},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:!1,configurable:!0}),t.prototype.getValidName=function(e){return e?e.trim():e},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.getElementByName=function(e){for(var t=this.elements,r=0;r<t.length;r++){var n=t[r];if(n.name==e)return n;var o=n.getPanel();if(o){var i=o.getElementByName(e);if(i)return i}}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];if(!n.isEmpty()){var o=n.getValueName();if(e[o]=n.value,this.data){var i=this.data.getComment(o);i&&(e[o+p.settings.commentPrefix]=i)}}}return e},t.prototype.getDisplayValue=function(e){for(var t={},r=this.questions,n=0;n<r.length;n++){var o=r[n];o.isEmpty()||(t[e?o.title:o.getValueName()]=o.getDisplayValue(e))}return t},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],o=this.data.getComment(n.getValueName());o&&(e[n.getValueName()]=o)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return this.elementsValue},enumerable:!1,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;var n=r.getPanel();if(n&&n.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:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(t,r){e.prototype.searchText.call(this,t,r);for(var n=0;n<this.elements.length;n++)this.elements[n].searchText(t,r)},t.prototype.hasErrors=function(e,t,r){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),r=r||{fireCallback:e,focu
1seOnFirstError:t,firstErrorQuestion:null,result:!1},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.survey&&this.survey.beforeSettingPanelErrors(this,t),this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},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 c.OneAnswerRequiredError(this.requiredErrorText,this)),e.focuseOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=r[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,r=null,n=0;n<t.length;n++)if((r=t[n]).isVisible)if(r.isPanel)r.hasErrorsCore(e);else{var o=r;if(o.isReadOnly)continue;o.hasErrors(e.fireCallback,e)&&(e.focuseOnFirstError&&null==e.firstErrorQuestion&&(e.firstErrorQuestion=o),e.result=!0)}this.hasErrorsInPanels(e),this.updateContainsErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.elements,n=0;n<r.length;n++)if(r[n].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var e=0;e<this.elements.length;e++){var t=this.elements[e];t.setPropertyValue("isVisible",t.isVisible),t.isPanel&&t.updateElementVisibility()}},t.prototype.getFirstQuestionToFocus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),!e&&!t&&this.isCollapsed)return null;for(var r=this.elements,n=0;n<r.length;n++){var o=r[n];if(o.isVisible)if(o.isPanel){var i=o.getFirstQuestionToFocus(e,t);if(i)return i}else{var s=o.getFirstQuestionToFocus(e);if(s)return s}}return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},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,o){for(var i=0;i<t.length;i++){var s=t[i];(!r||s.visible)&&((o&&s.isPanel||!o&&!s.isPanel)&&e.push(s),s.isPanel?s.addElementsToListCore(e,s.elements,r,n,o):n&&this.addElementsToListCore(e,s.getElementsInDesign(!1),r,n,o))}},Object.defineProperty(t.prototype,"isActive",{get:function(){return!this.survey||this.survey.currentPage==this.root},enumerable:!1,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")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,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"},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return a.SurveyElement.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.createRowAndSetLazy=function(e){var t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t},t.prototype.createRow=function(){return new y(this)},t.prototype.onSurveyLoad=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].onSurveyLoad();this.onElementVisibilityChanged(this)},t.prototype.onFirstRendering=function(){e.prototype.onFirstRendering.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onFirstRendering();this.onRowsChanged()},t.prototype.updateRows=function(){if(!this.isLoadingFromJson){for(var e=0;e<this.elements.length;e++)this.elements[e].isPanel&&this.elements[e].updateRows();this.onRowsChanged()}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")}
1,enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach(function(e){e.ensureVisibility()})},t.prototype.onRowsChanged=function(){this.isLoadingFromJson||this.setArrayPropertyDirectly("rows",this.buildRows())},t.prototype.onAddElement=function(e,t){var r=this;e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.updateRowsOnElementAdded(e,t),e.isPanel?this.survey&&this.survey.panelAdded(e,t,this,this.root):this.survey&&this.survey.questionAdded(e,t,this,this.root),this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],function(){r.onElementVisibilityChanged(e)},this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],function(){r.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.markQuestionListDirty(),e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id),this.updateRowsOnElementRemoved(e),this.isRandomizing||(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.isRandomizing||(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(),n.visible&&!n.isNeedRender&&(n.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=[],t=0;t<this.elements.length;t++){var r=this.elements[t],n=0==t||r.startWithNewLine,o=n?this.createRowAndSetLazy(e.length):e[e.length-1];n&&e.push(o),o.addElement(r)}for(var t=0;t<e.length;t++)e[t].updateVisible();return e},t.prototype.isLazyRenderInRow=function(e){return!!this.survey&&!!this.survey.isLazyRendering&&(e>=p.settings.lazyRowsRenderingStartRow||!this.canRenderFirstRows())},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementAdded=function(e,t){if(this.canBuildRows()){var r=p.settings.supportCreatorV2?this.getDragDropInfo():void 0;r||((r=new g(null,e)).target=e,r.isEdge=this.elements.length>1,this.elements.length<2?r.destination=this:(r.isBottom=t>0,0==t?r.destination=this.elements[1]:r.destination=this.elements[t-1])),this.dragDropAddTargetToRow(r,null)}},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e))},t.prototype.updateRowsRemoveElementFromRow=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.elements[0].startWithNewLine=!0,t.updateVisible()):t.index>=0&&t.panel.rows.splice(t.index,1))}},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:!1,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:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&this.survey.isClearValueOnHiddenContainer&&!this.isLoadingFromJson))for(var e=this.questions,t=0;t<e.length;
vendor: 4,344 bytes, line 1
1t++)this.isVisible?e[t].updateValueWithDefaults():e[t].clearValueIfInvisible()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,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)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);for(var r=this.getPanelStartIndex(e),n=r,o=0;o<this.elements.length;o++)n+=this.elements[o].setVisibleIndex(n);return this.isContinueNumbering()&&(e+=n-r),e-t},t.prototype.updateVisibleIndexes=function(){void 0!==this.lastVisibleIndex&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var r=this.elements[t];r.setPropertyValue("isReadOnly",r.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var r=0;r<this.elements.length;r++)this.elements[r].updateElementCss(t)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),!0)},t.prototype.insertElementAfter=function(e,t){var r=this.elements.indexOf(t);r>=0&&this.addElement(e,r+1)},t.prototype.insertElementBefore=function(e,t){var r=this.elements.indexOf(t);r>=0&&this.addElement(e,r)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=-1);var n=u.QuestionFactory.Instance.createQuestion(e,t);return this.addQuestion(n,r)?n:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var t=o.Serializer.createClass("panel");return t.name=e,t},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&&!this.isLoadingFromJson){for(var r=this.elements.slice(),n=0;n<r.length;n++)r[n].runCondition(e,t);this.runConditionCore(e,t)}},t.prototype.onAnyValueChanged=function(e){for(var t=this.elements,r=0;r<t.length;r++)t[r].onAnyValueChanged(e)},t.prototype.checkBindings=function(e,t){for(var r=this.elements,n=0;n<r.length;n++)r[n].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.updateRowsRemoveElementFromRow(e.target,t)},t.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=this.rows,r=0;r<t.length;r++)if(t[r].elements.indexOf(e)>-1)return t[r];for(var r=0;r<this.elements.length;r++){var n=this.elements[r].getPanel();if(n){var o=n.dragDropFindRow(e);if(o)return o}}return null},t.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination||this.dragDropAddTargetToEmptyPanel(e))return!0;var r=e.destination,n=this.dragDropFindRow(r);if(!n)return!0;
1if(p.settings.supportCreatorV2&&this.isDesignMode)if(n.elements.length>1)return this.dragDropAddTargetToExistingRow(e,n,t);else return this.dragDropAddTargetToNewRow(e,n,t);return e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,n,t):this.dragDropAddTargetToExistingRow(e,n,t)},t.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=t.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},t.prototype.dragDropAddTargetToExistingRow=function(e,t,r){var n=t.elements.indexOf(e.destination);if(0==n&&!e.isBottom){if(this.isDesignMode&&p.settings.supportCreatorV2);else if(t.elements[0].startWithNewLine)if(t.index>0)return e.isBottom=!0,e.destination=(t=t.panel.rows[t.index-1]).elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,r);else return this.dragDropAddTargetToNewRow(e,t,r)}var o=-1;r==t&&(o=t.elements.indexOf(e.target)),e.isBottom&&n++;var i=this.findRowByElement(e.source);return(i!=t||i.elements.indexOf(e.source)!=n)&&n!=o&&(o>-1&&(t.elements.splice(o,1),o<n&&n--),t.elements.splice(n,0,e.target),t.updateVisible(),o<0)},t.prototype.dragDropAddTargetToNewRow=function(e,t,r){var n=t.panel.createRowAndSetLazy(t.panel.rows.length);this.isDesignMode&&p.settings.supportCreatorV2&&n.setIsLazyRendering(!1),n.addElement(e.target);var o=t.index;if(e.isBottom&&o++,r&&r.panel==n.panel&&r.index==o)return!1;var i=this.findRowByElement(e.source);return(!i||i.panel!=n.panel||1!=i.elements.length||i.index!=o)&&(t.panel.rows.splice(o,0,n),!0)},t.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,r){var n=e.createRow();n.addElement(t),0==e.elements.length||r?e.rows.push(n):e.rows.splice(0,0,n)},t.prototype.dragDropMoveElement=function(e,t,r){r>e.parent.elements.indexOf(e)&&r--,this.removeElement(e),this.addElement(t,r)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach(function(t){t.needResponsiveWidth()&&(e=!0)}),this.rows.forEach(function(t){t.elements.length>1&&(e=!0)}),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){if(e.prototype.dispose.call(this),this.rows){for(var t=0;t<this.rows.length;t++)this.rows[t].dispose();this.rows.splice(0,this.rows.length)}for(var t=0;t<this.elements.length;t++)this.elements[t].dispose();this.elements.splice(0,this.elements.length)},t.panelCounter=100,f([Object(o.property)({defaultValue:!0})],t.prototype,"showTitle",void 0),f([Object(o.property)({defaultValue:!0})],t.prototype,"showDescription",void 0),t}(a.SurveyElement),b=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.focusIn=function(){r.survey.whenPanelFocusIn(r)},r.createNewArray("footerActions"),r.registerPropertyChangedHandlers(["width"],function(){r.parent&&r.parent.elementWidthChanged(r)}),r.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],function(){r.onIndentChanged()}),r}return m(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(t){return(void 0===t&&(t=!1),t)?this.parent?this.parent.getSurvey(t):null:e.prototype.getSurvey.call(this,t)},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onIndentChanged()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.onIndentChanged()},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber",!1)},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no","")},enumerable:!1,configurable:!0}),t.prototype.setNo=function(e){this.setPropertyValue("no",i.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex()))},t.prototype.beforeSetVisibleIndex=function(e){var t=-1;return this.showNumber&&(this.isDesignMode||!this.locTitle.isEmpty)&&(t=e),this.setPropertyValue("visibleIndex",t),this.setNo(t),t<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"==this.showQuestionNumbers?-1:"onpanel"==this.showQuestionNumbers?0:e},t.prototype.isContinueNumbering=function(){return"off"!=this.showQuestionNumbers&&"onpanel"!=this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null==this.survey||this.isLoadingFromJson||this.survey.panelVisibilityChanged(this,this.isVisible)},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,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){return this.getPropertyValue("innerPaddingLeft","")},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.onIndentChanged=function(){this.getSurvey()&&(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"";var t=this.survey.css;return t&&t.question.indent?e*t.question.indent+"px":""},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach(function(e){(e instanceof l.Question||e instanceof t)&&e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbarCss",{get:function(){var e;return this.footerToolbarCssValue||(null==(e=this.cssClasses.panel)?void 0:e.footer)},set:function(e){this.footerToolbarCssValue=e},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e,t=this;if(!this.footerToolbarValue){var r=this.footerActions;this.hasEditButton&&r.push({id:"cancel-preview",title:this.survey.editText,innerCss:this.survey.cssNavigationEdit,action:function(){t.cancelPreview()}}),r=this.onGetFooterActionsCallback?this.onGetFooterActionsCallback():null==(e=this.survey)?void 0:e.getUpdatedPanelFooterActions(this,r),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions),this.footerToolbarValue.containerCss=this.footerToolbarCss,this.footerToolbarValue.setItems(r)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!!this.survey&&"preview"===this.survey.state&&1===this.depth},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return new h.CssClassBuilder().append(this.cssClasses.panel.title).append(this.cssClasses.panel.titleExpandable,"default"!==this.state).append(this.cssClasses.panel.titleExpanded,this.isExpanded).append(this.cssClasses.panel.titleCollapsed,this.isCollapsed).append(this.cssClasses.panel.titleDisabled,this.isReadOnly).append(this.cssClasses.panel.titleOnError,this.containsErrors).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){var t=new h.CssClassBuilder().append(this.cssClasses.error.root);return t.append("panel-error-root",t.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return!this.startWithNewLine||e.prototype.needResponsiveWidth.call(this)},t.prototype.getContainerCss=function(){return new h.CssClassBuilder().append(this.cssClasses.panel.container).append(this.cssClasses.panel.withFrame,this.hasFrameV2).append(this.cssClasses.panel.nested,!!((this.parent&&this.parent.isPanel||!this.isSingleInRow)&&!this.isDesignMode)).append(this.cssClasses.panel.collapsed,!!this.isCollapsed).append(this.cssClasses.panel.expanded,!!this.isExpanded).append(this.cssClasses.panel.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t}(v);o.Serializer.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0},"visibleIf:condition","enableIf:condition","requiredIf:condition","readOnly:boolean",{name:"questionTitleLocation",default:"default",choices:["default","top","bottom","left","hidden"]},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]}],function(){return new v}),o.Serializer.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},"isRequired:switch",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},"width",{name:"minWidth",default:"auto"},{name:"maxWidth",default:p.settings.maxWidth},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3]},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},"showNumber:boolean",{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},"questionStartIndex",{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],function(){return new b},"panelbase"),u.ElementFactory.Instance.registerElement("panel",function(e){return new b(e)})},
1"./src/popup-dropdown-view-model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupDropdownViewModel",function(){return u});var n,o=r("./src/jsonobject.ts"),i=r("./src/utils/popup.ts"),s=r("./src/popup-view-model.ts"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},u=function(e){function t(t,r){var n=e.call(this,t)||this;return n.targetElement=r,n.isAutoScroll=!0,n.scrollEventCallBack=function(){n.isAutoScroll?n.isAutoScroll=!1:n.hidePopup()},n.model.onRecalculatePosition.add(function(e,t){n.updatePosition(t.isResetHeight)}),n}return a(t,e),t.prototype._updatePosition=function(){if(this.targetElement){var e=this.targetElement.getBoundingClientRect(),t=this.container.children[0],r=t.children[0],n=t.children[0].querySelector(".sv-popup__scrolling-content"),o=window.getComputedStyle(r),s=parseFloat(o.marginLeft)||0,a=parseFloat(o.marginRight)||0,l=r.offsetHeight-n.offsetHeight+n.scrollHeight,u=r.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=e.width+"px");var c=this.model.verticalPosition,p=this.getActualHorizontalPosition();window&&(l=Math.ceil(Math.min(l,.9*window.innerHeight,window.visualViewport.height)),c=i.PopupUtils.updateVerticalPosition(e,l,this.model.verticalPosition,this.model.showPointer,window.innerHeight)),this.popupDirection=i.PopupUtils.calculatePopupDirection(c,p);var d=i.PopupUtils.calculatePosition(e,l,u+s+a,c,p,this.showHeader,this.model.positionMode);if(window){var h=i.PopupUtils.updateVerticalDimensions(d.top,l,window.innerHeight);h&&(this.height=h.height+"px",d.top=h.top);var m=i.PopupUtils.updateHorizontalDimensions(d.left,u,window.innerWidth,p,this.model.positionMode,{left:s,right:a});m&&(this.width=m.width?m.width+"px":void 0,d.left=m.left)}this.left=d.left+"px",this.top=d.top+"px",this.showHeader&&(this.pointerTarget=i.PopupUtils.calculatePointerTarget(e,d.top,d.left,c,p,s,a)),this.pointerTarget.top+="px",this.pointerTarget.left+="px"}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;return document&&"rtl"==document.defaultView.getComputedStyle(document.body).direction&&("left"===this.model.horizontalPosition?e="right":"right"===this.model.horizontalPosition&&(e="left")),e},t.prototype.hidePopup=function(){e.prototype.hidePopup.call(this),this.isAutoScroll=!0},t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--show-
1pointer",!this.isOverlay&&this.showHeader).append("sv-popup--".concat(this.popupDirection),!this.isOverlay&&this.showHeader)},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.updateOnShowing=function(){this.prevActiveElement=document.activeElement,this.isOverlay?(this.top=null,this.left=null,this.height=null,this.width=null,this.minWidth=null):this.updatePosition(!0,!1),this.switchFocus(),window.addEventListener("scroll",this.scrollEventCallBack)},t.prototype.updatePosition=function(e,t){var r=this;void 0===t&&(t=!0),e&&(this.height="auto"),t?setTimeout(function(){r._updatePosition()},1):this._updatePosition()},t.prototype.updateOnHiding=function(){e.prototype.updateOnHiding.call(this),window.removeEventListener("scroll",this.scrollEventCallBack),this.isDisposed||(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},l([Object(o.property)({defaultValue:"left"})],t.prototype,"popupDirection",void 0),l([Object(o.property)({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(s.PopupBaseViewModel)},
1"./src/popup-modal-view-model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupModalViewModel",function(){return s});var n,o=r("./src/popup-view-model.ts"),i=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t){return e.call(this,t)||this}return i(t,e),t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var t=this;e.prototype.createFooterActionBar.call(this),this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply",action:function(){t.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){(!this.model.onApply||this.model.onApply())&&this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(t){("Escape"===t.key||27===t.keyCode)&&this.model.onCancel(),e.prototype.onKeyDown.call(this,t)},t}(o.PopupBaseViewModel)},
1"./src/popup-survey.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupSurveyModel",function(){return u}),r.d(t,"SurveyWindowModel",function(){return c});var n,o=r("./src/base.ts"),i=r("./src/survey.ts"),s=r("./src/jsonobject.ts"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},u=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.closeOnCompleteTimeout=0,r?n.surveyValue=r:n.surveyValue=n.createSurvey(t),n.surveyValue.showTitle=!1,"undefined"!=typeof document&&(n.windowElement=document.createElement("div")),n.survey.onComplete.add(function(e,t){n.onSurveyComplete()}),n.registerPropertyChangedHandlers(["isShowing"],function(){n.showingChangedCallback&&n.showingChangedCallback()}),n.registerPropertyChangedHandlers(["isExpanded"],function(){n.onExpandedChanged()}),n.width=new o.ComputedUpdater(function(){return n.survey.width}),n.width=n.survey.width,n.updateCss(),n.onCreating(),n}return a(t,e),t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,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.getPropertyValue("isExpanded",!1)},set:function(e){this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitle",{get:function(){return this.getPropertyValue("cssHeaderTitle","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e+="px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(this.css&&this.css.window){var e=this.css.window;this.setPropertyValue("cssRoot",e.root),this.setPropertyValue("cssBody",e.body);var t=e.header;t&&(this.setPropertyValue("cssHeaderRoot",t.root),this.setPropertyValue("cssHeaderTitle",t.title),this.updateCssButton())}},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new i.SurveyModel(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.hide();else{var e=this,t=null;t="undefined"!=typeof window?window.setInterval(function(){e.hide(),"undefined"!=typeof window&&window.clearInterval(t)},1e3*this.closeOnCompleteTimeout):0}},l([Object(s.property)()],t.prototype,"width",void 0),t}(o.Base),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t}(u)},
1"./src/popup-utils.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"createPopupModalViewModel",function(){return s}),r.d(t,"createPopupViewModel",function(){return a});var n=r("./src/popup.ts"),o=r("./src/popup-dropdown-view-model.ts"),i=r("./src/popup-modal-view-model.ts");function s(e){var t=new n.PopupModel(e.componentName,e.data,"top","left",!1,!0,e.onCancel,e.onApply,e.onHide,e.onShow,e.cssClass,e.title);t.displayMode=e.displayMode||"popup";var r=new i.PopupModalViewModel(t);return r.initializePopupContainer(),r}function a(e,t){return e.isModal?new i.PopupModalViewModel(e):new o.PopupDropdownViewModel(e,t)}},
1"./src/popup-view-model.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FOCUS_INPUT_SELECTOR",function(){return c}),r.d(t,"PopupBaseViewModel",function(){return p});var n,o=r("./src/base.ts"),i=r("./src/jsonobject.ts"),s=r("./src/utils/cssClassBuilder.ts"),a=r("./src/actions/container.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},c='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not([tabindex^="-"])',p=function(e){function t(t){var r=e.call(this)||this;return r.model=t,r}return l(t,e),t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return new s.CssClassBuilder().append(this.model.cssClass).append("sv-popup--".concat(this.model.displayMode),this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new a.ActionContainer,this.footerToolbar.updateCallback=function(t){e.footerToolbarValue.actions.forEach(function(e){return e.cssClasses={}})},this.footerToolbarValue.addAction({id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--cancel",action:function(){e.cancel()}})},t.prototype.setupModel=function(e){var t=this;this.model&&this.model.unregisterPropertyChangedHandlers(["isVisible"],"PopupBaseViewModel"),this._model=e;var r=function(){e.isVisible||t.updateOnHiding(),t.isVisible=e.isVisible};e.registerPropertyChangedHandlers(["isVisible"],r,"PopupBaseViewModel"),r()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return"overlay"===this.model.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.createFooterActionBar(),this.footerToolbarValue}
1,enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){"Tab"===e.key||9===e.keyCode?this.trapFocus(e):("Escape"===e.key||27===e.keyCode)&&this.hidePopup()},t.prototype.trapFocus=function(e){var t=this.container.querySelectorAll(c),r=t[0],n=t[t.length-1];e.shiftKey?document.activeElement===r&&(n.focus(),e.preventDefault()):document.activeElement===n&&(r.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent&&this.focusFirstInput()},t.prototype.updateOnShowing=function(){this.prevActiveElement=document.activeElement,this.isOverlay&&(this.top=null,this.left=null,this.height=null,this.width=null,this.minWidth=null),this.switchFocus()},t.prototype.updateOnHiding=function(){this.prevActiveElement&&this.prevActiveElement.focus()},t.prototype.focusFirstInput=function(){var e=this;setTimeout(function(){if(e.container){var t=e.container.querySelector(e.model.focusFirstInputSelector||c);t?t.focus():e.container.children[0].focus()}},100)},t.prototype.clickOutside=function(){this.hidePopup()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.unmountPopupContainer(),this.container=void 0,this.model.onVisibilityChanged.clear(),this.model.onRecalculatePosition.clear()},t.prototype.initializePopupContainer=function(){if(!this.container){var e=document.createElement("div");this.container=e}document.body.appendChild(this.container)},t.prototype.unmountPopupContainer=function(){this.container.remove()},u([Object(i.property)({defaultValue:"0px"})],t.prototype,"top",void 0),u([Object(i.property)({defaultValue:"0px"})],t.prototype,"left",void 0),u([Object(i.property)({defaultValue:"auto"})],t.prototype,"height",void 0),u([Object(i.property)({defaultValue:"auto"})],t.prototype,"width",void 0),u([Object(i.property)({defaultValue:"auto"})],t.prototype,"minWidth",void 0),u([Object(i.property)({defaultValue:!1})],t.prototype,"isVisible",void 0),t}(o.Base)},
1"./src/popup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupModel",function(){return l}),r.d(t,"createDialogOptions",function(){return u});var n,o=r("./src/base.ts"),i=r("./src/jsonobject.ts"),s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},l=function(e){function t(t,r,n,o,i,s,a,l,u,c,p,d){void 0===n&&(n="bottom"),void 0===o&&(o="left"),void 0===i&&(i=!0),void 0===s&&(s=!1),void 0===a&&(a=function(){}),void 0===l&&(l=function(){return!0}),void 0===u&&(u=function(){}),void 0===c&&(c=function(){}),void 0===p&&(p=""),void 0===d&&(d="");var h=e.call(this)||this;return h.focusFirstInputSelector="",h.onVisibilityChanged=h.addEvent(),h.onRecalculatePosition=h.addEvent(),h.contentComponentName=t,h.contentComponentData=r,h.verticalPosition=n,h.horizontalPosition=o,h.showPointer=i,h.isModal=s,h.onCancel=a,h.onApply=l,h.onHide=u,h.onShow=c,h.cssClass=p,h.title=d,h}return s(t,e),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){if(this.isVisible!==e)if(this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e}),this.isVisible){var t=this.contentComponentData.model;t&&t.refresh&&t.refresh(),this.onShow()}else this.onHide()},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},a([Object(i.property)()],t.prototype,"contentComponentName",void 0),a([Object(i.property)()],t.prototype,"contentComponentData",void 0),a([Object(i.property)({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),a([Object(i.property)({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"showPointer",void 0),a([Object(i.property)({defaultValue:!1})],t.prototype,"isModal",void 0),a([Object(i.property)({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onCancel",void 0),a([Object(i.property)({defaultValue:function(){return!0}})],t.prototype,"onApply",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onHide",void 0),a([Object(i.property)({defaultValue:function(){}})],t.prototype,"onShow",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"cssClass",void 0),a([Object(i.property)({defaultValue:""})],t.prototype,"title",void 0),a([Object(i.property)({defaultValue:"popup"})],t.prototype,"displayMode",void 0),a([Object(i.property)({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(o.Base);function u(e,t,r,n,o,i,s,a,l){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===l&&(l="popup"),{componentName:e,data:t,onApply:r,onCancel:n,onHide:o,onShow:i,cssClass:s,title:a,displayMode:l}}},
1"./src/question.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Question",function(){return v});var n,o=r("./src/helpers.ts"),i=r("./src/jsonobject.ts"),s=r("./src/survey-element.ts"),a=r("./src/error.ts"),l=r("./src/validator.ts"),u=r("./src/localizablestring.ts"),c=r("./src/conditions.ts"),p=r("./src/questionCustomWidgets.ts"),d=r("./src/settings.ts"),h=r("./src/rendererFactory.ts"),m=r("./src/utils/cssClassBuilder.ts"),f=r("./src/utils/utils.ts"),g=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),y=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},v=function(e){function t(r){var n=e.call(this,r)||this;return n.customWidgetData={isNeedRender:!0},n.isReadyValue=!0,n.onReadyChanged=n.addEvent(),n.focusIn=function(){n.survey.whenQuestionFocusIn(n)},n.isRunningValidatorsValue=!1,n.isValueChangedInSurvey=!1,n.allowNotifyValueChanged=!0,n.id=t.getQuestionId(),n.onCreating(),n.createNewArray("validators",function(e){e.errorOwner=n}),n.addExpressionProperty("visibleIf",function(e,t){n.visible=!0===t},function(e){return!n.areInvisibleElementsShowing}),n.addExpressionProperty("enableIf",function(e,t){n.readOnly=!1===t}),n.addExpressionProperty("requiredIf",function(e,t){n.isRequired=!0===t}),n.createLocalizableString("commentText",n,!0,"otherItemText"),n.locTitle.onGetDefaultTextCallback=function(){return n.name},n.locTitle.storeDefaultText=!0,n.createLocalizableString("requiredErrorText",n),n.registerPropertyChangedHandlers(["width"],function(){n.updateQuestionCss(),n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["isRequired"],function(){n.locTitle.strChanged(),n.clearCssClasses()}),n.registerPropertyChangedHandlers(["indent","rightIndent"],function(){n.onIndentChanged()}),n.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],function(){n.initCommentFromSurvey()}),n.registerPropertyChangedHandlers(["isMobile"],function(){n.onMobileChanged()}),n}return g(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===d.settings.readOnlyCommentRenderMode},t.prototype.createLocTitleProperty=function(){var t=this,r=e.prototype.createLocTitleProperty.call(this);return r.onGetTextCallback=function(e){return(e||(e=t.name),t.survey)?t.survey.getUpdatedQuestionTitle(t,e):e},this.locProcessedTitle=new u.LocalizableString(this,!0),this.locProcessedTitle.sharedData=r,r},t.prototype.getSurvey=function(t){return(void 0===t&&(t=!1),t)?this.parent?this.parent.getSurvey(t):null:this.onGetSurvey?this.onGetSurvey():e.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isRequired?"true":"false"}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.errors.length>0?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.errors.length>0?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},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.notifySurveyVisibilityChanged())},enumerable:!1,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,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(this.visible||this.areInvisibleElementsShowing)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:+!this.isEmpty(),requiredQuestionCount:+!!this.isRequired,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(this.isDesignMode||this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t),this.survey&&(this.survey.questionCreated(this),!0!==r&&this.runConditions())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.delete(),this.setPropertyValue("parent",e),this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()}
1,enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return"hidden"===this.titleLocation},t.prototype.notifySurveyVisibilityChanged=function(){this.survey&&!this.isLoadingFromJson&&(this.survey.questionVisibilityChanged(this,this.isVisible),this.isClearValueOnHidden&&(this.visible||this.clearValueIfInvisible(),this.isVisible&&this.updateValueWithDefaults()))},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";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:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.survey?this.survey.questionErrorLocation:"top"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return d.settings.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return e.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var t=this;if(e.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout(function(){t.focus()},1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentOrOtherPlaceholder",{get:function(){return this.otherPlaceholder||this.commentPlaceholder}
1,enumerable:!1,configurable:!0}),t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return this.isCustomWidgetRequested||this.customWidgetValue||(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=p.CustomWidgetCollection.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElement=function(){this.commentElement&&this.autoGrowComment&&Object(f.increaseHeightByContent)(this.commentElement)},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElement()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElement=document.getElementById(this.id)&&document.getElementById(this.id).querySelector("textarea")||null,this.updateCommentElement()),this.checkForResponsiveness(e))},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElement=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locProcessedTitle.textOrHtml||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var 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},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(e){return new m.CssClassBuilder().append(this.isFlowLayout&&!this.isDesignMode?e.flowRoot:e.mainRoot).append(e.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(e.hasError,this.errors.length>0).append(e.small,!this.width).append(e.answered,this.isAnswered).append(e.expanded,!!this.isExpanded).append(e.collapsed,!!this.isCollapsed).append(e.withFrame,this.hasFrameV2).append(e.nested,(this.hasParent||!this.isSingleInRow)&&this.isDefaultV2Theme).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")}
1,enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return new m.CssClassBuilder().append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return new m.CssClassBuilder().append(e.content).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(e){return new m.CssClassBuilder().append(e.title).append(e.titleExpandable,"default"!==this.state).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isReadOnly).append(e.titleOnError,this.containsErrors).append(e.titleOnAnswer,!this.containsErrors&&this.isAnswered).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.cssClasses.description},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription","")},t.prototype.getCssDescription=function(e){return new m.CssClassBuilder().append(this.cssClasses.descriptionUnderInput,this.hasDescriptionUnderInput).append(this.cssClasses.description,this.hasDescriptionUnderTitle).toString()},t.prototype.getIsErrorsModeTooltip=function(){return e.prototype.getIsErrorsModeTooltip.call(this)&&!this.customWidget},t.prototype.showErrorOnCore=function(e){return!this.isErrorsModeTooltip&&!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.errorLocation===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsTooltipErrorSupportedByParent=function(){return this.parentQuestion?this.parentQuestion.getIsTooltipErrorInsideSupported():e.prototype.getIsTooltipErrorSupportedByParent.call(this)},Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme&&!(this.hasParent&&this.getIsTooltipErrorSupportedByParent())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"top"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"bottom"===this.errorLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return new m.CssClassBuilder().append(e.error.root).append(e.error.outsideQuestion,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.error.belowQuestion,this.showErrorsBelowQuestion).append(e.error.aboveQuestion,this.showErrorsAboveQuestion).append(e.error.tooltip,this.isErrorsModeTooltip).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.getRootCss=function(){return new m.CssClassBuilder().append(this.cssRoot).append(this.cssClasses.disabled,this.isReadOnly).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),t&&this.updateQuestionCss(!0),this.onIndentChanged()},t.prototype.updateQuestionCss=function(e){!this.isLoadingFromJson&&this.survey&&(!0===e||this.cssClasse
1sValue)&&this.updateElementCssCore(this.cssClasses)},t.prototype.ensureElementCss=function(){this.cssClassesValue||this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){var r=t[this.getCssType()],n=new m.CssClassBuilder().append(e.title).append(t.question.titleRequired,this.isRequired);e.title=n.toString();var o=new m.CssClassBuilder().append(e.root).append(r,this.isRequired&&!!t.question.required);if(null==r)e.root=o.toString();else if("string"==typeof r||r instanceof String)e.root=o.append(r.toString()).toString();else for(var i in e.root=o.toString(),r)e[i]=r[i]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,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)&&this.getSurvey()&&this.cssClasses&&this.cssClasses.indent?e*this.cssClasses.indent+"px":""},t.prototype.focus=function(e){if(void 0===e&&(e=!1),!this.isDesignMode){this.survey&&(this.expandAllPanels(this.parent),this.survey.scrollElementToTop(this,this,null,this.id));var t=e?this.getFirstErrorInputElementId():this.getFirstInputElementId();s.SurveyElement.FocusElement(t)&&this.fireCallback(this.focusCallback)}},t.prototype.expandAllPanels=function(e){e&&e.parent&&(e.isCollapsed&&e.expand(),this.expandAllPanels(e.parent))},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.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},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")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&(this.setPropertyValue("showCommentArea",e),this.showCommentArea&&(this.hasOther=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){this.supportOther()&&this.showOtherItem!=e&&(this.setPropertyValue("showOtherItem",e),this.showOtherItem&&(this.hasComment=!1),this.hasOtherChanged())}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.parentQuestion&&this.parentQuestion.isReadOnly,r=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||r||t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){var e=d.settings.supportCreatorV2&&this.isDesignMode;return this.isReadOnly||e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),e.prototype.onReadOnlyChanged.call(this)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,t){!this.isDesignMode&&(t||(t={}),t.question=this,this.runConditionCore(e,t),this.isValueChangedDirectly||(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,t)))},Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){if(!this.hasTitle||this.hideNumber)return"";var e=o.Helpers.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedQuestionNo(this,e)),e},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.onIndentChanged(),this.updateQuestionCss(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());o.Helpers.isValueEmpty(e)&&this.isLoadingFromJson||this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValue("comment")}
1,set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueToDataCallback?this.valueToDataCallback(this.value):this.value},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(){void 0!==this.value&&(this.value=void 0),this.comment&&(this.comment=void 0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:o.Helpers.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return!!e&&(Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):!!e.getType&&!!e.onPropertyChanged)},t.prototype.canClearValueAsInvisible=function(){return(!this.isVisible||!this.isParentVisible)&&(!this.page||!this.page.isStarted)&&(!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:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){void 0===e&&(e="onHidden"),"none"!==this.clearIfInvisible&&("onHidden"!==e||"onComplete"!==this.clearIfInvisible)&&("none"!==e||"default"!==this.clearIfInvisible&&"none"!==this.clearIfInvisible)&&this.clearValueIfInvisibleCore()},t.prototype.clearValueIfInvisibleCore=function(){this.canClearValueAsInvisible()&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,t){void 0===t&&(t=void 0);var r=this.calcDisplayValue(e,t);return this.displayValueCallback?this.displayValueCallback(r):r},t.prototype.calcDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var r=this.customWidget.getDisplayValue(this,t);if(r)return r}return(t=void 0==t?this.createValueCopy():t,this.isValueEmpty(t))?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){if(this.isValueExpression(e)){this.defaultValueExpression=e.substring(1);return}this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.autoGrowComment?"none":"both"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(e||(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var r={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(r.questionType=this.getType()),(e.calculations||[]).forEach(function(e){r[e.propertyName]=t[e.propertyName]}),this.hasComment&&(r.isNode=!0,r.data=[{name:0,isComment:!0,title:"Comment",value:d.settings.commentPrefix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),r}},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))}
1,enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return+!!this.isTwoValueEquals(this.value,this.correctAnswer,!d.settings.comparator.caseSensitive,!0)},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){!(this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||!this.isDesignMode&&!this.isEmpty()||this.isEmpty()&&this.isDefaultValueEmpty())&&(!this.isClearValueOnHidden||this.isVisible)&&(this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty()||this.setDefaultValue())},Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){return"none"!==this.clearIfInvisible&&"onComplete"!==this.clearIfInvisible&&("onHidden"===this.clearIfInvisible||!!this.survey&&this.survey.isClearValueOnHidden)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue)},t.prototype.getDefaultRunner=function(e,t){return!e&&t&&(e=new c.ExpressionRunner(t)),e&&(e.expression=t),e},t.prototype.setDefaultValue=function(){var e=this;this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),function(t){e.value=t})},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.setValueAndRunExpression=function(e,t,r,n,o){var i=this;void 0===n&&(n=null),void 0===o&&(o=null);var s=function(e){i.runExpressionSetValue(e,r)};this.runDefaultValueExpression(e,n,o,s)||s(t)},t.prototype.convertFuncValuetoQuestionValue=function(e){return o.Helpers.convertValToQuestionVal(e)},t.prototype.runExpressionSetValue=function(e,t){t(this.convertFuncValuetoQuestionValue(e))},t.prototype.runDefaultValueExpression=function(e,t,r,n){var o=this;return void 0===t&&(t=null),void 0===r&&(r=null),!!e&&!!this.data&&(n||(n=function(e){o.runExpressionSetValue(e,function(e){o.value=e})}),t||(t=this.data.getFilteredValues()),r||(r=this.data.getFilteredProperties()),e&&e.canRun&&(e.onRunComplete=function(e){void 0==e&&(e=o.defaultValue),o.isChangingViaDefaultValue=!0,n(e),o.isChangingViaDefaultValue=!1},e.run(t,r)),!0)},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var t=e.toString().trim();t!==e&&(e=t)===this.comment&&this.setPropertyValueDirectly("comment",e)}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElement())},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators}
1,t.prototype.getSupportedValidators=function(){for(var e=[],t=this.getType();t;){var r=d.settings.supportedValidators[t];if(r)for(var n=r.length-1;n>=0;n--)e.splice(0,0,r[n]);t=i.Serializer.findClass(t).parentName}return e},t.prototype.addSupportedValidators=function(e,t){},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getValueName(),text:this.processedTitle,question:this})},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var r=new i.JsonObject().toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var r=this.errors.length>0,n=this.checkForErrors(!!t&&!0===t.isOnValueChanged);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,n),this.errors=n),this.updateContainsErrors(),r!=n.length>0&&this.updateQuestionCss(),this.isCollapsed&&t&&e&&n.length>0&&this.expand(),n.length>0},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var t=null;t="string"==typeof e||e instanceof String?new a.CustomError(e,this.survey):e,this.errors.push(t)}},t.prototype.removeError=function(e){var t=this.errors,r=t.indexOf(e);-1!==r&&t.splice(r,1)},t.prototype.checkForErrors=function(e){var t=[];return this.isVisible&&this.canCollectErrors()&&this.collectErrors(t,e),t},t.prototype.canCollectErrors=function(){return!this.isReadOnly},t.prototype.collectErrors=function(e,t){if(this.onCheckForErrors(e,t),!(e.length>0)&&this.canRunValidators(t)){var r=this.runValidators();if(r.length>0){e.length=0;for(var n=0;n<r.length;n++)e.push(r[n])}if(this.survey&&0==e.length){var o=this.fireSurveyValidation();o&&e.push(o)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t){var r=this;if(!t&&this.hasRequiredError()){var n=new a.AnswerRequiredError(this.requiredErrorText,this);n.onUpdateErrorTextCallback=function(e){e.text=r.requiredErrorText},e.push(n)}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new l.ValidatorRunner,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){var t=this.isAnswered;this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isAnswered!=t&&this.updateQuestionCss()},t.prototype.isTextValue=function(){return!1},Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.isSurveyInputTextUpdate&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),this.isValueChangedInSurvey||this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged))},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.isSurveyInputTextUpdate&&"text"))},t.prototype.getValidName=function(e){return e?e.trim().replace(/[\{\}]+/g,""):e},t.prototype.updateValueFromSurvey=function(e){e=this.getUnbindValue(e),this.valueFromDataCallback&&(e=this.valueFromDataCallback(e)),this.setQuestionValue(this.valueFromData(e)),this.updateIsAnswered()},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(){this.isValueChangedDirectly=!0},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0);var r=this.isTwoValueEquals(this.questionValue,e);r||this.isChangingViaDefaultValue||this.setValueChangedDirectly(),this.questionValue=e,r||this.onChangeQuestionValue(e),!r&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return this.isVisible&&(this.hasTitle||d.settings.setQuestionVisibleIndexForHiddenTitle)&&(!this.hideNumber||d.settings.setQuestionVisibleIndexForHiddenNumber)||(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data)for(var r=this.bindings.getPropertiesByValueName(e),n=0;n<r.length;n++){var i=r[n];this.isValueEmpty(t)&&o.Helpers.isNumber(this[i])&&(t=0),this[i]=t}},t.prototype.getComponentName=function(){return h.RendererFactory.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.renderAs||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e}
1,enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var t=this;this.needResponsiveness()&&(this.isCollapsed?this.registerPropertyChangedHandlers(["state"],function(){t.isExpanded&&(t.initResponsiveness(e),t.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))},"for-responsiveness"):this.initResponsiveness(e))},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.initResponsiveness=function(e){var t=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var r=this.getObservedElementSelector();if(!r||!e.querySelector(r))return;var n=!1,o=void 0;this.resizeObserver=new ResizeObserver(function(){var i=e.querySelector(r);!o&&t.isDefaultRendering()&&(o=i.scrollWidth),n=!n&&!!Object(f.isContainerVisible)(i)&&t.processResponsiveness(o,Object(f.getElementWidth)(i))}),this.onMobileChangedCallback=function(){setTimeout(function(){var n=e.querySelector(r);t.processResponsiveness(o,Object(f.getElementWidth)(n))},0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.processResponsiveness=function(e,t){if(Math.abs(e-(t=Math.round(t)))>2){var r=this.renderAs;return e>t?this.renderAs=this.getCompactRenderAs():this.renderAs=this.getDesktopRenderAs(),r!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.destroyResizeObserver()},t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,y([Object(i.property)({defaultValue:!1})],t.prototype,"isMobile",void 0),y([Object(i.property)({localizable:!0})],t.prototype,"commentPlaceholder",void 0),y([Object(i.property)({defaultValue:"default"})],t.prototype,"renderAs",void 0),t}(s.SurveyElement);function b(e){return e&&e[0]===d.settings.expressionDisableConversionChar?e.substring(1):e}i.Serializer.addClass("question",[{name:"!name",onSettingValue:function(e,t){return b(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",default:d.settings.minWidth},{name:"maxWidth",default:d.settings.maxWidth},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(!(!t||"off"!==t.showQuestionNumbers))return!1;var r=e?e.survey:null;return!r||"off"!==r.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},{name:"valueName",onSettingValue:function(e,t){return b(t)}},"enableIf:condition","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden"]},"isRequired:switch","requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:switch",{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment"}]),i.Serializer.addAlterNativeClassName("question","questionbase")},
1"./src/questionCustomWidgets.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionCustomWidget",function(){return o}),r.d(t,"CustomWidgetCollection",function(){return i});var n=r("./src/base.ts"),o=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var r=this;this.widgetJson.afterRender&&(e.localeChangedCallback=function(){r.widgetJson.willUnmount&&r.widgetJson.willUnmount(e,t),r.widgetJson.afterRender(e,t)},this.widgetJson.afterRender(e,t))},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return(void 0===t&&(t=void 0),this.widgetJson.getDisplayValue)?this.widgetJson.getDisplayValue(e,t):null},e.prototype.isFit=function(e){return!!this.isLibraryLoaded()&&!!this.widgetJson.isFit&&this.widgetJson.isFit(e)},Object.defineProperty(e.prototype,"canShowInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox&&"customtype"==i.Instance.getActivatedBy(this.name)&&(!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox},set:function(e){this.widgetJson.showInToolbox=e},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||!0==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),e}(),i=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new n.Event}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},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 o(r,e);return this.widgetsValues.push(n),n.init(),this.widgetsActivatedBy[r]=t,n.activatedByChanged(t),this.onCustomWidgetAdded.fire(n,null),n},e.prototype.getActivatedBy=function(e){return this.widgetsActivatedBy[e]||"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}()},
1"./src/question_baseselect.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionSelectBase",function(){return v}),r.d(t,"QuestionCheckboxBase",function(){return b});var n,o=r("./src/jsonobject.ts"),i=r("./src/survey.ts"),s=r("./src/question.ts"),a=r("./src/itemvalue.ts"),l=r("./src/surveyStrings.ts"),u=r("./src/error.ts"),c=r("./src/choicesRestful.ts"),p=r("./src/conditions.ts"),d=r("./src/helpers.ts"),h=r("./src/settings.ts"),m=r("./src/utils/cssClassBuilder.ts"),f=r("./src/utils/utils.ts"),g=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),y=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},v=function(e){function t(t){var r=e.call(this,t)||this;r.otherItemValue=new a.ItemValue("other"),r.dependedQuestions=[],r.noneItemValue=new a.ItemValue(h.settings.selectNoneItemValue),r.isSettingDefaultValue=!1,r.isSettingComment=!1,r.isRunningChoices=!1,r.isFirstLoadChoicesFromUrl=!0,r.isUpdatingChoicesDependedQuestions=!1,r.prevIsOtherSelected=!1;var n=r.createLocalizableString("noneText",r.noneItemValue,!0,"noneItemText");r.noneItemValue.locOwner=r,r.noneItemValue.setLocText(n),r.createItemValues("choices"),r.registerPropertyChangedHandlers(["choices"],function(){r.filterItems()||r.onVisibleChoicesChanged()}),r.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","showNoneItem"],function(){r.onVisibleChoicesChanged()}),r.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],function(){r.updateVisibilityBasedOnChoices()}),r.createNewArray("visibleChoices"),r.setNewRestfulProperty();var o=r.createLocalizableString("otherText",r.otherItemValue,!0,"otherItemText");return r.createLocalizableString("otherErrorText",r,!0,"otherRequiredError"),r.otherItemValue.locOwner=r,r.otherItemValue.setLocText(o),r.choicesByUrl.createItemValue=function(e){return r.createItemValue(e)},r.choicesByUrl.beforeSendRequestCallback=function(){r.onBeforeSendRequest()},r.choicesByUrl.getResultCallback=function(e){r.onLoadChoicesFromUrl(e)},r.choicesByUrl.updateResultCallback=function(e,t){return r.survey?r.survey.updateChoicesFromServer(r,e,t):e},r}return g(t,e),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0;t<this.dependedQuestions.length;t++)this.dependedQuestions[t].choicesFromQuestion="";this.removeFromDependedQuestion(this.getQuestionWithChoices())}
1,t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e){return o.Serializer.createClass(this.getItemValueType(),e)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.comment},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),"none"!==this.choicesOrder&&this.updateVisibleChoices()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(a.ItemValue.locStrsChanged(this.choicesFromUrl),a.ItemValue.locStrsChanged(this.visibleChoices))},Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.hasNone&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem",!1)},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runItemsEnableCondition(t,r),this.runItemsCondition(t,r)},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevCommentValue=void 0,e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||void 0==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),r&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),r},t.prototype.runItemsEnableCondition=function(e,t){var r=this;this.setConditionalEnableChoicesRunner(),a.ItemValue.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,function(e,t){return t&&r.onEnableItemCallBack(e)})&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(this.conditionChoicesVisibleIfRunner||(this.conditionChoicesVisibleIfRunner=new p.C
1onditionRunner(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(this.conditionChoicesEnableIfRunner||(this.conditionChoicesEnableIfRunner=new p.ConditionRunner(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisisbility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(t,r){return e.survey.getChoiceItemVisibility(e,t,r)}:null},t.prototype.runConditionsForItems=function(e,t){this.filteredChoicesValue=[];var r=this.changeItemVisisbility();return a.ItemValue.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing,function(e,t){return r?r(e,t):t})},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,t){return e===t.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new c.ChoicesRestful},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.commentValue?this.commentValue:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.commentValue},t.prototype.selectOtherValueFromComment=function(e){this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(t){if(this.autoOtherMode){this.prevCommentValue=void 0;var r=this.isOtherSelected;(!r&&t||r&&!t)&&this.selectOtherValueFromComment(!!t)}this.hasComment||this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.isSettingComment||t==this.commentValue||(this.isSettingComment=!0,this.commentValue=t,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1),this.updateChoicesDependedQuestions()},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.prevCommentValue=void 0},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t),this.prevCommentValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){this.setPropertyValue("renderedValue",e);var e=this.rendredValueToData(e);this.isTwoValueEquals(e,this.value)||(this.value=e)},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(t,r,n){if((void 0===r&&(r=!0),void 0===n&&(n=!0),!(this.isLoadingFromJson||this.isTwoValueEquals(this.value,t)))&&(e.prototype.setQuestionValue.call(this,t,r),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),!this.hasComment&&n)){var o=this.isOtherSelected;if(o&&this.prevCommentValue){var i=this.prevCommentValue;this.prevCommentValue=void 0,this.comment=i}!o&&this.comment&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevCommentValue=this.comment),this.comment="")}},t.prototype.setNewValue=function(t){this.resetSelectedItemValues(),t=this.valueFromData(t),(this.choicesByUrl.isRunning||this.choicesByUrl.isWaitingForParameters)&&this.isValueEmpty(t)||(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var r=a.ItemValue.getItemByValue(this.activeChoices,t);return r?r.value:e.prototype.valueFromData.call(this,t)}
1,t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.comment=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.getQuestionComment()&&(e=this.getQuestionComment()),e},t.prototype.updateSelectedItemValues=function(){var e=this;if(this.survey&&!this.isEmpty()&&0===this.choices.length){var t=this.getIsMultipleValue();this.survey.getChoiceDisplayValue({question:this,values:t?this.value:[this.value],setItems:function(r){r&&r.length&&(t?e.selectedItemValues=r.map(function(t,r){return new a.ItemValue(e.value[r],t)}):e.selectedItemValues=new a.ItemValue(e.value,r[0]))}})}},t.prototype.resetSelectedItemValues=function(){this.selectedItemValues=null},t.prototype.hasUnknownValue=function(e,t,r,n){if(void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=!1),!n&&this.isValueEmpty(e)||t&&e==this.otherItem.value||this.hasNone&&e==this.noneItem.value)return!1;var o=r?this.getFilteredChoices():this.activeChoices;return null==a.ItemValue.getItemByValue(o,e)},t.prototype.isValueDisabled=function(e){var t=a.ItemValue.getItemByValue(this.getFilteredChoices(),e);return!!t&&!t.isEnabled},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var t=this.getQuestionWithChoices();t&&t.removeFromDependedQuestion(this),this.setPropertyValue("choicesFromQuestion",e)},enumerable:!1,configurable:!0}),t.prototype.addIntoDependedQuestion=function(e){!e||e.dependedQuestions.indexOf(this)>-1||e.dependedQuestions.push(this)},t.prototype.removeFromDependedQuestion=function(e){if(e){var t=e.dependedQuestions.indexOf(this);t>-1&&e.dependedQuestions.splice(t,1)}},Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty",!1)},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")}
1,set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,r=0;r<t.length;r++)t[r].isEnabled&&e.push(t[r]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson){var e=[],t=this.calcVisibleChoices();t||(t=[]);for(var r=0;r<t.length;r++)e.push(t[r]);this.setPropertyValue("visibleChoices",e)}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.hasNone&&!this.hasOther&&"none"==this.choicesOrder},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,t){t&&(this.newItemValue||(this.newItemValue=new a.ItemValue("newitem")),this.canShowOptionItem(this.newItemValue,t,!1)&&e.push(this.newItemValue)),this.supportNone()&&this.canShowOptionItem(this.noneItem,t,this.hasNone)&&e.push(this.noneItem),this.supportOther()&&this.canShowOptionItem(this.otherItem,t,this.hasOther)&&e.push(this.otherItem)},t.prototype.canShowOptionItem=function(e,t,r){var n=t&&(!this.canShowOptionItemCallback||this.canShowOptionItemCallback(e))||r;return this.canSurveyChangeItemVisibility()?this.changeItemVisisbility()(e,n):n},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.hasNone:e!==this.newItemValue},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return h.settings.supportCreatorV2&&h.settings.showDefaultItemsInCreatorV2&&this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var n=e.prototype.getPlainData.call(this,t);if(n){var o=Array.isArray(this.value)?this.value:[this.value];n.isNode=!0,n.data=(n.data||[]).concat(o.map(function(e,n){var o=a.ItemValue.getItemByValue(r.visibleChoices,e),i={name:n,title:"Choice",value:e,displayValue:r.getChoicesDisplayValue(r.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return o&&(t.calculations||[]).forEach(function(e){i[e.propertyName]=o[e.propertyName]}),r.isOtherSelected&&r.otherItemValue===o&&(i.isOther=!0,i.displayValue=r.comment),i}))}return n},t.prototype.getDisplayValueCore=function(e,t){return this.getChoicesDisplayValue(this.visibleChoices,t)},t.prototype.getDisplayValueEmpty=function(){return a.ItemValue.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.comment?this.comment:this.locOtherText.textOrHtml;var r=a.ItemValue.getTextOrHtmlByValue(e,t);return""==r&&t?t:r},t.prototype.getDisplayArrayValue=function(e,t,r){for(var n=this.visibleChoices,o=[],i=0;i<t.length;i++){var s=r?r(i):t[i],a=this.getChoicesDisplayValue(n,s);a&&o.push(a)}return o.join(", ")},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getQuestionWithChoices();return e?(this.addIntoDependedQuestion(e),this.getChoicesFromQuestion(e)):this.choicesFromUrl?this.choicesFromUrl:this.getChoices()}
1,enumerable:!1,configurable:!0}),t.prototype.getQuestionWithChoices=function(){if(!this.choicesFromQuestion||!this.survey)return null;var e=this.survey.getQuestionByName(this.choicesFromQuestion);return e&&e.visibleChoices&&e!==this?e:null},t.prototype.getChoicesFromQuestion=function(e){for(var t=[],r="selected"==this.choicesFromQuestionMode||"unselected"!=this.choicesFromQuestionMode&&void 0,n=e.visibleChoices,o=0;o<n.length;o++)if(!this.isBuiltInChoice(n[o],e)){if(void 0===r){t.push(n[o]);continue}var i=e.isItemSelected(n[o]);(i&&r||!i&&!r)&&t.push(n[o])}return t},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;e&&0!=e.length||(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t],this))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isHeadChoice=function(e,t){return!1},t.prototype.isFootChoice=function(e,t){return e===t.noneItem||e===t.otherItem||e===t.newItemValue},t.prototype.isBuiltInChoice=function(e,t){return this.isHeadChoice(e,t)||this.isFootChoice(e,t)},t.prototype.getChoices=function(){return this.choices},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||o.Serializer.findProperty(this.getType(),e).visible},t.prototype.onCheckForErrors=function(t,r){var n=this;if(e.prototype.onCheckForErrors.call(this,t,r),this.hasOther&&this.isOtherSelected&&!this.comment){var o=new u.OtherEmptyError(this.otherErrorText,this);o.onUpdateErrorTextCallback=function(e){e.text=n.otherErrorText},t.push(o)}},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(t){e.prototype.setSurveyCore.call(this,t),t&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||!this.choicesByUrl.isEmpty&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),e.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),t!=this.getValueName()&&this.runChoicesByUrl(),t&&t==this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.updateValueFromSurvey=function(t){var r="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(t)&&!this.getHasOther(t)?(r=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)):r=this.data.getComment(this.getValueName())),e.prototype.updateValueFromSurvey.call(this,t),r&&this.setNewComment(r)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.runChoicesByUrl=function(){if(this.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;e||(e=this.survey),e&&(this.isReadyValue=this.isChoicesLoaded||this.choicesByUrl.isEmpty,this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0!==h.settings.disableOnGettingChoicesFromWeb||this.isReadOnly||(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){if(this.enableOnLoadingChoices&&(this.readOnly=!1),!this.isReadOnly){var t=[];this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error),this.errors=t}var r=null,n=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,n=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value),this.isFirstLoadChoicesFromUrl=!1;var o=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,n);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(r=[],a.ItemValue.setData(r,e)),r)for(var i=0;i<r.length;i++)r[i].locOwner=this;if(this.choicesFromUrl=r,this.filterItems(),this.onVisibleChoicesChanged(),r){var s=this.updateCachedValueForUrlRequests(o,r);if(s&&!this.isReadOnly){var l=!this.isTwoValueEquals(this.value,s.value);try{this.isValueEmpty(s.value)||(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=l,l?this.value=s.value:this.setQuestionValue(s.value)}finally{this.allowNotifyValueChanged=!0}}}this.choicesLoaded()},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}var o=!t||!this.hasUnknownValue(e);return{value:e,isExists:o}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++){var o=this.updateCachedValueForUrlRequests(e[n],t);
1if(o&&!this.isValueEmpty(o.value)){var i=o.value,s=a.ItemValue.getItemByValue(t,o.value);s&&(i=s.value),r.push(i)}}return{value:r}}var l=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,s=a.ItemValue.getItemByValue(t,l);return s&&(l=s.value),{value:l}},t.prototype.updateChoicesDependedQuestions=function(){if(!this.isUpdatingChoicesDependedQuestions){this.isUpdatingChoicesDependedQuestions=!0;for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].onVisibleChoicesChanged(),this.dependedQuestions[e].updateChoicesDependedQuestions();this.isUpdatingChoicesDependedQuestions=!1}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){this.isLoadingFromJson||(this.updateVisibleChoices(),this.updateVisibilityBasedOnChoices(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.updateVisibilityBasedOnChoices=function(){if(this.hideIfChoicesEmpty){var e=this.getFilteredChoices();this.visible=!e||e.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.calculatedText<r.calculatedText?-1*t:e.calculatedText>r.calculatedText?+t:0})},t.prototype.randomizeArray=function(e){return d.Helpers.randomizeArray(e)},t.prototype.clearIncorrectValues=function(){!(!this.hasValueToClearIncorrectValues()||this.survey&&this.survey.questionCountByValueName(this.getValueName())>1)&&(!this.choicesByUrl||this.choicesByUrl.isEmpty||this.choicesFromUrl&&0!=this.choicesFromUrl.length)&&(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.hasValueToClearIncorrectValues=function(){return(!this.survey||!this.survey.keepIncorrectValues)&&!this.keepIncorrectValues&&!this.isEmpty()},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknow(e)&&this.clearValue()},t.prototype.canClearValueAnUnknow=function(e){return(!!this.getStoreOthersAsComment()||!this.isOtherSelected)&&this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue()},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),this.isOtherSelected||this.hasComment||(this.comment="")},t.prototype.getColumnClass=function(){return new m.CssClassBuilder().append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var t={item:e},r=this.getItemClassCore(e,t);return t.css=r,this.survey&&this.survey.updateChoiceItemCss(this,t),t.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,t){var r=new m.CssClassBuilder().append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&0===this.colCount).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&0!==this.colCount).append(this.cssClasses.itemOnError,this.errors.length>0),n=this.isReadOnly||!e.isEnabled,o=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,i=!n&&!o&&!(this.survey&&this.survey.isDesignMode),s=e===this.noneItem;return t.isDisabled=n,t.isChecked=o,t.isNone=s,r.append(this.cssClasses.itemDisabled,n).append(this.cssClasses.itemChecked,o).append(this.cssClasse
1s.itemHover,i).append(this.cssClasses.itemNone,s).toString()},t.prototype.getLabelClass=function(e){return new m.CssClassBuilder().append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return new m.CssClassBuilder().append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},Object.defineProperty(t.prototype,"headItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter(function(t){return e.isHeadChoice(t,e)}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){var e=this;return this.separateSpecialChoices||this.isDesignMode?this.visibleChoices.filter(function(t){return e.isFootChoice(t,e)}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.visibleChoices.filter(function(t){return!e.isBuiltInChoice(t,e)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.visibleChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.getCurrentColCount();if(this.hasColumns&&this.visibleChoices.length>0){var r=this.separateSpecialChoices||this.isDesignMode?this.dataChoices:this.visibleChoices;if("column"==h.settings.showItemsInOrder)for(var n=0,o=r.length%t,i=0;i<t;i++){for(var s=[],a=n;a<n+Math.floor(r.length/t);a++)s.push(r[a]);o>0&&(o--,s.push(r[a]),a++),n=a,e.push(s)}else for(var i=0;i<t;i++){for(var s=[],a=i;a<r.length;a+=t)s.push(r[a]);e.push(s)}}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return 0==this.getCurrentColCount()&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return 0==this.getCurrentColCount()&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0;var e=this.isReadyValue;this.isReadyValue=!0,this.onReadyChanged&&this.onReadyChanged.fire(this,{question:this,isReady:!0,oldIsReady:e}),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()}
1,t.prototype.getItemValueWrapperComponentName=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentName(e,this):i.SurveyModel.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return new m.CssClassBuilder().append(this.cssClasses.root).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isInputReadOnly&&e.isEnabled},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.rootElement=t},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.rootElement=void 0},t.prototype.focusOtherComment=function(){var e=this;this.rootElement&&setTimeout(function(){var t=e.rootElement.querySelector("textarea");t&&t.focus()},10)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.isDesignMode||this.prevIsOtherSelected||!this.isOtherSelected||this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.updateCssClasses=function(t,r){if(e.prototype.updateCssClasses.call(this,t,r),this.dropdownListModel){var n={};Object(f.mergeValues)(r.list,n),Object(f.mergeValues)(t.list,n),t.list=n}},t.prototype.calcCssClasses=function(t){var r=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModel&&this.dropdownListModel.updateListCssClasses(r.list),r},y([Object(o.property)()],t.prototype,"selectedItemValues",void 0),y([Object(o.property)({defaultValue:!1})],t.prototype,"separateSpecialChoices",void 0),y([Object(o.property)({localizable:!0})],t.prototype,"otherPlaceholder",void 0),t}(s.Question),b=function(e){function t(t){return e.call(this,t)||this}return g(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",+!this.isFlowLayout)},set:function(e){e<0||e>5||this.isFlowLayout||(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(v);o.Serializer.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},"choicesFromQuestion:question_selectbase",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return l.surveyLocalization.getString("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!!e.choicesFromQuestion}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"ChoicesRestful",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean",{name:"choicesVisibleIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",depen
1dsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(e){return e.hasNone}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),o.Serializer.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase")},
1"./src/question_boolean.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionBooleanModel",function(){return p});var n,o=r("./src/questionfactory.ts"),i=r("./src/jsonobject.ts"),s=r("./src/question.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=r("./src/utils/utils.ts"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("labelFalse",r,!0,"booleanUncheckedLabel"),r.createLocalizableString("labelTrue",r,!0,"booleanCheckedLabel"),r}return u(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return"checkbox"!==this.renderAs},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){this.isReadOnly||this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?this.value=null:this.value=!0==e?this.getValueTrue():this.getValueFalse()}
1,Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),void 0===e&&(e="indeterminate"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){return"indeterminate"==this.defaultValue||void 0===this.defaultValue?null:"true"==this.defaultValue?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return"hidden"===this.titleLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return null!==this.booleanValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return!this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return!!this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1),"indeterminate"==this.defaultValue&&this.setBooleanValue(null)},t.prototype.isDefaultValueSet=function(e,t){return this.defaultValue==e||void 0!==t&&this.defaultValue===t},t.prototype.getDisplayValueCore=function(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return new a.CssClassBuilder().append(e.item).append(e.itemOnError,this.errors.length>0).append(e.itemDisabled,this.isReadOnly).append(e.itemChecked,!!this.booleanValue).append(e.itemIndeterminate,null===this.booleanValue).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return new a.CssClassBuilder().append(this.cssClasses.label).append(this.cssClasses.disabledLabel,!e===this.booleanValue||this.isReadOnly).toString()},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:null===this.booleanValue&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly}
1,enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){return!0===this.booleanValue?this.locLabelTrue:!1===this.booleanValue?this.locLabelFalse:void 0},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),"true"===t&&"true"!==this.valueTrue&&(t=!0),"false"===t&&"false"!==this.valueFalse&&(t=!1),"indeterminate"===t&&(t=null),e.prototype.setQuestionValue.call(this,t,r)},t.prototype.onLabelClick=function(e,t){return this.allowClick&&(Object(l.preventDefaults)(e),this.booleanValue=t),!0},t.prototype.calculateBooleanValueByEvent=function(e,t){var r="rtl"==document.defaultView.getComputedStyle(e.target).direction;this.booleanValue=r?!t:t},t.prototype.onSwitchClickModel=function(e){if(this.allowClick){Object(l.preventDefaults)(e);var t=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,t);return}return!0},t.prototype.onKeyDownCore=function(e){if("ArrowLeft"===e.key||"ArrowRight"===e.key){Object(l.preventDefaults)(e),this.calculateBooleanValueByEvent(e,"ArrowRight"===e.key);return}return!0},t.prototype.getRadioItemClass=function(e,t){var r=void 0;return e.radioItem&&(r=e.radioItem),e.radioItemChecked&&t===this.value&&(r=(r?r+" ":"")+e.radioItemChecked),r},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},c([Object(i.property)()],t.prototype,"showTitle",void 0),c([Object(i.property)({localizable:!0})],t.prototype,"label",void 0),c([Object(i.property)()],t.prototype,"valueTrue",void 0),c([Object(i.property)()],t.prototype,"valueFalse",void 0),t}(s.Question);i.Serializer.addClass("boolean",[{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"renderAs",default:"default",visible:!1}],function(){return new p("")},"question"),o.QuestionFactory.Instance.registerQuestion("boolean",function(e){return new p(e)})},
1"./src/question_buttongroup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ButtonGroupItemValue",function(){return c}),r.d(t,"QuestionButtonGroupModel",function(){return p}),r.d(t,"ButtonGroupItemModel",function(){return d});var n,o=r("./src/jsonobject.ts"),i=r("./src/itemvalue.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},c=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="buttongroupitemvalue");var o=e.call(this,t,r,n)||this;return o.typeName=n,o}return l(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},u([Object(o.property)()],t.prototype,"iconName",void 0),u([Object(o.property)()],t.prototype,"iconSize",void 0),u([Object(o.property)()],t.prototype,"showCaption",void 0),t}(i.ItemValue),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getType=function(){return"buttongroup"}
1,t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(s.QuestionCheckboxBase);o.Serializer.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],function(){return new p("")},"checkboxbase"),o.Serializer.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],function(e){return new c(e)},"itemvalue");var d=function(){function e(e,t,r){this.question=e,this.item=t,this.index=r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaption",{get:function(){return this.item.showCaption||void 0===this.item.showCaption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelClass",{get:function(){return new a.CssClassBuilder().append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),e.prototype.onChange=function(){this.question.renderedValue=this.item.value},e}()},
1"./src/question_checkbox.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionCheckboxModel",function(){return p});var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/helpers.ts"),l=r("./src/itemvalue.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){var r=e.call(this,t)||this;r.selectAllItemValue=new l.ItemValue("selectall"),r.invisibleOldValues={},r.isChangingValueOnClearIncorrect=!1;var n=r.createLocalizableString("selectAllText",r.selectAllItem,!0,"selectAllItemText");return r.selectAllItem.locOwner=r,r.selectAllItem.setLocText(n),r.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],function(){r.onVisibleChoicesChanged()}),r}return c(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"listbox"},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){if(e&&e===this.valuePropertyName){var r=this.value;if(Array.isArray(r)&&t<r.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem",!1)},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){var e=this.value;if(!e||!Array.isArray(e)||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.isOtherSelected&&r--,r===t},set:function(e){e?this.selectAll():this.clearValue()},enumerable:!1,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.renderedValue=e},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.getRealValue=function(e){return e&&this.valuePropertyName?e[this.valuePropertyName]:e},Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){var e=this.selectedItemValues;if(this.isEmpty())return[];var t=this.renderedValue,r=this.initialSelectedItemValues?[].concat(this.initialSelectedItemValues,this.visibleChoices):this.visibleChoices,n=t.map(function(e){return l.ItemValue.getItemByValue(r,e)}).filter(function(e){return!!e});return(n.length||e||this.updateSelectedItemValues(),n.length)?n:e&&e.length?(this.initialSelectedItemValues=[].concat(e),e):t.map(function(e){return new l.ItemValue(e)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){!(this.maxSelectedChoices<1)&&(this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.maxSelectedChoices>=this.activeChoices.length),this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected))},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.getItemClassCore=function(t,r){return this.value,r.isSelectAllItem=t===this.selectAllItem,new u.CssClassBuilder().append(e.prototype.getItemClassCore.call(this,t,r)).append(this.cssClasses.itemSelectAll,r.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){e.prototype.setDefaultValue.call(this);var t=this.defaultValue;if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=this.getRealValue(t[r]);this.canClearValueAnUnknow(n)&&this.addIntoInvisibleOldValues(n)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return e.prototype.hasValueToClearIncorrectValues.call(this)||!a.Helpers.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(t){this.isChangingValueOnClearIncorrect||(this.invisibleOldValues={}),t=this.valueFromData(t);var r=this.value;if(t||(t=[]),r||(r=[]),!this.isTwoValueEquals(r,t)){if(this.hasNone){var n=this.noneIndexInArray(r),o=this.noneIndexInArray(t);n>-1?o>-1&&t.length>1&&t.splice(o,1):o>-1&&(t.splice(0,t.length),t.push(this.noneItem.value))}e.prototype.setNewValue.call(this,t)}},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0||e.splice(t,1,this.otherItem.value),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return -1;for(var t=0;t<e.length;t++)if(this.hasUnknownValue(e[t],!1,!1))return t;return -1},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.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addToVisibleChoices=function(t,r){this.supportSelectAll()&&this.canShowOptionItem(this.selectAllItem,r,this.hasSelectAll)&&t.unshift(this.selectAllItem),e.prototype.addToVisibleChoices.call(this,t,r)},t.prototype.isHeadChoice=function(e,t){return e===t.selectAllItem},t.prototype.isItemInList=function(t){return t==this.selectAllItem?this.hasSelectAll:e.prototype.isItemInList.call(this,t)},t.prototype.getDisplayValueCore=function(t,r){if(!Array.isArray(r))return e.prototype.getDisplayValueCore.call(this,t,r);var n=this.valuePropertyName;return this.getDisplayArrayValue(t,r,function(e){var t=r[e];return n&&t[n]&&(t=t[n]),t})},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,r=!1,n=this.restoreValuesFromInvisible();if(t||0!=n.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingV
1alueOnClearIncorrect=!0,e||(this.hasComment?this.value=null:this.clearValue()),this.isChangingValueOnClearIncorrect=!1,0==n.length)return;t=[]}for(var o=[],i=0;i<t.length;i++){var s=this.getRealValue(t[i]),a=this.canClearValueAnUnknow(s);(e||a)&&(!e||this.isValueDisabled(s))?(r=!0,a&&this.addIntoInvisibleOldValues(t[i])):o.push(t[i])}for(var i=0;i<n.length;i++)o.push(n[i]),r=!0;r&&(this.isChangingValueOnClearIncorrect=!0,0==o.length?this.clearValue():this.value=o,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,r=0;r<t.length;r++){var n=t[r].value;a.Helpers.isTwoValueEquals(n,this.invisibleOldValues[n])&&(this.isItemSelected(t[r])||e.push(n),delete this.invisibleOldValues[n])}return e},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.isAnswerCorrect=function(){return a.Helpers.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,t){return!!e&&!!Array.isArray(e)&&e.indexOf(t.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var r=[],n=0;n<t.length;n++){var o=l.ItemValue.getItemByValue(this.activeChoices,t[n]);o?r.push(o.value):r.push(t[n])}return r},t.prototype.rendredValueFromData=function(t){return t=this.convertValueFromObject(t),e.prototype.rendredValueFromData.call(this,t)},t.prototype.rendredValueToData=function(t){return t=e.prototype.rendredValueToData.call(this,t),this.convertValueToObject(t)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?a.Helpers.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var t=void 0;return this.survey&&this.survey.questionCountByValueName(this.getValueName())>1&&(t=this.data.getValue(this.getValueName())),a.Helpers.convertArrayValueToObject(e,this.valuePropertyName,t)},t.prototype.renderedValueFromDataCore=function(e){if(e&&Array.isArray(e)||(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length&&e[t]!=this.otherItem.value;t++)if(this.hasUnknownValue(e[t],!0,!1)){this.comment=e[t];var r=e.slice();return r[t]=this.otherItem.value,r}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.getQuestionComment()){var r=e.slice();return r[t]=this.getQuestionComment(),r}return e},t.prototype.selectOtherValueFromComment=function(e){var t=[],r=this.renderedValue;if(Array.isArray(r))for(var n=0;n<r.length;n++)r[n]!==this.otherItem.value&&t.push(r[n]);e&&t.push(this.otherItem.value),this.value=t},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),t}(s.QuestionCheckboxBase);o.Serializer.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(e){return e.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],function(){return new p("")},"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("checkbox",function(e){var t=new p(e);return t.choices=i.QuestionFactory.DefaultChoices,t})},
1"./src/question_comment.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionCommentModel",function(){return u});var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_textbase.ts"),a=r("./src/utils/utils.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")||this.survey&&this.survey.autoGrowComment},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(t){this.element=document.getElementById(this.inputId)||t,this.updateElement(),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.updateElement=function(){var e=this;this.element&&this.autoGrow&&setTimeout(function(){return Object(a.increaseHeightByContent)(e.element)},1)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate?this.value=e.target.value:this.updateElement()},t.prototype.onKeyDown=function(e){this.acceptCarriageReturn||"Enter"!==e.key&&13!==e.keyCode||(e.preventDefault(),e.stopPropagation())},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.updateElement()},t.prototype.setNewValue=function(t){!this.acceptCarriageReturn&&t&&(t=t.replace(RegExp("(\r\n|\n|\r)","gm"),"")),e.prototype.setNewValue.call(this,t)},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(s.QuestionTextBase);o.Serializer.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean"},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],function(){return new u("")},"textbase"),i.QuestionFactory.Instance.registerQuestion("comment",function(e){return new u(e)})},
1"./src/question_custom.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ComponentQuestionJSON",function(){return p}),r.d(t,"ComponentCollection",function(){return d}),r.d(t,"QuestionCustomModelBase",function(){return h}),r.d(t,"QuestionCustomModel",function(){return m}),r.d(t,"QuestionCompositeModel",function(){return g});var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=r("./src/survey-element.ts"),a=r("./src/helpers.ts"),l=r("./src/textPreProcessor.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(){function e(e,t){this.name=e,this.json=t;var r=this;i.Serializer.addClass(e,[],function(e){return d.Instance.createQuestion(e?e.name:"",r)},"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,r){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,r)},e.prototype.onPropertyChanged=function(e,t,r){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,r)},e.prototype.onValueChanged=function(e,t,r){this.json.onValueChanged&&this.json.onValueChanged(e,t,r)},e.prototype.onItemValuePropertyChanged=function(e,t,r,n,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:r,name:n,newValue:o})},e.prototype.getDisplayValue=function(e,t,r){return this.json.getDisplayValue?this.json.getDisplayValue(r):r.getDisplayValue(e,t)},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e}(),d=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(i.Serializer.findClass(t))throw"There is already class with name '"+t+"'";var r=new p(t,e);this.onAddingJson&&this.onAddingJson(t,r.isComposite),this.customQuestionValues.push(r)}},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name==e)return this.customQuestionValues[t];return null},e.prototype.clear=function(){for(var e=0;e<this.customQuestionValues.length;e++)i.Serializer.removeClass(this.customQuestionValues[e].name);this.customQuestionValues=[]},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new g(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new m(e,t)},e.Instance=new e,e}(),h=function(e){function t(t,r){var n=e.call(this,t)||this;return n.customQuestion=r,i.CustomPropertiesCollection.createProperties(n),s.SurveyElement.CreateDisabledDesignElements=!0,n.createWrapper(),s.SurveyElement.CreateDisabledDesignElements=!1,n.customQuestion&&n.customQuestion.onCreated(n),n}return c(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStr
vendor: 4,161 bytes, line 1
1sChanged()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,r,n){e.prototype.onPropertyValueChanged.call(this,t,r,n),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,n)},t.prototype.itemValuePropertyChanged=function(t,r,n,o){e.prototype.itemValuePropertyChanged.call(this,t,r,n,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,r,o)},t.prototype.onFirstRendering=function(){var t=this.getElement();t&&t.onFirstRendering(),e.prototype.onFirstRendering.call(this)},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.initElement(this.getElement())},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.updateElementCss()},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,r,n){if(this.data){var o=this.convertDataName(e);this.data.setValue(o,this.convertDataValue(e,t),r,n),this.updateIsAnswered(),this.updateElementCss(),this.customQuestion&&this.customQuestion.onValueChanged(this,e,t)}},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,r){this.data&&this.data.setComment(this.getValueName(),t,r)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return -1},t.prototype.ensureRowsVisibility=function(){},t.prototype.getContentDisplayValueCore=function(t,r,n){return n?this.customQuestion.getDisplayValue(t,r,n):e.prototype.getDisplayValueCore.call(this,t,r)},t}(o.Question),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.createWrapper=function(){this.questionWrapper=this.createQuestion()},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t)},t.prototype.hasErrors=function(t,r){if(void 0===t&&(t=!0),void 0===r&&(r=null),!this.contentQuestion)return!1;var n=this.contentQuestion.hasErrors(t,r);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return n||(n=e.prototype.hasErrors.call(this,t,r)),this.updateElementCss(),n},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focu
1s.call(this,t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this.customQuestion.json,t=null;if(e.questionJSON){var r=e.questionJSON.type;if(!r||!i.Serializer.findClass(r))throw"type attribute in questionJSON is empty or incorrect";t=i.Serializer.createClass(r),this.initElement(t),t.fromJSON(e.questionJSON)}else e.createQuestion&&(t=e.createQuestion(),this.initElement(t));return t&&(t.isContentElement=!0,t.name||(t.name="question")),t},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.contentQuestion.value)},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.contentQuestion&&this.contentQuestion.runCondition(t,r)},t.prototype.convertDataName=function(t){if(!this.contentQuestion)return e.prototype.convertDataName.call(this,t);var r=t.replace(this.contentQuestion.getValueName(),this.getValueName());return 0==r.indexOf(this.getValueName())?r:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,r){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.contentQuestion.value:r},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.isLoadingFromJson||!this.contentQuestion||this.isTwoValueEquals(this.contentQuestion.value,t)||(this.contentQuestion.value=this.getUnbindValue(t))},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.getValueCore=function(){return this.contentQuestion?this.contentQuestion.value:e.prototype.getValueCore.call(this)},t.prototype.initElement=function(t){var r=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRe
1nderQuestionCallback=function(e,t){r.customQuestion&&r.customQuestion.onAfterRenderContentElement(r,e,t)})},t.prototype.updateElementCss=function(t){this.contentQuestion&&this.questionWrapper.updateElementCss(t),e.prototype.updateElementCss.call(this,t)},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t.prototype.getDisplayValueCore=function(t,r){return e.prototype.getContentDisplayValueCore.call(this,t,r,this.contentQuestion)},t}(h),f=function(e){function t(t,r){var n=e.call(this,r)||this;return n.composite=t,n.variableName=r,n}return c(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(l.QuestionTextProcessor),g=function(e){function t(r,n){var o=e.call(this,r,n)||this;return o.customQuestion=n,o.settingNewValue=!1,o.textProcessing=new f(o,t.ItemVariableName),o}return c(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(t){return new u.CssClassBuilder().append(e.prototype.getCssRoot.call(this,t)).append(t.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var n=e.prototype.hasErrors.call(this,t,r);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,r)||n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),this.contentPanel&&this.contentPanel.updateElementCss(t)},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this);for(var t=this.contentPanel.questions,r=0;r<t.length;r++)t[r].clearValueIfInvisible()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var r=this.contentPanel.questions,n=0;n<r.length;n++)r[n].onAnyValueChanged(t)},t.prototype.createPanel=function(){var e=i.Serializer.createClass("panel");e.showQuestionNumbers="off",e.renderWidth="100%";var t=this.customQuestion.json;return t.elementsJSON&&e.fromJSON({elements:t.elementsJSON}),t.createElements&&t.createElements(e,this),this.initElement(e),e.readOnly=this.isReadOnly,this.setAfterRenderCallbacks(e),e},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){if(this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this),this.contentPanel){var t=this.contentPanel.getValue();a.Helpers.isValueEmpty(t)||(this.value=t)}},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,r=0;r<t.length;r++){var n=t[r];n.isPanel?this.setIsContentElement(n):n.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var r=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(r+=this.contentPanel.setVisibleIndex(t)),r},t.prototype.runCondition=function(r,n){if(e.prototype.runCondition.call(this,r,n),this.contentPanel){var o=r[t.ItemVariableName];r[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(r,n),delete r[t.ItemVariableName],o&&(r[t.ItemVariableName]=o)}},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.setValue=function(t,r,n,o){if(!this.settingNewValue){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel){var i=this.contentPanel.getValue();this.isTwoValueEquals(this.getValueCore(),i)||this.setValueCore(i)}if(e.prototype.setValue.call(this,t,r,n,o),this.contentPanel){var s=this.contentPanel.getQuestionByName(t);s&&!this.isTwoValueEquals(r,s.value)&&(s.value=r)}this.settingNewValue=!1}},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var r=this.contentPanel.questions,n=this.name,o=this.title,i=0;i<r.length;i++)e.push({name:n+"."+r[i].name,text:o+"."+r[i].title,question:r[i]})},t.prototype.convertDataValue=function(e,t){var r=this.value;return r||(r={}),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete r[e]:r[e]=t,r},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.settingNewValue=!0;for(var n=this.contentPanel.questions,o=0;o<n.length;o++){var i=n[o].getValueName();n[o].value=t?t[i]:void 0}this.settingNewValue=!1},t.prototype.getDisplayValueCore=function(t,r){return e.prototype.getContentDisplayValueCore.call(this,t,r,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var r=e.questions,n=0;n<r.length;n++)r[n].afterRenderQuestionCallback=function(e,r){t.customQuestion.onAfterRenderContentElement(t,e,r)}},t.ItemVariableName="composite",t}(h)},
1"./src/question_dropdown.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionDropdownModel",function(){return h});var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/itemvalue.ts"),l=r("./src/utils/cssClassBuilder.ts"),u=r("./src/dropdownListModel.ts"),c=r("./src/settings.ts"),p=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},h=function(e){function t(t){var r=e.call(this,t)||this;return r.lastSelectedItemValue=null,r.minMaxChoices=[],r.onOpened=r.addEvent(),r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("clearCaption",r,!1,!0),r.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],function(){r.onVisibleChoicesChanged()}),r.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices"],function(){r.updateReadOnlyText()}),r.updateReadOnlyText(),r}return p(t,e),t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;"select"==this.renderAs&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var t=a.ItemValue.getItemByValue(this.visibleChoices,this.value);return t?this.lastSelectedItemValue=t:e||this.updateSelectedItemValues(),this.lastSelectedItemValue||e||new a.ItemValue(this.value)},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var r=[],n=0;n<t.length;n++)r.push(t[n]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1){this.minMaxChoices=[];for(var n=this.choicesMin;n<=this.choicesMax;n+=this.choicesStep)this.minMaxChoices.push(new a.ItemValue(n))}return r.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new l.CssClassBuilder().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.selectedItem;return null==e?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return"select"===this.renderAs||this.dropdownListModel||(this.dropdownListModel=new u.DropdownListModel(this)),null==(e=this.dropdownListModel)?void 0:e.popupModel},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(){e.prototype.clearValue.call(this),this.lastSelectedItemValue=null},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){46===(e.which||e.keyCode)&&(this.clearValue(),e.preventDefault(),e.stopPropagation())},d([Object(o.property)({defaultValue:!0})],t.prototype,"allowClear",void 0),d([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"inputHasValue",void 0),d([Object(o.property)({defaultValue:""})],t.prototype,"readOnlyText",void 0),d([Object(o.property)({defaultValue:!1})],t.prototype,"choicesLazyLoadEnabled",void 0),d([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),t}(s.QuestionSelectBase);o.Serializer.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new h("")},"selectbase"),i.QuestionFactory.Instance.registerQuestion("dropdown",function(e){var t=new h(e);return t.choices=i.QuestionFactory.DefaultChoices,t})},
1"./src/question_empty.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionEmptyModel",function(){return a});var n,o=r("./src/jsonobject.ts"),i=r("./src/question.ts"),s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"empty"},t}(i.Question);o.Serializer.addClass("empty",[],function(){return new a("")},"question")},
1"./src/question_expression.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionExpressionModel",function(){return c}),r.d(t,"getCurrecyCodes",function(){return p});var n,o=r("./src/helpers.ts"),i=r("./src/question.ts"),s=r("./src/jsonobject.ts"),a=r("./src/questionfactory.ts"),l=r("./src/conditions.ts"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("format",r),r.registerPropertyChangedHandlers(["expression"],function(){r.expressionRunner&&(r.expressionRunner=new l.ExpressionRunner(r.expression))}),r.registerPropertyChangedHandlers(["format","currency","displayStyle"],function(){r.updateFormatedValue()}),r}return u(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,r){var n=this;e.prototype.runCondition.call(this,t,r),this.expression&&!this.expressionIsRunning&&(this.runIfReadOnly||!this.isReadOnly)&&(this.locCalculation(),this.expressionRunner||(this.expressionRunner=new l.ExpressionRunner(this.expression)),this.expressionRunner.onRunComplete=function(e){o.Helpers.isTwoValueEquals(e,n.value)||(n.value=e),n.unlocCalculation()},this.expressionRunner.run(t,r))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return!0===this.runIfReadOnlyValue},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(t){e.prototype.updateValueFromSurvey.call(this,t),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,t){var r=this.isValueEmpty(t)?this.defaultValue:t,n="";if(!this.isValueEmpty(r)){var o=this.getValueAsStr(r);n=this.format?this.format.format(o):o}return this.survey&&(n=this.survey.getExpressionDisplayValue(this,r,n)),n},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){0>p().indexOf(e)||this.setPropertyValue("currency",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=new Date(e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&o.Helpers.isNumber(e)){var r=this.getLocale();r||(r="en");var n={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(n.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(n.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(r,n)}return e.toString()},t}(i.Question);function p(){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","KRW","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","ZMW","ZWL"]}s.Serializer.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]},{name:"currency",choices:function(){return p()},default:"USD"},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],function(){return new c("")},"question"),a.QuestionFactory.Instance.registerQuestion("expression",function(e){return new c(e)})},
1"./src/question_file.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionFileModel",function(){return f}),r.d(t,"FileLoader",function(){return g});var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=r("./src/questionfactory.ts"),a=r("./src/error.ts"),l=r("./src/utils/cssClassBuilder.ts"),u=r("./src/utils/utils.ts"),c=r("./src/actions/container.ts"),p=r("./src/actions/action.ts"),d=r("./src/helpers.ts"),h=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),m=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},f=function(e){function t(t){var r=e.call(this,t)||this;return r.isUploading=!1,r.isDragging=!1,r.onUploadStateChanged=r.addEvent(),r.onStateChanged=r.addEvent(),r.mobileFileNavigator=new c.ActionContainer,r.dragCounter=0,r.onDragEnter=function(e){!r.isInputReadOnly&&(e.preventDefault(),r.isDragging=!0,r.dragCounter++)},r.onDragOver=function(e){if(r.isInputReadOnly)return e.returnValue=!1,!1;e.dataTransfer.dropEffect="copy",e.preventDefault()},r.onDrop=function(e){if(!r.isInputReadOnly){r.isDragging=!1,r.dragCounter=0,e.preventDefault();var t=e.dataTransfer;r.onChange(t)}},r.onDragLeave=function(e){r.isInputReadOnly||(r.dragCounter--,0===r.dragCounter&&(r.isDragging=!1))},r.doChange=function(e){var t=e.target||e.srcElement;r.onChange(t)}
1,r.doClean=function(e){e.currentTarget||e.srcElement,(!r.needConfirmRemoveFile||Object(u.confirmAction)(r.confirmRemoveAllMessage))&&(r.rootElement&&(r.rootElement.querySelectorAll("input")[0].value=""),r.clear())},r.doDownloadFile=function(e,t){Object(u.detectIEOrEdge)()&&(e.preventDefault(),Object(u.loadFileFromBase64)(t.content,t.name))},r.fileIndexAction=new p.Action({id:"fileIndex",title:r.getFileIndexCaption(),enabled:!1}),r.prevFileAction=new p.Action({id:"prevPage",iconSize:16,action:function(){r.indexToShow=r.previewValue.length&&(r.indexToShow-1+r.previewValue.length)%r.previewValue.length||0,r.fileIndexAction.title=r.getFileIndexCaption()}}),r.nextFileAction=new p.Action({id:"nextPage",iconSize:16,action:function(){r.indexToShow=r.previewValue.length&&(r.indexToShow+1)%r.previewValue.length||0,r.fileIndexAction.title=r.getFileIndexCaption()}}),r.mobileFileNavigator.actions=[r.prevFileAction,r.fileIndexAction,r.nextFileAction],r}return h(t,e),Object.defineProperty(t.prototype,"mobileFileNavigatorVisible",{get:function(){return this.isMobile&&this.containsMultiplyFiles},enumerable:!1,configurable:!0}),t.prototype.updateElementCssCore=function(t){e.prototype.updateElementCssCore.call(this,t),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.previewValue.length)},t.prototype.isPreviewVisible=function(e){return!this.isMobile||e===this.indexToShow},t.prototype.getType=function(){return"file"},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,function(){})},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple",!1)},set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,
1null,function(r,n){"success"===r&&(t.value=void 0,t.errors=[],e&&e(),t.indexToShow=0,t.fileIndexAction.title=t.getFileIndexCaption())}))},Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){return!this.isReadOnly&&!this.isEmpty()&&this.cssClasses.removeButtonBottom},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter(function(t){return t.name===e})[0])},t.prototype.removeFileByContent=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,function(r,n){if("success"===r){var o=t.value;Array.isArray(o)?t.value=o.filter(function(t){return!d.Helpers.isTwoValueEquals(t,e,!0)}):t.value=void 0}})},t.prototype.loadFiles=function(e){var t=this;if(this.survey&&(this.errors=[],this.allFilesOk(e))){var r=function(){t.stateChanged("loading");var r=[];t.storeDataAsText?e.forEach(function(n){var o=new FileReader;o.onload=function(i){(r=r.concat([{name:n.name,type:n.type,content:o.result}])).length===e.length&&(t.value=(t.value||[]).concat(r))},o.readAsDataURL(n)}):t.survey&&t.survey.uploadFiles(t,t.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}})))})};this.allowMultiple?r():this.clear(r)}},t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var t=this;if(this.previewValue.splice(0,this.previewValue.length),this.showPreview&&e){var r=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?r.forEach(function(e){var r=e.content||e;t.previewValue.push({name:e.name,type:e.type,content:r})}):(this._previewLoader&&this._previewLoader.dispose(),this.isReadyValue=!1,this._previewLoader=new g(this,function(e,r){"loaded"===e&&r.forEach(function(e){t.previewValue.push(e)}),t.isReadyValue=!0,t.onReadyChanged&&t.onReadyChanged.fire(t,{question:t,isReady:!0,oldIsReady:!1}),t._previewLoader.dispose(),t._previewLoader=void 0}),this._previewLoader.load(r)),this.indexToShow=this.previewValue.length>0&&this.indexToShow>0?this.indexToShow-1:0,this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1}},t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),this.isUploading&&this.waitForUpload&&t.push(new a.UploadingFileError(this.getLocalizationString("uploadingFile"),this))},t.prototype.stateChanged=function(e){this.currentState!=e&&("loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.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 a.ExceedSizeError(t.maxSize,t))}),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e)return!1;var t="data:image",r=e.content&&e.content.substring(0,t.length);return(r=r&&r.toLowerCase())===t||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);return r&&!this.isEmpty()&&(r.isNode=!1,r.data=(Array.isArray(this.value)?this.value:[this.value]).map(function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}})),r},t.prototype.supportComment=function(){return!0},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;
1return new l.CssClassBuilder().append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return new l.CssClassBuilder().append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return new l.CssClassBuilder().append(this.cssClasses.root).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return new l.CssClassBuilder().append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var t=[],r=this.allowMultiple?e.files.length:1,n=0;n<r;n++)t.push(e.files[n]);e.value="",this.loadFiles(t)}},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.stateChanged(this.isEmpty()?"empty":"loaded"),this.loadPreview(t)},t.prototype.afterRender=function(t){this.rootElement=t,e.prototype.afterRender.call(this,t)},t.prototype.doRemoveFile=function(e){if(!this.needConfirmRemoveFile||Object(u.confirmAction)(this.getConfirmRemoveMessage(e.name))){var t=this.previewValue.indexOf(e);this.removeFileByContent(-1===t?e:this.value[t])}},m([Object(i.property)()],t.prototype,"isDragging",void 0),m([Object(i.propertyArray)({})],t.prototype,"previewValue",void 0),m([Object(i.property)({defaultValue:"empty"})],t.prototype,"currentState",void 0),m([Object(i.property)({defaultValue:0})],t.prototype,"indexToShow",void 0),m([Object(i.property)({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),m([Object(i.property)({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),m([Object(i.property)({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),m([Object(i.property)({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),m([Object(i.property)({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),m([Object(i.property)({localizable:{defaultStr:"clearCaption"}})],t.prototype,"clearButtonCaption",void 0),m([Object(i.property)({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),m([Object(i.property)({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),m([Object(i.property)({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),m([Object(i.property)({localizable:{defaultStr:"fileDragAreaPlaceholder"}})],t.prototype,"dragAreaPlaceholder",void 0),t}(o.Question);i.Serializer.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}},{name:"showPreview:boolean",default:!0},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"}],function(){return new f("")},"question"),s.QuestionFactory.Instance.registerQuestion("file",function(e){return new f(e)});var g=function(){function e(e,t){this.fileQuestion=e,this.callback=t,this.loaded=[]}return e.prototype.load=function(e){var t=this;e.forEach(function(r){t.fileQuestion.survey&&t.fileQuestion.survey.downloadFile(t.fileQuestion,t.fileQuestion.name,r,function(n,o){t.fileQuestion&&t.callback&&("success"===n?(t.loaded.push({content:o,name:r.name,type:r.type}),t.loaded.length===e.length&&t.callback("loaded",t.loaded)):t.callback("error",t.loaded))})})},e.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},e}()},
1"./src/question_html.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionHtmlModel",function(){return l});var n,o=r("./src/questionnonvalue.ts"),i=r("./src/jsonobject.ts"),s=r("./src/questionfactory.ts"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("html",r).onGetTextCallback=function(e){return r.survey&&!r.ignoreHtmlProgressing?r.survey.processHtml(e):e},r}return a(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(t){return this.ignoreHtmlProgressing?t:e.prototype.getProcessedText.call(this,t)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.survey?this.survey.processHtml(this.html):this.html},enumerable:!1,configurable:!0}),t}(o.QuestionNonValue);i.Serializer.addClass("html",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new l("")},"nonvalue"),s.QuestionFactory.Instance.registerQuestion("html",function(e){return new l(e)})},
1"./src/question_image.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionImageModel",function(){return h});var n,o=r("./src/questionnonvalue.ts"),i=r("./src/jsonobject.ts"),s=r("./src/questionfactory.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=["youtube.com","youtu.be"],c=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],p="embed";function d(e){if(!e)return!1;e=e.toLowerCase();for(var t=0;t<u.length;t++)if(-1!==e.indexOf(u[t]))return!0;return!1}var h=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("imageLink",r,!1).onGetTextCallback=function(e){var t=e;if(!t||!d(t)||t.toLocaleLowerCase().indexOf(p)>-1)return t;for(var r="",n=t.length-1;n>=0&&"="!==t[n]&&"/"!==t[n];n--)r=t[n]+r;return"https://www.youtube.com/"+p+"/"+r},r.createLocalizableString("altText",r,!1),r.registerPropertyChangedHandlers(["contentMode","imageLink"],function(){return r.calculateRenderedMode()}),r}return l(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?this.imageHeight+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?this.imageWidth+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=i.Serializer.findProperty("image","imageHeight"),t=i.Serializer.findProperty("image","imageWidth"),r=e.isDefaultValue(this.imageHeight)&&t.isDefaultValue(this.imageWidth);return new a.CssClassBuilder().append(this.cssClasses.image).append(this.cssClasses.adaptive,r).toString()},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){"auto"!==this.contentMode?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return d(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var t=0;t<c.length;t++)if(e.endsWith(c[t]))return!0;return!1},t}(o.QuestionNonValue);
1i.Serializer.addClass("image",[{name:"imageLink",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",default:150,minValue:0},{name:"imageWidth:number",default:200,minValue:0}],function(){return new h("")},"nonvalue"),s.QuestionFactory.Instance.registerQuestion("image",function(e){return new h(e)})},
1"./src/question_imagepicker.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ImageItemValue",function(){return m}),r.d(t,"QuestionImagePickerModel",function(){return f});var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/itemvalue.ts"),l=r("./src/helpers.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/settings.ts"),p=r("./src/utils/utils.ts"),d=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="imageitemvalue");var o=e.call(this,t,r,n)||this;return o.typeName=n,o.createLocalizableString("imageLink",o,!1),o}return d(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t}(a.ItemValue),f=function(e){function t(t){var r=e.call(this,t)||this;return r.isResponsiveValue=!1,r.onContentLoaded=function(e,t){var n=t.target;"video"==r.contentMode?e.aspectRatio=n.videoWidth/n.videoHeight:e.aspectRatio=n.naturalWidth/n.naturalHeight,r._width&&r.processResponsiveness(0,r._width)},r.colCount=0,r.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],function(){r._width&&r.processResponsiveness(0,r._width)}),r.registerPropertyChangedHandlers(["imageWidth","imageHeight"],function(){r.calcIsResponsive()}),r.calcIsResponsive(),r}return d(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}
1),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?l.Helpers.isArrayContainsEqual(this.value,this.correctAnswer):e.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value;if(this.isValueEmpty(t))return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(t){if(!Array.isArray(t)||0==t.length)return void this.clearValue();for(var r=[],n=0;n<t.length;n++)this.hasUnknownValue(t[n],!0)||r.push(t[n]);r.length!=t.length&&(0==r.length?this.clearValue():this.value=r)}}else e.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(t,r){return this.multiSelect||Array.isArray(r)?this.getDisplayArrayValue(t,r):e.prototype.getDisplayValueCore.call(this,t,r)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return!this.multiSelect||this.isValueEmpty(e)||Array.isArray(e)?e:[e]},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){return((this.isResponsive?this.responsiveImageHeight:this.imageHeight)||150)+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){return((this.isResponsive?this.responsiveImageWidth:this.imageWidth)||200)+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isFootChoice=function(e,t){return!1},t.prototype.getSelectBaseRootCss=function(){return new u.CssClassBuilder().append(e.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasses.rootColumn,1==this.getCurrentColCount()).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some(function(t){return void 0!==e[t]&&null!==e[t]})}
1,enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return Object(p.classesToSelector)(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.getCurrentColCount=function(){return void 0===this.responsiveColCount||0===this.colCount?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,t){this._width=t=Math.floor(t);var r=function(e,t,r){var n=Math.floor(e/(t+r));return(n+1)*(t+r)-r<=e&&n++,n};if(this.isResponsive){var n,o=this.choices.length+ +!!this.isDesignMode,i=this.gapBetweenItems||0,s=this.minImageWidth,a=this.maxImageWidth,l=this.maxImageHeight,u=this.minImageHeight,c=this.colCount;if(0===c)if((i+s)*o-i>t){var p=r(t,s,i);n=Math.floor((t-i*(p-1))/p)}else n=Math.floor((t-i*(o-1))/o);else{var d=r(t,s,i);d<c?(this.responsiveColCount=d>=1?d:1,c=this.responsiveColCount):this.responsiveColCount=c,n=Math.floor((t-i*(c-1))/c)}n=Math.max(s,Math.min(n,a));var h=5e-324;this.choices.forEach(function(e){var t=n/e.aspectRatio;h=t>h?t:h}),h>l?h=l:h<u&&(h=u);var m=this.responsiveImageWidth,f=this.responsiveImageHeight;return this.responsiveImageWidth=n,this.responsiveImageHeight=h,m!==this.responsiveImageWidth||f!==this.responsiveImageHeight}return!1},t.prototype.afterRender=function(t){e.prototype.afterRender.call(this,t);var r=this.survey.getCss().variables;r&&(this.gapBetweenItems=Number.parseInt(window.getComputedStyle(t).getPropertyValue(r.imagepickerGapBetweenItems))||0)},h([Object(o.property)({})],t.prototype,"responsiveImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveImageWidth",void 0),h([Object(o.property)({})],t.prototype,"isResponsiveValue",void 0),h([Object(o.property)({})],t.prototype,"maxImageWidth",void 0),h([Object(o.property)({})],t.prototype,"minImageWidth",void 0),h([Object(o.property)({})],t.prototype,"maxImageHeight",void 0),h([Object(o.property)({})],t.prototype,"minImageHeight",void 0),h([Object(o.property)({})],t.prototype,"responsiveColCount",void 0),t}(s.QuestionCheckboxBase);o.Serializer.addClass("imageitemvalue",[],function(e){return new m(e)},"itemvalue"),o.Serializer.addProperty("imageitemvalue",{name:"imageLink",serializationProperty:"locImageLink"}),o.Serializer.addClass("responsiveImageSize",[],void 0,"number"),o.Serializer.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"noneText",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",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return c.settings.supportCreatorV2}}],function(){return new f("")},"checkboxbase"),o.Serializer.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),o.Serializer.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),o.Serializer.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),i.QuestionFactory.Instance.registerQuestion("imagepicker",function(e){return new f(e)})},
1"./src/question_matrix.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixRowModel",function(){return y}),r.d(t,"MatrixCells",function(){return v}),r.d(t,"QuestionMatrixModel",function(){return b});var n,o=r("./src/helpers.ts"),i=r("./src/itemvalue.ts"),s=r("./src/martixBase.ts"),a=r("./src/jsonobject.ts"),l=r("./src/base.ts"),u=r("./src/surveyStrings.ts"),c=r("./src/error.ts"),p=r("./src/questionfactory.ts"),d=r("./src/localizablestring.ts"),h=r("./src/question_dropdown.ts"),m=r("./src/settings.ts"),f=r("./src/utils/cssClassBuilder.ts"),g=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),y=function(e){function t(t,r,n,o){var i=e.call(this)||this;return i.fullName=r,i.item=t,i.data=n,i.value=o,i.cellClick=function(e){i.value=e.value},i.registerPropertyChangedHandlers(["value"],function(){i.data&&i.data.onMatrixRowChanged(i)}),i}return g(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){e=this.data.getCorrectedRowValue(e),this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses,t=!!this.data.getErrorByType("requiredinallrowserror");return new f.CssClassBuilder().append(e.row).append(e.rowError,t&&this.isValueEmpty(this.value)).toString()},enumerable:!1,configurable:!0}),t}(l.Base),v=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:!1,configurable:!0}),e.prototype.valuesChanged=function(){this.onValuesChanged&&this.onValuesChanged()},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])}this.valuesChanged()}},e.prototype.setDefaultCellText=function(e,t){this.setCellText(m.settings.matrixDefaultRowName,e,t)},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(e,t){return this.getCellLocText(m.settings.matrixDefaultRowName,e)},e.prototype.getCellDisplayLocText=function(e,t){var r=this.getCellLocText(e,t);return r&&!r.isEmpty||(r=this.getCellLocText(m.settings.matrixDefaultRowName,t))&&!r.isEmpty?r:("number"==typeof t&&(t=t>=0&&t<this.columns.length?this.columns[t]:null),t&&t.locText)?t.locText:null},e.prototype.getCellText=function(e,t){var r=this.getCellLocText(e,t);return r?r.calculatedText:null},e.prototype.getDefaultCellText=function(e){var t=this.getCellLocText(m.settings.matrixDefaultRowName,e);return t?t.calculatedText:null},e.prototype.getCellDisplayText=function(e,t){var r=this.getCellDisplayLocText(e,t);return r?r.calculatedText:null},Object.defineProperty(e.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]}
1,enumerable:!1,configurable:!0}),e.prototype.getCellRowColumnValue=function(e,t){if(null==e)return null;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 o in n)r[o]=n[o].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];for(var n in this.values[t]={},r)if("pos"!=n){var o=this.createString();o.setJson(r[n]),this.values[t][n]=o}}}this.valuesChanged()},e.prototype.locStrsChanged=function(){if(!this.isEmpty)for(var e in this.values){var t=this.values[e];for(var r in t)t[r].strChanged()}},e.prototype.createString=function(){return new d.LocalizableString(this.cellsOwner,!0)},e}(),b=function(e){function t(t){var r=e.call(this,t)||this;return r.isRowChanging=!1,r.emptyLocalizableString=new d.LocalizableString(r),r.cellsValue=new v(r),r.cellsValue.onValuesChanged=function(){r.updateHasCellText(),r.propertyValueChanged("cells",r.cells,r.cells)},r.registerPropertyChangedHandlers(["columns"],function(){r.onColumnsChanged()}),r.registerPropertyChangedHandlers(["rows"],function(){r.filterItems()||r.onRowsChanged()}),r.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){r.updateVisibilityBasedOnRows()}),r}return g(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired",!1)},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,t){var r=new i.ItemValue(e,t);return this.columns.push(r),r},t.prototype.getItemClass=function(e,t){var r=e.value==t.value,n=this.isReadOnly;return new f.CssClassBuilder().append(this.cssClasses.cell,this.hasCellText).append(this.hasCellText?this.cssClasses.cellText:this.cssClasses.label).append(this.cssClasses.itemOnError,!this.hasCellText&&this.errors.length>0).append(this.hasCellText?this.cssClasses.cellTextSelected:this.cssClasses.itemChecked,r).append(this.hasCellText?this.cssClasses.cellTextDisabled:this.cssClasses.itemDisabled,n).append(this.cssClasses.itemHover,!r&&!n&&!this.hasCellText).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)!this.isValueEmpty(this.correctAnswer[this.rows[t].value])&&e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,r=0;r<this.rows.length;r++){var n=this.rows[r].value;!this.isValueEmpty(t[n])&&this.isTwoValueEquals(this.correctAnswer[n],t[n])&&e++}return e},t.prototype.getVisibleRows=function(){var e=[],t=this.value;t||(t={});for(var r=this.filteredRows?this.filteredRows:this.rows,n=0;n<r.length;n++){var o=r[n];this.isValueEmpty(o.value)||e.push(this.createMatrixRow(o,this.id+"_"+o.value.toString().replace(/\s/g,"_"),t[o.value]))}return 0!=e.length||this.filteredRows||e.push(this.createMatrixRow(new i.ItemValue(null),this.name.replace(/\s/g,"_"),t)),this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return this.survey&&this.survey.isDesignMode?e:"random"===this.rowsOrder.toLowerCase()?o.Helpers.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()}
1,enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},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){return this.cells.getCellDisplayLocText(e,t)||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),(!r||this.errors.length>0)&&this.hasErrorInRows()&&t.push(new c.RequiredInAllRowsError(null,this))},t.prototype.hasErrorInRows=function(){return!!this.isAllRowRequired&&!this.hasValuesInAllRows()},t.prototype.hasValuesInAllRows=function(){var e=this.generatedVisibleRows;
1if(e||(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++)if(this.isValueEmpty(e[t].value))return!1;return!0},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,r){var n=new y(e,t,this,r);return this.onMatrixRowCreated(n),n},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,r){if(void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||r),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var n=this.value;if(n||(n={}),0==this.rows.length)this.generatedVisibleRows[0].value=n;else for(var o=0;o<this.generatedVisibleRows.length;o++){var i=n[this.generatedVisibleRows[o].name];this.isValueEmpty(i)&&(i=null),this.generatedVisibleRows[o].value=i}this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var r={};for(var n in t){var o=e?i.ItemValue.getTextOrHtmlByValue(this.rows,n):n;o||(o=n);var s=i.ItemValue.getTextOrHtmlByValue(this.columns,t[n]);s||(s=t[n]),r[o]=s}return r},t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n){var o=this.createValueCopy();n.isNode=!0,n.data=Object.keys(o||{}).map(function(e){var n=r.rows.filter(function(t){return t.value===e})[0],s={name:e,title:n?n.text:"row",value:o[e],displayValue:i.ItemValue.getTextOrHtmlByValue(r.visibleColumns,o[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},a=i.ItemValue.getItemByValue(r.visibleColumns,o[e]);return a&&(t.calculations||[]).forEach(function(e){s[e.propertyName]=a[e.propertyName]}),s})}return n},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=0;r<this.rows.length;r++){var n=this.rows[r];n.value&&e.push({name:this.getValueName()+"."+n.value,text:this.processedTitle+"."+n.calculatedText,question:this})}},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 h.QuestionDropdownModel(r);n.choices=this.columns;var o=new a.JsonObject().toJsonObject(n);return o.type=n.getType(),o},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.hasRows&&this.clearInvisibleValuesInRows()},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return(t||(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0)?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},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.prototype.getCorrectedRowValue=function(e){for(var t=0;t<this.columns.length;t++)if(e===this.columns[t].value)return e;for(var t=0;t<this.columns.length;t++)if(this.isTwoValueEquals(e,this.columns[t].value))return this.columns[t].value;return e},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(s.QuestionMatrixBaseModel);a.Serializer.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return u.surveyLocalization.getString("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean","hideIfRowsEmpty:boolean"],function(){return new b("")},"matrixbase"),p.QuestionFactory.Instance.registerQuestion("matrix",function(e){var t=new b(e);return t.rows=p.QuestionFactory.DefaultRows,t.columns=p.QuestionFactory.DefaultColums,t})},
1"./src/question_matrixdropdown.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixDropdownRowModel",function(){return u}),r.d(t,"QuestionMatrixDropdownModel",function(){return c});var n,o=r("./src/question_matrixdropdownbase.ts"),i=r("./src/jsonobject.ts"),s=r("./src/itemvalue.ts"),a=r("./src/questionfactory.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t,r,n,o){var i=e.call(this,n,o)||this;return i.name=t,i.item=r,i.buildCells(o),i}return l(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t}(o.MatrixDropdownRowModelBase),c=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("totalText",r,!0),r.registerPropertyChangedHandlers(["rows"],function(){r.clearGeneratedRows(),r.resetRenderedTable(),r.filterItems()||r.onRowsChanged()}),r.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){r.updateVisibilityBasedOnRows()}),r}return l(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty",!1)},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;var r=this.visibleRows,n={};if(!r)return n;for(var o=0;o<r.length;o++){var i=r[o].rowName,a=t[i];if(a){if(e){var l=s.ItemValue.getTextOrHtmlByValue(this.rows,i);l&&(i=l)}n[i]=this.getRowDisplayValue(e,r[o],a)}}return n},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(t);return e},t.prototype.setNewValue=function(t){t&&"object"!=typeof t||e.prototype.setNewValue.call(this,t)},t.prototype.clearIncorrectValues=function(){var t=this.value;if(t){var r=null,n=!1,o=this.filteredRows?this.filteredRows:this.rows;for(var i in t)s.ItemValue.getItemByValue(o,i)?(null==r&&(r={}),r[i]=t[i]):n=!0;n&&(this.value=r),e.prototype.clearIncorrectValues.call(this)}},t.prototype.clearValueIfInvisibleCore=function(){e.prototype.clearValueIfInvisibleCore.call(this),this.clearInvisibleValuesInRows()},t.prototype.generateRows=function(){var e=[],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 u(e.value,e,this,t)},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;t||(t={});for(var r=0;r<this.rows.length;r++){var n=t[this.rows[r].value];this.updateProgressInfoByRow(e,n||{})}},t}(o.QuestionMatrixDropdownModelBase);i.Serializer.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],function(){return new c("")},"matrixdropdownbase"),a.QuestionFactory.Instance.registerQuestion("matrixdropdown",function(e){var t=new c(e);return t.choices=[1,2,3,4,5],t.rows=a.QuestionFactory.DefaultRows,o.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t})},
1"./src/question_matrixdropdownbase.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixDropdownCell",function(){return b}),r.d(t,"MatrixDropdownTotalCell",function(){return C}),r.d(t,"MatrixDropdownRowModelBase",function(){return w}),r.d(t,"MatrixDropdownTotalRowModel",function(){return _}),r.d(t,"QuestionMatrixDropdownModelBase",function(){return P});var n,o=r("./src/jsonobject.ts"),i=r("./src/martixBase.ts"),s=r("./src/helpers.ts"),a=r("./src/base.ts"),l=r("./src/survey-element.ts"),u=r("./src/textPreProcessor.ts"),c=r("./src/itemvalue.ts"),p=r("./src/questionfactory.ts"),d=r("./src/functionsfactory.ts"),h=r("./src/settings.ts"),m=r("./src/error.ts"),f=r("./src/utils/cssClassBuilder.ts"),g=r("./src/question_matrixdropdowncolumn.ts"),y=r("./src/question_matrixdropdownrendered.ts"),v=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),b=function(){function e(e,t,r){this.column=e,this.row=t,this.data=r,this.questionValue=this.createQuestion(e,t,r),this.questionValue.updateCustomWidget()}return e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,r){var n=r.createQuestion(this.row,this.column);return n.validateValueCallback=function(){return r.validateCell(t,e.name,t.value)},o.CustomPropertiesCollection.getProperties(e.getType()).forEach(function(t){var r=t.name;void 0!==e[r]&&(n[r]=e[r])}),n},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!1,configurable:!0}),e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),C=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return o.column=t,o.row=r,o.data=n,o.updateCellQuestion(),o}return v(t,e),t.prototype.createQuestion=function(e,t,r){var n=o.Serializer.createClass("expression");return n.setSurveyImpl(t),n},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,function(e){delete e.defaultValue}),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"";var e=this.column.totalType+"InArray";return d.FunctionFactory.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(b),x=function(e){function t(t,r,n){var o=e.call(this,r)||this;return o.row=t,o.variableName=r,o.parentTextProcessor=n,o}return v(t,e),t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==w.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):e.name==w.RowValueVariableName&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(u.QuestionTextProcessor),w=function(){function e(t,r){var n=this;this.isSettingValue=!1,this.detailPanelValue=null,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(r),this.textPreProcessor=new x(this,e.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(n.getSurvey().isDesignMode)return!0;n.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,r=0;r<t.length;r++){var n=t[r];n.isEmpty()||(e[n.getValueName()]=n.value),n.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[n.getValueName()+h.settings.commentPrefix]=n.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,r=0;r<t.length;r++){var n=t[r],o=this.getCellValue(e,n.getValueName()),i=n.comment,s=e?e[n.getValueName()+h.settings.commentPrefix]:"";void 0==s&&(s=""),n.updateValueFromSurvey(o),(s||this.isTwoValueEquals(i,n.comment))&&n.updateCommentFromSurvey(s),n.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!1,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){this.data&&this.data.setIsDetailPanelShowing(this,e),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel&&!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.data.getRowValue(this.data.getRowIndex(this));if(!s.Helpers.isValueEmpty(t))for(var r=0;r<e.length;r++){var n=e[r].getValueName();s.Helpers.isValueEmpty(t[n])||(e[r].value=t[n])}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}},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(),row:this}},e.prototype.runCondition=function(t,r){this.data&&(t[e.OwnerVariableName]=this.data.value),t[e.IndexVariableName]=this.rowIndex,t[e.RowValueVariableName]=this.rowName,r||(r={}),r[e.RowVariableName]=this;for(var n=0;n<this.cells.length;n++)t[e.RowVariableName]=this.value,this.cells[n].runCondition(t,r);this.detailPanel&&this.detailPanel.runCondition(t,r)},e.prototype.clearValue=function(){for(var e=this.questions,t=0;t<e.length;t++)e[t].clearValue()},e.prototype.onAnyValueChanged=function(e){for(var t=this.questions,r=0;r<t.length;r++)t[r].onAnyValueChanged(e)},e.prototype.getDataValueCore=function(e,t){var r=this.getSurvey();return r?r.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,r){this.setValueCore(e,t,!0)},e.prototype.setValueCore=function(t,r,n){if(!this.isSettingValue){this.updateQuestionsValue(t,r,n);var o=this.value,i=n?t+h.settings.commentPrefix:t,s=this.getQuestionByName(t),a=this.data.onRowChanging(this,i,o);if(s&&!this.isTwoValueEquals(a,r))n?s.comment=a:s.value=a;else{if(this.data.isValidateOnValueChanging&&this.hasQuestonError(s))return;var l=null==r&&!s||n&&!r&&!!s&&s.autoOtherMode;this.data.onRowChanged(this,i,o,l),this.onAnyValueChanged(e.RowVariableName)}}},e.prototype.updateQuestionsValue=function(e,t,r){if(this.detailPanel){var n=this.getQuestionByColumnName(e),o=this.detailPanel.getQuestionByName(e);
1if(n&&o){var i=this.isTwoValueEquals(t,r?n.comment:n.value)?o:n;this.isSettingValue=!0,r?i.comment=t:i.value=t,this.isSettingValue=!1}}},e.prototype.hasQuestonError=function(e){if(!e)return!1;if(e.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(e.isEmpty())return!1;var t=this.getCellByColumnName(e.name);return!!t&&!!t.column&&!!t.column.isUnique&&this.data.checkIfValueInRowDuplicated(this,e)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(s.Helpers.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!1,configurable:!0}),e.prototype.getQuestionByColumn=function(e){var t=this.getCellByColumn(e);return t?t.question:null},e.prototype.getCellByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null},e.prototype.getCellByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null},e.prototype.getQuestionByColumnName=function(e){var t=this.getCellByColumnName(e);return t?t.question:null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);for(var r=this.detailPanel?this.detailPanel.questions:[],t=0;t<r.length;t++)e.push(r[t]);return e},enumerable:!1,configurable:!0}),e.prototype.getQuestionByName=function(e){var t=this.getQuestionByColumnName(e);return t||(this.detailPanel?this.detailPanel.getQuestionByName(e):null)},e.prototype.getQuestionsByName=function(e){var t=[],r=this.getQuestionByColumnName(e);return r&&t.push(r),this.detailPanel&&(r=this.detailPanel.getQuestionByName(e))&&t.push(r),t},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var r=this.getQuestionByName(t);if(r){var n=r.value;r.clearIncorrectValues(),this.isTwoValueEquals(n,r.value)||this.setValue(t,r.value)}else!this.getSharedQuestionByName(t)&&0>t.indexOf(h.settings.matrixTotalValuePostFix)&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):void 0},e.prototype.getRenderer=function(e){return this.data?this.data.getRenderer(e):null},e.prototype.getRendererContext=function(e){return this.data?this.data.getRendererContext(e):e},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].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,r){var n=this.getCellByColumn(e);n&&this.updateCellOnColumnChanged(n,t,r)},e.prototype.updateCellQuestionOnColumnItemValueChanged=function(e,t,r,n,o,i){var s=this.getCellByColumn(e);s&&this.updateCellOnColumnItemValueChanged(s,t,r,n,o,i)},e.prototype.onQuestionReadOnlyChanged=function(e){for(var t=this.questions,r=0;r<t.length;r++){var n=t[r];n.setPropertyValue("isReadOnly",n.isReadOnly)}this.detailPanel&&(this.detailPanel.readOnly=e)},e.prototype.hasErrors=function(e,t,r){var n=!1,o=this.cells;if(!o)return n;for(var i=0;i<o.length;i++){if(o[i]){var s=o[i].question;s&&s.visible&&(s.onCompletedAsyncValidators=function(e){r()},t&&!0===t.isOnValueChanged&&s.isEmpty()||(n=s.hasErrors(e,t)||n))}}if(this.hasPanel){this.ensureDetailPanel();var a=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&a&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),n=a||n}return n},e.prototype.updateCellOnColumnChanged=function(e,t,r){e.question[t]=r},e.prototype.updateCellOnColumnItemValueChanged=function(e,t,r,n,o,i){var s=e.question[t];if(Array.isArray(s)){var a="value"===n?i:r.value,l=c.ItemValue.getItemByValue(s,a);l&&(l[n]=o)}},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,r=0;r<t.length;r++){var n=t[r];if(n.isVisible){var o=this.createCell(n);this.cells.push(o);var i=this.getCellValue(e,n.name);if(!s.Helpers.isValueEmpty(i)){o.question.value=i;var a=n.name+h.settings.commentPrefix;e&&!s.Helpers.isValueEmpty(e[a])&&(o.question.comment=e[a])}}}this.isSettingValue=!1},e.prototype.isTwoValueEquals=function(e,t){return s.Helpers.isTwoValueEquals(e,t,!1,!0,!1)},e.prototype.getCellValue=function(e,t){return this.editingObj?o.Serializer.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0},e.prototype.createCell=function(e){return new b(e,this,this.data)},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.data?this.data.getRowIndex(this)+1:-1}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;e&&e.getType&&e.onPropertyChanged&&e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,r){t.updateOnSetValue(r.name,r.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;for(var r=this.getQuestionsByName(e),n=0;n<r.length;n++)r[n].value=t;this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.idCounter=1,e}(),_=function(e){function t(t){var r=e.call(this,t,null)||this;return r.buildCells(null),r}return v(t,e),t.prototype.createCell=function(e){return new C(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,r){var n,o=0;do n=s.Helpers.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,r),o++;while(!s.Helpers.isTwoValueEquals(n,this.value)&&o<3)},t.prototype.updateCellOnColumnChanged=function(e,t,r){e.updateCellQuestion()},t}(w),P=function(e){function t(t){var r=e.call(this,t)||this;return r.isRowChanging=!1,r.lockResetRenderedTable=!1,r.isDoingonAnyValueChanged=!1,r.createItemValues("choices"),r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("keyDuplicationError",r,!1,!0),r.detailPanelValue=r.createNewDetailPanel(),r.detailPanel.selectedElementInDesign=r,r.detailPanel.renderWidth="100%",r.detailPanel.isInteractiveDesignElement=!1,r.detailPanel.showTitle=!1,r.registerPropertyChangedHandlers(["columns","cellType"],function(){r.updateColumnsAndRows()}),r.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],function(){r.clearRowsAndResetRenderedTable()}),r.registerPropertyChangedHandlers(["columnLayout","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode"],function(){r.resetRenderedTable()}),r.registerPropertyChangedHandlers(["isMobile"],function(){"vertical"===r.columnLayout&&r.resetRenderedTable()}),r}return v(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return h.settings.matrixDefaultCellType},set:function(e){h.settings.matrixDefaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var t=p.QuestionFactory.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,e.onAddColumn&&e.onAddColumn(t)},function(t){t.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(t)})},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(t,r,n,o){e.prototype.itemValuePropertyChanged.call(this,t,r,n,o),"choices"===t.ownerPropertyName&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.getPropertyValue("columnLayout")},set:function(e){this.setPropertyValue("columnLayout",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return!!this.isMobile||"vertical"!=this.columnLayout},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return void 0!==this.isUniqueCaseSensitiveValue?this.isUniqueCaseSensitiveValue:h.settings.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return o.Serializer.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,t){},t.prototype.onRowsChanged=function(){this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly()},t.prototype.onEndRowAdding=function(){this.lockResetRenderedTable=!1,this.renderedTable&&(this.renderedTable.isRequireReset()?this.resetRenderedTable():this.renderedTable.onAddedRow())},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){this.lockResetRenderedTable||this.isUpdateLocked||(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"renderedTable",{get:function(){return!this.renderedTableValue&&(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y.QuestionMatrixDropdownRenderedTable(this)},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.visibleColumns[r],t.columnName=t.column.name;var n=e.cells[r];t.cell=n,t.cellQuestion=n.question,t.value=n.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",h.settings.matrixDefaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,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")}
vendor: 2,390 bytes, line 1
1,set:function(e){e<0||e>4||this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll",!1)},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,t,r){if(this.updateHasFooter(),this.generatedVisibleRows){for(var n=0;n<this.generatedVisibleRows.length;n++)this.generatedVisibleRows[n].updateCellQuestionOnColumnChanged(e,t,r);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,r),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,t,r,n,o,i){if(this.generatedVisibleRows)for(var s=0;s<this.generatedVisibleRows.length;s++)this.generatedVisibleRows[s].updateCellQuestionOnColumnItemValueChanged(e,t,r,n,o,i)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.onColumnCellTypeChanged=function(e){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,t,r){if(!this.survey)return r;
1var n={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:r};return this.survey.matrixCellCreating(this,n),n.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="",o=r.length-1;o>=0&&"."!=r[o];o--)n=r[o]+n;var i=this.getColumnByName(n);if(!i)return null;var s=i.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(this.getRowValue(t))},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this),this.runFuncForCellQuestions(function(e){e.clearErrors()})},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.runFuncForCellQuestions(function(e){e.localeChanged()})},t.prototype.runFuncForCellQuestions=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++)e(r.cells[n].question)},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r);var n,o=0;do n=s.Helpers.getUnbindValue(this.totalValue),this.runCellsCondition(t,r),this.runTotalsCondition(t,r),o++;while(!s.Helpers.isTwoValueEquals(n,this.totalValue)&&o<3)},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){if(this.generatedVisibleRows){for(var r=this.getRowConditionValues(e),n=this.generatedVisibleRows,o=0;o<n.length;o++)n[o].runCondition(r,t);this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()}},t.prototype.checkColumnsVisibility=function(){for(var e=!1,t=0;t<this.visibleColumns.length;t++)this.visibleColumns[t].visibleIf&&(e=this.isColumnVisibilityChanged(this.visibleColumns[t])||e);e&&this.resetRenderedTable()},t.prototype.checkColumnsRenderedRequired=function(){for(var e=this.generatedVisibleRows,t=0;t<this.visibleColumns.length;t++){var r=this.visibleColumns[t];if(r.requiredIf){for(var n=e.length>0,o=0;o<e.length;o++)if(!e[o].cells[t].question.isRequired){n=!1;break}r.updateIsRenderedRequired(n)}}},t.prototype.isColumnVisibilityChanged=function(e){for(var t=e.hasVisibleCell,r=!1,n=this.generatedVisibleRows,o=0;o<n.length;o++){var i=n[o].cells[e.index];if(i&&i.question&&i.question.isVisible){r=!0;break}}return t!=r&&(e.hasVisibleCell=r),t!=r},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;t||(t={});var r={};return this.isValueEmpty(this.totalValue)||(r=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=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;
1if(n){for(var r=0;r<n.length;r++)n[r].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.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.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,t){void 0===t&&(t=null);var r=new g.MatrixDropdownColumn(e,t);return this.columns.push(r),r},t.prototype.getVisibleRows=function(){var e=this;return this.isUpdateLocked?null:(this.generatedVisibleRows||(this.generatedVisibleRows=this.generateRows(),this.generatedVisibleRows.forEach(function(t){return e.onMatrixRowCreated(t)}),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()),this.generatedVisibleRows)},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),r=this.createNewValue(),n=0;n<e.length;n++){var o=e[n];if(!o.editingObj){var i=this.getRowValue(n),s=o.value;this.isTwoValueEquals(i,s)||(r=this.getNewValueOnRowChanged(o,"",s,!1,r).value)}}this.isTwoValueEquals(t,r)||(this.isRowChanging=!0,this.setNewValue(r),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0)return null;var t=this.visibleRows;
1if(e>=t.length)return null;var r=this.createNewValue();return this.getRowValueCore(t[e],r)},t.prototype.checkIfValueInRowDuplicated=function(e,t){if(!this.generatedVisibleRows)return!1;for(var r=!1,n=0;n<this.generatedVisibleRows.length;n++){var o=this.generatedVisibleRows[n];if(e!==o&&s.Helpers.isTwoValueEquals(o.getValue(t.name),t.value,!0,this.isUniqueCaseSensitive)){r=!0;break}}return r?this.addDuplicationError(t):t.clearErrors(),r},t.prototype.setRowValue=function(e,t){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;r[e].value=t,this.onRowChanged(r[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new _(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,r){void 0===r&&(r=!1);var n=t&&t[e.rowName]?t[e.rowName]:null;return!n&&r&&(n={},t&&(t[e.rowName]=n)),n},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t,r){if(!r||t.editingObj)return r;for(var n=Object.keys(r),o=0;o<n.length;o++){var i=n[o],s=t.getQuestionByName(i);if(s||(s=this.getSharedQuestionByName(i,t)),s){var a=s.getDisplayValue(e,r[i]);e&&s.title&&s.title!==i?(r[s.title]=a,delete r[i]):r[i]=a}}return r},t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.visibleRows.map(function(e){var n={name:e.rowName,title:e.text,value:e.value,displayValue:r.getRowDisplayValue(!1,e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map(function(e){return e.question.getPlainData(t)}).filter(function(e){return!!e})};return(t.calculations||[]).forEach(function(t){n[t.propertyName]=e[t.propertyName]}),n})),n},t.prototype.addConditionObjectsByContext=function(e,t){var r=!!t&&(!0===t||this.columns.indexOf(t)>-1),n=this.getConditionObjectsRowIndeces();r&&n.push(-1);for(var o=0;o<n.length;o++){var i=n[o],s=i>-1?this.getConditionObjectRowName(i):"row";if(s)for(var a=i>-1?this.getConditionObjectRowText(i):"row",l=i>-1||!0===t,u=l&&-1===i?".":"",c=(l?this.getValueName():"")+u+s+".",p=(l?this.processedTitle:"")+u+a+".",d=0;d<this.columns.length;d++){var h=this.columns[d];if(-1!==i||t!==h){var m={name:c+h.name,text:p+h.fullTitle,question:this};-1===i&&!0===t&&(m.context=this),e.push(m)}}}},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return l.SurveyElement.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=a.Base.createProgressInfo();return this.updateProgressInfoByValues(e),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,t){for(var r=0;r<this.columns.length;r++){var n=this.columns[r];if(n.templateQuestion.hasInput){e.questionCount+=1,e.requiredQuestionCount+=n.isRequired;var o=!s.Helpers.isValueEmpty(t[n.name]);e.answeredQuestionCount+=+!!o,e.requiredAnsweredQuestionCount+=o&&n.isRequired?1:0}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions(function(t){e.push(t)}),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging&&(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length)){this.isRowChanging=!0;for(var e=this.createNewValue(),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.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;
1if(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 o=r[n].question;if(o&&(!o.supportGoNextPageAutomatic()||!o.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors(function(e){return e.containsErrors},!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors(function(e){return e.isAnswered},!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var r=this.generatedVisibleRows;if(!r)return!1;for(var n=0;n<r.length;n++){var o=r[n].cells;if(o){for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;if(s&&s.isVisible){if(e(s)){if(!t)return!0}else if(t)return!1}}}}return!!t},t.prototype.hasErrors=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var n=this.hasErrorInRows(t,r),o=this.isValueDuplicated();return e.prototype.hasErrors.call(this,t,r)||n||o},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t].cells;if(r){for(var n=0;n<r.length;n++)if(r[n]){var o=r[n].question;if(o&&o.isRunningValidators)return!0}}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),r=this.generatedVisibleRows;
1if(null===r)return t;for(var n=0;n<r.length;n++)for(var o=r[n],i=0;i<o.cells.length;i++){var s=o.cells[i].question.getAllErrors();s&&s.length>0&&(t=t.concat(s))}return t},t.prototype.hasErrorInRows=function(e,t){var r=this,n=this.generatedVisibleRows;this.generatedVisibleRows||(n=this.visibleRows);var o=!1;if(t||(t={}),!n)return t;t.isSingleDetailPanel="underRowSingle"===this.detailPanelMode;for(var i=0;i<n.length;i++)o=n[i].hasErrors(e,t,function(){r.raiseOnCompletedAsyncValidators()})||o;return o},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumns(),t=!1,r=0;r<e.length;r++)t=this.isValueInColumnDuplicated(e[r])||t;return t},t.prototype.isValueInColumnDuplicated=function(e){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.getUniqueColumns=function(){for(var e=[],t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t]);return e},t.prototype.isValueDuplicatedInRow=function(e,t,r){var n=e.getQuestionByColumn(t);if(!n||n.isEmpty())return!1;for(var o=n.value,i=0;i<r.length;i++)if(s.Helpers.isTwoValueEquals(o,r[i],!0,this.isUniqueCaseSensitive))return this.addDuplicationError(n),!0;return r.push(o),!1},t.prototype.addDuplicationError=function(e){e.addError(new m.KeyDuplicationError(this.keyDuplicationError,this))},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},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<r.length;n++)if(!e||r[n].question.currentErrorCount>0)return r[n].question;return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged(this.isReadOnly)},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var r=t.createCellQuestion(e);return r.setSurveyImpl(e),r.setParentQuestion(this),r},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e){if(!this.isUpdateLocked&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var t=this.visibleRows,r=0;r<t.length;r++)t[r].onAnyValueChanged(e);var n=this.visibleTotalRow;n&&n.onAnyValueChanged(e),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,r){return{row:e,columnName:t,rowValue:r,value:r?r[t]:null,getCellQuestion:function(t){for(var r=0;r<e.cells.length;r++){var n=e.cells[r].column;if(n&&n.name===t)return e.cells[r].question}return null}}},t.prototype.onCellValueChanged=function(e,t,r){if(this.survey){var n=this.getOnCellValueChangedOptions(e,t,r);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(n),this.survey.matrixCellValueChanged(this,n)}},t.prototype.validateCell=function(e,t,r){if(this.survey){var n=this.getOnCellValueChangedOptions(e,t,r);return this.survey.matrixCellValidate(this,n)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return!!this.survey&&this.survey.isValidateOnValueChanging},enumerable:!1,configurable:!0}),t.prototype.onRowChanging=function(e,t,r){if(!this.survey)return r?r[t]:null;var n=this.getOnCellValueChangedOptions(e,t,r),o=this.getRowValueCore(e,this.createNewValue(),!0);return n.oldValue=o?o[t]:null,this.survey.matrixCellValueChanging(this,n),n.value},t.prototype.onRowChanged=function(e,t,r,n){var o=t?this.getRowObj(e):null;if(o){var i=null;r&&!n&&(i=r[t]),this.isRowChanging=!0,o[t]=i,this.isRowChanging=!1,this.onCellValueChanged(e,t,o)}else{var s=this.createNewValue(!0),a=this.getNewValueOnRowChanged(e,t,r,n,this.createNewValue());if(this.isTwoValueEquals(s,a.value))return;this.isRowChanging=!0,this.setNewValue(a.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,a.rowValue)}},t.prototype.getNewValueOnRowChanged=function(e,t,r,n,o){var i=this.getRowValueCore(e,o,!0);n&&delete i[t];for(var s=0;s<e.cells.length;s++){var a=e.cells[s].question.getValueName();delete i[a]}if(r)for(var a in r=JSON.parse(JSON.stringify(r)))this.isValueEmpty(r[a])||(i[a]=r[a]);return this.isObject(i)&&0===Object.keys(i).length&&(o=this.deleteRowValue(o,e)),{value:o,rowValue:i}},t.prototype.getRowIndex=function(e){return this.generatedVisibleRows?this.visibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){var r;return void 0===t&&(t=!1),r="none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements,this.columns.concat(r)},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&!e.detailPanel&&e.showDetailPanel(),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),t&&"underRowSingle"===this.detailPanelMode))for(var r=this.visibleRows,n=0;n<r.length;n++)r[n].id!==e.id&&r[n].isDetailPanelShowing&&r[n].hideDetailPanel()},t.prototype.getDetailPanelButtonCss=function(e){var t=new f.CssClassBuilder().append(this.getPropertyValue("detailButtonCss"+e.id));
1return t.append(this.cssClasses.detailButton,""===t.toString()).toString()},t.prototype.getDetailPanelIconCss=function(e){var t=new f.CssClassBuilder().append(this.getPropertyValue("detailIconCss"+e.id));return t.append(this.cssClasses.detailIcon,""===t.toString()).toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,r=this.getIsDetailPanelShowing(e),n=new f.CssClassBuilder().append(t.detailIcon).append(t.detailIconExpanded,r);this.setPropertyValue("detailIconCss"+e.id,n.toString());var o=new f.CssClassBuilder().append(t.detailButton).append(t.detailButtonExpanded,r);this.setPropertyValue("detailButtonCss"+e.id,o.toString())},t.prototype.createRowDetailPanel=function(e){if(this.isDesignMode)return this.detailPanel;var t=this.createNewDetailPanel();t.readOnly=this.isReadOnly;var r=this.detailPanel.toJSON();return new o.JsonObject().toObject(r,t),t.renderWidth="100%",t.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,t),t},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var r=this.getRowIndex(t);return r<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,r)},t.prototype.onTotalValueChanged=function(){!this.data||!this.visibleTotalRow||this.isUpdateLocked||this.isSett||this.isReadOnly||this.data.setValue(this.getValueName()+h.settings.matrixTotalValuePostFix,this.totalValue,!1)},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return new f.CssClassBuilder().append(e.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!0},t}(i.QuestionMatrixBaseModel);o.Serializer.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn"},{name:"columnLayout",alternativeName:"columnsLocation",default:"horizontal",choices:["horizontal","vertical"]},{name:"detailElements",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},"horizontalScroll:boolean",{name:"choices:itemvalue[]",uniqueProperty:"value"},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return g.MatrixDropdownColumn.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],function(){return new P("")},"matrixbase")},
1"./src/question_matrixdropdowncolumn.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"matrixDropdownColumnTypes",function(){return c}),r.d(t,"MatrixDropdownColumn",function(){return p});var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/question_expression.ts"),a=r("./src/settings.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function u(e,t,r,n){e.storeOthersAsComment=!!r&&r.storeOthersAsComment,(!e.choices||0==e.choices.length)&&e.choicesByUrl.isEmpty&&(e.choices=r.choices),e.choicesByUrl.isEmpty||e.choicesByUrl.run(n.getTextProcessor())}var c={dropdown:{onCellQuestionUpdate:function(e,t,r,n){u(e,t,r,n),e.locPlaceholder&&e.locPlaceholder.isEmpty&&!r.locPlaceholder.isEmpty&&(e.optionsCaption=r.optionsCaption)}},checkbox:{onCellQuestionUpdate:function(e,t,r,n){u(e,t,r,n),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},radiogroup:{onCellQuestionUpdate:function(e,t,r,n){u(e,t,r,n),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},tagbox:{},text:{},comment:{},boolean:{onCellQuestionUpdate:function(e,t,r,n){e.renderAs=t.renderAs}},expression:{},rating:{}},p=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._hasVisibleCell=!0,n.previousChoicesId=void 0,n.createLocalizableString("totalFormat",n),n.createLocalizableString("cellHint",n),n.registerPropertyChangedHandlers(["showInMultipleColumns"],function(){n.doShowInMultipleColumnsChanged()}),n.updateTemplateQuestion(),n.name=t,r?n.title=r:n.templateQuestion.locTitle.strChanged(),n}return l(t,e),t.getColumnTypes=function(){var e=[];for(var t in c)e.push(t);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return"default"===this.cellType?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,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")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this._isVisible=e},Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e}
vendor: 4,108 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns",!1)},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){e<-1||e>20||this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){0>Object(s.getCurrecyCodes)().indexOf(e)||this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){e<-1||e>4||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(e),r=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(r,e),r},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&!t.cellType&&t.choices&&(t.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,t,r){void 0===r&&(r=null),this.setQuestionProperties(e,r)},t.prototype.callOnCellQuestionUpdate=function(e,t){var r=c[e.getType()];r&&r.onCellQuestionUpdate&&r.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t},t.prototype.getDefaultCellQuestionType=function(e){return(e||(e=this.cellType),"default"!==e)?e:this.colOwner?this.colOwner.getCellType():a.settings.matrixDefaultCellType},t.prototype.updateTemplateQuestion=function(e){var t=this,r=this.getDefaultCellQuestionType(e),n=this.templateQuestion?this.templateQuestion.getType():"";r!==n&&(this.templateQuestion&&this.removeProperties(n),this.templateQuestionValue=this.createNewQuestion(r),this.templateQuestion.locOwner=this,this.addProperties(r),this.templateQuestion.onPropertyChanged.add(function(e,r){t.propertyValueChanged(r.name,r.oldValue,r.newValue)}),this.templateQuestion.onItemValuePropertyChanged.add(function(e,r){t.doItemValuePropertyChanged(r.propertyName,r.obj,r.name,r.newValue,r.oldValue)}),this.templateQuestion.isContentElement=!0,this.isLoadingFromJson||(this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}),this.templateQuestion.locTitle.strChanged())}
1,t.prototype.createNewQuestion=function(e){var t=o.Serializer.createClass(e);return t||(t=o.Serializer.createClass("text")),t.loadingOwner=this,t.isEditableTemplateElement=!0,t.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(t),this.setParentQuestionToTemplate(t),t},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,t){var r=this;if(void 0===t&&(t=null),this.templateQuestion){var n=new o.JsonObject().toJsonObject(this.templateQuestion,!0);t&&t(n),n.type=e.getType(),"default"===this.cellType&&this.colOwner&&this.colOwner.hasChoices()&&delete n.choices,delete n.itemComponent,new o.JsonObject().toObject(n,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(r.isShowInMultipleColumns&&(!r.previousChoicesId||r.previousChoicesId===e.id)){r.previousChoicesId=e.id;var t=e.visibleChoices;r.templateQuestion.choices=t,r.propertyValueChanged("choices",t,t)}}}},t.prototype.propertyValueChanged=function(t,r,n){e.prototype.propertyValueChanged.call(this,t,r,n),"isRequired"===t&&this.updateIsRenderedRequired(n),this.colOwner&&!this.isLoadingFromJson&&(this.isShowInMultipleColumns&&["visibleChoices","choices"].indexOf(t)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this),o.Serializer.hasOriginalProperty(this,t)&&this.colOwner.onColumnPropertyChanged(this,t,n))},t.prototype.doItemValuePropertyChanged=function(e,t,r,n,i){o.Serializer.hasOriginalProperty(t,r)&&(null==this.colOwner||this.isLoadingFromJson||this.colOwner.onColumnItemValuePropertyChanged(this,e,t,r,n,i))},t.prototype.doShowInMultipleColumnsChanged=function(){null==this.colOwner||this.isLoadingFromJson||this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.getProperties=function(e){return o.Serializer.getDynamicPropertiesByObj(this,e)},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 o=r[n];this.addProperty(t,o.name,!1),o.serializationProperty&&this.addProperty(t,o.serializationProperty,!0),o.alternativeName&&this.addProperty(t,o.alternativeName,!1)}},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}(i.Base);o.Serializer.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var e=p.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean","minWidth","width","visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return!!e&&e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",default:"none",choices:["none","sum","count","min","max","avg"]},"totalExpression:expression",{name:"totalFormat",serializationProperty:"locTotalFormat"},{name:"totalDisplayStyle",default:"none",choices:["none","decimal","currency","percent"]},{name:"totalCurrency",choices:function(){return Object(s.getCurrecyCodes)()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1},{name:"totalMinimumFractionDigits:number",default:-1},{name:"renderAs",default:"default",visible:!1}],function(){return new p("")})},
1"./src/question_matrixdropdownrendered.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionMatrixDropdownRenderedCell",function(){return m}),r.d(t,"QuestionMatrixDropdownRenderedRow",function(){return f}),r.d(t,"QuestionMatrixDropdownRenderedTable",function(){return g});var n,o=r("./src/jsonobject.ts"),i=r("./src/base.ts"),s=r("./src/itemvalue.ts"),a=r("./src/actions/action.ts"),l=r("./src/actions/adaptive-container.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/actions/container.ts"),p=r("./src/settings.ts"),d=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isDragHandlerCell=!1,this.classNameValue="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),e.prototype.showErrorOnCore=function(e){return this.getShowErrorLocation(e)&&(!this.isChoice||this.isFirstChoice)},e.prototype.getShowErrorLocation=function(e){return this.hasQuestion&&this.question.showErrorOnCore(e)},Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){var e=new u.CssClassBuilder().append(this.classNameValue);return this.hasQuestion&&e.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),e.toString()},set:function(e){this.classNameValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(" "===this.cell.column.cellHint)return"";if(this.cell.column.cellHint)return this.cell.column.locCellHint.renderedHtml;if(this.cell.column.isShowInMultipleColumns)return this.item.locText.renderedHtml}return this.question&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""}
1,enumerable:!1,configurable:!0}),e.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},e.prototype.calculateFinalClassName=function(e){var t=this.cell.question.cssClasses,r=new u.CssClassBuilder().append(t.itemValue,!!t).append(t.asCell,!!t);return r.append(e.cell,r.isEmpty()&&!!e).append(e.choiceCell,this.isChoice).toString()},e.counter=1,e}(),f=function(e){function t(r,n){void 0===n&&(n=!1);var o=e.call(this)||this;return o.cssClasses=r,o.isDetailRow=n,o.cells=[],o.idValue=t.counter++,o}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return new u.CssClassBuilder().append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.counter=1,h([Object(o.property)({defaultValue:null})],t.prototype,"isGhostRow",void 0),h([Object(o.property)({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),t}(i.Base),g=function(e){function t(t){var r=e.call(this)||this;return r.matrix=t,r.renderedRowsChangedCallback=function(){},r.hasActionCellInRowsValues={},r.build(),r}return d(t,e),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.matrix.allowRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var t=this.matrix.canAddRow&&e,r=t,n=t;r&&(r="default"===this.matrix.getAddRowLocation()?!this.matrix.isColumnLayoutHorizontal:"bottom"!==this.matrix.getAddRowLocation()),n&&"topBottom"!==this.matrix.getAddRowLocation()&&(n=!r),this.setPropertyValue("showAddRowOnTop",r),this.setPropertyValue("showAddRowOnBottom",n)},t.prototype.onAddedRow=function(){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var e=this.matrix.visibleRows[this.matrix.visibleRows.length-1];this.rowsActions.push(this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,1==this.matrix.visibleRows.length&&!this.matrix.showHeader),this.updateShowTableAndAddRow()}},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)!this.rows[t].isDetailRow&&e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var r=1;t<this.rows.length-1&&this.rows[t+1].isDetailRow&&r++,this.rows.splice(t,r),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var r=this.getRenderedRowIndex(e);
1if(!(r<0)){var n=r<this.rows.length-1&&this.rows[r+1].isDetailRow?r+1:-1;if((!t||!(n>-1))&&(t||!(n<0)))if(t){var o=this.createDetailPanelRow(e,this.rows[r]);this.rows.splice(r+1,0,o)}else this.rows.splice(n,1)}},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return -1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))},t.prototype.createRenderedRow=function(e,t){return void 0===t&&(t=!1),new f(e,t)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.visibleColumns.length;t++){var r=this.matrix.visibleColumns[t];r.hasVisibleCell&&(r.isShowInMultipleColumns?this.createMutlipleColumnsHeader(r):this.headerRow.cells.push(this.createHeaderCell(r)))}else{for(var n=this.matrix.visibleRows,t=0;t<n.length;t++){var o=this.createTextCell(n[t].locText);o.row=n[t],this.headerRow.cells.push(o)}this.matrix.hasFooter&&this.headerRow.cells.push(this.createTextCell(this.matrix.getFooterText()))}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildFooter=function(){if(this.showFooter){this.footerRowValue=this.createRenderedRow(this.cssClasses),this.allowRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null)),this.matrix.hasRowText&&this.footerRow.cells.push(this.createTextCell(this.matrix.getFooterText()));for(var e=this.matrix.visibleTotalRow.cells,t=0;t<e.length;t++){var r=e[t];if(r.column.hasVisibleCell)if(r.column.isShowInMultipleColumns)this.createMutlipleColumnsFooter(this.footerRow,r);else{var n=this.createEditCell(r);r.column&&this.setHeaderCellWidth(r.column,n),this.footerRow.cells.push(n)}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null))}},t.prototype.buildRows=function(){var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e},t.prototype.hasActionCellInRows=function(e){if(void 0===this.hasActionCellInRowsValues[e]){var t=this.matrix.visibleRows;this.hasActionCellInRowsValues[e]=!1;for(var r=0;r<t.length;r++)if(!this.isValueEmpty(this.getRowActions(r,e))){this.hasActionCellInRowsValues[e]=!0;break}}return this.hasActionCellInRowsValues[e]},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],r=0;r<e.length;r++)this.addHorizontalRow(t,e[r],0==r&&!this.matrix.showHeader);return t},t.prototype.addHorizontalRow=function(e,t,r){var n=this.createHorizontalRow(t,r);n.row=t,e.push(n),t.isDetailPanelShowing&&e.push(this.createDetailPanelRow(t,n))},t.prototype.getRowDragCell=function(e){var t=new m;return t.isDragHandlerCell=!0,t.className=this.getActionsCellClassName(),t.row=this.matrix.visibleRows[e],t},t.prototype.getActionsCellClassName=function(){return new u.CssClassBuilder().append(this.cssClasses.actionsCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal).toString()},t.prototype.getRowActionsCell=function(e,t){var r=this.getRowActions(e,t);if(!this.isValueEmpty(r)){var n=new m,o=this.matrix.allowAdaptiveActions?new l.AdaptiveActionContainer:new c.ActionContainer;return this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(o.cssClasses=this.matrix.survey.getCss().actionBar),o.setItems(r),n.item=new s.ItemValue(o),n.isActionsCell=!0,n.className=this.getActionsCellClassName(),n.row=this.matrix.visibleRows[e],n}return null},t.prototype.getRowActions=function(e,t){var r=this.rowsActions[e];return Array.isArray(r)?r.filter(function(e){return e.location||(e.location="start"),e.location===t}):[]},t.prototype.buildRowActions=function(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpd
1atedMatrixRowActions(this.matrix,e,t)),t},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return p.settings.matrixRenderRemoveAsIcon&&this.matrix.survey&&"sd-root-modern"===this.matrix.survey.css.root},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,t){var r=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?t.push(new a.Action({id:"remove-row",iconName:"icon-delete",component:"sv-action-bar-item",innerCss:new u.CssClassBuilder().append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:r.removeRowText,enabled:!r.isInputReadOnly,data:{row:e,question:r},action:function(){r.removeRowUI(e)}})):t.push(new a.Action({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&t.push(new a.Action({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}}))},t.prototype.createHorizontalRow=function(e,t){var r=this.createRenderedRow(this.cssClasses);if(this.allowRowsDragAndDrop){var n=this.matrix.visibleRows.indexOf(e);r.cells.push(this.getRowDragCell(n))}if(this.addRowActionsCell(e,r,"start"),this.matrix.hasRowText){var o=this.createTextCell(e.locText);o.row=e,r.cells.push(o),t&&this.setHeaderCellWidth(null,o),o.className=new u.CssClassBuilder().append(o.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.detailRowText,e.hasPanel).toString()}for(var i=0;i<e.cells.length;i++){var s=e.cells[i];if(s.column.hasVisibleCell)if(s.column.isShowInMultipleColumns)this.createMutlipleEditCells(r,s);else{var o=this.createEditCell(s);r.cells.push(o),t&&this.setHeaderCellWidth(s.column,o)}}return this.addRowActionsCell(e,r,"end"),r},t.prototype.addRowActionsCell=function(e,t,r){var n=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(r)){var o=this.getRowActionsCell(n,r);if(o)t.cells.push(o);else{var i=new m;i.isEmpty=!0,t.cells.push(i)}}},t.prototype.createDetailPanelRow=function(e,t){var r=this.matrix.isDesignMode,n=this.createRenderedRow(this.cssClasses,!0);n.row=e;var o=new m;this.matrix.hasRowText&&(o.colSpans=2),o.isEmpty=!0,r||n.cells.push(o);var i=null;this.hasActionCellInRows("end")&&((i=new m).isEmpty=!0);var s=new m;return s.panel=e.detailPanel,s.colSpans=t.cells.length-(r?0:o.colSpans)-(i?i.colSpans:0),s.className=this.cssClasses.detailPanelCell,n.cells.push(s),i&&n.cells.push(i),"function"==typeof this.matrix.onCreateDetailPanelRenderedRowCallback&&this.matrix.onCreateDetailPanelRenderedRowCallback(n),n},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],r=0;r<e.length;r++){var n=e[r];n.isVisible&&n.hasVisibleCell&&(n.isShowInMultipleColumns?this.createMutlipleVerticalRows(t,n,r):t.push(this.createVerticalRow(n,r)))}return this.hasActionCellInRows("end")&&t.push(this.createEndVerticalActionRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,r){var n=this.getMultipleColumnChoices(t);if(n)for(var o=0;o<n.length;o++)e.push(this.createVerticalRow(t,r,n[o],o))},t.prototype.createVerticalRow=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=-1);var o=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var i=r?r.locText:e.locTitle,s=this.createTextCell(i);s.column=e,s.className=new u.CssClassBuilder().append(s.className).append(this.cssClasses.rowTextCell).toString(),r||this.setRequriedToHeaderCell(e,s),o.cells.push(s)}for(var a=this.matrix.visibleRows,l=0;l<a.length;l++){var c=r,p=n>=0?n:l,d=a[l].cells[t],h=r?d.question.visibleChoices:void 0;h&&p<h.length&&(c=h[p]);var m=this.createEditCell(d,c);m.item=c,m.choiceIndex=p,o.cells.push(m)}return this.matrix.hasTotal&&o.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),o},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,r=0;r<t.length;r++)e.cells.push(this.getRowActionsCell(r,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,t,r){void 0===r&&(r=!1);var n=r?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(n)for(var o=0;o<n.length;o++){var i=this.createEditCell(t,r?void 0:n[o]);r||(i.choiceIndex=o),e.cells.push(i)}},t.prototype.createEditCell=function(e,t){void 0===t&&(t=void 0);var r=new m;return r.cell=e,r.row=e.row,r.question=e.question,r.matrix=this.matrix,r.item=t,r.isOtherChoice=!!t&&!!e.question&&e.question.otherItem===t,r.className=r.calculateFinalClassName(this.cssClasse
1s),r},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var r=0;r<t.length;r++){var n=this.createTextCell(t[r].locText);this.setHeaderCell(e,n),this.headerRow.cells.push(n)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&0==t.length?this.matrix.choices:(t=e.templateQuestion.visibleChoices)&&Array.isArray(t)?t:null},t.prototype.createHeaderCell=function(e){var t=e?this.createTextCell(e.locTitle):this.createEmptyCell();t.column=e,this.setHeaderCell(e,t);var r=e&&"default"!==e.cellType?e.cellType:this.matrix.cellType;return t.className=new u.CssClassBuilder().append(this.cssClasses.headerCell).append(this.cssClasses.emptyCell,!!t.isEmpty).append(this.cssClasses.cell+"--"+r).toString(),t},t.prototype.setHeaderCell=function(e,t){this.setHeaderCellWidth(e,t),this.setRequriedToHeaderCell(e,t)},t.prototype.setHeaderCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.setRequriedToHeaderCell=function(e,t){e&&e.isRequired&&this.matrix.survey&&(t.requiredText=this.matrix.survey.requiredText)},t.prototype.createRemoveRowCell=function(e){var t=new m;return t.row=e,t.isRemoveRow=this.canRemoveRow(e),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createTextCell=function(e){var t=new m;return t.locTitle=e,e&&e.strChanged(),this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createEmptyCell=function(){var e=this.createTextCell(null);return e.isEmpty=!0,e},h([Object(o.propertyArray)({onPush:function(e,t,r){r.renderedRowsChangedCallback()}})],t.prototype,"rows",void 0),t}(i.Base)},
1"./src/question_matrixdynamic.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixDynamicRowModel",function(){return f}),r.d(t,"QuestionMatrixDynamicModel",function(){return g});var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_matrixdropdownbase.ts"),a=r("./src/error.ts"),l=r("./src/settings.ts"),u=r("./src/utils/utils.ts"),c=r("./src/dragdrop/matrix-rows.ts"),p=r("./src/utils/cssClassBuilder.ts"),d=r("./src/question_matrixdropdownrendered.ts"),h=r("./src/utils/dragOrClickHelper.ts"),m=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),f=function(e){function t(t,r,n){var o=e.call(this,r,n)||this;return o.index=t,o.buildCells(n),o}return m(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data.visibleRows.indexOf(this)+1,t=this.cells.length>1?this.cells[1].questionValue:void 0,r=this.cells.length>0?this.cells[0].questionValue:void 0;return t&&t.value||r&&r.value||""+e},enumerable:!1,configurable:!0}),t}(s.MatrixDropdownRowModelBase),g=function(e){function t(t){var r=e.call(this,t)||this;return r.rowCounter=0,r.initialRowCount=2,r.setRowCountValueFromData=!1,r.startDragMatrixRow=function(e,t){r.dragDropMatrixRows.startDrag(e,r.draggedRow,r,e.target)},r.moveRowByIndex=function(e,t){var n=r.createNewValue();if(n){var o=n[e];o&&(n.splice(e,1),n.splice(t,0,o),r.value=n)}},r.createLocalizableString("confirmDeleteText",r,!1,"confirmDelete"),r.createLocalizableString("addRowText",r).onGetTextCallback=function(e){return e||r.defaultAddRowText},r.createLocalizableString("removeRowText",r,!1,"removeRow"),r.createLocalizableString("emptyRowsText",r,!1,!0),r.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],function(){r.updateShowTableAndAddRow()}),r.registerPropertyChangedHandlers(["allowRowsDragAndDrop"],function(){r.clearRowsAndResetRenderedTable()}),r.dragOrClickHelper=new h.DragOrClickHelper(r.startDragMatrixRow),r}return m(t,e),t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.dragDropMatrixRows=new c.DragDropMatrixRows(this.survey)},t.prototype.isBanStartDrag=function(e){var t=e.target;return"true"===t.getAttribute("contenteditable")||"INPUT"===t.nodeName},t.prototype.onPointerDown=function(e,t){!(!t||!this.allowRowsDragAndDrop||this.isBanStartDrag(e))&&(t.isDetailPanelShowing||(this.draggedRow=t,this.dragOrClickHelper.onPointerDown(e)))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){if(this.minRowCount<1)return e.prototype.valueFromData.call(this,t);Array.isArray(t)||(t=[]);for(var r=t.length;r<this.minRowCount;r++)t.push({});return t},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>l.settings.matrixMaximumRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var r=this.value;r.splice(e),this.value=r}if(this.isUpdateLocked){this.initialRowCount=e;return}if(this.generatedVisibleRows||0==t){this.generatedVisibleRows||(this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var n=t;n<e;n++){var o=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}}
1,enumerable:!1,configurable:!0}),t.prototype.updateProgressInfoByValues=function(e){var t=this.value;Array.isArray(t)||(t=[]);for(var r=0;r<this.rowCount;r++){var n=r<t.length?t[r]:{};this.updateProgressInfoByRow(e,n)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return!this.readOnly&&this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new y(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e),e>this.maxRowCount&&(this.maxRowCount=e),this.rowCount<e&&(this.rowCount=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){!(e<=0)&&(e>l.settings.matrixMaximumRowCount&&(e=l.settings.matrixMaximumRowCount),e!=this.maxRowCount&&(this.setPropertyValue("maxRowCount",e),e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),this.isUpdateLocked||this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!this.survey||this.survey.matrixAllowRemoveRow(this,e.index,e)},t.prototype.addRowUI=function(){var e=this.rowCount;if(this.addRow(),e!==this.rowCount){var t=this.getQuestionToFocusOnAddingRow();t&&t.focus()}},t.prototype.getQuestionToFocusOnAddingRow=function(){for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var r=e.cells[t].question;if(r&&r.isVisible&&!r.isReadOnly)return r}return null},t.prototype.addRow=function(){var e={question:this,canAddRow:this.canAddRow};this.survey&&this.survey.matrixBeforeRowAdded(e),e.canAddRow&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel())},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")},set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(t){return this.isEditingSurveyElement||e.prototype.isValueSurveyElement.call(this,t)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),r=null;if(this.isValueEmpty(t)||(r=this.createNewValue()).length==this.rowCount&&(r[r.length-1]=t,this.value=r),this.data&&(this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.isValueEmpty(t))){var n=this.visibleRows[this.rowCount-1];!this.isValueEmpty(n.value)&&(r||(r=this.createNewValue()),this.isValueSurveyElement(r)||this.isTwoValueEquals(r[r.length-1],n.value)||(r[r.length-1]=n.value,this.value=r))}this.survey&&e+1==this.rowCount&&(this.survey.matrixRowAdded(this,this.visibleRows[this.visibleRows.length-1]),this.onRowsChanged())},t.prototype.getDefaultRowValue=function(e){for(var t=null,r=0;r<this.columns.length;r++){var n=this.columns[r].templateQuestion;
1n&&!this.isValueEmpty(n.getDefaultValue())&&((t=t||{})[this.columns[r].name]=n.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var o in this.defaultRowValue)(t=t||{})[o]=this.defaultRowValue[o];if(e&&this.defaultValueFromLastRow){var i=this.value;if(i&&Array.isArray(i)&&i.length>=this.rowCount-1){var s=i[this.rowCount-2];for(var o in s)(t=t||{})[o]=s[o]}}return t},t.prototype.removeRowUI=function(e){if(e&&e.rowName){var t=this.visibleRows.indexOf(e);if(t<0)return;e=t}(!this.isRequireConfirmOnRowDelete(e)||Object(u.confirmAction)(this.confirmDeleteText))&&this.removeRow(e)},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete||e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!this.isValueEmpty(t)&&!!Array.isArray(t)&&!(e>=t.length)&&!this.isValueEmpty(t[e])},t.prototype.removeRow=function(e){if(this.canRemoveRows&&!(e<0)&&!(e>=this.rowCount)){var t=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;(!t||!this.survey||this.survey.matrixRowRemoving(this,e,t))&&(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(t))}},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var r=[];(r=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),r=this.deleteRowValue(r,null),this.isRowChanging=!0,this.value=r,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t||!Array.isArray(t))return t;for(var r=this.getUnbindValue(t),n=this.visibleRows,o=0;o<n.length&&o<r.length;o++){var i=r[o];
1i&&(r[o]=this.getRowDisplayValue(e,n[o],i))}return r},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=Math.max(this.rowCount,1),r=0;r<Math.min(l.settings.matrixMaxRowCountInCondition,t);r++)e.push(r);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,r){e.prototype.onCheckForErrors.call(this,t,r),!r&&this.hasErrorInMinRows()&&t.push(new a.MinRowCountError(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!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.getUniqueColumns=function(){var t=e.prototype.getUniqueColumns.call(this);if(this.keyName){var r=this.getColumnByName(this.keyName);r&&0>t.indexOf(r)&&t.push(r)}return t},t.prototype.generateRows=function(){var e=[];if(0===this.rowCount)return e;for(var t=this.createNewValue(),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 f(this.rowCounter++,this,e)},t.prototype.onBeforeValueChanged=function(e){if(e&&Array.isArray(e)){var t=e.length;t!=this.rowCount&&(this.setRowCountValueFromData||!(t<this.initialRowCount))&&(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows&&(this.clearGeneratedRows(),this.generatedVisibleRows=this.visibleRows,this.onRowsChanged()))}},t.prototype.createNewValue=function(){var e=this.createValueCopy();e&&Array.isArray(e)||(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var r=e.length;r<this.rowCount;r++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){for(var r=!0,n=0;n<e.length;n++)if(this.isObject(e[n])&&Object.keys(e[n]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,r){if(void 0===r&&(r=!1),!this.generatedVisibleRows)return{};var n=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!n&&r&&(n={}),n},t.prototype.getAddRowButtonCss=function(e){return void 0===e&&(e=!1),new p.CssClassBuilder().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return new p.CssClassBuilder().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var t;return new p.CssClassBuilder().append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(null==(t=this.renderedTable)?void 0:t.showTable)).toString()},t}(s.QuestionMatrixDropdownModelBase),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return m(t,e),t.prototype.setDefaultRowActions=function(t,r){e.prototype.setDefaultRowActions.call(this,t,r)},t}(d.QuestionMatrixDropdownRenderedTable);o.Serializer.addClass("matrixdynamic",[{name:"rowsVisibleIf:condition",visible:!1},{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:l.settings.matrixMaximumRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(e){return"none"!==e.detailPanelMode}},"allowRowsDragAndDrop:switch"],function(){return new g("")},"matrixdropdownbase"),i.QuestionFactory.Instance.registerQuestion("matrixdynamic",function(e){var t=new g(e);return t.choices=[1,2,3,4,5],s.QuestionMatrixDropdownModelBase.addDefaultColumns(t),t})},
1"./src/question_multipletext.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"MultipleTextItemModel",function(){return m}),r.d(t,"QuestionMultipleTextModel",function(){return f});var n,o=r("./src/base.ts"),i=r("./src/survey-element.ts"),s=r("./src/question.ts"),a=r("./src/question_text.ts"),l=r("./src/jsonobject.ts"),u=r("./src/questionfactory.ts"),c=r("./src/helpers.ts"),p=r("./src/utils/cssClassBuilder.ts"),d=r("./src/settings.ts"),h=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),m=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.editorValue=n.createEditor(t),n.editor.questionTitleTemplateCallback=function(){return""},n.editor.titleLocation="left",r&&(n.title=r),n}return h(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new a.QuestionTextModel(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),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:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return c.Helpers.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:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},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:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=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.getVariable=function(e){},t.prototype.setVariable=function(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:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(o.Base),f=function(e){function t(t){var r=e.call(this,t)||this;return r.isMultipleItemValueChanging=!1,r.createNewArray("items",function(e){e.setData(r)}),r.registerPropertyChangedHandlers(["items","colCount"],function(){r.fireCallback(r.colCountChangedCallback)}),r.registerPropertyChangedHandlers(["itemSize"],function(){r.updateItemsSize()}),r}return h(t,e),t.addDefaultItems=function(e){for(var t=u.QuestionFactory.DefaultMutlipleTextItems,r=0;r<t.length;r++)e.addItem(t[r])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r);for(var n=0;n<this.items.length;n++)this.items[n].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var t;null==(t=this.items)||t.map(function(t,r){return t.editor.id=e+"_"+r}),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),this.fireCallback(this.colCountChangedCallback)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.performForEveryEditor(function(e){e.editor.updateValueFromSurvey(e.value)}),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.performForEveryEditor(function(e){e.editor.onSurveyValueChanged(e.value)})},t.prototype.updateItemsSize=function(){this.performForEveryEditor(function(e){e.editor.updateInputSize()})},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor(function(e){e.editor.onSurveyLoad()})},t.prototype.performForEveryEditor=function(e){for(var t=0;t<this.items.length;t++){var r=this.items[t];r.editor&&e(r)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)}
1,enumerable:!1,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.addConditionObjectsByContext=function(e,t){for(var r=0;r<this.items.length;r++){var n=this.items[r];e.push({name:this.getValueName()+"."+n.name,text:this.processedTitle+"."+n.fullTitle,question:this})}},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 o=new l.JsonObject().toJsonObject(n);return o.type="text",o},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].localeChanged()},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")},set:function(e){e<1||e>5||this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){for(var e=this.colCount,t=this.items,r=[],n=0,o=0;o<t.length;o++)0==n&&r.push([]),r[r.length-1].push(t[o]),++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 m(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.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,r){var n=this;void 0===t&&(t=!0),void 0===r&&(r=null);for(var o=!1,i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){n.raiseOnCompletedAsyncValidators()},r&&!0===r.isOnValueChanged&&this.items[i].editor.isEmpty()||(o=this.items[i].editor.hasErrors(t,r)||o);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=0;r<this.items.length;r++){var n=this.items[r].editor.getAllErrors();n&&n.length>0&&(t=t.concat(n))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.items,n=0;n<r.length;n++)if(r[n].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var r=this.items[t].editor;if(r.isVisible&&!r.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return i.SurveyElement.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;for(var r={},n=0;n<this.items.length;n++){var o=this.items[n],i=t[o.name];if(!c.Helpers.isValueEmpty(i)){var s=o.name;e&&o.title&&(s=o.title),r[s]=o.editor.getDisplayValue(e,i)}}return r},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var r=this.value;r||(r={}),r[e]=t,this.setNewValue(r),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},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"}
1,t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return -1},t.prototype.ensureRowsVisibility=function(){},t.prototype.getItemLabelCss=function(e){return new p.CssClassBuilder().append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).toString()},t.prototype.getItemCss=function(){return new p.CssClassBuilder().append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return new p.CssClassBuilder().append(this.cssClasses.itemTitle).toString()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!0},t}(s.Question);l.Serializer.addClass("multipletextitem",["name","isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:d.settings.questions.inputTypes},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new m("")}),l.Serializer.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem"},{name:"itemSize:number",minValue:0},{name:"colCount:number",default:1,choices:[1,2,3,4,5]}],function(){return new f("")},"question"),u.QuestionFactory.Instance.registerQuestion("multipletext",function(e){var t=new f(e);return f.addDefaultItems(t),t})},
1"./src/question_paneldynamic.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionPanelDynamicItem",function(){return C}),r.d(t,"QuestionPanelDynamicTemplateSurveyImpl",function(){return x}),r.d(t,"QuestionPanelDynamicModel",function(){return w});var n,o=r("./src/helpers.ts"),i=r("./src/survey-element.ts"),s=r("./src/textPreProcessor.ts"),a=r("./src/question.ts"),l=r("./src/jsonobject.ts"),u=r("./src/questionfactory.ts"),c=r("./src/error.ts"),p=r("./src/settings.ts"),d=r("./src/utils/utils.ts"),h=r("./src/utils/cssClassBuilder.ts"),m=r("./src/actions/action.ts"),f=r("./src/base.ts"),g=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),y=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},v=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},b=function(e){function t(t,r,n){var o=e.call(this,n)||this;return o.data=t,o.panelItem=r,o.variableName=n,o.sharedQuestions={},o}return g(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var r=e.prototype.getQuestionByName.call(this,t);if(r)return r;var n=this.panelIndex,o=(r=n>-1?this.data.getSharedQuestionFromArray(t,n):void 0)?r.name:t;return this.sharedQuestions[o]=t,r},t.prototype.getQuestionDisplayText=function(t){var r=this.sharedQuestions[t.name];if(!r)return e.prototype.getQuestionDisplayText.call(this,t);var n=this.panelItem.getValue(r);return t.getDisplayValue(!0,n)},t.prototype.onCustomProcessText=function(e){if(e.name==C.IndexVariableName){var r=this.panelIndex;if(r>-1)return e.isExists=!0,e.value=r+1,!0}if(0==e.name.toLowerCase().indexOf(C.ParentItemVariableName+".")){var n=this.data;if(n&&n.parentQuestion&&n.parent&&n.parent.data){var o=new t(n.parentQuestion,n.parent.data,C.ItemVariableName),i=C.ItemVariableName+e.name.substring(C.ParentItemVariableName.length),s=o.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(s.QuestionTextProcessor),C=function(){function e(t,r){this.data=t,this.panelValue=r,this.textPreProcessor=new b(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(e,t){var r=this.data.getPanelItemData(this),n=r?r[e]:void 0;if(!("object"!=typeof n&&o.Helpers.isTwoValueEquals(t,n))){this.data.setPanelItemData(this,e,t);for(var i=this.panel.questions,s=0;s<i.length;s++)i[s].getValueName()!==e&&i[s].checkBindings(e,t)}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){return this.getValue(e+p.settings.commentPrefix)||""},e.prototype.setComment=function(e,t,r){this.setValue(e+p.settings.commentPrefix,t)},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},r=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in r)t[n]=r[n];if(t[e.ItemVariableName]=this.getAllValues(),this.data){t[e.IndexVariableName.toLowerCase()]=this.data.getItemIndex(this);var o=this.data;o&&o.parentQuestion&&o.parent&&(t[e.ParentItemVariableName]=o.parent.getValue())}return t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentpanel",e.IndexVariableName="panelIndex",e}(),x=function(){function e(e){this.data=e}return e.prototype.getSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),w=function(e){function t(t){var r=e.call(this,t)||this;return r.loadingPanelCount=0,r.currentIndexValue=-1,r.isAddingNewPanels=!1,r.onReadyChangedCallback=function(){r.recalculateIsReadyValue()},r.createNewArray("panels"),r.templateValue=r.createAndSetupNewPanelObject(),r.template.renderWidth="100%",r.template.selectedElementInDesign=r,r.template.addElementCallback=function(e){r.addOnPro
1pertyChangedCallback(e),r.rebuildPanels()},r.template.removeElementCallback=function(){r.rebuildPanels()},r.createLocalizableString("confirmDeleteText",r,!1,"confirmDelete"),r.createLocalizableString("keyDuplicationError",r,!1,!0),r.createLocalizableString("panelAddText",r,!1,"addPanel"),r.createLocalizableString("panelRemoveText",r,!1,"removePanel"),r.createLocalizableString("panelPrevText",r,!1,"pagePrevText"),r.createLocalizableString("panelNextText",r,!1,"pageNextText"),r.createLocalizableString("noEntriesText",r,!1,"noEntriesText"),r.registerPropertyChangedHandlers(["panelsState"],function(){r.setPanelsState()}),r.registerPropertyChangedHandlers(["isMobile"],function(){r.updateFooterActions()}),r}return g(t,e),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var t=0;t<this.panels.length;t++){var r=this.panels[t].getFirstQuestionToFocus(e);if(r)return r}return null},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},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.isQuestion&&e.setParentQuestion(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.useTemplatePanel&&0!=this.panels.length&&l.Serializer.findProperty(e.getType(),t.name))for(var r=this.panels,n=0;n<r.length;n++){var o=r[n].getQuestionByName(e.name);o&&o[t.name]!==t.newValue&&(o[t.name]=t.newValue)}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.clearOnDeletingContainer=function(){this.panels.forEach(function(e){e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panels.length;t++)e.push(this.panels[t].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:(this.currentIndexValue<0&&this.panelCount>0&&(this.currentIndexValue=0),this.currentIndexValue>=this.panelCount&&(this.currentIndexValue=this.panelCount-1),this.currentIndexValue)},set:function(e){this.currentIndexValue!==e&&(e>=this.panelCount&&(e=this.panelCount-1),this.currentIndexValue=e,this.updateFooterActions(),this.fireCallback(this.currentIndexChangedCallback))}
1,enumerable:!1,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:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete",!1)},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")},set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"progressTop"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"progressBottom"===this.renderMode||"progressTopBottom"===this.renderMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.panelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.panelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},Object.defineProperty(t.prototype,"panelCount",{get:function(){return this.isLoadingFromJson||this.useTemplatePanel?this.loadingPanelCount:this.panels.length},set:function(e){if(!(e<0)){if(this.isLoadingFromJson||this.useTemplatePanel){this.loadingPanelCount=e;return}if(e!=this.panels.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;
1t++){var r=this.createNewPanel();this.panels.push(r),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?r.expand():r.title&&r.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback)}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new x(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panels.length;e++){var t=this.panels[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.useTemplatePanel&&"list"==this.renderMode&&this.templateTitle)for(var e=0;e<this.panels.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panels[e].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.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},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:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){!(e<=0)&&(e>p.settings.panelMaximumPanelCount&&(e=p.settings.panelMaximumPanelCount),e!=this.maxPanelCount&&(this.setPropertyValue("maxPanelCount",e),e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e)))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")}
1,set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.getPropertyValue("showRangeInProgress")},set:function(e){this.setPropertyValue("showRangeInProgress",e),this.updateFooterActions(),this.fireCallback(this.currentIndexChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){return this.getPropertyValue("renderMode")},set:function(e){this.setPropertyValue("renderMode",e),this.updateFooterActions(),this.fireCallback(this.renderModeChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"===this.renderMode},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var r="onSurvey"==this.showQuestionNumbers?t:0,n=0;n<this.panels.length;n++){var o=this.setPanelVisibleIndex(this.panels[n],r,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(r+=o)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:r-t},t.prototype.setPanelVisibleIndex=function(e,t,r){return r?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&(!this.isDefaultV2Theme||!!this.legacyNavigation||!!this.isRenderModeList||!(this.currentIndex<this.panelCount-1))&&this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return!this.isDesignMode&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var e,t=[];if(this.useTemplatePanel)new C(this,this.template),t.push(this.template);else for(var r=0;r<this.panelCount;r++)this.createNewPanel(),t.push(this.createNewPanel());(e=this.panels).splice.apply(e,v([0,this.panels.length],t,!1)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback)}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel",!1)},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,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.getProgressInfo=function(){return i.SurveyElement.getProgressInfoByElements(this.panels,this.isRequired)},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||!this.canLeaveCurrentPanel())return null;
1var 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.panels[this.panelCount-1]},t.prototype.canLeaveCurrentPanel=function(){return!("list"!==this.renderMode&&this.currentPanel&&this.currentPanel.hasErrors())},t.prototype.copyValue=function(e,t){for(var r in t)e[r]=t[r]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(!this.confirmDelete||Object(d.confirmAction)(this.confirmDeleteText))&&this.removePanel(e)},t.prototype.goToNextPanel=function(){return!(this.currentIndex<0)&&!!this.canLeaveCurrentPanel()&&(this.currentIndex++,!0)},t.prototype.goToPrevPanel=function(){!(this.currentIndex<0)&&this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getPanelIndex(e);if(!(t<0)&&!(t>=this.panelCount)){var r=this.panels[t];if(!this.survey||this.survey.dynamicPanelRemoving(this,t,r)){this.panels.splice(t,1),this.updateBindings("panelCount",this.panelCount);var e=this.value;e&&Array.isArray(e)&&!(t>=e.length)&&(this.isValueChangingInternally=!0,e.splice(t,1),this.value=e,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,t,r),this.isValueChangingInternally=!1)}}},t.prototype.getPanelIndex=function(e){if(o.Helpers.isNumber(e))return e;for(var t=this.items,r=0;r<this.panels.length;r++)if(this.panels[r]===e||t[r]===e)return r;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.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t>=this.panelCount?null:this.panels[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panels[e];t.clearIncorrectValues();var r=this.value,n=r&&e<r.length?r[e]:null;if(n){var o=!1;for(var i in n)!(this.getSharedQuestionFromArray(i,e)||t.getQuestionByName(i))&&(this.iscorrectValueWithPostPrefix(t,i,p.settings.commentPrefix)||this.iscorrectValueWithPostPrefix(t,i,p.settings.matrixTotalValuePostFix)||(delete n[i],o=!0));o&&(r[e]=n,this.value=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,r){return t.indexOf(r)===t.length-r.length&&!!e.getQuestionByName(t.substring(0,t.indexOf(r)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=!!t&&(!0===t||this.template.questions.indexOf(t)>-1),n=this.getValueName()+"[0].",o=this.processedTitle+"[0].",i=[],s=this.template.questions,a=0;a<s.length;a++)s[a].addConditionObjectsByContext(i,t);for(var a=0;a<i.length;a++)e.push({name:n+i[a].name,text:o+i[a].text,question:i[a].question});if(r){for(var l=!0===t?this.getValueName()+".":"",u=!0===t?this.processedTitle+".":"",a=0;a<i.length;a++)if(i[a].question!=t){var c={name:l+"panel."+i[a].name,text:u+"panel."+i[a].text,question:i[a].question};!0===t&&(c.context=this),e.push(c)}}},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,o=r.indexOf(".");o>-1&&(n=r.substring(0,o),r=r.substring(o+1));var i=this.template.getQuestionByName(n);return i?i.getConditionJson(t,r):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;
1for(var r=0;r<this.panels.length;r++)this.panels[r].readOnly=t;e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){if(this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.loadingPanelCount>0&&(this.panelCount=this.loadingPanelCount),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var t=0;t<this.panelCount;t++)this.survey.dynamicPanelAdded(this);this.recalculateIsReadyValue(),e.prototype.onSurveyLoad.call(this)},t.prototype.onFirstRendering=function(){this.template.onFirstRendering();for(var t=0;t<this.panels.length;t++)this.panels[t].onFirstRendering();e.prototype.onFirstRendering.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.panels.length;t++)this.panels[t].localeChanged()},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))),this.parentQuestion&&this.parent&&(r[C.ParentItemVariableName]=this.parent.getValue());for(var n=0;n<this.panels.length;n++){var i=this.getPanelItemData(this.panels[n].data),s=o.Helpers.createCopy(r);s[C.ItemVariableName.toLowerCase()]=i,s[C.IndexVariableName.toLowerCase()]=n,this.panels[n].runCondition(s,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var r=0;r<this.panels.length;r++)this.panels[r].onAnyValueChanged(t),this.panels[r].onAnyValueChanged(C.ItemVariableName)},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var r,n=[],o=0;o<this.panels.length;o++)r=this.isValueDuplicated(this.panels[o],n,t,e)||r;return r},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingV
1alueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,r){if(void 0===t&&(t=!0),void 0===r&&(r=null),this.isValueChangingInternally)return!1;var n=!1;if(this.changingValueQuestion){var n=this.changingValueQuestion.hasErrors(t,r);return n=this.hasKeysDuplicated(t,r)||n,this.updatePanelsContainsErrors(),n}var o=this.hasErrorInPanels(t,r);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.panels,n=0;n<r.length;n++)if(r[n].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.panels,r=0;r<t.length;r++){var n=[];t[r].addQuestionsToList(n,!0);for(var o=0;o<n.length;o++)if(!n[o].isAnswered)return!1}return!0},t.prototype.clearValueIfInvisibleCore=function(){for(var t=0;t<this.panels.length;t++){var r=this.panels[t].questions;this.isSetPanelItemData=[];for(var n=0;n<r.length;n++){var o=r[n];o.clearValueIfInvisible(),this.isSetPanelItemData.push(o.getValueName())}}this.isSetPanelItemData=void 0,e.prototype.clearValueIfInvisibleCore.call(this)},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panels.length;t++)for(var r=this.panels[t].questions,n=0;n<r.length;n++)if(r[n].isRunningValidators)return!0;return!1},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,o=0;o<n.length;o++){var i=n[o].getAllErrors();i&&i.length>0&&(t=t.concat(i))}return t},t.prototype.getDisplayValueCore=function(e,t){var r=this.getUnbindValue(t);if(!r||!Array.isArray(r))return r;for(var n=0;n<this.panels.length&&n<r.length;n++){var o=r[n];o&&(r[n]=this.getPanelDisplayValue(n,o,e))}return r},t.prototype.getPanelDisplayValue=function(e,t,r){if(!t)return t;for(var n=this.panels[e],o=Object.keys(t),i=0;i<o.length;i++){var s=o[i],a=n.getQuestionByValueName(s);if(a||(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(r,t[s]);t[s]=l,r&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var r=!1,n=this.panels,o=[],i=0;i<n.length;i++)this.setOnCompleteAsyncInPanel(n[i]);for(var i=0;i<n.length;i++){var s=n[i].hasErrors(e,!!t&&t.focuseOnFirstError,t);s=this.isValueDuplicated(n[i],o,t,e)||s,this.isRenderModeList||!s||r||(this.currentIndex=i),r=s||r}return r},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,r=e.questions,n=0;n<r.length;n++)r[n].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,r,n){if(!this.keyName)return!1;var o=e.getQuestionByValueName(this.keyName);if(!o||o.isEmpty())return!1;var i=o.value;
1this.changingValueQuestion&&o!=this.changingValueQuestion&&o.hasErrors(n,r);for(var s=0;s<t.length;s++)if(i==t[s])return n&&o.addError(new c.KeyDuplicationError(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=o),!0;return t.push(i),!1},t.prototype.getPanelActions=function(e){var t=this,r=e.footerActions;return"right"!==this.panelRemoveButtonLocation&&r.push(new m.Action({id:"remove-panel-".concat(e.id),component:"sv-paneldynamic-remove-btn",visible:new f.ComputedUpdater(function(){return[t.canRemovePanel,"collapsed"!==e.state,"right"!==t.panelRemoveButtonLocation].every(function(e){return!0===e})}),data:{question:this,panel:e}})),this.survey&&(r=this.survey.getUpdatedPanelFooterActions(e,r,this)),r},t.prototype.createNewPanel=function(){var e=this,t=this.createAndSetupNewPanelObject(),r=this.template.toJSON();new l.JsonObject().toObject(r,t),t.renderWidth="100%",t.updateCustomWidgets(),new C(this,t),t.onFirstRendering();for(var n=t.questions,o=0;o<n.length;o++)n[o].setParentQuestion(this);return t.locStrsChanged(),t.onGetFooterActionsCallback=function(){return e.getPanelActions(t)},t.footerToolbarCss=this.cssClasses.panelFooter,t},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject();e.isInteractiveDesignElement=!1,e.setParentQuestion(this);var 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 l.Serializer.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.useTemplatePanel){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.loadingPanelCount>0&&(t=this.loadingPanelCount),this.panelCount=t}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var r=0;r<this.panels.length;r++)this.panelUpdateValueFromSurvey(this.panels[r]);this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var r=0;r<this.panels.length;r++)this.panelSurveyValueChanged(this.panels[r]);void 0===t&&this.setValueBasedOnPanelCount(),this.recalculateIsReadyValue()},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,r=this.getPanelItemData(e.data),n=0;n<t.length;n++){var o=t[n];o.updateValueFromSurvey(r[o.getValueName()]),o.updateCommentFromSurvey(r[o.getValueName()+p.settings.commentPrefix])}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,r=this.getPanelItemData(e.data),n=0;n<t.length;n++){var o=t[n];o.onSurveyValueChanged(r[o.getValueName()])}},t.prototype.recalculateIsReadyValue=function(){var e=this,t=this.isReadyValue,r=!0;this.panels.forEach(function(t){t.questions.forEach(function(t){t.isReady?t.onReadyChanged.remove(e.onReadyChangedCallback):(r=!1,t.onReadyChanged.add(e.onReadyChangedCallback))})}),this.isReadyValue=r,t!=this.isReadyValue&&this.onReadyChanged.fire(this,{question:this,oldIsReady:t,isReady:this.isReadyValue})},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.getItemIndex=function(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length},t.prototype.getPanelItemData=function(e){var t=this.items,r=t.indexOf(e),n=this.value;return(r<0&&Array.isArray(n)&&n.length>t.length&&(r=t.length),r<0||!n||!Array.isArray(n)||n.length<=r)?{}:n[r]},t.prototype.setPanelItemData=function(e,t,r){if(!(this.isSetPanelItemData&&this.isSetPanelItemData.indexOf(t)>-1)){this.isSetPanelItemData||(this.isSetPanelItemData=[]),this.isSetPanelItemData.push(t);var n=this.items,o=n.indexOf(e);o<0&&(o=n.length);var i=this.getUnbindValue(this.value);if(i&&Array.isArray(i)||(i=[]),i.length<=o)for(var s=i.length;s<=o;s++)i.push({});if(i[o]||(i[o]={}),this.isValueEmpty(r)?delete i[o][t]:i[o][t]=r,o>
1=0&&o<this.panels.length&&(this.changingValueQuestion=this.panels[o].getQuestionByValueName(t)),this.value=i,this.changingValueQuestion=null,this.survey){var a={question:this,panel:e.panel,name:t,itemIndex:o,itemValue:i[o],value:r};this.survey.dynamicPanelItemValueChanged(this,a)}var o=this.isSetPanelItemData.indexOf(t);o>-1&&this.isSetPanelItemData.splice(o,1)}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);return r&&(r.isNode=!0,r.data=this.panels.map(function(e,r){var n={name:e.name||r,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map(function(e){return e.getPlainData(t)}).filter(function(e){return!!e})};return(t.calculations||[]).forEach(function(t){n[t.propertyName]=e[t.propertyName]}),n})),r},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var r=0;r<this.panels.length;r++)this.panels[r].updateElementCss(t)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.panelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.panelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return new h.CssClassBuilder().append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.get
1ShowNoEntriesPlaceholder()).toString()},t.prototype.getPanelWrapperCss=function(){return new h.CssClassBuilder().append(this.cssClasses.panelWrapper).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return new h.CssClassBuilder().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return new h.CssClassBuilder().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.renderMode).toString()},t.prototype.getPrevButtonCss=function(){return new h.CssClassBuilder().append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonShowing).toString()},t.prototype.getNextButtonCss=function(){return new h.CssClassBuilder().append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonShowing).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&0===this.panelCount},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!!(e&&e.needResponsiveWidth())},Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return this.footerToolbarValue||this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var t=[],r=new m.Action({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),n=new m.Action({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),o=new m.Action({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),i=new m.Action({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),s=new m.Action({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),a=new m.Action({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});t.push(r,n,o,i,s,a),this.updateFooterActionsCallback=function(){var t=e.legacyNavigation,l=e.isRenderModeList,u=e.isMobile,c=!t&&!l;r.visible=c&&e.currentIndex>0,n.visible=c&&e.currentIndex<e.panelCount-1,n.needSpace=u&&n.visible&&r.visible,o.needSpace=e.isMobile&&!n.visible&&r.visible,s.visible=!e.isRenderModeList&&!u,s.needSpace=!t&&!e.isMobile;var p=t&&!l;i.visible=p,a.visible=p,i.needSpace=p},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(t)},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),y([Object(l.property)({defaultValue:!1,onSet:function(e,t){t.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(a.Question);l.Serializer.addClass("paneldynamic",[{name:"templateElements",alternativeName:"questions",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",default:"auto"},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",default:p.settings.panelMaximumPanelCount},"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:boolean",default:!0},{name:"renderMode",default:"list",choices:["list","progressTop","progressBottom","progressTopBottom"]},{name:"templateTitleLocation",default:"default",choices:["default","to
1p","bottom","left"]},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"]}],function(){return new w("")},"question"),u.QuestionFactory.Instance.registerQuestion("paneldynamic",function(e){return new w(e)})},
1"./src/question_radiogroup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionRadiogroupModel",function(){return p});var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question_baseselect.ts"),a=r("./src/itemvalue.ts"),l=r("./src/actions/action.ts"),u=r("./src/base.ts"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var t=a.ItemValue.getItemByValue(this.visibleChoices,this.value);return t||e||this.updateSelectedItemValues(),t||e||new a.ItemValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleActions=function(){var e=this,t=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var r=new l.Action({title:this.clearButtonCaption,id:"sv-clr-btn-".concat(this.id),action:function(){e.clearValue()},innerCss:this.cssClasses.clearButton,visible:new u.ComputedUpdater(function(){return e.canShowClearButton})});t.push(r)}return t},t}(s.QuestionCheckboxBase);o.Serializer.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],function(){return new p("")},"checkboxbase"),i.QuestionFactory.Instance.registerQuestion("radiogroup",function(e){var t=new p(e);return t.choices=i.QuestionFactory.DefaultChoices,t})},
1"./src/question_ranking.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionRankingModel",function(){return m});var n,o=r("./src/dragdrop/ranking-choices.ts"),i=r("./src/itemvalue.ts"),s=r("./src/jsonobject.ts"),a=r("./src/questionfactory.ts"),l=r("./src/question_checkbox.ts"),u=r("./src/utils/cssClassBuilder.ts"),c=r("./src/utils/devices.ts"),p=r("./src/helpers.ts"),d=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(t){var r=e.call(this,t)||this;return r.domNode=null,r.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(r),1===r.visibleChoices.length){r.value=[],r.updateRankingChoices();return}if(r.isEmpty())return void r.updateRankingChoices();r.visibleChoices.length>r.value.length&&r.addToValueByVisibleChoices(),r.visibleChoices.length<r.value.length&&r.removeFromValueByVisibleChoices(),r.updateRankingChoices()},r.localeChanged=function(){e.prototype.localeChanged.call(r),r.updateRankingChoices()},r.handlePointerDown=function(e,t,n){r.allowStartDrag&&r.dragDropRankingChoices.startDrag(e,t,r,n)},r.handleKeydown=function(e,t){if(!r.isDesignMode){var n=e.key,o=r.rankingChoices.indexOf(t);"ArrowUp"===n&&o&&(r.handleArrowUp(o,t),e.preventDefault()),"ArrowDown"===n&&o!==r.rankingChoices.length-1&&(r.handleArrowDown(o,t),e.preventDefault())}},r.handleArrowUp=function(e,t){var n=r.rankingChoices;n.splice(e,1),n.splice(e-1,0,t),r.setValue(),setTimeout(function(){r.focusItem(e-1)},1)},r.handleArrowDown=function(e,t){var n=r.rankingChoices;n.splice(e,1),n.splice(e+1,0,t),r.setValue(),setTimeout(function(){r.focusItem(e+1)},1)},r.focusItem=function(e){r.domNode.querySelectorAll("."+r.cssClasses.item)[e].focus()},r.setValue=function(){var e=[];r.rankingChoices.forEach(function(t){e.push(t.value)}),r.value=e},r.setValueFromUI=function(){var e=[];r.domNode.querySelectorAll("."+r.cssClasses.controlLabel).forEach(function(t,n){var o=t.innerText;r.visibleChoices.forEach(function(t){o===t.text&&e.push(t.value)})}),r.value=e},r.syncNumbers=function(){if(r.domNode){var e="."+r.cssClasses.item+":not(."+r.cssClasses.itemDragMod+") ."+r.cssClasses.itemIndex;r.domNode.querySelectorAll(e).forEach(function(e,t){e.innerText=r.getNumberByIndex(t)})}},r.setGhostText=function(e){var t=r.domNode.querySelectorAll("."+r.cssClasses.itemIndex);t[t.length-1].innerText=e},r.createNewArray("rankingChoices"),r}return d(t,e),t.prototype.getDefaultItemComponent=function(){return""},t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){return this.isDesignMode?void 0:0},Object.defineProperty(t.prototype,"rootClass",{get:function(){return new u.CssClassBuilder().append(this.cssClasses.root).append(this.cssClasses.rootMobileMod,c.IsMobile).append(this.cssClasses.rootDisabled,this.isReadOnly).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.errors.length>0).toString()},enumerable:!1,configurable:!0}),t.prototype.getItemClassCore=function(t,r){var n=this.rankingChoices.indexOf(t),o=this.rankingChoices.indexOf(this.currentDropTarget);return new u.CssClassBuilder().append(e.prototype.getItemClassCore.call(this,t,r)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===t).append("sv-dragdrop-movedown",n===o+1&&"down"===this.dropTargetNodeMove).append("sv-dragdrop-moveup",n===o-1&&"up"===this.dropTargetNodeMove).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return"top"===this.ghostPosition?this.cssClasse
1s.dragDropGhostPositionTop:"bottom"===this.ghostPosition?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"–":e+1+""},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.updateRankingChoices()},t.prototype.isAnswerCorrect=function(){return p.Helpers.isArraysEqual(this.value,this.correctAnswer,!1)},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.isLoadingFromJson||this.updateRankingChoices()},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach(function(t){-1===e.indexOf(t.value)&&e.push(t.value)}),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){var e=this,t=this.value.slice();this.value.forEach(function(r,n){var o=!0;e.visibleChoices.forEach(function(e){e.value===r&&(o=!1)}),o&&t.splice(n,1)}),this.value=t},Object.defineProperty(t.prototype,"rankingChoices",{get:function(){return this.getPropertyValue("rankingChoices",[])},enumerable:!1,configurable:!0}),t.prototype.updateRankingChoices=function(e){var t=this;void 0===e&&(e=!1);var r=[];return 1===this.visibleChoices.length?void this.setPropertyValue("rankingChoices",r):(e&&this.setPropertyValue("rankingChoices",[]),this.isEmpty())?void this.setPropertyValue("rankingChoices",this.visibleChoices):void(this.value.forEach(function(e){t.visibleChoices.forEach(function(t){t.value===e&&r.push(t)})}),this.setPropertyValue("rankingChoices",r))},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.dragDropRankingChoices=new o.DragDropRankingChoices(this.survey,null,this.longTap)},Object.defineProperty(t.prototype,"allowStartDrag",{get:function(){return!this.isReadOnly&&!this.isDesignMode},enumerable:!1,configurable:!0}),t.prototype.afterRenderQuestionElement=function(t){this.domNode=t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.getChoicesFromQuestion=function(t){var r=e.prototype.getChoicesFromQuestion.call(this,t);return"selected"===this.choicesFromQuestionMode&&t.isOtherSelected&&t.comment&&r.push(new i.ItemValue(t.otherItem.value,t.comment)),r},t.prototype.getIconHoverCss=function(){return new u.CssClassBuilder().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return new u.CssClassBuilder().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),h([Object(s.property)({defaultValue:null})],t.prototype,"currentDropTarget",void 0),h([Object(s.property)({defaultValue:null})],t.prototype,"dropTargetNodeMove",void 0),t}(l.QuestionCheckboxModel);s.Serializer.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"maxSelectedChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new m("")},"checkbox"),a.QuestionFactory.Instance.registerQuestion("ranking",function(e){var t=new m(e);return t.choices=a.QuestionFactory.DefaultChoices,t})},
1"./src/question_rating.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"RenderedRatingItem",function(){return m}),r.d(t,"QuestionRatingModel",function(){return f});var n,o=r("./src/itemvalue.ts"),i=r("./src/question.ts"),s=r("./src/jsonobject.ts"),a=r("./src/questionfactory.ts"),l=r("./src/settings.ts"),u=r("./src/surveyStrings.ts"),c=r("./src/utils/cssClassBuilder.ts"),p=r("./src/base.ts"),d=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.itemValue=t,n.locString=r,n}return d(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),t}(p.Base),f=function(e){function t(t){var r=e.call(this,t)||this;return r.createItemValues("rateValues"),r.createRenderedRateItems(),r.createLocalizableString("ratingOptionsCaption",r,!1,!0),r.registerFunctionOnPropertiesValueChanged(["rateValues","rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],function(){return r.createRenderedRateItems()}),r.createLocalizableString("minRateDescription",r,!0),r.createLocalizableString("maxRateDescription",r,!0),r}return d(t,e),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.hasMinRateDescription=!!this.minRateDescription,this.hasMaxRateDescription=!!this.maxRateDescription,this.createRenderedRateItems()},Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e),this.createRenderedRateItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){return o.ItemValue.getTextOrHtmlByValue(this.visibleRateValues,t)||t},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map(function(e){return e.itemValue})},enumerable:!1,configurable:!0}),t.prototype.itemValuePropertyChanged=function(t,r,n,o){0===this.rateValues.length&&void 0!==o&&this.setPropertyValue("rateValues",this.visibleRateValues),e.prototype.itemValuePropertyChanged.call(this,t,r,n,o)},t.prototype.createRenderedRateItems=function(){var e=this,t=[];if(this.rateValues.length>0)t=this.rateValues;else{for(var r=[],n=this.rateMin,i=this.rateStep;n<=this.rateMax&&r.length<l.settings.ratingMaximumRateValueCount;){var s=new o.ItemValue(n);s.locOwner=this,s.ownerPropertyName="rateValues",r.push(s),n=this.correctValue(n+i,i)}t=r}this.renderedRateItems=t.map(function(r,n){if(e.displayRateDescriptionsAsExtremeItems){if(0==n)return new m(r,e.minRateDescription&&e.locMinRateDescription||r.locText);if(n==t.length-1)return new m(r,e.maxRateDescription&&e.locMaxRateDescription||r.locText)}return new m(r)})},t.prototype.correctValue=function(e,t){if(!e||Math.round(e)==e)return e;for(var r=0;Math.round(t)!=t;)t*=10,r++;return parseFloat(e.toFixed(r))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},t.prototype.supportGoNextPageAutomatic=function(){return!0},t.prototype.supportComment=function(){return!0},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e),this.hasMinRateDescription=!!this.minRateDescription}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e),this.hasMaxRateDescription=!!this.maxRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.rateValues.length>0){var t=o.ItemValue.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){this.value===parseFloat(e)?this.clearValue():this.value=e},Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){return("buttons"==this.displayMode||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:this.cssClasses.root},enumerable:!1,configurable:!0}),t.prototype.getItemClass=function(e){var t=this.value==e.value,r=!(this.isReadOnly||!e.isEnabled)&&!t&&!(this.survey&&this.survey.isDesignMode);return new c.CssClassBuilder().append(this.cssClasses.item).append(this.cssClasses.selected,this.value==e.value).append(this.cssClasses.itemDisabled,this.isReadOnly).append(this.cssClasses.itemHover,r).append(this.cssClasses.itemOnError,this.errors.length>0).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),new c.CssClassBuilder().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.visibleRateValues},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),t=this.getPropertyValue("rateMax"),r=this.getPropertyValue("rateMin");return"dropdown"!=this.displayMode&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(t-r)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"buttons"==this.displayMode?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return"dropdown"==this.displayMode?"dropdown":"default"},h([Object(s.propertyArray)()],t.prototype,"renderedRateItems",void 0),h([Object(s.property)({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),h([Object(s.property)({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),h([Object(s.property)({defaultValue:!1})],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),h([Object(s.property)({defaultValue:"auto",onSet:function(e,t){t.isDesignMode||("dropdown"===e?t.renderAs="dropdown":t.renderAs="default")}})],t.prototype,"displayMode",void 0),t}(i.Question);s.Serializer.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment},serializationProperty:"locCommentText",layout:"row"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",depen
1dsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}},{name:"rateValues:itemvalue[]",baseValue:function(){return u.surveyLocalization.getString("choices_Item")}},{name:"rateMin:number",default:1,onSettingValue:function(e,t){return t>e.rateMax-e.rateStep?e.rateMax-e.rateStep:t}},{name:"rateMax:number",default:5,onSettingValue:function(e,t){return t<e.rateMin+e.rateStep?e.rateMin+e.rateStep:t}},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(e,t){return t<=0&&(t=1),t>e.rateMax-e.rateMin&&(t=e.rateMax-e.rateMin),t}},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription"},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription"},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"]}],function(){return new f("")},"question"),a.QuestionFactory.Instance.registerQuestion("rating",function(e){return new f(e)})},
1"./src/question_signaturepad.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionSignaturePadModel",function(){return p});var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/question.ts"),a=r("./node_modules/signature_pad/dist/signature_pad.mjs"),l=r("./src/utils/cssClassBuilder.ts"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getCssRoot=function(t){return new l.CssClassBuilder().append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.signatureWidth.toString()).toString()},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.dataFormat);this.value=e}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&this.initSignaturePad(t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.initSignaturePad=function(e){var t=this,r=e.getElementsByTagName("canvas")[0],n=new a.default(r,{backgroundColor:"#ffffff"});this.isInputReadOnly&&n.off(),this.readOnlyChangedCallback=function(){t.isInputReadOnly?n.off():n.on()},n.penColor=this.penColor,n.backgroundColor=this.backgroundColor,n.onBegin=function(){t.isDrawingValue=!0,r.focus()},n.onEnd=function(){t.isDrawingValue=!1,t.updateValue()};var o=function(){var e,o,i,s,a=t.value;r.width=t.signatureWidth||300,r.height=t.signatureHeight||200,e=r.getContext("2d"),o=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1),i=r.width,s=r.height,r.width=i*o,r.height=s*o,r.style.width=i+"px",r.style.height=s+"px",e.scale(o,o),a?n.fromDataURL(a):n.clear()};o(),this.readOnlyChangedCallback(),this.signaturePad=n;var i=function(e,t){("signatureWidth"===t.name||"signatureHeight"===t.name||"value"===t.name)&&o()};this.onPropertyChanged.add(i),this.signaturePad.propertyChangedHandler=i},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return!this.isInputReadOnly&&this.allowClear},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.needShowPlaceholder=function(){return!this.isDrawingValue&&this.isEmpty()},Object.defineProperty(t.prototype,"placeHolderText",{get:function(){return this.getLocalizationString("signaturePlaceHolder")},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),300===this.signatureWidth&&this.width&&"number"==typeof this.width&&this.width&&(console.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),200===this.signatureHeight&&this.height&&(console.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},c([Object(o.property)({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),c([Object(o.property)({defaultValue:""})],t.prototype,"dataFormat",void 0),t}(s.Question);o.Serializer.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"penColor:color",category:"general",default:"#1ab394"},{name:"backgroundColor:color",category:"general",default:"#ffffff"},{name:"dataFormat",category:"general",default:"",choices:[{value:"",text:"PNG"},{value:"image/jpeg",text:"JPEG"},{value:"image/svg+xml",text:"SVG"}]},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1}],function(){return new p("")},"question"),i.QuestionFactory.Instance.registerQuestion("signaturepad",function(e){return new p(e)})},
1"./src/question_tagbox.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionTagboxModel",function(){return p});var n,o=r("./src/jsonobject.ts"),i=r("./src/questionfactory.ts"),s=r("./src/utils/cssClassBuilder.ts"),a=r("./src/question_checkbox.ts"),l=r("./src/dropdownMultiSelectListModel.ts"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},p=function(e){function t(t){var r=e.call(this,t)||this;return r.onOpened=r.addEvent(),r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("clearCaption",r,!1,!0),r}return u(t,e),t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.displayValue||this.placeholder},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.dropdownListModel||(this.dropdownListModel=new l.DropdownMultiSelectListModel(this))},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){var e;return null==(e=this.dropdownListModel)?void 0:e.popupModel},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new s.CssClassBuilder().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.popupModel&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},c([Object(o.property)({defaultValue:!0})],t.prototype,"allowClear",void 0),c([Object(o.property)({defaultValue:!0,onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),c([Object(o.property)({defaultValue:!1,onSet:function(e,t){t.dropdownListModel&&t.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),c([Object(o.property)({defaultValue:!1})],t.prototype,"choicesLazyLoadEnabled",void 0),c([Object(o.property)({defaultValue:25})],t.prototype,"choicesLazyLoadPageSize",void 0),t}(a.QuestionCheckboxModel);o.Serializer.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean",default:!0,visible:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new p("")},"checkbox"),i.QuestionFactory.Instance.registerQuestion("tagbox",function(e){var t=new p(e);return t.choices=i.QuestionFactory.DefaultChoices,t})},
1"./src/question_text.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionTextModel",function(){return h});var n,o=r("./src/questionfactory.ts"),i=r("./src/jsonobject.ts"),s=r("./src/localizablestring.ts"),a=r("./src/helpers.ts"),l=r("./src/validator.ts"),u=r("./src/error.ts"),c=r("./src/settings.ts"),p=r("./src/question_textbase.ts"),d=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e){function t(t){var r=e.call(this,t)||this;return r._isWaitingForEnter=!1,r.onCompositionUpdate=function(e){r.isInputTextUpdate&&(e.persist(),setTimeout(function(){r.updateValueOnEvent(e)},1))},r.onKeyUp=function(e){r.isInputTextUpdate?r._isWaitingForEnter&&13!==e.keyCode||(r.updateValueOnEvent(e),r._isWaitingForEnter=!1):13===e.keyCode&&r.updateValueOnEvent(e)},r.onKeyDown=function(e){r.isInputTextUpdate&&(r._isWaitingForEnter=229===e.keyCode)},r.onChange=function(e){e.target===document.activeElement?r.isInputTextUpdate&&r.updateValueOnEvent(e):r.updateValueOnEvent(e)},r.onBlur=function(e){r.updateValueOnEvent(e)},r.createLocalizableString("minErrorText",r,!0,"minError"),r.createLocalizableString("maxErrorText",r,!0,"maxError"),r.locDataListValue=new s.LocalizableStrings(r),r.locDataListValue.onValueChanged=function(e,t){r.propertyValueChanged("dataList",e,t)},r.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],function(){r.setRenderedMinMax()}),r.registerPropertyChangedHandlers(["inputType","size"],function(){r.updateInputSize(),r.calcRenderedPlaceholder()}),r}return d(t,e),t.prototype.isTextValue=function(){return["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){"datetime_local"==(e=e.toLowerCase())&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),this.isLoadingFromJson||(this.min=void 0,this.max=void 0,this.step=void 0)},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(t,r)},t.prototype.getValidators=function(){var t=e.prototype.getValidators.call(this);return"email"!==this.inputType||this.validators.some(function(e){return"emailvalidator"===e.getType()})||t.push(new l.EmailValidator),t},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){if(this.isValueExpression(e)){this.minValueExpression=e.substring(1);return}this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){if(this.isValueExpression(e)){this.maxValueExpression=e.substring(1);return}this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return f(this)},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,r){var n=this;if(e.prototype.onCheckForErrors.call(this,t,r),!r){if(this.isValueLessMin){var o=new u.CustomError(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);o.onUpdateErrorTextCallback=function(e){e.text=n.getMinMaxErrorText(n.minErrorText,n.getCalculatedMinMax(n.renderedMin))},t.push(o)}if(this.isValueGreaterMax){var i=new u.CustomError(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);i.onUpdateErrorTextCallback=function(e){e.text=n.getMinMaxErrorText(n.maxErrorText,n.getCalculatedMinMax(n.renderedMax))},t.push(i)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return"number"===this.inputType&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){var t=this.inputType.replace("-local","");return a.Helpers.convertValToQuestionVal(e,t)},t.prototype.getMinMaxErrorText=function(e,t){if(a.Helpers.isValueEmpty(t))return e;var r=t.toString();return"date"===this.inputType&&t.toDateString&&(r=t.toDateString()),e.replace("{0}",r)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return"date"===this.inputType||"datetime-local"===this.inputType},enumerable:!1,configurable:!0}),t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?new Date(e):e},t.prototype.setRenderedMinMax=function(e,t){var r=this;void 0===e&&(e=null),void 0===t&&(t=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,function(e){!e&&r.isDateInputType&&c.settings.minDate&&(e=c.settings.minDate),r.setPropertyValue("renderedMin",e)},e,t),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,function(e){!e&&r.isDateInputType&&(e=c.settings.maxDate?c.settings.maxDate:"2999-12-31"),r.setPropertyValue("renderedMax",e)},e,t)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?"number"!==this.inputType?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return 0>["date","datetime","datetime-local"].indexOf(this.inputType)},t.prototype.supportGoNextPageError=function(){return 0>["date","datetime","datetime-local"].indexOf(this.inputType)},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.canRunValidators=function(e){return this.errors.length>0||!e||this.supportGoNextPageError()},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)?a.Helpers.isNumber(e)?parseFloat(e):"":e},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly&&"range"!==this.inputType},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===c.settings.readOnlyTextRenderMode},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return this.inputWidth&&(e.width=this.inputWidth),e},enumerable:!1,configurable:!0}),t.prototype.updateValueOnEvent=function(e){var t=e.target.value;a.Helpers.isTwoValueEquals(this.value,t)||(this.value=t)},t}(p.QuestionTextBase),m=["number","date","datetime","datetime-local","month","time","week"];function f(e){var t=e?e.inputType:"";return!!t&&m.indexOf(t)>-1}function g(e,t){var r=e.split(t);return 2===r.length&&a.Helpers.isNumber(r[0])&&a.Helpers.isNumber(r[1])?60*parseFloat(r[0])+parseFloat(r[1]):-1}function y(e,t,r,n){var o=n?r:t;if(!f(e)||a.Helpers.isValueEmpty(t)||a.Helpers.isValueEmpty(r))return o;if(0===e.inputType.indexOf("date")||"month"===e.inputType){var i="month"===e.inputType,s=new Date(i?t+"-1":t),l=new Date(i?r+"-1":r);if(!s||!l)return o;if(s>l)return n?t:r}if("week"===e.inputType||"time"===e.inputType){var u,c,p="week"===e.inputType?"-W":":";return(u=g(t,p),c=g(r,p),u<0||c<0||!(u>c))?o:n?t:r}if("number"===e.inputType){if(!a.Helpers.isNumber(t)||!a.Helpers.isNumber(r))return o;if(parseFloat(t)>parseFloat(r))return n?t:r}return"string"==typeof t||"string"==typeof r?o:t>r?n?t:r:o}i.Serializer.addClass("text",[{name:"inputType",default:"text",choices:c.settings.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"autocomplete",alternativeName:"autoComplete",choices:c.settings.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(e){return f(e)},onPropertyEditorUpdate:function(e,t){e&&e.inputType&&(t.inputType=e.inputType)},onSettingValue:function(e,t){return y(e,t,e.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(e){return f(e)},onSettingValue:function(e,t){return y(e,e.min,t,!0)},onPropertyEditorUpdate:function(e,t){e&&e.inputType&&(t.inputType=e.inputType)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return f(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return f(e)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(e){return f(e)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(e){return f(e)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&"number"===e.inputType}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",depen
1dsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"===e.inputType}}],function(){return new h("")},"textbase"),o.QuestionFactory.Instance.registerQuestion("text",function(e){return new h(e)})},
1"./src/question_textbase.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionTextBase",function(){return c});var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=r("./src/helpers.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},c=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return s.Helpers.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurveyInputTextUpdate",{get:function(){return"default"==this.textUpdateMode?!!this.survey&&this.survey.isUpdateValueTextOnTyping:"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){return this.getPropertyValue("renderedPlaceholder")},enumerable:!1,configurable:!0}),t.prototype.setRenderedPlaceholder=function(e){this.setPropertyValue("renderedPlaceholder",e)},t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.onSurveyLoad=function(){this.calcRenderedPlaceholder(),e.prototype.onSurveyLoad.call(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.calcRenderedPlaceholder()},t.prototype.calcRenderedPlaceholder=function(){var e=this.placeHolder;e&&!this.hasPlaceHolder()&&(e=void 0),this.setRenderedPlaceholder(e)},t.prototype.hasPlaceHolder=function(){return!this.isReadOnly},t.prototype.getControlClass=function(){return new a.CssClassBuilder().append(this.cssClasses.root).append(this.cssClasses.onError,this.errors.length>0).append(this.cssClasses.controlDisabled,this.isReadOnly).toString()},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"textbox"},enumerable:!1,configurable:!0}),u([Object(i.property)({localizable:!0,onSet:function(e,t){return t.calcRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(o.Question);i.Serializer.addClass("textbase",[],function(){return new c("")},"question")},
1"./src/questionfactory.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionFactory",function(){return i}),r.d(t,"ElementFactory",function(){return s});var n=r("./src/surveyStrings.ts"),o=r("./src/jsonobject.ts"),i=function(){function e(){this.creatorHash={}}return Object.defineProperty(e,"DefaultChoices",{get:function(){return[n.surveyLocalization.getString("choices_Item")+"1",n.surveyLocalization.getString("choices_Item")+"2",n.surveyLocalization.getString("choices_Item")+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=n.surveyLocalization.getString("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=n.surveyLocalization.getString("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultMutlipleTextItems",{get:function(){var e=n.surveyLocalization.getString("multipletext_itemname");return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.unregisterElement=function(e){delete this.creatorHash[e]},e.prototype.clear=function(){this.creatorHash={}},e.prototype.getAllTypes=function(){var e=[];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}(),s=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],i.Instance.unregisterElement(e),t&&o.Serializer.removeClass(e)},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}()},
1"./src/questionnonvalue.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"QuestionNonValue",function(){return a});var n,o=r("./src/question.ts"),i=r("./src/jsonobject.ts"),s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},t}(o.Question);i.Serializer.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],function(){return new a("")},"question")},
1"./src/react/boolean-checkbox.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionBooleanCheckbox",function(){return p});var n,o=r("react"),i=r("./src/entries/core.ts"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/boolean.tsx"),l=r("./src/react/components/title/title-actions.tsx"),u=r("./src/react/reactquestion_element.tsx"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),r=this.question.canRenderLabelDescription?u.SurveyElementBase.renderQuestionDescription(this.question):null;return o.createElement("div",{className:e.rootCheckbox},o.createElement("div",{className:t},o.createElement("label",{className:e.checkboxLabel},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.controlCheckbox,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?o.createElement("svg",{className:e.checkboxItemDecorator},o.createElement("use",{xlinkHref:this.question.svgIcon})):null,o.createElement("span",{className:"check"})),this.question.isLabelRendered&&o.createElement("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},o.createElement(l.TitleActions,{element:this.question,cssClasses:this.question.cssClasses}))),r))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-checkbox",function(e){return o.createElement(p,e)}),i.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox")},
1"./src/react/boolean-radio.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionBooleanRadio",function(){return u});var n,o=r("react"),i=r("./src/entries/core.ts"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/boolean.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=function(e){r.question.value=e.nativeEvent.target.value},r}return l(t,e),t.prototype.renderRadioItem=function(e,t){var r=this.question.cssClasses;return o.createElement("div",{role:"presentation",className:this.question.getRadioItemClass(r,e)},o.createElement("label",{className:r.radioLabel},o.createElement("input",{type:"radio",name:this.question.name,value:e,"aria-describedby":this.question.ariaDescribedBy,checked:e===this.question.value,disabled:this.question.isInputReadOnly,className:r.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?o.createElement("span",{className:r.materialRadioDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:r.itemRadioDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o.createElement("span",{className:r.radioControlLabel},this.renderLocString(t))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("div",{className:e.rootRadio},o.createElement("fieldset",{role:"presentation",className:e.radioFieldset},this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue)))},t}(a.SurveyQuestionBoolean);s.ReactQuestionFactory.Instance.registerQuestion("sv-boolean-radio",function(e){return o.createElement(u,e)}),i.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio")},
1"./src/react/boolean.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionBoolean",function(){return l});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r.handleOnClick=r.handleOnClick.bind(r),r.handleOnLabelClick=r.handleOnLabelClick.bind(r),r.handleOnSwitchClick=r.handleOnSwitchClick.bind(r),r.handleOnKeyDown=r.handleOnKeyDown.bind(r),r.checkRef=o.createRef(),r}return a(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,t){this.question.onLabelClick(e,t)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var t=this.checkRef.current;t&&(t.indeterminate=this.question.isIndeterminate),this.setControl(t),e.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=this.question.getItemCss();return o.createElement("div",{className:t.root,onKeyDown:this.handleOnKeyDown},o.createElement("label",{className:r,onClick:this.handleOnClick},o.createElement("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.control,disabled:this.isDisplayMode,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:this.question.getLabelCss(!1),onClick:function(t){return e.handleOnLabelClick(t,!1)}},this.renderLocString(this.question.locLabelFalse)),o.createElement("div",{className:t.switch,onClick:this.handleOnSwitchClick},o.createElement("span",{className:t.slider},this.question.isDeterminated&&t.sliderText?o.createElement("span",{className:t.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),o.createElement("span",{className:this.question.getLabelCss(!0),onClick:function(t){return e.handleOnLabelClick(t,!0)}},this.renderLocString(this.question.locLabelTrue))))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("boolean",function(e){return o.createElement(l,e)})},
1"./src/react/components/action-bar/action-bar-item-dropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyActionBarItemDropdown",function(){return p});var n,o=r("react"),i=r.n(o),s=r("./src/entries/core.ts"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/popup/popup.tsx"),u=r("./src/react/components/action-bar/action-bar-item.tsx"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){var r=e.call(this,t)||this;return r.viewModel=new s.ActionDropdownViewModel(r.item),r}return c(t,e),t.prototype.renderButtonContent=function(){var t=e.prototype.renderButtonContent.call(this);return i.a.createElement(i.a.Fragment,null,t,i.a.createElement(l.Popup,{model:this.item.popupModel}))},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}(u.SurveyActionBarItem);a.ReactElementFactory.Instance.registerElement("sv-action-bar-item-dropdown",function(e){return i.a.createElement(p,e)})},
1"./src/react/components/action-bar/action-bar-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyAction",function(){return d}),r.d(t,"SurveyActionBarItem",function(){return h});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/reactSurvey.tsx"),u=r("./src/react/components/svg-icon/svg-icon.tsx"),c=r("./src/react/components/action-bar/action-bar-separator.tsx"),p=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),t=this.item.needSeparator?i.a.createElement(c.SurveyActionBarSeparator,null):null,r=s.ReactElementFactory.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return i.a.createElement("div",{className:e,id:this.item.id},i.a.createElement("div",{className:"sv-action__content"},t,r))},t}(a.SurveyElementBase),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return i.a.createElement(i.a.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return i.a.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),t=this.item.iconName?i.a.createElement(u.SvgIcon,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return i.a.createElement(i.a.Fragment,null,t,e)},t.prototype.renderInnerButton=function(){var e=this,t=this.item.getActionBarItemCss(),r=this.item.tooltip||this.item.title,n=this.renderButtonContent(),o=this.item.disableTabStop?-1:void 0;return Object(l.attachKey2click)(i.a.createElement("button",{className:t,type:"button",disabled:this.item.disabled,onClick:function(){return e.item.action(e.item)},title:r,tabIndex:o,"aria-checked":this.item.ariaChecked,role:this.item.ariaRole},n),null,{processEsc:!1})},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-action-bar-item",function(e){return i.a.createElement(h,e)})},
1"./src/react/components/action-bar/action-bar-separator.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyActionBarSeparator",function(){return l});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.render=function(){var e="sv-action-bar-separator ".concat(this.props.cssClasses);return i.a.createElement("div",{className:e})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-action-bar-separator",function(e){return i.a.createElement(l,e)})},
1"./src/react/components/action-bar/action-bar.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyActionBar",function(){return d});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/components/action-bar/action-bar-item.tsx"),u=r("./src/react/components/action-bar/action-bar-item-dropdown.tsx");r.d(t,"SurveyActionBarItemDropdown",function(){return u.SurveyActionBarItemDropdown});var c=r("./src/react/components/action-bar/action-bar-separator.tsx");r.d(t,"SurveyActionBarSeparator",function(){return c.SurveyActionBarSeparator});var p=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(t){var r=e.call(this,t)||this;return r.rootRef=i.a.createRef(),r}return p(t,e),Object.defineProperty(t.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.model.hasActions){var t=this.rootRef.current;t&&this.model.initResponsivityManager(t)}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.hasActions&&this.model.resetResponsivityManager()},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return i.a.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map(function(e,t){return i.a.createElement(l.SurveyAction,{item:e,key:"item"+t})})},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-action-bar",function(e){return i.a.createElement(d,e)})},
1"./src/react/components/brand-info.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"BrandInfo",function(){return a});var n,o=r("react"),i=r.n(o),s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s(t,e),t.prototype.render=function(){return i.a.createElement("div",{className:"sv-brand-info"},i.a.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},i.a.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),i.a.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",i.a.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),i.a.createElement("div",{className:"sv-brand-info__terms"},i.a.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(i.a.Component)},
1"./src/react/components/list/list-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ListItem",function(){return p});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/reactSurvey.tsx"),u=r("./src/react/components/svg-icon/svg-icon.tsx"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleKeydown=function(e){t.model.onKeyDown(e)},t}return c(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var t={paddingInlineStart:this.model.getItemIndent(this.item)},r=this.model.getItemClass(this.item),n=[];if(this.item.component){var o=s.ReactElementFactory.Instance.createElement(this.item.component,{item:this.item,key:this.item.id});o&&n.push(o)}else{var a=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var c=i.a.createElement(u.SvgIcon,{key:1,className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:24,"aria-label":this.item.title});n.push(c),n.push(i.a.createElement("span",{key:2},a))}else n.push(a)}var p=i.a.createElement("div",{style:t,className:this.model.cssClasses.itemBody},n),d=this.item.needSeparator?i.a.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,h=this.model.isItemVisible(this.item);return Object(l.attachKey2click)(i.a.createElement("li",{className:r,role:"option",style:{display:h?null:"none"},"aria-selected":this.model.isItemSelected(this.item),onClick:function(t){e.model.onItemClick(e.item),t.stopPropagation()},onPointerDown:function(t){return e.model.onPointerDown(t,e.item)}},d,p))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list-item",function(e){return i.a.createElement(p,e)})},
1"./src/react/components/list/list.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"List",function(){return p});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/components/svg-icon/svg-icon.tsx"),u=r("./src/react/components/list/list-item.tsx"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){var r=e.call(this,t)||this;return r.handleKeydown=function(e){r.model.onKeyDown(e)},r.handleMouseMove=function(e){r.model.onMouseMove(e)},r.state={filterString:r.model.filterString||""},r.listContainerRef=i.a.createRef(),r}return c(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.renderElement=function(){var e=this.renderItems();return i.a.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),i.a.createElement("ul",{className:this.model.cssClasses.itemsContainer,role:"listbox",onMouseDown:function(e){e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e))},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var t=this.model.renderedActions;return t?t.map(function(t,r){return i.a.createElement(u.ListItem,{model:e.model,item:t,key:"item"+r})}):null},t.prototype.searchElementContent=function(){var e=this;return this.model.showFilter?i.a.createElement("div",{className:this.model.cssClasses.filter},i.a.createElement("div",{className:this.model.cssClasses.filterIcon},i.a.createElement(l.SvgIcon,{iconName:"icon-search",size:"auto"})),i.a.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(t){e.model.goToItems(t)},onChange:function(t){t.target===document.activeElement&&(e.model.filterString=t.target.value)}})):null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return i.a.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},i.a.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-list",function(e){return i.a.createElement(p,e)})},
1"./src/react/components/matrix-actions/detail-button/detail-button.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDetailButton",function(){return c});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/components/svg-icon/svg-icon.tsx"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnShowHideClick=r.handleOnShowHideClick.bind(r),r}return u(t,e),t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,t=e?this.row.detailPanelId:void 0;return i.a.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":e,"aria-controls":t},i.a.createElement(l.SvgIcon,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-detail-button",function(e){return i.a.createElement(c,e)})},
1"./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",function(){return u});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return this.question.iconDragElement?i.a.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},i.a.createElement("use",{xlinkHref:this.question.iconDragElement})):i.a.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-drag-drop-icon",function(e){return i.a.createElement(u,e)})},
1"./src/react/components/matrix-actions/remove-button/remove-button.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDynamicRemoveButton",function(){return u});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnRowRemoveClick=r.handleOnRowRemoveClick.bind(r),r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return i.a.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-matrix-remove-button",function(e){return i.a.createElement(u,e)})},
1"./src/react/components/matrix/row.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"MatrixRow",function(){return u});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.onPointerDownHandler=function(e){r.parentMatrix.onPointerDown(e.nativeEvent,r.model.row)},r}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this,t=this.model;return i.a.createElement("tr",{className:t.className,"data-sv-drop-target-matrix-row":t.row&&t.row.id,onPointerDown:function(t){return e.onPointerDownHandler(t)}},this.props.children)},t}(a.SurveyElementBase);s.ReactElementFactory.Instance.registerElement("sv-matrix-row",function(e){return i.a.createElement(u,e)})},
1"./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicAction",function(){return u}),r.d(t,"SurveyQuestionPanelDynamicAddButton",function(){return c});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(a.ReactSurveyElement),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.addPanelUI()},t}return l(t,e),t.prototype.renderElement=function(){return this.question.canAddPanel?i.a.createElement("button",{type:"button",className:this.question.getAddButtonCss(),onClick:this.handleClick},i.a.createElement("span",{className:this.question.cssClasses.buttonAddText},this.question.panelAddText)):null},t}(u);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-add-btn",function(e){return i.a.createElement(c,e)})},
1"./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicNextButton",function(){return c});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToNextPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-next-btn",function(e){return i.a.createElement(c,e)})},
1"./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicPrevButton",function(){return c});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToPrevPanel()},t}return u(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},i.a.createElement(a.SvgIcon,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(l.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-prev-btn",function(e){return i.a.createElement(c,e)})},
1"./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicProgressText",function(){return u});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-progress-text",function(e){return i.a.createElement(u,e)})},
1"./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamicRemoveButton",function(){return u});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.removePanelUI(t.data.panel)},t}return l(t,e),t.prototype.renderElement=function(){return i.a.createElement("button",{className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},i.a.createElement("span",{className:this.question.cssClasses.buttonRemoveText},this.question.panelRemoveText),i.a.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(a.SurveyQuestionPanelDynamicAction);s.ReactElementFactory.Instance.registerElement("sv-paneldynamic-remove-btn",function(e){return i.a.createElement(u,e)})},
1"./src/react/components/popup/popup.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"Popup",function(){return h}),r.d(t,"PopupContainer",function(){return m}),r.d(t,"PopupDropdownContainer",function(){return f}),r.d(t,"showModal",function(){return g}),r.d(t,"showDialog",function(){return y});var n,o=r("react-dom"),i=r.n(o),s=r("react"),a=r.n(s),l=r("./src/entries/core.ts"),u=r("./src/react/element-factory.tsx"),c=r("./src/react/reactquestion_element.tsx"),p=r("./src/react/components/action-bar/action-bar.tsx"),d=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e){function t(t){var r=e.call(this,t)||this;return r.containerRef=a.a.createRef(),r.createModel(),r}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(l.createPopupViewModel)(this.props.model,void 0),this.popup.initializePopupContainer()},t.prototype.setTargetElement=function(){if(this.containerRef.current&&!this.popup.isModal){var e=this.popup;e&&this.containerRef.current.parentElement&&(e.targetElement=this.containerRef.current.parentElement)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.popup.initializePopupContainer(),this.setTargetElement()},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.setTargetElement()},t.prototype.componentWillUnmount=function(){this.popup.unmountPopupContainer()},t.prototype.shouldComponentUpdate=function(t,r){if(!e.prototype.shouldComponentUpdate.call(this,t,r))return!1;var n,o=t.model!==this.popup.model;return o&&(null==(n=this.popup)||n.dispose(),this.createModel()),o},t.prototype.render=function(){var e;return this.popup.model=this.model,e=this.model.isModal?i.a.createPortal(a.a.createElement(m,{model:this.popup}),this.popup.container):i.a.createPortal(a.a.createElement(f,{model:this.popup}),this.popup.container),a.a.createElement("div",{ref:this.containerRef},e)},t}(c.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("sv-popup",function(e){return a.a.createElement(h,e)});var m=function(e){function t(t){var r=e.call(this,t)||this;return r.prevIsVisible=!1,r.handleKeydown=function(e){r.model.onKeyDown(e)},r.clickInside=function(e){e.stopPropagation()},r}return d(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),!this.prevIsVisible&&this.model.isVisible&&this.model.updateOnShowing(),this.prevIsVisible=this.model.isVisible},t.prototype.renderContainer=function(e){var t=this,r=e.showHeader?this.renderHeaderPopup(e):null,n=e.title?this.renderHeaderContent():null,o=this.renderContent(),i=e.showFooter?this.renderFooter(this.model):null;return a.a.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(e){t.clickInside(e)}},a.a.createElement("div",{className:"sv-popup__shadow"},r,a.a.createElement("div",{className:"sv-popup__body-content"},n,a.a.createElement("div",{className:"sv-popup__scrolling-content"},o),i)))},t.prototype.renderHeaderContent=function(){return a.a.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=u.ReactElementFactory.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return a.a.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return a.a.createElement("div",{className:"sv-popup__body-footer"},a.a.createElement(p.SurveyActionBar,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,t=this.renderContainer(this.model),r=new l.CssClassBuilder().append("sv-popup").append(this.model.styleClass).toString(),n={display:this.model.isVisible?"":"none"};
1return a.a.createElement("div",{tabIndex:-1,className:r,style:n,onClick:function(t){e.model.clickOutside(),t.stopPropagation()},onKeyDown:this.handleKeydown},t)},t}(c.SurveyElementBase),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return d(t,e),t.prototype.renderHeaderPopup=function(e){return e?a.a.createElement("span",{style:{left:e.pointerTarget.left,top:e.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(m);function g(e,t,r,n,o,i,s){return void 0===s&&(s="popup"),y(Object(l.createDialogOptions)(e,t,r,n,void 0,void 0,o,i,s))}function y(e){e.onHide=function(){i.a.unmountComponentAtNode(t.container),t.unmountPopupContainer()};var t=Object(l.createPopupModalViewModel)(e);return i.a.render(a.a.createElement(m,{model:t}),t.container),t.model.isVisible=!0,t}l.settings.showModal=g},
1"./src/react/components/skeleton.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"Skeleton",function(){return l});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.render=function(){var e;return i.a.createElement("div",{className:"sv-skeleton-element",id:null==(e=this.props.element)?void 0:e.id})},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-skeleton",function(e){return i.a.createElement(l,e)})},
1"./src/react/components/survey-actions/survey-nav-button.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyNavigationButton",function(){return u});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return i.a.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,value:this.item.title})},t}(a.ReactSurveyElement);s.ReactElementFactory.Instance.registerElement("sv-nav-btn",function(e){return i.a.createElement(u,e)})},
1"./src/react/components/survey-header/logo-image.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"LogoImage",function(){return l});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(i.a.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},i.a.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml,alt:this.survey.locTitle.renderedHtml,width:this.survey.logoWidth?this.survey.logoWidth:void 0,height:this.survey.logoHeight?this.survey.logoHeight:void 0,style:{objectFit:this.survey.logoFit}}))),i.a.createElement(i.a.Fragment,null,e)},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-logo-image",function(e){return i.a.createElement(l,e)})},
1"./src/react/components/survey-header/survey-header.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyHeader",function(){return c});var n,o=r("react"),i=r.n(o),s=r("./src/react/reactquestion_element.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/title/title-element.tsx"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.state={changed:0},r}return u(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=s.SurveyElementBase.renderLocString(this.survey.locDescription);return i.a.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},i.a.createElement(l.TitleElement,{element:this.survey}),this.survey.renderedHasDescription?i.a.createElement("h5",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var t=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),r=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return a.ReactElementFactory.Instance.createElement(t,{data:r})},t.prototype.render=function(){return this.survey.renderedHasHeader?i.a.createElement("div",{className:this.css.header},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),i.a.createElement("div",{className:this.css.headerClose})):null},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement("survey-header",function(e){return i.a.createElement(c,e)})},
1"./src/react/components/svg-icon/svg-icon.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SvgIcon",function(){return u});var n,o=r("react"),i=r.n(o),s=r("./src/react/element-factory.tsx"),a=r("./src/entries/core.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.svgIconRef=i.a.createRef(),r}return l(t,e),t.prototype.updateSvg=function(){this.props.iconName&&Object(a.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?i.a.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img","aria-label":this.props.title},i.a.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(i.a.Component);s.ReactElementFactory.Instance.registerElement("sv-svg-icon",function(e){return i.a.createElement(u,e)})},
1"./src/react/components/title/title-actions.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TitleActions",function(){return p});var n,o=r("react"),i=r.n(o),s=r("./src/entries/core.ts"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/components/action-bar/action-bar.tsx"),u=r("./src/react/components/title/title-content.tsx"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return c(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=i.a.createElement(u.TitleContent,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?i.a.createElement("div",{className:"sv-title-actions"},i.a.createElement("span",{className:"sv-title-actions__title"},e),i.a.createElement(l.SurveyActionBar,{model:this.element.getTitleToolbar()})):e},t}(i.a.Component);s.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),a.ReactElementFactory.Instance.registerElement("sv-title-actions",function(e){return i.a.createElement(p,e)})},
1"./src/react/components/title/title-content.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TitleContent",function(){return l});var n,o=r("react"),i=r.n(o),s=r("./src/react/reactquestion_element.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return s.SurveyElementBase.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return i.a.createElement(i.a.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,t){var r=function(e){return i.a.createElement("span",{"data-key":e,key:e},"\xa0")},n=[];e.isRequireTextOnStart&&(n.push(this.renderRequireText(e,t)),n.push(r("req-sp")));var o=e.no;return o&&(n.push(i.a.createElement("span",{"data-key":"q_num",key:"q_num",className:t.number,style:{position:"static"},"aria-hidden":!0}
1,o)),n.push(r("num-sp"))),e.isRequireTextBeforeTitle&&(n.push(this.renderRequireText(e,t)),n.push(r("req-sp"))),n.push(s.SurveyElementBase.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(n.push(r("req-sp")),n.push(this.renderRequireText(e,t))),n},t.prototype.renderRequireText=function(e,t){return i.a.createElement("span",{"data-key":"req-text",key:"req-text",className:t.requiredText||t.panel.requiredText,"aria-hidden":!0},e.requiredText)},t}(i.a.Component)},
1"./src/react/components/title/title-element.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TitleElement",function(){return u});var n,o=r("react"),i=r.n(o),s=r("./src/entries/core.ts"),a=r("./src/react/components/title/title-actions.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var t=e.titleAriaLabel||void 0,r=i.a.createElement(a.TitleActions,{element:e,cssClasses:e.cssClasses}),n=void 0;e.hasTitleEvents&&(n=function(e){Object(s.doKey2ClickUp)(e.nativeEvent)});var o=e.titleTagName;return i.a.createElement(o,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:"columnheader",onClick:void 0,onKeyUp:n},r)},t}(i.a.Component)},
1"./src/react/custom-widget.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyCustomWidget",function(){return a});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){var r=e.call(this,t)||this;return r.widgetRef=o.createRef(),r}return s(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r);var n=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!n&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var t=this.widgetRef.current;t&&this.questionBase.customWidget.willUnmount(this.questionBase,t)}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return o.createElement("div",{ref:this.widgetRef},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 o.createElement("div",{ref:this.widgetRef,dangerouslySetInnerHTML:r})}return o.createElement("div",{ref:this.widgetRef},t)},t}(i.SurveyQuestionElementBase)},
1"./src/react/dropdown-base.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionDropdownBase",function(){return d});var n,o=r("react"),i=r("./src/entries/core.ts"),s=r("./src/react/components/popup/popup.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("./src/react/element-factory.tsx"),u=r("./src/react/reactquestion_comment.tsx"),c=r("./src/react/reactquestion_element.tsx"),p=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.click=function(e){var r;null==(r=t.question.dropdownListModel)||r.onClick(e)},t.clear=function(e){var r;null==(r=t.question.dropdownListModel)||r.onClear(e)},t.keyhandler=function(e){var r;null==(r=t.question.dropdownListModel)||r.keyHandler(e)},t.blur=function(e){var r;null==(r=t.question.dropdownListModel)||r.onBlur(e),t.updateInputDomElement()},t}return p(t,e),t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderSelect=function(e){var t,r,n=null;if(this.question.isReadOnly){var a=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";n=o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},a,o.createElement("div",null,this.question.readOnlyText))}else this.question.hasOwnProperty("dropdownListModel")||(this.question.dropdownListModel=new i.DropdownListModel(this.question)),n=o.createElement(o.Fragment,null,this.renderInput(this.question.dropdownListModel),o.createElement(s.Popup,{model:null==(r=null==(t=this.question)?void 0:t.dropdownListModel)?void 0:r.popupModel}));return o.createElement("div",{className:e.selectWrapper},n)},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?l.ReactElementFactory.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var t=this,r=this.renderValueElement(e),n=function(t){t.target===document.activeElement&&(e.filterString=t.target.value)};return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?void 0:0,onClick:this.click,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy},o.createElement("div",{className:this.question.cssClasses.controlValue},r,o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,role:e.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,placeholder:this.question.readOnlyText,readOnly:!e.searchEnabled||void 0,tabIndex:e.inputReadOnly?void 0:-1,disabled:this.question.isInputReadOnly,onChange:function(e){n(e)},onBlur:this.blur})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.isEmpty()?"none":""};return o.createElement("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear},o.createElement(a.SvgIcon,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.renderOther=function(e){return o.createElement("div",{className:"form-group"},o.createElement(u.SurveyQuestionCommentItem,{question:this.question,otherCss:e.other,cssClasse
1s:e,isDisplayMode:this.isDisplayMode}))},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateInputDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.question.dropdownListModel.filterString;i.Helpers.isTwoValueEquals(t,e.value)||(e.value=this.question.dropdownListModel.filterString)}},t}(c.SurveyQuestionUncontrolledElement)},
1"./src/react/dropdown-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionOptionItem",function(){return a});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(e){function t(t){var r=e.call(this,t)||this;return r.state={changed:0},r.setupModel(),r}return s(t,e),t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.setupModel()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return o.createElement("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(i.ReactSurveyElement)},
1"./src/react/dropdown-select.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionDropdownSelect",function(){return c});var n,o=r("react"),i=r("./src/entries/core.ts"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactquestion_dropdown.tsx"),l=r("./src/react/dropdown-item.tsx"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderSelect=function(e){var t=this,r=this.isDisplayMode?o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):o.createElement("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(e){return t.setControl(e)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(e){t.question.onClick(e)},onKeyUp:function(e){t.question.onKeyUp(e)},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,required:this.question.isRequired},this.question.allowClear?o.createElement("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map(function(e,t){return o.createElement(l.SurveyQuestionOptionItem,{key:"item"+t,item:e})}));return o.createElement("div",{className:e.selectWrapper},r)},t}(a.SurveyQuestionDropdown);s.ReactQuestionFactory.Instance.registerQuestion("sv-dropdown-select",function(e){return o.createElement(c,e)}),i.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select")},
1"./src/react/element-factory.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ReactElementFactory",function(){return n});var n=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=[];for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.isElementRegistered=function(e){return!!this.creatorHash[e]},e.prototype.createElement=function(e,t){var r=this.creatorHash[e];return null==r?null:r(t)},e.Instance=new e,e}()},
1"./src/react/element-header.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyElementHeader",function(){return u});var n,o=r("react"),i=r.n(o),s=r("./src/react/components/title/title-element.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,t=e.hasTitle?i.a.createElement(s.TitleElement,{element:e}):null,r=e.hasDescriptionUnderTitle?a.SurveyElementBase.renderQuestionDescription(this.element):null;return i.a.createElement("div",{className:e.cssHeader,onClick:e.clickTitleFunction},t,r)},t}(i.a.Component)},
1"./src/react/flow-panel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyFlowPanel",function(){return u});var n,o=r("react"),i=r("./src/react/element-factory.tsx"),s=r("./src/react/panel.tsx"),a=r("./src/react/reactquestion.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser)return o.createElement("div",{dangerouslySetInnerHTML:{__html:e}});var t=new DOMParser().parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(t)},t.prototype.renderNodes=function(e){for(var t=[],r=0;r<e.length;r++){var n=this.renderNode(e[r]);n&&t.push(n)}return t},t.prototype.getStyle=function(e){var t={};return"b"===e.toLowerCase()&&(t.fontWeight="bold"),"i"===e.toLowerCase()&&(t.fontStyle="italic"),"u"===e.toLowerCase()&&(t.textDecoration="underline"),t},t.prototype.renderParentNode=function(e){var t=e.nodeName.toLowerCase(),r=this.renderNodes(this.getChildDomNodes(e));return"div"===t?o.createElement("div",{key:this.getNodeIndex()},r):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},r)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var t=e.nodeName.toLowerCase();if("question"===t){var r=this.flowPanel.getQuestionByName(e.textContent);if(!r)return null;var n=o.createElement(a.SurveyQuestion,{key:r.name,element:r,creator:this.creator,css:this.css});return o.createElement("span",{key:this.getNodeIndex()},n)}return"div"===t?o.createElement("div",{key:this.getNodeIndex()},e.textContent):o.createElement("span",{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var t=[],r=0;r<e.childNodes.length;r++)t.push(e.childNodes[r]);return t},t.prototype.hasTextChildNodesOnly=function(e){for(var t=e.childNodes,r=0;r<t.length;r++)if("#text"!==t[r].nodeName.toLowerCase())return!1;return!0},t.prototype.renderContent=function(e,t){return o.createElement("f-panel",{style:e},t)},t}(s.SurveyPanel);i.ReactElementFactory.Instance.registerElement("flowpanel",function(e){return o.createElement(u,e)})},
1"./src/react/image.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionImage",function(){return l});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){t.forceUpdate()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.imageLink},t.prototype.renderElement=function(){var e=this.question.getImageCss(),t={objectFit:this.question.imageFit},r=null;return"image"===this.question.renderedMode&&(r=o.createElement("img",{className:e,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:t})),"video"===this.question.renderedMode&&(r=o.createElement("video",{controls:!0,className:e,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:t})),"youtube"===this.question.renderedMode&&(r=o.createElement("iframe",{className:e,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:t})),o.createElement("div",{className:this.question.cssClasses.root},r)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("image",function(e){return o.createElement(l,e)})},
1"./src/react/imagepicker.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionImagePicker",function(){return c}),r.d(t,"SurveyQuestionImagePickerItem",function(){return p});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=r("./src/react/components/svg-icon/svg-icon.tsx"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return o.createElement("fieldset",{className:this.question.getSelectBaseRootCss()},o.createElement("legend",{role:"radio","aria-label":this.question.locTitle.renderedHtml}),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map(function(r,n){var i=r.map(function(r,n){return t.renderItem("item"+n,r,e)});return o.createElement("div",{key:"column"+n,className:t.question.getColumnClass(),role:"presentation"},i)})},t.prototype.getItems=function(e){for(var t=[],r=0;r<this.question.visibleChoices.length;r++){var n=this.question.visibleChoices[r],o="item"+r;t.push(this.renderItem(o,n,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,t,r){var n=o.createElement(p,{key:e,question:this.question,item:t,cssClasses:r}),i=this.question.survey,s=null;return i&&(s=a.ReactSurveyElementsWrapper.wrapItemValue(i,n,this.question,t)),null!=s?s:n},t}(i.SurveyQuestionElementBase),p=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r}return u(t,e),t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),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.renderElement=function(){var e=this,t=this.item,r=this.question,n=this.cssClasses,s=r.isItemSelected(t),a=r.getItemClass(t),u=null;r.showLabel&&(u=o.createElement("span",{className:r.cssClasses.itemText},t.text?i.SurveyElementBase.renderLocString(t.locText):t.value));var c={objectFit:this.question.imageFit},p=null;if(t.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(p=o.createElement("img",{className:n.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:t.locText.renderedHtml,style:c,onLoad:function(r){e.question.onContentLoaded(t,r.nativeEvent)}})),t.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(p=o.createElement("video",{controls:!0,className:n.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:c,onLoadedMetadata:function(r){e.question.onContentLoaded(t,r.nativeEvent)}})),!t.locImageLink.renderedHtml){var d={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};p=o.createElement("div",{className:n.itemNoImage,style:d},n.itemNoImageSvgIcon?o.createElement("svg",{className:n.itemNoImageSvgIcon},o.createElement("use",{xlinkHref:n.itemNoImageSvgIconId})):null)}return o.createElement("div",{className:a},o.createElement("label",{className:n.label},o.createElement("input",{className:n.itemControl,id:this.question.getItemId(t),type:this.question.inputType,name:this.question.questionName,checked:s,value:t.value,disabled:!this.question.getItemEnabled(t),onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}
1),o.createElement("div",{className:this.question.cssClasses.itemDecorator},o.createElement("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?o.createElement("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?o.createElement(l.SvgIcon,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,p),u)))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("imagepicker",function(e){return o.createElement(c,e)})},
1"./src/react/page.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyPage",function(){return u});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/panel-base.tsx"),a=r("./src/react/components/title/title-element.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),t=this.renderDescription(),r=this.renderRows(this.panelBase.cssClasses);return o.createElement("div",{ref:this.rootRef,className:this.page.cssRoot},e,t,r)},t.prototype.renderTitle=function(){return o.createElement(a.TitleElement,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=i.SurveyElementBase.renderLocString(this.page.locDescription);return o.createElement("div",{className:this.panelBase.cssClasses.page.description},e)},t}(s.SurveyPanelBase)},
1"./src/react/panel-base.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyPanelBase",function(){return l});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/row.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.renderedRowsCache={},r.rootRef=o.createRef(),r}return a(t,e),t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(t){return"elements"!==t&&e.prototype.canUsePropInState.call(this,t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),t.page&&this.survey&&this.survey.currentPage&&t.page.name===this.survey.currentPage.name||this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.survey.afterRenderPanel(this.panelBase,e):this.survey.afterRenderPage(e))},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&this.panelBase.isVisible&&!!this.panelBase.survey},t.prototype.renderRows=function(e){"rows"!==this.changedStatePropName&&(this.renderedRowsCache={});for(var t=[],r=this.panelBase.rows,n=0;n<r.length;n++){var o=this.renderedRowsCache[r[n].id];o||(o=this.createRow(r[n],e),this.renderedRowsCache[r[n].id]=o),t.push(o)}return t},t.prototype.createRow=function(e,t){return o.createElement(s.SurveyRow,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})},t}(i.SurveyElementBase)},
1"./src/react/panel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyPanel",function(){return m});var n,o=r("react"),i=r("./src/react/reactquestion.tsx"),s=r("./src/react/reactquestion_element.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/panel-base.tsx"),u=r("./src/react/reactsurveymodel.tsx"),c=r("./src/react/components/action-bar/action-bar.tsx"),p=r("./src/react/components/title/title-element.tsx"),d=r("./src/react/element-header.tsx"),h=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),m=function(e){function t(t){var r=e.call(this,t)||this;return r.hasBeenExpanded=!1,r}return h(t,e),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderHeader(),t=o.createElement(i.SurveyElementErrors,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),r={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.isCollapsed?"none":void 0},n=null;if(!this.panel.isCollapsed||this.hasBeenExpanded){this.hasBeenExpanded=!0;var s=this.renderRows(this.panelBase.cssClasses),a=this.panelBase.cssClasses.panel.content;n=this.renderContent(r,s,a)}return o.createElement("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:this.panelBase.focusIn,id:this.panelBase.id},e,t,n)},t.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?o.createElement(d.SurveyElementHeader,{element:this.panel}):null},t.prototype.wrapElement=function(e){var t=this.panel.survey,r=null;return t&&(r=u.ReactSurveyElementsWrapper.wrapElement(t,e,this.panel)),null!=r?r:e},t.prototype.renderContent=function(e,t,r){var n=this.renderBottom();return o.createElement("div",{style:e,className:r,id:this.panel.contentId},t,n)},t.prototype.renderTitle=function(){return this.panelBase.title?o.createElement(p.TitleElement,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=s.SurveyElementBase.renderLocString(this.panelBase.locDescription);return o.createElement("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?o.createElement(c.SurveyActionBar,{model:e}):null},t}(l.SurveyPanelBase);a.ReactElementFactory.Instance.registerElement("panel",function(e){return o.createElement(m,e)})},
1"./src/react/rating-dropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRatingDropdown",function(){return u});var n,o=r("react"),i=r("./src/entries/core.ts"),s=r("./src/react/dropdown-base.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.renderSelect(e);return o.createElement("div",{className:this.question.cssClasses.rootDropdown},t)},t}(s.SurveyQuestionDropdownBase);a.ReactQuestionFactory.Instance.registerQuestion("sv-rating-dropdown",function(e){return o.createElement(u,e)}),i.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown")},
1"./src/react/react-popup-survey.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupSurvey",function(){return u}),r.d(t,"SurveyWindow",function(){return c});var n,o=r("react"),i=r("./src/react/reactSurvey.tsx"),s=r("./src/react/reactquestion_element.tsx"),a=r("./src/entries/core.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnExpanded=r.handleOnExpanded.bind(r),r}return l(t,e),t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this.renderWindowHeader(),t=this.popup.isExpanded?this.renderBody():null,r={position:"fixed",bottom:3,right:10};return this.popup.renderedWidth&&(r.width=this.popup.renderedWidth,r.maxWidth=this.popup.renderedWidth),o.createElement("div",{className:this.popup.cssRoot,style:r},e,t)},t.prototype.renderWindowHeader=function(){var e={paddingRight:"10px"},t=this.popup.cssButton;t="glyphicon pull-right "+t;var r=s.SurveyElementBase.renderLocString(this.survey.locTitle);return o.createElement("div",{className:this.popup.cssHeaderRoot},o.createElement("span",{onClick:this.handleOnExpanded,style:{width:"100%",cursor:"pointer"}},o.createElement("span",{className:this.popup.cssHeaderTitle,style:e},r),o.createElement("span",{className:t,"aria-hidden":"true"})),this.popup.isExpanded?o.createElement("span",{onClick:this.handleOnExpanded,style:{float:"right",cursor:"pointer"}},o.createElement("span",{className:this.popup.cssHeaderTitle,style:e},"X")):null)},t.prototype.renderBody=function(){return o.createElement("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(t){t||(t={}),e.prototype.createSurvey.call(this,t),this.popup=new a.PopupSurveyModel(null,this.survey),t.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=t.closeOnCompleteTimeout),this.popup.isShowing=!0,!this.popup.isExpanded&&(t.expanded||t.isExpanded)&&this.popup.expand()},t}(i.Survey),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(u)},
1"./src/react/reactSurvey.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"Survey",function(){return g}),r.d(t,"attachKey2click",function(){return y});var n,o=r("react"),i=r("./src/entries/core.ts"),s=r("./src/react/page.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/string-viewer.tsx"),u=r("./src/react/components/survey-header/survey-header.tsx"),c=r("./src/react/reacttimerpanel.tsx"),p=r("./src/react/reactquestion_factory.tsx"),d=r("./src/react/element-factory.tsx"),h=r("./src/react/components/action-bar/action-bar.tsx"),m=r("./src/react/components/brand-info.tsx"),f=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e){function t(t){var r=e.call(this,t)||this;return r.previousJSON={},r.handleTryAgainClick=r.handleTryAgainClick.bind(r),r.createSurvey(t),r.updateSurvey(t,{}),r.rootRef=o.createRef(),r.rootNodeId=t.id||null,r.rootNodeClassName=t.className||"",r}return f(t,e),Object.defineProperty(t,"cssType",{get:function(){return i.surveyCss.currentType},set:function(e){i.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.shouldComponentUpdate=function(t,r){return!!e.prototype.shouldComponentUpdate.call(this,t,r)&&(this.isModelJSONChanged(t)&&(this.createSurvey(t),this.updateSurvey(t,{})),!0)},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateSurvey(this.props,t)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this);var t=this.rootRef.current;t&&this.survey&&this.survey.afterRenderSurvey(t),this.survey&&this.survey.startTimerFromUI()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.survey&&this.survey.stopTimer()},t.prototype.doRender=function(){this.survey.needRenderIcons&&i.SvgRegistry.renderIcons();var e="completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():this.renderSurvey(),t=o.createElement(u.SurveyHeader,{survey:this.survey}),r=o.createElement("div",{className:"sv_custom_header"});this.survey.hasLogo&&(r=null);var n=this.survey.getRootCss(),s=this.rootNodeClassName?this.rootNodeClassName+" "+n:n,a=this.survey.isShowProgressBarOnTop&&!this.survey.isShowStartingPage?this.renderProgress(!0):null;return o.createElement("div",{id:this.rootNodeId,ref:this.rootRef,className:s},o.createElement("form",{onSubmit:function(e){e.preventDefault()}},r,o.createElement("div",{className:this.css.container},t,this.renderTimerPanel("top"),a,e,this.renderTimerPanel("bottom"))),this.survey.showBrandInfo?o.createElement(m.BrandInfo,null):null)},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,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.getLocalizationString("saveAgainButton");t=o.createElement("input",{type:"button",value:r,className:this.css.saveData.saveAgainButton,onClick:this.handleTryAgainClick})}var n=this.css.saveData[this.survey.completedState];e=o.createElement("div",{className:this.css.saveData.root},o.createElement("div",{className:n},o.createElement("span",null,this.survey.completedStateText),t))}var i={__html:this.survey.processedCompletedHtml};return o.createElement(o.Fragment,null,o.createElement("div",{dangerouslySetInnerHTML:i,className:this.survey.completedCss}),e)},t.prototype.renderCompletedBefore=function(){var e={__html:this.survey.processedCompletedBeforeHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderLoading=function(){var e={__html:this.survey.processedLoadingHtml};return o.createElement("div",{dangerouslySetInnerHTML:e,className:this.css.body})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null,t=this.survey.isShowStartingPage,r=this.survey.activePage?this.survey.activePage.id:"",n=this.survey.isShowProgressBarOnBottom&&!t?this.renderProgress(!1):null,i=this.survey.bodyCss;e||(i=this.css.bodyEmpty,e=this.renderEmptySurvey());var s={};return this.survey.renderedWidth&&(s.maxWidth=this.survey.renderedWidth),o.createElement("div",{id:r,className:i,style:s}
1,this.renderNavigation("top"),e,n,this.renderNavigation("bottom"))},t.prototype.renderTimerPanel=function(e){return!this.survey.isShowStartingPage&&("top"!==e||this.survey.isTimerPanelShowingOnTop)&&("bottom"!==e||this.survey.isTimerPanelShowingOnBottom)?o.createElement(c.SurveyTimerPanel,{timerModel:this.survey.timerModel}):null},t.prototype.renderPage=function(e){return o.createElement(s.SurveyPage,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderProgress=function(e){return d.ReactElementFactory.Instance.createElement("sv-progress-"+this.survey.progressBarType.toLowerCase(),{survey:this.survey,css:this.css,isTop:e})},t.prototype.renderNavigation=function(e){return"both"!==this.survey.isNavigationButtonsShowing&&("none"===this.survey.isNavigationButtonsShowing||this.survey.isNavigationButtonsShowing!==e)?null:o.createElement(h.SurveyActionBar,{model:this.survey.navigationBar})},t.prototype.renderEmptySurvey=function(){return o.createElement("span",null,this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new i.SurveyModel(e.json)):this.survey=new i.SurveyModel,e.css&&(this.survey.css=this.css),this.setSurveyEvents()},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:!!e.json&&!i.Helpers.isTwoValueEquals(e.json,this.previousJSON)},t.prototype.updateSurvey=function(e,t){if(e){for(var r in t=t||{},e)if("model"!=r&&"children"!=r&&"json"!=r){if("css"==r){this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss();continue}e[r]!==t[r]&&(0==r.indexOf("on")&&this.survey[r]&&this.survey[r].add?(t[r]&&this.survey[r].remove(t[r]),this.survey[r].add(e[r])):this.survey[r]=e[r])}}},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add(function(t){e.state&&e.setState(e.state)})},t.prototype.createQuestionElement=function(e){return p.ReactQuestionFactory.Instance.createQuestion(!e.isDefaultRendering||e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,t,r){return o.createElement("div",{key:e},o.createElement("span",{className:r.error.icon||void 0,"aria-hidden":"true"}),o.createElement("span",{className:r.error.item||void 0},o.createElement(l.SurveyLocStringViewer,{locStr:t.locText})))},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(a.SurveyElementBase);function y(e,t,r){return(void 0===r&&(r={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||r&&r.disableTabStop)?o.cloneElement(e,{tabIndex:-1}):o.cloneElement(e,{tabIndex:0,onKeyUp:function(e){return e.preventDefault(),e.stopPropagation(),Object(i.doKey2ClickUp)(e,r),!1},onKeyDown:function(e){return Object(i.doKey2ClickDown)(e,r)},onBlur:function(e){return Object(i.doKey2ClickBlur)(e)}})}d.ReactElementFactory.Instance.registerElement("survey",function(e){return o.createElement(g,e)})},
1"./src/react/reactSurveyNavigationBase.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyNavigationBase",function(){return s});var n,o=r("react"),i=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s=function(e){function t(t){var r=e.call(this,t)||this;return r.updateStateFunction=null,r.state={update:0},r}return i(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),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}(o.Component)},
1"./src/react/reactSurveyProgress.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgress",function(){return u});var n,o=r("react"),i=r("./src/entries/core.ts"),s=r("./src/react/reactSurveyNavigationBase.tsx"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isTop?{}:{marginTop:"1em"},t={width:this.progress+"%"};return o.createElement("div",{className:this.css.progress,style:e},o.createElement("div",{style:t,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100},o.createElement("span",{className:i.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),o.createElement("span",{className:i.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-pages",function(e){return o.createElement(u,e)}),a.ReactElementFactory.Instance.registerElement("sv-progress-questions",function(e){return o.createElement(u,e)}),a.ReactElementFactory.Instance.registerElement("sv-progress-correctquestions",function(e){return o.createElement(u,e)}),a.ReactElementFactory.Instance.registerElement("sv-progress-requiredquestions",function(e){return o.createElement(u,e)})},
1"./src/react/reactSurveyProgressButtons.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgressButtons",function(){return u});var n,o=r("react"),i=r("./src/entries/core.ts"),s=r("./src/react/reactSurveyNavigationBase.tsx"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.updateScroller=void 0,r.progressButtonsModel=new i.SurveyProgressButtonsModel(r.survey),r.listContainerRef=o.createRef(),r}return l(t,e),t.prototype.render=function(){var e=this;return o.createElement("div",{className:this.css.progressButtonsContainerCenter},o.createElement("div",{className:this.css.progressButtonsContainer},o.createElement("div",{className:this.getScrollButtonCss(!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),o.createElement("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},o.createElement("ul",{className:this.css.progressButtonsList},this.getListElements())),o.createElement("div",{className:this.getScrollButtonCss(!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})))},t.prototype.getListElements=function(){var e=this,t=[];return this.survey.visiblePages.forEach(function(r,n){t.push(e.renderListElement(r,n))}),t},t.prototype.renderListElement=function(e,t){var r=this;return o.createElement("li",{key:"listelement"+t,className:this.getListElementCss(t),onClick:this.isListElementClickable(t)?function(){return r.clickListElement(t)}:void 0},o.createElement("div",{className:this.css.progressButtonsPageTitle,title:e.navigationTitle||e.name},e.navigationTitle||e.name),o.createElement("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription))},t.prototype.isListElementClickable=function(e){return this.progressButtonsModel.isListElementClickable(e)},t.prototype.getListElementCss=function(e){return this.progressButtonsModel.getListElementCss(e)},t.prototype.clickListElement=function(e){this.progressButtonsModel.clickListElement(e)},t.prototype.getScrollButtonCss=function(e){return this.progressButtonsModel.getScrollButtonCss(this.state.hasScroller,e)},t.prototype.clickScrollButton=function(e,t){e&&(e.scrollLeft+=(t?-1:1)*70)},t.prototype.componentDidMount=function(){var e=this;this.updateScroller=setInterval(function(){e.listContainerRef.current&&e.setState({hasScroller:e.listContainerRef.current.scrollWidth>e.listContainerRef.current.offsetWidth})},100)},t.prototype.componentWillUnmount=function(){void 0!==this.updateScroller&&(clearInterval(this.updateScroller),this.updateScroller=void 0)},t}(s.SurveyNavigationBase);a.ReactElementFactory.Instance.registerElement("sv-progress-buttons",function(e){return o.createElement(u,e)})},
1"./src/react/reactquestion.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestion",function(){return h}),r.d(t,"SurveyElementErrors",function(){return m}),r.d(t,"SurveyQuestionAndErrorsWrapped",function(){return f}),r.d(t,"SurveyQuestionAndErrorsCell",function(){return g});var n,o=r("react"),i=r("./src/entries/core.ts"),s=r("./src/react/reactsurveymodel.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/reactquestion_element.tsx"),u=r("./src/react/reactquestion_comment.tsx"),c=r("./src/react/custom-widget.tsx"),p=r("./src/react/element-header.tsx"),d=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e){function t(t){var r=e.call(this,t)||this;return r.isNeedFocus=!1,r.rootRef=o.createRef(),r}return d(t,e),t.renderQuestionBody=function(e,t){return t.isVisible?t.customWidget?o.createElement(c.SurveyCustomWidget,{creator:e,question:t}):e.createQuestionElement(t):null},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question&&!!this.creator&&this.question.isVisible},t.prototype.renderQuestionContent=function(){var e=this.question,t={display:this.question.isCollapsed?"none":""},r=e.cssClasses,n=this.renderQuestion(),i=this.question.showErrorOnTop?this.renderErrors(r,"top"):null,s=this.question.showErrorOnBottom?this.renderErrors(r,"bottom"):null,a=e&&e.hasComment?this.renderComment(r):null,l=this.question.isErrorsModeTooltip?this.renderErrors(r,"tooltip"):null,u=e.hasDescriptionUnderInput?this.renderDescription():null;return o.createElement("div",{className:e.cssContent||void 0,style:t,role:"presentation"},i,n,a,s,l,u)},t.prototype.renderElement=function(){var e=this.question,t=e.cssClasses,r=this.renderHeader(e),n=e.hasTitleOnLeftTop?r:null,i=e.hasTitleOnBottom?r:null,s=this.question.showErrorsAboveQuestion?this.renderErrors(t,""):null,a=this.question.showErrorsBelowQuestion?this.renderErrors(t,""):null,l={};e.paddingLeft&&(l.paddingLeft=e.paddingLeft),e.paddingRight&&(l.paddingRight=e.paddingRight);var u=this.wrapQuestionContent(this.renderQuestionContent());return o.createElement(o.Fragment,null,o.createElement("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:l,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy},s,n,u,i,a))},t.prototype.wrapElement=function(e){var t=this.question.survey,r=null;return t&&(r=s.ReactSurveyElementsWrapper.wrapElement(t,e,this.question)),null!=r?r:e},t.prototype.wrapQuestionContent=function(e){var t=this.question.survey,r=null;return t&&(r=s.ReactSurveyElementsWrapper.wrapQuestionContent(t,e,this.question)),null!=r?r:e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return l.SurveyElementBase.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var t=l.SurveyElementBase.renderLocString(this.question.locCommentText);
1return o.createElement("div",{className:this.question.cssClasses.formGroup},o.createElement("div",null,t),o.createElement(u.SurveyQuestionCommentItem,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return o.createElement(p.SurveyElementHeader,{element:e})},t.prototype.renderErrors=function(e,t){return o.createElement(m,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+"_errors"})},t}(l.SurveyElementBase);a.ReactElementFactory.Instance.registerElement("question",function(e){return o.createElement(h,e)});var m=function(e){function t(t){var r=e.call(this,t)||this;return r.state=r.getState(),r.tooltipRef=o.createRef(),r}return d(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),"tooltip"==this.props.location&&(this.tooltipRef.current&&!this.tooltipManager&&(this.tooltipManager=new i.TooltipManager(this.tooltipRef.current)),this.tooltipManager&&!this.tooltipRef.current&&this.disposeTooltipManager())},t.prototype.componentWillUnmount=function(){this.tooltipManager&&this.disposeTooltipManager()},t.prototype.disposeTooltipManager=function(){var e;null==(e=this.tooltipManager)||e.dispose(),this.tooltipManager=void 0},t.prototype.renderElement=function(){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 o.createElement("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id,ref:this.tooltipRef},e)},t}(l.ReactSurveyElement),f=function(e){function t(t){return e.call(this,t)||this}return d(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderErrors=function(e){return this.getShowErrors()?o.
1createElement(m,{element:this.question,cssClasses:this.cssClasses,creator:this.creator,location:e}):null},t.prototype.renderContent=function(){var e=this.creator.questionErrorLocation(),t=this.renderErrors(e),r=this.question.showErrorOnTop?t:null,n=this.question.showErrorOnBottom?t:null,i=this.renderQuestion();return o.createElement(o.Fragment,null,r,i,n)},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return h.renderQuestionBody(this.creator,this.question)},t}(l.ReactSurveyElement),g=function(e){function t(t){var r=e.call(this,t)||this;return r.cellRef=o.createRef(),r}return d(t,e),t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.question){var t=this.cellRef.current;t&&t.removeAttribute("data-rendered")}},t.prototype.renderElement=function(){var e=this.getCellStyle(),t=this.question.isErrorsModeTooltip?this.renderErrors("tooltip"):null;return o.createElement("td",{ref:this.cellRef,className:this.itemCss,"data-responsive-title":this.getHeaderText(),title:this.props.cell.getTitle(),style:e},this.wrapCell(this.props.cell,o.createElement("div",{className:this.cssClasses.cellQuestionWrapper},this.renderContent(),t)))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,t){if(!e)return t;var r=this.question.survey,n=null;return r&&(n=s.ReactSurveyElementsWrapper.wrapMatrixCell(r,t,e)),null!=n?n:t},t}(f)},
1"./src/react/reactquestion_buttongroup.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionButtonGroup",function(){return c}),r.d(t,"SurveyButtonGroupItem",function(){return p});var n,o=r("./src/react/reactquestion_element.tsx"),i=r("react"),s=r.n(i),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=r("./src/entries/core.ts"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return s.a.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map(function(t,r){return s.a.createElement(p,{key:e.question.inputId+"_"+r,item:t,question:e.question,index:r})})},t}(o.SurveyQuestionElementBase),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new l.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),t=this.renderInput(),r=this.renderCaption();return s.a.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},t,s.a.createElement("div",{className:this.model.css.decorator},e,r))},t.prototype.renderIcon=function(){return this.model.iconName?s.a.createElement(a.SvgIcon,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return s.a.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){e.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-describedby":this.model.describedBy,role:"radio"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return s.a.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(o.SurveyElementBase)},
1"./src/react/reactquestion_checkbox.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionCheckbox",function(){return p}),r.d(t,"SurveyQuestionCheckboxItem",function(){return d});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_comment.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/reactsurveymodel.tsx"),u=r("./src/react/element-factory.tsx"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("fieldset",{role:"presentation",className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)}},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.getHeader(),this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map(function(t,r){return e.renderItem("item_h"+r,t,!1,e.question.cssClasses)})},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map(function(t,r){return e.renderItem("item_f"+r,t,!1,e.question.cssClasses)})},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map(function(r,n){var i=r.map(function(r,o){return t.renderItem("item"+o,r,0===n&&0===o,e,""+n+o)});return o.createElement("div",{key:"column"+n,className:t.question.getColumnClass(),role:"presentation"},i)})},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var r=[],n=0;n<t.length;n++){var o=t[n],i="item"+n,s=this.renderItem(i,o,0==n,e,""+n);s&&r.push(s)}return r},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return o.createElement("div",{className:"form-group"},o.createElement(s.SurveyQuestionCommentItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,r,n,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isFirst:r}),s=this.question.survey,a=null;return s&&i&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=function(e){var t=[].concat(r.question.renderedValue||[]),n=t.indexOf(r.item.value);e.target.checked?n<0&&t.push(r.item.value):n>-1&&t.splice(n,1),r.question.renderedValue=t},r.selectAllChanged=function(e){r.question.toggleSelectAll()},r}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,r){return!!e.prototype.shouldComponentUpdate.call(this,t,r)&&(!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render)},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var r=this.question.getItemId(this.item),n=this.hideCaption?"":this.renderLocString(this.item.locText),i=this.question.getItemClass(this.item),s=this.question.getLabelClass(this.item),a=this.item==this.question.selectAllItem?this.selectAllChanged:this.handleOnChange;return this.item.locText,o.createElement("div",{className:i,role:"presentation"},o.createElement("label",{className:s,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{className:this.cssClasses.itemControl,role:"option",type:"checkbox",name:this.question.name,value:"selectall"!=this.item.value?this.item.value:void 0,id:r,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),checked:e,onChange:a,"aria-describedby":this.question.ariaDescribedBy}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o.createElement("span",{className:this.cssClasses.controlLabel},n)),t)},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-checkbox-item",function(e){return o.createElement(d,e)}),a.ReactQuestionFactory.Instance.registerQuestion("checkbox",function(e){return o.createElement(p,e)})},
1"./src/react/reactquestion_comment.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionComment",function(){return l}),r.d(t,"SurveyQuestionCommentItem",function(){return u});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderElement=function(){var e=this,t=this.question.isInputTextUpdate?void 0:this.updateValueOnEvent,r=this.question.renderedPlaceholder;return this.question.isReadOnlyRenderDiv()?o.createElement("div",null,this.question.value):o.createElement("textarea",{id:this.question.inputId,className:this.question.className,disabled:this.question.isInputReadOnly,readOnly:this.question.isInputReadOnly,ref:function(t){return e.setControl(t)},maxLength:this.question.getMaxLength(),placeholder:r,onBlur:t,onInput:function(t){e.question.isInputTextUpdate?e.updateValueOnEvent(t):e.question.updateElement()},onKeyDown:function(t){e.question.onKeyDown(t)},cols:this.question.cols,rows:this.question.rows,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,style:{resize:this.question.resizeStyle}})},t}(i.SurveyQuestionUncontrolledElement),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a(t,e),t.prototype.canRender=function(){return!!this.props.question},t.prototype.renderElement=function(){var e=this,t=this.props.question,r=this.props.otherCss||this.cssClasses.comment,n=function(r){e.setState({comment:r.target.value}),t.onCommentChange(r)},i=this.state?this.state.comment:void 0;void 0!==i&&i.trim()!==t.comment&&(i=t.comment);var s=void 0!==i?i:t.comment||"";return t.isReadOnlyRenderDiv()?o.createElement("div",null,s):o.createElement("textarea",{className:r,value:s,disabled:this.isDisplayMode,maxLength:t.getOthersMaxLength(),placeholder:t.commentOrOtherPlaceholder,onChange:n,onBlur:function(e){t.onCommentChange(e),n(e)},onInput:function(e){return t.onCommentInput(e)},"aria-required":t.isRequired,"aria-label":t.locTitle.renderedHtml,style:{resize:t.resizeStyle}})},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("comment",function(e){return o.createElement(l,e)})},
1"./src/react/reactquestion_custom.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionCustom",function(){return c}),r.d(t,"SurveyQuestionComposite",function(){return p});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/panel.tsx"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.getStateElements=function(){var t=e.prototype.getStateElements.call(this);return this.question.contentQuestion&&t.push(this.question.contentQuestion),t},t.prototype.renderElement=function(){return s.SurveyQuestion.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(i.SurveyQuestionUncontrolledElement),p=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return o.createElement(l.SurveyPanel,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(i.SurveyQuestionUncontrolledElement);a.ReactQuestionFactory.Instance.registerQuestion("custom",function(e){return o.createElement(c,e)}),a.ReactQuestionFactory.Instance.registerQuestion("composite",function(e){return o.createElement(p,e)})},
1"./src/react/reactquestion_dropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionDropdown",function(){return l});var n,o=r("react"),i=r("./src/react/reactquestion_factory.tsx"),s=r("./src/react/dropdown-base.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,r=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},r,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("dropdown",function(e){return o.createElement(l,e)})},
1"./src/react/reactquestion_element.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyElementBase",function(){return u}),r.d(t,"ReactSurveyElement",function(){return c}),r.d(t,"SurveyQuestionElementBase",function(){return p}),r.d(t,"SurveyQuestionUncontrolledElement",function(){return d});var n,o=r("react"),i=r("./src/entries/core.ts"),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r._allowComponentUpdate=!0,r}return l(t,e),t.renderLocString=function(e,t,r){return void 0===t&&(t=null),s.ReactElementFactory.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:t,key:r})},t.renderQuestionDescription=function(e){var r=t.renderLocString(e.locDescription);return o.createElement("div",{className:e.cssDescription},r)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact()},t.prototype.componentDidUpdate=function(e,t){this.makeBaseElementsReact()},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,t){return this._allowComponentUpdate&&this.unMakeBaseElementsReact(),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=this.getRenderedElements(),t=0;t<e.length;t++)if(e[t].reactRendering>0)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var t=this.getRenderedElements(),r=0;r<t.length;r++){var n=t[r];n.reactRendering||(n.reactRendering=0),n.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.makeBaseElementReact(e[t])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.unMakeBaseElementReact(e[t])},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,r,n){return void 0===r&&(r=null),t.renderLocString(e,r,n)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var t=this;this.canMakeReact(e)&&(e.iteratePropertiesHash(function(e,r){if(t.canUsePropInState(r)){var n=e[r];if(Array.isArray(n)){var n=n;n.onArrayChanged=function(e){t.isRendering||(t.changedStatePropNameValue=r,t.setState(function(e){var t={};return t[r]=n,t}))}}}}),e.setPropertyValueCoreHandler=function(e,r,n){e[r]!==n&&(e[r]=n,t.canUsePropInState(r)&&(t.isRendering||(t.changedStatePropNameValue=r,t.setState(function(e){var t={};return t[r]=n,t}))))})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash(function(e,t){var r=e[t];if(Array.isArray(r)){var r=r;r.onArrayChanged=function(){}}}))},t}(o.Component),c=function(e){function t(t){return e.call(this,t)||this}
1return l(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(u),p=function(e){function t(t){return e.call(this,t)||this}return l(t,e),t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase){var t=this.control;this.questionBase.beforeDestroyQuestionElement(t),t&&t.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.control;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(t,r){return!!e.prototype.shouldComponentUpdate.call(this,t,r)&&(!this.questionBase.customWidget||!!this.questionBase.customWidgetData.isNeedRender||!!this.questionBase.customWidget.widgetJson.isDefaultRender||!!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,r){if(!r)return t;var n=this.questionBase.survey,o=null;return n&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(n,t,e,r)),null!=o?o:t},t.prototype.setControl=function(e){e&&(this.control=e)},t}(u),d=function(e){function t(t){var r=e.call(this,t)||this;return r.updateValueOnEvent=function(e){i.Helpers.isTwoValueEquals(r.questionBase.value,e.target.value)||r.setValueCore(e.target.value)},r.updateValueOnEvent=r.updateValueOnEvent.bind(r),r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var t=this.control,r=this.getValueCore();i.Helpers.isTwoValueEquals(r,t.value)||(t.value=this.getValue(r))}e.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return i.Helpers.isValueEmpty(e)?"":e},t}(p)},
1"./src/react/reactquestion_empty.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionEmpty",function(){return l});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.state={value:r.question.value},r}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",null)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("empty",function(e){return o.createElement(l,e)})},
1"./src/react/reactquestion_expression.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionExpression",function(){return l});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return o.createElement("div",{id:this.question.inputId,className:t.root,ref:function(t){return e.setControl(t)}},this.question.formatedValue)},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("expression",function(e){return o.createElement(l,e)})},
1"./src/react/reactquestion_factory.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ReactQuestionFactory",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=[];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}()},
1"./src/react/reactquestion_file.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionFile",function(){return c});var n,o=r("react"),i=r("./src/react/components/action-bar/action-bar.tsx"),s=r("./src/react/components/svg-icon/svg-icon.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=r("./src/react/reactquestion_factory.tsx"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.renderPreview(),r=null,n=this.renderFileDecorator(),s=this.renderClearButton(this.question.showRemoveButton),a=this.renderClearButton(this.question.showRemoveButtonBottom),l=this.question.mobileFileNavigatorVisible?o.createElement(i.SurveyActionBar,{model:this.question.mobileFileNavigator}):null;return r=this.isDisplayMode?o.createElement("input",{type:"file",disabled:this.isDisplayMode,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(t){return e.setControl(t)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):o.createElement("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(t){return e.setControl(t)},style:this.isDisplayMode?{color:"transparent"}:{},onChange:this.isDisplayMode?function(){}:this.question.doChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes}),o.createElement("div",{className:this.question.fileRootCss},r,o.createElement("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},n,s,t,a,l))},t.prototype.renderFileDecorator=function(){this.question.cssClasses;var e=null,t=null;return t=o.createElement("label",{role:"button",tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonCaption},o.createElement("span",null,this.question.chooseButtonCaption),this.question.cssClasses.chooseFileIconId?o.createElement(s.SvgIcon,{title:this.question.chooseButtonCaption,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null),this.question.isEmpty()&&(e=o.createElement("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption)),o.createElement("div",{className:this.question.getFileDecoratorCss()},o.createElement("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.question.dragAreaPlaceholder),o.createElement("div",{className:this.question.cssClasses.wrapper},t,e))},t.prototype.renderClearButton=function(e){return e?o.createElement("button",{type:"button",onClick:this.question.doClean,className:e},o.createElement("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?o.createElement(s.SvgIcon,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null):null},t.prototype.renderFileSign=function(e,t){var r=this;return e&&t.name?o.createElement("div",{className:e},o.createElement("a",{href:t.content,onClick:function(e){r.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderPreview=function(){var e=this;if(!this.question.previewValue||!this.question.previewValue.length)return null;var t=this.question.previewValue.map(function(t,r){return t?o.createElement("span",{key:e.question.inputId+"_"+r,className:e.question.cssClasse
1s.preview,style:{display:e.question.isPreviewVisible(r)?void 0:"none"}},e.renderFileSign(e.question.cssClasses.fileSign,t),o.createElement("div",{className:e.question.cssClasses.imageWrapper},e.question.canPreviewImage(t)?o.createElement("img",{src:t.content,style:{height:e.question.imageHeight,width:e.question.imageWidth},alt:"File preview"}):e.question.cssClasses.defaultImage?o.createElement(s.SvgIcon,{iconName:e.question.cssClasses.defaultImageIconId,size:"auto",className:e.question.cssClasses.defaultImage}):null,t.name&&!e.question.isReadOnly?o.createElement("div",{className:e.question.cssClasses.removeFileButton,onClick:function(){return e.question.doRemoveFile(t)}},o.createElement("span",{className:e.question.cssClasses.removeFile},e.question.removeFileCaption),e.question.cssClasses.removeFileSvgIconId?o.createElement(s.SvgIcon,{title:e.question.removeFileCaption,iconName:e.question.cssClasses.removeFileSvgIconId,size:"auto",className:e.question.cssClasses.removeFileSvg}):null):null),e.renderFileSign(e.question.cssClasses.fileSignBottom,t)):null});return o.createElement("div",{className:this.question.cssClasses.fileList||void 0},t)},t}(a.SurveyQuestionElementBase);l.ReactQuestionFactory.Instance.registerQuestion("file",function(e){return o.createElement(c,e)})},
1"./src/react/reactquestion_html.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionHtml",function(){return l});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,t){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return o.createElement("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("html",function(e){return o.createElement(l,e)})},
1"./src/react/reactquestion_matrix.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrix",function(){return u}),r.d(t,"SurveyQuestionMatrixRow",function(){return c});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.state={rowsChanged:0},r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.question){var t=this;this.question.visibleRowsChangedCallback=function(){t.setState({rowsChanged:t.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,t=this.question.cssClasses,r=this.question.hasRows?o.createElement("td",null):null,n=[],i=0;i<this.question.visibleColumns.length;i++){var s=this.question.visibleColumns[i],a="column"+i,l=this.renderLocString(s.locText),u={};this.question.columnMinWidth&&(u.minWidth=this.question.columnMinWidth,u.width=this.question.columnMinWidth),n.push(o.createElement("th",{className:this.question.cssClasses.headerCell,style:u,key:a},this.wrapCell({column:s},l,"column-header")))}for(var p=[],d=this.question.visibleRows,i=0;i<d.length;i++){var h=d[i],a="row-"+h.name+"-"+i;p.push(o.createElement(c,{key:a,question:this.question,cssClasses:t,isDisplayMode:this.isDisplayMode,row:h,isFirst:0==i}))}var m=this.question.showHeader?o.createElement("thead",null,o.createElement("tr",null,r,n)):null;return o.createElement("div",{className:t.tableWrapper,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",null,o.createElement("legend",{"aria-label":this.question.locTitle.renderedHtml}),o.createElement("table",{className:this.question.getTableCss()},m,o.createElement("tbody",null,p))))},t}(i.SurveyQuestionElementBase),c=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){this.row.value=e.target.value,this.setState({value:this.row.value})},t.prototype.wrapCell=function(e,t,r){if(!r)return t;var n=this.question.survey,o=null;return n&&(o=a.ReactSurveyElementsWrapper.wrapMatrixCell(n,t,e,r)),null!=o?o:t},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText),r={};this.question.rowTitleWidth&&(r.minWidth=this.question.rowTitleWidth,r.width=this.question.rowTitleWidth),e=o.createElement("td",{style:r,className:this.question.cssClasses.rowTextCell},this.wrapCell({row:this.row},t,"row-header"))}var n=this.generateTds();return o.createElement("tr",{className:this.row.rowClasses||void 0},e,n)},t.prototype.generateTds=function(){for(var e=this,t=[],r=this.row,n=0;n<this.question.visibleColumns.length;n++){var i=null,s=this.question.visibleColumns[n],a="value"+n,l=r.value==s.value,u=this.question.getItemClass(r,s),c=this.question.inputId+"_"+r.name+"_"+n;if(this.question.hasCellText){var p=this.question.isInputReadOnly?null:function(t){return function(){return e.cellClick(r,t)}};i=o.createElement("td",{key:a,className:u,onClick:p?p(s):function(){}},this.renderLocString(this.question.getCellDisplayLocText(r.name,s)))}else i=o.createElement("td",{key:a,"data-responsive-title":s.locText.renderedHtml,className:this.question.cssClasse
1s.cell},o.createElement("label",{className:u},o.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-required":this.question.ariaRequired,"aria-label":s.locText.renderedHtml,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null),o.createElement("span",{style:this.question.isMobile?void 0:{display:"none"},className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(s.locText))));t.push(i)}return t},t.prototype.cellClick=function(e,t){e.value=t.value,this.setState({value:this.row.value})},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("matrix",function(e){return o.createElement(u,e)})},
1"./src/react/reactquestion_matrixdropdown.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDropdown",function(){return l});var n,o=r("react"),i=r("./src/react/reactquestion_matrixdropdownbase.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t}(i.SurveyQuestionMatrixDropdownBase);s.ReactQuestionFactory.Instance.registerQuestion("matrixdropdown",function(e){return o.createElement(l,e)})},
1"./src/react/reactquestion_matrixdropdownbase.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDropdownBase",function(){return g}),r.d(t,"SurveyQuestionMatrixDropdownCell",function(){return b});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion.tsx"),a=r("./src/react/reactquestion_checkbox.tsx"),l=r("./src/react/reactquestion_radiogroup.tsx"),u=r("./src/react/panel.tsx"),c=r("./src/react/components/action-bar/action-bar.tsx"),p=r("./src/react/components/matrix/row.tsx"),d=r("./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx"),h=r("./src/react/reactquestion_comment.tsx"),m=r("./src/react/element-factory.tsx"),f=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),g=function(e){function t(t){var r=e.call(this,t)||this;return r.question.renderedTable,r.state=r.getState(),r}return f(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.visibleRowsChangedCallback=function(){t.updateStateOnCallback()},this.question.onRenderedTableResetCallback=function(){t.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()},t.updateStateOnCallback()},this.question.renderedTable.renderedRowsChangedCallback=function(){t.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.visibleRowsChangedCallback=function(){},this.question.onRenderedTableResetCallback=function(){},this.question.renderedTable.renderedRowsChangedCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this,t=this.renderHeader(),r=this.renderFooter(),n=this.renderRows(),i=this.question.showHorizontalScroll?{overflowX:"scroll"}:{};return o.createElement("div",{style:i,ref:function(t){return e.setControl(t)}},o.createElement("table",{className:this.question.getTableCss()},t,n,r))},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var t=[],r=e.headerRow.cells,n=0;n<r.length;n++){var i=r[n],s="column"+n,a={};i.width&&(a.width=i.width),i.minWidth&&(a.minWidth=i.minWidth);var l=this.renderCellContent(i,"column-header",{}),u=i.hasTitle?o.createElement("th",{className:i.className,key:s,style:a}," ",l," "):o.createElement("td",{className:i.className,key:s,style:a});t.push(u)}return o.createElement("thead",null,o.createElement("tr",null,t))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;if(!e.showFooter)return null;var t=this.renderRow("footer",e.footerRow,this.question.cssClasses);return o.createElement("tfoot",null,t)},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],r=this.question.renderedTable.rows,n=0;n<r.length;n++)t.push(this.renderRow(r[n].id,r[n],e));return o.createElement("tbody",null,t)},t.prototype.renderRow=function(e,t,r){for(var n=[],i=t.cells,s=0;s<i.length;s++)n.push(this.renderCell(i[s],s,r));return o.createElement(o.Fragment,{key:"row"+e},o.createElement(p.MatrixRow,{model:t,parentMatrix:this.question},n))},t.prototype.renderCell=function(e,t,r){var n="cell"+t;if(e.hasQuestion)return o.createElement(b,{key:n,cssClasses:r,cell:e,creator:this.creator});var i=e.hasTitle?"row-header":"",s=this.renderCellContent(e,i,r),a=null;return(e.width||e.minWidth)&&(a={},e.width&&(a.width=e.width),e.minWidth&&(a.minWidth=e.minWidth)),o.createElement("td",{className:e.className,key:n,style:a,colSpan:e.colSpans},s)},t.prototype.renderCellContent=function(e,t,r){var n=null,i=null;if((e.width||e.minWidth)&&(i={},e.width&&(i.width=e.width),e.minWidth&&(i.minWidth=e.minWidth)),e.hasTitle){t="row-header";
1var s=this.renderLocString(e.locTitle),a=e.column?o.createElement(v,{column:e.column,question:this.question}):null;n=o.createElement(o.Fragment,null,s,a)}if(e.isDragHandlerCell&&(n=o.createElement(o.Fragment,null,o.createElement(d.SurveyQuestionMatrixDynamicDragDropIcon,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(n=m.ReactElementFactory.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:r,cell:e,model:e.item.getData()})),e.hasPanel&&(n=o.createElement(u.SurveyPanel,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:r,isDisplayMode:this.isDisplayMode,creator:this.creator})),!n)return null;var l=o.createElement(o.Fragment,null,n);return this.wrapCell(e,l,t)},t}(i.SurveyQuestionElementBase),y=function(e){function t(t){return e.call(this,t)||this}return f(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement(c.SurveyActionBar,{model:this.model,handleClick:!1})},t}(i.ReactSurveyElement);m.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-actions-cell",function(e){return o.createElement(y,e)});var v=function(e){function t(t){return e.call(this,t)||this}return f(t,e),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?o.createElement(o.Fragment,null,o.createElement("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(i.ReactSurveyElement),b=function(e){function t(t){return e.call(this,t)||this}return f(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){var t=e.prototype.getQuestion.call(this);return t||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;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.cell.column};this.question.survey.matrixAfterCellRender(this.question,t)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var t=e.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(t||(t={}),this.cell.width&&(t.width=this.cell.width),this.cell.minWidth&&(t.minWidth=this.cell.minWidth)),t},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderQuestion=function(){return this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():s.SurveyQuestion.renderQuestionBody(this.creator,this.question)},t.prototype.renderOtherComment=function(){var e=this.cell.question,t=e.cssClasses||{};return o.createElement(h.SurveyQuestionCommentItem,{question:e,cssClasses:t,otherCss:t.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(a.SurveyQuestionCheckboxItem,{key:e,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return o.createElement(l.SurveyQuestionRadioItem,{key:e,question:this.cell.question,cssClasse
1s:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},t}(s.SurveyQuestionAndErrorsCell)},
1"./src/react/reactquestion_matrixdynamic.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMatrixDynamic",function(){return c}),r.d(t,"SurveyQuestionMatrixDynamicAddButton",function(){return p});var n,o=r("react"),i=r("./src/react/reactquestion_factory.tsx"),s=r("./src/react/reactquestion_matrixdropdownbase.tsx"),a=r("./src/react/element-factory.tsx"),l=r("./src/react/reactquestion_element.tsx"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnRowAddClick=r.handleOnRowAddClick.bind(r),r}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return o.createElement("div",null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var t=this.renderLocString(this.matrix.locEmptyRowsText),r=o.createElement("div",{className:e.emptyRowsText},t),n=this.renderAddRowButton(e,!0);return o.createElement("div",{className:e.emptyRowsSection},r,n)},t.prototype.renderAddRowButton=function(e,t){return void 0===t&&(t=!1),a.ReactElementFactory.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:t})},t}(s.SurveyQuestionMatrixDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("matrixdynamic",function(e){return o.createElement(c,e)});var p=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnRowAddClick=r.handleOnRowAddClick.bind(r),r}return u(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),t=o.createElement("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,o.createElement("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?t:o.createElement("div",{className:this.props.cssClasses.footer},t)},t}(l.ReactSurveyElement);a.ReactElementFactory.Instance.registerElement("sv-matrixdynamic-add-btn",function(e){return o.createElement(p,e)})},
1"./src/react/reactquestion_multipletext.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionMultipleText",function(){return c}),r.d(t,"SurveyMultipleTextItem",function(){return p}),r.d(t,"SurveyMultipleTextItemEditor",function(){return d});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/components/title/title-content.tsx"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){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 o.createElement("table",{className:e.root},o.createElement("tbody",null,r))},t.prototype.renderRow=function(e,t,r){for(var n=[],i=0;i<t.length;i++){var s=t[i];n.push(o.createElement("td",{key:"item"+i,className:this.question.cssClasses.cell},o.createElement(p,{question:this.question,item:s,creator:this.creator,cssClasses:r})))}return o.createElement("tr",{key:"item"+e,className:r.row},n)},t}(i.SurveyQuestionElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,t=this.cssClasses;return o.createElement("label",{className:this.question.getItemLabelCss(e)},o.createElement("span",{className:t.itemTitle},o.createElement(l.TitleContent,{element:e.editor,cssClasses:e.editor.cssClasses})),o.createElement(d,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}),this.renderItemTooltipError(e,t))},t.prototype.renderItemTooltipError=function(e,t){return this.item.editor.isErrorsModeTooltip?o.createElement(s.SurveyElementErrors,{element:e.editor,cssClasses:t,creator:this.creator,location:"tooltip",id:e.editor.id+"_errors"}):null},t}(i.ReactSurveyElement),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u(t,e),t.prototype.renderElement=function(){return o.createElement("div",{className:this.itemCss},this.renderContent())},t}(s.SurveyQuestionAndErrorsWrapped);a.ReactQuestionFactory.Instance.registerQuestion("multipletext",function(e){return o.createElement(c,e)})},
1"./src/react/reactquestion_paneldynamic.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionPanelDynamic",function(){return m}),r.d(t,"SurveyQuestionPanelDynamicItem",function(){return f});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/panel.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/components/action-bar/action-bar.tsx"),u=r("./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx"),c=r("./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx"),p=r("./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx"),d=r("./src/react/element-factory.tsx"),h=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),m=function(e){function t(t){return e.call(this,t)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var t=this;this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=[];if(this.question.isRenderModeList)for(var t=0;t<this.question.panels.length;t++){var r=this.question.panels[t];e.push(o.createElement(f,{key:r.id,element:r,question:this.question,index:t,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator}))}else if(null!=this.question.currentPanel){var r=this.question.currentPanel;e.push(o.createElement(f,{key:this.question.currentIndex,element:r,question:this.question,index:this.question.currentIndex,cssClasses:this.question.cssClasses,isDisplayMode:this.isDisplayMode,creator:this.creator}))}var n=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,i=this.question.isProgressTopShowing?this.renderNavigator():null,s=this.question.isProgressBottomShowing?this.renderNavigator():null,a=this.renderNavigatorV2(),l=this.renderPlaceholder();return o.createElement("div",{className:this.question.cssClasses.root},l,i,e,s,n,a)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)if(this.question.isRangeShowing&&this.question.isProgressTopShowing)return this.renderRange();else return null;var e=this.question.isRangeShowing?this.renderRange():null,t=this.rendrerPrevButton(),r=this.rendrerNextButton(),n=this.renderAddRowButton(),i=this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom;return o.createElement("div",{className:i},o.createElement("div",{style:{clear:"both"}},o.createElement("div",{className:this.question.cssClasses.progressContainer},t,e,r),n,this.renderProgressText()))},t.prototype.renderProgressText=function(){return o.createElement(p.SurveyQuestionPanelDynamicProgressText,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return o.createElement(c.SurveyQuestionPanelDynamicPrevButton,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return o.createElement(u.SurveyQuestionPanelDynamicNextButton,{data:{question:this.question}})},t.prototype.renderRange=function(){return o.createElement("div",{className:this.question.cssClasse
1s.progress},o.createElement("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return d.ReactElementFactory.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(0===this.question.panelCount||this.question.showLegacyNavigation)return null;var e=this.question.isRangeShowing&&!this.question.isProgressTopShowing?this.renderRange():null;return this.question.cssClasses.footer?o.createElement("div",{className:this.question.cssClasses.footer},o.createElement("hr",{className:this.question.cssClasses.separator}),e,o.createElement("div",{className:this.question.cssClasses.footerButtonsContainer},o.createElement(l.SurveyActionBar,{model:this.question.footerToolbar}))):null},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?o.createElement("div",{className:this.question.cssClasses.noEntriesPlaceholder},o.createElement("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(i.SurveyQuestionElementBase),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return h(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var t=e.prototype.render.call(this),r=this.renderButton(),n=this.question.isRenderModeList&&this.index<this.question.panelCount-1?o.createElement("hr",{className:this.question.cssClasses.separator}):null;return o.createElement(o.Fragment,null,o.createElement("div",{className:this.question.getPanelWrapperCss()},t,r),n)},t.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:d.ReactElementFactory.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(s.SurveyPanel);a.ReactQuestionFactory.Instance.registerQuestion("paneldynamic",function(e){return o.createElement(m,e)})},
1"./src/react/reactquestion_radiogroup.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRadiogroup",function(){return p}),r.d(t,"SurveyQuestionRadioItem",function(){return d});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_comment.tsx"),a=r("./src/react/reactquestion_factory.tsx"),l=r("./src/react/reactsurveymodel.tsx"),u=r("./src/react/element-factory.tsx"),c=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),p=function(e){function t(t){return e.call(this,t)||this}return c(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=null;return this.question.showClearButtonInContent&&(r=o.createElement("div",null,o.createElement("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue()},value:this.question.clearButtonCaption}))),o.createElement("fieldset",{className:this.question.getSelectBaseRootCss(),role:"presentation",ref:function(t){return e.setControl(t)}},this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther(t):null,r)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map(function(t,r){return e.renderItem("item_f"+r,t,!1,e.question.cssClasses)})},t.prototype.getColumnedBody=function(e){return o.createElement("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this,r=this.getStateValue();return this.question.columns.map(function(n,i){var s=n.map(function(n,o){return t.renderItem("item"+i+o,n,r,e,""+i+o)});return o.createElement("div",{key:"column"+i,className:t.question.getColumnClass(),role:"presentation"},s)})},t.prototype.getBody=function(e){return this.question.blockedRow?o.createElement("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):o.createElement(o.Fragment,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var r=[],n=this.getStateValue(),o=0;o<t.length;o++){var i=t[o],s=this.renderItem("item"+o,i,n,e,""+o);r.push(s)}return r},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return o.createElement("div",{className:"form-group"},o.createElement(s.SurveyQuestionCommentItem,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,r,n,o){var i=u.ReactElementFactory.Instance.createElement(this.question.itemComponent,{key:e,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:t,textStyle:this.textStyle,index:o,isChecked:r===t.value}),s=this.question.survey,a=null;return s&&(a=l.ReactSurveyElementsWrapper.wrapItemValue(s,i,this.question,t)),null!=a?a:i},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(i.SurveyQuestionElementBase),d=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnChange=r.handleOnChange.bind(r),r}return c(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,r){return!!e.prototype.shouldComponentUpdate.call(this,t,r)&&(!this.question.customWidget||!!this.question.customWidgetData.isNeedRender||!!this.question.customWidget.widgetJson.isDefaultRender||!!this.question.customWidget.widgetJson.render)},t.prototype.handleOnChange=function(e){this.question.renderedValue=this.item.value},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.renderElement=function(){var e=this.hideCaption?"":this.renderLocString(this.item.locText,this.textStyle),t=this.question.getItemClass(this.item),r=this.question.getLabelClass(this.item);this.item.locText;var n=this.question.getControlLabelClass(this.item);return o.createElement("div",{className:t,role:"presentation"},o.createElement("label",{className:r,"aria-label":this.question.getAriaItemLabel(this.item)},o.createElement("input",{"aria-describedby":this.question.ariaDescribedBy,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),onChange:this.handleOnChange}),this.cssClasses.materialDecorator?o.createElement("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?o.createElement("svg",{className:this.cssClasses.itemDecorator},o.createElement("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o.createElement("span",{className:n},e)))},t}(i.ReactSurveyElement);u.ReactElementFactory.Instance.registerElement("survey-radiogroup-item",function(e){return o.createElement(d,e)}),a.ReactQuestionFactory.Instance.registerQuestion("radiogroup",function(e){return o.createElement(p,e)})},
1"./src/react/reactquestion_ranking.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRanking",function(){return u}),r.d(t,"SurveyQuestionRankingItem",function(){return c});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;return o.createElement("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},this.getItems())},t.prototype.getItems=function(){for(var e=this,t=[],r=this.question.rankingChoices,n=this,o=0;o<r.length;o++)!function(o){var i=r[o];t.push(n.renderItem(i,o,function(t){e.question.handleKeydown.call(e.question,t,i)},function(t){t.persist(),e.question.handlePointerDown.call(e.question,t,i,t.currentTarget)},n.question.cssClasses,n.question.getItemClass(i),n.question))}(o);return t},t.prototype.renderItem=function(e,t,r,n,i,s,l){var u=e.value+"-"+t+"-item",p=this.renderLocString(e.locText),d=this.question.getNumberByIndex(t),h=this.question.getItemTabIndex(e),m=o.createElement(c,{key:u,text:p,index:t,indexText:d,itemTabIndex:h,handleKeydown:r,handlePointerDown:n,cssClasses:i,itemClass:s,question:l}),f=this.question.survey,g=null;return f&&(g=a.ReactSurveyElementsWrapper.wrapItemValue(f,m,this.question,e)),null!=g?g:m},t}(i.SurveyQuestionElementBase),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return o.createElement("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,"data-sv-drop-target-ranking-item":this.index},o.createElement("div",{tabIndex:-1,style:{outline:"none"}},o.createElement("div",{className:this.cssClasses.itemGhostNode}),o.createElement("div",{className:this.cssClasses.itemContent},o.createElement("div",{className:this.cssClasses.itemIconContainer},o.createElement("svg",{width:"10",height:"16",viewBox:"0 0 10 16",className:this.question.getIconHoverCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M6 2C6 0.9 6.9 0 8 0C9.1 0 10 0.9 10 2C10 3.1 9.1 4 8 4C6.9 4 6 3.1 6 2ZM2 0C0.9 0 0 0.9 0 2C0 3.1 0.9 4 2 4C3.1 4 4 3.1 4 2C4 0.9 3.1 0 2 0ZM8 6C6.9 6 6 6.9 6 8C6 9.1 6.9 10 8 10C9.1 10 10 9.1 10 8C10 6.9 9.1 6 8 6ZM2 6C0.9 6 0 6.9 0 8C0 9.1 0.9 10 2 10C3.1 10 4 9.1 4 8C4 6.9 3.1 6 2 6ZM8 12C6.9 12 6 12.9 6 14C6 15.1 6.9 16 8 16C9.1 16 10 15.1 10 14C10 12.9 9.1 12 8 12ZM2 12C0.9 12 0 12.9 0 14C0 15.1 0.9 16 2 16C3.1 16 4 15.1 4 14C4 12.9 3.1 12 2 12Z"})),o.createElement("svg",{width:"10",height:"24",viewBox:"0 0 10 24",className:this.question.getIconFocusCss(),xmlns:"http://www.w3.org/2000/svg"},o.createElement("path",{d:"M10 5L5 0L0 5H4V9H6V5H10Z"}),o.createElement("path",{d:"M6 19V15H4V19H0L5 24L10 19H6Z"}
1))),o.createElement("div",{className:this.cssClasses.itemIndex},this.indexText),o.createElement("div",{className:this.cssClasses.controlLabel},this.text))))},t}(i.ReactSurveyElement);s.ReactQuestionFactory.Instance.registerQuestion("ranking",function(e){return o.createElement(u,e)})},
1"./src/react/reactquestion_rating.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionRating",function(){return l});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.handleOnClick=r.handleOnClick.bind(r),r}return a(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,n=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return o.createElement("div",{className:this.question.ratingRootCss,ref:function(t){return e.setControl(t)}},o.createElement("fieldset",{role:"radiogroup"},o.createElement("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?o.createElement("span",{className:t.minText},r):null,this.question.renderedRateItems.map(function(r,n){return e.renderItem("value"+n,r,n,t)}),this.question.hasMaxLabel?o.createElement("span",{className:t.maxText},n):null))},t.prototype.renderItem=function(e,t,r,n){var i=this.renderLocString(t.locText);return o.createElement("label",{key:e,className:this.question.getItemClass(t.itemValue)},o.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.name,id:this.question.getInputId(r),value:t.value,disabled:this.isDisplayMode,checked:this.question.value==t.value,onClick:this.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy}),o.createElement("span",{className:n.itemText},i))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("rating",function(e){return o.createElement(l,e)})},
1"./src/react/reactquestion_tagbox.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionTagbox",function(){return c});var n,o=r("react"),i=r("./src/react/reactquestion_factory.tsx"),s=r("./src/react/dropdown-base.tsx"),a=r("./src/react/tagbox-item.tsx"),l=r("./src/react/tagbox-filter.tsx"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e){function t(t){return e.call(this,t)||this}return u(t,e),t.prototype.renderItem=function(e,t){return o.createElement(a.SurveyQuestionTagboxItem,{key:e,question:this.question,item:t})},t.prototype.renderInput=function(e){var t=this,r=this.question.selectedChoices.map(function(e,r){return t.renderItem("item"+r,e)});return o.createElement("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.inputReadOnly?void 0:0,onClick:this.click,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy},o.createElement("div",{className:this.question.cssClasses.controlValue},r,o.createElement(l.TagboxFilterString,{model:e,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,r=this.renderSelect(e);return o.createElement("div",{className:this.question.renderCssRoot},r,t)},t}(s.SurveyQuestionDropdownBase);i.ReactQuestionFactory.Instance.registerQuestion("tagbox",function(e){return o.createElement(c,e)})},
1"./src/react/reactquestion_text.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionText",function(){return l});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.renderInput=function(){var e=this,t=this.question.getControlClass(),r=this.question.renderedPlaceholder;return this.question.isReadOnlyRenderDiv()?o.createElement("div",null,this.question.value):o.createElement("input",{id:this.question.inputId,disabled:this.isDisplayMode,className:t,type:this.question.inputType,ref:function(t){return e.setControl(t)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:r,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:this.question.onBlur,onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:this.question.onCompositionUpdate,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-describedby":this.question.ariaDescribedBy})},t.prototype.renderElement=function(){return this.question.dataListId?o.createElement("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(0==e.length)return null;for(var t=[],r=0;r<e.length;r++)t.push(o.createElement("option",{key:"item"+r,value:e[r]}));return o.createElement("datalist",{id:this.question.dataListId},t)},t}(i.SurveyQuestionUncontrolledElement);s.ReactQuestionFactory.Instance.registerQuestion("text",function(e){return o.createElement(l,e)})},
1"./src/react/reactsurveymodel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"ReactSurveyElementsWrapper",function(){return i});var n=r("./src/entries/core.ts"),o=r("./src/react/element-factory.tsx"),i=function(){function e(){}return e.wrapRow=function(e,t,r){var n=e.getRowWrapperComponentName(r),i=e.getRowWrapperComponentData(r);return o.ReactElementFactory.Instance.createElement(n,{element:t,row:r,componentData:i})},e.wrapElement=function(e,t,r){var n=e.getElementWrapperComponentName(r),i=e.getElementWrapperComponentData(r);return o.ReactElementFactory.Instance.createElement(n,{element:t,question:r,componentData:i})},e.wrapQuestionContent=function(e,t,r){var n=e.getQuestionContentWrapperComponentName(r),i=e.getElementWrapperComponentData(r);return o.ReactElementFactory.Instance.createElement(n,{element:t,question:r,componentData:i})},e.wrapItemValue=function(e,t,r,n){var i=e.getItemValueWrapperComponentName(n,r),s=e.getItemValueWrapperComponentData(n,r);return o.ReactElementFactory.Instance.createElement(i,{key:null==t?void 0:t.key,element:t,question:r,item:n,componentData:s})},e.wrapMatrixCell=function(e,t,r,n){void 0===n&&(n="cell");var i=e.getElementWrapperComponentName(r,n),s=e.getElementWrapperComponentData(r,n);return o.ReactElementFactory.Instance.createElement(i,{element:t,cell:r,componentData:s})},e}();n.SurveyModel.platform="react"},
1"./src/react/reacttimerpanel.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyTimerPanel",function(){return l});var n,o=r("react"),i=r("./src/react/components/svg-icon/svg-icon.tsx"),s=r("./src/react/reactquestion_element.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){var r=e.call(this,t)||this;return r.circleLength=440,r}return a(t,e),t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.timerModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=o.createElement("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},r=this.timerModel.showProgress?o.createElement(i.SvgIcon,{className:this.timerModel.getProgressCss(),style:t,iconName:"icon-timercircle",size:"auto"}):null;e=o.createElement("div",{className:this.timerModel.rootCss},r,o.createElement("div",{className:this.timerModel.textContainerCss},o.createElement("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?o.createElement("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(s.ReactSurveyElement)},
1"./src/react/row.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyRow",function(){return u});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/element-factory.tsx"),a=r("./src/react/reactsurveymodel.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.rootRef=o.createRef(),r.recalculateCss(),r}return l(t,e),t.prototype.recalculateCss=function(){this.row.visibleElements.map(function(e){return e.cssClasses})},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator&&this.row.visible},t.prototype.renderElementContent=function(){var e=this,t=this.row.visibleElements.map(function(t,r){var n=e.createElement(t,r),i=t.cssClassesValue;return o.createElement("div",{className:i.questionWrapper,style:t.rootStyle,"data-key":n.key,key:n.key,onFocus:t.focusIn},e.row.isNeedRender?n:s.ReactElementFactory.Instance.createElement(t.skeletonComponentName,{element:t,css:e.css}))});return o.createElement("div",{ref:this.rootRef,className:this.row.getRowCss()},t)},t.prototype.renderElement=function(){var e=this.survey,t=this.renderElementContent();return a.ReactSurveyElementsWrapper.wrapRow(e,t,this.row)||t},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);var r=this.rootRef.current;r&&!this.row.isNeedRender&&setTimeout(function(){t.row.startLazyRendering(r)},10)},t.prototype.shouldComponentUpdate=function(t,r){return!!e.prototype.shouldComponentUpdate.call(this,t,r)&&(t.row!==this.row&&(t.row.isNeedRender=this.row.isNeedRender,this.stopLazyRendering()),this.recalculateCss(),!0)},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.stopLazyRendering()},t.prototype.createElement=function(e,t){var r=e.getType();return s.ReactElementFactory.Instance.isElementRegistered(r)||(r="question"),s.ReactElementFactory.Instance.createElement(r,{key:e.name+(t?"-"+t:0),element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(i.SurveyElementBase)},
1"./src/react/signaturepad.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionSignaturePad",function(){return u});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/components/svg-icon/svg-icon.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.state={value:r.question.value},r}return l(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,r=this.renderCleanButton();return o.createElement("div",{className:t.root,ref:function(t){return e.setControl(t)},style:{height:this.question.signatureHeight,width:this.question.signatureWidth}},o.createElement("div",{className:t.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.question.placeHolderText),o.createElement("div",null,o.createElement("canvas",{tabIndex:0})),r)},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var t=this.question.cssClasses;return o.createElement("div",{className:t.controls},o.createElement("button",{type:"button",className:t.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue()}},this.question.cssClasses.clearButtonIconId?o.createElement(a.SvgIcon,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):o.createElement("span",null,"✖")))},t}(i.SurveyQuestionElementBase);s.ReactQuestionFactory.Instance.registerQuestion("signaturepad",function(e){return o.createElement(u,e)})},
1"./src/react/string-editor.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyLocStringEditor",function(){return u});var n,o=r("react"),i=r.n(o),s=r("./src/entries/core.ts"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.onInput=function(e){r.locStr.text=e.target.innerText},r.onClick=function(e){e.preventDefault(),e.stopPropagation()},r.state={changed:0},r}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return i.a.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.editableRenderer,function(e){return i.a.createElement(u,e)})},
1"./src/react/string-viewer.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyLocStringViewer",function(){return u});var n,o=r("react"),i=r.n(o),s=r("./src/entries/core.ts"),a=r("./src/react/element-factory.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){var r=e.call(this,t)||this;return r.onChangedHandler=function(e,t){r.isRendering||r.setState({changed:r.state&&r.state.changed?r.state.changed+1:1})},r.rootRef=i.a.createRef(),r}return l(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,t){e.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style,dangerouslySetInnerHTML:e})}return i.a.createElement("span",{ref:this.rootRef,className:"sv-string-viewer",style:this.style},this.locStr.renderedHtml)},t}(i.a.Component);a.ReactElementFactory.Instance.registerElement(s.LocalizableString.defaultRenderer,function(e){return i.a.createElement(u,e)})},
1"./src/react/tagbox-filter.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"TagboxFilterString",function(){return u});var n,o=r("react"),i=r("./src/entries/core.ts"),s=r("./src/react/reactquestion_factory.tsx"),a=r("./src/react/reactquestion_element.tsx"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e){function t(t){return e.call(this,t)||this}return l(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,r){e.prototype.componentDidUpdate.call(this,t,r),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.model.filterString;i.Helpers.isTwoValueEquals(t,e.value)||(e.value=this.model.filterString)}},t.prototype.onChange=function(e){e.target===document.activeElement&&(this.model.filterString=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.model.onBlur(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return o.createElement("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(t){return e.inputElement=t},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:!this.model.searchEnabled||void 0,size:this.model.filterString?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-label":this.question.placeholder,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(t){e.keyhandler(t)},onChange:function(t){e.onChange(t)},onBlur:function(t){e.onBlur(t)}})},t}(a.SurveyElementBase);s.ReactQuestionFactory.Instance.registerQuestion("sv-tagbox-filter",function(e){return o.createElement(u,e)})},
1"./src/react/tagbox-item.tsx":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyQuestionTagboxItem",function(){return l});var n,o=r("react"),i=r("./src/react/reactquestion_element.tsx"),s=r("./src/react/components/svg-icon/svg-icon.tsx"),a=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),l=function(e){function t(t){return e.call(this,t)||this}return a(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this,t=this.renderLocString(this.item.locText);return o.createElement("div",{className:"sv-tagbox__item"},o.createElement("div",{className:"sv-tagbox__item-text"},t),o.createElement("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(t){e.question.dropdownListModel.deselectItem(e.item.value),t.stopPropagation()}},o.createElement(s.SvgIcon,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(i.ReactSurveyElement)},
1"./src/rendererFactory.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"RendererFactory",function(){return n});var n=function(){function e(){this.renderersHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t]},e.prototype.registerRenderer=function(e,t,r){this.renderersHash[e]||(this.renderersHash[e]={}),this.renderersHash[e][t]=r},e.prototype.getRenderer=function(e,t){return this.renderersHash[e]&&this.renderersHash[e][t]||"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.prototype.clear=function(){this.renderersHash={}},e.Instance=new e,e}()},
1"./src/settings.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"settings",function(){return n});var n={comparator:{trimStrings:!0,caseSensitive:!1},expressionDisableConversionChar:"#",useLocalTimeZone:!0,commentPrefix:"-Comment",webserviceEncodeParameters:!0,useCachingForChoicesRestful:!0,get useCachingForChoicesRestfull(){return n.useCachingForChoicesRestful},set useCachingForChoicesRestfull(val){n.useCachingForChoicesRestful=val},surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey",itemValueSeparator:"|",itemValueAlwaysSerializeAsObject:!1,itemValueAlwaysSerializeText:!1,defaultLocaleName:"default",storeDuplicatedTranslations:!1,matrixDefaultRowName:"default",matrixDefaultCellType:"dropdown",matrixTotalValuePostFix:"-total",matrixMaximumRowCount:1e3,matrixMaxRowCountInCondition:1,matrixRenderRemoveAsIcon:!0,panelMaximumPanelCount:100,ratingMaximumRateValueCount:20,disableOnGettingChoicesFromWeb:!1,serializeLocalizableStringAsObject:!1,allowShowEmptyTitleInDesignMode:!0,allowShowEmptyDescriptionInDesignMode:!0,executeCompleteTriggerOnValueChanged:!1,changeNavigationButtonsOnCompleteTrigger:!0,executeSkipTriggerOnValueChanged:!0,readOnlyCommentRenderMode:"textarea",readOnlyTextRenderMode:"input",confirmActionFunc:function(e){return confirm(e)},minWidth:"300px",maxWidth:"100%",maximumConditionRunCountOnValueChanged:10,setQuestionVisibleIndexForHiddenTitle:!1,setQuestionVisibleIndexForHiddenNumber:!1,lazyRowsRendering:!1,lazyRowsRenderingStartRow:3,showItemsInOrder:"default",selectNoneItemValue:"none",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime","datetime-local","email","month","number","password","range","tel","text","time","url","week"],dataList:["name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]}}},
1"./src/stylesmanager.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"StylesManager",function(){return o});var n=r("./src/defaultCss/cssstandard.ts"),o=function(){function e(){this.sheet=null,e.Enabled&&(this.sheet=e.findSheet(e.SurveyJSStylesSheetId),this.sheet||(this.sheet=e.createSheet(e.SurveyJSStylesSheetId),this.initializeStyles(this.sheet)))}return e.findSheet=function(e){if("undefined"==typeof document)return null;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){if(void 0===t&&(t="default"),void 0===r&&(r=".sv_main"),"modern"===t&&(r=".sv-root-modern "),"defaultV2"===t){n.surveyCss.currentType=t;return}if(-1!==["bootstrap","bootstrapmaterial","modern"].indexOf(t)?(o=e[t+"ThemeCss"],n.surveyCss.currentType=t):(o=e.ThemeCss,n.surveyCss.currentType="standard"),e.Enabled){var o,i=(t+r).trim(),s=e.findSheet(i);if(!s){s=e.createSheet(i);var a=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(o).forEach(function(e){var t=o[e];Object.keys(a).forEach(function(e){return t=t.replace(RegExp("\\"+e,"g"),a[e])});try{0===e.indexOf("body")?s.insertRule(e+" { "+t+" }",0):s.insertRule(r+e+" { "+t+" }",0)}catch(e){}})}}},e.prototype.initializeStyles=function(t){e.Enabled&&(Object.keys(e.Styles).forEach(function(r){try{t.insertRule(r+" { "+e.Styles[r]+" }",0)}catch(e){}}),Object.keys(e.Media).forEach(function(r){try{t.insertRule(e.Media[r].media+" { "+r+" { "+e.Media[r].style+" } }",0)}catch(e){}}))},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={".sv_main span":"word-break: break-word;",".sv_main legend":"border: none; margin: 0;",".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_bootstrap_css .sv-paneldynamic__progress-container ":"position: relative; margin-right: 250px; margin-left: 40px; margin-top: 10px;",".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; min-width:300px;",".sv_row .sv_qstn":"float: left",".sv_row .sv_qstn:last-child":"float: none",".sv_qstn":"display: vertical-align: top; overflow: auto; min-width:300px;",".sv_p_container":"display: vertical-align: top; min-width:300px;",".sv_q_title .sv_question_icon":"float: right; margin-right: 1em;",".sv_q_title .sv_question_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_q_title .sv_question_icon.sv_expanded::before":"transform: rotate(180deg);",".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 > label img":"pointer-events: none;",".sv_qstn .sv_q_imgsel.sv_q_imagepicker_inline":"display: inline-block;",".sv_qstn label.sv_q_m_label":"position: absolute; margin: 0; display: block; width: 100%;",".sv_qstn td":"position: relative;",".sv_q_mt":"table-layout: fixed;",".sv_q_mt_label":"display: flex; align-items: center; font-weight: inherit;",".sv_q_mt_title":"margin-right: 0.5em; width: 33%;",".sv_q_mt_item":"flex: 1;",".sv_q_mt_item_value":"float: left;",'[dir="rtl"] .sv_q_mt_item_value':"float: right;",".sv_qstn.sv_qstn_left":"margin-top: 0.75em;",".sv_qstn .title-left":"float: left; margin-right: 1em; max-width: 50%",'[dir="rtl"] .sv_qstn .title-left':"float: right; margin-left: 1em;",".sv_qstn .content-left":"overflow: hidden",".sv_q_radiogroup_inline .
1sv_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, .sv_q_title_expandable":"cursor: pointer; position: relative; display: flex; align-items: center; padding-right: 24px;",".sv_p_title_expandable::after, .sv_q_title_expandable::after":"content: \"\"; display: block;background-image: url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A\"); background-repeat: no-repeat; background-position: center center; background-size: 10px 12px; width: 24px; height: 24px; position: absolute; right: 0;",".sv_p_title_expanded::after, .sv_q_title_expanded::after":"transform: rotate(180deg);",".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_p_footer":"padding-left: 1em; padding-bottom: 1em;padding-top: 1em;",".sv_matrix_cell_detail_button":"position: relative",".sv_detail_panel_icon":"display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px;",".sv_detail_panel_icon::before":"content: ''; background-repeat: no-repeat; background-position: center; width: 14px; height: 14px; display: block; transform: rotate(270deg); background-image: url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 15 15' style='enable-background:new 0 0 15 15;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23FFFFFF;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='14,5.5 12.6,4.1 7.5,9.1 2.4,4.1 1,5.5 7.5,12 '/%3E%3C/svg%3E%0A\");",".sv_detail_panel_icon.sv_detail_expanded::before":"transform: rotate(0deg)",".sv_matrix_empty_rows_section":"text-align: center; vertical-align: middle;",".sv_matrix_empty_rows_text":"padding:20px",".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_q_dd_clean-button":"margin: 0.15em 3em;",".sv_q_dd_clean-button-svg":"width: 1em; height: 1em;",".sv_q_dd_control":"display: flex; justify-content: space-between; appearance: none;",".sv_q_dd_value":"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative;",".sv_q_dd_root":"position: relative;",".sv_q_dd_select_wrapper::after":"content: \"\"; display: block;background-image: url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A\"); background-repeat: no-repeat; background-position: center center; background-size: 10px 12px; width: 34px; height: 100%; position: absolute; inset-inline-end: 0; top: 0;
1",".sv_q_dd_filter-string-input":"outline: none; border: none; background-color: transparent; position: absolute; inset-inline-start: 0;",".sv_q_dropdown_clean-button":"margin: auto 2em;",".sv_q_tagbox__placeholder":"position: absolute; top: 0; inset-inline-start: 1em; max-width: 100%; width: auto; height: 100%; text-align: start; cursor: text; pointer-events: none;",".sv_qstn .sv-q-col-1, .sv-question .sv-q-col-1":"width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-2, .sv-question .sv-q-col-2":"width: calc(50% - 1em); display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-3, .sv-question .sv-q-col-3":"width: calc(33.33333% - 1em); display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-4, .sv-question .sv-q-col-4":"width: calc(25% - 1em); display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-col-5, .sv-question .sv-q-col-5":"width: calc(20% - 1em); display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-1, .sv-question .sv-q-column-1":"width: 100%; max-width: 100%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-2, .sv-question .sv-q-column-2":"max-width: 50%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-3, .sv-question .sv-q-column-3":"max-width: 33.33333%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-4, .sv-question .sv-q-column-4":"max-width: 25%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".sv_qstn .sv-q-column-5, .sv-question .sv-q-column-5":"max-width: 20%; display: inline-block; padding-right: 1em; box-sizing: border-box; word-break: break-word;",".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;","f-panel":"padding: 0.5em 1em; display: inline-block; line-height: 2em;",".sv_progress_bar > span":"white-space: nowrap;",".sv_progress-buttons__container-center":"text-align: center;",".sv_progress-buttons__container":"display: inline-block; font-size: 0; width: 100%; max-width: 1100px; white-space: nowrap; overflow: hidden;",".sv_progress-buttons__image-button-left":"display: inline-block; vertical-align: top; margin-top: 22px; font-size: 14px; width: 16px; height: 16px; cursor: pointer; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iMTEsMTIgOSwxNCAzLDggOSwyIDExLDQgNyw4ICIvPg0KPC9zdmc+DQo=);",".sv_progress-buttons__image-button-right":"display: inline-block; vertical-align: top; margin-top: 22px; font-size: 14px; width: 16px; height: 16px; cursor: pointer; background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAyMi4wLjEsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAxNiAxNiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTYgMTY7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxwb2x5Z29uIHBvaW50cz0iNSw0IDcsMiAxMyw4IDcsMTQgNSwxMiA5LDggIi8+DQo8L3N2Zz4NCg==);",".sv_progress-buttons__image-button--hidden":"visibility: hidden;",".sv_progress-buttons__list-container":"max-width: calc(100% - 36px); display: inline-block; overflow: hidden;",".sv_progress-buttons__list":"display: inline-block; width: max-content; padding-left: 28px; padding-right: 28px; margin-top: 14px; margin-bottom: 14px;",".sv_progress-buttons__list li":"width: 138px; font-size: 14px; font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; position: relative; text-align: center; vertical-align: top; display: inline-block;",".sv_progress-buttons__list li:before":"width: 24px; height: 24px; content: ''; line-height: 30px; display: block; margin: 0 auto 10px auto; border: 3px solid; border-radius: 50%; box-sizing: content-box; cursor: pointer;",".sv_progress-buttons__list li:after":"width: 73%; height: 3px; content: ''; position: absolute; top: 15px; left: -36.5%;",".sv_progress-buttons__list li:first-child:after":"content: none;",".sv_progress-buttons__list .sv_progress-buttons__page-title":"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: bold;",".sv_progress-buttons__list .sv_progress-buttons__page-description":"width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--nonclickable:before":"cursor: n
1ot-allowed;",".sv-ranking":"outline: none; user-select: none;",".sv-ranking-item":"cursor: pointer; position: relative;",".sv-ranking-item:focus .sv-ranking-item__icon--hover":"visibility: hidden;",".sv-ranking-item:hover .sv-ranking-item__icon--hover":"visibility: visible;",".sv-question--disabled .sv-ranking-item:hover .sv-ranking-item__icon--hover":"visibility: hidden;",".sv-ranking-item:focus":"outline: none;",".sv-ranking-item:focus .sv-ranking-item__icon--focus":"visibility: visible; top: 15px;",".sv-ranking-item:focus .sv-ranking-item__index":"background: white; border: 2px solid var(--primary, #19b394);",".sv-ranking-item__content":"display: flex; align-items: center; line-height: 1em; padding: 5px 0px; border-radius: 100px;",".sv-ranking-item__icon-container":"left: 0;top: 0;bottom: 0;width: calc(3 * var(--base-unit, 8px)); flex-shrink: 0;",".sv-ranking-item__icon":"visibility: hidden;top:20px; fill: var(--primary, #19b394); position: absolute;",".sv-ranking-item__index":"display: flex; flex-shrink: 0; align-items: center; justify-content: center; background: var(--primary-light, rgba(25, 179, 148, 0.1)); color: var(--foreground); border-radius: 100%; border:2px solid transparent; width: 40px; height: 40px; line-height: 1em;",".sv-ranking-item__text":"display: inline-block; overflow:hidden; text-overflow: ellipsis; white-space: nowrap; margin: 0 calc(2 * var(--base-unit, 8px));",".sv-ranking-item__ghost":"display: none; background-color: var(--background-dim, #f3f3f3); border-radius: 100px;width: 200px;height: 55px;z-index: 1;position: absolute;left: 25px;","[dir='rtl'] .sv-ranking-item__ghost":"left: initilal; right: 25px;",".sv-ranking-item--ghost .sv-ranking-item__ghost":"display: block;",".sv-ranking-item--ghost .sv-ranking-item__content":"visibility: hidden;",".sv-ranking-item--drag .sv-ranking-item__content":"box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);border-radius: 100px;",".sv-ranking--drag .sv-ranking-item:hover .sv-ranking-item__icon":"visibility: hidden;",".sv-ranking-item--drag .sv-ranking-item__icon--hover":"visibility: visible;",".sv-ranking--mobile .sv-ranking-item__icon--hover":"visibility:visible; fill:#9f9f9f;",".sv-ranking--mobile.sv-ranking--drag .sv-ranking-item--ghost .sv-ranking-item__icon.sv-ranking-item__icon--hover":"visibility:hidden;",".sv-ranking--mobile.sv-ranking-shortcut":"max-width: 80%;",".sv-ranking--design-mode .sv-ranking-item:hover .sv-ranking-item__icon":"visibility: hidden;",".sv-ranking--disabled":"opacity: 0.8;",".sv-ranking-shortcut .sv-ranking-item__icon":"fill: var(--primary, #19b394); ",".sv-dragged-element-shortcut":"height: 24px; min-width: 100px; border-radius: 36px; background-color: white; padding: 16px; cursor: grabbing; position: absolute; z-index: 1000; box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1); font-family: 'Open Sans'; font-size: 16px; padding-left: 20px;line-height: 24px;",".sv-matrixdynamic__drag-icon":"padding-top:14px",".sv-matrixdynamic__drag-icon:after":"content: ' '; display: block; height: 6px; width: 20px; border: 1px solid #e7e7e7; box-sizing: border-box; border-radius: 10px; cursor: move; margin-top: 12px;",".sv-matrix-row--drag-drop-ghost-mod td":"background-color: #f3f3f3;",".sv-matrix-row--drag-drop-ghost-mod td > *":"visibility: hidden",".sv_qstn .sv_q_select_column":"display: inline-block; vertical-align: top; min-width: 10%;",".sv_qstn .sv_q_select_column > *:not(.sv_technical)":"display: block;",".sv_main .sv_container .sv_body .sv_p_root .sv_qstn .sv_q_select_column textarea":"margin-left: 0; padding-left: 0; line-height: initial;",".sv_main .sv-hidden":"display: none !important;",".sv_main .sv-visuallyhidden":"position: absolute; height: 1px !important; width: 1px !important; overflow: hidden; clip: rect(1px 1px 1px 1px); clip: rect(1px, 1px, 1px, 1px);",".sv_main .sv-progress":"height: 0.19em; background-color: $header-background-color; position: relative;",".sv_main .sv-progress__bar":"background-color: $main-color; height: 100%; position: relative;",".sv_main .sv-paneldynamic__progress-container":"position: relative; display: inline-block; width: calc(100% - 250px); margin-top: 20px;",".sv_main .sv-paneldynamic__add-btn":"float: right;",".sv_main .sv-paneldynamic__add-btn--list-mode":"float: none; margin-top: 0;",".sv_main .sv-paneldynamic__remove-btn":"margin-top: 1.25em;",".sv_main .sv-paneldynamic__remove-btn--right":"margin-top: 0; margin-left: 1.25em;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"box-sizing: border-box; display: inline-block; cursor: pointer; width: 0.7em; top: -0.28em; position: absolute;",".sv_main .sv-paneldynamic__prev-btn svg, .sv_main .sv-paneldynamic__next-btn svg":"width: 0.7em; height: 0.7em; display: block;",".sv_main .sv-paneldynamic__prev-btn":"left: -1.3em; transform: rotate(90deg);",".sv_main .sv-paneldynamic__next-btn ":"right: -1.3em; transform: rotate(270deg);",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"cursor: auto;",".sv_main .sv-paneldynamic__progress-text":"font-weight: bold; font-size: 0.87em; margin-top: 0.69em; margin-left: 4em",".sv_main .sv-boolean__switch":"display: inline-block; box-sizing: border-box; width: 63px; height: 24px; margin-right: 17px; margin-left: 21px; padding: 2px 3px; vertical-align: middle; border-radius: 12px; cursor: pointer;",".sv_main .sv-boolean__slider":"display: inline-block;
1 width: 20px; height: 20px; transition-duration: .4s; transition-property: margin-left; border: none; border-radius: 100%;",".sv_main .sv-boolean__label":"vertical-align: middle; cursor: pointer;",".sv_main .sv-boolean--indeterminate  .sv-boolean__slider":"margin-left: calc(50% - 10px);",".sv_main .sv-boolean input:focus ~ .sv-boolean__switch":"outline-width: 1px; outline-style: solid; outline-offset: 1px;",".sv_main .sv-boolean--checked  .sv-boolean__slider":"margin-left: calc(100% - 20px);","[dir='rtl'] .sv-boolean__label ":"float: right;","[dir='rtl'] .sv-boolean--indeterminate .sv-boolean__slider":"margin-right: calc(50% - 0.625em);","[dir='rtl'] .sv-boolean--checked .sv-boolean__slider":"margin-right: calc(100% - 1.25em);","[dir='rtl'] .sv-boolean__switch":"float: right;","[style*='direction:rtl'] .sv-boolean__label ":"float: right;","[style*='direction:rtl'] .sv-boolean--indeterminate .sv-boolean__slider":"margin-right: calc(50% - 0.625em);","[style*='direction:rtl'] .sv-boolean--checked .sv-boolean__slider":"margin-right: calc(100% - 1.25em);","[style*='direction:rtl'] .sv-boolean__switch":"float: right;",".sv_main .sv_q_num":"",".sv_main .sv_q_num + span":"",".sv_main .sjs_sp_container":"position: relative; box-sizing: content-box;",".sv_main .sjs_sp_controls":"position: absolute; left: 0; bottom: 0;",".sv_main .sjs_sp_controls > button":"user-select: none;",".sv_main .sjs_sp_container>div>canvas:focus":"outline: none;",".sv_main .sjs_sp_placeholder":"display: flex;  align-items: center; justify-content: center; position: absolute; z-index: 0; user-select: none; pointer-events: none; width: 100%; height: 100%;",".sv_main .sv_logo":"",".sv_main .sv-logo--left":"display: inline-block; vertical-align: top; margin-right: 2em;",".sv_main .sv-logo--right":"display: inline-block; vertical-align: top; margin-left: 2em; ",".sv_main .sv-logo--top":"display: block; width: 100%; text-align: center;",".sv_main .sv-logo--bottom":"display: block; width: 100%; text-align: center;",".sv_main .sv_header__text":"display: inline-block; vertical-align: top; max-width: 100%; width: 100%",".sv_main .sv-expand-action:before":"content: \"\"; display: inline-block; background-image: url(\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 21.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 10 10' style='enable-background:new 0 0 10 10;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%23404040;%7D%0A%3C/style%3E%3Cpolygon class='st0' points='2,2 0,4 5,9 10,4 8,2 5,5 '/%3E%3C/svg%3E%0A\"); background-repeat: no-repeat; background-position: center center; height: 10px; width: 12px; margin: auto 8px;",".sv_main .sv-expand-action--expanded:before":"transform: rotate(180deg);",".sv_main .sv-action-bar":"display: flex; position: relative; align-items: center; margin-left: auto; padding: 0 0 0 16px; overflow: hidden; white-space: nowrap;",".sv_main .sv-action-bar-separator":"display: inline-block; width: 1px; height: 24px; vertical-align: middle; margin-right: 16px; background-color: #d6d6d6;",".sv_main .sv-action-bar-item":"-webkit-appearance: none; -moz-appearance: none; appearance: none; display: flex; height: 40px; padding: 8px; box-sizing: border-box; margin-right: 16px; border: none; border-radius: 2px; background-color: transparent; cursor: pointer; line-height: 24px; font-size: 16px; overflow-x: hidden; white-space: nowrap; min-width: auto; font-weight: normal",".sv_main .sv-action-bar-item__title":"vertical-align: middle; white-space: nowrap;",".sv_main .sv-action-bar-item__title--with-icon":"margin-left: 8px;",".sv_main .sv-action__content":"display: flex; flex-direction: row; align-items: center;",".sv_main .sv-action__content > *":"flex: 0 0 auto;",".sv_main .sv-action--hidden":"width: 0px; height: 0px; overflow: hidden;",".sv_main .sv-action-bar-item__icon svg":"display: block;",".sv_main .sv-action-bar-item:active":"opacity: 0.5;",".sv_main .sv-action-bar-item:focus":"outline: none;",".sv_main .sv-title-actions":"display: flex; align-items: center; width: 100%;",".sv_main .sv-title-actions__title":"flex-wrap: wrap; max-width: 90%; min-width: 50%;",".sv_main .sv-title-actions__bar":"min-width: 56px;",".sv_main .sv-title-actions .sv-title-actions__title":"min-width: unset; max-width: unset; flex-wrap: wrap; flex: 0 0 auto;",".sv_main .sv-title-actions .sv-action-title-bar":"min-width: unset; flex: 1 1 auto; justify-content: flex-end;",".sv_main .sv_matrix_cell_actions .sv-action-bar":"margin-left: 0; padding-left: 0;",".sv_main .sv_p_wrapper_in_row":"display: flex; flex-direction: row; align-items: center;
1",".sv_main  .sv_p_remove_btn_right":"margin-left: 1em;",".sv_main .sv-button-group":"display: flex; align-items: center; flex-direction: row; font-size: 16px; height: 48px; overflow: auto;",".sv_main .sv-button-group__item":"display: flex; box-sizing: border-box; flex-direction: row; justify-content: center; align-items: center; width: 100%; padding: 11px 16px; line-height: 24px; border-width: 1px; border-style: solid; outline: none; font-size: 16px; font-weight: 400; cursor: pointer; overflow: hidden;",".sv_main .sv-button-group__item:not(:first-of-type)":"margin-left: -1px;",".sv_main .sv-button-group__item-icon":"display: block; height: 24px;",".sv_main .sv-button-group__item--selected":"font-weight: 600;",".sv_main .sv-button-group__item-decorator":"display: flex; align-items: center; max-width: 100%;",".sv_main  .sv-button-group__item-icon + .sv-button-group__item-caption":"margin-left: 8px",".sv_main .sv-button-group__item-caption":"display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv_main .sv-button-group__item--disabled":"color: cursor: default;","sv-popup":"display: block; position: absolute; z-index: -1;",".sv-popup":"position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; outline: none; z-index: 1500;",".sv-popup__container":"box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1); position: absolute; padding: 0;",".sv-popup__body-content":"background-color: var(--background, #fff); border-radius: calc(0.5 * var(--base-unit, 8px)); width: 100%; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; max-height: 90vh; max-width: 90vw;",".sv-popup--modal .sv-list__filter":"padding-top: 8px;",".sv-popup--modal .sv-list__filter-icon":"top: 20px;",".sv-popup--overlay .sv-list__filter":"padding-top: 8px;",".sv-popup--overlay .sv-list__filter-icon":"top: 20px;",".sv-popup--modal":"display: flex; align-items: center; justify-content: center;",".sv-popup--modal .sv-popup__container":"position: static;",".sv-popup--modal .sv-popup__body-content":"padding: calc(4 * var(--base-unit, 8px));",".sv-popup--overlay":"width: 100%;",".sv-popup--overlay .sv-popup__container":"background: rgba(144, 144, 144, 0.5); max-width: 100vw; max-height: calc(100vh - 1 * var(--base-unit, 8px)); height: calc(100vh - 1 * var(--base-unit, 8px)); width: 100%; padding-top: calc(2 * var(--base-unit, 8px)); border: unset;",".sv-popup__shadow":"width: 100%; height: 100%; border-radius: calc(1 * var(--base-unit, 8px));",".sv-popup--overlay .sv-popup__body-content":"border-radius: calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) 0px 0px; background: var(--background, #fff); box-shadow: 0px calc(1 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) rgba(0, 0, 0, 0.1); padding: calc(3 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)) calc(2 * var(--base-unit, 8px)); height: calc(100% - calc(1 * var(--base-unit, 8px))); max-height: 100vh; max-width: 100vw;",".sv-popup--overlay .sv-popup__scrolling-content":"height: calc(100% - (10 * var(--base-unit, 8px)));",".sv-popup--overlay .sv-popup__body-footer":"margin-top: calc(2 * var(--base-unit, 8px));",".sv-popup--overlay .sv-popup__body-footer .sv-action":"width: 100%;",".sv-popup--overlay .sv-popup__body-footer .sv-action-bar":"width: 100%;",".sv-popup--overlay .sv-popup__body-footer-item":"width: 100%;",".sv-popup--overlay .sv-popup__button":"background-color: var(--primary, #19b394); border: 2px solid var(--primary, #19b394); color: var(--primary-foreground, #fff);",".sv-popup__scrolling-content":"height: 100%; overflow: auto; display: flex; flex-direction: column;",".sv-popup__scrolling-content::-webkit-scrollbar":"height: 6px; width: 6px; background-color: var(--background-dim, #f3f3f3);",".sv-popup__scrolling-content::-webkit-scrollbar-thumb":"background: var(--primary-light, rgba(25, 179, 148, 0.1));",".sv-popup__content":"min-width: 100%; height: 100%;
1",".sv-popup--show-pointer.sv-popup--top .sv-popup__pointer":"transform: translate(calc(-1 * var(--base-unit, 8px))) rotate(180deg);",".sv-popup--show-pointer.sv-popup--bottom .sv-popup__pointer":"transform: translate(calc(-1 * var(--base-unit, 8px)), calc(-1 * var(--base-unit, 8px)));",".sv-popup--show-pointer.sv-popup--right":"transform: translate(calc(1 * var(--base-unit, 8px)));",".sv-popup--show-pointer.sv-popup--right .sv-popup__pointer":"transform: translate(-12px, -4px) rotate(-90deg);",".sv-popup--show-pointer.sv-popup--left":"transform: translate(calc(-1 * var(--base-unit, 8px)));",".sv-popup--show-pointer.sv-popup--left .sv-popup__pointer":"transform: translate(-4px, -4px) rotate(90deg);",".sv-popup__pointer":"display: block; position: absolute;",".sv-popup__pointer:after":"content: ' '; display: block; width: 0; height: 0; border-left: calc(1 * var(--base-unit, 8px)) solid transparent; border-right: calc(1 * var(--base-unit, 8px)) solid transparent; border-bottom: calc(1 * var(--base-unit, 8px)) solid var(--background, #fff); align-self: center;",".sv-popup__body-header":"font-family: Open Sans; font-size: calc(3 * var(--base-unit, 8px)); line-height: calc(4 * var(--base-unit, 8px)); font-style: normal; font-weight: 700; margin-bottom: calc(2 * var(--base-unit, 8px)); color: var(--foreground, #161616);",".sv-popup__body-footer":"display: flex; margin-top: calc(4 * var(--base-unit, 8px));",".sv-popup__body-footer .sv-action-bar":"gap: calc(1.5 * var(--base-unit, 8px));",".sv-popup__button":"padding: calc(2 * var(--base-unit, 8px)) calc(6 * var(--base-unit, 8px)); background: var(--background, #fff); box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15); border-radius: 4px; margin: 2px; cursor: pointer; font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-style: normal; font-weight: 600; font-size: calc(2 * var(--base-unit, 8px)); line-height: calc(3 * var(--base-unit, 8px)); text-align: center; color: var(--primary, #19b394); border: none; outline: none;",".sv-popup__button:hover":"box-shadow: 0 0 0 2px var(--primary, #19b394);",".sv-popup__button:disabled":"color: var(--foreground-disabled, rgba(#161616, 0.16)); cursor: default;",".sv-popup__button:disabled:hover":"box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);",".sv-popup__button.sv-popup__button--apply":"background-color: var(--primary, #19b394); color: var(--primary-foreground, #fff);",".sv-popup__button.sv-popup__button--apply:disabled":"background-color: var(--background-dim, #f3f3f3);",".sv-list":"padding: 0; margin: 0; background: var(--background, #fff); list-style-type: none; overflow-y: auto;",".sv-list__item--with-icon":"padding-top: 12px; padding-bottom: 12px;",".sv-list__item":"width: 100%; box-sizing: border-box; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv-list__item-body":"width: 100%; box-sizing: border-box; font-size: calc(2 * var(--base-unit, 8px)); line-height: calc(3 * var(--base-unit, 8px)); padding-top: calc(1 * var(--base-unit, 8px)); padding-bottom: calc(1 * var(--base-unit, 8px)); padding-inline-end: calc(8 * var(--base-unit, 8px)); padding-inline-start: calc(2 * var(--base-unit, 8px)); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv-list__item-icon":"float: left; width: calc(3 * 8px); height: calc(3 * 8px); margin-right: calc(2 * 8px);",".sv-list__item-icon svg":"display: block;",".sv-list__item-icon use":"fill: #909090;",".sv-list__item:hover .sv-list__item-body":"background-color: var(--background-dim, #f3f3f3);",".sv-list__item.sv-list__item--focused .sv-list__item-body":"background-color: var(--background-dim, #f3f3f3);",".sv-list__loading-indicator":"pointer-events: none;",".sv-list__loading-indicator .sv-list__item-body":"background-color: transparent",".sv-list__item--selected .sv-list__item-icon use":"fill: var(--primary-foreground, #fff);",".sv-list__item.sv-list__item--disabled":"color: var(--foreground-light, #909090); cursor: default;",".sv-list__item span":"white-space: nowrap;",".sv-list__container":"position: relative; display: flex; flex-direction: column; height: 100%; display: flex; flex-direction: column; min-height: 0;",".sv-list__filter":"border-bottom: 1px solid rgba(0, 0, 0, 0.16); background: var(--background, #fff); padding-bottom: calcSize(1);",".sv-list__input":"-webkit-appearance: none; -moz-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100%; line-height: 24px; padding-left: 56px; padding-right: 24px; padding-top: 12px; padding-bottom: 12px; outline: none; font-size: 1em; border: none",".sv-list__filter-icon":"display: block; position: absolute; top: 12px; left: 16px;",".sv-list__filter-icon .sv-svg-icon":"width: 24px; height: 24px;",".sv-list__empty-container":"width: 100%; box-sizing: border-box; padding: 12px 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;",".sv-list__empty-text":"line-height: 24px; font-size: 16px; font-weight: 400; text-align: center; color: var(--foreground-light, #909090);",".sv-skeleton-element":"min-height: 50px;"},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(data-responsive-title);",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(data-responsive-title); 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)"},".sv_qstn label.sv_q_m_label":{style:"display: inline;",media:"@media (max-width: 600px)"},".sv_main .sv_custom_header":{style:"display: none;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3":{style:"font-size: 1.5em;",media:"@media (max-width: 1300px)"},".sv_main .sv_container .sv_header h3 span":{style:"font-size: 0.75em;",media:"@media (max-width: 700px)"},".sv_main.sv_bootstrap_css .sv-progress__text":{style:"margin-left: 8em;",media:"@media (min-width: 768px)"},".sv_row":{style:" display: flex; flex-wrap: wrap;",media:"@supports (display: flex)"},".sv-row > .sv-row__panel, .sv-row__question:not(:last-child)":{style:"float: left;",media:"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)"},"[dir='rtl'],[style*='direction:rtl'] .sv-row__question:not(:last-child)":{style:"float: right;",media:"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)"},".sv-row > .sv-row__panel, .sv-row__question":{style:"width: 100% !important; padding-right: 0 !important;",media:"@media only screen and (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","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 
164, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},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","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fd6575","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 
164, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"},modern:{"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$button-text-color":"#fff","$checkmark-color":"#fff","$matrix-text-checked-color":"#fff","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4","$text-input-color":"#404040","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$dropdown-border-color":"#d4d4d4","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3"},bootstrap:{"$main-color":"#18a689","$text-color":"#404040;","$text-input-color":"#404040;","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$header-background-color":"#e7e7e7","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd6c7","$progress-buttons-line-color":"#d4d4d4"},bootstrapmaterial:{"$main-color":"#18a689","$text-color":"#404040;","$text-input-color":"#404040;","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$header-background-color":"#e7e7e7","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$body-background-color":"#ffffff","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd6c7","$progress-buttons-line-color":"#d4d4d4"}},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_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_default_css .sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_default_css .sv_progress-buttons__list .sv_progress-buttons__page-title":"color: $text-color;",".sv_default_css .sv_progress-buttons__list .sv_progress-buttons__page-description":"color: $text-color;",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_default_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".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; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_text_root":"color: $text-color; -webkit-text-fill-color: $text-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_dropdown_control":"color: $text-input-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css .sv_q_dropdown_control__input-field-component":"height: auto;",".sv_default_css input[type='text']":"color: $text-color; -webkit-text-fill-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-input-color; -webkit-text-fill-color: $text-input-color; border-color: $border-color; background-color: $inputs-background-color;",".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio'])":"border: 1px solid $border-color; background-color: $inputs-background-color;color: $text-input-color; -webkit-text-fill-color: $text-input-color;",".sv_default_css input:not([type='button']):not([type='reset']):not([type='submit']):not([type='image']):not([type='checkbox']):not([type='radio']):focus":"border: 1px solid $main-color;",".sv_default_css .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper .sv_q_dropdown_control":"background-color: $inputs-background-color;",".sv_default_css .sv_container .sv_body .sv_p_root .sv_q .sv_select_wrapper .sv_q_dropdown_control:focus-within":"border: 1px solid $main-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 .sv_container .sv_body .sv_p_root .sv_q .sv_q_dropdown_control .sv_q_dropdown__value .sv_q_dropdown__filter-string-input[type=text]":"border: none; outline: none; padding: 0px; width: auto; display: flex; flex-grow: 1;  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; position: absolute; inset-inline-start: 0; top: 0; height: 100%; background-color: transparent;",".sv_default_css .sv_container .sv_body .sv_p_root .sv_q .sv_q_dropdown_control .sv_q_dropdown__value.sv_q_tagbox__value .sv_q_dropdown__filter-string-input.sv_q_tagbox__filter-string-input"
1:"position: initial;",".sv_default_css input[type='text']:focus":"border-color: $main-color;",'.sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type="radio"]:focus, .sv_default_css .sv_container .sv_body .sv_p_root .sv_q input[type="checkbox"]:focus':"outline: 1px dotted $main-color;",".sv_default_css select:focus":"border-color: $main-color;",".sv_default_css textarea:focus":"border-color: $main-color;",".sv_default_css .sv_q_input.sv_q_input.sv_q_input.sv_q_tagbox.sv_q_tagbox.sv_q_tagbox:not(.sv_q_tagbox--empty)":"height: auto;",".sv_default_css .sv_select_wrapper.sv_q_tagbox_wrapper::before":"height: 100%; padding: 0 1em;",".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_file_choose_button":"color: $body-background-color; background-color: $main-color;",".sv_main .sv_q_file_choose_button:hover":"background-color: $main-hover-color;",".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_default_css .sv_p_description":"padding-left: 1.29em;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean__switch":"background-color: $main-color; outline-color: $main-color",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv_main .sjs_sp_container":"border: 1px dashed $disable-color;",".sv_main .sjs_sp_placeholder":"color: $foreground-light;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;",".sv_main .sv-action-bar-item":"color: $text-color;",".sv_main .sv-action-bar-item__icon use":"fill: $foreground-light;",".sv_main .sv-action-bar-item:hover":"background-color: $background-dim;",".sv_main .sv-button-group__item--hover:hover":"background-color: $background-dim;",".sv_main .sv-button-group__item-icon use":"fill: $foreground-light;",".sv_main .sv-button-group__item--selected":"color: $main-color;",".sv_main .sv-button-group__item--selected .sv-button-group__item-icon use":"fill: $main-color;",".sv_main .sv-button-group__item--disabled":"color: $foreground-disabled;",".sv_main .sv-button-group__item--disabled .sv-button-group__item-icon use":"fill: $foreground-disabled;",".sv_main .sv-button-group__item":"background: $body-background-color; border-color: $border-color;",".sv_main .sv_qstn textarea":"max-width: 100%","body .sv-list__input":"color: $text-input-color; border-color: $border-color; background-color: $inputs-background-color;","body .sv-list__input::placeholder":"color: $foreground-light;","body .sv-list__input:disabled":"color: $foreground-disabled;","body .sv-list__input:disabled::placeholder":"color: $foreground-disabled;","body .sv-list__item--selected":"background: rgba(25, 179, 148, 0.1); color: $foreground-disabled","body .sv-list__item--selected.sv-list__item--focused":"background-color: $main-color; color: $inputs-background-color;","body .sv-list__item--selected:focus":"background-color: $main-color; color: $inputs-background-color;","body .sv-list__item--selected:hover":"background-color: $main-color; color: $inputs-background-color;",".sv-skeleton-element":"background-color: $background-dim;",".sv_main .sv-ranking-item:focus .sv-ranking-item__index":"border: 2px solid $main-color;",".sv_main .sv-ranking-item__icon":"fill: $main-color;","body .sv-ranking-shortcut .sv-ranking-item__icon":"fill: $main-color;"},e.modernThemeCss={".sv-boolean__switch":"background-color: $main-color;",".sv-boolean__slider":"background-color: $slider-color;",".sv-boolean__label--disabled":"color: $disabled-label-color;",".sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv-boolean--disabled .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv-btn":"color: $button-text-color;",".sv-btn--navigation":"background-color: $main-color",".sv-checkbox__svg":"border-color: $border-color; fill: transparent;
1",".sv-checkbox--allowhover:hover .sv-checkbox__svg":"background-color: $main-hover-color; fill: $checkmark-color;",".sv-checkbox--checked .sv-checkbox__svg":"background-color: $main-color; fill: $checkmark-color;",".sv-checkbox--checked.sv-checkbox--disabled .sv-checkbox__svg":"background-color: $disable-color; fill: $checkmark-color;",".sv-checkbox--disabled .sv-checkbox__svg":"border-color: $disable-color;",".sv-comment":"border-color: $text-border-color; max-width: 100%;",".sv-comment:focus":"border-color: $main-color;",".sv-completedpage":"color: $text-color; background-color: $body-container-background-color;",".sv-container-modern":"color: $text-color;",".sv-container-modern__title":"color: $main-color;",".sv-description":"color: $disabled-text-color;",".sv-dropdown":"border-bottom: 0.06em solid $text-border-color;",".sv-dropdown:focus":"border-color: $dropdown-border-color;",".sv-dropdown--error":"border-color: $error-color; color: $error-color;",".sv-dropdown--error::placeholder":"color: $error-color;",".sv-dropdown--error::-ms-input-placeholder":"color: $error-color;",".sv-tagbox":"border-bottom: 0.06em solid $text-border-color;",".sv-tagbox:focus":"border-color: $dropdown-border-color;",".sv-tagbox--error":"border-color: $error-color; color: $error-color;",".sv-tagbox--error::placeholder":"color: $error-color;",".sv-tagbox--error::-ms-input-placeholder":"color: $error-color;",".sv-file__decorator":"background-color: $body-container-background-color;",".sv-file__clean-btn":"background-color: $remove-button-color;",".sv-file__choose-btn:not(.sv-file__choose-btn--disabled)":"background-color: $add-button-color;",".sv-file__choose-btn--disabled":"background-color: $disable-color;",".sv-file__remove-svg":"fill: #ff1800;",".sv-file__sign a":"color: $text-color;",".sv-imagepicker__item--allowhover:hover .sv-imagepicker__image":"background-color: $main-hover-color; border-color: $main-hover-color;",".sv-imagepicker__item--checked .sv-imagepicker__image":"background-color: $main-color; border-color: $main-color;",".sv-imagepicker__item--disabled.sv-imagepicker__item--checked .sv-imagepicker__image":"background-color: $disable-color; border-color: $disable-color;",".sv-item__control:focus + .sv-item__decorator":"border-color: $main-color;",".sv-matrix__text--checked":"color: $matrix-text-checked-color; background-color: $main-color;",".sv-matrix__text--disabled.sv-matrix__text--checked":"background-color: $disable-color;",".sv-matrixdynamic__add-btn":"background-color: $add-button-color;",".sv-matrixdynamic__remove-btn":"background-color: $remove-button-color;",".sv-paneldynamic__add-btn":"background-color: $add-button-color;",".sv-paneldynamic__remove-btn":"background-color: $remove-button-color;",".sv-paneldynamic__prev-btn":"fill: $text-color;",".sv-paneldynamic__next-btn":"fill: $text-color;",".sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled":"fill: $disable-color;",".sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv-progress":"background-color: $header-background-color;",".sv-progress__bar":"background-color: $main-color;",".sv-progress__text":"color: $progress-text-color;",".sv_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_progress-buttons__list .sv_progress-buttons__page-title":"color: $text-color;",".sv_progress-buttons__list .sv_progress-buttons__page-description":"color: $text-color;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv-question__erbox":"color: $error-color;",".sv-question__title--answer":"background-color: $answer-background-color;",".sv-question__title--error":"background-color: $error-background-color;",".sv-panel__title--error":"background-color: $error-background-color;",".sv-radio__svg":"border-color: $border-color; fill: transparent;
1",".sv-radio--allowhover:hover .sv-radio__svg":"fill: $border-color;",".sv-radio--checked .sv-radio__svg":"border-color: $radio-checked-color; fill: $radio-checked-color;",".sv-radio--disabled .sv-radio__svg":"border-color: $disable-color;",".sv-radio--disabled.sv-radio--checked .sv-radio__svg":"fill: $disable-color;",".sv-rating":"color: $text-color;",".sv-rating input:focus + .sv-rating__min-text + .sv-rating__item-text, .sv-rating input:focus + .sv-rating__item-text":"outline-color: $main-color;",".sv-rating__item-text":"color: $main-hover-color; border: solid 0.1875em $main-hover-color;",".sv-rating__item-text:hover":"background-color: $main-hover-color; color: $body-background-color;",".sv-rating__item--selected .sv-rating__item-text":"background-color: $main-color; color: $body-background-color; border-color: $main-color;",".sv-rating--disabled .sv-rating__item-text":"color: $disable-color; border-color: $disable-color;",".sv-rating--disabled .sv-rating__item-text:hover":"background-color: transparent;",".sv-rating--disabled .sv-rating__item-text:hover .sv-rating__item--selected .sv-rating__item-text":"background-color: $disable-color; color: $body-background-color;","::-webkit-scrollbar":"background-color: $main-hover-color;","::-webkit-scrollbar-thumb":"background: $main-color;",".sv-selectbase__clear-btn":"background-color: $clean-button-color;",".sv-table":"background-color: rgba($main-hover-color, 0.1);",".sv-text:focus":"border-color: $main-color;",'.sv-text[type="date"]::-webkit-calendar-picker-indicator':"color: transparent; background: transparent;",".sv-text--error":"color: $error-color; border-color: $error-color;",".sv-text--error::placeholder":"color: $error-color;",".sv-text--error::-ms-placeholder":"color: $error-color;",".sv-text--error:-ms-placeholder":"color: $error-color;","input.sv-text, textarea.sv-comment, select.sv-dropdown":"color: $text-input-color; background-color: $inputs-background-color;",".sv-text::placeholder":"color: $text-input-color;",".sv-text::-ms-placeholder":"color: $text-input-color;",".sv-text:-ms-placeholder":"color: $text-input-color;",".sv-table__row--detail":"background-color: $header-background-color;",".sjs_sp_container":"border: 1px dashed $disable-color;",".sjs_sp_placeholder":"color: $foreground-light;",".sv-matrixdynamic__drag-icon":"padding-top:16px",".sv-matrixdynamic__drag-icon:after":"content: ' '; display: block; height: 6px; width: 20px; border: 1px solid $border-color; box-sizing: border-box; border-radius: 10px; cursor: move; margin-top: 12px;",".sv-matrix__drag-drop-ghost-position-top, .sv-matrix__drag-drop-ghost-position-bottom":"position: relative;",".sv-matrix__drag-drop-ghost-position-top::after, .sv-matrix__drag-drop-ghost-position-bottom::after":"content: ''; width: 100%; height: 4px; background-color: var(--primary, #19b394); position: absolute; left: 0;",".sv-matrix__drag-drop-ghost-position-top::after":"top: 0;",".sv-matrix__drag-drop-ghost-position-bottom::after":"bottom: 0;",".sv-skeleton-element":"background-color: $background-dim;",".sv-ranking-item:focus .sv-ranking-item__index":"border: 2px solid $main-color;",".sv-ranking-item__icon":"fill: $main-color;","body .sv-ranking-shortcut .sv-ranking-item__icon":"fill: $main-color;"},e.bootstrapThemeCss={".sv_main .sv_q_imgsel.checked label>div":"background-color: $main-color",".sv_main .sv_p_description":"padding-left: 1.66em;",".sv_main .sv_qstn_error_bottom":"margin-top: 20px; margin-bottom: 0;",".sv_main .progress":"width: 60%;",".sv_main .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_main .table>tbody>tr>td":"min-width: 90px;",".sv_main f-panel .sv_qstn":"padding: 0; vertical-align: middle;",".sv_main .sv_q_image":"display: inline-block;",".sv_main .sv_row .sv_qstn:first-child:last-child":"flex: none !important;",".sv_main .sv_row .sv_p_container:first-child:last-child":"flex: none !important;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main .sv_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_main .sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_main .sv_progress-buttons__list .sv_progress-buttons__page-title":"color: $text-color;",".sv_main .sv_progress-buttons__list .sv_progress-buttons__page-description":"color: $text-color;",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_main .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled  .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv_main .sjs_sp_container":"border: 1px dashed $disable-color;",".sv_main .sjs_sp_placeholder":"color: $foreground-light;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;",".sv_main .sv-action-bar-item":"color: $text-color;",".sv_main .sv-action-bar-item__icon use":"fill: $foreground-light;",".sv_main .sv-action-bar-item:hover":"background-color: $background-dim;",".sv-skeleton-element":"background-color: $background-dim;"},e.bootstrapmaterialThemeCss={".sv_main.sv_bootstrapmaterial_css .form-group.is-focused .form-control":"linear-gradient(0deg, $main-color 2px, $main-color 0),linear-gradient(0deg, #D2D2D2 1px, transparent 0);",".sv_main.sv_bootstrapmaterial_css .sv_qstn":"margin-bottom: 1rem;",".sv_main.sv_bootstrapmaterial_css .sv_qstn label.sv_q_m_label":"height: 100%;",".sv_main.sv_bootstrapmaterial_css .sv_q_image":"display: inline-block;",".sv_main .sv_row .sv_qstn:first-child:last-child":"flex: none !important;",".sv_main .sv_row .sv_p_container:first-child:last-child":"flex: none !important;",".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;",".sv_main.sv_bootstrapmaterial_css .progress":"width: 60%; height: 1.5em;",".sv_main.sv_bootstrapmaterial_css .progress-bar":"width: auto; margin-left: 2px; margin-right: 2px;",".sv_main .sv-progress":"background-color: $header-background-color;",".sv_main .sv-progress__bar":"background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li:before":"border-color: $progress-buttons-color; background-color: $progress-buttons-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li:after":"background-color: $progress-buttons-line-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list .sv_progress-buttons__page-title":"color: $text-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list .sv_progress-buttons__page-description":"color: $text-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed:before":"border-color: $main-color; background-color: $main-color;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed + li:after":"background-color: $progress-buttons-color",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_main.sv_bootstrapmaterial_css .sv_progress-buttons__list li.sv_progress-buttons__list-element--passed.sv_progress-buttons__list-element--current:before":"border-color: $main-color; background-color: white;",".sv_main .sv-paneldynamic__prev-btn.sv-paneldynamic__prev-btn--disabled, .sv_main .sv-paneldynamic__next-btn.sv-paneldynamic__next-btn--disabled":"fill: $disable-color;",".sv_main .sv-paneldynamic__progress-text":"color: $progress-text-color;",".sv_main .sv-paneldynamic__prev-btn, .sv_main .sv-paneldynamic__next-btn":"fill: $text-color",".sv_main .sv-boolean .checkbox-decorator":"display: none;",".sv_main .sv-boolean__switch":"background-color: $main-color;",".sv_main .sv-boolean__slider":"background-color: $slider-color;",".sv_main .sv-boolean__label.sv-boolean__label--disabled":"color: $disabled-label-color;",".sv_main .sv-boolean__label":"color: $text-color;",".sv_main .sv-boolean--disabled .sv-boolean__switch":"background-color: $disabled-switch-color;",".sv_main .sv-boolean--disabled  .sv-boolean__slider":"background-color: $disabled-slider-color;",".sv_main .sv_matrix_detail_row":"background-color: #ededed; border-top: 1px solid $header-background-color; border-bottom: 1px solid $header-background-color;",".sv_main .sjs_sp_container":"border: 1px dashed $disable-color;",".sv_main .sjs_sp_placeholder":"color: $foreground-light;",".sv_main .sv-action-bar-item":"color: $text-color;",".sv_main .sv-action-bar-item__icon use":"fill: $foreground-light;",".sv_main .sv-action-bar-item:hover":"background-color: $background-dim;",".sv-skeleton-element":"background-color: $background-dim;"},e.Enabled=!0,e}()},
1"./src/survey-element.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyElementCore",function(){return m}),r.d(t,"DragTypeOverMeEnum",function(){return i}),r.d(t,"SurveyElement",function(){return f});var n,o,i,s=r("./src/jsonobject.ts"),a=r("./src/base.ts"),l=r("./src/actions/adaptive-container.ts"),u=r("./src/helpers.ts"),c=r("./src/settings.ts"),p=r("./src/actions/container.ts"),d=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),h=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},m=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return d(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setLocalizableStringText("title",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.updateDescriptionVisibility=function(e){this.hasDescription=!!e},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return c.settings.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},h([Object(s.property)()],t.prototype,"hasDescription",void 0),h([Object(s.property)({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(t,e)}})],t.prototype,"description",void 0),t}(a.Base);(o=i||(i={}))[o.InsideEmptyPanel=1]="InsideEmptyPanel",o[o.MultilineRight=2]="MultilineRight",o[o.MultilineLeft=3]="MultilineLeft";var f=function(e){function t(r){var n=e.call(this)||this;return n.selectedElementInDesignValue=n,n.disableDesignActions=t.CreateDisabledDesignElements,n.parentQuestionValue=null,n.isContentElement=!1,n.isEditableTemplateElement=!1,n.isInteractiveDesignElement=!0,n.isSingleInRow=!0,n.name=r,n.createNewArray("errors"),n.createNewArray("titleActions"),n.registerPropertyChangedH
1andlers(["isReadOnly"],function(){n.onReadOnlyChanged()}),n.registerPropertyChangedHandlers(["errors"],function(){n.updateVisibleErrors()}),n.registerPropertyChangedHandlers(["isSingleInRow"],function(){n.updateElementCss(!1)}),n}return d(t,e),t.getProgressInfoByElements=function(e,t){for(var r=a.Base.createProgressInfo(),n=0;n<e.length;n++)if(e[n].isVisible){var o=e[n].getProgressInfo();r.questionCount+=o.questionCount,r.answeredQuestionCount+=o.answeredQuestionCount,r.requiredQuestionCount+=o.requiredQuestionCount,r.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&r.questionCount>0&&(0==r.requiredQuestionCount&&(r.requiredQuestionCount=1),r.answeredQuestionCount>0&&(r.requiredAnsweredQuestionCount=1)),r},t.ScrollElementToTop=function(e){if(!e||"undefined"==typeof document)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,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var r=e[0];"#text"===r.nodeName&&(r.data=""),"#text"===(r=e[e.length-1]).nodeName&&(r.data="")}for(var n=0;n<e.length;n++)if("#text"!=e[n].nodeName&&"#comment"!=e[n].nodeName)return e[n];return null},t.FocusElement=function(e){if(!e||"undefined"==typeof document)return!1;var r=t.focusElementCore(e);return r||setTimeout(function(){t.focusElementCore(e)},10),r},t.focusElementCore=function(e){if(!document)return!1;var t=document.getElementById(e);return!!t&&!t.disabled&&(t.focus(),!0)},t.prototype.onPropertyValueChanged=function(t,r,n){e.prototype.onPropertyValueChanged.call(this,t,r,n),"state"===t&&(this.updateElementCss(!1),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.notifyStateChanged()},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){if(!this.isDesignMode)return"collapsed"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){this.isDesignMode||(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return this.titleToolbarValue||(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new l.AdaptiveActionContainer:new p.ActionContainer;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return this.isTitleActionRequested||(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();
vendor: 4,269 bytes, line 1
1this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&this.clearCssClasses()},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():null},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){c.settings.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.surveyValue||this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!1},enumerable:!1,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.isLoadingFromJson||this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){this.cssClassesValue||(this.cssClassesValue=this.calcCssClasses(this.css),this.updateElementCssCore(this.cssClassesValue))},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.survey?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.cssClassesValue=void 0},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.survey&&this.survey.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)}
1,enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},t.prototype.onFirstRendering=function(){this.ensureCssClassesValue()},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:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.delete=function(){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&"page"==e.getType()?e:null},t.prototype.moveToBase=function(e,t,r){if(void 0===r&&(r=null),!t)return!1;e.removeElement(this);var n=-1;return u.Helpers.isNumber(r)&&(n=parseInt(r)),-1==n&&r&&r.getType&&(n=t.indexOf(r)),t.addElement(this,n),!0},t.prototype.setPage=function(e,t){var r=this.getPage(e);"string"==typeof t&&this.getSurvey().pages.forEach(function(e){t===e.name&&(t=e)}),r!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1))},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&"sd-root-modern"==this.survey.getCss().root}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isErrorsModeTooltip",{get:function(){return this.getIsErrorsModeTooltip()},enumerable:!1,configurable:!0}),t.prototype.getIsErrorsModeTooltip=function(){return this.isDefaultV2Theme&&this.hasParent&&this.getIsTooltipErrorSupportedByParent()},t.prototype.getIsTooltipErrorSupportedByParent=function(){var e;return null==(e=this.parent)?void 0:e.getIsTooltipErrorInsideSupported()},t.prototype.getIsTooltipErrorInsideSupported=function(){return!1},Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage||void 0===this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFrameV2",{get:function(){return!this.hasParent&&this.isDefaultV2Theme&&!this.isDesignMode&&this.isSingleInRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft","")},set:function(e){this.setPropertyValue("paddingLeft",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight","")},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootStyle",{get:function(){var e={};return this.allowRootStyle&&this.renderWidth&&(e.flexGrow=1,e.flexShrink=1,e.flexBasis=this.renderWidth,e.minWidth=this.minWidth,e.maxWidth=this.maxWidth),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(){return e.processTitleClick()}},enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach(function(e){e.updateText()})},t.CreateDisabledDesignElements=!1,h([Object(s.property)({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),h([Object(s.property)({defaultValue:!1})],t.prototype,"isDragMe",void 0),h([Object(s.property)()],t.prototype,"cssClassesValue",void 0),h([Object(s.property)({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),h([Object(s.property)({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),h([Object(s.property)({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),t}(m)},
1"./src/survey-error.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyError",function(){return i});var n=r("./src/localizablestring.ts"),o=r("./src/surveyStrings.ts"),i=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return e.prototype.equalsTo=function(e){return!!e&&!!e.getErrorType&&this.getErrorType()===e.getErrorType()&&this.text===e.text&&this.visible===e.visible},Object.defineProperty(e.prototype,"locText",{get:function(){return this.locTextValue||(this.locTextValue=new n.LocalizableString(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var e=this.text;return e||(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},e.prototype.getLocalizationString=function(e){return o.surveyLocalization.getString(e,this.getLocale())},e.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},e}()},
1"./src/survey.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyModel",function(){return S});var n,o=r("./src/helpers.ts"),i=r("./src/jsonobject.ts"),s=r("./src/base.ts"),a=r("./src/survey-element.ts"),l=r("./src/defaultCss/cssstandard.ts"),u=r("./src/textPreProcessor.ts"),c=r("./src/conditionProcessValue.ts"),p=r("./src/dxSurveyService.ts"),d=r("./src/surveyStrings.ts"),h=r("./src/error.ts"),m=r("./src/localizablestring.ts"),f=r("./src/stylesmanager.ts"),g=r("./src/surveyTimerModel.ts"),y=r("./src/conditions.ts"),v=r("./src/settings.ts"),b=r("./src/utils/utils.ts"),C=r("./src/actions/action.ts"),x=r("./src/actions/container.ts"),w=r("./src/utils/cssClassBuilder.ts"),_=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),P=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},S=function(e){function t(r,n){void 0===r&&(r=null),void 0===n&&(n=null);var o=e.call(this)||this;o.valuesHash={},o.variablesHash={},o.onTriggerExecuted=o.addEvent(),o.onCompleting=o.addEvent(),o.onComplete=o.addEvent(),o.onShowingPreview=o.addEvent(),o.onNavigateToUrl=o.addEvent(),o.onStarted=o.addEvent(),o.onPartialSend=o.addEvent(),o.onCurrentPageChanging=o.addEvent(),o.onCurrentPageChanged=o.addEvent(),o.onValueChanging=o.addEvent(),o.onValueChanged=o.addEvent(),o.onVariableChanged=o.addEvent(),o.onVisibleChanged=o.addEvent(),o.onPageVisibleChanged=o.addEvent(),o.onPanelVisibleChanged=o.addEvent(),o.onQuestionCreated=o.addEvent(),o.onQuestionAdded=o.addEvent(),o.onQuestionRemoved=o.addEvent(),o.onPanelAdded=o.addEvent(),o.onPanelRemoved=o.addEvent(),o.onPageAdded=o.addEvent(),o.onValidateQuestion=o.addEvent(),o.onSettingQuestionErrors=o.addEvent(),o.onServerValidateQuestions=o.addEvent(),o.onValidatePanel=o.addEvent(),o.onErrorCustomText=o.addEvent(),o.onValidatedErrorsOnCurrentPage=o.addEvent(),o.onProcessHtml=o.addEvent(),o.onGetQuestionTitle=o.addEvent(),o.onGetTitleTagName=o.addEvent(),o.onGetQuestionNo=o.addEvent(),o.onProgressText=o.addEvent(),o.onTextMarkdown=o.addEvent(),o.onTextRenderAs=o.addEvent(),o.onSendResult=o.addEvent(),o.onGetResult=o.addEvent(),o.onUploadFiles=o.addEvent(),o.onDownloadFile=o.addEvent(),o.onClearFiles=o.addEvent(),o.onLoadChoicesFromServer=o.addEvent(),o.onLoadedSurveyFromService=o.addEvent(),o.onProcessTextValue=o.addEvent(),o.onUpdateQuestionCssClasses=o.addEvent(),o.onUpdatePanelCssClasse
1s=o.addEvent(),o.onUpdatePageCssClasses=o.addEvent(),o.onUpdateChoiceItemCss=o.addEvent(),o.onAfterRenderSurvey=o.addEvent(),o.onAfterRenderHeader=o.addEvent(),o.onAfterRenderPage=o.addEvent(),o.onAfterRenderQuestion=o.addEvent(),o.onAfterRenderQuestionInput=o.addEvent(),o.onAfterRenderPanel=o.addEvent(),o.onFocusInQuestion=o.addEvent(),o.onFocusInPanel=o.addEvent(),o.onShowingChoiceItem=o.addEvent(),o.onChoicesLazyLoad=o.addEvent(),o.onGetChoiceDisplayValue=o.addEvent(),o.onMatrixRowAdded=o.addEvent(),o.onMatrixBeforeRowAdded=o.addEvent(),o.onMatrixRowRemoving=o.addEvent(),o.onMatrixRowRemoved=o.addEvent(),o.onMatrixAllowRemoveRow=o.addEvent(),o.onMatrixCellCreating=o.addEvent(),o.onMatrixCellCreated=o.addEvent(),o.onMatrixAfterCellRender=o.addEvent(),o.onMatrixCellValueChanged=o.addEvent(),o.onMatrixCellValueChanging=o.addEvent(),o.onMatrixCellValidate=o.addEvent(),o.onDynamicPanelAdded=o.addEvent(),o.onDynamicPanelRemoved=o.addEvent(),o.onDynamicPanelRemoving=o.addEvent(),o.onTimer=o.addEvent(),o.onTimerPanelInfoText=o.addEvent(),o.onDynamicPanelItemValueChanged=o.addEvent(),o.onIsAnswerCorrect=o.addEvent(),o.onDragDropAllow=o.addEvent(),o.onScrollingElementToTop=o.addEvent(),o.onLocaleChangedEvent=o.addEvent(),o.onGetQuestionTitleActions=o.addEvent(),o.onGetPanelTitleActions=o.addEvent(),o.onGetPageTitleActions=o.addEvent(),o.onGetPanelFooterActions=o.addEvent(),o.onGetMatrixRowActions=o.addEvent(),o.onElementContentVisibilityChanged=o.addEvent(),o.onGetExpressionDisplayValue=o.addEvent(),o.jsonErrors=null,o.cssValue=null,o.hideRequiredErrors=!1,o._isMobile=!1,o._isDesignMode=!1,o.ignoreValidation=!1,o.isNavigationButtonPressed=!1,o.mouseDownPage=null,o.isCalculatingProgressText=!1,o.isFirstPageRendering=!0,o.isCurrentPageRendering=!0,o.isTriggerIsRunning=!1,o.triggerValues=null,o.triggerKeys=null,o.conditionValues=null,o.isValueChangedOnRunningCondition=!1,o.conditionRunnerCounter=0,o.conditionUpdateVisibleIndexes=!1,o.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,o.isEndLoadingFromJson=null,o.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},o.needRenderIcons=!0,o.skeletonComponentName="sv-skeleton","undefined"!=typeof document&&(t.stylesManager=new f.StylesManager);var i=function(e){return"<h3>"+e+"</h3>"};return o.createHtmlLocString("completedHtml","completingSurvey",i),o.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",i),o.createHtmlLocString("loadingHtml","loadingSurvey",i),o.createLocalizableString("logo",o,!1),o.createLocalizableString("startSurveyText",o,!1,!0),o.createLocalizableString("pagePrevText",o,!1,!0),o.createLocalizableString("pageNextText",o,!1,!0),o.createLocalizableString("completeText",o,!1,!0),o.createLocalizableString("previewText",o,!1,!0),o.createLocalizableString("editText",o,!1,!0),o.createLocalizableString("questionTitleTemplate",o,!0),o.textPreProcessor=new u.TextPreProcessor,o.textPreProcessor.onProcess=function(e){o.getProcessedTextValue(e)},o.timerModelValue=new g.SurveyTimerModel(o),o.timerModelValue.onTimer=function(e){o.doTimer(e)},o.createNewArray("pages",function(e){o.doOnPageAdded(e)},function(e){o.doOnPageRemoved(e)}),o.createNewArray("triggers",function(e){e.setOwner(o)}),o.createNewArray("calculatedValues",function(e){e.setOwner(o)}),o.createNewArray("completedHtmlOnCondition",function(e){e.locOwner=o}),o.createNewArray("navigateToUrlOnCondition",function(e){e.locOwner=o}),o.registerPropertyChangedHandlers(["locale"],function(){o.onSurveyLocaleChanged()}),o.registerPropertyChangedHandlers(["firstPageIsStarted"],function(){o.onFirstPageIsStartedChanged()}),o.registerPropertyChangedHandlers(["mode"],function(){o.onModeChanged()}),o.registerPropertyChangedHandlers(["progressBarType"],function(){o.updateProgressText()}),o.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],function(){o.resetVisibleIndexes()}),o.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage"],function(){o.updateState()}
1),o.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],function(){o.onStateAndCurrentPageChanged()}),o.registerPropertyChangedHandlers(["logo","logoPosition"],function(){o.updateHasLogo()}),o.onGetQuestionNo.onCallbacksChanged=function(){o.resetVisibleIndexes()},o.onProgressText.onCallbacksChanged=function(){o.updateProgressText()},o.onTextMarkdown.onCallbacksChanged=function(){o.locStrsChanged()},o.onProcessHtml.onCallbacksChanged=function(){o.locStrsChanged()},o.onGetQuestionTitle.onCallbacksChanged=function(){o.locStrsChanged()},o.onUpdatePageCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdatePanelCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onUpdateQuestionCssClasses.onCallbacksChanged=function(){o.currentPage&&o.currentPage.updateElementCss()},o.onShowingChoiceItem.onCallbacksChanged=function(){o.rebuildQuestionChoices()},o.navigationBarValue=o.createNavigationBar(),o.navigationBar.locOwner=o,o.onBeforeCreating(),r&&(("string"==typeof r||r instanceof String)&&(r=JSON.parse(r)),r&&r.clientId&&(o.clientId=r.clientId),o.fromJSON(r),o.surveyId&&o.loadSurveyFromService(o.surveyId,o.clientId)),o.onCreating(),n&&o.render(n),o.updateCss(),o.setCalculatedWidthModeUpdater(),o}return _(t,e),Object.defineProperty(t,"cssType",{get:function(){return l.surveyCss.currentType},set:function(e){f.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return v.settings.commentPrefix},set:function(e){v.settings.commentPrefix=e},enumerable:!1,configurable:!0}),t.prototype.createHtmlLocString=function(e,t,r){this.createLocalizableString(e,this,!1,t).onGetLocalizationTextCallback=r},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,r){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,t){var r=this;for(var n in e)!function(){if("model"!=n&&"children"!=n)if(0==n.indexOf("on")&&r[n]&&r[n].add){var t=e[n];r[n].add(function(e,r){t(e,r)})}else r[n]=e[n]}();e&&e.data&&this.onValueChanged.add(function(t,r){e.data[r.name]=r.value})},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=new w.CssClassBuilder().append(this.css.body).append(this.css.completedPage).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss()},Object.defineProperty(t.prototype,"css",{get:function(){return this.cssValue||(this.cssValue={},this.copyCssClasses(this.cssValue,l.surveyCss.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,t){void 0===t&&(t=!0),t?this.mergeValues(e,this.css):this.cssValue=e,this.updateCss(),this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return new w.CssClassBuilder().append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return new w.CssClassBuilder().append(this.css.body).append(this.css.bodyWithTimer,"none"!=this.showTimerPanel&&"running"===this.state).append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateCss",{get:function(){return this.getPropertyValue("completedStateCss","")},enumerable:!1,configurable:!0}),t.prototype.getCompletedStateCss=function(){return new w.CssClassBuilder().append(this.css.saveData[this.completedState],""!==this.completedState).toString()},t.prototype.getNavigationCss=function(e,t){return new w.CssClassBuilder().append(e).append(t).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return!0===this.lazyRenderingValue},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var t=this.currentPage;t&&t.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||v.settings.lazyRowsRendering},enumerable:!1,configurable:!0}),t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&Object(b.scrollElementByChildId)(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext",!1)},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving",!1)},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){(!0===e||void 0===e)&&(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!1)),t},t.prototype.navigateTo=function(){var e={url:this.getNavigateToUrl()};this.onNavigateToUrl.fire(this,e),e.url&&"undefined"!=typeof window&&window.location&&(window.location.href=e.url)},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)},enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},t.prototype.beforeSettingPanelErrors=function(e,t){this.maakeRequiredErrorsInvisibgle(t)},t.prototype.maakeRequiredErrorsInvisibgle=function(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var r=e[t].getErrorType();("required"==r||"requireoneanswer"==r)&&(e[t].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")}
1,set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic",!1)},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic",!0)},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")}
1,set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var r=this.data,n=!1;for(var o in r)if(!(this.getQuestionByValueName(o)||this.iscorrectValueWithPostPrefix(o,v.settings.commentPrefix)||this.iscorrectValueWithPostPrefix(o,v.settings.matrixTotalValuePostFix))){var i=this.getCalculatedValueByName(o);i&&i.includeIntoResult||(n=!0,delete r[o])}n&&(this.data=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substring(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValue("locale",d.surveyLocalization.currentLocale)},set:function(e){e!==d.surveyLocalization.defaultLocale||d.surveyLocalization.currentLocale||(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},t.prototype.getUsedLocales=function(){var e=[];this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var r=d.surveyLocalization.defaultLocale,n=e.indexOf(r);n>-1&&e.splice(n,1),t=e.indexOf("default"),e[t]=r}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(e.prototype.locStrsChanged.call(this),this.currentPage){this.isShowStartingPage||this.updateProgressText();var t=this.activePage;t&&t.locStrsChanged();for(var r=this.visiblePages,n=0;n<r.length;n++)r[n].navigationLocStrChanged();this.navigationBar.locStrsChanged()}},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,t){var r=this.getBuiltInRendererForString(e,t),n={element:e,name:t,renderAs:r};return this.onTextRenderAs.fire(this,n),n.renderAs},t.prototype.getRendererContextForString=function(e,t){return t},t.prototype.getExpressionDisplayValue=function(e,t,r){var n={question:e,value:t,displayValue:r};return this.onGetExpressionDisplayValue.fire(this,n),n.displayValue},t.prototype.getBuiltInRendererForString=function(e,t){if(this.isDesignMode)return m.LocalizableString.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)},t.prototype.getErrorCustomText=function(e,t){return this.getSurveyErrorCustomText(this,e,t)},t.prototype.getSurveyErrorCustomText=function(e,t,r){var n={text:t,name:r.getErrorType(),obj:e,error:r};return this.onErrorCustomText.fire(this,n),n.text},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizationString("emptySurvey")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){var e=this.getPropertyValue("logoWidth");return Object(b.getSize)(e)},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){var e=this.getPropertyValue("logoHeight");return Object(b.getSize)(e)},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&"none"!==this.logoPosition)},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return!this.isDesignMode&&this.renderedHasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return new w.CssClassBuilder().append(this.css.logo).append({left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.locTitle.isEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){void 0===e&&(e=!0),this.isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().map(function(t){return t.isMobile=e}))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(Object(b.isMobile)()||this.isMobile)&&!this.isValueEmpty(this.isLogoImageChoosen())&&!v.settings.supportCreatorV2){var e=this.logoWidth;if("left"===this.logoPosition||"right"===this.logoPosition)return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e){if(!e)return null;var t=this.getFilteredValues(),r=this.getFilteredProperties();return new y.ExpressionRunner(e).run(t,r)},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),r=this.getFilteredProperties();return new y.ConditionRunner(e).run(t,r)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml}
vendor: 4,143 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),r=this.getFilteredProperties(),n=0;n<e.length;n++)if(e[n].runCondition(t,r))return e[n];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return e.component||(e.component="sv-nav-btn"),e.innerCss||(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,t){if(this.onGetTitleTagName.isEmpty)return t;var r={element:e,tagName:t};return this.onGetTitleTagName.fire(this,r),r.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)}
1,enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=[],t=this.getLocalizationString("questionTitlePatternText"),r=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:r+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:r+" "+this.requiredText+" "+t}),e.push({value:"requireNumTitle",text:this.requiredText+" "+r+" "+t}),e.push({value:"numTitle",text:r+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var r=(e=e.substring(e.indexOf("{")+1)).indexOf("}");if(r<0)break;t.push(e.substring(0,r)),e=e.substring(r+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(0>t.indexOf("require"))return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,r,n){if(t="{"+t+"}",!e||0>e.indexOf(t))return r;for(var o=e.indexOf(t),i="",s="",a=o-1;a>=0&&"}"!=e[a];a--);for(a<o-1&&(i=e.substring(a+1,o)),o+=t.length,a=o;a<e.length&&"{"!=e[a];a++);for(a>o&&(s=e.substring(o,a)),a=0;a<i.length&&33>i.charCodeAt(a);)a++;for(i=i.substring(a),a=s.length-1;a>=0&&33>s.charCodeAt(a);)a--;return(s=s.substring(0,a+1),i||s)?i+(r||n)+s:r},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,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},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNo.isEmpty)return t;var r={question:e,no:t};return this.onGetQuestionNo.fire(this,r),r.no},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:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){!0===e&&(e="on"),!1===e&&(e="off"),(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){"correctquestion"===e&&(e="correctQuestion"),"requiredquestion"===e&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&("top"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar)},enumerable:!1,configurable:!0}),t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),this.isLoadingFromJson||this.updateElementCss(!0)}
1,enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var t=this.visiblePages,r=0;r<t.length;r++)t[r].updateElementCss(e)},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){(e=e.toLowerCase())!=this.mode&&("edit"==e||"display"==e)&&this.setPropertyValue("mode",e)},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),r=0;r<t.length;r++){var n=t[r],o=this.getDataValueCore(this.valuesHash,n);void 0!==o&&(e[n]=o)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){e&&this.setDataCore(e)},t.prototype.setDataCore=function(e){if(e)for(var t in e)this.setDataValueCore(this.valuesHash,t,e[t]);this.updateAllQuestionsValue(),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue()},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e&&(this.editingObj&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=e,!this.isDisposed)){if(!e)for(var r=this.getAllQuestions(),n=0;n<r.length;n++)r[n].unbindValue();this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,r){i.Serializer.hasOriginalProperty(t.editingObj,r.name)&&t.updateOnSetValue(r.name,t.editingObj[r.name],r.oldValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var r=this.calculatedValues[t];r.includeIntoResult&&r.name&&void 0!==this.getVariable(r.name)&&(e[r.name]=this.getVariable(r.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){e||(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var t=[],r=[];if(this.getAllQuestions().forEach(function(n){var o=n.getPlainData(e);o&&(t.push(o),r.push(n.valueName||n.name))}),e.includeValues)for(var n=this.getValuesKeys(),o=0;o<n.length;o++){var i=n[o];if(-1==r.indexOf(i)){var s=this.getDataValueCore(this.valuesHash,i);s&&t.push({name:i,title:i,value:s,displayValue:s,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}})}}return t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];this.addCalculatedValuesIntoFilteredValues(e);for(var r=this.getValuesKeys(),n=0;n<r.length;n++){var t=r[n];e[t]=this.getDataValueCore(this.valuesHash,t)}return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var t=this.calculatedValues,r=0;r<t.length;r++)e[t[r].name]=t[r].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=i.Serializer.getPropertiesByObj(this.editingObj),t=[],r=0;r<e.length;r++)t.push(e[r].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?i.Serializer.getObjPropertyValue(this.editingObj,t):this.getDataFromValueHash(e,t)},t.prototype.setDataValueCore=function(e,t,r){this.editingObj?i.Serializer.setObjPropertyValue(this.editingObj,t,r):this.setDataToValueHash(e,t,r)},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:this.deleteDataFromValueHash(e,t)},t.prototype.getDataFromValueHash=function(e,t){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,t):e[t]},t.prototype.setDataToValueHash=function(e,t,r){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,t,r):e[t]=r},t.prototype.deleteDataFromValueHash=function(e,t){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,t):delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),r=0;r<t.length;r++){var n=t[r];n.indexOf(this.commentPrefix)>0&&(e[n]=this.getDataValueCore(this.valuesHash,n))}return e}
vendor: 4,623 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;for(var e=[],t=0;t<this.pages.length;t++)this.isPageInVisibleList(this.pages[t])&&e.push(this.pages[t]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStarted},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(this.isLoadingFromJson)return;var t=this.getPageByObject(e);if((!e||t)&&(t||!this.isCurrentPageAvailable)){var r=this.visiblePages;if(!(null!=t&&0>r.indexOf(t))&&t!=this.currentPage){var n=this.currentPage;this.currentPageChanging(t,n)&&(this.setPropertyValue("currentPage",t),t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),this.currentPageChanged(t,n))}}},enumerable:!1,configurable:!0}),t.prototype.updateCurrentPage=function(){this.isCurrentPageAvailable||(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return this.pages.indexOf(e)>-1||!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return"starting"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return"running"==this.state||"preview"==this.state||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},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:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.isFocusingQuestion){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){void 0===e&&(e=!0);var t=this.activePage;t&&(e&&t.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.isFocusingQuestion&&(t.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.setPropertyValue("completedState",e),t||("saving"==e&&(t=this.getLocalizationString("savingData")),"error"==e&&(t=this.getLocalizationString("savingDataError")),"success"==e&&(t=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",t),this.setPropertyValue("completedStateCss",this.getCompletedStateCss())},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.canBeCompletedByTrigger=!1,e&&(this.data=null,this.variablesHash={}),this.timerModel.spent=0;for(var r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1),this.pages[r].passed=!1;this.onFirstPageIsStartedChanged(),t&&(this.currentPage=this.firstVisiblePage),e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){Object(b.mergeValues)(e,t)},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++)for(var t=this.pages[e].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,isNextPage:this.isNextPage(e,t),isPrevPage:this.isPrevPage(e,t)};return this.onCurrentPageChanging.fire(this,r),r.allowChanging&&(this.isCurrentPageRendering=!0),r.allowChanging},t.prototype.currentPageChanged=function(e,t){var r=this.isNextPage(e,t);r&&(t.passed=!0),this.onCurrentPageChanged.fire(this,{oldCurrentPage:t,newCurrentPage:e,isNextPage:r,isPrevPage:this.isPrevPage(e,t)})},t.prototype.isNextPage=function(e,t){return!!e&&!!t&&e.visibleIndex==t.visibleIndex+1},t.prototype.isPrevPage=function(e,t){return!!e&&!!t&&e.visibleIndex+1==t.visibleIndex},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>=1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages;return Math.ceil(100*(t.indexOf(this.currentPage)+1)/t.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.currentPage;return e?"show"===e.navigationButtonsVisibility?"bottom":"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var t=this.isNavigationButtonsShowing;return"both"==t||t==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode||"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){this._isDesignMode=e,this.onQuestionsOnPageModeChanged("standard")},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),this.isLoadingFromJson||(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var r=this.pages[t];r.updateElementVisibility(),e.indexOf(r)>-1!=r.isVisible&&this.onPageVisibleChanged.fire(this,{page:r,visible:r.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName||"undefined"==typeof document)return!1;var e=document.cookie;return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&"undefined"!=typeof document&&(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.doCurrentPageComplete(!1)},t.prototype.hasErrorsOnNavigate=function(e){var t=this;if(this.ignoreValidation||!this.isEditMode)return!1;var r=function(r){r||t.doCurrentPageCompleteCore(e)};return"onComplete"===this.checkErrorsMode?!!this.isLastPage&&!1!==this.hasErrors(!0,!0,r):!1!==this.hasCurrentPageErrors(r)},t.prototype.checkForAsyncQuestionValidation=function(e,t){var r=this;this.clearAsyncValidationQuesitons();for(var n=this,o=0;o<e.length;o++)!function(){if(e[o].isRunningValidators){var i=e[o];i.onCompletedAsyncValidators=function(e){r.onCompletedAsyncQuestionValidators(i,t,e)},n.asyncValidationQuesitons.push(e[o])}}();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons)for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null;this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t,r){if(r){if(this.clearAsyncValidationQuesitons(),t(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var n=this.currentPage.questions,o=0;o<n.length;o++)if(n[o]!==e&&n[o].errors.length>0)return;e.focus(!0)}return}for(var i=this.asyncValidationQuesitons,s=0;s<i.length;s++)if(i[s].isRunningValidators)return;t(!1)},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.hasPageErrors=function(e,t){return e||(e=this.activePage),!!e&&(!!this.checkIsPageHasErrors(e)||!!t&&!!this.checkForAsyncQuestionValidation(e.questions,function(e){return t(e)})&&void 0)},t.prototype.hasErrors=function(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=!1),r&&(e=!0);for(var n=this.visiblePages,o=null,i=!1,s=0;s<n.length;s++)n[s].hasErrors(e,!1)&&(o||(o=n[s]),i=!0);if(t&&o){this.currentPage=o;for(var a=o.questions,s=0;s<a.length;
1s++)if(a[s].errors.length>0){a[s].focus(!0);break}}return i||!r?i:!!this.checkForAsyncQuestionValidation(this.getAllQuestions(),function(e){return r(e)})&&void 0},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel)for(var t=e.elements,r=0;r<t.length;r++)this.ensureUniqueNames(t[r]);else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getPageByName(e)})},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getPanelByName(e)})},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getQuestionByName(e)})},t.prototype.ensureUniqueElementName=function(e,t){var r=t(e.name);if(r&&r!=e){for(var n=this.getNewName(e.name);t(n);)var n=this.getNewName(e.name);e.name=n}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var r=e.substring(0,t),n=0;return t<e.length&&(n=parseInt(e.substring(t))),r+ ++n},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var r=e.hasErrors(!0,t);return this.fireValidatedErrorsOnPage(e),r},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,r=[],n=[],o=0;o<t.length;o++){var i=t[o];if(i.errors.length>0){r.push(i);for(var s=0;s<i.errors.length;s++)n.push(i.errors[s])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:r,errors:n,page:e})}},t.prototype.prevPage=function(){if(this.isFirstPage||"starting"===this.state)return!1;this.resetNavigationButton();var e=this.visiblePages,t=e.indexOf(this.currentPage);return this.currentPage=e[t-1],!0},t.prototype.completeLastPage=function(){var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){this.mouseDownPage&&this.mouseDownPage!==this.activePage||(this.mouseDownPage=null,this.nextPage())},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){return this.resetNavigationButton(),!(this.hasErrorsOnNavigate(!0)||this.doServerValidation(!0,!0))&&(this.showPreviewCore(),!0)},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.isShowingPreview=!1,o.Helpers.isValueEmpty(e)&&this.visiblePageCount>0&&(e=this.visiblePageCount-1),null!==e&&(this.currentPage=e))},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e.originalPage)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(e?(this.currentPage.passed=!0,this.doComplete()):(this.doNextPage(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted",!1)},set:function(e){this.setPropertyValue("firstPageIsStarted",e)}
1,enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){this.isDesignMode||(this.isShowingPreview?(this.runningPages=this.pages.slice(0,this.pages.length),this.setupPagesForPageModes(!0)):(this.runningPages&&this.restoreOrigionalPages(this.runningPages),this.runningPages=void 0),this.runConditions(),this.updateAllElementsVisibility(this.pages),this.updateVisibleIndexes(),this.currentPageNo=0)},t.prototype.onQuestionsOnPageModeChanged=function(e){this.isShowingPreview||("standard"==this.questionsOnPageMode||this.isDesignMode?(this.origionalPages&&this.restoreOrigionalPages(this.origionalPages),this.origionalPages=void 0):(e&&"standard"!=e||(this.origionalPages=this.pages.slice(0,this.pages.length)),this.setupPagesForPageModes(this.isSinglePage)),this.runConditions(),this.updateVisibleIndexes())},t.prototype.restoreOrigionalPages=function(e){this.questionHashesClear(),this.pages.splice(0,this.pages.length);for(var t=0;t<e.length;t++)this.pages.push(e[t])},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},t.prototype.setupPagesForPageModes=function(t){this.questionHashesClear();var r=this.getPageStartIndex();e.prototype.startLoadingFromJson.call(this);var n=this.createPagesForQuestionOnPageMode(t,r),o=this.pages.length-r;this.pages.splice(r,o);for(var i=0;i<n.length;i++)this.pages.push(n[i]);e.prototype.endLoadingFromJson.call(this);for(var i=0;i<n.length;i++)n[i].setSurveyImpl(this,!0);this.doElementsOnLoad(),this.updateCurrentPage()},t.prototype.createPagesForQuestionOnPageMode=function(e,t){return e?[this.createSinglePage(t)]:this.createPagesForEveryQuestion(t)},t.prototype.createSinglePage=function(e){var t=this.createNewPage("all");t.setSurveyImpl(this);for(var r=e;r<this.pages.length;r++){var n=this.pages[r],o=i.Serializer.createClass("panel");o.originalPage=n,t.addPanel(o);var s=new i.JsonObject().toJsonObject(n);new i.JsonObject().toObject(s,o),this.showPageTitles||(o.title="")}return t},t.prototype.createPagesForEveryQuestion=function(e){for(var t=[],r=e;r<this.pages.length;r++){var n=this.pages[r];n.setWasShown(!0);for(var o=0;o<n.elements.length;o++){var s=n.elements[o],a=i.Serializer.createClass(s.getType());if(a){var l=new i.JsonObject;l.lightSerializing=!0;var u=l.toJsonObject(n),c=i.Serializer.createClass(n.getType());c.fromJSON(u),c.name=s.name,c.setSurveyImpl(this),t.push(c);var p=new i.JsonObject().toJsonObject(s);c.addElement(a),new i.JsonObject().toObject(p,a);for(var d=0;d<c.questions.length;d++)this.questionHashesAdded(c.questions[d])}}}return t},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage)},t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPage||!this.showPrevButton||"running"!==this.state)return!1;var e=this.visiblePages[this.currentPageNo-1];return 0>=this.getPageMaxTimeToFinish(e)},t.prototype.calcIsShowNextButton=function(){return"running"===this.state&&!this.isLastPage&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&("running"===this.state&&(this.isLastPage&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||"preview"===e)},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state&&this.isLastPage},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){for(var e=this.pages,t=0;t<e.length;t++)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){for(var e=this.pages,t=e.length-1;t>=0;t--)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e){void 0===e&&(e=!1);var t={allowComplete:!0,isCompleteOnTrigger:e};if(this.onCompleting.fire(this,t),!t.allowComplete)return this.isCompleted=!1,!1;var r=this.hasCookie;this.stopTimer(),this.setCompleted(),this.clearUnusedValues(),this.setCookie();var n=this,o=!1,i={isCompleteOnTrigger:e,showDataSaving:function(e){o=!0,n.setCompletedState("saving",e)},showDataSavingError:function(e){n.setCompletedState("error",e)},showDataSavingSuccess:function(e){n.setCompletedState("success",e),n.navigateTo()},showDataSavingClear:function(e){n.setCompletedState("","")}};return this.onComplete.fire(this,i),!r&&this.surveyPostId&&this.sendResult(),o||this.navigateTo(),!0},t.prototype.start=function(){return!(!this.firstPageIsStarted||this.checkIsPageHasErrors(this.startedPage,!0))&&(this.isStartedState=!1,this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0)},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,t){var r=this,n={data:{},errors:{},survey:this,complete:function(){r.completeServerValidation(n,t)}};if(e&&"onComplete"===this.checkErrorsMode)n.data=this.data;else for(var o=this.activePage.questions,i=0;i<o.length;i++){var s=o[i];if(s.visible){var a=this.getValue(s.getValueName());this.isValueEmpty(a)||(n.data[s.getValueName()]=a)}}return n},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t){var r=this;if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty||!e&&"onComplete"===this.checkErrorsMode)return!1;this.setIsValidatingOnServer(!0);var n="function"==typeof this.onServerValidateQuestions;return this.serverValidationEventCount=n?1:this.onServerValidateQuestions.length,n?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,t)):this.onServerValidateQuestions.fireByCreatingOptions(this,function(){return r.createServerValidationOptions(e,t)}),!0},t.prototype.completeServerValidation=function(e,t){if((!(this.serverValidationEventCount>1)||(this.serverValidationEventCount--,!e||!e.errors||0!==Object.keys(e.errors).length))&&(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),e||e.survey)){var r=e.survey,n=!1;if(e.errors){var o=this.focusOnFirstError;for(var i in e.errors){var s=r.getQuestionByName(i);s&&s.errors&&(n=!0,s.addError(new h.CustomError(e.errors[i],this)),o&&(o=!1,s.page&&(this.currentPage=s.page),s.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}n||(t?this.showPreviewCore():r.isLastPage?r.doComplete():r.doNextPage())}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,r=t.indexOf(this.currentPage);this.currentPage=t[r+1]}},t.prototype.setCompleted=function(){this.isCompleted=!0},t.prototype.canBeCompleted=function(){v.settings.changeNavigationButtonsOnCompleteTrigger&&(this.canBeCompletedByTrigger||(this.canBeCompletedByTrigger=!0,this.updateButtonsVisibility()))},Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e):""}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.processHtml(this.completedBeforeHtml)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.processHtml(this.loadingHtml)},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return a.SurveyElement.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return e||(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){void 0===e&&(e=!1),!this.isCalculatingProgressText&&(e&&"pages"==this.progressBarType&&this.onProgressText.isEmpty||(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1))},t.prototype.getProgressText=function(){if(!this.isDesignMode&&null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onProgressText.isEmpty){var r=this.getProgressInfo();e.questionCount=r.questionCount,e.answeredQuestionCount=r.answeredQuestionCount,e.requiredQuestionCount=r.requiredQuestionCount,e.requiredAnsweredQuestionCount=r.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var r=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",r,e.questionCount)}var n=this.isDesignMode?this.pages:this.visiblePages,o=n.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",o,n.length)},t.prototype.getRootCss=function(){return new w.CssClassBuilder().append(this.css.root).append(this.css.rootMobile,this.isMobile).append(this.css.rootReadOnly,"display"===this.mode).toString()},t.prototype.afterRenderSurvey=function(e){var t=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=a.SurveyElement.GetFirstNonTextElement(e));var r=e,n=this.css.variables;if(n){var o=Number.parseFloat(window.getComputedStyle(r).getPropertyValue(n.mobileWidth));if(o){var i=!1;this.resizeObserver=new ResizeObserver(function(){i=!i&&!!Object(b.isContainerVisible)(r)&&t.processResponsiveness(r.offsetWidth,o)}),this.resizeObserver.observe(r)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e})},t.prototype.processResponsiveness=function(e,t){var r=e<t;return this.isMobile!==r&&(this.setIsMobile(r),!0)},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})}
1,t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.updateChoiceItemCss=function(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)},t.prototype.afterRenderPage=function(e){var t=this;this.isDesignMode||setTimeout(function(){return t.scrollToTopOnPageChange(!t.isFirstPageRendering)},1),this.isFirstPageRendering=!1,this.onAfterRenderPage.isEmpty||this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){this.onAfterRenderHeader.isEmpty||this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var r=e.inputId;if(r&&t.id!==r&&"undefined"!=typeof document){var n=document.getElementById(r);n&&(t=n)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach(function(e){return e.surveyChoiceItemVisibilityChange()})},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,t,r){var n={question:e,item:t,visible:r};return this.onShowingChoiceItem.fire(this,n),n.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixBeforeRowAdded.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,r){var n=this.getQuestionsByValueName(e);if(n){for(var o=0;o<n.length;o++){var i=n[o].getQuestionFromArray(t,r);if(i)return i}return null}},t.prototype.matrixRowRemoved=function(e,t,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:r})},t.prototype.matrixRowRemoving=function(e,t,r){var n={question:e,rowIndex:t,row:r,allow:!0};return this.onMatrixRowRemoving.fire(this,n),n.allow},t.prototype.matrixAllowRemoveRow=function(e,t,r){var n={question:e,rowIndex:t,row:r,allow:!0};return this.onMatrixAllowRemoveRow.fire(this,n),n.allow},t.prototype.matrixCellCreating=function(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)},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.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return"onValueChanging"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return"onValueChanged"===this.checkErrorsMode},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new h.CustomError(t.error,this):null},t.prototype.dynamicPanelAdded=function(e,t,r){if(this.isLoadingFromJson||this.updateVisibleIndexes(),!this.onDynamicPanelAdded.isEmpty){var n=e.panels;void 0===t&&(t=n.length-1,r=n[t]),this.onDynamicPanelAdded.fire(this,{question:e,panel:r,panelIndex:t})}},t.prototype.dynamicPanelRemoved=function(e,t,r){for(var n=r?r.questions:[],o=0;o<n.length;o++)n[o].clearOnDeletingContainer();this.updateVisibleIndexes(),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:r})},t.prototype.dynamicPanelRemoving=function(e,t,r){var n={question:e,panelIndex:t,panel:r,allow:!0};return this.onDynamicPanelRemoving.fire(this,n),n.allow},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,this.onDynamicPanelItemValueChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return e.allow=!0,this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,t,r){var n={question:r,panel:e,actions:t};return this.onGetPanelFooterActions.fire(this,n),n.actions},t.prototype.getUpdatedElementTitleActions=function(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)},t.prototype.getUpdatedQuestionTitleActions=function(e,t){var r={question:e,titleActions:t};return this.onGetQuestionTitleActions.fire(this,r),r.titleActions},t.prototype.getUpdatedPanelTitleActions=function(e,t){var r={panel:e,titleActions:t};return this.onGetPanelTitleActions.fire(this,r),r.titleActions},t.prototype.getUpdatedPageTitleActions=function(e,t){var r={page:e,titleActions:t};return this.onGetPageTitleActions.fire(this,r),r.titleActions},t.prototype.getUpdatedMatrixRowActions=function(e,t,r){var n={question:e,actions:r,row:t};return this.onGetMatrixRowActions.fire(this,n),n.actions},t.prototype.scrollElementToTop=function(e,t,r,n){var o={element:e,question:t,page:r,elementId:n,cancel:!1};this.onScrollingElementToTop.fire(this,o),o.cancel||a.SurveyElement.ScrollElementToTop(o.elementId)},t.prototype.uploadFiles=function(e,t,r,n){this.onUploadFiles.isEmpty?n("error",r):this.onUploadFiles.fire(this,{question:e,name:t,files:r||[],callback:n}),this.surveyPostId&&this.uploadFilesCore(t,r,n)},t.prototype.downloadFile=function(e,t,r,n){this.onDownloadFile.isEmpty&&n&&n("success",r.content||r),this.onDownloadFile.fire(this,{question:e,name:t,content:r.content||r,fileValue:r,callback:n})},t.prototype.clearFiles=function(e,t,r,n,o){this.onClearFiles.isEmpty&&o&&o("success",r),this.onClearFiles.fire(this,{question:e,name:t,value:r,fileName:n,callback:o})},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.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new p.dxSurveyService},t.prototype.uploadFilesCore=function(e,t,r){var n=this,o=[];t.forEach(function(e){r&&r("uploading",e),n.createSurveyService().sendFile(n.surveyPostId,e,function(n,i){n?(o.push({content:i,file:e}),o.length===t.length&&r&&r("success",o)):r&&r("error",{response:i,file:e})})})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var r=this.createNewPage(e);return this.addPage(r,t),r},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);t<0||(this.pages.splice(t,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var r=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return r?r[0]:null},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var r=this.getQuestionsByValueName(e,t);return r?r[0]:null},t.prototype.getQuestionsByValueName=function(e,t){void 0===t&&(t=!1);var r=(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e];return r||null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];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 o=this.getQuestionByName(e[n],t);o&&r.push(o)}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]);
1n&&t.push(n)}return t},t.prototype.getAllQuestions=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=[],n=0;n<this.pages.length;n++)this.pages[n].addQuestionsToList(r,e,t);return r},t.prototype.getQuizQuestions=function(){for(var e=[],t=this.getPageStartIndex(),r=t;r<this.pages.length;r++)if(this.pages[r].isVisible)for(var n=this.pages[r].questions,o=0;o<n.length;o++){var i=n[o];i.quizQuestionCount>0&&e.push(i)}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 o=r[n].name;if(t&&(o=o.toLowerCase()),o==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=[],n=0;n<this.pages.length;n++)this.pages[n].addPanelsIntoList(r,e,t);return r},t.prototype.createNewPage=function(e){var t=i.Serializer.createClass("page");return t.name=e,t},t.prototype.questionOnValueChanging=function(e,t){if(this.editingObj){var r=i.Serializer.findProperty(this.editingObj.getType(),e);r&&(t=r.settingValue(this.editingObj,t))}if(this.onValueChanging.isEmpty)return t;var n={name:e,question:this.getQuestionByValueName(e),value:this.getUnbindValue(t),oldValue:this.getValue(e)};return this.onValueChanging.fire(this,n),n.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var n=0;n<r.length;n++){var o=r[n].value;(o===t&&Array.isArray(o)&&this.editingObj||!this.isTwoValueEquals(o,t))&&r[n].updateValueFromSurvey(t)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&("onValueChanged"===this.checkErrorsMode||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var t=e.getAllErrors().length,r=e.hasErrors(!0,{isOnValueChanged:!this.isValidateOnValueChanging}),n=this.checkErrorsMode.indexOf("Value")>-1;return e.page&&n&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),r},t.prototype.checkErrorsOnValueChanging=function(e,t){if(this.isLoadingFromJson)return!1;var r=this.getQuestionsByValueName(e);if(!r)return!1;for(var n=!1,o=0;o<r.length;o++){var i=r[o];this.isTwoValueEquals(i.valueForSurvey,t)||(i.value=t),this.checkQuestionErrorOnValueChangedCore(i)&&(n=!0),n=n||i.errors.length>0}return n},t.prototype.notifyQuestionOnValueChanged=function(e,t){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var n=0;n<r.length;n++){var o=r[n];this.checkQuestionErrorOnValueChanged(o),o.onSurveyValueChanged(t),this.onValueChanged.fire(this,{name:e,question:o,value:t})}else this.onValueChanged.fire(this,{name:e,question:null,value:t});this.isDisposed||(this.checkElementsBindings(e,t),this.notifyElementsOnAnyValueOrVariableChanged(e))}},t.prototype.checkElementsBindings=function(e,t){this.isRunningElementsBindings=!0;for(var r=0;r<this.pages.length;r++)this.pages[r].checkBindings(e,t);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e){if("processing"!==this.isEndLoadingFromJson){if(this.isRunningConditions){this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;return}for(var t=0;t<this.pages.length;t++)this.pages[t].onAnyValueChanged(e);this.isEndLoadingFromJson||this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++){var r=e[t],n=r.getValueName();r.updateValueFromSurvey(this.getValue(n)),r.requireUpdateCommentValue&&r.updateCommentFromSurvey(this.getComment(n))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(){for(var e=this.getCurrentPageQuestions(!0),t={},r=0;r<e.length;r++){var n=e[r].getValueName();t[n]=this.getValue(n)}this.addCalculatedValuesIntoFilteredValues(t),this.checkTriggers(t,!0)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],r=this.currentPage;if(!r)return t;for(var n=0;n<r.questions.length;n++){var o=r.questions[n];(e||o.visible)&&o.name&&t.push(o)}return t},t.prototype.checkTriggers=function(e,t){if(!this.isCompleted&&0!=this.triggers.length&&!this.isDisplayMode){if(this.isTriggerIsRunning){for(var r in this.triggerValues=this.getFilteredValues(),e)this.triggerKeys[r]=e[r];return}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();var n=this.getFilteredProperties(),o=this.canBeCompletedByTrigger;this.canBeCompletedByTrigger=!1;for(var i=0;i<this.triggers.length;i++)this.triggers[i].checkExpression(t,this.triggerKeys,this.triggerValues,n);o!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues}
1,enumerable:!1,configurable:!0}),t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<v.settings.maximumConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.isValueChangedOnRunningCondition=!0):this.runConditions()},t.prototype.runConditionsCore=function(t){for(var r=this.pages,n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].resetCalculation();for(var n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].doCalculation(this.calculatedValues,this.conditionValues,t);e.prototype.runConditionCore.call(this,this.conditionValues,t);for(var n=0;n<r.length;n++)r[n].runCondition(this.conditionValues,t)},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPage);if(!(t<=e+1)){for(var r=e+1;r<t;r++)if(this.pages[r].isVisible){this.currentPage=this.pages[r];break}}},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){if((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,r){n.surveyShowDataSaving&&(e?n.setCompletedState("success",""):n.setCompletedState("error",t)),n.onSendResult.fire(n,{success:e,response:t,request:r})},this.clientId,r)}}},t.prototype.getResult=function(e,t){var r=this;this.createSurveyService().getResult(e,t,function(e,t,n,o){r.onGetResult.fire(r,{success:e,data:t,dataList:n,response:o})})},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,o){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.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson){if(this.isRunningConditions&&this.onVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty){this.conditionUpdateVisibleIndexes=!0;return}if(this.isRunningElementsBindings){this.updateVisibleIndexAfterBindings=!0;return}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);this.updateProgressText(!0)}},t.prototype.updatePageVisibleIndexes=function(e){this.updateButtonsVisibility();for(var t=0,r=0;r<this.pages.length;r++){var n=this.pages[r],o=n.isVisible&&(r>0||!n.isStarted);n.visibleIndex=o?t++:-1,n.num=o?n.visibleIndex+1:-1}},t.prototype.fromJSON=function(e){if(e){this.questionHashesClear(),this.jsonErrors=null;var t=new i.JsonObject;t.toObject(e,this),t.errors.length>0&&(this.jsonErrors=t.errors),this.onStateAndCurrentPageChanged(),this.updateState()}},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),this.onQuestionsOnPageModeChanged("standard"),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&this.doComplete(),this.doElementsOnLoad(),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;
1e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new x.ActionContainer;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,t="sv-nav-btn",r=new C.Action({id:"sv-nav-start",visible:new s.ComputedUpdater(function(){return e.isShowStartingPage}),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:t}),n=new C.Action({id:"sv-nav-prev",visible:new s.ComputedUpdater(function(){return e.isShowPrevButton}),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.prevPage()},component:t}),o=new C.Action({id:"sv-nav-next",visible:new s.ComputedUpdater(function(){return e.isShowNextButton}),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:t}),i=new C.Action({id:"sv-nav-preview",visible:new s.ComputedUpdater(function(){return e.isPreviewButtonVisible}),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:t}),a=new C.Action({id:"sv-nav-complete",visible:new s.ComputedUpdater(function(){return e.isCompleteButtonVisible}),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.completeLastPage()},component:t});return this.updateNavigationItemCssCallback=function(){r.innerCss=e.cssNavigationStart,n.innerCss=e.cssNavigationPrev,o.innerCss=e.cssNavigationNext,i.innerCss=e.cssNavigationPreview,a.innerCss=e.cssNavigationComplete},[r,n,o,i,a]},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if("pageno"===e){var t=this.currentPage;return null!=t?this.visiblePages.indexOf(t)+1:0}return"pagecount"===e?this.visiblePageCount:"correctedanswers"===e||"correctanswers"===e||"correctedanswercount"===e?this.getCorrectedAnswerCount():"incorrectedanswers"===e||"incorrectanswers"===e||"incorrectedanswercount"===e?this.getInCorrectedAnswerCount():"questioncount"===e?this.getQuizQuestionCount():void 0},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){var r=this.getBuiltInVariableValue(t);if(void 0!==r){e.isExists=!0,e.value=r;return}if("locale"===t){e.isExists=!0,e.value=this.locale?this.locale:d.surveyLocalization.defaultLocale;return}var n=this.getVariable(t);if(void 0!==n){e.isExists=!0,e.value=n;return}var o=this.getFirstName(t);if(o){e.isExists=!0;var i=o.getValueName().toLowerCase();t=(t=i+t.substring(i.length)).toLocaleLowerCase();var s={};s[i]=e.returnDisplayValue?o.getDisplayValue(!1,void 0):o.value,e.value=new c.ProcessValue().getValue(t,s);return}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var t=this.getValue(e.name);if(void 0!==t){e.isExists=!0,e.value=t;return}var r=new c.ProcessValue,n=r.getFirstName(e.name);if(n!==e.name){var i={},s=this.getValue(n);o.Helpers.isValueEmpty(s)&&(s=this.getVariable(n)),o.Helpers.isValueEmpty(s)||(i[n]=s,e.value=r.getValue(e.name,i),e.isExists=r.hasValue(e.name,i))}},t.prototype.getFirstName=function(e){var t;e=e.toLowerCase();do t=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e);while(!t&&!!e);return t},t.prototype.reduceFirstName=function(e){var t=e.lastIndexOf("."),r=e.lastIndexOf("[");if(t<0&&r<0)return"";var n=Math.max(t,r);return e.substring(0,n)},t.prototype.clearUnusedValues=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();this.clearInvisibleQuestionValues()},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);
1if(!t)return!1;for(var r=0;r<t.length;r++)if(t[r].isVisible&&t[r].isParentVisible)return!0;return!1},t.prototype.questionCountByValueName=function(e){var t=this.getQuestionsByValueName(e);return t?t.length:0},t.prototype.clearInvisibleQuestionValues=function(){for(var e="none"===this.clearInvisibleValues?"none":"onComplete",t=this.getAllQuestions(),r=0;r<t.length;r++)t[r].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return this.isValueEmpty(t)&&(e.indexOf(".")>-1||e.indexOf("[")>-1)&&new c.ProcessValue().hasValue(e,this.variablesHash)?new c.ProcessValue().getValue(e,this.variablesHash):t},t.prototype.setVariable=function(e,t){e&&(e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),this.runConditionOnValueChanged(e,t),this.onVariableChanged.fire(this,{name:e,value:t}))},t.prototype.getVariableNames=function(){var e=[];for(var t in this.variablesHash)e.push(t);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:o.Helpers.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n=!0);var o=t;if((n&&(o=this.questionOnValueChanging(e,t)),!(this.isValidateOnValueChanging&&this.checkErrorsOnValueChanging(e,o)))&&!(!this.editingObj&&this.isValueEqual(e,o)&&this.isTwoValueEquals(o,t))){var i=this.getValue(e);this.isValueEmpty(o)?this.deleteDataValueCore(this.valuesHash,e):(o=this.getUnbindValue(o),this.setDataValueCore(this.valuesHash,e,o)),this.updateOnSetValue(e,o,i,r,n)}},t.prototype.updateOnSetValue=function(e,t,r,n,o){if(void 0===n&&(n=!1),void 0===o&&(o=!0),this.updateQuestionValue(e,t),!0!==n&&!this.isDisposed&&!this.isRunningElementsBindings){var i={};i[e]={newValue:t,oldValue:r},this.runConditionOnValueChanged(e,t),this.checkTriggers(i,!1),o&&this.notifyQuestionOnValueChanged(e,t),"text"!==n&&this.tryGoNextPageAutomatic(e)}},t.prototype.isValueEqual=function(e,t){(""===t||void 0===t)&&(t=null);var r=this.getValue(e);return((""===r||void 0===r)&&(r=null),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")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),this.isLoadingFromJson||(this.updateProgressText(),this.updateCurrentPage()),this.onPageAdded.fire(this,{page:e})},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.generateNewName=function(e,t){for(var r={},n=0;n<e.length;n++)r[e[n].name]=!0;for(var o=1;r[t+o];)o++;return t+o},t.prototype.tryGoNextPageAutomatic=function(e){if(!this.isEndLoadingFromJson&&this.goNextPageAutomatic&&this.currentPage){var t=this.getQuestionByValueName(e);if(!(!t||t&&(!t.visible||!t.supportGoNextPageAutomatic())||t.hasErrors(!1)&&!t.supportGoNextPageError())){var r=this.getCurrentPageQuestions();if(!(0>r.indexOf(t))){for(var n=0;n<r.length;n++)if(r[n].hasInput&&r[n].isEmpty())return;!this.checkIsCurrentPageHasErrors(!1)&&(this.isLastPage?!0===this.goNextPageAutomatic&&this.allowCompleteSurveyAutomatic&&(this.isShowPreviewBeforeComplete?this.showPreview():this.completeLastPage()):this.nextPage())}}}},t.prototype.getComment=function(e){return this.getValue(e+this.commentPrefix)||""},t.prototype.setComment=function(e,t,r){if(void 0===r&&(r=!1),t||(t=""),!this.isTwoValueEquals(t,this.getComment(e))){var n=e+this.commentPrefix;this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,n):this.setDataValueCore(this.valuesHash,n,t);var o=this.getQuestionsByValueName(e);if(o)for(var i=0;i<o.length;i++)o[i].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[i]);r||this.runConditionOnValueChanged(e,this.getValue(e)),"text"!==r&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByName(e);s&&this.onValueChanged.fire(this,{name:n,question:s,value:t})}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){return"onHidden"==this.clearInvisibleValues||this.isClearValueOnHiddenContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHiddenContainer",{get:function(){return"onHiddenContainer"==this.clearInvisibleValues&&!this.isShowingPreview&&!this.runningPages},enumerable:!1,configurable:!0}),t.prototype.questionVisibilityChanged=function(e,t){this.updateVisibleIndexes(),this.onVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){this.isLoadingFromJson||((t&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),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.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),this.currentPage||this.updateCurrentPage(),this.updateVisibleIndexes(),this.setCalculatedWidthModeUpdater(),this.isMovingQuestion&&(!this.isDesignMode||v.settings.supportCreatorV2)||this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parentPanel:r,rootPanel:n})},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,t,r){this.questionHashesRemoved(e,t,r),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson)for(var t=e.questions,r=0;r<t.length;r++)this.questionHashesAdded(t[r])},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,r){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),r&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,r),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,r.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,r){var n=e[r];if(n){var n=e[r];0>n.indexOf(t)&&n.push(t)}else e[r]=[t]},t.prototype.questionHashRemovedCore=function(e,t,r){var n=e[r];if(n){var o=n.indexOf(t);o>-1&&n.splice(o,1),0==n.length&&delete e[r]}},t.prototype.panelAdded=function(e,t,r,n){e.name||(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),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}),this.updateLazyRenderingRowsOnRemovingElements()},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.CustomError(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.CustomError(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.processTextEx(e,t,!1).text},t.prototype.processTextEx=function(e,t,r){var n={text:this.processTextCore(e,t,r),hasAllValuesOnLastRun:!0};return n.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,n},t.prototype.processTextCore=function(e,t,r){return(void 0===r&&(r=!1),this.isDesignMode)?e:this.textPreProcessor.process(e,t,r)},t.prototype.getSurveyMarkdownHtml=function(e,t,r){var n={element:e,text:t,name:r,html:null};return this.onTextMarkdown.fire(this,n),n.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,r=0;r<e.length;r++)t+=e[r].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.getInCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),r=0,n={question:null,result:!1,correctAnswers:0,incorrectAnswers:0},o=0;o<t.length;o++){var i=t[o],s=i.quizQuestionCount;if(n.question=i,n.correctAnswers=i.correctAnswerCount,n.incorrectAnswers=s-n.correctAnswers,n.result=n.question.isAnswerCorrect(),this.onIsAnswerCorrect.fire(this,n),e){if(n.result||n.correctAnswers<s){var a=n.correctAnswers;0==a&&n.result&&(a=1),r+=a}}else(!n.result||n.incorrectAnswers<s)&&(r+=n.incorrectAnswers)}return r},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")}
1,set:function(e){this.setPropertyValue("showTimerPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.timerModel.isRunning&&"top"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.timerModel.isRunning&&"bottom"==this.showTimerPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){return this.getPropertyValue("showTimerPanelMode")},set:function(e){this.setPropertyValue("showTimerPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new s.ComputedUpdater(function(){return e.calculateWidthMode()}),this.calculatedWidthMode=this.calculatedWidthModeUpdater},t.prototype.calculateWidthMode=function(){if("auto"==this.widthMode){var e=!1;return this.pages.forEach(function(t){t.needResponsiveWidth()&&(e=!0)}),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width");return e&&!isNaN(e)&&(e+="px"),"static"==this.getPropertyValue("calculatedWidthMode")&&e||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){if(this.currentPage){var e,t,r=this.getTimerInfo(),n=r.spent,o=r.limit,i=r.minorSpent,s=r.minorLimit;e=o>0?this.getDisplayClockTime(o-n):this.getDisplayClockTime(n),void 0!==i&&(t=s>0?this.getDisplayClockTime(s-i):this.getDisplayClockTime(i))}return{majorText:e,minorText:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new m.LocalizableString(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var t=e.timeSpent,r=this.timeSpent,n=this.getPageMaxTimeToFinish(e),o=this.maxTimeToFinish;return"page"==this.showTimerPanelMode?{spent:t,limit:n}:"survey"==this.showTimerPanelMode?{spent:r,limit:o}:n>0&&o>0?{spent:t,limit:n,minorSpent:r,minorLimit:o}:n>0?{spent:t,limit:n,minorSpent:r}:o>0?{spent:r,limit:o,minorSpent:t}:{spent:t,minorSpent:r}},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),o=this.getDisplayTime(n),i=this.getDisplayTime(this.maxTimeToFinish);return"page"==this.showTimerPanelMode?this.getTimerInfoPageText(e,t,o):"survey"==this.showTimerPanelMode?this.getTimerInfoSurveyText(r,i):"all"==this.showTimerPanelMode?n<=0&&this.maxTimeToFinish<=0?this.getLocalizationFormatString("timerSpentAll",t,r):n>0&&this.maxTimeToFinish>0?this.getLocalizationFormatString("timerLimitAll",t,o,r,i):this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(r,i):""},t.prototype.getTimerInfoPageText=function(e,t,r){return this.getPageMaxTimeToFinish(e)>0?this.getLocalizationFormatString("timerLimitPage",t,r):this.getLocalizationFormatString("timerSpentPage",t,r)},t.prototype.getTimerInfoSurveyText=function(e,t){var r=this.maxTimeToFinish>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(r,e,t)},t.prototype.getDisplayClockTime=function(e){var t=Math.floor(e/60),r=e%60,n=r.toString();return r<10&&(n="0"+n),"".concat(t,":").concat(n)},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),r=e%60,n="";return(t>0&&(n+=t+" "+this.getLocalizationString("timerMin")),n&&0==r)?n:(n&&(n+=" "),n+r+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue}
1,enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.timerModel.start()},t.prototype.startTimerFromUI=function(){"none"!=this.showTimerPanel&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.getPropertyValue("maxTimeToFinish",0)},set:function(e){this.setPropertyValue("maxTimeToFinish",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.getPropertyValue("maxTimeToFinishPage",0)},set:function(e){this.setPropertyValue("maxTimeToFinishPage",e)},enumerable:!1,configurable:!0}),t.prototype.getPageMaxTimeToFinish=function(e){return!e||e.maxTimeToFinish<0?0:e.maxTimeToFinish>0?e.maxTimeToFinish:this.maxTimeToFinishPage},t.prototype.doTimer=function(e){if(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())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=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){if(e)if(r)this.setVariable(e,t);else{var n=this.getQuestionByName(e);if(n)n.value=t;else{var o=new c.ProcessValue,i=o.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getQuestionByName(i))return;var s=this.getUnbindValue(this.getFilteredValues());o.setValue(s,e,t),this.setValue(i,s[i])}}}},t.prototype.copyTriggerValue=function(e,t){if(e&&t){var r=new c.ProcessValue().getValue(t,this.getFilteredValues());this.setTriggerValue(e,r,!1)}},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},t.prototype.focusQuestion=function(e){var t=this.getQuestionByName(e,!0);return!!t&&!!t.isVisible&&!!t.page&&(this.isFocusingQuestion=!0,this.currentPage=t.page,t.focus(),this.isFocusingQuestion=!1,this.isCurrentPageRendering=!1,!0)},t.prototype.getElementWrapperComponentName=function(e,r){return"logo-image"===r?"sv-logo-image":t.TemplateRendererComponentName},t.prototype.getQuestionContentWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getRowWrapperComponentName=function(e){return t.TemplateRendererComponentName},t.prototype.getElementWrapperComponentData=function(e,t){return e},t.prototype.getRowWrapperComponentData=function(e){return e}
1,t.prototype.getItemValueWrapperComponentName=function(e,r){return t.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e,t){return e},t.prototype.getMatrixCellTemplateData=function(e){return e.question},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var t=[],r=0;r<this.pages.length;r++)this.pages[r].searchText(e,t);return t},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.dispose=function(){if(this.currentPage=null,this.destroyResizeObserver(),e.prototype.dispose.call(this),this.editingObj=null,this.pages){for(var t=0;t<this.pages.length;t++)this.pages[t].setSurveyImpl(void 0),this.pages[t].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.TemplateRendererComponentName="sv-template-renderer",t.stylesManager=null,t.platform="unknown",P([Object(i.property)()],t.prototype,"completedCss",void 0),P([Object(i.property)()],t.prototype,"containerCss",void 0),P([Object(i.property)({defaultValue:!1})],t.prototype,"showBrandInfo",void 0),P([Object(i.property)()],t.prototype,"_isMobile",void 0),P([Object(i.property)()],t.prototype,"rootCss",void 0),P([Object(i.property)()],t.prototype,"calculatedWidthMode",void 0),t}(a.SurveyElementCore);i.Serializer.addClass("survey",[{name:"locale",choices:function(){return d.surveyLocalization.getLocales(!0)},onGetValue:function(e){return e.locale==d.surveyLocalization.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean",default:!0},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem"},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page"},{name:"questions",alternativeName:"elements",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,r){e.pages.splice(0,e.pages.length);var n=e.addNewPage("");r.toObject({questions:t},n)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue"},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem"},{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:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","top","bottom","both"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions","buttons"]},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(e,t){"autogonext"!==t&&(t=o.Helpers.isTwoValueEquals(t,!0)),e.setPropertyValue("goNextPageAutomatic",t)}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onValueChanging","onComplete"]},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"startSurveyText",serializationProperty:"locStartSurveyText"},{name:"pagePrevText",serializationProperty:"locPagePrevText"},{name:"pageNextText",serializationProperty:"locPageNextText"},{name:"completeText",serializationProperty:"locCompleteText"},{name:"previewText",serializationProperty:"locPreviewText"},{name:"editText",serializationProperty:"locEditText"},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["singlePage","standard","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"maxTimeToFinish:number",default:0,minValue:0},{name:"maxTimeToFinishPage:number",default:0,minValue:0},{name:"showTimerPanel",default:"none",choices:["none","top","bottom"]},{name:"showTimerPanelMode",default:"all",choices:["all","page","survey"]},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},"width",{name:"showBrandInfo:boolean",default:!1,visible:!1}])},
1"./src/surveyProgress.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgressModel",function(){return o});var n=r("./src/utils/cssClassBuilder.ts"),o=function(){function e(){}return e.getProgressTextInBarCss=function(e){return new n.CssClassBuilder().append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return new n.CssClassBuilder().append(e.progressText).append(e.progressTextUnderBar).toString()},e}()},
1"./src/surveyProgressButtons.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyProgressButtonsModel",function(){return o});var n=r("./src/utils/cssClassBuilder.ts"),o=function(){function e(e){this.survey=e}return e.prototype.isListElementClickable=function(e){return!this.survey.onServerValidateQuestions||!!this.survey.onServerValidateQuestions.isEmpty||"onComplete"===this.survey.checkErrorsMode||e<=this.survey.currentPageNo+1},e.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return new n.CssClassBuilder().append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},e.prototype.getScrollButtonCss=function(e,t){return new n.CssClassBuilder().append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},e.prototype.clickListElement=function(e){if(!this.survey.isDesignMode){if(e<this.survey.currentPageNo)this.survey.currentPageNo=e;else if(e>this.survey.currentPageNo)for(var t=this.survey.currentPageNo;t<e&&this.survey.nextPage();t++);}},e}()},
1"./src/surveyStrings.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"surveyLocalization",function(){return o}),r.d(t,"surveyStrings",function(){return i});var n=r("./src/localization/english.ts"),o={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},supportedLocales:[],get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(val){"cz"===val&&(val="cs"),this.currentLocaleValue=val},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(val){"cz"===val&&(val="cs"),this.defaultLocaleValue=val},getLocaleStrings:function(e){return this.locales[e]},getCurrentStrings:function(e){var t=e&&this.locales[e];return t||(t=this.currentLocale?this.locales[this.currentLocale]:this.locales[this.defaultLocale]),t||(t=this.locales[this.defaultLocale]),t||(t=this.locales.en),t},getString:function(e,t){void 0===t&&(t=null);var r=t;t=t||this.currentLocale||this.defaultLocale;var n=this.getCurrentStrings(t);if(n[e])return n[e];var o=t?t.indexOf("-"):-1;if(o>-1)return this.getString(e,t.substring(0,o));var i=(n=this.locales[this.defaultLocale])[e];return(void 0===i&&(i=this.locales.en[e]),void 0===i)?this.onGetExternalString(e,r):i},getLocales:function(e){void 0===e&&(e=!1);var t=[];t.push("");var r=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){r={};for(var n=0;n<this.supportedLocales.length;n++)r[this.supportedLocales[n]]=!0}for(var i in r)e&&i==this.defaultLocale||t.push(i);var s=function(e){if(!e)return"";var t=o.localeNames[e];return t||(t=e),t.toLowerCase()};return t.sort(function(e,t){var r=s(e),n=s(t);return r===n?0:r<n?-1:1}),t},onGetExternalString:function(e,t){}},i=n.englishStrings;o.locales.en=n.englishStrings,o.localeNames.en="english"},
1"./src/surveyTimerModel.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SurveyTimerModel",function(){return c});var n,o=r("./src/base.ts"),i=r("./src/surveytimer.ts"),s=r("./src/jsonobject.ts"),a=r("./src/utils/cssClassBuilder.ts"),l=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),u=function(e,t,r,n){var o,i=arguments.length,s=i<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--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},c=function(e){function t(t){var r=e.call(this)||this;return r.timerFunc=null,r.surveyValue=t,r.onCreating(),r}return l(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;this.survey&&(this.isRunning||this.isDesignMode||(this.survey.onCurrentPageChanged.add(function(){e.update()}),this.timerFunc=function(){e.doTimer()},this.setIsRunning(!0),this.update(),i.SurveyTimer.instance.start(this.timerFunc)))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),i.SurveyTimer.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(){var e=this.survey.currentPage;e&&(e.timeSpent=e.timeSpent+1),this.spent=this.spent+1,this.update(),this.onTimer&&this.onTimer(e)},t.prototype.updateProgress=function(){var e=this,t=this.survey.timerInfo,r=t.spent,n=t.limit;n?0==r?(this.progress=0,setTimeout(function(){e.progress=Math.floor((r+1)/n*100)/100},0)):r!==n&&(this.progress=Math.floor((r+1)/n*100)/100):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return void 0!==this.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return new a.CssClassBuilder().append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return new a.CssClassBuilder().append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),u([Object(s.property)()],t.prototype,"text",void 0),u([Object(s.property)()],t.prototype,"progress",void 0),u([Object(s.property)()],t.prototype,"clockMajorText",void 0),u([Object(s.property)()],t.prototype,"clockMinorText",void 0),u([Object(s.property)({defaultValue:0})],t.prototype,"spent",void 0),t}(o.Base)},
1"./src/surveytimer.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"surveyTimerFunctions",function(){return o}),r.d(t,"SurveyTimer",function(){return i});var n=r("./src/base.ts"),o={setTimeout:function(e){return"undefined"==typeof window?0:window.setTimeout(e,1e3)},clearTimeout:function(e){"undefined"!=typeof window&&window.clearTimeout(e)}},i=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimer=new n.Event}return Object.defineProperty(e,"instance",{get:function(){return e.instanceValue||(e.instanceValue=new e),e.instanceValue},enumerable:!1,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimer.add(e),this.timerId<0&&(this.timerId=o.setTimeout(function(){t.doTimer()})),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimer.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(o.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;if((this.onTimer.isEmpty||0==this.listenerCounter)&&(this.timerId=-1),!(this.timerId<0)){var t=this.timerId;this.onTimer.fire(this,{}),t===this.timerId&&(this.timerId=o.setTimeout(function(){e.doTimer()}))}},e.instanceValue=null,e}()},
1"./src/svgbundle.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SvgIconRegistry",function(){return o}),r.d(t,"SvgRegistry",function(){return i}),r.d(t,"SvgBundleViewModel",function(){return n});var n,o=function(){function e(){this.icons={},this.iconPrefix="icon-"}return e.prototype.registerIconFromSymbol=function(e,t){this.icons[e]=t},e.prototype.registerIconFromSvgViaElement=function(e,t,r){void 0===r&&(r=this.iconPrefix);var n=document.createElement("div");n.innerHTML=t;var o=document.createElement("symbol"),i=n.querySelector("svg");o.innerHTML=i.innerHTML;for(var s=0;s<i.attributes.length;s++)o.setAttributeNS("http://www.w3.org/2000/svg",i.attributes[s].name,i.attributes[s].value);o.id=r+e,this.registerIconFromSymbol(e,o.outerHTML)},e.prototype.registerIconFromSvg=function(e,t,r){void 0===r&&(r=this.iconPrefix);var n="<svg ",o="</svg>",i=(t=t.trim()).toLowerCase();return i.substring(0,n.length)===n&&i.substring(i.length-o.length,i.length)===o&&(this.registerIconFromSymbol(e,'<symbol id="'+r+e+'" '+t.substring(n.length,i.length-o.length)+"</symbol>"),!0)},e.prototype.registerIconsFromFolder=function(e){var t=this;e.keys().forEach(function(r){t.registerIconFromSvg(r.substring(2,r.length-4).toLowerCase(),e(r))})},e.prototype.iconsRenderedHtml=function(){var e=this;return Object.keys(this.icons).map(function(t){return e.icons[t]}).join("")},e.prototype.renderIcons=function(){var e="sv-icon-holder-global-container";if(!document.getElementById(e)){var t=document.createElement("div");t.id=e,t.innerHTML="<svg>"+this.iconsRenderedHtml()+"</svg>",t.style.display="none",document.head.insertBefore(t,document.head.firstChild)}},e}(),i=new o,s=r("./src/images sync \\.svg$");i.registerIconsFromFolder(s)},
1"./src/template-renderer.ts":function(e,t,r){"use strict";r.r(t)},
1"./src/textPreProcessor.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"TextPreProcessorItem",function(){return i}),r.d(t,"TextPreProcessorValue",function(){return s}),r.d(t,"TextPreProcessor",function(){return a}),r.d(t,"QuestionTextProcessor",function(){return l});var n=r("./src/helpers.ts"),o=r("./src/conditionProcessValue.ts"),i=function(){},s=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},a=function(){function e(){this._unObservableValues=[void 0]}return Object.defineProperty(e.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(e){this._unObservableValues[0]=e},enumerable:!1,configurable:!0}),e.prototype.process=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),this.hasAllValuesOnLastRunValue=!0,!e||!this.onProcess)return e;for(var o=this.getItems(e),i=o.length-1;i>=0;i--){var a=o[i],l=this.getName(e.substring(a.start+1,a.end));if(l){var u=new s(l,t);if(this.onProcess(u),!u.isExists){u.canProcess&&(this.hasAllValuesOnLastRunValue=!1);continue}n.Helpers.isValueEmpty(u.value)&&(this.hasAllValuesOnLastRunValue=!1);var c=n.Helpers.isValueEmpty(u.value)?"":u.value;r&&(c=encodeURIComponent(c)),e=e.substring(0,a.start)+c+e.substring(a.end+1)}}return e},e.prototype.processValue=function(e,t){var r=new s(e,t);return this.onProcess&&this.onProcess(r),r},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),e.prototype.getItems=function(e){for(var t=[],r=e.length,n=-1,o="",s=0;s<r;s++)if("{"==(o=e[s])&&(n=s),"}"==o){if(n>-1){var a=new i;a.start=n,a.end=s,t.push(a)}n=-1}return t},e.prototype.getName=function(e){if(e)return e.trim()},e}(),l=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new a,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.getParentTextProcessor=function(){return null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getQuestionDisplayText=function(e){return e.displayValue},e.prototype.getProcessedTextValue=function(e){if(!(!e||this.onCustomProcessText(e))){var t=new o.ProcessValue().getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".","");var t=new o.ProcessValue().getFirstName(e.name),r=this.getQuestionByName(t),n={};if(r)n[t]=e.returnDisplayValue?this.getQuestionDisplayText(r):r.value;else{var i=this.panel?this.getValues():null;i&&(n[t]=i[t])}e.value=new o.ProcessValue().getValue(e.name,n)}}},e.prototype.processText=function(e,t){return this.survey&&this.survey.isDesignMode?e:(e=this.textPreProcessor.process(e,t),e=this.processTextCore(this.getParentTextProcessor(),e,t),this.processTextCore(this.survey,e,t))},e.prototype.processTextEx=function(e,t){e=this.processText(e,t);var r=this.textPreProcessor.hasAllValuesOnLastRun,n={hasAllValuesOnLastRun:!0,text:e};return this.survey&&(n=this.survey.processTextEx(e,t,!1)),n.hasAllValuesOnLastRun=n.hasAllValuesOnLastRun&&r,n},e.prototype.processTextCore=function(e,t,r){return e?e.processText(t,r):t},e}()},
1"./src/trigger.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Trigger",function(){return d}),r.d(t,"SurveyTrigger",function(){return h}),r.d(t,"SurveyTriggerVisible",function(){return m}),r.d(t,"SurveyTriggerComplete",function(){return f}),r.d(t,"SurveyTriggerSetValue",function(){return g}),r.d(t,"SurveyTriggerSkip",function(){return y}),r.d(t,"SurveyTriggerRunExpression",function(){return v}),r.d(t,"SurveyTriggerCopyValue",function(){return b});var n,o=r("./src/helpers.ts"),i=r("./src/base.ts"),s=r("./src/jsonobject.ts"),a=r("./src/conditions.ts"),l=r("./src/expressions/expressions.ts"),u=r("./src/conditionProcessValue.ts"),c=r("./src/settings.ts"),p=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),d=function(e){function t(){var t=e.call(this)||this;return t.usedNames=[],t.registerPropertyChangedHandlers(["operator","value","name"],function(){t.oldPropertiesChanged()}),t.registerPropertyChangedHandlers(["expression"],function(){t.onExpressionChanged()}),t}return p(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=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:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},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:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.checkExpression=function(e,t,r,n){void 0===n&&(n=null),this.isExecutingOnNextPage=e,this.canBeExecuted(e)&&this.isCheckRequired(t)&&this.conditionRunner&&this.perform(r,n)},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},t.prototype.perform=function(e,t){var r=this;this.conditionRunner.onRunComplete=function(n){r.triggerResult(n,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,r){e?(this.onSuccess(t,r),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=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.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return!this.name||this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+l.OperandMaker.toOperandString(this.value)},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=new u.ProcessValue,r=0;r<this.usedNames.length;r++){var n=this.usedNames[r];if(e.hasOwnProperty(n))return!0;var o=t.getFirstName(n);if(e.hasOwnProperty(o)){if(n==o)return!0;var i=e[o];if(void 0!=i){if(!i.hasOwnProperty("oldValue")||!i.hasOwnProperty("newValue"))return!0;var s={};s[o]=i.oldValue;var a=t.getValue(n,s);s[o]=i.newValue;var l=t.getValue(n,s);return!this.isTwoValueEquals(a,l)}}}return!1},t.prototype.buildUsedNames=function(){if(!this.conditionRunner){var e=this.expression;e||(e=this.buildExpression()),e&&(this.conditionRunner=new a.ConditionRunner(e),this.hasFunction=this.conditionRunner.hasFunction(),this.usedNames=this.conditionRunner.getVariables())}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator}
1,enumerable:!1,configurable:!0}),t.operatorsValue=null,t}(i.Base),h=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return p(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(d),m=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return p(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}(h),f=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"completetrigger"},t.prototype.isRealExecution=function(){return!c.settings.executeCompleteTriggerOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,t){this.owner&&(this.isRealExecution()?this.owner.setCompleted():this.owner.canBeCompleted())},t}(h),g=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(t,r,n){if(e.prototype.onPropertyValueChanged.call(this,t,r,n),"setToName"===t){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable",!1)},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(h),y=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!c.settings.executeSkipTriggerOnValueChanged===e},t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(h),v=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){var r=this;if(this.owner&&this.runExpression){var n=new a.ExpressionRunner(this.runExpression);n.canRun&&(n.onRunComplete=function(e){r.onCompleteRunExpression(e)},n.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,o.Helpers.convertValToQuestionVal(e),!1)},t}(h),b=function(e){function t(){return e.call(this)||this}return p(t,e),t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromN
1ame},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName)},t}(h);s.Serializer.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),s.Serializer.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),s.Serializer.addClass("visibletrigger",["pages:pages","questions:questions"],function(){return new m},"surveytrigger"),s.Serializer.addClass("completetrigger",[],function(){return new f},"surveytrigger"),s.Serializer.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],function(){return new g},"surveytrigger"),s.Serializer.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"}],function(){return new b},"surveytrigger"),s.Serializer.addClass("skiptrigger",[{name:"!gotoName:question"}],function(){return new y},"surveytrigger"),s.Serializer.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],function(){return new v},"surveytrigger")},
1"./src/utils/cssClassBuilder.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"CssClassBuilder",function(){return n});var n=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}()},
1"./src/utils/devices.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"IsMobile",function(){return s}),r.d(t,"IsTouch",function(){return l});var n,o=!1,i=null;"undefined"!=typeof navigator&&"undefined"!=typeof window&&navigator&&window&&(i=navigator.userAgent||navigator.vendor||window.opera),(n=i)&&("MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform?o=!0:(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(n)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(n.substring(0,4)))&&(o=!0));var s=o||!1,a=!1;"undefined"!=typeof window&&(a="ontouchstart"in window||navigator.maxTouchPoints>0);var l=s&&a},
1"./src/utils/dragOrClickHelper.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DragOrClickHelper",function(){return o});var n=r("./src/entries/core.ts"),o=function(){function e(e){var t=this;this.dragHandler=e,this.onPointerUp=function(e){t.clearListeners()},this.tryToStartDrag=function(e){if(t.currentX=e.pageX,t.currentY=e.pageY,!t.isMicroMovement)return t.clearListeners(),t.dragHandler(t.pointerDownEvent,t.currentTarget,t.itemModel),!0}}return e.prototype.onPointerDown=function(e,t){if(n.IsTouch)return void this.dragHandler(e,e.currentTarget,t);this.pointerDownEvent=e,this.currentTarget=e.currentTarget,this.startX=e.pageX,this.startY=e.pageY,document.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=t},Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<10&&t<10},enumerable:!1,configurable:!0}),e.prototype.clearListeners=function(){this.pointerDownEvent&&(document.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},e}()},
1"./src/utils/popup.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PopupUtils",function(){return n});var n=function(){function e(){}return e.calculatePosition=function(e,t,r,n,o,i,s){void 0===s&&(s="flex");var a=e.left,l=e.top;return"flex"===s&&(a="center"==o?(e.left+e.right-r)/2:"left"==o?e.left-r:e.right),l="middle"==n?(e.top+e.bottom-t)/2:"top"==n?e.top-t:e.bottom,i&&"center"!=o&&"middle"!=n&&("top"==n?l+=e.height:l-=e.height),{left:Math.round(a),top:Math.round(l)}},e.updateVerticalDimensions=function(t,r,n){var o;return t<0?o={height:r+t,top:0}:r+t>n&&(o={height:Math.min(r,n-t-e.bottomIndent),top:t}),o},e.updateHorizontalDimensions=function(e,t,r,n,o,i){void 0===o&&(o="flex"),void 0===i&&(i={left:0,right:0}),t+=i.left+i.right;var s=void 0,a=e;return"center"===n&&("fixed"===o?(e+t>r&&(s=r-e),a-=i.left):e<0?(a=i.left,s=Math.min(t,r)):t+e>r&&(a=Math.max(a=r-t,i.left),s=Math.min(t,r))),"left"===n&&e<0&&(a=i.left,s=Math.min(t,r)),"right"===n&&t+e>r&&(s=r-e),{width:s-i.left-i.right,left:a}},e.updateVerticalPosition=function(e,t,r,n,o){var i=t-(e.top+(n?e.height:0)),s=t+e.bottom-(n?e.height:0)-o;return i>0&&s<=0&&"top"==r?r="bottom":s>0&&i<=0&&"bottom"==r?r="top":s>0&&i>0&&(r=i<s?"top":"bottom"),r},e.calculatePopupDirection=function(e,t){var r;return"center"==t&&"middle"!=e?r=e:"center"!=t&&(r=t),r},e.calculatePointerTarget=function(e,t,r,n,o,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var a={};return"center"!=o?(a.top=e.top+e.height/2,a.left=e[o]):"middle"!=n&&(a.top=e[n],a.left=e.left+e.width/2),a.left=Math.round(a.left-r),a.top=Math.round(a.top-t),"left"==o&&(a.left-=i+s),"center"===o&&(a.left-=i),a},e.bottomIndent=16,e}()},
1"./src/utils/responsivity-manager.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ResponsivityManager",function(){return a}),r.d(t,"VerticalResponsivityManager",function(){return l});var n,o=r("./node_modules/timers-browserify/main.js"),i=r("./src/utils/utils.ts"),s=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a=function(){function e(e,t,r,n){void 0===n&&(n=null);var i=this;this.container=e,this.model=t,this.itemsSelector=r,this.dotsItemSize=n,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.recalcMinDimensionConst=!0,this.getComputedStyle=window.getComputedStyle.bind(window),this.model.updateCallback=function(e){e?i.isInitialized=!1:Object(o.setTimeout)(function(){i.process()},1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(e){return i.process()}),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth},e.prototype.calcMinDimension=function(e){var t=this.minDimensionConst;return e.iconSize&&this.recalcMinDimensionConst&&(t=2*e.iconSize+this.paddingSizeConst),e.canShrink?t+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this,t=this.model.actions;this.container.querySelectorAll(this.itemsSelector).forEach(function(r,n){var o=t[n];e.calcActionDimensions(o,r)})},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return Object(i.isContainerVisible)(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){this.isInitialized||(this.model.setActionsMode("large"),this.calcItemsSizes(),this.isInitialized=!0);var t=this.dotsItemSize;if(!this.dotsItemSize){var r=null==(e=this.container)?void 0:e.querySelector(".sv-dots");t=r&&this.calcItemSize(r)||this.dotsSizeConst}this.model.fit(this.getAvailableSpace(),t)}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect()},e}(),l=function(e){function t(t,r,n,o,i){void 0===i&&(i=40);var s=e.call(this,t,r,n,o)||this;return s.minDimensionConst=i,s.recalcMinDimensionConst=!1,s}return s(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(a)},
1"./src/utils/tooltip.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"TooltipManager",function(){return n});var n=function(){function e(e){var t=this;this.tooltipElement=e,this.onMouseMoveCallback=function(e){t.tooltipElement.style.left=e.clientX+12+"px",t.tooltipElement.style.top=e.clientY+12+"px"},this.targetElement=e.parentElement,this.targetElement.addEventListener("mousemove",this.onMouseMoveCallback)}return e.prototype.dispose=function(){this.targetElement.removeEventListener("mousemove",this.onMouseMoveCallback)},e}()},
1"./src/utils/utils.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"unwrap",function(){return f}),r.d(t,"getSize",function(){return g}),r.d(t,"doKey2ClickBlur",function(){return v}),r.d(t,"doKey2ClickUp",function(){return b}),r.d(t,"doKey2ClickDown",function(){return C}),r.d(t,"sanitizeEditableContent",function(){return E}),r.d(t,"mergeValues",function(){return function e(t,r){if(r&&t&&"object"==typeof r)for(var n in t){var o=t[n];o&&"object"==typeof o?(r[n]&&"object"==typeof r[n]||(r[n]={}),e(o,r[n])):r[n]=o}}}),r.d(t,"getElementWidth",function(){return S}),r.d(t,"isContainerVisible",function(){return V}),r.d(t,"classesToSelector",function(){return P}),r.d(t,"compareVersions",function(){return o}),r.d(t,"confirmAction",function(){return i}),r.d(t,"detectIEOrEdge",function(){return a}),r.d(t,"detectIEBrowser",function(){return s}),r.d(t,"loadFileFromBase64",function(){return l}),r.d(t,"isMobile",function(){return u}),r.d(t,"isElementVisible",function(){return c}),r.d(t,"findScrollableParent",function(){return p}),r.d(t,"scrollElementByChildId",function(){return d}),r.d(t,"createSvg",function(){return m}),r.d(t,"getIconNameFromProxy",function(){return h}),r.d(t,"increaseHeightByContent",function(){return x}),r.d(t,"getOriginalEvent",function(){return w}),r.d(t,"preventDefaults",function(){return _}),r.d(t,"findParentByClassNames",function(){return function e(t,r){if(t)if(r.every(function(e){return!e||t.classList.contains(e)}))return t;else return e(t.parentElement,r)}});var n=r("./src/settings.ts");function o(e,t){for(var r=/(\.0+)+$/,n=e.replace(r,"").split("."),o=t.replace(r,"").split("."),i=Math.min(n.length,o.length),s=0;s<i;s++){var a=parseInt(n[s],10)-parseInt(o[s],10);if(a)return a}return n.length-o.length}function i(e){return n.settings&&n.settings.confirmActionFunc?n.settings.confirmActionFunc(e):confirm(e)}function s(){if("undefined"==typeof window)return!1;var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/");return t>-1||r>-1}function a(){if("undefined"==typeof window)return!1;if(void 0===a.isIEOrEdge){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/");a.isIEOrEdge=e.indexOf("Edge/")>0||r>0||t>0}return a.isIEOrEdge}function l(e,t){try{for(var r=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(r.length),i=new Uint8Array(o),s=0;s<r.length;s++)i[s]=r.charCodeAt(s);var a=new Blob([o],{type:n});"undefined"!=typeof window&&window.navigator&&window.navigator.msSaveBlob&&window.navigator.msSaveOrOpenBlob(a,t)}catch(e){}}function u(){return"undefined"!=typeof window&&void 0!==window.orientation}function c(e,t){if(void 0===t&&(t=0),"undefined"==typeof document)return!1;var r=e.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight),o=-t,i=n+t;return Math.max(o,r.top)<=Math.min(i,r.bottom)}function p(e){return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:p(e.parentElement):document.documentElement}function d(e){if(document){var t=document.getElementById(e);if(t){var r=p(t);r&&r.dispatchEvent(new CustomEvent("scroll"))}}}function h(e){return e?n.settings.customIcons[e]||e:e}function m(e,t,r,n,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||r||16)+"px");var s=o.childNodes[0],a=h(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];if(i)l||(l=document.createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l));else{l&&o.removeChild(l);return}l.textContent=i}}function f(e){return"function"!=typeof e?e:e()}function g(e){if("number"==typeof e)return""+e+"px";if(e&&"string"==typeof e&&e.length>0){var t=e[e.length-1];if(t>="0"&&t<="9"||"."==t)try{var r=parseFloat(e);return""+r+"px"}catch(e){}}return e}var y="sv-focused--by-key";function v(e){var t=e.target;t&&t.classList&&t.classList.remove(y)}function b(e,t){if(!e.target||"true"!==e.target.contentEditable){var r=e.target;if(r){var n=e.which||e.keyCode;9===n?r.classList&&!r.classList.contains(y)&&r.classList.add(y):13===n||32===n?r.click&&r.click():(!t||t.processEsc)&&27===n&&r.blur&&r.blur()}}}function C(e,t){if(void 0===t&&(t={processEsc:!0}),!e.target||"true"!==e.target.contentEditable){var r=e.which||e.keyCode,n=[13,32];t.processEsc&&n.push(27),-1!==n.indexOf(r)&&e.preventDefault()}}function x(e,t){if(e){t||(t=function(e){return window.getComputedStyle(e)});var r=t(e);e.style.height="auto",e.style.height=e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px"}}function w(e){return e.originalEvent||e}function _(e){e.preventDefault(),e.stopPropagation()}function P(e){return e.replace(/\s*?([\w-]+)\s*?/g,".$1")}function S(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function V(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function E(e){if(window.getSelection&&document.createRange&&e.childNodes.length>0){var t=document.getSelection(),r=t.getRangeAt(0);r.setStart(r.endContainer,r.endOffset),r.setEndAfter(e.lastChild),t.removeAllRanges(),t.addRange(r);var n=t.toString().replace(/\n/g,"").length;e.innerText=e.innerText.replace(/\n/g,""),(r=document.createRange()).setStart(e.childNodes[0],e.innerText.length-n),r.collapse(!0),t.removeAllRanges(),t.addRange(r)}}},
1"./src/validator.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ValidatorResult",function(){return c}),r.d(t,"SurveyValidator",function(){return p}),r.d(t,"ValidatorRunner",function(){return d}),r.d(t,"NumericValidator",function(){return h}),r.d(t,"TextValidator",function(){return m}),r.d(t,"AnswerCountValidator",function(){return f}),r.d(t,"RegexValidator",function(){return g}),r.d(t,"EmailValidator",function(){return y}),r.d(t,"ExpressionValidator",function(){return v});var n,o=r("./src/base.ts"),i=r("./src/error.ts"),s=r("./src/jsonobject.ts"),a=r("./src/conditions.ts"),l=r("./src/helpers.ts"),u=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),c=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},p=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return u(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,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,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var t=this,r=new i.CustomError(this.getErrorText(e),this.errorOwner);return r.onUpdateErrorTextCallback=function(r){return r.text=t.getErrorText(e)},r},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(o.Base),d=function(){function e(){}return e.prototype.run=function(e){var t=this,r=[],n=null,o=null;this.prepareAsyncValidators();for(var i=[],s=e.getValidators(),a=0;a<s.length;a++){var l=s[a];!n&&l.isValidateAllValues&&(n=e.getDataFilteredValues(),o=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&i.push(e.error),t.onAsyncCompleted){for(var r=0;r<t.asyncValidators.length;r++)if(t.asyncValidators[r].isRunning)return;t.onAsyncCompleted(i)}})}s=e.getValidators();for(var a=0;a<s.length;a++){var l=s[a],u=l.validate(e.validatedValue,e.getValidatorTitle(),n,o);u&&u.error&&r.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),r},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),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.minValue=t,n.maxValue=r,n}return u(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),this.isValueEmpty(e))return null;if(!l.Helpers.isNumber(e))return new c(null,new i.RequreNumericError(null,this.errorOwner));var o=new c(parseFloat(e));return null!==this.minValue&&this.minValue>o.value||null!==this.maxValue&&this.maxValue<o.value?(o.error=this.createCustomError(t),o):"number"==typeof e?null:o},t.prototype.getDefaultErrorText=function(e){var t=e||this.getLocalizationString("value");return null!==this.minValue&&null!==this.maxValue?this.getLocalizationFormatString("numericMinMax",t,this.minValue,this.maxValue):null!==this.minValue?this.getLocalizationFormatString("numericMin",t,this.minValue):this.getLocalizationFormatString("numericMax",t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")}
1,set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(p),m=function(e){function t(){return e.call(this)||this}return u(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,r,n){return(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),this.isValueEmpty(e))?null:this.allowDigits||/^[A-Za-z\s]*$/.test(e)?this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new c(null,this.createCustomError(t)):null:new c(null,this.createCustomError(t))},t.prototype.getDefaultErrorText=function(e){return this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(p),f=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 u(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),null==e||e.constructor!=Array)return null;var o=e.length;return 0==o?null:this.minCount&&o<this.minCount?new c(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&o>this.maxCount?new c(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(p),g=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.regex=t,r}return u(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!this.regex||this.isValueEmpty(e))return null;var o=new RegExp(this.regex);if(Array.isArray(e))for(var i=0;i<e.length;i++){var s=this.hasError(o,e[i],t);if(s)return s}return this.hasError(o,e,t)},t.prototype.hasError=function(e,t,r){return e.test(t)?null:new c(t,this.createCustomError(r))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),t}(p),y=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return u(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,r,n){return(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!e||this.re.test(e))?null:new c(e,this.createCustomError(t))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(p),v=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.conditionRunner=null,r.isRunningValue=!1,r.expression=t,r}return u(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner()&&this.conditionRunner.isAsync},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,t,r,n){var o=this;if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!this.ensureConditionRunner())return null;this.conditionRunner.onRunComplete=function(r){o.isRunningValue=!1,o.onAsyncCompleted&&o.onAsyncCompleted(o.generateError(r,e,t))},this.isRunningValue=!0;var i=this.conditionRunner.run(r,n);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e,t))},t.prototype.generateError=function(e,t,r){return e?null:new c(t,this.createCustomError(r))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(){return this.conditionRunner?(this.conditionRunner.expression=this.expression,!0):!!this.expression&&(this.conditionRunner=new a.ConditionRunner(this.expression),!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(p);s.Serializer.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),s.Serializer.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new h},"surveyvalidator"),s.Serializer.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],function(){return new m},"surveyvalidator"),s.Serializer.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new f},"surveyvalidator"),s.Serializer.addClass("regexvalidator",["regex"],function(){return new g},"surveyvalidator"),s.Serializer.addClass("emailvalidator",[],function(){return new y},"surveyvalidator"),s.Serializer.addClass("expressionvalidator",["expression:condition"],function(){return new v},"surveyvalidator")}
1,react:function(t,r){t.exports=e},"react-dom":function(e,r){e.exports=t}},n={};function o(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,o),t.l=!0,t.exports}return o.m=r,o.c=n,o.d=function(e,t,r){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(o.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)o.d(r,n,(function(t){return e[t]}).bind(null,n));return r},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s="./src/entries/react.ts")}(r(14232),r(98477))}}]);
2//# sourceMappingURL=47a68864.00808c4ec4c3e56e.js.map

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