survey-core 1.9.11 → 1.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/defaultV2.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.11
2
+ * surveyjs - Survey JavaScript library v1.9.12
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/defaultV2.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.11
2
+ * surveyjs - Survey JavaScript library v1.9.12
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/modern.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.11
2
+ * surveyjs - Survey JavaScript library v1.9.12
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/modern.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.11
2
+ * surveyjs - Survey JavaScript library v1.9.12
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-core",
3
- "version": "1.9.11",
3
+ "version": "1.9.12",
4
4
  "description": "survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey metadata and results.",
5
5
  "keywords": [
6
6
  "Survey",
package/survey.core.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey JavaScript library. Platform independent (core) v1.9.11
2
+ * Type definition for Survey JavaScript library. Platform independent (core) v1.9.12
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.core.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.11
2
+ * surveyjs - Survey JavaScript library v1.9.12
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -7281,7 +7281,7 @@ __webpack_require__.r(__webpack_exports__);
7281
7281
 
7282
7282
  //import "../../modern.scss";
7283
7283
  var Version;
7284
- Version = "".concat("1.9.11");
7284
+ Version = "".concat("1.9.12");
7285
7285
 
7286
7286
 
7287
7287
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.11
2
+ * surveyjs - Survey JavaScript library v1.9.12
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -21,4 +21,4 @@
21
21
  * http://www.lemoda.net/maths/bezier-length/index.html
22
22
  *
23
23
  */
24
- function tr(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function nr(e,t,n,o){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=o}function or(e,t){var n=this,o=t||{};this.velocityFilterWeight=o.velocityFilterWeight||.7,this.minWidth=o.minWidth||.5,this.maxWidth=o.maxWidth||2.5,this.throttle="throttle"in o?o.throttle:16,this.minDistance="minDistance"in o?o.minDistance:5,this.throttle?this._strokeMoveUpdate=function(e,t,n){var o,r,i,s=null,a=0;n||(n={});var l=function(){a=!1===n.leading?0:Date.now(),s=null,i=e.apply(o,r),s||(o=r=null)};return function(){var u=Date.now();a||!1!==n.leading||(a=u);var c=t-(u-a);return o=this,r=arguments,c<=0||c>t?(s&&(clearTimeout(s),s=null),a=u,i=e.apply(o,r),s||(o=r=null)):s||!1===n.trailing||(s=setTimeout(l,c)),i}}(or.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=or.prototype._strokeUpdate,this.dotSize=o.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=o.penColor||"black",this.backgroundColor=o.backgroundColor||"rgba(0,0,0,0)",this.onBegin=o.onBegin,this.onEnd=o.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];n._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];n._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}R.addClass("image",[{name:"imageLink",serializationProperty:"locImageLink"},{name:"text",serializationProperty:"locText"},{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 er("")}),"nonvalue"),Wt.Instance.registerQuestion("image",(function(e){return new er(e)})),tr.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},tr.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},tr.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},nr.prototype.length=function(){for(var e=0,t=void 0,n=void 0,o=0;o<=10;o+=1){var r=o/10,i=this._point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this._point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){var a=i-t,l=s-n;e+=Math.sqrt(a*a+l*l)}t=i,n=s}return e},nr.prototype._point=function(e,t,n,o,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*o*(1-e)*e*e+r*e*e*e},or.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},or.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new Image,r=n.ratio||window.devicePixelRatio||1,i=n.width||this._canvas.width/r,s=n.height||this._canvas.height/r;this._reset(),o.src=e,o.onload=function(){t._ctx.drawImage(o,0,0,i,s)},this._isEmpty=!1},or.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return(t=this._canvas).toDataURL.apply(t,[e].concat(o))}},or.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},or.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)},or.prototype.isEmpty=function(){return this._isEmpty},or.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},or.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,o=this._createPoint(t,n),r=this._data[this._data.length-1],i=r&&r[r.length-1],s=i&&o.distanceTo(i)<this.minDistance;if(!i||!s){var a=this._addPoint(o),l=a.curve,u=a.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:o.x,y:o.y,time:o.time,color:this.penColor})}},or.prototype._strokeEnd=function(e){var t=this.points.length>2,n=this.points[0];if(!t&&n&&this._drawDot(n),n){var o=this._data[this._data.length-1],r=o[o.length-1];n.equals(r)||o.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},or.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},or.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)},or.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},or.prototype._createPoint=function(e,t,n){var o=this._canvas.getBoundingClientRect();return new tr(e-o.left,t-o.top,n||(new Date).getTime())},or.prototype._addPoint=function(e){var t=this.points;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var n=this._calculateCurveControlPoints(t[0],t[1],t[2]).c2,o=this._calculateCurveControlPoints(t[1],t[2],t[3]).c1,r=new nr(t[1],n,o,t[2]),i=this._calculateCurveWidths(r);return t.shift(),{curve:r,widths:i}}return{}},or.prototype._calculateCurveControlPoints=function(e,t,n){var o=e.x-t.x,r=e.y-t.y,i=t.x-n.x,s=t.y-n.y,a=(e.x+t.x)/2,l=(e.y+t.y)/2,u=(t.x+n.x)/2,c=(t.y+n.y)/2,p=Math.sqrt(o*o+r*r),h=Math.sqrt(i*i+s*s),d=h/(p+h),f=u+(a-u)*d,g=c+(l-c)*d,m=t.x-f,y=t.y-g;return{c1:new tr(a+m,l+y),c2:new tr(u+m,c+y)}},or.prototype._calculateCurveWidths=function(e){var t=e.startPoint,n=e.endPoint,o={start:null,end:null},r=this.velocityFilterWeight*n.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(r);return o.start=this._lastWidth,o.end=i,this._lastVelocity=r,this._lastWidth=i,o},or.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},or.prototype._drawPoint=function(e,t,n){var o=this._ctx;o.moveTo(e,t),o.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},or.prototype._drawCurve=function(e,t,n){var o=this._ctx,r=n-t,i=Math.floor(e.length());o.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,h=p*c,d=h*e.startPoint.x;d+=3*p*a*e.control1.x,d+=3*c*l*e.control2.x,d+=u*e.endPoint.x;var f=h*e.startPoint.y;f+=3*p*a*e.control1.y,f+=3*c*l*e.control2.y,f+=u*e.endPoint.y;var g=t+u*r;this._drawPoint(d,f,g)}o.closePath(),o.fill()},or.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},or.prototype._fromData=function(e,t,n){for(var o=0;o<e.length;o+=1){var r=e[o];if(r.length>1)for(var i=0;i<r.length;i+=1){var s=r[i],a=new tr(s.x,s.y,s.time),l=s.color;if(0===i)this.penColor=l,this._reset(),this._addPoint(a);else if(i!==r.length-1){var u=this._addPoint(a),c=u.curve,p=u.widths;c&&p&&t(c,p,l)}}else this._reset(),n(r[0])}},or.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,o=Math.max(window.devicePixelRatio||1,1),r=n.width/o,i=n.height/o,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttributeNS(null,"width",n.width),s.setAttributeNS(null,"height",n.height),this._fromData(t,(function(e,t,n){var o=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var r="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);o.setAttribute("d",r),o.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),o.setAttribute("stroke",n),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","round"),s.appendChild(o)}}),(function(t){var n=document.createElement("circle"),o="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",o),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),s.appendChild(n)}));var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+r+" "+i+'" width="'+r+'" 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>")},or.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,(function(e,n){return t._drawCurve(e,n.start,n.end)}),(function(e){return t._drawDot(e)})),this._data=e},or.prototype.toData=function(){return this._data};var rr=or,ir=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};var ar=function(e){function t(t){return e.call(this,t)||this}return ir(t,e),t.prototype.getCssRoot=function(t){return(new He).append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.width.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,n=e.getElementsByTagName("canvas")[0],o=e.getElementsByTagName("button")[0],r=new rr(n,{backgroundColor:"#ffffff"});this.isInputReadOnly&&r.off(),o.onclick=function(){t.value=void 0},this.readOnlyChangedCallback=function(){!t.allowClear||t.isInputReadOnly?(r.off(),o.style.display="none"):(r.on(),o.style.display="block")},r.penColor=this.penColor,r.backgroundColor=this.backgroundColor,r.onBegin=function(){t.isDrawingValue=!0,n.focus()},r.onEnd=function(){t.isDrawingValue=!1,t.updateValue()};var i=function(){var e=t.value;n.width=t.width||300,n.height=t.height||200,function(e){var t=e.getContext("2d"),n=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),o=e.width,r=e.height;e.width=o*n,e.height=r*n,e.style.width=o+"px",e.style.height=r+"px",t.scale(n,n)}(n),e?r.fromDataURL(e):r.clear()};i(),this.readOnlyChangedCallback(),this.signaturePad=r;var s=function(e,t){"width"!==t.name&&"height"!==t.name||i(),"value"===t.name&&i()};this.onPropertyChanged.add(s),this.signaturePad.propertyChangedHandler=s},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,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",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,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e)},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 s.getString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.needShowPlaceholder=function(){return!this.isDrawingValue&&this.isEmpty()},Object.defineProperty(t.prototype,"placeHolderText",{get:function(){return s.getString("signaturePlaceHolder")},enumerable:!1,configurable:!0}),sr([f({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),sr([f({defaultValue:""})],t.prototype,"dataFormat",void 0),t}(Mt);R.addClass("signaturepad",[{name:"width:number",category:"general",default:300},{name:"height:number",category:"general",default:200},{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 ar("")}),"question"),Wt.Instance.registerQuestion("signaturepad",(function(e){return new ar(e)}));var lr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ur=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},cr=function(e){function t(t,n,o){var r=e.call(this,o)||this;return r.data=t,r.panelItem=n,r.variableName=o,r}return lr(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 n=e.prototype.getQuestionByName.call(this,t);if(n)return n;var o=this.panelIndex;return o>-1?this.data.getSharedQuestionFromArray(t,o):null},t.prototype.onCustomProcessText=function(e){if(e.name==pr.IndexVariableName){var n=this.panelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(0==e.name.toLowerCase().indexOf(pr.ParentItemVariableName+".")){var o=this.data;if(o&&o.parentQuestion&&o.parent&&o.parent.data){var r=new t(o.parentQuestion,o.parent.data,pr.ItemVariableName),i=pr.ItemVariableName+e.name.substring(pr.ParentItemVariableName.length),s=r.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(Ut),pr=function(){function e(t,n){this.data=t,this.panelValue=n,this.textPreProcessor=new cr(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){this.data.setPanelItemData(this,e,t)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getValue(e+o.commentPrefix);return t||""},e.prototype.setComment=function(e,t,n){this.setValue(e+o.commentPrefix,t)},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},n=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var o in n)t[o]=n[o];if(t[e.ItemVariableName]=this.getAllValues(),this.data){t[e.IndexVariableName.toLowerCase()]=this.data.getItemIndex(this);var r=this.data;r&&r.parentQuestion&&r.parent&&(t[e.ParentItemVariableName]=r.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}(),hr=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}(),dr=function(e){function t(t){var n=e.call(this,t)||this;return n.loadingPanelCount=0,n.currentIndexValue=-1,n.isAddingNewPanels=!1,n.createNewArray("panels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(e){n.addOnPropertyChangedCallback(e),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.registerFunctionOnPropertyValueChanged("panelsState",(function(){n.setPanelsState()})),n}return lr(t,e),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),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,n){t.onTemplateElementPropertyChanged(e,n)})),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.useTemplatePanel&&0!=this.panels.length&&R.findProperty(e.getType(),t.name))for(var n=this.panels,o=0;o<n.length;o++){var r=n[o].getQuestionByName(e.name);r&&r[t.name]!==t.newValue&&(r[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.fireCallback(this.currentIndexChangedCallback))},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;else if(e!=this.panels.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var n=this.createNewPanel();this.panels.push(n),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?n.expand():n.title&&n.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),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 hr(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>o.panelMaximumPanelCount&&(e=o.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")},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.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.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 n="onSurvey"==this.showQuestionNumbers?t:0,o=0;o<this.panels.length;o++){var r=this.setPanelVisibleIndex(this.panels[o],n,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(n+=r)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:n-t},t.prototype.setPanelVisibleIndex=function(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&(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(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.useTemplatePanel)new pr(this,this.template),t.push(this.template);else for(var n=0;n<this.panelCount;n++)t.push(this.createNewPanel());(e=this.panels).splice.apply(e,ur([0,this.panels.length],t,!1)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!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)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},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 ft.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)return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},t.prototype.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!Tt(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){this.currentIndex<0||"list"!==this.renderMode&&this.currentPanel&&this.currentPanel.hasErrors()||this.currentIndex++},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 n=this.panels[t];this.panels.splice(t,1),this.updateBindings("panelCount",this.panelCount),!(e=this.value)||!Array.isArray(e)||t>=e.length||(this.isValueChangingInternally=!0,e.splice(t,1),this.value=e,this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,t,n),this.isValueChangingInternally=!1)}},t.prototype.getPanelIndex=function(e){if(r.isNumber(e))return e;for(var t=this.items,n=0;n<this.panels.length;n++)if(this.panels[n]===e||t[n]===e)return n;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,n=0;n<t.length;n++)t[n].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 n=this.value,r=n&&e<n.length?n[e]:null;if(r){var i=!1;for(var s in r){if(!this.getSharedQuestionFromArray(s,e))t.getQuestionByName(s)||this.iscorrectValueWithPostPrefix(t,s,o.commentPrefix)||this.iscorrectValueWithPostPrefix(t,s,o.matrixTotalValuePostFix)||(delete r[s],i=!0)}i&&(n[e]=r,this.value=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,n){return t.indexOf(n)===t.length-n.length&&!!e.getQuestionByName(t.substr(0,t.indexOf(n)))},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 n=!!t&&(!0===t||this.template.questions.indexOf(t)>-1),o=this.getValueName()+"[0].",r=this.processedTitle+"[0].",i=new Array,s=this.template.questions,a=0;a<s.length;a++)s[a].addConditionObjectsByContext(i,t);for(a=0;a<i.length;a++)e.push({name:o+i[a].name,text:r+i[a].text,question:i[a].question});if(n){var l=!0===t?this.getValueName()+".":"",u=!0===t?this.processedTitle+".":"";for(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,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t,n);var o=n,r=n.indexOf(".");r>-1&&(o=n.substr(0,r),n=n.substr(r+1));var i=this.template.getQuestionByName(o);return i?i.getConditionJson(t,n):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var n=0;n<this.panels.length;n++)this.panels[n].readOnly=t;e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){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(),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.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runPanelsCondition(t,n)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var n={};e&&e instanceof Object&&(n=JSON.parse(JSON.stringify(e))),this.parentQuestion&&this.parent&&(n[pr.ParentItemVariableName]=this.parent.getValue());for(var o=0;o<this.panels.length;o++){var i=this.getPanelItemData(this.panels[o].data),s=r.createCopy(n);s[pr.ItemVariableName.toLowerCase()]=i,s[pr.IndexVariableName.toLowerCase()]=o,this.panels[o].runCondition(s,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panels[n].onAnyValueChanged(t),this.panels[n].onAnyValueChanged(pr.ItemVariableName)},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var n,o=[],r=0;r<this.panels.length;r++)n=this.isValueDuplicated(this.panels[r],o,t,e)||n;return n},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),this.isValueChangingInternally)return!1;var o=!1;if(this.changingValueQuestion){o=this.changingValueQuestion.hasErrors(t,n);return o=this.hasKeysDuplicated(t,n)||o,this.updatePanelsContainsErrors(),o}var r=this.hasErrorInPanels(t,n);return e.prototype.hasErrors.call(this,t)||r},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.panels,o=0;o<n.length;o++)if(n[o].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.panels,n=0;n<t.length;n++){var o=[];t[n].addQuestionsToList(o,!0);for(var r=0;r<o.length;r++)if(!o[r].isAnswered)return!1}return!0},t.prototype.clearValueIfInvisibleCore=function(){for(var t=0;t<this.panels.length;t++)for(var n=this.panels[t].questions,o=0;o<n.length;o++)n[o].clearValueIfInvisible();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 n=this.panels[t].questions,o=0;o<n.length;o++)if(n[o].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.panels.length;n++)for(var o=this.panels[n].questions,r=0;r<o.length;r++){var i=o[r].getAllErrors();i&&i.length>0&&(t=t.concat(i))}return t},t.prototype.getDisplayValueCore=function(e,t){var n=this.getUnbindValue(t);if(!n||!Array.isArray(n))return n;for(var o=0;o<this.panels.length&&o<n.length;o++){var r=n[o];r&&(n[o]=this.getPanelDisplayValue(o,r,e))}return n},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;for(var o=this.panels[e],r=Object.keys(t),i=0;i<r.length;i++){var s=r[i],a=o.getQuestionByValueName(s);if(a||(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(n,t[s]);t[s]=l,n&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var n=!1,o=this.panels,r=[],i=0;i<o.length;i++)this.setOnCompleteAsyncInPanel(o[i]);for(i=0;i<o.length;i++){var s=o[i].hasErrors(e,!!t&&t.focuseOnFirstError,t);s=this.isValueDuplicated(o[i],r,t,e)||s,this.isRenderModeList||!s||n||(this.currentIndex=i),n=s||n}return n},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,n=e.questions,o=0;o<n.length;o++)n[o].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,n,o){if(!this.keyName)return!1;var r=e.getQuestionByValueName(this.keyName);if(!r||r.isEmpty())return!1;var i=r.value;this.changingValueQuestion&&r!=this.changingValueQuestion&&r.hasErrors(o,n);for(var s=0;s<t.length;s++)if(i==t[s])return o&&r.addError(new X(this.keyDuplicationError,this)),n&&!n.firstErrorQuestion&&(n.firstErrorQuestion=r),!0;return t.push(i),!1},t.prototype.createNewPanel=function(){var e=this.createAndSetupNewPanelObject(),t=this.template.toJSON();(new T).toObject(t,e),e.renderWidth="100%",e.updateCustomWidgets(),new pr(this,e),e.onFirstRendering();for(var n=e.questions,o=0;o<n.length;o++)n[o].setParentQuestion(this);return e.locStrsChanged(),e},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject();e.isInteractiveDesignElement=!1;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 R.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 n=0;n<this.panels.length;n++)this.panelUpdateValueFromSurvey(this.panels[n]);this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panelSurveyValueChanged(this.panels[n]);void 0===t&&this.setValueBasedOnPanelCount()},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var i=t[r];i.updateValueFromSurvey(n[i.getValueName()]),i.updateCommentFromSurvey(n[i.getValueName()+o.commentPrefix])}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),o=0;o<t.length;o++){var r=t[o];r.onSurveyValueChanged(n[r.getValueName()])}},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,n=t.indexOf(e),o=this.value;return n<0&&Array.isArray(o)&&o.length>t.length&&(n=t.length),n<0||!o||!Array.isArray(o)||o.length<=n?{}:o[n]},t.prototype.setPanelItemData=function(e,t,n){if(!(this.isSetPanelItemData&&this.isSetPanelItemData.indexOf(t)>-1)){this.isSetPanelItemData||(this.isSetPanelItemData=[]),this.isSetPanelItemData.push(t);var o=this.items;(r=o.indexOf(e))<0&&(r=o.length);var r,i=this.getUnbindValue(this.value);if(i&&Array.isArray(i)||(i=[]),i.length<=r)for(var s=i.length;s<=r;s++)i.push({});if(i[r]||(i[r]={}),this.isValueEmpty(n)?delete i[r][t]:i[r][t]=n,r>=0&&r<this.panels.length&&(this.changingValueQuestion=this.panels[r].getQuestionByValueName(t)),this.value=i,this.changingValueQuestion=null,this.survey){var a={question:this,panel:e.panel,name:t,itemIndex:r,itemValue:i[r],value:n};this.survey.dynamicPanelItemValueChanged(this,a)}(r=this.isSetPanelItemData.indexOf(t))>-1&&this.isSetPanelItemData.splice(r,1)}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.panels.map((function(e,n){var o={name:e.name||n,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){o[t.propertyName]=e[t.propertyName]})),o}))),n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.panels.length;n++){this.panels[n].updateElementCss(t)}},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.panelCount;return s.getString("panelDynamicProgressText").format(this.currentIndex+1,e)},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new He).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},t.prototype.getPanelWrapperCss=function(){return(new He).append(this.cssClasses.panelWrapper).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return(new He).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return(new He).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.renderMode).toString()},t.prototype.getPrevButtonCss=function(){return(new He).append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrev+"--disabled",!this.isPrevButtonShowing).toString()},t.prototype.getNextButtonCss=function(){return(new He).append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNext+"--disabled",!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}(Mt);R.addClass("paneldynamic",[{name:"templateElements",alternativeName:"questions",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"noEntriesText:text",visible:!1,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:o.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","top","bottom","left"]},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"]}],(function(){return new dr("")}),"question"),Wt.Instance.registerQuestion("paneldynamic",(function(e){return new dr(e)}));var fr=function(){function e(){}return e.getProgressTextInBarCss=function(e){return(new He).append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return(new He).append(e.progressText).append(e.progressTextUnderBar).toString()},e}(),gr=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 He).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 He).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}(),mr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yr=function(e){function t(){var t=e.call(this)||this;t.usedNames=[];var n=t;return t.registerFunctionOnPropertiesValueChanged(["operator","value","name"],(function(){n.oldPropertiesChanged()})),t.registerFunctionOnPropertyValueChanged("expression",(function(){n.onExpressionChanged()})),t}return mr(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.checkExpression=function(e,t,n){void 0===n&&(n=null),this.isCheckRequired(e)&&this.conditionRunner&&this.perform(t,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 n=this;this.conditionRunner.onRunComplete=function(o){n.triggerResult(o,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,n){e?this.onSuccess(t,n):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+ye.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=new Z,n=0;n<this.usedNames.length;n++){var o=this.usedNames[n];if(e.hasOwnProperty(o))return!0;var r=t.getFirstName(o);if(e.hasOwnProperty(r)){if(o==r)return!0;var i=e[r];if(null!=i){if(!i.hasOwnProperty("oldValue")||!i.hasOwnProperty("newValue"))return!0;var s={};s[r]=i.oldValue;var a=t.getValue(o,s);s[r]=i.newValue;var l=t.getValue(o,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 Ve(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},enumerable:!1,configurable:!0}),t.operatorsValue=null,t}(j),vr=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return mr(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},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!1},enumerable:!1,configurable:!0}),t}(yr),br=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return mr(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),n=0;n<t.length;n++)e(t[n])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(vr),Cr=function(e){function t(){return e.call(this)||this}return mr(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!o.executeCompleteTriggerOnValueChanged},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.owner&&this.owner.setCompleted()},t}(vr),_r=function(e){function t(){return e.call(this)||this}return mr(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.onPropertyValueChanged=function(t,n,o){if(e.prototype.onPropertyValueChanged.call(this,t,n,o),"setToName"===t){var r=this.getSurvey();r&&!r.isLoadingFromJson&&r.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}(vr),wr=function(e){function t(){return e.call(this)||this}return mr(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}),Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!o.executeSkipTriggerOnValueChanged},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(vr),Pr=function(e){function t(){return e.call(this)||this}return mr(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 n=this;if(this.owner&&this.runExpression){var o=new Oe(this.runExpression);o.canRun&&(o.onRunComplete=function(e){n.onCompleteRunExpression(e)},o.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,e,!1)},t}(vr),xr=function(e){function t(){return e.call(this)||this}return mr(t,e),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}(vr);R.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),R.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),R.addClass("visibletrigger",["pages:pages","questions:questions"],(function(){return new br}),"surveytrigger"),R.addClass("completetrigger",[],(function(){return new Cr}),"surveytrigger"),R.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 _r}),"surveytrigger"),R.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"}],(function(){return new xr}),"surveytrigger"),R.addClass("skiptrigger",[{name:"!gotoName:question"}],(function(){return new wr}),"surveytrigger"),R.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],(function(){return new Pr}),"surveytrigger");var Vr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Or=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this)||this;o.closeOnCompleteTimeout=0,o.surveyValue=n||o.createSurvey(t),o.surveyValue.showTitle=!1,"undefined"!=typeof document&&(o.windowElement=document.createElement("div"));var r=o;return o.survey.onComplete.add((function(e,t){r.onSurveyComplete()})),o}return Vr(t,e),t.prototype.getType=function(){return"window"},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.isShowing!=e&&(this.setPropertyValue("isShowing",e),this.showingChangedCallback&&this.showingChangedCallback())},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),!this.isLoadingFromJson&&this.expandedChangedCallback&&this.expandedChangedCallback()},enumerable:!1,configurable:!0}),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.expandcollapse(!0)},t.prototype.collapse=function(){this.expandcollapse(!1)},t.prototype.createSurvey=function(e){return new Gn(e)},t.prototype.expandcollapse=function(e){this.isExpanded=e},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.closeWindowOnComplete();else{var e=this,t=null;t="undefined"!=typeof window?window.setInterval((function(){e.closeWindowOnComplete(),"undefined"!=typeof window&&window.clearInterval(t)}),1e3*this.closeOnCompleteTimeout):0}},t.prototype.closeWindowOnComplete=function(){this.closeWindowOnCompleteCallback&&this.closeWindowOnCompleteCallback()},t.surveyElementName="windowSurveyJS",t}(j),Tr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rr=function(){function e(e,t){this.name=e,this.json=t;var n=this;R.addClass(e,[],(function(e){return Sr.Instance.createQuestion(e?e.name:"",n)}),"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,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,n)},e.prototype.onPropertyChanged=function(e,t,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,n)},e.prototype.onValueChanged=function(e,t,n){this.json.onValueChanged&&this.json.onValueChanged(e,t,n)},e.prototype.onItemValuePropertyChanged=function(e,t,n,o,r){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:n,name:o,newValue:r})},e.prototype.getDisplayValue=function(e,t,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(e,t)},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e}(),Sr=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(R.findClass(t))throw"There is already class with name '"+t+"'";var n=new Rr(t,e);this.onAddingJson&&this.onAddingJson(t,n.isComposite),this.customQuestionValues.push(n)}},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++)R.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 Ar(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new Ir(e,t)},e.Instance=new e,e}(),Er=function(e){function t(t,n){var o=e.call(this,t)||this;return o.customQuestion=n,v.createProperties(o),ft.CreateDisabledDesignElements=!0,o.createWrapper(),ft.CreateDisabledDesignElements=!1,o.customQuestion&&o.customQuestion.onCreated(o),o}return Tr(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().locStrsChanged()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,n,o){e.prototype.onPropertyValueChanged.call(this,t,n,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,o)},t.prototype.itemValuePropertyChanged=function(t,n,o,r){e.prototype.itemValuePropertyChanged.call(this,t,n,o,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,n,r)},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,n){e.prototype.setSurveyImpl.call(this,t,n),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,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),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,n,o){if(this.data){var r=this.convertDataName(e);this.data.setValue(r,this.convertDataValue(e,t),n,o),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,n){this.data&&this.data.setComment(this.getValueName(),t,n)},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,n,o){return o?this.customQuestion.getDisplayValue(t,n,o):e.prototype.getDisplayValueCore.call(this,t,n)},t}(Mt),Ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(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,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),!this.contentQuestion)return!1;var o=this.contentQuestion.hasErrors(t,n);this.errors=[];for(var r=0;r<this.contentQuestion.errors.length;r++)this.errors.push(this.contentQuestion.errors[r]);return o||(o=e.prototype.hasErrors.call(this,t,n)),this.updateElementCss(),o},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.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 n=e.questionJSON.type;if(!n||!R.findClass(n))throw"type attribute in questionJSON is empty or incorrect";t=R.createClass(n),this.initElement(t),t.fromJSON(e.questionJSON)}else e.createQuestion&&(t=e.createQuestion(),this.initElement(t));return t&&!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,n){e.prototype.runCondition.call(this,t,n),this.contentQuestion&&this.contentQuestion.runCondition(t,n)},t.prototype.convertDataName=function(t){if(!this.contentQuestion)return e.prototype.convertDataName.call(this,t);var n=t.replace(this.contentQuestion.getValueName(),this.getValueName());return 0==n.indexOf(this.getValueName())?n:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,n){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.contentQuestion.value:n},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),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 n=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,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,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentQuestion)},t}(Er),Dr=function(e){function t(t,n){var o=e.call(this,n)||this;return o.composite=t,o.variableName=n,o}return Tr(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}(Ut),Ar=function(e){function t(n,o){var r=e.call(this,n,o)||this;return r.customQuestion=o,r.settingNewValue=!1,r.textProcessing=new Dr(r,t.ItemVariableName),r}return Tr(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getCssType=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var o=e.prototype.hasErrors.call(this,t,n);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,n)||o},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,n=0;n<t.length;n++)t[n].clearValueIfInvisible()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=this.contentPanel.questions,o=0;o<n.length;o++)n[o].onAnyValueChanged(t)},t.prototype.createPanel=function(){var e=R.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();r.isValueEmpty(t)||(this.value=t)}},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,n=0;n<t.length;n++){var o=t[n];o.isPanel?this.setIsContentElement(o):o.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var n=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(t)),n},t.prototype.runCondition=function(n,o){if(e.prototype.runCondition.call(this,n,o),this.contentPanel){var r=n[t.ItemVariableName];n[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(n,o),delete n[t.ItemVariableName],r&&(n[t.ItemVariableName]=r)}},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.setValue=function(t,n,o,r){if(!this.settingNewValue&&(e.prototype.setValue.call(this,t,n,o,r),this.contentPanel)){var i=this.contentPanel.getQuestionByName(t);i&&!this.isTwoValueEquals(n,i.value)&&(this.settingNewValue=!0,i.value=n,this.settingNewValue=!1)}},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var n=this.contentPanel.questions,o=this.name,r=this.title,i=0;i<n.length;i++)e.push({name:o+"."+n[i].name,text:r+"."+n[i].title,question:n[i]})},t.prototype.convertDataValue=function(e,t){var n=this.value;return n||(n={}),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete n[e]:n[e]=t,n},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.settingNewValue=!0;for(var o=this.contentPanel.questions,r=0;r<o.length;r++){var i=o[r].getValueName();o[r].value=t?t[i]:void 0}this.settingNewValue=!1},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var n=e.questions,o=0;o<n.length;o++)n[o].afterRenderQuestionCallback=function(e,n){t.customQuestion.onAfterRenderContentElement(t,e,n)}},t.ItemVariableName="composite",t}(Er),jr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Nr=function(e){function t(t,n,o){void 0===n&&(n=null),void 0===o&&(o="buttongroupitemvalue");var r=e.call(this,t,n,o)||this;return r.typeName=o,r}return jr(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},Lr([f()],t.prototype,"iconName",void 0),Lr([f()],t.prototype,"iconSize",void 0),Lr([f()],t.prototype,"showCaption",void 0),t}(Fe),kr=function(e){function t(t){return e.call(this,t)||this}return jr(t,e),t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(Yn);R.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],(function(){return new kr("")}),"checkboxbase"),R.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],(function(e){return new Nr(e)}),"itemvalue");var qr,Fr=function(){function e(e,t,n){this.question=e,this.item=t,this.index=n}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 He).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}(),Mr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Br=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?t.insertRealElementIntoSurvey():null},t.doClear=function(){t.removeGhostElementFromSurvey(),t.isEdge=null,t.ghostSurveyElement=null,t.draggedElement&&(t.draggedElement.isDragMe=!1)},t}return Mr(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"survey-element"},enumerable:!1,configurable:!0}),t.prototype.startDragToolboxItem=function(e,t){var n=this.createElementFromJson(t);this.startDrag(e,n,null,null,!0)},t.prototype.startDragSurveyElement=function(e,t,n){this.isDraggedElementSelected=n,this.startDrag(e,t)},t.prototype.createDraggedElementShortcut=function(e,t,n){var o=document.createElement("div"),r=document.createElement("span");return r.className="svc-dragged-element-shortcut__text",r.innerText=e,o.appendChild(this.createDraggedElementIcon()),o.appendChild(r),o.className=this.getDraggedElementClass(),o},t.prototype.createDraggedElementIcon=function(){var e=document.createElement("span"),t=this.draggedElement.getType(),n='<svg class="sv-svg-icon" role="img" style="width: 24px; height: 24px;"><use xlink:href="#icon-'.concat(t,'"></use></svg>');return e.className="svc-dragged-element-shortcut__icon",e.innerHTML=n,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=R.createClass(e.type);return(new T).toObject(e,t),t},t.prototype.getDropTargetByDataAttributeValue=function(e,n,o){if(this.isEdge=this.calculateIsEdge(n,o.clientY),!e){var r=n.parentElement.closest(this.dropTargetDataAttributeName);e=this.getDataAttributeValueByNode(r)}if(!e)throw new Error("Can't find drop target survey element name");if(e===t.ghostSurveyElementName)return this.prevDropTarget;if("newGhostPage"===e)return t.newGhostPage;var i,s,a=this.survey.getPageByName(e);if(a)return 0!==a.elements.length?null:a;if(this.survey.pages.forEach((function(t){(s=t.getElementByName(e))&&(i=s)})),"paneldynamic"!==i.getType()||this.isEdge||(i=i.template),"matrixdropdown"!==i.getType()&&"matrixdynamic"!==i.getType()||"none"===i.detailPanelMode||this.isEdge?i.isPanel&&(i=this.getPanelDropTarget(n,i,o)):i=i.detailPanel,!i.page){var l=n.parentElement.closest("[data-sv-drop-target-page]");e=l.dataset.svDropTargetPage;var u=this.survey.getPageByName(e);i.__page=u}return i},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,n){return this.getDataAttributeValueByNode(n)===t.ghostSurveyElementName?this.isBottom:e>=this.calculateMiddleOfHTMLElement(n)},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.ghostSurveyElement||this.dropTarget===this.prevDropTarget&&e===this.isBottom&&this.isEdge===this.prevIsEdge},t.prototype.shouldRestricDragQuestionBetweenPages=function(e){var t=this.draggedElement.page,n=e.isPage?e:e.page;return t&&t!==n},t.prototype.getPanelDropTarget=function(e,t,n){return this.isEdge||0===t.questions.length||(e=this.findDeepestDropTargetChild(e),t=this.getDropTargetByNode(e,n)),t},t.prototype.findDeepestDropTargetChild=function(e){for(var t=this.dropTargetDataAttributeName,n=e;e;)n=e,e=e.querySelector(t);return n},t.prototype.calculateIsEdge=function(e,n){var o=e.getBoundingClientRect();return n-o.top<=t.edgeHeight||o.bottom-n<=t.edgeHeight},t.prototype.calculateIsRight=function(){var e=this.dropTarget.parent;return e.elements.indexOf(this.draggedElement)<e.elements.indexOf(this.dropTarget)},t.prototype.afterDragOver=function(){this.prevIsEdge=this.isEdge,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=st.InsideEmptyPanel;else{if(this.isEdge||!e)return this.parentElement.dragDropStart(this.draggedElement,this.ghostSurveyElement,t.nestedPanelDepth),this.parentElement.dragDropMoveTo(this.dropTarget,e?this.calculateIsRight():this.isBottom,this.isEdge);this.dropTarget.dragTypeOverMe=this.calculateIsRight()?st.MultilineRight:st.MultilineLeft}},t.prototype.calcTargetRowMultiple=function(){var e,t=this,n=this.dropTarget.isPage||this.dropTarget.isPanel?this.dropTarget:this.dropTarget.parent;"paneldynamic"===this.dropTarget.getType()&&(n=this.dropTarget.templateValue),n.rows.forEach((function(n){-1!==n.elements.indexOf(t.dropTarget)&&(e=n)}));var o=e&&e.elements.length>1;return this.isEdge&&o?(n.__page=this.dropTarget.page,this.dropTarget=n,!1):o},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 n=(new T).toJsonObject(this.draggedElement);n.type=this.draggedElement.getType();var o=this.createFakeTargetElement(this.draggedElement.name,n);return this.parentElement.dragDropStart(this.draggedElement,o,t.nestedPanelDepth),this.parentElement.dragDropMoveTo(this.dropTarget,e?this.calculateIsRight():this.isBottom,this.isEdge),this.parentElement.dragDropFinish()},t.prototype.createFakeTargetElement=function(e,t){if(!e||!t)return null;var n=null;return n=R.createClass(t.type),(new T).toObject(t,n),n.name=e,n.setSurveyImpl?n.setSurveyImpl(this.survey):n.setData(this.survey),n.renderWidth="100%",n},t.prototype.createGhostSurveyElement=function(e){void 0===e&&(e=!1);var n="sv-drag-drop-ghost",o="300px";e&&(o="4px",n+=" sv-drag-drop-ghost--vertical");var r={type:"html",minWidth:o,name:t.ghostSurveyElementName,html:'<div class="'.concat(n,'"></div>')},i=this.createElementFromJson(r);return i.startWithNewLine=!e,e&&(i.maxWidth="4px",i.renderWidth="0px",i.paddingRight="0px",i.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}(Vn);qr="".concat("1.9.11");var Qr={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:"",completedPage:"",navigation:{complete:"btn sv_complete_btn",prev:"btn sv_prev_btn",next:"btn sv_next_btn",start:"btn sv_start_btn",preview:"btn sv_preview_btn",edit:"btn sv_edit_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"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"},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",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",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:"",control:"form-control",other:"sv_q_dd_other form-control"},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"},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_btn",buttonRemoveRight:"button sv-paneldynamic__remove-btn--right",buttonPrev:"sv-paneldynamic__prev-btn",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 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"}}};An.bootstrap=Qr;var zr={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:"",completedPage:"",navigation:{complete:"btn sv_complete_btn btn-primary",prev:"btn sv_prev_btn btn-primary",next:"btn sv_next_btn btn-primary",start:"btn sv_start_btn btn-primary",preview:"btn sv_preview_btn btn-primary",edit:"btn sv_edit_btn btn-primary"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"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"},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",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",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:"",control:"form-control",other:"sv_q_dd_other form-control"},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"},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",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:""},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"}}};An.bootstrapmaterial=zr;var Hr={root:"sd-root-modern",container:"sd-container-modern",header:"sd-title sd-container-modern__title",body:"sd-body",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",navigationButton:"",completedPage:"sd-completedpage",navigation:{complete:"sd-btn sd-btn--action sd-navigation__complete-btn",prev:"sd-btn sd-navigation__prev-btn",next:"sd-btn sd-navigation__next-btn",start:"sd-btn sd-navigation__start-btn",preview:"sd-btn sd-navigation__preview-btn",edit:"sd-btn sd-navigation__edit-btn"},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",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",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",nested:"sd-element--nested",invisible:"sd-element--invisible"},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",progressTop:"sd-paneldynamic__progress sd-paneldynamic__progress--top",progressBottom:"sd-paneldynamic__progress sd-paneldynamic__progress--bottom",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",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",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",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",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:"",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",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",disabled:"sd-question--disabled",collapsed:"sd-element--collapsed",nested:"sd-element--nested",invisible:"sd-element--invisible"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",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",aboveQuestion:"sd-question__erbox--above-question",locationTop:"sd-question__erbox--location--top",locationBottom:"sd-question__erbox--location--bottom"},checkbox:{root:"sd-selectbase",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",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:"sd-btn sd-selectbase__clear-btn",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln",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",itemDecorator:"sd-checkbox__hidden",materialDecorator:"sd-checkbox__rectangle",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb"},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",control:"sd-input sd-dropdown",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",controlDisabled:"sd-input--disabled",controlLabel:"sd-item__control-label",controlEmpty:"sd-dropdown--empty",materialDecorator:"sd-item__decorator sd-radio__decorator"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-imagepicker",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",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",clearButton:"sd-btn",other:"sd-input sd-comment"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix",root:"sd-table",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",headerCell:"sd-table__cell sd-table__cell--header",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"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",root:"sd-table",cell:"sd-table__cell",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-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",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",cell:"sd-table__cell",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-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:"",footer:"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:{root:"sd-rating",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"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",onError:"sd-input--error"},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",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",chooseFileAsIcon:"sd-context-btn sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",removeButton:"",removeButtonBottom:"sd-context-btn sd-context-btn--negative sd-file__btn sd-file__clean-btn",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-delete",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",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"},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:"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--drag",itemOnError:"sv-ranking-item--error"},actionBar:{root:"sd-action-bar",item:"sd-action",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon"}};An.defaultV2=Hr;var $r={root:"sv-root-modern",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:"",completedPage:"sv-completedpage",navigation:{complete:"sv-btn sv-footer__complete-btn",prev:"sv-btn sv-footer__prev-btn",next:"sv-btn sv-footer__next-btn",start:"sv-btn sv-footer__start-btn",preview:"sv-btn sv-footer__preview-btn",edit:"sv-btn 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",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"},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",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",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"},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"},imagepicker:{root:"sv-imagepicker",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",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"},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"},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:""}}};An.modern=$r;var Ur=n(0),Wr=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}()}])}));
24
+ function tr(e,t,n){this.x=e,this.y=t,this.time=n||(new Date).getTime()}function nr(e,t,n,o){this.startPoint=e,this.control1=t,this.control2=n,this.endPoint=o}function or(e,t){var n=this,o=t||{};this.velocityFilterWeight=o.velocityFilterWeight||.7,this.minWidth=o.minWidth||.5,this.maxWidth=o.maxWidth||2.5,this.throttle="throttle"in o?o.throttle:16,this.minDistance="minDistance"in o?o.minDistance:5,this.throttle?this._strokeMoveUpdate=function(e,t,n){var o,r,i,s=null,a=0;n||(n={});var l=function(){a=!1===n.leading?0:Date.now(),s=null,i=e.apply(o,r),s||(o=r=null)};return function(){var u=Date.now();a||!1!==n.leading||(a=u);var c=t-(u-a);return o=this,r=arguments,c<=0||c>t?(s&&(clearTimeout(s),s=null),a=u,i=e.apply(o,r),s||(o=r=null)):s||!1===n.trailing||(s=setTimeout(l,c)),i}}(or.prototype._strokeUpdate,this.throttle):this._strokeMoveUpdate=or.prototype._strokeUpdate,this.dotSize=o.dotSize||function(){return(this.minWidth+this.maxWidth)/2},this.penColor=o.penColor||"black",this.backgroundColor=o.backgroundColor||"rgba(0,0,0,0)",this.onBegin=o.onBegin,this.onEnd=o.onEnd,this._canvas=e,this._ctx=e.getContext("2d"),this.clear(),this._handleMouseDown=function(e){1===e.which&&(n._mouseButtonDown=!0,n._strokeBegin(e))},this._handleMouseMove=function(e){n._mouseButtonDown&&n._strokeMoveUpdate(e)},this._handleMouseUp=function(e){1===e.which&&n._mouseButtonDown&&(n._mouseButtonDown=!1,n._strokeEnd(e))},this._handleTouchStart=function(e){if(1===e.targetTouches.length){var t=e.changedTouches[0];n._strokeBegin(t)}},this._handleTouchMove=function(e){e.preventDefault();var t=e.targetTouches[0];n._strokeMoveUpdate(t)},this._handleTouchEnd=function(e){e.target===n._canvas&&(e.preventDefault(),n._strokeEnd(e))},this.on()}R.addClass("image",[{name:"imageLink",serializationProperty:"locImageLink"},{name:"text",serializationProperty:"locText"},{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 er("")}),"nonvalue"),Wt.Instance.registerQuestion("image",(function(e){return new er(e)})),tr.prototype.velocityFrom=function(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):1},tr.prototype.distanceTo=function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))},tr.prototype.equals=function(e){return this.x===e.x&&this.y===e.y&&this.time===e.time},nr.prototype.length=function(){for(var e=0,t=void 0,n=void 0,o=0;o<=10;o+=1){var r=o/10,i=this._point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this._point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(o>0){var a=i-t,l=s-n;e+=Math.sqrt(a*a+l*l)}t=i,n=s}return e},nr.prototype._point=function(e,t,n,o,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*o*(1-e)*e*e+r*e*e*e},or.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},or.prototype.fromDataURL=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=new Image,r=n.ratio||window.devicePixelRatio||1,i=n.width||this._canvas.width/r,s=n.height||this._canvas.height/r;this._reset(),o.src=e,o.onload=function(){t._ctx.drawImage(o,0,0,i,s)},this._isEmpty=!1},or.prototype.toDataURL=function(e){var t;switch(e){case"image/svg+xml":return this._toSVG();default:for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return(t=this._canvas).toDataURL.apply(t,[e].concat(o))}},or.prototype.on=function(){this._handleMouseEvents(),this._handleTouchEvents()},or.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)},or.prototype.isEmpty=function(){return this._isEmpty},or.prototype._strokeBegin=function(e){this._data.push([]),this._reset(),this._strokeUpdate(e),"function"==typeof this.onBegin&&this.onBegin(e)},or.prototype._strokeUpdate=function(e){var t=e.clientX,n=e.clientY,o=this._createPoint(t,n),r=this._data[this._data.length-1],i=r&&r[r.length-1],s=i&&o.distanceTo(i)<this.minDistance;if(!i||!s){var a=this._addPoint(o),l=a.curve,u=a.widths;l&&u&&this._drawCurve(l,u.start,u.end),this._data[this._data.length-1].push({x:o.x,y:o.y,time:o.time,color:this.penColor})}},or.prototype._strokeEnd=function(e){var t=this.points.length>2,n=this.points[0];if(!t&&n&&this._drawDot(n),n){var o=this._data[this._data.length-1],r=o[o.length-1];n.equals(r)||o.push({x:n.x,y:n.y,time:n.time,color:this.penColor})}"function"==typeof this.onEnd&&this.onEnd(e)},or.prototype._handleMouseEvents=function(){this._mouseButtonDown=!1,this._canvas.addEventListener("mousedown",this._handleMouseDown),this._canvas.addEventListener("mousemove",this._handleMouseMove),document.addEventListener("mouseup",this._handleMouseUp)},or.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)},or.prototype._reset=function(){this.points=[],this._lastVelocity=0,this._lastWidth=(this.minWidth+this.maxWidth)/2,this._ctx.fillStyle=this.penColor},or.prototype._createPoint=function(e,t,n){var o=this._canvas.getBoundingClientRect();return new tr(e-o.left,t-o.top,n||(new Date).getTime())},or.prototype._addPoint=function(e){var t=this.points;if(t.push(e),t.length>2){3===t.length&&t.unshift(t[0]);var n=this._calculateCurveControlPoints(t[0],t[1],t[2]).c2,o=this._calculateCurveControlPoints(t[1],t[2],t[3]).c1,r=new nr(t[1],n,o,t[2]),i=this._calculateCurveWidths(r);return t.shift(),{curve:r,widths:i}}return{}},or.prototype._calculateCurveControlPoints=function(e,t,n){var o=e.x-t.x,r=e.y-t.y,i=t.x-n.x,s=t.y-n.y,a=(e.x+t.x)/2,l=(e.y+t.y)/2,u=(t.x+n.x)/2,c=(t.y+n.y)/2,p=Math.sqrt(o*o+r*r),h=Math.sqrt(i*i+s*s),d=h/(p+h),f=u+(a-u)*d,g=c+(l-c)*d,m=t.x-f,y=t.y-g;return{c1:new tr(a+m,l+y),c2:new tr(u+m,c+y)}},or.prototype._calculateCurveWidths=function(e){var t=e.startPoint,n=e.endPoint,o={start:null,end:null},r=this.velocityFilterWeight*n.velocityFrom(t)+(1-this.velocityFilterWeight)*this._lastVelocity,i=this._strokeWidth(r);return o.start=this._lastWidth,o.end=i,this._lastVelocity=r,this._lastWidth=i,o},or.prototype._strokeWidth=function(e){return Math.max(this.maxWidth/(e+1),this.minWidth)},or.prototype._drawPoint=function(e,t,n){var o=this._ctx;o.moveTo(e,t),o.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1},or.prototype._drawCurve=function(e,t,n){var o=this._ctx,r=n-t,i=Math.floor(e.length());o.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,h=p*c,d=h*e.startPoint.x;d+=3*p*a*e.control1.x,d+=3*c*l*e.control2.x,d+=u*e.endPoint.x;var f=h*e.startPoint.y;f+=3*p*a*e.control1.y,f+=3*c*l*e.control2.y,f+=u*e.endPoint.y;var g=t+u*r;this._drawPoint(d,f,g)}o.closePath(),o.fill()},or.prototype._drawDot=function(e){var t=this._ctx,n="function"==typeof this.dotSize?this.dotSize():this.dotSize;t.beginPath(),this._drawPoint(e.x,e.y,n),t.closePath(),t.fill()},or.prototype._fromData=function(e,t,n){for(var o=0;o<e.length;o+=1){var r=e[o];if(r.length>1)for(var i=0;i<r.length;i+=1){var s=r[i],a=new tr(s.x,s.y,s.time),l=s.color;if(0===i)this.penColor=l,this._reset(),this._addPoint(a);else if(i!==r.length-1){var u=this._addPoint(a),c=u.curve,p=u.widths;c&&p&&t(c,p,l)}}else this._reset(),n(r[0])}},or.prototype._toSVG=function(){var e=this,t=this._data,n=this._canvas,o=Math.max(window.devicePixelRatio||1,1),r=n.width/o,i=n.height/o,s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttributeNS(null,"width",n.width),s.setAttributeNS(null,"height",n.height),this._fromData(t,(function(e,t,n){var o=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){var r="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);o.setAttribute("d",r),o.setAttribute("stroke-width",(2.25*t.end).toFixed(3)),o.setAttribute("stroke",n),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","round"),s.appendChild(o)}}),(function(t){var n=document.createElement("circle"),o="function"==typeof e.dotSize?e.dotSize():e.dotSize;n.setAttribute("r",o),n.setAttribute("cx",t.x),n.setAttribute("cy",t.y),n.setAttribute("fill",t.color),s.appendChild(n)}));var a='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 '+r+" "+i+'" width="'+r+'" 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>")},or.prototype.fromData=function(e){var t=this;this.clear(),this._fromData(e,(function(e,n){return t._drawCurve(e,n.start,n.end)}),(function(e){return t._drawDot(e)})),this._data=e},or.prototype.toData=function(){return this._data};var rr=or,ir=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};var ar=function(e){function t(t){return e.call(this,t)||this}return ir(t,e),t.prototype.getCssRoot=function(t){return(new He).append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.width.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,n=e.getElementsByTagName("canvas")[0],o=e.getElementsByTagName("button")[0],r=new rr(n,{backgroundColor:"#ffffff"});this.isInputReadOnly&&r.off(),o.onclick=function(){t.value=void 0},this.readOnlyChangedCallback=function(){!t.allowClear||t.isInputReadOnly?(r.off(),o.style.display="none"):(r.on(),o.style.display="block")},r.penColor=this.penColor,r.backgroundColor=this.backgroundColor,r.onBegin=function(){t.isDrawingValue=!0,n.focus()},r.onEnd=function(){t.isDrawingValue=!1,t.updateValue()};var i=function(){var e=t.value;n.width=t.width||300,n.height=t.height||200,function(e){var t=e.getContext("2d"),n=(window.devicePixelRatio||1)/(t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1),o=e.width,r=e.height;e.width=o*n,e.height=r*n,e.style.width=o+"px",e.style.height=r+"px",t.scale(n,n)}(n),e?r.fromDataURL(e):r.clear()};i(),this.readOnlyChangedCallback(),this.signaturePad=r;var s=function(e,t){"width"!==t.name&&"height"!==t.name||i(),"value"===t.name&&i()};this.onPropertyChanged.add(s),this.signaturePad.propertyChangedHandler=s},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,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",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,"penColor",{get:function(){return this.getPropertyValue("penColor")},set:function(e){this.setPropertyValue("penColor",e)},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 s.getString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.needShowPlaceholder=function(){return!this.isDrawingValue&&this.isEmpty()},Object.defineProperty(t.prototype,"placeHolderText",{get:function(){return s.getString("signaturePlaceHolder")},enumerable:!1,configurable:!0}),sr([f({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),sr([f({defaultValue:""})],t.prototype,"dataFormat",void 0),t}(Mt);R.addClass("signaturepad",[{name:"width:number",category:"general",default:300},{name:"height:number",category:"general",default:200},{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 ar("")}),"question"),Wt.Instance.registerQuestion("signaturepad",(function(e){return new ar(e)}));var lr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ur=function(e,t,n){if(n||2===arguments.length)for(var o,r=0,i=t.length;r<i;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))},cr=function(e){function t(t,n,o){var r=e.call(this,o)||this;return r.data=t,r.panelItem=n,r.variableName=o,r}return lr(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 n=e.prototype.getQuestionByName.call(this,t);if(n)return n;var o=this.panelIndex;return o>-1?this.data.getSharedQuestionFromArray(t,o):null},t.prototype.onCustomProcessText=function(e){if(e.name==pr.IndexVariableName){var n=this.panelIndex;if(n>-1)return e.isExists=!0,e.value=n+1,!0}if(0==e.name.toLowerCase().indexOf(pr.ParentItemVariableName+".")){var o=this.data;if(o&&o.parentQuestion&&o.parent&&o.parent.data){var r=new t(o.parentQuestion,o.parent.data,pr.ItemVariableName),i=pr.ItemVariableName+e.name.substring(pr.ParentItemVariableName.length),s=r.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(Ut),pr=function(){function e(t,n){this.data=t,this.panelValue=n,this.textPreProcessor=new cr(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){this.data.setPanelItemData(this,e,t)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getValue(e+o.commentPrefix);return t||""},e.prototype.setComment=function(e,t,n){this.setValue(e+o.commentPrefix,t)},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},n=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var o in n)t[o]=n[o];if(t[e.ItemVariableName]=this.getAllValues(),this.data){t[e.IndexVariableName.toLowerCase()]=this.data.getItemIndex(this);var r=this.data;r&&r.parentQuestion&&r.parent&&(t[e.ParentItemVariableName]=r.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}(),hr=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}(),dr=function(e){function t(t){var n=e.call(this,t)||this;return n.loadingPanelCount=0,n.currentIndexValue=-1,n.isAddingNewPanels=!1,n.createNewArray("panels"),n.templateValue=n.createAndSetupNewPanelObject(),n.template.renderWidth="100%",n.template.selectedElementInDesign=n,n.template.addElementCallback=function(e){n.addOnPropertyChangedCallback(e),n.rebuildPanels()},n.template.removeElementCallback=function(){n.rebuildPanels()},n.createLocalizableString("confirmDeleteText",n,!1,"confirmDelete"),n.createLocalizableString("keyDuplicationError",n,!1,!0),n.createLocalizableString("panelAddText",n,!1,"addPanel"),n.createLocalizableString("panelRemoveText",n,!1,"removePanel"),n.createLocalizableString("panelPrevText",n,!1,"pagePrevText"),n.createLocalizableString("panelNextText",n,!1,"pageNextText"),n.createLocalizableString("noEntriesText",n,!1,"noEntriesText"),n.registerFunctionOnPropertyValueChanged("panelsState",(function(){n.setPanelsState()})),n}return lr(t,e),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(t,n){e.prototype.setSurveyImpl.call(this,t,n),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,n){t.onTemplateElementPropertyChanged(e,n)})),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.useTemplatePanel&&0!=this.panels.length&&R.findProperty(e.getType(),t.name))for(var n=this.panels,o=0;o<n.length;o++){var r=n[o].getQuestionByName(e.name);r&&r[t.name]!==t.newValue&&(r[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.fireCallback(this.currentIndexChangedCallback))},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;else if(e!=this.panels.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var n=this.createNewPanel();this.panels.push(n),"list"==this.renderMode&&"default"!=this.panelsState&&("expand"===this.panelsState?n.expand():n.title&&n.collapse())}e<this.panelCount&&this.panels.splice(e,this.panelCount-e),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),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 hr(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>o.panelMaximumPanelCount&&(e=o.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")},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.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.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 n="onSurvey"==this.showQuestionNumbers?t:0,o=0;o<this.panels.length;o++){var r=this.setPanelVisibleIndex(this.panels[o],n,"off"!=this.showQuestionNumbers);"onSurvey"==this.showQuestionNumbers&&(n+=r)}return e.prototype.setVisibleIndex.call(this,"onSurvey"!=this.showQuestionNumbers?t:-1),"onSurvey"!=this.showQuestionNumbers?1:n-t},t.prototype.setPanelVisibleIndex=function(e,t,n){return n?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&(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(){var e;if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var t=[];if(this.useTemplatePanel)new pr(this,this.template),t.push(this.template);else for(var n=0;n<this.panelCount;n++)t.push(this.createNewPanel());(e=this.panels).splice.apply(e,ur([0,this.panels.length],t,!1)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.fireCallback(this.panelCountChangedCallback)}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!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)){if(this.isEmpty()&&0!=this.panelCount){for(var t=[],n=0;n<this.panelCount;n++)t.push(this.defaultPanelValue);this.value=t}}else e.prototype.setDefaultValue.call(this)},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 ft.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)return null;var e=this.addPanel();return"list"===this.renderMode&&"default"!==this.panelsState&&e.expand(),e},t.prototype.addPanel=function(){this.panelCount++,this.isRenderModeList||(this.currentIndex=this.panelCount-1);var e=this.value,t=!1;return this.isValueEmpty(this.defaultPanelValue)||e&&Array.isArray(e)&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],this.defaultPanelValue)),this.defaultValueFromLastPanel&&e&&Array.isArray(e)&&e.length>1&&e.length==this.panelCount&&(t=!0,this.copyValue(e[e.length-1],e[e.length-2])),t&&(this.value=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panels[this.panelCount-1]},t.prototype.copyValue=function(e,t){for(var n in t)e[n]=t[n]},t.prototype.removePanelUI=function(e){this.canRemovePanel&&(this.confirmDelete&&!Tt(this.confirmDeleteText)||this.removePanel(e))},t.prototype.goToNextPanel=function(){this.currentIndex<0||"list"!==this.renderMode&&this.currentPanel&&this.currentPanel.hasErrors()||this.currentIndex++},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 n=this.panels[t];this.panels.splice(t,1),this.updateBindings("panelCount",this.panelCount),!(e=this.value)||!Array.isArray(e)||t>=e.length||(this.isValueChangingInternally=!0,e.splice(t,1),this.value=e,this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,t,n),this.isValueChangingInternally=!1)}},t.prototype.getPanelIndex=function(e){if(r.isNumber(e))return e;for(var t=this.items,n=0;n<this.panels.length;n++)if(this.panels[n]===e||t[n]===e)return n;return-1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panels,n=0;n<t.length;n++)t[n].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 n=this.value,r=n&&e<n.length?n[e]:null;if(r){var i=!1;for(var s in r){if(!this.getSharedQuestionFromArray(s,e))t.getQuestionByName(s)||this.iscorrectValueWithPostPrefix(t,s,o.commentPrefix)||this.iscorrectValueWithPostPrefix(t,s,o.matrixTotalValuePostFix)||(delete r[s],i=!0)}i&&(n[e]=r,this.value=n)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,n){return t.indexOf(n)===t.length-n.length&&!!e.getQuestionByName(t.substr(0,t.indexOf(n)))},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 n=!!t&&(!0===t||this.template.questions.indexOf(t)>-1),o=this.getValueName()+"[0].",r=this.processedTitle+"[0].",i=new Array,s=this.template.questions,a=0;a<s.length;a++)s[a].addConditionObjectsByContext(i,t);for(a=0;a<i.length;a++)e.push({name:o+i[a].name,text:r+i[a].text,question:i[a].question});if(n){var l=!0===t?this.getValueName()+".":"",u=!0===t?this.processedTitle+".":"";for(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,n){if(void 0===t&&(t=null),void 0===n&&(n=null),!n)return e.prototype.getConditionJson.call(this,t,n);var o=n,r=n.indexOf(".");r>-1&&(o=n.substr(0,r),n=n.substr(r+1));var i=this.template.getQuestionByName(o);return i?i.getConditionJson(t,n):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var n=0;n<this.panels.length;n++)this.panels[n].readOnly=t;e.prototype.onReadOnlyChanged.call(this)},t.prototype.onSurveyLoad=function(){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(),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.runCondition=function(t,n){e.prototype.runCondition.call(this,t,n),this.runPanelsCondition(t,n)},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t){var n={};e&&e instanceof Object&&(n=JSON.parse(JSON.stringify(e))),this.parentQuestion&&this.parent&&(n[pr.ParentItemVariableName]=this.parent.getValue());for(var o=0;o<this.panels.length;o++){var i=this.getPanelItemData(this.panels[o].data),s=r.createCopy(n);s[pr.ItemVariableName.toLowerCase()]=i,s[pr.IndexVariableName.toLowerCase()]=o,this.panels[o].runCondition(s,t)}},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panels[n].onAnyValueChanged(t),this.panels[n].onAnyValueChanged(pr.ItemVariableName)},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var n,o=[],r=0;r<this.panels.length;r++)n=this.isValueDuplicated(this.panels[r],o,t,e)||n;return n},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),this.isValueChangingInternally)return!1;var o=!1;if(this.changingValueQuestion){o=this.changingValueQuestion.hasErrors(t,n);return o=this.hasKeysDuplicated(t,n)||o,this.updatePanelsContainsErrors(),o}var r=this.hasErrorInPanels(t,n);return e.prototype.hasErrors.call(this,t)||r},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var n=this.panels,o=0;o<n.length;o++)if(n[o].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.panels,n=0;n<t.length;n++){var o=[];t[n].addQuestionsToList(o,!0);for(var r=0;r<o.length;r++)if(!o[r].isAnswered)return!1}return!0},t.prototype.clearValueIfInvisibleCore=function(){for(var t=0;t<this.panels.length;t++)for(var n=this.panels[t].questions,o=0;o<n.length;o++)n[o].clearValueIfInvisible();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 n=this.panels[t].questions,o=0;o<n.length;o++)if(n[o].isRunningValidators)return!0;return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),n=0;n<this.panels.length;n++)for(var o=this.panels[n].questions,r=0;r<o.length;r++){var i=o[r].getAllErrors();i&&i.length>0&&(t=t.concat(i))}return t},t.prototype.getDisplayValueCore=function(e,t){var n=this.getUnbindValue(t);if(!n||!Array.isArray(n))return n;for(var o=0;o<this.panels.length&&o<n.length;o++){var r=n[o];r&&(n[o]=this.getPanelDisplayValue(o,r,e))}return n},t.prototype.getPanelDisplayValue=function(e,t,n){if(!t)return t;for(var o=this.panels[e],r=Object.keys(t),i=0;i<r.length;i++){var s=r[i],a=o.getQuestionByValueName(s);if(a||(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(n,t[s]);t[s]=l,n&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var n=!1,o=this.panels,r=[],i=0;i<o.length;i++)this.setOnCompleteAsyncInPanel(o[i]);for(i=0;i<o.length;i++){var s=o[i].hasErrors(e,!!t&&t.focuseOnFirstError,t);s=this.isValueDuplicated(o[i],r,t,e)||s,this.isRenderModeList||!s||n||(this.currentIndex=i),n=s||n}return n},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,n=e.questions,o=0;o<n.length;o++)n[o].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,n,o){if(!this.keyName)return!1;var r=e.getQuestionByValueName(this.keyName);if(!r||r.isEmpty())return!1;var i=r.value;this.changingValueQuestion&&r!=this.changingValueQuestion&&r.hasErrors(o,n);for(var s=0;s<t.length;s++)if(i==t[s])return o&&r.addError(new X(this.keyDuplicationError,this)),n&&!n.firstErrorQuestion&&(n.firstErrorQuestion=r),!0;return t.push(i),!1},t.prototype.createNewPanel=function(){var e=this.createAndSetupNewPanelObject(),t=this.template.toJSON();(new T).toObject(t,e),e.renderWidth="100%",e.updateCustomWidgets(),new pr(this,e),e.onFirstRendering();for(var n=e.questions,o=0;o<n.length;o++)n[o].setParentQuestion(this);return e.locStrsChanged(),e},t.prototype.createAndSetupNewPanelObject=function(){var e=this.createNewPanelObject();e.isInteractiveDesignElement=!1;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 R.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 n=0;n<this.panels.length;n++)this.panelUpdateValueFromSurvey(this.panels[n]);this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);for(var n=0;n<this.panels.length;n++)this.panelSurveyValueChanged(this.panels[n]);void 0===t&&this.setValueBasedOnPanelCount()},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),r=0;r<t.length;r++){var i=t[r];i.updateValueFromSurvey(n[i.getValueName()]),i.updateCommentFromSurvey(n[i.getValueName()+o.commentPrefix])}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,n=this.getPanelItemData(e.data),o=0;o<t.length;o++){var r=t[o];r.onSurveyValueChanged(n[r.getValueName()])}},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,n=t.indexOf(e),o=this.value;return n<0&&Array.isArray(o)&&o.length>t.length&&(n=t.length),n<0||!o||!Array.isArray(o)||o.length<=n?{}:o[n]},t.prototype.setPanelItemData=function(e,t,n){if(!(this.isSetPanelItemData&&this.isSetPanelItemData.indexOf(t)>-1)){this.isSetPanelItemData||(this.isSetPanelItemData=[]),this.isSetPanelItemData.push(t);var o=this.items;(r=o.indexOf(e))<0&&(r=o.length);var r,i=this.getUnbindValue(this.value);if(i&&Array.isArray(i)||(i=[]),i.length<=r)for(var s=i.length;s<=r;s++)i.push({});if(i[r]||(i[r]={}),this.isValueEmpty(n)?delete i[r][t]:i[r][t]=n,r>=0&&r<this.panels.length&&(this.changingValueQuestion=this.panels[r].getQuestionByValueName(t)),this.value=i,this.changingValueQuestion=null,this.survey){var a={question:this,panel:e.panel,name:t,itemIndex:r,itemValue:i[r],value:n};this.survey.dynamicPanelItemValueChanged(this,a)}(r=this.isSetPanelItemData.indexOf(t))>-1&&this.isSetPanelItemData.splice(r,1)}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);return n&&(n.isNode=!0,n.data=this.panels.map((function(e,n){var o={name:e.name||n,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){o[t.propertyName]=e[t.propertyName]})),o}))),n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var n=0;n<this.panels.length;n++){this.panels[n].updateElementCss(t)}},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.panelCount;return s.getString("panelDynamicProgressText").format(this.currentIndex+1,e)},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return(new He).append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},t.prototype.getPanelWrapperCss=function(){return(new He).append(this.cssClasses.panelWrapper).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return(new He).append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return(new He).append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.renderMode).toString()},t.prototype.getPrevButtonCss=function(){return(new He).append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrev+"--disabled",!this.isPrevButtonShowing).toString()},t.prototype.getNextButtonCss=function(){return(new He).append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNext+"--disabled",!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}(Mt);R.addClass("paneldynamic",[{name:"templateElements",alternativeName:"questions",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"noEntriesText:text",visible:!1,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:o.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","top","bottom","left"]},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"]}],(function(){return new dr("")}),"question"),Wt.Instance.registerQuestion("paneldynamic",(function(e){return new dr(e)}));var fr=function(){function e(){}return e.getProgressTextInBarCss=function(e){return(new He).append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return(new He).append(e.progressText).append(e.progressTextUnderBar).toString()},e}(),gr=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 He).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 He).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}(),mr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yr=function(e){function t(){var t=e.call(this)||this;t.usedNames=[];var n=t;return t.registerFunctionOnPropertiesValueChanged(["operator","value","name"],(function(){n.oldPropertiesChanged()})),t.registerFunctionOnPropertyValueChanged("expression",(function(){n.onExpressionChanged()})),t}return mr(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.checkExpression=function(e,t,n){void 0===n&&(n=null),this.isCheckRequired(e)&&this.conditionRunner&&this.perform(t,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 n=this;this.conditionRunner.onRunComplete=function(o){n.triggerResult(o,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,n){e?this.onSuccess(t,n):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.usedNames=[],this.hasFunction=!1,this.conditionRunner=null},t.prototype.buildExpression=function(){return this.name?this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+ye.toOperandString(this.value):""},t.prototype.isCheckRequired=function(e){if(!e)return!1;if(this.buildUsedNames(),!0===this.hasFunction)return!0;for(var t=new Z,n=0;n<this.usedNames.length;n++){var o=this.usedNames[n];if(e.hasOwnProperty(o))return!0;var r=t.getFirstName(o);if(e.hasOwnProperty(r)){if(o==r)return!0;var i=e[r];if(null!=i){if(!i.hasOwnProperty("oldValue")||!i.hasOwnProperty("newValue"))return!0;var s={};s[r]=i.oldValue;var a=t.getValue(o,s);s[r]=i.newValue;var l=t.getValue(o,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 Ve(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},enumerable:!1,configurable:!0}),t.operatorsValue=null,t}(j),vr=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return mr(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},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!1},enumerable:!1,configurable:!0}),t}(yr),br=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return mr(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),n=0;n<t.length;n++)e(t[n])},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(vr),Cr=function(e){function t(){return e.call(this)||this}return mr(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!o.executeCompleteTriggerOnValueChanged},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.owner&&this.owner.setCompleted()},t}(vr),_r=function(e){function t(){return e.call(this)||this}return mr(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.onPropertyValueChanged=function(t,n,o){if(e.prototype.onPropertyValueChanged.call(this,t,n,o),"setToName"===t){var r=this.getSurvey();r&&!r.isLoadingFromJson&&r.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}(vr),wr=function(e){function t(){return e.call(this)||this}return mr(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}),Object.defineProperty(t.prototype,"isOnNextPage",{get:function(){return!o.executeSkipTriggerOnValueChanged},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(vr),Pr=function(e){function t(){return e.call(this)||this}return mr(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 n=this;if(this.owner&&this.runExpression){var o=new Oe(this.runExpression);o.canRun&&(o.onRunComplete=function(e){n.onCompleteRunExpression(e)},o.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,e,!1)},t}(vr),xr=function(e){function t(){return e.call(this)||this}return mr(t,e),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}(vr);R.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),R.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),R.addClass("visibletrigger",["pages:pages","questions:questions"],(function(){return new br}),"surveytrigger"),R.addClass("completetrigger",[],(function(){return new Cr}),"surveytrigger"),R.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 _r}),"surveytrigger"),R.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"}],(function(){return new xr}),"surveytrigger"),R.addClass("skiptrigger",[{name:"!gotoName:question"}],(function(){return new wr}),"surveytrigger"),R.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],(function(){return new Pr}),"surveytrigger");var Vr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Or=function(e){function t(t,n){void 0===n&&(n=null);var o=e.call(this)||this;o.closeOnCompleteTimeout=0,o.surveyValue=n||o.createSurvey(t),o.surveyValue.showTitle=!1,"undefined"!=typeof document&&(o.windowElement=document.createElement("div"));var r=o;return o.survey.onComplete.add((function(e,t){r.onSurveyComplete()})),o}return Vr(t,e),t.prototype.getType=function(){return"window"},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.isShowing!=e&&(this.setPropertyValue("isShowing",e),this.showingChangedCallback&&this.showingChangedCallback())},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),!this.isLoadingFromJson&&this.expandedChangedCallback&&this.expandedChangedCallback()},enumerable:!1,configurable:!0}),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.expandcollapse(!0)},t.prototype.collapse=function(){this.expandcollapse(!1)},t.prototype.createSurvey=function(e){return new Gn(e)},t.prototype.expandcollapse=function(e){this.isExpanded=e},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0))if(0==this.closeOnCompleteTimeout)this.closeWindowOnComplete();else{var e=this,t=null;t="undefined"!=typeof window?window.setInterval((function(){e.closeWindowOnComplete(),"undefined"!=typeof window&&window.clearInterval(t)}),1e3*this.closeOnCompleteTimeout):0}},t.prototype.closeWindowOnComplete=function(){this.closeWindowOnCompleteCallback&&this.closeWindowOnCompleteCallback()},t.surveyElementName="windowSurveyJS",t}(j),Tr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rr=function(){function e(e,t){this.name=e,this.json=t;var n=this;R.addClass(e,[],(function(e){return Sr.Instance.createQuestion(e?e.name:"",n)}),"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,n){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,n)},e.prototype.onPropertyChanged=function(e,t,n){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,n)},e.prototype.onValueChanged=function(e,t,n){this.json.onValueChanged&&this.json.onValueChanged(e,t,n)},e.prototype.onItemValuePropertyChanged=function(e,t,n,o,r){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:n,name:o,newValue:r})},e.prototype.getDisplayValue=function(e,t,n){return this.json.getDisplayValue?this.json.getDisplayValue(n):n.getDisplayValue(e,t)},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e}(),Sr=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(R.findClass(t))throw"There is already class with name '"+t+"'";var n=new Rr(t,e);this.onAddingJson&&this.onAddingJson(t,n.isComposite),this.customQuestionValues.push(n)}},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++)R.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 Ar(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new Ir(e,t)},e.Instance=new e,e}(),Er=function(e){function t(t,n){var o=e.call(this,t)||this;return o.customQuestion=n,v.createProperties(o),ft.CreateDisabledDesignElements=!0,o.createWrapper(),ft.CreateDisabledDesignElements=!1,o.customQuestion&&o.customQuestion.onCreated(o),o}return Tr(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().locStrsChanged()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,n,o){e.prototype.onPropertyValueChanged.call(this,t,n,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,o)},t.prototype.itemValuePropertyChanged=function(t,n,o,r){e.prototype.itemValuePropertyChanged.call(this,t,n,o,r),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,n,r)},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,n){e.prototype.setSurveyImpl.call(this,t,n),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,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),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,n,o){if(this.data){var r=this.convertDataName(e);this.data.setValue(r,this.convertDataValue(e,t),n,o),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,n){this.data&&this.data.setComment(this.getValueName(),t,n)},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,n,o){return o?this.customQuestion.getDisplayValue(t,n,o):e.prototype.getDisplayValueCore.call(this,t,n)},t}(Mt),Ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tr(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,n){if(void 0===t&&(t=!0),void 0===n&&(n=null),!this.contentQuestion)return!1;var o=this.contentQuestion.hasErrors(t,n);this.errors=[];for(var r=0;r<this.contentQuestion.errors.length;r++)this.errors.push(this.contentQuestion.errors[r]);return o||(o=e.prototype.hasErrors.call(this,t,n)),this.updateElementCss(),o},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.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 n=e.questionJSON.type;if(!n||!R.findClass(n))throw"type attribute in questionJSON is empty or incorrect";t=R.createClass(n),this.initElement(t),t.fromJSON(e.questionJSON)}else e.createQuestion&&(t=e.createQuestion(),this.initElement(t));return t&&!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,n){e.prototype.runCondition.call(this,t,n),this.contentQuestion&&this.contentQuestion.runCondition(t,n)},t.prototype.convertDataName=function(t){if(!this.contentQuestion)return e.prototype.convertDataName.call(this,t);var n=t.replace(this.contentQuestion.getValueName(),this.getValueName());return 0==n.indexOf(this.getValueName())?n:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,n){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.contentQuestion.value:n},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),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 n=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){n.customQuestion&&n.customQuestion.onAfterRenderContentElement(n,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,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentQuestion)},t}(Er),Dr=function(e){function t(t,n){var o=e.call(this,n)||this;return o.composite=t,o.variableName=n,o}return Tr(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}(Ut),Ar=function(e){function t(n,o){var r=e.call(this,n,o)||this;return r.customQuestion=o,r.settingNewValue=!1,r.textProcessing=new Dr(r,t.ItemVariableName),r}return Tr(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getCssType=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,n){void 0===t&&(t=!0),void 0===n&&(n=null);var o=e.prototype.hasErrors.call(this,t,n);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,n)||o},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,n=0;n<t.length;n++)t[n].clearValueIfInvisible()},t.prototype.onAnyValueChanged=function(t){e.prototype.onAnyValueChanged.call(this,t);for(var n=this.contentPanel.questions,o=0;o<n.length;o++)n[o].onAnyValueChanged(t)},t.prototype.createPanel=function(){var e=R.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();r.isValueEmpty(t)||(this.value=t)}},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,n=0;n<t.length;n++){var o=t[n];o.isPanel?this.setIsContentElement(o):o.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var n=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(n+=this.contentPanel.setVisibleIndex(t)),n},t.prototype.runCondition=function(n,o){if(e.prototype.runCondition.call(this,n,o),this.contentPanel){var r=n[t.ItemVariableName];n[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(n,o),delete n[t.ItemVariableName],r&&(n[t.ItemVariableName]=r)}},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.setValue=function(t,n,o,r){if(!this.settingNewValue&&(e.prototype.setValue.call(this,t,n,o,r),this.contentPanel)){var i=this.contentPanel.getQuestionByName(t);i&&!this.isTwoValueEquals(n,i.value)&&(this.settingNewValue=!0,i.value=n,this.settingNewValue=!1)}},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel)for(var n=this.contentPanel.questions,o=this.name,r=this.title,i=0;i<n.length;i++)e.push({name:o+"."+n[i].name,text:r+"."+n[i].title,question:n[i]})},t.prototype.convertDataValue=function(e,t){var n=this.value;return n||(n={}),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete n[e]:n[e]=t,n},t.prototype.setQuestionValue=function(t,n){void 0===n&&(n=!0),e.prototype.setQuestionValue.call(this,t,n),this.settingNewValue=!0;for(var o=this.contentPanel.questions,r=0;r<o.length;r++){var i=o[r].getValueName();o[r].value=t?t[i]:void 0}this.settingNewValue=!1},t.prototype.getDisplayValueCore=function(t,n){return e.prototype.getContentDisplayValueCore.call(this,t,n,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion)for(var n=e.questions,o=0;o<n.length;o++)n[o].afterRenderQuestionCallback=function(e,n){t.customQuestion.onAfterRenderContentElement(t,e,n)}},t.ItemVariableName="composite",t}(Er),jr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lr=function(e,t,n,o){var r,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,o);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(s=(i<3?r(s):i>3?r(t,n,s):r(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},Nr=function(e){function t(t,n,o){void 0===n&&(n=null),void 0===o&&(o="buttongroupitemvalue");var r=e.call(this,t,n,o)||this;return r.typeName=o,r}return jr(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},Lr([f()],t.prototype,"iconName",void 0),Lr([f()],t.prototype,"iconSize",void 0),Lr([f()],t.prototype,"showCaption",void 0),t}(Fe),kr=function(e){function t(t){return e.call(this,t)||this}return jr(t,e),t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(Yn);R.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],(function(){return new kr("")}),"checkboxbase"),R.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],(function(e){return new Nr(e)}),"itemvalue");var qr,Fr=function(){function e(e,t,n){this.question=e,this.item=t,this.index=n}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 He).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}(),Mr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Br=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?t.insertRealElementIntoSurvey():null},t.doClear=function(){t.removeGhostElementFromSurvey(),t.isEdge=null,t.ghostSurveyElement=null,t.draggedElement&&(t.draggedElement.isDragMe=!1)},t}return Mr(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"survey-element"},enumerable:!1,configurable:!0}),t.prototype.startDragToolboxItem=function(e,t){var n=this.createElementFromJson(t);this.startDrag(e,n,null,null,!0)},t.prototype.startDragSurveyElement=function(e,t,n){this.isDraggedElementSelected=n,this.startDrag(e,t)},t.prototype.createDraggedElementShortcut=function(e,t,n){var o=document.createElement("div"),r=document.createElement("span");return r.className="svc-dragged-element-shortcut__text",r.innerText=e,o.appendChild(this.createDraggedElementIcon()),o.appendChild(r),o.className=this.getDraggedElementClass(),o},t.prototype.createDraggedElementIcon=function(){var e=document.createElement("span"),t=this.draggedElement.getType(),n='<svg class="sv-svg-icon" role="img" style="width: 24px; height: 24px;"><use xlink:href="#icon-'.concat(t,'"></use></svg>');return e.className="svc-dragged-element-shortcut__icon",e.innerHTML=n,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=R.createClass(e.type);return(new T).toObject(e,t),t},t.prototype.getDropTargetByDataAttributeValue=function(e,n,o){if(this.isEdge=this.calculateIsEdge(n,o.clientY),!e){var r=n.parentElement.closest(this.dropTargetDataAttributeName);e=this.getDataAttributeValueByNode(r)}if(!e)throw new Error("Can't find drop target survey element name");if(e===t.ghostSurveyElementName)return this.prevDropTarget;if("newGhostPage"===e)return t.newGhostPage;var i,s,a=this.survey.getPageByName(e);if(a)return 0!==a.elements.length?null:a;if(this.survey.pages.forEach((function(t){(s=t.getElementByName(e))&&(i=s)})),"paneldynamic"!==i.getType()||this.isEdge||(i=i.template),"matrixdropdown"!==i.getType()&&"matrixdynamic"!==i.getType()||"none"===i.detailPanelMode||this.isEdge?i.isPanel&&(i=this.getPanelDropTarget(n,i,o)):i=i.detailPanel,!i.page){var l=n.parentElement.closest("[data-sv-drop-target-page]");e=l.dataset.svDropTargetPage;var u=this.survey.getPageByName(e);i.__page=u}return i},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,n){return this.getDataAttributeValueByNode(n)===t.ghostSurveyElementName?this.isBottom:e>=this.calculateMiddleOfHTMLElement(n)},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.ghostSurveyElement||this.dropTarget===this.prevDropTarget&&e===this.isBottom&&this.isEdge===this.prevIsEdge},t.prototype.shouldRestricDragQuestionBetweenPages=function(e){var t=this.draggedElement.page,n=e.isPage?e:e.page;return t&&t!==n},t.prototype.getPanelDropTarget=function(e,t,n){return this.isEdge||0===t.questions.length||(e=this.findDeepestDropTargetChild(e),t=this.getDropTargetByNode(e,n)),t},t.prototype.findDeepestDropTargetChild=function(e){for(var t=this.dropTargetDataAttributeName,n=e;e;)n=e,e=e.querySelector(t);return n},t.prototype.calculateIsEdge=function(e,n){var o=e.getBoundingClientRect();return n-o.top<=t.edgeHeight||o.bottom-n<=t.edgeHeight},t.prototype.calculateIsRight=function(){var e=this.dropTarget.parent;return e.elements.indexOf(this.draggedElement)<e.elements.indexOf(this.dropTarget)},t.prototype.afterDragOver=function(){this.prevIsEdge=this.isEdge,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=st.InsideEmptyPanel;else{if(this.isEdge||!e)return this.parentElement.dragDropStart(this.draggedElement,this.ghostSurveyElement,t.nestedPanelDepth),this.parentElement.dragDropMoveTo(this.dropTarget,e?this.calculateIsRight():this.isBottom,this.isEdge);this.dropTarget.dragTypeOverMe=this.calculateIsRight()?st.MultilineRight:st.MultilineLeft}},t.prototype.calcTargetRowMultiple=function(){var e,t=this,n=this.dropTarget.isPage||this.dropTarget.isPanel?this.dropTarget:this.dropTarget.parent;"paneldynamic"===this.dropTarget.getType()&&(n=this.dropTarget.templateValue),n.rows.forEach((function(n){-1!==n.elements.indexOf(t.dropTarget)&&(e=n)}));var o=e&&e.elements.length>1;return this.isEdge&&o?(n.__page=this.dropTarget.page,this.dropTarget=n,!1):o},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 n=(new T).toJsonObject(this.draggedElement);n.type=this.draggedElement.getType();var o=this.createFakeTargetElement(this.draggedElement.name,n);return this.parentElement.dragDropStart(this.draggedElement,o,t.nestedPanelDepth),this.parentElement.dragDropMoveTo(this.dropTarget,e?this.calculateIsRight():this.isBottom,this.isEdge),this.parentElement.dragDropFinish()},t.prototype.createFakeTargetElement=function(e,t){if(!e||!t)return null;var n=null;return n=R.createClass(t.type),(new T).toObject(t,n),n.name=e,n.setSurveyImpl?n.setSurveyImpl(this.survey):n.setData(this.survey),n.renderWidth="100%",n},t.prototype.createGhostSurveyElement=function(e){void 0===e&&(e=!1);var n="sv-drag-drop-ghost",o="300px";e&&(o="4px",n+=" sv-drag-drop-ghost--vertical");var r={type:"html",minWidth:o,name:t.ghostSurveyElementName,html:'<div class="'.concat(n,'"></div>')},i=this.createElementFromJson(r);return i.startWithNewLine=!e,e&&(i.maxWidth="4px",i.renderWidth="0px",i.paddingRight="0px",i.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}(Vn);qr="".concat("1.9.12");var Qr={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:"",completedPage:"",navigation:{complete:"btn sv_complete_btn",prev:"btn sv_prev_btn",next:"btn sv_next_btn",start:"btn sv_start_btn",preview:"btn sv_preview_btn",edit:"btn sv_edit_btn"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"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"},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",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",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:"",control:"form-control",other:"sv_q_dd_other form-control"},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"},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_btn",buttonRemoveRight:"button sv-paneldynamic__remove-btn--right",buttonPrev:"sv-paneldynamic__prev-btn",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 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"}}};An.bootstrap=Qr;var zr={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:"",completedPage:"",navigation:{complete:"btn sv_complete_btn btn-primary",prev:"btn sv_prev_btn btn-primary",next:"btn sv_next_btn btn-primary",start:"btn sv_start_btn btn-primary",preview:"btn sv_preview_btn btn-primary",edit:"btn sv_edit_btn btn-primary"},progress:"progress center-block mx-auto mb-4",progressBar:"progress-bar",progressTextUnderBar:"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"},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",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",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:"",control:"form-control",other:"sv_q_dd_other form-control"},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"},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",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:""},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"}}};An.bootstrapmaterial=zr;var Hr={root:"sd-root-modern",container:"sd-container-modern",header:"sd-title sd-container-modern__title",body:"sd-body",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",navigationButton:"",completedPage:"sd-completedpage",navigation:{complete:"sd-btn sd-btn--action sd-navigation__complete-btn",prev:"sd-btn sd-navigation__prev-btn",next:"sd-btn sd-navigation__next-btn",start:"sd-btn sd-navigation__start-btn",preview:"sd-btn sd-navigation__preview-btn",edit:"sd-btn sd-navigation__edit-btn"},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",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",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",nested:"sd-element--nested",invisible:"sd-element--invisible"},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",progressTop:"sd-paneldynamic__progress sd-paneldynamic__progress--top",progressBottom:"sd-paneldynamic__progress sd-paneldynamic__progress--bottom",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",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",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",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",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:"",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",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",disabled:"sd-question--disabled",collapsed:"sd-element--collapsed",nested:"sd-element--nested",invisible:"sd-element--invisible"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",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",aboveQuestion:"sd-question__erbox--above-question",locationTop:"sd-question__erbox--location--top",locationBottom:"sd-question__erbox--location--bottom"},checkbox:{root:"sd-selectbase",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",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:"sd-btn sd-selectbase__clear-btn",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln",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",itemDecorator:"sd-checkbox__hidden",materialDecorator:"sd-checkbox__rectangle",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb"},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",control:"sd-input sd-dropdown",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",controlDisabled:"sd-input--disabled",controlLabel:"sd-item__control-label",controlEmpty:"sd-dropdown--empty",materialDecorator:"sd-item__decorator sd-radio__decorator"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-imagepicker",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",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",clearButton:"sd-btn",other:"sd-input sd-comment"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix",root:"sd-table",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",headerCell:"sd-table__cell sd-table__cell--header",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"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",root:"sd-table",cell:"sd-table__cell",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-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",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",cell:"sd-table__cell",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-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:"",footer:"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:{root:"sd-rating",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"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",onError:"sd-input--error"},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",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",chooseFileAsIcon:"sd-context-btn sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",removeButton:"",removeButtonBottom:"sd-context-btn sd-context-btn--negative sd-file__btn sd-file__clean-btn",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-delete",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",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"},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:"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--drag",itemOnError:"sv-ranking-item--error"},actionBar:{root:"sd-action-bar",item:"sd-action",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon"}};An.defaultV2=Hr;var $r={root:"sv-root-modern",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:"",completedPage:"sv-completedpage",navigation:{complete:"sv-btn sv-footer__complete-btn",prev:"sv-btn sv-footer__prev-btn",next:"sv-btn sv-footer__next-btn",start:"sv-btn sv-footer__start-btn",preview:"sv-btn sv-footer__preview-btn",edit:"sv-btn 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",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"},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",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",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"},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"},imagepicker:{root:"sv-imagepicker",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",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"},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"},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:""}}};An.modern=$r;var Ur=n(0),Wr=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}()}])}));
package/survey.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.11
2
+ * surveyjs - Survey JavaScript library v1.9.12
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.i18n.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.11
2
+ * surveyjs - Survey JavaScript library v1.9.12
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.11
2
+ * surveyjs - Survey JavaScript library v1.9.12
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
package/survey.min.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.9.11
2
+ * surveyjs - Survey JavaScript library v1.9.12
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */