survey-creator-react 1.8.78-beta.1 → 1.9.2-beta.1

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.
@@ -1,12 +1,12 @@
1
1
  /*!
2
- * SurveyJS Creator React v1.8.78-beta.1
2
+ * SurveyJS Creator React v1.9.2-beta.1
3
3
  * (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
6
6
  */
7
7
  !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("survey-react-ui"),require("survey-core"),require("react-dom")):"function"==typeof define&&define.amd?define("SurveyCreator",["react","survey-react-ui","survey-core","react-dom"],t):"object"==typeof exports?exports.SurveyCreator=t(require("react"),require("survey-react-ui"),require("survey-core"),require("react-dom")):e.SurveyCreator=t(e.React,e.SurveyReact,e.Survey,e.ReactDOM)}(this,(function(e,t,i,o){return function(e){var t={};function i(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(o,r,function(t){return e[t]}.bind(null,r));return o},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=6)}([function(t,i){t.exports=e},function(e,i){e.exports=t},function(e,t,i){
8
8
  /*!
9
- * SurveyJS Creator v1.8.78-beta.1
9
+ * SurveyJS Creator v1.9.2-beta.1
10
10
  * (c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
11
11
  * Github: https://github.com/surveyjs/survey-creator
12
12
  * License: https://surveyjs.io/Licenses#SurveyCreator
@@ -21,11 +21,11 @@ Papa Parse
21
21
  v5.3.1
22
22
  https://github.com/mholt/PapaParse
23
23
  License: MIT
24
- */r=[],void 0===(n="function"==typeof(o=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=!t.document&&!!t.postMessage,o=i&&/blob:/i.test((t.location||{}).protocol),r={},n=0,a={parse:function(i,o){var s=(o=o||{}).dynamicTyping||!1;if(w(s)&&(o.dynamicTypingFunction=s,s={}),o.dynamicTyping=s,o.transform=!!w(o.transform)&&o.transform,o.worker&&a.WORKERS_SUPPORTED){var l=function(){if(!a.WORKERS_SUPPORTED)return!1;var i,o,s=(i=t.URL||t.webkitURL||null,o=e.toString(),a.BLOB_URL||(a.BLOB_URL=i.createObjectURL(new Blob(["(",o,")();"],{type:"text/javascript"})))),l=new t.Worker(s);return l.onmessage=v,l.id=n++,r[l.id]=l}();return l.userStep=o.step,l.userChunk=o.chunk,l.userComplete=o.complete,l.userError=o.error,o.step=w(o.step),o.chunk=w(o.chunk),o.complete=w(o.complete),o.error=w(o.error),delete o.worker,void l.postMessage({input:i,config:o,workerId:l.id})}var m=null;return a.NODE_STREAM_INPUT,"string"==typeof i?m=o.download?new u(o):new d(o):!0===i.readable&&w(i.read)&&w(i.on)?m=new p(o):(t.File&&i instanceof File||i instanceof Object)&&(m=new c(o)),m.stream(i)},unparse:function(e,t){var i=!1,o=!0,r=",",n="\r\n",s='"',l=s+s,u=!1,c=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(r=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(n=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(o=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");c=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+s),"boolean"==typeof t.escapeFormulae&&(d=t.escapeFormulae)}}();var p=new RegExp(g(s),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return m(null,e,u);if("object"==typeof e[0])return m(c||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),m(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function m(e,t,i){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var s=Array.isArray(e)&&0<e.length,l=!Array.isArray(t[0]);if(s&&o){for(var u=0;u<e.length;u++)0<u&&(a+=r),a+=h(e[u],u);0<t.length&&(a+=n)}for(var c=0;c<t.length;c++){var d=s?e.length:t[c].length,p=!1,m=s?0===Object.keys(t[c]).length:0===t[c].length;if(i&&!s&&(p="greedy"===i?""===t[c].join("").trim():1===t[c].length&&0===t[c][0].length),"greedy"===i&&s){for(var g=[],v=0;v<d;v++){var y=l?e[v]:v;g.push(t[c][y])}p=""===g.join("").trim()}if(!p){for(var f=0;f<d;f++){0<f&&!m&&(a+=r);var b=s&&l?e[f]:f;a+=h(t[c][b],f)}c<t.length-1&&(!i||0<d&&!m)&&(a+=n)}}return a}function h(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);!0===d&&"string"==typeof e&&null!==e.match(/^[=+\-@].*$/)&&(e="'"+e);var o=e.toString().replace(p,l);return"boolean"==typeof i&&i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1}(o,a.BAD_DELIMITERS)||-1<o.indexOf(r)||" "===o.charAt(0)||" "===o.charAt(o.length-1)?s+o+s:o}}};if(a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!i&&!!t.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=h,a.ParserHandle=m,a.NetworkStreamer=u,a.FileStreamer=c,a.StringStreamer=d,a.ReadableStreamStreamer=p,t.jQuery){var s=t.jQuery;s.fn.parse=function(e){var i=e.config||{},o=[];return this.each((function(e){if("INPUT"!==s(this).prop("tagName").toUpperCase()||"file"!==s(this).attr("type").toLowerCase()||!t.FileReader||!this.files||0===this.files.length)return!0;for(var r=0;r<this.files.length;r++)o.push({file:this.files[r],inputElem:this,instanceConfig:s.extend({},i)})})),r(),this;function r(){if(0!==o.length){var t,i,r,l=o[0];if(w(e.before)){var u=e.before(l.file,l.inputElem);if("object"==typeof u){if("abort"===u.action)return t=l.file,i=l.inputElem,r=u.reason,void(w(e.error)&&e.error({name:"AbortError"},t,i,r));if("skip"===u.action)return void n();"object"==typeof u.config&&(l.instanceConfig=s.extend(l.instanceConfig,u.config))}else if("skip"===u)return void n()}var c=l.instanceConfig.complete;l.instanceConfig.complete=function(e){w(c)&&c(e,l.file,l.inputElem),n()},a.parse(l.file,l.instanceConfig)}else w(e.complete)&&e.complete()}function n(){o.splice(0,1),r()}}}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new m(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,i){if(this.isFirstChunk&&w(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1,this._halted=!1;var n=this._partialLine+e;this._partialLine="";var s=this._handle.parse(n,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var l=s.meta.cursor;this._finished||(this._partialLine=n.substring(l-this._baseIndex),this._baseIndex=l),s&&s.data&&(this._rowCount+=s.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)t.postMessage({results:s,workerId:a.WORKER_ID,finished:u});else if(w(this._config.chunk)&&!i){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!u||!w(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):o&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),l.call(this,e),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),i||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var o in e)t.setRequestHeader(o,e[o])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+r)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}i&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var i=t.statusText||e;this._sendError(new Error(i))}}function c(e){var t,i;(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),l.call(this,e);var o="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,o?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var r=Math.min(this._start+this._config.chunkSize,this._input.size);e=i.call(e,this._start,r)}var n=t.readAsText(e,this._config.encoding);o||this._chunkLoaded({target:{result:n}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,i=this._config.chunkSize;return i?(e=t.substring(0,i),t=t.substring(i)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function p(e){l.call(this,e=e||{});var t=[],i=!0,o=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){o&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=x((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=x((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=x((function(){this._streamCleanUp(),o=!0,this._streamData("")}),this),this._streamCleanUp=x((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function m(e){var t,i,o,r=Math.pow(2,53),n=-r,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,u=this,c=0,d=0,p=!1,m=!1,v=[],y={data:[],errors:[],meta:{}};if(w(e.step)){var f=e.step;e.step=function(t){if(y=t,k())T();else{if(T(),0===y.data.length)return;c+=t.data.length,e.preview&&c>e.preview?i.abort():(y.data=y.data[0],f(y,u))}}}function x(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function T(){if(y&&o&&(P("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),o=!1),e.skipEmptyLines)for(var t=0;t<y.data.length;t++)x(y.data[t])&&y.data.splice(t--,1);return k()&&function(){if(y)if(Array.isArray(y.data[0])){for(var t=0;k()&&t<y.data.length;t++)y.data[t].forEach(i);y.data.splice(0,1)}else y.data.forEach(i);function i(t,i){w(e.transformHeader)&&(t=e.transformHeader(t,i)),v.push(t)}}(),function(){if(!y||!e.header&&!e.dynamicTyping&&!e.transform)return y;function t(t,i){var o,r=e.header?{}:[];for(o=0;o<t.length;o++){var n=o,a=t[o];e.header&&(n=o>=v.length?"__parsed_extra":v[o]),e.transform&&(a=e.transform(a,n)),a=S(n,a),"__parsed_extra"===n?(r[n]=r[n]||[],r[n].push(a)):r[n]=a}return e.header&&(o>v.length?P("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+o,d+i):o<v.length&&P("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+o,d+i)),r}var i=1;return!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(t),i=y.data.length):y.data=t(y.data,0),e.header&&y.meta&&(y.meta.fields=v),d+=i,y}()}function k(){return e.header&&0===v.length}function S(t,i){return o=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[o]&&(e.dynamicTyping[o]=e.dynamicTypingFunction(o)),!0===(e.dynamicTyping[o]||e.dynamicTyping)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<r)return!0}return!1}(i)?parseFloat(i):l.test(i)?new Date(i):""===i?null:i):i;var o}function P(e,t,i,o){var r={type:e,code:t,message:i};void 0!==o&&(r.row=o),y.errors.push(r)}this.parse=function(r,n,s){var l=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var i=new RegExp(g(t)+"([^]*?)"+g(t),"gm"),o=(e=e.replace(i,"")).split("\r"),r=e.split("\n"),n=1<r.length&&r[0].length<o[0].length;if(1===o.length||n)return"\n";for(var a=0,s=0;s<o.length;s++)"\n"===o[s][0]&&a++;return a>=o.length/2?"\r\n":"\r"}(r,l)),o=!1,e.delimiter)w(e.delimiter)&&(e.delimiter=e.delimiter(r),y.meta.delimiter=e.delimiter);else{var u=function(t,i,o,r,n){var s,l,u,c;n=n||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var d=0;d<n.length;d++){var p=n[d],m=0,g=0,v=0;u=void 0;for(var y=new h({comments:r,delimiter:p,newline:i,preview:10}).parse(t),f=0;f<y.data.length;f++)if(o&&x(y.data[f]))v++;else{var b=y.data[f].length;g+=b,void 0!==u?0<b&&(m+=Math.abs(b-u),u=b):u=b}0<y.data.length&&(g/=y.data.length-v),(void 0===l||m<=l)&&(void 0===c||c<g)&&1.99<g&&(l=m,s=p,c=g)}return{successful:!!(e.delimiter=s),bestDelimiter:s}}(r,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);u.successful?e.delimiter=u.bestDelimiter:(o=!0,e.delimiter=a.DefaultDelimiter),y.meta.delimiter=e.delimiter}var c=b(e);return e.preview&&e.header&&c.preview++,t=r,i=new h(c),y=i.parse(t,n,s),T(),p?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,i.abort(),t=w(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){u.streamer._halted?(p=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,i.abort(),y.meta.aborted=!0,w(e.complete)&&e.complete(y),t=""}}function g(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function h(e){var t,i=(e=e||{}).delimiter,o=e.newline,r=e.comments,n=e.step,s=e.preview,l=e.fastMode,u=t=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(u=e.escapeChar),("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=","),r===i)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<a.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==o&&"\r"!==o&&"\r\n"!==o&&(o="\n");var c=0,d=!1;this.parse=function(e,a,p){if("string"!=typeof e)throw new Error("Input must be a string");var m=e.length,h=i.length,v=o.length,y=r.length,f=w(n),b=[],x=[],T=[],k=c=0;if(!e)return I();if(l||!1!==l&&-1===e.indexOf(t)){for(var S=e.split(o),P=0;P<S.length;P++){if(T=S[P],c+=T.length,P!==S.length-1)c+=o.length;else if(p)return I();if(!r||T.substring(0,y)!==r){if(f){if(b=[],A(T.split(i)),q(),d)return I()}else A(T.split(i));if(s&&s<=P)return b=b.slice(0,s),I(!0)}}return I()}for(var E=e.indexOf(i,c),C=e.indexOf(o,c),N=new RegExp(g(u)+g(t),"g"),_=e.indexOf(t,c);;)if(e[c]!==t)if(r&&0===T.length&&e.substring(c,c+y)===r){if(-1===C)return I();c=C+v,C=e.indexOf(o,c),E=e.indexOf(i,c)}else if(-1!==E&&(E<C||-1===C))T.push(e.substring(c,E)),c=E+h,E=e.indexOf(i,c);else{if(-1===C)break;if(T.push(e.substring(c,C)),M(C+v),f&&(q(),d))return I();if(s&&b.length>=s)return I(!0)}else for(_=c,c++;;){if(-1===(_=e.indexOf(t,_+1)))return p||x.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:c}),z();if(_===m-1)return z(e.substring(c,_).replace(N,t));if(t!==u||e[_+1]!==u){if(t===u||0===_||e[_-1]!==u){-1!==E&&E<_+1&&(E=e.indexOf(i,_+1)),-1!==C&&C<_+1&&(C=e.indexOf(o,_+1));var O=j(-1===C?E:Math.min(E,C));if(e[_+1+O]===i){T.push(e.substring(c,_).replace(N,t)),e[c=_+1+O+h]!==t&&(_=e.indexOf(t,c)),E=e.indexOf(i,c),C=e.indexOf(o,c);break}var V=j(C);if(e.substring(_+1+V,_+1+V+v)===o){if(T.push(e.substring(c,_).replace(N,t)),M(_+1+V+v),E=e.indexOf(i,c),_=e.indexOf(t,c),f&&(q(),d))return I();if(s&&b.length>=s)return I(!0);break}x.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:c}),_++}}else _++}return z();function A(e){b.push(e),k=c}function j(t){var i=0;if(-1!==t){var o=e.substring(_+1,t);o&&""===o.trim()&&(i=o.length)}return i}function z(t){return p||(void 0===t&&(t=e.substring(c)),T.push(t),c=m,A(T),f&&q()),I()}function M(t){c=t,A(T),T=[],C=e.indexOf(o,c)}function I(e){return{data:b,errors:x,meta:{delimiter:i,linebreak:o,aborted:d,truncated:!!e,cursor:k+(a||0)}}}function q(){n(I()),b=[],x=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return c}}function v(e){var t=e.data,i=r[t.workerId],o=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){o=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:f,resume:f};if(w(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},n),!o);a++);delete t.results}else w(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!o&&y(t.workerId,t.results)}function y(e,t){var i=r[e];w(i.userComplete)&&i.userComplete(t),i.terminate(),delete r[e]}function f(){throw new Error("Not implemented.")}function b(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=b(e[i]);return t}function x(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return o&&(t.onmessage=function(e){var i=e.data;if(void 0===a.WORKER_ID&&i&&(a.WORKER_ID=i.workerId),"string"==typeof i.input)t.postMessage({workerId:a.WORKER_ID,results:a.parse(i.input,i.config),finished:!0});else if(t.File&&i.input instanceof File||i.input instanceof Object){var o=a.parse(i.input,i.config);o&&t.postMessage({workerId:a.WORKER_ID,results:o,finished:!0})}}),(u.prototype=Object.create(l.prototype)).constructor=u,(c.prototype=Object.create(l.prototype)).constructor=c,(d.prototype=Object.create(d.prototype)).constructor=d,(p.prototype=Object.create(l.prototype)).constructor=p,a})?o.apply(t,r):o)||(e.exports=n)},"./src/components/action-container-view-model.ts":
24
+ */r=[],void 0===(n="function"==typeof(o=function e(){"use strict";var t="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:{},i=!t.document&&!!t.postMessage,o=i&&/blob:/i.test((t.location||{}).protocol),r={},n=0,a={parse:function(i,o){var s=(o=o||{}).dynamicTyping||!1;if(w(s)&&(o.dynamicTypingFunction=s,s={}),o.dynamicTyping=s,o.transform=!!w(o.transform)&&o.transform,o.worker&&a.WORKERS_SUPPORTED){var l=function(){if(!a.WORKERS_SUPPORTED)return!1;var i,o,s=(i=t.URL||t.webkitURL||null,o=e.toString(),a.BLOB_URL||(a.BLOB_URL=i.createObjectURL(new Blob(["(",o,")();"],{type:"text/javascript"})))),l=new t.Worker(s);return l.onmessage=v,l.id=n++,r[l.id]=l}();return l.userStep=o.step,l.userChunk=o.chunk,l.userComplete=o.complete,l.userError=o.error,o.step=w(o.step),o.chunk=w(o.chunk),o.complete=w(o.complete),o.error=w(o.error),delete o.worker,void l.postMessage({input:i,config:o,workerId:l.id})}var m=null;return a.NODE_STREAM_INPUT,"string"==typeof i?m=o.download?new u(o):new d(o):!0===i.readable&&w(i.read)&&w(i.on)?m=new p(o):(t.File&&i instanceof File||i instanceof Object)&&(m=new c(o)),m.stream(i)},unparse:function(e,t){var i=!1,o=!0,r=",",n="\r\n",s='"',l=s+s,u=!1,c=null,d=!1;!function(){if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(r=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(n=t.newline),"string"==typeof t.quoteChar&&(s=t.quoteChar),"boolean"==typeof t.header&&(o=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");c=t.columns}void 0!==t.escapeChar&&(l=t.escapeChar+s),"boolean"==typeof t.escapeFormulae&&(d=t.escapeFormulae)}}();var p=new RegExp(g(s),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return m(null,e,u);if("object"==typeof e[0])return m(c||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),m(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function m(e,t,i){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var s=Array.isArray(e)&&0<e.length,l=!Array.isArray(t[0]);if(s&&o){for(var u=0;u<e.length;u++)0<u&&(a+=r),a+=h(e[u],u);0<t.length&&(a+=n)}for(var c=0;c<t.length;c++){var d=s?e.length:t[c].length,p=!1,m=s?0===Object.keys(t[c]).length:0===t[c].length;if(i&&!s&&(p="greedy"===i?""===t[c].join("").trim():1===t[c].length&&0===t[c][0].length),"greedy"===i&&s){for(var g=[],v=0;v<d;v++){var y=l?e[v]:v;g.push(t[c][y])}p=""===g.join("").trim()}if(!p){for(var f=0;f<d;f++){0<f&&!m&&(a+=r);var b=s&&l?e[f]:f;a+=h(t[c][b],f)}c<t.length-1&&(!i||0<d&&!m)&&(a+=n)}}return a}function h(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);!0===d&&"string"==typeof e&&null!==e.match(/^[=+\-@].*$/)&&(e="'"+e);var o=e.toString().replace(p,l);return"boolean"==typeof i&&i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||function(e,t){for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1}(o,a.BAD_DELIMITERS)||-1<o.indexOf(r)||" "===o.charAt(0)||" "===o.charAt(o.length-1)?s+o+s:o}}};if(a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!i&&!!t.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=h,a.ParserHandle=m,a.NetworkStreamer=u,a.FileStreamer=c,a.StringStreamer=d,a.ReadableStreamStreamer=p,t.jQuery){var s=t.jQuery;s.fn.parse=function(e){var i=e.config||{},o=[];return this.each((function(e){if("INPUT"!==s(this).prop("tagName").toUpperCase()||"file"!==s(this).attr("type").toLowerCase()||!t.FileReader||!this.files||0===this.files.length)return!0;for(var r=0;r<this.files.length;r++)o.push({file:this.files[r],inputElem:this,instanceConfig:s.extend({},i)})})),r(),this;function r(){if(0!==o.length){var t,i,r,l=o[0];if(w(e.before)){var u=e.before(l.file,l.inputElem);if("object"==typeof u){if("abort"===u.action)return t=l.file,i=l.inputElem,r=u.reason,void(w(e.error)&&e.error({name:"AbortError"},t,i,r));if("skip"===u.action)return void n();"object"==typeof u.config&&(l.instanceConfig=s.extend(l.instanceConfig,u.config))}else if("skip"===u)return void n()}var c=l.instanceConfig.complete;l.instanceConfig.complete=function(e){w(c)&&c(e,l.file,l.inputElem),n()},a.parse(l.file,l.instanceConfig)}else w(e.complete)&&e.complete()}function n(){o.splice(0,1),r()}}}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new m(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,i){if(this.isFirstChunk&&w(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1,this._halted=!1;var n=this._partialLine+e;this._partialLine="";var s=this._handle.parse(n,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var l=s.meta.cursor;this._finished||(this._partialLine=n.substring(l-this._baseIndex),this._baseIndex=l),s&&s.data&&(this._rowCount+=s.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)t.postMessage({results:s,workerId:a.WORKER_ID,finished:u});else if(w(this._config.chunk)&&!i){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);s=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!u||!w(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){w(this._config.error)?this._config.error(e):o&&this._config.error&&t.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),l.call(this,e),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),i||(t.onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var o in e)t.setRequestHeader(o,e[o])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+r)}try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}i&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize?this._config.chunkSize:t.responseText.length,this._finished=!this._config.chunkSize||this._start>=function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substring(t.lastIndexOf("/")+1))}(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){var i=t.statusText||e;this._sendError(new Error(i))}}function c(e){var t,i;(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),l.call(this,e);var o="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,o?((t=new FileReader).onload=x(this._chunkLoaded,this),t.onerror=x(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var r=Math.min(this._start+this._config.chunkSize,this._input.size);e=i.call(e,this._start,r)}var n=t.readAsText(e,this._config.encoding);o||this._chunkLoaded({target:{result:n}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function d(e){var t;l.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e,i=this._config.chunkSize;return i?(e=t.substring(0,i),t=t.substring(i)):(e=t,t=""),this._finished=!t,this.parseChunk(e)}}}function p(e){l.call(this,e=e||{});var t=[],i=!0,o=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){o&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=x((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=x((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=x((function(){this._streamCleanUp(),o=!0,this._streamData("")}),this),this._streamCleanUp=x((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function m(e){var t,i,o,r=Math.pow(2,53),n=-r,s=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/,u=this,c=0,d=0,p=!1,m=!1,v=[],y={data:[],errors:[],meta:{}};if(w(e.step)){var f=e.step;e.step=function(t){if(y=t,k())T();else{if(T(),0===y.data.length)return;c+=t.data.length,e.preview&&c>e.preview?i.abort():(y.data=y.data[0],f(y,u))}}}function x(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function T(){if(y&&o&&(P("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),o=!1),e.skipEmptyLines)for(var t=0;t<y.data.length;t++)x(y.data[t])&&y.data.splice(t--,1);return k()&&function(){if(y)if(Array.isArray(y.data[0])){for(var t=0;k()&&t<y.data.length;t++)y.data[t].forEach(i);y.data.splice(0,1)}else y.data.forEach(i);function i(t,i){w(e.transformHeader)&&(t=e.transformHeader(t,i)),v.push(t)}}(),function(){if(!y||!e.header&&!e.dynamicTyping&&!e.transform)return y;function t(t,i){var o,r=e.header?{}:[];for(o=0;o<t.length;o++){var n=o,a=t[o];e.header&&(n=o>=v.length?"__parsed_extra":v[o]),e.transform&&(a=e.transform(a,n)),a=S(n,a),"__parsed_extra"===n?(r[n]=r[n]||[],r[n].push(a)):r[n]=a}return e.header&&(o>v.length?P("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+o,d+i):o<v.length&&P("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+o,d+i)),r}var i=1;return!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(t),i=y.data.length):y.data=t(y.data,0),e.header&&y.meta&&(y.meta.fields=v),d+=i,y}()}function k(){return e.header&&0===v.length}function S(t,i){return o=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[o]&&(e.dynamicTyping[o]=e.dynamicTypingFunction(o)),!0===(e.dynamicTyping[o]||e.dynamicTyping)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&(function(e){if(s.test(e)){var t=parseFloat(e);if(n<t&&t<r)return!0}return!1}(i)?parseFloat(i):l.test(i)?new Date(i):""===i?null:i):i;var o}function P(e,t,i,o){var r={type:e,code:t,message:i};void 0!==o&&(r.row=o),y.errors.push(r)}this.parse=function(r,n,s){var l=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substring(0,1048576);var i=new RegExp(g(t)+"([^]*?)"+g(t),"gm"),o=(e=e.replace(i,"")).split("\r"),r=e.split("\n"),n=1<r.length&&r[0].length<o[0].length;if(1===o.length||n)return"\n";for(var a=0,s=0;s<o.length;s++)"\n"===o[s][0]&&a++;return a>=o.length/2?"\r\n":"\r"}(r,l)),o=!1,e.delimiter)w(e.delimiter)&&(e.delimiter=e.delimiter(r),y.meta.delimiter=e.delimiter);else{var u=function(t,i,o,r,n){var s,l,u,c;n=n||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var d=0;d<n.length;d++){var p=n[d],m=0,g=0,v=0;u=void 0;for(var y=new h({comments:r,delimiter:p,newline:i,preview:10}).parse(t),f=0;f<y.data.length;f++)if(o&&x(y.data[f]))v++;else{var b=y.data[f].length;g+=b,void 0!==u?0<b&&(m+=Math.abs(b-u),u=b):u=b}0<y.data.length&&(g/=y.data.length-v),(void 0===l||m<=l)&&(void 0===c||c<g)&&1.99<g&&(l=m,s=p,c=g)}return{successful:!!(e.delimiter=s),bestDelimiter:s}}(r,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess);u.successful?e.delimiter=u.bestDelimiter:(o=!0,e.delimiter=a.DefaultDelimiter),y.meta.delimiter=e.delimiter}var c=b(e);return e.preview&&e.header&&c.preview++,t=r,i=new h(c),y=i.parse(t,n,s),T(),p?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return p},this.pause=function(){p=!0,i.abort(),t=w(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){u.streamer._halted?(p=!1,u.streamer.parseChunk(t,!0)):setTimeout(u.resume,3)},this.aborted=function(){return m},this.abort=function(){m=!0,i.abort(),y.meta.aborted=!0,w(e.complete)&&e.complete(y),t=""}}function g(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function h(e){var t,i=(e=e||{}).delimiter,o=e.newline,r=e.comments,n=e.step,s=e.preview,l=e.fastMode,u=t=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(u=e.escapeChar),("string"!=typeof i||-1<a.BAD_DELIMITERS.indexOf(i))&&(i=","),r===i)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<a.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==o&&"\r"!==o&&"\r\n"!==o&&(o="\n");var c=0,d=!1;this.parse=function(e,a,p){if("string"!=typeof e)throw new Error("Input must be a string");var m=e.length,h=i.length,v=o.length,y=r.length,f=w(n),b=[],x=[],T=[],k=c=0;if(!e)return M();if(l||!1!==l&&-1===e.indexOf(t)){for(var S=e.split(o),P=0;P<S.length;P++){if(T=S[P],c+=T.length,P!==S.length-1)c+=o.length;else if(p)return M();if(!r||T.substring(0,y)!==r){if(f){if(b=[],j(T.split(i)),q(),d)return M()}else j(T.split(i));if(s&&s<=P)return b=b.slice(0,s),M(!0)}}return M()}for(var E=e.indexOf(i,c),C=e.indexOf(o,c),N=new RegExp(g(u)+g(t),"g"),O=e.indexOf(t,c);;)if(e[c]!==t)if(r&&0===T.length&&e.substring(c,c+y)===r){if(-1===C)return M();c=C+v,C=e.indexOf(o,c),E=e.indexOf(i,c)}else if(-1!==E&&(E<C||-1===C))T.push(e.substring(c,E)),c=E+h,E=e.indexOf(i,c);else{if(-1===C)break;if(T.push(e.substring(c,C)),z(C+v),f&&(q(),d))return M();if(s&&b.length>=s)return M(!0)}else for(O=c,c++;;){if(-1===(O=e.indexOf(t,O+1)))return p||x.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:b.length,index:c}),I();if(O===m-1)return I(e.substring(c,O).replace(N,t));if(t!==u||e[O+1]!==u){if(t===u||0===O||e[O-1]!==u){-1!==E&&E<O+1&&(E=e.indexOf(i,O+1)),-1!==C&&C<O+1&&(C=e.indexOf(o,O+1));var _=V(-1===C?E:Math.min(E,C));if(e[O+1+_]===i){T.push(e.substring(c,O).replace(N,t)),e[c=O+1+_+h]!==t&&(O=e.indexOf(t,c)),E=e.indexOf(i,c),C=e.indexOf(o,c);break}var A=V(C);if(e.substring(O+1+A,O+1+A+v)===o){if(T.push(e.substring(c,O).replace(N,t)),z(O+1+A+v),E=e.indexOf(i,c),O=e.indexOf(t,c),f&&(q(),d))return M();if(s&&b.length>=s)return M(!0);break}x.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:b.length,index:c}),O++}}else O++}return I();function j(e){b.push(e),k=c}function V(t){var i=0;if(-1!==t){var o=e.substring(O+1,t);o&&""===o.trim()&&(i=o.length)}return i}function I(t){return p||(void 0===t&&(t=e.substring(c)),T.push(t),c=m,j(T),f&&q()),M()}function z(t){c=t,j(T),T=[],C=e.indexOf(o,c)}function M(e){return{data:b,errors:x,meta:{delimiter:i,linebreak:o,aborted:d,truncated:!!e,cursor:k+(a||0)}}}function q(){n(M()),b=[],x=[]}},this.abort=function(){d=!0},this.getCharIndex=function(){return c}}function v(e){var t=e.data,i=r[t.workerId],o=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){o=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:f,resume:f};if(w(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},n),!o);a++);delete t.results}else w(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!o&&y(t.workerId,t.results)}function y(e,t){var i=r[e];w(i.userComplete)&&i.userComplete(t),i.terminate(),delete r[e]}function f(){throw new Error("Not implemented.")}function b(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var i in e)t[i]=b(e[i]);return t}function x(e,t){return function(){e.apply(t,arguments)}}function w(e){return"function"==typeof e}return o&&(t.onmessage=function(e){var i=e.data;if(void 0===a.WORKER_ID&&i&&(a.WORKER_ID=i.workerId),"string"==typeof i.input)t.postMessage({workerId:a.WORKER_ID,results:a.parse(i.input,i.config),finished:!0});else if(t.File&&i.input instanceof File||i.input instanceof Object){var o=a.parse(i.input,i.config);o&&t.postMessage({workerId:a.WORKER_ID,results:o,finished:!0})}}),(u.prototype=Object.create(l.prototype)).constructor=u,(c.prototype=Object.create(l.prototype)).constructor=c,(d.prototype=Object.create(d.prototype)).constructor=d,(p.prototype=Object.create(l.prototype)).constructor=p,a})?o.apply(t,r):o)||(e.exports=n)},"./src/components/action-container-view-model.ts":
25
25
  /*!*******************************************************!*\
26
26
  !*** ./src/components/action-container-view-model.ts ***!
27
27
  \*******************************************************/
28
- /*! exports provided: ActionContainerViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"ActionContainerViewModel",(function(){return n}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=function(e){function t(t,i){var o=e.call(this)||this;o.creator=t,o.surveyElement=i,o.selectedPropPageFunc=function(e,t){"isSelectedInDesigner"===t.name&&o.onElementSelectedChanged(t.newValue)},o.surveyElement.onPropertyChanged.add(o.selectedPropPageFunc),o.actionContainer=new r.AdaptiveActionContainer;var n=[];return o.buildActions(n),o.creator.onElementMenuItemsChanged(o.surveyElement,n),o.actionContainer.setItems(n),o}return Object(o.__extends)(t,e),t.prototype.checkActionProperties=function(){this.creator.isElementSelected(this.surveyElement)&&this.updateActionsProperties()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.surveyElement.onPropertyChanged.remove(this.selectedPropPageFunc)},t.prototype.onElementSelectedChanged=function(e){e&&this.updateActionsProperties()},t.prototype.updateActionsProperties=function(){this.updateElementAllowOptions(this.creator.getElementAllowOperations(this.surveyElement),this.isOperationsAllow())},t.prototype.updateElementAllowOptions=function(e,t){this.allowDragging=t&&e.allowDragging,this.updateActionVisibility("delete",t&&e.allowDelete),this.updateActionVisibility("duplicate",t&&e.allowCopy),this.updateActionVisibility("settings",this.creator.currentTabPropertyGrid&&this.creator.currentTabPropertyGrid.flyoutMode)},t.prototype.isOperationsAllow=function(){return!this.creator.readOnly},t.prototype.updateActionVisibility=function(e,t){var i=this.getActionById(e);i&&(i.visible=t)},t.prototype.getActionById=function(e){for(var t=this.actionContainer.actions,i=0;i<t.length;i++)if(t[i].id===e)return t[i];return null},t.prototype.buildActions=function(e){var t=this;e.push(new r.Action({id:"duplicate",iconName:"icon-duplicate_16x16",css:"sv-action-bar-item--secondary",title:this.creator.getLocString("survey.duplicate"),visibleIndex:10,iconSize:16,action:function(){t.duplicate()}})),e.push(new r.Action({id:"settings",iconName:"icon-settings_16x16",css:"sv-action-bar-item--secondary",title:this.creator.getLocString("survey.settings"),visibleIndex:20,iconSize:16,action:function(){t.creator.showPropertyGrid=!0}})),e.push(new r.Action({id:"delete",iconName:"icon-delete_16x16",css:"sv-action-bar-item--secondary",title:this.creator.getLocString("pe.delete"),visibleIndex:30,iconSize:16,action:function(){t.creator.deleteElement(t.surveyElement)}}))},t.prototype.duplicate=function(){},Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"allowDragging",void 0),t}(r.Base)},"./src/components/creator.scss":
28
+ /*! exports provided: ActionContainerViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"ActionContainerViewModel",(function(){return n}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=function(e){function t(t,i){var o=e.call(this)||this;o.creator=t,o.surveyElement=i,o.selectedPropPageFunc=function(e,t){"isSelectedInDesigner"===t.name&&o.onElementSelectedChanged(t.newValue)},o.surveyElement.onPropertyChanged.add(o.selectedPropPageFunc),o.actionContainer=new r.AdaptiveActionContainer;var n=[];return o.buildActions(n),o.creator.onElementMenuItemsChanged(o.surveyElement,n),o.actionContainer.setItems(n),o}return Object(o.__extends)(t,e),t.prototype.checkActionProperties=function(){this.creator.isElementSelected(this.surveyElement)&&this.updateActionsProperties()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.surveyElement.onPropertyChanged.remove(this.selectedPropPageFunc)},t.prototype.onElementSelectedChanged=function(e){e&&this.updateActionsProperties()},t.prototype.updateActionsProperties=function(){this.updateElementAllowOptions(this.creator.getElementAllowOperations(this.surveyElement),this.isOperationsAllow())},t.prototype.updateElementAllowOptions=function(e,t){this.allowDragging=t&&e.allowDragging,this.updateActionVisibility("delete",t&&e.allowDelete),this.updateActionVisibility("duplicate",t&&e.allowCopy),this.updateActionVisibility("settings",this.creator.sideBar.flyoutMode)},t.prototype.isOperationsAllow=function(){return!this.creator.readOnly},t.prototype.updateActionVisibility=function(e,t){var i=this.getActionById(e);i&&(i.visible=t)},t.prototype.getActionById=function(e){for(var t=this.actionContainer.actions,i=0;i<t.length;i++)if(t[i].id===e)return t[i];return null},t.prototype.buildActions=function(e){var t=this;e.push(new r.Action({id:"duplicate",iconName:"icon-duplicate_16x16",css:"sv-action-bar-item--secondary",title:this.creator.getLocString("survey.duplicate"),visibleIndex:10,iconSize:16,action:function(){t.duplicate()}})),e.push(new r.Action({id:"settings",iconName:"icon-settings_16x16",css:"sv-action-bar-item--secondary",title:this.creator.getLocString("survey.settings"),visibleIndex:20,iconSize:16,action:function(){t.creator.showPropertyGrid=!0}})),e.push(new r.Action({id:"delete",iconName:"icon-delete_16x16",css:"sv-action-bar-item--secondary",title:this.creator.getLocString("pe.delete"),visibleIndex:30,iconSize:16,action:function(){t.creator.deleteElement(t.surveyElement)}}))},t.prototype.duplicate=function(){},Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"allowDragging",void 0),t}(r.Base)},"./src/components/creator.scss":
29
29
  /*!*************************************!*\
30
30
  !*** ./src/components/creator.scss ***!
31
31
  \*************************************/
@@ -57,7 +57,7 @@ License: MIT
57
57
  /*!**************************************!*\
58
58
  !*** ./src/components/item-value.ts ***!
59
59
  \**************************************/
60
- /*! exports provided: ItemValueWrapperViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"ItemValueWrapperViewModel",(function(){return s}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=(i(/*! ./item-value.scss */"./src/components/item-value.scss"),i(/*! ../editorLocalization */"./src/editorLocalization.ts")),a=i(/*! ../utils/dragOrClickHelper */"./src/utils/dragOrClickHelper.ts"),s=function(e){function t(t,i,o){var n=e.call(this)||this;if(n.creator=t,n.question=i,n.item=o,n.canTouchItems=!0,n.startDragItemValue=function(e,t){n.dragDropHelper.startDrag(e,n.item,n.question,t)},n.handleDragDropGhostPositionChanged=function(){n.ghostPosition=n.dragDropHelper.getGhostPosition(n.item),n.isDragDropGhost=n.item===n.dragDropHelper.draggedElement,n.item===n.dragDropHelper.prevDropTarget?(n.isDragDropMoveDown=n.item.isDragDropMoveDown,n.isDragDropMoveUp=n.item.isDragDropMoveUp):(n.isDragDropMoveDown=!1,n.isDragDropMoveUp=!1)},n.isNew=!i.isItemInList(o),i.noneItem===o);else if(i.otherItem===o);else if("checkbox"===i.getType()&&i.selectAllItem===o);else if(n.isNew){var s=t.getNextItemValue(i);o.value=s}return n.dragDropHelper.onGhostPositionChanged.add(n.handleDragDropGhostPositionChanged),n.dragOrClickHelper=new a.DragOrClickHelper(n.startDragItemValue),n.allowItemOperations={allowDelete:void 0,allowEdit:void 0},n.creator.onCollectionItemAllowingCallback(i,r.Serializer.findProperty(i.getType(),n.item.ownerPropertyName),i.visibleChoices,n.item,n.allowItemOperations),void 0===n.allowItemOperations.allowDelete&&(n.allowItemOperations.allowDelete=!0),n.creator.isCanModifyProperty(i,"choices")||(n.canTouchItems=!1),n}return Object(o.__extends)(t,e),t.prototype.isBanStartDrag=function(e){var t="true"===e.target.getAttribute("contenteditable");return this.isNew||t},t.prototype.onPointerDown=function(e){this.isBanStartDrag(e)||this.dragOrClickHelper.onPointerDown(e)},Object.defineProperty(t.prototype,"dragDropHelper",{get:function(){return this.creator.dragDropChoices},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dragDropHelper.onGhostPositionChanged.remove(this.handleDragDropGhostPositionChanged)},Object.defineProperty(t.prototype,"isDraggable",{get:function(){return this.isDraggableItem(this.item)},enumerable:!1,configurable:!0}),t.prototype.isDraggableItem=function(e){return!(this.creator.readOnly||!this.canTouchItems)&&-1!==this.question.choices.indexOf(e)},t.prototype.add=function(e){if(e.question.noneItem===e.item)e.question.hasNone=!0;else if(e.question.otherItem===e.item)e.question.hasOther=!0;else if("checkbox"===e.question.getType()&&e.question.selectAllItem===e.item)e.question.hasSelectAll=!0;else{var t=e.creator.createNewItemValue(e.question);e.question.choices.push(t);var i=e.creator.getNextItemValue(e.question);e.item.value=i}this.isNew=!e.question.isItemInList(e.item)},t.prototype.remove=function(e){if(e.question.noneItem===e.item)e.question.hasNone=!1;else if(e.question.otherItem===e.item)e.question.hasOther=!1;else if("checkbox"===e.question.getType()&&e.question.selectAllItem===e.item)e.question.hasSelectAll=!1;else{var t=e.question.choices.indexOf(e.item);e.question.choices.splice(t,1)}this.isNew=!e.question.isItemInList(e.item)},Object.defineProperty(t.prototype,"allowRemove",{get:function(){return!this.creator.readOnly&&this.canTouchItems&&this.allowItemOperations.allowDelete},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){return Object(n.getLocString)(this.isNew?"pe.addItem":"pe.removeItem")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragTooltip",{get:function(){return Object(n.getLocString)("pe.dragItem")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdd",{get:function(){var e=!this.question.isItemInList(this.item);return!this.creator.readOnly&&this.canTouchItems&&e},enumerable:!1,configurable:!0}),t.prototype.select=function(e,t){e.creator.selectElement(e.question,"choices",!1),t&&t.stopPropagation()},Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isNew",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isDragging",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isDragDropGhost",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isDragDropMoveDown",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isDragDropMoveUp",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:null})],t.prototype,"ghostPosition",void 0),t}(r.Base)},"./src/components/matrix-cell.scss":
60
+ /*! exports provided: ItemValueWrapperViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"ItemValueWrapperViewModel",(function(){return s}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=(i(/*! ./item-value.scss */"./src/components/item-value.scss"),i(/*! ../editorLocalization */"./src/editorLocalization.ts")),a=i(/*! ../utils/dragOrClickHelper */"./src/utils/dragOrClickHelper.ts"),s=function(e){function t(t,i,o){var n=e.call(this)||this;if(n.creator=t,n.question=i,n.item=o,n.canTouchItems=!0,n.startDragItemValue=function(e,t){n.dragDropHelper.startDrag(e,n.item,n.question,t)},n.handleDragDropGhostPositionChanged=function(){n.ghostPosition=n.dragDropHelper.getGhostPosition(n.item),n.isDragDropGhost=n.item===n.dragDropHelper.draggedElement,n.item===n.dragDropHelper.prevDropTarget?(n.isDragDropMoveDown=n.item.isDragDropMoveDown,n.isDragDropMoveUp=n.item.isDragDropMoveUp):(n.isDragDropMoveDown=!1,n.isDragDropMoveUp=!1)},n.isNew=!i.isItemInList(o),i.noneItem===o);else if(i.otherItem===o);else if("checkbox"===i.getType()&&i.selectAllItem===o);else if(n.isNew){var s=t.getNextItemValue(i);o.value=s}return n.dragDropHelper.onGhostPositionChanged.add(n.handleDragDropGhostPositionChanged),n.dragOrClickHelper=new a.DragOrClickHelper(n.startDragItemValue),n.allowItemOperations={allowDelete:void 0,allowEdit:void 0},n.creator.onCollectionItemAllowingCallback(i,r.Serializer.findProperty(i.getType(),n.item.ownerPropertyName),i.visibleChoices,n.item,n.allowItemOperations),void 0===n.allowItemOperations.allowDelete&&(n.allowItemOperations.allowDelete=!0),n.creator.isCanModifyProperty(i,"choices")||(n.canTouchItems=!1),n}return Object(o.__extends)(t,e),t.prototype.isBanStartDrag=function(e){var t="true"===e.target.getAttribute("contenteditable");return this.isNew||t},t.prototype.onPointerDown=function(e){this.isBanStartDrag(e)||this.dragOrClickHelper.onPointerDown(e)},Object.defineProperty(t.prototype,"dragDropHelper",{get:function(){return this.creator.dragDropChoices},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dragDropHelper.onGhostPositionChanged.remove(this.handleDragDropGhostPositionChanged)},Object.defineProperty(t.prototype,"isDraggable",{get:function(){return this.isDraggableItem(this.item)},enumerable:!1,configurable:!0}),t.prototype.isDraggableItem=function(e){return!(this.creator.readOnly||!this.canTouchItems)&&-1!==this.question.choices.indexOf(e)},t.prototype.add=function(e){if(e.question.noneItem===e.item)e.question.hasNone=!0;else if(e.question.otherItem===e.item)e.question.hasOther=!0;else if("checkbox"===e.question.getType()&&e.question.selectAllItem===e.item)e.question.hasSelectAll=!0;else{var t=e.creator.createNewItemValue(e.question);e.question.choices.push(t);var i=e.creator.getNextItemValue(e.question);e.item.value=i}this.isNew=!e.question.isItemInList(e.item)},t.prototype.remove=function(e){if(e.question.noneItem===e.item)e.question.hasNone=!1;else if(e.question.otherItem===e.item)e.question.hasOther=!1;else if("checkbox"===e.question.getType()&&e.question.selectAllItem===e.item)e.question.hasSelectAll=!1;else{var t=e.question.choices.indexOf(e.item);e.question.choices.splice(t,1)}this.isNew=!e.question.isItemInList(e.item)},Object.defineProperty(t.prototype,"allowRemove",{get:function(){var e=!this.question.isItemInList(this.item);return!this.creator.readOnly&&this.canTouchItems&&this.allowItemOperations.allowDelete&&!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tooltip",{get:function(){return Object(n.getLocString)(this.isNew?"pe.addItem":"pe.removeItem")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragTooltip",{get:function(){return Object(n.getLocString)("pe.dragItem")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdd",{get:function(){var e=!this.question.isItemInList(this.item);return!this.creator.readOnly&&this.canTouchItems&&e},enumerable:!1,configurable:!0}),t.prototype.select=function(e,t){e.creator.selectElement(e.question,"choices",!1),t&&t.stopPropagation()},Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isNew",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isDragging",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isDragDropGhost",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isDragDropMoveDown",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isDragDropMoveUp",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:null})],t.prototype,"ghostPosition",void 0),t}(r.Base)},"./src/components/matrix-cell.scss":
61
61
  /*!*****************************************!*\
62
62
  !*** ./src/components/matrix-cell.scss ***!
63
63
  \*****************************************/
@@ -85,7 +85,7 @@ License: MIT
85
85
  /*!*********************************************************!*\
86
86
  !*** ./src/components/page-navigator/page-navigator.ts ***!
87
87
  \*********************************************************/
88
- /*! exports provided: PageNavigatorViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"PageNavigatorViewModel",(function(){return n}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=(i(/*! ./page-navigator.scss */"./src/components/page-navigator/page-navigator.scss"),i(/*! ./page-navigator-item.scss */"./src/components/page-navigator/page-navigator-item.scss"),function(e){function t(t){var i=e.call(this)||this;return i.pagesController=t,i.togglePageSelector=function(){return i.popupModel.toggleVisibility()},i.icon="icon-navigation",i.pagesChangedFunc=function(e,t){i.buildItems()},i.currentPageChangedFunc=function(e,t){i.updateItemsActivity()},i.pageNameChangedFunc=function(e,t){var o=t.page;if(o){var r=i.getActionBarByPage(o);r&&(r.title=i.pagesController.getDisplayName(o))}},i.pagesController.onPagesChanged.add(i.pagesChangedFunc),i.pagesController.onCurrentPagesChanged.add(i.currentPageChangedFunc),i.pagesController.onPageNameChanged.add(i.pageNameChangedFunc),i.pageListModel=new r.ListModel([],(function(e){i.pagesController.selectPage(e.data),i.popupModel.toggleVisibility()}),!0),i.popupModel=new r.PopupModel("sv-list",{model:i.pageListModel}),i.popupModel.onShow=function(){i.pageListModel.selectedItem=i.getActionBarByPage(i.pagesController.currentPage),i.isPopupOpened=!0},i.popupModel.onHide=function(){i.isPopupOpened=!1},i.buildItems(),i}return Object(o.__extends)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.pagesController.onPagesChanged.remove(this.pagesChangedFunc),this.pagesController.onCurrentPagesChanged.remove(this.currentPageChangedFunc),this.pagesController.onPageNameChanged.add(this.pageNameChangedFunc)},t.prototype.getActionBarByPage=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].data===e)return this.items[t];return null},t.prototype.setItems=function(e){this.items=e,this.pageListModel.setItems(e),this.visible=e.length>1},t.prototype.buildItems=function(){for(var e=[],t=this.pagesController.pages,i=0;i<t.length;i++)e.push(this.createActionBarItem(t[i]));this.setItems(e)},t.prototype.updateItemsActivity=function(){for(var e=this.pagesController.currentPage,t=0;t<this.items.length;t++){var i=this.items[t];i.active=i.data===e}},t.prototype.createActionBarItem=function(e){var t=this,i={id:e.id,title:this.pagesController?this.pagesController.getDisplayName(e):e.title};return i.active=e===this.pagesController.currentPage,i.action=function(){t.pagesController.selectPage(e)},i.data=e,this.createActionBarCore(i)},t.prototype.createActionBarCore=function(e){return new r.Action(e)},Object(o.__decorate)([Object(r.propertyArray)()],t.prototype,"items",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"visible",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isPopupOpened",void 0),t}(r.Base))},"./src/components/page.scss":
88
+ /*! exports provided: PageNavigatorViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"PageNavigatorViewModel",(function(){return a}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=(i(/*! ./page-navigator.scss */"./src/components/page-navigator/page-navigator.scss"),i(/*! ./page-navigator-item.scss */"./src/components/page-navigator/page-navigator-item.scss"),i(/*! ../../editorLocalization */"./src/editorLocalization.ts")),a=function(e){function t(t){var i=e.call(this)||this;return i.pagesController=t,i.togglePageSelector=function(){return i.popupModel.toggleVisibility()},i.icon="icon-select-page",i.pagesChangedFunc=function(e,t){i.buildItems()},i.pageNameChangedFunc=function(e,t){var o=t.page;if(o){var r=i.getActionBarByPage(o);r&&(r.title=i.pagesController.getDisplayName(o))}},i.pagesController.onPagesChanged.add(i.pagesChangedFunc),i.pagesController.onPageNameChanged.add(i.pageNameChangedFunc),i.pageListModel=new r.ListModel([],(function(e){i.pagesController.selectPage(e.data),i.popupModel.toggleVisibility()}),!0),i.popupModel=new r.PopupModel("sv-list",{model:i.pageListModel}),i.pagesController&&(i.popupModel.horizontalPosition=i.pagesController.creator.toolboxLocation),i.popupModel.onShow=function(){i.pageListModel.selectedItem=i.getActionBarByPage(i.pagesController.currentPage),i.isPopupOpened=!0},i.popupModel.onHide=function(){i.isPopupOpened=!1},i.pagesController.creator.onPropertyChanged&&i.pagesController.creator.onPropertyChanged.add((function(e,t){"toolboxLocation"===t.name&&("insideSideBar"==i.pagesController.creator.toolboxLocation?i.popupModel.horizontalPosition="right":i.popupModel.horizontalPosition=i.pagesController.creator.toolboxLocation)})),i.buildItems(),i}return Object(o.__extends)(t,e),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.pagesController.onPagesChanged.remove(this.pagesChangedFunc),this.pagesController.onPageNameChanged.add(this.pageNameChangedFunc)},t.prototype.getActionBarByPage=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].data===e)return this.items[t];return null},t.prototype.setItems=function(e){this.items=e,this.pageListModel.setItems(e),this.visible=e.length>1},t.prototype.buildItems=function(){this.currentPage=this.pagesController.currentPage||this.pagesController.pages[0];for(var e=[],t=this.pagesController.pages,i=0;i<t.length;i++)e.push(this.createActionBarItem(t[i]));this.setItems(e)},t.prototype.patchContainerOffset=function(e){for(;e;){if(-1!==e.className.indexOf("svc-tab-designer--with-page-navigator"))return void(e.offsetParent.scrollTop=0);e=e.parentElement}},t.prototype.createActionBarItem=function(e){var t=this,i={id:e.id,title:this.pagesController?this.pagesController.getDisplayName(e):e.title};return i.active=new r.ComputedUpdater((function(){return e===t.currentPage})),i.action=function(){var i=document.getElementById(e.id);i&&(i.scrollIntoView({block:"start"}),t.patchContainerOffset(i),t.pagesController.pages.indexOf(e)===t.pagesController.pages.length-1&&setTimeout((function(){i.scrollIntoView({block:"start"}),t.patchContainerOffset(i)}),50))},i.data=e,this.createActionBarCore(i)},t.prototype.createActionBarCore=function(e){return new r.Action(e)},Object.defineProperty(t.prototype,"pageSelectorCaption",{get:function(){return Object(n.getLocString)("ed.selectPage")},enumerable:!1,configurable:!0}),t.prototype.onContainerScroll=function(e){var t=e.scrollTop,i=e.clientHeight,o=t+i,r=[],n=void 0,a=0;return this.pagesController.pages.forEach((function(e){var i=document.getElementById(e.id);if(i){var s=i.offsetTop,l=s+i.clientHeight;if(!(s<o||l>t))return;var u=s-t,c=o-l,d=i.clientHeight;u<0&&(d+=u),c<0&&(d+=c),(d/=i.clientHeight)>0&&(r.push({page:e,visiblePart:d}),d>a&&(a=d,n=e))}})),this.currentPage=n,r},Object(o.__decorate)([Object(r.propertyArray)()],t.prototype,"items",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"visible",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isPopupOpened",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"currentPage",void 0),t}(r.Base)},"./src/components/page.scss":
89
89
  /*!**********************************!*\
90
90
  !*** ./src/components/page.scss ***!
91
91
  \**********************************/
@@ -93,7 +93,7 @@ License: MIT
93
93
  /*!********************************!*\
94
94
  !*** ./src/components/page.ts ***!
95
95
  \********************************/
96
- /*! exports provided: PageViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"PageViewModel",(function(){return l}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ./action-container-view-model */"./src/components/action-container-view-model.ts"),a=i(/*! ../utils/utils */"./src/utils/utils.ts"),s=(i(/*! ./page.scss */"./src/components/page.scss"),i(/*! ../survey-helper */"./src/survey-helper.ts")),l=function(e){function t(t,i){var o=e.call(this,t,i)||this;return o.addGhostPage=function(){o.isGhost&&(o.page.unRegisterFunctionOnPropertiesValueChanged(["title","description"]),o.page.name=s.SurveyHelper.getNewPageName(o.creator.survey.pages),o.creator.survey.addPage(o.page)),o.creator.selectElement(o.page),o.updateActionsProperties()},o.questionTypeSelectorModel=o.creator.getQuestionTypeSelectorModel((function(){o.addGhostPage()})),o._page=i,i.surveyChangedCallback=function(){o.isPageLive=!!i.survey},o.isGhost&&(o.updateActionsProperties(),o.page.registerFunctionOnPropertiesValueChanged(["title","description"],(function(){o.addGhostPage()})),o.patchPageForDragDrop(o.page,o.addGhostPage)),o.page.onFirstRendering(),o.page.updateCustomWidgets(),o.page.setWasShown(!0),o.checkActionProperties(),o}return Object(o.__extends)(t,e),t.prototype.onElementSelectedChanged=function(t){e.prototype.onElementSelectedChanged.call(this,t),this.isSelected=t,t&&this.onPageSelectedCallback&&this.onPageSelectedCallback()},t.prototype.patchPageForDragDrop=function(e,t){e._isGhost=!0,e._addGhostPageViewModel=function(){delete e._isGhost,delete e._addGhostPageViewModel,t()}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.page.unRegisterFunctionOnPropertiesValueChanged(["title","description"]),this.onPropertyValueChangedCallback=void 0},Object.defineProperty(t.prototype,"isGhost",{get:function(){return this.creator.survey.pages.indexOf(this.page)<0},enumerable:!1,configurable:!0}),t.prototype.isOperationsAllow=function(){return e.prototype.isOperationsAllow.call(this)&&!this.isGhost},Object.defineProperty(t.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),t.prototype.addNewQuestion=function(e,t){var i=this;this.creator.addNewQuestionInPage((function(){i.addGhostPage()}))},t.prototype.select=function(e,t){e.isGhost||(e.creator.selectElement(e.page,void 0,!1),this.onPageSelectedCallback&&this.onPageSelectedCallback())},Object.defineProperty(t.prototype,"css",{get:function(){return this.isGhost?"svc-page__content--new":this.creator.isElementSelected(this.page)?"svc-page__content--selected":""},enumerable:!1,configurable:!0}),t.prototype.hover=function(e,t){Object(a.toggleHovered)(e,t)},t.prototype.duplicate=function(){var e=this.creator.copyPage(this.page);this.creator.selectElement(e)},Object.defineProperty(t.prototype,"allowEdit",{get:function(){return!!this.creator&&!this.creator.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addNewQuestionText",{get:function(){return this.creator?this.creator.addNewQuestionText:""},enumerable:!1,configurable:!0}),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isSelected",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"isPageLive",void 0),t}(n.ActionContainerViewModel)},"./src/components/property-panel/property-panel-item.scss":
96
+ /*! exports provided: PageViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"PageViewModel",(function(){return l}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ./action-container-view-model */"./src/components/action-container-view-model.ts"),a=i(/*! ../utils/utils */"./src/utils/utils.ts"),s=(i(/*! ./page.scss */"./src/components/page.scss"),i(/*! ../survey-helper */"./src/survey-helper.ts")),l=function(e){function t(t,i){var o=e.call(this,t,i)||this;return o.addGhostPage=function(){o.isGhost&&(o.page.unRegisterFunctionOnPropertiesValueChanged(["title","description"]),o.page.name=s.SurveyHelper.getNewPageName(o.creator.survey.pages),o.creator.survey.addPage(o.page)),o.creator.selectElement(o.page),o.updateActionsProperties()},o.questionTypeSelectorModel=o.creator.getQuestionTypeSelectorModel((function(e){o.currentAddQuestionType=e,o.addGhostPage()})),o._page=i,i.surveyChangedCallback=function(){o.isPageLive=!!i.survey},o.isGhost&&(o.updateActionsProperties(),o.page.registerFunctionOnPropertiesValueChanged(["title","description"],(function(){o.addGhostPage()})),o.patchPageForDragDrop(o.page,o.addGhostPage)),o.page.onFirstRendering(),o.page.updateCustomWidgets(),o.page.setWasShown(!0),o.checkActionProperties(),o}return Object(o.__extends)(t,e),t.prototype.onElementSelectedChanged=function(t){e.prototype.onElementSelectedChanged.call(this,t),this.isSelected=t,t&&this.onPageSelectedCallback&&this.onPageSelectedCallback()},t.prototype.patchPageForDragDrop=function(e,t){e._isGhost=!0,e._addGhostPageViewModel=function(){delete e._isGhost,delete e._addGhostPageViewModel,t()}},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.page.unRegisterFunctionOnPropertiesValueChanged(["title","description"]),this.onPropertyValueChangedCallback=void 0},Object.defineProperty(t.prototype,"isGhost",{get:function(){return this.creator.survey.pages.indexOf(this.page)<0},enumerable:!1,configurable:!0}),t.prototype.isOperationsAllow=function(){return e.prototype.isOperationsAllow.call(this)&&!this.isGhost},Object.defineProperty(t.prototype,"page",{get:function(){return this._page},enumerable:!1,configurable:!0}),t.prototype.addNewQuestion=function(e,t){var i=this;this.creator.addNewQuestionInPage((function(e){i.addGhostPage()}),null,this.currentAddQuestionType||"text")},t.prototype.select=function(e,t){e.isGhost||(e.creator.selectElement(e.page,void 0,!1),this.onPageSelectedCallback&&this.onPageSelectedCallback()),t.stopPropagation(),t.cancelBubble=!0},Object.defineProperty(t.prototype,"css",{get:function(){return this.isGhost?"svc-page__content--new":this.creator.isElementSelected(this.page)?"svc-page__content--selected":""},enumerable:!1,configurable:!0}),t.prototype.hover=function(e,t){Object(a.toggleHovered)(e,t,this.creator.pageHoverDelay)},t.prototype.duplicate=function(){var e=this.creator.copyPage(this.page);this.creator.selectElement(e)},Object.defineProperty(t.prototype,"allowEdit",{get:function(){return!!this.creator&&!this.creator.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addNewQuestionText",{get:function(){return!this.currentAddQuestionType&&this.creator?this.creator.getLocString("ed.addNewQuestion"):this.creator?this.creator.getAddNewQuestionText(this.currentAddQuestionType):""},enumerable:!1,configurable:!0}),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isSelected",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"isPageLive",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:""})],t.prototype,"currentAddQuestionType",void 0),t}(n.ActionContainerViewModel)},"./src/components/property-panel/property-panel-item.scss":
97
97
  /*!****************************************************************!*\
98
98
  !*** ./src/components/property-panel/property-panel-item.scss ***!
99
99
  \****************************************************************/
@@ -129,7 +129,7 @@ License: MIT
129
129
  /*!************************************!*\
130
130
  !*** ./src/components/question.ts ***!
131
131
  \************************************/
132
- /*! exports provided: QuestionAdornerViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"QuestionAdornerViewModel",(function(){return u}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ../questionconverter */"./src/questionconverter.ts"),s=i(/*! ../utils/utils */"./src/utils/utils.ts"),l=i(/*! ./action-container-view-model */"./src/components/action-container-view-model.ts"),u=(i(/*! ./question.scss */"./src/components/question.scss"),function(e){function t(t,i,o){var r=e.call(this,t,i)||this;return r.templateData=o,i.isQuestion&&i.setCanShowOptionItemCallback&&i.setCanShowOptionItemCallback((function(e){return!t.readOnly&&("newitem"!==e.value||t.maximumChoicesCount<1||i.choices.length<t.maximumChoicesCount)})),r.checkActionProperties(),r}return Object(o.__extends)(t,e),t.prototype.select=function(e,t){if(e.surveyElement.isInteractiveDesignElement)return t.stopPropagation(),t.cancelBubble=!0,e.creator.selectElement(e.surveyElement,void 0,!1),!0},t.prototype.rootCss=function(){return this.surveyElement.isQuestion&&!this.surveyElement.startWithNewLine?" svc-question__adorner--start-with-new-line":""},t.prototype.css=function(){var e=this.creator.isElementSelected(this.surveyElement)?"svc-question__content--selected":"";return this.isEmptyElement&&(e+=" svc-question__content--empty"),this.isDragMe?e+=" svc-question__content--dragged":e=e.replace(" svc-question__content--dragged",""),this.dragTypeOverMe===r.DragTypeOverMeEnum.InsideEmptyPanel?e+=" svc-question__content--drag-over-inside":e=e.replace(" svc-question__content--drag-over-inside",""),this.dragTypeOverMe===r.DragTypeOverMeEnum.MultilineLeft?e+=" svc-question__content--drag-over-left":e=e.replace(" svc-question__content--drag-over-left",""),this.dragTypeOverMe===r.DragTypeOverMeEnum.MultilineRight?e+=" svc-question__content--drag-over-right":e=e.replace(" svc-question__content--drag-over-right",""),e},Object.defineProperty(t.prototype,"isDragMe",{get:function(){return this.surveyElement.isDragMe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragTypeOverMe",{get:function(){return("paneldynamic"===this.surveyElement.getType()?this.surveyElement.template:this.surveyElement).dragTypeOverMe},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.surveyElement.unRegisterFunctionOnPropertyValueChanged("isRequired","isRequiredAdorner"),this.surveyElement.setCanShowOptionItemCallback&&this.surveyElement.setCanShowOptionItemCallback(void 0)},Object.defineProperty(t.prototype,"isDraggable",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.hover=function(e,t){this.surveyElement.isInteractiveDesignElement&&Object(s.toggleHovered)(e,t)},t.prototype.updateElementAllowOptions=function(t,i){e.prototype.updateElementAllowOptions.call(this,t,i),this.updateActionVisibility("convertTo",i&&t.allowChangeType);var o=r.Serializer.findProperty(this.surveyElement.getType(),"isRequired"),n=this.creator.onIsPropertyReadOnlyCallback(this.surveyElement,o,o.readOnly,null,null);this.updateActionVisibility("isrequired",i&&t.allowChangeRequired&&!n)},Object.defineProperty(t.prototype,"isEmptyElement",{get:function(){if(this.surveyElement instanceof r.QuestionHtmlModel)return!this.surveyElement.html;if(this.surveyElement instanceof r.PanelModelBase){var e=this.surveyElement;return!e.rows||e.rows.length<=0||0===e.elements.length}return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderText",{get:function(){return this.surveyElement instanceof r.QuestionHtmlModel?Object(n.getLocString)("ed.htmlPlaceHolder"):Object(n.getLocString)("ed.panelPlaceHolder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragDropHelper",{get:function(){return this.creator.dragDropSurveyElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.surveyElement.isRequired},set:function(e){this.surveyElement.isRequired=e},enumerable:!1,configurable:!0}),t.prototype.startDragSurveyElement=function(e){var t=this.surveyElement,i=this.creator.selectedElement===t;return this.dragDropHelper.startDragSurveyElement(e,t,i),!0},Object.defineProperty(t.prototype,"allowEdit",{get:function(){return!this.creator.readOnly},enumerable:!1,configurable:!0}),t.prototype.createConverToAction=function(){var e=this,t=this.surveyElement.getType(),i=a.QuestionConverter.getConvertToClasses(t,this.creator.toolbox.itemNames),o=i.length>0,n=i.map((function(t){return e.creator.createIActionBarItemByClass(t)})),s=new r.PopupModel("sv-list",{model:new r.ListModel(n,(function(t){e.creator.convertCurrentQuestion(t.id)}),!1)},"bottom","center"),l=this.creator.getLocString("qt."+t);return new r.Action({id:"convertTo",css:"sv-action--first sv-action-bar-item--secondary",iconName:"icon-change_16x16",iconSize:16,title:l,visibleIndex:0,enabled:o,component:"sv-action-bar-item-dropdown",disableShrink:!0,action:function(e){s.toggleVisibility()},popupModel:s})},t.prototype.createRequiredAction=function(){var e=this;this.surveyElement.isRequired;var t=new r.Action({id:"isrequired",css:this.isRequired?"sv-action-bar-item--secondary":"",title:this.creator.getLocString("pe.isRequired"),visibleIndex:20,iconName:this.isRequired?"icon-switchactive_16x16":"icon-switchinactive_16x16",iconSize:16,action:function(){e.creator.isCanModifyProperty(e.surveyElement,"isRequired")&&(e.isRequired=!e.isRequired)}});return this.surveyElement.registerFunctionOnPropertyValueChanged("isRequired",(function(){t.iconName=e.isRequired?"icon-switchactive_16x16":"icon-switchinactive_16x16",t.css=e.isRequired?"sv-action-bar-item--secondary":""}),"isRequiredAdorner"),t},t.prototype.buildActions=function(t){e.prototype.buildActions.call(this,t);var i=this.surveyElement;i.isPanel||t.push(this.createConverToAction()),void 0!==i.isRequired&&Object(s.propertyExists)(i,"isRequired")&&Object(s.isPropertyVisible)(i,"isRequired")&&t.push(this.createRequiredAction())},t.prototype.duplicate=function(){var e=this.creator.fastCopyQuestion(this.surveyElement);this.creator.selectElement(e)},Object(o.__decorate)([Object(r.property)()],t.prototype,"isDragged",void 0),t}(l.ActionContainerViewModel))},"./src/components/results.scss":
132
+ /*! exports provided: QuestionAdornerViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"QuestionAdornerViewModel",(function(){return u}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ../questionconverter */"./src/questionconverter.ts"),s=i(/*! ../utils/utils */"./src/utils/utils.ts"),l=i(/*! ./action-container-view-model */"./src/components/action-container-view-model.ts"),u=(i(/*! ./question.scss */"./src/components/question.scss"),function(e){function t(t,i,o){var n=e.call(this,t,i)||this;return n.templateData=o,n.questionTypeSelectorModel=n.creator.getQuestionTypeSelectorModel((function(e){n.currentAddQuestionType=e}),n.surveyElement instanceof r.PanelModelBase?n.surveyElement:null),i.isQuestion&&i.setCanShowOptionItemCallback&&i.setCanShowOptionItemCallback((function(e){return!t.readOnly&&("newitem"!==e.value||t.maximumChoicesCount<1||i.choices.length<t.maximumChoicesCount)})),n.checkActionProperties(),n}return Object(o.__extends)(t,e),t.prototype.select=function(e,t){if(e.surveyElement.isInteractiveDesignElement)return t.stopPropagation(),t.cancelBubble=!0,e.creator.selectElement(e.surveyElement,void 0,!1),!0},t.prototype.rootCss=function(){return this.surveyElement.isQuestion&&!this.surveyElement.startWithNewLine?" svc-question__adorner--start-with-new-line":""},t.prototype.css=function(){var e=this.creator.isElementSelected(this.surveyElement)?"svc-question__content--selected":"";return this.isEmptyElement&&(e+=" svc-question__content--empty"),this.isDragMe?e+=" svc-question__content--dragged":e=e.replace(" svc-question__content--dragged",""),this.dragTypeOverMe===r.DragTypeOverMeEnum.InsideEmptyPanel?e+=" svc-question__content--drag-over-inside":e=e.replace(" svc-question__content--drag-over-inside",""),this.dragTypeOverMe===r.DragTypeOverMeEnum.MultilineLeft?e+=" svc-question__content--drag-over-left":e=e.replace(" svc-question__content--drag-over-left",""),this.dragTypeOverMe===r.DragTypeOverMeEnum.MultilineRight?e+=" svc-question__content--drag-over-right":e=e.replace(" svc-question__content--drag-over-right",""),e},Object.defineProperty(t.prototype,"isDragMe",{get:function(){return this.surveyElement.isDragMe},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragTypeOverMe",{get:function(){return("paneldynamic"===this.surveyElement.getType()?this.surveyElement.template:this.surveyElement).dragTypeOverMe},enumerable:!1,configurable:!0}),t.prototype.dispose=function(){this.surveyElement.unRegisterFunctionOnPropertyValueChanged("isRequired","isRequiredAdorner"),this.surveyElement.setCanShowOptionItemCallback&&this.surveyElement.setCanShowOptionItemCallback(void 0)},Object.defineProperty(t.prototype,"isDraggable",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.hover=function(e,t){this.surveyElement.isInteractiveDesignElement&&Object(s.toggleHovered)(e,t)},t.prototype.updateElementAllowOptions=function(t,i){e.prototype.updateElementAllowOptions.call(this,t,i),this.updateActionVisibility("convertTo",i&&t.allowChangeType);var o=r.Serializer.findProperty(this.surveyElement.getType(),"isRequired"),n=this.creator.onIsPropertyReadOnlyCallback(this.surveyElement,o,o.readOnly,null,null);this.updateActionVisibility("isrequired",i&&t.allowChangeRequired&&!n)},Object.defineProperty(t.prototype,"isEmptyElement",{get:function(){if(this.surveyElement instanceof r.QuestionHtmlModel)return!this.surveyElement.html;if(this.surveyElement instanceof r.PanelModelBase){var e=this.surveyElement;return!e.rows||e.rows.length<=0||0===e.elements.length}return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderText",{get:function(){return this.surveyElement instanceof r.QuestionHtmlModel?Object(n.getLocString)("ed.htmlPlaceHolder"):Object(n.getLocString)("ed.panelPlaceHolder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragDropHelper",{get:function(){return this.creator.dragDropSurveyElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.surveyElement.isRequired},set:function(e){this.surveyElement.isRequired=e},enumerable:!1,configurable:!0}),t.prototype.startDragSurveyElement=function(e){var t=this.surveyElement,i=this.creator.selectedElement===t;return this.dragDropHelper.startDragSurveyElement(e,t,i),!0},Object.defineProperty(t.prototype,"allowEdit",{get:function(){return!this.creator.readOnly},enumerable:!1,configurable:!0}),t.prototype.getConvertToTypesActions=function(){var e=this;return a.QuestionConverter.getConvertToClasses(this.currentType,this.creator.toolbox.itemNames,!0).map((function(t){return e.creator.createIActionBarItemByClass(t)}))},Object.defineProperty(t.prototype,"currentType",{get:function(){return this.surveyElement.getType()},enumerable:!1,configurable:!0}),t.prototype.createConverToAction=function(){var e=this,t=this.getConvertToTypesActions(),i=t.length>0,o=this.currentType,n=t.filter((function(e){return e.id===o})),a=new r.PopupModel("sv-list",{model:new r.ListModel(t,(function(t){e.creator.convertCurrentQuestion(t.id)}),!0,n.length>0?n[0]:void 0)},"bottom","center"),s=this.creator.getLocString("qt."+this.currentType);return new r.Action({id:"convertTo",css:"sv-action--first sv-action-bar-item--secondary",iconName:"icon-change-question-type_16x16",iconSize:16,title:s,visibleIndex:0,enabled:i,component:"sv-action-bar-item-dropdown",disableShrink:!0,action:function(t){a.displayMode=e.creator.isMobileView?"overlay":"popup",a.toggleVisibility()},popupModel:a})},t.prototype.createRequiredAction=function(){var e=this;this.surveyElement.isRequired;var t=new r.Action({id:"isrequired",css:this.isRequired?"sv-action-bar-item--secondary":"",title:this.creator.getLocString("pe.isRequired"),visibleIndex:20,iconName:this.isRequired?"icon-switch-active_16x16":"icon-switch-inactive_16x16",iconSize:16,action:function(){e.creator.isCanModifyProperty(e.surveyElement,"isRequired")&&(e.isRequired=!e.isRequired)}});return this.surveyElement.registerFunctionOnPropertyValueChanged("isRequired",(function(){t.iconName=e.isRequired?"icon-switch-active_16x16":"icon-switch-inactive_16x16",t.css=e.isRequired?"sv-action-bar-item--secondary":""}),"isRequiredAdorner"),t},t.prototype.buildActions=function(t){e.prototype.buildActions.call(this,t);var i=this.surveyElement;i.isPanel||t.push(this.createConverToAction()),void 0!==i.isRequired&&Object(s.propertyExists)(i,"isRequired")&&Object(s.isPropertyVisible)(i,"isRequired")&&t.push(this.createRequiredAction())},t.prototype.duplicate=function(){var e=this.creator.fastCopyQuestion(this.surveyElement);this.creator.selectElement(e)},t.prototype.addNewQuestion=function(){this.creator.addNewQuestionInPage((function(e){}),this.surveyElement instanceof r.PanelModelBase?this.surveyElement:null,this.currentAddQuestionType||"text")},Object.defineProperty(t.prototype,"addNewQuestionText",{get:function(){return!this.currentAddQuestionType&&this.creator?this.creator.getLocString("ed.addNewQuestion"):this.creator?this.creator.getAddNewQuestionText(this.currentAddQuestionType):""},enumerable:!1,configurable:!0}),Object(o.__decorate)([Object(r.property)()],t.prototype,"isDragged",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:""})],t.prototype,"currentAddQuestionType",void 0),t}(l.ActionContainerViewModel))},"./src/components/results.scss":
133
133
  /*!*************************************!*\
134
134
  !*** ./src/components/results.scss ***!
135
135
  \*************************************/
@@ -145,7 +145,19 @@ License: MIT
145
145
  /*!*******************************!*\
146
146
  !*** ./src/components/row.ts ***!
147
147
  \*******************************/
148
- /*! exports provided: RowViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"RowViewModel",(function(){return n}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=(i(/*! ./row.scss */"./src/components/row.scss"),function(e){function t(t,i,o){var r=e.call(this)||this;return r.creator=t,r.row=i,r.templateData=o,r}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e="svc-row";return 1===this.row.elements.length&&"sv-drag-drop-ghost-survey-element-name"===this.row.elements[0].name?e+=" svc-row--ghost":e=e.replace(" svc-row--ghost",""),e},enumerable:!1,configurable:!0}),t}(r.Base))},"./src/components/simulator.scss":
148
+ /*! exports provided: RowViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"RowViewModel",(function(){return n}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=(i(/*! ./row.scss */"./src/components/row.scss"),function(e){function t(t,i,o){var r=e.call(this)||this;return r.creator=t,r.row=i,r.templateData=o,r}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){var e="svc-row";return 1===this.row.elements.length&&"sv-drag-drop-ghost-survey-element-name"===this.row.elements[0].name?e+=" svc-row--ghost":e=e.replace(" svc-row--ghost",""),e},enumerable:!1,configurable:!0}),t}(r.Base))},"./src/components/side-bar/side-bar-model.ts":
149
+ /*!***************************************************!*\
150
+ !*** ./src/components/side-bar/side-bar-model.ts ***!
151
+ \***************************************************/
152
+ /*! exports provided: SideBarModel */function(e,t,i){"use strict";i.r(t),i.d(t,"SideBarModel",(function(){return u}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../settings */"./src/settings.ts"),a=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),s=i(/*! ./side-bar-tab-model */"./src/components/side-bar/side-bar-tab-model.ts"),l=i(/*! ../../utils/resizer */"./src/utils/resizer.ts"),u=function(e){function t(t,i,o){void 0===i&&(i=function(){n.creator.showPropertyGrid=!1}),void 0===o&&(o=function(){n.creator.showPropertyGrid=!0});var n=e.call(this)||this;return n.creator=t,n.collapseAction=i,n.expandAction=o,n.toolbar=new r.AdaptiveActionContainer,n.onPropertyGridVisibilityChanged=function(e,t){n.isDisposed||(n.visible=t.show)},n.creator.onShowPropertyGridVisiblityChanged.add(n.onPropertyGridVisibilityChanged),n.creator.onPropertyChanged.add((function(e,t){"sideBarLocation"===t.name&&n.resizeManager.setHandles(n.getCurrentHandles())})),n.visible=n.creator.showPropertyGrid,n.createActions(),n}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"flyoutPanelMode",{get:function(){return this.visible&&this.flyoutMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"closeText",{get:function(){return Object(a.getLocString)("pe.close")},enumerable:!1,configurable:!0}),t.prototype.getTabById=function(e){return this.tabs.filter((function(t){return t.id===e}))[0]},t.prototype.createActions=function(){var e=this;n.settings.propertyGrid.allowCollapse&&(this._collapseAction=new r.Action({id:"svd-grid-hide",iconName:"icon-collapse-panel",css:"svd-grid-hide",title:Object(a.getLocString)("ed.hidePanel"),showTitle:!1,visible:new r.ComputedUpdater((function(){return e.visible})),action:function(){e.collapseAction?e.collapseAction():e.visible=!1}}),this.toolbar.actions.push(this._collapseAction),this._expandAction=new r.Action({id:"svd-grid-expand",iconName:"icon-expand-panel",css:"svd-grid-expand",needSeparator:!0,action:function(){e.expandAction?e.expandAction():e.visible=!0},title:Object(a.getLocString)("ed.showPanel"),visible:new r.ComputedUpdater((function(){var t=!e.visible;return e.hasVisibleTabs&&t})),showTitle:!1}))},t.prototype.getCurrentHandles=function(){return"right"==this.creator.sideBarLocation?"w":"e"},t.prototype.getExpandAction=function(){return this._expandAction},t.prototype.closePropertyGrid=function(){this._collapseAction.action()},t.prototype.addTab=function(e,t,i,o){var r=this,n=new s.SideBarTabModel(e,this,t,i);return this.tabs.push(n),o&&(o()||[]).forEach((function(e){return r.toolbar.actions.push(e)})),n},t.prototype.updateHasVisibleTabs=function(){this.hasVisibleTabs=(this.tabs||[]).filter((function(e){return e.visible})).length>0},t.prototype.dispose=function(){this.creator&&!this.isDisposed&&this.creator.onShowPropertyGridVisiblityChanged.remove(this.onPropertyGridVisibilityChanged),e.prototype.dispose.call(this)},t.prototype.initResizeManager=function(e){this.resizeManager=new l.ResizeManager(e,this.getCurrentHandles())},t.prototype.resetResizeManager=function(){this.resizeManager&&(this.resizeManager.dispose(),this.resizeManager=void 0)},Object(o.__decorate)([Object(r.propertyArray)()],t.prototype,"tabs",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"headerText",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"visible",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"hasVisibleTabs",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"flyoutMode",void 0),Object(o.__decorate)([Object(r.property)({onSet:function(e,t){t.tabs.forEach((function(e){return e.visible=!1})),t._activeTab=t.tabs.filter((function(t){return t.id===e}))[0],t._activeTab&&(t.headerText=t._activeTab.caption,t._activeTab.visible=!0)}})],t.prototype,"activeTab",void 0),t}(r.Base)},"./src/components/side-bar/side-bar-tab-model.ts":
153
+ /*!*******************************************************!*\
154
+ !*** ./src/components/side-bar/side-bar-tab-model.ts ***!
155
+ \*******************************************************/
156
+ /*! exports provided: SideBarTabModel */function(e,t,i){"use strict";i.r(t),i.d(t,"SideBarTabModel",(function(){return n}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=function(e){function t(t,i,o,r){var n=e.call(this)||this;return n.id=t,n.sidePanel=i,o&&(n.componentName=o),r&&(n.model=r),n}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(r.property)({onSet:function(e,t){t.sidePanel.headerText=t.caption}})],t.prototype,"caption",void 0),Object(o.__decorate)([Object(r.property)({onSet:function(e,t){t.sidePanel.updateHasVisibleTabs()}})],t.prototype,"visible",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"model",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"componentName",void 0),t}(r.Base)},"./src/components/side-bar/side-bar.scss":
157
+ /*!***********************************************!*\
158
+ !*** ./src/components/side-bar/side-bar.scss ***!
159
+ \***********************************************/
160
+ /*! no static exports found */function(e,t,i){},"./src/components/simulator.scss":
149
161
  /*!***************************************!*\
150
162
  !*** ./src/components/simulator.scss ***!
151
163
  \***************************************/
@@ -161,7 +173,7 @@ License: MIT
161
173
  /*!*****************************************!*\
162
174
  !*** ./src/components/string-editor.ts ***!
163
175
  \*****************************************/
164
- /*! exports provided: StringEditorViewModelBase */function(e,t,i){"use strict";i.r(t),i.d(t,"StringEditorViewModelBase",(function(){return s}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ../utils/utils */"./src/utils/utils.ts"),s=function(e){function t(t,i){var o=e.call(this)||this;return o.locString=t,o.creator=i,o.blurredByEscape=!1,o.focusedProgram=!1,o}return Object(o.__extends)(t,e),t.prototype.setLocString=function(e){this.locString=e},t.prototype.checkConstraints=function(e){this.maxLength>0&&e.keyCode>=32&&(e.target.innerText||"").length>=this.maxLength&&e.preventDefault()},t.prototype.onClick=function(e){e.stopPropagation()},t.prototype.onFocus=function(e){this.focusedProgram||(this.valueBeforeEdit=e.target.innerText,this.focusedProgram=!1),this.creator.selectFromStringEditor=!0,e.target.parentElement.click(),Object(a.select)(e.target)},t.prototype.onInput=function(e){if(this.blurredByEscape)return this.blurredByEscape=!1,e.target.innerText=this.valueBeforeEdit,void(this.errorText=null);var t=Object(a.clearNewLines)(e.target.innerText);this.errorText=this.creator.onGetErrorTextOnValidationCallback(this.locString.name,this.locString.owner,t),this.locString.text!=t?this.errorText?(this.focusedProgram=!0,e.target.focus()):this.locString.text=t:(e.target.innerText=this.locString.renderedHtml,this.locString.strChanged())},t.prototype.done=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.onKeyDown=function(e){return 13===e.keyCode&&(this.blurEditor(),this.done(e)),27===e.keyCode&&(this.blurredByEscape=!0,this.blurEditor(),this.done(e)),this.checkConstraints(e),!0},t.prototype.findProperty=function(){if(this.locString.owner.getType){var e=this.locString.owner.getType();if(this.locString.name)return r.Serializer.findProperty(e,this.locString.name)}},Object.defineProperty(t.prototype,"maxLength",{get:function(){var e=this.findProperty();return!e||e.maxLength<=0?-1:e.maxLength},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){var e=this.findProperty();return e&&e.placeholder?n.editorLocalization.getString(e.placeholder):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentEditable",{get:function(){return this.creator.isCanModifyProperty(this.locString.owner,this.locString.name)},enumerable:!1,configurable:!0}),t.prototype.className=function(e){return"svc-string-editor"+(""==e&&""==this.placeholder?" svc-string-editor--hidden":"")+(this.contentEditable?"":" svc-string-editor--readonly")},Object(o.__decorate)([Object(r.property)()],t.prototype,"errorText",void 0),t}(r.Base)},"./src/components/tabbed-menu/tabbed-menu-item.scss":
176
+ /*! exports provided: StringEditorViewModelBase */function(e,t,i){"use strict";i.r(t),i.d(t,"StringEditorViewModelBase",(function(){return s}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ../utils/utils */"./src/utils/utils.ts"),s=function(e){function t(t,i){var o=e.call(this)||this;return o.locString=t,o.creator=i,o.blurredByEscape=!1,o.focusedProgram=!1,o}return Object(o.__extends)(t,e),t.prototype.setLocString=function(e){this.locString=e},t.prototype.checkConstraints=function(e){this.maxLength>0&&e.keyCode>=32&&(e.target.innerText||"").length>=this.maxLength&&e.preventDefault()},t.prototype.onClick=function(e){e.stopPropagation()},t.prototype.onFocus=function(e){this.focusedProgram||(this.valueBeforeEdit=e.target.innerText,this.focusedProgram=!1),this.creator.selectFromStringEditor=!0,e.target.parentElement.click(),Object(a.select)(e.target)},t.prototype.onInput=function(e){if(this.blurredByEscape)return this.blurredByEscape=!1,e.target.innerText=this.valueBeforeEdit,void(this.errorText=null);var t=Object(a.clearNewLines)(e.target.innerText),i=this.locString.owner;if(this.errorText=this.creator.onGetErrorTextOnValidationCallback(this.locString.name,i,t),!this.errorText&&!t){var o=i.getPropertyByName&&i.getPropertyByName(this.locString.name);o&&o.isRequired&&(this.errorText=n.editorLocalization.getString("pe.propertyIsEmpty"))}this.locString.text!=t?this.errorText?(this.focusedProgram=!0,e.target.focus()):this.locString.text=t:(e.target.innerText=this.locString.renderedHtml,this.locString.strChanged())},t.prototype.done=function(e){e.stopImmediatePropagation(),e.preventDefault()},t.prototype.onKeyDown=function(e){return 13===e.keyCode&&(this.blurEditor(),this.done(e)),27===e.keyCode&&(this.blurredByEscape=!0,this.blurEditor(),this.done(e)),this.checkConstraints(e),!0},t.prototype.findProperty=function(){if(this.locString.owner.getType){var e=this.locString.owner.getType();if(this.locString.name)return r.Serializer.findProperty(e,this.locString.name)}},Object.defineProperty(t.prototype,"maxLength",{get:function(){var e=this.findProperty();return!e||e.maxLength<=0?-1:e.maxLength},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){var e=this.findProperty();return e&&e.placeholder?n.editorLocalization.getString(e.placeholder):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentEditable",{get:function(){return this.creator.isCanModifyProperty(this.locString.owner,this.locString.name)},enumerable:!1,configurable:!0}),t.prototype.className=function(e){return"svc-string-editor"+(""==e&&""==this.placeholder?" svc-string-editor--hidden":"")+(this.contentEditable?"":" svc-string-editor--readonly")},Object(o.__decorate)([Object(r.property)()],t.prototype,"errorText",void 0),t}(r.Base)},"./src/components/tabbed-menu/tabbed-menu-item.scss":
165
177
  /*!**********************************************************!*\
166
178
  !*** ./src/components/tabbed-menu/tabbed-menu-item.scss ***!
167
179
  \**********************************************************/
@@ -169,7 +181,11 @@ License: MIT
169
181
  /*!*****************************************************!*\
170
182
  !*** ./src/components/tabbed-menu/tabbed-menu.scss ***!
171
183
  \*****************************************************/
172
- /*! no static exports found */function(e,t,i){},"./src/components/tabs/designer.scss":
184
+ /*! no static exports found */function(e,t,i){},"./src/components/tabs/designer-plugin.ts":
185
+ /*!************************************************!*\
186
+ !*** ./src/components/tabs/designer-plugin.ts ***!
187
+ \************************************************/
188
+ /*! exports provided: TabDesignerPlugin */function(e,t,i){"use strict";i.r(t),i.d(t,"TabDesignerPlugin",(function(){return s}));var o=i(/*! survey-core */"survey-core"),r=i(/*! ../../property-grid */"./src/property-grid/index.ts"),n=i(/*! ../../property-grid/property-grid-view-model */"./src/property-grid/property-grid-view-model.ts"),a=i(/*! ./designer */"./src/components/tabs/designer.ts"),s=function(){function e(e){var t=this;this.creator=e,e.addPluginTab("designer",this);var i=new r.PropertyGridModel(e.survey,e);this.propertyGrid=new n.PropertyGridViewModel(i,e),this.propertyGridTab=this.creator.sideBar.addTab("propertyGrid","svc-property-grid",this.propertyGrid,(function(){var e=[];return t.propertyGrid.prevSelectionAction&&(t.propertyGrid.prevSelectionAction.visible=t.createVisibleUpdater(),e.push(t.propertyGrid.prevSelectionAction)),t.propertyGrid.nextSelectionAction&&(t.propertyGrid.nextSelectionAction.visible=t.createVisibleUpdater(),e.push(t.propertyGrid.nextSelectionAction)),t.propertyGrid.objectSelectionAction&&(t.propertyGrid.objectSelectionAction.visible=t.createVisibleUpdater(),e.push(t.propertyGrid.objectSelectionAction)),e})),this.toolboxTab=this.creator.sideBar.addTab("toolbox","svc-toolbox",e),this.creator.onPropertyChanged.add((function(e,i){"isMobileView"===i.name&&t.updatePropertyGridTabCaption(),"toolboxLocation"===i.name&&(t.toolboxTab.visible&&"insideSideBar"!==i.newVal&&(t.propertyGridTab.visible=!0),t.toolboxTab.visible="insideSideBar"===i.newVal)})),this.propertyGrid.onPropertyChanged.add((function(e,i){"selectedElementName"===i.name&&t.updatePropertyGridTabCaption()})),this.createActions().forEach((function(t){return e.toolbar.actions.push(t)})),e.registerShortcut("delete",{hotKey:{keyCode:46},macOsHotkey:{keyCode:46},execute:function(){return t.creator.deleteCurrentElement()}})}return Object.defineProperty(e.prototype,"isSurveySelected",{get:function(){return this.creator.isElementSelected(this.creator.survey)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSettingsActive",{get:function(){return this.creator.showPropertyGrid&&this.isSurveySelected},enumerable:!1,configurable:!0}),e.prototype.createVisibleUpdater=function(){var e=this;return new o.ComputedUpdater((function(){return"designer"===e.creator.activeTab}))},e.prototype.updatePropertyGridTabCaption=function(){this.propertyGridTab.caption=this.creator.isMobileView?this.propertyGrid.selectedElementName:""},e.prototype.activate=function(){this.model=new a.TabDesignerViewModel(this.creator),this.creator.sideBar.activeTab=this.propertyGridTab.id},e.prototype.deactivate=function(){return this.model=void 0,this.propertyGridTab.visible=!1,!0},e.prototype.update=function(){this.model&&this.model.initSurvey()},e.prototype.createActions=function(){var e=this,t=[],i=new o.Action({id:"svd-toolbox",iconName:"icon-toolbox",needSeparator:!0,action:function(){e.creator.showPropertyGrid||(e.creator.showPropertyGrid=!0),e.creator.sideBar.activeTab="toolbox"},active:new o.ComputedUpdater((function(){return"toolbox"===e.creator.sideBar.activeTab})),visible:new o.ComputedUpdater((function(){var t="insideSideBar"===e.creator.toolboxLocation;return"designer"===e.creator.activeTab&&t})),title:"Toolbox",showTitle:!1});return this.surveySettingsAction=new o.Action({id:"svd-settings",iconName:"icon-settings",needSeparator:new o.ComputedUpdater((function(){var t="insideSideBar"===e.creator.toolboxLocation;return!e.creator.isMobileView&&!t})),action:function(){e.selectSurvey()},active:new o.ComputedUpdater((function(){var t=e.creator.sideBar.activeTab===e.propertyGridTab.id;return e.isSurveySelected&&t})),visible:this.createVisibleUpdater(),title:"Settings",showTitle:!1}),this.saveSurveyAction=new o.Action({id:"svd-save",iconName:"icon-save",action:function(){return e.creator.doSave()},active:new o.ComputedUpdater((function(){return"modified"===e.creator.state})),enabled:new o.ComputedUpdater((function(){return"modified"===e.creator.state})),visible:new o.ComputedUpdater((function(){var t="designer"===e.creator.activeTab;return e.creator.showSaveButton&&t})),title:this.creator.getLocString("ed.saveSurvey"),tooltip:this.creator.getLocString("ed.saveSurveyTooltip"),showTitle:!1}),this.previewAction=new o.Action({id:"svd-preview",iconName:"icon-preview",needSeparator:!0,action:function(){e.creator.makeNewViewActive("test")},visible:this.createVisibleUpdater(),title:this.creator.getLocString("ed.testSurvey"),showTitle:!1}),t.push(this.saveSurveyAction),t.push(i),t.push(this.surveySettingsAction),this.creator.onSelectedElementChanged.add((function(t,i){e.surveySettingsAction.active=e.isSettingsActive})),this.creator.onShowPropertyGridVisiblityChanged.add((function(t,i){e.surveySettingsAction.active=e.isSettingsActive})),t},e.prototype.selectSurvey=function(){this.creator.showPropertyGrid||(this.creator.showPropertyGrid=!0),this.creator.selectElement(this.creator.survey),this.creator.sideBar.activeTab=this.propertyGridTab.id},e.prototype.addFooterActions=function(){this.creator.footerToolbar.actions.push(this.surveySettingsAction),this.creator.footerToolbar.actions.push(this.previewAction)},e}()},"./src/components/tabs/designer.scss":
173
189
  /*!*******************************************!*\
174
190
  !*** ./src/components/tabs/designer.scss ***!
175
191
  \*******************************************/
@@ -177,7 +193,7 @@ License: MIT
177
193
  /*!*****************************************!*\
178
194
  !*** ./src/components/tabs/designer.ts ***!
179
195
  \*****************************************/
180
- /*! exports provided: TabDesignerViewModel, TabDesignerPlugin */function(e,t,i){"use strict";i.r(t),i.d(t,"TabDesignerViewModel",(function(){return l})),i.d(t,"TabDesignerPlugin",(function(){return u}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../property-grid */"./src/property-grid/index.ts"),a=i(/*! ../../property-grid/property-grid-view-model */"./src/property-grid/property-grid-view-model.ts"),s=i(/*! ../../settings */"./src/settings.ts"),l=(i(/*! ./designer.scss */"./src/components/tabs/designer.scss"),function(e){function t(t){var i=e.call(this)||this;return i.creator=t,i.initSurvey(),i}return Object(o.__extends)(t,e),t.prototype.createNewPage=function(){var e=this,t=this.survey.createNewPage("");this.creator.setNewNames(t),t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0),t.setSurveyImpl(this.survey);var i=function(o,r){if("elements"===r.name&&t.elements.length>0){if(t.onPropertyChanged.remove(i),e.survey.pages.indexOf(t)>-1)return;e.creator.addPage(t)}};t.onPropertyChanged.add(i),this.newPage=t,r.DragDropSurveyElements.newGhostPage=t},Object.defineProperty(t.prototype,"survey",{get:function(){return this.creator.survey},enumerable:!1,configurable:!0}),t.prototype.initSurvey=function(){var e=this;this.survey&&(this.showNewPage=!1,this.newPage=void 0,this.checkNewPageHandler=function(t,i){e.checkNewPage()},this.surveyOnPropertyChanged=function(t,i){"pages"===i.name&&e.checkNewPage()},this.survey.onPropertyChanged.add(this.surveyOnPropertyChanged),this.survey.onQuestionAdded.add(this.checkNewPageHandler),this.survey.onQuestionRemoved.add(this.checkNewPageHandler),this.survey.onPanelAdded.add(this.checkNewPageHandler),this.survey.onPanelRemoved.add(this.checkNewPageHandler),this.checkNewPage(),this.widthUpdater&&this.widthUpdater.dispose(),this.widthUpdater=new r.ComputedUpdater((function(){return e.survey.calculateWidthMode()})),this.withModifier=this.widthUpdater)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.survey.onPropertyChanged.remove(this.surveyOnPropertyChanged),this.survey.onQuestionAdded.remove(this.checkNewPageHandler),this.survey.onQuestionRemoved.remove(this.checkNewPageHandler),this.survey.onPanelAdded.remove(this.checkNewPageHandler),this.survey.onPanelRemoved.remove(this.checkNewPageHandler)},t.prototype.checkNewPage=function(){if(this.pageCount=this.survey.pageCount,this.canShowNewPage){var e=this.survey.pages;(!this.newPage||e.length>0&&this.newPage===e[e.length-1])&&(this.createNewPage(),this.showNewPage=!0)}else this.showNewPage=!1,this.newPage=void 0},Object.defineProperty(t.prototype,"canShowNewPage",{get:function(){if(!this.survey||"single"===this.creator.pageEditMode)return!1;var e=this.survey.pages;return 0===e.length||e[e.length-1].elements.length>0},enumerable:!1,configurable:!0}),t.prototype.getDesignerCss=function(){return this.survey.css.container+" "+this.survey.css.container+"--"+this.withModifier},Object(o.__decorate)([Object(r.property)()],t.prototype,"newPage",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showNewPage",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"pageCount",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"withModifier",void 0),t}(r.Base)),u=function(){function e(e){var t=this;this.creator=e,e.addPluginTab("designer",this);var i=new n.PropertyGridModel(e.survey,e);this.propertyGrid=new a.PropertyGridViewModel(i,e),this.createActions().forEach((function(t){return e.toolbar.actions.push(t)})),e.registerShortcut("delete",{hotKey:{keyCode:46},macOsHotkey:{keyCode:46},execute:function(){return t.creator.deleteCurrentElement()}})}return e.prototype.activate=function(){this.model=new l(this.creator)},e.prototype.deactivate=function(){return this.model=void 0,!0},e.prototype.update=function(){this.model&&this.model.initSurvey()},e.prototype.createActions=function(){var e=this,t=[];return this.surveySettingsAction=new r.Action({id:"svd-settings",iconName:"icon-settings",needSeparator:new r.ComputedUpdater((function(){return!e.creator.isMobileView})),action:function(){e.creator.showPropertyGrid||(e.creator.showPropertyGrid=!0),e.creator.selectElement(e.creator.survey)},active:this.isSurveySelected,visible:new r.ComputedUpdater((function(){return"designer"===e.creator.activeTab})),title:"Settings",showTitle:!1}),this.saveSurveyAction=new r.Action({id:"svd-save",iconName:"icon-save",action:function(){return e.creator.doSave()},active:new r.ComputedUpdater((function(){return"modified"===e.creator.state})),enabled:new r.ComputedUpdater((function(){return"modified"===e.creator.state})),visible:new r.ComputedUpdater((function(){var t="designer"===e.creator.activeTab;return e.creator.showSaveButton&&t})),title:this.creator.getLocString("ed.saveSurvey"),tooltip:this.creator.getLocString("ed.saveSurveyTooltip"),showTitle:!1}),this.previewAction=new r.Action({id:"svd-preview",iconName:"icon-preview",needSeparator:!0,action:function(){e.creator.makeNewViewActive("test")},visible:new r.ComputedUpdater((function(){return"designer"===e.creator.activeTab})),title:this.creator.getLocString("ed.testSurvey"),showTitle:!1}),t.push(this.saveSurveyAction),t.push(this.surveySettingsAction),s.settings.propertyGrid.allowCollapse&&(this.expandAction=this.propertyGrid.createExpandAction(),this.expandAction.visible=new r.ComputedUpdater((function(){var t=e.propertyGrid.visible;return"designer"===e.creator.activeTab&&!t})),t.push(this.expandAction)),this.creator.onSelectedElementChanged.add((function(t,i){e.surveySettingsAction.active=e.isSettingsActive})),this.creator.onShowPropertyGridVisiblityChanged.add((function(t,i){e.surveySettingsAction.active=e.isSettingsActive})),t},e.prototype.addFooterActions=function(){this.creator.footerToolbar.actions.push(this.surveySettingsAction),this.creator.footerToolbar.actions.push(this.previewAction)},Object.defineProperty(e.prototype,"isSurveySelected",{get:function(){return this.creator.isElementSelected(this.creator.survey)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSettingsActive",{get:function(){return this.creator.showPropertyGrid&&this.isSurveySelected},enumerable:!1,configurable:!0}),e}()},"./src/components/tabs/embed-json.ts":
196
+ /*! exports provided: TabDesignerViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"TabDesignerViewModel",(function(){return n}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=(i(/*! ./designer.scss */"./src/components/tabs/designer.scss"),function(e){function t(t){var i=e.call(this)||this;return i.creator=t,i.initSurvey(),i}return Object(o.__extends)(t,e),t.prototype.createNewPage=function(){var e=this,t=this.survey.createNewPage("");this.creator.setNewNames(t),t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0),t.setSurveyImpl(this.survey),t.updateElementCss();var i=function(o,r){if("elements"===r.name&&t.elements.length>0){if(t.onPropertyChanged.remove(i),e.survey.pages.indexOf(t)>-1)return;e.creator.addPage(t)}};t.onPropertyChanged.add(i),this.newPage=t,r.DragDropSurveyElements.newGhostPage=t},Object.defineProperty(t.prototype,"canShowNewPage",{get:function(){if(!this.survey||"single"===this.creator.pageEditMode)return!1;var e=this.survey.pages;return 0===e.length||e[e.length-1].elements.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.creator.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isToolboxVisible",{get:function(){return"right"===this.creator.toolboxLocation||"left"===this.creator.toolboxLocation},enumerable:!1,configurable:!0}),t.prototype.initSurvey=function(){var e=this;this.survey&&(this.showNewPage=!1,this.newPage=void 0,this.checkNewPageHandler=function(t,i){e.checkNewPage()},this.surveyOnPropertyChanged=function(t,i){"pages"===i.name&&e.checkNewPage()},this.survey.onPropertyChanged.add(this.surveyOnPropertyChanged),this.survey.onQuestionAdded.add(this.checkNewPageHandler),this.survey.onQuestionRemoved.add(this.checkNewPageHandler),this.survey.onPanelAdded.add(this.checkNewPageHandler),this.survey.onPanelRemoved.add(this.checkNewPageHandler),this.checkNewPage(),this.widthUpdater&&this.widthUpdater.dispose(),this.widthUpdater=new r.ComputedUpdater((function(){return e.survey.calculateWidthMode()})),this.withModifier=this.widthUpdater)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.survey.onPropertyChanged.remove(this.surveyOnPropertyChanged),this.survey.onQuestionAdded.remove(this.checkNewPageHandler),this.survey.onQuestionRemoved.remove(this.checkNewPageHandler),this.survey.onPanelAdded.remove(this.checkNewPageHandler),this.survey.onPanelRemoved.remove(this.checkNewPageHandler)},t.prototype.checkNewPage=function(){if(this.pageCount=this.survey.pageCount,this.canShowNewPage){var e=this.survey.pages;(!this.newPage||e.length>0&&this.newPage===e[e.length-1])&&(this.createNewPage(),this.showNewPage=!0)}else this.showNewPage=!1,this.newPage=void 0},t.prototype.clickDesigner=function(){this.creator.selectedElement=this.creator.survey},t.prototype.getDesignerCss=function(){return this.survey.css.container+" "+this.survey.css.container+"--"+this.withModifier},t.prototype.getRootCss=function(){var e=this.survey.css.root;return this.creator.showPageNavigator&&this.survey.pageCount>1&&(e+=" svc-tab-designer--with-page-navigator"),e},Object(o.__decorate)([Object(r.property)()],t.prototype,"newPage",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showNewPage",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"pageCount",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"withModifier",void 0),t}(r.Base))},"./src/components/tabs/embed-json.ts":
181
197
  /*!*******************************************!*\
182
198
  !*** ./src/components/tabs/embed-json.ts ***!
183
199
  \*******************************************/
@@ -189,7 +205,7 @@ License: MIT
189
205
  /*!**************************************!*\
190
206
  !*** ./src/components/tabs/embed.ts ***!
191
207
  \**************************************/
192
- /*! exports provided: EmbedModel, TabEmbedPlugin */function(e,t,i){"use strict";i.r(t),i.d(t,"EmbedModel",(function(){return l})),i.d(t,"TabEmbedPlugin",(function(){return u}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ../../property-grid-theme/property-grid */"./src/property-grid-theme/property-grid.ts"),s=i(/*! ./embed-json */"./src/components/tabs/embed-json.ts"),l=(i(/*! ./embed.scss */"./src/components/tabs/embed.scss"),function(e){function t(t){var i=e.call(this)||this;return r.FunctionFactory.Instance.register("surveyjsEmbedScriptsMarkup",(function(e){var t=e[0],i=e[1],o="\x3c!-- Your platform ("+t+") scripts --\x3e\n\n";return"bootstrap"!==i&&(o+='<link href="https://unpkg.com/survey-'+t+"@"+r.Version+"/"+("modern"===i?"modern":"survey")+'.css" type="text/css" rel="stylesheet"/>'),o+'\n<script src="https://unpkg.com/survey-'+t+"@"+r.Version+"/survey."+t+'.min.js"><\/script>'})),r.FunctionFactory.Instance.register("surveyjsEmbedHtmlMarkup",(function(e){var t=e[0],i=e[1];switch(t){case"angular":return"<ng-app></ng-app>";case"vue":return'<div id="surveyContainer"><survey'+("window"===i?"-window":"")+' :survey="survey"/></div>';default:return'<div id="surveyContainer"></div>'}})),r.FunctionFactory.Instance.register("surveyjsEmbedJavascriptMarkup",(function(e){var i=e[0],o=e[1],r=e[2],n='Survey.StylesManager.applyTheme("'+o+'");\n\n';n+="var surveyJSON = "+JSON.stringify(t.JSON)+";\n\n",n+='function sendDataToServer(survey) {\n //send Ajax request to your web server\n alert("The results are: " + JSON.stringify(survey.data));\n}\n\n';var a="window"===r?"Window":"";switch(i){case"angular":n+='@Component({\n selector: "ng-app",\n template: \'<div id="surveyElement"></div>\'\n})',n+="\nexport class AppComponent {\n ngOnInit() {\n var survey = new Survey.Model(surveyJSON);\n survey.onComplete.add(sendDataToServer);\n Survey.Survey"+a+'NG.render("surveyElement", { model: survey });\n }\n}';break;case"jquery":n+="var survey = new Survey.Model(surveyJSON);\n",n+='$("#surveyContainer").Survey'+a+"({\n model: survey,\n onComplete: sendDataToServer\n});";break;case"knockout":n+="var survey = new Survey.Model"+a+"(surveyJSON"+("page"===r?', "surveyContainer"':"")+");\n",n+="window"===r?"survey.show();\n":"",n+="survey.onComplete.add(sendDataToServer);";break;case"react":n+="ReactDOM.render(<Survey.Survey"+a+' json={ surveyJSON } onComplete={ sendDataToServer } />, document.getElementById("surveyContainer"));';break;case"vue":n+='var survey = new Survey.Model(surveyJSON);\nsurvey.onComplete.add(sendDataToServer);\nnew Vue({ el: "#surveyContainer", data: { survey: survey } });'}return n})),i.survey=t.createSurvey(s.json,"embed"),i.survey.css=a.propertyGridCss,r.settings.readOnlyCommentRenderMode="default",i.survey.onUpdateQuestionCssClasses.add((function(e,t){"comment"===t.question.getType()&&(t.cssClasses.title="sv-question-embed__title")})),i}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(r.property)()],t.prototype,"survey",void 0),t}(r.Base)),u=function(){function e(e){this.creator=e,e.addPluginTab("embed",this,Object(n.getLocString)("ed.embedSurvey"))}return e.prototype.activate=function(){this.model=new l(this.creator)},e.prototype.deactivate=function(){return this.model=void 0,!0},e}()},"./src/components/tabs/json-editor-ace.scss":
208
+ /*! exports provided: EmbedModel, TabEmbedPlugin */function(e,t,i){"use strict";i.r(t),i.d(t,"EmbedModel",(function(){return l})),i.d(t,"TabEmbedPlugin",(function(){return u}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ../../property-grid-theme/property-grid */"./src/property-grid-theme/property-grid.ts"),s=i(/*! ./embed-json */"./src/components/tabs/embed-json.ts"),l=(i(/*! ./embed.scss */"./src/components/tabs/embed.scss"),function(e){function t(t){var i=e.call(this)||this;return r.FunctionFactory.Instance.register("surveyjsEmbedScriptsMarkup",(function(e){var t=e[0],i=e[1],o="\x3c!-- Your platform (".concat(t,") scripts --\x3e\n\n");return"bootstrap"!==i&&(o+='<link href="https://unpkg.com/survey-'.concat(t,"@").concat(r.Version,"/").concat("modern"===i?"modern":"survey",'.css" type="text/css" rel="stylesheet"/>')),o+'\n<script src="https://unpkg.com/survey-'.concat(t,"@").concat(r.Version,"/survey.").concat(t,'.min.js"><\/script>')})),r.FunctionFactory.Instance.register("surveyjsEmbedHtmlMarkup",(function(e){var t=e[0],i=e[1];switch(t){case"angular":return"<ng-app></ng-app>";case"vue":return'<div id="surveyContainer"><survey'.concat("window"===i?"-window":"",' :survey="survey"/></div>');default:return'<div id="surveyContainer"></div>'}})),r.FunctionFactory.Instance.register("surveyjsEmbedJavascriptMarkup",(function(e){var i=e[0],o=e[1],r=e[2],n='Survey.StylesManager.applyTheme("'.concat(o,'");\n\n');n+="var surveyJSON = ".concat(JSON.stringify(t.JSON),";\n\n"),n+='function sendDataToServer(survey) {\n //send Ajax request to your web server\n alert("The results are: " + JSON.stringify(survey.data));\n}\n\n';var a="window"===r?"Window":"";switch(i){case"angular":n+='@Component({\n selector: "ng-app",\n template: \'<div id="surveyElement"></div>\'\n})',n+="\nexport class AppComponent {\n ngOnInit() {\n var survey = new Survey.Model(surveyJSON);\n survey.onComplete.add(sendDataToServer);\n Survey.Survey".concat(a,'NG.render("surveyElement", { model: survey });\n }\n}');break;case"jquery":n+="var survey = new Survey.Model(surveyJSON);\n",n+='$("#surveyContainer").Survey'.concat(a,"({\n model: survey,\n onComplete: sendDataToServer\n});");break;case"knockout":n+="var survey = new Survey.Model".concat(a,"(surveyJSON").concat("page"===r?', "surveyContainer"':"",");\n"),n+="window"===r?"survey.show();\n":"",n+="survey.onComplete.add(sendDataToServer);";break;case"react":n+="ReactDOM.render(<Survey.Survey".concat(a,' json={ surveyJSON } onComplete={ sendDataToServer } />, document.getElementById("surveyContainer"));');break;case"vue":n+='var survey = new Survey.Model(surveyJSON);\nsurvey.onComplete.add(sendDataToServer);\nnew Vue({ el: "#surveyContainer", data: { survey: survey } });'}return n})),i.survey=t.createSurvey(s.json,"embed"),i.survey.css=a.propertyGridCss,r.settings.readOnlyCommentRenderMode="default",i.survey.onUpdateQuestionCssClasses.add((function(e,t){"comment"===t.question.getType()&&(t.cssClasses.title="sv-question-embed__title")})),i}return Object(o.__extends)(t,e),Object(o.__decorate)([Object(r.property)()],t.prototype,"survey",void 0),t}(r.Base)),u=function(){function e(e){this.creator=e,e.addPluginTab("embed",this,Object(n.getLocString)("ed.embedSurvey"))}return e.prototype.activate=function(){this.model=new l(this.creator)},e.prototype.deactivate=function(){return this.model=void 0,!0},e}()},"./src/components/tabs/json-editor-ace.scss":
193
209
  /*!**************************************************!*\
194
210
  !*** ./src/components/tabs/json-editor-ace.scss ***!
195
211
  \**************************************************/
@@ -213,7 +229,7 @@ License: MIT
213
229
  /*!**************************************************!*\
214
230
  !*** ./src/components/tabs/logic-item-editor.ts ***!
215
231
  \**************************************************/
216
- /*! exports provided: LogicItemEditor */function(e,t,i){"use strict";i.r(t),i.d(t,"LogicItemEditor",(function(){return d}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../settings */"./src/settings.ts"),a=i(/*! ../../property-grid/index */"./src/property-grid/index.ts"),s=i(/*! ./logic-items */"./src/components/tabs/logic-items.ts"),l=i(/*! ./logic-types */"./src/components/tabs/logic-types.ts"),u=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),c=i(/*! ../../survey-helper */"./src/survey-helper.ts");r.FunctionFactory.Instance.register("logicTypeVisibleIf",(function(e){if(!this.question||!this.question.parentQuestion||1!=e.length)return!0;var t=this.question.parentQuestion.panels;if(t.length<2)return!0;for(var i=0;i<t.length;i++){var o=t[i].getQuestionByName("logicTypeName");if(o!=this.question&&o.value==e[0])return!1}return!0}));var d=function(e){function t(t,i){void 0===i&&(i=null);var o=e.call(this,i)||this;return o.options=i,o.initialSelectedElements={},o.isModifiedValue=!1,o.options||(o.options=new n.EmptySurveyCreatorOptions),o.editSurvey.onDynamicPanelItemValueChanged.add((function(e,t){"logicTypeName"==t.name&&o.onLogicTypeChanged(t.panel);var i=o.getElementPanelObj(t.panel);if(i){var r=t.panel;r.getElementByName("elementPanel").getQuestionByName(t.name)&&(i[t.name]=t.value);var n=o.getLogicTypeByPanel(r);n&&n.dependedOnPropertyName===t.name&&o.recreateQuestion(r,i,n.dynamicPropertyName),t.panel.runCondition(o.editSurvey.getAllValues(),{survey:o.editSurvey})}})),o.editSurvey.onDynamicPanelRemoved.add((function(e,t){if(!o.isBuildingPanels){var i=o.getActionByPanel(t.panel);i&&o.editableItem.removeAction(i),0==o.panel.panelCount&&o.panel.addPanel(),o.panel.panelCount>0&&(o.panel.panels[0].getQuestionByName("logicTypeName").title=u.editorLocalization.getString("pe.then"))}})),o.editSurvey.onDynamicPanelAdded.add((function(e,t){if(!o.isBuildingPanels){var i=o.panels[o.panel.panelCount-1];o.onPanelAdded(i,null)}})),o.editSurvey.onGetQuestionTitleActions.add((function(e,t){if(o.titleActionsCreator){var i=t.question;i.parent&&"elementPanel"===i.parent.name&&o.titleActionsCreator.onGetQuestionTitleActions(t)}})),o.editSurvey.onUpdateQuestionCssClasses.add((function(e,t){o.onUpdateQuestionCssClasses(t)})),o.editSurvey.onUpdatePanelCssClasses.add((function(e,t){o.onUpdatePanelCssClasses(t)})),o.editSurvey.onQuestionAdded.add((function(e,t){o.onQuestionAdded(t)})),o.editSurvey.onValueChanged.add((function(e,t){o.onValueChanged(t)})),o.editSurvey.css=r.defaultV2Css,o.setEditableItem(t),o}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"editableItem",{get:function(){return this.editableItemValue},enumerable:!1,configurable:!0}),t.prototype.setEditableItem=function(e){this.editableItemValue=e,this.buildInitialSelectedElements(),this.buildPanels(),this.resetModified()},Object.defineProperty(t.prototype,"survey",{get:function(){return this.editableItem.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModified",{get:function(){return this.isModifiedValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.editSurvey.getQuestionByName("panel")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.panel.panels},enumerable:!1,configurable:!0}),t.prototype.getPanelByAction=function(e){for(var t=this.panels,i=0;i<t.length;i++)if(t[i].action==e)return t[i];return null},t.prototype.getActionByPanel=function(e){return e.action},t.prototype.getLogicTypeByPanel=function(e){return this.getLogicTypeByName(e.getQuestionByName("logicTypeName").value)},t.prototype.getSurveyJSON=function(){return{clearInvisibleValues:"onHidden",elements:[{type:"paneldynamic",name:"panel",title:Object(l.getLogicString)("actionsEditorTitle"),titleLocation:"hidden",panelAddText:Object(l.getLogicString)("addNewAction"),panelRemoveButtonLocation:"right",panelCount:0,minPanelCount:1,maxPanelCount:1,templateElements:[{name:"logicTypeName",type:"dropdown",title:u.editorLocalization.getString("pe.then"),titleLocation:"left",isRequired:!0,optionsCaption:Object(l.getLogicString)("selectedActionCaption"),requiredErrorText:this.getLocString("pe.conditionActionEmpty")},{name:"logicTypeDescription",type:"html",startWithNewLine:!1,visible:!1},{name:"elementSelector",type:"dropdown",titleLocation:"hidden",isRequired:!0,startWithNewLine:!1,visible:!1},{name:"elementPanel",type:"panel",startWithNewLine:!1,visible:!1}]}]}},t.prototype.getSurveyCreationReason=function(){return"logic-item-editor"},t.prototype.resetModified=function(){this.isModifiedValue=!1},t.prototype.apply=function(){if(this.editSurvey.hasErrors())return!1;for(var e=0;e<this.panels.length;e++)this.applyPanel(this.panels[e]);return this.resetModified(),!0},t.prototype.getEditingActions=function(){for(var e=[],t=0;t<this.panels.length;t++){var i=this.getOrCreateActionByPanel(this.panels[t]);i&&e.push(i)}return e},t.prototype.onUpdateQuestionCssClasses=function(e){e.cssClasses.answered="svc-logic-question--answered","logicTypeName"===e.question.name&&(e.cssClasses.control="svc-logic-operator svc-logic-operator--action",e.cssClasses.questionWrapper="svc-question-wrapper",e.cssClasses.error.root="svc-logic-operator__error",e.cssClasses.onError="svc-logic-operator--error"),"elementSelector"!==e.question.name&&"setToName"!==e.question.name&&"fromName"!==e.question.name&&"gotoName"!==e.question.name||(e.cssClasses.control="svc-logic-operator svc-logic-operator--question",e.cssClasses.questionWrapper="svc-question-wrapper",e.cssClasses.error.root="svc-logic-operator__error",e.cssClasses.onError="svc-logic-operator--error"),"setToName"!==e.question.name&&"fromName"!==e.question.name||(e.question.titleLocation="left",e.question.startWithNewLine=!1,e.cssClasses.questionWrapper="svc-question-wrapper",e.cssClasses.error.root="svc-logic-operator__error",e.cssClasses.onError="svc-logic-operator--error"),e.cssClasses.mainRoot="sd-question sd-row__question","panel"===e.question.name&&(e.cssClasses.root+=" svc-logic-paneldynamic",e.cssClasses.buttonAdd+=" svc-logic-operator svc-logic-operator--action sd-paneldynamic__add-btn",e.cssClasses.iconRemove="svc-icon-remove",e.cssClasses.buttonRemove="svc-logic-paneldynamic__button",e.cssClasses.buttonRemoveText="svc-logic-paneldynamic__button-remove-text")},t.prototype.onUpdatePanelCssClasses=function(e){"elementPanel"===e.panel.name&&(e.cssClasses.panel.container+=" svc-logic-panel-element")},t.prototype.onValueChanged=function(e){this.isModifiedValue=!0,e.question.maxPanelCount=1!==e.value.length||e.value[0].logicTypeName?100:1},t.prototype.onQuestionAdded=function(e){"setToName"!==e.question.name&&"fromName"!==e.question.name||(e.question.titleLocation="left",e.question.startWithNewLine=!1)},t.prototype.applyPanel=function(e){var t=this.getActionByPanel(e),i=this.getOrCreateActionByPanel(e);if(t!==i){this.editableItem.replaceAction(i,t),e.action=i,this.setElementPanelObj(e,i.element);var o=this.getElementPanelObj(e);o&&this.getLogicTypeByPanel(e).saveNewElement(o)}},t.prototype.getOrCreateActionByPanel=function(e){var t=this.getActionByPanel(e),i=this.getLogicTypeByPanel(e),o=this.getElementPanelObj(e),r=null;return o||(r=this.getElementBySelectorName(i,e.getQuestionByName("elementSelector").value)),!t||t.logicType!=i||r&&t.element!=r?new s.SurveyLogicAction(i,o||r,this.survey):(o&&t.element.fromJSON(o.toJSON()),t)},t.prototype.buildInitialSelectedElements=function(){if(this.initialSelectedElements={},this.editableItem)for(var e=0;e<this.editableItem.actions.length;e++){var t=this.editableItem.actions[e];if(this.isElementSelectorVisible(t.logicType)){var i=t.logicTypeName;this.initialSelectedElements[i]||(this.initialSelectedElements[i]=[]),this.initialSelectedElements[i].push(t.element)}}},t.prototype.buildPanels=function(){if(this.panel.panelCount=0,this.editableItem){this.logicTypeChoices=this.getLogicTypeChoices();for(var e=0;e<this.editableItem.actions.length;e++)this.onPanelAdded(this.panel.addPanel(),this.editableItem.actions[e]);0==this.panel.panelCount&&this.onPanelAdded(this.panel.addPanel(),null)}},t.prototype.onPanelAdded=function(e,t){var i=e.getQuestionByName("logicTypeName");return i.title=this.panel.panelCount>1?u.editorLocalization.getString("pe.and").toLowerCase():u.editorLocalization.getString("pe.then"),i.choices=this.logicTypeChoices,t&&(e.action=t,i.value=t.logicTypeName),e},t.prototype.getLogicTypeChoices=function(){for(var e=[],t=this.editableItem.getVisibleLogicTypes(),i=0;i<t.length;i++){var o=t[i],n=new r.ItemValue(o.name,o.displayName);o.isUniqueItem&&(n.visibleIf="logicTypeVisibleIf({item})"),e.push(n)}return e},t.prototype.onLogicTypeChanged=function(e){var t=this.getLogicTypeByPanel(e);e.getQuestionByName("logicTypeDescription").html=t?t.description:"",this.setElementPanelObj(e,null),this.setupElementSelector(e,t),this.setupElementPanel(e,t)},t.prototype.getLogicTypeByName=function(e){if(!e)return null;for(var t=this.editableItem.getVisibleLogicTypes(),i=0;i<t.length;i++)if(t[i].name==e)return t[i];return null},t.prototype.setupElementSelector=function(e,t){var i=e.getQuestionByName("elementSelector");if(i.visible=this.isElementSelectorVisible(t),i.visible){i.choices=this.getSelectorChoices(t),i.optionsCaption=this.getSelectorOptionsText(t);var o=this.getActionByPanel(e);i.value=o&&o.element&&o.logicType==t?o.element.name:void 0}},t.prototype.setupElementPanel=function(e,t){this.titleActionsCreator=null;for(var i=e.getElementByName("elementPanel"),o=i.questions,n=0;n<o.length;n++)o[n].clearValue();if(i.elements.splice(0,i.elements.length),this.isElementPanelVisible(t)){var s=this.createElementPanelObj(this.getActionByPanel(e),t);if(this.setElementPanelObj(e,s),i.visible=t.hasVisibleElements,i.visible){this.titleActionsCreator=new a.PropertyGridTitleActionsCreator(s,this.options),new a.PropertyJSONGenerator(s,this.options).setupObjPanel(i,!0,"logic"),i.title="";var l=i.getQuestionByName("runExpression");for(l&&(l.titleLocation="top"),i.visible=!0,i.getElementByName(t.propertyName).visible=!1,i.onSurveyLoad(),n=0;n<i.questions.length;n++){var u=i.questions[n];r.Helpers.isValueEmpty(s[u.getValueName()])||(u.value=s[u.getValueName()])}}}else i.visible=!1},t.prototype.recreateQuestion=function(e,t,i){var o=i?e.getQuestionByName(i):null;if(o){var n=e.getElementByName("elementPanel");if(n){var s=r.Serializer.createClass("panel");new a.PropertyJSONGenerator(t,this.options).setupObjPanel(s,!0,"logic");var l=s.getQuestionByName(i);if(l){var u=n.elements.indexOf(o);n.addElement(l,u),o.delete()}s.dispose()}}},t.prototype.isElementSelectorVisible=function(e){return!!e&&t.elementSelectorTypes.indexOf(e.baseClass)>-1},t.prototype.isElementPanelVisible=function(e){return!!e&&!this.isElementSelectorVisible(e)},t.prototype.getElementPanelObj=function(e){return e.panelObj},t.prototype.setElementPanelObj=function(e,t){var i=this.getElementPanelObj(e);i&&(i.onPropertyValueChangedCallback=void 0),e.panelObj=t,t&&(t.onPropertyValueChangedCallback=function(t,o,r,n,a){if(e&&!e.isDisposed){var s=e.getQuestionByName(t);s&&(s.value=r)}else i.onPropertyValueChangedCallback=void 0})},t.prototype.createElementPanelObj=function(e,t){var i=e&&e.logicType==t?e.element:null;return t.createNewObj(i)},t.prototype.getLocString=function(e){return u.editorLocalization.getString(e)},t.prototype.getSelectorChoices=function(e){var t=e.baseClass,i=[];"question"==t&&(i=this.survey.getAllQuestions()),"page"==t&&(i=this.survey.pages),"panel"==t&&(i=this.survey.getAllPanels());for(var o=[],n=this.options.showTitlesInExpressions,a=0;a<i.length;a++){var s=i[a],l="";n&&(l=s.locTitle.renderedHtml),l||(l=s.name);var u=new r.ItemValue(s.name,l);s[e.propertyName]&&!this.isElementInInitialSelection(e.name,s)&&(u.enableIf="1=2"),o.push(u)}return c.SurveyHelper.sortItems(o),o},t.prototype.isElementInInitialSelection=function(e,t){return!!this.initialSelectedElements[e]&&this.initialSelectedElements[e].indexOf(t)>-1},t.prototype.getSelectorOptionsText=function(e){var t=e.baseClass,i="page"==t?"pe.conditionSelectPage":"panel"==t?"pe.conditionSelectPanel":"pe.conditionSelectQuestion";return this.getLocString(i)},t.prototype.getElementBySelectorName=function(e,t){if(!t)return null;var i=e.baseClass;return"question"==i?this.survey.getQuestionByName(t):this.survey.getPageByName(t)},t.elementSelectorTypes=["question","page","panel"],t}(a.PropertyEditorSetupValue)},"./src/components/tabs/logic-items.ts":
232
+ /*! exports provided: LogicItemEditor */function(e,t,i){"use strict";i.r(t),i.d(t,"LogicItemEditor",(function(){return m}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../settings */"./src/settings.ts"),a=i(/*! ../../property-grid/index */"./src/property-grid/index.ts"),s=i(/*! ./logic-items */"./src/components/tabs/logic-items.ts"),l=i(/*! ./logic-types */"./src/components/tabs/logic-types.ts"),u=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),c=i(/*! ../../survey-helper */"./src/survey-helper.ts"),d=i(/*! ./logic-theme */"./src/components/tabs/logic-theme.ts"),p=i(/*! ../../utils/utils */"./src/utils/utils.ts");r.FunctionFactory.Instance.register("logicTypeVisibleIf",(function(e){if(!this.question||!this.question.parentQuestion||1!=e.length)return!0;var t=this.question.parentQuestion.panels;if(t.length<2)return!0;for(var i=0;i<t.length;i++){var o=t[i].getQuestionByName("logicTypeName");if(o!=this.question&&o.value==e[0])return!1}return!0}));var m=function(e){function t(t,i){void 0===i&&(i=null);var o=e.call(this,i)||this;return o.options=i,o.initialSelectedElements={},o.isModifiedValue=!1,o.options||(o.options=new n.EmptySurveyCreatorOptions),o.editSurvey.onDynamicPanelItemValueChanged.add((function(e,t){"logicTypeName"==t.name&&o.onLogicTypeChanged(t.panel);var i=o.getElementPanelObj(t.panel);if(i){var r=t.panel;r.getElementByName("elementPanel").getQuestionByName(t.name)&&(i[t.name]=t.value);var n=o.getLogicTypeByPanel(r);n&&n.dependedOnPropertyName===t.name&&o.recreateQuestion(r,i,n.dynamicPropertyName),t.panel.runCondition(o.editSurvey.getAllValues(),{survey:o.editSurvey})}})),o.editSurvey.onDynamicPanelRemoved.add((function(e,t){if(!o.isBuildingPanels){var i=o.getActionByPanel(t.panel);i&&o.editableItem.removeAction(i),0==o.panel.panelCount&&o.panel.addPanel(),o.panel.panelCount>0&&(o.panel.panels[0].getQuestionByName("logicTypeName").title=u.editorLocalization.getString("pe.then"))}})),o.editSurvey.onDynamicPanelAdded.add((function(e,t){if(!o.isBuildingPanels){var i=o.panels[o.panel.panelCount-1];o.onPanelAdded(i,null)}})),o.editSurvey.onGetQuestionTitleActions.add((function(e,t){if(o.titleActionsCreator){var i=t.question;i.parent&&"elementPanel"===i.parent.name&&o.titleActionsCreator.onGetQuestionTitleActions(t)}})),o.editSurvey.css=d.logicCss,o.editSurvey.onUpdateQuestionCssClasses.add((function(e,t){o.onUpdateQuestionCssClasses(t)})),o.editSurvey.onUpdatePanelCssClasses.add((function(e,t){o.onUpdatePanelCssClasses(t)})),o.editSurvey.onQuestionAdded.add((function(e,t){o.onQuestionAdded(t)})),o.editSurvey.onValueChanged.add((function(e,t){o.onValueChanged(t)})),o.setEditableItem(t),o}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"editableItem",{get:function(){return this.editableItemValue},enumerable:!1,configurable:!0}),t.prototype.setEditableItem=function(e){this.editableItemValue=e,this.buildInitialSelectedElements(),this.buildPanels(),this.resetModified()},Object.defineProperty(t.prototype,"survey",{get:function(){return this.editableItem.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModified",{get:function(){return this.isModifiedValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.editSurvey.getQuestionByName("panel")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.panel.panels},enumerable:!1,configurable:!0}),t.prototype.getPanelByAction=function(e){for(var t=this.panels,i=0;i<t.length;i++)if(t[i].action==e)return t[i];return null},t.prototype.getActionByPanel=function(e){return e.action},t.prototype.getLogicTypeByPanel=function(e){return this.getLogicTypeByName(e.getQuestionByName("logicTypeName").value)},t.prototype.getSurveyJSON=function(){return{clearInvisibleValues:"onHidden",elements:[{type:"paneldynamic",name:"panel",title:Object(l.getLogicString)("actionsEditorTitle"),titleLocation:"hidden",panelAddText:Object(l.getLogicString)("addNewAction"),panelRemoveButtonLocation:"right",panelCount:0,minPanelCount:1,maxPanelCount:1,templateElements:[{name:"logicTypeName",type:"dropdown",title:u.editorLocalization.getString("pe.then"),titleLocation:"left",isRequired:!0,optionsCaption:Object(l.getLogicString)("selectedActionCaption"),requiredErrorText:this.getLocString("pe.conditionActionEmpty")},{name:"logicTypeDescription",type:"html",startWithNewLine:!1,visible:!1},{name:"elementSelector",type:"dropdown",titleLocation:"hidden",isRequired:!0,startWithNewLine:!1,visible:!1},{name:"elementPanel",type:"panel",startWithNewLine:!1,visible:!1}]}]}},t.prototype.getSurveyCreationReason=function(){return"logic-item-editor"},t.prototype.resetModified=function(){this.isModifiedValue=!1},t.prototype.apply=function(){if(this.editSurvey.hasErrors())return!1;for(var e=0;e<this.panels.length;e++)this.applyPanel(this.panels[e]);return this.resetModified(),!0},t.prototype.getEditingActions=function(){for(var e=[],t=0;t<this.panels.length;t++){var i=this.getOrCreateActionByPanel(this.panels[t]);i&&e.push(i)}return e},t.prototype.onUpdateQuestionCssClasses=function(e){e.cssClasses.answered="svc-logic-question--answered","logicTypeName"===e.question.name&&(e.cssClasses.control="svc-logic-operator svc-logic-operator--action",e.cssClasses.questionWrapper="svc-question-wrapper",e.cssClasses.error.root="svc-logic-operator__error",e.cssClasses.onError="svc-logic-operator--error"),"elementSelector"!==e.question.name&&"setToName"!==e.question.name&&"fromName"!==e.question.name&&"gotoName"!==e.question.name||(e.cssClasses.control="svc-logic-operator svc-logic-operator--question",e.cssClasses.questionWrapper="svc-question-wrapper",e.cssClasses.error.root="svc-logic-operator__error",e.cssClasses.onError="svc-logic-operator--error"),"setToName"!==e.question.name&&"fromName"!==e.question.name||(e.question.titleLocation="left",e.question.startWithNewLine=!1,e.cssClasses.questionWrapper="svc-question-wrapper",e.cssClasses.error.root="svc-logic-operator__error",e.cssClasses.onError="svc-logic-operator--error"),"setValue"===e.question.name&&(Object(p.assignDefaultV2Classes)(e.cssClasses,e.question.getType()),e.cssClasses.mainRoot+=" svc-logic-question-value"),"panel"===e.question.name&&(e.cssClasses.root+=" svc-logic-paneldynamic",e.cssClasses.buttonAdd+=" svc-logic-operator--action ",e.cssClasses.iconRemove="svc-icon-remove",e.cssClasses.buttonRemove="svc-logic-paneldynamic__button svc-logic-paneldynamic__remove-btn",e.cssClasses.buttonRemoveRight="svc-logic-paneldynamic__remove-btn--right",e.cssClasses.buttonRemoveText="svc-logic-paneldynamic__button-remove-text")},t.prototype.onUpdatePanelCssClasses=function(e){"elementPanel"===e.panel.name&&(e.cssClasses.panel.container+=" svc-logic-panel-element")},t.prototype.onValueChanged=function(e){this.isModifiedValue=!0,e.question.maxPanelCount=1!==e.value.length||e.value[0].logicTypeName?100:1},t.prototype.onQuestionAdded=function(e){"setToName"!==e.question.name&&"fromName"!==e.question.name||(e.question.titleLocation="left",e.question.startWithNewLine=!1)},t.prototype.applyPanel=function(e){var t=this.getActionByPanel(e),i=this.getOrCreateActionByPanel(e);if(t!==i){this.editableItem.replaceAction(i,t),e.action=i,this.setElementPanelObj(e,i.element);var o=this.getElementPanelObj(e);o&&this.getLogicTypeByPanel(e).saveNewElement(o)}},t.prototype.getOrCreateActionByPanel=function(e){var t=this.getActionByPanel(e),i=this.getLogicTypeByPanel(e),o=this.getElementPanelObj(e),r=null;return o||(r=this.getElementBySelectorName(i,e.getQuestionByName("elementSelector").value)),!t||t.logicType!=i||r&&t.element!=r?new s.SurveyLogicAction(i,o||r,this.survey):(o&&t.element.fromJSON(o.toJSON()),t)},t.prototype.buildInitialSelectedElements=function(){if(this.initialSelectedElements={},this.editableItem)for(var e=0;e<this.editableItem.actions.length;e++){var t=this.editableItem.actions[e];if(this.isElementSelectorVisible(t.logicType)){var i=t.logicTypeName;this.initialSelectedElements[i]||(this.initialSelectedElements[i]=[]),this.initialSelectedElements[i].push(t.element)}}},t.prototype.buildPanels=function(){if(this.panel.panelCount=0,this.editableItem){this.logicTypeChoices=this.getLogicTypeChoices();for(var e=0;e<this.editableItem.actions.length;e++)this.onPanelAdded(this.panel.addPanel(),this.editableItem.actions[e]);0==this.panel.panelCount&&this.onPanelAdded(this.panel.addPanel(),null)}},t.prototype.onPanelAdded=function(e,t){var i=e.getQuestionByName("logicTypeName");return i.title=this.panel.panelCount>1?u.editorLocalization.getString("pe.and").toLowerCase():u.editorLocalization.getString("pe.then"),i.choices=this.logicTypeChoices,t&&(e.action=t,i.value=t.logicTypeName),e},t.prototype.getLogicTypeChoices=function(){for(var e=[],t=this.editableItem.getVisibleLogicTypes(),i=0;i<t.length;i++){var o=t[i],n=new r.ItemValue(o.name,o.displayName);o.isUniqueItem&&(n.visibleIf="logicTypeVisibleIf({item})"),e.push(n)}return e},t.prototype.onLogicTypeChanged=function(e){var t=this.getLogicTypeByPanel(e);e.getQuestionByName("logicTypeDescription").html=t?t.description:"",this.setElementPanelObj(e,null),this.setupElementSelector(e,t),this.setupElementPanel(e,t)},t.prototype.getLogicTypeByName=function(e){if(!e)return null;for(var t=this.editableItem.getVisibleLogicTypes(),i=0;i<t.length;i++)if(t[i].name==e)return t[i];return null},t.prototype.setupElementSelector=function(e,t){var i=e.getQuestionByName("elementSelector");if(i.visible=this.isElementSelectorVisible(t),i.visible){i.choices=this.getSelectorChoices(t),i.optionsCaption=this.getSelectorOptionsText(t);var o=this.getActionByPanel(e);i.value=o&&o.element&&o.logicType==t?o.element.name:void 0}},t.prototype.setupElementPanel=function(e,t){this.titleActionsCreator=null;for(var i=e.getElementByName("elementPanel"),o=i.questions,n=0;n<o.length;n++)o[n].clearValue();if(i.elements.splice(0,i.elements.length),this.isElementPanelVisible(t)){var s=this.createElementPanelObj(this.getActionByPanel(e),t);if(this.setElementPanelObj(e,s),i.visible=t.hasVisibleElements,i.visible){this.titleActionsCreator=new a.PropertyGridTitleActionsCreator(s,this.options),new a.PropertyJSONGenerator(s,this.options).setupObjPanel(i,!0,"logic"),i.title="";var l=i.getQuestionByName("runExpression");for(l&&(l.titleLocation="top"),i.visible=!0,i.getElementByName(t.propertyName).visible=!1,i.onSurveyLoad(),n=0;n<i.questions.length;n++){var u=i.questions[n];r.Helpers.isValueEmpty(s[u.getValueName()])||(u.value=s[u.getValueName()])}}}else i.visible=!1},t.prototype.recreateQuestion=function(e,t,i){var o=i?e.getQuestionByName(i):null;if(o){var n=e.getElementByName("elementPanel");if(n){var s=r.Serializer.createClass("panel");new a.PropertyJSONGenerator(t,this.options).setupObjPanel(s,!0,"logic");var l=s.getQuestionByName(i);if(l){var u=n.elements.indexOf(o);n.addElement(l,u),o.delete()}s.dispose()}}},t.prototype.isElementSelectorVisible=function(e){return!!e&&t.elementSelectorTypes.indexOf(e.baseClass)>-1},t.prototype.isElementPanelVisible=function(e){return!!e&&!this.isElementSelectorVisible(e)},t.prototype.getElementPanelObj=function(e){return e.panelObj},t.prototype.setElementPanelObj=function(e,t){var i=this.getElementPanelObj(e);i&&(i.onPropertyValueChangedCallback=void 0),e.panelObj=t,t&&(t.onPropertyValueChangedCallback=function(t,o,r,n,a){if(e&&!e.isDisposed){var s=e.getQuestionByName(t);s&&(s.value=r)}else i.onPropertyValueChangedCallback=void 0})},t.prototype.createElementPanelObj=function(e,t){var i=e&&e.logicType==t?e.element:null;return t.createNewObj(i)},t.prototype.getLocString=function(e){return u.editorLocalization.getString(e)},t.prototype.getSelectorChoices=function(e){var t=e.baseClass,i=[];"question"==t&&(i=this.survey.getAllQuestions()),"page"==t&&(i=this.survey.pages),"panel"==t&&(i=this.survey.getAllPanels());for(var o=[],n=this.options.showTitlesInExpressions,a=0;a<i.length;a++){var s=i[a],l="";n&&(l=s.locTitle.renderedHtml),l||(l=s.name);var u=new r.ItemValue(s.name,l);s[e.propertyName]&&!this.isElementInInitialSelection(e.name,s)&&(u.enableIf="1=2"),o.push(u)}return c.SurveyHelper.sortItems(o),o},t.prototype.isElementInInitialSelection=function(e,t){return!!this.initialSelectedElements[e]&&this.initialSelectedElements[e].indexOf(t)>-1},t.prototype.getSelectorOptionsText=function(e){var t=e.baseClass,i="page"==t?"pe.conditionSelectPage":"panel"==t?"pe.conditionSelectPanel":"pe.conditionSelectQuestion";return this.getLocString(i)},t.prototype.getElementBySelectorName=function(e,t){if(!t)return null;var i=e.baseClass;return"question"==i?this.survey.getQuestionByName(t):this.survey.getPageByName(t)},t.elementSelectorTypes=["question","page","panel"],t}(a.PropertyEditorSetupValue)},"./src/components/tabs/logic-items.ts":
217
233
  /*!********************************************!*\
218
234
  !*** ./src/components/tabs/logic-items.ts ***!
219
235
  \********************************************/
@@ -225,7 +241,7 @@ License: MIT
225
241
  /*!********************************************!*\
226
242
  !*** ./src/components/tabs/logic-theme.ts ***!
227
243
  \********************************************/
228
- /*! exports provided: logicCss */function(e,t,i){"use strict";i.r(t),i.d(t,"logicCss",(function(){return o}));var o={root:"sl-root-modern",container:"sl-container-modern",header:"sl-title st-container-modern__title",body:"sl-body",bodyEmpty:"sl-body st-body--empty",footer:"sl-footer st-body__footer st-clearfix",title:"",description:"",logo:"sl-logo",logoImage:"sl-logo__image",headerText:"sl-header__text",navigationButton:"",completedPage:"sl-completedpage",navigation:{complete:"sl-btn st-footer__complete-btn",prev:"sl-btn st-footer__prev-btn",next:"sl-btn st-footer__next-btn",start:"sl-btn st-footer__start-btn",preview:"sl-btn st-footer__preview-btn",edit:"sl-btn st-footer__edit-btn"},panel:{title:"sl-title st-panel__title",titleExpandable:"sl-panel__title--expandable",titleOnExpand:"sl-panel__title--expanded",titleOnError:"sl-panel__title--error",description:"sl-description st-panel__description",container:"sl-element st-panel st-row__panel",content:"sl-panel__content",icon:"sl-panel__icon",iconExpanded:"sl-panel__icon--expanded",footer:"sl-panel__footer",requiredText:"sl-panel__required-text"},paneldynamic:{root:"sl-paneldynamic",navigation:"sl-paneldynamic__navigation",title:"sl-title st-question__title",button:"sl-btn",buttonRemove:"sl-paneldynamic__remove-btn",buttonAdd:"sl-paneldynamic__add-btn",progressTop:"sl-paneldynamic__progress st-paneldynamic__progress--top",progressBottom:"sl-paneldynamic__progress st-paneldynamic__progress--bottom",buttonPrev:"sl-paneldynamic__prev-btn",buttonNext:"sl-paneldynamic__next-btn",progressContainer:"sl-paneldynamic__progress-container",progress:"sl-progress",progressBar:"sl-progress__bar",progressText:"sl-paneldynamic__progress-text",separator:"sl-paneldynamic__separator",panelWrapper:"sl-paneldynamic__panel-wrapper",panelWrapperInRow:"sl-paneldynamic__panel-wrapper--in-row"},progress:"sl-progress st-body__progress",progressBar:"sl-progress__bar",progressText:"sl-progress__text",progressTextInBar:"sl-hidden",page:{root:"sl-page st-body__page",title:"sl-title st-page__title",description:"sl-description st-page__description"},pageTitle:"sl-title st-page__title",pageDescription:"sl-description st-page__description",row:"sl-row st-clearfix",question:{mainRoot:"sl-element st-question st-row__question",flowRoot:"sl-element st-question st-row__question st-row__question--flow",asCell:"sl-table__cell",header:"sl-question__header",headerLeft:"sl-question__header--location--left",headerTop:"sl-question__header--location--top",headerBottom:"sl-question__header--location--bottom",content:"sl-question__content",contentLeft:"sl-question__content--left",titleLeftRoot:"",titleOnAnswer:"sl-question__title--answer",titleOnError:"sl-question__title--error",title:"sl-title st-question__title",requiredText:"sl-question__required-text",number:"sl-question__num",description:"sl-description st-question__description",descriptionUnderInput:"sl-description st-question__description",comment:"sl-comment",required:"sl-question--required",titleRequired:"sl-question__title--required",indent:20,footer:"sl-question__footer",formGroup:"sl-question__form-group",hasError:"",disabled:"sl-question--disabled"},image:{root:"sl-image",image:"sv_image_image"},error:{root:"sl-question__erbox",icon:"",item:"",locationTop:"sl-question__erbox--location--top",locationBottom:"sl-question__erbox--location--bottom"},checkbox:{root:"sl-selectbase",item:"sl-item st-checkbox st-selectbase__item",itemSelectAll:"sl-checkbox--selectall",itemNone:"sl-checkbox--none",itemDisabled:"sl-item--disabled st-checkbox--disabled",itemChecked:"sl-item--checked st-checkbox--checked",itemHover:"sl-item--allowhover st-checkbox--allowhover",itemInline:"sl-selectbase__item--inline",label:"sl-selectbase__label",labelChecked:"",itemControl:"sl-visuallyhidden st-item__control st-checkbox__control",itemDecorator:"sl-item__svg st-checkbox__svg",controlLabel:"sl-item__control-label",materialDecorator:"sl-item__decorator st-checkbox__decorator",other:"sl-comment st-question__other",column:"sl-selectbase__column"},radiogroup:{root:"sl-selectbase",item:"sl-item st-radio st-selectbase__item",itemInline:"sl-selectbase__item--inline",label:"sl-selectbase__label",labelChecked:"",itemDisabled:"sl-item--disabled st-radio--disabled",itemChecked:"sl-item--checked st-radio--checked",itemHover:"sl-item--allowhover st-radio--allowhover",itemControl:"sl-visuallyhidden st-item__control st-radio__control",itemDecorator:"sl-item__svg st-radio__svg",controlLabel:"sl-item__control-label",materialDecorator:"sl-item__decorator st-radio__decorator",other:"sl-comment st-question__other",clearButton:"sl-btn st-selectbase__clear-btn",column:"sl-selectbase__column"},boolean:{mainRoot:"sl-question st-row__question st-question--boolean",root:"",item:"sl-boolean",control:"sl-boolean__control st-visuallyhidden",itemChecked:"sl-boolean--checked",itemIndeterminate:"sl-boolean--indeterminate",itemDisabled:"sl-boolean--disabled",label:"sl-boolean__label",switch:"sl-boolean__switch",disabledLabel:"sl-checkbox__label--disabled",itemDecorator:"sl-checkbox__hidden",materialDecorator:"sl-checkbox__rectangle",sliderText:"",slider:"sl-boolean__thumb"},text:{root:"sl-input st-text",small:"sl-row__question--small",controlDisabled:"sl-input--disabled",onError:"sl-input--error"},multipletext:{root:"sl-multipletext",item:"sl-multipletext__item",itemTitle:"sl-multipletext__item-title",row:"sl-multipletext__row",cell:"sl-multipletext__cell"},dropdown:{root:"sl-selectbase",small:"sl-row__question--small",control:"sl-input st-dropdown",selectWrapper:"",other:"sl-comment st-question__other",onError:"sl-input--error",label:"sl-selectbase__label",item:"sl-item st-radio st-selectbase__item",itemDisabled:"sl-item--disabled st-radio--disabled",itemChecked:"sl-item--checked st-radio--checked",itemHover:"sl-item--allowhover st-radio--allowhover",itemControl:"sl-visuallyhidden st-item__control st-radio__control",itemDecorator:"sl-item__svg st-radio__svg",controlDisabled:"sl-input--disabled",controlLabel:"sl-item__control-label",materialDecorator:"sl-item__decorator st-radio__decorator"},imagepicker:{root:"sl-imagepicker",item:"sl-imagepicker__item",itemInline:"sl-imagepicker__item--inline",itemChecked:"sl-imagepicker__item--checked",itemDisabled:"sl-imagepicker__item--disabled",itemHover:"sl-imagepicker__item--allowhover",label:"sl-imagepicker__label",itemControl:"sl-imagepicker__control",image:"sl-imagepicker__image",itemText:"sl-imagepicker__text",clearButton:"sl-btn",other:"sl-comment st-question__other"},matrix:{mainRoot:"sl-question st-row__question st-scrollable",tableWrapper:"sl-matrix",root:"sl-table",row:"sl-table__row",rowAdditional:"sl-table__row--additional",rowError:"sl-matrix__row--error",cell:"sl-table__cell st-matrix__cell",headerCell:"sl-table__cell st-table__cell--header",label:"sl-item st-radio st-matrix__label",itemValue:"sl-visuallyhidden st-item__control st-radio__control",itemChecked:"sl-radio--checked",itemDisabled:"sl-item--disabled st-radio--disabled",itemHover:"sl-radio--allowhover",materialDecorator:"sl-item__decorator st-radio__decorator",itemDecorator:"sl-item__svg st-radio__svg",cellText:"sl-matrix__text",cellTextSelected:"sl-matrix__text--checked",cellTextDisabled:"sl-matrix__text--disabled"},matrixdropdown:{mainRoot:"sl-question st-row__question st-scrollable",root:"sl-table",row:"sl-table__row",rowAdditional:"sl-table__row--additional",cell:"sl-table__cell",headerCell:"sl-table__cell st-table__cell--header"},matrixdynamic:{mainRoot:"sl-question st-row__question st-scrollable",root:"sl-table st-matrixdynamic",row:"sl-table__row",rowAdditional:"sl-table__row--additional",cell:"sl-table__cell",headerCell:"sl-table__cell st-table__cell--header",button:"sl-btn",detailRow:"sl-table__row st-table__row--detail",detailButton:"sl-table__cell--detail-button",detailButtonExpanded:"sl-table__cell--detail-button--expanded",detailIcon:"sl-detail-panel__icon",detailIconExpanded:"sl-detail-panel__icon--expanded",detailPanelCell:"sl-table__cell--detail-panel",actionsCell:"sl-table__cell st-table__cell--actions",buttonAdd:"sl-matrixdynamic__add-btn",buttonRemove:"sl-matrixdynamic__remove-btn",iconAdd:"",iconRemove:""},rating:{root:"sl-rating",item:"sl-rating__item",itemHover:"sl-rating__item--allowhover",selected:"sl-rating__item--selected",minText:"sl-rating__item-text st-rating__min-text",itemText:"sl-rating__item-text",maxText:"sl-rating__item-text st-rating__max-text",itemDisabled:"sl-rating__item--disabled"},comment:{root:"sl-comment",small:"sl-row__question--small"},expression:"",file:{root:"sl-file",other:"sl-comment st-question__other",placeholderInput:"sl-visuallyhidden",preview:"sl-file__preview",fileSign:"sl-hidden",fileSignBottom:"sl-file__sign",fileDecorator:"sl-file__decorator",fileInput:"sl-visuallyhidden",noFileChosen:"sl-description st-file__no-file-chosen",chooseFile:"sl-btn st-file__choose-btn",disabled:"sl-file__choose-btn--disabled",removeButton:"sl-hidden",removeButtonBottom:"sl-btn st-file__clean-btn",removeFile:"sl-hidden",removeFileSvg:"sl-file__remove-svg",wrapper:"sl-file__wrapper"},signaturepad:{root:"sl-signaturepad sjs_sp_container",small:"sl-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:""}}}},"./src/components/tabs/logic-types.ts":
244
+ /*! exports provided: logicCss */function(e,t,i){"use strict";i.r(t),i.d(t,"logicCss",(function(){return o}));var o={root:"",container:"",header:"",body:"",bodyEmpty:"",footer:"",title:"",description:"",logo:"",logoImage:"",headerText:"",navigationButton:"",completedPage:"",navigation:{complete:"",prev:"",next:"",start:"",preview:"",edit:""},panel:{title:"",titleExpandable:"",titleOnExpand:"",titleOnError:"",description:"",container:"sl-panel",content:"",icon:"",iconExpanded:"",footer:"sl-panel__footer",requiredText:"sl-panel__required-text"},paneldynamic:{mainRoot:"",root:"",navigation:"",title:"",button:"",buttonRemove:"",buttonAdd:"svc-logic-operator sl-paneldynamic__add-btn",progressTop:"",progressBottom:"",buttonPrev:"",buttonNext:"",progressContainer:"",progress:"",progressBar:"",progressText:"",separator:"sv-hidden",panelWrapper:"",panelWrapperInRow:"sl-panel-wrapper--in-row"},progress:"",progressBar:"",progressText:"",progressTextInBar:"",page:{root:"",title:"",description:""},pageTitle:"",pageDescription:"",row:"sl-row",rowMultiple:"sl-row--multiple",question:{mainRoot:"sl-question",flowRoot:"",asCell:"",header:"sl-question__header",headerLeft:"sl-question__header--left",headerTop:"",headerBottom:"",content:"",contentLeft:"",titleLeftRoot:"",titleOnAnswer:"",titleOnError:"",title:"sl-question__title",requiredText:"sl-question__required-text",number:"",description:"",descriptionUnderInput:"",comment:"",required:"",titleRequired:"",indent:20,footer:"",formGroup:"",hasError:"",disabled:""},image:{root:""},error:{root:"",icon:"",item:"",locationTop:"",locationBottom:""},checkbox:{root:"",item:"",itemSelectAll:"",itemNone:"",itemDisabled:"",itemChecked:"",itemHover:"",itemInline:"",label:"",labelChecked:"",itemControl:"",itemDecorator:"",controlLabel:"",materialDecorator:"",other:"",column:""},radiogroup:{root:"",item:"",itemInline:"",label:"",labelChecked:"",itemDisabled:"",itemChecked:"",itemHover:"",itemControl:"",itemDecorator:"",controlLabel:"",materialDecorator:"",other:"",clearButton:"",column:""},boolean:{mainRoot:"",root:"",item:"",control:"",itemChecked:"",itemIndeterminate:"",itemDisabled:"",label:"",switch:"",disabledLabel:"",itemDecorator:"",materialDecorator:"",sliderText:"",slider:""},text:{root:"",small:"",controlDisabled:"",onError:""},multipletext:{root:"",item:"",itemTitle:"",row:"",cell:""},dropdown:{root:"",small:"",control:"",selectWrapper:"",other:"",onError:"",label:"",item:"",itemDisabled:"",itemChecked:"",itemHover:"",itemControl:"",itemDecorator:"",controlDisabled:"",controlLabel:"",materialDecorator:""},imagepicker:{root:"",item:"",itemInline:"",itemChecked:"",itemDisabled:"",itemHover:"",label:"",itemControl:"",image:"",itemText:"",clearButton:"",other:""},matrix:{mainRoot:"",tableWrapper:"",root:"",row:"",rowAdditional:"",rowError:"",cell:"",headerCell:"",label:"",itemValue:"",itemChecked:"",itemDisabled:"",itemHover:"",materialDecorator:"",itemDecorator:"",cellText:"",cellTextSelected:"",cellTextDisabled:""},matrixdropdown:{mainRoot:"",root:"",row:"",rowAdditional:"",cell:"",headerCell:""},matrixdynamic:{mainRoot:"sl-question st-row__question st-scrollable",root:"sl-table st-matrixdynamic",row:"sl-table__row",rowAdditional:"sl-table__row--additional",cell:"sl-table__cell",headerCell:"sl-table__cell st-table__cell--header",button:"sl-btn",detailRow:"sl-table__row st-table__row--detail",detailButton:"sl-table__cell--detail-button",detailButtonExpanded:"sl-table__cell--detail-button--expanded",detailIcon:"sl-detail-panel__icon",detailIconExpanded:"sl-detail-panel__icon--expanded",detailPanelCell:"sl-table__cell--detail-panel",actionsCell:"sl-table__cell st-table__cell--actions",buttonAdd:"sl-matrixdynamic__add-btn",buttonRemove:"sl-matrixdynamic__remove-btn",iconAdd:"",iconRemove:""},rating:{root:"",item:"",itemHover:"",selected:"",minText:"",itemText:"",maxText:"",itemDisabled:""},comment:{mainRoot:"",root:"sd-comment sd-input sl-comment",small:""},expression:"",file:{root:"",other:"",placeholderInput:"",preview:"",fileSign:"",fileSignBottom:"",fileDecorator:"",fileInput:"",noFileChosen:"",chooseFile:"",disabled:"",removeButton:"",removeButtonBottom:"",removeFile:"",removeFileSvg:"",wrapper:""},signaturepad:{root:"",small:"",controls:"",placeholder:"",clearButton:""},saveData:{root:"",saving:"",error:"",success:"",saveAgainButton:""},window:{root:"",body:"",header:{root:"",title:"",button:"",buttonExpanded:"",buttonCollapsed:""}},embeddedsurvey:{mainRoot:"sl-embedded-survey"}}},"./src/components/tabs/logic-types.ts":
229
245
  /*!********************************************!*\
230
246
  !*** ./src/components/tabs/logic-types.ts ***!
231
247
  \********************************************/
@@ -237,7 +253,7 @@ License: MIT
237
253
  /*!*****************************************!*\
238
254
  !*** ./src/components/tabs/logic-ui.ts ***!
239
255
  \*****************************************/
240
- /*! exports provided: SurveyLogicUI */function(e,t,i){"use strict";i.r(t),i.d(t,"SurveyLogicUI",(function(){return m}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../property-grid/condition-survey */"./src/property-grid/condition-survey.ts"),a=i(/*! ../../settings */"./src/settings.ts"),s=i(/*! ./logic-item-editor */"./src/components/tabs/logic-item-editor.ts"),l=i(/*! ./logic-types */"./src/components/tabs/logic-types.ts"),u=i(/*! ./logic */"./src/components/tabs/logic.ts"),c=i(/*! ../../property-grid/index */"./src/property-grid/index.ts"),d=i(/*! ../../utils/actions */"./src/utils/actions.ts"),p=(i(/*! ./logic-ui.scss */"./src/components/tabs/logic-ui.scss"),i(/*! ./logic-theme */"./src/components/tabs/logic-theme.ts")),m=function(e){function t(t,i){void 0===i&&(i=null);var o=e.call(this,t,i)||this;return o.survey=t,o.options=i,o.itemUIHash={},o.options||(o.options=new a.EmptySurveyCreatorOptions),o.setupToolbarItems(),o.update(),o}return Object(o.__extends)(t,e),t.prototype.update=function(t,i){var o=this;void 0===t&&(t=null),void 0===i&&(i=null),e.prototype.update.call(this,t,i);var r=this.options.createSurvey(this.getLogicItemSurveyJSON(),"logic-items");r.css=p.logicCss,this.itemsSurveyValue=r,this.itemsSurvey.onMatrixRowRemoving.add((function(e,t){var i=o.visibleItems[t.rowIndex];t.allow=o.canRemoveItem(i)})),this.itemsSurvey.onMatrixRowRemoved.add((function(e,t){var i=o.visibleItems[t.rowIndex],r=i===o.editableItem;o.removeItem(i,!1),r&&(o.mode="view",o.updateNewActionState()),o.expressionEditorCanShowBuilder=!!o.editableItem})),this.itemsSurvey.onGetMatrixRowActions.add((function(e,t){o.readOnly||Object(d.updateMatrixRemoveAction)(t.question,t.actions,t.row)})),this.updateItemsSurveyData()},t.prototype.dispose=function(){for(var t in e.prototype.dispose.call(this),this.itemUIHash){var i=this.itemUIHash[t];i.expressionEditor.dispose(),i.itemEditor.dispose()}this.itemUIHash={}},t.prototype.addNewUI=function(){0!=this.items.length&&this.items[this.items.length-1].isNew||this.addNew(),this.matrixItems.visibleRows[this.matrixItems.visibleRows.length-1].showDetailPanel()},t.prototype.toggleExpressionEditorIsFastEntry=function(){this.expressionEditorIsFastEntry=!this.expressionEditorIsFastEntry,this.expressionEditor&&this.expressionEditor.setIsFastEntry(this.expressionEditorIsFastEntry)},t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),"items"===t&&this.updateItemsSurveyData()},Object.defineProperty(t.prototype,"expressionEditor",{get:function(){return this.expressionEditorValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemEditor",{get:function(){return this.itemEditorValue},enumerable:!1,configurable:!0}),t.prototype.getExpressionEditor=function(e){return this.getLogicItemUI(e).expressionEditor},t.prototype.getLogicItemEditor=function(e){return this.getLogicItemUI(e).itemEditor},t.prototype.getLogicItemUI=function(e){var t=this.itemUIHash[e.id];return t||((t={expressionEditor:this.createExpressionPropertyEditor(),itemEditor:new s.LogicItemEditor(e,this.options)}).expressionEditor.text=e.expression,this.itemUIHash[e.id]=t),t},Object.defineProperty(t.prototype,"expressionSurvey",{get:function(){return this.expressionEditor.editSurvey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemEditorSurvey",{get:function(){return this.itemEditor.editSurvey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemsSurvey",{get:function(){return this.itemsSurveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasItems",{get:function(){return this.items.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixItems",{get:function(){return this.itemsSurvey.getQuestionByName("items")},enumerable:!1,configurable:!0}),t.prototype.onStartEditing=function(){e.prototype.onStartEditing.call(this),this.expressionEditorValue=this.getExpressionEditor(this.editableItem),this.itemEditorValue=this.getLogicItemEditor(this.editableItem),this.expressionEditorIsFastEntry=!1,this.expressionEditor.setIsFastEntry(this.expressionEditorIsFastEntry),this.expressionEditorCanShowBuilder=n.ConditionEditor.canBuildExpression(this.expressionEditor.text)},t.prototype.onEndEditing=function(){this.editableItem&&(this.editableItem.isModified=!!this.itemEditor&&!!this.expressionEditor&&(this.itemEditor.isModified||this.expressionEditor.isModified(this.editableItem.expression))),e.prototype.onEndEditing.call(this),this.expressionEditorValue=null,this.itemEditorValue=null},t.prototype.onEditableItemApply=function(){this.expressionEditor.apply(),this.itemEditor.apply(),this.editableItem.apply(this.expressionEditor.text),this.editableItem.actions.length!=this.itemEditor.panels.length&&this.itemEditor.setEditableItem(this.editableItem),this.itemEditor.resetModified(),this.editableItem.isNew=!1,this.editableItem.isSuitable(this.questionFilter,this.actionTypeFilter)?this.updateItemsSurveyData():(this.questionFilter="",this.actionTypeFilter="")},t.prototype.hasErrorInUI=function(){return this.expressionEditor.isReady?!!this.itemEditor.hasErrors()&&(this.errorText=Object(l.getLogicString)("actionInvalid"),this.survey.creator&&this.survey.creator.notify(this.errorText,"error"),!0):(this.errorText=Object(l.getLogicString)("expressionInvalid"),this.survey.creator&&this.survey.creator.notify(this.errorText,"error"),!0)},t.prototype.getExpressionText=function(){return this.expressionEditor.text},t.prototype.getEditingActions=function(){return this.itemEditor.getEditingActions()},t.prototype.getLogicItemSurveyJSON=function(){var e={elements:[{type:"matrixdynamic",name:"items",titleLocation:"hidden",detailPanelMode:"underRowSingle",allowAddRows:!1,allowAdaptiveActions:!1,rowCount:0,showHeader:!1,columns:[{cellType:"linkvalue",name:"conditions",readOnly:!0,title:this.getLocString("ed.lg.conditions")},{cellType:"linkvalue",name:"actions",readOnly:!0,title:this.getLocString("ed.lg.actions")}]}]};return Object(c.setSurveyJSONForPropertyGrid)(e),e},t.prototype.createExpressionPropertyEditor=function(){var e=this,t=new n.ConditionEditor(this.survey,null,this.options);return t.isModal=!1,t.editSurvey.onValueChanged.add((function(t,i){"textEditor"===i.name&&(e.expressionEditorCanShowBuilder=n.ConditionEditor.canBuildExpression(i.value))})),t},t.prototype.getVisibleItems=function(){var e=this;return this.items.filter((function(t){return t.isNew||t.isSuitable(e.questionFilter,e.actionTypeFilter)}))},t.prototype.updateItemsSurveyData=function(){var e=this;if(this.itemsSurvey){var t=[];this.visibleItems=this.getVisibleItems();for(var i=0;i<this.visibleItems.length;i++)t.push({conditions:this.visibleItems[i].expressionText,actions:this.visibleItems[i].actionsText});this.matrixItems.onHasDetailPanelCallback=function(e){return!0},this.matrixItems.onCreateDetailPanelCallback=function(t,i){t.onDetailPanelShowingChanged=function(){if(e.expressionEditorCanShowBuilder=t.isDetailPanelShowing,t.isDetailPanelShowing){if("view"===e.mode){var o=e.visibleItems[t.rowIndex-1];e.editItem(o)}var r=i.getQuestionByName("conditions"),n=i.getQuestionByName("actions");r.embeddedSurvey=e.expressionEditor.editSurvey,n.embeddedSurvey=e.itemEditorValue.editSurvey,e.updateRowIsAdditionalClasses(t.rowIndex-1,!1)}else e.mode="view",e.updateRenderedRows();e.updateNewActionState()},i.addNewQuestion("embeddedsurvey","conditions"),i.addNewQuestion("embeddedsurvey","actions"),i.footerActions.push({id:"saveDetailPanel",innerCss:"sv-btn sv-matrixdynamic__add-btn",title:e.getLocString("pe.doneEditing"),action:function(){e.saveEditableItem()&&t.hideDetailPanel(!0)}})},this.matrixItems.value=t,this.updateRenderedRows()}},t.prototype.updateRenderedRows=function(){var e=this;this.visibleItems.forEach((function(t,i){e.updateRowIsAdditionalClasses(i,e.visibleItems[i].isModified||e.visibleItems[i].isNew)}))},t.prototype.updateRowIsAdditionalClasses=function(e,t){this.matrixItems.renderedTable&&(this.matrixItems.renderedTable.rows[e].isAdditionalClasses=t)},t.prototype.updateNewActionState=function(){this.addNewButton.enabled="new"!==this.mode},t.prototype.setupToolbarItems=function(){var e=this;this.addNewButton=new r.Action({id:"svd-logic-addNew",title:this.addNewText,tooltip:this.addNewText,component:"sv-action-bar-item",enabled:!0,action:function(){e.addNewUI()}})},Object.defineProperty(t.prototype,"addNewText",{get:function(){var e=Object(l.getLogicString)("addNewItem");return e||this.getLocString("pe.addNew")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyTabPlaceHolder",{get:function(){return Object(l.getLogicString)("empty_tab")},enumerable:!1,configurable:!0}),Object(o.__decorate)([Object(r.property)()],t.prototype,"itemsSurveyValue",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"expressionEditorIsFastEntry",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"expressionEditorCanShowBuilder",void 0),Object(o.__decorate)([Object(r.property)({onSet:function(e,t){t.updateItemsSurveyData()}})],t.prototype,"questionFilter",void 0),Object(o.__decorate)([Object(r.property)({onSet:function(e,t){t.updateItemsSurveyData()}})],t.prototype,"actionTypeFilter",void 0),t}(u.SurveyLogic)},"./src/components/tabs/logic.scss":
256
+ /*! exports provided: SurveyLogicUI */function(e,t,i){"use strict";i.r(t),i.d(t,"SurveyLogicUI",(function(){return m}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../property-grid/condition-survey */"./src/property-grid/condition-survey.ts"),a=i(/*! ../../settings */"./src/settings.ts"),s=i(/*! ./logic-item-editor */"./src/components/tabs/logic-item-editor.ts"),l=i(/*! ./logic-types */"./src/components/tabs/logic-types.ts"),u=i(/*! ./logic */"./src/components/tabs/logic.ts"),c=i(/*! ../../property-grid/index */"./src/property-grid/index.ts"),d=i(/*! ../../utils/actions */"./src/utils/actions.ts"),p=(i(/*! ./logic-ui.scss */"./src/components/tabs/logic-ui.scss"),i(/*! ./logic-theme */"./src/components/tabs/logic-theme.ts")),m=function(e){function t(t,i){void 0===i&&(i=null);var o=e.call(this,t,i)||this;return o.survey=t,o.options=i,o.itemUIHash={},o.options||(o.options=new a.EmptySurveyCreatorOptions),o.setupToolbarItems(),o.update(),o}return Object(o.__extends)(t,e),t.prototype.update=function(t,i){var o=this;void 0===t&&(t=null),void 0===i&&(i=null),e.prototype.update.call(this,t,i);var r=this.options.createSurvey(this.getLogicItemSurveyJSON(),"logic-items");r.css=p.logicCss,this.itemsSurveyValue=r,this.itemsSurvey.onMatrixRowRemoving.add((function(e,t){var i=o.visibleItems[t.rowIndex];t.allow=o.canRemoveItem(i)})),this.itemsSurvey.onMatrixRowRemoved.add((function(e,t){var i=o.visibleItems[t.rowIndex],r=i===o.editableItem;o.removeItem(i,!1),r&&(o.mode="view",o.updateNewActionState()),o.expressionEditorCanShowBuilder=!!o.editableItem})),this.itemsSurvey.onGetMatrixRowActions.add((function(e,t){o.readOnly||Object(d.updateMatrixRemoveAction)(t.question,t.actions,t.row)})),this.updateItemsSurveyData()},t.prototype.dispose=function(){for(var t in e.prototype.dispose.call(this),this.itemUIHash){var i=this.itemUIHash[t];i.expressionEditor.dispose(),i.itemEditor.dispose()}this.itemUIHash={}},t.prototype.addNewUI=function(){0!=this.items.length&&this.items[this.items.length-1].isNew||this.addNew(),this.matrixItems.visibleRows[this.matrixItems.visibleRows.length-1].showDetailPanel()},t.prototype.toggleExpressionEditorIsFastEntry=function(){this.expressionEditorIsFastEntry=!this.expressionEditorIsFastEntry,this.expressionEditor&&this.expressionEditor.setIsFastEntry(this.expressionEditorIsFastEntry)},t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),"items"===t&&this.updateItemsSurveyData()},Object.defineProperty(t.prototype,"expressionEditor",{get:function(){return this.expressionEditorValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemEditor",{get:function(){return this.itemEditorValue},enumerable:!1,configurable:!0}),t.prototype.getExpressionEditor=function(e){return this.getLogicItemUI(e).expressionEditor},t.prototype.getLogicItemEditor=function(e){return this.getLogicItemUI(e).itemEditor},t.prototype.getLogicItemUI=function(e){var t=this.itemUIHash[e.id];return t||((t={expressionEditor:this.createExpressionPropertyEditor(),itemEditor:new s.LogicItemEditor(e,this.options)}).expressionEditor.text=e.expression,this.itemUIHash[e.id]=t),t},Object.defineProperty(t.prototype,"expressionSurvey",{get:function(){return this.expressionEditor.editSurvey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemEditorSurvey",{get:function(){return this.itemEditor.editSurvey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemsSurvey",{get:function(){return this.itemsSurveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasItems",{get:function(){return this.items.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixItems",{get:function(){return this.itemsSurvey.getQuestionByName("items")},enumerable:!1,configurable:!0}),t.prototype.onStartEditing=function(){e.prototype.onStartEditing.call(this),this.expressionEditorValue=this.getExpressionEditor(this.editableItem),this.itemEditorValue=this.getLogicItemEditor(this.editableItem),this.expressionEditorIsFastEntry=!1,this.expressionEditor.setIsFastEntry(this.expressionEditorIsFastEntry),this.expressionEditorCanShowBuilder=n.ConditionEditor.canBuildExpression(this.expressionEditor.text)},t.prototype.onEndEditing=function(){this.editableItem&&(this.editableItem.isModified=!!this.itemEditor&&!!this.expressionEditor&&(this.itemEditor.isModified||this.expressionEditor.isModified(this.editableItem.expression))),e.prototype.onEndEditing.call(this),this.expressionEditorValue=null,this.itemEditorValue=null},t.prototype.onEditableItemApply=function(){this.expressionEditor.apply(),this.itemEditor.apply(),this.editableItem.apply(this.expressionEditor.text),this.editableItem.actions.length!=this.itemEditor.panels.length&&this.itemEditor.setEditableItem(this.editableItem),this.itemEditor.resetModified(),this.editableItem.isNew=!1,this.editableItem.isSuitable(this.questionFilter,this.actionTypeFilter)?this.updateItemsSurveyData():(this.questionFilter="",this.actionTypeFilter="")},t.prototype.hasErrorInUI=function(){return this.expressionEditor.isReady?!!this.itemEditor.hasErrors()&&(this.errorText=Object(l.getLogicString)("actionInvalid"),this.survey.creator&&this.survey.creator.notify(this.errorText,"error"),!0):(this.errorText=Object(l.getLogicString)("expressionInvalid"),this.survey.creator&&this.survey.creator.notify(this.errorText,"error"),!0)},t.prototype.getExpressionText=function(){return this.expressionEditor.text},t.prototype.getEditingActions=function(){return this.itemEditor.getEditingActions()},t.prototype.getLogicItemSurveyJSON=function(){var e={elements:[{type:"matrixdynamic",name:"items",titleLocation:"hidden",detailPanelMode:"underRowSingle",allowAddRows:!1,allowAdaptiveActions:!1,rowCount:0,showHeader:!1,columns:[{cellType:"linkvalue",name:"conditions",title:this.getLocString("ed.lg.conditions")},{cellType:"linkvalue",name:"actions",title:this.getLocString("ed.lg.actions")}]}]};return Object(c.setSurveyJSONForPropertyGrid)(e),e},t.prototype.createExpressionPropertyEditor=function(){var e=this,t=new n.ConditionEditor(this.survey,null,this.options);return t.isModal=!1,t.editSurvey.onValueChanged.add((function(t,i){"textEditor"===i.name&&(e.expressionEditorCanShowBuilder=n.ConditionEditor.canBuildExpression(i.value))})),t},t.prototype.getVisibleItems=function(){var e=this;return this.items.filter((function(t){return t.isNew||t.isSuitable(e.questionFilter,e.actionTypeFilter)}))},t.prototype.updateItemsSurveyData=function(){var e=this;if(this.itemsSurvey){var t=[];this.visibleItems=this.getVisibleItems();for(var i=0;i<this.visibleItems.length;i++)t.push({conditions:this.visibleItems[i].expressionText,actions:this.visibleItems[i].actionsText});this.matrixItems.onHasDetailPanelCallback=function(e){return!0},this.matrixItems.onCreateDetailPanelCallback=function(t,i){t.onDetailPanelShowingChanged=function(){if(e.expressionEditorCanShowBuilder=t.isDetailPanelShowing,t.isDetailPanelShowing){if("view"===e.mode){var o=e.visibleItems[t.rowIndex-1];e.editItem(o)}var r=i.getQuestionByName("conditions"),n=i.getQuestionByName("actions");r.embeddedSurvey=e.expressionEditor.editSurvey,n.embeddedSurvey=e.itemEditorValue.editSurvey,e.updateRowIsAdditionalClasses(t.rowIndex-1,!1)}else e.mode="view",e.updateRenderedRows();e.updateNewActionState()},i.addNewQuestion("embeddedsurvey","conditions"),i.addNewQuestion("embeddedsurvey","actions"),i.footerActions.push({id:"saveDetailPanel",innerCss:"sl-panel__done-button",title:e.getLocString("pe.doneEditing"),action:function(){e.saveEditableItem()&&t.hideDetailPanel(!0)}})},this.matrixItems.onCellCreatedCallback=function(e){e.cell.question.linkClickCallback=function(){e.row.isDetailPanelShowing?e.row.hideDetailPanel():e.row.showDetailPanel()},e.cell.question.showClear=!1,e.cell.question.allowClear=!1},this.matrixItems.value=t,this.updateRenderedRows()}},t.prototype.updateRenderedRows=function(){var e=this;this.visibleItems.forEach((function(t,i){e.updateRowIsAdditionalClasses(i,e.visibleItems[i].isModified||e.visibleItems[i].isNew)}))},t.prototype.updateRowIsAdditionalClasses=function(e,t){this.matrixItems.renderedTable&&(this.matrixItems.renderedTable.rows[e].isAdditionalClasses=t)},t.prototype.updateNewActionState=function(){this.addNewButton.enabled="new"!==this.mode},t.prototype.setupToolbarItems=function(){var e=this;this.addNewButton=new r.Action({id:"svd-logic-addNew",title:this.addNewText,tooltip:this.addNewText,component:"sv-action-bar-item",enabled:!0,action:function(){e.addNewUI()}})},Object.defineProperty(t.prototype,"addNewText",{get:function(){var e=Object(l.getLogicString)("addNewItem");return e||this.getLocString("pe.addNew")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyTabPlaceHolder",{get:function(){return Object(l.getLogicString)("empty_tab")},enumerable:!1,configurable:!0}),Object(o.__decorate)([Object(r.property)()],t.prototype,"itemsSurveyValue",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"expressionEditorIsFastEntry",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"expressionEditorCanShowBuilder",void 0),Object(o.__decorate)([Object(r.property)({onSet:function(e,t){t.updateItemsSurveyData()}})],t.prototype,"questionFilter",void 0),Object(o.__decorate)([Object(r.property)({onSet:function(e,t){t.updateItemsSurveyData()}})],t.prototype,"actionTypeFilter",void 0),t}(u.SurveyLogic)},"./src/components/tabs/logic.scss":
241
257
  /*!****************************************!*\
242
258
  !*** ./src/components/tabs/logic.scss ***!
243
259
  \****************************************/
@@ -249,7 +265,7 @@ License: MIT
249
265
  /*!********************************************!*\
250
266
  !*** ./src/components/tabs/test-plugin.ts ***!
251
267
  \********************************************/
252
- /*! exports provided: TabTestPlugin */function(e,t,i){"use strict";i.r(t),i.d(t,"TabTestPlugin",(function(){return s}));var o=i(/*! survey-core */"survey-core"),r=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),n=i(/*! ../simulator */"./src/components/simulator.ts"),a=i(/*! ./test */"./src/components/tabs/test.ts"),s=function(){function e(e){this.creator=e,e.addPluginTab("test",this,Object(r.getLocString)("ed.testSurvey")),this.createActions().forEach((function(t){return e.toolbar.actions.push(t)}))}return e.prototype.getSimulatorDevicesTitle=function(){return this.model?n.simulatorDevices[this.model.simulator.device].title||Object(r.getLocString)("pe.simulator"):""},e.prototype.setDevice=function(e){this.model.simulator.device=e;var t=n.simulatorDevices[this.model.simulator.device].deviceType;this.orientationSelectorAction.enabled="desktop"!=t,this.deviceSelectorAction.iconName="icon-device_"+t,this.deviceSelectorAction.title=this.getSimulatorDevicesTitle()},e.prototype.setDefaultLanguageOption=function(e){var t=this,i=!0===e||"all"===e||"auto"===e&&this.model.survey.getUsedLocales().length>1;this.languageSelectorAction.visible=i;var o=[];i&&(o=this.getLanguages("all"!==e?this.model.survey.getUsedLocales():null)),this.languagePopupModel.contentComponentData.model.setItems(o),this.languageListModel.selectedItem=o.filter((function(e){return e.id===t.model.activeLanguage}))[0]},e.prototype.getLanguages=function(e){void 0===e&&(e=null);for(var t=[],i=e&&e.length>1?e:o.surveyLocalization.getLocales(),n=0;n<i.length;n++){var a=i[n];t.push({id:a,title:r.editorLocalization.getLocaleName(a)})}return t},e.prototype.updateActions=function(){this.languageSelectorAction.title=r.editorLocalization.getLocaleName(this.model.activeLanguage),this.languageSelectorAction.visible=!0,this.creator.showSimulatorInTestSurveyTab&&(this.setDevice(this.model.simulator.device),this.deviceListModel.selectedItem={id:this.model.simulator.device},this.orientationSelectorAction.title=Object(r.getLocString)("pe.landscapeOrientation")),this.creator.showInvisibleElementsInTestSurveyTab&&(this.invisibleToggleAction.css=this.model.showInvisibleElements?"sv-action-bar-item--active":"",this.invisibleToggleAction.visible=this.model.isRunning),null!=this.creator.showDefaultLanguageInTestSurveyTab&&this.setDefaultLanguageOption(this.creator.showDefaultLanguageInTestSurveyTab)},e.prototype.activate=function(){var e=this;this.model=new a.TestSurveyTabViewModel(this.creator),this.model.onSurveyCreatedCallback=function(t){e.creator.onTestSurveyCreated&&e.creator.onTestSurveyCreated.fire(self,{survey:t})},this.update()},e.prototype.update=function(){var e=this;if(this.model){var t={showPagesInTestSurveyTab:this.creator.showPagesInTestSurveyTab};this.model.prevPageAction=this.prevPageAction,this.model.nextPageAction=this.nextPageAction,this.model.initialize(this.creator.JSON,t),this.updateActions(),this.model.show(),this.model.onPropertyChanged.add((function(t,i){"isRunning"===i.name&&(e.invisibleToggleAction.visible=e.model.isRunning,e.testAgainAction.visible=!e.model.isRunning)}))}},e.prototype.deactivate=function(){return this.model.onSurveyCreatedCallback=void 0,this.model=void 0,this.languageSelectorAction.visible=!1,this.invisibleToggleAction&&(this.invisibleToggleAction.visible=!1),!0},e.prototype.createActions=function(){var e=this,t=[];if(this.testAgainAction=new o.Action({id:"testSurveyAgain",visible:!1,title:Object(r.getLocString)("ed.testSurveyAgain"),action:function(){e.model.testAgain()}}),t.push(this.testAgainAction),this.creator.showSimulatorInTestSurveyTab){var i=Object.keys(n.simulatorDevices).filter((function(e){return!!n.simulatorDevices[e].title})).map((function(e){return{id:e,title:n.simulatorDevices[e].title}}));this.deviceListModel=new o.ListModel(i,(function(t){e.setDevice(t.id),a.toggleVisibility()}),!0);var a=new o.PopupModel("sv-list",{model:this.deviceListModel},"bottom","center");this.deviceSelectorAction=new o.Action({id:"deviceSelector",iconName:"icon-device_desktop",component:"sv-action-bar-item-dropdown",mode:"small",visible:new o.ComputedUpdater((function(){var t=e.creator.showSimulatorInTestSurveyTab;return"test"===e.creator.activeTab&&t})),action:function(){a.toggleVisibility()},popupModel:a}),t.push(this.deviceSelectorAction),a.onHide=function(){e.deviceSelectorAction.enabled=!0},a.onShow=function(){e.deviceSelectorAction.enabled=!1},this.orientationSelectorAction=new o.Action({id:"orientationSelector",iconName:"icon-device_rotate",mode:"small",visible:new o.ComputedUpdater((function(){var t=e.creator.showSimulatorInTestSurveyTab;return"test"===e.creator.activeTab&&t})),action:function(){e.model.simulator.landscape=!e.model.simulator.landscape,e.orientationSelectorAction.title=Object(r.getLocString)(e.model.simulator.landscape?"pe.landscapeOrientation":"pe.portraitOrientation")}}),t.push(this.orientationSelectorAction)}return this.creator.showInvisibleElementsInTestSurveyTab&&(this.invisibleToggleAction=new o.Action({id:"showInvisible",iconName:"icon-invisible_items",mode:"small",needSeparator:new o.ComputedUpdater((function(){return!e.creator.isMobileView})),title:Object(r.getLocString)("ts.showInvisibleElements"),visible:!1,action:function(){e.model.showInvisibleElements=!e.model.showInvisibleElements,e.invisibleToggleAction.css=e.model.showInvisibleElements?"sv-action-bar-item--active":""}}),t.push(this.invisibleToggleAction)),this.languageListModel=new o.ListModel([],(function(t){e.model.activeLanguage=t.id,e.languageSelectorAction.title=r.editorLocalization.getLocaleName(t.id),e.languagePopupModel.toggleVisibility()}),!0),this.languagePopupModel=new o.PopupModel("sv-list",{model:this.languageListModel},"bottom","center"),this.languagePopupModel.onHide=function(){e.languageSelectorAction.enabled=!0},this.languagePopupModel.onShow=function(){e.languageSelectorAction.enabled=!1},this.languageSelectorAction=new o.Action({id:"languageSelector",iconName:"icon-language",visible:!1,component:"sv-action-bar-item-dropdown",action:function(){e.languagePopupModel.toggleVisibility()},popupModel:this.languagePopupModel,mode:new o.ComputedUpdater((function(){return e.creator.isMobileView?"small":"large"}))}),t.push(this.languageSelectorAction),this.designerAction=new o.Action({id:"svd-designer",iconName:"icon-preview",needSeparator:!0,action:function(){e.creator.makeNewViewActive("designer")},active:new o.ComputedUpdater((function(){return"test"===e.creator.activeTab})),visible:new o.ComputedUpdater((function(){return"test"===e.creator.activeTab})),title:this.creator.getLocString("ed.designer"),showTitle:!1}),this.prevPageAction=new o.Action({id:"prevPage",iconName:"icon-leftarrow_16x16",visible:!1}),this.nextPageAction=new o.Action({id:"nextPage",iconName:"icon-rightarrow_16x16",visible:!1}),t},e.prototype.addFooterActions=function(){this.creator.footerToolbar.actions.push(this.testAgainAction),this.invisibleToggleAction&&this.creator.footerToolbar.actions.push(this.invisibleToggleAction),this.languageSelectorAction&&this.creator.footerToolbar.actions.push(this.languageSelectorAction),this.creator.footerToolbar.actions.push(this.prevPageAction),this.creator.footerToolbar.actions.push(this.nextPageAction),this.creator.footerToolbar.actions.push(this.designerAction)},e}()},"./src/components/tabs/test.scss":
268
+ /*! exports provided: TabTestPlugin */function(e,t,i){"use strict";i.r(t),i.d(t,"TabTestPlugin",(function(){return s}));var o=i(/*! survey-core */"survey-core"),r=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),n=i(/*! ../simulator */"./src/components/simulator.ts"),a=i(/*! ./test */"./src/components/tabs/test.ts"),s=function(){function e(e){this.creator=e,e.addPluginTab("test",this,Object(r.getLocString)("ed.testSurvey")),this.createActions().forEach((function(t){return e.toolbar.actions.push(t)}))}return e.prototype.getSimulatorDevicesTitle=function(){return this.model?n.simulatorDevices[this.model.simulator.device].title||Object(r.getLocString)("pe.simulator"):""},e.prototype.setDevice=function(e){this.model.simulator.device=e;var t=n.simulatorDevices[this.model.simulator.device].deviceType;this.orientationSelectorAction.enabled="desktop"!=t,this.deviceSelectorAction.iconName="icon-device-"+t,this.deviceSelectorAction.title=this.getSimulatorDevicesTitle()},e.prototype.setDefaultLanguageOption=function(e){var t=this,i=!0===e||"all"===e||"auto"===e&&this.model.survey.getUsedLocales().length>1;this.languageSelectorAction.visible=i;var o=[];i&&(o=this.getLanguages("all"!==e?this.model.survey.getUsedLocales():null)),this.languagePopupModel.contentComponentData.model.setItems(o),this.languageListModel.selectedItem=o.filter((function(e){return e.id===t.model.activeLanguage}))[0]},e.prototype.getLanguages=function(e){void 0===e&&(e=null);for(var t=[],i=e&&e.length>1?e:o.surveyLocalization.getLocales(),n=0;n<i.length;n++){var a=i[n];t.push({id:a,title:r.editorLocalization.getLocaleName(a)})}return t},e.prototype.updateActions=function(){this.languageSelectorAction.title=r.editorLocalization.getLocaleName(this.model.activeLanguage),this.languageSelectorAction.visible=!0,this.creator.showSimulatorInTestSurveyTab&&(this.setDevice(this.model.simulator.device),this.deviceListModel.selectedItem={id:this.model.simulator.device},this.orientationSelectorAction.title=Object(r.getLocString)("pe.landscapeOrientation")),this.creator.showInvisibleElementsInTestSurveyTab&&(this.invisibleToggleAction.css=this.model.showInvisibleElements?"sv-action-bar-item--active":"",this.invisibleToggleAction.visible=this.model.isRunning),null!=this.creator.showDefaultLanguageInTestSurveyTab&&this.setDefaultLanguageOption(this.creator.showDefaultLanguageInTestSurveyTab)},e.prototype.activate=function(){var e=this;this.model=new a.TestSurveyTabViewModel(this.creator),this.model.onSurveyCreatedCallback=function(t){e.creator.onTestSurveyCreated&&e.creator.onTestSurveyCreated.fire(self,{survey:t})},this.update()},e.prototype.update=function(){var e=this;if(this.model){var t={showPagesInTestSurveyTab:this.creator.showPagesInTestSurveyTab};this.model.prevPageAction=this.prevPageAction,this.model.nextPageAction=this.nextPageAction,this.model.initialize(this.creator.JSON,t),this.updateActions(),this.model.show(),this.model.onPropertyChanged.add((function(t,i){"isRunning"===i.name&&(e.invisibleToggleAction.visible=e.model.isRunning,e.testAgainAction.visible=!e.model.isRunning)}))}},e.prototype.deactivate=function(){return this.model.onSurveyCreatedCallback=void 0,this.model=void 0,this.languageSelectorAction.visible=!1,this.invisibleToggleAction&&(this.invisibleToggleAction.visible=!1),!0},e.prototype.createActions=function(){var e=this,t=[];if(this.testAgainAction=new o.Action({id:"testSurveyAgain",visible:!1,title:Object(r.getLocString)("ed.testSurveyAgain"),action:function(){e.model.testAgain()}}),t.push(this.testAgainAction),this.creator.showSimulatorInTestSurveyTab){var i=Object.keys(n.simulatorDevices).filter((function(e){return!!n.simulatorDevices[e].title})).map((function(e){return{id:e,title:n.simulatorDevices[e].title}}));this.deviceListModel=new o.ListModel(i,(function(t){e.setDevice(t.id),a.toggleVisibility()}),!0);var a=new o.PopupModel("sv-list",{model:this.deviceListModel},"bottom","center");this.deviceSelectorAction=new o.Action({id:"deviceSelector",iconName:"icon-device-desktop",component:"sv-action-bar-item-dropdown",mode:"small",visible:new o.ComputedUpdater((function(){var t=e.creator.showSimulatorInTestSurveyTab;return"test"===e.creator.activeTab&&t})),action:function(){a.toggleVisibility()},popupModel:a}),t.push(this.deviceSelectorAction),a.onHide=function(){e.deviceSelectorAction.enabled=!0},a.onShow=function(){e.deviceSelectorAction.enabled=!1},this.orientationSelectorAction=new o.Action({id:"orientationSelector",iconName:"icon-device-rotate",mode:"small",visible:new o.ComputedUpdater((function(){var t=e.creator.showSimulatorInTestSurveyTab;return"test"===e.creator.activeTab&&t})),action:function(){e.model.simulator.landscape=!e.model.simulator.landscape,e.orientationSelectorAction.title=Object(r.getLocString)(e.model.simulator.landscape?"pe.landscapeOrientation":"pe.portraitOrientation")}}),t.push(this.orientationSelectorAction)}return this.creator.showInvisibleElementsInTestSurveyTab&&(this.invisibleToggleAction=new o.Action({id:"showInvisible",iconName:"icon-invisible-items",mode:"small",needSeparator:new o.ComputedUpdater((function(){return!e.creator.isMobileView})),title:Object(r.getLocString)("ts.showInvisibleElements"),visible:!1,action:function(){e.model.showInvisibleElements=!e.model.showInvisibleElements,e.invisibleToggleAction.css=e.model.showInvisibleElements?"sv-action-bar-item--active":""}}),t.push(this.invisibleToggleAction)),this.languageListModel=new o.ListModel([],(function(t){e.model.activeLanguage=t.id,e.languageSelectorAction.title=r.editorLocalization.getLocaleName(t.id),e.languagePopupModel.toggleVisibility()}),!0),this.languagePopupModel=new o.PopupModel("sv-list",{model:this.languageListModel},"bottom","center"),this.languagePopupModel.onHide=function(){e.languageSelectorAction.enabled=!0},this.languagePopupModel.onShow=function(){e.languageSelectorAction.enabled=!1},this.languageSelectorAction=new o.Action({id:"languageSelector",iconName:"icon-language",visible:!1,component:"sv-action-bar-item-dropdown",action:function(){e.languagePopupModel.toggleVisibility()},popupModel:this.languagePopupModel,mode:new o.ComputedUpdater((function(){return e.creator.isMobileView?"small":"large"}))}),t.push(this.languageSelectorAction),this.designerAction=new o.Action({id:"svd-designer",iconName:"icon-preview",needSeparator:!0,action:function(){e.creator.makeNewViewActive("designer")},active:new o.ComputedUpdater((function(){return"test"===e.creator.activeTab})),visible:new o.ComputedUpdater((function(){return"test"===e.creator.activeTab})),title:this.creator.getLocString("ed.designer"),showTitle:!1}),this.prevPageAction=new o.Action({id:"prevPage",iconName:"icon-arrow-left_16x16",visible:!1}),this.nextPageAction=new o.Action({id:"nextPage",iconName:"icon-arrow-right_16x16",visible:!1}),t},e.prototype.addFooterActions=function(){this.creator.footerToolbar.actions.push(this.testAgainAction),this.invisibleToggleAction&&this.creator.footerToolbar.actions.push(this.invisibleToggleAction),this.languageSelectorAction&&this.creator.footerToolbar.actions.push(this.languageSelectorAction),this.creator.footerToolbar.actions.push(this.prevPageAction),this.creator.footerToolbar.actions.push(this.nextPageAction),this.creator.footerToolbar.actions.push(this.designerAction)},e}()},"./src/components/tabs/test.scss":
253
269
  /*!***************************************!*\
254
270
  !*** ./src/components/tabs/test.scss ***!
255
271
  \***************************************/
@@ -257,11 +273,11 @@ License: MIT
257
273
  /*!*************************************!*\
258
274
  !*** ./src/components/tabs/test.ts ***!
259
275
  \*************************************/
260
- /*! exports provided: TestSurveyTabViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"TestSurveyTabViewModel",(function(){return s}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! ../simulator */"./src/components/simulator.ts"),n=(i(/*! ./test.scss */"./src/components/tabs/test.scss"),i(/*! survey-core */"survey-core")),a=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),s=function(e){function t(t){var i=e.call(this)||this;return i.surveyProvider=t,i.pages=new n.ActionContainer,i.simulator=new r.SurveySimulatorModel,i}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"activeLanguage",{get:function(){return this.getPropertyValue("activeLanguage",this.survey.locale||n.surveyLocalization.defaultLocale)},set:function(e){e!==this.activeLanguage&&(this.setPropertyValue("activeLanguage",e),this.survey.locale=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.simulator.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageActions",{get:function(){return this.pages.actions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPageToolbarVisible",{get:function(){return this.pages.visibleActions.length>0&&!this.surveyProvider.isMobileView},enumerable:!1,configurable:!0}),t.prototype.setJSON=function(e){this.json=e,null!=e&&e.cookieName&&delete e.cookieName,this.simulator.survey=this.surveyProvider.createSurvey(e||{},"test"),this.onSurveyCreatedCallback&&this.onSurveyCreatedCallback(this.survey);var t=this;this.survey.onComplete.add((function(e){t.isRunning=!1})),this.survey.onNavigateToUrl&&this.survey.onNavigateToUrl.add((function(e,t){var i=t.url;if(t.url="",i){var o=Object(a.getLocString)("ed.navigateToMsg")+" '"+i+"'.";this.surveyProvider?this.surveyProvider.notify(o):alert(o)}})),this.survey.onStarted.add((function(e){t.setActivePageItem(t.simulator.survey.currentPage,!0)})),this.survey.onCurrentPageChanged.add((function(e,i){t.activePage=i.newCurrentPage,t.setActivePageItem(i.oldCurrentPage,!1),t.setActivePageItem(i.newCurrentPage,!0)})),this.survey.onPageVisibleChanged.add((function(e,i){t.updatePageItem(i.page)}))},t.prototype.initialize=function(e,t){this.setJSON(e),this.updatePageList(),void 0!==t.showPagesInTestSurveyTab&&(this.showPagesInTestSurveyTab=t.showPagesInTestSurveyTab),this.buildActions()},t.prototype.updatePageItem=function(e){var t=this.getPageItemByPage(e);t&&(t.enabled=e.isVisible)},t.prototype.getCurrentPageItem=function(){return this.pageListItems[this.survey.pages.indexOf(this.survey.currentPage)]},t.prototype.updatePageList=function(){for(var e=[],t=0;t<this.survey.pages.length;t++){var i=this.survey.pages[t];e.push({id:i.name,data:i,title:this.surveyProvider.getObjectDisplayName(i,"survey-tester"),enabled:i.isVisible,visible:!0})}this.pageListItems=e},t.prototype.show=function(){this.showInvisibleElements=!1,this.activePage=this.survey.currentPage,this.survey.locale=this.activeLanguage,this.isRunning=!0},t.prototype.testAgain=function(){this.setJSON(this.json),this.updatePageList(),this.show()},t.prototype.buildActions=function(){var e=this,t=[],i=new n.ListModel(this.pageListItems,(function(t){e.activePage=t.data,e.pagePopupModel.toggleVisibility()}),!0,this.getCurrentPageItem()),o=function(t){var o=e.survey.currentPageNo,r=t?1:-1,n=e.survey.visiblePages[o+r],a=e.survey.pages.indexOf(n);e.activePage=e.survey.pages[a],i.selectedItem=e.pageListItems[a]};this.pagePopupModel=new n.PopupModel("sv-list",{model:i},"top","center"),this.prevPageAction&&(this.prevPageAction.css=this.survey&&!this.survey.isFirstPage?"sv-action-bar-item--secondary":"",this.prevPageAction.visible=new n.ComputedUpdater((function(){var t=e.pageListItems,i="test"===e.surveyProvider.activeTab;return e.isRunning&&i&&t.length>1})),this.prevPageAction.enabled=this.survey&&!this.survey.isFirstPage,this.prevPageAction.action=function(){return o(!1)},t.push(this.prevPageAction)),this.selectPageAction=new n.Action({id:"pageSelector",title:this.getSelectPageTitle(),visible:this.isRunning&&this.pageListItems.length>1&&this.showPagesInTestSurveyTab,component:"sv-action-bar-item-dropdown",popupModel:this.pagePopupModel,action:function(t){e.pagePopupModel.toggleVisibility()}}),t.push(this.selectPageAction),this.nextPageAction&&(this.nextPageAction.css=this.survey&&!this.survey.isLastPage?"sv-action-bar-item--secondary":"",this.nextPageAction.visible=new n.ComputedUpdater((function(){var t=e.pageListItems,i="test"===e.surveyProvider.activeTab;return e.isRunning&&i&&t.length>1})),this.nextPageAction.enabled=this.survey&&!this.survey.isLastPage,this.nextPageAction.action=function(){return o(!0)},t.push(this.nextPageAction)),this.pages.actions=t,this.pages.containerCss="sv-action-bar--pages"},t.prototype.setActivePageItem=function(e,t){var i=this.getPageItemByPage(e);i&&(i.active=t)},t.prototype.getPageItemByPage=function(e){for(var t=this.pageListItems,i=0;i<t.length;i++)if(t[i].data===e)return t[i];return null},t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),this.pages.hasActions&&("activePage"===t&&(this.prevPageAction.css=this.survey&&0!==this.survey.visiblePages.indexOf(this.activePage)?"sv-action-bar-item--secondary":"",this.prevPageAction.enabled=this.survey&&0!==this.survey.visiblePages.indexOf(this.activePage),this.nextPageAction.css=this.survey&&this.survey.visiblePages.indexOf(this.activePage)!==this.survey.visiblePages.length-1?"sv-action-bar-item--secondary":"",this.nextPageAction.enabled=this.survey&&this.survey.visiblePages.indexOf(this.activePage)!==this.survey.visiblePages.length-1,this.selectPageAction.title=this.getSelectPageTitle()),"isRunning"!==t&&"pageListItems"!==t&&"showPagesInTestSurveyTab"!==t||(this.selectPageAction.popupModel.contentComponentData.model.items=this.pageListItems,this.selectPageAction.popupModel.contentComponentData.model.selectedItem=this.getCurrentPageItem(),this.selectPageAction.visible=this.isRunning&&this.pageListItems.length>1&&this.showPagesInTestSurveyTab))},t.prototype.getSelectPageTitle=function(){return this.activePage&&this.surveyProvider.getObjectDisplayName(this.activePage,"survey-tester-selected")||Object(a.getLocString)("ts.selectPage")},Object(o.__decorate)([Object(n.property)({defaultValue:!1,onSet:function(e,t){t.simulator.survey.showInvisibleElements=e}})],t.prototype,"showInvisibleElements",void 0),Object(o.__decorate)([Object(n.property)({defaultValue:!0})],t.prototype,"showPagesInTestSurveyTab",void 0),Object(o.__decorate)([Object(n.property)({defaultValue:!0})],t.prototype,"isRunning",void 0),Object(o.__decorate)([Object(n.propertyArray)()],t.prototype,"pageListItems",void 0),Object(o.__decorate)([Object(n.property)({onSet:function(e,t){e&&("starting"==t.simulator.survey.state&&t.simulator.survey.start(),t.simulator.survey.currentPage=e)}})],t.prototype,"activePage",void 0),t}(n.Base)},"./src/components/tabs/translation-plugin.ts":
276
+ /*! exports provided: TestSurveyTabViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"TestSurveyTabViewModel",(function(){return s}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! ../simulator */"./src/components/simulator.ts"),n=(i(/*! ./test.scss */"./src/components/tabs/test.scss"),i(/*! survey-core */"survey-core")),a=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),s=function(e){function t(t){var i=e.call(this)||this;return i.surveyProvider=t,i.pages=new n.ActionContainer,i.simulator=new r.SurveySimulatorModel,i}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"activeLanguage",{get:function(){return this.getPropertyValue("activeLanguage",this.survey.locale||n.surveyLocalization.defaultLocale)},set:function(e){e!==this.activeLanguage&&(this.setPropertyValue("activeLanguage",e),this.survey.locale=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.simulator.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageActions",{get:function(){return this.pages.actions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPageToolbarVisible",{get:function(){return this.pages.visibleActions.length>0&&!this.surveyProvider.isMobileView},enumerable:!1,configurable:!0}),t.prototype.setJSON=function(e){this.json=e,null!=e&&e.cookieName&&delete e.cookieName,this.simulator.survey=this.surveyProvider.createSurvey(e||{},"test"),this.simulator.survey.css=n.defaultV2Css,this.onSurveyCreatedCallback&&this.onSurveyCreatedCallback(this.survey);var t=this;this.survey.onComplete.add((function(e){t.isRunning=!1})),this.survey.onNavigateToUrl&&this.survey.onNavigateToUrl.add((function(e,t){var i=t.url;if(t.url="",i){var o=Object(a.getLocString)("ed.navigateToMsg")+" '"+i+"'.";this.surveyProvider?this.surveyProvider.notify(o):alert(o)}})),this.survey.onStarted.add((function(e){t.setActivePageItem(t.simulator.survey.currentPage,!0)})),this.survey.onCurrentPageChanged.add((function(e,i){t.activePage=i.newCurrentPage,t.setActivePageItem(i.oldCurrentPage,!1),t.setActivePageItem(i.newCurrentPage,!0)})),this.survey.onPageVisibleChanged.add((function(e,i){t.updatePageItem(i.page)}))},t.prototype.initialize=function(e,t){this.setJSON(e),this.updatePageList(),void 0!==t.showPagesInTestSurveyTab&&(this.showPagesInTestSurveyTab=t.showPagesInTestSurveyTab),this.buildActions()},t.prototype.updatePageItem=function(e){var t=this.getPageItemByPage(e);t&&(t.enabled=e.isVisible)},t.prototype.getCurrentPageItem=function(){return this.pageListItems[this.survey.pages.indexOf(this.survey.currentPage)]},t.prototype.updatePageList=function(){for(var e=[],t=0;t<this.survey.pages.length;t++){var i=this.survey.pages[t];e.push({id:i.name,data:i,title:this.surveyProvider.getObjectDisplayName(i,"survey-tester",i.title),enabled:i.isVisible,visible:!0})}this.pageListItems=e},t.prototype.show=function(){this.showInvisibleElements=!1,this.activePage=this.survey.currentPage,this.survey.locale=this.activeLanguage,this.isRunning=!0},t.prototype.testAgain=function(){this.setJSON(this.json),this.updatePageList(),this.show()},t.prototype.buildActions=function(){var e=this,t=[],i=new n.ListModel(this.pageListItems,(function(t){e.activePage=t.data,e.pagePopupModel.toggleVisibility()}),!0,this.getCurrentPageItem()),o=function(t){var o=e.survey.currentPageNo,r=t?1:-1,n=e.survey.visiblePages[o+r],a=e.survey.pages.indexOf(n);e.activePage=e.survey.pages[a],i.selectedItem=e.pageListItems[a]};this.pagePopupModel=new n.PopupModel("sv-list",{model:i},"top","center"),this.prevPageAction&&(this.prevPageAction.css=this.survey&&!this.survey.isFirstPage?"sv-action-bar-item--secondary":"",this.prevPageAction.visible=new n.ComputedUpdater((function(){var t=e.pageListItems,i="test"===e.surveyProvider.activeTab;return e.isRunning&&i&&t.length>1})),this.prevPageAction.enabled=this.survey&&!this.survey.isFirstPage,this.prevPageAction.action=function(){return o(!1)},t.push(this.prevPageAction)),this.selectPageAction=new n.Action({id:"pageSelector",css:"svc-page-selector",title:this.getSelectPageTitle(),visible:this.isRunning&&this.pageListItems.length>1&&this.showPagesInTestSurveyTab,component:"sv-action-bar-item-dropdown",popupModel:this.pagePopupModel,action:function(t){e.pagePopupModel.toggleVisibility()}}),t.push(this.selectPageAction),this.nextPageAction&&(this.nextPageAction.css=this.survey&&!this.survey.isLastPage?"sv-action-bar-item--secondary":"",this.nextPageAction.visible=new n.ComputedUpdater((function(){var t=e.pageListItems,i="test"===e.surveyProvider.activeTab;return e.isRunning&&i&&t.length>1})),this.nextPageAction.enabled=this.survey&&!this.survey.isLastPage,this.nextPageAction.action=function(){return o(!0)},t.push(this.nextPageAction)),this.pages.actions=t,this.pages.containerCss="sv-action-bar--pages"},t.prototype.setActivePageItem=function(e,t){var i=this.getPageItemByPage(e);i&&(i.active=t)},t.prototype.getPageItemByPage=function(e){for(var t=this.pageListItems,i=0;i<t.length;i++)if(t[i].data===e)return t[i];return null},t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),this.pages.hasActions&&("activePage"===t&&(this.prevPageAction.css=this.survey&&0!==this.survey.visiblePages.indexOf(this.activePage)?"sv-action-bar-item--secondary":"",this.prevPageAction.enabled=this.survey&&0!==this.survey.visiblePages.indexOf(this.activePage),this.nextPageAction.css=this.survey&&this.survey.visiblePages.indexOf(this.activePage)!==this.survey.visiblePages.length-1?"sv-action-bar-item--secondary":"",this.nextPageAction.enabled=this.survey&&this.survey.visiblePages.indexOf(this.activePage)!==this.survey.visiblePages.length-1,this.selectPageAction.title=this.getSelectPageTitle()),"isRunning"!==t&&"pageListItems"!==t&&"showPagesInTestSurveyTab"!==t||(this.selectPageAction.popupModel.contentComponentData.model.items=this.pageListItems,this.selectPageAction.popupModel.contentComponentData.model.selectedItem=this.getCurrentPageItem(),this.selectPageAction.visible=this.isRunning&&this.pageListItems.length>1&&this.showPagesInTestSurveyTab))},t.prototype.getSelectPageTitle=function(){return this.activePage&&this.surveyProvider.getObjectDisplayName(this.activePage,"survey-tester-selected",this.activePage.title)||Object(a.getLocString)("ts.selectPage")},Object(o.__decorate)([Object(n.property)({defaultValue:!1,onSet:function(e,t){t.simulator.survey.showInvisibleElements=e}})],t.prototype,"showInvisibleElements",void 0),Object(o.__decorate)([Object(n.property)({defaultValue:!0})],t.prototype,"showPagesInTestSurveyTab",void 0),Object(o.__decorate)([Object(n.property)({defaultValue:!0})],t.prototype,"isRunning",void 0),Object(o.__decorate)([Object(n.propertyArray)()],t.prototype,"pageListItems",void 0),Object(o.__decorate)([Object(n.property)({onSet:function(e,t){e&&("starting"==t.simulator.survey.state&&t.simulator.survey.start(),t.simulator.survey.currentPage=e)}})],t.prototype,"activePage",void 0),t}(n.Base)},"./src/components/tabs/translation-plugin.ts":
261
277
  /*!***************************************************!*\
262
278
  !*** ./src/components/tabs/translation-plugin.ts ***!
263
279
  \***************************************************/
264
- /*! exports provided: PropertyGridViewTranslationModel, TabTranslationPlugin */function(e,t,i){"use strict";i.r(t),i.d(t,"PropertyGridViewTranslationModel",(function(){return u})),i.d(t,"TabTranslationPlugin",(function(){return c}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ../../property-grid/property-grid-view-model */"./src/property-grid/property-grid-view-model.ts"),s=i(/*! ../../settings */"./src/settings.ts"),l=i(/*! ./translation */"./src/components/tabs/translation.ts"),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"propertyGridType",{get:function(){return"translation"},enumerable:!1,configurable:!0}),t}(a.PropertyGridViewModelBase),c=function(){function e(e){this.creator=e,e.addPluginTab("translation",this),this.propertyGrid=new u,this.propertyGrid.headerText=n.editorLocalization.getString("ed.translationPropertyGridTitle"),this.createActions().forEach((function(t){return e.toolbar.actions.push(t)}))}return e.prototype.activate=function(){var e=this;this.model=new l.Translation(this.creator.survey,this.creator),this.propertyGrid.survey=this.model.settingsSurvey,this.mergeLocaleWithDefaultAction.title=this.model.mergeLocaleWithDefaultText,this.mergeLocaleWithDefaultAction.tooltip=this.model.mergeLocaleWithDefaultText,this.mergeLocaleWithDefaultAction.visible=this.model.canMergeLocaleWithDefault,this.showAllStringsAction.css=this.model.showAllStrings?"sv-action-bar-item--secondary":"",this.showAllStringsAction.iconName=this.model.showAllStrings?"icon-switchactive_16x16":"icon-switchinactive_16x16",this.showAllStringsAction.visible=!0,this.filterPageAction.title=this.getFilterPageActionTitle(),this.filterPageAction.visible=!0,this.importCsvAction.visible=!0,this.exportCsvAction.visible=!0,this.expandAction&&(this.expandAction.visible=!this.propertyGrid.visible),this.pagePopupModel.contentComponentData.model.items=[{id:null,title:this.showAllPagesText}].concat(this.creator.survey.pages.map((function(t){return{id:t.name,title:e.creator.getObjectDisplayName(t,"survey-translation",t.title)}}))),this.model.onPropertyChanged.add((function(t,i){"filteredPage"===i.name&&(e.filterPageAction.title=e.getFilterPageActionTitle()),"canMergeLocaleWithDefault"===i.name&&(e.mergeLocaleWithDefaultAction.visible=e.model.canMergeLocaleWithDefault),"mergeLocaleWithDefaultText"===i.name&&(e.mergeLocaleWithDefaultAction.title=e.model.mergeLocaleWithDefaultText,e.mergeLocaleWithDefaultAction.tooltip=e.model.mergeLocaleWithDefaultText)}))},e.prototype.update=function(){this.model&&(this.model.survey=this.creator.survey)},e.prototype.deactivate=function(){return this.model=void 0,this.showAllStringsAction.visible=!1,this.filterPageAction.visible=!1,this.mergeLocaleWithDefaultAction.visible=!1,this.importCsvAction.visible=!1,this.exportCsvAction.visible=!1,this.expandAction&&(this.expandAction.visible=!1),!0},Object.defineProperty(e.prototype,"selectLanguageOptionsCaption",{get:function(){return n.editorLocalization.getString("ed.translationAddLanguage")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showAllStringsText",{get:function(){return n.editorLocalization.getString("ed.translationShowAllStrings")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showAllPagesText",{get:function(){return n.editorLocalization.getString("ed.translationShowAllPages")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exportToCSVText",{get:function(){return n.editorLocalization.getString("ed.translationExportToSCVButton")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"importFromCSVText",{get:function(){return n.editorLocalization.getString("ed.translationImportFromSCVButton")},enumerable:!1,configurable:!0}),e.prototype.createActions=function(){var e=this,t=[],i=n.editorLocalization.getString("ed.translationMergeLocaleWithDefault").format("");return this.pagePopupModel=new r.PopupModel("sv-list",{model:new r.ListModel([{id:null,title:this.showAllPagesText}],(function(t){e.model.filteredPage=t.id?e.creator.survey.getPageByName(t.id):null,e.pagePopupModel.toggleVisibility()}),!0)},"bottom","center"),this.filterPageAction=new r.Action({id:"svc-translation-filter-page",title:this.getFilterPageActionTitle(),visible:!1,component:"sv-action-bar-item-dropdown",mode:"small",popupModel:this.pagePopupModel,action:function(t){e.pagePopupModel.toggleVisibility()}}),t.push(this.filterPageAction),this.showAllStringsAction=new r.Action({id:"svc-translation-show-all-strings",title:this.showAllStringsText,visible:!1,mode:"small",action:function(){e.model.showAllStrings=!e.model.showAllStrings,e.showAllStringsAction.css=e.model.showAllStrings?"sv-action-bar-item--secondary":"",e.showAllStringsAction.iconName=e.model.showAllStrings?"icon-switchactive_16x16":"icon-switchinactive_16x16"}}),t.push(this.showAllStringsAction),this.mergeLocaleWithDefaultAction=new r.Action({id:"svd-translation-merge_locale_withdefault",visible:!1,title:i,tooltip:i,component:"sv-action-bar-item",mode:"small",action:function(){e.model.mergeLocaleWithDefault()}}),t.push(this.mergeLocaleWithDefaultAction),this.importCsvAction=new r.Action({id:"svc-translation-import",iconName:"icon-import_20x20",tooltip:this.importFromCSVText,title:this.importFromCSVText,visible:!1,mode:"small",component:"sv-action-bar-item",action:function(){document&&(e.inputFileElement||(e.inputFileElement=document.createElement("input"),e.inputFileElement.type="file",e.inputFileElement.style.display="none",e.inputFileElement.onchange=function(){e.model.importFromCSVFileUI(e.inputFileElement)}),e.inputFileElement.click())}}),t.push(this.importCsvAction),this.exportCsvAction=new r.Action({id:"svc-translation-export",iconName:"icon-export_20x20",tooltip:this.exportToCSVText,title:this.exportToCSVText,visible:!1,mode:"small",component:"sv-action-bar-item",action:function(){e.model.exportToSCVFile("survey_translation.csv")}}),t.push(this.exportCsvAction),s.settings.propertyGrid.allowCollapse&&(this.expandAction=this.propertyGrid.createExpandAction(),this.expandAction.visible=new r.ComputedUpdater((function(){var t=e.propertyGrid.visible;return"translation"===e.creator.activeTab&&!t})),t.push(this.expandAction)),t},e.prototype.getFilterPageActionTitle=function(){return this.model&&this.model.filteredPage&&this.creator.getObjectDisplayName(this.model.filteredPage,"survey-translation",this.model.filteredPage.title)||this.showAllPagesText},e}()},"./src/components/tabs/translation-theme.ts":
280
+ /*! exports provided: TabTranslationPlugin */function(e,t,i){"use strict";i.r(t),i.d(t,"TabTranslationPlugin",(function(){return a}));var o=i(/*! survey-core */"survey-core"),r=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),n=i(/*! ./translation */"./src/components/tabs/translation.ts"),a=function(){function e(e){this.creator=e,e.addPluginTab("translation",this),this.sideBarTab=this.creator.sideBar.addTab("translation"),this.sideBarTab.caption=r.editorLocalization.getString("ed.translationPropertyGridTitle"),this.createActions().forEach((function(t){return e.toolbar.actions.push(t)}))}return e.prototype.activate=function(){var e=this;this.model=new n.Translation(this.creator.survey,this.creator),this.model.translationStringVisibilityCallback=function(t,i,o){var r={obj:t,propertyName:i,visible:o};return!e.creator.onTranslationStringVisibility.isEmpty&&e.creator.onTranslationStringVisibility.fire(self,r),r.visible},this.sideBarTab.model=this.model.settingsSurvey,this.sideBarTab.componentName="survey-widget",this.creator.sideBar.activeTab=this.sideBarTab.id,this.mergeLocaleWithDefaultAction.title=this.model.mergeLocaleWithDefaultText,this.mergeLocaleWithDefaultAction.tooltip=this.model.mergeLocaleWithDefaultText,this.mergeLocaleWithDefaultAction.visible=this.model.canMergeLocaleWithDefault,this.showAllStringsAction.css=this.model.showAllStrings?"sv-action-bar-item--secondary":"",this.showAllStringsAction.iconName=this.model.showAllStrings?"icon-switch-active_16x16":"icon-switch-inactive_16x16",this.showAllStringsAction.visible=!0,this.filterPageAction.title=this.getFilterPageActionTitle(),this.filterPageAction.visible=!0,this.importCsvAction.visible=!0,this.exportCsvAction.visible=!0,this.pagePopupModel.contentComponentData.model.items=[{id:null,title:this.showAllPagesText}].concat(this.creator.survey.pages.map((function(t){return{id:t.name,title:e.creator.getObjectDisplayName(t,"survey-translation",t.title)}}))),this.model.onPropertyChanged.add((function(t,i){"filteredPage"===i.name&&(e.filterPageAction.title=e.getFilterPageActionTitle()),"canMergeLocaleWithDefault"===i.name&&(e.mergeLocaleWithDefaultAction.visible=e.model.canMergeLocaleWithDefault),"mergeLocaleWithDefaultText"===i.name&&(e.mergeLocaleWithDefaultAction.title=e.model.mergeLocaleWithDefaultText,e.mergeLocaleWithDefaultAction.tooltip=e.model.mergeLocaleWithDefaultText)})),this.model.reset()},e.prototype.update=function(){this.model&&(this.model.survey=this.creator.survey)},e.prototype.deactivate=function(){return this.model=void 0,this.sideBarTab.visible=!1,this.showAllStringsAction.visible=!1,this.filterPageAction.visible=!1,this.mergeLocaleWithDefaultAction.visible=!1,this.importCsvAction.visible=!1,this.exportCsvAction.visible=!1,!0},Object.defineProperty(e.prototype,"selectLanguageOptionsCaption",{get:function(){return r.editorLocalization.getString("ed.translationAddLanguage")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showAllStringsText",{get:function(){return r.editorLocalization.getString("ed.translationShowAllStrings")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showAllPagesText",{get:function(){return r.editorLocalization.getString("ed.translationShowAllPages")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"exportToCSVText",{get:function(){return r.editorLocalization.getString("ed.translationExportToSCVButton")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"importFromCSVText",{get:function(){return r.editorLocalization.getString("ed.translationImportFromSCVButton")},enumerable:!1,configurable:!0}),e.prototype.createActions=function(){var e=this,t=[],i=r.editorLocalization.getString("ed.translationMergeLocaleWithDefault").format("");return this.pagePopupModel=new o.PopupModel("sv-list",{model:new o.ListModel([{id:null,title:this.showAllPagesText}],(function(t){e.model.filteredPage=t.id?e.creator.survey.getPageByName(t.id):null,e.pagePopupModel.toggleVisibility()}),!0)},"bottom","center"),this.filterPageAction=new o.Action({id:"svc-translation-filter-page",title:this.getFilterPageActionTitle(),visible:!1,component:"sv-action-bar-item-dropdown",mode:"small",popupModel:this.pagePopupModel,action:function(t){e.pagePopupModel.toggleVisibility()}}),t.push(this.filterPageAction),this.showAllStringsAction=new o.Action({id:"svc-translation-show-all-strings",title:this.showAllStringsText,visible:!1,mode:"small",action:function(){e.model.showAllStrings=!e.model.showAllStrings,e.showAllStringsAction.css=e.model.showAllStrings?"sv-action-bar-item--secondary":"",e.showAllStringsAction.iconName=e.model.showAllStrings?"icon-switch-active_16x16":"icon-switch-inactive_16x16"}}),t.push(this.showAllStringsAction),this.mergeLocaleWithDefaultAction=new o.Action({id:"svd-translation-merge_locale_withdefault",visible:!1,title:i,tooltip:i,component:"sv-action-bar-item",mode:"small",action:function(){e.model.mergeLocaleWithDefault()}}),t.push(this.mergeLocaleWithDefaultAction),this.importCsvAction=new o.Action({id:"svc-translation-import",iconName:"icon-import",tooltip:this.importFromCSVText,title:this.importFromCSVText,visible:!1,mode:"small",component:"sv-action-bar-item",action:function(){document&&(e.inputFileElement||(e.inputFileElement=document.createElement("input"),e.inputFileElement.type="file",e.inputFileElement.style.display="none",e.inputFileElement.onchange=function(){e.model.importFromCSVFileUI(e.inputFileElement)}),e.inputFileElement.click())}}),t.push(this.importCsvAction),this.exportCsvAction=new o.Action({id:"svc-translation-export",iconName:"icon-export",tooltip:this.exportToCSVText,title:this.exportToCSVText,visible:!1,mode:"small",component:"sv-action-bar-item",action:function(){e.model.exportToSCVFile("survey_translation.csv")}}),t.push(this.exportCsvAction),t},e.prototype.getFilterPageActionTitle=function(){return this.model&&this.model.filteredPage&&this.creator.getObjectDisplayName(this.model.filteredPage,"survey-translation",this.model.filteredPage.title)||this.showAllPagesText},e}()},"./src/components/tabs/translation-theme.ts":
265
281
  /*!**************************************************!*\
266
282
  !*** ./src/components/tabs/translation-theme.ts ***!
267
283
  \**************************************************/
@@ -273,7 +289,7 @@ License: MIT
273
289
  /*!********************************************!*\
274
290
  !*** ./src/components/tabs/translation.ts ***!
275
291
  \********************************************/
276
- /*! exports provided: TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation */function(e,t,i){"use strict";i.r(t),i.d(t,"TranslationItemBase",(function(){return p})),i.d(t,"TranslationItemString",(function(){return m})),i.d(t,"TranslationItem",(function(){return g})),i.d(t,"TranslationGroup",(function(){return h})),i.d(t,"Translation",(function(){return v}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! papaparse */"./node_modules/papaparse/papaparse.min.js"),a=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),s=i(/*! ../../settings */"./src/settings.ts"),l=i(/*! ../../property-grid/index */"./src/property-grid/index.ts"),u=(i(/*! ./translation.scss */"./src/components/tabs/translation.scss"),i(/*! ../../survey-helper */"./src/survey-helper.ts")),c=i(/*! ../../property-grid-theme/property-grid */"./src/property-grid-theme/property-grid.ts"),d=i(/*! ./translation-theme */"./src/components/tabs/translation-theme.ts"),p=function(e){function t(t,i){var o=e.call(this)||this;return o.name=t,o.translation=i,o}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"isGroup",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.fillLocales=function(e){},t.prototype.mergeLocaleWithDefault=function(e){},t.prototype.makeObservable=function(){this.fireOnObjCreating()},t.prototype.fireOnObjCreating=function(e){void 0===e&&(e=null),this.translation&&(e||(e=this),this.translation.fireOnObjCreating(e))},t}(r.Base),m=function(e){function t(t,i){var o=e.call(this)||this;return o.locString=t,o.locale=i,o.text=o.locString.getLocaleText(o.locale),o}return Object(o.__extends)(t,e),t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),"text"===t&&this.locString.setLocaleText(this.locale,o)},t.prototype.getType=function(){return"translationitemstring"},Object(o.__decorate)([Object(r.property)()],t.prototype,"text",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"placeholder",void 0),t}(r.Base),g=function(e){function t(t,i,o,r,n,a){void 0===o&&(o=""),void 0===a&&(a=null);var s=e.call(this,t,r)||this;s.name=t,s.locString=i,s.defaultValue=o,s.context=n,s.property=a,s.translation&&(s.readOnly=s.translation.readOnly),s.hashValues={};var l=s;return s.afterRender=function(e,t){l.translation&&l.translation.translateItemAfterRender(l,e,t.locale)},s.fireOnObjCreating(),s}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.property?this.property.maxLength:-1},enumerable:!1,configurable:!0}),t.prototype.makeObservable=function(){for(var t in e.prototype.makeObservable.call(this),this.hashValues)this.fireOnObjCreating(this.hashValues[t])},t.prototype.getType=function(){return"translationitem"},Object.defineProperty(t.prototype,"text",{get:function(){return this.customText?this.customText:this.localizableName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localizableName",{get:function(){return a.editorLocalization.getPropertyName(this.name)},enumerable:!1,configurable:!0}),t.prototype.getLocText=function(e){return this.locString.getLocaleText(e)},t.prototype.setLocText=function(e,t){this.locString.setLocaleText(e,t),this.translation.tranlationChangedCallback&&this.translation.tranlationChangedCallback(e,this.name,t,this.context)},t.prototype.values=function(e){if(!this.hashValues[e]){var t=new m(this.locString,e);e||(t.placeholder=this.defaultValue),this.hashValues[e]=t,this.fireOnObjCreating(t)}return this.hashValues[e]},t.prototype.fillLocales=function(e){for(var t=this.getKeys(),i=0;i<t.length;i++){var o=t[i];o&&e.indexOf(o)<0&&o!==r.LocalizableString.defaultLocale&&e.push(o)}},t.prototype.toJSON=function(){var e=this.locString.getJson();return(e=this.correctJSON(e))&&"string"!=typeof e?e:{default:e}},t.prototype.correctJSON=function(e){if(!e||"string"==typeof e)return e;if(Array.isArray(e))return e.join("\n");for(var t in e)Array.isArray(e[t])&&(e[t]=e[t].join("\n"));return e},t.prototype.getKeys=function(){return this.locString.getLocales()},t.prototype.mergeLocaleWithDefault=function(e){var t=this.locString.getLocaleText(e);t&&(this.locString.setLocaleText("",t),this.locString.setLocaleText(e,null))},Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"readOnly",void 0),t}(p),h=function(e){function t(t,i,o,r){void 0===o&&(o=null),void 0===r&&(r="");var n=e.call(this,t,o)||this;return n.name=t,n.obj=i,n.text=r,n.isRootValue=!1,n.removeLocale=function(e){n.translation&&n.translation.removeLocale(e)},n.text||(n.text=t),n.reset(),n.fireOnObjCreating(),n}return Object(o.__extends)(t,e),t.prototype.getType=function(){return"translationgroup"},Object.defineProperty(t.prototype,"items",{get:function(){return this.itemValues},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locItems",{get:function(){return this.itemValues.filter((function(e){return e instanceof g}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return this.isRootValue},enumerable:!1,configurable:!0}),t.prototype.setAsRoot=function(){this.isRootValue=!0},t.prototype.getItemByName=function(e){for(var t=0;t<this.itemValues.length;t++)if(this.itemValues[t].name==e)return this.itemValues[t];return null},Object.defineProperty(t.prototype,"groups",{get:function(){return this.itemValues.filter((function(e){return e instanceof t}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isGroup",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locales",{get:function(){return this.translation?this.translation.locales:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"removeLocaleText",{get:function(){return a.editorLocalization.getString("pe.remove")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeCount",{get:function(){return Array.isArray(this.locales)?this.locales.length:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locWidth",{get:function(){var e=this.localeCount;return e<2?"100%":Math.floor(100/e).toString()+"%"},enumerable:!1,configurable:!0}),t.prototype.getLocaleName=function(e){return this.translation?this.translation.getLocaleName(e):a.editorLocalization.getLocaleName(e)},t.prototype.reset=function(){this.itemValues=[],this.fillItems()},t.prototype.fillLocales=function(e){for(var t=0;t<this.items.length;t++)this.items[t].fillLocales(e)},t.prototype.makeObservable=function(){e.prototype.makeObservable.call(this);for(var t=0;t<this.items.length;t++)this.items[t].makeObservable()},Object.defineProperty(t.prototype,"showAllStrings",{get:function(){return!this.translation||this.translation.showAllStrings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasItems",{get:function(){if(this.locItems.length>0)return!0;for(var e=this.groups,t=0;t<e.length;t++)if(e[t].hasItems)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.mergeLocaleWithDefault=function(e){this.itemValues.forEach((function(t){return t.mergeLocaleWithDefault(e)}))},t.prototype.fillItems=function(){if(this.isItemValueArray(this.obj))this.createItemValuesLocale();else if(this.obj&&this.obj.getType){for(var e=this.getLocalizedProperties(this.obj),i=0;i<e.length;i++){var o=e[i],r=this.createTranslationItem(this.obj,e[i]);r&&this.itemValues.push(r)}for(e=this.getArrayProperties(this.obj),i=0;i<e.length;i++){o=e[i];var n=this.obj[o.name];if(this.isItemValueArray(n)){var s=new t(o.name,n,this.translation,a.editorLocalization.getPropertyName(o.name));s.hasItems&&this.itemValues.push(s)}else this.createGroups(n,o)}this.sortItems()}},t.prototype.sortItems=function(){s.settings.traslation.sortByName&&this.itemValues.sort((function(e,t){return e.name?t.name?e.name.localeCompare(t.name):1:-1}))},t.prototype.getLocalizedProperties=function(e){for(var t=[],i=r.Serializer.getPropertiesByObj(e),o=0;o<i.length;o++){var n=i[o];n.isSerializable&&n.isLocalizable&&!n.readOnly&&n.visible&&t.push(n)}return t},t.prototype.getArrayProperties=function(e){for(var t=[],i=r.Serializer.getPropertiesByObj(e),o=0;o<i.length;o++){var n=i[o];if(!1!==n.isSerializable){var a=e[n.name];a&&Array.isArray(a)&&a.length>0&&t.push(n)}}return t},t.prototype.createTranslationItem=function(e,t){var i=this.getDefaultValue(e,t),o=e[t.serializationProperty];return o&&(this.showAllStrings||i||!o.isEmpty)?o.isEmpty&&this.translation&&!this.translation.canShowProperty(e,t)?null:new g(t.name,o,i,this.translation,e,t):null},t.prototype.getDefaultValue=function(e,t){if("title"==t.name&&t.isLocalizable&&t.serializationProperty){var i=e[t.serializationProperty];if(i&&"page"!=e.getType()&&(i.onGetTextCallback||i.onRenderedHtmlCallback))return e.name}return""},t.prototype.isItemValueArray=function(e){return!!e&&Array.isArray(e)&&e.length>0&&!!e[0]&&!!e[0].getType&&!!e[0].setData&&!!e[0].setLocText},t.prototype.createGroups=function(e,i){for(var o=0;o<e.length;o++){var r=e[o];if(r&&r.getType){var n=r.name,s=a.editorLocalization.getPropertyName(n);if(!n){var l="["+o.toString()+"]";n=i.name+l,s=a.editorLocalization.getPropertyName(i.name)+l}var u=new t(n,r,this.translation,s);u.hasItems&&this.itemValues.push(u)}}},t.prototype.createItemValuesLocale=function(){for(var e=0;e<this.obj.length;e++){var t=this.obj[e];if(this.showAllStrings||!t.locText.isEmpty||isNaN(t.value)){var i=new g(t.value,t.locText,t.value,this.translation,t);this.itemValues.push(i),this.addCustomPropertiesForItemValue(this.obj[e],i)}}},t.prototype.addCustomPropertiesForItemValue=function(e,t){for(var i=this.getLocalizedProperties(e),o=0;o<i.length;o++)if("text"!=i[o].name){var r=this.createTranslationItem(e,i[o]);r&&(r.customText=t.text+" ("+r.localizableName+")",r.name=e.value+"."+r.name,this.itemValues.push(r))}},Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"showHeader",void 0),t}(p),v=function(e){function t(t,i,o){void 0===i&&(i=null),void 0===o&&(o=!0);var r=e.call(this)||this;r.options=i,r.hasUI=o,r.placeHolderText=a.editorLocalization.getString("ed.translationPlaceHolder"),r.chooseLanguageActions=[],r.options||(r.options=new s.EmptySurveyCreatorOptions);var n=r;return r.exportToCSVFileUI=function(){n.exportToSCVFile("survey_translation.csv")},r.importFromCSVFileUI=function(e){e.files.length<1||(n.importFromCSVFile(e.files[0]),e.value="")},r.settingsSurveyValue=r.createSettingsSurvey(),r.survey=t,r.setupToolbarItems(),r}return Object(o.__extends)(t,e),t.prototype.getType=function(){return"translation"},t.prototype.makeObservable=function(e){this.onBaseObjCreatingCallback=e,this.fireOnObjCreating(this),this.root.makeObservable()},t.prototype.fireOnObjCreating=function(e){this.onBaseObjCreatingCallback&&this.onBaseObjCreatingCallback(e)},Object.defineProperty(t.prototype,"settingsSurvey",{get:function(){return this.settingsSurveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localesQuestion",{get:function(){return this.settingsSurvey.getQuestionByName("locales")},enumerable:!1,configurable:!0}),t.prototype.createSettingsSurvey=function(){var e=this,t=this.getSettingsSurveyJSON();Object(l.setSurveyJSONForPropertyGrid)(t);var i=this.options.createSurvey(t,"translation_settings");return i.css=c.propertyGridCss,i.onValueChanged.add((function(t,i){"locales"==i.name&&e.updateLocales()})),i.onGetPanelTitleActions.add((function(t,i){if("languages"==i.panel.name){var o=new r.Action({id:"svc-translation-choose-language",iconName:"icon-add(small)",component:"sv-action-bar-item-dropdown",popupModel:e.chooseLanguagePopupModel,action:function(t){e.chooseLanguagePopupModel.toggleVisibility()}});i.titleActions=[o]}})),i},t.prototype.updateLocales=function(){if(this.localesQuestion){var e=[""],t=this.localesQuestion.value;Array.isArray(t)||(t=[]);for(var i=0;i<t.length;i++)e.push(t[i]);this.locales=e,this.canMergeLocaleWithDefault=this.hasLocale(this.defaultLocale)}},t.prototype.getSettingsSurveyJSON=function(){var e=this.getLocaleName("");return{elements:[{type:"panel",name:"languages",elements:[{type:"checkbox",name:"defaultLanguage",titleLocation:"hidden",readOnly:!0,choices:[e],defaultValue:[e]},{type:"checkbox",name:"locales",choicesVisibleIf:"{selLocales} contains {item}",titleLocation:"hidden"}],title:a.editorLocalization.getString("ed.translationLanguages")}]}},t.prototype.getSurveyLocales=function(){for(var e=new Array,t=r.surveyLocalization.supportedLocales,i=Array.isArray(t)&&t.length>0?t:r.surveyLocalization.getLocales(),o={},n=0;n<i.length;n++)this.addLocaleIntoChoices(i[n],e,o);for((i=this.settingsSurvey.getValue("selLocales"))||(i=[]),n=0;n<i.length;n++)this.addLocaleIntoChoices(i[n],e,o);return[e,i]},t.prototype.updateSettingsSurveyLocales=function(){var e=this.getSurveyLocales(),t=e[0],i=e[1];this.localesQuestion.choices=t,this.localesQuestion.value=i},t.prototype.resetStringsSurvey=function(){this.hasUI&&(this.stringsSurvey=this.createStringsSurvey(),this.stringsHeaderSurvey=this.createStringsHeaderSurvey())},t.prototype.createStringsSurvey=function(){var e=this,t={autoGrowComment:!0};Object(l.setSurveyJSONForPropertyGrid)(t,!1);var i=this.options.createSurvey(t,"translation_strings");i.lazyRendering=!0,i.skeletonComponentName="sd-translation-line-skeleton",i.startLoadingFromJson(),i.css=d.translationCss,i.addNewPage("page"),this.addTranslationGroupIntoStringsSurvey(i.pages[0],this.root,null),i.data=this.getStringsSurveyData(i),i.endLoadingFromJson();var o=function(e,t){var i=r.ItemValue.getItemByValue(e.rows,t);return i?i.translationData:null};return i.onMatrixCellCreated.add((function(t,i){if(i.cell.question instanceof r.QuestionCommentModel){var n=i.cell.question;n.placeHolder=e.placeHolderText;var a=o(i.question,i.row.name),s=!!a&&a.locString.getIsMultiple();n.acceptCarriageReturn=s,a&&(n.maxLength=a.maxLength),s||(n.rows=1)}})),i.onMatrixCellValueChanged.add((function(e,t){var i=o(t.question,t.row.name);i&&i.setLocText(t.columnName,t.value)})),i.currentPage=i.pages[0],i},t.prototype.createStringsHeaderSurvey=function(){var e={};Object(l.setSurveyJSONForPropertyGrid)(e,!1);var t=this.options.createSurvey(e,"translation_strings_header");t.css=d.translationCss;var i=t.addNewPage("page"),o=r.Serializer.createClass("matrixdropdown");return o.name="stringsHeader",o.titleLocation="hidden",this.addLocaleColumns(o),i.addQuestion(o),t.currentPage=t.pages[0],t},t.prototype.addTranslationGroupIntoStringsSurvey=function(e,t,i){for(var o=0;o<t.items.length;o++)if(!t.items[o].isGroup){var n=t.items[o];if(0==e.questions.length){var a=r.Serializer.createClass("matrixdropdown");a.cellType="comment",a.titleLocation="hidden",a.name=this.getStringsSurveyQuestionName(t,i),a.showHeader=!1,e.addQuestion(a),this.addLocaleColumns(a)}var s=e.questions[0],l=new r.ItemValue(n.name,n.text);l.translationData=n,s.rows.push(l)}for(o=0;o<t.items.length;o++)if(t.items[o].isGroup){n=t.items[o];var u=r.Serializer.createClass("panel");u.name=n.name,e.addElement(u),u.title=n.text,this.addTranslationGroupIntoStringsSurvey(u,n,t)}},t.prototype.addLocaleColumns=function(e){var t=this.getSelectedLocales();e.rowTitleWidth="300px";var i="calc((100% - "+e.rowTitleWidth+")/"+(t.length+1)+")";e.addColumn("default",this.getLocaleName("")).width=i;for(var o=0;o<t.length;o++)e.addColumn(t[o],this.getLocaleName(t[o])).width=i},t.prototype.getStringsSurveyQuestionName=function(e,t){return null==t||e.obj.name==e.name?e.name+"_props":t.name+"_"+e.name},t.prototype.getStringsSurveyData=function(e){for(var t={},i=e.getAllQuestions(),o=0;o<i.length;o++)t[i[o].name]=this.getStringsQuestionData(i[o]);return t},t.prototype.getStringsQuestionData=function(e){for(var t={},i=0;i<e.rows.length;i++){var o=e.rows[i],r=o.translationData.toJSON();r&&(t[o.value]=r)}return t},t.prototype.updateHeaderStringsSurveyColumns=function(){if(this.stringsHeaderSurvey){var e=this.stringsHeaderSurvey.getQuestionByName("stringsHeader");e.columns=[],this.addLocaleColumns(e)}},t.prototype.updateStringsSurveyColumns=function(){if(this.stringsSurvey)for(var e=this.stringsSurvey.getAllQuestions(),t=0;t<e.length;t++){var i=e[t];i.beginUpdate(),i.columns=[],this.addLocaleColumns(i),i.endUpdate()}},t.prototype.addLocaleIntoChoices=function(e,t,i){e&&!i[e]&&(i[e]=!0,t.push(new r.ItemValue(e,a.editorLocalization.getLocaleName(e))))},t.prototype.addLocaleIntoValue=function(e,t){this.addLocaleIntoValueCore("selLocales",e),t&&this.addLocaleIntoValueCore("locales",e)},t.prototype.addLocaleIntoValueCore=function(e,t){if(t){var i=this.settingsSurvey.getValue(e);Array.isArray(i)||(i=[]),i.indexOf(t)<0&&(i.push(t),this.settingsSurvey.setValue(e,i))}},t.prototype.isLocaleVisible=function(e){return e!==r.surveyLocalization.defaultLocale&&!this.hasLocale(e)},t.prototype.setupToolbarItems=function(){var e=this;this.chooseLanguageActions=this.getSurveyLocales()[0].map((function(t){return{id:t.value,title:t.text,data:t,visible:e.isLocaleVisible(t.value)}})),this.chooseLanguagePopupModel=new r.PopupModel("sv-list",{model:new r.ListModel(this.chooseLanguageActions,(function(t){e.addLocale(t.id),e.chooseLanguagePopupModel.toggleVisibility()}),!1)},"bottom","left")},t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),"canMergeLocaleWithDefault"===t&&(this.mergeLocaleWithDefaultText=this.getMergeLocaleWithDefaultText()),"locales"===t&&(this.updateHeaderStringsSurveyColumns(),this.updateStringsSurveyColumns())},t.prototype.getMergeLocaleWithDefaultText=function(){if(!this.canMergeLocaleWithDefault)return"";var e=this.getLocaleName(this.defaultLocale);return a.editorLocalization.getString("ed.translationMergeLocaleWithDefault").format(e)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},set:function(e){this.surveyValue=e,this.reset()},enumerable:!1,configurable:!0}),t.prototype.reset=function(){var e=this.filteredPage?this.filteredPage:this.survey,t=this.filteredPage?e.name:"survey";this.root=new h(t,e,this),this.root.setAsRoot(),this.root.reset(),this.resetLocales(),this.isEmpty=!this.root.hasItems,this.updateSettingsSurveyLocales(),this.updateLocales(),this.resetStringsSurvey()},t.prototype.canShowProperty=function(e,t){return u.SurveyHelper.isPropertyVisible(e,t,this.options)},Object.defineProperty(t.prototype,"defaultLocale",{get:function(){return r.surveyLocalization.defaultLocale},enumerable:!1,configurable:!0}),t.prototype.getLocaleName=function(e){return a.editorLocalization.getLocaleName(e,this.defaultLocale)},t.prototype.removeLocale=function(e){if(this.hasLocale(e)){var t=this.locales.indexOf(e),i=this.locales;i.splice(t,1),this.locales=i,this.canMergeLocaleWithDefault=this.hasLocale(this.defaultLocale)}},t.prototype.hasLocale=function(e){for(var t=this.locales,i=0;i<t.length;i++)if(t[i]==e)return!0;return!1},t.prototype.addLocale=function(e){this.hasLocale(e)||this.addLocaleIntoValue(e,!0);var t=this.chooseLanguageActions.filter((function(t){return t.id===e}));Array.isArray(t)&&1==t.length&&(t[0].visible=this.isLocaleVisible(e))},t.prototype.resetLocales=function(){var e=[""];this.root.fillLocales(e),this.setLocales(e)},t.prototype.getSelectedLocales=function(){var e=this.localesQuestion.value;return Array.isArray(e)?e:[]},t.prototype.setSelectedLocales=function(e){this.localesQuestion.value=e},Object.defineProperty(t.prototype,"noStringsText",{get:function(){return a.editorLocalization.getString("ed.translationNoStrings")},enumerable:!1,configurable:!0}),t.prototype.exportToCSV=function(){var e=[],i=[],o=this.locales;i.push("description ↓ - language →");for(var r=0;r<o.length;r++)i.push(o[r]?o[r]:"default");e.push(i);var a={};for(var l in this.fillItemsHash("",this.root,a),a){var u=[l],c=a[l];for(r=0;r<o.length;r++){var d=c.locString.getLocaleText(o[r]);u.push(d||0!=r?d:c.defaultValue)}e.push(u)}var p=s.settings.traslation.exportPrefix;return p||(p=""),p+Object(n.unparse)(e,{quoteChar:'"',escapeChar:'"',delimiter:t.csvDelimiter,header:!0,newline:t.newLineDelimiter,skipEmptyLines:!1,columns:null})},t.prototype.importFromNestedArray=function(e){var i=this,o=e.shift().slice(1);"default"===o[0]&&(o[0]="");var r=new t(this.survey,this.options,!1);r.showAllStrings=!0;var n={};this.fillItemsHash("",r.root,n),e.forEach((function(e){var t=e.shift().trim();if(t){var r=n[t];r&&i.updateItemWithStrings(r,e,o)}})),this.reset(),this.importFinishedCallback&&this.importFinishedCallback()},t.prototype.exportToSCVFile=function(e){var t=this.exportToCSV(),i=new Blob([t],{type:"text/csv"});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(i,e);else{var o=window.document.createElement("a");o.href=window.URL.createObjectURL(i),o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o)}},t.prototype.importFromCSVFile=function(e){var t=this;Object(n.parse)(e,{complete:function(e,i){t.importFromNestedArray(e.data)}})},t.prototype.mergeLocaleWithDefault=function(){this.hasLocale(this.defaultLocale)&&(this.root.mergeLocaleWithDefault(this.defaultLocale),this.settingsSurveyValue.setValue("selLocales",[]),this.settingsSurveyValue.setValue("locales",[]),this.reset())},t.prototype.translateItemAfterRender=function(e,t,i){if(this.translateItemAfterRenderCallback){if(Array.isArray(t))for(var o=0;o<t.length;o++)if("TEXTAREA"==t[o].tagName){t=t[o];break}this.translateItemAfterRenderCallback(e,t,i)}},t.prototype.updateItemWithStrings=function(e,t,i){for(var o=0;o<t.length&&o<i.length;o++){var r=t[o].trim();r&&(e.values(i[o]).text=r)}},t.prototype.fillItemsHash=function(e,t,i){var o=this,r=e?e+"."+t.name:t.name;t.locItems.forEach((function(e){i[r+"."+e.name]=e})),t.groups.forEach((function(e){return o.fillItemsHash(r,e,i)}))},t.prototype.setLocales=function(e){this.settingsSurvey.setValue("setLocales",[]),this.localesQuestion.value=[];for(var t=0;t<e.length;t++)this.addLocaleIntoValue(e[t],!1)},t.prototype.dispose=function(){this.importFinishedCallback=void 0,this.availableTranlationsChangedCallback=void 0,this.tranlationChangedCallback=void 0},t.csvDelimiter=",",t.newLineDelimiter="\n",Object(o.__decorate)([Object(r.propertyArray)()],t.prototype,"locales",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"canMergeLocaleWithDefault",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"mergeLocaleWithDefaultText",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"readOnly",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"root",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1,onSet:function(e,t){t.reset()}})],t.prototype,"showAllStrings",void 0),Object(o.__decorate)([Object(r.property)({onSet:function(e,t){t.reset()}})],t.prototype,"filteredPage",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"stringsSurvey",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"stringsHeaderSurvey",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"isEmpty",void 0),t}(r.Base)},"./src/components/toolbox/toolbox-tool.scss":
292
+ /*! exports provided: TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation */function(e,t,i){"use strict";i.r(t),i.d(t,"TranslationItemBase",(function(){return p})),i.d(t,"TranslationItemString",(function(){return m})),i.d(t,"TranslationItem",(function(){return g})),i.d(t,"TranslationGroup",(function(){return h})),i.d(t,"Translation",(function(){return v}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! papaparse */"./node_modules/papaparse/papaparse.min.js"),a=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),s=i(/*! ../../settings */"./src/settings.ts"),l=i(/*! ../../property-grid/index */"./src/property-grid/index.ts"),u=(i(/*! ./translation.scss */"./src/components/tabs/translation.scss"),i(/*! ../../survey-helper */"./src/survey-helper.ts")),c=i(/*! ../../property-grid-theme/property-grid */"./src/property-grid-theme/property-grid.ts"),d=i(/*! ./translation-theme */"./src/components/tabs/translation-theme.ts"),p=function(e){function t(t,i){var o=e.call(this)||this;return o.name=t,o.translation=i,o}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"isGroup",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.fillLocales=function(e){},t.prototype.mergeLocaleWithDefault=function(e){},t.prototype.makeObservable=function(){this.fireOnObjCreating()},t.prototype.fireOnObjCreating=function(e){void 0===e&&(e=null),this.translation&&(e||(e=this),this.translation.fireOnObjCreating(e))},t}(r.Base),m=function(e){function t(t,i){var o=e.call(this)||this;return o.locString=t,o.locale=i,o.text=o.locString.getLocaleText(o.locale),o}return Object(o.__extends)(t,e),t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),"text"===t&&this.locString.setLocaleText(this.locale,o)},t.prototype.getType=function(){return"translationitemstring"},Object(o.__decorate)([Object(r.property)()],t.prototype,"text",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"placeholder",void 0),t}(r.Base),g=function(e){function t(t,i,o,r,n,a){void 0===o&&(o=""),void 0===a&&(a=null);var s=e.call(this,t,r)||this;s.name=t,s.locString=i,s.defaultValue=o,s.context=n,s.property=a,s.translation&&(s.readOnly=s.translation.readOnly),s.hashValues={};var l=s;return s.afterRender=function(e,t){l.translation&&l.translation.translateItemAfterRender(l,e,t.locale)},s.fireOnObjCreating(),s}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.property?this.property.maxLength:-1},enumerable:!1,configurable:!0}),t.prototype.makeObservable=function(){for(var t in e.prototype.makeObservable.call(this),this.hashValues)this.fireOnObjCreating(this.hashValues[t])},t.prototype.getType=function(){return"translationitem"},Object.defineProperty(t.prototype,"text",{get:function(){return this.customText?this.customText:this.localizableName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localizableName",{get:function(){return a.editorLocalization.getPropertyName(this.name)},enumerable:!1,configurable:!0}),t.prototype.getLocText=function(e){return this.locString.getLocaleText(e)},t.prototype.setLocText=function(e,t){this.locString.setLocaleText(e,t),this.translation.tranlationChangedCallback&&this.translation.tranlationChangedCallback(e,this.name,t,this.context)},t.prototype.values=function(e){if(!this.hashValues[e]){var t=new m(this.locString,e);e||(t.placeholder=this.defaultValue),this.hashValues[e]=t,this.fireOnObjCreating(t)}return this.hashValues[e]},t.prototype.fillLocales=function(e){for(var t=this.getKeys(),i=0;i<t.length;i++){var o=t[i];o&&e.indexOf(o)<0&&o!==r.LocalizableString.defaultLocale&&e.push(o)}},t.prototype.toJSON=function(){var e=this.locString.getJson();return(e=this.correctJSON(e))&&"string"!=typeof e?e:{default:e}},t.prototype.correctJSON=function(e){if(!e||"string"==typeof e)return e;if(Array.isArray(e))return e.join("\n");for(var t in e)Array.isArray(e[t])&&(e[t]=e[t].join("\n"));return e},t.prototype.getKeys=function(){return this.locString.getLocales()},t.prototype.mergeLocaleWithDefault=function(e){var t=this.locString.getLocaleText(e);t&&(this.locString.setLocaleText("",t),this.locString.setLocaleText(e,null))},Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"readOnly",void 0),t}(p),h=function(e){function t(t,i,o,r){void 0===o&&(o=null),void 0===r&&(r="");var n=e.call(this,t,o)||this;return n.name=t,n.obj=i,n.text=r,n.isRootValue=!1,n.removeLocale=function(e){n.translation&&n.translation.removeLocale(e)},n.text||(n.text=t),n.reset(),n.fireOnObjCreating(),n}return Object(o.__extends)(t,e),t.prototype.getType=function(){return"translationgroup"},Object.defineProperty(t.prototype,"items",{get:function(){return this.itemValues},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locItems",{get:function(){return this.itemValues.filter((function(e){return e instanceof g}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRoot",{get:function(){return this.isRootValue},enumerable:!1,configurable:!0}),t.prototype.setAsRoot=function(){this.isRootValue=!0},t.prototype.getItemByName=function(e){for(var t=0;t<this.itemValues.length;t++)if(this.itemValues[t].name==e)return this.itemValues[t];return null},Object.defineProperty(t.prototype,"groups",{get:function(){return this.itemValues.filter((function(e){return e instanceof t}))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isGroup",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locales",{get:function(){return this.translation?this.translation.locales:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"removeLocaleText",{get:function(){return a.editorLocalization.getString("pe.remove")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localeCount",{get:function(){return Array.isArray(this.locales)?this.locales.length:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locWidth",{get:function(){var e=this.localeCount;return e<2?"100%":Math.floor(100/e).toString()+"%"},enumerable:!1,configurable:!0}),t.prototype.getLocaleName=function(e){return this.translation?this.translation.getLocaleName(e):a.editorLocalization.getLocaleName(e)},t.prototype.reset=function(){this.itemValues=[],this.fillItems()},t.prototype.fillLocales=function(e){for(var t=0;t<this.items.length;t++)this.items[t].fillLocales(e)},t.prototype.makeObservable=function(){e.prototype.makeObservable.call(this);for(var t=0;t<this.items.length;t++)this.items[t].makeObservable()},Object.defineProperty(t.prototype,"showAllStrings",{get:function(){return!this.translation||this.translation.showAllStrings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasItems",{get:function(){if(this.locItems.length>0)return!0;for(var e=this.groups,t=0;t<e.length;t++)if(e[t].hasItems)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.mergeLocaleWithDefault=function(e){this.itemValues.forEach((function(t){return t.mergeLocaleWithDefault(e)}))},t.prototype.fillItems=function(){if(this.isItemValueArray(this.obj))this.createItemValuesLocale();else if(this.obj&&this.obj.getType){for(var e=this.getLocalizedProperties(this.obj),i=0;i<e.length;i++){var o=e[i],r=this.createTranslationItem(this.obj,e[i]);r&&this.itemValues.push(r)}for(e=this.getArrayProperties(this.obj),i=0;i<e.length;i++){o=e[i];var n=this.obj[o.name];if(this.isItemValueArray(n)){var s=new t(o.name,n,this.translation,a.editorLocalization.getPropertyName(o.name));s.hasItems&&this.itemValues.push(s)}else this.createGroups(n,o)}this.sortItems()}},t.prototype.sortItems=function(){s.settings.traslation.sortByName&&this.itemValues.sort((function(e,t){return e.name?t.name?e.name.localeCompare(t.name):1:-1}))},t.prototype.getLocalizedProperties=function(e){for(var t=[],i=r.Serializer.getPropertiesByObj(e),o=0;o<i.length;o++){var n=i[o];n.isSerializable&&n.isLocalizable&&!n.readOnly&&n.visible&&t.push(n)}return t},t.prototype.getArrayProperties=function(e){for(var t=[],i=r.Serializer.getPropertiesByObj(e),o=0;o<i.length;o++){var n=i[o];if(!1!==n.isSerializable){var a=e[n.name];a&&Array.isArray(a)&&a.length>0&&t.push(n)}}return t},t.prototype.createTranslationItem=function(e,t){var i=this.getDefaultValue(e,t),o=e[t.serializationProperty];return o&&(this.showAllStrings||i||!o.isEmpty)?this.translation&&!this.translation.canShowProperty(e,t,o.isEmpty)?null:new g(t.name,o,i,this.translation,e,t):null},t.prototype.getDefaultValue=function(e,t){if("title"==t.name&&t.isLocalizable&&t.serializationProperty){var i=e[t.serializationProperty];if(i&&"page"!=e.getType()&&(i.onGetTextCallback||i.onRenderedHtmlCallback))return e.name}return""},t.prototype.isItemValueArray=function(e){return!!e&&Array.isArray(e)&&e.length>0&&!!e[0]&&!!e[0].getType&&!!e[0].setData&&!!e[0].setLocText},t.prototype.createGroups=function(e,i){for(var o=0;o<e.length;o++){var r=e[o];if(r&&r.getType){var n=r.name,s=r.title||n;if(!n){var l="["+o.toString()+"]";n=i.name+l,s=a.editorLocalization.getPropertyName(i.name)+l}var u=new t(n,r,this.translation,s);u.hasItems&&this.itemValues.push(u)}}},t.prototype.createItemValuesLocale=function(){for(var e=0;e<this.obj.length;e++){var t=this.obj[e];if(this.showAllStrings||!t.locText.isEmpty||isNaN(t.value)){var i=new g(t.value,t.locText,t.value,this.translation,t);this.itemValues.push(i),this.addCustomPropertiesForItemValue(this.obj[e],i)}}},t.prototype.addCustomPropertiesForItemValue=function(e,t){for(var i=this.getLocalizedProperties(e),o=0;o<i.length;o++)if("text"!=i[o].name){var r=this.createTranslationItem(e,i[o]);r&&(r.customText=t.text+" ("+r.localizableName+")",r.name=e.value+"."+r.name,this.itemValues.push(r))}},Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"showHeader",void 0),t}(p),v=function(e){function t(t,i,o){void 0===i&&(i=null),void 0===o&&(o=!0);var r=e.call(this)||this;r.options=i,r.hasUI=o,r.chooseLanguageActions=[],r.options||(r.options=new s.EmptySurveyCreatorOptions);var n=r;return r.exportToCSVFileUI=function(){n.exportToSCVFile("survey_translation.csv")},r.importFromCSVFileUI=function(e){e.files.length<1||(n.importFromCSVFile(e.files[0]),e.value="")},r.settingsSurveyValue=r.createSettingsSurvey(),r.survey=t,r.setupToolbarItems(),r}return Object(o.__extends)(t,e),t.prototype.getType=function(){return"translation"},t.prototype.makeObservable=function(e){this.onBaseObjCreatingCallback=e,this.fireOnObjCreating(this),this.root.makeObservable()},t.prototype.fireOnObjCreating=function(e){this.onBaseObjCreatingCallback&&this.onBaseObjCreatingCallback(e)},Object.defineProperty(t.prototype,"settingsSurvey",{get:function(){return this.settingsSurveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"localesQuestion",{get:function(){return this.settingsSurvey.getQuestionByName("locales")},enumerable:!1,configurable:!0}),t.prototype.createSettingsSurvey=function(){var e=this,t=this.getSettingsSurveyJSON();Object(l.setSurveyJSONForPropertyGrid)(t);var i=this.options.createSurvey(t,"translation_settings");return i.css=c.propertyGridCss,i.css.root+=" st-properties",i.onValueChanged.add((function(t,i){"locales"==i.name&&e.updateLocales()})),i.onGetPanelTitleActions.add((function(t,i){if("languages"==i.panel.name){var o=new r.Action({id:"svc-translation-choose-language",iconName:"icon-add",component:"sv-action-bar-item-dropdown",popupModel:e.chooseLanguagePopupModel,action:function(t){e.chooseLanguagePopupModel.toggleVisibility()}});i.titleActions=[o]}})),i},t.prototype.updateLocales=function(){if(this.localesQuestion){var e=[""],t=this.localesQuestion.value;Array.isArray(t)||(t=[]);for(var i=0;i<t.length;i++)e.push(t[i]);this.locales=e,this.canMergeLocaleWithDefault=this.hasLocale(this.defaultLocale)}},t.prototype.getSettingsSurveyJSON=function(){var e=this.getLocaleName("");return{elements:[{type:"panel",name:"languages",elements:[{type:"checkbox",name:"defaultLanguage",titleLocation:"hidden",readOnly:!0,choices:[e],defaultValue:[e]},{type:"checkbox",name:"locales",choicesVisibleIf:"{selLocales} contains {item}",titleLocation:"hidden"}],title:a.editorLocalization.getString("ed.translationLanguages")}]}},t.prototype.getSurveyLocales=function(){for(var e=new Array,t=r.surveyLocalization.supportedLocales,i=Array.isArray(t)&&t.length>0?t:r.surveyLocalization.getLocales(),o={},n=0;n<i.length;n++)this.addLocaleIntoChoices(i[n],e,o);for((i=this.settingsSurvey.getValue("selLocales"))||(i=[]),n=0;n<i.length;n++)this.addLocaleIntoChoices(i[n],e,o);return[e,i]},t.prototype.updateSettingsSurveyLocales=function(){var e=this.getSurveyLocales(),t=e[0],i=e[1];this.localesQuestion.choices=t,this.localesQuestion.value=i},t.prototype.resetStringsSurvey=function(){this.hasUI&&(this.stringsSurvey=this.createStringsSurvey(),this.stringsHeaderSurvey=this.createStringsHeaderSurvey())},t.prototype.createStringsSurvey=function(){var e=this,t={autoGrowComment:!0};Object(l.setSurveyJSONForPropertyGrid)(t,!1);var i=this.options.createSurvey(t,"translation_strings");i.lazyRendering=!0,i.skeletonComponentName="sd-translation-line-skeleton",i.startLoadingFromJson(),i.css=d.translationCss,i.addNewPage("page"),this.addTranslationGroupIntoStringsSurvey(i.pages[0],this.root,null),i.data=this.getStringsSurveyData(i),i.endLoadingFromJson();var o=function(e,t){var i=r.ItemValue.getItemByValue(e.rows,t);return i?i.translationData:null};return i.onMatrixCellCreated.add((function(t,i){if(i.cell.question instanceof r.QuestionCommentModel){var n=i.cell.question,a=o(i.question,i.row.name);e.setPlaceHolder(n,a,i.columnName);var s=!!a&&a.locString.getIsMultiple();n.acceptCarriageReturn=s,a&&(n.maxLength=a.maxLength),s||(n.rows=1)}})),i.onMatrixCellValueChanged.add((function(t,i){var r=o(i.question,i.row.name);r&&(r.setLocText(i.columnName,i.value),"default"==i.columnName&&i.row.cells.forEach((function(t){e.updateCellPlaceholdersByDefault(t,i.value,r)})))})),i.currentPage=i.pages[0],i},t.prototype.setPlaceHolder=function(e,t,i){var o=t.context,n=a.editorLocalization.getString("ed.translationPlaceHolder",i);o instanceof r.SurveyModel?e.placeHolder=r.surveyLocalization.getString(t.name,i)||n:o instanceof r.PageModel||"title"!==t.name?e.placeHolder=n:e.placeHolder=o[t.name]||o.name},t.prototype.updateCellPlaceholdersByDefault=function(e,t,i){t?e.question.placeHolder=t:this.setPlaceHolder(e.question,i,e.column.name)},t.prototype.createStringsHeaderSurvey=function(){var e={};Object(l.setSurveyJSONForPropertyGrid)(e,!1);var t=this.options.createSurvey(e,"translation_strings_header");t.css=d.translationCss;var i=t.addNewPage("page"),o=r.Serializer.createClass("matrixdropdown");return o.name="stringsHeader",o.titleLocation="hidden",this.addLocaleColumns(o),i.addQuestion(o),t.currentPage=t.pages[0],t},t.prototype.addTranslationGroupIntoStringsSurvey=function(e,t,i){for(var o=0;o<t.items.length;o++)if(!t.items[o].isGroup){var n=t.items[o];if(0==e.questions.length){var a=r.Serializer.createClass("matrixdropdown");a.cellType="comment",a.titleLocation="hidden",a.name=this.getStringsSurveyQuestionName(t,i),a.showHeader=!1,a.showColumnHeader=!1,e.addQuestion(a),this.addLocaleColumns(a)}var s=e.questions[0],l=new r.ItemValue(n.name,n.text);l.translationData=n,s.rows.push(l)}for(o=0;o<t.items.length;o++)if(t.items[o].isGroup){n=t.items[o];var u=r.Serializer.createClass("panel");u.name=n.name,e.addElement(u),u.title=n.text,this.addTranslationGroupIntoStringsSurvey(u,n,t)}},t.prototype.addLocaleColumns=function(e){var t=this.getSelectedLocales();e.rowTitleWidth="300px";var i="calc((100% - "+e.rowTitleWidth+")/"+(t.length+1)+")";e.addColumn("default",this.getLocaleName("")).width=i;for(var o=0;o<t.length;o++)e.addColumn(t[o],this.getLocaleName(t[o])).width=i},t.prototype.getStringsSurveyQuestionName=function(e,t){return null==t||e.obj.name==e.name?e.name+"_props":t.name+"_"+e.name},t.prototype.getStringsSurveyData=function(e){for(var t={},i=e.getAllQuestions(),o=0;o<i.length;o++)t[i[o].name]=this.getStringsQuestionData(i[o]);return t},t.prototype.getStringsQuestionData=function(e){for(var t={},i=0;i<e.rows.length;i++){var o=e.rows[i],r=o.translationData.toJSON();r&&(t[o.value]=r)}return t},t.prototype.updateHeaderStringsSurveyColumns=function(){if(this.stringsHeaderSurvey){var e=this.stringsHeaderSurvey.getQuestionByName("stringsHeader");e.columns=[],this.addLocaleColumns(e)}},t.prototype.updateStringsSurveyColumns=function(){if(this.stringsSurvey)for(var e=this.stringsSurvey.getAllQuestions(),t=0;t<e.length;t++){var i=e[t];i.beginUpdate(),i.columns=[],this.addLocaleColumns(i),i.endUpdate()}},t.prototype.addLocaleIntoChoices=function(e,t,i){e&&!i[e]&&(i[e]=!0,t.push(new r.ItemValue(e,a.editorLocalization.getLocaleName(e))))},t.prototype.addLocaleIntoValue=function(e,t){this.addLocaleIntoValueCore("selLocales",e),t&&this.addLocaleIntoValueCore("locales",e)},t.prototype.addLocaleIntoValueCore=function(e,t){if(t){var i=this.settingsSurvey.getValue(e);Array.isArray(i)||(i=[]),i.indexOf(t)<0&&(i.push(t),this.settingsSurvey.setValue(e,i))}},t.prototype.isLocaleVisible=function(e){return e!==r.surveyLocalization.defaultLocale&&!this.hasLocale(e)},t.prototype.setupToolbarItems=function(){var e=this;this.chooseLanguageActions=this.getSurveyLocales()[0].map((function(t){return{id:t.value,title:t.text,data:t,visible:e.isLocaleVisible(t.value)}})),this.chooseLanguagePopupModel=new r.PopupModel("sv-list",{model:new r.ListModel(this.chooseLanguageActions,(function(t){e.addLocale(t.id),e.chooseLanguagePopupModel.toggleVisibility()}),!1)},"bottom","left")},t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),"canMergeLocaleWithDefault"===t&&(this.mergeLocaleWithDefaultText=this.getMergeLocaleWithDefaultText()),"locales"===t&&(this.updateHeaderStringsSurveyColumns(),this.updateStringsSurveyColumns())},t.prototype.getMergeLocaleWithDefaultText=function(){if(!this.canMergeLocaleWithDefault)return"";var e=this.getLocaleName(this.defaultLocale);return a.editorLocalization.getString("ed.translationMergeLocaleWithDefault").format(e)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},set:function(e){this.surveyValue=e,this.reset()},enumerable:!1,configurable:!0}),t.prototype.reset=function(){var e=this.filteredPage?this.filteredPage:this.survey,t=this.filteredPage?e.name:"survey";this.root=new h(t,e,this),this.root.setAsRoot(),this.root.reset(),this.resetLocales(),this.isEmpty=!this.root.hasItems,this.updateSettingsSurveyLocales(),this.updateLocales(),this.resetStringsSurvey()},t.prototype.canShowProperty=function(e,t,i){var o=!i||u.SurveyHelper.isPropertyVisible(e,t,this.options);return this.translationStringVisibilityCallback?this.translationStringVisibilityCallback(e,t.name,o):o},Object.defineProperty(t.prototype,"defaultLocale",{get:function(){return r.surveyLocalization.defaultLocale},enumerable:!1,configurable:!0}),t.prototype.getLocaleName=function(e){return a.editorLocalization.getLocaleName(e,this.defaultLocale)},t.prototype.removeLocale=function(e){if(this.hasLocale(e)){var t=this.locales.indexOf(e),i=this.locales;i.splice(t,1),this.locales=i,this.canMergeLocaleWithDefault=this.hasLocale(this.defaultLocale)}},t.prototype.hasLocale=function(e){for(var t=this.locales,i=0;i<t.length;i++)if(t[i]==e)return!0;return!1},t.prototype.addLocale=function(e){this.hasLocale(e)||this.addLocaleIntoValue(e,!0);var t=this.chooseLanguageActions.filter((function(t){return t.id===e}));Array.isArray(t)&&1==t.length&&(t[0].visible=this.isLocaleVisible(e))},t.prototype.resetLocales=function(){var e=[""];this.root.fillLocales(e),this.setLocales(e)},t.prototype.getSelectedLocales=function(){var e=this.localesQuestion.value;return Array.isArray(e)?e:[]},t.prototype.setSelectedLocales=function(e){this.localesQuestion.value=e},Object.defineProperty(t.prototype,"noStringsText",{get:function(){return a.editorLocalization.getString("ed.translationNoStrings")},enumerable:!1,configurable:!0}),t.prototype.exportToCSV=function(){var e=[],i=[],o=this.locales;i.push("description ↓ - language →");for(var r=0;r<o.length;r++)i.push(o[r]?o[r]:"default");e.push(i);var a={};for(var l in this.fillItemsHash("",this.root,a),a){var u=[l],c=a[l];for(r=0;r<o.length;r++){var d=c.locString.getLocaleText(o[r]);u.push(d||0!=r?d:c.defaultValue)}e.push(u)}var p=s.settings.traslation.exportPrefix;return p||(p=""),p+Object(n.unparse)(e,{quoteChar:'"',escapeChar:'"',delimiter:t.csvDelimiter,header:!0,newline:t.newLineDelimiter,skipEmptyLines:!1,columns:null})},t.prototype.importFromNestedArray=function(e){var i=this,o=e.shift().slice(1);"default"===o[0]&&(o[0]="");var r=new t(this.survey,this.options,!1);r.showAllStrings=!0;var n={};this.fillItemsHash("",r.root,n),e.forEach((function(e){var t=e.shift().trim();if(t){var r=n[t];r&&i.updateItemWithStrings(r,e,o)}})),this.reset(),this.importFinishedCallback&&this.importFinishedCallback()},t.prototype.exportToSCVFile=function(e){var t=this.exportToCSV(),i=new Blob([t],{type:"text/csv"});if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveBlob(i,e);else{var o=window.document.createElement("a");o.href=window.URL.createObjectURL(i),o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o)}},t.prototype.importFromCSVFile=function(e){var t=this;Object(n.parse)(e,{complete:function(e,i){t.importFromNestedArray(e.data)}})},t.prototype.mergeLocaleWithDefault=function(){this.hasLocale(this.defaultLocale)&&(this.root.mergeLocaleWithDefault(this.defaultLocale),this.settingsSurveyValue.setValue("selLocales",[]),this.settingsSurveyValue.setValue("locales",[]),this.reset())},t.prototype.translateItemAfterRender=function(e,t,i){if(this.translateItemAfterRenderCallback){if(Array.isArray(t))for(var o=0;o<t.length;o++)if("TEXTAREA"==t[o].tagName){t=t[o];break}this.translateItemAfterRenderCallback(e,t,i)}},t.prototype.updateItemWithStrings=function(e,t,i){for(var o=0;o<t.length&&o<i.length;o++){var r=t[o].trim();r&&(e.values(i[o]).text=r)}},t.prototype.fillItemsHash=function(e,t,i){var o=this,r=e?e+"."+t.name:t.name;t.locItems.forEach((function(e){i[r+"."+e.name]=e})),t.groups.forEach((function(e){return o.fillItemsHash(r,e,i)}))},t.prototype.setLocales=function(e){this.settingsSurvey.setValue("setLocales",[]),this.localesQuestion.value=[];for(var t=0;t<e.length;t++)this.addLocaleIntoValue(e[t],!1)},t.prototype.dispose=function(){this.importFinishedCallback=void 0,this.availableTranlationsChangedCallback=void 0,this.tranlationChangedCallback=void 0},t.csvDelimiter=",",t.newLineDelimiter="\n",Object(o.__decorate)([Object(r.propertyArray)()],t.prototype,"locales",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"canMergeLocaleWithDefault",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"mergeLocaleWithDefaultText",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"readOnly",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"root",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1,onSet:function(e,t){t.reset()}})],t.prototype,"showAllStrings",void 0),Object(o.__decorate)([Object(r.property)({onSet:function(e,t){t.reset()}})],t.prototype,"filteredPage",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"stringsSurvey",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"stringsHeaderSurvey",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"isEmpty",void 0),t}(r.Base)},"./src/components/toolbox/toolbox-tool.scss":
277
293
  /*!**************************************************!*\
278
294
  !*** ./src/components/toolbox/toolbox-tool.scss ***!
279
295
  \**************************************************/
@@ -281,7 +297,7 @@ License: MIT
281
297
  /*!************************************************!*\
282
298
  !*** ./src/components/toolbox/toolbox-tool.ts ***!
283
299
  \************************************************/
284
- /*! exports provided: ToolboxToolViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"ToolboxToolViewModel",(function(){return a}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../utils/dragOrClickHelper */"./src/utils/dragOrClickHelper.ts"),a=function(e){function t(t,i){var o=e.call(this)||this;return o.item=t,o.creator=i,o.click=function(e){if(o.allowAdd)return"dotsItem-id"===o.item.id||void o.creator.clickToolboxItem(o.item.json)},o.startDragToolboxItem=function(e,t){var i=o.creator.getJSONForNewElement(o.item.json);return o.dragDropHelper.startDragToolboxItem(e,i),!0},o.dragOrClickHelper=new n.DragOrClickHelper(o.startDragToolboxItem),o}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"allowAdd",{get:function(){return!this.creator.readOnly},enumerable:!1,configurable:!0}),t.prototype.onPointerDown=function(e){if(this.allowAdd)return"dotsItem-id"===this.item.id||void this.dragOrClickHelper.onPointerDown(e)},Object.defineProperty(t.prototype,"dragDropHelper",{get:function(){return this.creator.dragDropSurveyElements},enumerable:!1,configurable:!0}),t}(r.Base)},"./src/components/toolbox/toolbox.scss":
300
+ /*! exports provided: ToolboxToolViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"ToolboxToolViewModel",(function(){return a}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../utils/dragOrClickHelper */"./src/utils/dragOrClickHelper.ts"),a=function(e){function t(t,i){var o=e.call(this)||this;return o.item=t,o.creator=i,o.click=function(e){o.allowAdd&&o.creator.clickToolboxItem(o.item.json)},o.startDragToolboxItem=function(e,t){var i=o.creator.getJSONForNewElement(o.item.json);return o.dragDropHelper.startDragToolboxItem(e,i),!0},o.dragOrClickHelper=new n.DragOrClickHelper(o.startDragToolboxItem),o}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"allowAdd",{get:function(){return!this.creator.readOnly},enumerable:!1,configurable:!0}),t.prototype.onPointerDown=function(e){if(this.allowAdd)return"dotsItem-id"===this.item.id||void this.dragOrClickHelper.onPointerDown(e)},Object.defineProperty(t.prototype,"dragDropHelper",{get:function(){return this.creator.dragDropSurveyElements},enumerable:!1,configurable:!0}),t}(r.Base)},"./src/components/toolbox/toolbox.scss":
285
301
  /*!*********************************************!*\
286
302
  !*** ./src/components/toolbox/toolbox.scss ***!
287
303
  \*********************************************/
@@ -289,11 +305,15 @@ License: MIT
289
305
  /*!*****************************!*\
290
306
  !*** ./src/creator-base.ts ***!
291
307
  \*****************************/
292
- /*! exports provided: TabbedMenuItem, TabbedMenuContainer, CreatorBase, StylesManager, getElementWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable */function(e,t,i){"use strict";i.r(t),i.d(t,"TabbedMenuItem",(function(){return C})),i.d(t,"TabbedMenuContainer",(function(){return N})),i.d(t,"CreatorBase",(function(){return _})),i.d(t,"StylesManager",(function(){return O})),i.d(t,"getElementWrapperComponentName",(function(){return V})),i.d(t,"getElementWrapperComponentData",(function(){return A})),i.d(t,"getItemValueWrapperComponentName",(function(){return j})),i.d(t,"getItemValueWrapperComponentData",(function(){return z})),i.d(t,"isStringEditable",(function(){return M}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ./settings */"./src/settings.ts"),a=i(/*! ./editorLocalization */"./src/editorLocalization.ts"),s=i(/*! ./json5 */"./src/json5.ts"),l=i(/*! ./questionconverter */"./src/questionconverter.ts"),u=i(/*! ./textWorker */"./src/textWorker.ts"),c=i(/*! ./toolbox */"./src/toolbox.ts"),d=i(/*! ./utils/utils */"./src/utils/utils.ts"),p=i(/*! ./survey-helper */"./src/survey-helper.ts"),m=(i(/*! ./components/creator.scss */"./src/components/creator.scss"),i(/*! ./components/string-editor.scss */"./src/components/string-editor.scss"),i(/*! ./pages-controller */"./src/pages-controller.ts")),g=i(/*! ./selection-history */"./src/selection-history.ts"),h=i(/*! ./components/tabs/embed */"./src/components/tabs/embed.ts"),v=i(/*! ./components/tabs/json-editor-ace */"./src/components/tabs/json-editor-ace.ts"),y=i(/*! ./components/tabs/json-editor-textarea */"./src/components/tabs/json-editor-textarea.ts"),f=i(/*! ./components/tabs/test-plugin */"./src/components/tabs/test-plugin.ts"),b=i(/*! ./components/tabs/logic */"./src/components/tabs/logic.ts"),x=i(/*! ./components/tabs/translation-plugin */"./src/components/tabs/translation-plugin.ts"),w=i(/*! ./components/tabs/logic-plugin */"./src/components/tabs/logic-plugin.ts"),T=i(/*! ./components/notifier */"./src/components/notifier.ts"),k=i(/*! ./utils/actions */"./src/utils/actions.ts"),S=i(/*! ./plugins/undo-redo */"./src/plugins/undo-redo/index.ts"),P=i(/*! ./components/tabs/designer */"./src/components/tabs/designer.ts"),E=i(/*! ./creator-responsivity-manager */"./src/creator-responsivity-manager.ts"),C=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t}(r.Action),N=function(e){function t(){var t=e.call(this)||this;return t.dotsItemPopupModel.horizontalPosition="center",t.minVisibleItemsCount=1,t}return Object(o.__extends)(t,e),t}(r.AdaptiveActionContainer),_=function(e){function t(i,o){var a=e.call(this)||this;return a.options=i,a.isRTLValue=!1,a.alwaySaveTextInPropertyEditorsValue=!1,a.pageEditModeValue="standard",a.newQuestions=[],a.newPanels=[],a.plugins={},a.onElementDeleting=new r.Event,a.onGetPropertyReadOnly=new r.Event,a.onSurveyInstanceCreated=new r.Event,a.onGetObjectDisplayName=new r.Event,a.onElementAllowOperations=new r.Event,a.onDefineElementMenuItems=new r.Event,a.onShowingProperty=new r.Event,a.onCanShowProperty=a.onShowingProperty,a.onPropertyEditorCreated=new r.Event,a.onCanDeleteItem=new r.Event,a.onCollectionItemDeleting=new r.Event,a.onCollectionItemAllowOperations=new r.Event,a.onItemValueAdded=new r.Event,a.onMatrixColumnAdded=new r.Event,a.onSetPropertyEditorOptions=new r.Event,a.onGenerateNewName=new r.Event,a.onPropertyValidationCustomError=new r.Event,a.onPropertyValueChanging=new r.Event,a.onConditionQuestionsGetList=new r.Event,a.onConditionGetTitle=new r.Event,a.onModified=new r.Event,a.onQuestionAdded=new r.Event,a.onPanelAdded=new r.Event,a.onPageAdded=new r.Event,a.onDesignerSurveyCreated=new r.Event,a.onTestSurveyCreated=new r.Event,a.onNotify=new r.Event,a.onSelectedElementChanging=new r.Event,a.onSelectedElementChanged=new r.Event,a.onOpenFileChooser=new r.Event,a.onUploadFile=new r.Event,a.useTabsInElementEditor=!1,a.maxLogicItemsInCondition=-1,a.showObjectTitles=!1,a.showTitlesInExpressions=!1,a.allowEditExpressionsInTextEditor=!0,a.maximumColumnsCount=n.settings.propertyGrid.maximumColumnsCount,a.maximumChoicesCount=n.settings.propertyGrid.maximumChoicesCount,a.maximumRowsCount=n.settings.propertyGrid.maximumRowsCount,a.maximumRateValues=n.settings.propertyGrid.maximumRateValues,a.showPagesInTestSurveyTab=!0,a.showSimulatorInTestSurveyTab=!0,a.allowModifyPages=!0,a.showDefaultLanguageInTestSurveyTab="auto",a.showInvisibleElementsInTestSurveyTab=!0,a.showPageSelectorInToolbar=!1,a.tabbedMenu=new N,a.showErrorOnFailedSave=!0,a.onActiveTabChanged=new r.Event,a.showPropertyGridValue=!0,a.onShowPropertyGridVisiblityChanged=new r.Event,a.onBeforeUndo=new r.Event,a.onBeforeRedo=new r.Event,a.onAfterUndo=new r.Event,a.onAfterRedo=new r.Event,a.onStateChanged=new r.Event,a.notifier=new T.Notifier,a.onKeyDownHandler=function(e){var t,i;Object.keys(a.shortcuts||{}).forEach((function(o){t=a.shortcuts[o],(i=e.metaKey?t.macOsHotkey:t.hotKey)&&!!i.ctrlKey==!!e.ctrlKey&&!!i.shiftKey==!!e.shiftKey&&i.keyCode===e.keyCode&&(i.keyCode<48&&function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase();return-1!==["input","textarea"].indexOf(t)||"span"===t&&e.isContentEditable}(e.target)||t.execute(a.selectElement))}))},a.shortcuts={},a.autoSaveDelay=n.settings.autoSave.delay,a.autoSaveTimerId=null,a.saveNo=0,(o||"string"==typeof a.options||a.options instanceof String)&&(a.options=o||{},p.SurveyHelper.warnText("Creator constructor has one parameter, as creator options, in V2.")),a.toolbarValue=new r.ActionContainer,a.pagesControllerValue=new m.PagesController(a),a.selectionHistoryControllerValue=new g.SelectionHistory(a),a.setOptions(a.options),a.patchMetadata(),a.initSurveyWithJSON(JSON.parse(t.defaultNewSurveyText),!1),a.initTabs(),a.toolbox=new c.QuestionToolbox(a.options&&a.options.questionTypes?a.options.questionTypes:null,a),a.initDragDrop(),a}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"allowEditSurveyTitle",{get:function(){return this.getPropertyValue("allowEditSurveyTitle",!0)},set:function(e){["title","description","logo","showTitle","logoWidth","logoHeight","logoFit"].forEach((function(t){return r.Serializer.findProperty("survey",t).visible=e})),this.setPropertyValue("allowEditSurveyTitle",e),this.designerPropertyGrid&&this.designerPropertyGrid.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"licenseText",{get:function(){return this.getLocString("survey.license")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageEditMode",{get:function(){return this.pageEditModeValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolbarItems",{get:function(){return this.toolbarValue.actions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolbar",{get:function(){return this.toolbarValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showingViewName",{get:function(){return this.activeTab},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignerShowing",{get:function(){return"designer"===this.activeTab},enumerable:!1,configurable:!0}),t.prototype.showDesigner=function(){this.activeTab="designer"},Object.defineProperty(t.prototype,"isTestSurveyShowing",{get:function(){return"test"===this.activeTab},enumerable:!1,configurable:!0}),t.prototype.showTestSurvey=function(){this.activeTab="test"},t.prototype.addPluginTab=function(e,t,i,o,r){var n=this,s=new C({id:e,title:i||a.editorLocalization.getString("ed."+e),componentContent:o||"svc-tab-"+e,data:t,action:function(){return n.makeNewViewActive(e)},active:this.viewType===e});r>=0&&r<this.tabs.length?this.tabs.splice(r,0,s):this.tabs.push(s),this.addPlugin(e,t)},t.prototype.addPlugin=function(e,t){this.plugins[e]=t},t.prototype.getPlugin=function(e){return this.plugins[e]},Object.defineProperty(t.prototype,"tabs",{get:function(){return this.tabbedMenu.actions},set:function(e){this.tabbedMenu.actions=e},enumerable:!1,configurable:!0}),t.prototype.getLocString=function(e){return a.editorLocalization.getString(e)},t.prototype.onSetReadOnly=function(e){},Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},set:function(e){var t=this.text;this.setPropertyValue("readOnly",e),this.onSetReadOnly(e),this.text=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRTL",{get:function(){return this.isRTLValue},set:function(e){this.isRTLValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeTab",{get:function(){return this.viewType},set:function(e){this.makeNewViewActive(e)},enumerable:!1,configurable:!0}),t.prototype.makeNewViewActive=function(e){if(e==this.viewType)return!1;if(!this.canSwitchViewType())return!1;var t=this.activatePlugin(e);return this.viewType=e,this.onActiveTabChanged.fire(this,{tabName:e,plugin:t,model:t?t.model:void 0}),!0},t.prototype.canSwitchViewType=function(){var e=this.currentPlugin;return!e||!e.deactivate||e.deactivate()},t.prototype.activatePlugin=function(e){var t=this.getPlugin(e);return t&&t.activate(),t},Object.defineProperty(t.prototype,"currentPlugin",{get:function(){return this.getPlugin(this.activeTab)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolboxCategories",{get:function(){return this.toolbox.categories},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentTabPropertyGrid",{get:function(){return this.getTabPropertyGrid(this.activeTab)},enumerable:!1,configurable:!0}),t.prototype.getTabPropertyGrid=function(e){return this.getPlugin(e).propertyGrid||null},t.prototype.onSurveyElementPropertyValueChanged=function(e,t,i){throw new Error("Method not implemented.")},Object.defineProperty(t.prototype,"showToolbox",{get:function(){p.SurveyHelper.warnNonSupported("showToolbox")},set:function(e){p.SurveyHelper.warnNonSupported("showToolbox")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPropertyGrid",{get:function(){return this.showPropertyGridValue},set:function(e){!0===e||!1===e?this.showPropertyGrid!==e&&(this.showPropertyGridValue=e,this.onShowPropertyGridVisiblityChanged.fire(this,{show:e})):p.SurveyHelper.warnText("showPropertyGrid propertry grid is a boolean property now.")},enumerable:!1,configurable:!0}),t.prototype.rightContainerActiveItem=function(e){p.SurveyHelper.warnNonSupported("rightContainerActiveItem")},t.prototype.leftContainerActiveItem=function(e){p.SurveyHelper.warnNonSupported("leftContainerActiveItem")},Object.defineProperty(t.prototype,"undoRedoManager",{get:function(){var e=this.getPlugin("undoredo");return e&&e.model.undoRedoManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"undoRedoController",{get:function(){var e=this.getPlugin("undoredo");return e&&e.model},enumerable:!1,configurable:!0}),t.prototype.startUndoRedoTransaction=function(e){void 0===e&&(e=""),this.undoRedoController&&this.undoRedoController.startTransaction(e)},t.prototype.stopUndoRedoTransaction=function(){this.undoRedoController&&this.undoRedoController.stopTransaction()},t.prototype.undo=function(){this.undoRedoController&&this.undoRedoController.undo()},t.prototype.redo=function(){this.undoRedoController&&this.undoRedoController.redo()},Object.defineProperty(t.prototype,"pagesController",{get:function(){return this.pagesControllerValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionHistoryController",{get:function(){return this.selectionHistoryControllerValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.survey.currentPage},set:function(e){this.survey.currentPage=e},enumerable:!1,configurable:!0}),t.prototype.addPage=function(e){var t=e;if(t)this.survey.addPage(t);else{var i=p.SurveyHelper.getNewPageName(this.survey.pages);t=this.survey.addNewPage(i)}return this.selectElement(t),t},t.prototype.initTabs=function(){this.initPlugins(),this.initFooterToolbar(),this.tabs.length>0&&this.makeNewViewActive(this.tabs[0].id)},t.prototype.initPlugins=function(){this.addPlugin("undoredo",new S.UndoRedoPlugin(this)),this.showDesignerTab&&new P.TabDesignerPlugin(this),this.showTestSurveyTab&&new f.TabTestPlugin(this),this.showLogicTab&&new w.TabLogicPlugin(this),this.showJSONEditorTab&&(v.TabJsonEditorAcePlugin.hasAceEditor()?new v.TabJsonEditorAcePlugin(this):new y.TabJsonEditorTextareaPlugin(this)),this.showTranslationTab&&new x.TabTranslationPlugin(this),this.showEmbeddedSurveyTab&&new h.TabEmbedPlugin(this)},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbar||(this.footerToolbar=new r.ActionContainer,["undoredo","designer","test"].forEach((function(t){var i=e.getPlugin(t);i&&i.addFooterActions&&i.addFooterActions()})))},t.prototype.getOptions=function(){return this.options||{}},t.prototype.setOptions=function(e){e||(e={}),e.hasOwnProperty("generateValidJSON")||(e.generateValidJSON=!0),this.options=e,this.showDesignerTab=void 0===e.showDesignerTab||e.showDesignerTab,this.showLogicTab=void 0!==e.showLogicTab&&e.showLogicTab,this.showJSONEditorTab=void 0===e.showJSONEditorTab||e.showJSONEditorTab,this.showTestSurveyTab=void 0===e.showTestSurveyTab||e.showTestSurveyTab,this.allowEditSurveyTitle=void 0===e.allowEditSurveyTitle||e.allowEditSurveyTitle,this.showEmbeddedSurveyTab=void 0!==e.showEmbeddedSurveyTab&&e.showEmbeddedSurveyTab,this.showTranslationTab=void 0!==e.showTranslationTab&&e.showTranslationTab,this.showLogicTab=void 0!==e.showLogicTab&&e.showLogicTab,this.haveCommercialLicense=void 0!==e.haveCommercialLicense&&e.haveCommercialLicense,this.showObjectTitles=void 0!==e.showObjectTitles&&e.showObjectTitles,this.showTitlesInExpressions=void 0!==e.showTitlesInExpressions&&e.showTitlesInExpressions,this.allowEditExpressionsInTextEditor=void 0===e.allowEditExpressionsInTextEditor||e.allowEditExpressionsInTextEditor,void 0!==e.maximumColumnsCount&&(this.maximumColumnsCount=e.maximumColumnsCount),void 0!==e.maximumChoicesCount&&(this.maximumChoicesCount=e.maximumChoicesCount),void 0!==e.maximumRowsCount&&(this.maximumRowsCount=e.maxiumumRowsCount),void 0!==e.maximumRateValues&&(this.maximumRateValues=e.maximumRateValues),this.useTabsInElementEditor=void 0!==e.useTabsInElementEditor&&e.useTabsInElementEditor,this.maxLogicItemsInCondition=void 0!==e.maxLogicItemsInCondition?e.maxLogicItemsInCondition:-1,this.showState=void 0!==e.showState&&e.showState,this.showOptions=void 0!==e.showOptions&&e.showOptions,this.generateValidJSON=this.options.generateValidJSON,this.isAutoSave=void 0!==e.isAutoSave&&e.isAutoSave,this.showErrorOnFailedSave=void 0===e.showErrorOnFailedSave||e.showErrorOnFailedSave,this.isRTLValue=void 0!==e.isRTL&&e.isRTL,void 0!==e.readOnly&&(this.readOnly=e.readOnly),void 0!==e.showPagesInTestSurveyTab&&(this.showPagesInTestSurveyTab=e.showPagesInTestSurveyTab),void 0!==e.showSimulatorInTestSurveyTab&&(this.showSimulatorInTestSurveyTab=e.showSimulatorInTestSurveyTab),void 0!==e.showDefaultLanguageInTestSurveyTab&&(this.showDefaultLanguageInTestSurveyTab=e.showDefaultLanguageInTestSurveyTab),void 0!==e.showInvisibleElementsInTestSurveyTab&&(this.showInvisibleElementsInTestSurveyTab=e.showInvisibleElementsInTestSurveyTab),void 0!==e.allowModifyPages&&(this.allowModifyPages=e.allowModifyPages),void 0!==e.pageEditMode&&(this.pageEditModeValue=e.pageEditMode,"single"===this.pageEditModeValue&&(r.Serializer.findProperty("survey","pages").visible=!1,r.Serializer.findProperty("question","page").visible=!1,r.Serializer.findProperty("panel","page").visible=!1,this.showJSONEditorTab=!1))},t.prototype.patchMetadata=function(){r.Serializer.findProperty("survey","title").placeholder="pe.surveyTitlePlaceholder",r.Serializer.findProperty("survey","description").placeholder="pe.surveyDescriptionPlaceholder";var e=r.Serializer.findProperty("survey","logoPosition");e.defaultValue="right",e.isSerializable=!1,e.visible=!1,r.Serializer.findProperty("page","title").placeholder="pe.pageTitlePlaceholder",r.Serializer.findProperty("page","description").placeholder="pe.pageDescriptionPlaceholder"},t.prototype.isCanModifyProperty=function(e,t){var i,o,n=r.Serializer.findProperty(e.getType(),t);if(e instanceof r.ItemValue){if(i=e.locOwner,o=r.Serializer.findProperty(i.getType(),e.ownerPropertyName),!1===this.getElementAllowOperations(i).allowEdit)return!1;var a={allowDelete:!0,allowEdit:!0};if(this.onCollectionItemAllowingCallback(i,n,i.getPropertyValue(o.name),e,a),!1===a.allowEdit)return!1;if(this.onIsPropertyReadOnlyCallback(i,o,o.readOnly,null,null))return!1}return!(e instanceof r.SurveyElement&&!1===this.getElementAllowOperations(e).allowEdit)&&(!n||!this.onIsPropertyReadOnlyCallback(e,n,n.readOnly,i,o))},t.prototype.onIsPropertyReadOnlyCallback=function(e,t,i,o,r){var n=this.readOnly||i;if(this.onGetPropertyReadOnly.isEmpty)return n;var a={obj:e,property:t,readOnly:n,propertyName:t.name,parentObj:o,parentProperty:r};return this.onGetPropertyReadOnly.fire(this,a),a.readOnly},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.initSurveyWithJSON=function(e,t){var i=this;this.existingPages={};var o=this.createSurvey({});o.css=r.defaultV2Css,o.setDesignMode(!0),o.lazyRendering=!0,o.setJsonObject(e),o.isEmpty&&o.setJsonObject(this.getDefaultSurveyJson()),o.pages.forEach((function(e){i.existingPages[e.id]=!0})),this.onDesignerSurveyCreated.fire(this,{survey:o}),o.onQuestionAdded.add((function(e,t){i.doOnQuestionAdded(t.question,t.parentPanel)})),o.onPanelAdded.add((function(e,t){i.doOnPanelAdded(t.panel,t.parentPanel)})),o.onPageAdded.add((function(e,t){i.existingPages[t.page.id]||(i.existingPages[t.page.id]=!0,i.doOnPageAdded(t.page))})),o.onGetMatrixRowActions.add((function(e,t){Object(k.updateMatrixRemoveAction)(t.question,t.actions,t.row)})),this.setSurvey(o);var n=this.getPlugin(this.activeTab);n&&n.update&&n.update()},t.prototype.initDragDrop=function(){this.initDragDropSurveyElements(),this.initDragDropChoices()},t.prototype.initDragDropSurveyElements=function(){var e=this;r.DragDropSurveyElements.restrictDragQuestionBetweenPages=n.settings.dragDrop.restrictDragQuestionBetweenPages,this.dragDropSurveyElements=new r.DragDropSurveyElements(null,this),this.dragDropSurveyElements.onBeforeDrop.add((function(t,i){e.startUndoRedoTransaction("drag drop")})),this.dragDropSurveyElements.onAfterDrop.add((function(t,i){e.stopUndoRedoTransaction(),e.selectElement(i.draggedElement,void 0,!1)}))},t.prototype.initDragDropChoices=function(){var e=this;this.dragDropChoices=new r.DragDropChoices(null,this),this.dragDropChoices.onBeforeDrop.add((function(t,i){e.startUndoRedoTransaction("drag drop")})),this.dragDropChoices.onAfterDrop.add((function(t,i){e.stopUndoRedoTransaction(),e.selectElement(i.draggedElement,void 0,!1)}))},t.prototype.updateElementsOnLocaleChanged=function(e,t){if("survey"===e.getType()&&"locale"===t)for(var i=this.survey.pages,o=0;o<i.length;o++)i[o].locStrsChanged()},t.prototype.updateConditionsOnQuestionNameChanged=function(e,t,i){if(this.isObjQuestion(e)&&("name"!==t||e.valueName||this.updateConditions(i,e.name),"valueName"===t)){var o=i||e.name,r=e.valueName?e.valueName:e.name;this.updateConditions(o,r)}},t.prototype.updatePagesController=function(e,t){"name"!=t&&"title"!=t||!this.isObjPage(e)||this.pagesController.pageNameChanged(e)},t.prototype.updateConditions=function(e,t){e!==t&&new b.SurveyLogic(this.survey,this).renameQuestion(e,t)},t.prototype.isObjQuestion=function(e){return this.isObjThisType(e,"question")},t.prototype.isObjPage=function(e){return this.isObjThisType(e,"page")},t.prototype.isObjThisType=function(e,t){for(var i=r.Serializer.findClass(e.getType());i&&i.parentName;){if(i.name===t)return!0;i=r.Serializer.findClass(i.parentName)}return!!i&&i.name===t},t.prototype.doOnQuestionAdded=function(e,t){e.name=this.generateUniqueName(e,e.name);var i={question:e,page:this.getPageByElement(e)};this.onQuestionAdded.fire(this,i)},t.prototype.doOnPanelAdded=function(e,t){var i={panel:e,page:this.getPageByElement(e)};this.onPanelAdded.fire(this,i)},t.prototype.doOnPageAdded=function(e){var t={page:e};this.onPageAdded.fire(this,t),this.setModified({type:"PAGE_ADDED",newValue:t.page})},t.prototype.getPageByElement=function(e){return this.survey.getPageByElement(e)},t.prototype.getDefaultSurveyJson=function(){var e=n.settings.defaultNewSurveyJSON;return e.pages&&e.pages.length>0&&e.pages[0].name&&(e.pages[0].name=a.editorLocalization.getString("ed.newPageName")+"1"),e},t.prototype.setSurvey=function(e){this.surveyValue&&this.surveyValue.dispose(),this.surveyValue=e,this.selectElement(e),this.pagesController.onSurveyChanged(),this.selectionHistoryController.reset()},t.prototype.getSurveyTextFromDesigner=function(){if(!this.survey)return"";var e=this.survey.toJSON();return this.options&&this.options.generateValidJSON?JSON.stringify(e,null,1):(new s.SurveyJSON5).stringify(e,null,1)},t.prototype.setTextValue=function(e){this.setSurveyJSONTextCallback&&this.setSurveyJSONTextCallback(e)},t.prototype.changeText=function(e,t){void 0===t&&(t=!1),this.setTextValue(e);var i=new u.SurveyTextWorker(e);i.isJsonCorrect?this.initSurveyWithJSON(i.survey.toJSON(),t):this.viewType="editor"},Object.defineProperty(t.prototype,"text",{get:function(){return this.getSurveyJSONTextCallback?this.getSurveyJSONTextCallback().text:this.getSurveyTextFromDesigner()},set:function(e){this.changeText(e,!0)},enumerable:!1,configurable:!0}),t.prototype.getSurveyJSON=function(){if("editor"!=this.viewType)return(new r.JsonObject).toJsonObject(this.survey);var e=this.text,t=new u.SurveyTextWorker(e);return t.isJsonCorrect?(new r.JsonObject).toJsonObject(t.survey):null},t.prototype.getObjectDisplayName=function(e,t,i){void 0===t&&(t=void 0),void 0===i&&(i=void 0),i||(i=p.SurveyHelper.getObjectName(e,this.showObjectTitles));var o={obj:e,displayName:i,reason:t};return this.onGetObjectDisplayName.fire(this,o),o.displayName},t.prototype.createSurvey=function(e,t){void 0===e&&(e={}),void 0===t&&(t="designer");var i=this.createSurveyCore(e,t);return"designer"!=t&&"test"!=t&&(i.locale=a.editorLocalization.currentLocale),this.onSurveyInstanceCreated.fire(this,{survey:i,reason:t}),i},t.prototype.createSurveyCore=function(e,t){throw void 0===e&&(e={}),new Error("createSurveyCore method should be overridden/implemented")},Object.defineProperty(t.prototype,"state",{get:function(){return this._stateValue?this._stateValue:""},enumerable:!1,configurable:!0}),t.prototype.setState=function(e){this._stateValue=e,this.onStateChanged.fire(this,{val:e}),e&&this.notify(this.getLocString("ed."+e))},t.prototype.setModified=function(e){void 0===e&&(e=null),this.setState("modified"),this.onModified.fire(this,e),this.isAutoSave&&this.doAutoSave()},t.prototype.notify=function(e,t){void 0===t&&(t="info"),this.onNotify.isEmpty?this.notifier.notify(e,t):this.onNotify.fire(this,{message:e})},t.prototype.convertQuestion=function(e,t){var i=l.QuestionConverter.convertObject(e,t);return this.setModified({type:"QUESTION_CONVERTED",className:t,oldValue:e,newValue:i}),i},Object.defineProperty(t.prototype,"JSON",{get:function(){return this.survey.toJSON()},set:function(e){"editor"==this.viewType?this.setTextValue(JSON.stringify(e)):this.initSurveyWithJSON(e,!0)},enumerable:!1,configurable:!0}),t.prototype.loadSurvey=function(e){var t=this;(new r.dxSurveyService).loadSurvey(e,(function(e,i,o){e&&i&&(t.JSON=i)}))},t.prototype.doClickQuestionCore=function(e,t,i){void 0===t&&(t="ADDED_FROM_TOOLBOX"),void 0===i&&(i=-1),0==this.survey.pageCount&&this.survey.addNewPage();var o=this.currentPage,r=this.getSelectedSurveyElement();r&&r.parent&&r.page==o&&(o=r.parent,i<0&&(i=o.elements.indexOf(r))>-1&&i++);var n=this.findRowByElement(r,o);n&&this.isRowMultiline(n)?this.addElemenMultiline(o,e,i,n):o.addElement(e,i),this.setModified({type:t,question:e})},t.prototype.isRowMultiline=function(e){return e.elements.length>1},t.prototype.findRowByElement=function(e,t){return e?e.isPage?e.rows[e.rows.length-1]:t.rows.find((function(t){return-1!==t.elements.indexOf(e)})):null},t.prototype.addElemenMultiline=function(e,t,i,o){var r=o.elements.length,n=o.elements[r-1];n.startWithNewLine=!0,e.addElement(t,i),n.startWithNewLine=!1},t.prototype.setNewNames=function(e){this.newQuestions=[],this.newPanels=[],this.newQuestionChangedNames={},this.setNewNamesCore(e),this.updateNewElementExpressions(e)},t.prototype.updateNewElementExpressions=function(e){var t=this.createSurvey({},"updateNewElementExpressions");t.setDesignMode(!0),e.isPage?t.addPage(e):(t.addNewPage("p1"),t.pages[0].addElement(e));var i=new b.SurveyLogic(t);for(var o in this.newQuestionChangedNames)i.renameQuestion(o,this.newQuestionChangedNames[o])},t.prototype.getAllQuestions=function(){for(var e=[],t=0;t<this.survey.pages.length;t++)this.addElements(this.survey.pages[t].elements,!1,e);return this.addElements(this.newPanels,!1,e),this.addElements(this.newQuestions,!1,e),e},t.prototype.getAllPanels=function(){for(var e=[],t=0;t<this.survey.pages.length;t++)this.addElements(this.survey.pages[t].elements,!0,e);return this.addElements(this.newPanels,!0,e),this.addElements(this.newQuestions,!0,e),e},t.prototype.addElements=function(e,t,i){for(var o=0;o<e.length;o++)e[o].isPanel===t&&i.push(e[o]),this.addElements(p.SurveyHelper.getElements(e[o]),t,i)},t.prototype.getNewName=function(e,t){return"page"==e?p.SurveyHelper.getNewPageName(this.survey.pages):t?this.getNewPanelName():this.getNewQuestionName()},t.prototype.getNewQuestionName=function(){return p.SurveyHelper.getNewQuestionName(this.getAllQuestions())},t.prototype.getNewPanelName=function(){return p.SurveyHelper.getNewPanelName(this.getAllPanels())},t.prototype.setNewNamesCore=function(e){var t=e.getType(),i=this.getNewName(t,e.isPanel);if(i!=e.name&&(this.newQuestionChangedNames[e.name]=i,e.name=i),e.isPanel||"page"==t){e.isPanel&&this.newPanels.push(e);for(var o=e,r=0;r<o.elements.length;r++)this.setNewNamesCore(o.elements[r])}else this.newQuestions.push(e)},t.prototype.createNewElement=function(e){var t=r.Serializer.createClass(e.type);return(new r.JsonObject).toObject(e,t),this.setNewNames(t),t},t.prototype.copyElement=function(e){var t=(new r.JsonObject).toJsonObject(e);return t.type=e.getType(),this.createNewElement(t)},t.prototype.fastCopyQuestion=function(e){var t=this.copyElement(e),i=e.parent?e.parent.elements.indexOf(e)+1:-1;return this.doClickQuestionCore(t,"ELEMENT_COPIED",i),t},Object.defineProperty(t.prototype,"selectedElement",{get:function(){return this.selectedElementValue},set:function(e){this.selectElement(e)},enumerable:!1,configurable:!0}),t.prototype.deleteCurrentObject=function(){this.deleteCurrentElement()},t.prototype.deleteCurrentElement=function(){this.deleteObject(this.selectedElement)},t.prototype.deleteElement=function(e){this.deleteObject(e)},t.prototype.copyPage=function(e){var t=this.copyElement(e),i=this.survey.pages.indexOf(e);return i>-1?this.survey.pages.splice(i+1,0,t):this.survey.pages.push(t),t},t.prototype.deleteObjectCore=function(e){if(e.isPage){var t=this.getNextPage(e);this.survey.removePage(e),this.selectElement(t||this.survey)}else this.deletePanelOrQuestion(e);this.setModified({type:"OBJECT_DELETED",target:e}),this.updateConditionsOnRemove(e)},t.prototype.getNextPage=function(e){var t=this.survey.pages.indexOf(e);return t<0||1==this.survey.pages.length?null:(t==this.survey.pages.length-1?t--:t++,t<0||t>this.survey.pages.length-1?null:this.survey.pages[t])},t.prototype.deleteObject=function(e){var t={element:e,elementType:p.SurveyHelper.getObjectType(e),allowing:!0};this.onElementDeleting.fire(this,t),t.allowing&&this.deleteObjectCore(e)},t.prototype.updateConditionsOnRemove=function(e){if(p.SurveyHelper.getObjectType(e)==p.ObjType.Question)t=[e];else var t=e.questions;if(t)for(var i=new b.SurveyLogic(this.survey,this),o=0;o<t.length;o++)i.removeQuestion(t[o].getValueName())},t.prototype.isElementSelected=function(e){return!(!e||e.isDisposed)&&e.getPropertyValue("isSelectedInDesigner")},t.prototype.selectElement=function(e,t,i){void 0===i&&(i=!0);var o=this.selectedElement;o!==e&&(this.selectedElementValue=this.onSelectingElement(e),o!==this.selectedElementValue&&(o&&!o.isDisposed&&o.setPropertyValue("isSelectedInDesigner",!1),this.selectedElementValue&&this.selectedElementValue.setPropertyValue("isSelectedInDesigner",!0))),(o!==e||t)&&this.selectionChanged(this.selectedElement,t,i);var r=this.getSelectedSurveyElement();o!==e&&i&&document&&r&&setTimeout((function(){var e=document.getElementById(r.id);e&&(e.scrollIntoView({block:"center"}),t||e.parentElement&&e.parentElement.focus())}),100)},t.prototype.getSelectedSurveyElement=function(){var e=this.selectedElement;return e&&"survey"!=e.getType()&&e.isInteractiveDesignElement&&e.id?e:null},t.prototype.onSelectingElement=function(e){var t={newSelectedElement:e};return this.onSelectedElementChanging.fire(this,t),t.newSelectedElement},Object.defineProperty(t.prototype,"designerPropertyGrid",{get:function(){var e=this.getPlugin("designer");return e?e.propertyGrid.model:null},enumerable:!1,configurable:!0}),t.prototype.collapsePropertyGridCategory=function(e){this.designerPropertyGrid&&this.designerPropertyGrid.collapseCategory(e)},t.prototype.expandPropertyGridCategory=function(e){this.designerPropertyGrid&&this.designerPropertyGrid.expandCategory(e)},t.prototype.collapseAllPropertyGridCategories=function(){this.designerPropertyGrid&&this.designerPropertyGrid.collapseAllCategories()},t.prototype.expandAllPropertyGridCategories=function(){this.designerPropertyGrid&&this.designerPropertyGrid.expandAllCategories()},t.prototype.collapseAllPropertyTabs=function(){this.collapseAllPropertyGridCategories()},t.prototype.expandAllPropertyTabs=function(){this.expandAllPropertyGridCategories()},t.prototype.expandPropertyTab=function(e){this.expandPropertyGridCategory(e)},t.prototype.collapsePropertyTab=function(e){this.collapsePropertyGridCategory(e)},t.prototype.validateSelectedElement=function(){var e=!0;return this.selectedElement?(this.designerPropertyGrid&&(e=this.designerPropertyGrid.validate()),e):e},t.prototype.selectionChanged=function(e,t,i){void 0===i&&(i=!0),this.survey.currentPage=this.getCurrentPageByElement(e),this.selectionHistoryController.onObjSelected(e),this.designerPropertyGrid&&(this.designerPropertyGrid.obj=e,t||(t=this.designerPropertyGrid.currentlySelectedProperty),t&&this.designerPropertyGrid.selectProperty(t,i||!this.selectFromStringEditor),this.selectFromStringEditor=!1);var o={newSelectedElement:e};this.onSelectedElementChanged.fire(this,o)},t.prototype.getCurrentPageByElement=function(e){if(e)return e.isPage?e:e.page?e.page:e.parentQuestion?this.getCurrentPageByElement(e.parentQuestion):void 0},t.prototype.clickToolboxItem=function(e){this.readOnly||(void 0===e.getType&&(e=this.createNewElement(e)),this.survey.lazyRendering=!1,this.doClickQuestionCore(e),this.selectElement(e))},t.prototype.getJSONForNewElement=function(e){var t=this.createNewElement(e);return(e=t.toJSON()).type=t.getType(),e},t.prototype.chooseFiles=function(e,t){if(this.onOpenFileChooser.isEmpty){if(!window.FileReader)return;e.value="",e.onchange=function(i){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var o=[],r=0;r<e.files.length;r++)o.push(e.files[r]);t(o)}},e.click()}else this.onOpenFileChooser.fire(this,{input:e,callback:t})},t.prototype.uploadFiles=function(e,t){if(this.onUploadFile.isEmpty){var i=new FileReader;i.onload=function(e){t("success",i.result)},i.readAsDataURL(e[0])}else this.onUploadFile.fire(this,{files:e||[],callback:t})},t.prototype.initKeyboardShortcuts=function(e){e.addEventListener("keydown",this.onKeyDownHandler)},t.prototype.removeKeyboardShortcuts=function(e){e.removeEventListener("keydown",this.onKeyDownHandler)},t.prototype.registerShortcut=function(e,t){this.shortcuts[e]=t},t.prototype.unRegisterShortcut=function(e){delete this.shortcuts[e]},t.prototype.deletePanelOrQuestion=function(e){var t=e.parent,i=t.elements,o=i.indexOf(e);o==i.length-1&&o--,e.delete(),this.selectElement(o>-1?i[o]:t)},t.prototype.onCanShowObjectProperty=function(e,t,i,o,r){var n={obj:e,property:t,canShow:!0,showMode:i,parentObj:o,parentProperty:r};return this.onCanShowProperty.fire(this,n),n.canShow},t.prototype.canDeleteItem=function(e,t,i){var o={obj:e,item:t,canDelete:i};return this.onCanDeleteItem.fire(this,o),o.canDelete},t.prototype.getErrorOnPropertyChanging=function(e,t,i){return"name"!==t||p.SurveyHelper.getObjectType(e)===p.ObjType.Unknown?null:(p.SurveyHelper.getObjectType(e)===p.ObjType.Column?e.colOwner&&!this.isNameUniqueInArray(e.colOwner.columns,e,i):this.generateUniqueName(e,i)!==i)?this.getLocString("pe.propertyNameIsNotUnique"):null},t.prototype.generateUniqueName=function(e,t){var i={element:e,name:t,isUnique:!0};do{for(i.isUnique||(i.name=p.SurveyHelper.generateNewName(i.name));!this.isNameUnique(e,i.name);)i.name=p.SurveyHelper.generateNewName(i.name);i.isUnique=!0;var o=i.name;this.onGenerateNewName.fire(this,i),o!=i.name&&(i.isUnique=this.isNameUnique(e,i.name))}while(!i.isUnique);return i.name},t.prototype.isNameUnique=function(e,t){return!!this.isNameUniqueInArray(this.survey.pages,e,t)&&!!this.isNameUniqueInArray(this.survey.getAllPanels(),e,t)&&this.isNameUniqueInArray(this.survey.getAllQuestions(),e,t)},t.prototype.isNameUniqueInArray=function(e,t,i){if(!Array.isArray(e))return!0;i=i.toLowerCase();for(var o=0;o<e.length;o++)if(e[o]!=t&&e[o].name.toLowerCase()==i)return!1;return!0},t.prototype.doPropertyGridChanged=function(){},Object.defineProperty(t.prototype,"alwaySaveTextInPropertyEditors",{get:function(){return this.alwaySaveTextInPropertyEditorsValue},set:function(e){this.alwaySaveTextInPropertyEditorsValue=e},enumerable:!1,configurable:!0}),t.prototype.onCanShowPropertyCallback=function(e,t,i,o,r){return void 0===i&&(i=null),this.onCanShowObjectProperty(e,t,i,o,r)},t.prototype.onPropertyEditorCreatedCallback=function(e,t,i){var o={obj:e,property:t,editor:i};this.onPropertyEditorCreated.fire(this,o)},t.prototype.onCanDeleteItemCallback=function(e,t,i){return this.canDeleteItem(e,t,i)},t.prototype.onCollectionItemDeletingCallback=function(e,t,i,o){if(this.onCollectionItemDeleting.isEmpty)return!0;var r={obj:e,property:t,propertyName:t.name,collection:i,item:o,allowDelete:!0};return this.onCollectionItemDeleting.fire(this,r),r.allowDelete},t.prototype.onCollectionItemAllowingCallback=function(e,t,i,o,r){if(!this.onCollectionItemAllowOperations.isEmpty){var n={obj:e,property:t,propertyName:t&&t.name,collection:i,item:o,allowEdit:r.allowEdit,allowDelete:r.allowDelete};this.onCollectionItemAllowOperations.fire(this,n),r.allowEdit=n.allowEdit,r.allowDelete=n.allowDelete}},t.prototype.onItemValueAddedCallback=function(e,t,i,o){var r={obj:e,propertyName:t,newItem:i,itemValues:o};this.onItemValueAdded.fire(this,r)},t.prototype.onMatrixDropdownColumnAddedCallback=function(e,t,i){var o={newColumn:t,matrix:e,columns:i};this.onMatrixColumnAdded.fire(this,o)},t.prototype.onSetPropertyEditorOptionsCallback=function(e,t,i){var o={propertyName:e,obj:t,editorOptions:i};this.onSetPropertyEditorOptions.fire(this,o)},t.prototype.onGetErrorTextOnValidationCallback=function(e,t,i){var o=this.getErrorOnPropertyChanging(t,e,i);if(o)return o;var r={propertyName:e,obj:t,value:i,error:""};return this.onPropertyValidationCustomError.fire(this,r),r.error},t.prototype.onValueChangingCallback=function(e){this.onPropertyValueChanging.fire(this,e)},t.prototype.onGetElementEditorTitleCallback=function(e,t){return t},t.prototype.onConditionQuestionsGetListCallback=function(e,t,i,o){var r={propertyName:e,obj:t,editor:i,list:o};if(this.onConditionQuestionsGetList.fire(this,r),r.list!==o){o.splice(0,o.length);for(var n=0;n<r.list.length;n++)o.push(r.list[n])}},t.prototype.onConditionGetTitleCallback=function(e,t){var i={expression:e,title:t};return this.onConditionGetTitle.fire(this,i),i.title},t.prototype.doAutoSave=function(){if(this.autoSaveDelay<=0)this.doSave();else{this.autoSaveTimerId&&clearTimeout(this.autoSaveTimerId);var e=this;this.autoSaveTimerId=setTimeout((function(){clearTimeout(e.autoSaveTimerId),e.autoSaveTimerId=null,e.doSave()}),this.autoSaveDelay)}},t.prototype.doSave=function(){var e=this;this.setState("saving"),this.saveSurveyFunc&&(this.saveNo++,this.saveSurveyFunc(this.saveNo,(function(t,i){e.saveNo===t&&(i?e.setState("saved"):(e.showErrorOnFailedSave&&e.notify(e.getLocString("ed.saveError")),e.setState("modified")))})))},Object.defineProperty(t.prototype,"saveSurveyFunc",{get:function(){return this.saveSurveyFuncValue},set:function(e){this.saveSurveyFuncValue=e,this.showSaveButton=null!=e&&!this.isAutoSave},enumerable:!1,configurable:!0}),t.prototype.convertCurrentQuestion=function(e){var t=this.selectedElement;p.SurveyHelper.getObjectType(t)===p.ObjType.Question&&(t=this.convertQuestion(t,e),this.selectElement(t))},Object.defineProperty(t.prototype,"addNewQuestionText",{get:function(){var e=this;if(this.currentAddQuestionType){var t=this.getLocString("ed.addNewTypeQuestion");if(t&&t.format)return t.format(this.toolbox.items.filter((function(t){return t.name==e.currentAddQuestionType}))[0].title)}return this.getLocString("ed.addNewQuestion")},enumerable:!1,configurable:!0}),t.prototype.getQuestionTypeSelectorModel=function(e){var t=this,i=this.toolbox.items.map((function(e){return t.createIActionBarItemByClass(e.name,e.title)})),o=new r.PopupModel("sv-list",{model:new r.ListModel(i,(function(i){t.currentAddQuestionType=i.id,t.addNewQuestionInPage(e),o.toggleVisibility()}),!1)},"bottom","center");return{iconName:"icon-dots",action:function(){o.toggleVisibility()},popupModel:o}},t.prototype.addNewQuestionInPage=function(e){e();var t=r.ElementFactory.Instance.createElement(this.currentAddQuestionType||"text","q1");t?this.setNewNames(t):t=this.createNewElement({type:this.currentAddQuestionType}),this.clickToolboxItem(t)},t.prototype.createIActionBarItemByClass=function(e,t){return void 0===t&&(t=null),new r.Action({title:t||this.getLocString("qt."+e),id:e,iconName:"icon-"+e})},t.prototype.onElementMenuItemsChanged=function(e,t){this.onDefineElementMenuItems.fire(this,{obj:e,items:t})},t.prototype.getElementAllowOperations=function(e){var t={obj:e,element:e,allowDelete:!0,allowCopy:!0,allowDragging:!0,allowChangeType:!0,allowChangeRequired:!0};return this.onElementAllowOperations.fire(this,t),t},t.prototype.getNextItemValue=function(e){var t=r.surveyLocalization.getString("choices_Item"),i=e.choices.map((function(e){return e.value}));return Object(d.getNextValue)(t,i)},t.prototype.createNewItemValue=function(e){var t=this.getNextItemValue(e);return e.createItemValue(t)},t.prototype.onPropertyValueChanged=function(t,i,o){var r=this;e.prototype.onPropertyValueChanged.call(this,t,i,o),"viewType"===t&&this.tabs.forEach((function(e){return e.active=r.viewType===e.id}))},t.prototype.initResponsivityManager=function(e){this.responsivityManager=new E.CreatorResponsivityManager(e,this)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.defaultNewSurveyText='{ "pages": [ { "name": "page1"}] }',Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showDesignerTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showJSONEditorTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showTestSurveyTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showEmbeddedSurveyTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showTranslationTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showLogicTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"haveCommercialLicense",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isAutoSave",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"showOptions",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showState",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showSearch",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"generateValidJSON",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:""})],t.prototype,"currentAddQuestionType",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"surveyValue",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"viewType",void 0),Object(o.__decorate)([Object(S.undoRedoTransaction)()],t.prototype,"addPage",null),Object(o.__decorate)([Object(S.ignoreUndoRedo)()],t.prototype,"doOnQuestionAdded",null),Object(o.__decorate)([Object(S.ignoreUndoRedo)()],t.prototype,"doOnPanelAdded",null),Object(o.__decorate)([Object(S.ignoreUndoRedo)()],t.prototype,"doOnPageAdded",null),Object(o.__decorate)([Object(r.property)()],t.prototype,"_stateValue",void 0),Object(o.__decorate)([Object(S.undoRedoTransaction)()],t.prototype,"deleteObject",null),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showSaveButton",void 0),Object(o.__decorate)([Object(S.undoRedoTransaction)()],t.prototype,"convertCurrentQuestion",null),Object(o.__decorate)([Object(S.undoRedoTransaction)()],t.prototype,"addNewQuestionInPage",null),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"showPageNavigator",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:n.settings.layout.showTabs})],t.prototype,"showTabs",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:n.settings.layout.showToolbar})],t.prototype,"showToolbar",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isMobileView",void 0),t}(r.Base),O=function(){function e(){}return Object.defineProperty(e,"currentTheme",{get:function(){p.SurveyHelper.warnNonSupported("StylesManager")},set:function(e){p.SurveyHelper.warnNonSupported("StylesManager")},enumerable:!1,configurable:!0}),e.applyTheme=function(e){p.SurveyHelper.warnNonSupported("StylesManager")},e}();function V(e,t,i){if("logo-image"===t)return"svc-logo-image";if("cell"===t||"column-header"===t||"row-header"===t)return"svc-matrix-cell";if(!e.isContentElement){if(e instanceof r.Question)return i?"dropdown"==e.getType()?"svc-cell-dropdown-question":"svc-cell-question":e.customWidget?"svc-widget-question":"dropdown"==e.getType()?"svc-dropdown-question":"image"==e.getType()?"svc-image-question":"rating"==e.getType()?"svc-rating-question":"svc-question";if(e instanceof r.PanelModel)return"svc-panel"}}function A(e,t,i){return"logo-image"===t?i:"cell"===t||"column-header"===t||"row-header"===t?{creator:i,element:e,question:e.question,row:e.row,column:e.column}:V(e,t,!1)?e instanceof r.Question||e instanceof r.PanelModel?i:null:void 0}function j(e,t){return t.isContentElement?r.SurveyModel.TemplateRendererComponentName:"imagepicker"===t.getType()?"svc-image-item-value":"svc-item-value"}function z(e,t,i){return t.isContentElement?e:{creator:i,question:t,item:e}}function M(e,t){return!(e.parentQuestion instanceof r.QuestionMatrixDropdownModelBase)&&(!e.isContentElement||e.isEditableTemplateElement)}},"./src/creator-responsivity-manager.ts":
308
+ /*! exports provided: TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorBase, StylesManager, getElementWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable */function(e,t,i){"use strict";i.r(t),i.d(t,"TabbedMenuItem",(function(){return N})),i.d(t,"TabbedMenuContainer",(function(){return O})),i.d(t,"ToolbarActionContainer",(function(){return _})),i.d(t,"CreatorBase",(function(){return A})),i.d(t,"StylesManager",(function(){return j})),i.d(t,"getElementWrapperComponentName",(function(){return V})),i.d(t,"getElementWrapperComponentData",(function(){return I})),i.d(t,"getItemValueWrapperComponentName",(function(){return z})),i.d(t,"getItemValueWrapperComponentData",(function(){return M})),i.d(t,"isStringEditable",(function(){return q}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ./settings */"./src/settings.ts"),a=i(/*! ./editorLocalization */"./src/editorLocalization.ts"),s=i(/*! ./json5 */"./src/json5.ts"),l=i(/*! ./questionconverter */"./src/questionconverter.ts"),u=i(/*! ./textWorker */"./src/textWorker.ts"),c=i(/*! ./toolbox */"./src/toolbox.ts"),d=i(/*! ./utils/utils */"./src/utils/utils.ts"),p=i(/*! ./survey-helper */"./src/survey-helper.ts"),m=i(/*! ./pages-controller */"./src/pages-controller.ts"),g=i(/*! ./selection-history */"./src/selection-history.ts"),h=i(/*! ./components/tabs/embed */"./src/components/tabs/embed.ts"),v=i(/*! ./components/tabs/json-editor-ace */"./src/components/tabs/json-editor-ace.ts"),y=i(/*! ./components/tabs/json-editor-textarea */"./src/components/tabs/json-editor-textarea.ts"),f=i(/*! ./components/tabs/test-plugin */"./src/components/tabs/test-plugin.ts"),b=i(/*! ./components/tabs/logic */"./src/components/tabs/logic.ts"),x=i(/*! ./components/tabs/translation-plugin */"./src/components/tabs/translation-plugin.ts"),w=i(/*! ./components/tabs/logic-plugin */"./src/components/tabs/logic-plugin.ts"),T=i(/*! ./components/notifier */"./src/components/notifier.ts"),k=i(/*! ./utils/actions */"./src/utils/actions.ts"),S=i(/*! ./plugins/undo-redo */"./src/plugins/undo-redo/index.ts"),P=i(/*! ./components/tabs/designer-plugin */"./src/components/tabs/designer-plugin.ts"),E=i(/*! ./creator-responsivity-manager */"./src/creator-responsivity-manager.ts"),C=i(/*! ./components/side-bar/side-bar-model */"./src/components/side-bar/side-bar-model.ts"),N=(i(/*! ./components/creator.scss */"./src/components/creator.scss"),i(/*! ./components/string-editor.scss */"./src/components/string-editor.scss"),i(/*! ./creator-theme/creator.scss */"./src/creator-theme/creator.scss"),function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t}(r.Action)),O=function(e){function t(){var t=e.call(this)||this;return t.dotsItemPopupModel.horizontalPosition="center",t.minVisibleItemsCount=1,t}return Object(o.__extends)(t,e),t}(r.AdaptiveActionContainer),_=function(e){function t(t){var i=e.call(this)||this;return i.creator=t,i}return Object(o.__extends)(t,e),t.prototype.getRenderedActions=function(){var e=this.actions,t=this.creator.sideBar.getExpandAction(),i=e.indexOf(t);return-1!==i&&(e.splice(i,1),e.push(t)),e},t}(r.ActionContainer),A=function(e){function t(i,o){var a=e.call(this)||this;return a.options=i,a.isRTLValue=!1,a.alwaySaveTextInPropertyEditorsValue=!1,a.pageEditModeValue="standard",a.newQuestions=[],a.newPanels=[],a.plugins={},a.onElementDeleting=new r.Event,a.onGetPropertyReadOnly=new r.Event,a.onSurveyInstanceCreated=new r.Event,a.onGetObjectDisplayName=new r.Event,a.onElementAllowOperations=new r.Event,a.onDefineElementMenuItems=new r.Event,a.onShowingProperty=new r.Event,a.onCanShowProperty=a.onShowingProperty,a.onPropertyEditorCreated=new r.Event,a.onPropertyEditorUpdateTitleActions=new r.Event,a.onCanDeleteItem=new r.Event,a.onCollectionItemDeleting=new r.Event,a.onCollectionItemAllowOperations=new r.Event,a.onItemValueAdded=new r.Event,a.onMatrixColumnAdded=new r.Event,a.onSetPropertyEditorOptions=new r.Event,a.onGenerateNewName=new r.Event,a.onPropertyValidationCustomError=new r.Event,a.onPropertyValueChanging=new r.Event,a.onConditionQuestionsGetList=new r.Event,a.onConditionGetTitle=new r.Event,a.onModified=new r.Event,a.onQuestionAdded=new r.Event,a.onPanelAdded=new r.Event,a.onPageAdded=new r.Event,a.onDesignerSurveyCreated=new r.Event,a.onPreviewSurveyCreated=new r.Event,a.onTestSurveyCreated=a.onPreviewSurveyCreated,a.onNotify=new r.Event,a.onSelectedElementChanging=new r.Event,a.onSelectedElementChanged=new r.Event,a.onOpenFileChooser=new r.Event,a.onUploadFile=new r.Event,a.onTranslationStringVisibility=new r.Event,a.useTabsInElementEditor=!1,a.maxLogicItemsInCondition=-1,a.showObjectTitles=!1,a.showTitlesInExpressions=!1,a.allowEditExpressionsInTextEditor=!0,a.maximumColumnsCount=n.settings.propertyGrid.maximumColumnsCount,a.maximumChoicesCount=n.settings.propertyGrid.maximumChoicesCount,a.maximumRowsCount=n.settings.propertyGrid.maximumRowsCount,a.maximumRateValues=n.settings.propertyGrid.maximumRateValues,a.showPagesInTestSurveyTab=!0,a.showSimulatorInTestSurveyTab=!0,a.allowModifyPages=!0,a.showDefaultLanguageInTestSurveyTab="auto",a.showInvisibleElementsInTestSurveyTab=!0,a.showPageSelectorInToolbar=!1,a.tabbedMenu=new O,a.showErrorOnFailedSave=!0,a.onActiveTabChanged=new r.Event,a.showPropertyGridValue=!0,a.onShowPropertyGridVisiblityChanged=new r.Event,a.onBeforeUndo=new r.Event,a.onBeforeRedo=new r.Event,a.onAfterUndo=new r.Event,a.onAfterRedo=new r.Event,a.onStateChanged=new r.Event,a.notifier=new T.Notifier,a.onKeyDownHandler=function(e){var t,i;Object.keys(a.shortcuts||{}).forEach((function(o){t=a.shortcuts[o],(i=e.metaKey?t.macOsHotkey:t.hotKey)&&!!i.ctrlKey==!!e.ctrlKey&&!!i.shiftKey==!!e.shiftKey&&i.keyCode===e.keyCode&&(i.keyCode<48&&function(e){if(!e.tagName)return!1;var t=e.tagName.toLowerCase();return-1!==["input","textarea"].indexOf(t)||"span"===t&&e.isContentEditable}(e.target)||t.execute(a.selectElement))}))},a.shortcuts={},a.autoSaveDelay=n.settings.autoSave.delay,a.autoSaveTimerId=null,a.saveNo=0,(o||"string"==typeof a.options||a.options instanceof String)&&(a.options=o||{},p.SurveyHelper.warnText("Creator constructor has one parameter, as creator options, in V2.")),a.toolbarValue=new _(a),a.pagesControllerValue=new m.PagesController(a),a.selectionHistoryControllerValue=new g.SelectionHistory(a),a.sideBar=new C.SideBarModel(a),a.setOptions(a.options),a.patchMetadata(),a.initSurveyWithJSON(JSON.parse(t.defaultNewSurveyText),!1),a.toolbox=new c.QuestionToolbox(a.options&&a.options.questionTypes?a.options.questionTypes:null,a),a.updateToolboxIsCompact(),a.initTabs(),a.initDragDrop(),a.toolbar.actions.push(a.sideBar.getExpandAction()),a}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"showPreviewTab",{get:function(){return this.showTestSurveyTab},set:function(e){this.showTestSurveyTab=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEditSurveyTitle",{get:function(){return this.getPropertyValue("allowEditSurveyTitle",!0)},set:function(e){["title","description","logo","showTitle","logoWidth","logoHeight","logoFit"].forEach((function(t){return r.Serializer.findProperty("survey",t).visible=e})),this.setPropertyValue("allowEditSurveyTitle",e),this.designerPropertyGrid&&this.designerPropertyGrid.refresh()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"licenseText",{get:function(){return this.getLocString("survey.license")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageEditMode",{get:function(){return this.pageEditModeValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolbarItems",{get:function(){return this.toolbarValue.actions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolbar",{get:function(){return this.toolbarValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showingViewName",{get:function(){return this.activeTab},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignerShowing",{get:function(){return"designer"===this.activeTab},enumerable:!1,configurable:!0}),t.prototype.showDesigner=function(){this.activeTab="designer"},Object.defineProperty(t.prototype,"isTestSurveyShowing",{get:function(){return this.isPreviewShowing},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewShowing",{get:function(){return"test"===this.activeTab},enumerable:!1,configurable:!0}),t.prototype.showTestSurvey=function(){this.showPreview()},t.prototype.showPreview=function(){this.activeTab="test"},t.prototype.addPluginTab=function(e,t,i,o,r){var n=this,s=new N({id:e,title:i||a.editorLocalization.getString("ed."+e),componentContent:o||"svc-tab-"+e,data:t,action:function(){return n.makeNewViewActive(e)},active:this.viewType===e});r>=0&&r<this.tabs.length?this.tabs.splice(r,0,s):this.tabs.push(s),this.addPlugin(e,t)},t.prototype.addPlugin=function(e,t){this.plugins[e]=t},t.prototype.getPlugin=function(e){return this.plugins[e]},Object.defineProperty(t.prototype,"showPagesInPreviewTab",{get:function(){return this.showPagesInTestSurveyTab},set:function(e){this.showPagesInTestSurveyTab=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSimulatorInPreviewTab",{get:function(){return this.showSimulatorInTestSurveyTab},set:function(e){this.showSimulatorInTestSurveyTab=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDefaultLanguageInPreviewTab",{get:function(){return this.showDefaultLanguageInTestSurveyTab},set:function(e){this.showDefaultLanguageInTestSurveyTab=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInvisibleElementsInPreviewTab",{get:function(){return this.showInvisibleElementsInTestSurveyTab},set:function(e){this.showInvisibleElementsInTestSurveyTab=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabs",{get:function(){return this.tabbedMenu.actions},set:function(e){this.tabbedMenu.actions=e},enumerable:!1,configurable:!0}),t.prototype.getLocString=function(e){return a.editorLocalization.getString(e)},t.prototype.onSetReadOnly=function(e){},Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly",!1)},set:function(e){var t=this.text;this.setPropertyValue("readOnly",e),this.onSetReadOnly(e),this.text=t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRTL",{get:function(){return this.isRTLValue},set:function(e){this.isRTLValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeTab",{get:function(){return this.viewType},set:function(e){this.makeNewViewActive(e)},enumerable:!1,configurable:!0}),t.prototype.makeNewViewActive=function(e){if(e==this.viewType)return!1;if(!this.canSwitchViewType())return!1;var t=this.activatePlugin(e);return this.viewType=e,this.onActiveTabChanged.fire(this,{tabName:e,plugin:t,model:t?t.model:void 0}),!0},t.prototype.canSwitchViewType=function(){var e=this.currentPlugin;return!e||!e.deactivate||e.deactivate()},t.prototype.activatePlugin=function(e){var t=this.getPlugin(e);return t&&t.activate(),t},Object.defineProperty(t.prototype,"currentPlugin",{get:function(){return this.getPlugin(this.activeTab)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolboxCategories",{get:function(){return this.toolbox.categories},enumerable:!1,configurable:!0}),t.prototype.updateToolboxIsCompact=function(e){"right"==this.toolboxLocation&&this.showPropertyGrid?this.toolbox.isCompact=!0:null!=e&&null!=e&&(this.toolbox.isCompact=e)},t.prototype.onSurveyElementPropertyValueChanged=function(e,t,i){throw new Error("Method not implemented.")},Object.defineProperty(t.prototype,"showToolbox",{get:function(){p.SurveyHelper.warnNonSupported("showToolbox")},set:function(e){p.SurveyHelper.warnNonSupported("showToolbox")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPropertyGrid",{get:function(){return this.showPropertyGridValue},set:function(e){!0===e||!1===e?this.showPropertyGrid!==e&&(this.showPropertyGridValue=e,this.updateToolboxIsCompact(e),this.onShowPropertyGridVisiblityChanged.fire(this,{show:e})):p.SurveyHelper.warnText("showPropertyGrid propertry grid is a boolean property now.")},enumerable:!1,configurable:!0}),t.prototype.rightContainerActiveItem=function(e){p.SurveyHelper.warnNonSupported("rightContainerActiveItem")},t.prototype.leftContainerActiveItem=function(e){p.SurveyHelper.warnNonSupported("leftContainerActiveItem")},Object.defineProperty(t.prototype,"undoRedoManager",{get:function(){var e=this.getPlugin("undoredo");return e&&e.model.undoRedoManager},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"undoRedoController",{get:function(){var e=this.getPlugin("undoredo");return e&&e.model},enumerable:!1,configurable:!0}),t.prototype.startUndoRedoTransaction=function(e){void 0===e&&(e=""),this.undoRedoController&&this.undoRedoController.startTransaction(e)},t.prototype.stopUndoRedoTransaction=function(){this.undoRedoController&&this.undoRedoController.stopTransaction()},t.prototype.undo=function(){this.undoRedoController&&this.undoRedoController.undo()},t.prototype.redo=function(){this.undoRedoController&&this.undoRedoController.redo()},Object.defineProperty(t.prototype,"pagesController",{get:function(){return this.pagesControllerValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionHistoryController",{get:function(){return this.selectionHistoryControllerValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.survey.currentPage},set:function(e){this.survey.currentPage=e},enumerable:!1,configurable:!0}),t.prototype.addPage=function(e){var t=e;if(t)this.survey.addPage(t);else{var i=p.SurveyHelper.getNewPageName(this.survey.pages);t=this.survey.addNewPage(i)}return this.selectElement(t),t},t.prototype.initTabs=function(){this.initPlugins(),this.initFooterToolbar(),this.tabs.length>0&&this.makeNewViewActive(this.tabs[0].id)},t.prototype.initPlugins=function(){this.addPlugin("undoredo",new S.UndoRedoPlugin(this)),this.showDesignerTab&&new P.TabDesignerPlugin(this),this.showPreviewTab&&new f.TabTestPlugin(this),this.showLogicTab&&new w.TabLogicPlugin(this),this.showJSONEditorTab&&(v.TabJsonEditorAcePlugin.hasAceEditor()?new v.TabJsonEditorAcePlugin(this):new y.TabJsonEditorTextareaPlugin(this)),this.showEmbeddedSurveyTab&&new h.TabEmbedPlugin(this),this.showTranslationTab&&new x.TabTranslationPlugin(this)},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbar||(this.footerToolbar=new r.ActionContainer,["undoredo","designer","test"].forEach((function(t){var i=e.getPlugin(t);i&&i.addFooterActions&&i.addFooterActions()})))},t.prototype.getOptions=function(){return this.options||{}},t.prototype.setOptions=function(e){e||(e={}),e.hasOwnProperty("generateValidJSON")||(e.generateValidJSON=!0),this.options=e,this.showDesignerTab=void 0===e.showDesignerTab||e.showDesignerTab,this.showLogicTab=void 0!==e.showLogicTab&&e.showLogicTab,this.showJSONEditorTab=void 0===e.showJSONEditorTab||e.showJSONEditorTab,this.showPreviewTab=void 0!==e.showPreviewTab?e.showPreviewTab:void 0===e.showTestSurveyTab||e.showTestSurveyTab,this.allowEditSurveyTitle=void 0===e.allowEditSurveyTitle||e.allowEditSurveyTitle,this.showEmbeddedSurveyTab=void 0!==e.showEmbeddedSurveyTab&&e.showEmbeddedSurveyTab,this.showTranslationTab=void 0!==e.showTranslationTab&&e.showTranslationTab,this.showLogicTab=void 0!==e.showLogicTab&&e.showLogicTab,this.haveCommercialLicense=void 0!==e.haveCommercialLicense&&e.haveCommercialLicense,this.showObjectTitles=void 0!==e.showObjectTitles&&e.showObjectTitles,this.showTitlesInExpressions=void 0!==e.showTitlesInExpressions&&e.showTitlesInExpressions,this.allowEditExpressionsInTextEditor=void 0===e.allowEditExpressionsInTextEditor||e.allowEditExpressionsInTextEditor,void 0!==e.maximumColumnsCount&&(this.maximumColumnsCount=e.maximumColumnsCount),void 0!==e.maximumChoicesCount&&(this.maximumChoicesCount=e.maximumChoicesCount),void 0!==e.maximumRowsCount&&(this.maximumRowsCount=e.maxiumumRowsCount),void 0!==e.maximumRateValues&&(this.maximumRateValues=e.maximumRateValues),this.useTabsInElementEditor=void 0!==e.useTabsInElementEditor&&e.useTabsInElementEditor,this.maxLogicItemsInCondition=void 0!==e.maxLogicItemsInCondition?e.maxLogicItemsInCondition:-1,this.showState=void 0!==e.showState&&e.showState,this.showOptions=void 0!==e.showOptions&&e.showOptions,this.generateValidJSON=this.options.generateValidJSON,this.isAutoSave=void 0!==e.isAutoSave&&e.isAutoSave,this.showErrorOnFailedSave=void 0===e.showErrorOnFailedSave||e.showErrorOnFailedSave,this.isRTLValue=void 0!==e.isRTL&&e.isRTL,void 0!==e.readOnly&&(this.readOnly=e.readOnly),void 0!==e.showPagesInTestSurveyTab&&(this.showPagesInPreviewTab=e.showPagesInTestSurveyTab),void 0!==e.showPagesInPreviewTab&&(this.showPagesInPreviewTab=e.showPagesInPreviewTab),void 0!==e.showSimulatorInTestSurveyTab&&(this.showSimulatorInPreviewTab=e.showSimulatorInTestSurveyTab),void 0!==e.showSimulatorInPreviewTab&&(this.showSimulatorInPreviewTab=e.showSimulatorInPreviewTab),void 0!==e.showDefaultLanguageInTestSurveyTab&&(this.showDefaultLanguageInPreviewTab=e.showDefaultLanguageInTestSurveyTab),void 0!==e.showDefaultLanguageInPreviewTab&&(this.showDefaultLanguageInPreviewTab=e.showDefaultLanguageInPreviewTab),void 0!==e.showInvisibleElementsInTestSurveyTab&&(this.showInvisibleElementsInPreviewTab=e.showInvisibleElementsInTestSurveyTab),void 0!==e.showInvisibleElementsInPreviewTab&&(this.showInvisibleElementsInPreviewTab=e.showInvisibleElementsInPreviewTab),void 0!==e.allowModifyPages&&(this.allowModifyPages=e.allowModifyPages),void 0!==e.pageEditMode&&(this.pageEditModeValue=e.pageEditMode,"single"===this.pageEditModeValue&&(r.Serializer.findProperty("survey","pages").visible=!1,r.Serializer.findProperty("question","page").visible=!1,r.Serializer.findProperty("panel","page").visible=!1,this.showJSONEditorTab=!1))},t.prototype.patchMetadata=function(){r.Serializer.findProperty("survey","title").placeholder="pe.surveyTitlePlaceholder",r.Serializer.findProperty("survey","description").placeholder="pe.surveyDescriptionPlaceholder",r.Serializer.findProperty("survey","logoPosition").visible=!1,r.Serializer.findProperty("page","title").placeholder="pe.pageTitlePlaceholder",r.Serializer.findProperty("page","description").placeholder="pe.pageDescriptionPlaceholder"},t.prototype.isCanModifyProperty=function(e,t){var i,o,n=r.Serializer.findProperty(e.getType(),t);if(e instanceof r.ItemValue){if(i=e.locOwner,o=r.Serializer.findProperty(i.getType(),e.ownerPropertyName),!1===this.getElementAllowOperations(i).allowEdit)return!1;var a={allowDelete:!0,allowEdit:!0};if(this.onCollectionItemAllowingCallback(i,n,i.getPropertyValue(o.name),e,a),!1===a.allowEdit)return!1;if(this.onIsPropertyReadOnlyCallback(i,o,o.readOnly,null,null))return!1}return!(e instanceof r.SurveyElement&&!1===this.getElementAllowOperations(e).allowEdit)&&(!n||!this.onIsPropertyReadOnlyCallback(e,n,n.readOnly,i,o))},t.prototype.onIsPropertyReadOnlyCallback=function(e,t,i,o,r){var n=this.readOnly||i;if(this.onGetPropertyReadOnly.isEmpty)return n;var a={obj:e,property:t,readOnly:n,propertyName:t.name,parentObj:o,parentProperty:r};return this.onGetPropertyReadOnly.fire(this,a),a.readOnly},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.initSurveyWithJSON=function(e,t){var i=this;this.existingPages={};var o=this.createSurvey({});o.css=r.defaultV2Css,o.setDesignMode(!0),o.lazyRendering=!0,o.setJsonObject(e),o.logoPosition="right",o.isEmpty&&o.setJsonObject(this.getDefaultSurveyJson()),o.pages.forEach((function(e){i.existingPages[e.id]=!0})),this.onDesignerSurveyCreated.fire(this,{survey:o}),o.onQuestionAdded.add((function(e,t){i.doOnQuestionAdded(t.question,t.parentPanel)})),o.onPanelAdded.add((function(e,t){i.doOnPanelAdded(t.panel,t.parentPanel)})),o.onPageAdded.add((function(e,t){i.existingPages[t.page.id]||(i.existingPages[t.page.id]=!0,i.doOnPageAdded(t.page))})),o.onGetMatrixRowActions.add((function(e,t){Object(k.updateMatrixRemoveAction)(t.question,t.actions,t.row)})),this.setSurvey(o);var n=this.getPlugin(this.activeTab);n&&n.update&&n.update()},t.prototype.initDragDrop=function(){this.initDragDropSurveyElements(),this.initDragDropChoices()},t.prototype.initDragDropSurveyElements=function(){var e=this;r.DragDropSurveyElements.restrictDragQuestionBetweenPages=n.settings.dragDrop.restrictDragQuestionBetweenPages,this.dragDropSurveyElements=new r.DragDropSurveyElements(null,this),this.dragDropSurveyElements.onBeforeDrop.add((function(t,i){e.startUndoRedoTransaction("drag drop")})),this.dragDropSurveyElements.onAfterDrop.add((function(t,i){e.stopUndoRedoTransaction(),e.selectElement(i.draggedElement,void 0,!1)}))},t.prototype.initDragDropChoices=function(){var e=this;this.dragDropChoices=new r.DragDropChoices(null,this),this.dragDropChoices.onBeforeDrop.add((function(t,i){e.startUndoRedoTransaction("drag drop")})),this.dragDropChoices.onAfterDrop.add((function(t,i){e.stopUndoRedoTransaction(),e.selectElement(i.draggedElement,void 0,!1)}))},t.prototype.updateElementsOnLocaleChanged=function(e,t){if("survey"===e.getType()&&"locale"===t)for(var i=this.survey.pages,o=0;o<i.length;o++)i[o].locStrsChanged()},t.prototype.updateConditionsOnQuestionNameChanged=function(e,t,i){if(this.isObjQuestion(e)&&("name"!==t||e.valueName||this.updateConditions(i,e.name),"valueName"===t)){var o=i||e.name,r=e.valueName?e.valueName:e.name;this.updateConditions(o,r)}},t.prototype.updatePagesController=function(e,t){"name"!=t&&"title"!=t||!this.isObjPage(e)||this.pagesController.pageNameChanged(e)},t.prototype.updateConditions=function(e,t){e!==t&&new b.SurveyLogic(this.survey,this).renameQuestion(e,t)},t.prototype.isObjQuestion=function(e){return this.isObjThisType(e,"question")},t.prototype.isObjPage=function(e){return this.isObjThisType(e,"page")},t.prototype.isObjThisType=function(e,t){for(var i=r.Serializer.findClass(e.getType());i&&i.parentName;){if(i.name===t)return!0;i=r.Serializer.findClass(i.parentName)}return!!i&&i.name===t},t.prototype.doOnQuestionAdded=function(e,t){e.name=this.generateUniqueName(e,e.name);var i={question:e,page:this.getPageByElement(e)};this.onQuestionAdded.fire(this,i)},t.prototype.doOnPanelAdded=function(e,t){var i={panel:e,page:this.getPageByElement(e)};this.onPanelAdded.fire(this,i)},t.prototype.doOnPageAdded=function(e){var t={page:e};this.onPageAdded.fire(this,t),this.setModified({type:"PAGE_ADDED",newValue:t.page})},t.prototype.getPageByElement=function(e){return this.survey.getPageByElement(e)},t.prototype.getDefaultSurveyJson=function(){var e=n.settings.defaultNewSurveyJSON;return e.pages&&e.pages.length>0&&e.pages[0].name&&(e.pages[0].name=a.editorLocalization.getString("ed.newPageName")+"1"),e},t.prototype.setSurvey=function(e){this.surveyValue&&this.surveyValue.dispose(),this.surveyValue=e,this.selectElement(e),this.pagesController.onSurveyChanged(),this.selectionHistoryController.reset()},t.prototype.getSurveyTextFromDesigner=function(){if(!this.survey)return"";var e=this.survey.toJSON(),t=n.settings.jsonEditor.indentation;return this.options&&this.options.generateValidJSON?JSON.stringify(e,null,t):(new s.SurveyJSON5).stringify(e,null,t)},t.prototype.setTextValue=function(e){this.setSurveyJSONTextCallback&&this.setSurveyJSONTextCallback(e)},t.prototype.changeText=function(e,t){void 0===t&&(t=!1),this.setTextValue(e);var i=new u.SurveyTextWorker(e);i.isJsonCorrect?this.initSurveyWithJSON(i.survey.toJSON(),t):this.viewType="editor"},Object.defineProperty(t.prototype,"text",{get:function(){return this.getSurveyJSONTextCallback?this.getSurveyJSONTextCallback().text:this.getSurveyTextFromDesigner()},set:function(e){this.changeText(e,!0)},enumerable:!1,configurable:!0}),t.prototype.getSurveyJSON=function(){if("editor"!=this.viewType)return(new r.JsonObject).toJsonObject(this.survey);var e=this.text,t=new u.SurveyTextWorker(e);return t.isJsonCorrect?(new r.JsonObject).toJsonObject(t.survey):null},t.prototype.getObjectDisplayName=function(e,t,i){void 0===t&&(t=void 0),void 0===i&&(i=void 0),i||(i=p.SurveyHelper.getObjectName(e,this.showObjectTitles));var o={obj:e,displayName:i,reason:t};return this.onGetObjectDisplayName.fire(this,o),o.displayName},t.prototype.createSurvey=function(e,t){void 0===e&&(e={}),void 0===t&&(t="designer");var i=this.createSurveyCore(e,t);return"designer"!=t&&"test"!=t&&(i.locale=a.editorLocalization.currentLocale),this.onSurveyInstanceCreated.fire(this,{survey:i,reason:t}),i},t.prototype.createSurveyCore=function(e,t){throw void 0===e&&(e={}),new Error("createSurveyCore method should be overridden/implemented")},Object.defineProperty(t.prototype,"state",{get:function(){return this._stateValue?this._stateValue:""},enumerable:!1,configurable:!0}),t.prototype.setState=function(e){this._stateValue=e,this.onStateChanged.fire(this,{val:e}),e&&this.notify(this.getLocString("ed."+e))},t.prototype.setModified=function(e){void 0===e&&(e=null),this.setState("modified"),this.onModified.fire(this,e),this.isAutoSave&&this.doAutoSave()},t.prototype.notify=function(e,t){void 0===t&&(t="info"),this.onNotify.isEmpty?this.notifier.notify(e,t):this.onNotify.fire(this,{message:e})},t.prototype.convertQuestion=function(e,t){var i=l.QuestionConverter.convertObject(e,t);return this.setModified({type:"QUESTION_CONVERTED",className:t,oldValue:e,newValue:i}),i},Object.defineProperty(t.prototype,"JSON",{get:function(){return this.survey.toJSON()},set:function(e){"editor"==this.viewType?this.setTextValue(JSON.stringify(e)):this.initSurveyWithJSON(e,!0)},enumerable:!1,configurable:!0}),t.prototype.loadSurvey=function(e){var t=this;(new r.dxSurveyService).loadSurvey(e,(function(e,i,o){e&&i&&(t.JSON=i)}))},t.prototype.doClickQuestionCore=function(e,t,i,o){void 0===t&&(t="ADDED_FROM_TOOLBOX"),void 0===i&&(i=-1),void 0===o&&(o=null),0==this.survey.pageCount&&this.survey.addNewPage();var r=this.currentPage,n=this.getSelectedSurveyElement();n&&n.parent&&n.page==r&&(r=n.parent,i<0&&(i=r.elements.indexOf(n))>-1&&i++),o&&(r=o);var a=this.findRowByElement(n,r);a&&this.isRowMultiline(a)?this.addElemenMultiline(r,e,i,a):r.addElement(e,i),this.setModified({type:t,question:e})},t.prototype.isRowMultiline=function(e){return e.elements.length>1},t.prototype.findRowByElement=function(e,t){return e?e.isPage?e.rows[e.rows.length-1]:t.rows.find((function(t){return-1!==t.elements.indexOf(e)})):null},t.prototype.addElemenMultiline=function(e,t,i,o){var r=o.elements.length,n=o.elements[r-1];n.startWithNewLine=!0,e.addElement(t,i),n.startWithNewLine=!1},t.prototype.setNewNames=function(e){this.newQuestions=[],this.newPanels=[],this.newQuestionChangedNames={},this.setNewNamesCore(e),this.updateNewElementExpressions(e)},t.prototype.updateNewElementExpressions=function(e){var t=this.createSurvey({},"updateNewElementExpressions");t.setDesignMode(!0),e.isPage?t.addPage(e):(t.addNewPage("p1"),t.pages[0].addElement(e));var i=new b.SurveyLogic(t);for(var o in this.newQuestionChangedNames)i.renameQuestion(o,this.newQuestionChangedNames[o])},t.prototype.getAllQuestions=function(){for(var e=[],t=0;t<this.survey.pages.length;t++)this.addElements(this.survey.pages[t].elements,!1,e);return this.addElements(this.newPanels,!1,e),this.addElements(this.newQuestions,!1,e),e},t.prototype.getAllPanels=function(){for(var e=[],t=0;t<this.survey.pages.length;t++)this.addElements(this.survey.pages[t].elements,!0,e);return this.addElements(this.newPanels,!0,e),this.addElements(this.newQuestions,!0,e),e},t.prototype.addElements=function(e,t,i){for(var o=0;o<e.length;o++)e[o].isPanel===t&&i.push(e[o]),this.addElements(p.SurveyHelper.getElements(e[o]),t,i)},t.prototype.getNewName=function(e,t){return"page"==e?p.SurveyHelper.getNewPageName(this.survey.pages):t?this.getNewPanelName():this.getNewQuestionName()},t.prototype.getNewQuestionName=function(){return p.SurveyHelper.getNewQuestionName(this.getAllQuestions())},t.prototype.getNewPanelName=function(){return p.SurveyHelper.getNewPanelName(this.getAllPanels())},t.prototype.setNewNamesCore=function(e){var t=e.getType(),i=this.getNewName(t,e.isPanel);if(i!=e.name&&(this.newQuestionChangedNames[e.name]=i,e.name=i),e.isPanel||"page"==t){e.isPanel&&this.newPanels.push(e);for(var o=e,r=0;r<o.elements.length;r++)this.setNewNamesCore(o.elements[r])}else this.newQuestions.push(e)},t.prototype.createNewElement=function(e){var t=r.Serializer.createClass(e.type);return(new r.JsonObject).toObject(e,t),this.setNewNames(t),t},t.prototype.copyElement=function(e){var t=(new r.JsonObject).toJsonObject(e);return t.type=e.getType(),this.createNewElement(t)},t.prototype.fastCopyQuestion=function(e){var t=this.copyElement(e),i=e.parent?e.parent.elements.indexOf(e)+1:-1;return this.doClickQuestionCore(t,"ELEMENT_COPIED",i),t},Object.defineProperty(t.prototype,"selectedElement",{get:function(){return this.selectedElementValue},set:function(e){this.selectElement(e)},enumerable:!1,configurable:!0}),t.prototype.deleteCurrentObject=function(){this.deleteCurrentElement()},t.prototype.deleteCurrentElement=function(){this.deleteObject(this.selectedElement)},t.prototype.deleteElement=function(e){this.deleteObject(e)},t.prototype.copyPage=function(e){var t=this.copyElement(e),i=this.survey.pages.indexOf(e);return i>-1?this.survey.pages.splice(i+1,0,t):this.survey.pages.push(t),t},t.prototype.deleteObjectCore=function(e){if(e.isPage){var t=this.getNextPage(e);this.survey.removePage(e),this.selectElement(t||this.survey)}else this.deletePanelOrQuestion(e);this.setModified({type:"OBJECT_DELETED",target:e}),this.updateConditionsOnRemove(e)},t.prototype.getNextPage=function(e){var t=this.survey.pages.indexOf(e);return t<0||1==this.survey.pages.length?null:(t==this.survey.pages.length-1?t--:t++,t<0||t>this.survey.pages.length-1?null:this.survey.pages[t])},t.prototype.deleteObject=function(e){var t={element:e,elementType:p.SurveyHelper.getObjectType(e),allowing:!0};this.onElementDeleting.fire(this,t),t.allowing&&this.deleteObjectCore(e)},t.prototype.updateConditionsOnRemove=function(e){if(p.SurveyHelper.getObjectType(e)==p.ObjType.Question)t=[e];else var t=e.questions;if(t)for(var i=new b.SurveyLogic(this.survey,this),o=0;o<t.length;o++)i.removeQuestion(t[o].getValueName())},t.prototype.isElementSelected=function(e){return!(!e||e.isDisposed)&&e.getPropertyValue("isSelectedInDesigner")},t.prototype.selectElement=function(e,t,i){void 0===i&&(i=!0);var o=this.selectedElement;o!==e&&(this.selectedElementValue=this.onSelectingElement(e),o!==this.selectedElementValue&&(o&&!o.isDisposed&&o.setPropertyValue("isSelectedInDesigner",!1),this.selectedElementValue&&this.selectedElementValue.setPropertyValue("isSelectedInDesigner",!0))),(o!==e||t)&&this.selectionChanged(this.selectedElement,t,i);var r=this.getSelectedSurveyElement();o!==e&&i&&document&&r&&setTimeout((function(){var e=document.getElementById(r.id);e&&(e.scrollIntoView({block:"center"}),t||e.parentElement&&e.parentElement.focus())}),100)},t.prototype.getSelectedSurveyElement=function(){var e=this.selectedElement;return e&&"survey"!=e.getType()&&e.isInteractiveDesignElement&&e.id?e:null},t.prototype.onSelectingElement=function(e){var t={newSelectedElement:e};return this.onSelectedElementChanging.fire(this,t),t.newSelectedElement},Object.defineProperty(t.prototype,"designerPropertyGrid",{get:function(){var e=this.sideBar.getTabById("propertyGrid");return e&&e.model?e.model.propertyGridModel:null},enumerable:!1,configurable:!0}),t.prototype.collapsePropertyGridCategory=function(e){this.designerPropertyGrid&&this.designerPropertyGrid.collapseCategory(e)},t.prototype.expandPropertyGridCategory=function(e){this.designerPropertyGrid&&this.designerPropertyGrid.expandCategory(e)},t.prototype.collapseAllPropertyGridCategories=function(){this.designerPropertyGrid&&this.designerPropertyGrid.collapseAllCategories()},t.prototype.expandAllPropertyGridCategories=function(){this.designerPropertyGrid&&this.designerPropertyGrid.expandAllCategories()},t.prototype.collapseAllPropertyTabs=function(){this.collapseAllPropertyGridCategories()},t.prototype.expandAllPropertyTabs=function(){this.expandAllPropertyGridCategories()},t.prototype.expandPropertyTab=function(e){this.expandPropertyGridCategory(e)},t.prototype.collapsePropertyTab=function(e){this.collapsePropertyGridCategory(e)},t.prototype.validateSelectedElement=function(){var e=!0;return this.selectedElement?(this.designerPropertyGrid&&(e=this.designerPropertyGrid.validate()),e):e},t.prototype.selectionChanged=function(e,t,i){void 0===i&&(i=!0),this.survey.currentPage=this.getCurrentPageByElement(e),this.selectionHistoryController.onObjSelected(e),this.designerPropertyGrid&&(this.designerPropertyGrid.obj=e,t||(t=this.designerPropertyGrid.currentlySelectedProperty),t&&this.designerPropertyGrid.selectProperty(t,i||!this.selectFromStringEditor),this.selectFromStringEditor=!1);var o={newSelectedElement:e};this.onSelectedElementChanged.fire(this,o)},t.prototype.getCurrentPageByElement=function(e){if(e)return e.isPage?e:e.page?e.page:e.parentQuestion?this.getCurrentPageByElement(e.parentQuestion):void 0},t.prototype.clickToolboxItem=function(e,t){void 0===t&&(t=null),this.readOnly||(void 0===e.getType&&(e=this.createNewElement(e)),this.survey.lazyRendering=!1,this.doClickQuestionCore(e,"ADDED_FROM_TOOLBOX",-1,t),this.selectElement(e))},t.prototype.getJSONForNewElement=function(e){var t=this.createNewElement(e);return(e=t.toJSON()).type=t.getType(),e},t.prototype.chooseFiles=function(e,t){if(this.onOpenFileChooser.isEmpty){if(!window.FileReader)return;e.value="",e.onchange=function(i){if(window.FileReader&&e&&e.files&&!(e.files.length<1)){for(var o=[],r=0;r<e.files.length;r++)o.push(e.files[r]);t(o)}},e.click()}else this.onOpenFileChooser.fire(this,{input:e,callback:t})},t.prototype.uploadFiles=function(e,t){if(this.onUploadFile.isEmpty){var i=new FileReader;i.onload=function(e){t("success",i.result)},i.readAsDataURL(e[0])}else this.onUploadFile.fire(this,{files:e||[],callback:t})},t.prototype.initKeyboardShortcuts=function(e){e.addEventListener("keydown",this.onKeyDownHandler)},t.prototype.removeKeyboardShortcuts=function(e){e.removeEventListener("keydown",this.onKeyDownHandler)},t.prototype.registerShortcut=function(e,t){this.shortcuts[e]=t},t.prototype.unRegisterShortcut=function(e){delete this.shortcuts[e]},t.prototype.deletePanelOrQuestion=function(e){var t=e.parent,i=t.elements,o=i.indexOf(e);o==i.length-1&&o--,e.delete(),this.selectElement(o>-1?i[o]:t)},t.prototype.onCanShowObjectProperty=function(e,t,i,o,r){var n={obj:e,property:t,canShow:!0,showMode:i,parentObj:o,parentProperty:r};return this.onCanShowProperty.fire(this,n),n.canShow},t.prototype.canDeleteItem=function(e,t,i){var o={obj:e,item:t,canDelete:i};return this.onCanDeleteItem.fire(this,o),o.canDelete},t.prototype.getErrorOnPropertyChanging=function(e,t,i){return"name"!==t||p.SurveyHelper.getObjectType(e)===p.ObjType.Unknown?null:(p.SurveyHelper.getObjectType(e)===p.ObjType.Column?e.colOwner&&!this.isNameUniqueInArray(e.colOwner.columns,e,i):this.generateUniqueName(e,i)!==i)?this.getLocString("pe.propertyNameIsNotUnique"):null},t.prototype.generateUniqueName=function(e,t){var i={element:e,name:t,isUnique:!0};do{for(i.isUnique||(i.name=p.SurveyHelper.generateNewName(i.name));!this.isNameUnique(e,i.name);)i.name=p.SurveyHelper.generateNewName(i.name);i.isUnique=!0;var o=i.name;this.onGenerateNewName.fire(this,i),o!=i.name&&(i.isUnique=this.isNameUnique(e,i.name))}while(!i.isUnique);return i.name},t.prototype.isNameUnique=function(e,t){return!!this.isNameUniqueInArray(this.survey.pages,e,t)&&!!this.isNameUniqueInArray(this.survey.getAllPanels(),e,t)&&this.isNameUniqueInArray(this.survey.getAllQuestions(),e,t)},t.prototype.isNameUniqueInArray=function(e,t,i){if(!Array.isArray(e))return!0;i=i.toLowerCase();for(var o=0;o<e.length;o++)if(e[o]!=t&&e[o].name.toLowerCase()==i)return!1;return!0},t.prototype.doPropertyGridChanged=function(){},Object.defineProperty(t.prototype,"alwaySaveTextInPropertyEditors",{get:function(){return this.alwaySaveTextInPropertyEditorsValue},set:function(e){this.alwaySaveTextInPropertyEditorsValue=e},enumerable:!1,configurable:!0}),t.prototype.onCanShowPropertyCallback=function(e,t,i,o,r){return void 0===i&&(i=null),this.onCanShowObjectProperty(e,t,i,o,r)},t.prototype.onPropertyEditorCreatedCallback=function(e,t,i){var o={obj:e,property:t,editor:i};this.onPropertyEditorCreated.fire(this,o)},t.prototype.onPropertyEditorUpdateTitleActionsCallback=function(e,t,i,o){var r={obj:e,property:t,editor:i,titleActions:o};this.onPropertyEditorUpdateTitleActions.fire(this,r)},t.prototype.onCanDeleteItemCallback=function(e,t,i){return this.canDeleteItem(e,t,i)},t.prototype.onCollectionItemDeletingCallback=function(e,t,i,o){if(this.onCollectionItemDeleting.isEmpty)return!0;var r={obj:e,property:t,propertyName:t.name,collection:i,item:o,allowDelete:!0};return this.onCollectionItemDeleting.fire(this,r),r.allowDelete},t.prototype.onCollectionItemAllowingCallback=function(e,t,i,o,r){if(!this.onCollectionItemAllowOperations.isEmpty){var n={obj:e,property:t,propertyName:t&&t.name,collection:i,item:o,allowEdit:r.allowEdit,allowDelete:r.allowDelete};this.onCollectionItemAllowOperations.fire(this,n),r.allowEdit=n.allowEdit,r.allowDelete=n.allowDelete}},t.prototype.onItemValueAddedCallback=function(e,t,i,o){var r={obj:e,propertyName:t,newItem:i,itemValues:o};this.onItemValueAdded.fire(this,r)},t.prototype.onMatrixDropdownColumnAddedCallback=function(e,t,i){var o={newColumn:t,matrix:e,columns:i};this.onMatrixColumnAdded.fire(this,o)},t.prototype.onSetPropertyEditorOptionsCallback=function(e,t,i){var o={propertyName:e,obj:t,editorOptions:i};this.onSetPropertyEditorOptions.fire(this,o)},t.prototype.onGetErrorTextOnValidationCallback=function(e,t,i){var o=this.getErrorOnPropertyChanging(t,e,i);if(o)return o;var r={propertyName:e,obj:t,value:i,error:""};return this.onPropertyValidationCustomError.fire(this,r),r.error},t.prototype.onValueChangingCallback=function(e){this.onPropertyValueChanging.fire(this,e)},t.prototype.onGetElementEditorTitleCallback=function(e,t){return t},t.prototype.onConditionQuestionsGetListCallback=function(e,t,i,o){var r={propertyName:e,obj:t,editor:i,list:o};if(this.onConditionQuestionsGetList.fire(this,r),r.list!==o){o.splice(0,o.length);for(var n=0;n<r.list.length;n++)o.push(r.list[n])}},t.prototype.onConditionGetTitleCallback=function(e,t){var i={expression:e,title:t};return this.onConditionGetTitle.fire(this,i),i.title},t.prototype.doAutoSave=function(){if(this.autoSaveDelay<=0)this.doSave();else{this.autoSaveTimerId&&clearTimeout(this.autoSaveTimerId);var e=this;this.autoSaveTimerId=setTimeout((function(){clearTimeout(e.autoSaveTimerId),e.autoSaveTimerId=null,e.doSave()}),this.autoSaveDelay)}},t.prototype.doSave=function(){var e=this;this.setState("saving"),this.saveSurveyFunc&&(this.saveNo++,this.saveSurveyFunc(this.saveNo,(function(t,i){e.saveNo===t&&(i?e.setState("saved"):(e.showErrorOnFailedSave&&e.notify(e.getLocString("ed.saveError")),e.setState("modified")))})))},Object.defineProperty(t.prototype,"saveSurveyFunc",{get:function(){return this.saveSurveyFuncValue},set:function(e){this.saveSurveyFuncValue=e,this.showSaveButton=null!=e&&!this.isAutoSave},enumerable:!1,configurable:!0}),t.prototype.convertCurrentQuestion=function(e){var t=this.selectedElement;t&&t.getType()!==e&&p.SurveyHelper.getObjectType(t)===p.ObjType.Question&&(t=this.convertQuestion(t,e),this.selectElement(t))},t.prototype.getAddNewQuestionText=function(e){if(void 0===e&&(e=null),e||(e=this.currentAddQuestionType),e){var t=this.getLocString("ed.addNewTypeQuestion");if(t&&t.format)return t.format(this.toolbox.items.filter((function(t){return t.name==e}))[0].title)}return this.getLocString("ed.addNewQuestion")},Object.defineProperty(t.prototype,"addNewQuestionText",{get:function(){return this.getAddNewQuestionText()},enumerable:!1,configurable:!0}),t.prototype.getQuestionTypeSelectorModel=function(e,t){var i=this;void 0===t&&(t=null);var o=this.toolbox.items.map((function(e){return i.createIActionBarItemByClass(e.name,e.title)})),n=new r.PopupModel("sv-list",{model:new r.ListModel(o,(function(o){i.currentAddQuestionType=o.id,i.addNewQuestionInPage(e,t),n.toggleVisibility()}),!1)},"bottom","center");return{iconName:"icon-more",action:function(){n.displayMode=i.isMobileView?"overlay":"popup",n.toggleVisibility()},popupModel:n}},t.prototype.addNewQuestionInPage=function(e,t,i){void 0===t&&(t=null),void 0===i&&(i=null),i||(i=this.currentAddQuestionType),e(i);var o=r.ElementFactory.Instance.createElement(i||"text","q1");o?this.setNewNames(o):o=this.createNewElement({type:i}),this.clickToolboxItem(o,t)},t.prototype.createIActionBarItemByClass=function(e,t){return void 0===t&&(t=null),new r.Action({title:t||this.getLocString("qt."+e),id:e,iconName:"icon-"+e})},t.prototype.onElementMenuItemsChanged=function(e,t){this.onDefineElementMenuItems.fire(this,{obj:e,items:t})},t.prototype.getElementAllowOperations=function(e){var t={obj:e,element:e,allowDelete:!0,allowCopy:!0,allowDragging:!0,allowChangeType:!0,allowChangeRequired:!0};return this.onElementAllowOperations.fire(this,t),t},t.prototype.getNextItemValue=function(e){var t=r.surveyLocalization.getString("choices_Item"),i=e.choices.map((function(e){return e.value}));return Object(d.getNextValue)(t,i)},t.prototype.createNewItemValue=function(e){var t=this.getNextItemValue(e);return e.createItemValue(t)},t.prototype.onPropertyValueChanged=function(t,i,o){var r=this;e.prototype.onPropertyValueChanged.call(this,t,i,o),"viewType"===t&&this.tabs.forEach((function(e){return e.active=r.viewType===e.id}))},t.prototype.initResponsivityManager=function(e){this.responsivityManager=new E.CreatorResponsivityManager(e,this)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.defaultNewSurveyText='{ "pages": [ { "name": "page1"}] }',Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showDesignerTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showJSONEditorTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showTestSurveyTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showEmbeddedSurveyTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showTranslationTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showLogicTab",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:200})],t.prototype,"pageHoverDelay",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"haveCommercialLicense",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isAutoSave",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"showOptions",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showState",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showSearch",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"generateValidJSON",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:""})],t.prototype,"currentAddQuestionType",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"surveyValue",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"viewType",void 0),Object(o.__decorate)([Object(S.undoRedoTransaction)()],t.prototype,"addPage",null),Object(o.__decorate)([Object(S.ignoreUndoRedo)()],t.prototype,"doOnQuestionAdded",null),Object(o.__decorate)([Object(S.ignoreUndoRedo)()],t.prototype,"doOnPanelAdded",null),Object(o.__decorate)([Object(S.ignoreUndoRedo)()],t.prototype,"doOnPageAdded",null),Object(o.__decorate)([Object(r.property)()],t.prototype,"_stateValue",void 0),Object(o.__decorate)([Object(S.undoRedoTransaction)()],t.prototype,"deleteObject",null),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showSaveButton",void 0),Object(o.__decorate)([Object(S.undoRedoTransaction)()],t.prototype,"convertCurrentQuestion",null),Object(o.__decorate)([Object(S.undoRedoTransaction)()],t.prototype,"addNewQuestionInPage",null),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"showPageNavigator",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:n.settings.layout.showTabs})],t.prototype,"showTabs",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:n.settings.layout.showToolbar})],t.prototype,"showToolbar",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isMobileView",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:"left",onSet:function(e,t){t.toolbox.setLocation(e),t.updateToolboxIsCompact()}})],t.prototype,"toolboxLocation",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:"right"})],t.prototype,"sideBarLocation",void 0),t}(r.Base),j=function(){function e(){}return Object.defineProperty(e,"currentTheme",{get:function(){p.SurveyHelper.warnNonSupported("StylesManager")},set:function(e){p.SurveyHelper.warnNonSupported("StylesManager")},enumerable:!1,configurable:!0}),e.applyTheme=function(e){p.SurveyHelper.warnNonSupported("StylesManager")},e}();function V(e,t,i){if("logo-image"===t)return"svc-logo-image";if("cell"===t||"column-header"===t||"row-header"===t)return"svc-matrix-cell";if(!e.isContentElement){if(e instanceof r.Question)return i?"dropdown"==e.getType()?"svc-cell-dropdown-question":"svc-cell-question":e.customWidget?"svc-widget-question":"dropdown"==e.getType()?"svc-dropdown-question":"image"==e.getType()?"svc-image-question":"rating"==e.getType()?"svc-rating-question":"svc-question";if(e instanceof r.PanelModel)return"svc-panel"}}function I(e,t,i){return"logo-image"===t?i:"cell"===t||"column-header"===t||"row-header"===t?{creator:i,element:e,question:e.question,row:e.row,column:e.column}:V(e,t,!1)?e instanceof r.Question||e instanceof r.PanelModel?i:null:void 0}function z(e,t){return t.isContentElement?r.SurveyModel.TemplateRendererComponentName:"imagepicker"===t.getType()?"svc-image-item-value":"svc-item-value"}function M(e,t,i){return t.isContentElement?e:{creator:i,question:t,item:e}}function q(e,t){return!(e.parentQuestion instanceof r.QuestionMatrixDropdownModelBase)&&(!e.isContentElement||e.isEditableTemplateElement)}},"./src/creator-responsivity-manager.ts":
293
309
  /*!*********************************************!*\
294
310
  !*** ./src/creator-responsivity-manager.ts ***!
295
311
  \*********************************************/
296
- /*! exports provided: CreatorResponsivityManager */function(e,t,i){"use strict";i.r(t),i.d(t,"CreatorResponsivityManager",(function(){return o})),i(/*! ./responsivity.scss */"./src/responsivity.scss");var o=function(){function e(e,t){var i=this;this.container=e,this.creator=t,this.resizeObserver=void 0,this.screenWidth={xxl:1920,xl:1280,l:960,m:768,s:376},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return i.process()})),this.resizeObserver.observe(this.container.parentElement),this.process(),"xs"!=this.currentWidth&&"s"!=this.currentWidth&&"m"!==this.currentWidth||(this.creator.showPropertyGrid=!1))}return e.prototype.getScreenWidth=function(){var e,t=this;return Object.keys(this.screenWidth).forEach((function(i){!e&&t.container&&t.screenWidth[i]&&t.container.offsetWidth>=t.screenWidth[i]&&(e=i)})),e||"xs"},e.prototype.initMobileView=function(){this.creator.showTabs=!1,this.creator.showToolbar=!1,this.creator.isMobileView=!0},e.prototype.resetMobileView=function(){this.creator.showTabs=void 0,this.creator.showToolbar=void 0,this.creator.isMobileView=void 0},e.prototype._process=function(e,t,i){this.creator.toolbox.isCompact=e,this.creator.toolbox.visible=t,this.creator.showPageNavigator=t,this.creator.currentTabPropertyGrid&&(this.creator.currentTabPropertyGrid.flyoutMode=i)},e.prototype.process=function(){this.currentWidth=this.getScreenWidth(),"xl"===this.currentWidth||"xxl"===this.currentWidth?this._process(!1,!0,!1):"l"===this.currentWidth?this._process(!0,!0,!1):"m"===this.currentWidth?this._process(!0,!0,!0):this._process(!0,!1,!0),"xs"==this.currentWidth?this.initMobileView():this.resetMobileView()},e.prototype.dispose=function(){this.resizeObserver&&this.resizeObserver.disconnect()},e}()},"./src/editable-object.ts":
312
+ /*! exports provided: CreatorResponsivityManager */function(e,t,i){"use strict";i.r(t),i.d(t,"CreatorResponsivityManager",(function(){return o})),i(/*! ./responsivity.scss */"./src/responsivity.scss");var o=function(){function e(e,t){var i=this;this.container=e,this.creator=t,this.resizeObserver=void 0,this.screenWidth={xxl:1800,xl:1500,l:1200,m:900,s:600},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(e){return i.process()})),this.resizeObserver.observe(this.container.parentElement),this.prevToolboxLocation=this.creator.toolboxLocation,this.process(),"xs"!=this.currentWidth&&"s"!=this.currentWidth&&"m"!==this.currentWidth||(this.creator.showPropertyGrid=!1))}return e.prototype.getScreenWidth=function(){var e,t=this;return Object.keys(this.screenWidth).forEach((function(i){!e&&t.container&&t.screenWidth[i]&&t.container.offsetWidth>=t.screenWidth[i]&&(e=i)})),e||"xs"},e.prototype.initMobileView=function(){this.creator.showTabs=!1,this.creator.showToolbar=!1,this.creator.isMobileView=!0},e.prototype.resetMobileView=function(){this.creator.showTabs=void 0,this.creator.showToolbar=void 0,this.creator.isMobileView=void 0},e.prototype._process=function(e,t,i){this.creator.updateToolboxIsCompact(e),t&&"hidden"===this.creator.toolboxLocation?this.creator.toolboxLocation=this.prevToolboxLocation:t||"hidden"===this.creator.toolboxLocation||(this.prevToolboxLocation=this.creator.toolboxLocation,this.creator.toolboxLocation="hidden"),this.creator.showPageNavigator=t,this.creator.sideBar.flyoutMode=i},e.prototype.process=function(){this.currentWidth=this.getScreenWidth(),"xl"===this.currentWidth||"xxl"===this.currentWidth?this._process(!1,!0,!1):"l"===this.currentWidth?this._process(!0,!0,!1):"m"===this.currentWidth?this._process(!0,!0,!0):this._process(!0,!1,!0),"xs"==this.currentWidth?this.initMobileView():this.resetMobileView()},e.prototype.dispose=function(){this.resizeObserver&&this.resizeObserver.disconnect()},e}()},"./src/creator-theme/creator.scss":
313
+ /*!****************************************!*\
314
+ !*** ./src/creator-theme/creator.scss ***!
315
+ \****************************************/
316
+ /*! no static exports found */function(e,t,i){},"./src/editable-object.ts":
297
317
  /*!********************************!*\
298
318
  !*** ./src/editable-object.ts ***!
299
319
  \********************************/
@@ -309,7 +329,7 @@ License: MIT
309
329
  /*!******************************!*\
310
330
  !*** ./src/entries/index.ts ***!
311
331
  \******************************/
312
- /*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, TabbedMenuItem, TabbedMenuContainer, CreatorBase, StylesManager, getElementWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, CreatorResponsivityManager, EmbedModel, TabEmbedPlugin, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, translationCss, PropertyGridViewTranslationModel, TabTranslationPlugin, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageViewModel, RowViewModel, QuestionAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, getLocString, SurveyJSON5, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorNumber, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModelBase, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, QuestionLinkValueModel, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, propertyGridCss, QuestionConverter, SvgBundleViewModel, SurveyTextWorker, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, Notifier, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction */function(e,t,i){"use strict";i.r(t),i.d(t,"Version",(function(){return oe}));var o=i(/*! ../localization/english */"./src/localization/english.ts");i.d(t,"enStrings",(function(){return o.enStrings}));var r=i(/*! ../editorLocalization */"./src/editorLocalization.ts");i.d(t,"editorLocalization",(function(){return r.editorLocalization})),i.d(t,"defaultStrings",(function(){return r.defaultStrings})),i.d(t,"localization",(function(){return r.editorLocalization}));var n=i(/*! ../settings */"./src/settings.ts");i.d(t,"QuestionConvertMode",(function(){return n.QuestionConvertMode})),i.d(t,"settings",(function(){return n.settings})),i.d(t,"EmptySurveyCreatorOptions",(function(){return n.EmptySurveyCreatorOptions}));var a=i(/*! ../creator-base */"./src/creator-base.ts");i.d(t,"TabbedMenuItem",(function(){return a.TabbedMenuItem})),i.d(t,"TabbedMenuContainer",(function(){return a.TabbedMenuContainer})),i.d(t,"CreatorBase",(function(){return a.CreatorBase})),i.d(t,"StylesManager",(function(){return a.StylesManager})),i.d(t,"getElementWrapperComponentName",(function(){return a.getElementWrapperComponentName})),i.d(t,"getElementWrapperComponentData",(function(){return a.getElementWrapperComponentData})),i.d(t,"getItemValueWrapperComponentName",(function(){return a.getItemValueWrapperComponentName})),i.d(t,"getItemValueWrapperComponentData",(function(){return a.getItemValueWrapperComponentData})),i.d(t,"isStringEditable",(function(){return a.isStringEditable}));var s=i(/*! ../creator-responsivity-manager */"./src/creator-responsivity-manager.ts");i.d(t,"CreatorResponsivityManager",(function(){return s.CreatorResponsivityManager}));var l=i(/*! ../components/tabs/embed */"./src/components/tabs/embed.ts");i.d(t,"EmbedModel",(function(){return l.EmbedModel})),i.d(t,"TabEmbedPlugin",(function(){return l.TabEmbedPlugin}));var u=i(/*! ../components/tabs/json-editor-ace */"./src/components/tabs/json-editor-ace.ts");i.d(t,"AceJsonEditorModel",(function(){return u.AceJsonEditorModel})),i.d(t,"TabJsonEditorAcePlugin",(function(){return u.TabJsonEditorAcePlugin}));var c=i(/*! ../components/tabs/json-editor-plugin */"./src/components/tabs/json-editor-plugin.ts");i.d(t,"JsonEditorBaseModel",(function(){return c.JsonEditorBaseModel})),i.d(t,"TabJsonEditorBasePlugin",(function(){return c.TabJsonEditorBasePlugin}));var d=i(/*! ../components/tabs/json-editor-textarea */"./src/components/tabs/json-editor-textarea.ts");i.d(t,"TextareaJsonEditorModel",(function(){return d.TextareaJsonEditorModel})),i.d(t,"TabJsonEditorTextareaPlugin",(function(){return d.TabJsonEditorTextareaPlugin}));var p=i(/*! ../components/tabs/test */"./src/components/tabs/test.ts");i.d(t,"TestSurveyTabViewModel",(function(){return p.TestSurveyTabViewModel}));var m=i(/*! ../components/tabs/test-plugin */"./src/components/tabs/test-plugin.ts");i.d(t,"TabTestPlugin",(function(){return m.TabTestPlugin}));var g=i(/*! ../components/tabs/logic */"./src/components/tabs/logic.ts");i.d(t,"SurveyLogic",(function(){return g.SurveyLogic}));var h=i(/*! ../components/tabs/translation */"./src/components/tabs/translation.ts");i.d(t,"TranslationItemBase",(function(){return h.TranslationItemBase})),i.d(t,"TranslationItemString",(function(){return h.TranslationItemString})),i.d(t,"TranslationItem",(function(){return h.TranslationItem})),i.d(t,"TranslationGroup",(function(){return h.TranslationGroup})),i.d(t,"Translation",(function(){return h.Translation}));var v=i(/*! ../components/tabs/translation-theme */"./src/components/tabs/translation-theme.ts");i.d(t,"translationCss",(function(){return v.translationCss}));var y=i(/*! ../components/tabs/translation-plugin */"./src/components/tabs/translation-plugin.ts");i.d(t,"PropertyGridViewTranslationModel",(function(){return y.PropertyGridViewTranslationModel})),i.d(t,"TabTranslationPlugin",(function(){return y.TabTranslationPlugin}));var f=i(/*! ../components/tabs/designer */"./src/components/tabs/designer.ts");i.d(t,"TabDesignerViewModel",(function(){return f.TabDesignerViewModel})),i.d(t,"TabDesignerPlugin",(function(){return f.TabDesignerPlugin}));var b=i(/*! ../components/tabs/logic-ui */"./src/components/tabs/logic-ui.ts");i.d(t,"SurveyLogicUI",(function(){return b.SurveyLogicUI}));var x=i(/*! ../components/tabs/logic-plugin */"./src/components/tabs/logic-plugin.ts");i.d(t,"TabLogicPlugin",(function(){return x.TabLogicPlugin}));var w=i(/*! ../components/tabs/logic-theme */"./src/components/tabs/logic-theme.ts");i.d(t,"logicCss",(function(){return w.logicCss}));var T=i(/*! ../components/toolbox/toolbox-tool */"./src/components/toolbox/toolbox-tool.ts");i.d(t,"ToolboxToolViewModel",(function(){return T.ToolboxToolViewModel}));var k=i(/*! ../components/page-navigator/page-navigator */"./src/components/page-navigator/page-navigator.ts");i.d(t,"PageNavigatorViewModel",(function(){return k.PageNavigatorViewModel}));var S=i(/*! ../components/page */"./src/components/page.ts");i.d(t,"PageViewModel",(function(){return S.PageViewModel}));var P=i(/*! ../components/row */"./src/components/row.ts");i.d(t,"RowViewModel",(function(){return P.RowViewModel}));var E=i(/*! ../components/question */"./src/components/question.ts");i.d(t,"QuestionAdornerViewModel",(function(){return E.QuestionAdornerViewModel}));var C=i(/*! ../components/question-image */"./src/components/question-image.ts");i.d(t,"QuestionImageAdornerViewModel",(function(){return C.QuestionImageAdornerViewModel}));var N=i(/*! ../components/question-rating */"./src/components/question-rating.ts");i.d(t,"QuestionRatingAdornerViewModel",(function(){return N.QuestionRatingAdornerViewModel}));var _=i(/*! ../components/item-value */"./src/components/item-value.ts");i.d(t,"ItemValueWrapperViewModel",(function(){return _.ItemValueWrapperViewModel}));var O=i(/*! ../components/image-item-value */"./src/components/image-item-value.ts");i.d(t,"ImageItemValueWrapperViewModel",(function(){return O.ImageItemValueWrapperViewModel}));var V=i(/*! ../components/matrix-cell */"./src/components/matrix-cell.ts");i.d(t,"MatrixCellWrapperViewModel",(function(){return V.MatrixCellWrapperViewModel}));var A=i(/*! ../components/simulator */"./src/components/simulator.ts");i.d(t,"SurveySimulatorModel",(function(){return A.SurveySimulatorModel})),i.d(t,"DEFAULT_MONITOR_DPI",(function(){return A.DEFAULT_MONITOR_DPI})),i.d(t,"simulatorDevices",(function(){return A.simulatorDevices}));var j=i(/*! ../components/results */"./src/components/results.ts");i.d(t,"SurveyResultsItemModel",(function(){return j.SurveyResultsItemModel})),i.d(t,"SurveyResultsModel",(function(){return j.SurveyResultsModel}));var z=i(/*! ../components/header/logo-image */"./src/components/header/logo-image.ts");i.d(t,"LogoImageViewModel",(function(){return z.LogoImageViewModel}));var M=i(/*! ../components/string-editor */"./src/components/string-editor.ts");i.d(t,"StringEditorViewModelBase",(function(){return M.StringEditorViewModelBase}));var I=i(/*! ../components/embedded-survey */"./src/components/embedded-survey.ts");i.d(t,"QuestionEmbeddedSurveyModel",(function(){return I.QuestionEmbeddedSurveyModel})),i.d(t,"getLocString",(function(){return r.getLocString}));var q=i(/*! ../json5 */"./src/json5.ts");i.d(t,"SurveyJSON5",(function(){return q.SurveyJSON5}));var L=i(/*! ../property-grid */"./src/property-grid/index.ts");i.d(t,"setSurveyJSONForPropertyGrid",(function(){return L.setSurveyJSONForPropertyGrid})),i.d(t,"PropertyEditorSetupValue",(function(){return L.PropertyEditorSetupValue})),i.d(t,"PropertyGridEditorCollection",(function(){return L.PropertyGridEditorCollection})),i.d(t,"PropertyGridTitleActionsCreator",(function(){return L.PropertyGridTitleActionsCreator})),i.d(t,"PropertyJSONGenerator",(function(){return L.PropertyJSONGenerator})),i.d(t,"PropertyGridModel",(function(){return L.PropertyGridModel})),i.d(t,"PropertyGridEditor",(function(){return L.PropertyGridEditor})),i.d(t,"PropertyGridEditorBoolean",(function(){return L.PropertyGridEditorBoolean})),i.d(t,"PropertyGridEditorStringBase",(function(){return L.PropertyGridEditorStringBase})),i.d(t,"PropertyGridEditorString",(function(){return L.PropertyGridEditorString})),i.d(t,"PropertyGridEditorNumber",(function(){return L.PropertyGridEditorNumber})),i.d(t,"PropertyGridEditorText",(function(){return L.PropertyGridEditorText})),i.d(t,"PropertyGridEditorHtml",(function(){return L.PropertyGridEditorHtml})),i.d(t,"PropertyGridEditorColor",(function(){return L.PropertyGridEditorColor})),i.d(t,"PropertyGridEditorStringArray",(function(){return L.PropertyGridEditorStringArray})),i.d(t,"PropertyGridEditorDropdown",(function(){return L.PropertyGridEditorDropdown})),i.d(t,"PropertyGridEditorSet",(function(){return L.PropertyGridEditorSet})),i.d(t,"PropertyGridEditorPage",(function(){return L.PropertyGridEditorPage})),i.d(t,"PropertyGridEditorQuestion",(function(){return L.PropertyGridEditorQuestion})),i.d(t,"PropertyGridEditorQuestionSelectBase",(function(){return L.PropertyGridEditorQuestionSelectBase})),i.d(t,"PropertyGridEditorQuestionValue",(function(){return L.PropertyGridEditorQuestionValue}));var R=i(/*! ../property-grid/condition */"./src/property-grid/condition.ts");i.d(t,"PropertyGridEditorExpression",(function(){return R.PropertyGridEditorExpression})),i.d(t,"PropertyGridEditorCondition",(function(){return R.PropertyGridEditorCondition}));var D=i(/*! ../property-grid/matrices */"./src/property-grid/matrices.ts");i.d(t,"PropertyGridEditorMatrix",(function(){return D.PropertyGridEditorMatrix})),i.d(t,"PropertyGridEditorMatrixItemValues",(function(){return D.PropertyGridEditorMatrixItemValues})),i.d(t,"PropertyGridEditorMatrixColumns",(function(){return D.PropertyGridEditorMatrixColumns})),i.d(t,"PropertyGridEditorMatrixPages",(function(){return D.PropertyGridEditorMatrixPages})),i.d(t,"PropertyGridEditorMatrixCalculatedValues",(function(){return D.PropertyGridEditorMatrixCalculatedValues})),i.d(t,"PropertyGridEditorMatrixHtmlConditions",(function(){return D.PropertyGridEditorMatrixHtmlConditions})),i.d(t,"PropertyGridEditorMatrixUrlConditions",(function(){return D.PropertyGridEditorMatrixUrlConditions})),i.d(t,"PropertyGridEditorMatrixMutlipleTextItems",(function(){return D.PropertyGridEditorMatrixMutlipleTextItems})),i.d(t,"PropertyGridEditorMatrixMultipleTypes",(function(){return D.PropertyGridEditorMatrixMultipleTypes})),i.d(t,"PropertyGridEditorMatrixValidators",(function(){return D.PropertyGridEditorMatrixValidators})),i.d(t,"PropertyGridEditorMatrixTriggers",(function(){return D.PropertyGridEditorMatrixTriggers})),i.d(t,"PropertyGridEditorBindings",(function(){return D.PropertyGridEditorBindings}));var H=i(/*! ../property-grid/property-grid-view-model */"./src/property-grid/property-grid-view-model.ts");i.d(t,"PropertyGridViewModelBase",(function(){return H.PropertyGridViewModelBase})),i.d(t,"PropertyGridViewModel",(function(){return H.PropertyGridViewModel}));var B=i(/*! ../property-grid/object-selector */"./src/property-grid/object-selector.ts");i.d(t,"ObjectSelectorItem",(function(){return B.ObjectSelectorItem})),i.d(t,"ObjectSelector",(function(){return B.ObjectSelector})),i.d(t,"ObjectSelectorModel",(function(){return B.ObjectSelectorModel}));var F=i(/*! ../property-grid/restfull */"./src/property-grid/restfull.ts");i.d(t,"PropertyGridEditorQuestionRestfull",(function(){return F.PropertyGridEditorQuestionRestfull}));var Q=i(/*! ../property-grid/values */"./src/property-grid/values.ts");i.d(t,"QuestionLinkValueModel",(function(){return Q.QuestionLinkValueModel})),i.d(t,"PropertyGridValueEditorBase",(function(){return Q.PropertyGridValueEditorBase})),i.d(t,"PropertyGridCellsEditor",(function(){return Q.PropertyGridCellsEditor})),i.d(t,"PropertyGridValueEditor",(function(){return Q.PropertyGridValueEditor})),i.d(t,"PropertyGridRowValueEditor",(function(){return Q.PropertyGridRowValueEditor})),i.d(t,"PropertyGridPanelValueEditor",(function(){return Q.PropertyGridPanelValueEditor})),i.d(t,"PropertyGridTriggerValueEditor",(function(){return Q.PropertyGridTriggerValueEditor})),i.d(t,"PropertyGridTriggerValueInLogicEditor",(function(){return Q.PropertyGridTriggerValueInLogicEditor}));var U=i(/*! ../property-grid-theme/property-grid */"./src/property-grid-theme/property-grid.ts");i.d(t,"propertyGridCss",(function(){return U.propertyGridCss}));var G=i(/*! ../questionconverter */"./src/questionconverter.ts");i.d(t,"QuestionConverter",(function(){return G.QuestionConverter}));var J=i(/*! ../svgbundle */"./src/svgbundle.ts");i.d(t,"SvgBundleViewModel",(function(){return J.SvgBundleViewModel}));var W=i(/*! ../textWorker */"./src/textWorker.ts");i.d(t,"SurveyTextWorker",(function(){return W.SurveyTextWorker}));var K=i(/*! ../toolbox */"./src/toolbox.ts");i.d(t,"QuestionToolboxCategory",(function(){return K.QuestionToolboxCategory})),i.d(t,"QuestionToolboxItem",(function(){return K.QuestionToolboxItem})),i.d(t,"QuestionToolbox",(function(){return K.QuestionToolbox})),i(/*! ../utils/events */"./src/utils/events.ts");var Z=i(/*! ../utils/utils */"./src/utils/utils.ts");i.d(t,"getNextValue",(function(){return Z.getNextValue})),i.d(t,"findParentNode",(function(){return Z.findParentNode})),i.d(t,"focusFirstControl",(function(){return Z.focusFirstControl})),i.d(t,"getFirstNonTextElement",(function(){return Z.getFirstNonTextElement})),i.d(t,"getNodesFromKoComponentInfo",(function(){return Z.getNodesFromKoComponentInfo})),i.d(t,"propertyExists",(function(){return Z.propertyExists})),i.d(t,"isPropertyVisible",(function(){return Z.isPropertyVisible})),i.d(t,"toggleHovered",(function(){return Z.toggleHovered})),i.d(t,"clearNewLines",(function(){return Z.clearNewLines})),i.d(t,"select",(function(){return Z.select}));var Y=i(/*! ../question-editor/definition */"./src/question-editor/definition.ts");i.d(t,"SurveyQuestionEditorDefinition",(function(){return Y.SurveyQuestionEditorDefinition}));var X=i(/*! ../survey-helper */"./src/survey-helper.ts");i.d(t,"ObjType",(function(){return X.ObjType})),i.d(t,"SurveyHelper",(function(){return X.SurveyHelper}));var $=i(/*! ../components/notifier */"./src/components/notifier.ts");i.d(t,"Notifier",(function(){return $.Notifier}));var ee=i(/*! ../utils/resizer */"./src/utils/resizer.ts");i.d(t,"ResizeManager",(function(){return ee.ResizeManager}));var te=i(/*! ../plugins/undo-redo */"./src/plugins/undo-redo/index.ts");i.d(t,"UndoRedoPlugin",(function(){return te.UndoRedoPlugin})),i.d(t,"undoRedoTransaction",(function(){return te.undoRedoTransaction})),i.d(t,"ignoreUndoRedo",(function(){return te.ignoreUndoRedo}));var ie=i(/*! ../plugins/undo-redo/undo-redo-manager */"./src/plugins/undo-redo/undo-redo-manager.ts");i.d(t,"UndoRedoManager",(function(){return ie.UndoRedoManager})),i.d(t,"Transaction",(function(){return ie.Transaction})),i.d(t,"UndoRedoAction",(function(){return ie.UndoRedoAction})),i.d(t,"UndoRedoArrayAction",(function(){return ie.UndoRedoArrayAction})),i(/*! ../components/property-panel/property-panel-item.scss */"./src/components/property-panel/property-panel-item.scss"),i(/*! ../components/property-panel/property-panel.scss */"./src/components/property-panel/property-panel.scss"),i(/*! ../components/tabbed-menu/tabbed-menu-item.scss */"./src/components/tabbed-menu/tabbed-menu-item.scss"),i(/*! ../components/tabbed-menu/tabbed-menu.scss */"./src/components/tabbed-menu/tabbed-menu.scss"),i(/*! ../components/toolbox/toolbox-tool.scss */"./src/components/toolbox/toolbox-tool.scss"),i(/*! ../components/question-dropdown.scss */"./src/components/question-dropdown.scss"),i(/*! ../components/toolbox/toolbox.scss */"./src/components/toolbox/toolbox.scss"),i(/*! ../property-grid-theme/property-grid.scss */"./src/property-grid-theme/property-grid.scss"),i(/*! ../utils/design.scss */"./src/utils/design.scss"),i(/*! ../utils/layout.scss */"./src/utils/layout.scss"),i(/*! ../localization/danish */"./src/localization/danish.ts"),i(/*! ../localization/french */"./src/localization/french.ts"),i(/*! ../localization/german */"./src/localization/german.ts"),i(/*! ../localization/finnish */"./src/localization/finnish.ts"),i(/*! ../localization/italian */"./src/localization/italian.ts"),i(/*! ../localization/indonesian */"./src/localization/indonesian.ts"),i(/*! ../localization/korean */"./src/localization/korean.ts"),i(/*! ../localization/persian */"./src/localization/persian.ts"),i(/*! ../localization/polish */"./src/localization/polish.ts"),i(/*! ../localization/portuguese */"./src/localization/portuguese.ts"),i(/*! ../localization/simplified-chinese */"./src/localization/simplified-chinese.ts"),i(/*! ../localization/spanish */"./src/localization/spanish.ts"),i(/*! ../localization/swedish */"./src/localization/swedish.ts"),i(/*! ../localization/traditional-chinese */"./src/localization/traditional-chinese.ts"),i(/*! ../localization/turkish */"./src/localization/turkish.ts"),i(/*! ../localization/norwegian */"./src/localization/norwegian.ts"),i(/*! ../localization/hungarian */"./src/localization/hungarian.ts"),i(/*! ../localization/russian */"./src/localization/russian.ts"),i(/*! ../localization/tajik */"./src/localization/tajik.ts"),i(/*! ../localization/dutch */"./src/localization/dutch.ts"),i(/*! ../localization/croatian */"./src/localization/croatian.ts");var oe,re=i(/*! survey-core */"survey-core");oe="1.8.78-beta.1",re.settings.supportCreatorV2=!0},"./src/expressionToDisplayText.ts":
332
+ /*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorBase, StylesManager, getElementWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, CreatorResponsivityManager, EmbedModel, TabEmbedPlugin, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, translationCss, TabTranslationPlugin, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageViewModel, RowViewModel, QuestionAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, getLocString, SurveyJSON5, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorNumber, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, QuestionLinkValueModel, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorker, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SideBarModel, SideBarTabModel, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, Notifier, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction */function(e,t,i){"use strict";i.r(t),i.d(t,"Version",(function(){return ae}));var o=i(/*! ../localization/english */"./src/localization/english.ts");i.d(t,"enStrings",(function(){return o.enStrings}));var r=i(/*! ../editorLocalization */"./src/editorLocalization.ts");i.d(t,"editorLocalization",(function(){return r.editorLocalization})),i.d(t,"defaultStrings",(function(){return r.defaultStrings})),i.d(t,"localization",(function(){return r.editorLocalization}));var n=i(/*! ../settings */"./src/settings.ts");i.d(t,"QuestionConvertMode",(function(){return n.QuestionConvertMode})),i.d(t,"settings",(function(){return n.settings})),i.d(t,"EmptySurveyCreatorOptions",(function(){return n.EmptySurveyCreatorOptions}));var a=i(/*! ../creator-base */"./src/creator-base.ts");i.d(t,"TabbedMenuItem",(function(){return a.TabbedMenuItem})),i.d(t,"TabbedMenuContainer",(function(){return a.TabbedMenuContainer})),i.d(t,"ToolbarActionContainer",(function(){return a.ToolbarActionContainer})),i.d(t,"CreatorBase",(function(){return a.CreatorBase})),i.d(t,"StylesManager",(function(){return a.StylesManager})),i.d(t,"getElementWrapperComponentName",(function(){return a.getElementWrapperComponentName})),i.d(t,"getElementWrapperComponentData",(function(){return a.getElementWrapperComponentData})),i.d(t,"getItemValueWrapperComponentName",(function(){return a.getItemValueWrapperComponentName})),i.d(t,"getItemValueWrapperComponentData",(function(){return a.getItemValueWrapperComponentData})),i.d(t,"isStringEditable",(function(){return a.isStringEditable}));var s=i(/*! ../creator-responsivity-manager */"./src/creator-responsivity-manager.ts");i.d(t,"CreatorResponsivityManager",(function(){return s.CreatorResponsivityManager}));var l=i(/*! ../components/tabs/embed */"./src/components/tabs/embed.ts");i.d(t,"EmbedModel",(function(){return l.EmbedModel})),i.d(t,"TabEmbedPlugin",(function(){return l.TabEmbedPlugin}));var u=i(/*! ../components/tabs/json-editor-ace */"./src/components/tabs/json-editor-ace.ts");i.d(t,"AceJsonEditorModel",(function(){return u.AceJsonEditorModel})),i.d(t,"TabJsonEditorAcePlugin",(function(){return u.TabJsonEditorAcePlugin}));var c=i(/*! ../components/tabs/json-editor-plugin */"./src/components/tabs/json-editor-plugin.ts");i.d(t,"JsonEditorBaseModel",(function(){return c.JsonEditorBaseModel})),i.d(t,"TabJsonEditorBasePlugin",(function(){return c.TabJsonEditorBasePlugin}));var d=i(/*! ../components/tabs/json-editor-textarea */"./src/components/tabs/json-editor-textarea.ts");i.d(t,"TextareaJsonEditorModel",(function(){return d.TextareaJsonEditorModel})),i.d(t,"TabJsonEditorTextareaPlugin",(function(){return d.TabJsonEditorTextareaPlugin}));var p=i(/*! ../components/tabs/test */"./src/components/tabs/test.ts");i.d(t,"TestSurveyTabViewModel",(function(){return p.TestSurveyTabViewModel}));var m=i(/*! ../components/tabs/test-plugin */"./src/components/tabs/test-plugin.ts");i.d(t,"TabTestPlugin",(function(){return m.TabTestPlugin}));var g=i(/*! ../components/tabs/logic */"./src/components/tabs/logic.ts");i.d(t,"SurveyLogic",(function(){return g.SurveyLogic}));var h=i(/*! ../components/tabs/translation */"./src/components/tabs/translation.ts");i.d(t,"TranslationItemBase",(function(){return h.TranslationItemBase})),i.d(t,"TranslationItemString",(function(){return h.TranslationItemString})),i.d(t,"TranslationItem",(function(){return h.TranslationItem})),i.d(t,"TranslationGroup",(function(){return h.TranslationGroup})),i.d(t,"Translation",(function(){return h.Translation}));var v=i(/*! ../components/tabs/translation-theme */"./src/components/tabs/translation-theme.ts");i.d(t,"translationCss",(function(){return v.translationCss}));var y=i(/*! ../components/tabs/translation-plugin */"./src/components/tabs/translation-plugin.ts");i.d(t,"TabTranslationPlugin",(function(){return y.TabTranslationPlugin}));var f=i(/*! ../components/tabs/designer */"./src/components/tabs/designer.ts");i.d(t,"TabDesignerViewModel",(function(){return f.TabDesignerViewModel}));var b=i(/*! ../components/tabs/designer-plugin */"./src/components/tabs/designer-plugin.ts");i.d(t,"TabDesignerPlugin",(function(){return b.TabDesignerPlugin}));var x=i(/*! ../components/tabs/logic-ui */"./src/components/tabs/logic-ui.ts");i.d(t,"SurveyLogicUI",(function(){return x.SurveyLogicUI}));var w=i(/*! ../components/tabs/logic-plugin */"./src/components/tabs/logic-plugin.ts");i.d(t,"TabLogicPlugin",(function(){return w.TabLogicPlugin}));var T=i(/*! ../components/tabs/logic-theme */"./src/components/tabs/logic-theme.ts");i.d(t,"logicCss",(function(){return T.logicCss}));var k=i(/*! ../components/toolbox/toolbox-tool */"./src/components/toolbox/toolbox-tool.ts");i.d(t,"ToolboxToolViewModel",(function(){return k.ToolboxToolViewModel}));var S=i(/*! ../components/page-navigator/page-navigator */"./src/components/page-navigator/page-navigator.ts");i.d(t,"PageNavigatorViewModel",(function(){return S.PageNavigatorViewModel}));var P=i(/*! ../components/page */"./src/components/page.ts");i.d(t,"PageViewModel",(function(){return P.PageViewModel}));var E=i(/*! ../components/row */"./src/components/row.ts");i.d(t,"RowViewModel",(function(){return E.RowViewModel}));var C=i(/*! ../components/question */"./src/components/question.ts");i.d(t,"QuestionAdornerViewModel",(function(){return C.QuestionAdornerViewModel}));var N=i(/*! ../components/question-image */"./src/components/question-image.ts");i.d(t,"QuestionImageAdornerViewModel",(function(){return N.QuestionImageAdornerViewModel}));var O=i(/*! ../components/question-rating */"./src/components/question-rating.ts");i.d(t,"QuestionRatingAdornerViewModel",(function(){return O.QuestionRatingAdornerViewModel}));var _=i(/*! ../components/item-value */"./src/components/item-value.ts");i.d(t,"ItemValueWrapperViewModel",(function(){return _.ItemValueWrapperViewModel}));var A=i(/*! ../components/image-item-value */"./src/components/image-item-value.ts");i.d(t,"ImageItemValueWrapperViewModel",(function(){return A.ImageItemValueWrapperViewModel}));var j=i(/*! ../components/matrix-cell */"./src/components/matrix-cell.ts");i.d(t,"MatrixCellWrapperViewModel",(function(){return j.MatrixCellWrapperViewModel}));var V=i(/*! ../components/simulator */"./src/components/simulator.ts");i.d(t,"SurveySimulatorModel",(function(){return V.SurveySimulatorModel})),i.d(t,"DEFAULT_MONITOR_DPI",(function(){return V.DEFAULT_MONITOR_DPI})),i.d(t,"simulatorDevices",(function(){return V.simulatorDevices}));var I=i(/*! ../components/results */"./src/components/results.ts");i.d(t,"SurveyResultsItemModel",(function(){return I.SurveyResultsItemModel})),i.d(t,"SurveyResultsModel",(function(){return I.SurveyResultsModel}));var z=i(/*! ../components/header/logo-image */"./src/components/header/logo-image.ts");i.d(t,"LogoImageViewModel",(function(){return z.LogoImageViewModel}));var M=i(/*! ../components/string-editor */"./src/components/string-editor.ts");i.d(t,"StringEditorViewModelBase",(function(){return M.StringEditorViewModelBase}));var q=i(/*! ../components/embedded-survey */"./src/components/embedded-survey.ts");i.d(t,"QuestionEmbeddedSurveyModel",(function(){return q.QuestionEmbeddedSurveyModel})),i.d(t,"getLocString",(function(){return r.getLocString}));var R=i(/*! ../json5 */"./src/json5.ts");i.d(t,"SurveyJSON5",(function(){return R.SurveyJSON5}));var L=i(/*! ../property-grid */"./src/property-grid/index.ts");i.d(t,"setSurveyJSONForPropertyGrid",(function(){return L.setSurveyJSONForPropertyGrid})),i.d(t,"PropertyEditorSetupValue",(function(){return L.PropertyEditorSetupValue})),i.d(t,"PropertyGridEditorCollection",(function(){return L.PropertyGridEditorCollection})),i.d(t,"PropertyGridTitleActionsCreator",(function(){return L.PropertyGridTitleActionsCreator})),i.d(t,"PropertyJSONGenerator",(function(){return L.PropertyJSONGenerator})),i.d(t,"PropertyGridModel",(function(){return L.PropertyGridModel})),i.d(t,"PropertyGridEditor",(function(){return L.PropertyGridEditor})),i.d(t,"PropertyGridEditorBoolean",(function(){return L.PropertyGridEditorBoolean})),i.d(t,"PropertyGridEditorStringBase",(function(){return L.PropertyGridEditorStringBase})),i.d(t,"PropertyGridEditorString",(function(){return L.PropertyGridEditorString})),i.d(t,"PropertyGridEditorNumber",(function(){return L.PropertyGridEditorNumber})),i.d(t,"PropertyGridEditorText",(function(){return L.PropertyGridEditorText})),i.d(t,"PropertyGridEditorHtml",(function(){return L.PropertyGridEditorHtml})),i.d(t,"PropertyGridEditorColor",(function(){return L.PropertyGridEditorColor})),i.d(t,"PropertyGridEditorStringArray",(function(){return L.PropertyGridEditorStringArray})),i.d(t,"PropertyGridEditorDropdown",(function(){return L.PropertyGridEditorDropdown})),i.d(t,"PropertyGridEditorSet",(function(){return L.PropertyGridEditorSet})),i.d(t,"PropertyGridEditorPage",(function(){return L.PropertyGridEditorPage})),i.d(t,"PropertyGridEditorQuestion",(function(){return L.PropertyGridEditorQuestion})),i.d(t,"PropertyGridEditorQuestionSelectBase",(function(){return L.PropertyGridEditorQuestionSelectBase})),i.d(t,"PropertyGridEditorQuestionValue",(function(){return L.PropertyGridEditorQuestionValue}));var D=i(/*! ../property-grid/condition */"./src/property-grid/condition.ts");i.d(t,"PropertyGridEditorExpression",(function(){return D.PropertyGridEditorExpression})),i.d(t,"PropertyGridEditorCondition",(function(){return D.PropertyGridEditorCondition}));var B=i(/*! ../property-grid/matrices */"./src/property-grid/matrices.ts");i.d(t,"PropertyGridEditorMatrix",(function(){return B.PropertyGridEditorMatrix})),i.d(t,"PropertyGridEditorMatrixItemValues",(function(){return B.PropertyGridEditorMatrixItemValues})),i.d(t,"PropertyGridEditorMatrixColumns",(function(){return B.PropertyGridEditorMatrixColumns})),i.d(t,"PropertyGridEditorMatrixPages",(function(){return B.PropertyGridEditorMatrixPages})),i.d(t,"PropertyGridEditorMatrixCalculatedValues",(function(){return B.PropertyGridEditorMatrixCalculatedValues})),i.d(t,"PropertyGridEditorMatrixHtmlConditions",(function(){return B.PropertyGridEditorMatrixHtmlConditions})),i.d(t,"PropertyGridEditorMatrixUrlConditions",(function(){return B.PropertyGridEditorMatrixUrlConditions})),i.d(t,"PropertyGridEditorMatrixMutlipleTextItems",(function(){return B.PropertyGridEditorMatrixMutlipleTextItems})),i.d(t,"PropertyGridEditorMatrixMultipleTypes",(function(){return B.PropertyGridEditorMatrixMultipleTypes})),i.d(t,"PropertyGridEditorMatrixValidators",(function(){return B.PropertyGridEditorMatrixValidators})),i.d(t,"PropertyGridEditorMatrixTriggers",(function(){return B.PropertyGridEditorMatrixTriggers})),i.d(t,"PropertyGridEditorBindings",(function(){return B.PropertyGridEditorBindings}));var H=i(/*! ../property-grid/property-grid-view-model */"./src/property-grid/property-grid-view-model.ts");i.d(t,"PropertyGridViewModel",(function(){return H.PropertyGridViewModel}));var F=i(/*! ../property-grid/object-selector */"./src/property-grid/object-selector.ts");i.d(t,"ObjectSelectorItem",(function(){return F.ObjectSelectorItem})),i.d(t,"ObjectSelector",(function(){return F.ObjectSelector})),i.d(t,"ObjectSelectorModel",(function(){return F.ObjectSelectorModel}));var Q=i(/*! ../property-grid/restfull */"./src/property-grid/restfull.ts");i.d(t,"PropertyGridEditorQuestionRestfull",(function(){return Q.PropertyGridEditorQuestionRestfull}));var U=i(/*! ../property-grid/values */"./src/property-grid/values.ts");i.d(t,"QuestionLinkValueModel",(function(){return U.QuestionLinkValueModel})),i.d(t,"PropertyGridValueEditorBase",(function(){return U.PropertyGridValueEditorBase})),i.d(t,"PropertyGridCellsEditor",(function(){return U.PropertyGridCellsEditor})),i.d(t,"PropertyGridValueEditor",(function(){return U.PropertyGridValueEditor})),i.d(t,"PropertyGridRowValueEditor",(function(){return U.PropertyGridRowValueEditor})),i.d(t,"PropertyGridPanelValueEditor",(function(){return U.PropertyGridPanelValueEditor})),i.d(t,"PropertyGridTriggerValueEditor",(function(){return U.PropertyGridTriggerValueEditor})),i.d(t,"PropertyGridTriggerValueInLogicEditor",(function(){return U.PropertyGridTriggerValueInLogicEditor}));var G=i(/*! ../property-grid-theme/property-grid */"./src/property-grid-theme/property-grid.ts");i.d(t,"propertyGridCss",(function(){return G.propertyGridCss}));var J=i(/*! ../questionconverter */"./src/questionconverter.ts");i.d(t,"QuestionConverter",(function(){return J.QuestionConverter}));var W=i(/*! ../svgbundle */"./src/svgbundle.ts");i.d(t,"svgBundle",(function(){return W.svgBundle}));var K=i(/*! ../textWorker */"./src/textWorker.ts");i.d(t,"SurveyTextWorker",(function(){return K.SurveyTextWorker}));var Z=i(/*! ../toolbox */"./src/toolbox.ts");i.d(t,"QuestionToolboxCategory",(function(){return Z.QuestionToolboxCategory})),i.d(t,"QuestionToolboxItem",(function(){return Z.QuestionToolboxItem})),i.d(t,"QuestionToolbox",(function(){return Z.QuestionToolbox}));var Y=i(/*! ../components/side-bar/side-bar-model */"./src/components/side-bar/side-bar-model.ts");i.d(t,"SideBarModel",(function(){return Y.SideBarModel}));var X=i(/*! ../components/side-bar/side-bar-tab-model */"./src/components/side-bar/side-bar-tab-model.ts");i.d(t,"SideBarTabModel",(function(){return X.SideBarTabModel})),i(/*! ../utils/events */"./src/utils/events.ts");var $=i(/*! ../utils/utils */"./src/utils/utils.ts");i.d(t,"getNextValue",(function(){return $.getNextValue})),i.d(t,"findParentNode",(function(){return $.findParentNode})),i.d(t,"focusFirstControl",(function(){return $.focusFirstControl})),i.d(t,"getFirstNonTextElement",(function(){return $.getFirstNonTextElement})),i.d(t,"getNodesFromKoComponentInfo",(function(){return $.getNodesFromKoComponentInfo})),i.d(t,"propertyExists",(function(){return $.propertyExists})),i.d(t,"isPropertyVisible",(function(){return $.isPropertyVisible})),i.d(t,"toggleHovered",(function(){return $.toggleHovered})),i.d(t,"clearNewLines",(function(){return $.clearNewLines})),i.d(t,"select",(function(){return $.select})),i.d(t,"copyObject",(function(){return $.copyObject})),i.d(t,"copyCssClasses",(function(){return $.copyCssClasses})),i.d(t,"assignDefaultV2Classes",(function(){return $.assignDefaultV2Classes}));var ee=i(/*! ../question-editor/definition */"./src/question-editor/definition.ts");i.d(t,"SurveyQuestionEditorDefinition",(function(){return ee.SurveyQuestionEditorDefinition}));var te=i(/*! ../survey-helper */"./src/survey-helper.ts");i.d(t,"ObjType",(function(){return te.ObjType})),i.d(t,"SurveyHelper",(function(){return te.SurveyHelper}));var ie=i(/*! ../components/notifier */"./src/components/notifier.ts");i.d(t,"Notifier",(function(){return ie.Notifier}));var oe=i(/*! ../utils/resizer */"./src/utils/resizer.ts");i.d(t,"ResizeManager",(function(){return oe.ResizeManager}));var re=i(/*! ../plugins/undo-redo */"./src/plugins/undo-redo/index.ts");i.d(t,"UndoRedoPlugin",(function(){return re.UndoRedoPlugin})),i.d(t,"undoRedoTransaction",(function(){return re.undoRedoTransaction})),i.d(t,"ignoreUndoRedo",(function(){return re.ignoreUndoRedo}));var ne=i(/*! ../plugins/undo-redo/undo-redo-manager */"./src/plugins/undo-redo/undo-redo-manager.ts");i.d(t,"UndoRedoManager",(function(){return ne.UndoRedoManager})),i.d(t,"Transaction",(function(){return ne.Transaction})),i.d(t,"UndoRedoAction",(function(){return ne.UndoRedoAction})),i.d(t,"UndoRedoArrayAction",(function(){return ne.UndoRedoArrayAction})),i(/*! ../components/property-panel/property-panel-item.scss */"./src/components/property-panel/property-panel-item.scss"),i(/*! ../components/property-panel/property-panel.scss */"./src/components/property-panel/property-panel.scss"),i(/*! ../components/tabbed-menu/tabbed-menu-item.scss */"./src/components/tabbed-menu/tabbed-menu-item.scss"),i(/*! ../components/tabbed-menu/tabbed-menu.scss */"./src/components/tabbed-menu/tabbed-menu.scss"),i(/*! ../components/toolbox/toolbox-tool.scss */"./src/components/toolbox/toolbox-tool.scss"),i(/*! ../components/question-dropdown.scss */"./src/components/question-dropdown.scss"),i(/*! ../components/toolbox/toolbox.scss */"./src/components/toolbox/toolbox.scss"),i(/*! ../components/side-bar/side-bar.scss */"./src/components/side-bar/side-bar.scss"),i(/*! ../property-grid-theme/property-grid.scss */"./src/property-grid-theme/property-grid.scss"),i(/*! ../utils/design.scss */"./src/utils/design.scss"),i(/*! ../utils/layout.scss */"./src/utils/layout.scss"),i(/*! ../localization/danish */"./src/localization/danish.ts"),i(/*! ../localization/french */"./src/localization/french.ts"),i(/*! ../localization/german */"./src/localization/german.ts"),i(/*! ../localization/finnish */"./src/localization/finnish.ts"),i(/*! ../localization/italian */"./src/localization/italian.ts"),i(/*! ../localization/indonesian */"./src/localization/indonesian.ts"),i(/*! ../localization/korean */"./src/localization/korean.ts"),i(/*! ../localization/persian */"./src/localization/persian.ts"),i(/*! ../localization/polish */"./src/localization/polish.ts"),i(/*! ../localization/portuguese */"./src/localization/portuguese.ts"),i(/*! ../localization/simplified-chinese */"./src/localization/simplified-chinese.ts"),i(/*! ../localization/spanish */"./src/localization/spanish.ts"),i(/*! ../localization/swedish */"./src/localization/swedish.ts"),i(/*! ../localization/traditional-chinese */"./src/localization/traditional-chinese.ts"),i(/*! ../localization/turkish */"./src/localization/turkish.ts"),i(/*! ../localization/norwegian */"./src/localization/norwegian.ts"),i(/*! ../localization/hungarian */"./src/localization/hungarian.ts"),i(/*! ../localization/russian */"./src/localization/russian.ts"),i(/*! ../localization/tajik */"./src/localization/tajik.ts"),i(/*! ../localization/dutch */"./src/localization/dutch.ts"),i(/*! ../localization/croatian */"./src/localization/croatian.ts");var ae,se=i(/*! survey-core */"survey-core");ae="".concat("1.9.2-beta.1"),se.settings.supportCreatorV2=!0},"./src/expressionToDisplayText.ts":
313
333
  /*!****************************************!*\
314
334
  !*** ./src/expressionToDisplayText.ts ***!
315
335
  \****************************************/
@@ -333,7 +353,7 @@ License: MIT
333
353
  /*!*************************************!*\
334
354
  !*** ./src/localization/english.ts ***!
335
355
  \*************************************/
336
- /*! exports provided: enStrings */function(e,t,i){"use strict";i.r(t),i.d(t,"enStrings",(function(){return o}));var o={survey:{edit:"Edit",externalHelpLink:"Watch and learn how to create surveys",externalHelpLinkUrl:"https://www.youtube.com/channel/UCH2ru9okIcooNZfpIbyq4qQ?view_as=subscriber",dropQuestion:"Please drop a question here from the Toolbox.",addLogicItem:"Create a rule to customize the flow of the survey.",copy:"Copy",duplicate:"Duplicate",settings:"Settings",addToToolbox:"Add to toolbox",deletePanel:"Delete Panel",deleteQuestion:"Delete Question",convertTo:"Convert to",drag:"Drag element",license:"Please purchase a SurveyJS Creator developer license to use it in your app"},qt:{default:"Default",checkbox:"Checkbox",comment:"Comment",imagepicker:"Image picker",ranking:"Ranking",image:"Image",dropdown:"Dropdown",file:"File",html:"Html",matrix:"Matrix (single choice)",matrixdropdown:"Matrix (multiple choice)",matrixdynamic:"Matrix (dynamic rows)",multipletext:"Multiple Text",panel:"Panel",paneldynamic:"Panel (dynamic panels)",radiogroup:"Radiogroup",rating:"Rating",text:"Single Input",boolean:"Boolean",expression:"Expression (read-only)",signaturepad:"Signature pad",buttongroup:"Button group",flowpanel:"Flow Panel"},ed:{defaultLocale:"Default ({0})",survey:"Survey",settings:"Survey Settings",settingsTooltip:"Open survey settings",showPanel:"Show Panel",hidePanel:"Hide Panel",prevSelected:"Select previous",nextSelected:"Select next",surveyTypeName:"Survey",pageTypeName:"Page",panelTypeName:"Panel",questionTypeName:"Question",columnTypeName:"Column",addNewPage:"Add New Page",moveRight:"Scroll to the Right",moveLeft:"Scroll to the Left",deletePage:"Delete Page",editPage:"Edit Page",edit:"Edit",newPageName:"page",newQuestionName:"question",newPanelName:"panel",newTextItemName:"text",testSurvey:"Test Survey",testSurveyAgain:"Test Survey Again",testSurveyWidth:"Survey width: ",navigateToMsg:"You had to navigate to:",logic:"Survey Logic",embedSurvey:"Embed Survey",translation:"Translation",saveSurvey:"Save Survey",saveSurveyTooltip:"Save Survey",designer:"Survey Designer",jsonEditor:"JSON Editor",jsonHideErrors:"Hide errors",jsonShowErrors:"Show errors",undo:"Undo",redo:"Redo",undoTooltip:"Undo last change",redoTooltip:"Redo the change",copy:"Copy",cut:"Cut",paste:"Paste",copyTooltip:"Copy selection to clipboard",cutTooltip:"Cut selection to clipboard",pasteTooltip:"Paste from clipboard",options:"Options",generateValidJSON:"Generate Valid JSON",generateReadableJSON:"Generate Readable JSON",toolbox:"Toolbox","property-grid":"Properties",propertyGridFilteredTextPlaceholder:"Type to search...",toolboxGeneralCategory:"General",correctJSON:"Please correct JSON.",surveyResults:"Survey Result: ",surveyResultsTable:"As Table",surveyResultsJson:"As JSON",resultsTitle:"Question Title",resultsName:"Question Name",resultsValue:"Answer Value",resultsDisplayValue:"Display Value",modified:"Modified",saving:"Saving",saved:"Saved",propertyEditorError:"Error:",saveError:"Error! Editor content is not saved.",translationPropertyGridTitle:"Translation Setting",translationLanguages:"Languages",translationAddLanguage:"Select language to translate",translationShowAllStrings:"Show all strings",translationShowAllPages:"Show all pages",translationNoStrings:"No strings to translate. Please, change the filter.",translationExportToSCVButton:"Export to CSV",translationImportFromSCVButton:"Import from CSV",translationMergeLocaleWithDefault:"Merge {0} with default locale",translationPlaceHolder:"Translation...",bold:"Bold",italic:"Italic",underline:"Underline",fpAddQuestion:"Add question...",selectPage:"Select page...",chooseElement:"Choose element...",htmlPlaceHolder:"HTML content will be here.",panelPlaceHolder:"Drop a question from the toolbox here.",addNewQuestion:"Add Question",addNewTypeQuestion:"Add {0}",chooseLogoPlaceholder:"[LOGO]",lg:{addNewItem:"",empty_tab:"Create a rule to customize the flow of the survey.",page_visibilityName:"Show (hide) page",panel_visibilityName:"Show (hide) panel",panel_enableName:"Enable (disable) panel",question_visibilityName:"Show (hide) question",question_enableName:"Enable (disable) question",question_requireName:"Make question required",trigger_completeName:"Complete survey",trigger_setvalueName:"Set question value",trigger_copyvalueName:"Copy question value",trigger_skipName:"Skip to question",trigger_runExpressionName:"Run custom expression",completedHtmlOnConditionName:"Custom 'Thank you page' text",page_visibilityDescription:"Make the page visible when the logic expression returns true. Otherwise keep it invisible.",panel_visibilityDescription:"Make the panel visible when the logic expression returns true. Otherwise keep it invisible.",panel_enableDescription:"Make the panel, and all elements inside it, enable when the logic expression returns true. Otherwise keep them disabled.",question_visibilityDescription:"Make the question visible when the logic expression returns true. Otherwise keep it invisible.",question_enableDescription:"Make the question enable when the logic expression returns true. Otherwise keep it disabled.",question_requireDescription:"Question becomes required when the logic expression returns true.",trigger_completeDescription:"When the logic expression returns true then the survey becomes completed and an end-user see the 'Thank you page'.",trigger_setvalueDescription:"When question values, that are used in the logic expression, are changed and the logic expression returns true, then the value is set to the selected question.",trigger_copyvalueDescription:"When question values, that are used in the logic expression, are changed and the logic expression returns true, then the value of one selected question is copied to another selected question.",trigger_skipDescription:"When the logic expression returns true then the survey skip to / focus the selected question.",trigger_runExpressionDescription:"When the logic expression returns true, then the custom expression is performed. You may optionally set this expression result into the selected question",completedHtmlOnConditionDescription:"If the logic expression returns true, then the default text for the 'Thank you page' is changed to the given one.",itemExpressionText:"When expression: '{0}' returns true:",itemEmptyExpressionText:"New rule is not set",page_visibilityText:"Make page {0} visible",panel_visibilityText:"Make panel {0} visible",panel_enableText:"Make panel {0} enable",question_visibilityText:"Make question {0} visible",question_enableText:"Make question {0} enable",question_requireText:"Make question {0} required",trigger_completeText:"Survey becomes completed",trigger_setvalueText:"Set into question: {0} value {1}",trigger_copyvalueText:"Copy into question: {0} value from question {1}",trigger_skipText:"Survey skip to the question {0}",trigger_runExpressionText1:"Run expression: '{0}'",trigger_runExpressionText2:" and set its result into question: {0}",completedHtmlOnConditionText:"Show custom text for the 'Thank you page'.",showAllQuestions:"Show all questions",showAllActionTypes:"Show all action types",conditions:"Condition(s)",actions:"Action(s)",expressionEditorTitle:"Define condition(s)",actionsEditorTitle:"Define action(s)",deleteAction:"Delete action",addNewAction:"Add new action",selectedActionCaption:"Select an action to add...",expressionInvalid:"The logic expression is empty or invalid. Please correct it.",noActionError:"Please, add at least one action.",actionInvalid:"Please, fix problems in your action(s).",expressionSetup:"",actionsSetup:""}},pe:{apply:"Apply",ok:"OK",save:"Save",clear:"Clear",saveTooltip:"Save",cancel:"Cancel",set:"Set",reset:"Reset",change:"Change",refresh:"Refresh",close:"Close",delete:"Delete",add:"Add",addNew:"Add New",addItem:"Click to add an item...",removeItem:"Click to remove the item...",dragItem:"Drag the item",addOther:"Other",addSelectAll:"Select All",addNone:"None",removeAll:"Remove All",edit:"Edit",back:"Return without saving",backTooltip:"Return without saving",saveAndBack:"Save and return",saveAndBackTooltip:"Save and return",doneEditing:"Done",editChoices:"Edit Choices",showChoices:"Show Choices",move:"Move",empty:"<empty>",emptyValue:"Value is empty",fastEntry:"Fast Entry",fastEntryNonUniqueError:"Value '{0}' is not unique",fastEntryChoicesCountError:"Please limit the number of items from {0} to {1}",formEntry:"Form Entry",testService:"Test the service",itemSelectorEmpty:"Please select the element",conditionActionEmpty:"Please select the action",conditionSelectQuestion:"Select question...",conditionSelectPage:"Select page...",conditionSelectPanel:"Select panel...",conditionValueQuestionTitle:"Please enter/select the value",expressionHelp:"You can use curly brackets to get access to the question values: {question1} + {question2}, ({price}*{quantity}) * (100 - {discount}). You can use functions as: iif(), today(), age(), min(), max(), count(), avg() and others.",aceEditorHelp:"Press ctrl+space to get expression completion hint",aceEditorRowTitle:"Current row",aceEditorPanelTitle:"Current panel",showMore:"For more details please check the documentation",assistantTitle:"Available questions:",cellsEmptyRowsColumns:"There is should be at least one column or row",propertyIsEmpty:"Please enter a value",propertyIsNoUnique:"Please enter a unique value",propertyNameIsNotUnique:"Please enter a unique name",listIsEmpty:"Add a new item",expressionIsEmpty:"Expression is empty",value:"Value",text:"Text",rowid:"Row ID",imageLink:"Image Link",columnEdit:"Edit column: {0}",itemEdit:"Edit item: {0}",url:"URL",path:"Path",valueName:"Value name",titleName:"Title name",allowEmptyResponse:"Allow empty respose",titlePlaceholder:"Input title here",surveyTitlePlaceholder:"Input survey title here",pageTitlePlaceholder:"Input page title here",descriptionPlaceholder:"Enter a description",surveyDescriptionPlaceholder:"Enter a survey description",pageDescriptionPlaceholder:"Enter a page description",hasOther:"Has other item",otherText:"Other item text",hasNone:"Has none item",noneText:"None item text",hasSelectAll:"Has select all item",selectAllText:"Select all item text",choicesMin:"Minimum value for auto generated items",choicesMax:"Maximum value for auto generated items",choicesStep:"The difference between auto generated items",name:"Name",title:"Title",cellType:"Cell type",colCount:"Column count",choicesOrder:"Select choices order",visible:"Is visible?",isRequired:"Is required?",isAllRowRequired:"Require answer for all rows",requiredErrorText:"Required error text",startWithNewLine:"Is start with new line?",rows:"Row count",cols:"Column count",placeHolder:"Input place holder",showPreview:"Show preview area",storeDataAsText:"Store file content in JSON result as text",maxSize:"Maximum file size in bytes",imageHeight:"Image height",imageWidth:"Image width",rowCount:"Row count",columnLayout:"Columns layout",addRowLocation:"Add row button location",addRowText:"Add row button text",removeRowText:"Remove row button text",rateMin:"Minimum rate",rateMax:"Maximum rate",rateStep:"Rate step",minRateDescription:"Minimum rate description",maxRateDescription:"Maximum rate description",inputType:"Input type",optionsCaption:"Options caption",showOptionsCaption:"Show options caption",defaultValue:"Default value",cellsDefaultRow:"Default cells texts",surveyEditorTitle:"Edit survey settings",qEditorTitle:"Edit: {0}",maxLength:"Maximum length",buildExpression:"Build",editExpression:"Edit",and:"And",or:"Or",remove:"Remove",addCondition:"Add condition",if:"If",then:"Then",setToName:"to",fromName:"from",ruleIsNotSet:"Rule is incorrect",showTitle:"Show/hide title",expandCollapseTitle:"Expand/collapse title",locale:"Default language",simulator:"Choose device",landscapeOrientation:"Landscape",portraitOrientation:"Portrait",mode:"Mode (edit/read only)",clearInvisibleValues:"Clear invisible values",cookieName:"Cookie name (to disable run survey two times locally)",sendResultOnPageNext:"Send survey results on page next",storeOthersAsComment:"Store 'others' value in separate field",showPageTitles:"Show page titles",showPageNumbers:"Show page numbers",pagePrevText:"Page previous button text",pageNextText:"Page next button text",completeText:"Complete button text",previewText:"Preview button text",editText:"Edit button text",startSurveyText:"Start button text",showNavigationButtons:"Show navigation buttons (default navigation)",showPrevButton:"Show previous button (user may return on previous page)",firstPageIsStarted:"The first page in the survey is a started page.",showCompletedPage:"Show the completed page at the end (completedHtml)",goNextPageAutomatic:"On answering all questions, go to the next page automatically",showProgressBar:"Show progress bar",questionTitleLocation:"Question title location",requiredText:"The question required symbol(s)",questionStartIndex:"Question start index (1, 2 or 'A', 'a')",showQuestionNumbers:"Show question numbers",questionTitleTemplate:"Question title template, default is: '{no}. {require} {title}'",questionErrorLocation:"Question error location",focusFirstQuestionAutomatic:"Focus first question on changing the page",questionsOrder:"Elements order on the page",maxTimeToFinish:"Maximum time to finish the survey",maxTimeToFinishPage:"Maximum time to finish a page in the survey",showTimerPanel:"Show timer panel",showTimerPanelMode:"Show timer panel mode",renderMode:"Render mode",allowAddPanel:"Allow adding a panel",allowRemovePanel:"Allow removing the panel",panelAddText:"Adding panel text",panelRemoveText:"Removing panel text",isSinglePage:"Show all elements on one page",html:"Html",expression:"Expression",minValue:"Minimum value",maxValue:"Maximum value",minLength:"Minimum length",allowDigits:"Allow digits",minCount:"Minimum count",maxCount:"Maximum count",regex:"Regular expression",totalText:"Total text",totalType:"Total type",totalExpression:"Total expression",totalDisplayStyle:"Total display style",totalCurrency:"Total currency",totalFormat:"Total format",logoPosition:"Logo position",addLogo:"Add logo...",changeLogo:"Change logo...",logoPositions:{none:"Remove logo",left:"Left",right:"Right",top:"On the top",bottom:"In the bottom"},tabs:{general:"General",fileOptions:"Options",html:"Html Editor",columns:"Columns",rows:"Rows",choices:"Choices",items:"Items",visibleIf:"Visible If",enableIf:"Enable If",requiredIf:"Required If",rateValues:"Rate Values",choicesByUrl:"Choices from Web",matrixChoices:"Default Choices",multipleTextItems:"Text Inputs",numbering:"Numbering",validators:"Validators",navigation:"Navigation",question:"Question",pages:"Pages",completedHtml:"Completed Html",completedHtmlOnCondition:"Completed Html on Condition",loadingHtml:"Loading Html",timer:"Timer/Quiz",calculatedValues:"Calculated Values",triggers:"Triggers",templateTitle:"Template title",totals:"Totals",logic:"Logic",layout:"Layout",data:"Data",validation:"Validation",cells:"Cells",showOnCompleted:"Show on Completed",logo:"Logo in Survey Title",slider:"Slider",others:"Others"},editProperty:"Edit property '{0}'",items:"[ Items: {0} ]",enterNewValue:"Please, enter the value.",noquestions:"There is no any question in the survey.",createtrigger:"Please create a trigger",titleKeyboardAdornerTip:"Press enter button to edit",keyboardAdornerTip:"Press enter button to edit item, press delete button to delete item, press alt plus arrow up or arrow down to move item",triggerOn:"On ",triggerMakePagesVisible:"Make pages visible:",triggerMakeQuestionsVisible:"Make elements visible:",triggerCompleteText:"Complete the survey if succeed.",triggerNotSet:"The trigger is not set",triggerRunIf:"Run if",triggerSetToName:"Change value of: ",triggerFromName:"Copy value from: ",triggerRunExpression:"Run this Expression:",triggerSetValue:"to: ",triggerGotoName:"Go to the question:",triggerIsVariable:"Do not put the variable into the survey result.",triggerRunExpressionEmpty:"Please enter a valid expression",noFile:"No file choosen"},pv:{true:"true",false:"false",inherit:"inherit",show:"show",hide:"hide",default:"default",initial:"initial",random:"random",collapsed:"collapsed",expanded:"expanded",none:"none",asc:"ascending",desc:"descending",indeterminate:"indeterminate",decimal:"decimal",currency:"currency",percent:"percent",firstExpanded:"first expanded",off:"off",onPanel:"on panel",onSurvey:"on survey",list:"list",progressTop:"progress on top",progressBottom:"progress on bottom",progressTopBottom:"progress on top&bottom",horizontal:"horizontal",vertical:"vertical",top:"top",bottom:"bottom",topBottom:"top and bottom",both:"both",left:"left",color:"color",date:"date",datetime:"datetime","datetime-local":"datetime-local",email:"email",month:"month",number:"number",password:"password",range:"range",tel:"tel",text:"text",time:"time",url:"url",week:"week",hidden:"hidden",on:"on",onPage:"on page",edit:"edit",display:"display",onComplete:"on complete",onHidden:"on hidden",all:"all",page:"page",survey:"survey",onNextPage:"on next page",onValueChanged:"on value changed",singlePage:"single page",standard:"standard",questionPerPage:"question per page",noPreview:"no preview",showAllQuestions:"show preview with all questions",showAnsweredQuestions:"show preview with answered questions",pages:"pages",questions:"questions",requiredQuestions:"required questions",correctQuestions:"correct questions",buttons:"buttons",underInput:"under input",underTitle:"under title"},op:{empty:"is empty",notempty:"is not empty",equal:"equals",notequal:"not equals",contains:"contains",notcontains:"not contains",anyof:"any of",allof:"all of",greater:"greater",less:"less",greaterorequal:"greater or equals",lessorequal:"less or equals",and:"and",or:"or"},ew:{angular:"Use Angular version",jquery:"Use jQuery version",knockout:"Use Knockout version",react:"Use React version",vue:"Use Vue version",bootstrap:"For bootstrap framework",modern:"Modern theme",default:"Default theme",orange:"Orange theme",darkblue:"Darkblue theme",darkrose:"Darkrose theme",stone:"Stone theme",winter:"Winter theme",winterstone:"Winter-Stone theme",showOnPage:"Show survey on a page",showInWindow:"Show survey in a window",loadFromServer:"Load Survey JSON from server",titleScript:"Scripts and styles",titleHtml:"HTML",titleJavaScript:"JavaScript"},ts:{selectPage:"Select the page to test it:",showInvisibleElements:"Show invisible elements"},validators:{answercountvalidator:"answer count",emailvalidator:"e-mail",expressionvalidator:"expression",numericvalidator:"numeric",regexvalidator:"regex",textvalidator:"text"},triggers:{completetrigger:"complete survey",setvaluetrigger:"set value",copyvaluetrigger:"copy value",skiptrigger:"skip to question",runexpressiontrigger:"run expression",visibletrigger:"change visibility (deprecated)"},pehelp:{},p:{name:"name",title:{name:"title",title:"Leave it empty, if it is the same as 'Name'"},navigationButtonsVisibility:"navigationButtonsVisibility",questionsOrder:"questionsOrder",maxTimeToFinish:"maxTimeToFinish",visible:"visible",visibleIf:"visibleIf",questionTitleLocation:"questionTitleLocation",description:"description",state:"state",isRequired:"isRequired",requiredIf:"requiredIf",indent:"indent",requiredErrorText:"requiredErrorText",startWithNewLine:"startWithNewLine",innerIndent:"innerIndent",page:"page",width:"width",commentText:"commentText",valueName:"valueName",enableIf:"enableIf",defaultValue:"defaultValue",correctAnswer:"correctAnswer",readOnly:"readOnly",validators:"validators",titleLocation:"titleLocation",hasComment:"hasComment",hasOther:"hasOther",choices:"choices",choicesOrder:"choicesOrder",choicesByUrl:"choicesByUrl",otherText:"otherText",otherErrorText:"otherErrorText",storeOthersAsComment:"storeOthersAsComment",label:"label",showTitle:"showTitle",valueTrue:"valueTrue",valueFalse:"valueFalse",cols:"cols",rows:"rows",placeHolder:"placeHolder",optionsCaption:"optionsCaption",expression:"expression",format:"format",displayStyle:"displayStyle",currency:"currency",useGrouping:"useGrouping",showPreview:"showPreview",allowMultiple:"allowMultiple",imageHeight:"imageHeight",imageWidth:"imageWidth",storeDataAsText:"storeDataAsText",maxSize:"maxSize",html:"html",columns:"columns",cells:"cells",isAllRowRequired:"isAllRowRequired",horizontalScroll:"horizontalScroll",cellType:"cellType",columnsLayout:"columnsLayout",columnColCount:"columnColCount",columnMinWidth:"columnMinWidth",rowCount:"rowCount",minRowCount:"minRowCount",maxRowCount:"maxRowCount",keyName:"keyName",keyDuplicationError:"keyDuplicationError",confirmDelete:"confirmDelete",confirmDeleteText:"confirmDeleteText",addRowLocation:"addRowLocation",addRowText:"addRowText",removeRowText:"removeRowText",items:"items",itemSize:"itemSize",colCount:"colCount",templateTitle:"templateTitle",templateDescription:"templateDescription",allowAddPanel:"allowAddPanel",allowRemovePanel:"allowRemovePanel",panelCount:"panelCount",minPanelCount:"minPanelCount",maxPanelCount:"maxPanelCount",panelsState:"panelsState",panelAddText:"panelAddText",panelRemoveText:"panelRemoveText",panelPrevText:"panelPrevText",panelNextText:"panelNextText",showQuestionNumbers:"showQuestionNumbers",showRangeInProgress:"showRangeInProgress",renderMode:"renderMode",templateTitleLocation:"templateTitleLocation",rateValues:"rateValues",rateMin:"rateMin",rateMax:"rateMax",rateStep:"rateStep",minRateDescription:"minRateDescription",maxRateDescription:"maxRateDescription",inputType:"inputType",size:"size",locale:"locale",focusFirstQuestionAutomatic:"focusFirstQuestionAutomatic",completedHtml:"completedHtml",completedBeforeHtml:"completedBeforeHtml",loadingHtml:"loadingHtml",triggers:"triggers",cookieName:"cookieName",sendResultOnPageNext:"sendResultOnPageNext",showNavigationButtons:"showNavigationButtons",showPrevButton:"showPrevButton",showPageTitles:"showPageTitles",showCompletedPage:"showCompletedPage",showPageNumbers:"showPageNumbers",questionErrorLocation:"questionErrorLocation",showProgressBar:"showProgressBar",mode:"mode",goNextPageAutomatic:"goNextPageAutomatic",checkErrorsMode:"checkErrorsMode",clearInvisibleValues:"clearInvisibleValues",startSurveyText:"startSurveyText",pagePrevText:"pagePrevText",pageNextText:"pageNextText",completeText:"completeText",requiredText:"requiredText",questionStartIndex:"questionStartIndex",questionTitleTemplate:"questionTitleTemplate",firstPageIsStarted:"firstPageIsStarted",isSinglePage:"isSinglePage",maxTimeToFinishPage:"maxTimeToFinishPage",showTimerPanel:"showTimerPanel",showTimerPanelMode:"showTimerPanelMode",defaultPanelValue:"defaultPanelValue",defaultRowValue:"defaultRowValue",hasNone:"hasNone",noneText:"noneText",text:"text",multiSelect:"Multi select",showLabel:"Show label",logo:"logo",logoWidth:"logoWidth",logoHeight:"logoHeight",logoFit:"logoFit",focusOnFirstError:"focusOnFirstError",completedHtmlOnCondition:"completedHtmlOnCondition",pages:"pages",calculatedValues:"calculatedValues",navigateToUrl:"navigateToUrl",navigateToUrlOnCondition:"navigateToUrlOnCondition",questionDescriptionLocation:"questionDescriptionLocation",progressBarType:"progressBarType",maxTextLength:"maxTextLength",maxOthersLength:"maxOthersLength",textUpdateMode:"textUpdateMode",autoGrowComment:"autoGrowComment",questionTitlePattern:"questionTitlePattern",questionsOnPageMode:"questionsOnPageMode",showPreviewBeforeComplete:"showPreviewBeforeComplete",widthMode:"widthMode",showNumber:"showNumber",navigationTitle:"navigationTitle",navigationDescription:"navigationDescription",useDisplayValuesInTitle:"useDisplayValuesInTitle",minWidth:"minWidth",maxWidth:"maxWidth",descriptionLocation:"descriptionLocation",hideNumber:"hideNumber",defaultValueExpression:"defaultValueExpression",bindings:"bindings",columnsVisibleIf:"columnsVisibleIf",rowsVisibleIf:"rowsVisibleIf",showHeader:"showHeader",detailPanelMode:"detailPanelMode",rowTitleWidth:"rowTitleWidth",allowAddRows:"allowAddRows",allowRemoveRows:"allowRemoveRows",defaultValueFromLastRow:"defaultValueFromLastRow",hideColumnsIfEmpty:"hideColumnsIfEmpty",emptyRowsText:"emptyRowsText",detailPanelShowOnAdding:"detailPanelShowOnAdding",allowRowsDragAndDrop:"allowRowsDragAndDrop",rowsOrder:"rowsOrder",hideIfRowsEmpty:"hideIfRowsEmpty",maximumFractionDigits:"maximumFractionDigits",minimumFractionDigits:"minimumFractionDigits",choicesFromQuestion:"choicesFromQuestion",choicesFromQuestionMode:"choicesFromQuestionMode",hideIfChoicesEmpty:"hideIfChoicesEmpty",choicesVisibleIf:"choicesVisibleIf",choicesEnableIf:"choicesEnableIf",otherPlaceHolder:"otherPlaceHolder",maxSelectedChoices:"maxSelectedChoices",showClearButton:"showClearButton",contentMode:"contentMode",imageFit:"imageFit",autoComplete:"autoComplete",min:"min",max:"max",minValueExpression:"minValueExpression",maxValueExpression:"maxValueExpression",minErrorText:"minErrorText",maxErrorText:"maxErrorText",step:"step",dataList:"dataList",autoGrow:"autoGrow",multiLine:"multiLine",allowImagesPreview:"allowImagesPreview",acceptedTypes:"acceptedTypes",waitForUpload:"waitForUpload",needConfirmRemoveFile:"needConfirmRemoveFile",labelTrue:"labelTrue",labelFalse:"labelFalse",height:"height",allowClear:"allowClear",penColor:"penColor",backgroundColor:"backgroundColor",dataFormat:"dataFormat",defaultValueFromLastPanel:"defaultValueFromLastPanel",panelRemoveButtonLocation:"panelRemoveButtonLocation",showCaption:"showCaption",iconName:"iconName",iconSize:"iconSize"}}},"./src/localization/finnish.ts":
356
+ /*! exports provided: enStrings */function(e,t,i){"use strict";i.r(t),i.d(t,"enStrings",(function(){return o}));var o={survey:{edit:"Edit",externalHelpLink:"Watch and learn how to create surveys",externalHelpLinkUrl:"https://www.youtube.com/channel/UCH2ru9okIcooNZfpIbyq4qQ?view_as=subscriber",dropQuestion:"Please drop a question here from the Toolbox.",addLogicItem:"Create a rule to customize the flow of the survey.",copy:"Copy",duplicate:"Duplicate",settings:"Settings",addToToolbox:"Add to toolbox",deletePanel:"Delete Panel",deleteQuestion:"Delete Question",convertTo:"Convert to",drag:"Drag element",license:"Please purchase a SurveyJS Creator developer license to use it in your app"},qt:{default:"Default",checkbox:"Checkbox",comment:"Comment",imagepicker:"Image picker",ranking:"Ranking",image:"Image",dropdown:"Dropdown",file:"File",html:"Html",matrix:"Matrix (single choice)",matrixdropdown:"Matrix (multiple choice)",matrixdynamic:"Matrix (dynamic rows)",multipletext:"Multiple Text",panel:"Panel",paneldynamic:"Panel (dynamic panels)",radiogroup:"Radiogroup",rating:"Rating",text:"Single Input",boolean:"Boolean",expression:"Expression (read-only)",signaturepad:"Signature pad",buttongroup:"Button group",flowpanel:"Flow Panel"},ed:{defaultLocale:"Default ({0})",survey:"Survey",settings:"Survey Settings",settingsTooltip:"Open survey settings",showPanel:"Show Panel",hidePanel:"Hide Panel",prevSelected:"Select previous",nextSelected:"Select next",surveyTypeName:"Survey",pageTypeName:"Page",panelTypeName:"Panel",questionTypeName:"Question",columnTypeName:"Column",addNewPage:"Add New Page",moveRight:"Scroll to the Right",moveLeft:"Scroll to the Left",deletePage:"Delete Page",editPage:"Edit Page",edit:"Edit",newPageName:"page",newQuestionName:"question",newPanelName:"panel",newTextItemName:"text",testSurvey:"Preview",testSurveyAgain:"Test Survey Again",testSurveyWidth:"Survey width: ",navigateToMsg:"You had to navigate to:",logic:"Logic",embedSurvey:"Embed Survey",translation:"Translation",saveSurvey:"Save Survey",saveSurveyTooltip:"Save Survey",designer:"Designer",jsonEditor:"JSON Editor",jsonHideErrors:"Hide errors",jsonShowErrors:"Show errors",undo:"Undo",redo:"Redo",undoTooltip:"Undo last change",redoTooltip:"Redo the change",copy:"Copy",cut:"Cut",paste:"Paste",copyTooltip:"Copy selection to clipboard",cutTooltip:"Cut selection to clipboard",pasteTooltip:"Paste from clipboard",options:"Options",generateValidJSON:"Generate Valid JSON",generateReadableJSON:"Generate Readable JSON",toolbox:"Toolbox","property-grid":"Properties",propertyGridFilteredTextPlaceholder:"Type to search...",toolboxGeneralCategory:"General",correctJSON:"Please correct JSON.",surveyResults:"Survey Result: ",surveyResultsTable:"As Table",surveyResultsJson:"As JSON",resultsTitle:"Question Title",resultsName:"Question Name",resultsValue:"Answer Value",resultsDisplayValue:"Display Value",modified:"Modified",saving:"Saving",saved:"Saved",propertyEditorError:"Error:",saveError:"Error! Editor content is not saved.",translationPropertyGridTitle:"Translation Setting",translationLanguages:"Languages",translationAddLanguage:"Select language to translate",translationShowAllStrings:"Show all strings",translationShowAllPages:"Show all pages",translationNoStrings:"No strings to translate. Please, change the filter.",translationExportToSCVButton:"Export to CSV",translationImportFromSCVButton:"Import from CSV",translationMergeLocaleWithDefault:"Merge {0} with default locale",translationPlaceHolder:"Translation...",bold:"Bold",italic:"Italic",underline:"Underline",fpAddQuestion:"Add question...",selectPage:"Select page...",chooseElement:"Choose element...",htmlPlaceHolder:"HTML content will be here.",panelPlaceHolder:"Drop a question from the toolbox here.",addNewQuestion:"Add Question",addNewTypeQuestion:"Add {0}",chooseLogoPlaceholder:"[LOGO]",lg:{addNewItem:"",empty_tab:"Create a rule to customize the flow of the survey.",page_visibilityName:"Show (hide) page",panel_visibilityName:"Show (hide) panel",panel_enableName:"Enable (disable) panel",question_visibilityName:"Show (hide) question",question_enableName:"Enable (disable) question",question_requireName:"Make question required",trigger_completeName:"Complete survey",trigger_setvalueName:"Set question value",trigger_copyvalueName:"Copy question value",trigger_skipName:"Skip to question",trigger_runExpressionName:"Run custom expression",completedHtmlOnConditionName:"Custom 'Thank you page' text",page_visibilityDescription:"Make the page visible when the logic expression returns true. Otherwise keep it invisible.",panel_visibilityDescription:"Make the panel visible when the logic expression returns true. Otherwise keep it invisible.",panel_enableDescription:"Make the panel, and all elements inside it, enable when the logic expression returns true. Otherwise keep them disabled.",question_visibilityDescription:"Make the question visible when the logic expression returns true. Otherwise keep it invisible.",question_enableDescription:"Make the question enable when the logic expression returns true. Otherwise keep it disabled.",question_requireDescription:"Question becomes required when the logic expression returns true.",trigger_completeDescription:"When the logic expression returns true then the survey becomes completed and an end-user see the 'Thank you page'.",trigger_setvalueDescription:"When question values, that are used in the logic expression, are changed and the logic expression returns true, then the value is set to the selected question.",trigger_copyvalueDescription:"When question values, that are used in the logic expression, are changed and the logic expression returns true, then the value of one selected question is copied to another selected question.",trigger_skipDescription:"When the logic expression returns true then the survey skip to / focus the selected question.",trigger_runExpressionDescription:"When the logic expression returns true, then the custom expression is performed. You may optionally set this expression result into the selected question",completedHtmlOnConditionDescription:"If the logic expression returns true, then the default text for the 'Thank you page' is changed to the given one.",itemExpressionText:"When expression: '{0}' returns true:",itemEmptyExpressionText:"New rule is not set",page_visibilityText:"Make page {0} visible",panel_visibilityText:"Make panel {0} visible",panel_enableText:"Make panel {0} enable",question_visibilityText:"Make question {0} visible",question_enableText:"Make question {0} enable",question_requireText:"Make question {0} required",trigger_completeText:"Survey becomes completed",trigger_setvalueText:"Set into question: {0} value {1}",trigger_copyvalueText:"Copy into question: {0} value from question {1}",trigger_skipText:"Survey skip to the question {0}",trigger_runExpressionText1:"Run expression: '{0}'",trigger_runExpressionText2:" and set its result into question: {0}",completedHtmlOnConditionText:"Show custom text for the 'Thank you page'.",showAllQuestions:"Show all questions",showAllActionTypes:"Show all action types",conditions:"Condition(s)",actions:"Action(s)",expressionEditorTitle:"Define condition(s)",actionsEditorTitle:"Define action(s)",deleteAction:"Delete action",addNewAction:"Add new action",selectedActionCaption:"Select an action to add...",expressionInvalid:"The logic expression is empty or invalid. Please correct it.",noActionError:"Please, add at least one action.",actionInvalid:"Please, fix problems in your action(s).",expressionSetup:"",actionsSetup:""}},pe:{apply:"Apply",ok:"OK",save:"Save",clear:"Clear",saveTooltip:"Save",cancel:"Cancel",set:"Set",reset:"Reset",change:"Change",refresh:"Refresh",close:"Close",delete:"Delete",add:"Add",addNew:"Add New",addItem:"Click to add an item...",removeItem:"Click to remove the item...",dragItem:"Drag the item",addOther:"Other",addSelectAll:"Select All",addNone:"None",removeAll:"Remove All",edit:"Edit",back:"Return without saving",backTooltip:"Return without saving",saveAndBack:"Save and return",saveAndBackTooltip:"Save and return",doneEditing:"Done",editChoices:"Edit Choices",showChoices:"Show Choices",move:"Move",empty:"<empty>",emptyValue:"Value is empty",fastEntry:"Fast Entry",fastEntryNonUniqueError:"Value '{0}' is not unique",fastEntryChoicesCountError:"Please limit the number of items from {0} to {1}",formEntry:"Form Entry",testService:"Test the service",itemSelectorEmpty:"Please select the element",conditionActionEmpty:"Please select the action",conditionSelectQuestion:"Select question...",conditionSelectPage:"Select page...",conditionSelectPanel:"Select panel...",conditionValueQuestionTitle:"Please enter/select the value",expressionHelp:"You can use curly brackets to get access to the question values: {question1} + {question2}, ({price}*{quantity}) * (100 - {discount}). You can use functions as: iif(), today(), age(), min(), max(), count(), avg() and others.",aceEditorHelp:"Press ctrl+space to get expression completion hint",aceEditorRowTitle:"Current row",aceEditorPanelTitle:"Current panel",showMore:"For more details please check the documentation",assistantTitle:"Available questions:",cellsEmptyRowsColumns:"There is should be at least one column or row",propertyIsEmpty:"Please enter a value",propertyIsNoUnique:"Please enter a unique value",propertyNameIsNotUnique:"Please enter a unique name",listIsEmpty:"Add a new item",expressionIsEmpty:"Expression is empty",value:"Value",text:"Text",rowid:"Row ID",imageLink:"Image Link",columnEdit:"Edit column: {0}",itemEdit:"Edit item: {0}",url:"URL",path:"Path",valueName:"Value name",titleName:"Title name",allowEmptyResponse:"Allow empty respose",titlePlaceholder:"Input title here",surveyTitlePlaceholder:"Input survey title here",pageTitlePlaceholder:"Input page title here",descriptionPlaceholder:"Enter a description",surveyDescriptionPlaceholder:"Enter a survey description",pageDescriptionPlaceholder:"Enter a page description",hasOther:"Has other item",otherText:"Other item text",hasNone:"Has none item",noneText:"None item text",hasSelectAll:"Has select all item",selectAllText:"Select all item text",choicesMin:"Minimum value for auto generated items",choicesMax:"Maximum value for auto generated items",choicesStep:"The difference between auto generated items",name:"Name",title:"Title",cellType:"Cell type",colCount:"Column count",choicesOrder:"Select choices order",visible:"Is visible?",isRequired:"Is required?",isAllRowRequired:"Require answer for all rows",requiredErrorText:"Required error text",startWithNewLine:"Is start with new line?",rows:"Row count",cols:"Column count",placeHolder:"Input place holder",showPreview:"Show preview area",storeDataAsText:"Store file content in JSON result as text",maxSize:"Maximum file size in bytes",imageHeight:"Image height",imageWidth:"Image width",rowCount:"Row count",columnLayout:"Columns layout",addRowLocation:"Add row button location",addRowText:"Add row button text",removeRowText:"Remove row button text",rateMin:"Minimum rate",rateMax:"Maximum rate",rateStep:"Rate step",minRateDescription:"Minimum rate description",maxRateDescription:"Maximum rate description",inputType:"Input type",optionsCaption:"Options caption",showOptionsCaption:"Show options caption",defaultValue:"Default value",cellsDefaultRow:"Default cells texts",surveyEditorTitle:"Edit survey settings",qEditorTitle:"Edit: {0}",maxLength:"Maximum length",buildExpression:"Build",editExpression:"Edit",and:"And",or:"Or",remove:"Remove",addCondition:"Add condition",if:"If",then:"Then",setToName:"to",fromName:"from",ruleIsNotSet:"Rule is incorrect",showTitle:"Show/hide title",expandCollapseTitle:"Expand/collapse title",locale:"Default language",simulator:"Choose device",landscapeOrientation:"Landscape",portraitOrientation:"Portrait",mode:"Mode (edit/read only)",clearInvisibleValues:"Clear invisible values",cookieName:"Cookie name (to disable run survey two times locally)",sendResultOnPageNext:"Send survey results on page next",storeOthersAsComment:"Store 'others' value in separate field",showPageTitles:"Show page titles",showPageNumbers:"Show page numbers",pagePrevText:"Page previous button text",pageNextText:"Page next button text",completeText:"Complete button text",previewText:"Preview button text",editText:"Edit button text",startSurveyText:"Start button text",showNavigationButtons:"Show navigation buttons (default navigation)",showPrevButton:"Show previous button (user may return on previous page)",firstPageIsStarted:"The first page in the survey is a started page.",showCompletedPage:"Show the completed page at the end (completedHtml)",goNextPageAutomatic:"On answering all questions, go to the next page automatically",showProgressBar:"Show progress bar",questionTitleLocation:"Question title location",requiredText:"The question required symbol(s)",questionStartIndex:"Question start index (1, 2 or 'A', 'a')",showQuestionNumbers:"Show question numbers",questionTitleTemplate:"Question title template, default is: '{no}. {require} {title}'",questionErrorLocation:"Question error location",focusFirstQuestionAutomatic:"Focus first question on changing the page",questionsOrder:"Elements order on the page",maxTimeToFinish:"Maximum time to finish the survey",maxTimeToFinishPage:"Maximum time to finish a page in the survey",showTimerPanel:"Show timer panel",showTimerPanelMode:"Show timer panel mode",renderMode:"Render mode",allowAddPanel:"Allow adding a panel",allowRemovePanel:"Allow removing the panel",panelAddText:"Adding panel text",panelRemoveText:"Removing panel text",isSinglePage:"Show all elements on one page",html:"Html",expression:"Expression",minValue:"Minimum value",maxValue:"Maximum value",minLength:"Minimum length",allowDigits:"Allow digits",minCount:"Minimum count",maxCount:"Maximum count",regex:"Regular expression",totalText:"Total text",totalType:"Total type",totalExpression:"Total expression",totalDisplayStyle:"Total display style",totalCurrency:"Total currency",totalFormat:"Total format",logoPosition:"Logo position",addLogo:"Add logo...",changeLogo:"Change logo...",logoPositions:{none:"Remove logo",left:"Left",right:"Right",top:"On the top",bottom:"In the bottom"},tabs:{general:"General",fileOptions:"Options",html:"Html Editor",columns:"Columns",rows:"Rows",choices:"Choices",items:"Items",visibleIf:"Visible If",enableIf:"Enable If",requiredIf:"Required If",rateValues:"Rate Values",choicesByUrl:"Choices from Web",matrixChoices:"Default Choices",multipleTextItems:"Text Inputs",numbering:"Numbering",validators:"Validators",navigation:"Navigation",question:"Question",pages:"Pages",completedHtml:"Completed Html",completedHtmlOnCondition:"Completed Html on Condition",loadingHtml:"Loading Html",timer:"Timer/Quiz",calculatedValues:"Calculated Values",triggers:"Triggers",templateTitle:"Template title",totals:"Totals",logic:"Logic",layout:"Layout",data:"Data",validation:"Validation",cells:"Cells",showOnCompleted:"Show on Completed",logo:"Logo in Survey Title",slider:"Slider",others:"Others"},editProperty:"Edit property '{0}'",items:"[ Items: {0} ]",enterNewValue:"Please, enter the value.",noquestions:"There is no any question in the survey.",createtrigger:"Please create a trigger",titleKeyboardAdornerTip:"Press enter button to edit",keyboardAdornerTip:"Press enter button to edit item, press delete button to delete item, press alt plus arrow up or arrow down to move item",triggerOn:"On ",triggerMakePagesVisible:"Make pages visible:",triggerMakeQuestionsVisible:"Make elements visible:",triggerCompleteText:"Complete the survey if succeed.",triggerNotSet:"The trigger is not set",triggerRunIf:"Run if",triggerSetToName:"Change value of: ",triggerFromName:"Copy value from: ",triggerRunExpression:"Run this Expression:",triggerSetValue:"to: ",triggerGotoName:"Go to the question:",triggerIsVariable:"Do not put the variable into the survey result.",triggerRunExpressionEmpty:"Please enter a valid expression",noFile:"No file choosen"},pv:{true:"true",false:"false",inherit:"inherit",show:"show",hide:"hide",default:"default",initial:"initial",random:"random",collapsed:"collapsed",expanded:"expanded",none:"none",asc:"ascending",desc:"descending",indeterminate:"indeterminate",decimal:"decimal",currency:"currency",percent:"percent",firstExpanded:"first expanded",off:"off",onPanel:"on panel",onSurvey:"on survey",list:"list",progressTop:"progress on top",progressBottom:"progress on bottom",progressTopBottom:"progress on top&bottom",horizontal:"horizontal",vertical:"vertical",top:"top",bottom:"bottom",topBottom:"top and bottom",both:"both",left:"left",color:"color",date:"date",datetime:"datetime","datetime-local":"datetime-local",email:"email",month:"month",number:"number",password:"password",range:"range",tel:"tel",text:"text",time:"time",url:"url",week:"week",hidden:"hidden",on:"on",onPage:"on page",edit:"edit",display:"display",onComplete:"on complete",onHidden:"on hidden",all:"all",page:"page",survey:"survey",onNextPage:"on next page",onValueChanged:"on value changed",singlePage:"single page",standard:"standard",questionPerPage:"question per page",noPreview:"no preview",showAllQuestions:"show preview with all questions",showAnsweredQuestions:"show preview with answered questions",pages:"pages",questions:"questions",requiredQuestions:"required questions",correctQuestions:"correct questions",buttons:"buttons",underInput:"under input",underTitle:"under title"},op:{empty:"is empty",notempty:"is not empty",equal:"equals",notequal:"not equals",contains:"contains",notcontains:"not contains",anyof:"any of",allof:"all of",greater:"greater",less:"less",greaterorequal:"greater or equals",lessorequal:"less or equals",and:"and",or:"or"},ew:{angular:"Use Angular version",jquery:"Use jQuery version",knockout:"Use Knockout version",react:"Use React version",vue:"Use Vue version",bootstrap:"For bootstrap framework",modern:"Modern theme",default:"Default theme",orange:"Orange theme",darkblue:"Darkblue theme",darkrose:"Darkrose theme",stone:"Stone theme",winter:"Winter theme",winterstone:"Winter-Stone theme",showOnPage:"Show survey on a page",showInWindow:"Show survey in a window",loadFromServer:"Load Survey JSON from server",titleScript:"Scripts and styles",titleHtml:"HTML",titleJavaScript:"JavaScript"},ts:{selectPage:"Select the page to test it:",showInvisibleElements:"Show invisible elements"},validators:{answercountvalidator:"answer count",emailvalidator:"e-mail",expressionvalidator:"expression",numericvalidator:"numeric",regexvalidator:"regex",textvalidator:"text"},triggers:{completetrigger:"complete survey",setvaluetrigger:"set value",copyvaluetrigger:"copy value",skiptrigger:"skip to question",runexpressiontrigger:"run expression",visibletrigger:"change visibility (deprecated)"},pehelp:{},p:{name:"name",title:{name:"title",title:"Leave it empty, if it is the same as 'Name'"},navigationButtonsVisibility:"navigationButtonsVisibility",questionsOrder:"questionsOrder",maxTimeToFinish:"maxTimeToFinish",visible:"visible",visibleIf:"visibleIf",questionTitleLocation:"questionTitleLocation",description:"description",state:"state",isRequired:"isRequired",requiredIf:"requiredIf",indent:"indent",requiredErrorText:"requiredErrorText",startWithNewLine:"startWithNewLine",innerIndent:"innerIndent",page:"page",width:"width",commentText:"commentText",valueName:"valueName",enableIf:"enableIf",defaultValue:"defaultValue",correctAnswer:"correctAnswer",readOnly:"readOnly",validators:"validators",titleLocation:"titleLocation",hasComment:"hasComment",hasOther:"hasOther",choices:"choices",choicesOrder:"choicesOrder",choicesByUrl:"choicesByUrl",otherText:"otherText",otherErrorText:"otherErrorText",storeOthersAsComment:"storeOthersAsComment",label:"label",showTitle:"showTitle",valueTrue:"valueTrue",valueFalse:"valueFalse",cols:"cols",rows:"rows",placeHolder:"placeHolder",optionsCaption:"optionsCaption",expression:"expression",format:"format",displayStyle:"displayStyle",currency:"currency",useGrouping:"useGrouping",showPreview:"showPreview",allowMultiple:"allowMultiple",imageHeight:"imageHeight",imageWidth:"imageWidth",storeDataAsText:"storeDataAsText",maxSize:"maxSize",html:"html",columns:"columns",cells:"cells",isAllRowRequired:"isAllRowRequired",horizontalScroll:"horizontalScroll",cellType:"cellType",columnsLayout:"columnsLayout",columnColCount:"columnColCount",columnMinWidth:"columnMinWidth",rowCount:"rowCount",minRowCount:"minRowCount",maxRowCount:"maxRowCount",keyName:"keyName",keyDuplicationError:"keyDuplicationError",confirmDelete:"confirmDelete",confirmDeleteText:"confirmDeleteText",addRowLocation:"addRowLocation",addRowText:"addRowText",removeRowText:"removeRowText",items:"items",itemSize:"itemSize",colCount:"colCount",templateTitle:"templateTitle",templateDescription:"templateDescription",allowAddPanel:"allowAddPanel",allowRemovePanel:"allowRemovePanel",panelCount:"panelCount",minPanelCount:"minPanelCount",maxPanelCount:"maxPanelCount",panelsState:"panelsState",panelAddText:"panelAddText",panelRemoveText:"panelRemoveText",panelPrevText:"panelPrevText",panelNextText:"panelNextText",showQuestionNumbers:"showQuestionNumbers",showRangeInProgress:"showRangeInProgress",renderMode:"renderMode",templateTitleLocation:"templateTitleLocation",rateValues:"rateValues",rateMin:"rateMin",rateMax:"rateMax",rateStep:"rateStep",minRateDescription:"minRateDescription",maxRateDescription:"maxRateDescription",inputType:"inputType",size:"size",locale:"locale",focusFirstQuestionAutomatic:"focusFirstQuestionAutomatic",completedHtml:"completedHtml",completedBeforeHtml:"completedBeforeHtml",loadingHtml:"loadingHtml",triggers:"triggers",cookieName:"cookieName",sendResultOnPageNext:"sendResultOnPageNext",showNavigationButtons:"showNavigationButtons",showPrevButton:"showPrevButton",showPageTitles:"showPageTitles",showCompletedPage:"showCompletedPage",showPageNumbers:"showPageNumbers",questionErrorLocation:"questionErrorLocation",showProgressBar:"showProgressBar",mode:"mode",goNextPageAutomatic:"goNextPageAutomatic",checkErrorsMode:"checkErrorsMode",clearInvisibleValues:"clearInvisibleValues",startSurveyText:"startSurveyText",pagePrevText:"pagePrevText",pageNextText:"pageNextText",completeText:"completeText",requiredText:"requiredText",questionStartIndex:"questionStartIndex",questionTitleTemplate:"questionTitleTemplate",firstPageIsStarted:"firstPageIsStarted",isSinglePage:"isSinglePage",maxTimeToFinishPage:"maxTimeToFinishPage",showTimerPanel:"showTimerPanel",showTimerPanelMode:"showTimerPanelMode",defaultPanelValue:"defaultPanelValue",defaultRowValue:"defaultRowValue",hasNone:"hasNone",noneText:"noneText",text:"text",multiSelect:"Multi select",showLabel:"Show label",logo:"logo",logoWidth:"logoWidth",logoHeight:"logoHeight",logoFit:"logoFit",focusOnFirstError:"focusOnFirstError",completedHtmlOnCondition:"completedHtmlOnCondition",pages:"pages",calculatedValues:"calculatedValues",navigateToUrl:"navigateToUrl",navigateToUrlOnCondition:"navigateToUrlOnCondition",questionDescriptionLocation:"questionDescriptionLocation",progressBarType:"progressBarType",maxTextLength:"maxTextLength",maxOthersLength:"maxOthersLength",textUpdateMode:"textUpdateMode",autoGrowComment:"autoGrowComment",questionTitlePattern:"questionTitlePattern",questionsOnPageMode:"questionsOnPageMode",showPreviewBeforeComplete:"showPreviewBeforeComplete",widthMode:"widthMode",showNumber:"showNumber",navigationTitle:"navigationTitle",navigationDescription:"navigationDescription",useDisplayValuesInTitle:"useDisplayValuesInTitle",minWidth:"minWidth",maxWidth:"maxWidth",descriptionLocation:"descriptionLocation",hideNumber:"hideNumber",defaultValueExpression:"defaultValueExpression",bindings:"bindings",columnsVisibleIf:"columnsVisibleIf",rowsVisibleIf:"rowsVisibleIf",showHeader:"showHeader",detailPanelMode:"detailPanelMode",rowTitleWidth:"rowTitleWidth",allowAddRows:"allowAddRows",allowRemoveRows:"allowRemoveRows",defaultValueFromLastRow:"defaultValueFromLastRow",hideColumnsIfEmpty:"hideColumnsIfEmpty",emptyRowsText:"emptyRowsText",detailPanelShowOnAdding:"detailPanelShowOnAdding",allowRowsDragAndDrop:"allowRowsDragAndDrop",rowsOrder:"rowsOrder",hideIfRowsEmpty:"hideIfRowsEmpty",maximumFractionDigits:"maximumFractionDigits",minimumFractionDigits:"minimumFractionDigits",choicesFromQuestion:"choicesFromQuestion",choicesFromQuestionMode:"choicesFromQuestionMode",hideIfChoicesEmpty:"hideIfChoicesEmpty",choicesVisibleIf:"choicesVisibleIf",choicesEnableIf:"choicesEnableIf",otherPlaceHolder:"otherPlaceHolder",maxSelectedChoices:"maxSelectedChoices",showClearButton:"showClearButton",contentMode:"contentMode",imageFit:"imageFit",autoComplete:"autoComplete",min:"min",max:"max",minValueExpression:"minValueExpression",maxValueExpression:"maxValueExpression",minErrorText:"minErrorText",maxErrorText:"maxErrorText",step:"step",dataList:"dataList",autoGrow:"autoGrow",multiLine:"multiLine",allowImagesPreview:"allowImagesPreview",acceptedTypes:"acceptedTypes",waitForUpload:"waitForUpload",needConfirmRemoveFile:"needConfirmRemoveFile",labelTrue:"labelTrue",labelFalse:"labelFalse",height:"height",allowClear:"allowClear",penColor:"penColor",backgroundColor:"backgroundColor",dataFormat:"dataFormat",defaultValueFromLastPanel:"defaultValueFromLastPanel",panelRemoveButtonLocation:"panelRemoveButtonLocation",showCaption:"showCaption",iconName:"iconName",iconSize:"iconSize"}}},"./src/localization/finnish.ts":
337
357
  /*!*************************************!*\
338
358
  !*** ./src/localization/finnish.ts ***!
339
359
  \*************************************/
@@ -381,7 +401,7 @@ License: MIT
381
401
  /*!*************************************!*\
382
402
  !*** ./src/localization/russian.ts ***!
383
403
  \*************************************/
384
- /*! exports provided: ruStrings */function(e,t,i){"use strict";i.r(t),i.d(t,"ruStrings",(function(){return r}));var o=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),r={survey:{edit:"Редактировать",externalHelpLink:"Научиться создавать опросы",externalHelpLinkUrl:"Https://www.youtube.com/channel/UCH2ru9okIcooNZfpIbyq4qQ?view_as=subscriber",dropQuestion:"Пожалуйста, перетяните необходимый элемент из панели слева",copy:"Копировать",addToToolbox:"Добавить к инструментам",deletePanel:"Удалить панель",deleteQuestion:"Удалить вопрос",convertTo:"Преобразовать в",drag:"Перетянуть элемент"},qt:{default:"По умолчанию",checkbox:"Множественный выбор",comment:"Комментарий",imagepicker:"Выбор изображения",dropdown:"Выпадающий список",file:"Загрузка файлов",HTML:"HTML",matrix:"Матрица (единичный выбор)",matrixdropdown:"Матрица (множественный выбор)",matrixdynamic:"Матрица (динамические ряды)",multipletext:"Multiple Text",panel:"Панель (для группы вопросов)",paneldynamic:"Панель (динамические панели)",radiogroup:"Единичный выбор",rating:"Рейтинг (шкала)",text:"Текстовый ввод",boolean:"Булиевое значение",expression:"Выражение (только для чтения)",flowPanel:"Панель потока"},ed:{defaultLocale:"По умолчанию ({0})",survey:"Опросник",settings:"Настройки опросника",opjectPropertiesHeader:"Дополнительные",showObjectProperties:"Показать свойства объекта",hideObjectProperties:"Скрыть свойства объекта",editSurvey:"Редактировать опросник",addNewPage:"Добавить новую страницу",moveRight:"Прокрутить вправо",moveLeft:"Прокрутить влево",deletePage:"Удалить страницу",editPage:"Редактировать страницу",edit:"Редактировать",newPageName:"страница",newQuestionName:"вопрос",newPanelName:"панель",newTextItemName:"текст",testSurvey:"Тестировать опросник",testSurveyAgain:"Тестировать еще раз",testSurveyWidth:"Ширина опросника:",logic:"Логика опросника",embedSurvey:"Вставить опросник",translation:"Перевод","property-grid":"Свойства",saveSurvey:"Сохранить опросник",designer:"Обзор конструктора",jsonEditor:"JSON редактор",undo:"Отменить",redo:"Повтор",options:"Параметры",generateValidJSON:"Сформировать валидный JSON",generateReadableJSON:"Сформировать читаемый JSON",toolbox:"Панель инструментов",toolboxGeneralCategory:"Общие",delSelObject:"Удалить выбранный объект",editSelObject:"Редактировать выбранный объект",correctJSON:"Пожалуйста, исправьте JSON.",surveyResults:"Результаты обследования:",surveyResultsTable:"Как таблица",surveyResultsJson:"Как JSON",resultsTitle:"Заголовок вопроса",resultsName:"Название вопроса",resultsValue:"Значение ответа",resultsDisplayValue:"Отображаемое значение",modified:"Модифицирован",saving:"Сохранение",saved:"Сохраненный",saveError:"Ошибка! Содержание редактора не сохранено.",translationAddLanguage:"Выберите дополнительный язык опросника",translationShowAllStrings:"Показывать все строки",translationShowAllPages:"Показывать все страницы",translationNoStrings:"Нет строк для перевода. Пожалуйста, измените фильтр.",translationExportToSCVButton:"Экспорт в CSV",translationImportFromSCVButton:"Импорт из CSV",translationMergeLocaleWithDefault:"Объединить {0} с локалью по умолчанию",bold:"Жирный",italic:"Курсив",underline:"Подчеркивание",fpAddQuestion:"Добавить вопрос...",completedHtmlOnConditionItemText:"Показывать, если:",lg:{page_visibilityName:"Видимость страницы",panel_visibilityName:"Видимость панели",panel_enableName:"Панель включена/выключена",question_visibilityName:"Видимость вопроса",question_enableName:"Вопрос включен/выключен",question_requireName:"Вопрос необязательный",trigger_completeName:"Опрос завершен",trigger_setvalueName:"Установить значение вопроса",trigger_copyvalueName:"Копировать значение вопроса",trigger_skipName:"Перейти к вопросу",trigger_runExpressionName:"Запустить пользовательское выражение",completedHtmlOnConditionName:"Пользовательский текст 'Страницы благодарности'",page_visibilityDescription:"Сделать страницу видимой, когда логическое выражение вернет 'true'. В противном случае сделать ее невидимой.",panel_visibilityDescription:"Сделать панель видимой, когда логическое выражение вернет 'true'. В противном случае сделать ее невидимой.",panel_enableDescription:"Сделать панель и все элементы внутри нее включенной, когда логическое выражение вернет 'true'. В противном случае оставить их отключенными.",question_visibilityDescription:"Сделать вопрос видимой, когда логическое выражение вернет 'true'. В противном случае сделать ее невидимой.",question_enableDescription:"Сделать вопрос включенным, когда логическое выражение вернет 'true'. В противном случае оставить его отключенными.",question_requireDescription:"Вопрос становится обязательным, когда логическое выражение вернет 'true'.",trigger_completeDescription:"Когда логическое выражение вернет 'true', то опрос становится завершенным и конечный пользователь видит 'Страницу благодарности'.",trigger_setvalueDescription:"Когда значения вопросов, которые используются в логическом выражении, изменяются и логическое выражение возвращает значение 'true', тогда на выбранный вопрос устанавливается значение.",trigger_copyvalueDescription:"Когда значения вопросов, которые используются в логическом выражении, изменяются и логическое выражение возвращает значение 'true', тогда значение одного выбранного вопроса копируется в другой выбранный вопрос.",trigger_skipDescription:"Когда логическое выражение вернет 'true', тогда опрос переходит к/фокусируется на выбранном вопросе.",trigger_runExpressionDescription:"Когда логическое выражение возвращает 'true',тогда выполняется пользовательское выражение. Вы можете при желании установить этот результат выражения в выбранный вопрос.",completedHtmlOnConditionDescription:"Если логическое выражение возвращает 'true', то текст по умолчанию для 'Страницы благодарности' изменяется на заданный.",itemExpressionText:"Когда выражение: '{0}' возвращает 'true':",page_visibilityText:"Сделать страницу {0} видимой",panel_visibilityText:"Сделать панель {0} видимой",panel_enableText:"Сделать панель {0} включенной",question_visibilityText:"Сделать вопрос {0} видимым",question_enableText:"Сделать вопрос {0} включенным",question_requireText:"Сделать вопрос {0} обязательным",trigger_completeText:"Опрос становится завершенным",trigger_setvalueText:"Установить в вопрос: {0} значение {1}",trigger_copyvalueText:"Копировать в вопрос: {0} значение из вопроса {1}",trigger_skipText:"Опрос переходит к вопросу {0}",trigger_runExpressionText1:"Выполнить выражение: '{0}'",trigger_runExpressionText2:"и установить его результат в вопрос: {0}",completedHtmlOnConditionText:"Показывать пользовательский текст для 'Страницы благодарности'.",expressionEditorTitle:"Настройка логики выражения",deleteOperation:"Удалить операцию",addNewOperation:"Добавить новую операцию(и)",expressionInvalid:"Логическое выражение пустое или недействительное. Пожалуйста, исправьте его.",noOperationError:"Пожалуйста, добавьте хоть одну операцию.",operationInvalid:"Пожалуйста, исправьте проблемы в вашей операции(ях)."}},pel:{isRequired:"Обязательное?"},pe:{apply:"Применить",ok:"OK",save:"Сохранить",cancel:"Отменить",reset:"Сброс",close:"Закрыть",delete:"Удалить",add:"Добавить",addNew:"Добавить новый",addItem:"Нажмите, чтобы добавить элемент...",addOther:"Другое",addSelectAll:"Выбрать все пункты",addNone:"Ничего",removeAll:"Удалить все",edit:"Редактировать",back:"Вернуться без сохранения",saveAndBack:"Сохранить и вернуться",itemValueEdit:"Отображать, если",editChoices:"Редактировать выбор",move:"Переместить",empty:"<пусто>",notEmpty:"<редактировать значение>",fastEntry:"Быстрый вход",formEntry:"Форма входа",testService:"Тест услуги",itemSelectorEmpty:"Пожалуйста, выберите элемент",conditionSelectQuestion:"Выберите вопрос ...",conditionSelectPage:"Выбрать страницу ...",conditionSelectPanel:"Выберите панель ...",conditionValueQuestionTitle:"Пожалуйста, введите/выберите значение",conditionButtonAdd:"Добавить",conditionButtonReplace:"Заменить",conditionHelp:"Пожалуйста, введите логическое выражение. Должно возвращаться значение 'true', чтобы вопрос/страница оставались видимыми, например:.. {Вопрос1} = 'значение1' или ({Вопрос2} * {Вопрос4}> 20 и {Вопрос3} <5)",expressionHelp:"Пожалуйста, введите выражение. Вы можете использовать фигурные скобки, чтобы получить доступ к значениям вопроса.: '{Вопрос1} + {Вопрос2}', '({цена}*{количество}) * (100 - {скидка}).",aceEditorHelp:"Нажмите Ctrl+Пробел, чтобы получить подсказки",aceEditorRowTitle:"Текущая строка",aceEditorPanelTitle:"Текущая панель",showMore:"Для получения более подробной информации, пожалуйста, перейдите к документации",conditionShowMoreUrl:"Https://surveyjs.io/Documentation/LibraryParameter?id=Question¶meter=visibleIf",assistantTitle:"Доступные вопросы:",cellsEmptyRowsColumns:"Должен быть хотя бы один столбец или строка",propertyIsEmpty:"Пожалуйста, введите значение",propertyNameIsNotUnique:"Пожалуйста, введите уникальное имя",listIsEmpty:"Добавьте новое условие",expressionIsEmpty:"Выражение - пустое",value:"Значение",text:"Текст",rowid:"ID строки",imageLink:"Ссылка на изображение",columnEdit:"Изменить столбец: {0}",itemEdit:"Редактировать элемент: {0}",url:"URL",path:"Путь",valueName:"Название пункта",titleName:"Заголовок пункта",titlePlaceholder:"Введите заголовок",surveyTitlePlaceholder:"Введите заголовок опроса",pageTitlePlaceholder:"Введите заголовок страницы",descriptionPlaceholder:"Введите описание",surveyDescriptionPlaceholder:"Введите описание опроса",pageDescriptionPlaceholder:"Введите описание страницы",hasOther:"Есть пункт 'Другое'",otherText:"Текст пункта 'Другое'",hasNone:"Нет ни одного пункта",noneText:"Текст пункта 'Ничего'",hasSelectAll:"Выбрать все пункты",selectAllText:"Текст пункта 'Выбрать все пункты'",choicesMin:"Минимальное значение для автоматически сгенерированных элементов",choicesMax:"Максимальное значение для автоматически сгенерированных элементов",choicesStep:"Разница между автоматически сгенерироваными элементами",name:"Название",title:"Заголовок",cellType:"Тип ячейки",ColCount:"Количество столбцов",choicesOrder:"Выбрать порядок отбора",visible:"Отображать?",isRequired:"Обязательный?",isAllRowRequired:"Все строки обязательны для заполнения",requiredErrorText:"Это поле обязательное для заполнения",startWithNewLine:"Начинать с новой строки?",rows:"Количество строк",PlaceHolder:"Плейсхолдер",showPreview:"Показать предпросмотр?",storeDataAsText:"Хранить содержимое файла в формате JSON как текст",MaxSize:"Максимальный размер файла в байтах",ImageHeight:"Высота изображения",ImageWidth:"Ширина изображения",rowCount:"Количество строк",columnLayout:"Макет столбцов",addRowLocation:"Добавить расположение кнопки строки",addRowText:"Добавить текст кнопки строки",removeRowText:"Удалить кнопку строки текста",rateMin:"Минимальный рейтинг",rateMax:"Максимальный рейтинг",rateStep:"Шаг рейтинга",minRateDescription:"Описание для минимального рейтинга",maxRateDescription:"Описание для максимального рейтинга",inputType:"Тип ввода",optionsCaption:"Параметры подписи",DefaultValue:"Значение по умолчанию",cellsDefaultRow:"Текст ячеек по умолчанию",surveyEditorTitle:"Настройки опросника",qEditorTitle:"Изменить: {0}",maxLength:"Максимальная длина",buildExpression:"Собрать",editExpression:"Редактировать",and:"И",or:"ИЛИ",remove:"Переместить",addCondition:"добавить условие",showTitle:"Показать/скрыть заголовок",locale:"Язык по умолчанию",simulator:"Выберите устройство",landscapeOrientation:"Альбомная",mode:"Режим (редактирование/просмотр)",clearInvisibleValues:"Очистить невидимые значения",cookieName:"Имя Cookie (отключить повторное прохождение опроса локально)",sendResultOnPageNext:"Показать результаты опроса на странице рядом",storeOthersAsComment:"Хранить занчение 'Другое' в отдельном поле",showPageTitles:"Показывать заголовки страниц",showPageNumbers:"Показывать номера страниц",pagePrevText:"Текст в кнопке 'Предыдущая страница'",pageNextText:"Текст в кнопке 'Следующая страница'",completeText:"Текст в кнопке 'Завершить'",startSurveyText:"Текст в кнопке 'Начать'",showNavigationButtons:"Показывать кнопки навигации (навигация по умолчанию)",showPrevButton:"Показывать кнопки 'Предыдущая страница' (пользователь может вернуться на предыдущую страницу)",firstPageIsStarted:"Первая страница опросника является стартовой страницей.",showCompletedPage:"Показывать страницу с текстом по завершению заполнения (HTML финальной страницы)",goNextPageAutomatic:"Переходить на следующую страницу автоматически при заполнении всех вопросов",showProgressBar:"Показывать прогресс заполнения",questionTitleLocation:"Расположение заголовка вопроса",requiredText:"Символ для обязательного вопроса",questionStartIndex:"Начальный индекс вопроса (1, 2 или 'A', 'а')",showQuestionNumbers:"Показывать номера вопросов",questionTitleTemplate:"Шаблон названия опроса, по умолчанию: {не} {требует} {текста}.",questionErrorLocation:"Размещение ошибки опроса",focusFirstQuestionAutomatic:"Фокусирование на первом вопросе при изменении страницы",questionsOrder:"Сортировка элементов на странице",maxTimeToFinish:"Максимальное время в секундах, чтобы заполнить опросник",maxTimeToFinishPage:"Максимальное время в секундах, чтобы заполнить страницу опросника",showTimerPanel:"Показывать панель таймера",showTimerPanelMode:"Показывать режим панели таймера",RenderMode:"Режим визуализации",allowAddPanel:"Разрешить добавление панели",allowRemovePanel:"Разрешить удаление панели",panelAddText:"Добавление текста на панели",panelRemoveText:"Удаление текста на панели",isSinglePage:"Показывать все элементы на одной странице",HTML:"HTML",expression:"Выражение",minValue:"Минимальное значение",maxValue:"Максимальное значение",mINLENGTH:"Минимальная длина",allowDigits:"Разрешить цифры",minCount:"Минимальное количество",maxCount:"Максимальное количество",regex:"Регулярное выражение",totalText:"Общий текст",totalType:"Общий тип",totalExpression:"Общее выражение",totalDisplayStyle:"Общий стиль отображения",totalCurrency:"Общая валюта",totalFormat:"Общий формат",logoPosition:"Местоположение логотипа",addLogo:"Добавить логотип...",changeLogo:"Изменить логотип...",logoPositions:{none:"Разместить логотип",left:"Слева",right:"Справа",top:"Сверху",bottom:"Снизу"},tabs:{general:"Общие",fileOptions:"Параметры",HTML:"Редактор HTML",columns:"Столбцы",rows:"Строки",choices:"Выбор",items:"Элементы",visibleIf:"Отображать, если",enableIf:"Доступен, если",requiredIf:"Обязателен для заполнения, если",rateValues:"Оценить важность(вес) вопроса",choicesByUrl:"Выбор из Интернета",matrixChoices:"Выбор по умолчанию",multipleTextItems:"Ввод нескольких текстовых полей",validators:"Валидаторы",navigation:"Навигация",question:"Вопрос",completedHtml:"HTML финальной страницы",completedHtmlOnCondition:"HTML финальной страницы при условии",loadingHtml:"Загрузка HTML",timer:"Таймер/Викторина",calculatedValues:"Расчетные значения",triggers:"Триггеры",templateTitle:"Название шаблона",totals:"Итоги",logic:"Логика",layout:"Планировка",data:"Данные",validation:"Проверка",cells:"Ячейки",showOnCompleted:"Показать по завершению",logo:"Логотип в заголовке опросника",others:"Другие"},editProperty:"Редактировать свойство '{0}'",items:"[Элементы: {0}]",enterNewValue:"Пожалуйста, введите значение.",noquestions:"В опроснике нет ни одного вопроса",createtrigger:"Пожалуйста, создайте триггер",triggerOn:"О",triggerMakePagesVisible:"Сделать страницы видимыми:",triggerMakeQuestionsVisible:"Сделать элементы видимыми:",triggerCompleteText:"Завершить опрос, если все получися.",triggerNotSet:"Тригер не установлен",triggerRunIf:"Начать, если",triggerSetToName:"Изменить значение:",triggerFromName:"Скопировать значение из:",triggerRunExpression:"Выполнить это выражение:",triggerSetValue:"в:",triggerGotoName:"Перейти к вопросу:",triggerIsVariable:"Не помещать переменную в результат опросника.",triggerRunExpressionEmpty:"Пожалуйста, введите корректное выражение"},pv:{true:"true",false:"false",inherit:"Наследовать",show:"Показать",hide:"Скрыть",default:"По умолчанию",initial:"Изначальный порядок",random:"Случайный порядок",collapsed:"Прерван",expanded:"Расширен",none:"Нет",asc:"По возрастанию",desc:"По убыванию",indeterminate:"Неопределенный",decimal:"Десятичный",currency:"Валюта",percent:"Проценты",firstExpanded:"Расширен первый",off:"Выключить",onPanel:"На панели",onSurvey:"В опроснике",list:"Список",progressTop:"progressTop",progressBottom:"progressBottom",progressTopBottom:"progressTopBottom",horizontal:"Горизонтально",vertical:"Вертикально",top:"Сверху",bottom:"Снизу",topBottom:"Сверху и снизу",left:"Слева",color:"Цвет",date:"Дата",datetime:"Дата и время","datetime-local":"Местные дата и время",email:"Email",month:"Месяц",number:"Номер",password:"Пароль",range:"Диапазон",tel:"Телефон",text:"Текст",time:"Время",url:"URL",week:"Неделя",hidden:"Скрыт",on:"Включить",onPage:"На странице",edit:"Редактирование",display:"Просмотр",onComplete:"По завершению",onHidden:"По скрытию",all:"Все",page:"Страница",survey:"Опрос",onNextPage:"При переходе на следующую страницу",onValueChanged:"При изменении значения"},op:{empty:"не заполнено",notempty:"заполнено",equal:"равно",notequal:"не равно",contains:"содержит",notcontains:"не содержит",anyof:"любой из",allof:"все из",greater:"больше",less:"меньше",greaterorequal:"больше или равно",lessorequal:"меньше или равно"},ew:{angular:"Используйте версию Angular",jquery:"Используйте версию jQuery",knockout:"Используйте версию Knockout",react:"Используйте версию React",vue:"Используйте версию Vue",bootstrap:"Для библиотеки bootstrap",standard:"Без библиотеки bootstrap",showOnPage:"Показывать опросник на странице",showInWindow:"Показывать опросник в модальном окне",loadFromServer:"Загрузить Json опросника с сервера",titleScript:"Скрипты и стили",titleHtml:"HTML",titleJavaScript:"JavaScript"},ts:{selectPage:"Выберите страницу, чтобы проверить это:",showInvisibleElements:"Показывать скрытые элементы"},validators:{answercountvalidator:"Количество ответов",EmailValidator:"Email",expressionvalidator:"Выражение",numericvalidator:"Число",regexvalidator:"Регулярное выражение",textvalidator:"Текст"},triggers:{completetrigger:"Завершить опрос",setvaluetrigger:"Установить значение",copyvaluetrigger:"Скопировать значение",skiptrigger:"Перейти к вопросу",runexpressiontrigger:"Запустить выражение",visibletrigger:"Изменить видимость (не рекомендуется)"},p:{name:"Название",title:{name:"Название",title:"Оставьте его пустым, если оно такое же, как 'Название'"},navigationButtonsVisibility:"Отображение навигационных кнопок",questionsOrder:"Сортировка элементов на странице",maxTimeToFinish:"Максимальное время для завершения",visible:"Видимый",visibleIf:"Отображать, если",questionTitleLocation:"Расположение заголовка вопроса",description:"Описание",state:"Состояние",isRequired:"Обязателен",requiredIf:"Обязателен если",indent:"Отступ",requiredErrorText:"Это поле обязательное для заполнения",startWithNewLine:"Начинать с новой строки",innerIndent:"Внутренний отступ",page:"Страница",width:"Ширина",commentText:"Комментарий",valueName:"Название значения",enableIf:"Доступен при условии",defaultValue:"Значение по умолчанию",correctAnswer:"Правильный ответ",readOnly:"Только для чтения",validators:"Валидаторы",titleLocation:"Расположение заголовка",hasComment:"Есть комментарий",hasOther:"Есть значение 'Другое'",choices:"Выбор",choicesOrder:"Выбрать порядок выбора",choicesByUrl:"Выбрать из интернета",otherText:"Другой текстовый элемент",otherErrorText:"Текст ошибки поля 'Другое'",storeOthersAsComment:"Хранить значение поля 'Другое', как комментарий",label:"Ярлык",showTitle:"Показывать название",valueTrue:"Правильно",valueFalse:"Неправильно",cols:"Столбцы",rows:"Строки",placeHolder:"Плейсхолдер",optionsCaption:"Подпись параметров",expression:"Выражение",format:"Формат",displayStyle:"Стиль отображения",currency:"Валюта",useGrouping:"Использовать группировку",showPreview:"Показывать превью",allowMultiple:"Выбрать несколько",imageHeight:"Высота изображения",imageWidth:"Ширина изображения",storeDataAsText:"Хранить данные в виде текста",maxSize:"Максимальный размер",html:"HTML",columns:"Столбцы",cells:"Ячейки",isAllRowRequired:"Все строки обязательны для заполнения",horizontalScroll:"Горизонтальный скролл",cellType:"Тип ячейки",columnsLayout:"Макет столбцов",columnColCount:"Количество столбцов",columnMinWidth:"Минимальная ширина столбца",rowCount:"Количество строк",minRowCount:"Минимальное количество строк",maxRowCount:"Максимальное количество строк",keyName:"Название ключа",keyDuplicationError:"Ошибка! Такой ключ уже существует, укажите другое название.",confirmDelete:"Подтвердить удаление",confirmDeleteText:"Текст сообщения при подтверждении удаления",addRowLocation:"Добавить расположение строк",addRowText:"Добавить кнопку строки текста",removeRowText:"Удалить кнопку строки текста",items:"Элементы",itemSize:"Размер элементов",colCount:"Количество столбцов",templateTitle:"Заголовок шаблона",templateDescription:"Описание шаблона",allowAddPanel:"Разрешить добавление панели",allowRemovePanel:"Разрешить удаление панели",panelCount:"Количество панелей",minPanelCount:"Минимальное количество панелей",maxPanelCount:"Максимальное количество панелей",panelsState:"Состояние панелей",panelAddText:"Текст сообщения при добавлении панели",panelRemoveText:"Текст сообщения при удалении панели",panelPrevText:"Текст сообщения предыдущей панели",panelNextText:"Текст сообщения следующей панели",showQuestionNumbers:"Показывать номера вопросов",showRangeInProgress:"Показывать прогресса заполнения",renderMode:"Режим отображения",templateTitleLocation:"Расположение заголовка шаблона",rateValues:"Оценить важность(вес) опроса",rateMin:"Минимальный рейтинг",rateMax:"Максимальный рейтинг",rateStep:"Шаг рейтинга",minRateDescription:"Описание для минимального рейтинга",maxRateDescription:"Описание для максимального рейтинга",inputType:"Тип ввода",size:"Размер",locale:"Локаль",focusFirstQuestionAutomatic:"Фокусирование на первом вопросе при изменении страницы",completedHtml:"HTML финальной страницы",completedHtmlOnCondition:"HTML финальной страницы при условии",loadingHtml:"Загрузка HTML",triggers:"триггеры",cookieName:"имя Cookie",sendResultOnPageNext:"Показать результаты опроса на странице рядом",showNavigationButtons:"Показывать кнопки навигации (навигация по умолчанию)",showPrevButton:"Показывать кнопки 'Предыдущая страница' (пользователь может вернуться на предыдущую страницу)",showPageTitles:"Показывать название страницы",showCompletedPage:"Показывать страницу с текстом по завершению заполнения (HTML финальной страницы)",showPageNumbers:"Показывать номера страниц",questionErrorLocation:"Размещение ошибки опроса",showProgressBar:"Показывать прогресс заполнения",mode:"Режим",goNextPageAutomatic:"Переходить на следующую страницу автоматически при ответе на все вопросы",checkErrorsMode:"Режим проверки ошибок",clearInvisibleValues:"Очистить невидимые значения",startSurveyText:"Текст в кнопке 'Начать'",pagePrevText:"Текст в кнопке 'Предыдущая страница'",pageNextText:"Текст в кнопке 'Следующая страница'",completeText:"Текст в кнопке 'Завершить'",requiredText:"Символ для обязательного вопроса",questionStartIndex:"Начальный индекс в опросе (1, 2 или 'A', 'а')",questionTitleTemplate:"Шаблон названия опроса, по умолчанию: {не} {требует} {текста}.",firstPageIsStarted:"Первая страница опросника является стартовой страницей.",isSinglePage:"Показывать все элементы на одной странице",maxTimeToFinishPage:"Максимальное время (секунды), чтобы заполнить страницу опросника",showTimerPanel:"Показывать панель таймера",showTimerPanelMode:"Показывать режим панели таймера",defaultPanelValue:"Значение панели по умолчанию",defaultRowValue:"Значение строки по умолчанию",hasNone:"Нет ни одного пункта",noneText:"Текст пункта 'Ничего'",text:"Текст"}};o.editorLocalization.locales.ru=r},"./src/localization/simplified-chinese.ts":
404
+ /*! exports provided: ruStrings */function(e,t,i){"use strict";i.r(t),i.d(t,"ruStrings",(function(){return r}));var o=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),r={survey:{edit:"Редактировать",externalHelpLink:"Научиться создавать опросы",externalHelpLinkUrl:"Https://www.youtube.com/channel/UCH2ru9okIcooNZfpIbyq4qQ?view_as=subscriber",dropQuestion:"Пожалуйста, перетяните необходимый элемент из панели слева",copy:"Копировать",addToToolbox:"Добавить к инструментам",deletePanel:"Удалить панель",deleteQuestion:"Удалить вопрос",convertTo:"Преобразовать в",drag:"Перетянуть элемент"},qt:{default:"По умолчанию",checkbox:"Множественный выбор",comment:"Комментарий",imagepicker:"Выбор изображения",dropdown:"Выпадающий список",file:"Загрузка файлов",HTML:"HTML",matrix:"Матрица (единичный выбор)",matrixdropdown:"Матрица (множественный выбор)",matrixdynamic:"Матрица (динамические ряды)",multipletext:"Multiple Text",panel:"Панель (для группы вопросов)",paneldynamic:"Панель (динамические панели)",radiogroup:"Единичный выбор",rating:"Рейтинг (шкала)",text:"Текстовый ввод",boolean:"Булиевое значение",expression:"Выражение (только для чтения)",flowPanel:"Панель потока"},ed:{defaultLocale:"По умолчанию ({0})",survey:"Опросник",settings:"Настройки опросника",opjectPropertiesHeader:"Дополнительные",showObjectProperties:"Показать свойства объекта",hideObjectProperties:"Скрыть свойства объекта",editSurvey:"Редактировать опросник",addNewPage:"Добавить новую страницу",moveRight:"Прокрутить вправо",moveLeft:"Прокрутить влево",deletePage:"Удалить страницу",editPage:"Редактировать страницу",edit:"Редактировать",newPageName:"страница",newQuestionName:"вопрос",newPanelName:"панель",newTextItemName:"текст",testSurvey:"Тестировать опросник",testSurveyAgain:"Тестировать еще раз",testSurveyWidth:"Ширина опросника:",logic:"Логика опросника",embedSurvey:"Вставить опросник",translation:"Перевод","property-grid":"Свойства",saveSurvey:"Сохранить опросник",designer:"Обзор конструктора",jsonEditor:"JSON редактор",undo:"Отменить",redo:"Повтор",options:"Параметры",generateValidJSON:"Сформировать валидный JSON",generateReadableJSON:"Сформировать читаемый JSON",toolbox:"Панель инструментов",toolboxGeneralCategory:"Общие",delSelObject:"Удалить выбранный объект",editSelObject:"Редактировать выбранный объект",correctJSON:"Пожалуйста, исправьте JSON.",surveyResults:"Результаты обследования:",surveyResultsTable:"Как таблица",surveyResultsJson:"Как JSON",resultsTitle:"Заголовок вопроса",resultsName:"Название вопроса",resultsValue:"Значение ответа",resultsDisplayValue:"Отображаемое значение",modified:"Модифицирован",saving:"Сохранение",saved:"Сохраненный",saveError:"Ошибка! Содержание редактора не сохранено.",translationAddLanguage:"Выберите дополнительный язык опросника",translationShowAllStrings:"Показывать все строки",translationShowAllPages:"Показывать все страницы",translationNoStrings:"Нет строк для перевода. Пожалуйста, измените фильтр.",translationExportToSCVButton:"Экспорт в CSV",translationImportFromSCVButton:"Импорт из CSV",translationMergeLocaleWithDefault:"Объединить {0} с локалью по умолчанию",translationPlaceHolder:"Перевод...",bold:"Жирный",italic:"Курсив",underline:"Подчеркивание",fpAddQuestion:"Добавить вопрос...",completedHtmlOnConditionItemText:"Показывать, если:",lg:{page_visibilityName:"Видимость страницы",panel_visibilityName:"Видимость панели",panel_enableName:"Панель включена/выключена",question_visibilityName:"Видимость вопроса",question_enableName:"Вопрос включен/выключен",question_requireName:"Вопрос необязательный",trigger_completeName:"Опрос завершен",trigger_setvalueName:"Установить значение вопроса",trigger_copyvalueName:"Копировать значение вопроса",trigger_skipName:"Перейти к вопросу",trigger_runExpressionName:"Запустить пользовательское выражение",completedHtmlOnConditionName:"Пользовательский текст 'Страницы благодарности'",page_visibilityDescription:"Сделать страницу видимой, когда логическое выражение вернет 'true'. В противном случае сделать ее невидимой.",panel_visibilityDescription:"Сделать панель видимой, когда логическое выражение вернет 'true'. В противном случае сделать ее невидимой.",panel_enableDescription:"Сделать панель и все элементы внутри нее включенной, когда логическое выражение вернет 'true'. В противном случае оставить их отключенными.",question_visibilityDescription:"Сделать вопрос видимой, когда логическое выражение вернет 'true'. В противном случае сделать ее невидимой.",question_enableDescription:"Сделать вопрос включенным, когда логическое выражение вернет 'true'. В противном случае оставить его отключенными.",question_requireDescription:"Вопрос становится обязательным, когда логическое выражение вернет 'true'.",trigger_completeDescription:"Когда логическое выражение вернет 'true', то опрос становится завершенным и конечный пользователь видит 'Страницу благодарности'.",trigger_setvalueDescription:"Когда значения вопросов, которые используются в логическом выражении, изменяются и логическое выражение возвращает значение 'true', тогда на выбранный вопрос устанавливается значение.",trigger_copyvalueDescription:"Когда значения вопросов, которые используются в логическом выражении, изменяются и логическое выражение возвращает значение 'true', тогда значение одного выбранного вопроса копируется в другой выбранный вопрос.",trigger_skipDescription:"Когда логическое выражение вернет 'true', тогда опрос переходит к/фокусируется на выбранном вопросе.",trigger_runExpressionDescription:"Когда логическое выражение возвращает 'true',тогда выполняется пользовательское выражение. Вы можете при желании установить этот результат выражения в выбранный вопрос.",completedHtmlOnConditionDescription:"Если логическое выражение возвращает 'true', то текст по умолчанию для 'Страницы благодарности' изменяется на заданный.",itemExpressionText:"Когда выражение: '{0}' возвращает 'true':",page_visibilityText:"Сделать страницу {0} видимой",panel_visibilityText:"Сделать панель {0} видимой",panel_enableText:"Сделать панель {0} включенной",question_visibilityText:"Сделать вопрос {0} видимым",question_enableText:"Сделать вопрос {0} включенным",question_requireText:"Сделать вопрос {0} обязательным",trigger_completeText:"Опрос становится завершенным",trigger_setvalueText:"Установить в вопрос: {0} значение {1}",trigger_copyvalueText:"Копировать в вопрос: {0} значение из вопроса {1}",trigger_skipText:"Опрос переходит к вопросу {0}",trigger_runExpressionText1:"Выполнить выражение: '{0}'",trigger_runExpressionText2:"и установить его результат в вопрос: {0}",completedHtmlOnConditionText:"Показывать пользовательский текст для 'Страницы благодарности'.",expressionEditorTitle:"Настройка логики выражения",deleteOperation:"Удалить операцию",addNewOperation:"Добавить новую операцию(и)",expressionInvalid:"Логическое выражение пустое или недействительное. Пожалуйста, исправьте его.",noOperationError:"Пожалуйста, добавьте хоть одну операцию.",operationInvalid:"Пожалуйста, исправьте проблемы в вашей операции(ях)."}},pel:{isRequired:"Обязательное?"},pe:{apply:"Применить",ok:"OK",save:"Сохранить",cancel:"Отменить",reset:"Сброс",close:"Закрыть",delete:"Удалить",add:"Добавить",addNew:"Добавить новый",addItem:"Нажмите, чтобы добавить элемент...",addOther:"Другое",addSelectAll:"Выбрать все пункты",addNone:"Ничего",removeAll:"Удалить все",edit:"Редактировать",back:"Вернуться без сохранения",saveAndBack:"Сохранить и вернуться",itemValueEdit:"Отображать, если",editChoices:"Редактировать выбор",move:"Переместить",empty:"<пусто>",notEmpty:"<редактировать значение>",fastEntry:"Быстрый вход",formEntry:"Форма входа",testService:"Тест услуги",itemSelectorEmpty:"Пожалуйста, выберите элемент",conditionSelectQuestion:"Выберите вопрос ...",conditionSelectPage:"Выбрать страницу ...",conditionSelectPanel:"Выберите панель ...",conditionValueQuestionTitle:"Пожалуйста, введите/выберите значение",conditionButtonAdd:"Добавить",conditionButtonReplace:"Заменить",conditionHelp:"Пожалуйста, введите логическое выражение. Должно возвращаться значение 'true', чтобы вопрос/страница оставались видимыми, например:.. {Вопрос1} = 'значение1' или ({Вопрос2} * {Вопрос4}> 20 и {Вопрос3} <5)",expressionHelp:"Пожалуйста, введите выражение. Вы можете использовать фигурные скобки, чтобы получить доступ к значениям вопроса.: '{Вопрос1} + {Вопрос2}', '({цена}*{количество}) * (100 - {скидка}).",aceEditorHelp:"Нажмите Ctrl+Пробел, чтобы получить подсказки",aceEditorRowTitle:"Текущая строка",aceEditorPanelTitle:"Текущая панель",showMore:"Для получения более подробной информации, пожалуйста, перейдите к документации",conditionShowMoreUrl:"Https://surveyjs.io/Documentation/LibraryParameter?id=Question¶meter=visibleIf",assistantTitle:"Доступные вопросы:",cellsEmptyRowsColumns:"Должен быть хотя бы один столбец или строка",propertyIsEmpty:"Пожалуйста, введите значение",propertyNameIsNotUnique:"Пожалуйста, введите уникальное имя",listIsEmpty:"Добавьте новое условие",expressionIsEmpty:"Выражение - пустое",value:"Значение",text:"Текст",rowid:"ID строки",imageLink:"Ссылка на изображение",columnEdit:"Изменить столбец: {0}",itemEdit:"Редактировать элемент: {0}",url:"URL",path:"Путь",valueName:"Название пункта",titleName:"Заголовок пункта",titlePlaceholder:"Введите заголовок",surveyTitlePlaceholder:"Введите заголовок опроса",pageTitlePlaceholder:"Введите заголовок страницы",descriptionPlaceholder:"Введите описание",surveyDescriptionPlaceholder:"Введите описание опроса",pageDescriptionPlaceholder:"Введите описание страницы",hasOther:"Есть пункт 'Другое'",otherText:"Текст пункта 'Другое'",hasNone:"Нет ни одного пункта",noneText:"Текст пункта 'Ничего'",hasSelectAll:"Выбрать все пункты",selectAllText:"Текст пункта 'Выбрать все пункты'",choicesMin:"Минимальное значение для автоматически сгенерированных элементов",choicesMax:"Максимальное значение для автоматически сгенерированных элементов",choicesStep:"Разница между автоматически сгенерироваными элементами",name:"Название",title:"Заголовок",cellType:"Тип ячейки",ColCount:"Количество столбцов",choicesOrder:"Выбрать порядок отбора",visible:"Отображать?",isRequired:"Обязательный?",isAllRowRequired:"Все строки обязательны для заполнения",requiredErrorText:"Это поле обязательное для заполнения",startWithNewLine:"Начинать с новой строки?",rows:"Количество строк",PlaceHolder:"Плейсхолдер",showPreview:"Показать предпросмотр?",storeDataAsText:"Хранить содержимое файла в формате JSON как текст",MaxSize:"Максимальный размер файла в байтах",ImageHeight:"Высота изображения",ImageWidth:"Ширина изображения",rowCount:"Количество строк",columnLayout:"Макет столбцов",addRowLocation:"Добавить расположение кнопки строки",addRowText:"Добавить текст кнопки строки",removeRowText:"Удалить кнопку строки текста",rateMin:"Минимальный рейтинг",rateMax:"Максимальный рейтинг",rateStep:"Шаг рейтинга",minRateDescription:"Описание для минимального рейтинга",maxRateDescription:"Описание для максимального рейтинга",inputType:"Тип ввода",optionsCaption:"Параметры подписи",DefaultValue:"Значение по умолчанию",cellsDefaultRow:"Текст ячеек по умолчанию",surveyEditorTitle:"Настройки опросника",qEditorTitle:"Изменить: {0}",maxLength:"Максимальная длина",buildExpression:"Собрать",editExpression:"Редактировать",and:"И",or:"ИЛИ",remove:"Переместить",addCondition:"добавить условие",showTitle:"Показать/скрыть заголовок",locale:"Язык по умолчанию",simulator:"Выберите устройство",landscapeOrientation:"Альбомная",mode:"Режим (редактирование/просмотр)",clearInvisibleValues:"Очистить невидимые значения",cookieName:"Имя Cookie (отключить повторное прохождение опроса локально)",sendResultOnPageNext:"Показать результаты опроса на странице рядом",storeOthersAsComment:"Хранить занчение 'Другое' в отдельном поле",showPageTitles:"Показывать заголовки страниц",showPageNumbers:"Показывать номера страниц",pagePrevText:"Текст в кнопке 'Предыдущая страница'",pageNextText:"Текст в кнопке 'Следующая страница'",completeText:"Текст в кнопке 'Завершить'",startSurveyText:"Текст в кнопке 'Начать'",showNavigationButtons:"Показывать кнопки навигации (навигация по умолчанию)",showPrevButton:"Показывать кнопки 'Предыдущая страница' (пользователь может вернуться на предыдущую страницу)",firstPageIsStarted:"Первая страница опросника является стартовой страницей.",showCompletedPage:"Показывать страницу с текстом по завершению заполнения (HTML финальной страницы)",goNextPageAutomatic:"Переходить на следующую страницу автоматически при заполнении всех вопросов",showProgressBar:"Показывать прогресс заполнения",questionTitleLocation:"Расположение заголовка вопроса",requiredText:"Символ для обязательного вопроса",questionStartIndex:"Начальный индекс вопроса (1, 2 или 'A', 'а')",showQuestionNumbers:"Показывать номера вопросов",questionTitleTemplate:"Шаблон названия опроса, по умолчанию: {не} {требует} {текста}.",questionErrorLocation:"Размещение ошибки опроса",focusFirstQuestionAutomatic:"Фокусирование на первом вопросе при изменении страницы",questionsOrder:"Сортировка элементов на странице",maxTimeToFinish:"Максимальное время в секундах, чтобы заполнить опросник",maxTimeToFinishPage:"Максимальное время в секундах, чтобы заполнить страницу опросника",showTimerPanel:"Показывать панель таймера",showTimerPanelMode:"Показывать режим панели таймера",RenderMode:"Режим визуализации",allowAddPanel:"Разрешить добавление панели",allowRemovePanel:"Разрешить удаление панели",panelAddText:"Добавление текста на панели",panelRemoveText:"Удаление текста на панели",isSinglePage:"Показывать все элементы на одной странице",HTML:"HTML",expression:"Выражение",minValue:"Минимальное значение",maxValue:"Максимальное значение",mINLENGTH:"Минимальная длина",allowDigits:"Разрешить цифры",minCount:"Минимальное количество",maxCount:"Максимальное количество",regex:"Регулярное выражение",totalText:"Общий текст",totalType:"Общий тип",totalExpression:"Общее выражение",totalDisplayStyle:"Общий стиль отображения",totalCurrency:"Общая валюта",totalFormat:"Общий формат",logoPosition:"Местоположение логотипа",addLogo:"Добавить логотип...",changeLogo:"Изменить логотип...",logoPositions:{none:"Разместить логотип",left:"Слева",right:"Справа",top:"Сверху",bottom:"Снизу"},tabs:{general:"Общие",fileOptions:"Параметры",HTML:"Редактор HTML",columns:"Столбцы",rows:"Строки",choices:"Выбор",items:"Элементы",visibleIf:"Отображать, если",enableIf:"Доступен, если",requiredIf:"Обязателен для заполнения, если",rateValues:"Оценить важность(вес) вопроса",choicesByUrl:"Выбор из Интернета",matrixChoices:"Выбор по умолчанию",multipleTextItems:"Ввод нескольких текстовых полей",validators:"Валидаторы",navigation:"Навигация",question:"Вопрос",completedHtml:"HTML финальной страницы",completedHtmlOnCondition:"HTML финальной страницы при условии",loadingHtml:"Загрузка HTML",timer:"Таймер/Викторина",calculatedValues:"Расчетные значения",triggers:"Триггеры",templateTitle:"Название шаблона",totals:"Итоги",logic:"Логика",layout:"Планировка",data:"Данные",validation:"Проверка",cells:"Ячейки",showOnCompleted:"Показать по завершению",logo:"Логотип в заголовке опросника",others:"Другие"},editProperty:"Редактировать свойство '{0}'",items:"[Элементы: {0}]",enterNewValue:"Пожалуйста, введите значение.",noquestions:"В опроснике нет ни одного вопроса",createtrigger:"Пожалуйста, создайте триггер",triggerOn:"О",triggerMakePagesVisible:"Сделать страницы видимыми:",triggerMakeQuestionsVisible:"Сделать элементы видимыми:",triggerCompleteText:"Завершить опрос, если все получися.",triggerNotSet:"Тригер не установлен",triggerRunIf:"Начать, если",triggerSetToName:"Изменить значение:",triggerFromName:"Скопировать значение из:",triggerRunExpression:"Выполнить это выражение:",triggerSetValue:"в:",triggerGotoName:"Перейти к вопросу:",triggerIsVariable:"Не помещать переменную в результат опросника.",triggerRunExpressionEmpty:"Пожалуйста, введите корректное выражение"},pv:{true:"true",false:"false",inherit:"Наследовать",show:"Показать",hide:"Скрыть",default:"По умолчанию",initial:"Изначальный порядок",random:"Случайный порядок",collapsed:"Прерван",expanded:"Расширен",none:"Нет",asc:"По возрастанию",desc:"По убыванию",indeterminate:"Неопределенный",decimal:"Десятичный",currency:"Валюта",percent:"Проценты",firstExpanded:"Расширен первый",off:"Выключить",onPanel:"На панели",onSurvey:"В опроснике",list:"Список",progressTop:"progressTop",progressBottom:"progressBottom",progressTopBottom:"progressTopBottom",horizontal:"Горизонтально",vertical:"Вертикально",top:"Сверху",bottom:"Снизу",topBottom:"Сверху и снизу",left:"Слева",color:"Цвет",date:"Дата",datetime:"Дата и время","datetime-local":"Местные дата и время",email:"Email",month:"Месяц",number:"Номер",password:"Пароль",range:"Диапазон",tel:"Телефон",text:"Текст",time:"Время",url:"URL",week:"Неделя",hidden:"Скрыт",on:"Включить",onPage:"На странице",edit:"Редактирование",display:"Просмотр",onComplete:"По завершению",onHidden:"По скрытию",all:"Все",page:"Страница",survey:"Опрос",onNextPage:"При переходе на следующую страницу",onValueChanged:"При изменении значения"},op:{empty:"не заполнено",notempty:"заполнено",equal:"равно",notequal:"не равно",contains:"содержит",notcontains:"не содержит",anyof:"любой из",allof:"все из",greater:"больше",less:"меньше",greaterorequal:"больше или равно",lessorequal:"меньше или равно"},ew:{angular:"Используйте версию Angular",jquery:"Используйте версию jQuery",knockout:"Используйте версию Knockout",react:"Используйте версию React",vue:"Используйте версию Vue",bootstrap:"Для библиотеки bootstrap",standard:"Без библиотеки bootstrap",showOnPage:"Показывать опросник на странице",showInWindow:"Показывать опросник в модальном окне",loadFromServer:"Загрузить Json опросника с сервера",titleScript:"Скрипты и стили",titleHtml:"HTML",titleJavaScript:"JavaScript"},ts:{selectPage:"Выберите страницу, чтобы проверить это:",showInvisibleElements:"Показывать скрытые элементы"},validators:{answercountvalidator:"Количество ответов",EmailValidator:"Email",expressionvalidator:"Выражение",numericvalidator:"Число",regexvalidator:"Регулярное выражение",textvalidator:"Текст"},triggers:{completetrigger:"Завершить опрос",setvaluetrigger:"Установить значение",copyvaluetrigger:"Скопировать значение",skiptrigger:"Перейти к вопросу",runexpressiontrigger:"Запустить выражение",visibletrigger:"Изменить видимость (не рекомендуется)"},p:{name:"Название",title:{name:"Название",title:"Оставьте его пустым, если оно такое же, как 'Название'"},navigationButtonsVisibility:"Отображение навигационных кнопок",questionsOrder:"Сортировка элементов на странице",maxTimeToFinish:"Максимальное время для завершения",visible:"Видимый",visibleIf:"Отображать, если",questionTitleLocation:"Расположение заголовка вопроса",description:"Описание",state:"Состояние",isRequired:"Обязателен",requiredIf:"Обязателен если",indent:"Отступ",requiredErrorText:"Это поле обязательное для заполнения",startWithNewLine:"Начинать с новой строки",innerIndent:"Внутренний отступ",page:"Страница",width:"Ширина",commentText:"Комментарий",valueName:"Название значения",enableIf:"Доступен при условии",defaultValue:"Значение по умолчанию",correctAnswer:"Правильный ответ",readOnly:"Только для чтения",validators:"Валидаторы",titleLocation:"Расположение заголовка",hasComment:"Есть комментарий",hasOther:"Есть значение 'Другое'",choices:"Выбор",choicesOrder:"Выбрать порядок выбора",choicesByUrl:"Выбрать из интернета",otherText:"Другой текстовый элемент",otherErrorText:"Текст ошибки поля 'Другое'",storeOthersAsComment:"Хранить значение поля 'Другое', как комментарий",label:"Ярлык",showTitle:"Показывать название",valueTrue:"Правильно",valueFalse:"Неправильно",cols:"Столбцы",rows:"Строки",placeHolder:"Плейсхолдер",optionsCaption:"Подпись параметров",expression:"Выражение",format:"Формат",displayStyle:"Стиль отображения",currency:"Валюта",useGrouping:"Использовать группировку",showPreview:"Показывать превью",allowMultiple:"Выбрать несколько",imageHeight:"Высота изображения",imageWidth:"Ширина изображения",storeDataAsText:"Хранить данные в виде текста",maxSize:"Максимальный размер",html:"HTML",columns:"Столбцы",cells:"Ячейки",isAllRowRequired:"Все строки обязательны для заполнения",horizontalScroll:"Горизонтальный скролл",cellType:"Тип ячейки",columnsLayout:"Макет столбцов",columnColCount:"Количество столбцов",columnMinWidth:"Минимальная ширина столбца",rowCount:"Количество строк",minRowCount:"Минимальное количество строк",maxRowCount:"Максимальное количество строк",keyName:"Название ключа",keyDuplicationError:"Ошибка! Такой ключ уже существует, укажите другое название.",confirmDelete:"Подтвердить удаление",confirmDeleteText:"Текст сообщения при подтверждении удаления",addRowLocation:"Добавить расположение строк",addRowText:"Добавить кнопку строки текста",removeRowText:"Удалить кнопку строки текста",items:"Элементы",itemSize:"Размер элементов",colCount:"Количество столбцов",templateTitle:"Заголовок шаблона",templateDescription:"Описание шаблона",allowAddPanel:"Разрешить добавление панели",allowRemovePanel:"Разрешить удаление панели",panelCount:"Количество панелей",minPanelCount:"Минимальное количество панелей",maxPanelCount:"Максимальное количество панелей",panelsState:"Состояние панелей",panelAddText:"Текст сообщения при добавлении панели",panelRemoveText:"Текст сообщения при удалении панели",panelPrevText:"Текст сообщения предыдущей панели",panelNextText:"Текст сообщения следующей панели",showQuestionNumbers:"Показывать номера вопросов",showRangeInProgress:"Показывать прогресса заполнения",renderMode:"Режим отображения",templateTitleLocation:"Расположение заголовка шаблона",rateValues:"Оценить важность(вес) опроса",rateMin:"Минимальный рейтинг",rateMax:"Максимальный рейтинг",rateStep:"Шаг рейтинга",minRateDescription:"Описание для минимального рейтинга",maxRateDescription:"Описание для максимального рейтинга",inputType:"Тип ввода",size:"Размер",locale:"Локаль",focusFirstQuestionAutomatic:"Фокусирование на первом вопросе при изменении страницы",completedHtml:"HTML финальной страницы",completedHtmlOnCondition:"HTML финальной страницы при условии",loadingHtml:"Загрузка HTML",triggers:"триггеры",cookieName:"имя Cookie",sendResultOnPageNext:"Показать результаты опроса на странице рядом",showNavigationButtons:"Показывать кнопки навигации (навигация по умолчанию)",showPrevButton:"Показывать кнопки 'Предыдущая страница' (пользователь может вернуться на предыдущую страницу)",showPageTitles:"Показывать название страницы",showCompletedPage:"Показывать страницу с текстом по завершению заполнения (HTML финальной страницы)",showPageNumbers:"Показывать номера страниц",questionErrorLocation:"Размещение ошибки опроса",showProgressBar:"Показывать прогресс заполнения",mode:"Режим",goNextPageAutomatic:"Переходить на следующую страницу автоматически при ответе на все вопросы",checkErrorsMode:"Режим проверки ошибок",clearInvisibleValues:"Очистить невидимые значения",startSurveyText:"Текст в кнопке 'Начать'",pagePrevText:"Текст в кнопке 'Предыдущая страница'",pageNextText:"Текст в кнопке 'Следующая страница'",completeText:"Текст в кнопке 'Завершить'",requiredText:"Символ для обязательного вопроса",questionStartIndex:"Начальный индекс в опросе (1, 2 или 'A', 'а')",questionTitleTemplate:"Шаблон названия опроса, по умолчанию: {не} {требует} {текста}.",firstPageIsStarted:"Первая страница опросника является стартовой страницей.",isSinglePage:"Показывать все элементы на одной странице",maxTimeToFinishPage:"Максимальное время (секунды), чтобы заполнить страницу опросника",showTimerPanel:"Показывать панель таймера",showTimerPanelMode:"Показывать режим панели таймера",defaultPanelValue:"Значение панели по умолчанию",defaultRowValue:"Значение строки по умолчанию",hasNone:"Нет ни одного пункта",noneText:"Текст пункта 'Ничего'",text:"Текст"}};o.editorLocalization.locales.ru=r},"./src/localization/simplified-chinese.ts":
385
405
  /*!************************************************!*\
386
406
  !*** ./src/localization/simplified-chinese.ts ***!
387
407
  \************************************************/
@@ -417,11 +437,11 @@ License: MIT
417
437
  /*!*******************************************************!*\
418
438
  !*** ./src/plugins/undo-redo/undo-redo-controller.ts ***!
419
439
  \*******************************************************/
420
- /*! exports provided: UndoRedoController */function(e,t,i){"use strict";i.r(t),i.d(t,"UndoRedoController",(function(){return s}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ./undo-redo-manager */"./src/plugins/undo-redo/undo-redo-manager.ts"),s=function(e){function t(t){var i=e.call(this)||this;return i.creator=t,i.undoRedoManager=void 0,i.onBeforeUndo=new r.Event,i.onBeforeRedo=new r.Event,i.onAfterUndo=new r.Event,i.onAfterRedo=new r.Event,i.undoRedoManager=new r.ComputedUpdater((function(){var e=new a.UndoRedoManager,t=i.creator.survey;return t&&(t.onPropertyValueChangedCallback=function(e,t,o,r,n){i.onSurveyPropertyValueChangedCallback(e,t,o,r,n)},e.changesFinishedCallback=function(e){i.creator.setModified({type:"PROPERTY_CHANGED",name:e.propertyName,target:e.object,oldValue:e.oldValue,newValue:e.newValue})},e.canUndoRedoCallback=function(){i.updateUndeRedoActions()}),e})),i}return Object(o.__extends)(t,e),t.prototype.onSurveyPropertyValueChangedCallback=function(e,t,i,o,r){this.undoRedoManager&&this.undoRedoManager.isCorrectProperty(o,e)&&(this.undoRedoManager.tryMergeTransaction(o,e,i)||(this.undoRedoManager.startTransaction(e+" changed"),this.undoRedoManager.onPropertyValueChanged(e,t,i,o,r),this.creator.updatePagesController(o,e),this.creator.updateElementsOnLocaleChanged(o,e),this.creator.updateConditionsOnQuestionNameChanged(o,e,t),this.undoRedoManager.stopTransaction()))},t.prototype.selectElementAfterUndo=function(){this.selectElementAfterUndoCore(this.creator.selectedElement)},t.prototype.selectElementAfterUndoCore=function(e){!e||e.isDisposed||!e.getSurvey()||this.creator.isObjQuestion(e)&&!e.parent?this.creator.selectElement(this.creator.survey):this.creator.selectElement(e)},t.prototype.undo=function(){if(this.undoRedoManager){var e={canUndo:this.undoRedoManager.canUndo()};if(this.onBeforeUndo.fire(self,e),this.creator.onBeforeUndo.fire(self,e),e.canUndo){var t=this.undoRedoManager.undo();this.onAfterUndo.fire(self,{state:t}),this.creator.onAfterUndo.fire(self,{state:t}),this.selectElementAfterUndo()}}},t.prototype.redo=function(){if(this.undoRedoManager){var e={canRedo:this.undoRedoManager.canRedo()};if(this.onBeforeRedo.fire(self,e),this.creator.onBeforeRedo.fire(self,e),e.canRedo){var t=this.undoRedoManager.redo();this.onAfterRedo.fire(self,{state:t}),this.creator.onAfterRedo.fire(self,{state:t}),this.selectElementAfterUndo()}}},t.prototype.startTransaction=function(e){void 0===e&&(e=""),this.undoRedoManager&&this.undoRedoManager.startTransaction(e)},t.prototype.stopTransaction=function(){this.undoRedoManager&&this.undoRedoManager.stopTransaction()},t.prototype.createActions=function(){var e=this,t=[];return this.undoAction=new r.Action({id:"icon-undo",iconName:"icon-undo",title:Object(n.getLocString)("ed.undo"),showTitle:!1,visible:new r.ComputedUpdater((function(){return"designer"===e.creator.activeTab})),action:function(){return e.undo()}}),this.redoAction=new r.Action({id:"icon-redo",iconName:"icon-redo",title:Object(n.getLocString)("ed.redo"),showTitle:!1,visible:new r.ComputedUpdater((function(){return"designer"===e.creator.activeTab})),action:function(){return e.redo()}}),t.push(this.undoAction),t.push(this.redoAction),this.updateUndeRedoActions(),t},t.prototype.updateUndeRedoActions=function(){this.undoAction.active=this.undoRedoManager.canUndo(),this.redoAction.active=this.undoRedoManager.canRedo()},Object(o.__decorate)([Object(r.property)()],t.prototype,"undoRedoManager",void 0),t}(r.Base)},"./src/plugins/undo-redo/undo-redo-manager.ts":
440
+ /*! exports provided: UndoRedoController */function(e,t,i){"use strict";i.r(t),i.d(t,"UndoRedoController",(function(){return s}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ./undo-redo-manager */"./src/plugins/undo-redo/undo-redo-manager.ts"),s=function(e){function t(t){var i=e.call(this)||this;return i.creator=t,i.undoRedoManager=void 0,i.onBeforeUndo=new r.Event,i.onBeforeRedo=new r.Event,i.onAfterUndo=new r.Event,i.onAfterRedo=new r.Event,i.undoRedoManager=new r.ComputedUpdater((function(){var e=new a.UndoRedoManager,t=i.creator.survey;return t&&(t.onPropertyValueChangedCallback=function(e,t,o,r,n){i.onSurveyPropertyValueChangedCallback(e,t,o,r,n)},e.changesFinishedCallback=function(e){i.creator.setModified({type:"PROPERTY_CHANGED",name:e.propertyName,target:e.object,oldValue:e.oldValue,newValue:e.newValue})},e.canUndoRedoCallback=function(){i.updateUndeRedoActions()}),e})),i}return Object(o.__extends)(t,e),t.prototype.onSurveyPropertyValueChangedCallback=function(e,t,i,o,r){this.undoRedoManager&&this.undoRedoManager.isCorrectProperty(o,e)&&(this.undoRedoManager.tryMergeTransaction(o,e,i)?this.creator.setModified({type:"PROPERTY_CHANGED",name:e,target:o,oldValue:t,newValue:i}):(this.undoRedoManager.startTransaction(e+" changed"),this.undoRedoManager.onPropertyValueChanged(e,t,i,o,r),this.creator.updatePagesController(o,e),this.creator.updateElementsOnLocaleChanged(o,e),this.creator.updateConditionsOnQuestionNameChanged(o,e,t),this.undoRedoManager.stopTransaction()))},t.prototype.selectElementAfterUndo=function(){this.selectElementAfterUndoCore(this.creator.selectedElement)},t.prototype.selectElementAfterUndoCore=function(e){!e||e.isDisposed||!e.getSurvey()||this.creator.isObjQuestion(e)&&!e.parent?this.creator.selectElement(this.creator.survey):this.creator.selectElement(e)},t.prototype.undo=function(){if(this.undoRedoManager){var e={canUndo:this.undoRedoManager.canUndo()};if(this.onBeforeUndo.fire(self,e),this.creator.onBeforeUndo.fire(self,e),e.canUndo){var t=this.undoRedoManager.undo();this.onAfterUndo.fire(self,{state:t}),this.creator.onAfterUndo.fire(self,{state:t}),this.selectElementAfterUndo()}}},t.prototype.redo=function(){if(this.undoRedoManager){var e={canRedo:this.undoRedoManager.canRedo()};if(this.onBeforeRedo.fire(self,e),this.creator.onBeforeRedo.fire(self,e),e.canRedo){var t=this.undoRedoManager.redo();this.onAfterRedo.fire(self,{state:t}),this.creator.onAfterRedo.fire(self,{state:t}),this.selectElementAfterUndo()}}},t.prototype.startTransaction=function(e){void 0===e&&(e=""),this.undoRedoManager&&this.undoRedoManager.startTransaction(e)},t.prototype.stopTransaction=function(){this.undoRedoManager&&this.undoRedoManager.stopTransaction()},t.prototype.createActions=function(){var e=this,t=[];return this.undoAction=new r.Action({id:"icon-undo",iconName:"icon-undo",title:Object(n.getLocString)("ed.undo"),showTitle:!1,visible:new r.ComputedUpdater((function(){return"designer"===e.creator.activeTab})),action:function(){return e.undo()}}),this.redoAction=new r.Action({id:"icon-redo",iconName:"icon-redo",title:Object(n.getLocString)("ed.redo"),showTitle:!1,visible:new r.ComputedUpdater((function(){return"designer"===e.creator.activeTab})),action:function(){return e.redo()}}),t.push(this.undoAction),t.push(this.redoAction),this.updateUndeRedoActions(),t},t.prototype.updateUndeRedoActions=function(){this.undoAction.active=this.undoRedoManager.canUndo(),this.redoAction.active=this.undoRedoManager.canRedo()},Object(o.__decorate)([Object(r.property)()],t.prototype,"undoRedoManager",void 0),t}(r.Base)},"./src/plugins/undo-redo/undo-redo-manager.ts":
421
441
  /*!****************************************************!*\
422
442
  !*** ./src/plugins/undo-redo/undo-redo-manager.ts ***!
423
443
  \****************************************************/
424
- /*! exports provided: UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction */function(e,t,i){"use strict";i.r(t),i.d(t,"UndoRedoManager",(function(){return n})),i.d(t,"Transaction",(function(){return a})),i.d(t,"UndoRedoAction",(function(){return s})),i.d(t,"UndoRedoArrayAction",(function(){return l}));var o=i(/*! survey-core */"survey-core"),r=i(/*! ../../editable-object */"./src/editable-object.ts"),n=function(){function e(){this._ignoreChanges=!1,this._preparingTransaction=null,this._transactions=[],this._currentTransactionIndex=-1,this.transactionCounter=0}return e.prototype.onPropertyValueChanged=function(e,t,i,o,n){if(!r.EditableObject.isCopyObject(o)&&!this._ignoreChanges){var u=this._preparingTransaction,c=n?new l(e,o,n):new s(e,t,i,o);if(!u)return(u=new a(e)).addAction(c),void this._addTransaction(u);u.addAction(c)}},e.prototype.isCorrectProperty=function(e,t){var i=o.Serializer.findProperty(e.getType(),t);return!!i&&i.isSerializable},e.prototype.tryMergeTransaction=function(e,t,i){if("name"===t)return!1;var o=this._getCurrentTransaction();return!(!o||0==o.actions.length)&&o.actions[o.actions.length-1].tryMerge(e,t,i)},e.prototype.isCopyObject=function(e){},e.prototype._cutOffTail=function(){this._currentTransactionIndex+1!==this._transactions.length&&(this._transactions.length=this._currentTransactionIndex+1)},e.prototype._addTransaction=function(e){e.isEmpty()||(this._cutOffTail(),this._transactions.push(e),this._currentTransactionIndex++,this.canUndoRedoCallback())},e.prototype._getCurrentTransaction=function(){var e=this._currentTransactionIndex;return this._transactions[e]},e.prototype._getNextTransaction=function(){var e=this._currentTransactionIndex;return this._transactions[e+1]},e.prototype.notifyChangesFinished=function(e){e.actions.length>0&&e.actions[0]&&this.changesFinishedCallback&&this.changesFinishedCallback(e.actions[0].getChanges())},e.prototype.canUndoRedoCallback=function(){},e.prototype.startTransaction=function(e){this.transactionCounter++,this._preparingTransaction||(this._preparingTransaction=new a(e))},e.prototype.stopTransaction=function(){this.transactionCounter>0&&this.transactionCounter--,!this._preparingTransaction||this.transactionCounter>0||(this._addTransaction(this._preparingTransaction),0===this.transactionCounter&&this.notifyChangesFinished(this._preparingTransaction),this._preparingTransaction=null)},e.prototype.canUndo=function(){return!!this._getCurrentTransaction()},e.prototype.undo=function(){var e=this._getCurrentTransaction();this.canUndo()&&(this._ignoreChanges=!0,e.rollback(),this._ignoreChanges=!1,this._currentTransactionIndex--,this.canUndoRedoCallback(),this.notifyChangesFinished(e))},e.prototype.canRedo=function(){return!!this._getNextTransaction()},e.prototype.redo=function(){var e=this._getNextTransaction();this.canRedo()&&(this._ignoreChanges=!0,e.apply(),this._ignoreChanges=!1,this._currentTransactionIndex++,this.canUndoRedoCallback(),this.notifyChangesFinished(e))},e.prototype.suspend=function(){this._ignoreChanges=!0},e.prototype.resume=function(){this._ignoreChanges=!1},e}(),a=function(){function e(e){this._name=e,this._actions=[]}return e.prototype.apply=function(){for(var e=this._actions,t=0;t<e.length;t++)e[t].apply()},e.prototype.rollback=function(){for(var e=this._actions,t=e.length-1;t>=0;t--)e[t].rollback()},e.prototype.addAction=function(e){this._actions.push(e)},e.prototype.isEmpty=function(){return 0===this._actions.length},Object.defineProperty(e.prototype,"actions",{get:function(){return this._actions},enumerable:!1,configurable:!0}),e}(),s=function(){function e(e,t,i,o){this._propertyName=e,this._oldValue=t,this._newValue=i,this._sender=o}return e.prototype.apply=function(){this._sender[this._propertyName]=this._newValue},e.prototype.rollback=function(){this._sender[this._propertyName]=this._oldValue},e.prototype.getChanges=function(){return{object:this._sender,propertyName:this._propertyName,oldValue:this._oldValue,newValue:this._newValue}},e.prototype.tryMerge=function(e,t,i){if(e!==this._sender||t!==this._propertyName||i==this._oldValue)return!1;var r=o.Serializer.findProperty(e.getType(),t);return!(!r||"string"!==r.type&&"text"!==r.type||(this._newValue=i,0))},e}(),l=function(){function e(e,t,i){this._propertyName=e,this._sender=t,this._index=0,this._itemsToAdd=[],this._deletedItems=[],this._index=i.index,this._itemsToAdd=i.itemsToAdd,this._deletedItems=i.deletedItems}return e.prototype.apply=function(){this.rollback()},e.prototype.rollback=function(){var e=this._sender[this._propertyName],t=this._index,i=this._itemsToAdd.length,o=[].concat(this._deletedItems);this._deletedItems=e.splice.apply(e,[t,i].concat(o)),this._itemsToAdd=[].concat(o)},e.prototype.getChanges=function(){return{object:this._sender,propertyName:this._propertyName,oldValue:this._deletedItems,newValue:this._itemsToAdd}},e.prototype.tryMerge=function(e,t,i){return!1},e}()},"./src/property-grid-theme/property-grid.scss":
444
+ /*! exports provided: UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction */function(e,t,i){"use strict";i.r(t),i.d(t,"UndoRedoManager",(function(){return n})),i.d(t,"Transaction",(function(){return a})),i.d(t,"UndoRedoAction",(function(){return s})),i.d(t,"UndoRedoArrayAction",(function(){return l}));var o=i(/*! survey-core */"survey-core"),r=i(/*! ../../editable-object */"./src/editable-object.ts"),n=function(){function e(){this._ignoreChanges=!1,this._isExecuting=!1,this._preparingTransaction=null,this._transactions=[],this._currentTransactionIndex=-1,this.transactionCounter=0}return e.prototype.onPropertyValueChanged=function(e,t,i,o,n){if(!r.EditableObject.isCopyObject(o)&&!this.isIgnoring){var u=this._preparingTransaction,c=n?new l(e,o,n):new s(e,t,i,o);if(!u)return(u=new a(e)).addAction(c),void this._addTransaction(u);u.addAction(c)}},e.prototype.isCorrectProperty=function(e,t){var i=o.Serializer.findProperty(e.getType(),t);return!!i&&i.isSerializable},e.prototype.tryMergeTransaction=function(e,t,i){if("name"===t)return!1;var o=this._getCurrentTransaction();return!(!o||0==o.actions.length)&&o.actions[o.actions.length-1].tryMerge(e,t,i)},e.prototype.isCopyObject=function(e){},e.prototype._cutOffTail=function(){this._currentTransactionIndex+1!==this._transactions.length&&(this._transactions.length=this._currentTransactionIndex+1)},Object.defineProperty(e.prototype,"isIgnoring",{get:function(){return this._ignoreChanges||this._isExecuting},enumerable:!1,configurable:!0}),e.prototype._addTransaction=function(e){e.isEmpty()||(this._cutOffTail(),this._transactions.push(e),this._currentTransactionIndex++,this.canUndoRedoCallback())},e.prototype._getCurrentTransaction=function(){var e=this._currentTransactionIndex;return this._transactions[e]},e.prototype._getNextTransaction=function(){var e=this._currentTransactionIndex;return this._transactions[e+1]},e.prototype.notifyChangesFinished=function(e){e.actions.length>0&&e.actions[0]&&this.changesFinishedCallback&&this.changesFinishedCallback(e.actions[0].getChanges())},e.prototype.canUndoRedoCallback=function(){},e.prototype.startTransaction=function(e){this.isIgnoring||(this.transactionCounter++,this._preparingTransaction||(this._preparingTransaction=new a(e)))},e.prototype.stopTransaction=function(){this.isIgnoring||(this.transactionCounter>0&&this.transactionCounter--,!this._preparingTransaction||this.transactionCounter>0||(this._addTransaction(this._preparingTransaction),0===this.transactionCounter&&this.notifyChangesFinished(this._preparingTransaction),this._preparingTransaction=null))},e.prototype.canUndo=function(){return!!this._getCurrentTransaction()},e.prototype.undo=function(){var e=this._getCurrentTransaction();this.canUndo()&&(this._isExecuting=!0,e.rollback(),this._isExecuting=!1,this._currentTransactionIndex--,this.canUndoRedoCallback(),this.notifyChangesFinished(e))},e.prototype.canRedo=function(){return!!this._getNextTransaction()},e.prototype.redo=function(){var e=this._getNextTransaction();this.canRedo()&&(this._isExecuting=!0,e.apply(),this._isExecuting=!1,this._currentTransactionIndex++,this.canUndoRedoCallback(),this.notifyChangesFinished(e))},e.prototype.suspend=function(){this._ignoreChanges=!0},e.prototype.resume=function(){this._ignoreChanges=!1},e}(),a=function(){function e(e){this._name=e,this._actions=[]}return e.prototype.apply=function(){for(var e=this._actions,t=0;t<e.length;t++)e[t].apply()},e.prototype.rollback=function(){for(var e=this._actions,t=e.length-1;t>=0;t--)e[t].rollback()},e.prototype.addAction=function(e){this._actions.push(e)},e.prototype.isEmpty=function(){return 0===this._actions.length},Object.defineProperty(e.prototype,"actions",{get:function(){return this._actions},enumerable:!1,configurable:!0}),e}(),s=function(){function e(e,t,i,o){this._propertyName=e,this._oldValue=t,this._newValue=i,this._sender=o}return e.prototype.apply=function(){this._sender[this._propertyName]=this._newValue},e.prototype.rollback=function(){this._sender[this._propertyName]=this._oldValue},e.prototype.getChanges=function(){return{object:this._sender,propertyName:this._propertyName,oldValue:this._oldValue,newValue:this._newValue}},e.prototype.tryMerge=function(e,t,i){if(e!==this._sender||t!==this._propertyName||i==this._oldValue)return!1;var r=o.Serializer.findProperty(e.getType(),t);return!(!r||"string"!==r.type&&"text"!==r.type||(this._newValue=i,0))},e}(),l=function(){function e(e,t,i){this._propertyName=e,this._sender=t,this._index=0,this._itemsToAdd=[],this._deletedItems=[],this._index=i.index,this._itemsToAdd=i.itemsToAdd,this._deletedItems=i.deletedItems}return e.prototype.apply=function(){this.rollback()},e.prototype.rollback=function(){var e=this._sender[this._propertyName],t=this._index,i=this._itemsToAdd.length,o=[].concat(this._deletedItems);this._deletedItems=e.splice.apply(e,[t,i].concat(o)),this._itemsToAdd=[].concat(o)},e.prototype.getChanges=function(){return{object:this._sender,propertyName:this._propertyName,oldValue:this._deletedItems,newValue:this._itemsToAdd}},e.prototype.tryMerge=function(e,t,i){return!1},e}()},"./src/property-grid-theme/property-grid.scss":
425
445
  /*!****************************************************!*\
426
446
  !*** ./src/property-grid-theme/property-grid.scss ***!
427
447
  \****************************************************/
@@ -437,7 +457,7 @@ License: MIT
437
457
  /*!***********************************************!*\
438
458
  !*** ./src/property-grid/condition-survey.ts ***!
439
459
  \***********************************************/
440
- /*! exports provided: ConditionEditorItem, SurveyConditionEditorItem, ConditionEditorItemsBuilder, ConditionEditor */function(e,t,i){"use strict";i.r(t),i.d(t,"ConditionEditorItem",(function(){return u})),i.d(t,"SurveyConditionEditorItem",(function(){return c})),i.d(t,"ConditionEditorItemsBuilder",(function(){return d})),i.d(t,"ConditionEditor",(function(){return p}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../settings */"./src/settings.ts"),a=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),s=i(/*! ../survey-helper */"./src/survey-helper.ts"),l=i(/*! ./index */"./src/property-grid/index.ts"),u=function(){this.conjunction="and",this.operator="equal"},c=function(e){function t(t){var i=e.call(this)||this;return i.survey=t,i}return Object(o.__extends)(t,e),t.prototype.getOperatorText=function(){var e=this.operator;return"equal"==e?"=":"notequal"==e?"<>":"greater"==e?">":"less"==e?"<":"greaterorequal"==e?">=":"lessorequal"==e?"<=":e},t.prototype.getValueText=function(){var e=this.value;if(!e)return e;if(!Array.isArray(e))return this.valToText(e);for(var t="[",i=0;i<e.length;i++)t+=this.valToText(e[i]),i<e.length-1&&(t+=", ");return t+="]"},Object.defineProperty(t.prototype,"isValueRequired",{get:function(){return"empty"!==this.operator&&"notempty"!==this.operator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReady",{get:function(){return!(!this.questionName||this.isValueRequired&&r.Helpers.isValueEmpty(this.value))},enumerable:!1,configurable:!0}),t.prototype.toExpression=function(){var e="{"+this.getQuestionValueByName()+"} "+this.getOperatorText();return this.isValueRequired&&(e+=" "+this.getValueText()),e},t.prototype.getQuestionValueByName=function(){var e=this.survey.getQuestionByName(this.questionName);return e&&e.name!=e.getValueName()&&this.questionName!=e.getValueName()?this.questionName.replace(e.name,e.getValueName()):this.questionName},t.prototype.valToText=function(e){return"true"==e||"false"==e||this.isNumeric(e)?e:"["==e[0]?e.replace(/(?!^)(['])(?!$)/g,"\\$1"):(this.isQuote(e[0])||(e="'"+e),this.isQuote(e[e.length-1])||(e+="'"),e.replace(/(?!^)(['"])(?!$)/g,"\\$1"))},t.prototype.isNumeric=function(e){return!("string"==typeof e&&e.length>1&&"0"===e[0]&&"x"!==e[1]||isNaN(e))},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t}(u),d=function(){function e(e){void 0===e&&(e=null),this.hasValue=e}return e.prototype.build=function(e){return e&&(t=(new r.ConditionsParser).parseExpression(e))?this.buildEditorItems(t):[];var t},e.prototype.buildEditorItems=function(e){var t=[];return this.buildEditorItemsCore(e,t,"")||(t=[]),t},e.prototype.buildEditorItemsCore=function(e,t,i){if("unary"==e.getType())return this.buildEditorItemsAddUnaryOperand(e,t);if("binary"!==e.getType())return!1;var o=e;return!(o.isArithmetic&&!o.isConjunction)&&(o.isConjunction?this.buildEditorItemsAddConjunction(o,t,i):this.buildEditorItemsAddBinaryOperand(o,t))},e.prototype.buildEditorItemsAddConjunction=function(e,t,i){var o=e.conjunction;if("or"==o&&i&&i!=o)return!1;if(!this.buildEditorItemsCore(e.leftOperand,t,o))return!1;var r=t.length;return!!this.buildEditorItemsCore(e.rightOperand,t,o)&&(t[r].conjunction=e.conjunction,!0)},e.prototype.buildEditorItemsAddBinaryOperand=function(e,t){var i=this.getOperandByType(e,"variable"),o=this.getArrayValueFromOperand(e),r=o?null:this.getOperandByType(e,"const");if(!i||!r&&!o&&this.canShowValueByOperator(e.operator))return!1;if(!this.isVariableInSurvey(i.variable))return!1;var n=new u;return n.questionName=i.variable,n.operator=e.leftOperand!==i?this.getOppositeOperator(e.operator):e.operator,o&&(n.value=o),r&&(n.value=r.correctValue),t.push(n),!0},e.prototype.isVariableInSurvey=function(e){return!this.hasValue||this.hasValue(e)},e.prototype.getArrayValueFromOperand=function(e){var t=this.getOperandByType(e,"array");if(!t||!t.values)return null;var i=t.values;if(!Array.isArray(i)||0==i.length)return null;for(var o=[],r=0;r<i.length;r++){var n=i[r];if(n){if("const"!=n.getType())return null;o.push(n.correctValue)}}return 0==o.length?null:o},e.prototype.buildEditorItemsAddUnaryOperand=function(e,t){var i=e.operator;if("empty"!==i&&"notempty"!=i)return!1;var o=e.expression;if(null==o||"variable"!=o.getType())return!1;var r=o.variable;if(!this.isVariableInSurvey(r))return!1;var n=new u;return n.questionName=r,n.operator=i,t.push(n),!0},e.prototype.getOppositeOperator=function(e){return"less"==e?"greater":"greater"==e?"less":"lessorequal"==e?"greaterorequal":"greaterorequal"==e?"lessorequal":e},e.prototype.getOperandByType=function(e,t){return e.rightOperand?e.leftOperand.getType()!==t&&e.rightOperand.getType()!==t||e.leftOperand.getType()==t&&e.rightOperand.getType()==t?null:e.leftOperand.getType()==t?e.leftOperand:e.rightOperand:null},e.prototype.canShowValueByOperator=function(e){return"empty"!=e&&"notempty"!=e},e}();r.FunctionFactory.Instance.register("questionValueVisibleIf",(function(e){return 2===e.length&&!(!e[0]||!e[1])&&"empty"!==e[1]&&"notempty"!==e[1]}));var p=function(e){function t(t,i,o,n){void 0===i&&(i=null),void 0===o&&(o=null),void 0===n&&(n="");var a=e.call(this,o)||this;return a.propertyName=n,a.addConditionQuestionsHash={},a.isModalValue=!0,a.isSettingPanelValues=!1,a.calculatedValueQuestion=null,a.surveyValue=t,a.objectValue=i,a.panelValue=a.editSurvey.getQuestionByName("panel"),a.textEditorValue=a.editSurvey.getQuestionByName("textEditor"),a.options.maxLogicItemsInCondition&&(a.panel.maxPanelCount=a.options.maxLogicItemsInCondition),a.allConditionQuestions=a.createAllConditionQuestions(),a.editSurvey.onValueChanged.add((function(e,t){a.onValueChanged(t)})),a.editSurvey.onDynamicPanelAdded.add((function(e,t){a.onPanelAdded()})),a.editSurvey.onDynamicPanelRemoved.add((function(e,t){0==t.question.panelCount&&t.question.addPanel(),a.panel.panelCount>0&&(a.panel.panels[0].getQuestionByName("questionName").titleLocation="left")})),a.editSurvey.onDynamicPanelItemValueChanged.add((function(e,t){a.onPanelValueChanged(t.panel,t.name)})),a.editSurvey.onUpdateQuestionCssClasses.add((function(e,t){a.onUpdateQuestionCssClasses(t)})),a.editSurvey.css=r.defaultV2Css,a.text=a.object&&a.propertyName?a.object[a.propertyName]:"",a}return Object(o.__extends)(t,e),t.canParseExpression=function(e){return!e||!!(new r.ConditionsParser).parseExpression(e)},t.canBuildExpression=function(e){return!e||!!t.canParseExpression(e)&&(new d).build(e).length>0},Object.defineProperty(t.prototype,"title",{get:function(){return this.panel.title},set:function(e){this.panel.title=e,this.textEditor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.isModalValue},set:function(e){e!==this.isModalValue&&(this.isModalValue=e)},enumerable:!1,configurable:!0}),t.prototype.getSurveyJSON=function(){return{elements:[{type:"paneldynamic",titleLocation:"hidden",name:"panel",panelRemoveButtonLocation:"right",panelAddText:a.editorLocalization.getString("pe.addCondition"),minPanelCount:1,maxPanelCount:1,startWithNewLine:!1,templateElements:[{name:"conjunction",type:"dropdown",titleLocation:"hidden",showOptionsCaption:!1,visibleIf:"{panelIndex} > 0",choices:[{value:"and",text:a.editorLocalization.getString("pe.and")},{value:"or",text:a.editorLocalization.getString("pe.or")}]},{name:"questionName",type:"dropdown",title:a.editorLocalization.getString("pe.if"),titleLocation:"left",startWithNewLine:!1,isRequired:!0},{name:"operator",type:"dropdown",titleLocation:"hidden",startWithNewLine:!1,showOptionsCaption:!1,isRequired:!0,enableIf:"{panel.questionName} notempty"},{name:"questionValue",type:"text",visible:!1}]},{type:"comment",titleLocation:"hidden",name:"textEditor",textUpdateMode:"onTyping",visible:!1}]}},t.prototype.getSurveyCreationReason=function(){return"condition-builder"},Object.defineProperty(t.prototype,"text",{get:function(){return this.getText()},set:function(e){this.isModal||t.canBuildExpression(e)?(this.textEditor.value=e,this.showBuilder(e)):(this.panel.panelCount=0,this.showTextEditor(e))},enumerable:!1,configurable:!0}),t.prototype.isModified=function(e){if(this.textEditor.visible)return e!=this.text;var t=this.getEditorItems(),i=e?(new r.ConditionsParser).parseExpression(e):null;if(!i)return!(1==t.length&&!t[0].questionName);if(!this.isReady)return!0;var o=(new r.ConditionsParser).parseExpression(this.text);return!i.isEqual(o)},t.prototype.processText=function(e){this.panel.panelCount=0;var t=(new d).build(e);this.buildPanels(t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"object",{get:function(){return this.objectValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textEditor",{get:function(){return this.textEditorValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReady",{get:function(){if(this.textEditor.visible)return t.canParseExpression(this.textEditor.value);for(var e=0;e<this.panel.panels.length;e++)if(!this.createEditorItemFromPanel(this.panel.panels[e]).isReady)return!1;return!0},enumerable:!1,configurable:!0}),t.prototype.apply=function(){return!!this.isReady&&(this.object&&this.propertyName?(this.object[this.propertyName]=this.text,!0):void 0)},t.prototype.setIsFastEntry=function(e){e?this.showTextEditor(this.text):this.panel.visible||this.showBuilder(this.text)},t.prototype.buildPanels=function(e){this.panel.panelCount=e.length;for(var t=0;t<e.length;t++)this.setItemToPanel(e[t],this.panel.panels[t]);0==this.panel.panelCount&&this.panel.addPanel()},t.prototype.setItemToPanel=function(e,t){this.isSettingPanelValues=!0,t.getQuestionByName("conjunction").value=e.conjunction,t.getQuestionByName("operator").choices=this.getOperators(),t.getQuestionByName("operator").value=e.operator,t.getQuestionByName("questionName").choices=this.allConditionQuestions,t.getQuestionByName("questionName").titleLocation=0==this.panel.panels.indexOf(t)?"left":"hidden",this.getConditionQuestion(e.questionName)&&(t.getQuestionByName("questionName").value=e.questionName),t.getQuestionByName("questionValue")&&(t.getQuestionByName("questionValue").value=e.value),this.isSettingPanelValues=!1},t.prototype.getText=function(){if(this.textEditor.visible)return this.textEditor.value;for(var e="",t=this.getEditorItems(),i=0;i<t.length;i++){if(!t[i].isReady)return"";e&&(e+=" "+t[i].conjunction+" "),e+=t[i].toExpression()}return e},t.prototype.getEditorItems=function(){for(var e=[],t=0;t<this.panel.panels.length;t++)e.push(this.createEditorItemFromPanel(this.panel.panels[t]));return e},t.prototype.createEditorItemFromPanel=function(e){var t=new c(this.survey);return t.conjunction=e.getQuestionByName("conjunction").value,t.questionName=e.getQuestionByName("questionName").value,t.operator=e.getQuestionByName("operator").value,e.getQuestionByName("questionValue")&&(t.value=e.getQuestionByName("questionValue").value),t},t.prototype.createAllConditionQuestions=function(){if(!this.survey)return[];var e=[],t=this.survey.getAllQuestions();if(t.length>0){for(var i=0;i<t.length;i++)this.object!=t[i]&&t[i].addConditionObjectsByContext(e,this.object);for(this.options.onConditionQuestionsGetListCallback(this.propertyName,this.object,this,e),i=0;i<e.length;i++){e[i].value=e[i].name;var o=e[i].question?e[i].question:e[i];if(!this.options.showTitlesInExpressions){var r=e[i].name,n=o.valueName;n&&0==r.indexOf(n)&&(r=r.replace(n,o.name)),e[i].text=this.options.getObjectDisplayName(o,"condition",r)}this.addConditionQuestionsHash[e[i].name]=o}}return this.addValuesIntoConditionQuestions(this.survey.calculatedValues,e),this.addValuesIntoConditionQuestions(this.survey.getVariableNames(),e),s.SurveyHelper.sortItems(e),e},t.prototype.addValuesIntoConditionQuestions=function(e,t){for(var i=0;i<e.length;i++){var o=e[i].name?e[i].name:e[i];this.addConditionQuestionsHash[o]=this.getCalculatedValueQuestion(),t.push({value:o,text:o,question:this.getCalculatedValueQuestion()})}},t.prototype.getCalculatedValueQuestion=function(){return this.calculatedValueQuestion||(this.calculatedValueQuestion=r.Serializer.createClass("text"),this.calculatedValueQuestion.name="question"),this.calculatedValueQuestion},t.prototype.getOperators=function(){var e=[],t=n.settings.operators;for(var i in t)e.push(new r.ItemValue(i,a.editorLocalization.getString("op."+i)));return e},t.prototype.rebuildQuestionValue=function(e){e.getQuestionByName("questionValue")&&e.getQuestionByName("questionValue").clearValue();var t=this.getQuestionConditionJson(e.getQuestionByName("questionName").value,e.getQuestionByName("operator").value);t||(t={type:"text"}),t.isRequired=!0,s.SurveyHelper.updateQuestionJson(t),t.enableIf="{panel.questionName} notempty and {panel.operator} != 'empty' and {panel.operator} != 'notempty'";var i=r.Serializer.createClass(t.type);delete t.type,(new r.JsonObject).toObject(t,i),i||(i=r.Serializer.createClass("text",t));var o=e.getQuestionByName("questionValue");o&&e.removeElement(o),this.canShowQuestionValue(e)&&(i.name="questionValue",i.visibleIf="questionValueVisibleIf({panel.questionName}, {panel.operator})",i.title=a.editorLocalization.getString("pe.conditionValueQuestionTitle"),i.description="",i.titleLocation="default",i.hasComment=!1,e.addElement(i))},t.prototype.rebuildQuestionValueOnOperandChanging=function(e){var t=this.getQuestionConditionJson(e.getQuestionByName("questionName").value,e.getQuestionByName("operator").value),i=e.getQuestionByName("questionValue");!i||!i.isReadOnly&&i.isVisible||i.clearValue(),!i||t&&t.type==i.getType()||this.rebuildQuestionValue(e)},t.prototype.canShowQuestionValue=function(e){var t=e.getQuestionByName("operator");if(!t)return!1;this.updateOperatorEnables(e);for(var i=t.choices,o=0;o<i.length;o++)if(i[o].isEnabled){var r=i[o].value;if("empty"!==r&&"notempty"!=r)return!0}return!1},t.prototype.getConditionQuestion=function(e){return this.addConditionQuestionsHash[e]},t.prototype.getQuestionConditionJson=function(e,t){var i="",o=this.getConditionQuestion(e);if(!o)return null;0==e.indexOf(o.getValueName())&&(i=e.substr(o.getValueName().length)),0==e.indexOf("row.")&&(i=e.substr("row.".length)),i||(i=e),i&&"."==i[0]&&(i=i.substr(1));var r=o&&o.getConditionJson?o.getConditionJson(t,i):null;return r&&"radiogroup"==r.type&&(r.type="dropdown"),r&&"expression"==r.type&&(r.type="text"),r&&"anyof"==t&&(this.isClassContains(r.type,["checkbox"],[])||(r.type="checkbox")),r||null},t.prototype.updateOperatorEnables=function(e){var t=e.getQuestionByName("questionName");if(t){var i=this.getQuestionConditionJson(t.value,"equal"),o=i?i.type:null,r=e.getQuestionByName("operator");if(r){for(var a=r.choices,s=!0,l=r.value,u=0;u<a.length;u++)a[u].setIsEnabled(this.isOperatorEnabled(o,n.settings.operators[a[u].value])),a[u].value==l&&(s=a[u].isEnabled);s||(r.value=this.getFirstEnabledOperator(a))}}},t.prototype.updateQuestionsWidth=function(e){var t=e.getQuestionByName("questionValue"),i=e.getQuestionByName("conjunction"),o=e.getQuestionByName("questionName"),r=e.getQuestionByName("operator"),n=!!t&&!t.startWithNewLine,a=!i||!i.isVisible;a||(i.minWidth="50px",i.width="15%",i.paddingRight="20px"),o.minWidth="50px",o.width=a?"40%":"25%",o.paddingRight="20px",r.minWidth="50px",r.width=n?"25%":"60%",r.paddingRight="20px",t&&(t.minWidth="50px",t.width=n?"35%":"",t.paddingRight="20px")},t.prototype.getFirstEnabledOperator=function(e){for(var t=0;t<e.length;t++)if(e[t].isEnabled)return e[t].value;return"equal"},t.prototype.isOperatorEnabled=function(e,t){if(!e)return!0;if(!t||0==t.length)return!0;for(var i=[],o=[],r=0;r<t.length;r++){var n=t[r];"!"==n[0]?o.push(n.substr(1)):i.push(n)}return this.isClassContains(e,i,o)},t.prototype.isClassContains=function(e,t,i){for(var o=r.Serializer.findClass(e);o;){if(t.indexOf(o.name)>-1)return!0;if(i.indexOf(o.name)>-1)return!1;o=o.parentName?r.Serializer.findClass(o.parentName):null}return 0==t.length},t.prototype.onPanelAdded=function(){this.setItemToPanel(new u,this.panel.panels[this.panel.panels.length-1])},t.prototype.onPanelValueChanged=function(e,t){"questionName"==t&&(this.rebuildQuestionValue(e),this.isSettingPanelValues||(e.getQuestionByName("operator").value="equal")),"operator"==t&&this.rebuildQuestionValueOnOperandChanging(e),this.updateOperatorEnables(e),this.updateQuestionsWidth(e)},t.prototype.onUpdateQuestionCssClasses=function(e){e.cssClasses.answered="svc-logic-question--answered","conjunction"===e.question.name&&(e.cssClasses.control="svc-logic-operator svc-logic-operator--conjunction ",e.cssClasses.questionWrapper="svc-question-wrapper"),"questionName"===e.question.name&&(e.cssClasses.control="svc-logic-operator svc-logic-operator--question",e.cssClasses.questionWrapper="svc-question-wrapper"),"operator"===e.question.name&&(e.cssClasses.control="svc-logic-operator svc-logic-operator--operator",e.cssClasses.questionWrapper="svc-question-wrapper"),e.cssClasses.mainRoot="sd-question sd-row__question","questionValue"===e.question.name&&(e.cssClasses.mainRoot+=" svc-logic-question-value"),"panel"===e.question.name&&(e.cssClasses.root+=" svc-logic-paneldynamic",e.cssClasses.buttonAdd="svc-logic-operator svc-logic-operator--operator sd-paneldynamic__add-btn",e.cssClasses.iconRemove="svc-icon-remove",e.cssClasses.buttonRemove="svc-logic-paneldynamic__button",e.cssClasses.buttonRemoveText="svc-logic-paneldynamic__button-remove-text")},t.prototype.onValueChanged=function(e){if("panel"===e.question.name&&e.value.length>0){var t=this.options.maxLogicItemsInCondition>0?this.options.maxLogicItemsInCondition:100;e.question.maxPanelCount=1!==e.value.length||e.value[0].questionName?t:1}this.setTitle()},t.prototype.setTitle=function(){var e=this.text;this.title=this.options.onConditionGetTitleCallback(e,e||a.editorLocalization.getString("pe.ruleIsNotSet"))},t.prototype.showTextEditor=function(e){this.panel.visible=!1,this.textEditor.value=e,this.textEditor.visible=!0},t.prototype.showBuilder=function(e){(this.isModal||this.getCanShowBuilder(e))&&(this.textEditor.visible=!1,this.processText(e),this.panel.visible=!0)},t.prototype.getCanShowBuilder=function(e){return t.canBuildExpression(e)},t}(l.PropertyEditorSetupValue)},"./src/property-grid/condition.ts":
460
+ /*! exports provided: ConditionEditorItem, SurveyConditionEditorItem, ConditionEditorItemsBuilder, ConditionEditor */function(e,t,i){"use strict";i.r(t),i.d(t,"ConditionEditorItem",(function(){return d})),i.d(t,"SurveyConditionEditorItem",(function(){return p})),i.d(t,"ConditionEditorItemsBuilder",(function(){return m})),i.d(t,"ConditionEditor",(function(){return g}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../settings */"./src/settings.ts"),a=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),s=i(/*! ../survey-helper */"./src/survey-helper.ts"),l=i(/*! ./index */"./src/property-grid/index.ts"),u=i(/*! ../utils/utils */"./src/utils/utils.ts"),c=i(/*! ../components/tabs/logic-theme */"./src/components/tabs/logic-theme.ts"),d=function(){this.conjunction="and",this.operator="equal"},p=function(e){function t(t){var i=e.call(this)||this;return i.survey=t,i}return Object(o.__extends)(t,e),t.prototype.getOperatorText=function(){var e=this.operator;return"equal"==e?"=":"notequal"==e?"<>":"greater"==e?">":"less"==e?"<":"greaterorequal"==e?">=":"lessorequal"==e?"<=":e},t.prototype.getValueText=function(){var e=this.value;if(!e)return e;if(!Array.isArray(e))return this.valToText(e);for(var t="[",i=0;i<e.length;i++)t+=this.valToText(e[i]),i<e.length-1&&(t+=", ");return t+="]"},Object.defineProperty(t.prototype,"isValueRequired",{get:function(){return"empty"!==this.operator&&"notempty"!==this.operator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReady",{get:function(){return!(!this.questionName||this.isValueRequired&&r.Helpers.isValueEmpty(this.value))},enumerable:!1,configurable:!0}),t.prototype.toExpression=function(){var e="{"+this.getQuestionValueByName()+"} "+this.getOperatorText();return this.isValueRequired&&(e+=" "+this.getValueText()),e},t.prototype.getQuestionValueByName=function(){var e=this.survey.getQuestionByName(this.questionName);return e&&e.name!=e.getValueName()&&this.questionName!=e.getValueName()?this.questionName.replace(e.name,e.getValueName()):this.questionName},t.prototype.valToText=function(e){return"true"==e||"false"==e||this.isNumeric(e)?e:"["==e[0]?e.replace(/(?!^)(['])(?!$)/g,"\\$1"):(this.isQuote(e[0])||(e="'"+e),this.isQuote(e[e.length-1])||(e+="'"),e.replace(/(?!^)(['"])(?!$)/g,"\\$1"))},t.prototype.isNumeric=function(e){return!("string"==typeof e&&e.length>1&&"0"===e[0]&&"x"!==e[1]||isNaN(e))},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t}(d),m=function(){function e(e){void 0===e&&(e=null),this.hasValue=e}return e.prototype.build=function(e){return e&&(t=(new r.ConditionsParser).parseExpression(e))?this.buildEditorItems(t):[];var t},e.prototype.buildEditorItems=function(e){var t=[];return this.buildEditorItemsCore(e,t,"")||(t=[]),t},e.prototype.buildEditorItemsCore=function(e,t,i){if("unary"==e.getType())return this.buildEditorItemsAddUnaryOperand(e,t);if("binary"!==e.getType())return!1;var o=e;return!(o.isArithmetic&&!o.isConjunction)&&(o.isConjunction?this.buildEditorItemsAddConjunction(o,t,i):this.buildEditorItemsAddBinaryOperand(o,t))},e.prototype.buildEditorItemsAddConjunction=function(e,t,i){var o=e.conjunction;if("or"==o&&i&&i!=o)return!1;if(!this.buildEditorItemsCore(e.leftOperand,t,o))return!1;var r=t.length;return!!this.buildEditorItemsCore(e.rightOperand,t,o)&&(t[r].conjunction=e.conjunction,!0)},e.prototype.buildEditorItemsAddBinaryOperand=function(e,t){var i=this.getOperandByType(e,"variable"),o=this.getArrayValueFromOperand(e),r=o?null:this.getOperandByType(e,"const");if(!i||!r&&!o&&this.canShowValueByOperator(e.operator))return!1;if(!this.isVariableInSurvey(i.variable))return!1;var n=new d;return n.questionName=i.variable,n.operator=e.leftOperand!==i?this.getOppositeOperator(e.operator):e.operator,o&&(n.value=o),r&&(n.value=r.correctValue),t.push(n),!0},e.prototype.isVariableInSurvey=function(e){return!this.hasValue||this.hasValue(e)},e.prototype.getArrayValueFromOperand=function(e){var t=this.getOperandByType(e,"array");if(!t||!t.values)return null;var i=t.values;if(!Array.isArray(i)||0==i.length)return null;for(var o=[],r=0;r<i.length;r++){var n=i[r];if(n){if("const"!=n.getType())return null;o.push(n.correctValue)}}return 0==o.length?null:o},e.prototype.buildEditorItemsAddUnaryOperand=function(e,t){var i=e.operator;if("empty"!==i&&"notempty"!=i)return!1;var o=e.expression;if(null==o||"variable"!=o.getType())return!1;var r=o.variable;if(!this.isVariableInSurvey(r))return!1;var n=new d;return n.questionName=r,n.operator=i,t.push(n),!0},e.prototype.getOppositeOperator=function(e){return"less"==e?"greater":"greater"==e?"less":"lessorequal"==e?"greaterorequal":"greaterorequal"==e?"lessorequal":e},e.prototype.getOperandByType=function(e,t){return e.rightOperand?e.leftOperand.getType()!==t&&e.rightOperand.getType()!==t||e.leftOperand.getType()==t&&e.rightOperand.getType()==t?null:e.leftOperand.getType()==t?e.leftOperand:e.rightOperand:null},e.prototype.canShowValueByOperator=function(e){return"empty"!=e&&"notempty"!=e},e}();r.FunctionFactory.Instance.register("questionValueVisibleIf",(function(e){return 2===e.length&&!(!e[0]||!e[1])&&"empty"!==e[1]&&"notempty"!==e[1]}));var g=function(e){function t(t,i,o,r){void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r="");var n=e.call(this,o)||this;return n.propertyName=r,n.addConditionQuestionsHash={},n.isModalValue=!0,n.isSettingPanelValues=!1,n.calculatedValueQuestion=null,n.surveyValue=t,n.objectValue=i,n.panelValue=n.editSurvey.getQuestionByName("panel"),n.textEditorValue=n.editSurvey.getQuestionByName("textEditor"),n.options.maxLogicItemsInCondition&&(n.panel.maxPanelCount=n.options.maxLogicItemsInCondition),n.allConditionQuestions=n.createAllConditionQuestions(),n.editSurvey.onValueChanged.add((function(e,t){n.onValueChanged(t)})),n.editSurvey.onDynamicPanelAdded.add((function(e,t){n.onPanelAdded()})),n.editSurvey.onDynamicPanelRemoved.add((function(e,t){0==t.question.panelCount&&t.question.addPanel(),n.panel.panelCount>0&&(n.panel.panels[0].getQuestionByName("questionName").titleLocation="left")})),n.editSurvey.onDynamicPanelItemValueChanged.add((function(e,t){n.onPanelValueChanged(t.panel,t.name)})),n.editSurvey.css=c.logicCss,n.editSurvey.onUpdateQuestionCssClasses.add((function(e,t){n.onUpdateQuestionCssClasses(t)})),n.text=n.object&&n.propertyName?n.object[n.propertyName]:"",n}return Object(o.__extends)(t,e),t.canParseExpression=function(e){return!e||!!(new r.ConditionsParser).parseExpression(e)},t.canBuildExpression=function(e){return!e||!!t.canParseExpression(e)&&(new m).build(e).length>0},Object.defineProperty(t.prototype,"title",{get:function(){return this.panel.title},set:function(e){this.panel.title=e,this.textEditor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.isModalValue},set:function(e){e!==this.isModalValue&&(this.isModalValue=e)},enumerable:!1,configurable:!0}),t.prototype.getSurveyJSON=function(){return{elements:[{type:"paneldynamic",titleLocation:"hidden",name:"panel",panelRemoveButtonLocation:"right",panelAddText:a.editorLocalization.getString("pe.addCondition"),minPanelCount:1,maxPanelCount:1,startWithNewLine:!1,templateElements:[{name:"conjunction",type:"dropdown",titleLocation:"hidden",showOptionsCaption:!1,visibleIf:"{panelIndex} > 0",choices:[{value:"and",text:a.editorLocalization.getString("pe.and")},{value:"or",text:a.editorLocalization.getString("pe.or")}]},{name:"questionName",type:"dropdown",title:a.editorLocalization.getString("pe.if"),titleLocation:"left",startWithNewLine:!1,isRequired:!0},{name:"operator",type:"dropdown",titleLocation:"hidden",startWithNewLine:!1,showOptionsCaption:!1,isRequired:!0,enableIf:"{panel.questionName} notempty"},{name:"questionValue",type:"text",visible:!1}]},{type:"comment",titleLocation:"hidden",name:"textEditor",textUpdateMode:"onTyping",visible:!1}]}},t.prototype.getSurveyCreationReason=function(){return"condition-builder"},Object.defineProperty(t.prototype,"text",{get:function(){return this.getText()},set:function(e){this.isModal||t.canBuildExpression(e)?(this.textEditor.value=e,this.showBuilder(e)):(this.panel.panelCount=0,this.showTextEditor(e))},enumerable:!1,configurable:!0}),t.prototype.isModified=function(e){if(this.textEditor.visible)return e!=this.text;var t=this.getEditorItems(),i=e?(new r.ConditionsParser).parseExpression(e):null;if(!i)return!(1==t.length&&!t[0].questionName);if(!this.isReady)return!0;var o=(new r.ConditionsParser).parseExpression(this.text);return!i.isEqual(o)},t.prototype.processText=function(e){this.panel.panelCount=0;var t=(new m).build(e);this.buildPanels(t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"object",{get:function(){return this.objectValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textEditor",{get:function(){return this.textEditorValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReady",{get:function(){if(this.textEditor.visible)return t.canParseExpression(this.textEditor.value);for(var e=0;e<this.panel.panels.length;e++)if(!this.createEditorItemFromPanel(this.panel.panels[e]).isReady)return!1;return!0},enumerable:!1,configurable:!0}),t.prototype.apply=function(){return!!this.isReady&&(this.object&&this.propertyName?(this.object[this.propertyName]=this.text,!0):void 0)},t.prototype.setIsFastEntry=function(e){e?this.showTextEditor(this.text):this.panel.visible||this.showBuilder(this.text)},t.prototype.buildPanels=function(e){this.panel.panelCount=e.length;for(var t=0;t<e.length;t++)this.setItemToPanel(e[t],this.panel.panels[t]);0==this.panel.panelCount&&this.panel.addPanel()},t.prototype.setItemToPanel=function(e,t){this.isSettingPanelValues=!0,t.getQuestionByName("conjunction").value=e.conjunction,t.getQuestionByName("operator").choices=this.getOperators(),t.getQuestionByName("operator").value=e.operator,t.getQuestionByName("questionName").choices=this.allConditionQuestions,t.getQuestionByName("questionName").titleLocation=0==this.panel.panels.indexOf(t)?"left":"hidden",this.getConditionQuestion(e.questionName)&&(t.getQuestionByName("questionName").value=e.questionName),t.getQuestionByName("questionValue")&&(t.getQuestionByName("questionValue").value=e.value),this.isSettingPanelValues=!1},t.prototype.getText=function(){if(this.textEditor.visible)return this.textEditor.value;for(var e="",t=this.getEditorItems(),i=0;i<t.length;i++){if(!t[i].isReady)return"";e&&(e+=" "+t[i].conjunction+" "),e+=t[i].toExpression()}return e},t.prototype.getEditorItems=function(){for(var e=[],t=0;t<this.panel.panels.length;t++)e.push(this.createEditorItemFromPanel(this.panel.panels[t]));return e},t.prototype.createEditorItemFromPanel=function(e){var t=new p(this.survey);return t.conjunction=e.getQuestionByName("conjunction").value,t.questionName=e.getQuestionByName("questionName").value,t.operator=e.getQuestionByName("operator").value,e.getQuestionByName("questionValue")&&(t.value=e.getQuestionByName("questionValue").value),t},t.prototype.createAllConditionQuestions=function(){if(!this.survey)return[];var e=[],t=this.survey.getAllQuestions();if(t.length>0){for(var i=0;i<t.length;i++)this.object!=t[i]&&t[i].addConditionObjectsByContext(e,this.object);for(this.options.onConditionQuestionsGetListCallback(this.propertyName,this.object,this,e),i=0;i<e.length;i++){e[i].value=e[i].name;var o=e[i].question?e[i].question:e[i];if(!this.options.showTitlesInExpressions){var r=e[i].name,n=o.valueName;n&&0==r.indexOf(n)&&(r=r.replace(n,o.name)),e[i].text=this.options.getObjectDisplayName(o,"condition",r)}this.addConditionQuestionsHash[e[i].name]=o}}return this.addValuesIntoConditionQuestions(this.survey.calculatedValues,e),this.addValuesIntoConditionQuestions(this.survey.getVariableNames(),e),s.SurveyHelper.sortItems(e),e},t.prototype.addValuesIntoConditionQuestions=function(e,t){for(var i=0;i<e.length;i++){var o=e[i].name?e[i].name:e[i];this.addConditionQuestionsHash[o]=this.getCalculatedValueQuestion(),t.push({value:o,text:o,question:this.getCalculatedValueQuestion()})}},t.prototype.getCalculatedValueQuestion=function(){return this.calculatedValueQuestion||(this.calculatedValueQuestion=r.Serializer.createClass("text"),this.calculatedValueQuestion.name="question"),this.calculatedValueQuestion},t.prototype.getOperators=function(){var e=[],t=n.settings.operators;for(var i in t)e.push(new r.ItemValue(i,a.editorLocalization.getString("op."+i)));return e},t.prototype.rebuildQuestionValue=function(e){e.getQuestionByName("questionValue")&&e.getQuestionByName("questionValue").clearValue();var t=this.getQuestionConditionJson(e.getQuestionByName("questionName").value,e.getQuestionByName("operator").value);t||(t={type:"text"}),t.isRequired=!0,s.SurveyHelper.updateQuestionJson(t),t.enableIf="{panel.questionName} notempty and {panel.operator} != 'empty' and {panel.operator} != 'notempty'";var i=r.Serializer.createClass(t.type);delete t.type,(new r.JsonObject).toObject(t,i),i||(i=r.Serializer.createClass("text",t));var o=e.getQuestionByName("questionValue");o&&e.removeElement(o),this.canShowQuestionValue(e)&&(i.name="questionValue",i.visibleIf="questionValueVisibleIf({panel.questionName}, {panel.operator})",i.title=a.editorLocalization.getString("pe.conditionValueQuestionTitle"),i.description="",i.titleLocation="default",i.hasComment=!1,e.addElement(i))},t.prototype.rebuildQuestionValueOnOperandChanging=function(e){var t=this.getQuestionConditionJson(e.getQuestionByName("questionName").value,e.getQuestionByName("operator").value),i=e.getQuestionByName("questionValue");!i||!i.isReadOnly&&i.isVisible||i.clearValue(),!i||t&&t.type==i.getType()||this.rebuildQuestionValue(e)},t.prototype.canShowQuestionValue=function(e){var t=e.getQuestionByName("operator");if(!t)return!1;this.updateOperatorEnables(e);for(var i=t.choices,o=0;o<i.length;o++)if(i[o].isEnabled){var r=i[o].value;if("empty"!==r&&"notempty"!=r)return!0}return!1},t.prototype.getConditionQuestion=function(e){return this.addConditionQuestionsHash[e]},t.prototype.getQuestionConditionJson=function(e,t){var i="",o=this.getConditionQuestion(e);if(!o)return null;0==e.indexOf(o.getValueName())&&(i=e.substr(o.getValueName().length)),0==e.indexOf("row.")&&(i=e.substr("row.".length)),i||(i=e),i&&"."==i[0]&&(i=i.substr(1));var r=o&&o.getConditionJson?o.getConditionJson(t,i):null;return r&&"radiogroup"==r.type&&(r.type="dropdown"),r&&"expression"==r.type&&(r.type="text"),r&&"anyof"==t&&(this.isClassContains(r.type,["checkbox"],[])||(r.type="checkbox")),r||null},t.prototype.updateOperatorEnables=function(e){var t=e.getQuestionByName("questionName");if(t){var i=this.getQuestionConditionJson(t.value,"equal"),o=i?i.type:null,r=e.getQuestionByName("operator");if(r){for(var a=r.choices,s=!0,l=r.value,u=0;u<a.length;u++)a[u].setIsEnabled(this.isOperatorEnabled(o,n.settings.operators[a[u].value])),a[u].value==l&&(s=a[u].isEnabled);s||(r.value=this.getFirstEnabledOperator(a))}}},t.prototype.updateQuestionsWidth=function(e){var t=e.getQuestionByName("questionValue"),i=e.getQuestionByName("conjunction"),o=e.getQuestionByName("questionName"),r=e.getQuestionByName("operator"),n=!!t&&!t.startWithNewLine,a=!i||!i.isVisible;a||(i.minWidth="50px",i.width="15%",i.paddingRight="20px"),o.minWidth="50px",o.width=a?"40%":"25%",o.paddingRight="20px",r.minWidth="50px",r.width=n?"25%":"60%",r.paddingRight="20px",t&&(t.minWidth="50px",t.width=n?"35%":"",t.paddingRight="20px")},t.prototype.getFirstEnabledOperator=function(e){for(var t=0;t<e.length;t++)if(e[t].isEnabled)return e[t].value;return"equal"},t.prototype.isOperatorEnabled=function(e,t){if(!e)return!0;if(!t||0==t.length)return!0;for(var i=[],o=[],r=0;r<t.length;r++){var n=t[r];"!"==n[0]?o.push(n.substr(1)):i.push(n)}return this.isClassContains(e,i,o)},t.prototype.isClassContains=function(e,t,i){for(var o=r.Serializer.findClass(e);o;){if(t.indexOf(o.name)>-1)return!0;if(i.indexOf(o.name)>-1)return!1;o=o.parentName?r.Serializer.findClass(o.parentName):null}return 0==t.length},t.prototype.onPanelAdded=function(){this.setItemToPanel(new d,this.panel.panels[this.panel.panels.length-1])},t.prototype.onPanelValueChanged=function(e,t){"questionName"==t&&(this.rebuildQuestionValue(e),this.isSettingPanelValues||(e.getQuestionByName("operator").value="equal")),"operator"==t&&this.rebuildQuestionValueOnOperandChanging(e),this.updateOperatorEnables(e),this.updateQuestionsWidth(e)},t.prototype.onUpdateQuestionCssClasses=function(e){e.cssClasses.answered="svc-logic-question--answered","conjunction"===e.question.name&&(e.cssClasses.control+="svc-logic-operator svc-logic-operator--conjunction ",e.cssClasses.questionWrapper="svc-question-wrapper"),"questionName"===e.question.name&&(e.cssClasses.control="svc-logic-operator svc-logic-operator--question",e.cssClasses.questionWrapper="svc-question-wrapper"),"operator"===e.question.name&&(e.cssClasses.control="svc-logic-operator svc-logic-operator--operator",e.cssClasses.questionWrapper="svc-question-wrapper"),"questionValue"===e.question.name&&(Object(u.assignDefaultV2Classes)(e.cssClasses,e.question.getType()),e.cssClasses.mainRoot+=" svc-logic-question-value"),"panel"===e.question.name&&(e.cssClasses.root+=" svc-logic-paneldynamic",e.cssClasses.buttonAdd+=" svc-logic-operator--operator",e.cssClasses.iconRemove="svc-icon-remove",e.cssClasses.buttonRemove="svc-logic-paneldynamic__button svc-logic-paneldynamic__remove-btn",e.cssClasses.buttonRemoveRight="svc-logic-paneldynamic__remove-btn--right",e.cssClasses.buttonRemoveText="svc-logic-paneldynamic__button-remove-text")},t.prototype.onValueChanged=function(e){if("panel"===e.question.name&&e.value.length>0){var t=this.options.maxLogicItemsInCondition>0?this.options.maxLogicItemsInCondition:100;e.question.maxPanelCount=1!==e.value.length||e.value[0].questionName?t:1}this.setTitle()},t.prototype.setTitle=function(){var e=this.text;this.title=this.options.onConditionGetTitleCallback(e,e||a.editorLocalization.getString("pe.ruleIsNotSet"))},t.prototype.showTextEditor=function(e){this.panel.visible=!1,this.textEditor.value=e,this.textEditor.visible=!0},t.prototype.showBuilder=function(e){(this.isModal||this.getCanShowBuilder(e))&&(this.textEditor.visible=!1,this.processText(e),this.panel.visible=!0)},t.prototype.getCanShowBuilder=function(e){return t.canBuildExpression(e)},t}(l.PropertyEditorSetupValue)},"./src/property-grid/condition.ts":
441
461
  /*!****************************************!*\
442
462
  !*** ./src/property-grid/condition.ts ***!
443
463
  \****************************************/
@@ -449,11 +469,11 @@ License: MIT
449
469
  /*!************************************!*\
450
470
  !*** ./src/property-grid/index.ts ***!
451
471
  \************************************/
452
- /*! exports provided: setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorNumber, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue */function(e,t,i){"use strict";i.r(t),i.d(t,"setSurveyJSONForPropertyGrid",(function(){return m})),i.d(t,"PropertyEditorSetupValue",(function(){return g})),i.d(t,"PropertyGridEditorCollection",(function(){return h})),i.d(t,"PropertyGridTitleActionsCreator",(function(){return v})),i.d(t,"PropertyJSONGenerator",(function(){return y})),i.d(t,"PropertyGridModel",(function(){return f})),i.d(t,"PropertyGridEditor",(function(){return b})),i.d(t,"PropertyGridEditorBoolean",(function(){return x})),i.d(t,"PropertyGridEditorStringBase",(function(){return w})),i.d(t,"PropertyGridEditorString",(function(){return T})),i.d(t,"PropertyGridEditorNumber",(function(){return k})),i.d(t,"PropertyGridEditorText",(function(){return S})),i.d(t,"PropertyGridEditorHtml",(function(){return P})),i.d(t,"PropertyGridEditorColor",(function(){return E})),i.d(t,"PropertyGridEditorStringArray",(function(){return C})),i.d(t,"PropertyGridEditorDropdown",(function(){return N})),i.d(t,"PropertyGridEditorSet",(function(){return _})),i.d(t,"PropertyGridEditorPage",(function(){return O})),i.d(t,"PropertyGridEditorQuestion",(function(){return V})),i.d(t,"PropertyGridEditorQuestionSelectBase",(function(){return A})),i.d(t,"PropertyGridEditorQuestionValue",(function(){return j}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ../editable-object */"./src/editable-object.ts"),s=i(/*! ../property-grid-theme/property-grid */"./src/property-grid-theme/property-grid.ts"),l=i(/*! ../question-editor/properties */"./src/question-editor/properties.ts"),u=i(/*! ../settings */"./src/settings.ts"),c=i(/*! ./properties-helptext */"./src/property-grid/properties-helptext.ts"),d=i(/*! ../utils/actions */"./src/utils/actions.ts"),p=i(/*! ../survey-helper */"./src/survey-helper.ts");function m(e,t,i){void 0===t&&(t=!0),void 0===i&&(i=!0),e.showNavigationButtons="none",e.showPageTitles=!1,e.focusFirstQuestionAutomatic=!1,e.showQuestionNumbers="off",i&&(e.questionTitleLocation="left"),e.showProgressBar="off",t&&(e.textUpdateMode="onTyping"),e.requiredText=""}r.FunctionFactory.Instance.register("propertyVisibleIf",(function(e){return!!(this.question&&this.question.obj&&this.question.property)&&this.question.property.visibleIf(this.question.obj)}));var g=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=!0),this.options=e,this.options||(this.options=new u.EmptySurveyCreatorOptions),t&&this.setupSurvey()}return e.prototype.setupSurvey=function(){this.editSurveyValue=this.createSurvey()},Object.defineProperty(e.prototype,"editSurvey",{get:function(){return this.editSurveyValue},enumerable:!1,configurable:!0}),e.prototype.hasErrors=function(){return this.editSurvey.hasErrors(!0,!0)},e.prototype.createSurvey=function(){var e=this.getSurveyJSON();return m(e,!0,!1),this.options.createSurvey(e,this.getSurveyCreationReason())},e.prototype.dispose=function(){this.editSurvey&&this.editSurvey.dispose()},e}(),h={editors:new Array,fitHash:{},clearHash:function(){this.fitHash={}},register:function(e){this.editors.push(e)},getEditor:function(e,t){if(!e)return null;if(t)for(var i=this.editors.length-1;i>=0;i--){var o=this.editors[i];if(o.fit(e,t))return o}var r=this.fitHash[e.id];if(r)return r;var n=this.isEditorFit(e);return n||this.isEditorFit(e,!0)},isEditorFit:function(e,t){void 0===t&&(t=!1);for(var i=this.editors.length-1;i>=0;i--){var o=this.editors[i];if(!t&&o.fit(e)||t&&o.isDefault&&o.isDefault())return this.fitHash[e.id]=o,o}return null},getJSON:function(e,t,i,o){var r=this.getEditor(t,o);return r?r.getJSON(e,t,i):null},onCreated:function(e,t,i,o){var r=this.getEditor(i);r&&r.onCreated&&r.onCreated(e,t,i,o)},onAfterRenderQuestion:function(e,t,i){var o=this.getEditor(t);o&&o.onAfterRenderQuestion&&o.onAfterRenderQuestion(e,t,i)},onMatrixCellCreated:function(e,t,i){var o=this.getEditor(t);o&&o.onMatrixCellCreated&&o.onMatrixCellCreated(i.question.obj,i)},onMatrixCellValueChanged:function(e,t,i){var o=this.getEditor(t);o&&o.onMatrixCellValueChanged&&o.onMatrixCellValueChanged(e,i);var r=i.row;if(r){var n=r.getQuestionByName(i.columnName);n&&r.runCondition({},{question:n})}},onMatrixAllowRemoveRow:function(e,t,i){var o=this.getEditor(t);return!o||!o.onMatrixAllowRemoveRow||o.onMatrixAllowRemoveRow(e,i)},onGetMatrixRowAction:function(e,t,i,o){var r=this.getEditor(t);r&&r.onGetMatrixRowAction&&r.onGetMatrixRowAction(e,i,o)},onGetQuestionTitleActions:function(e,t,i){var o=this.getEditor(t);o&&o.onGetQuestionTitleActions&&o.onGetQuestionTitleActions(e,i)},onValueChanged:function(e,t,i){var o=this.getEditor(t);o&&o.onValueChanged&&o.onValueChanged(e,t,i)},onMasterValueChanged:function(e,t,i){var o=this.getEditor(t);o&&o.onMasterValueChanged&&o.onMasterValueChanged(e,t,i)}},v=function(){function e(e,t){this.obj=e,this.options=t}return e.prototype.onGetQuestionTitleActions=function(e){var t=e.question,i=t.property,o=h.getEditor(i);if(o){var r=[],n=!t.isReadOnly;!!o.clearPropertyValue&&(!o.canClearPropertyValue||o.canClearPropertyValue(this.obj,i,t,this.options))&&r.push(this.createClearValueAction(o,i,t,n)),o.createPropertyEditorSetup&&(n&&(n=!o.isPropertyEditorSetupEnabled||o.isPropertyEditorSetupEnabled(this.obj,i,e.question,this.options)),r.push(this.createEditorSetupAction(o,i,t,n)));var a=this.createPropertyHelpAction(t);a&&r.push(a),r.length>0&&(e.titleActions=r)}},e.prototype.createClearValueAction=function(e,t,i,o){var r=this;return{id:"property-grid-clear",icon:"icon-property_grid_clear",title:Object(n.getLocString)("pe.clear"),showTitle:!1,iconName:"icon-property_grid_clear",enabled:o,action:function(){e.clearPropertyValue(i.obj,t,i,r.options)}}},e.prototype.showModalPropertyEditor=function(e,t,i){return e.showModalPropertyEditor(e,t,i,this.options)},e.prototype.createEditorSetupAction=function(e,t,i,o){var r=this;return{id:"property-grid-setup",css:"sv-action--first sv-action-bar-item--secondary",icon:"icon-property_grid_modal",iconName:"icon-property_grid_modal",enabled:o,title:Object(n.getLocString)("pe.edit"),showTitle:!1,action:function(){return r.showModalPropertyEditor(e,t,i)}}},e.prototype.createPropertyHelpAction=function(e){var t=this;if(!e.description)return null;var i=new r.Action({title:"",id:"property-grid-help",iconName:this.getHelpActionIconName(e),showTitle:!1,action:function(){e.descriptionLocation="hidden"!=e.descriptionLocation?"hidden":"underTitle",i.iconName=t.getHelpActionIconName(e)}});return i},e.prototype.getHelpActionIconName=function(e){return"hidden"!=e.descriptionLocation?"icon-helpfinish":"icon-help"},e}(),y=function(){function e(e,t,i,o){void 0===t&&(t=null),void 0===i&&(i=null),void 0===o&&(o=null),this.obj=e,this.options=t,this.parentObj=i,this.parentProperty=o}return e.isPropertyReadOnly=function(e,t,i,o,r){var n=e.readOnly;return t&&i&&(n=t.onIsPropertyReadOnlyCallback(i,e,n,o,r)),n},e.getClassNameProperty=function(e){if(e&&e.getClassNameProperty)return e.getClassNameProperty()},e.prototype.toJSON=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=void 0),this.createJSON(e,t)},e.prototype.createColumnsJSON=function(e,t){for(var i=[],o=0;o<t.length;o++){var r=this.getColumnPropertyJSON(e,t[o]);r&&i.push(r)}return i},e.prototype.setupObjPanel=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=void 0),e.fromJSON(this.toJSON(t,i)),this.onQuestionsCreated(e)},e.prototype.onQuestionsCreated=function(e){for(var t=r.Serializer.getPropertiesByObj(this.obj),i={},o=0;o<t.length;o++)i[t[o].name]=t[o];var n=e.questions;for(o=0;o<n.length;o++){var a=n[o],s=i[a.name];a.property=s,a.obj=this.obj,a.options=this.options;var l=this.getVisibilityOnEvent(s);a.readOnly=a.readOnly||this.isPropertyReadOnly(s),a.visible=a.visible&&l,s.visibleIf&&(a.visibleIf=l?"propertyVisibleIf() = true":""),a.descriptionLocation="hidden";var u=c.PropertiesHelpTexts.instance.getHelpText(this.obj,s);u&&(a.description=u),h.onCreated(this.obj,a,s,this.options),this.options.onPropertyEditorCreatedCallback(this.obj,s,a)}},e.prototype.getVisibilityOnEvent=function(e,t){return void 0===t&&(t=""),this.options.onCanShowPropertyCallback(this.obj,e,t,this.parentObj,this.parentProperty)},e.prototype.isPropertyReadOnly=function(t){return e.isPropertyReadOnly(t,this.options,this.obj,this.parentObj,this.parentProperty)},e.prototype.getClasPropName=function(){if(this.parentObj&&this.parentProperty)return this.parentProperty.name;var t=e.getClassNameProperty(this.obj);return t&&this.obj[t]?this.obj[t]:void 0},e.prototype.createJSON=function(e,t){void 0===t&&(t=void 0);var i=void 0,o=this.getClasPropName();o&&("itemvalue"===(i=this.obj.getType())&&(i+="[]"),i+="@"+o);for(var r=new l.SurveyQuestionProperties(this.obj,null,i,void 0,this.parentObj,this.parentProperty).getTabs(),n={},a=0;a<r.length;a++)!1!==r[a].visible&&(n[r[a].name]=this.createPanelProps(r[a],0==a,t));var s={elements:[]};for(var c in n)if(c==u.settings.propertyGrid.generalTabName&&e){var d=n[c].elements;for(a=0;a<d.length;a++)s.elements.push(d[a])}else s.elements.push(n[c]);return s},e.prototype.createPanelProps=function(e,t,i){for(var o=this.createPanelJSON(e.name,e.title,t),r=0;r<e.properties.length;r++){var n=e.properties[r],a=this.createQuestionJSON(n.property,n.title,!1,i);a&&o.elements.push(a)}return o},e.prototype.createPanelJSON=function(e,t,i){return{type:"panel",name:e,title:this.getPanelTitle(e,t),state:i?"expanded":"collapsed",elements:[]}},e.prototype.createQuestionJSON=function(e,t,i,o){if(void 0===i&&(i=!1),!this.isPropertyVisible(e,i?"list":"")&&i)return null;var r=h.getJSON(this.obj,e,this.options,o);return r?(r.name=e.name,r.visible=e.visible,r.isReadOnly=e.readOnly,r.isRequired=e.isRequired,r.requiredErrorText=n.editorLocalization.getString("pe.propertyIsEmpty"),r.title=this.getQuestionTitle(e,t),r):null},e.prototype.getColumnPropertyJSON=function(e,t){if(!e)return null;var i=r.Serializer.findProperty(e,t);if(!i)return null;var o=this.createQuestionJSON(i,"",!0,void 0);return o?(o.name=i.name,o.title=this.getQuestionTitle(i,""),i.isUnique&&(o.isUnique=i.isUnique),o.type&&(o.cellType=o.type,delete o.type),"buttongroup"===o.cellType&&(o.cellType="dropdown"),i.visibleIf&&(o.visibleIf="propertyVisibleIf() = true"),o.isReadOnly&&(o.readOnly=o.isReadOnly,delete o.isReadOnly),o):null},e.prototype.isPropertyVisible=function(e,t){return!(!e.visible||t&&e.showMode&&t!=e.showMode)},e.prototype.getPanelTitle=function(e,t){return t||n.editorLocalization.getString("pe.tabs."+e)},e.prototype.getQuestionTitle=function(e,t){return e.displayName?e.displayName:t&&t!==e.name?t:n.editorLocalization.getPropertyNameInEditor(e.name)},e}(),f=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=new u.EmptySurveyCreatorOptions),this.isCellCreating=!1,this.options=t,this.obj=e}return e.prototype.refresh=function(){this.setObj(this.objValue)},Object.defineProperty(e.prototype,"obj",{get:function(){return this.objValue},set:function(e){this.objValue!==e&&this.setObj(e)},enumerable:!1,configurable:!0}),e.prototype.selectProperty=function(e,t){if(void 0===t&&(t=!0),this.survey){var i=this.survey.getQuestionByName(e);if(i){for(var o=this.survey.getAllPanels(),r=0;r<o.length;r++){var n=o[r];n===i.parent?n.expand():n.collapse()}t&&i.focus()}}},e.prototype.setObjFromAction=function(e,t){this.changedFromActionCallback?this.changedFromActionCallback(e,t):this.setObj(e)},e.prototype.setObj=function(e){var t=this;this.objValue=e,this.classNameProperty=this.obj?y.getClassNameProperty(this.obj):"",this.classNameValue=this.classNameProperty?this.obj[this.classNameProperty]:void 0,this.titleActionsCreator=this.obj?new v(this.obj,this.options):void 0;var i=this.getSurveyJSON();this.options.readOnly&&(i.mode="display"),this.surveyValue&&this.surveyValue.dispose(),this.surveyValue=this.createSurvey(i),this.surveyValue.css=s.propertyGridCss;var o=this.surveyValue.createNewPage("p1");this.obj&&(new y(this.obj,this.options).setupObjPanel(o,!1),this.survey.addPage(o),this.survey.checkErrorsMode="onValueChanging",this.survey.onValueChanged.add((function(e,i){t.onValueChanged(i)})),this.survey.onValueChanging.add((function(e,i){t.onValueChanging(i)})),this.survey.onValidateQuestion.add((function(e,i){t.onValidateQuestion(i)})),this.survey.onGetQuestionTitleActions.add((function(e,i){t.titleActionsCreator.onGetQuestionTitleActions(i),t.onGetQuestionTitleActions(i)})),this.survey.onGetPanelTitleActions.add((function(e,t){t.titleActions.splice(0,t.titleActions.length)})),this.survey.onMatrixCellCreated.add((function(e,i){t.onMatrixCellCreated(i)})),this.survey.onMatrixCellValueChanging.add((function(e,i){t.onMatrixCellValueChanging(i)})),this.survey.onMatrixCellValidate.add((function(e,i){t.onMatrixCellValidate(i)})),this.survey.onMatrixCellValueChanged.add((function(e,i){t.onMatrixCellValueChanged(i)})),this.survey.onMatrixAllowRemoveRow.add((function(e,i){i.allow=t.getMatrixAllowRemoveRow(i.question,i.row)})),this.survey.onMatrixRowAdded.add((function(e,i){t.onMatrixRowAdded(i)})),this.survey.onGetMatrixRowActions.add((function(e,i){t.onGetMatrixRowAction(i)})),this.survey.onAfterRenderQuestion.add((function(e,i){t.onAfterRenderQuestion(i)})),this.survey.editingObj=this.obj,this.objValueChangedCallback&&this.objValueChangedCallback(),this.survey.onFocusInPanel.add((function(e,i){t.currentlySelectedPanel!==i.panel&&(t.currentlySelectedProperty=i.panel.getFirstQuestionToFocus().name,t.currentlySelectedPanel=i.panel)})),this.survey.onFocusInQuestion.add((function(e,i){t.currentlySelectedProperty=i.question.name,t.currentlySelectedPanel=i.question.parent})))},Object.defineProperty(e.prototype,"options",{get:function(){return this.optionsValue},set:function(e){this.optionsValue=e||new u.EmptySurveyCreatorOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),e.prototype.validate=function(){if(this.survey)return!this.survey.hasErrors(!0,!0)},e.prototype.collapseCategory=function(e){var t=this.survey.getPanelByName(e);t&&t.collapse()},e.prototype.expandCategory=function(e){var t=this.survey.getPanelByName(e);t&&t.expand()},e.prototype.collapseAllCategories=function(){for(var e=this.survey.getAllPanels(),t=0;t<e.length;t++)e[t].collapse()},e.prototype.expandAllCategories=function(){for(var e=this.survey.getAllPanels(),t=0;t<e.length;t++)e[t].expand()},e.prototype.createSurvey=function(e){return this.options.createSurvey(e,"property-grid")},e.prototype.getSurveyJSON=function(){var e={};return m(e),e},e.prototype.onValidateQuestion=function(e){var t=e.question;t&&t.property&&(t.isRequired&&r.Helpers.isValueEmpty(e.value)?e.error=n.editorLocalization.getString("pe.propertyIsEmpty"):e.error=this.options.onGetErrorTextOnValidationCallback(t.property.name,this.obj,e.value))},e.prototype.onValueChanging=function(e){var t=e.question;if(t&&t.property){var i={obj:this.obj,propertyName:t.property.name,value:e.oldValue,newValue:e.value,doValidation:!1};this.options.onValueChangingCallback(i),e.value=i.newValue}},e.prototype.onValueChanged=function(e){var t=e.question;t&&t.property&&(this.changeDependedProperties(t),h.onValueChanged(this.obj,t.property,t),this.classNameProperty&&e.name===this.classNameProperty&&this.classNameValue!==e.value&&this.setObj(this.obj))},e.prototype.changeDependedProperties=function(e){var t=e.property.getDependedProperties();if(t)for(var i=0;i<t.length;i++){var o=t[i],n=this.survey.getQuestionByName(o);n&&(r.Helpers.isTwoValueEquals(n.value,this.survey.getValue(o))||(n.value=this.survey.getValue(o)),h.onMasterValueChanged(this.obj,n.property,n))}},e.prototype.onAfterRenderQuestion=function(e){h.onAfterRenderQuestion(this.obj,e.question.property,e)},e.prototype.onMatrixCellCreated=function(e){this.isCellCreating=!0,h.onMatrixCellCreated(this.obj,e.question.property,e),this.isCellCreating=!1;var t=e.row.editingObj;if(t){var i=r.Serializer.findProperty(t.getType(),e.columnName);if(i){var o=this.getMatrixAllowEditRow(e.question,e.row);e.cellQuestion.readOnly=!o||y.isPropertyReadOnly(i,this.options,t,this.obj,e.question.property)}}},e.prototype.onMatrixCellValueChanging=function(e){if(!this.isCellCreating){var t={obj:e.row.editingObj,propertyName:e.columnName,value:e.oldValue,newValue:e.value,doValidation:!1};this.options.onValueChangingCallback(t),e.value=t.newValue}},e.prototype.onMatrixCellValidate=function(e){if(!this.isCellCreating){var t=e.question.getColumnByName(e.columnName);t&&t.isRequired&&r.Helpers.isValueEmpty(e.value)?e.error=n.editorLocalization.getString("pe.propertyIsEmpty"):e.error=this.options.onGetErrorTextOnValidationCallback(e.columnName,e.row.editingObj,e.value)}},e.prototype.onGetMatrixRowAction=function(e){var t=this;h.onGetMatrixRowAction(this.obj,e.question.property,e,(function(i){t.setObjFromAction(i,e.question.name)}))},e.prototype.onGetQuestionTitleActions=function(e){h.onGetQuestionTitleActions(this.obj,e.question.property,e)},e.prototype.onMatrixCellValueChanged=function(e){this.isCellCreating||h.onMatrixCellValueChanged(this.obj,e.question.property,e)},e.prototype.getMatrixAllowRemoveRow=function(e,t){return void 0===t.allowDeleteRow&&this.calculateMatrixAllowOperations(e,t),t.allowDeleteRow},e.prototype.getMatrixAllowEditRow=function(e,t){return void 0===t.allowEditRow&&this.calculateMatrixAllowOperations(e,t),t.allowEditRow},e.prototype.calculateMatrixAllowOperations=function(e,t){var i={allowDelete:this.onMatrixAllowRemoveRow(e,t),allowEdit:!0};this.options.onCollectionItemAllowingCallback(this.obj,e.property,e.value,t.editingObj,i),t.allowDeleteRow=i.allowDelete,t.allowEditRow=i.allowEdit},e.prototype.onMatrixAllowRemoveRow=function(e,t){var i=h.onMatrixAllowRemoveRow(this.obj,e.property,t);return i=this.options.onCollectionItemDeletingCallback(this.obj,e.property,e.value,t.editingObj)&&i,this.options.onCanDeleteItemCallback(this.obj,t.editingObj,i)},e.prototype.onMatrixRowAdded=function(e){var t=e.row.editingObj;r.Serializer.isDescendantOf(t.getType(),"itemvalue")&&this.options.onItemValueAddedCallback(this.obj,e.question.property.name,e.row.editingObj,e.question.value),r.Serializer.isDescendantOf(t.getType(),"matrixdropdowncolumn")&&this.options.onMatrixDropdownColumnAddedCallback(this.obj,e.row.editingObj,e.question.value)},e}(),b=function(){function e(){}return e.prototype.showModalPropertyEditor=function(e,t,i,o){var n=e.createPropertyEditorSetup(i.obj,t,i,o);return n?(n.editSurvey.css=r.defaultV2Css,n.editSurvey.onGetMatrixRowActions.add((function(e,t){Object(d.updateMatrixRemoveAction)(t.question,t.actions,t.row)})),r.settings.showModal?(r.settings.showModal("survey",{survey:n.editSurvey,model:n.editSurvey},(function(){return n.apply()}),void 0,"sv-property-editor",i.title),n):n):null},e}(),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e,t){return"boolean"==e.type||"switch"==e.type},t.prototype.getJSON=function(e,t,i){return{type:"boolean",default:!1,renderAs:"checkbox",titleLocation:"hidden"}},t}(b),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.updateMaxLength=function(e,t){return e.maxLength>0&&(t.maxLength=e.maxLength),t},t}(b),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"string"==e.type},t.prototype.isDefault=function(){return!0},t.prototype.getJSON=function(e,t,i){var o=this.updateMaxLength(t,{type:"text"});return"name"==t.name&&(o.textUpdateMode="onBlur"),o},t}(w),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"number"==e.type},t.prototype.getJSON=function(e,t,i){var o={type:"text",inputType:"number",textUpdateMode:"onBlur"};return void 0!==t.minValue&&(o.min=t.minValue),void 0!==t.maxValue&&(o.max=t.maxValue),o},t}(b),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"text"===e.type},t.prototype.getJSON=function(e,t,i){return this.updateMaxLength(t,{type:"comment"})},t}(w),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"html"===e.type},t.prototype.getJSON=function(e,t,i){return this.updateMaxLength(t,{type:"comment"})},t}(w),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"color"==e.type},t.prototype.getJSON=function(e,t,i){return{type:"text",inputType:"color"}},t}(b),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"string[]"==e.type},t.prototype.getJSON=function(e,t,i){return{type:"comment"}},t.prototype.onCreated=function(e,t,i){t.valueFromDataCallback=function(e){return Array.isArray(e)?e.join("\n"):""},t.valueToDataCallback=function(e){return e?Array.isArray(e)&&!e.split?e:e.split("\n"):[]}},t}(b),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return this.isLocaleProp(e)||e.hasChoices},t.prototype.getJSON=function(e,t,i){var o=t.getChoices(e),r={type:this.renderAsButtonGroup(t,o)?"buttongroup":"dropdown",choices:o,showOptionsCaption:!1},n=this.getEmptyJsonItemValue(t,o);return n&&(r.showOptionsCaption=!0,r.optionsCaption=n.text),r},Object.defineProperty(t.prototype,"canRenderAsButtonGroup",{get:function(){return u.settings.propertyGrid.useButtonGroup},enumerable:!1,configurable:!0}),t.prototype.renderAsButtonGroup=function(e,t){if(this.isLocaleProp(e))return!1;if(!this.canRenderAsButtonGroup||!t||0==t.length||t.length>4)return!1;for(var i=0,o=0;o<t.length;o++){var r=this.getLocalizedText(e,t[o].value?t[o].value:t[o]);i+=r?r.length:0}return i<u.settings.propertyGrid.maxCharsInButtonGroup},t.prototype.onCreated=function(e,t,i){this.setChoices(e,t,i),t.displayValueCallback=function(e){return e||t.optionsCaption}},t.prototype.onMasterValueChanged=function(e,t,i){this.setChoices(e,i,t)},t.prototype.setChoicesCore=function(e,t,i){i&&Array.isArray(i)&&0!=i.length&&(e.choices=this.choicesFromPropChoices(t,i))},t.prototype.isLocaleProp=function(e){return"locale"===e.name},t.prototype.getLocalizedText=function(e,t){var i;return this.isLocaleProp(e)&&(i=n.editorLocalization.getLocaleName(t))||"cellType"===e.name&&(i=n.editorLocalization.getString("qt."+t))?i:null===t?null:n.editorLocalization.getPropertyValue(t)},t.prototype.choicesFromPropChoices=function(e,t){for(var i=[],o=0;o<t.length;o++){var n=this.getJsonItem(e,t[o]);r.Helpers.isValueEmpty(n.value)||i.push(n)}return i},t.prototype.getJsonItem=function(e,t){var i={value:void 0!==t.value?t.value:t},o=t.text?t.text:"";return o||(o=this.getLocalizedText(e,i.value)),o&&o!=i.value&&(i.text=o),i},t.prototype.setChoices=function(e,t,i){var o=this,r=i.getChoices(e,(function(e){o.setChoicesCore(t,i,e)}));this.setChoicesCore(t,i,r)},t.prototype.getEmptyJsonItemValue=function(e,t){if(!t)return null;for(var i=0;i<t.length;i++){var o=t[i],n=void 0!==o.value?o.value:o;if(r.Helpers.isValueEmpty(n))return this.getJsonItem(e,o)}return null},t}(b),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"set"==e.type||"multiplevalues"==e.type},t.prototype.getJSON=function(t,i,o){var n=e.prototype.getJSON.call(this,t,i,o),a=!!r.Serializer.findClass("tagbox");return n.type=a?"tagbox":"checkbox",n.hasSelectAll=!a,n},t}(N),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return e.hasChoices&&"page"==e.name},Object.defineProperty(t.prototype,"canRenderAsButtonGroup",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCreated=function(t,i,o){e.prototype.onCreated.call(this,t,i,o),i.valueFromDataCallback=function(e){return e?e.name:""},i.valueToDataCallback=function(e){if(e&&t&&t.getSurvey())return t.getSurvey().getPageByName(e)}},t}(N),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"question"==e.type},t.prototype.getJSON=function(e,t,i){return{type:"dropdown",optionsCaption:n.editorLocalization.getString("pe.conditionSelectQuestion"),choices:this.getChoices(e,t,i)}},t.prototype.getChoices=function(e,t,i){var o=this,r=a.EditableObject.getSurvey(e);if(!r)return[];var n=this.getQuestions(r,e);n||(n=[]);var s=!!i&&i.showTitlesInExpressions,l=n.map((function(e){var t=s?e.locTitle.renderedHtml:e.name;return{value:o.getItemValue(e),text:t}}));return p.SurveyHelper.sortItems(l),l},t.prototype.getQuestions=function(e,t){return e.getAllQuestions()},t.prototype.getItemValue=function(e){return e.name},t}(b),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"question_selectbase"==e.type},t.prototype.getQuestions=function(t,i){for(var o=e.prototype.getQuestions.call(this,t,i),n=[],a=0;a<o.length;a++)o[a]!==i&&r.Serializer.isDescendantOf(o[a].getType(),"selectbase")&&n.push(o[a]);return n},t}(V),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"questionvalue"==e.type},t.prototype.getItemValue=function(e){return e.getValueName()},t}(V);h.register(new x),h.register(new T),h.register(new k),h.register(new E),h.register(new S),h.register(new P),h.register(new N),h.register(new _),h.register(new O),h.register(new C),h.register(new V),h.register(new j),h.register(new A),r.QuestionFactory.Instance.registerQuestion("buttongroup",(function(e){return new r.QuestionButtonGroupModel(e)}))},"./src/property-grid/matrices.ts":
472
+ /*! exports provided: setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorNumber, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue */function(e,t,i){"use strict";i.r(t),i.d(t,"setSurveyJSONForPropertyGrid",(function(){return m})),i.d(t,"PropertyEditorSetupValue",(function(){return g})),i.d(t,"PropertyGridEditorCollection",(function(){return h})),i.d(t,"PropertyGridTitleActionsCreator",(function(){return v})),i.d(t,"PropertyJSONGenerator",(function(){return y})),i.d(t,"PropertyGridModel",(function(){return f})),i.d(t,"PropertyGridEditor",(function(){return b})),i.d(t,"PropertyGridEditorBoolean",(function(){return x})),i.d(t,"PropertyGridEditorStringBase",(function(){return w})),i.d(t,"PropertyGridEditorString",(function(){return T})),i.d(t,"PropertyGridEditorNumber",(function(){return k})),i.d(t,"PropertyGridEditorText",(function(){return S})),i.d(t,"PropertyGridEditorHtml",(function(){return P})),i.d(t,"PropertyGridEditorColor",(function(){return E})),i.d(t,"PropertyGridEditorStringArray",(function(){return C})),i.d(t,"PropertyGridEditorDropdown",(function(){return N})),i.d(t,"PropertyGridEditorSet",(function(){return O})),i.d(t,"PropertyGridEditorPage",(function(){return _})),i.d(t,"PropertyGridEditorQuestion",(function(){return A})),i.d(t,"PropertyGridEditorQuestionSelectBase",(function(){return j})),i.d(t,"PropertyGridEditorQuestionValue",(function(){return V}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ../editable-object */"./src/editable-object.ts"),s=i(/*! ../property-grid-theme/property-grid */"./src/property-grid-theme/property-grid.ts"),l=i(/*! ../question-editor/properties */"./src/question-editor/properties.ts"),u=i(/*! ../settings */"./src/settings.ts"),c=i(/*! ./properties-helptext */"./src/property-grid/properties-helptext.ts"),d=i(/*! ../utils/actions */"./src/utils/actions.ts"),p=i(/*! ../survey-helper */"./src/survey-helper.ts");function m(e,t,i){void 0===t&&(t=!0),void 0===i&&(i=!0),e.showNavigationButtons="none",e.showPageTitles=!1,e.focusFirstQuestionAutomatic=!1,e.showQuestionNumbers="off",i&&(e.questionTitleLocation="left"),e.showProgressBar="off",t&&(e.textUpdateMode="onTyping"),e.requiredText=""}r.FunctionFactory.Instance.register("propertyVisibleIf",(function(e){return!!(this.question&&this.question.obj&&this.question.property)&&this.question.property.visibleIf(this.question.obj)}));var g=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=!0),this.options=e,this.options||(this.options=new u.EmptySurveyCreatorOptions),t&&this.setupSurvey()}return e.prototype.setupSurvey=function(){this.editSurveyValue=this.createSurvey()},Object.defineProperty(e.prototype,"editSurvey",{get:function(){return this.editSurveyValue},enumerable:!1,configurable:!0}),e.prototype.hasErrors=function(){return this.editSurvey.hasErrors(!0,!0)},e.prototype.createSurvey=function(){var e=this.getSurveyJSON();return m(e,!0,!1),this.options.createSurvey(e,this.getSurveyCreationReason())},e.prototype.dispose=function(){this.editSurvey&&this.editSurvey.dispose()},e}(),h={editors:new Array,fitHash:{},clearHash:function(){this.fitHash={}},register:function(e){this.editors.push(e)},getEditor:function(e,t){if(!e)return null;if(t)for(var i=this.editors.length-1;i>=0;i--){var o=this.editors[i];if(o.fit(e,t))return o}var r=this.fitHash[e.id];if(r)return r;var n=this.isEditorFit(e);return n||this.isEditorFit(e,!0)},isEditorFit:function(e,t){void 0===t&&(t=!1);for(var i=this.editors.length-1;i>=0;i--){var o=this.editors[i];if(!t&&o.fit(e)||t&&o.isDefault&&o.isDefault())return this.fitHash[e.id]=o,o}return null},getJSON:function(e,t,i,o){var r=this.getEditor(t,o);return r?r.getJSON(e,t,i):null},onCreated:function(e,t,i,o){var r=this.getEditor(i);r&&r.onCreated&&r.onCreated(e,t,i,o)},onAfterRenderQuestion:function(e,t,i){var o=this.getEditor(t);o&&o.onAfterRenderQuestion&&o.onAfterRenderQuestion(e,t,i)},onMatrixCellCreated:function(e,t,i){var o=this.getEditor(t);o&&o.onMatrixCellCreated&&o.onMatrixCellCreated(i.question.obj,i)},onMatrixCellValueChanged:function(e,t,i){var o=this.getEditor(t);o&&o.onMatrixCellValueChanged&&o.onMatrixCellValueChanged(e,i);var r=i.row;if(r){var n=r.getQuestionByName(i.columnName);n&&r.runCondition({},{question:n})}},onMatrixAllowRemoveRow:function(e,t,i){var o=this.getEditor(t);return!o||!o.onMatrixAllowRemoveRow||o.onMatrixAllowRemoveRow(e,i)},onGetMatrixRowAction:function(e,t,i,o){var r=this.getEditor(t);r&&r.onGetMatrixRowAction&&r.onGetMatrixRowAction(e,i,o)},onGetQuestionTitleActions:function(e,t,i){var o=this.getEditor(t);o&&o.onGetQuestionTitleActions&&o.onGetQuestionTitleActions(e,i)},onValueChanged:function(e,t,i){var o=this.getEditor(t);o&&o.onValueChanged&&o.onValueChanged(e,t,i)},onMasterValueChanged:function(e,t,i){var o=this.getEditor(t);o&&o.onMasterValueChanged&&o.onMasterValueChanged(e,t,i)}},v=function(){function e(e,t){this.obj=e,this.options=t}return e.prototype.onGetQuestionTitleActions=function(e){var t=e.question,i=t.property,o=h.getEditor(i);if(o){var r=[],n=!t.isReadOnly;!!o.clearPropertyValue&&(!o.canClearPropertyValue||o.canClearPropertyValue(this.obj,i,t,this.options))&&r.push(this.createClearValueAction(o,i,t,n)),o.createPropertyEditorSetup&&(n&&(n=!o.isPropertyEditorSetupEnabled||o.isPropertyEditorSetupEnabled(this.obj,i,e.question,this.options)),r.push(this.createEditorSetupAction(o,i,t,n)));var a=this.createPropertyHelpAction(t);a&&r.push(a),r.length>0&&(e.titleActions=r)}},e.prototype.createClearValueAction=function(e,t,i,o){var a=this;return{id:"property-grid-clear",title:Object(n.getLocString)("pe.clear"),showTitle:!1,iconName:"icon-clear",css:"spg-action-button spg-action-button--danger",enabled:o,visible:new r.ComputedUpdater((function(){var e=i.obj[t.name];return Array.isArray(e)?e.length>0:!!e})),action:function(){e.clearPropertyValue(i.obj,t,i,a.options)}}},e.prototype.showModalPropertyEditor=function(e,t,i){return e.showModalPropertyEditor(e,t,i,this.options)},e.prototype.createEditorSetupAction=function(e,t,i,o){var r=this;return{id:"property-grid-setup",iconName:t.isArray?"icon-fast-entry":"icon-wizard",css:"spg-action-button",enabled:o,title:Object(n.getLocString)("pe.edit"),showTitle:!1,action:function(){return r.showModalPropertyEditor(e,t,i)}}},e.prototype.createPropertyHelpAction=function(e){var t=this;if(!e.description)return null;var i=new r.Action({title:"",id:"property-grid-help",css:"spg-action-button",iconName:this.getHelpActionIconName(e),showTitle:!1,action:function(){e.descriptionLocation="hidden"!=e.descriptionLocation?"hidden":"underTitle",i.iconName=t.getHelpActionIconName(e)}});return i},e.prototype.getHelpActionIconName=function(e){return"hidden"!=e.descriptionLocation?"icon-description-hide":"icon-description"},e}(),y=function(){function e(e,t,i,o){void 0===t&&(t=null),void 0===i&&(i=null),void 0===o&&(o=null),this.obj=e,this.options=t,this.parentObj=i,this.parentProperty=o}return e.isPropertyReadOnly=function(e,t,i,o,r){var n=e.readOnly;return t&&i&&(n=t.onIsPropertyReadOnlyCallback(i,e,n,o,r)),n},e.getClassNameProperty=function(e){if(e&&e.getClassNameProperty)return e.getClassNameProperty()},e.prototype.toJSON=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=void 0),this.createJSON(e,t)},e.prototype.createColumnsJSON=function(e,t){for(var i=[],o=0;o<t.length;o++){var r=this.getColumnPropertyJSON(e,t[o]);r&&i.push(r)}return i},e.prototype.setupObjPanel=function(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=void 0),e.fromJSON(this.toJSON(t,i)),this.onQuestionsCreated(e)},e.prototype.onQuestionsCreated=function(e){for(var t=r.Serializer.getPropertiesByObj(this.obj),i={},o=0;o<t.length;o++)i[t[o].name]=t[o];var n=e.questions;for(o=0;o<n.length;o++){var a=n[o],s=i[a.name];a.property=s,a.obj=this.obj,a.options=this.options;var l=this.getVisibilityOnEvent(s);a.readOnly=a.readOnly||this.isPropertyReadOnly(s),a.visible=a.visible&&l,s.visibleIf&&(a.visibleIf=l?"propertyVisibleIf() = true":""),a.descriptionLocation="hidden";var u=c.PropertiesHelpTexts.instance.getHelpText(this.obj,s);u&&(a.description=u),h.onCreated(this.obj,a,s,this.options),this.options.onPropertyEditorCreatedCallback(this.obj,s,a)}},e.prototype.getVisibilityOnEvent=function(e,t){return void 0===t&&(t=""),this.options.onCanShowPropertyCallback(this.obj,e,t,this.parentObj,this.parentProperty)},e.prototype.isPropertyReadOnly=function(t){return e.isPropertyReadOnly(t,this.options,this.obj,this.parentObj,this.parentProperty)},e.prototype.getClasPropName=function(){if(this.parentObj&&this.parentProperty)return this.parentProperty.name;var t=e.getClassNameProperty(this.obj);return t&&this.obj[t]?this.obj[t]:void 0},e.prototype.createJSON=function(e,t){void 0===t&&(t=void 0);var i=void 0,o=this.getClasPropName();o&&("itemvalue"===(i=this.obj.getType())&&(i+="[]"),i+="@"+o);for(var r=new l.SurveyQuestionProperties(this.obj,null,i,void 0,this.parentObj,this.parentProperty).getTabs(),n={},a=0;a<r.length;a++)!1!==r[a].visible&&(n[r[a].name]=this.createPanelProps(r[a],0==a,t));var s={elements:[]};for(var c in n)if(c==u.settings.propertyGrid.generalTabName&&e){var d=n[c].elements;for(a=0;a<d.length;a++)s.elements.push(d[a])}else s.elements.push(n[c]);return s},e.prototype.createPanelProps=function(e,t,i){for(var o=this.createPanelJSON(e.name,e.title,t),r=0;r<e.properties.length;r++){var n=e.properties[r],a=this.createQuestionJSON(n.property,n.title,!1,i);a&&o.elements.push(a)}return o},e.prototype.createPanelJSON=function(e,t,i){return{type:"panel",name:e,title:this.getPanelTitle(e,t),state:i?"expanded":"collapsed",elements:[]}},e.prototype.createQuestionJSON=function(e,t,i,o){if(void 0===i&&(i=!1),!this.isPropertyVisible(e,i?"list":"")&&i)return null;var r=h.getJSON(this.obj,e,this.options,o);return r?(r.name=e.name,r.visible=e.visible,r.isReadOnly=e.readOnly,r.isRequired=e.isRequired,r.requiredErrorText=n.editorLocalization.getString("pe.propertyIsEmpty"),r.title=this.getQuestionTitle(e,t),r):null},e.prototype.getColumnPropertyJSON=function(e,t){if(!e)return null;var i=r.Serializer.findProperty(e,t);if(!i)return null;var o=this.createQuestionJSON(i,"",!0,void 0);return o?(o.name=i.name,o.title=this.getQuestionTitle(i,""),i.isUnique&&(o.isUnique=i.isUnique),o.type&&(o.cellType=o.type,delete o.type),"buttongroup"===o.cellType&&(o.cellType="dropdown"),i.visibleIf&&(o.visibleIf="propertyVisibleIf() = true"),o.isReadOnly&&(o.readOnly=o.isReadOnly,delete o.isReadOnly),o):null},e.prototype.isPropertyVisible=function(e,t){return!(!e.visible||t&&e.showMode&&t!=e.showMode)},e.prototype.getPanelTitle=function(e,t){return t||n.editorLocalization.getString("pe.tabs."+e)},e.prototype.getQuestionTitle=function(e,t){return e.displayName?e.displayName:t&&t!==e.name?t:n.editorLocalization.getPropertyNameInEditor(e.name)},e}(),f=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=new u.EmptySurveyCreatorOptions),this.isCellCreating=!1,this.options=t,this.obj=e}return e.prototype.refresh=function(){this.setObj(this.objValue)},Object.defineProperty(e.prototype,"obj",{get:function(){return this.objValue},set:function(e){this.objValue!==e&&this.setObj(e)},enumerable:!1,configurable:!0}),e.prototype.selectProperty=function(e,t){if(void 0===t&&(t=!0),this.survey){var i=this.survey.getQuestionByName(e);if(i){for(var o=this.survey.getAllPanels(),r=0;r<o.length;r++){var n=o[r];n===i.parent?n.expand():n.collapse()}t&&i.focus()}}},e.prototype.setObjFromAction=function(e,t){this.changedFromActionCallback?this.changedFromActionCallback(e,t):this.setObj(e)},e.prototype.setObj=function(e){var t=this;this.objValue=e,this.classNameProperty=this.obj?y.getClassNameProperty(this.obj):"",this.classNameValue=this.classNameProperty?this.obj[this.classNameProperty]:void 0,this.titleActionsCreator=this.obj?new v(this.obj,this.options):void 0;var i=this.getSurveyJSON();this.options.readOnly&&(i.mode="display"),this.surveyValue&&this.surveyValue.dispose(),this.surveyValue=this.createSurvey(i),this.surveyValue.css=s.propertyGridCss;var o=this.surveyValue.createNewPage("p1");this.obj&&(new y(this.obj,this.options).setupObjPanel(o,!1),this.survey.addPage(o),this.survey.checkErrorsMode="onValueChanging",this.survey.onValueChanged.add((function(e,i){t.onValueChanged(i)})),this.survey.onValueChanging.add((function(e,i){t.onValueChanging(i)})),this.survey.onValidateQuestion.add((function(e,i){t.onValidateQuestion(i)})),this.survey.onGetQuestionTitleActions.add((function(e,i){t.titleActionsCreator.onGetQuestionTitleActions(i),t.onGetQuestionTitleActions(i);var o=i.question;t.options.onPropertyEditorUpdateTitleActionsCallback(t.obj,o.property,o,i.titleActions)})),this.survey.onGetPanelTitleActions.add((function(e,t){t.titleActions.splice(0,t.titleActions.length)})),this.survey.onMatrixCellCreated.add((function(e,i){t.onMatrixCellCreated(i)})),this.survey.onMatrixCellValueChanging.add((function(e,i){t.onMatrixCellValueChanging(i)})),this.survey.onMatrixCellValidate.add((function(e,i){t.onMatrixCellValidate(i)})),this.survey.onMatrixCellValueChanged.add((function(e,i){t.onMatrixCellValueChanged(i)})),this.survey.onMatrixAllowRemoveRow.add((function(e,i){i.allow=t.getMatrixAllowRemoveRow(i.question,i.row)})),this.survey.onMatrixRowAdded.add((function(e,i){t.onMatrixRowAdded(i)})),this.survey.onGetMatrixRowActions.add((function(e,i){t.onGetMatrixRowAction(i)})),this.survey.onAfterRenderQuestion.add((function(e,i){t.onAfterRenderQuestion(i)})),this.survey.editingObj=this.obj,this.objValueChangedCallback&&this.objValueChangedCallback(),this.survey.onFocusInPanel.add((function(e,i){t.currentlySelectedPanel!==i.panel&&(t.currentlySelectedProperty=i.panel.getFirstQuestionToFocus().name,t.currentlySelectedPanel=i.panel)})),this.survey.onFocusInQuestion.add((function(e,i){t.currentlySelectedProperty=i.question.name,t.currentlySelectedPanel=i.question.parent})))},Object.defineProperty(e.prototype,"options",{get:function(){return this.optionsValue},set:function(e){this.optionsValue=e||new u.EmptySurveyCreatorOptions},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),e.prototype.validate=function(){if(this.survey)return!this.survey.hasErrors(!0,!0)},e.prototype.collapseCategory=function(e){var t=this.survey.getPanelByName(e);t&&t.collapse()},e.prototype.expandCategory=function(e){var t=this.survey.getPanelByName(e);t&&t.expand()},e.prototype.collapseAllCategories=function(){for(var e=this.survey.getAllPanels(),t=0;t<e.length;t++)e[t].collapse()},e.prototype.expandAllCategories=function(){for(var e=this.survey.getAllPanels(),t=0;t<e.length;t++)e[t].expand()},e.prototype.createSurvey=function(e){return this.options.createSurvey(e,"property-grid")},e.prototype.getSurveyJSON=function(){var e={};return m(e),e},e.prototype.onValidateQuestion=function(e){var t=e.question;t&&t.property&&(t.isRequired&&r.Helpers.isValueEmpty(e.value)?e.error=n.editorLocalization.getString("pe.propertyIsEmpty"):e.error=this.options.onGetErrorTextOnValidationCallback(t.property.name,this.obj,e.value))},e.prototype.onValueChanging=function(e){var t=e.question;if(t&&t.property){var i={obj:this.obj,propertyName:t.property.name,value:e.oldValue,newValue:e.value,doValidation:!1};this.options.onValueChangingCallback(i),e.value=i.newValue}},e.prototype.onValueChanged=function(e){var t=e.question;t&&t.property&&(this.changeDependedProperties(t),h.onValueChanged(this.obj,t.property,t),this.classNameProperty&&e.name===this.classNameProperty&&this.classNameValue!==e.value&&this.setObj(this.obj))},e.prototype.changeDependedProperties=function(e){var t=e.property.getDependedProperties();if(t)for(var i=0;i<t.length;i++){var o=t[i],n=this.survey.getQuestionByName(o);n&&(r.Helpers.isTwoValueEquals(n.value,this.survey.getValue(o))||(n.value=this.survey.getValue(o)),h.onMasterValueChanged(this.obj,n.property,n))}},e.prototype.onAfterRenderQuestion=function(e){h.onAfterRenderQuestion(this.obj,e.question.property,e)},e.prototype.onMatrixCellCreated=function(e){this.isCellCreating=!0,h.onMatrixCellCreated(this.obj,e.question.property,e),this.isCellCreating=!1;var t=e.row.editingObj;if(t){var i=r.Serializer.findProperty(t.getType(),e.columnName);if(i){var o=this.getMatrixAllowEditRow(e.question,e.row);e.cellQuestion.readOnly=!o||y.isPropertyReadOnly(i,this.options,t,this.obj,e.question.property)}}},e.prototype.onMatrixCellValueChanging=function(e){if(!this.isCellCreating){var t={obj:e.row.editingObj,propertyName:e.columnName,value:e.oldValue,newValue:e.value,doValidation:!1};this.options.onValueChangingCallback(t),e.value=t.newValue}},e.prototype.onMatrixCellValidate=function(e){if(!this.isCellCreating){var t=e.question.getColumnByName(e.columnName);t&&t.isRequired&&r.Helpers.isValueEmpty(e.value)?e.error=n.editorLocalization.getString("pe.propertyIsEmpty"):e.error=this.options.onGetErrorTextOnValidationCallback(e.columnName,e.row.editingObj,e.value)}},e.prototype.onGetMatrixRowAction=function(e){var t=this;h.onGetMatrixRowAction(this.obj,e.question.property,e,(function(i){t.setObjFromAction(i,e.question.name)}))},e.prototype.onGetQuestionTitleActions=function(e){h.onGetQuestionTitleActions(this.obj,e.question.property,e)},e.prototype.onMatrixCellValueChanged=function(e){this.isCellCreating||h.onMatrixCellValueChanged(this.obj,e.question.property,e)},e.prototype.getMatrixAllowRemoveRow=function(e,t){return void 0===t.allowDeleteRow&&this.calculateMatrixAllowOperations(e,t),t.allowDeleteRow},e.prototype.getMatrixAllowEditRow=function(e,t){return void 0===t.allowEditRow&&this.calculateMatrixAllowOperations(e,t),t.allowEditRow},e.prototype.calculateMatrixAllowOperations=function(e,t){var i={allowDelete:this.onMatrixAllowRemoveRow(e,t),allowEdit:!0};this.options.onCollectionItemAllowingCallback(this.obj,e.property,e.value,t.editingObj,i),t.allowDeleteRow=i.allowDelete,t.allowEditRow=i.allowEdit},e.prototype.onMatrixAllowRemoveRow=function(e,t){var i=h.onMatrixAllowRemoveRow(this.obj,e.property,t);return i=this.options.onCollectionItemDeletingCallback(this.obj,e.property,e.value,t.editingObj)&&i,this.options.onCanDeleteItemCallback(this.obj,t.editingObj,i)},e.prototype.onMatrixRowAdded=function(e){var t=e.row.editingObj;r.Serializer.isDescendantOf(t.getType(),"itemvalue")&&this.options.onItemValueAddedCallback(this.obj,e.question.property.name,e.row.editingObj,e.question.value),r.Serializer.isDescendantOf(t.getType(),"matrixdropdowncolumn")&&this.options.onMatrixDropdownColumnAddedCallback(this.obj,e.row.editingObj,e.question.value)},e}(),b=function(){function e(){}return e.prototype.showModalPropertyEditor=function(e,t,i,o,n){var a=this,s=e.createPropertyEditorSetup(i.obj,t,i,o);return s?("condition"!==t.type&&(s.editSurvey.css=r.defaultV2Css),s.editSurvey.onGetMatrixRowActions.add((function(e,t){Object(d.updateMatrixRemoveAction)(t.question,t.actions,t.row)})),r.settings.showModal?(r.settings.showModal("survey",{survey:s.editSurvey,model:s.editSurvey},(function(){return a.onModalPropertyEditorClosed(e,t,i,o,"apply"),n&&n("apply"),s.apply()}),(function(){a.onModalPropertyEditorClosed(e,t,i,o,"cancel"),n&&n("cancel")}),"sv-property-editor",i.title,o.isMobileView?"overlay":"popup"),this.onModalPropertyEditorShown(e,t,i,o),s):s):null},e.prototype.onModalPropertyEditorShown=function(e,t,i,o){},e.prototype.onModalPropertyEditorClosed=function(e,t,i,o,r){},e}(),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e,t){return"boolean"==e.type||"switch"==e.type},t.prototype.getJSON=function(e,t,i){return{type:"boolean",default:!1,renderAs:"checkbox",titleLocation:"hidden"}},t}(b),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.updateMaxLength=function(e,t){return e.maxLength>0&&(t.maxLength=e.maxLength),t},t}(b),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"string"==e.type},t.prototype.isDefault=function(){return!0},t.prototype.getJSON=function(e,t,i){var o=this.updateMaxLength(t,{type:"text"});return"name"==t.name&&(o.textUpdateMode="onBlur"),o},t}(w),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"number"==e.type},t.prototype.getJSON=function(e,t,i){var o={type:"text",inputType:"number",textUpdateMode:"onBlur"};return void 0!==t.minValue&&(o.min=t.minValue),void 0!==t.maxValue&&(o.max=t.maxValue),o},t}(b),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"text"===e.type},t.prototype.getJSON=function(e,t,i){return this.updateMaxLength(t,{type:"comment"})},t}(w),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"html"===e.type},t.prototype.getJSON=function(e,t,i){return this.updateMaxLength(t,{type:"comment"})},t}(w),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"color"==e.type},t.prototype.getJSON=function(e,t,i){return{type:"text",inputType:"color"}},t}(b),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"string[]"==e.type},t.prototype.getJSON=function(e,t,i){return{type:"comment"}},t.prototype.onCreated=function(e,t,i){t.valueFromDataCallback=function(e){return Array.isArray(e)?e.join("\n"):""},t.valueToDataCallback=function(e){return e?Array.isArray(e)&&!e.split?e:e.split("\n"):[]}},t}(b),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return this.isLocaleProp(e)||e.hasChoices},t.prototype.getJSON=function(e,t,i){var o=t.getChoices(e),r={type:this.renderAsButtonGroup(t,o)?"buttongroup":"dropdown",choices:o,showOptionsCaption:!1},n=this.getEmptyJsonItemValue(t,o);return n&&(r.showOptionsCaption=!0,r.optionsCaption=n.text),r},Object.defineProperty(t.prototype,"canRenderAsButtonGroup",{get:function(){return u.settings.propertyGrid.useButtonGroup},enumerable:!1,configurable:!0}),t.prototype.renderAsButtonGroup=function(e,t){if(this.isLocaleProp(e))return!1;if(!this.canRenderAsButtonGroup||!t||0==t.length||t.length>4)return!1;for(var i=0,o=0;o<t.length;o++){var r=this.getLocalizedText(e,t[o].value?t[o].value:t[o]);i+=r?r.length:0}return i<u.settings.propertyGrid.maxCharsInButtonGroup},t.prototype.onCreated=function(e,t,i){this.setChoices(e,t,i),t.displayValueCallback=function(e){return e||t.optionsCaption}},t.prototype.onMasterValueChanged=function(e,t,i){this.setChoices(e,i,t)},t.prototype.setChoicesCore=function(e,t,i){i&&Array.isArray(i)&&0!=i.length&&(e.choices=this.choicesFromPropChoices(t,i))},t.prototype.isLocaleProp=function(e){return"locale"===e.name},t.prototype.getLocalizedText=function(e,t){var i;return this.isLocaleProp(e)&&(i=n.editorLocalization.getLocaleName(t))||"cellType"===e.name&&(i=n.editorLocalization.getString("qt."+t))?i:null===t?null:n.editorLocalization.getPropertyValue(t)},t.prototype.choicesFromPropChoices=function(e,t){for(var i=[],o=0;o<t.length;o++){var n=this.getJsonItem(e,t[o]);r.Helpers.isValueEmpty(n.value)||i.push(n)}return i},t.prototype.getJsonItem=function(e,t){var i={value:void 0!==t.value?t.value:t},o=t.text?t.text:"";return o||(o=this.getLocalizedText(e,i.value)),o&&o!=i.value&&(i.text=o),i},t.prototype.setChoices=function(e,t,i){var o=this,r=i.getChoices(e,(function(e){o.setChoicesCore(t,i,e)}));this.setChoicesCore(t,i,r)},t.prototype.getEmptyJsonItemValue=function(e,t){if(!t)return null;for(var i=0;i<t.length;i++){var o=t[i],n=void 0!==o.value?o.value:o;if(r.Helpers.isValueEmpty(n))return this.getJsonItem(e,o)}return null},t}(b),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"set"==e.type||"multiplevalues"==e.type},t.prototype.getJSON=function(t,i,o){var n=e.prototype.getJSON.call(this,t,i,o),a=!!r.Serializer.findClass("tagbox");return n.type=a?"tagbox":"checkbox",n.hasSelectAll=!a,n},t}(N),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return e.hasChoices&&"page"==e.name},Object.defineProperty(t.prototype,"canRenderAsButtonGroup",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCreated=function(t,i,o){e.prototype.onCreated.call(this,t,i,o),i.valueFromDataCallback=function(e){return e?e.name:""},i.valueToDataCallback=function(e){if(e&&t&&t.getSurvey())return t.getSurvey().getPageByName(e)}},t}(N),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"question"==e.type},t.prototype.getJSON=function(e,t,i){return{type:"dropdown",optionsCaption:n.editorLocalization.getString("pe.conditionSelectQuestion"),choices:this.getChoices(e,t,i)}},t.prototype.getChoices=function(e,t,i){var o=this,r=a.EditableObject.getSurvey(e);if(!r)return[];var n=this.getQuestions(r,e);n||(n=[]);var s=!!i&&i.showTitlesInExpressions,l=n.map((function(e){var t=s?e.locTitle.renderedHtml:e.name;return{value:o.getItemValue(e),text:t}}));return p.SurveyHelper.sortItems(l),l},t.prototype.getQuestions=function(e,t){return e.getAllQuestions()},t.prototype.getItemValue=function(e){return e.name},t}(b),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"question_selectbase"==e.type},t.prototype.getQuestions=function(t,i){for(var o=e.prototype.getQuestions.call(this,t,i),n=[],a=0;a<o.length;a++)o[a]!==i&&r.Serializer.isDescendantOf(o[a].getType(),"selectbase")&&n.push(o[a]);return n},t}(A),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"questionvalue"==e.type},t.prototype.getItemValue=function(e){return e.getValueName()},t}(A);h.register(new x),h.register(new T),h.register(new k),h.register(new E),h.register(new S),h.register(new P),h.register(new N),h.register(new O),h.register(new _),h.register(new C),h.register(new A),h.register(new V),h.register(new j),r.QuestionFactory.Instance.registerQuestion("buttongroup",(function(e){return new r.QuestionButtonGroupModel(e)}))},"./src/property-grid/matrices.ts":
453
473
  /*!***************************************!*\
454
474
  !*** ./src/property-grid/matrices.ts ***!
455
475
  \***************************************/
456
- /*! exports provided: PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings */function(e,t,i){"use strict";i.r(t),i.d(t,"PropertyGridEditorMatrix",(function(){return p})),i.d(t,"PropertyGridEditorMatrixItemValues",(function(){return m})),i.d(t,"PropertyGridEditorMatrixColumns",(function(){return g})),i.d(t,"PropertyGridEditorMatrixPages",(function(){return h})),i.d(t,"PropertyGridEditorMatrixCalculatedValues",(function(){return v})),i.d(t,"PropertyGridEditorMatrixHtmlConditions",(function(){return y})),i.d(t,"PropertyGridEditorMatrixUrlConditions",(function(){return f})),i.d(t,"PropertyGridEditorMatrixMutlipleTextItems",(function(){return b})),i.d(t,"PropertyGridEditorMatrixMultipleTypes",(function(){return x})),i.d(t,"PropertyGridEditorMatrixValidators",(function(){return w})),i.d(t,"PropertyGridEditorMatrixTriggers",(function(){return T})),i.d(t,"PropertyGridEditorBindings",(function(){return k}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ../question-editor/properties */"./src/question-editor/properties.ts"),s=i(/*! ../utils/utils */"./src/utils/utils.ts"),l=i(/*! ./fast-entry */"./src/property-grid/fast-entry.ts"),u=i(/*! ./index */"./src/property-grid/index.ts"),c=i(/*! ../utils/actions */"./src/utils/actions.ts"),d=function(){function e(){}return e.getNewColumnName=function(e,t,i){var o=[];if(Array.isArray(e))for(var r=0;r<e.length;r++)o.push(e[r][t]);return Object(s.getNextValue)(i,o)},e}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.onCreated=function(e,t,i){var o=this;t.onGetValueForNewRowCallBack=function(e){return o.createNewItem(e,i)},this.setupMatrixQuestion(e,t,i)},t.prototype.onMatrixCellCreated=function(e,t){var i=t.row.editingObj;if(i){var o=t.cellQuestion;o.obj=i,o.property=r.Serializer.findProperty(i.getType(),t.columnName)}},t.prototype.onGetMatrixRowAction=function(e,t,i){var o=this,r=t.question,a=t.row,s=t.actions;this.getEditItemAsStandAlone()&&s.push({id:"svd-grid-edit-column",title:n.editorLocalization.getString("pe.edit"),component:"sv-action-bar-item",action:function(){var e=t.row.editingObj;i(e)}});var l=s.filter((function(e){return"show-detail"===e.id}))[0];Object(c.updateMatrixRemoveAction)(r,s,a),l&&(l.component="sv-action-bar-item",l.iconName=this.getShowDetailActionIconName(a),l.showTitle=!1,l.location="end",l.action=function(){a.showHideDetailPanelClick(),l.iconName=a.isDetailPanelShowing?"icon-editingfinish":"icon-edit"},l.visibleIndex=0,a.onDetailPanelShowingChanged=function(){l.iconName=o.getShowDetailActionIconName(a)})},t.prototype.getShowDetailActionIconName=function(e){return e.isDetailPanelShowing?"icon-editingfinish":"icon-edit"},t.prototype.onGetQuestionTitleActions=function(e,t){var i=t.question;t.titleActions.push({id:"add-item",iconName:"icon-add(small)",title:i.addRowText,showTitle:!1,action:function(){i.addRow()},enabled:i.canAddRow})},t.prototype.onValueChanged=function(e,t,i){this.updateTitleActions(i)},t.prototype.updateTitleActions=function(e){var t=e.titleActions.filter((function(e){return"add-item"===e.id}))[0];t&&(t.enabled=e.canAddRow)},t.prototype.createNewItem=function(e,t){var i=this.getBaseValue(t),o=this.getKeyValue();i||(i="item");var n=null;i&&o&&(n=d.getNewColumnName(e.value,o,i));var a=r.Serializer.createClass(this.getDefaultClassName(t),{});n&&(a[o]=n),this.getObjTypeName()&&(a[this.getObjTypeName()]=a.getType());var s=e.obj[t.name];return s.push(a),s!=e.value&&(e.value=s),a},t.prototype.getDefaultClassName=function(e){return e.className},t.prototype.getBaseValue=function(e){return e.getBaseValue()},t.prototype.getKeyValue=function(){return""},t.prototype.getColumnNames=function(e,t,i){var o=this.getPropertiesNames(e,t,i);return o&&o.length>0?o:this.getDefaultListProperties(t)},t.prototype.getColumnClassName=function(e,t){return t.className},t.prototype.getPropertiesNames=function(e,t,i){for(var o=[],r=this.getDefinedListProperties(e,t,i),n=0;n<r.length;n++)o.push(r[n].name);return 0==o.length&&(o=this.getDefaulColumnNames()),o},t.prototype.getDefinedListProperties=function(e,t,i){if(!t.className)return[];var o=r.Serializer.createClass(t.className);if(!o)return[];var n=new a.SurveyQuestionProperties(o,i,this.getColumnClassName(e,t),"list",e,t);return 0==n.getTabs().length?[]:n.getTabs()[0].properties},t.prototype.getDefaultListProperties=function(e){var t=[];if(e&&e.className)for(var i=r.Serializer.getProperties(e.className),o=0;o<i.length;o++)this.isPropertyShownInList(i[o])&&t.push(i[o].name);return t.length>0?t:this.getDefaulColumnNames()},t.prototype.getDefaulColumnNames=function(){return[]},t.prototype.isPropertyShownInList=function(e){return e.visible&&"form"!==e.showMode},t.prototype.getObjTypeName=function(){return""},t.prototype.hasDetailPanel=function(){return!this.getEditItemAsStandAlone()},t.prototype.setupMatrixQuestion=function(e,t,i){var o=this;this.hasPropertiesInDetail=this.hasDetailPanel()&&this.calcHasPropertiesInDetail(t,i),t.onHasDetailPanelCallback=function(e){return!1!==e.allowEditRow&&o.hasPropertiesInDetail},t.onCreateDetailPanelRenderedRowCallback=function(e){e.cells=[e.cells[1]],e.cells[0].colSpans+=2},t.onCreateDetailPanelCallback=function(e,i){new u.PropertyJSONGenerator(e.editingObj,t.options,t.obj,t.property).setupObjPanel(i,!0)},t.allowRowsDragAndDrop=this.getAllowRowDragDrop()&&!t.isReadOnly,t.options&&this.setupUsingOptions(e,t,t.options,i)},t.prototype.getAllowRowDragDrop=function(){return!1},t.prototype.calcHasPropertiesInDetail=function(e,t){if(!t.className)return!0;var i=r.Serializer.createClass(t.className);if(!i)return!0;var o=new r.PanelModel("");return new u.PropertyJSONGenerator(i,e.options,e.obj,t).setupObjPanel(o,!0),o.elements.length>0},t.prototype.getJSON=function(e,t,i){return this.getMatrixJSON(e,t,this.getColumnNames(e,t,i),i)},t.prototype.getMatrixJSON=function(e,t,i,o){var r=t.className;r||(r=t.baseClassName);var a=this.getColumnsJSON(e,t,i,o),s={type:"matrixdynamic",detailPanelMode:"underRow",cellType:"text",rowCount:0,columns:a,addRowText:this.getAddRowText(t),keyDuplicationError:n.editorLocalization.getString("pe.propertyIsNoUnique"),emptyRowsText:n.editorLocalization.getString("pe.listIsEmpty")};a.length<2&&(s.showHeader=!1),this.getShowDetailPanelOnAdding()&&(s.detailPanelShowOnAdding=!0);var l=this.getMaximumRowCount(e,t,o);return l>0&&(s.maxRowCount=l),s},t.prototype.getMaximumRowCount=function(e,t,i){return-1},t.prototype.getColumnsJSON=function(e,t,i,o){var r=t.className;r||(r=t.baseClassName);for(var n=new u.PropertyJSONGenerator(e,o).createColumnsJSON(r,i),a=0;a<n.length;a++)"comment"==n[a].cellType&&(n[a].cellType="text");return n},t.prototype.getEditItemAsStandAlone=function(){return!1},t.prototype.getShowDetailPanelOnAdding=function(){return!1},t.prototype.getAddRowText=function(e){var t="pe.addNew@"+e.name;return n.editorLocalization.hasString(t)?n.editorLocalization.getString(t):n.editorLocalization.getString("pe.addNew")},t.prototype.setupUsingOptions=function(e,t,i,o){var r={allowAddRemoveItems:!0,allowRemoveAllItems:!0,showTextView:!0};i.onSetPropertyEditorOptionsCallback(o.name,e,r),r.allowAddRemoveItems||(t.allowAddRows=!1,t.allowRemoveRows=!1),t.allowRemoveAllItems=r.allowRemoveAllItems,t.showTextView=r.showTextView},t}(u.PropertyGridEditor),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return e.isArray&&r.Serializer.isDescendantOf(e.className,"itemvalue")},t.prototype.isPropertyEditorSetupEnabled=function(e,t,i,o){if(!1===i.showTextView)return!1;var r=i.getColumnByName("value"),n=i.value;return!!r&&r.isVisible&&!r.readOnly&&!this.hasMultipleLanguage(n)&&!this.hasVisibleIfOrEnableIf(n)},t.prototype.setupMatrixQuestion=function(t,i,o){e.prototype.setupMatrixQuestion.call(this,t,i,o),i.showHeader=!1},t.prototype.getAllowRowDragDrop=function(){return!0},t.prototype.createPropertyEditorSetup=function(e,t,i,o){var r=[];return i.columns.forEach((function(e){r.push(e.name)})),new l.FastEntryEditor(e[t.name],o,t.className,r)},t.prototype.canClearPropertyValue=function(e,t,i,o){return!1!==i.allowRemoveAllItems},t.prototype.clearPropertyValue=function(e,t,i,o){var r=e[t.name];Array.isArray(r)&&r.splice(0,r.length)},t.prototype.getColumnClassName=function(e,t){return e.getType()+"@"+t.name},t.prototype.getDefaulColumnNames=function(){return["value","text"]},t.prototype.getKeyValue=function(){return"value"},t.prototype.getMaximumRowCount=function(t,i,o){return"choices"===i.name?o.maximumChoicesCount:"rows"===i.name?o.maximumRowsCount:"columns"===i.name?o.maximumColumnsCount:"rateValues"===i.name?o.maximumRateValues:e.prototype.getMaximumRowCount.call(this,t,i,o)},t.prototype.hasMultipleLanguage=function(e){if(!e||!Array.isArray(e))return!1;for(var t=0;t<e.length;t++)if(e[t].locText.hasNonDefaultText())return!0;return!1},t.prototype.hasVisibleIfOrEnableIf=function(e){if(!e||!Array.isArray(e))return!1;for(var t=0;t<e.length;t++)if(e[t].visibleIf||e[t].enableIf)return!0;return!1},t}(p),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"matrixdropdowncolumns"==e.type},t.prototype.getEditItemAsStandAlone=function(){return!0},t.prototype.getDefaulColumnNames=function(){return["name","title"]},t.prototype.getKeyValue=function(){return"name"},t.prototype.getBaseValue=function(e){return"column"},t.prototype.getMaximumRowCount=function(e,t,i){return i.maximumColumnsCount},t.prototype.getAllowRowDragDrop=function(){return!0},t}(p),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"surveypages"==e.type},t.prototype.onMatrixAllowRemoveRow=function(e,t){var i=t.editingObj;if(i&&i.survey)return i.survey.currentPage!==i},t.prototype.getColumnClassName=function(e,t){return"page@"+e.getType()},t.prototype.getDefaulColumnNames=function(){return["name","title"]},t.prototype.hasDetailPanel=function(){return!1},t.prototype.getKeyValue=function(){return"name"},t.prototype.getBaseValue=function(e){return"page"},t.prototype.getAllowRowDragDrop=function(){return!0},t}(p),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"calculatedvalues"==e.type},t.prototype.getColumnClassName=function(e,t){return"calculatedvalue@items"},t.prototype.getDefaulColumnNames=function(){return["name"]},t.prototype.getKeyValue=function(){return"name"},t.prototype.getBaseValue=function(e){return"var"},t.prototype.getShowDetailPanelOnAdding=function(){return!0},t}(p),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"htmlconditions"==e.type},t.prototype.getDefaulColumnNames=function(){return["html"]},t.prototype.getShowDetailPanelOnAdding=function(){return!0},t}(p),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"urlconditions"==e.type},t.prototype.getDefaulColumnNames=function(){return["url"]},t.prototype.getShowDetailPanelOnAdding=function(){return!0},t}(p),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"textitems"==e.type},t.prototype.getColumnClassName=function(e,t){return"multipletext@items"},t.prototype.getDefaulColumnNames=function(){return["name"]},t.prototype.getKeyValue=function(){return"name"},t.prototype.getBaseValue=function(e){return"item"},t}(p),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.getColumnsJSON=function(t,i,o,r){var n=e.prototype.getColumnsJSON.call(this,t,i,o,r);return this.getObjTypeName()&&n.unshift({name:this.getObjTypeName(),cellType:"dropdown"}),n},t.prototype.onMatrixCellCreated=function(t,i){e.prototype.onMatrixCellCreated.call(this,t,i);var o=i.cellQuestion;i.columnName===this.getObjTypeName()&&(o.showOptionsCaption=!1,o.choices=this.getChoices(t),o.value=i.row.editingObj.getType())},t.prototype.onMatrixCellValueChanged=function(e,t){if(t.columnName==this.getObjTypeName()){var i=t.question.visibleRows.indexOf(t.row);if(!(i<0)){var o=t.row.isDetailPanelShowing,n=t.row.editingObj.toJSON();delete n.type;var a=r.Serializer.createClass(t.value);a.fromJSON(n),a[this.getObjTypeName()]=a.getType(),t.row.hideDetailPanel(!0),t.question.value.splice(i,1,a),t.row.value=a,o&&t.row.showDetailPanel()}}},t.prototype.getShowDetailPanelOnAdding=function(){return!0},t}(p),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"validators"==e.type},t.prototype.getObjTypeName=function(){return"validatorType"},t.prototype.getDefaultClassName=function(e){return"expressionvalidator"},t.prototype.getChoices=function(e){for(var t=this.getSupportedValidators(e),i=[],o=0;o<t.length;o++){var r=t[o]+"validator";i.push({value:r,text:n.editorLocalization.getValidatorName(r)})}return i},t.prototype.getSupportedValidators=function(e){return e?e.getSupportedValidators?e.getSupportedValidators():e.getOriginalObj?this.getSupportedValidators(e.getOriginalObj()):[]:[]},t}(x),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"triggers"==e.type},t.prototype.getObjTypeName=function(){return"triggerType"},t.prototype.getDefaultClassName=function(e){return"runexpressiontrigger"},t.prototype.getChoices=function(e){for(var t=r.Serializer.getChildrenClasses("surveytrigger",!0),i=[],o=0;o<t.length;o++){var a=t[o].name;"visibletrigger"!=a&&i.push({value:a,text:n.editorLocalization.getTriggerName(a)})}return i},t}(x),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"bindings"==e.type},t.prototype.getJSON=function(e,t,i){return{type:"matrixdropdown",rows:this.getRows(e),columns:this.getColumns(e,i)}},t.prototype.onMatrixCellCreated=function(e,t){var i=e.bindings.getValueNameByPropertyName(t.row.rowName);i&&(t.cellQuestion.value=i)},t.prototype.onMatrixCellValueChanged=function(e,t){e.bindings.setBinding(t.row.rowName,t.value)},t.prototype.getRows=function(e){for(var t=e.bindings.getProperties(),i=[],o=0;o<t.length;o++){var r=t[o].name;i.push({value:r,text:n.editorLocalization.getPropertyName(r)})}return i},t.prototype.getColumns=function(e,t){var i=new r.JsonObjectProperty(null,"value");i.type="questionvalue";var o=u.PropertyGridEditorCollection.getJSON(e,i,t);return o.cellType=o.type,delete o.type,o.name="value",[o]},t}(u.PropertyGridEditor);u.PropertyGridEditorCollection.register(new m),u.PropertyGridEditorCollection.register(new g),u.PropertyGridEditorCollection.register(new h),u.PropertyGridEditorCollection.register(new v),u.PropertyGridEditorCollection.register(new y),u.PropertyGridEditorCollection.register(new f),u.PropertyGridEditorCollection.register(new b),u.PropertyGridEditorCollection.register(new w),u.PropertyGridEditorCollection.register(new T),u.PropertyGridEditorCollection.register(new k)},"./src/property-grid/object-selector.ts":
476
+ /*! exports provided: PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings */function(e,t,i){"use strict";i.r(t),i.d(t,"PropertyGridEditorMatrix",(function(){return p})),i.d(t,"PropertyGridEditorMatrixItemValues",(function(){return m})),i.d(t,"PropertyGridEditorMatrixColumns",(function(){return g})),i.d(t,"PropertyGridEditorMatrixPages",(function(){return h})),i.d(t,"PropertyGridEditorMatrixCalculatedValues",(function(){return v})),i.d(t,"PropertyGridEditorMatrixHtmlConditions",(function(){return y})),i.d(t,"PropertyGridEditorMatrixUrlConditions",(function(){return f})),i.d(t,"PropertyGridEditorMatrixMutlipleTextItems",(function(){return b})),i.d(t,"PropertyGridEditorMatrixMultipleTypes",(function(){return x})),i.d(t,"PropertyGridEditorMatrixValidators",(function(){return w})),i.d(t,"PropertyGridEditorMatrixTriggers",(function(){return T})),i.d(t,"PropertyGridEditorBindings",(function(){return k}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ../question-editor/properties */"./src/question-editor/properties.ts"),s=i(/*! ../utils/utils */"./src/utils/utils.ts"),l=i(/*! ./fast-entry */"./src/property-grid/fast-entry.ts"),u=i(/*! ./index */"./src/property-grid/index.ts"),c=i(/*! ../utils/actions */"./src/utils/actions.ts"),d=function(){function e(){}return e.getNewColumnName=function(e,t,i){var o=[];if(Array.isArray(e))for(var r=0;r<e.length;r++)o.push(e[r][t]);return Object(s.getNextValue)(i,o)},e}(),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.onCreated=function(e,t,i){var o=this;t.onGetValueForNewRowCallBack=function(e){return o.createNewItem(e,i)},this.setupMatrixQuestion(e,t,i)},t.prototype.initializePlaceholder=function(e,t,i){var o="function"==typeof e.getType&&e.getType();"text"===t.getType()&&o&&("text"===i&&"itemvalue"===o&&(t.placeHolder=new r.ComputedUpdater((function(){return e.text}))),"title"===i&&"matrixdropdowncolumn"===o&&(t.placeHolder=new r.ComputedUpdater((function(){return e.title}))))},t.prototype.onMatrixCellCreated=function(e,t){var i=t.row.editingObj;if(i){var o=t.cellQuestion;o.obj=i,this.initializePlaceholder(i,o,t.columnName),o.property=r.Serializer.findProperty(i.getType(),t.columnName)}},t.prototype.onGetMatrixRowAction=function(e,t,i){var o=this,r=t.question,a=t.row,s=t.actions;this.getEditItemAsStandAlone()&&s.push({id:"svd-grid-edit-column",iconName:"icon-edit",title:n.editorLocalization.getString("pe.edit"),visibleIndex:0,showTitle:!1,location:"end",css:"spg-action-button",action:function(){var e=t.row.editingObj;i(e)}});var l=s.filter((function(e){return"show-detail"===e.id}))[0];Object(c.updateMatrixRemoveAction)(r,s,a),l&&(l.component="sv-action-bar-item",l.css="spg-action-button",l.iconName=this.getShowDetailActionIconName(a),l.showTitle=!1,l.location="end",l.action=function(){a.showHideDetailPanelClick(),l.iconName=a.isDetailPanelShowing?"icon-editing-finish":"icon-edit"},l.visibleIndex=0,a.onDetailPanelShowingChanged=function(){l.iconName=o.getShowDetailActionIconName(a)})},t.prototype.getShowDetailActionIconName=function(e){return e.isDetailPanelShowing?"icon-editing-finish":"icon-edit"},t.prototype.onGetQuestionTitleActions=function(e,t){var i=t.question;t.titleActions.push({id:"add-item",iconName:"icon-add",css:"spg-action-button",title:i.addRowText,showTitle:!1,action:function(){i.addRow()},enabled:i.canAddRow})},t.prototype.onValueChanged=function(e,t,i){this.updateTitleActions(i)},t.prototype.updateTitleActions=function(e){var t=e.titleActions.filter((function(e){return"add-item"===e.id}))[0];t&&(t.enabled=e.canAddRow)},t.prototype.createNewItem=function(e,t){var i=this.getBaseValue(t),o=this.getKeyValue();i||(i="item");var n=null;i&&o&&(n=d.getNewColumnName(e.value,o,i));var a=r.Serializer.createClass(this.getDefaultClassName(t),{});n&&(a[o]=n),this.getObjTypeName()&&(a[this.getObjTypeName()]=a.getType());var s=e.obj[t.name];return s.push(a),s!=e.value&&(e.value=s),a},t.prototype.getDefaultClassName=function(e){return e.className},t.prototype.getBaseValue=function(e){return e.getBaseValue()},t.prototype.getKeyValue=function(){return""},t.prototype.getColumnNames=function(e,t,i){var o=this.getPropertiesNames(e,t,i);return o&&o.length>0?o:this.getDefaultListProperties(t)},t.prototype.getColumnClassName=function(e,t){return t.className},t.prototype.getPropertiesNames=function(e,t,i){for(var o=[],r=this.getDefinedListProperties(e,t,i),n=0;n<r.length;n++)o.push(r[n].name);return 0==o.length&&(o=this.getDefaulColumnNames()),o},t.prototype.getDefinedListProperties=function(e,t,i){if(!t.className)return[];var o=r.Serializer.createClass(t.className);if(!o)return[];var n=new a.SurveyQuestionProperties(o,i,this.getColumnClassName(e,t),"list",e,t);return 0==n.getTabs().length?[]:n.getTabs()[0].properties},t.prototype.getDefaultListProperties=function(e){var t=[];if(e&&e.className)for(var i=r.Serializer.getProperties(e.className),o=0;o<i.length;o++)this.isPropertyShownInList(i[o])&&t.push(i[o].name);return t.length>0?t:this.getDefaulColumnNames()},t.prototype.getDefaulColumnNames=function(){return[]},t.prototype.isPropertyShownInList=function(e){return e.visible&&"form"!==e.showMode},t.prototype.getObjTypeName=function(){return""},t.prototype.hasDetailPanel=function(){return!this.getEditItemAsStandAlone()},t.prototype.setupMatrixQuestion=function(e,t,i){var o=this;this.hasPropertiesInDetail=this.hasDetailPanel()&&this.calcHasPropertiesInDetail(t,i),t.onHasDetailPanelCallback=function(e){return!1!==e.allowEditRow&&o.hasPropertiesInDetail},t.onCreateDetailPanelRenderedRowCallback=function(e){e.cells=[e.cells[1]],e.cells[0].colSpans+=2},t.onCreateDetailPanelCallback=function(e,i){new u.PropertyJSONGenerator(e.editingObj,t.options,t.obj,t.property).setupObjPanel(i,!0)},t.allowRowsDragAndDrop=this.getAllowRowDragDrop()&&!t.isReadOnly,t.options&&this.setupUsingOptions(e,t,t.options,i)},t.prototype.getAllowRowDragDrop=function(){return!1},t.prototype.calcHasPropertiesInDetail=function(e,t){if(!t.className)return!0;var i=r.Serializer.createClass(t.className);if(!i)return!0;var o=new r.PanelModel("");return new u.PropertyJSONGenerator(i,e.options,e.obj,t).setupObjPanel(o,!0),o.elements.length>0},t.prototype.getJSON=function(e,t,i){return this.getMatrixJSON(e,t,this.getColumnNames(e,t,i),i)},t.prototype.getMatrixJSON=function(e,t,i,o){var r=t.className;r||(r=t.baseClassName);var a={type:"matrixdynamic",detailPanelMode:"underRow",cellType:"text",rowCount:0,columns:this.getColumnsJSON(e,t,i,o),showHeader:!1,addRowText:this.getAddRowText(t),keyDuplicationError:n.editorLocalization.getString("pe.propertyIsNoUnique"),emptyRowsText:n.editorLocalization.getString("pe.listIsEmpty")};this.getShowDetailPanelOnAdding()&&(a.detailPanelShowOnAdding=!0);var s=this.getMaximumRowCount(e,t,o);return s>0&&(a.maxRowCount=s),a},t.prototype.getMaximumRowCount=function(e,t,i){return-1},t.prototype.getColumnsJSON=function(e,t,i,o){var r=t.className;r||(r=t.baseClassName);for(var n=new u.PropertyJSONGenerator(e,o).createColumnsJSON(r,i),a=0;a<n.length;a++)"comment"==n[a].cellType&&(n[a].cellType="text");return n},t.prototype.getEditItemAsStandAlone=function(){return!1},t.prototype.getShowDetailPanelOnAdding=function(){return!1},t.prototype.getAddRowText=function(e){var t="pe.addNew@"+e.name;return n.editorLocalization.hasString(t)?n.editorLocalization.getString(t):n.editorLocalization.getString("pe.addNew")},t.prototype.setupUsingOptions=function(e,t,i,o){var r={allowAddRemoveItems:!0,allowRemoveAllItems:!0,showTextView:!0};i.onSetPropertyEditorOptionsCallback(o.name,e,r),r.allowAddRemoveItems||(t.allowAddRows=!1,t.allowRemoveRows=!1),t.allowRemoveAllItems=r.allowRemoveAllItems,t.showTextView=r.showTextView},t}(u.PropertyGridEditor),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return e.isArray&&r.Serializer.isDescendantOf(e.className,"itemvalue")},t.prototype.isPropertyEditorSetupEnabled=function(e,t,i,o){if(!1===i.showTextView)return!1;var r=i.getColumnByName("value"),n=i.value;return!!r&&r.isVisible&&!r.readOnly&&!this.hasMultipleLanguage(n)&&!this.hasVisibleIfOrEnableIf(n)},t.prototype.setupMatrixQuestion=function(t,i,o){e.prototype.setupMatrixQuestion.call(this,t,i,o),i.showHeader=!1},t.prototype.getAllowRowDragDrop=function(){return!0},t.prototype.createPropertyEditorSetup=function(e,t,i,o){var r=[];return i.columns.forEach((function(e){r.push(e.name)})),new l.FastEntryEditor(e[t.name],o,t.className,r)},t.prototype.canClearPropertyValue=function(e,t,i,o){return!1!==i.allowRemoveAllItems},t.prototype.clearPropertyValue=function(e,t,i,o){var r=e[t.name];Array.isArray(r)&&r.splice(0,r.length)},t.prototype.getColumnClassName=function(e,t){return e.getType()+"@"+t.name},t.prototype.getDefaulColumnNames=function(){return["value","text"]},t.prototype.getKeyValue=function(){return"value"},t.prototype.getMaximumRowCount=function(t,i,o){return"choices"===i.name?o.maximumChoicesCount:"rows"===i.name?o.maximumRowsCount:"columns"===i.name?o.maximumColumnsCount:"rateValues"===i.name?o.maximumRateValues:e.prototype.getMaximumRowCount.call(this,t,i,o)},t.prototype.hasMultipleLanguage=function(e){if(!e||!Array.isArray(e))return!1;for(var t=0;t<e.length;t++)if(e[t].locText.hasNonDefaultText())return!0;return!1},t.prototype.hasVisibleIfOrEnableIf=function(e){if(!e||!Array.isArray(e))return!1;for(var t=0;t<e.length;t++)if(e[t].visibleIf||e[t].enableIf)return!0;return!1},t}(p),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"matrixdropdowncolumns"==e.type},t.prototype.getEditItemAsStandAlone=function(){return!0},t.prototype.getDefaulColumnNames=function(){return["name","title"]},t.prototype.getKeyValue=function(){return"name"},t.prototype.getBaseValue=function(e){return"column"},t.prototype.getMaximumRowCount=function(e,t,i){return i.maximumColumnsCount},t.prototype.getAllowRowDragDrop=function(){return!0},t}(p),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"surveypages"==e.type},t.prototype.onMatrixAllowRemoveRow=function(e,t){var i=t.editingObj;if(i&&i.survey)return i.survey.currentPage!==i},t.prototype.getColumnClassName=function(e,t){return"page@"+e.getType()},t.prototype.getDefaulColumnNames=function(){return["name","title"]},t.prototype.hasDetailPanel=function(){return!1},t.prototype.getKeyValue=function(){return"name"},t.prototype.getBaseValue=function(e){return"page"},t.prototype.getAllowRowDragDrop=function(){return!0},t}(p),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"calculatedvalues"==e.type},t.prototype.getColumnClassName=function(e,t){return"calculatedvalue@items"},t.prototype.getDefaulColumnNames=function(){return["name"]},t.prototype.getKeyValue=function(){return"name"},t.prototype.getBaseValue=function(e){return"var"},t.prototype.getShowDetailPanelOnAdding=function(){return!0},t}(p),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"htmlconditions"==e.type},t.prototype.getDefaulColumnNames=function(){return["html"]},t.prototype.getShowDetailPanelOnAdding=function(){return!0},t}(p),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"urlconditions"==e.type},t.prototype.getDefaulColumnNames=function(){return["url"]},t.prototype.getShowDetailPanelOnAdding=function(){return!0},t}(p),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"textitems"==e.type},t.prototype.getColumnClassName=function(e,t){return"multipletext@items"},t.prototype.getDefaulColumnNames=function(){return["name"]},t.prototype.getKeyValue=function(){return"name"},t.prototype.getBaseValue=function(e){return"item"},t}(p),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.getColumnsJSON=function(t,i,o,r){var n=e.prototype.getColumnsJSON.call(this,t,i,o,r);return this.getObjTypeName()&&n.unshift({name:this.getObjTypeName(),cellType:"dropdown"}),n},t.prototype.onMatrixCellCreated=function(t,i){e.prototype.onMatrixCellCreated.call(this,t,i);var o=i.cellQuestion;i.columnName===this.getObjTypeName()&&(o.showOptionsCaption=!1,o.choices=this.getChoices(t),o.value=i.row.editingObj.getType())},t.prototype.onMatrixCellValueChanged=function(e,t){if(t.columnName==this.getObjTypeName()){var i=t.question.visibleRows.indexOf(t.row);if(!(i<0)){var o=t.row.isDetailPanelShowing,n=t.row.editingObj.toJSON();delete n.type;var a=r.Serializer.createClass(t.value);a.fromJSON(n),a[this.getObjTypeName()]=a.getType(),t.row.hideDetailPanel(!0),t.question.value.splice(i,1,a),t.row.value=a,o&&t.row.showDetailPanel()}}},t.prototype.getShowDetailPanelOnAdding=function(){return!0},t}(p),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"validators"==e.type},t.prototype.getObjTypeName=function(){return"validatorType"},t.prototype.getDefaultClassName=function(e){return"expressionvalidator"},t.prototype.getChoices=function(e){for(var t=this.getSupportedValidators(e),i=[],o=0;o<t.length;o++){var r=t[o]+"validator";i.push({value:r,text:n.editorLocalization.getValidatorName(r)})}return i},t.prototype.getSupportedValidators=function(e){return e?e.getSupportedValidators?e.getSupportedValidators():e.getOriginalObj?this.getSupportedValidators(e.getOriginalObj()):[]:[]},t}(x),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"triggers"==e.type},t.prototype.getObjTypeName=function(){return"triggerType"},t.prototype.getDefaultClassName=function(e){return"runexpressiontrigger"},t.prototype.getChoices=function(e){for(var t=r.Serializer.getChildrenClasses("surveytrigger",!0),i=[],o=0;o<t.length;o++){var a=t[o].name;"visibletrigger"!=a&&i.push({value:a,text:n.editorLocalization.getTriggerName(a)})}return i},t}(x),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"bindings"==e.type},t.prototype.getJSON=function(e,t,i){return{type:"matrixdropdown",rows:this.getRows(e),columns:this.getColumns(e,i)}},t.prototype.onMatrixCellCreated=function(e,t){var i=e.bindings.getValueNameByPropertyName(t.row.rowName);i&&(t.cellQuestion.value=i)},t.prototype.onMatrixCellValueChanged=function(e,t){e.bindings.setBinding(t.row.rowName,t.value)},t.prototype.getRows=function(e){for(var t=e.bindings.getProperties(),i=[],o=0;o<t.length;o++){var r=t[o].name;i.push({value:r,text:n.editorLocalization.getPropertyName(r)})}return i},t.prototype.getColumns=function(e,t){var i=new r.JsonObjectProperty(null,"value");i.type="questionvalue";var o=u.PropertyGridEditorCollection.getJSON(e,i,t);return o.cellType=o.type,delete o.type,o.name="value",[o]},t}(u.PropertyGridEditor);u.PropertyGridEditorCollection.register(new m),u.PropertyGridEditorCollection.register(new g),u.PropertyGridEditorCollection.register(new h),u.PropertyGridEditorCollection.register(new v),u.PropertyGridEditorCollection.register(new y),u.PropertyGridEditorCollection.register(new f),u.PropertyGridEditorCollection.register(new b),u.PropertyGridEditorCollection.register(new w),u.PropertyGridEditorCollection.register(new T),u.PropertyGridEditorCollection.register(new k)},"./src/property-grid/object-selector.ts":
457
477
  /*!**********************************************!*\
458
478
  !*** ./src/property-grid/object-selector.ts ***!
459
479
  \**********************************************/
@@ -465,7 +485,7 @@ License: MIT
465
485
  /*!*******************************************************!*\
466
486
  !*** ./src/property-grid/property-grid-view-model.ts ***!
467
487
  \*******************************************************/
468
- /*! exports provided: PropertyGridViewModelBase, PropertyGridViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"PropertyGridViewModelBase",(function(){return u})),i.d(t,"PropertyGridViewModel",(function(){return c}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../survey-helper */"./src/survey-helper.ts"),a=i(/*! ./object-selector */"./src/property-grid/object-selector.ts"),s=i(/*! ../settings */"./src/settings.ts"),l=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),u=function(e){function t(t,i,o){var n=e.call(this)||this;return n.model=t,n.collapseAction=i,n.expandAction=o,n.toolbar=new r.AdaptiveActionContainer,s.settings.propertyGrid.allowCollapse&&(n._collapseAction=new r.Action({id:"svd-grid-hide",iconName:"icon-hide",title:Object(l.getLocString)("ed.hidePanel"),showTitle:!1,visible:new r.ComputedUpdater((function(){return n.visible})),action:function(){i?i():n.visible=!1}}),n.toolbar.actions.push(n._collapseAction)),n}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"flyoutPanelMode",{get:function(){return this.visible&&this.flyoutMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"closeText",{get:function(){return Object(l.getLocString)("pe.close")},enumerable:!1,configurable:!0}),t.prototype.createExpandAction=function(){var e=this;return this._expandAction=new r.Action({id:"svd-grid-expand",iconName:"icon-expand_20x20",action:function(){e.expandAction?e.expandAction():e.visible=!0},title:Object(l.getLocString)("ed.showPanel"),showTitle:!1}),this._expandAction},t.prototype.closePropertyGrid=function(){this._collapseAction.action()},Object(o.__decorate)([Object(r.property)()],t.prototype,"survey",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"headerText",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"visible",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"flyoutMode",void 0),t}(r.Base),c=function(e){function t(t,i,o,n){var u=e.call(this,t,o||function(){u.creator.showPropertyGrid=!1},n||function(){u.creator.showPropertyGrid=!0})||this;u.propertyGridModel=t,u.creator=i,u.onPropertyGridVisibilityChanged=function(e,t){u.isDisposed||(u.visible=t.show)},u.creator.onShowPropertyGridVisiblityChanged.add(u.onPropertyGridVisibilityChanged),u.visible=u.creator.showPropertyGrid,u.propertyGridModel.objValueChangedCallback=function(){u.onSurveyChanged()},u.propertyGridModel.changedFromActionCallback=function(e,t){u.selectionController&&u.selectionController.selectFromAction(e,t)},s.settings.propertyGrid.showNavigationButtons&&(u.prevSelectionAction=new r.Action({id:"svd-grid-history-prev",iconName:"icon-prev",component:"sv-action-bar-item",title:Object(l.getLocString)("ed.prevSelected"),showTitle:!1,enabled:u.hasPrev,action:function(){u.selectionController.prev()}}),u.toolbar.actions.push(u.prevSelectionAction),u.nextSelectionAction=new r.Action({id:"svd-grid-history-next",iconName:"icon-next",component:"sv-action-bar-item",title:Object(l.getLocString)("ed.nextSelected"),showTitle:!1,enabled:u.hasNext,action:function(){u.selectionController.next()}}),u.toolbar.actions.push(u.nextSelectionAction));var c=new a.ObjectSelectorModel((function(e,t,i){return u.propertyGridModel.options.getObjectDisplayName(e,t,i)})),d=new r.PopupModel("svc-object-selector",{model:c},"bottom","left");return u.objectSelectionAction=new r.Action({id:"svd-grid-object-selector",title:u.headerText,css:"sv-action--last sv-action-bar-item--secondary",iconName:"icon-more",component:"sv-action-bar-item-dropdown",action:function(){c.show(u.selectionController.creator.survey,u.propertyGridModel.obj,(function(e){u.selectionController.selectFromAction(e,"name"),d.toggleVisibility()})),d.toggleVisibility()},popupModel:d}),u.toolbar.actions.push(u.objectSelectionAction),u.onSurveyChanged(),u}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"toolbarItems",{get:function(){return this.toolbar.actions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propertyGridType",{get:function(){return"designer"},enumerable:!1,configurable:!0}),t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),!this.toolbarItems||this.toolbarItems.length<=0||(this.nextSelectionAction&&"hasNext"===t&&(this.nextSelectionAction.enabled=this.hasNext),this.prevSelectionAction&&"hasPrev"===t&&(this.prevSelectionAction.enabled=this.hasPrev),"headerText"===t&&(this.objectSelectionAction.title=this.headerText))},t.prototype.dispose=function(){this.creator&&!this.isDisposed&&this.creator.onShowPropertyGridVisiblityChanged.remove(this.onPropertyGridVisibilityChanged),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"selectionController",{get:function(){return this.creator.selectionHistoryController},enumerable:!1,configurable:!0}),t.prototype.onSurveyChanged=function(){var e=this;this.survey=this.propertyGridModel.survey,this.survey&&this.survey.onValueChanged.add((function(t,i){"name"!=i.name&&"title"!=i.name||e.updateTitle()})),this.updateTitle(),this.selectionController&&(this.hasPrev=this.selectionController.hasPrev,this.hasNext=this.selectionController.hasNext)},t.prototype.updateTitle=function(){this.headerText=this.getTitle()},t.prototype.getTitle=function(){var e=this.propertyGridModel.obj;if(!e)return"";var t=n.SurveyHelper.getObjectName(e,this.propertyGridModel.options.showObjectTitles);return this.propertyGridModel.options.getObjectDisplayName(e,"property-grid",t)},Object(o.__decorate)([Object(r.property)()],t.prototype,"hasPrev",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"hasNext",void 0),t}(u)},"./src/property-grid/restfull.ts":
488
+ /*! exports provided: PropertyGridViewModel */function(e,t,i){"use strict";i.r(t),i.d(t,"PropertyGridViewModel",(function(){return u}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ../survey-helper */"./src/survey-helper.ts"),a=i(/*! ./object-selector */"./src/property-grid/object-selector.ts"),s=i(/*! ../settings */"./src/settings.ts"),l=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),u=function(e){function t(t,i){var o=e.call(this)||this;return o.propertyGridModel=t,o.creator=i,o.selectedElementName=o.getTitle(),o.propertyGridModel.objValueChangedCallback=function(){o.onSurveyChanged()},o.propertyGridModel.changedFromActionCallback=function(e,t){o.selectionController&&o.selectionController.selectFromAction(e,t)},o.initActions(),o.creator.onPropertyChanged.add((function(e,t){"sideBarLocation"===t.name&&(o.selectorPopupModel.horizontalPosition="right"==o.creator.sideBarLocation?"left":"right")})),o.onSurveyChanged(),o}return Object(o.__extends)(t,e),t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),this.nextSelectionAction&&"hasNext"===t&&(this.nextSelectionAction.enabled=this.hasNext),this.prevSelectionAction&&"hasPrev"===t&&(this.prevSelectionAction.enabled=this.hasPrev)},Object.defineProperty(t.prototype,"selectionController",{get:function(){return this.creator.selectionHistoryController},enumerable:!1,configurable:!0}),t.prototype.onSurveyChanged=function(){var e=this;this.survey=this.propertyGridModel.survey,this.survey&&this.survey.onValueChanged.add((function(t,i){"name"!=i.name&&"title"!=i.name||e.updateTitle()})),this.updateTitle(),this.selectionController&&(this.hasPrev=this.selectionController.hasPrev,this.hasNext=this.selectionController.hasNext)},t.prototype.updateTitle=function(){this.selectedElementName=this.getTitle(),this.objectSelectionAction.title=this.selectedElementName},t.prototype.getTitle=function(){var e=this.propertyGridModel.obj;if(!e)return"";var t=n.SurveyHelper.getObjectName(e,this.propertyGridModel.options.showObjectTitles);return this.propertyGridModel.options.getObjectDisplayName(e,"property-grid",t)},t.prototype.initActions=function(){var e=this;s.settings.propertyGrid.showNavigationButtons&&(this.prevSelectionAction=new r.Action({id:"svd-grid-history-prev",iconName:"icon-arrow-left",component:"sv-action-bar-item",title:Object(l.getLocString)("ed.prevSelected"),showTitle:!1,enabled:this.hasPrev,action:function(){e.selectionController.prev()}}),this.nextSelectionAction=new r.Action({id:"svd-grid-history-next",iconName:"icon-arrow-right",component:"sv-action-bar-item",title:Object(l.getLocString)("ed.nextSelected"),showTitle:!1,enabled:this.hasNext,action:function(){e.selectionController.next()}}));var t=new a.ObjectSelectorModel((function(t,i,o){return e.propertyGridModel.options.getObjectDisplayName(t,i,o)}));this.selectorPopupModel=new r.PopupModel("svc-object-selector",{model:t},"bottom","center"),this.objectSelectionAction=new r.Action({id:"svd-grid-object-selector",title:this.selectedElementName,css:"sv-action--last sv-action-bar-item--secondary",component:"sv-action-bar-item-dropdown",action:function(){e.selectorPopupModel.displayMode=e.creator.isMobileView?"overlay":"popup",t.show(e.selectionController.creator.survey,e.propertyGridModel.obj,(function(t){e.selectionController.selectFromAction(t,"name"),e.selectorPopupModel.toggleVisibility()})),e.selectorPopupModel.toggleVisibility()},popupModel:this.selectorPopupModel})},Object(o.__decorate)([Object(r.property)()],t.prototype,"hasPrev",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"hasNext",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"survey",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"selectedElementName",void 0),t}(r.Base)},"./src/property-grid/restfull.ts":
469
489
  /*!***************************************!*\
470
490
  !*** ./src/property-grid/restfull.ts ***!
471
491
  \***************************************/
@@ -477,11 +497,11 @@ License: MIT
477
497
  /*!*************************************!*\
478
498
  !*** ./src/property-grid/values.ts ***!
479
499
  \*************************************/
480
- /*! exports provided: QuestionLinkValueModel, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor */function(e,t,i){"use strict";i.r(t),i.d(t,"QuestionLinkValueModel",(function(){return c})),i.d(t,"PropertyGridValueEditorBase",(function(){return d})),i.d(t,"PropertyGridCellsEditor",(function(){return p})),i.d(t,"PropertyGridValueEditor",(function(){return m})),i.d(t,"PropertyGridRowValueEditor",(function(){return g})),i.d(t,"PropertyGridPanelValueEditor",(function(){return h})),i.d(t,"PropertyGridTriggerValueEditor",(function(){return v})),i.d(t,"PropertyGridTriggerValueInLogicEditor",(function(){return y}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ./index */"./src/property-grid/index.ts"),a=i(/*! ./cells-survey */"./src/property-grid/cells-survey.ts"),s=i(/*! ./values-survey */"./src/property-grid/values-survey.ts"),l=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),u=i(/*! ../survey-helper */"./src/survey-helper.ts"),c=function(e){function t(t,i){void 0===i&&(i=null);var o=e.call(this,t)||this,r=i&&!i.showValueInLink&&l.editorLocalization.getString("pe.set")+" "+i.title||null;return o.linkValueText=r||l.editorLocalization.getString("pe.emptyValue"),o}return Object(o.__extends)(t,e),t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),"value"===t&&(this.updateLinkValueText(),this.showClear=!!o)},t.prototype.getType=function(){return"linkvalue"},t.prototype.doLinkClick=function(){this.linkClickCallback&&this.linkClickCallback()},t.prototype.doClearClick=function(){this.clearClickCallback&&this.clearClickCallback()},t.prototype.updateLinkValueText=function(){var e;e=this.showValueInLink?this.isEmpty()?l.editorLocalization.getString("pe.emptyValue"):this.getObjDisplayValue():this.isEmpty()?l.editorLocalization.getString("pe.set")+" "+this.title:l.editorLocalization.getString("pe.change")+" "+this.title,this.linkValueText=e},t.prototype.stringifyValue=function(e){return"string"!=typeof e?JSON.stringify(e):e},t.prototype.getObjDisplayValue=function(){var e=this.obj;if(!e||!e.getDisplayValue)return this.stringifyValue(this.value);var t=e.getDisplayValue(!0,this.value);return"string"!=typeof t?JSON.stringify(t):t},Object(o.__decorate)([Object(r.property)()],t.prototype,"linkValueText",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showClear",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"showValueInLink",void 0),t}(r.Question);r.Serializer.addClass("linkvalue",["showValueInLink"],(function(e){return new c("",e)}),"nonvalue"),r.QuestionFactory.Instance.registerQuestion("linkvalue",(function(e){return new c(e)}));var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onCreated=function(e,i,o,r){i.linkClickCallback=function(){t.showModalPropertyEditor(t,o,i,r)},i.clearClickCallback=function(){t.clearPropertyValue(i.obj,o,i,null)}},t}return Object(o.__extends)(t,e),t.prototype.getJSON=function(e,t,i){return{type:"linkvalue",showValueInLink:!1,titleLocation:"hidden"}},t.prototype.clearPropertyValue=function(e,t,i,o){e[t.name]=void 0},t.prototype.isValueEmpty=function(e){return r.Helpers.isValueEmpty(e)},t}(n.PropertyGridEditor),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"cells"==e.type},t.prototype.createPropertyEditorSetup=function(e,t,i,o){return new a.CellsEditor(e,o)},t.prototype.clearPropertyValue=function(e,t,i,o){e.cells.setJson(null)},t.prototype.isValueEmpty=function(e){return!e||r.Helpers.isValueEmpty(e.values)},t}(d),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"value"==e.type},t.prototype.createPropertyEditorSetup=function(e,t,i,o){return new s.DefaultValueEditor(e,t.name,o)},t}(d),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"rowvalue"==e.type},t.prototype.createPropertyEditorSetup=function(e,t,i,o){return new s.DefaultMatrixRowValueEditor(e,t.name,o)},t}(d),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"panelvalue"==e.type},t.prototype.createPropertyEditorSetup=function(e,t,i,o){return new s.DefaultPanelDynamicPanelValueEditor(e,t.name,o)},t}(d),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"triggervalue"==e.type},t.prototype.createPropertyEditorSetup=function(e,t,i,o){var r=i.obj,n=this.getSetToNameQuestion(r);return new s.TriggerValueEditor(n,r,t.name,o)},t.prototype.getSetToNameQuestion=function(e){var t=e.getSurvey();return t||(t=e.owner),e.setToName&&t?t.getQuestionByValueName(e.setToName):null},t}(d),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e,t){return"logic"===t&&"triggervalue"==e.type},t.prototype.getJSON=function(e,t,i){var o=this.getSetToNameQuestion(e);if(!o)return{type:"linkvalue"};var r=o.toJSON();return r.type=o.getType(),u.SurveyHelper.updateQuestionJson(r),r},t}(v);n.PropertyGridEditorCollection.register(new p),n.PropertyGridEditorCollection.register(new m),n.PropertyGridEditorCollection.register(new g),n.PropertyGridEditorCollection.register(new h),n.PropertyGridEditorCollection.register(new v),n.PropertyGridEditorCollection.register(new y)},"./src/question-editor/definition.ts":
500
+ /*! exports provided: QuestionLinkValueModel, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor */function(e,t,i){"use strict";i.r(t),i.d(t,"QuestionLinkValueModel",(function(){return c})),i.d(t,"PropertyGridValueEditorBase",(function(){return d})),i.d(t,"PropertyGridCellsEditor",(function(){return p})),i.d(t,"PropertyGridValueEditor",(function(){return m})),i.d(t,"PropertyGridRowValueEditor",(function(){return g})),i.d(t,"PropertyGridPanelValueEditor",(function(){return h})),i.d(t,"PropertyGridTriggerValueEditor",(function(){return v})),i.d(t,"PropertyGridTriggerValueInLogicEditor",(function(){return y}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ./index */"./src/property-grid/index.ts"),a=i(/*! ./cells-survey */"./src/property-grid/cells-survey.ts"),s=i(/*! ./values-survey */"./src/property-grid/values-survey.ts"),l=i(/*! ../editorLocalization */"./src/editorLocalization.ts"),u=i(/*! ../survey-helper */"./src/survey-helper.ts"),c=function(e){function t(t,i){void 0===i&&(i=null);var o=e.call(this,t)||this,r=i&&!i.showValueInLink&&l.editorLocalization.getString("pe.set")+" "+i.title||null;return o.linkValueText=r||l.editorLocalization.getString("pe.emptyValue"),o}return Object(o.__extends)(t,e),t.prototype.onPropertyValueChanged=function(t,i,o){e.prototype.onPropertyValueChanged.call(this,t,i,o),"value"===t&&(this.updateLinkValueText(),this.allowClear&&(this.showClear=!!o))},t.prototype.getType=function(){return"linkvalue"},t.prototype.doLinkClick=function(){this.linkClickCallback&&this.linkClickCallback()},t.prototype.doClearClick=function(){this.clearClickCallback&&this.clearClickCallback()},t.prototype.updateLinkValueText=function(){var e;e=this.showValueInLink?this.isEmpty()?l.editorLocalization.getString("pe.emptyValue"):this.getObjDisplayValue():this.isEmpty()?l.editorLocalization.getString("pe.set")+" "+this.title:l.editorLocalization.getString("pe.change")+" "+this.title,this.linkValueText=e},t.prototype.stringifyValue=function(e){return"string"!=typeof e?JSON.stringify(e):e},t.prototype.getObjDisplayValue=function(){var e=this.obj;if(!e||!e.getDisplayValue)return this.stringifyValue(this.value);var t=e.getDisplayValue(!0,this.value);return"string"!=typeof t?JSON.stringify(t):t},Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isSelected",void 0),Object(o.__decorate)([Object(r.property)()],t.prototype,"linkValueText",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"showClear",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"allowClear",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"showValueInLink",void 0),t}(r.Question);r.Serializer.addClass("linkvalue",["showValueInLink"],(function(e){return new c("",e)}),"nonvalue"),r.QuestionFactory.Instance.registerQuestion("linkvalue",(function(e){return new c(e)}));var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onCreated=function(e,i,o,r){i.linkClickCallback=function(){t.showModalPropertyEditor(t,o,i,r,(function(){return i.isSelected=!1})),i.isSelected=!0},i.clearClickCallback=function(){t.clearPropertyValue(i.obj,o,i,null)}},t}return Object(o.__extends)(t,e),t.prototype.getJSON=function(e,t,i){return{type:"linkvalue",showValueInLink:!1,titleLocation:"hidden"}},t.prototype.clearPropertyValue=function(e,t,i,o){e[t.name]=void 0},t.prototype.isValueEmpty=function(e){return r.Helpers.isValueEmpty(e)},t}(n.PropertyGridEditor),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"cells"==e.type},t.prototype.createPropertyEditorSetup=function(e,t,i,o){return new a.CellsEditor(e,o)},t.prototype.clearPropertyValue=function(e,t,i,o){e.cells.setJson(null)},t.prototype.isValueEmpty=function(e){return!e||r.Helpers.isValueEmpty(e.values)},t}(d),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"value"==e.type},t.prototype.createPropertyEditorSetup=function(e,t,i,o){return new s.DefaultValueEditor(e,t.name,o)},t}(d),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"rowvalue"==e.type},t.prototype.createPropertyEditorSetup=function(e,t,i,o){return new s.DefaultMatrixRowValueEditor(e,t.name,o)},t}(d),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"panelvalue"==e.type},t.prototype.createPropertyEditorSetup=function(e,t,i,o){return new s.DefaultPanelDynamicPanelValueEditor(e,t.name,o)},t}(d),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e){return"triggervalue"==e.type},t.prototype.createPropertyEditorSetup=function(e,t,i,o){var r=i.obj,n=this.getSetToNameQuestion(r);return new s.TriggerValueEditor(n,r,t.name,o)},t.prototype.getSetToNameQuestion=function(e){var t=e.getSurvey();return t||(t=e.owner),e.setToName&&t?t.getQuestionByValueName(e.setToName):null},t}(d),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(o.__extends)(t,e),t.prototype.fit=function(e,t){return"logic"===t&&"triggervalue"==e.type},t.prototype.getJSON=function(e,t,i){var o=this.getSetToNameQuestion(e);if(!o)return{type:"linkvalue"};var r=o.toJSON();return r.type=o.getType(),u.SurveyHelper.updateQuestionJson(r),r},t}(v);n.PropertyGridEditorCollection.register(new p),n.PropertyGridEditorCollection.register(new m),n.PropertyGridEditorCollection.register(new g),n.PropertyGridEditorCollection.register(new h),n.PropertyGridEditorCollection.register(new v),n.PropertyGridEditorCollection.register(new y)},"./src/question-editor/definition.ts":
481
501
  /*!*******************************************!*\
482
502
  !*** ./src/question-editor/definition.ts ***!
483
503
  \*******************************************/
484
- /*! exports provided: SurveyQuestionEditorDefinition */function(e,t,i){"use strict";i.r(t),i.d(t,"SurveyQuestionEditorDefinition",(function(){return o}));var o=function(){function e(){}return e.definition={question:{properties:["name","title","description",{name:"visible"},{name:"isRequired"},{name:"readOnly"},{name:"visibleIf",tab:"logic"},{name:"enableIf",tab:"logic"},{name:"requiredIf",tab:"logic"},{name:"bindings",tab:"logic"},{name:"defaultValueExpression",tab:"logic"},{name:"page",tab:"layout"},{name:"startWithNewLine",tab:"layout"},{name:"hideNumber",tab:"layout"},{name:"state",tab:"layout"},{name:"titleLocation",tab:"layout"},{name:"descriptionLocation",tab:"layout"},{name:"indent",tab:"layout"},{name:"width",tab:"layout"},{name:"minWidth",tab:"layout"},{name:"maxWidth",tab:"layout"},{name:"valueName",tab:"data"},{name:"defaultValue",tab:"data"},{name:"correctAnswer",tab:"data"},{name:"useDisplayValuesInTitle",tab:"data"},{name:"requiredErrorText",tab:"validation"},{name:"validators",tab:"validation"}],tabs:[{name:"logic",index:100},{name:"layout",index:200},{name:"data",index:300},{name:"validation",index:400}]},comment:{properties:[{name:"rows",tab:"layout"},{name:"cols",tab:"layout"},"placeHolder",{name:"maxLength",tab:"validation"},{name:"textUpdateMode",tab:"data"},{name:"autoGrow",tab:"layout"}]},file:{properties:["hasComment","commentText","allowMultiple","allowImagesPreview","acceptedTypes",{name:"showPreview"},{name:"storeDataAsText"},"maxSize","imageHeight","imageWidth","waitForUpload","needConfirmRemoveFile"]},html:{properties:["html"]},matrixdropdownbase:{properties:["cellType","optionsCaption","detailPanelMode","detailPanelShowOnAdding",{name:"showHeader",tab:"layout"},{name:"columnsVisibleIf",tab:"logic"},{name:"columnLayout",tab:"layout"},{name:"horizontalScroll",tab:"layout"},{name:"columnColCount",tab:"layout"},{name:"columnMinWidth",tab:"layout"}],tabs:[{name:"columns",index:10},{name:"rows",index:11},{name:"choices",index:12}]},matrixdynamic:{properties:["allowAddRows","allowRemoveRows","allowRowsDragAndDrop","rowCount","minRowCount","maxRowCount","addRowLocation","addRowText","removeRowText","confirmDelete","confirmDeleteText",{name:"hideColumnsIfEmpty",tab:"columns"},{name:"emptyRowsText",tab:"columns"},{name:"defaultRowValue",tab:"data"},{name:"defaultValueFromLastRow",tab:"data"},{name:"keyName",tab:"validation"},{name:"keyDuplicationError",tab:"validation"}]},matrixdropdown:{properties:["totalText",{name:"rowsVisibleIf",tab:"logic"},{name:"rowTitleWidth",tab:"layout"},{name:"keyDuplicationError",tab:"validation"}]},matrix:{properties:[{name:"isAllRowRequired",tab:"validation"},{name:"showHeader",tab:"layout"},{name:"rowsOrder",tab:"rows"},{name:"hideIfRowsEmpty",tab:"rows"},{name:"columnsVisibleIf",tab:"logic"},{name:"rowsVisibleIf",tab:"logic"}],tabs:[{name:"columns",index:10},{name:"rows",index:11},{name:"cells",index:500}]},multipletext:{properties:[{name:"colCount",tab:"layout"},{name:"itemSize",tab:"layout"}],tabs:[{name:"items",index:10}]},rating:{properties:["hasComment","commentText",{name:"rateMin",tab:"rateValues"},{name:"rateMax",tab:"rateValues"},{name:"rateStep",tab:"rateValues"},{name:"minRateDescription",tab:"rateValues"},{name:"maxRateDescription",tab:"rateValues"}],tabs:[{name:"rateValues",index:10}]},selectbase:{properties:["hasComment","commentText",{name:"choicesFromQuestion",tab:"choices"},{name:"choicesFromQuestionMode",tab:"choices"},{name:"choicesOrder",tab:"choices"},{name:"colCount",tab:"layout"},{name:"hasOther",tab:"choices"},{name:"otherText",tab:"choices"},{name:"otherPlaceHolder",tab:"choices"},{name:"hasNone",tab:"choices"},{name:"noneText",tab:"choices"},{name:"hideIfChoicesEmpty",tab:"logic"},{name:"choicesVisibleIf",tab:"logic"},{name:"choicesEnableIf",tab:"logic"},{name:"otherErrorText",tab:"validation"}],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11}]},checkbox:{properties:[{name:"hasSelectAll",tab:"choices"},{name:"selectAllText",tab:"choices"},{name:"maxSelectedChoices",tab:"choices"}]},radiogroup:{properties:[{name:"showClearButton",tab:"choices"}]},dropdown:{properties:["optionsCaption","autoComplete",{name:"choicesMin",tab:"choices"},{name:"choicesMax",tab:"choices"},{name:"choicesStep",tab:"choices"},{name:"showOptionsCaption",tab:"choices"}]},imagepicker:{properties:["multiSelect","showLabel","contentMode","imageFit","imageHeight","imageWidth"]},image:{properties:["imageLink","contentMode","imageFit","imageHeight","imageWidth","text"]},"itemvalue[]@choices":{properties:[{name:"visibleIf"},{name:"enableIf"}],tabs:[{name:"general"}]},"itemvalue[]@rows":{properties:[{name:"visibleIf"}],tabs:[{name:"general"}]},"itemvalue[]@columns":{properties:[{name:"visibleIf"}],tabs:[{name:"general"}]},text:{properties:["inputType","min","max","step","placeHolder","autoComplete","dataList",{name:"minValueExpression",tab:"logic"},{name:"maxValueExpression",tab:"logic"},{name:"size",tab:"layout"},{name:"maxLength",tab:"validation"},{name:"minErrorText",tab:"validation"},{name:"maxErrorText",tab:"validation"},{name:"textUpdateMode",tab:"data"}]},boolean:{properties:["label","labelTrue","labelFalse","showTitle",{name:"valueTrue",tab:"data"},{name:"valueFalse",tab:"data"}]},expression:{properties:["expression","currency","displayStyle","format","maximumFractionDigits","minimumFractionDigits","useGrouping"]},matrixdropdowncolumn:{properties:["isRequired","name","title"]},"matrixdropdowncolumn@default":{properties:["cellType","name","title","isRequired","readOnly","showInMultipleColumns","width","minWidth",{name:"visibleIf",tab:"logic"},{name:"enableIf",tab:"logic"},{name:"requiredIf",tab:"logic"},{name:"totalType",tab:"totals"},{name:"totalDisplayStyle",tab:"totals"},{name:"totalCurrency",tab:"totals"},{name:"totalFormat",tab:"totals"},{name:"totalExpression",tab:"totals"}],tabs:[{name:"general",index:5},{name:"logic",index:20},{name:"totals",index:40}]},"matrixdropdowncolumn@checkbox":{properties:[{name:"hasOther",tab:"choices"},{name:"otherText",tab:"choices"},{name:"choicesOrder",tab:"choices"},{name:"colCount",tab:"choices"},{name:"hasSelectAll",tab:"choices"},{name:"hasNone",tab:"choices"},{name:"noneText",tab:"choices"},{name:"maxSelectedChoices",tab:"choices"},{name:"selectAllText",tab:"choices"}],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11}]},"matrixdropdowncolumn@radiogroup":{properties:[{name:"hasOther",tab:"choices"},{name:"otherText",tab:"choices"},{name:"choicesOrder",tab:"choices"},{name:"colCount",tab:"choices"},{name:"hasNone",tab:"choices"},{name:"noneText",tab:"choices"}],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11}]},"matrixdropdowncolumn@dropdown":{properties:[{name:"hasOther",tab:"choices"},{name:"otherText",tab:"choices"},{name:"choicesOrder",tab:"choices"},{name:"optionsCaption",tab:"choices"},{name:"hasNone",tab:"choices"},{name:"noneText",tab:"choices"}],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11}]},"matrixdropdowncolumn@text":{properties:["inputType","min","max","step","placeHolder","maxLength"],tabs:[{name:"validators",index:10}]},"matrixdropdowncolumn@comment":{properties:["rows","placeHolder","maxLength"],tabs:[{name:"validators",index:10}]},"matrixdropdowncolumn@boolean":{properties:["defaultValue","labelTrue","labelFalse","valueTrue","valueFalse"]},"matrixdropdowncolumn@expression":{properties:["displayStyle","currency"],tabs:[{name:"expression",index:10}]},"matrixdropdowncolumn@rating":{properties:["rateValues",{name:"rateMin",tab:"rateValues"},{name:"rateMax",tab:"rateValues"},{name:"rateStep",tab:"rateValues"},{name:"minRateDescription",tab:"rateValues"},{name:"maxRateDescription",tab:"rateValues"}],tabs:[{name:"rateValues",index:5}]},multipletextitem:{properties:["inputType","name","title","isRequired","maxLength","size","placeHolder","requiredErrorText","validators"]},"multipletext@items":{properties:["isRequired","name","title"]},calculatedvalue:{properties:["name","expression","includeIntoResult"]},"calculatedvalue@items":{properties:["name","expression"]},paneldynamic:{properties:["renderMode","panelCount","minPanelCount","maxPanelCount","panelsState",{name:"allowAddPanel"},{name:"allowRemovePanel"},"panelAddText","panelRemoveText","templateTitle","templateDescription","confirmDelete","confirmDeleteText","panelPrevText","panelNextText","showQuestionNumbers","showRangeInProgress",{name:"defaultPanelValue",tab:"data"},{name:"defaultValueFromLastPanel",tab:"data"},{name:"templateTitleLocation",tab:"layout"},{name:"panelRemoveButtonLocation",tab:"layout"},{name:"keyName",tab:"validation"},{name:"keyDuplicationError",tab:"validation"}]},panelbase:{properties:["name","title","description","visible","readOnly",{name:"visibleIf",tab:"logic"},{name:"enableIf",tab:"logic"},{name:"requiredIf",tab:"logic"},{name:"questionTitleLocation",tab:"layout"}],tabs:[{name:"logic",index:100},{name:"layout",index:200},{name:"data",index:300},{name:"validation",index:400}]},panel:{properties:["isRequired",{name:"requiredErrorText",tab:"validation"},{name:"page",tab:"layout"},{name:"startWithNewLine",tab:"layout"},{name:"state",tab:"layout"},{name:"questionsOrder",tab:"layout"},{name:"indent",tab:"layout"},{name:"innerIndent",tab:"layout"},{name:"width",tab:"layout"},{name:"showNumber",tab:"numbering"},{name:"showQuestionNumbers",tab:"numbering"},{name:"questionStartIndex",tab:"numbering"},{name:"minWidth",tab:"layout"},{name:"maxWidth",tab:"layout"}],tabs:[{name:"numbering",index:350}]},page:{properties:["navigationTitle","navigationDescription","maxTimeToFinish",{name:"questionsOrder",tab:"layout"},{name:"navigationButtonsVisibility",tab:"layout"}]},survey:{properties:["title","description","showTitle","locale","mode","cookieName","widthMode",{name:"showPreviewBeforeComplete",tab:"navigation"},{name:"pagePrevText",tab:"navigation"},{name:"pageNextText",tab:"navigation"},{name:"completeText",tab:"navigation"},{name:"previewText",tab:"navigation"},{name:"editText",tab:"navigation"},{name:"startSurveyText",tab:"navigation"},{name:"showNavigationButtons",tab:"navigation"},{name:"showPrevButton",tab:"navigation"},{name:"firstPageIsStarted",tab:"navigation"},{name:"goNextPageAutomatic",tab:"navigation"},{name:"showProgressBar",tab:"navigation"},{name:"progressBarType",tab:"navigation"},{name:"questionsOnPageMode",tab:"navigation"},{name:"questionTitleLocation",tab:"question"},{name:"questionDescriptionLocation",tab:"question"},{name:"showQuestionNumbers",tab:"question"},{name:"questionTitlePattern",tab:"question"},{name:"requiredText",tab:"question"},{name:"questionStartIndex",tab:"question"},{name:"questionErrorLocation",tab:"question"},{name:"focusFirstQuestionAutomatic",tab:"question"},{name:"questionsOrder",tab:"question"},{name:"maxTextLength",tab:"question"},{name:"maxOthersLength",tab:"question"},{name:"autoGrowComment",tab:"question"},{name:"showPageTitles",tab:"pages"},{name:"showPageNumbers",tab:"pages"},{name:"calculatedValues",tab:"logic"},{name:"triggers",tab:"logic"},{name:"clearInvisibleValues",tab:"data"},{name:"textUpdateMode",tab:"data"},{name:"sendResultOnPageNext",tab:"data"},{name:"storeOthersAsComment",tab:"data"},{name:"focusOnFirstError",tab:"validation"},{name:"checkErrorsMode",tab:"validation"},{name:"navigateToUrl",tab:"showOnCompleted"},{name:"showCompletedPage",tab:"showOnCompleted"},{name:"completedHtml",tab:"showOnCompleted"},{name:"navigateToUrlOnCondition",tab:"showOnCompleted"},{name:"completedHtmlOnCondition",tab:"showOnCompleted"},{name:"loadingHtml",tab:"showOnCompleted"},{name:"completedBeforeHtml",tab:"showOnCompleted"},{name:"maxTimeToFinish",tab:"timer"},{name:"maxTimeToFinishPage",tab:"timer"},{name:"showTimerPanel",tab:"timer"},{name:"showTimerPanelMode",tab:"timer"},{name:"logo",tab:"logo"},{name:"logoPosition",tab:"logo"},{name:"logoWidth",tab:"logo"},{name:"logoHeight",tab:"logo"},{name:"logoFit",tab:"logo"}],tabs:[{name:"navigation",index:100},{name:"question",index:200},{name:"pages",index:250},{name:"logic",index:300},{name:"data",index:400},{name:"validation",index:500},{name:"showOnCompleted",index:600},{name:"timer",index:700}]},"page@survey":{properties:["name","title"]}},e}()},"./src/question-editor/properties.ts":
504
+ /*! exports provided: SurveyQuestionEditorDefinition */function(e,t,i){"use strict";i.r(t),i.d(t,"SurveyQuestionEditorDefinition",(function(){return o}));var o=function(){function e(){}return e.definition={question:{properties:["name","title","description",{name:"visible"},{name:"isRequired"},{name:"readOnly"},{name:"visibleIf",tab:"logic"},{name:"enableIf",tab:"logic"},{name:"requiredIf",tab:"logic"},{name:"bindings",tab:"logic"},{name:"defaultValueExpression",tab:"logic"},{name:"page",tab:"layout"},{name:"startWithNewLine",tab:"layout"},{name:"hideNumber",tab:"layout"},{name:"state",tab:"layout"},{name:"titleLocation",tab:"layout"},{name:"descriptionLocation",tab:"layout"},{name:"indent",tab:"layout"},{name:"width",tab:"layout"},{name:"minWidth",tab:"layout"},{name:"maxWidth",tab:"layout"},{name:"valueName",tab:"data"},{name:"defaultValue",tab:"data"},{name:"correctAnswer",tab:"data"},{name:"useDisplayValuesInTitle",tab:"data"},{name:"requiredErrorText",tab:"validation"},{name:"validators",tab:"validation"}],tabs:[{name:"logic",index:100},{name:"layout",index:200},{name:"data",index:300},{name:"validation",index:400}]},comment:{properties:[{name:"rows",tab:"layout"},{name:"cols",tab:"layout"},"placeHolder",{name:"maxLength",tab:"validation"},{name:"textUpdateMode",tab:"data"},{name:"autoGrow",tab:"layout"}]},file:{properties:["hasComment","commentText","allowMultiple","allowImagesPreview","acceptedTypes",{name:"showPreview"},{name:"storeDataAsText"},"maxSize","imageHeight","imageWidth","waitForUpload","needConfirmRemoveFile"]},html:{properties:["html"]},matrixdropdownbase:{properties:["cellType","optionsCaption","detailPanelMode","detailPanelShowOnAdding",{name:"showHeader",tab:"layout"},{name:"columnsVisibleIf",tab:"logic"},{name:"columnLayout",tab:"layout"},{name:"horizontalScroll",tab:"layout"},{name:"columnColCount",tab:"layout"},{name:"columnMinWidth",tab:"layout"}],tabs:[{name:"columns",index:10},{name:"rows",index:11},{name:"choices",index:12}]},matrixdynamic:{properties:["allowAddRows","allowRemoveRows","allowRowsDragAndDrop","rowCount","minRowCount","maxRowCount","addRowLocation","addRowText","removeRowText","confirmDelete","confirmDeleteText",{name:"hideColumnsIfEmpty",tab:"columns"},{name:"emptyRowsText",tab:"columns"},{name:"defaultRowValue",tab:"data"},{name:"defaultValueFromLastRow",tab:"data"},{name:"keyName",tab:"validation"},{name:"keyDuplicationError",tab:"validation"}]},matrixdropdown:{properties:["totalText",{name:"rowsVisibleIf",tab:"logic"},{name:"rowTitleWidth",tab:"layout"},{name:"keyDuplicationError",tab:"validation"}]},matrix:{properties:[{name:"isAllRowRequired",tab:"validation"},{name:"showHeader",tab:"layout"},{name:"rowsOrder",tab:"rows"},{name:"hideIfRowsEmpty",tab:"rows"},{name:"columnsVisibleIf",tab:"logic"},{name:"rowsVisibleIf",tab:"logic"}],tabs:[{name:"columns",index:10},{name:"rows",index:11},{name:"cells",index:500}]},multipletext:{properties:[{name:"colCount",tab:"layout"},{name:"itemSize",tab:"layout"}],tabs:[{name:"items",index:10}]},rating:{properties:["hasComment","commentText",{name:"rateMin",tab:"rateValues"},{name:"rateMax",tab:"rateValues"},{name:"rateStep",tab:"rateValues"},{name:"minRateDescription",tab:"rateValues"},{name:"maxRateDescription",tab:"rateValues"}],tabs:[{name:"rateValues",index:10}]},selectbase:{properties:["hasComment","commentText",{name:"choicesFromQuestion",tab:"choices"},{name:"choicesFromQuestionMode",tab:"choices"},{name:"choicesOrder",tab:"choices"},{name:"colCount",tab:"layout"},{name:"hasOther",tab:"choices"},{name:"otherText",tab:"choices"},{name:"otherPlaceHolder",tab:"choices"},{name:"hasNone",tab:"choices"},{name:"noneText",tab:"choices"},{name:"hideIfChoicesEmpty",tab:"logic"},{name:"choicesVisibleIf",tab:"logic"},{name:"choicesEnableIf",tab:"logic"},{name:"otherErrorText",tab:"validation"}],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11}]},checkbox:{properties:[{name:"hasSelectAll",tab:"choices"},{name:"selectAllText",tab:"choices"},{name:"maxSelectedChoices",tab:"choices"}]},radiogroup:{properties:[{name:"showClearButton",tab:"choices"}]},dropdown:{properties:["optionsCaption","autoComplete",{name:"choicesMin",tab:"choices"},{name:"choicesMax",tab:"choices"},{name:"choicesStep",tab:"choices"},{name:"showOptionsCaption",tab:"choices"}]},imagepicker:{properties:["multiSelect","showLabel","contentMode","imageFit","imageHeight","imageWidth"]},image:{properties:["imageLink","contentMode","imageFit","imageHeight","imageWidth","text"]},"itemvalue[]@choices":{properties:[{name:"visibleIf"},{name:"enableIf"}],tabs:[{name:"general"}]},"itemvalue[]@rows":{properties:[{name:"visibleIf"}],tabs:[{name:"general"}]},"itemvalue[]@columns":{properties:[{name:"visibleIf"}],tabs:[{name:"general"}]},text:{properties:["inputType","min","max","step","placeHolder","autoComplete","dataList",{name:"minValueExpression",tab:"logic"},{name:"maxValueExpression",tab:"logic"},{name:"size",tab:"layout"},{name:"maxLength",tab:"validation"},{name:"minErrorText",tab:"validation"},{name:"maxErrorText",tab:"validation"},{name:"textUpdateMode",tab:"data"}]},boolean:{properties:["label","labelTrue","labelFalse","showTitle",{name:"valueTrue",tab:"data"},{name:"valueFalse",tab:"data"}]},expression:{properties:["expression","currency","displayStyle","format","maximumFractionDigits","minimumFractionDigits","useGrouping"]},matrixdropdowncolumn:{properties:["name","title"]},"matrixdropdowncolumn@default":{properties:["cellType","name","title","isRequired","readOnly","showInMultipleColumns","width","minWidth",{name:"visibleIf",tab:"logic"},{name:"enableIf",tab:"logic"},{name:"requiredIf",tab:"logic"},{name:"totalType",tab:"totals"},{name:"totalDisplayStyle",tab:"totals"},{name:"totalCurrency",tab:"totals"},{name:"totalFormat",tab:"totals"},{name:"totalExpression",tab:"totals"}],tabs:[{name:"general",index:5},{name:"logic",index:20},{name:"totals",index:40}]},"matrixdropdowncolumn@checkbox":{properties:[{name:"hasOther",tab:"choices"},{name:"otherText",tab:"choices"},{name:"choicesOrder",tab:"choices"},{name:"colCount",tab:"choices"},{name:"hasSelectAll",tab:"choices"},{name:"hasNone",tab:"choices"},{name:"noneText",tab:"choices"},{name:"maxSelectedChoices",tab:"choices"},{name:"selectAllText",tab:"choices"}],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11}]},"matrixdropdowncolumn@radiogroup":{properties:[{name:"hasOther",tab:"choices"},{name:"otherText",tab:"choices"},{name:"choicesOrder",tab:"choices"},{name:"colCount",tab:"choices"},{name:"hasNone",tab:"choices"},{name:"noneText",tab:"choices"}],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11}]},"matrixdropdowncolumn@dropdown":{properties:[{name:"hasOther",tab:"choices"},{name:"otherText",tab:"choices"},{name:"choicesOrder",tab:"choices"},{name:"optionsCaption",tab:"choices"},{name:"hasNone",tab:"choices"},{name:"noneText",tab:"choices"}],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11}]},"matrixdropdowncolumn@text":{properties:["inputType","min","max","step","placeHolder","maxLength"],tabs:[{name:"validators",index:10}]},"matrixdropdowncolumn@comment":{properties:["rows","placeHolder","maxLength"],tabs:[{name:"validators",index:10}]},"matrixdropdowncolumn@boolean":{properties:["defaultValue","labelTrue","labelFalse","valueTrue","valueFalse"]},"matrixdropdowncolumn@expression":{properties:["displayStyle","currency"],tabs:[{name:"expression",index:10}]},"matrixdropdowncolumn@rating":{properties:["rateValues",{name:"rateMin",tab:"rateValues"},{name:"rateMax",tab:"rateValues"},{name:"rateStep",tab:"rateValues"},{name:"minRateDescription",tab:"rateValues"},{name:"maxRateDescription",tab:"rateValues"}],tabs:[{name:"rateValues",index:5}]},multipletextitem:{properties:["inputType","name","title","isRequired","maxLength","size","placeHolder","requiredErrorText","validators"]},"multipletext@items":{properties:["name","title"]},calculatedvalue:{properties:["name","expression","includeIntoResult"]},"calculatedvalue@items":{properties:["name","expression"]},paneldynamic:{properties:["renderMode","panelCount","minPanelCount","maxPanelCount","panelsState",{name:"allowAddPanel"},{name:"allowRemovePanel"},"panelAddText","panelRemoveText","templateTitle","templateDescription","confirmDelete","confirmDeleteText","panelPrevText","panelNextText","showQuestionNumbers","showRangeInProgress",{name:"defaultPanelValue",tab:"data"},{name:"defaultValueFromLastPanel",tab:"data"},{name:"templateTitleLocation",tab:"layout"},{name:"panelRemoveButtonLocation",tab:"layout"},{name:"keyName",tab:"validation"},{name:"keyDuplicationError",tab:"validation"}]},panelbase:{properties:["name","title","description","visible","readOnly",{name:"visibleIf",tab:"logic"},{name:"enableIf",tab:"logic"},{name:"requiredIf",tab:"logic"},{name:"questionTitleLocation",tab:"layout"}],tabs:[{name:"logic",index:100},{name:"layout",index:200},{name:"data",index:300},{name:"validation",index:400}]},panel:{properties:["isRequired",{name:"requiredErrorText",tab:"validation"},{name:"page",tab:"layout"},{name:"startWithNewLine",tab:"layout"},{name:"state",tab:"layout"},{name:"questionsOrder",tab:"layout"},{name:"indent",tab:"layout"},{name:"innerIndent",tab:"layout"},{name:"width",tab:"layout"},{name:"showNumber",tab:"numbering"},{name:"showQuestionNumbers",tab:"numbering"},{name:"questionStartIndex",tab:"numbering"},{name:"minWidth",tab:"layout"},{name:"maxWidth",tab:"layout"}],tabs:[{name:"numbering",index:350}]},page:{properties:["navigationTitle","navigationDescription","maxTimeToFinish",{name:"questionsOrder",tab:"layout"},{name:"navigationButtonsVisibility",tab:"layout"}]},survey:{properties:["title","description","showTitle","locale","mode","cookieName","widthMode",{name:"showPreviewBeforeComplete",tab:"navigation"},{name:"pagePrevText",tab:"navigation"},{name:"pageNextText",tab:"navigation"},{name:"completeText",tab:"navigation"},{name:"previewText",tab:"navigation"},{name:"editText",tab:"navigation"},{name:"startSurveyText",tab:"navigation"},{name:"showNavigationButtons",tab:"navigation"},{name:"showPrevButton",tab:"navigation"},{name:"firstPageIsStarted",tab:"navigation"},{name:"goNextPageAutomatic",tab:"navigation"},{name:"showProgressBar",tab:"navigation"},{name:"progressBarType",tab:"navigation"},{name:"questionsOnPageMode",tab:"navigation"},{name:"questionTitleLocation",tab:"question"},{name:"questionDescriptionLocation",tab:"question"},{name:"showQuestionNumbers",tab:"question"},{name:"questionTitlePattern",tab:"question"},{name:"requiredText",tab:"question"},{name:"questionStartIndex",tab:"question"},{name:"questionErrorLocation",tab:"question"},{name:"focusFirstQuestionAutomatic",tab:"question"},{name:"questionsOrder",tab:"question"},{name:"maxTextLength",tab:"question"},{name:"maxOthersLength",tab:"question"},{name:"autoGrowComment",tab:"question"},{name:"showPageTitles",tab:"pages"},{name:"showPageNumbers",tab:"pages"},{name:"calculatedValues",tab:"logic"},{name:"triggers",tab:"logic"},{name:"clearInvisibleValues",tab:"data"},{name:"textUpdateMode",tab:"data"},{name:"sendResultOnPageNext",tab:"data"},{name:"storeOthersAsComment",tab:"data"},{name:"focusOnFirstError",tab:"validation"},{name:"checkErrorsMode",tab:"validation"},{name:"navigateToUrl",tab:"showOnCompleted"},{name:"showCompletedPage",tab:"showOnCompleted"},{name:"completedHtml",tab:"showOnCompleted"},{name:"navigateToUrlOnCondition",tab:"showOnCompleted"},{name:"completedHtmlOnCondition",tab:"showOnCompleted"},{name:"loadingHtml",tab:"showOnCompleted"},{name:"completedBeforeHtml",tab:"showOnCompleted"},{name:"maxTimeToFinish",tab:"timer"},{name:"maxTimeToFinishPage",tab:"timer"},{name:"showTimerPanel",tab:"timer"},{name:"showTimerPanelMode",tab:"timer"},{name:"logo",tab:"logo"},{name:"logoPosition",tab:"logo"},{name:"logoWidth",tab:"logo"},{name:"logoHeight",tab:"logo"},{name:"logoFit",tab:"logo"}],tabs:[{name:"navigation",index:100},{name:"question",index:200},{name:"pages",index:250},{name:"logic",index:300},{name:"data",index:400},{name:"validation",index:500},{name:"showOnCompleted",index:600},{name:"timer",index:700}]},"page@survey":{properties:["name","title"]}},e}()},"./src/question-editor/properties.ts":
485
505
  /*!*******************************************!*\
486
506
  !*** ./src/question-editor/properties.ts ***!
487
507
  \*******************************************/
@@ -489,7 +509,7 @@ License: MIT
489
509
  /*!**********************************!*\
490
510
  !*** ./src/questionconverter.ts ***!
491
511
  \**********************************/
492
- /*! exports provided: QuestionConverter */function(e,t,i){"use strict";i.r(t),i.d(t,"QuestionConverter",(function(){return n}));var o=i(/*! survey-core */"survey-core"),r=i(/*! ./settings */"./src/settings.ts"),n=function(){function e(){}return e.addConvertInfo=function(t,i){e.convertInfo[t]||(e.convertInfo[t]=[]),e.convertInfo[t].push(i)},e.getConvertToClasses=function(t,i){void 0===i&&(i=null);var n=r.settings.questionConvertMode==r.QuestionConvertMode.AllTypes?function(e){for(var t=o.Serializer.getChildrenClasses("question",!0),i=[],r=0;r<t.length;r++)t[r].name!==e&&i.push(t[r].name);return i}(t):e.convertInfo[t];return n?(i&&Array.isArray(i)&&i.length>0&&(n=n.filter((function(e){return i.indexOf(e)>=0})).sort((function(e,t){return i.indexOf(e)-i.indexOf(t)}))),n||[]):[]},e.convertObject=function(e,t){if(!e||!e.parent||t==e.getType())return null;var i=o.QuestionFactory.Instance.createQuestion(t,e.name);i.name=e.name;var r=i.toJSON(),n=e.toJSON();for(var a in n)r[a]=n[a];i.fromJSON(r);var s=e.parent,l=s.elements.indexOf(e);return s.removeElement(e),s.addElement(i,l),i.onSurveyLoad(),i},e.convertInfo={},e}();!function(){for(var e=o.Serializer.getChildrenClasses("selectbase",!0),t=0;t<e.length;t++)for(var i=0;i<e.length;i++)t!=i&&n.addConvertInfo(e[t].name,e[i].name);n.addConvertInfo("text","comment"),n.addConvertInfo("comment","text")}()},"./src/responsivity.scss":
512
+ /*! exports provided: QuestionConverter */function(e,t,i){"use strict";i.r(t),i.d(t,"QuestionConverter",(function(){return n}));var o=i(/*! survey-core */"survey-core"),r=i(/*! ./settings */"./src/settings.ts"),n=function(){function e(){}return e.addConvertInfo=function(t,i){e.convertInfo[t]||(e.convertInfo[t]=[]),e.convertInfo[t].push(i)},e.getConvertToClasses=function(t,i,n){void 0===i&&(i=null),void 0===n&&(n=!1);var a=r.settings.questionConvertMode==r.QuestionConvertMode.AllTypes?function(e,t){void 0===t&&(t=!1);for(var i=o.Serializer.getChildrenClasses("question",!0),r=[],n=0;n<i.length;n++)(t||i[n].name!==e)&&r.push(i[n].name);return r}(t,n):e.convertInfo[t];return a?(i&&Array.isArray(i)&&i.length>0&&(a=a.filter((function(e){return i.indexOf(e)>=0})).sort((function(e,t){return i.indexOf(e)-i.indexOf(t)}))),a||[]):[]},e.convertObject=function(e,t){if(!e||!e.parent||t==e.getType())return null;var i=o.QuestionFactory.Instance.createQuestion(t,e.name);i.name=e.name;var r=i.toJSON(),n=e.toJSON();for(var a in n)r[a]=n[a];i.fromJSON(r);var s=e.parent,l=s.elements.indexOf(e);return s.removeElement(e),s.addElement(i,l),i.onSurveyLoad(),i},e.convertInfo={},e}();!function(){for(var e=o.Serializer.getChildrenClasses("selectbase",!0),t=0;t<e.length;t++)for(var i=0;i<e.length;i++)t!=i&&n.addConvertInfo(e[t].name,e[i].name);n.addConvertInfo("text","comment"),n.addConvertInfo("comment","text")}()},"./src/responsivity.scss":
493
513
  /*!*******************************!*\
494
514
  !*** ./src/responsivity.scss ***!
495
515
  \*******************************/
@@ -501,7 +521,7 @@ License: MIT
501
521
  /*!*************************!*\
502
522
  !*** ./src/settings.ts ***!
503
523
  \*************************/
504
- /*! exports provided: QuestionConvertMode, settings, EmptySurveyCreatorOptions */function(e,t,i){"use strict";i.r(t),i.d(t,"QuestionConvertMode",(function(){return o})),i.d(t,"settings",(function(){return n})),i.d(t,"EmptySurveyCreatorOptions",(function(){return a}));var o,r=i(/*! survey-core */"survey-core");!function(e){e[e.AllTypes=0]="AllTypes",e[e.CompatibleTypes=1]="CompatibleTypes"}(o||(o={}));var n={traslation:{sortByName:!0,exportPrefix:""},operators:{empty:[],notempty:[],equal:["!file"],notequal:["!file"],contains:["checkbox","text","comment"],notcontains:["checkbox","text","comment"],anyof:["selectbase"],allof:["checkbox"],greater:["!checkbox","!imagepicker","!boolean","!file"],less:["!checkbox","!imagepicker","!boolean","!file"],greaterorequal:["!checkbox","!imagepicker","!boolean","!file"],lessorequal:["!checkbox","!imagepicker","!boolean","!file"]},defaultNewSurveyJSON:{pages:[{name:"page1"}]},logic:{visibleActions:[],logicItemTitleMaxChars:50},questionConvertMode:o.AllTypes,propertyGrid:{allowCollapse:!0,useButtonGroup:!0,maxCharsInButtonGroup:25,showNavigationButtons:!1,maximumColumnsCount:0,maximumChoicesCount:0,maximumRowsCount:0,maximumRateValues:0,generalTabName:"general"},notifications:{lifetime:2e3},autoSave:{delay:500},dragDrop:{restrictDragQuestionBetweenPages:!1},layout:{showTabs:!0,showToolbar:!0}},a=function(){function e(){this.allowEditExpressionsInTextEditor=!0,this.maximumColumnsCount=n.propertyGrid.maximumColumnsCount,this.maximumChoicesCount=n.propertyGrid.maximumChoicesCount,this.maximumRowsCount=n.propertyGrid.maximumRowsCount,this.maximumRateValues=n.propertyGrid.maximumRateValues}return e.prototype.getObjectDisplayName=function(e,t,i){return i},e.prototype.onCanShowPropertyCallback=function(e,t,i,o,r){return!0},e.prototype.onPropertyEditorCreatedCallback=function(e,t,i){},e.prototype.onIsPropertyReadOnlyCallback=function(e,t,i,o,r){return i},e.prototype.onCanDeleteItemCallback=function(e,t,i){return i},e.prototype.onCollectionItemDeletingCallback=function(e,t,i,o){return!0},e.prototype.onCollectionItemAllowingCallback=function(e,t,i,o,r){},e.prototype.onItemValueAddedCallback=function(e,t,i,o){},e.prototype.onMatrixDropdownColumnAddedCallback=function(e,t,i){},e.prototype.onSetPropertyEditorOptionsCallback=function(e,t,i){},e.prototype.onGetErrorTextOnValidationCallback=function(e,t,i){return null},e.prototype.onValueChangingCallback=function(e){},e.prototype.onGetElementEditorTitleCallback=function(e,t){return t},e.prototype.startUndoRedoTransaction=function(){},e.prototype.stopUndoRedoTransaction=function(){},e.prototype.createSurvey=function(e,t,i){return new r.SurveyModel(e)},e.prototype.onConditionQuestionsGetListCallback=function(e,t,i,o){},e.prototype.onConditionGetTitleCallback=function(e,t){return t},e}()},"./src/survey-helper.ts":
524
+ /*! exports provided: QuestionConvertMode, settings, EmptySurveyCreatorOptions */function(e,t,i){"use strict";i.r(t),i.d(t,"QuestionConvertMode",(function(){return o})),i.d(t,"settings",(function(){return n})),i.d(t,"EmptySurveyCreatorOptions",(function(){return a}));var o,r=i(/*! survey-core */"survey-core");!function(e){e[e.AllTypes=0]="AllTypes",e[e.CompatibleTypes=1]="CompatibleTypes"}(o||(o={}));var n={traslation:{sortByName:!1,exportPrefix:""},operators:{empty:[],notempty:[],equal:["!file"],notequal:["!file"],contains:["checkbox","text","comment"],notcontains:["checkbox","text","comment"],anyof:["selectbase"],allof:["checkbox"],greater:["!checkbox","!imagepicker","!boolean","!file"],less:["!checkbox","!imagepicker","!boolean","!file"],greaterorequal:["!checkbox","!imagepicker","!boolean","!file"],lessorequal:["!checkbox","!imagepicker","!boolean","!file"]},defaultNewSurveyJSON:{pages:[{name:"page1"}]},logic:{visibleActions:[],logicItemTitleMaxChars:50},questionConvertMode:o.AllTypes,propertyGrid:{allowCollapse:!0,useButtonGroup:!0,maxCharsInButtonGroup:25,showNavigationButtons:!1,maximumColumnsCount:0,maximumChoicesCount:0,maximumRowsCount:0,maximumRateValues:0,generalTabName:"general"},notifications:{lifetime:2e3},autoSave:{delay:500},dragDrop:{restrictDragQuestionBetweenPages:!1},layout:{showTabs:!0,showToolbar:!0},jsonEditor:{indentation:1}},a=function(){function e(){this.allowEditExpressionsInTextEditor=!0,this.maximumColumnsCount=n.propertyGrid.maximumColumnsCount,this.maximumChoicesCount=n.propertyGrid.maximumChoicesCount,this.maximumRowsCount=n.propertyGrid.maximumRowsCount,this.maximumRateValues=n.propertyGrid.maximumRateValues}return e.prototype.getObjectDisplayName=function(e,t,i){return i},e.prototype.onCanShowPropertyCallback=function(e,t,i,o,r){return!0},e.prototype.onPropertyEditorCreatedCallback=function(e,t,i){},e.prototype.onPropertyEditorUpdateTitleActionsCallback=function(e,t,i,o){},e.prototype.onIsPropertyReadOnlyCallback=function(e,t,i,o,r){return i},e.prototype.onCanDeleteItemCallback=function(e,t,i){return i},e.prototype.onCollectionItemDeletingCallback=function(e,t,i,o){return!0},e.prototype.onCollectionItemAllowingCallback=function(e,t,i,o,r){},e.prototype.onItemValueAddedCallback=function(e,t,i,o){},e.prototype.onMatrixDropdownColumnAddedCallback=function(e,t,i){},e.prototype.onSetPropertyEditorOptionsCallback=function(e,t,i){},e.prototype.onGetErrorTextOnValidationCallback=function(e,t,i){return null},e.prototype.onValueChangingCallback=function(e){},e.prototype.onGetElementEditorTitleCallback=function(e,t){return t},e.prototype.startUndoRedoTransaction=function(){},e.prototype.stopUndoRedoTransaction=function(){},e.prototype.createSurvey=function(e,t,i){return new r.SurveyModel(e)},e.prototype.onConditionQuestionsGetListCallback=function(e,t,i,o){},e.prototype.onConditionGetTitleCallback=function(e,t){return t},e}()},"./src/survey-helper.ts":
505
525
  /*!******************************!*\
506
526
  !*** ./src/survey-helper.ts ***!
507
527
  \******************************/
@@ -509,11 +529,11 @@ License: MIT
509
529
  /*!****************************!*\
510
530
  !*** ./src/svgbundle.html ***!
511
531
  \****************************/
512
- /*! no static exports found */function(e,t){e.exports='<svg style="display:none;"><defs><clipPath id="rating-a"> <path d="M0 0h24v24H0z"></path></clipPath><rect id="device-l-b" width="330" height="651" x="719.5" y="298.5" rx="20"> </rect><filter id="device-l-a" width="145.5%" height="123%" x="-22.7%" y="-11.5%" filterUnits="objectBoundingBox"> <feOffset in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="25" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" in="shadowBlurOuter1"></feColorMatrix></filter><rect id="device-p-b" width="330" height="651" x="120" y="458" rx="20"> </rect><filter id="device-p-a" width="145.5%" height="123%" x="-22.7%" y="-11.5%" filterUnits="objectBoundingBox"> <feOffset in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="25" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" in="shadowBlurOuter1"></feColorMatrix></filter></defs><symbol viewBox="0 0 16 16" id="icon-add_16x16"><path d="M9 7h3v2H9v3H7V9H4V7h3V4h2v3zm7 1c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm-2 0c0-3.3-2.7-6-6-6S2 4.7 2 8s2.7 6 6 6 6-2.7 6-6z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-add-item-value"><path d="M9 7h3v2H9v3H7V9H4V7h3V4h2v3zm7 1c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm-2 0c0-3.3-2.7-6-6-6S2 4.7 2 8s2.7 6 6 6 6-2.7 6-6z" fill="#19B394"></path></symbol><symbol viewBox="0 0 24 24" id="icon-add"><path d="M13 11h4v2h-4v4h-2v-4H7v-2h4V7h2v4zm11 1c0 6.6-5.4 12-12 12S0 18.6 0 12 5.4 0 12 0s12 5.4 12 12zm-2 0c0-5.5-4.5-10-10-10S2 6.5 2 12s4.5 10 10 10 10-4.5 10-10z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-add(small)"><path d="M13 11h4v2h-4v4h-2v-4H7v-2h4V7h2v4zm9 1c0 5.5-4.5 10-10 10S2 17.5 2 12 6.5 2 12 2s10 4.5 10 10zm-2 0c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8 8-3.6 8-8z"></path></symbol><symbol viewBox="0 0 22 22" id="icon-apply-edit-item-value"><path d="M11 0C4.9 0 0 4.9 0 11s4.9 11 11 11 11-4.9 11-11S17.1 0 11 0zm0 20c-5 0-9-4-9-9s4-9 9-9 9 4 9 9-4 9-9 9zm4.3-13l1.4 1.4L9 16.1l-3.7-3.7L6.7 11 9 13.3 15.3 7z" fill="#19B394"></path></symbol><symbol viewBox="0 0 16 16" id="icon-autocomplete"><path d="M15 6H7v10h9v-1H8v-2h7v2h1V6h-1zm0 6H8v-2h7v2zm0-3H8V7h7v2zM3 10H1V4h2V3H0v8h3zM14 5h1V3H6v1h8zM5 1h1V0H3v1h1v11H3v1h3v-1H5z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-barrating"><path d="M12.1 15l-4.6-2.4L2.9 15l.9-5.1L0 6.3l5.2-.7L7.5 1l2.3 4.6 5.2.7-3.8 3.6.9 5.1z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-boolean"><path d="M7 11h10c2.8 0 5-2.2 5-5s-2.2-5-5-5H7C4.2 1 2 3.2 2 6s2.2 5 5 5zm0-8h10c1.7 0 3 1.3 3 3s-1.3 3-3 3H7C5.3 9 4 7.7 4 6s1.3-3 3-3zM5 6c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm14 12c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-5H7c-2.8 0-5 2.2-5 5s2.2 5 5 5h10c2.8 0 5-2.2 5-5s-2.2-5-5-5zm0 8H7c-1.7 0-3-1.3-3-3s1.3-3 3-3h10c1.7 0 3 1.3 3 3s-1.3 3-3 3z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-buttongroup"><path d="M20 6H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-change_16x16"><path d="M15 2v5h-5l2-2c-.9-1.2-2.4-2-4-2-2.8 0-5 2.2-5 5H1c0-3.9 3.1-7 7-7 2.2 0 4.1 1 5.4 2.6L15 2zM8 13c-1.6 0-3.1-.8-4-2l2-2H1v5l1.6-1.6C3.9 14 5.8 15 8 15c3.9 0 7-3.1 7-7h-2c0 2.8-2.2 5-5 5z"></path></symbol><symbol viewBox="0 0 22 22" id="icon-check"><path d="M11 0C4.9 0 0 4.9 0 11s4.9 11 11 11 11-4.9 11-11S17.1 0 11 0zm0 20c-5 0-9-4-9-9s4-9 9-9 9 4 9 9-4 9-9 9zm4.3-13l1.4 1.4L9 16.1l-3.7-3.7L6.7 11 9 13.3 15.3 7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-checkbox"><path d="M19 8.9l2-2.8V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14.1L20.8.6l1.6 1.2-11.3 15.7L6.6 13 8 11.6l2.9 2.9L17.7 5H5v14h14V8.9z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-checked"><path d="M9 20.1L1 12l2.1-2.1 5.9 6L20.9 4 23 6.1l-14 14z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-clear_16x16"><path d="M13.35 3.35l-.7-.7-4.6 4.6-4.7-4.6-.7.7 4.6 4.7-4.6 4.6.7.7 4.7-4.6 4.6 4.6.7-.7-4.6-4.6 4.6-4.7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-clear"><path d="M22.6 8.6l-6.2-6.2c-.4-.4-.9-.6-1.4-.6-.5 0-1 .2-1.4.6L1.4 14.6c-.8.8-.8 2 0 2.8L6 22h6l10.6-10.6c.7-.8.7-2.1 0-2.8zM11.1 20H6.8l-4-4 3.4-3.4 6.2 6.2-1.3 1.2zm2.7-2.6l-6.2-6.2L15 3.8l6.2 6.2-7.4 7.4zM16 20h7v2h-9l2-2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-collapse"><path d="M18.43 11.01L12.01 4.6 5.6 11.01l1.41 1.42 4-4v9.58h2V8.43l4 4 1.42-1.42z" fill="#909090"></path></symbol><symbol viewBox="0 0 24 24" id="icon-collapsepanel"><path d="M13 5.6l6.4 6.4-6.4 6.4-1.4-1.4 4-4H2v-2h13.6l-4-4L13 5.6zM20 2v20h2V2h-2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-comment"><path d="M20 3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H4V5h16v14zM18 9H6V7h12v2zm0 4H6v-2h12v2zm-6 4H6v-2h6v2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-datepicker"><path d="M3 7h2v2H3zM7 11h2v2H7zM3 11h2v2H3zM11 11h2v2h-2zM11 7h2v2h-2zM10 6H6v4h4V6zM9 9H7V7h2v2zM4 0h1v3H4zM11 0h1v3h-1z"></path><path d="M13 2v2h-3V2H6v2H3V2H0v14h16V2h-3zm2 13H1V5h14v10z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-default"><path d="M0 4h4V0H0v4zm6 0h4V0H6v4zm6-4v4h4V0h-4zM0 10h4V6H0v4zm6 0h4V6H6v4zm6 0h4V6h-4v4zM0 16h4v-4H0v4zm6 0h4v-4H6v4zm6 0h4v-4h-4v4z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-delete_16x16"><path d="M15 2h-4V1c0-.6-.4-1-1-1H7c-.6 0-1 .4-1 1v1H2v2h1v10c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V4h1V2zM7 1h3v1H7V1zm5 13H5V4h7v10zm-5-1H6V5h1v8zm2 0H8V5h1v8zm2 0h-1V5h1v8z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-delete"><path d="M22 4h-6V2c0-1.1-.9-2-2-2h-4C8.9 0 8 .9 8 2v2H2v2h2v14c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6h2V4zM10 2h4v2h-4V2zm8 18H6V6h12v14zM14 8h2v10h-2V8zm-3 0h2v10h-2V8zM8 8h2v10H8V8z"></path></symbol><symbol viewBox="0 0 20 20" id="icon-device_desktop"><path d="M20 15V0H0v15h8v2a3 3 0 0 1-3 3h10a3 3 0 0 1-3-3v-2h8zM2 2h16v11H2V2z"></path></symbol><symbol viewBox="0 0 12 20" id="icon-device_phone"><path d="M10 16H2V4h8v12zm0-16H2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"></path></symbol><symbol viewBox="0 0 22 22" id="icon-device_rotate"><path d="M21.41 5.996L16 11.406l-1.41-1.41 3-3H15a13 13 0 0 0-13 13v2H0v-2a15 15 0 0 1 15-15h2.59l-3-3L16 .586l5.41 5.41z"></path></symbol><symbol viewBox="0 0 22 16" id="icon-device_tablet"><path d="M19 14H3V2h16v12zm1-14H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z"></path></symbol><symbol viewBox="0 0 20 4" id="icon-dots"><path d="M4 2c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm6-2C8.9 0 8 .9 8 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm8 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" fill="#909090"></path></symbol><symbol viewBox="0 0 10 16" id="icon-drag-handler"><path d="M6 2c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zM2 0C.9 0 0 .9 0 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zM2 6C.9 6 0 6.9 0 8s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-dropdown"><path d="M20 2H4c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H6V8h14v12zM4 6V4h16v2H4zm14 6H8v-2h10v2zm0 4H8v-2h10v2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-dropdownarrow"><path d="M12 15l5-5H7l5 5z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-duplicate_16x16"><path d="M14 0H6a2 2 0 0 0-2 2v2H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-2h2a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm-4 14H2V6h8v8zm4-4h-2V6a2 2 0 0 0-2-2H6V2h8v8z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-edit-item-value"><path d="M15.3 2.8L13.2.7c-.5-.5-1-.7-1.6-.7-.6 0-1.2.2-1.6.7L2 8.6c-1.3 1.3-2 3.1-2 4.9v1.8c0 .4.3.7.8.7h1.8c1.8 0 3.6-.7 4.9-2l7.9-7.9c.8-.9.8-2.4-.1-3.3zM6 12.6c-.9.9-2.2 1.4-3.5 1.4H2v-.5c0-1.3.5-2.6 1.4-3.5L8 5.4 10.6 8 6 12.6zm7.9-7.9L12 6.6 9.4 4l1.9-1.9c.1-.1.2-.1.3-.1.1 0 .1 0 .2.1l2.1 2.1c.1.1.1.3 0 .5z" fill="#19B394"></path></symbol><symbol viewBox="0 0 21 21" id="icon-edit"><path d="M19.9 3.8L17.1 1C16.5.5 15.8.2 15 .2s-1.5.3-2.1.9L2.6 11.3C.9 13 0 15.3 0 17.7V20c0 .6.4 1 1 1h2.3c2.4 0 4.7-.9 6.4-2.6L19.9 8.1c1.2-1.2 1.2-3.1 0-4.3zM8.2 16.9C6.9 18.2 5.1 19 3.3 19H2v-1.3c0-1.9.7-3.6 2.1-4.9l6.2-6.2 4.2 4.2-6.3 6.1zM18.5 6.7l-2.7 2.7-4.2-4.2 2.7-2.7c.2-.3.5-.3.7-.3.2 0 .5 0 .7.3l2.8 2.8c.4.3.4 1 0 1.4z" fill="#909090"></path></symbol><symbol viewBox="0 0 21 22" id="icon-editingfinish"><path d="M.3 2.7l5.5 5.5-3.2 3.2C.9 13.1 0 15.4 0 17.8v2.3c0 .6.4 1 1 1h2.3c2.4 0 4.7-.9 6.4-2.6l3.2-3.2 5.5 5.5 1.4-1.4-18-18L.3 2.7zm7.9 14.2C6.9 18.2 5.1 19 3.3 19H2v-1.3c0-1.9.7-3.6 2.1-4.9l3.2-3.2 4.2 4.2-3.3 3.1zm11.7-8.8l-4.7 4.7-1.4-1.4 4.7-4.7c.4-.4.4-1 0-1.4l-2.8-2.8c-.2-.3-.5-.3-.7-.3-.2 0-.5 0-.7.3L9.6 7.2 8.2 5.8l4.7-4.7c.6-.6 1.3-.9 2.1-.9s1.5.3 2.1.9l2.8 2.8c1.2 1.1 1.2 3 0 4.2z" fill="#909090"></path></symbol><symbol viewBox="0 0 16 16" id="icon-editor"><path d="M1 3h2v5H2v1h4V8H5V3h2v1h1V1H0v3h1zM10 5h6v1h-6zM10 8h6v1h-6zM0 11h16v1H0zM0 14h16v1H0z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-expand_20x20"><path d="M19.996 2h-5v20h7V2h-2zm0 18h-3V4h3v16zm-15.59-9h8.59v2h-8.59l4 4-1.41 1.41L.586 12l6.41-6.41L8.406 7l-4 4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-expand"><path d="M17.01 11.59l-4 4V6h-2v9.59l-4-4L5.6 13l6.41 6.41L18.43 13l-1.42-1.41z" fill="#909090"></path></symbol><symbol viewBox="0 0 20 21" id="icon-export_20x20"><path d="M4 9.406l-1.41-1.41L10 .586l7.41 7.41L16 9.406l-5-5v12.59H9V4.406l-5 5zm-4 9.59v2h20v-2H0z" fill="#909090"></path></symbol><symbol viewBox="0 0 24 24" id="icon-expression"><path d="M20 .5c-.6-.3-1.3-.5-2.2-.5-1.9 0-3.5.8-4.8 2.3-1.5 1.8-2.9 4.8-4 9.2H6.2L5.8 13h2.7l-.2 1c-.1.4-.2.9-.4 1.7-.2.7-.3 1.4-.4 1.9-.7 3-1.4 4.3-1.9 4.8 0-.3-.1-.6-.4-.8-.5-.3-1.4-.4-1.9.2-.2.2-.3.6-.3.9 0 .4.1.7.4.9.3.3.8.4 1.4.4.6 0 1.2-.1 1.7-.4 1.4-.6 2.5-1.9 3.3-4 .4-1.1 1-2.9 1.6-5.5l.3-1.2h3.4l.4-1.5h-3.4c1-4.2 2.1-7.2 3.2-8.7.3-.4.6-.7.9-.9.4-.3.6-.3.8-.3.2 0 .4 0 .7.1-.2.3-.2.6-.2.9 0 .4.2.8.5 1.1.7.5 1.8.5 2.5 0 .3-.4.5-.8.5-1.3 0-.8-.3-1.4-1-1.8z"></path></symbol><symbol viewBox="0 0 22 20" id="icon-fast-entry"><path d="M11 2H0V0h11v2zM8 4H0v2h8V4zM0 14h8v-2H0v2zm11-6H0v2h11V8zm10.4 3.9L15 18.3c-1 1.1-2.5 1.7-4 1.7H9.6c-.3 0-.6-.3-.6-.6V18c0-1.5.6-2.9 1.7-4l6.4-6.4c.3-.4.8-.6 1.3-.6s1 .2 1.3.6l1.7 1.7c.8.7.8 1.9 0 2.6zm-1.5-1.3L18.3 9 12 15.3c-.6.8-1 1.7-1 2.7 1 0 1.9-.4 2.6-1.1l6.3-6.3z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-file"><path d="M22 9V7c0-1.1-.9-2-2-2h-8l-2-2H4c-1.1 0-2 .9-2 2v16h20l2-12h-2zM4 5h5.2l1.4 1.4.6.6H20v2H4V5zm16.3 14H4v-8h17.6l-1.3 8z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-flowpanel"><path d="M14 4h2v1h-2zM0 4h2v1H0zM14 6h2v1h-2zM0 6h2v1H0zM14 8h2v1h-2zM0 8h2v1H0zM14 10h2v1h-2zM0 10h2v1H0zM0 2h16v1H0zM0 0h16v1H0zM0 12h16v1H0zM0 14h16v1H0zM11 4L7 8 5 6 4 7l3 3 5-5z"></path></symbol><symbol viewBox="0 0 22 22" id="icon-help"><path d="M11 0C4.9 0 0 4.9 0 11s4.9 11 11 11 11-4.9 11-11S17.1 0 11 0zm0 20c-5 0-9-4-9-9s4-9 9-9 9 4 9 9-4 9-9 9zm1.3-4.2c.1.2.1.4.1.6 0 .4-.2.8-.4 1.1-.3.3-.7.4-1.1.4-.4 0-.8-.2-1.1-.4-.3-.3-.4-.7-.4-1.1 0-.4.2-.8.4-1.1.3-.3.7-.5 1.1-.5.6.1 1.1.4 1.4 1zM15 8.3c0 1.1-.5 1.9-1.4 2.6-.2.2-.5.3-.7.5l-.6.4c-.3.2-.4.3-.4.3-.1.1-.1.2-.1.3 0 .2-.1.4-.1.7v.4c-.1.2-.3.4-.5.5-.2.1-.3.1-.4.1H10.5c-.2-.1-.4-.2-.5-.3-.1-.2-.3-.4-.3-.7-.1-.3-.2-.5-.2-.8 0-.3.1-.6.2-.8.1-.2.3-.4.5-.6.2-.2.4-.3.6-.4l.6-.3c.6-.3.8-.5.9-.6.3-.3.4-.7.4-1.1 0-.4-.1-.8-.4-1-.5-.5-.9-.6-1.3-.6-1.1 0-1.4.5-1.4.9-.2.5-.2.6-.2.6v.4l.1.4-.3.1c-.6.3-1.1.3-1.5.1L7.3 9c-.2-.3-.3-.6-.3-1s.1-.7.2-1c.1-.3.3-.5.5-.7.2-.2.4-.4.7-.6.3-.1.6-.3.9-.4 1.2-.4 2.4-.4 3.3-.2.5.1.9.3 1.3.5.7.7 1.1 1.5 1.1 2.7z" fill="#909090"></path></symbol><symbol viewBox="0 0 22 22" id="icon-helpfinish"><path d="M1.3 2.7L2.6 4C1 5.9 0 8.3 0 11c0 6.1 4.9 11 11 11 2.7 0 5.1-1 7-2.6l1.3 1.3 1.4-1.4-18-18-1.4 1.4zM11 20c-5 0-9-4-9-9 0-2.1.7-4.1 2-5.6l5.8 5.8c-.1.1-.2.2-.2.3-.1.2-.2.5-.2.8 0 .3.1.6.2.8.1.2.2.4.3.7.1.2.3.3.5.3H10.7c.1 0 .2 0 .4-.1.3-.1.5-.3.5-.5v-.4l4.9 4.9c-1.4 1.3-3.4 2-5.5 2zM6.8 3.1L5.3 1.6C7 .6 8.9 0 11 0c6.1 0 11 4.9 11 11 0 2.1-.6 4-1.6 5.7l-1.5-1.5C19.6 14 20 12.5 20 11c0-5-4-9-9-9-1.5 0-3 .4-4.2 1.1zm5.7 5.7c0-.1.1-.2.1-.4 0-.4-.1-.8-.4-1-.4-.4-.8-.5-1.2-.5h-.4L9.1 5.4c.1 0 .1-.1.2-.1 1.2-.4 2.4-.4 3.3-.2.5.1.9.3 1.3.5.7.7 1.1 1.5 1.1 2.7 0 .8-.3 1.5-.8 2.1l-1.7-1.6zm-1.7 6.1c.7 0 1.2.3 1.5.9.1.2.1.4.1.6 0 .4-.2.8-.4 1.1-.3.3-.7.4-1.1.4-.4 0-.8-.2-1.1-.4-.3-.3-.4-.7-.4-1.1 0-.4.2-.8.4-1.1.2-.3.6-.4 1-.4z" fill="#909090"></path></symbol><symbol viewBox="0 0 20 20" id="icon-hide"><path d="M11 3.6l6.4 6.4-6.4 6.4L9.6 15l4-4H0V9h13.6l-4-4L11 3.6zM18 0v20h2V0h-2z" fill="#909090"></path></symbol><symbol viewBox="0 0 24 24" id="icon-html"><path d="M7.85 6.65l-4.5 5.3 4.5 5.4-1.6 1.3-5.5-6.7 5.5-6.6 1.6 1.3zm10-1.3l-1.6 1.3 4.5 5.3-4.5 5.4 1.5 1.3 5.5-6.6-5.4-6.7zm-9.7 15.3l1.9.6 6-18-1.9-.6-6 18z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-image"><path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM7 8c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm12 11H5l4-5 2 1 3-3 5 7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-imagepicker"><path d="M17 5H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 15H4V7h13v13zM6 11c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm10 8H5l11-5v5zm6-15v13c0 1.1-.9 2-2 2V4H5c0-1.1.9-2 2-2h13c1.1 0 2 .9 2 2z"></path></symbol><symbol viewBox="0 0 20 20" id="icon-import_20x20"><path d="M10 16.41L2.59 9 4 7.59l5 5V0h2v12.59l5-5L17.41 9 10 16.41zM0 18v2h20v-2H0z" fill="#909090"></path></symbol><symbol viewBox="0 0 24 24" id="icon-import"><path d="M10 4H4V2h6a5 5 0 0 1 5 5v6.59l3-3L19.41 12 14 17.41 8.59 12 10 10.59l3 3V7a3 3 0 0 0-3-3zm10 14v2H4v-2H2v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2h-2z" fill="#909090"></path></symbol><symbol viewBox="0 0 24 24" id="icon-invisible_items"><path d="M12 7.003a5.16 5.16 0 0 1 1.37.21l-1.83 1.84a3 3 0 0 0-2.49 2.49l-1.84 1.83a5.16 5.16 0 0 1-.21-1.37 5 5 0 0 1 5-5zm-6.6 8.18a15 15 0 0 1-2.59-3.18c2.29-3.78 5.66-6 9.19-6a8.29 8.29 0 0 1 2.26.33l1.6-1.6a10.76 10.76 0 0 0-3.86-.73c-4.76 0-8.95 3.17-11.48 8A17.49 17.49 0 0 0 4 16.623l1.4-1.44zm18.08-3.18c-2.48 4.83-6.72 8-11.48 8a11 11 0 0 1-5.23-1.36l-4.06 4.07-1.42-1.42 20-20 1.42 1.42-3.77 3.76a16.63 16.63 0 0 1 4.54 5.53zm-8.78-1.28l-4 4a2.9 2.9 0 0 0 1.3.28 3 3 0 0 0 3-3 2.9 2.9 0 0 0-.3-1.28zm6.49 1.28a14 14 0 0 0-3.69-4.09l-1.34 1.35a4.93 4.93 0 0 1 .84 2.74 5 5 0 0 1-5 5 4.93 4.93 0 0 1-2.74-.84l-1 1c1.17.55 2.447.836 3.74.84 3.53 0 6.9-2.22 9.19-6z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-language"><path d="M17.75 8h-2.5l-1.9 5.08A9.93 9.93 0 0 1 9.25 6H14V4H9V2H7v2H2v2h4.91A10 10 0 0 1 1 14.14c.323.59.694 1.151 1.11 1.68a12 12 0 0 0 6-6.3A12 12 0 0 0 12.62 15L10 22h2.42l1.37-3.87h5.37l1.4 3.87H23L17.75 8zm-3.29 8.16l1.27-3.63c.31-.825.564-1.67.76-2.53.06.26.18.66.35 1.21.17.55.3.94.4 1.2l1.31 3.79-4.09-.04z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-leftarrow_16x16"><path d="M15 9H4.4l4.3 4.3-1.4 1.4L.6 8l6.7-6.7 1.4 1.4L4.4 7H15v2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-matrix"><path d="M6 1C3.2 1 1 3.2 1 6s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8C4.3 9 3 7.7 3 6s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zm2-3c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12 12c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zM6 13c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zm12-10c2.8 0 5-2.2 5-5s-2.2-5-5-5-5 2.2-5 5 2.2 5 5 5zm0-8c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3zm0 10c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-matrixdropdown"><path d="M7 4c0 1.7-1.3 3-3 3S1 5.7 1 4s1.3-3 3-3 3 1.3 3 3zm8 0c0 1.7-1.3 3-3 3S9 5.7 9 4s1.3-3 3-3 3 1.3 3 3zm-2 0c0-.6-.4-1-1-1s-1 .4-1 1 .4 1 1 1 1-.4 1-1zm4 0c0-1.7 1.3-3 3-3s3 1.3 3 3-1.3 3-3 3-3-1.3-3-3zm2 0c0 .6.4 1 1 1s1-.4 1-1-.4-1-1-1-1 .4-1 1zM7 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm-2 0c0-.6-.4-1-1-1s-1 .4-1 1 .4 1 1 1 1-.4 1-1zm7-3c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm8 0c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zM4 17c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm8 0c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm11 3c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm-2 0c0-.6-.4-1-1-1s-1 .4-1 1 .4 1 1 1 1-.4 1-1z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-matrixdynamic"><path d="M7 4c0 1.7-1.3 3-3 3S1 5.7 1 4s1.3-3 3-3 3 1.3 3 3zm8 0c0 1.7-1.3 3-3 3S9 5.7 9 4s1.3-3 3-3 3 1.3 3 3zm-2 0c0-.6-.4-1-1-1s-1 .4-1 1 .4 1 1 1 1-.4 1-1zm4 0c0-1.7 1.3-3 3-3s3 1.3 3 3-1.3 3-3 3-3-1.3-3-3zm2 0c0 .6.4 1 1 1s1-.4 1-1-.4-1-1-1-1 .4-1 1zM7 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm-2 0c0-.6-.4-1-1-1s-1 .4-1 1 .4 1 1 1 1-.4 1-1zm7-3c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm8 0c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zM5 17H3v2H1v2h2v2h2v-2h2v-2H5v-2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-microphone"><path d="M11 3.4C11 2.1 9.9 1 8.6 1h-.2C7.1 1 6 2.1 6 3.4V5h5V3.4zM8.4 10h.3C9.9 10 11 8.9 11 7.6V6H6v1.6C6 8.9 7.1 10 8.4 10z"></path><path d="M12 6v.9c0 2.2-1.6 4.1-3.5 4.1S5 9.1 5 6.9V6H4v1c0 2.5 1.8 4.6 4 4.9V14H6v1h5v-1H9v-2.1c2.2-.3 4-2.4 4-4.9V6h-1z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-more"><path d="M6 12c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm6-2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm8 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-multipletext"><path d="M20 1H4c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 8H4V3h16v6zm-6-2H6V5h8v2zm6 6H4c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-6c0-1.1-.9-2-2-2zm0 8H4v-6h16v6zm-6-2H6v-2h8v2z"></path></symbol><symbol viewBox="0 0 22 22" id="icon-navigation"><path d="M22 10h-3.1c-.5-3.6-3.3-6.5-6.9-6.9V0h-2v3.1c-3.6.4-6.5 3.3-6.9 6.9H0v2h3.1c.5 3.6 3.3 6.5 6.9 6.9V22h2v-3.1c3.6-.5 6.5-3.3 6.9-6.9H22v-2zm-11 7c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6z"></path></symbol><symbol viewBox="0 0 21 20" id="icon-next"><path d="M11.6.6L10.2 2l7 7H0v2h17.2l-7 7 1.4 1.4L21 10 11.6.6z" fill="#909090"></path></symbol><symbol viewBox="0 0 16 16" id="icon-nouislider"><path d="M0 10h16v2H0zM2 4v3l2 2 2-2V4zM10 4v3l2 2 2-2V4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-panel"><path d="M9 2v2H4v5H2V4c0-1.1.9-2 2-2h5zm11 0h-5v2h5v5h2V4c0-1.1-.9-2-2-2zM4 20v-5H2v5c0 1.1.9 2 2 2h5v-2H4zm16 0h-5v2h5c1.1 0 2-.9 2-2v-5h-2v5z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-paneldynamic"><path d="M2 8h10v1H2zM2 11h8l1-1H2zM9 16h2l-2-2zM14 9l-4 4 2 2 4-4zM3 3v2H2l2 2 2-2H5V3zM11 5V3H9v2H8l2 2 2-2z"></path><path d="M1 1h12v7l1-1V0H0v14h7l1-1H1z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-pencil"><path d="M15.3 2.8L13.2.7c-.5-.5-1-.7-1.6-.7-.6 0-1.2.2-1.6.7L2 8.6c-1.3 1.3-2 3.1-2 4.9v1.8c0 .4.3.7.8.7h1.8c1.8 0 3.6-.7 4.9-2l7.9-7.9c.8-.9.8-2.4-.1-3.3zM6 12.6c-.9.9-2.2 1.4-3.5 1.4H2v-.5c0-1.3.5-2.6 1.4-3.5L8 5.4 10.6 8 6 12.6zm7.9-7.9L12 6.6 9.4 4l1.9-1.9c.1-.1.2-.1.3-.1.1 0 .1 0 .2.1l2.1 2.1c.1.1.1.3 0 .5z"></path></symbol><symbol viewBox="0 0 21 20" id="icon-prev"><path d="M9.4.6L10.8 2l-7 7H21v2H3.8l7 7-1.4 1.4L0 10 9.4.6z" fill="#909090"></path></symbol><symbol viewBox="0 0 22 22" id="icon-preview"><path d="M11 2a9 9 0 1 1 0 18 9 9 0 0 1 0-18zm0-2a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm4 11L9 7v8l6-4z"></path></symbol><symbol viewBox="0 0 24 21" id="icon-property_grid_clear"><path d="M22.6 7.6l-6.2-6.2C16 1 15.5.8 15 .8c-.5 0-1 .2-1.4.6L1.4 13.6c-.8.8-.8 2 0 2.8L6 21h6l10.6-10.6c.7-.8.7-2.1 0-2.8zM11.1 19H6.8l-4-4 3.4-3.4 6.2 6.2-1.3 1.2zm2.7-2.6l-6.2-6.2L15 2.8 21.2 9l-7.4 7.4zM16 19h7v2h-9l2-2z" fill="#909090"></path></symbol><symbol viewBox="0 0 21 21" id="icon-property_grid_modal"><path d="M5.7 15.3c.4.4.4 1 0 1.4l-4 4c-.2.2-.4.3-.7.3-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l4-4c.4-.4 1-.4 1.4 0zM18.5 9l2.5 3.7-4.4.9-.9 4.4-3.7-2.5L8.3 18l-.9-4.4-4.4-.9L5.5 9 3 5.3l4.4-.9.9-4.4L12 2.5 15.7 0l.9 4.4 4.4.9L18.5 9zm-2.4 0l.7-1.1.8-1.2-1.5-.3-1.3-.3-.3-1.3-.3-1.5-1.2.8-1 .8-1.1-.7-1.2-.9-.3 1.5-.3 1.3-1.3.3-1.5.3.8 1.2.8 1.1-.7 1.1-.8 1.2 1.5.3 1.3.3.3 1.3.3 1.5 1.2-.8 1.1-.7 1.1.7 1.2.8.3-1.5.3-1.3 1.3-.3 1.5-.3-.8-1.2-.9-1.1z" fill="#909090"></path></symbol><symbol viewBox="0 0 24 24" id="icon-radiogroup"><path d="M12 4c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0-2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 8c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0-2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-ranking"><path d="M16 0v3H0V0h16zM0 11h10V8H0v3zm0-4h13V4H0v3zm0 8h7v-3H0v3z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-rating"><g clip-path="url(#rating-a)"><path d="M12 6.8l.9 2.9.4 1.4h4.5l-2.4 1.8-1.2.9.4 1.4.9 2.9-2.4-1.8-1.1-1-1.2.9L8.4 18l.9-2.9.4-1.4-1.2-.9L6.1 11h4.5l.4-1.4 1-2.8zm0-6.5L9.2 9H0l7.4 5.4-2.8 8.7 7.4-5.4 7.4 5.4-2.8-8.7L24 9h-9.2L12 .3z"></path></g></symbol><symbol viewBox="0 0 24 24" id="icon-redo"><path d="M7 8h12.6l-4-4L17 2.6 23.4 9 17 15.4 15.6 14l4-4H7c-2.2 0-4 1.8-4 4s1.8 4 4 4h1v2H7c-3.3 0-6-2.7-6-6s2.7-6 6-6z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-remove_16x16"><path d="M12 7v2H4V7h8zm4 1c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm-2 0c0-3.3-2.7-6-6-6S2 4.7 2 8s2.7 6 6 6 6-2.7 6-6z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-remove-item-value"><path d="M12 7v2H4V7h8zm4 1c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm-2 0c0-3.3-2.7-6-6-6S2 4.7 2 8s2.7 6 6 6 6-2.7 6-6z" fill="#E60A3E"></path></symbol><symbol viewBox="0 0 16 16" id="icon-rightarrow_16x16"><path d="M1 7h10.6L7.3 2.7l1.4-1.4L15.4 8l-6.7 6.7-1.4-1.4L11.6 9H1V7z"></path></symbol><symbol viewBox="0 0 20 20" id="icon-save"><path d="M18 0H2L0 2v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm-5 2v2H7V2h6zM6 18v-5h8v5H6zm12 0h-2v-7H4v7H2V2.83L2.83 2H5v4h10V2h3v16z" fill="#909090"></path></symbol><symbol viewBox="0 0 24 24" id="icon-search"><path d="M14 2c-4.4 0-8 3.6-8 8 0 1.8.6 3.5 1.7 4.9l-5.4 5.4c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l5.4-5.4c1.4 1.1 3.1 1.7 4.9 1.7 4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 14c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-selectpage"><path d="M23 11h-3.1c-.5-3.6-3.3-6.5-6.9-6.9V1h-2v3.1c-3.6.4-6.5 3.3-6.9 6.9H1v2h3.1c.5 3.6 3.3 6.5 6.9 6.9V23h2v-3.1c3.6-.5 6.5-3.3 6.9-6.9H23v-2zm-11 7c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-settings_16x16"><path d="M6.8 2C6.4.8 5.3 0 4 0 2.3 0 1 1.3 1 3s1.3 3 3 3c1.3 0 2.4-.8 2.8-2H15V2H6.8zM4 4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zm8 1c-1.3 0-2.4.8-2.8 2H1v2h8.2c.4 1.2 1.5 2 2.8 2 1.7 0 3-1.3 3-3s-1.3-3-3-3zm0 4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zm-6 1c-1.3 0-2.4.8-2.8 2H1v2h2.2c.4 1.2 1.5 2 2.8 2 1.3 0 2.4-.8 2.8-2H15v-2H8.8c-.4-1.2-1.5-2-2.8-2zm0 4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-settings"><path d="M9.9 4c-.5-1.7-2-3-3.9-3-2.2 0-4 1.8-4 4s1.8 4 4 4c1.9 0 3.4-1.3 3.9-3H22V4H9.9zM6 7c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3 8c-1.9 0-3.4 1.3-3.9 3H2v2h3.1c.4 1.7 2 3 3.9 3s3.4-1.3 3.9-3H22v-2h-9.1c-.5-1.7-2-3-3.9-3zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm9-13c-1.9 0-3.4 1.3-3.9 3H2v2h12.1c.4 1.7 2 3 3.9 3 2.2 0 4-1.8 4-4s-1.8-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-signaturepad"><path d="M24 17v2H9.1c.4-.6.8-1.3 1.1-2H24zM11.9 9C11 13.7 8.6 19.6 5 22.6c-1.2 1-3 0-3-1.5 0-.7.1-1.4.2-2.1H0v-2h2.8c1.5-4.1 4.8-7.9 7.4-9.4.2-1.5.2-2.8 0-3.7-.3-.6-.5-.9-.6-.9-.2 0-1.8-.1-5.8 5.7L2.2 7.6C5.5 2.8 7.9.7 9.9 1c2.1.2 2.6 3.6 2.3 5.9 2.1.1 2.6 1.3 2.7 3.4 1.3-1.2 3.2-2.4 4.3-1.1 1.6-.3 2.9 1.2 3.7 2.3l-1.6 1.2c-.9-1.3-1.5-1.5-1.7-1.5-.1 0-.1.1-.2.2-.4.6-.8 1.4-1.4 2.3-.3.4-.8.6-1.3.4-1.2-.6-.2-2 .1-2.9-1 .8-2.4 2.2-2.9 3.6-.1.7-.6 1.5-1.4 1.3-.9-.2-.8-1.2-.5-1.9 1.3-4.4.5-5.2.5-5.2 0-.1-.3-.2-.6 0zm-2.4 1.4C6.9 12.8 4.1 17.1 4 20.8c2.6-2.3 4.5-6.5 5.5-10.4z"></path></symbol><symbol viewBox="0 0 850 1630" id="icon-androidphone"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}.st2{fill:none;stroke:#404040;stroke-width:4;stroke-miterlimit:10}]]></style><g id="androidphone-Layer_1"><path class="st0" d="M771.1 38c22.6 0 41 18.4 41 41v1492c0 22.6-18.4 41-41 41h-695c-22.6 0-41-18.4-41-41V79c0-22.6 18.4-41 41-41h695m0-4h-695c-24.8 0-45 20.3-45 45v1492c0 24.8 20.3 45 45 45h695c24.8 0 45-20.3 45-45V79c0-24.7-20.2-45-45-45z"></path><path class="st1" d="M64.1 175.5h719v1279h-719z"></path><path class="st0" d="M782.6 176v1278h-718V176h718m1-1h-720v1280h720V175zM466 101.8c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5h-84c-3.6 0-6.5-2.9-6.5-6.5s2.9-6.5 6.5-6.5h84m0-4h-84c-5.8 0-10.5 4.7-10.5 10.5s4.7 10.5 10.5 10.5h84c5.8 0 10.5-4.7 10.5-10.5 0-5.7-4.7-10.5-10.5-10.5zM337 101.8c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5h-31c-3.6 0-6.5-2.9-6.5-6.5s2.9-6.5 6.5-6.5h31m0-4h-31c-5.8 0-10.5 4.7-10.5 10.5s4.7 10.5 10.5 10.5h31c5.8 0 10.5-4.7 10.5-10.5 0-5.7-4.7-10.5-10.5-10.5zM547.5 95.3c7.2 0 13 5.8 13 13s-5.8 13-13 13-13-5.8-13-13 5.8-13 13-13m0-4c-9.4 0-17 7.6-17 17s7.6 17 17 17 17-7.6 17-17-7.6-17-17-17z"></path><g><path class="st0" d="M825.5 300v244h-9V300h9m4-4h-17v252h17V296z"></path></g><g><path class="st0" d="M825.5 627v91h-9v-91h9m4-4h-17v99h17v-99z"></path></g><g><path class="st0" d="M175.8 1516h32v4h-32zM175.8 1529h32v4h-32zM175.8 1542h32v4h-32z"></path><path class="st2" d="M436.8 1545h-18c-2.8 0-5-2.3-5-5v-18c0-2.8 2.3-5 5-5h18c2.8 0 5 2.3 5 5v18c0 2.8-2.3 5-5 5z"></path><path class="st0" d="M671.4 1517.7l-2.8-2.9-16.6 16.6.2.1-.2.2 16.6 16.5 2.8-2.8-13.9-13.9z"></path></g></g></symbol><symbol viewBox="0 0 1070 1480" id="icon-androidtablet"><style><![CDATA[.st0{fill:transparent}.st1{fill:#404040}.st2,.st3{fill:none;stroke:#404040;stroke-width:6;stroke-miterlimit:10}.st3{stroke-width:4}]]></style><path class="st0" d="M135 101.1h799v1279H135z"></path><path class="st1" d="M933.5 101.6v1278h-798v-1278h798m1-1h-800v1280h800v-1280z"></path><path class="st2" d="M973.5 1456.1h-882c-28 0-51-22.9-51-51V76c0-28 22.9-51 51-51h882.1c28 0 51 22.9 51 51v1329.1c-.1 28-23 51-51.1 51z"></path><path class="st3" d="M971.4 1447.8H93.6c-24.8 0-45-20.3-45-45V78.3c0-24.8 20.3-45 45-45h877.8c24.8 0 45 20.3 45 45v1324.5c0 24.8-20.2 45-45 45z"></path><circle class="st3" cx="79.5" cy="740.6" r="12"></circle></symbol><symbol id="icon-device-l"><g fill="none" fill-rule="evenodd" transform="translate(-509 -409)"><g transform="rotate(-90 884.5 624)"><use fill="#000" filter="url(#device-l-a)" xlink:href="#device-l-b"></use><use fill="#FFF" xlink:href="#device-l-b"></use></g><rect width="70" height="8" x="540" y="628" fill="#F4F4F4" fill-rule="nonzero" transform="rotate(-90 575 632)" rx="4"></rect><circle cx="575" cy="585" r="4" fill="#F4F4F4" fill-rule="nonzero" transform="rotate(-90 575 585)"></circle><path fill="#F4F4F4" fill-rule="nonzero" d="M592 784V464h568v320z"></path><path fill="#E7E7E7" fill-rule="nonzero" d="M592 464v320h568V464H592zm569-1v322H591V463h570z"></path><circle cx="1186" cy="624" r="15" fill="#F4F4F4"></circle></g></symbol><symbol id="icon-device-p"><g fill="none" fill-rule="evenodd" transform="translate(-70 -408)"><use fill="#000" filter="url(#device-p-a)" xlink:href="#device-p-b"></use><use fill="#FFF" xlink:href="#device-p-b"></use><rect width="70" height="8" x="242" y="470" fill="#F4F4F4" fill-rule="nonzero" rx="4"></rect><circle cx="324" cy="474" r="4" fill="#F4F4F4" fill-rule="nonzero"></circle><path fill="#E7E7E7" fill-rule="nonzero" d="M124 490h322v570H124V490zm1 1v568h320V491H125z"></path><path fill="#F4F4F4" fill-rule="nonzero" d="M125 491h320v568H125z"></path><circle cx="285" cy="1084" r="15" fill="#F4F4F4"></circle></g></symbol><symbol viewBox="0 0 1837 2563" id="icon-ipad"><style><![CDATA[.st0{fill:transparent}.st1{fill:#404040}.st2,.st3{fill:none;stroke:#404040;stroke-width:6;stroke-miterlimit:10}.st3{stroke-width:4}]]></style><path class="st0" d="M154.2 255.5h1535v2047h-1535z"></path><path class="st1" d="M1688.7 256v2046h-1534V256h1534m1-1h-1536v2048h1536V255z"></path><path class="st2" d="M1697.2 2530.5h-1551c-60.5 0-110-49.5-110-110v-2280c0-60.5 49.5-110 110-110h1551c60.5 0 110 49.5 110 110v2280c0 60.5-49.5 110-110 110z"></path><path class="st3" d="M1688.4 2514H155c-57.8 0-105-47.3-105-105V149C50 91.3 97.2 44 155 44h1533.5c57.8 0 105 47.3 105 105v2260c-.1 57.8-47.3 105-105.1 105z"></path><circle class="st3" cx="921.7" cy="149.5" r="16.5"></circle><circle class="st2" cx="921.5" cy="2411.5" r="53.5"></circle><path class="st3" d="M937.2 2431.5h-31c-2.8 0-5-2.3-5-5v-31c0-2.8 2.3-5 5-5h31c2.8 0 5 2.3 5 5v31c0 2.8-2.2 5-5 5z"></path></symbol><symbol viewBox="0 0 945 1300" id="icon-ipadmini"><style><![CDATA[.st0,.st1{fill:none;stroke:#404040;stroke-width:6;stroke-miterlimit:10}.st1{stroke-width:4}.st2{fill:transparent}.st3{fill:#404040}]]></style><path class="st0" d="M836.4 1275.5H111.8c-44 0-80-36-80-80V106.8c0-44 36-80 80-80h724.6c44 0 80 36 80 80v1088.7c0 44-36 80-80 80z"></path><path class="st1" d="M833.4 1263.3H114.8c-38.5 0-70-31.5-70-70V108.9c0-38.5 31.5-70 70-70h718.6c38.5 0 70 31.5 70 70v1084.4c0 38.5-31.5 70-70 70z"></path><circle class="st1" cx="474" cy="86.6" r="8.2"></circle><circle class="st0" cx="474.1" cy="1216.4" r="26.7"></circle><path class="st1" d="M479.3 1226.4h-10.5c-2.8 0-5-2.3-5-5v-10.5c0-2.8 2.3-5 5-5h10.5c2.8 0 5 2.3 5 5v10.5c0 2.8-2.2 5-5 5z"></path><path class="st2" d="M90.6 139.5h767v1023h-767z"></path><path class="st3" d="M857.1 140v1022h-766V140h766m1-1h-768v1024h768V139z"></path></symbol><symbol viewBox="0 0 2008 2980" id="icon-ipadpro"><style><![CDATA[.st0,.st1{fill:none;stroke:#404040;stroke-width:6;stroke-miterlimit:10}.st1{stroke-width:4}.st2{fill:transparent}.st3{fill:#404040}]]></style><path class="st0" d="M1854.1 2909.5h-1699c-60.5 0-110-49.5-110-110v-2619c0-60.5 49.5-110 110-110h1699c60.5 0 110 49.5 110 110v2619c0 60.5-49.5 110-110 110z"></path><path class="st1" d="M1845.3 2893H163.8c-57.8 0-105-47.3-105-105V189c0-57.8 47.3-105 105-105h1681.5c57.8 0 105 47.3 105 105v2599c0 57.8-47.3 105-105 105z"></path><circle class="st1" cx="1004.6" cy="189.5" r="16.5"></circle><circle class="st0" cx="1004.6" cy="2790.3" r="53.5"></circle><path class="st1" d="M1020.1 2810.8h-31c-2.8 0-5-2.3-5-5v-31c0-2.8 2.3-5 5-5h31c2.8 0 5 2.3 5 5v31c0 2.8-2.3 5-5 5z"></path><path class="st2" d="M161.1 295.5h1687v2387h-1687z"></path><path class="st3" d="M1847.6 296v2386h-1686V296h1686m1-1h-1688v2388h1688V295z"></path></symbol><symbol viewBox="0 0 2360 3300" id="icon-ipadpro13"><style><![CDATA[.st0,.st1{fill:none;stroke:#404040;stroke-width:6;stroke-miterlimit:10}.st1{stroke-width:4}.st2{fill:transparent}.st3{fill:#404040}]]></style><path class="st0" d="M2219.2 3269.2H139.5c-60.5 0-110-49.5-110-110v-3024c0-60.5 49.5-110 110-110h2079.8c60.5 0 110 49.5 110 110v3024c-.1 60.5-49.6 110-110.1 110z"></path><path class="st1" d="M2208.5 3250.4H150.2c-57.8 0-105-47.3-105-105V145.7c0-57.7 47.3-105 105-105h2058.3c57.8 0 105 47.3 105 105v2999.7c0 57.7-47.3 105-105 105z"></path><circle class="st1" cx="1179.3" cy="163.7" r="16.5"></circle><circle class="st0" cx="1179.3" cy="3133.4" r="53.5"></circle><path class="st1" d="M1194.8 3153.9h-31c-2.8 0-5-2.3-5-5v-31c0-2.8 2.3-5 5-5h31c2.8 0 5 2.3 5 5v31c0 2.9-2.2 5-5 5z"></path><path class="st2" d="M155.8 285.7h2047v2731h-2047z"></path><path class="st3" d="M2202.3 286.2v2730h-2046v-2730h2046m1-1h-2048v2732h2048v-2732z"></path></symbol><symbol viewBox="0 0 730 1340" id="icon-iphone4"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M635.9 1300.5H100.7c-45.7 0-82.8-37.1-82.8-82.8v-1108c0-45.7 37.1-82.8 82.8-82.8H636c45.7 0 82.8 37.1 82.8 82.8v1108c-.1 45.6-37.2 82.8-82.9 82.8zM100.7 29.1c-44.4 0-80.6 36.1-80.6 80.6v1108c0 44.4 36.1 80.6 80.6 80.6H636c44.4 0 80.6-36.1 80.6-80.6v-1108c0-44.4-36.1-80.6-80.6-80.6H100.7z"></path><path class="st0" d="M366.9 71.1c-5 0-9.1-4.1-9.1-9.1s4.1-9.1 9.1-9.1S376 57 376 62c0 5.1-4.1 9.1-9.1 9.1zm0-15.9c-3.8 0-6.8 3.1-6.8 6.8 0 3.7 3.1 6.8 6.8 6.8 3.8 0 6.8-3.1 6.8-6.8 0-3.7-3-6.8-6.8-6.8zM269.3 116.5c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5 12.5 5.6 12.5 12.5-5.6 12.5-12.5 12.5zm0-22.7c-5.6 0-10.2 4.6-10.2 10.2s4.6 10.2 10.2 10.2 10.2-4.6 10.2-10.2c.1-5.6-4.5-10.2-10.2-10.2zM408.6 109.7h-84.5c-3.6 0-6.5-2.9-6.5-6.5s2.9-6.5 6.5-6.5h84.5c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5zm-84.5-10.8c-2.4 0-4.3 1.9-4.3 4.3s1.9 4.3 4.3 4.3h84.5c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3h-84.5zM368.3 1267.8c-23.5 0-42.5-19.1-42.5-42.5 0-23.5 19.1-42.5 42.5-42.5 23.5 0 42.5 19.1 42.5 42.5 0 23.5-19.1 42.5-42.5 42.5zm0-82.8c-22.2 0-40.3 18.1-40.3 40.3 0 22.2 18.1 40.3 40.3 40.3 22.2 0 40.3-18.1 40.3-40.3 0-22.2-18.1-40.3-40.3-40.3z"></path><path class="st0" d="M368.3 1276.2c-28.1 0-50.9-22.8-50.9-50.9s22.8-50.9 50.9-50.9 50.9 22.8 50.9 50.9c0 28.1-22.9 50.9-50.9 50.9zm0-99.6c-26.8 0-48.7 21.8-48.7 48.7 0 26.8 21.8 48.7 48.7 48.7 26.8 0 48.7-21.8 48.7-48.7-.1-26.8-21.9-48.7-48.7-48.7zM8.5 245.4H-.2v-60h8.7v60zM2 243.2h4.2v-55.6H2v55.6zM8.5 330.4H-.2v-60h8.7v60zM2 328.2h4.2v-55.6H2v55.6z"></path><g><path class="st1" d="M48.5 183.2h639v959h-639z"></path><path class="st0" d="M687 183.7v958H49v-958h638m1-1H48v960h640v-960z"></path></g><path class="st0" d="M8.7 344.7V327H2.1v-53.3h6.6v-14H4.2v9.5h-6.6v62.3h6.6v13.2z"></path><path class="st0" d="M645.5 13.7h-6.8l-9.5-.5V6.7h-62.3v6.6l-13.2.5H91.1c-47.9 0-86.8 39-86.8 86.8v83.7h-6.6v62.3h6.6v25.1h4.5V242H2.1v-53.3h6.6v-88.2c0-45.4 36.9-82.4 82.4-82.4h554.5C691 18.1 728 55 728 100.5v1127.3c0 45.4-36.9 82.4-82.4 82.4H91.1c-45.4 0-82.4-36.9-82.4-82.4V327.7H4.2v900.1c0 47.9 39 86.9 86.8 86.9h554.5c47.9 0 86.8-39 86.8-86.9V100.5c.1-47.8-38.9-86.8-86.8-86.8zm-74.2-2.5h53.3v2.5h-53.3v-2.5z"></path></symbol><symbol viewBox="0 0 750 1500" id="icon-iphone5"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M642.9 1473.8H107.7c-45.7 0-82.8-37.1-82.8-82.8V106c0-45.7 37.1-82.8 82.8-82.8H643c45.7 0 82.8 37.1 82.8 82.8v1285c-.1 45.6-37.2 82.8-82.9 82.8zM107.7 25.4c-44.4 0-80.6 36.1-80.6 80.6v1285c0 44.4 36.1 80.6 80.6 80.6H643c44.4 0 80.6-36.1 80.6-80.6V106c0-44.4-36.1-80.6-80.6-80.6H107.7z"></path><path class="st0" d="M373.9 67.4c-5 0-9.1-4.1-9.1-9.1s4.1-9.1 9.1-9.1 9.1 4.1 9.1 9.1c0 5.1-4.1 9.1-9.1 9.1zm0-15.9c-3.8 0-6.8 3.1-6.8 6.8s3.1 6.8 6.8 6.8c3.8 0 6.8-3.1 6.8-6.8s-3-6.8-6.8-6.8zM276.3 112.8c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5 12.5 5.6 12.5 12.5-5.6 12.5-12.5 12.5zm0-22.7c-5.6 0-10.2 4.6-10.2 10.2s4.6 10.2 10.2 10.2 10.2-4.6 10.2-10.2c.1-5.6-4.5-10.2-10.2-10.2zM415.6 106h-84.5c-3.6 0-6.5-2.9-6.5-6.5s2.9-6.5 6.5-6.5h84.5c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5zm-84.5-10.8c-2.4 0-4.3 1.9-4.3 4.3s1.9 4.3 4.3 4.3h84.5c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3h-84.5zM375.3 1441.1c-23.5 0-42.5-19.1-42.5-42.5 0-23.5 19.1-42.5 42.5-42.5 23.5 0 42.5 19.1 42.5 42.5 0 23.5-19.1 42.5-42.5 42.5zm0-82.8c-22.2 0-40.3 18.1-40.3 40.3 0 22.2 18.1 40.3 40.3 40.3 22.2 0 40.3-18.1 40.3-40.3 0-22.2-18.1-40.3-40.3-40.3z"></path><path class="st0" d="M375.3 1449.5c-28.1 0-50.9-22.8-50.9-50.9s22.8-50.9 50.9-50.9 50.9 22.8 50.9 50.9c0 28.1-22.9 50.9-50.9 50.9zm0-99.6c-26.8 0-48.7 21.8-48.7 48.7 0 26.8 21.8 48.7 48.7 48.7 26.8 0 48.7-21.8 48.7-48.7-.1-26.8-21.9-48.7-48.7-48.7z"></path><g><path class="st0" d="M14.5 241.7H5.8v-60h8.7v60zM8 239.5h4.2v-55.6H8v55.6zM14.5 389H5.8v-94.5h8.7V389zM8 386.8h4.2v-90H8v90zM14.5 501.9H5.8v-94.5h8.7v94.5zM8 499.6h4.2v-90H8v90z"></path></g><path class="st0" d="M652.5 1488H98.1c-47.9 0-86.8-39-86.8-86.9V503H4.6v-96.8h6.6v-16.1H4.6v-96.8h6.6v-50.6H4.6v-62.3h6.6V96.8C11.2 49 50.2 10 98.1 10h554.5c47.9 0 86.8 39 86.8 86.8v1304.3c0 47.9-39 86.9-86.9 86.9zM9.1 498.5h6.6v902.6c0 45.4 36.9 82.4 82.4 82.4h554.5c45.4 0 82.4-36.9 82.4-82.4V96.8c0-45.4-36.9-82.4-82.4-82.4H98.1c-45.4 0-82.4 36.9-82.4 82.4V185H9.1v53.3h6.6v59.5H9.1v87.8h6.6v25.1H9.1v87.8z"></path><g><path class="st1" d="M56 182h639v1135H56z"></path><path class="st0" d="M694 182v1134H56V182h638m1-1H55v1136h640V181z"></path></g></symbol><symbol viewBox="0 0 960 1750" id="icon-iphone6"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M479.8 103.4c-5 0-9.1-4.1-9.1-9.1s4.1-9.1 9.1-9.1 9.1 4.1 9.1 9.1c0 5.1-4.1 9.1-9.1 9.1zm0-15.9c-3.8 0-6.8 3.1-6.8 6.8 0 3.8 3.1 6.8 6.8 6.8 3.8 0 6.8-3.1 6.8-6.8 0-3.7-3-6.8-6.8-6.8zM382.2 148.8c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5 12.5 5.6 12.5 12.5-5.6 12.5-12.5 12.5zm0-22.7c-5.6 0-10.2 4.6-10.2 10.2s4.6 10.2 10.2 10.2 10.2-4.6 10.2-10.2c.1-5.6-4.5-10.2-10.2-10.2zM521.5 142H437c-3.6 0-6.5-2.9-6.5-6.5s2.9-6.5 6.5-6.5h84.5c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5zM437 131.2c-2.4 0-4.3 1.9-4.3 4.3s1.9 4.3 4.3 4.3h84.5c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3H437zM476 1675.1c-23.5 0-42.5-19.1-42.5-42.5 0-23.5 19.1-42.5 42.5-42.5 23.5 0 42.5 19.1 42.5 42.5 0 23.5-19 42.5-42.5 42.5zm0-82.8c-22.2 0-40.3 18.1-40.3 40.3 0 22.2 18.1 40.3 40.3 40.3 22.2 0 40.3-18.1 40.3-40.3s-18.1-40.3-40.3-40.3z"></path><path class="st0" d="M476 1683.5c-28.1 0-50.9-22.8-50.9-50.9s22.8-50.9 50.9-50.9 50.9 22.8 50.9 50.9-22.8 50.9-50.9 50.9zm0-99.6c-26.8 0-48.7 21.8-48.7 48.7 0 26.8 21.8 48.7 48.7 48.7 26.8 0 48.7-21.8 48.7-48.7 0-26.8-21.9-48.7-48.7-48.7z"></path><g><path class="st0" d="M801.9 1707.8H156.7c-45.7 0-82.8-37.1-82.8-82.8V142c0-45.7 37.1-82.8 82.8-82.8H802c45.7 0 82.8 37.1 82.8 82.8v1483c-.1 45.6-37.2 82.8-82.9 82.8zM156.7 61.4c-44.4 0-80.6 36.1-80.6 80.6v1483c0 44.4 36.1 80.6 80.6 80.6H802c44.4 0 80.6-36.1 80.6-80.6V142c0-44.4-36.1-80.6-80.6-80.6H156.7z"></path><path class="st0" d="M811.5 1722H147.1c-47.9 0-86.8-39-86.8-86.9V539h-6.6v-96.8h6.6v-16.1h-6.6v-96.8h6.6v-50.6h-6.6v-62.3h6.6v-83.7c0-47.9 39-86.8 86.8-86.8h664.5c47.9 0 86.8 39 86.8 86.8V1635c0 48-39 87-86.9 87zM58.1 534.5h6.6v1100.6c0 45.4 36.9 82.4 82.4 82.4h664.5c45.4 0 82.4-36.9 82.4-82.4V132.8c0-45.4-36.9-82.4-82.4-82.4H147.1c-45.4 0-82.4 36.9-82.4 82.4V221h-6.6v53.3h6.6v59.5h-6.6v87.8h6.6v25.1h-6.6v87.8z"></path></g><g><path class="st1" d="M104.5 208.5h749v1333h-749z"></path><path class="st0" d="M853 209v1332H105V209h748m1-1H104v1334h750V208z"></path></g></symbol><symbol viewBox="0 0 1330 2550" id="icon-iphone6plus"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M665.1 133.2c-8.3 0-15.1-6.8-15.1-15.1s6.8-15.1 15.1-15.1 15.1 6.8 15.1 15.1-6.8 15.1-15.1 15.1zm0-26.5c-6.3 0-11.4 5.1-11.4 11.4s5.1 11.4 11.4 11.4c6.3 0 11.4-5.1 11.4-11.4-.1-6.3-5.1-11.4-11.4-11.4zM502.5 208.8c-11.5 0-20.8-9.3-20.8-20.8s9.3-20.8 20.8-20.8 20.8 9.3 20.8 20.8-9.3 20.8-20.8 20.8zm0-37.8c-9.4 0-17 7.6-17 17s7.6 17 17 17 17-7.6 17-17c.1-9.4-7.6-17-17-17zM734.5 197.5H593.7c-6 0-10.8-4.9-10.8-10.8s4.9-10.8 10.8-10.8h140.8c6 0 10.8 4.9 10.8 10.8s-4.8 10.8-10.8 10.8zm-140.8-18c-3.9 0-7.1 3.2-7.1 7.1 0 3.9 3.2 7.1 7.1 7.1h140.8c3.9 0 7.1-3.2 7.1-7.1 0-3.9-3.2-7.1-7.1-7.1H593.7zM665 2426.1c-38 0-68.9-30.9-68.9-68.9s30.9-68.9 68.9-68.9 68.9 30.9 68.9 68.9-30.9 68.9-68.9 68.9zm0-134.2c-36 0-65.3 29.3-65.3 65.3s29.3 65.3 65.3 65.3 65.3-29.3 65.3-65.3-29.3-65.3-65.3-65.3z"></path><path class="st0" d="M665 2439.6c-45.5 0-82.5-37-82.5-82.5s37-82.5 82.5-82.5 82.5 37 82.5 82.5-37 82.5-82.5 82.5zm0-161.3c-43.5 0-78.8 35.4-78.8 78.8 0 43.5 35.4 78.8 78.8 78.8 43.5 0 78.8-35.4 78.8-78.8s-35.3-78.8-78.8-78.8z"></path><g><path class="st1" d="M125.5 315.5h1079v1919h-1079z"></path><path class="st0" d="M1204 316v1918H126V316h1078m1-1H125v1920h1080V315z"></path></g><g><path class="st0" d="M1119.5 42c38.3 0 74.4 15 101.7 42.3 27.3 27.3 42.3 63.4 42.3 101.7v2172c0 38.3-15 74.4-42.3 101.7s-63.4 42.3-101.7 42.3h-909c-38.3 0-74.4-15-101.7-42.3s-42.3-63.4-42.3-101.7V186c0-38.3 15-74.4 42.3-101.7S172.2 42 210.5 42h909m0-6h-909c-82.5 0-150 67.5-150 150v2172c0 82.5 67.5 150 150 150h909c82.5 0 150-67.5 150-150V186c0-82.5-67.5-150-150-150z"></path><path class="st0" d="M1121.5 58.7c33.5 0 65.1 13.1 89 37s37 55.5 37 89v2174.6c0 33.5-13.1 65.1-37 89s-55.5 37-89 37h-912c-33.5 0-65.1-13.1-89-37s-37-55.5-37-89V184.7c0-33.5 13.1-65.1 37-89s55.5-37 89-37h912m0-4h-912c-71.5 0-130 58.5-130 130v2174.6c0 71.5 58.5 130 130 130h912c71.5 0 130-58.5 130-130V184.7c0-71.5-58.5-130-130-130z"></path></g><g><path class="st0" d="M49 702v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V702c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM49 505v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V505c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM60 317.1v-4c-6.1.5-11 5.7-11 11.9v66c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9v-66c0-4.1 3.1-7.4 7-7.9z"></path></g></symbol><symbol viewBox="0 0 990 1860" id="icon-iphone8"><style><![CDATA[.st0{fill:#404040}.st1{fill:none;stroke:#404040;stroke-width:4;stroke-miterlimit:10}.st2{fill:transparent}]]></style><path class="st0" d="M560.7 189.4H437.9c-6 0-10.8-4.9-10.8-10.8s4.9-10.8 10.8-10.8h122.8c6 0 10.8 4.9 10.8 10.8s-4.8 10.8-10.8 10.8zm-122.8-18c-3.9 0-7.1 3.2-7.1 7.1 0 3.9 3.2 7.1 7.1 7.1h122.8c3.9 0 7.1-3.2 7.1-7.1 0-3.9-3.2-7.1-7.1-7.1H437.9z"></path><circle class="st1" cx="359.5" cy="178.6" r="15.5"></circle><circle class="st1" cx="499.3" cy="126.5" r="9.5"></circle><path class="st0" d="M781.5 60c38.3 0 74.4 15 101.7 42.3s42.3 63.4 42.3 101.7v1465c0 38.3-15 74.4-42.3 101.7-27.3 27.3-63.4 42.3-101.7 42.3h-565c-38.3 0-74.4-15-101.7-42.3s-42.3-63.4-42.3-101.7V204c0-38.3 15-74.4 42.3-101.7S178.2 60 216.5 60h565m0-6h-565c-82.5 0-150 67.5-150 150v1465c0 82.5 67.5 150 150 150h565c82.5 0 150-67.5 150-150V204c0-82.5-67.5-150-150-150z"></path><path class="st0" d="M782.5 77.7c33.5 0 65.1 13.1 89 37s37 55.5 37 89v1464.6c0 33.5-13.1 65.1-37 89s-55.5 37-89 37h-567c-33.5 0-65.1-13.1-89-37s-37-55.5-37-89V203.7c0-33.5 13.1-65.1 37-89s55.5-37 89-37h567m0-4h-567c-71.5 0-130 58.5-130 130v1464.6c0 71.5 58.5 130 130 130h567c71.5 0 130-58.5 130-130V203.7c0-71.5-58.5-130-130-130z"></path><g><path class="st0" d="M55 646v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V646c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM55 449v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V449c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM932 527.9v4c6.1-.5 11-5.7 11-11.9V399c0-6.3-4.9-11.4-11-11.9v4c3.9.5 7 3.9 7 7.9v121c0 4.1-3.1 7.4-7 7.9z"></path></g><g><circle class="st1" cx="493" cy="1689" r="66.5"></circle><circle class="st1" cx="493" cy="1689" r="55"></circle></g><g><path class="st2" d="M121.5 263.5h749v1333h-749z"></path><path class="st0" d="M870 264v1332H122V264h748m1-1H121v1334h750V263z"></path></g></symbol><symbol viewBox="0 0 1330 2550" id="icon-iphone8plus"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M668.1 133.2c-8.3 0-15.1-6.8-15.1-15.1s6.8-15.1 15.1-15.1 15.1 6.8 15.1 15.1-6.8 15.1-15.1 15.1zm0-26.5c-6.3 0-11.4 5.1-11.4 11.4s5.1 11.4 11.4 11.4c6.3 0 11.4-5.1 11.4-11.4-.1-6.3-5.1-11.4-11.4-11.4zM505.5 208.8c-11.5 0-20.8-9.3-20.8-20.8s9.3-20.8 20.8-20.8 20.8 9.3 20.8 20.8-9.3 20.8-20.8 20.8zm0-37.8c-9.4 0-17 7.6-17 17s7.6 17 17 17 17-7.6 17-17c.1-9.4-7.6-17-17-17zM737.5 197.5H596.7c-6 0-10.8-4.9-10.8-10.8s4.9-10.8 10.8-10.8h140.8c6 0 10.8 4.9 10.8 10.8s-4.8 10.8-10.8 10.8zm-140.8-18c-3.9 0-7.1 3.2-7.1 7.1 0 3.9 3.2 7.1 7.1 7.1h140.8c3.9 0 7.1-3.2 7.1-7.1 0-3.9-3.2-7.1-7.1-7.1H596.7z"></path><path d="M668 2426.1c-38 0-68.9-30.9-68.9-68.9s30.9-68.9 68.9-68.9 68.9 30.9 68.9 68.9-30.9 68.9-68.9 68.9zm0-134.2c-36 0-65.3 29.3-65.3 65.3s29.3 65.3 65.3 65.3 65.3-29.3 65.3-65.3-29.3-65.3-65.3-65.3z"></path><path d="M668 2439.6c-45.5 0-82.5-37-82.5-82.5s37-82.5 82.5-82.5 82.5 37 82.5 82.5-37 82.5-82.5 82.5zm0-161.3c-43.5 0-78.8 35.4-78.8 78.8 0 43.5 35.4 78.8 78.8 78.8 43.5 0 78.8-35.4 78.8-78.8s-35.3-78.8-78.8-78.8z"></path><g><path class="st1" d="M128.5 315.5h1079v1919h-1079z"></path><path class="st0" d="M1207 316v1918H129V316h1078m1-1H128v1920h1080V315z"></path></g><g><path class="st0" d="M1122.5 42c38.3 0 74.4 15 101.7 42.3 27.3 27.3 42.3 63.4 42.3 101.7v2172c0 38.3-15 74.4-42.3 101.7s-63.4 42.3-101.7 42.3h-909c-38.3 0-74.4-15-101.7-42.3s-42.3-63.4-42.3-101.7V186c0-38.3 15-74.4 42.3-101.7S175.2 42 213.5 42h909m0-6h-909c-82.5 0-150 67.5-150 150v2172c0 82.5 67.5 150 150 150h909c82.5 0 150-67.5 150-150V186c0-82.5-67.5-150-150-150z"></path><path class="st0" d="M1124.5 58.7c33.5 0 65.1 13.1 89 37s37 55.5 37 89v2174.6c0 33.5-13.1 65.1-37 89s-55.5 37-89 37h-912c-33.5 0-65.1-13.1-89-37s-37-55.5-37-89V184.7c0-33.5 13.1-65.1 37-89s55.5-37 89-37h912m0-4h-912c-71.5 0-130 58.5-130 130v2174.6c0 71.5 58.5 130 130 130h912c71.5 0 130-58.5 130-130V184.7c0-71.5-58.5-130-130-130z"></path></g><g><path class="st0" d="M52 702v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V702c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM52 505v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V505c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM63 317.1v-4c-6.1.5-11 5.7-11 11.9v66c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9v-66c0-4.1 3.1-7.4 7-7.9z"></path></g></symbol><symbol viewBox="0 0 1330 2680" id="icon-iphonex"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M1144 54.5c40.2 0 78 15.8 106.6 44.4s44.4 66.5 44.4 106.6v2268c0 40.2-15.8 78-44.4 106.6s-66.5 44.4-106.6 44.4H190.1c-40.2 0-78-15.8-106.6-44.4-28.6-28.6-44.4-66.5-44.4-106.6v-2268c0-40.2 15.8-78 44.4-106.6S150 54.5 190.1 54.5H1144m0-6H190.1c-86.4 0-157 70.7-157 157v2268c0 86.4 70.6 157 157 157H1144c86.4 0 157-70.6 157-157v-2268c0-86.3-70.7-157-157-157z"></path><path class="st0" d="M1151.1 82.5c31.9 0 62 12.5 84.7 35.3 22.7 22.7 35.3 52.8 35.3 84.7v2274c0 31.9-12.5 62-35.3 84.7-22.7 22.7-52.8 35.3-84.7 35.3h-968c-31.9 0-62-12.5-84.7-35.3-22.7-22.7-35.3-52.8-35.3-84.7v-2274c0-31.9 12.5-62 35.3-84.7 22.7-22.7 52.8-35.3 84.7-35.3h968m0-4h-968c-68.2 0-124 55.8-124 124v2274c0 68.2 55.8 124 124 124h968c68.2 0 124-55.8 124-124v-2274c0-68.2-55.8-124-124-124z"></path><path class="st0" d="M810.8 146.5c0-11.5 9.3-20.8 20.8-20.8s20.8 9.3 20.8 20.8-9.3 20.8-20.8 20.8-20.8-9.3-20.8-20.8zm3.8 0c0 9.4 7.6 17 17 17s17-7.6 17-17-7.6-17-17-17-17 7.6-17 17zM588.8 145.1c0-6 4.9-10.8 10.8-10.8h140.8c6 0 10.8 4.9 10.8 10.8s-4.9 10.8-10.8 10.8H599.6c-6 .1-10.8-4.8-10.8-10.8zm10.8-7.1c-3.9 0-7.1 3.2-7.1 7.1 0 3.9 3.2 7.1 7.1 7.1h140.8c3.9 0 7.1-3.2 7.1-7.1 0-3.9-3.2-7.1-7.1-7.1H599.6z"></path><g><path class="st1" d="M219.3 2557c-63 0-114.3-51.3-114.3-114.3V236.3c0-63 51.3-114.3 114.3-114.3h134.6c.7 0 1.3.3 1.8.7.5.5.7 1.1.7 1.8v26.9c0 27.9 22.7 50.6 50.6 50.6h519.8c27.9 0 50.6-22.7 50.6-50.6v-26.9c0-.7.3-1.3.7-1.8s1.1-.7 1.7-.7h134.8c63 0 114.3 51.3 114.3 114.3v2206.4c0 63-51.3 114.3-114.3 114.3H219.3z"></path><path class="st0" d="M1114.6 122.5c30.4 0 59 11.8 80.5 33.3s33.3 50.1 33.3 80.5v2206.4c0 30.4-11.8 59-33.3 80.5s-50.1 33.3-80.5 33.3H219.3c-30.4 0-59-11.8-80.5-33.3s-33.3-50.1-33.3-80.5V236.3c0-30.4 11.8-59 33.3-80.5s50.1-33.3 80.5-33.3h134.6c.5 0 1 .2 1.4.6.4.4.6.9.6 1.4v26.9c0 28.2 22.9 51.1 51.1 51.1h519.8c28.2 0 51.1-22.9 51.1-51.1v-26.9c0-.5.2-1 .6-1.4s.8-.6 1.4-.6h134.7m0-1H979.8c-1.6 0-2.9 1.3-2.9 3v26.9c0 27.5-22.5 50.1-50.1 50.1H407c-27.5 0-50.1-22.5-50.1-50.1v-26.9c0-1.7-1.3-3-3-3H219.3c-63.4 0-114.8 51.4-114.8 114.8v2206.4c0 63.4 51.4 114.8 114.8 114.8h895.4c63.4 0 114.8-51.4 114.8-114.8V236.3c0-63.4-51.5-114.8-114.9-114.8z"></path></g></symbol><symbol viewBox="0 0 1410 2980" id="icon-iphonexmax"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M1222.1 97.8c39.4 0 76.5 15.4 104.5 43.5s43.5 65.2 43.5 104.5v2489c0 39.4-15.4 76.5-43.5 104.5s-65.2 43.5-104.5 43.5H188.2c-39.4 0-76.5-15.4-104.5-43.5s-43.5-65.2-43.5-104.5v-2489c0-39.4 15.4-76.5 43.5-104.5s65.1-43.5 104.5-43.5h1033.9m0-6H188.2c-84.7 0-154 69.3-154 154v2489c0 84.7 69.3 154 154 154h1033.9c84.7 0 154-69.3 154-154v-2489c0-84.7-69.3-154-154-154z"></path><path class="st0" d="M1226.2 125.8c31.9 0 62 12.5 84.7 35.3 22.7 22.7 35.3 52.8 35.3 84.7v2489c0 31.9-12.5 62-35.3 84.7-22.7 22.7-52.8 35.3-84.7 35.3h-1042c-31.9 0-62-12.5-84.7-35.3-22.7-22.7-35.3-52.8-35.3-84.7v-2489c0-31.9 12.5-62 35.3-84.7 22.7-22.7 52.8-35.3 84.7-35.3h1042m0-4h-1042c-68.2 0-124 55.8-124 124v2489c0 68.2 55.8 124 124 124h1042c68.2 0 124-55.8 124-124v-2489c0-68.2-55.8-124-124-124z"></path><path class="st0" d="M844.3 171c0-11.5 9.3-20.8 20.8-20.8s20.8 9.3 20.8 20.8-9.3 20.8-20.8 20.8-20.8-9.3-20.8-20.8zm3.8 0c0 9.4 7.6 17 17 17s17-7.6 17-17-7.6-17-17-17-17 7.6-17 17zM622.3 169.6c0-6 4.9-10.8 10.8-10.8h140.8c6 0 10.8 4.9 10.8 10.8s-4.9 10.8-10.8 10.8H633.1c-6 .1-10.8-4.8-10.8-10.8zm10.8-7.1c-3.9 0-7.1 3.2-7.1 7.1 0 3.9 3.2 7.1 7.1 7.1h140.8c3.9 0 7.1-3.2 7.1-7.1 0-3.9-3.2-7.1-7.1-7.1H633.1z"></path><g><path class="st1" d="M199 2833.8c-63 0-114.3-51.3-114.3-114.3V261.1c0-63 51.3-114.3 114.3-114.3h193.7c.7 0 1.3.3 1.8.7s.7 1.1.7 1.8v26.9c0 27.9 22.7 50.6 50.6 50.6h519.8c27.9 0 50.6-22.7 50.6-50.6v-26.9c0-.7.2-1.3.7-1.8s1.1-.7 1.7-.7h192.8c63 0 114.3 51.3 114.3 114.3v2458.4c0 63-51.3 114.3-114.3 114.3H199z"></path><path class="st0" d="M1211.4 147.3c30.4 0 59 11.8 80.5 33.3s33.3 50.1 33.3 80.5v2458.4c0 30.4-11.8 59-33.3 80.5s-50.1 33.3-80.5 33.3H199c-30.4 0-59-11.8-80.5-33.3s-33.3-50.1-33.3-80.5V261.1c0-30.4 11.8-59 33.3-80.5s50.1-33.3 80.5-33.3h193.7c.5 0 1 .2 1.4.6.4.4.6.9.6 1.4v26.9c0 28.2 22.9 51.1 51.1 51.1h519.8c28.2 0 51.1-22.9 51.1-51.1v-26.9c0-.5.2-1 .6-1.4.4-.4.8-.6 1.4-.6h192.7m0-1h-192.8c-1.6 0-2.9 1.3-2.9 3v26.9c0 27.5-22.5 50.1-50.1 50.1H445.8c-27.5 0-50.1-22.5-50.1-50.1v-26.9c0-1.7-1.3-3-3-3H199c-63.4 0-114.8 51.4-114.8 114.8v2458.4c0 63.4 51.4 114.8 114.8 114.8h1012.4c63.4 0 114.8-51.4 114.8-114.8V261.1c0-63.4-51.4-114.8-114.8-114.8z"></path></g></symbol><symbol viewBox="0 0 1040 1620" id="icon-mssurface"><style><![CDATA[.st0{fill:transparent}.st1{fill:#404040}]]></style><path class="st0" d="M136.5 127.5h767v1365h-767z"></path><path class="st1" d="M903 128v1364H137V128h766m1-1H136v1366h768V127zM953.3 814.5v16h13.4l2-16zM953.3 810.9h15.9l2.8-21.4h-18.7z"></path><g><path class="st1" d="M933.8 810.9h15.9v-21.4H931zM934.3 814.5l2 16h13.4v-16z"></path></g><g><path class="st1" d="M983 32c11 0 20 9 20 20v1516c0 11-9 20-20 20H59c-11 0-20-9-20-20V52c0-11 9-20 20-20h924m0-4H59c-13.3 0-24 10.7-24 24v1516c0 13.3 10.7 24 24 24h924c13.3 0 24-10.7 24-24V52c0-13.3-10.7-24-24-24z"></path></g></symbol><symbol viewBox="0 0 480 845.2" id="icon-win10phone"><style><![CDATA[.st0{opacity:.5}.st1{fill:transparent}.st2{fill:#404040}.st3{fill:none;stroke:#404040;stroke-width:3;stroke-miterlimit:10}]]></style><g class="st0"><path class="st1" d="M76.5 138.1h329v567h-329z"></path><path class="st2" d="M405 138.6v566H77v-566h328m1-1H76v568h330v-568z"></path></g><path class="st2" d="M448 57.6c.5 0 1 .5 1 1v774c0 .5-.5 1-1 1H32c-.5 0-1-.5-1-1v-774c0-.5.5-1 1-1h416m0-4H32c-2.8 0-5 2.3-5 5v774c0 2.8 2.3 5 5 5h416c2.8 0 5-2.3 5-5v-774c0-2.7-2.2-5-5-5z"></path><path class="st2" d="M415.5 70.6c13.5 0 24.5 11 24.5 24.5v700c0 13.5-11 24.5-24.5 24.5h-351c-13.5 0-24.5-11-24.5-24.5v-700c0-13.5 11-24.5 24.5-24.5h351m0-2h-351C49.9 68.6 38 80.5 38 95.1v700c0 14.6 11.9 26.5 26.5 26.5h351c14.6 0 26.5-11.9 26.5-26.5v-700c0-14.6-11.9-26.5-26.5-26.5z"></path><path class="st2" d="M266 90.6c.5 0 1 .5 1 1s-.5 1-1 1h-55c-.5 0-1-.5-1-1s.5-1 1-1h55m0-2h-55c-1.6 0-3 1.4-3 3s1.4 3 3 3h55c1.6 0 3-1.4 3-3s-1.4-3-3-3zM452 201.6h5v121h-5zM452 379.6h5v61h-5zM108 741.6H97.6l5.9-5.9-4.3.1-5 5-2.1 2.1 2.1 2.1 5 5 4.3.1-5.5-5.5h10zM238 743.6h-9v7.5l9 1.2zM240 743.6v8.9l12 1.6v-10.5z"></path><g><path class="st2" d="M240 732.7v8.9h12v-10.5zM238 732.9l-9 1.2v7.5h9z"></path></g><g><circle class="st3" cx="382.5" cy="744.1" r="6"></circle><path class="st2" d="M373.3 753.8c-.6-.6-.6-1.5 0-2.1l4.4-4.4 2.1 2.1-4.4 4.4c-.6.6-1.6.6-2.1 0z"></path></g></symbol><symbol viewBox="0 0 16 16" id="icon-sortablejs"><path d="M7 1h9v2H7zM9 6h7v2H9zM11 11h5v2h-5zM5 10l1 1c-2.2 0-4-1.8-4-4 0-1.9 1.3-3.4 3-3.9v-2C2.2 1.5 0 4 0 7c0 3.3 2.7 6 5.9 6H6l-1 1 1 1 3-3-3-3-1 1z"></path></symbol><symbol viewBox="0 0 300 300" id="icon-start-designing-form"><style><![CDATA[.st0{fill:#1cb394}.st1{opacity:.3}.st2{fill:#010101}.st3{fill:#fff}.st4{fill:#d6d5d5}.st5{opacity:.3;fill:#010101}.st6{fill:#f8981f}]]></style><circle class="st0" cx="150.94" cy="149.35" r="134.33"></circle><g class="st1"><path class="st2" d="M126.8 73H88.44v135h106V73z"></path></g><path class="st3" d="M93.44 68h106v135h-106z"></path><path class="st4" d="M135.44 142h17v4h-17z"></path><circle class="st3" cx="124.96" cy="143.64" r="4.64"></circle><path class="st2" d="M124.82 149.35a5.52 5.52 0 0 1-5.51-5.51 5.52 5.52 0 0 1 5.51-5.51 5.52 5.52 0 0 1 5.51 5.51c0 3.04-2.47 5.51-5.51 5.51zm0-9.37c-2.13 0-3.86 1.73-3.86 3.86s1.73 3.86 3.86 3.86 3.86-1.73 3.86-3.86-1.73-3.86-3.86-3.86z"></path><circle class="st3" cx="124.82" cy="143.84" r=".83"></circle><path class="st0" d="M124.82 142.18c-.92 0-1.65.74-1.65 1.65 0 .92.74 1.65 1.65 1.65.92 0 1.65-.74 1.65-1.65 0-.91-.74-1.65-1.65-1.65z"></path><path class="st4" d="M174.44 142h17v4h-17z"></path><circle class="st3" cx="164.32" cy="143.64" r="4.64"></circle><path class="st2" d="M164.25 149.35a5.52 5.52 0 0 1-5.51-5.51 5.52 5.52 0 0 1 5.51-5.51 5.52 5.52 0 0 1 5.51 5.51c.01 3.04-2.46 5.51-5.51 5.51zm0-9.37c-2.13 0-3.86 1.73-3.86 3.86s1.73 3.86 3.86 3.86 3.86-1.73 3.86-3.86a3.85 3.85 0 0 0-3.86-3.86z"></path><g><circle class="st3" cx="164.25" cy="143.84" r=".83"></circle><path class="st0" d="M164.25 142.18c-.92 0-1.65.74-1.65 1.65 0 .92.74 1.65 1.65 1.65.92 0 1.65-.74 1.65-1.65.01-.91-.73-1.65-1.65-1.65z"></path></g><g><path class="st4" d="M174.44 157h17v4h-17z"></path><circle class="st3" cx="164.32" cy="159.11" r="4.64"></circle><path class="st2" d="M164.25 164.8a5.52 5.52 0 0 1-5.51-5.51 5.52 5.52 0 0 1 5.51-5.51c3.04 0 5.51 2.48 5.51 5.51s-2.46 5.51-5.51 5.51zm0-9.38c-2.13 0-3.86 1.73-3.86 3.86s1.73 3.86 3.86 3.86 3.86-1.73 3.86-3.86a3.85 3.85 0 0 0-3.86-3.86z"></path><g><circle class="st3" cx="164.25" cy="159.28" r=".83"></circle><path class="st0" d="M164.25 157.62c-.92 0-1.65.74-1.65 1.65 0 .92.74 1.65 1.65 1.65.92 0 1.65-.74 1.65-1.65.01-.9-.73-1.65-1.65-1.65z"></path></g></g><g><path class="st4" d="M135.44 157h17v4h-17z"></path><circle class="st3" cx="124.96" cy="159.11" r="4.64"></circle><path class="st2" d="M124.82 164.8a5.52 5.52 0 0 1-5.51-5.51 5.52 5.52 0 0 1 5.51-5.51 5.52 5.52 0 0 1 5.51 5.51 5.52 5.52 0 0 1-5.51 5.51zm0-9.38c-2.13 0-3.86 1.73-3.86 3.86s1.73 3.86 3.86 3.86 3.86-1.73 3.86-3.86-1.73-3.86-3.86-3.86z"></path><g><circle class="st3" cx="124.82" cy="159.28" r=".83"></circle><path class="st0" d="M124.82 157.62c-.92 0-1.65.74-1.65 1.65 0 .92.74 1.65 1.65 1.65.92 0 1.65-.74 1.65-1.65s-.74-1.65-1.65-1.65z"></path></g></g><g><path class="st3" d="M120.44 83h9v9h-9z"></path><path class="st2" d="M129.44 84v8h-8v-8h8m2-2h-12v12h12V82z"></path><path class="st4" d="M137.44 82h54v4h-54zM137.44 90h54v4h-54z"></path><path class="st0" d="M132.11 84.75l-.98-.97-4.96 4.96-2.31-2.32-.98.97 3.29 3.3z"></path><path class="st3" d="M120.44 100h9v9h-9z"></path><path class="st2" d="M129.44 101v8h-8v-8h8m2-2h-12v12h12V99z"></path><path class="st0" d="M132.11 101.75l-.98-.97-4.96 4.96-2.31-2.32-.98.97 3.29 3.3z"></path><path class="st3" d="M120.44 117h9v9h-9z"></path><path class="st2" d="M129.44 118v8h-8v-8h8m2-2h-12v12h12v-12z"></path><path class="st0" d="M132.11 118.75l-.98-.97-4.96 4.96-2.31-2.32-.98.97 3.29 3.3z"></path><g><path class="st4" d="M137.44 103h54v4h-54z"></path></g><g><path class="st4" d="M137.44 116h54v4h-54zM137.44 124h27v4h-27z"></path></g></g><g><path class="st4" d="M104.44 93h-2v-8.1a8.23 8.23 0 0 1-3 1.63v-1.75c.57-.18 1.19-.52 1.86-1.02.67-.5 1.13-1.08 1.37-1.75h1.77V93zM108.44 93v-2h2v2h-2z"></path></g><g><path class="st4" d="M106.44 147v2H98.9c.08-.76.33-1.47.74-2.15.41-.68 1.22-1.57 2.42-2.69.97-.9 1.57-1.52 1.79-1.84.3-.44.44-.88.44-1.32 0-.48-.13-.85-.39-1.11-.26-.26-.61-.39-1.07-.39-.45 0-.81.14-1.07.41-.27.27-.42.72-.46 1.35l-2.15-.21c.13-1.19.53-2.04 1.2-2.55.67-.52 1.52-.77 2.53-.77 1.11 0 1.98.3 2.61.9.63.6.95 1.34.95 2.23 0 .51-.09.99-.27 1.44-.18.46-.47.94-.86 1.44-.26.33-.73.81-1.41 1.43-.68.62-1.11 1.04-1.29 1.24-.18.2-.33.4-.44.6h4.27zM108.44 149v-2h2v2h-2z"></path></g><g><path class="st4" d="M98.83 185.21l2.08-.25c.07.53.24.94.54 1.22.29.28.64.42 1.06.42.44 0 .82-.17 1.12-.5.3-.34.46-.79.46-1.36 0-.54-.15-.97-.44-1.29-.29-.32-.65-.47-1.06-.47-.28 0-.6.05-.99.16l.24-1.75c.58.02 1.03-.11 1.33-.38.31-.27.46-.62.46-1.07 0-.38-.11-.68-.34-.9-.22-.22-.52-.34-.9-.34-.37 0-.68.13-.94.38-.26.26-.42.63-.47 1.12l-1.98-.34c.14-.68.35-1.22.62-1.63.28-.41.67-.72 1.16-.96.5-.23 1.05-.35 1.67-.35 1.06 0 1.9.34 2.54 1.01.53.55.79 1.17.79 1.87 0 .98-.54 1.77-1.61 2.36.64.14 1.16.45 1.54.93.39.48.58 1.06.58 1.74 0 .98-.36 1.82-1.08 2.52-.72.69-1.61 1.04-2.69 1.04-1.02 0-1.86-.29-2.53-.88s-1.05-1.35-1.16-2.3zM108.44 188v-2h2v2h-2z"></path></g><path class="st4" d="M119.44 177h72v11h-72z"></path><circle class="st5" cx="198.6" cy="206.24" r="35.15"></circle><g><circle class="st6" cx="203.44" cy="203" r="35"></circle><path class="st3" d="M203.44 226c-2.2 0-4-1.8-4-4v-38c0-2.2 1.8-4 4-4s4 1.8 4 4v38c0 2.2-1.8 4-4 4z"></path><path class="st3" d="M180.44 203c0-2.2 1.8-4 4-4h38c2.2 0 4 1.8 4 4s-1.8 4-4 4h-38c-2.2 0-4-1.8-4-4z"></path></g></symbol><symbol viewBox="0 0 16 16" id="icon-switchactive_16x16"><path d="M11 5c1.7 0 3 1.3 3 3s-1.3 3-3 3H5c-1.7 0-3-1.3-3-3s1.3-3 3-3h6zm0-2H5C2.2 3 0 5.2 0 8s2.2 5 5 5h6c2.8 0 5-2.2 5-5s-2.2-5-5-5zm0 3c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-switchinactive_16x16"><path d="M11 5c1.7 0 3 1.3 3 3s-1.3 3-3 3H5c-1.7 0-3-1.3-3-3s1.3-3 3-3h6zm0-2H5C2.2 3 0 5.2 0 8s2.2 5 5 5h6c2.8 0 5-2.2 5-5s-2.2-5-5-5zM5 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-tagbox"><path d="M15 11H0V5h15v6zM1 10h13V6H1v4z"></path><path d="M2 7h4v2H2zM7 7h4v2H7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-text"><path d="M20 6H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H4V8h16v8zm-6-3H6v-2h8v2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-undo"><path d="M17 8H4.4l4-4L7 2.6.6 9 7 15.4 8.4 14l-4-4H17c2.2 0 4 1.8 4 4s-1.8 4-4 4h-1v2h1c3.3 0 6-2.7 6-6s-2.7-6-6-6z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-visible"><path d="M12 4C7.2 4 3 7.2.5 12 3 16.8 7.2 20 12 20s8.9-3.2 11.5-8C20.9 7.2 16.7 4 12 4zm0 14c-3.5 0-6.9-2.2-9.2-6C5.1 8.2 8.5 6 12 6c3.5 0 6.9 2.2 9.2 6-2.3 3.8-5.7 6-9.2 6zm0-11c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.3-5-5-5zm0 8c-1.7 0-3-1.3-3-3 0-.3 0-.5.1-.7l2.9.7-1.7-2.5c.5-.3 1-.5 1.7-.5 1.7 0 3 1.3 3 3s-1.4 3-3 3z"></path></symbol></svg>'},"./src/svgbundle.ts":
532
+ /*! no static exports found */function(e,t){e.exports='<svg style="display:none;"><defs><clipPath id="duplicate_16x16-a"> <path d="M0 0h16v16H0z"></path></clipPath><clipPath id="edit_16x16-a"> <path d="M0 0h16v16H0z"></path></clipPath><clipPath id="rating-a"> <path d="M0 0h24v24H0z"></path></clipPath><rect id="device-l-b" width="330" height="651" x="719.5" y="298.5" rx="20"> </rect><filter id="device-l-a" width="145.5%" height="123%" x="-22.7%" y="-11.5%" filterUnits="objectBoundingBox"> <feOffset in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="25" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" in="shadowBlurOuter1"></feColorMatrix></filter><rect id="device-p-b" width="330" height="651" x="120" y="458" rx="20"> </rect><filter id="device-p-a" width="145.5%" height="123%" x="-22.7%" y="-11.5%" filterUnits="objectBoundingBox"> <feOffset in="SourceAlpha" result="shadowOffsetOuter1"></feOffset><feGaussianBlur stdDeviation="25" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur><feColorMatrix values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" in="shadowBlurOuter1"></feColorMatrix></filter></defs><symbol viewBox="0 0 16 16" id="icon-add_16x16"><path d="M9 7h3v2H9v3H7V9H4V7h3V4h2v3zm7 1c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm-2 0c0-3.3-2.7-6-6-6S2 4.7 2 8s2.7 6 6 6 6-2.7 6-6z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-add-lg"><path d="M13 11h4v2h-4v4h-2v-4H7v-2h4V7h2v4zm11 1c0 6.6-5.4 12-12 12S0 18.6 0 12 5.4 0 12 0s12 5.4 12 12zm-2 0c0-5.5-4.5-10-10-10S2 6.5 2 12s4.5 10 10 10 10-4.5 10-10z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-add"><path d="M13 11h4v2h-4v4h-2v-4H7v-2h4V7h2v4zm10 1c0 6.1-4.9 11-11 11S1 18.1 1 12 5.9 1 12 1s11 4.9 11 11zm-2 0c0-5-4-9-9-9s-9 4-9 9 4 9 9 9 9-4 9-9z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-apply"><path d="M12 1C5.9 1 1 5.9 1 12s4.9 11 11 11 11-4.9 11-11S18.1 1 12 1zm0 20c-5 0-9-4-9-9s4-9 9-9 9 4 9 9-4 9-9 9zm4.3-13l1.4 1.4-7.7 7.7-3.7-3.7L7.7 12l2.3 2.3L16.3 8z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-arrow-down"><path d="M17.01 11.59l-4 4V6h-2v9.59l-4-4L5.6 13l6.41 6.41L18.43 13l-1.42-1.41z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-arrow-left_16x16"><path d="M15 9H4.4l4.3 4.3-1.4 1.4L.6 8l6.7-6.7 1.4 1.4L4.4 7H15v2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-arrow-left"><path d="M10.4 2.6L11.8 4l-7 7H22v2H4.8l7 7-1.4 1.4L1 12l9.4-9.4z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-arrow-right_16x16"><path d="M1 7h10.6L7.3 2.7l1.4-1.4L15.4 8l-6.7 6.7-1.4-1.4L11.6 9H1V7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-arrow-right"><path d="M13.6 2.6L12.2 4l7 7H2v2h17.2l-7 7 1.4 1.4L23 12l-9.4-9.4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-arrow-up"><path d="M18.43 11.01L12.01 4.6 5.6 11.01l1.41 1.42 4-4v9.58h2V8.43l4 4 1.42-1.42z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-boolean"><path d="M7 11h10c2.8 0 5-2.2 5-5s-2.2-5-5-5H7C4.2 1 2 3.2 2 6s2.2 5 5 5zm0-8h10c1.7 0 3 1.3 3 3s-1.3 3-3 3H7C5.3 9 4 7.7 4 6s1.3-3 3-3zM5 6c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm14 12c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-5H7c-2.8 0-5 2.2-5 5s2.2 5 5 5h10c2.8 0 5-2.2 5-5s-2.2-5-5-5zm0 8H7c-1.7 0-3-1.3-3-3s1.3-3 3-3h10c1.7 0 3 1.3 3 3s-1.3 3-3 3z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-change-question-type_16x16"><path d="M15 2v5h-5l2-2c-.9-1.2-2.4-2-4-2-2.8 0-5 2.2-5 5H1c0-3.9 3.1-7 7-7 2.2 0 4.1 1 5.4 2.6L15 2zM8 13c-1.6 0-3.1-.8-4-2l2-2H1v5l1.6-1.6C3.9 14 5.8 15 8 15c3.9 0 7-3.1 7-7h-2c0 2.8-2.2 5-5 5z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-checkbox"><path d="M19 8.9l2-2.8V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14.1L20.8.6l1.6 1.2-11.3 15.7L6.6 13 8 11.6l2.9 2.9L17.7 5H5v14h14V8.9z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-checked"><path d="M9 20.1L1 12l2.1-2.1 5.9 6L20.9 4 23 6.1l-14 14z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-clear_16x16"><path d="M13.35 3.35l-.7-.7-4.6 4.6-4.7-4.6-.7.7 4.6 4.7-4.6 4.6.7.7 4.7-4.6 4.6 4.6.7-.7-4.6-4.6 4.6-4.7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-clear"><path d="M22.6 8.6l-6.2-6.2c-.4-.4-.9-.6-1.4-.6-.5 0-1 .2-1.4.6L1.4 14.6c-.8.8-.8 2 0 2.8L6 22h6l10.6-10.6c.7-.8.7-2.1 0-2.8zM11.1 20H6.8l-4-4 3.4-3.4 6.2 6.2-1.3 1.2zm2.7-2.6l-6.2-6.2L15 3.8l6.2 6.2-7.4 7.4zM16 20h7v2h-9l2-2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-collapse_16x16"><path d="M2 6l1-1 5 5 5-5 1 1-6 6-6-6z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-collapse-detail_16x16"><path d="M12 9H4V7h8v2zm4-9v16H0V0h16zm-2 2H2v12h12V2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-collapse-detail-light_16x16"><path d="M13 7H3v2h10V7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-collapse-panel"><path d="M13 5.6l6.4 6.4-6.4 6.4-1.4-1.4 4-4H2v-2h13.6l-4-4L13 5.6zM20 2v20h2V2h-2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-comment"><path d="M20 3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H4V5h16v14zM18 9H6V7h12v2zm0 4H6v-2h12v2zm-6 4H6v-2h6v2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-custom-question"><path d="M12 4c4.41 0 8 3.14 8 7a6.529 6.529 0 0 1-2.27 4.88 1.999 1.999 0 0 0-.65 1.59 2 2 0 0 0-1-.26 2.17 2.17 0 0 0-.75.14A8.87 8.87 0 0 1 12 18c-4.41 0-8-3.14-8-7s3.59-7 8-7zm0-2C6.48 2 2 6 2 11s4.48 9 10 9a11 11 0 0 0 4.09-.79L20 22l-.93-4.64A8.55 8.55 0 0 0 22 11c0-5-4.48-9-10-9z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-delete_16x16"><path d="M15 2h-4V1c0-.6-.4-1-1-1H7c-.6 0-1 .4-1 1v1H2v2h1v10c0 1.1.9 2 2 2h7c1.1 0 2-.9 2-2V4h1V2zM7 1h3v1H7V1zm5 13H5V4h7v10zm-5-1H6V5h1v8zm2 0H8V5h1v8zm2 0h-1V5h1v8z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-description-hide"><path d="M2.3 3.7L3.6 5C2 6.9 1 9.3 1 12c0 6.1 4.9 11 11 11 2.7 0 5.1-1 7-2.6l1.3 1.3 1.4-1.4-18-18-1.4 1.4zM12 21c-5 0-9-4-9-9 0-2.1.7-4.1 2-5.6l5.8 5.8c-.1.1-.2.2-.2.3-.1.2-.2.5-.2.8 0 .3.1.6.2.8.1.2.2.4.3.7.1.2.3.3.5.3H11.7c.1 0 .2 0 .4-.1.3-.1.5-.3.5-.5v-.4l4.9 4.9c-1.4 1.3-3.4 2-5.5 2zM7.8 4.1L6.3 2.6C8 1.6 9.9 1 12 1c6.1 0 11 4.9 11 11 0 2.1-.6 4-1.6 5.7l-1.5-1.5C20.6 15 21 13.5 21 12c0-5-4-9-9-9-1.5 0-3 .4-4.2 1.1zm5.7 5.7c0-.1.1-.2.1-.4 0-.4-.1-.8-.4-1-.4-.4-.8-.5-1.2-.5h-.4l-1.5-1.5c.1 0 .1-.1.2-.1 1.2-.4 2.4-.4 3.3-.2.5.1.9.3 1.3.5.7.7 1.1 1.5 1.1 2.7 0 .8-.3 1.5-.8 2.1l-1.7-1.6zm-1.7 6.1c.7 0 1.2.3 1.5.9.1.2.1.4.1.6 0 .4-.2.8-.4 1.1-.3.3-.7.4-1.1.4-.4 0-.8-.2-1.1-.4-.3-.3-.4-.7-.4-1.1 0-.4.2-.8.4-1.1.2-.3.6-.4 1-.4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-description"><path d="M12 1C5.9 1 1 5.9 1 12s4.9 11 11 11 11-4.9 11-11S18.1 1 12 1zm0 20c-5 0-9-4-9-9s4-9 9-9 9 4 9 9-4 9-9 9zm1.3-4.2c.1.2.1.4.1.6 0 .4-.2.8-.4 1.1-.3.3-.7.4-1.1.4-.4 0-.8-.2-1.1-.4-.3-.3-.4-.7-.4-1.1 0-.4.2-.8.4-1.1.3-.3.7-.5 1.1-.5.6.1 1.1.4 1.4 1zM16 9.3c0 1.1-.5 1.9-1.4 2.6-.2.2-.5.3-.7.5l-.6.4c-.3.2-.4.3-.4.3-.1.1-.1.2-.1.3 0 .2-.1.4-.1.7v.4c-.1.2-.3.4-.5.5-.2.1-.3.1-.4.1H11.5c-.2-.1-.4-.2-.5-.3-.1-.2-.3-.4-.3-.7-.1-.3-.2-.5-.2-.8 0-.3.1-.6.2-.8.1-.2.3-.4.5-.6.2-.2.4-.3.6-.4l.6-.3c.6-.3.8-.5.9-.6.3-.3.4-.7.4-1.1 0-.4-.1-.8-.4-1-.5-.5-.9-.6-1.3-.6-1.1 0-1.4.5-1.4.9-.2.5-.2.6-.2.6v.4l.1.4-.3.1c-.6.3-1.1.3-1.5.1l-.4-.4c-.2-.3-.3-.6-.3-1s.1-.7.2-1c.1-.3.3-.5.5-.7.2-.2.4-.4.7-.6.3-.1.6-.3.9-.4 1.2-.4 2.4-.4 3.3-.2.5.1.9.3 1.3.5.7.7 1.1 1.5 1.1 2.7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-device-desktop"><path d="M22 17V2H2v15h8v2a3 3 0 0 1-3 3h10a3 3 0 0 1-3-3v-2h8zM4 4h16v11H4V4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-device-phone"><path d="M16 18H8V6h8v12zm0-16H8a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-device-rotate"><path d="M23.41 5.996L18 11.406l-1.41-1.41 3-3H17a13 13 0 0 0-13 13v2H2v-2a15 15 0 0 1 15-15h2.59l-3-3L18 .586l5.41 5.41z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-device-tablet"><path d="M20 18H4V6h16v12zm1-14H3a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h18a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-drag-area-indicator"><path d="M13 6c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zM9 4c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-drop-down-arrow"><path d="M12 15l5-5H7l5 5z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-dropdown"><path d="M20 2H4c-1.1 0-2 .9-2 2v2c0 1.1.9 2 2 2v12c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H6V8h14v12zM4 6V4h16v2H4zm14 6H8v-2h10v2zm0 4H8v-2h10v2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-duplicate_16x16"><g clip-path="url(#duplicate_16x16-a)"><path d="M14 0H6a2 2 0 0 0-2 2v2H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-2h2a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zm-4 14H2V6h8v8zm4-4h-2V6a2 2 0 0 0-2-2H6V2h8v8z"></path></g></symbol><symbol viewBox="0 0 16 16" id="icon-edit_16x16"><g clip-path="url(#edit_16x16-a)"><path d="M15.3 2.8L13.2.7c-.5-.5-1-.7-1.6-.7-.6 0-1.2.2-1.6.7L2 8.6c-1.3 1.3-2 3.1-2 4.9v1.8c0 .4.3.7.8.7h1.8c1.8 0 3.6-.7 4.9-2l7.9-7.9c.8-.9.8-2.4-.1-3.3zM6 12.6c-.9.9-2.2 1.4-3.5 1.4H2v-.5c0-1.3.5-2.6 1.4-3.5L8 5.4 10.6 8 6 12.6zm7.9-7.9L12 6.6 9.4 4l1.9-1.9c.1-.1.2-.1.3-.1.1 0 .1 0 .2.1l2.1 2.1c.1.1.1.3 0 .5z"></path></g></symbol><symbol viewBox="0 0 24 24" id="icon-edit"><path d="M21.9 4.8L19.1 2c-.6-.5-1.3-.8-2.1-.8s-1.5.3-2.1.9L4.6 12.3C2.9 14 2 16.3 2 18.7V21c0 .6.4 1 1 1h2.3c2.4 0 4.7-.9 6.4-2.6L21.9 9.1c1.2-1.2 1.2-3.1 0-4.3zM10.2 17.9C8.9 19.2 7.1 20 5.3 20H4v-1.3c0-1.9.7-3.6 2.1-4.9l6.2-6.2 4.2 4.2-6.3 6.1zM20.5 7.7l-2.7 2.7-4.2-4.2 2.7-2.7c.2-.3.5-.3.7-.3.2 0 .5 0 .7.3l2.8 2.8c.4.3.4 1 0 1.4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-editing-finish"><path d="M2.3 3.7l5.5 5.5-3.2 3.2c-1.7 1.7-2.6 4-2.6 6.4v2.3c0 .6.4 1 1 1h2.3c2.4 0 4.7-.9 6.4-2.6l3.2-3.2 5.5 5.5 1.4-1.4-18-18-1.5 1.3zm7.9 14.2C8.9 19.2 7.1 20 5.3 20H4v-1.3c0-1.9.7-3.6 2.1-4.9l3.2-3.2 4.2 4.2-3.3 3.1zm11.7-8.8l-4.7 4.7-1.4-1.4 4.7-4.7c.4-.4.4-1 0-1.4l-2.8-2.8c-.2-.3-.5-.3-.7-.3-.2 0-.5 0-.7.3l-4.7 4.7-1.4-1.4 4.7-4.7c.6-.6 1.3-.9 2.1-.9s1.5.3 2.1.9l2.8 2.8c1.2 1.1 1.2 3 0 4.2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-expand_16x16"><path d="M6 14l-1-1 5-5-5-5 1-1 6 6-6 6z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-expand-detail_16x16"><path d="M7 9H4V7h3V4h2v3h3v2H9v3H7V9zm9-9v16H0V0h16zm-2 2H2v12h12V2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-expand-detail-light_16x16"><path d="M13 7H9V3H7v4H3v2h4v4h2V9h4V7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-expand-panel"><path d="M19.996 2h-5v20h7V2h-2zm0 18h-3V4h3v16zm-15.59-9h8.59v2h-8.59l4 4-1.41 1.41L.586 12l6.41-6.41L8.406 7l-4 4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-export"><path d="M6 10.406l-1.41-1.41L12 1.586l7.41 7.41-1.41 1.41-5-5v12.59h-2V5.406l-5 5zm-4 9.59v2h20v-2H2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-expression"><path d="M20 .5c-.6-.3-1.3-.5-2.2-.5-1.9 0-3.5.8-4.8 2.3-1.5 1.8-2.9 4.8-4 9.2H6.2L5.8 13h2.7l-.2 1c-.1.4-.2.9-.4 1.7-.2.7-.3 1.4-.4 1.9-.7 3-1.4 4.3-1.9 4.8 0-.3-.1-.6-.4-.8-.5-.3-1.4-.4-1.9.2-.2.2-.3.6-.3.9 0 .4.1.7.4.9.3.3.8.4 1.4.4.6 0 1.2-.1 1.7-.4 1.4-.6 2.5-1.9 3.3-4 .4-1.1 1-2.9 1.6-5.5l.3-1.2h3.4l.4-1.5h-3.4c1-4.2 2.1-7.2 3.2-8.7.3-.4.6-.7.9-.9.4-.3.6-.3.8-.3.2 0 .4 0 .7.1-.2.3-.2.6-.2.9 0 .4.2.8.5 1.1.7.5 1.8.5 2.5 0 .3-.4.5-.8.5-1.3 0-.8-.3-1.4-1-1.8z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-fast-entry"><path d="M13 5H2V3h11v2zm-3 2H2v2h8V7zM2 17h8v-2H2v2zm11-6H2v2h11v-2zm10.4 3.9L17 21.3c-1 1.1-2.5 1.7-4 1.7h-1.4c-.3 0-.6-.3-.6-.6V21c0-1.5.6-2.9 1.7-4l6.4-6.4c.3-.4.8-.6 1.3-.6s1 .2 1.3.6l1.7 1.7c.8.7.8 1.9 0 2.6zm-1.5-1.3L20.3 12 14 18.3c-.6.8-1 1.7-1 2.7 1 0 1.9-.4 2.6-1.1l6.3-6.3z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-file"><path d="M22 9V7c0-1.1-.9-2-2-2h-8l-2-2H4c-1.1 0-2 .9-2 2v16h20l2-12h-2zM4 5h5.2l1.4 1.4.6.6H20v2H4V5zm16.3 14H4v-8h17.6l-1.3 8z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-html"><path d="M7.85 6.65l-4.5 5.3 4.5 5.4-1.6 1.3-5.5-6.7 5.5-6.6 1.6 1.3zm10-1.3l-1.6 1.3 4.5 5.3-4.5 5.4 1.5 1.3 5.5-6.6-5.4-6.7zm-9.7 15.3l1.9.6 6-18-1.9-.6-6 18z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-image"><path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM7 8c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm12 11H5l4-5 2 1 3-3 5 7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-imagepicker"><path d="M17 5H4c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h13c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 15H4V7h13v13zM6 11c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm10 8H5l11-5v5zm6-15v13c0 1.1-.9 2-2 2V4H5c0-1.1.9-2 2-2h13c1.1 0 2 .9 2 2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-import"><path d="M12 18.41L4.59 11 6 9.59l5 5V2h2v12.59l5-5L19.41 11 12 18.41zM2 20v2h20v-2H2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-invisible-items"><path d="M12 7.003a5.16 5.16 0 0 1 1.37.21l-1.83 1.84a3 3 0 0 0-2.49 2.49l-1.84 1.83a5.16 5.16 0 0 1-.21-1.37 5 5 0 0 1 5-5zm-6.6 8.18a15 15 0 0 1-2.59-3.18c2.29-3.78 5.66-6 9.19-6a8.29 8.29 0 0 1 2.26.33l1.6-1.6a10.76 10.76 0 0 0-3.86-.73c-4.76 0-8.95 3.17-11.48 8A17.49 17.49 0 0 0 4 16.623l1.4-1.44zm18.08-3.18c-2.48 4.83-6.72 8-11.48 8a11 11 0 0 1-5.23-1.36l-4.06 4.07-1.42-1.42 20-20 1.42 1.42-3.77 3.76a16.63 16.63 0 0 1 4.54 5.53zm-8.78-1.28l-4 4a2.9 2.9 0 0 0 1.3.28 3 3 0 0 0 3-3 2.9 2.9 0 0 0-.3-1.28zm6.49 1.28a14 14 0 0 0-3.69-4.09l-1.34 1.35a4.93 4.93 0 0 1 .84 2.74 5 5 0 0 1-5 5 4.93 4.93 0 0 1-2.74-.84l-1 1c1.17.55 2.447.836 3.74.84 3.53 0 6.9-2.22 9.19-6z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-keyboard-dragging"><path d="M17 5l-5-5-5 5h4v4h2V5h4zM13 19v-4h-2v4H7l5 5 5-5h-4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-language"><path d="M17.75 8h-2.5l-1.9 5.08A9.93 9.93 0 0 1 9.25 6H14V4H9V2H7v2H2v2h4.91A10 10 0 0 1 1 14.14c.323.59.694 1.151 1.11 1.68a12 12 0 0 0 6-6.3A12 12 0 0 0 12.62 15L10 22h2.42l1.37-3.87h5.37l1.4 3.87H23L17.75 8zm-3.29 8.16l1.27-3.63c.31-.825.564-1.67.76-2.53.06.26.18.66.35 1.21.17.55.3.94.4 1.2l1.31 3.79-4.09-.04z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-matrix"><path d="M6 1C3.2 1 1 3.2 1 6s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8C4.3 9 3 7.7 3 6s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zm2-3c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm12 12c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zM6 13c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zm12-10c2.8 0 5-2.2 5-5s-2.2-5-5-5-5 2.2-5 5 2.2 5 5 5zm0-8c1.7 0 3 1.3 3 3s-1.3 3-3 3-3-1.3-3-3 1.3-3 3-3zm0 10c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-matrixdropdown"><path d="M7 4c0 1.7-1.3 3-3 3S1 5.7 1 4s1.3-3 3-3 3 1.3 3 3zm8 0c0 1.7-1.3 3-3 3S9 5.7 9 4s1.3-3 3-3 3 1.3 3 3zm-2 0c0-.6-.4-1-1-1s-1 .4-1 1 .4 1 1 1 1-.4 1-1zm4 0c0-1.7 1.3-3 3-3s3 1.3 3 3-1.3 3-3 3-3-1.3-3-3zm2 0c0 .6.4 1 1 1s1-.4 1-1-.4-1-1-1-1 .4-1 1zM7 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm-2 0c0-.6-.4-1-1-1s-1 .4-1 1 .4 1 1 1 1-.4 1-1zm7-3c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm8 0c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zM4 17c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm8 0c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm11 3c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm-2 0c0-.6-.4-1-1-1s-1 .4-1 1 .4 1 1 1 1-.4 1-1z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-matrixdynamic"><path d="M7 4c0 1.7-1.3 3-3 3S1 5.7 1 4s1.3-3 3-3 3 1.3 3 3zm8 0c0 1.7-1.3 3-3 3S9 5.7 9 4s1.3-3 3-3 3 1.3 3 3zm-2 0c0-.6-.4-1-1-1s-1 .4-1 1 .4 1 1 1 1-.4 1-1zm4 0c0-1.7 1.3-3 3-3s3 1.3 3 3-1.3 3-3 3-3-1.3-3-3zm2 0c0 .6.4 1 1 1s1-.4 1-1-.4-1-1-1-1 .4-1 1zM7 12c0 1.7-1.3 3-3 3s-3-1.3-3-3 1.3-3 3-3 3 1.3 3 3zm-2 0c0-.6-.4-1-1-1s-1 .4-1 1 .4 1 1 1 1-.4 1-1zm7-3c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm8 0c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zM5 17H3v2H1v2h2v2h2v-2h2v-2H5v-2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-multipletext"><path d="M20 1H4c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 8H4V3h16v6zm-6-2H6V5h8v2zm6 6H4c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-6c0-1.1-.9-2-2-2zm0 8H4v-6h16v6zm-6-2H6v-2h8v2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-next_16x16"><path d="M5.646 12.646l.7.7 5.4-5.3-5.4-5.4-.7.7 4.6 4.7-4.6 4.6z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-panel"><path d="M9 2v2H4v5H2V4c0-1.1.9-2 2-2h5zm11 0h-5v2h5v5h2V4c0-1.1-.9-2-2-2zM4 20v-5H2v5c0 1.1.9 2 2 2h5v-2H4zm16 0h-5v2h5c1.1 0 2-.9 2-2v-5h-2v5z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-paneldynamic"><path d="M9 2v2H4v5H2V4a2 2 0 0 1 2-2h5zm11 0h-5v2h5v5h2V4a2 2 0 0 0-2-2zM4 20v-5H2v5a2 2 0 0 0 2 2h5v-2H4zm16 0h-5v2h5a2 2 0 0 0 2-2v-5h-2v5zm-3-7h-2v-2h-2v2h-2v2h2v2h2v-2h2v-2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-preview"><path d="M12 3a9 9 0 1 1 0 18 9 9 0 0 1 0-18zm0-2a11 11 0 1 0 0 22 11 11 0 0 0 0-22zm4 11l-6-4v8l6-4z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-previous_16x16"><path d="M10.393 12.646l-4.7-4.6 4.7-4.7-.7-.7-5.4 5.4 5.4 5.3.7-.7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-radiogroup"><path d="M12 4c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0-2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm0 8c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0-2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-ranking"><path d="M22 4H2v17h12v-5h4v-5h4V4zM12 19H4v-3h8v3zm4-5H4v-3h12v3zm4-5H4V6h16v3z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-rating"><g clip-path="url(#rating-a)"><path d="M12 6.8l.9 2.9.4 1.4h4.5l-2.4 1.8-1.2.9.4 1.4.9 2.9-2.4-1.8-1.1-1-1.2.9L8.4 18l.9-2.9.4-1.4-1.2-.9L6.1 11h4.5l.4-1.4 1-2.8zm0-6.5L9.2 9H0l7.4 5.4-2.8 8.7 7.4-5.4 7.4 5.4-2.8-8.7L24 9h-9.2L12 .3z"></path></g></symbol><symbol viewBox="0 0 24 24" id="icon-redo"><path d="M7 8h12.6l-4-4L17 2.6 23.4 9 17 15.4 15.6 14l4-4H7c-2.2 0-4 1.8-4 4s1.8 4 4 4h1v2H7c-3.3 0-6-2.7-6-6s2.7-6 6-6z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-remove_16x16"><path d="M12 7v2H4V7h8zm4 1c0 4.4-3.6 8-8 8s-8-3.6-8-8 3.6-8 8-8 8 3.6 8 8zm-2 0c0-3.3-2.7-6-6-6S2 4.7 2 8s2.7 6 6 6 6-2.7 6-6z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-save"><path d="M20 2H4L2 4v16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2zm-5 2v2H9V4h6zM8 20v-5h8v5H8zm12 0h-2v-7H6v7H4V4.83L4.83 4H7v4h10V4h3v16z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-search"><path d="M14 2c-4.4 0-8 3.6-8 8 0 1.8.6 3.5 1.7 4.9l-5.4 5.4c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l5.4-5.4c1.4 1.1 3.1 1.7 4.9 1.7 4.4 0 8-3.6 8-8s-3.6-8-8-8zm0 14c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-select-page"><path d="M23 11h-3.1c-.5-3.6-3.3-6.5-6.9-6.9V1h-2v3.1c-3.6.4-6.5 3.3-6.9 6.9H1v2h3.1c.5 3.6 3.3 6.5 6.9 6.9V23h2v-3.1c3.6-.5 6.5-3.3 6.9-6.9H23v-2zm-11 7c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-settings_16x16"><path d="M6.8 2C6.4.8 5.3 0 4 0 2.3 0 1 1.3 1 3s1.3 3 3 3c1.3 0 2.4-.8 2.8-2H15V2H6.8zM4 4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zm8 1c-1.3 0-2.4.8-2.8 2H1v2h8.2c.4 1.2 1.5 2 2.8 2 1.7 0 3-1.3 3-3s-1.3-3-3-3zm0 4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zm-6 1c-1.3 0-2.4.8-2.8 2H1v2h2.2c.4 1.2 1.5 2 2.8 2 1.3 0 2.4-.8 2.8-2H15v-2H8.8c-.4-1.2-1.5-2-2.8-2zm0 4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-settings"><path d="M9.9 4c-.5-1.7-2-3-3.9-3-2.2 0-4 1.8-4 4s1.8 4 4 4c1.9 0 3.4-1.3 3.9-3H22V4H9.9zM6 7c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3 8c-1.9 0-3.4 1.3-3.9 3H2v2h3.1c.4 1.7 2 3 3.9 3s3.4-1.3 3.9-3H22v-2h-9.1c-.5-1.7-2-3-3.9-3zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm9-13c-1.9 0-3.4 1.3-3.9 3H2v2h12.1c.4 1.7 2 3 3.9 3 2.2 0 4-1.8 4-4s-1.8-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-signaturepad"><path d="M24 17v2H9.1c.4-.6.8-1.3 1.1-2H24zM11.9 9C11 13.7 8.6 19.6 5 22.6c-1.2 1-3 0-3-1.5 0-.7.1-1.4.2-2.1H0v-2h2.8c1.5-4.1 4.8-7.9 7.4-9.4.2-1.5.2-2.8 0-3.7-.3-.6-.5-.9-.6-.9-.2 0-1.8-.1-5.8 5.7L2.2 7.6C5.5 2.8 7.9.7 9.9 1c2.1.2 2.6 3.6 2.3 5.9 2.1.1 2.6 1.3 2.7 3.4 1.3-1.2 3.2-2.4 4.3-1.1 1.6-.3 2.9 1.2 3.7 2.3l-1.6 1.2c-.9-1.3-1.5-1.5-1.7-1.5-.1 0-.1.1-.2.2-.4.6-.8 1.4-1.4 2.3-.3.4-.8.6-1.3.4-1.2-.6-.2-2 .1-2.9-1 .8-2.4 2.2-2.9 3.6-.1.7-.6 1.5-1.4 1.3-.9-.2-.8-1.2-.5-1.9 1.3-4.4.5-5.2.5-5.2 0-.1-.3-.2-.6 0zm-2.4 1.4C6.9 12.8 4.1 17.1 4 20.8c2.6-2.3 4.5-6.5 5.5-10.4z"></path></symbol><symbol viewBox="0 0 850 1630" id="icon-androidphone"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}.st2{fill:none;stroke:#404040;stroke-width:4;stroke-miterlimit:10}]]></style><g id="androidphone-Layer_1"><path class="st0" d="M771.1 38c22.6 0 41 18.4 41 41v1492c0 22.6-18.4 41-41 41h-695c-22.6 0-41-18.4-41-41V79c0-22.6 18.4-41 41-41h695m0-4h-695c-24.8 0-45 20.3-45 45v1492c0 24.8 20.3 45 45 45h695c24.8 0 45-20.3 45-45V79c0-24.7-20.2-45-45-45z"></path><path class="st1" d="M64.1 175.5h719v1279h-719z"></path><path class="st0" d="M782.6 176v1278h-718V176h718m1-1h-720v1280h720V175zM466 101.8c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5h-84c-3.6 0-6.5-2.9-6.5-6.5s2.9-6.5 6.5-6.5h84m0-4h-84c-5.8 0-10.5 4.7-10.5 10.5s4.7 10.5 10.5 10.5h84c5.8 0 10.5-4.7 10.5-10.5 0-5.7-4.7-10.5-10.5-10.5zM337 101.8c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5h-31c-3.6 0-6.5-2.9-6.5-6.5s2.9-6.5 6.5-6.5h31m0-4h-31c-5.8 0-10.5 4.7-10.5 10.5s4.7 10.5 10.5 10.5h31c5.8 0 10.5-4.7 10.5-10.5 0-5.7-4.7-10.5-10.5-10.5zM547.5 95.3c7.2 0 13 5.8 13 13s-5.8 13-13 13-13-5.8-13-13 5.8-13 13-13m0-4c-9.4 0-17 7.6-17 17s7.6 17 17 17 17-7.6 17-17-7.6-17-17-17z"></path><g><path class="st0" d="M825.5 300v244h-9V300h9m4-4h-17v252h17V296z"></path></g><g><path class="st0" d="M825.5 627v91h-9v-91h9m4-4h-17v99h17v-99z"></path></g><g><path class="st0" d="M175.8 1516h32v4h-32zM175.8 1529h32v4h-32zM175.8 1542h32v4h-32z"></path><path class="st2" d="M436.8 1545h-18c-2.8 0-5-2.3-5-5v-18c0-2.8 2.3-5 5-5h18c2.8 0 5 2.3 5 5v18c0 2.8-2.3 5-5 5z"></path><path class="st0" d="M671.4 1517.7l-2.8-2.9-16.6 16.6.2.1-.2.2 16.6 16.5 2.8-2.8-13.9-13.9z"></path></g></g></symbol><symbol viewBox="0 0 1070 1480" id="icon-androidtablet"><style><![CDATA[.st0{fill:transparent}.st1{fill:#404040}.st2,.st3{fill:none;stroke:#404040;stroke-width:6;stroke-miterlimit:10}.st3{stroke-width:4}]]></style><path class="st0" d="M135 101.1h799v1279H135z"></path><path class="st1" d="M933.5 101.6v1278h-798v-1278h798m1-1h-800v1280h800v-1280z"></path><path class="st2" d="M973.5 1456.1h-882c-28 0-51-22.9-51-51V76c0-28 22.9-51 51-51h882.1c28 0 51 22.9 51 51v1329.1c-.1 28-23 51-51.1 51z"></path><path class="st3" d="M971.4 1447.8H93.6c-24.8 0-45-20.3-45-45V78.3c0-24.8 20.3-45 45-45h877.8c24.8 0 45 20.3 45 45v1324.5c0 24.8-20.2 45-45 45z"></path><circle class="st3" cx="79.5" cy="740.6" r="12"></circle></symbol><symbol id="icon-device-l"><g fill="none" fill-rule="evenodd" transform="translate(-509 -409)"><g transform="rotate(-90 884.5 624)"><use fill="#000" filter="url(#device-l-a)" xlink:href="#device-l-b"></use><use fill="#FFF" xlink:href="#device-l-b"></use></g><rect width="70" height="8" x="540" y="628" fill="#F4F4F4" fill-rule="nonzero" transform="rotate(-90 575 632)" rx="4"></rect><circle cx="575" cy="585" r="4" fill="#F4F4F4" fill-rule="nonzero" transform="rotate(-90 575 585)"></circle><path fill="#F4F4F4" fill-rule="nonzero" d="M592 784V464h568v320z"></path><path fill="#E7E7E7" fill-rule="nonzero" d="M592 464v320h568V464H592zm569-1v322H591V463h570z"></path><circle cx="1186" cy="624" r="15" fill="#F4F4F4"></circle></g></symbol><symbol id="icon-device-p"><g fill="none" fill-rule="evenodd" transform="translate(-70 -408)"><use fill="#000" filter="url(#device-p-a)" xlink:href="#device-p-b"></use><use fill="#FFF" xlink:href="#device-p-b"></use><rect width="70" height="8" x="242" y="470" fill="#F4F4F4" fill-rule="nonzero" rx="4"></rect><circle cx="324" cy="474" r="4" fill="#F4F4F4" fill-rule="nonzero"></circle><path fill="#E7E7E7" fill-rule="nonzero" d="M124 490h322v570H124V490zm1 1v568h320V491H125z"></path><path fill="#F4F4F4" fill-rule="nonzero" d="M125 491h320v568H125z"></path><circle cx="285" cy="1084" r="15" fill="#F4F4F4"></circle></g></symbol><symbol viewBox="0 0 1837 2563" id="icon-ipad"><style><![CDATA[.st0{fill:transparent}.st1{fill:#404040}.st2,.st3{fill:none;stroke:#404040;stroke-width:6;stroke-miterlimit:10}.st3{stroke-width:4}]]></style><path class="st0" d="M154.2 255.5h1535v2047h-1535z"></path><path class="st1" d="M1688.7 256v2046h-1534V256h1534m1-1h-1536v2048h1536V255z"></path><path class="st2" d="M1697.2 2530.5h-1551c-60.5 0-110-49.5-110-110v-2280c0-60.5 49.5-110 110-110h1551c60.5 0 110 49.5 110 110v2280c0 60.5-49.5 110-110 110z"></path><path class="st3" d="M1688.4 2514H155c-57.8 0-105-47.3-105-105V149C50 91.3 97.2 44 155 44h1533.5c57.8 0 105 47.3 105 105v2260c-.1 57.8-47.3 105-105.1 105z"></path><circle class="st3" cx="921.7" cy="149.5" r="16.5"></circle><circle class="st2" cx="921.5" cy="2411.5" r="53.5"></circle><path class="st3" d="M937.2 2431.5h-31c-2.8 0-5-2.3-5-5v-31c0-2.8 2.3-5 5-5h31c2.8 0 5 2.3 5 5v31c0 2.8-2.2 5-5 5z"></path></symbol><symbol viewBox="0 0 945 1300" id="icon-ipadmini"><style><![CDATA[.st0,.st1{fill:none;stroke:#404040;stroke-width:6;stroke-miterlimit:10}.st1{stroke-width:4}.st2{fill:transparent}.st3{fill:#404040}]]></style><path class="st0" d="M836.4 1275.5H111.8c-44 0-80-36-80-80V106.8c0-44 36-80 80-80h724.6c44 0 80 36 80 80v1088.7c0 44-36 80-80 80z"></path><path class="st1" d="M833.4 1263.3H114.8c-38.5 0-70-31.5-70-70V108.9c0-38.5 31.5-70 70-70h718.6c38.5 0 70 31.5 70 70v1084.4c0 38.5-31.5 70-70 70z"></path><circle class="st1" cx="474" cy="86.6" r="8.2"></circle><circle class="st0" cx="474.1" cy="1216.4" r="26.7"></circle><path class="st1" d="M479.3 1226.4h-10.5c-2.8 0-5-2.3-5-5v-10.5c0-2.8 2.3-5 5-5h10.5c2.8 0 5 2.3 5 5v10.5c0 2.8-2.2 5-5 5z"></path><path class="st2" d="M90.6 139.5h767v1023h-767z"></path><path class="st3" d="M857.1 140v1022h-766V140h766m1-1h-768v1024h768V139z"></path></symbol><symbol viewBox="0 0 2008 2980" id="icon-ipadpro"><style><![CDATA[.st0,.st1{fill:none;stroke:#404040;stroke-width:6;stroke-miterlimit:10}.st1{stroke-width:4}.st2{fill:transparent}.st3{fill:#404040}]]></style><path class="st0" d="M1854.1 2909.5h-1699c-60.5 0-110-49.5-110-110v-2619c0-60.5 49.5-110 110-110h1699c60.5 0 110 49.5 110 110v2619c0 60.5-49.5 110-110 110z"></path><path class="st1" d="M1845.3 2893H163.8c-57.8 0-105-47.3-105-105V189c0-57.8 47.3-105 105-105h1681.5c57.8 0 105 47.3 105 105v2599c0 57.8-47.3 105-105 105z"></path><circle class="st1" cx="1004.6" cy="189.5" r="16.5"></circle><circle class="st0" cx="1004.6" cy="2790.3" r="53.5"></circle><path class="st1" d="M1020.1 2810.8h-31c-2.8 0-5-2.3-5-5v-31c0-2.8 2.3-5 5-5h31c2.8 0 5 2.3 5 5v31c0 2.8-2.3 5-5 5z"></path><path class="st2" d="M161.1 295.5h1687v2387h-1687z"></path><path class="st3" d="M1847.6 296v2386h-1686V296h1686m1-1h-1688v2388h1688V295z"></path></symbol><symbol viewBox="0 0 2360 3300" id="icon-ipadpro13"><style><![CDATA[.st0,.st1{fill:none;stroke:#404040;stroke-width:6;stroke-miterlimit:10}.st1{stroke-width:4}.st2{fill:transparent}.st3{fill:#404040}]]></style><path class="st0" d="M2219.2 3269.2H139.5c-60.5 0-110-49.5-110-110v-3024c0-60.5 49.5-110 110-110h2079.8c60.5 0 110 49.5 110 110v3024c-.1 60.5-49.6 110-110.1 110z"></path><path class="st1" d="M2208.5 3250.4H150.2c-57.8 0-105-47.3-105-105V145.7c0-57.7 47.3-105 105-105h2058.3c57.8 0 105 47.3 105 105v2999.7c0 57.7-47.3 105-105 105z"></path><circle class="st1" cx="1179.3" cy="163.7" r="16.5"></circle><circle class="st0" cx="1179.3" cy="3133.4" r="53.5"></circle><path class="st1" d="M1194.8 3153.9h-31c-2.8 0-5-2.3-5-5v-31c0-2.8 2.3-5 5-5h31c2.8 0 5 2.3 5 5v31c0 2.9-2.2 5-5 5z"></path><path class="st2" d="M155.8 285.7h2047v2731h-2047z"></path><path class="st3" d="M2202.3 286.2v2730h-2046v-2730h2046m1-1h-2048v2732h2048v-2732z"></path></symbol><symbol viewBox="0 0 730 1340" id="icon-iphone4"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M635.9 1300.5H100.7c-45.7 0-82.8-37.1-82.8-82.8v-1108c0-45.7 37.1-82.8 82.8-82.8H636c45.7 0 82.8 37.1 82.8 82.8v1108c-.1 45.6-37.2 82.8-82.9 82.8zM100.7 29.1c-44.4 0-80.6 36.1-80.6 80.6v1108c0 44.4 36.1 80.6 80.6 80.6H636c44.4 0 80.6-36.1 80.6-80.6v-1108c0-44.4-36.1-80.6-80.6-80.6H100.7z"></path><path class="st0" d="M366.9 71.1c-5 0-9.1-4.1-9.1-9.1s4.1-9.1 9.1-9.1S376 57 376 62c0 5.1-4.1 9.1-9.1 9.1zm0-15.9c-3.8 0-6.8 3.1-6.8 6.8 0 3.7 3.1 6.8 6.8 6.8 3.8 0 6.8-3.1 6.8-6.8 0-3.7-3-6.8-6.8-6.8zM269.3 116.5c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5 12.5 5.6 12.5 12.5-5.6 12.5-12.5 12.5zm0-22.7c-5.6 0-10.2 4.6-10.2 10.2s4.6 10.2 10.2 10.2 10.2-4.6 10.2-10.2c.1-5.6-4.5-10.2-10.2-10.2zM408.6 109.7h-84.5c-3.6 0-6.5-2.9-6.5-6.5s2.9-6.5 6.5-6.5h84.5c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5zm-84.5-10.8c-2.4 0-4.3 1.9-4.3 4.3s1.9 4.3 4.3 4.3h84.5c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3h-84.5zM368.3 1267.8c-23.5 0-42.5-19.1-42.5-42.5 0-23.5 19.1-42.5 42.5-42.5 23.5 0 42.5 19.1 42.5 42.5 0 23.5-19.1 42.5-42.5 42.5zm0-82.8c-22.2 0-40.3 18.1-40.3 40.3 0 22.2 18.1 40.3 40.3 40.3 22.2 0 40.3-18.1 40.3-40.3 0-22.2-18.1-40.3-40.3-40.3z"></path><path class="st0" d="M368.3 1276.2c-28.1 0-50.9-22.8-50.9-50.9s22.8-50.9 50.9-50.9 50.9 22.8 50.9 50.9c0 28.1-22.9 50.9-50.9 50.9zm0-99.6c-26.8 0-48.7 21.8-48.7 48.7 0 26.8 21.8 48.7 48.7 48.7 26.8 0 48.7-21.8 48.7-48.7-.1-26.8-21.9-48.7-48.7-48.7zM8.5 245.4H-.2v-60h8.7v60zM2 243.2h4.2v-55.6H2v55.6zM8.5 330.4H-.2v-60h8.7v60zM2 328.2h4.2v-55.6H2v55.6z"></path><g><path class="st1" d="M48.5 183.2h639v959h-639z"></path><path class="st0" d="M687 183.7v958H49v-958h638m1-1H48v960h640v-960z"></path></g><path class="st0" d="M8.7 344.7V327H2.1v-53.3h6.6v-14H4.2v9.5h-6.6v62.3h6.6v13.2z"></path><path class="st0" d="M645.5 13.7h-6.8l-9.5-.5V6.7h-62.3v6.6l-13.2.5H91.1c-47.9 0-86.8 39-86.8 86.8v83.7h-6.6v62.3h6.6v25.1h4.5V242H2.1v-53.3h6.6v-88.2c0-45.4 36.9-82.4 82.4-82.4h554.5C691 18.1 728 55 728 100.5v1127.3c0 45.4-36.9 82.4-82.4 82.4H91.1c-45.4 0-82.4-36.9-82.4-82.4V327.7H4.2v900.1c0 47.9 39 86.9 86.8 86.9h554.5c47.9 0 86.8-39 86.8-86.9V100.5c.1-47.8-38.9-86.8-86.8-86.8zm-74.2-2.5h53.3v2.5h-53.3v-2.5z"></path></symbol><symbol viewBox="0 0 750 1500" id="icon-iphone5"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M642.9 1473.8H107.7c-45.7 0-82.8-37.1-82.8-82.8V106c0-45.7 37.1-82.8 82.8-82.8H643c45.7 0 82.8 37.1 82.8 82.8v1285c-.1 45.6-37.2 82.8-82.9 82.8zM107.7 25.4c-44.4 0-80.6 36.1-80.6 80.6v1285c0 44.4 36.1 80.6 80.6 80.6H643c44.4 0 80.6-36.1 80.6-80.6V106c0-44.4-36.1-80.6-80.6-80.6H107.7z"></path><path class="st0" d="M373.9 67.4c-5 0-9.1-4.1-9.1-9.1s4.1-9.1 9.1-9.1 9.1 4.1 9.1 9.1c0 5.1-4.1 9.1-9.1 9.1zm0-15.9c-3.8 0-6.8 3.1-6.8 6.8s3.1 6.8 6.8 6.8c3.8 0 6.8-3.1 6.8-6.8s-3-6.8-6.8-6.8zM276.3 112.8c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5 12.5 5.6 12.5 12.5-5.6 12.5-12.5 12.5zm0-22.7c-5.6 0-10.2 4.6-10.2 10.2s4.6 10.2 10.2 10.2 10.2-4.6 10.2-10.2c.1-5.6-4.5-10.2-10.2-10.2zM415.6 106h-84.5c-3.6 0-6.5-2.9-6.5-6.5s2.9-6.5 6.5-6.5h84.5c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5zm-84.5-10.8c-2.4 0-4.3 1.9-4.3 4.3s1.9 4.3 4.3 4.3h84.5c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3h-84.5zM375.3 1441.1c-23.5 0-42.5-19.1-42.5-42.5 0-23.5 19.1-42.5 42.5-42.5 23.5 0 42.5 19.1 42.5 42.5 0 23.5-19.1 42.5-42.5 42.5zm0-82.8c-22.2 0-40.3 18.1-40.3 40.3 0 22.2 18.1 40.3 40.3 40.3 22.2 0 40.3-18.1 40.3-40.3 0-22.2-18.1-40.3-40.3-40.3z"></path><path class="st0" d="M375.3 1449.5c-28.1 0-50.9-22.8-50.9-50.9s22.8-50.9 50.9-50.9 50.9 22.8 50.9 50.9c0 28.1-22.9 50.9-50.9 50.9zm0-99.6c-26.8 0-48.7 21.8-48.7 48.7 0 26.8 21.8 48.7 48.7 48.7 26.8 0 48.7-21.8 48.7-48.7-.1-26.8-21.9-48.7-48.7-48.7z"></path><g><path class="st0" d="M14.5 241.7H5.8v-60h8.7v60zM8 239.5h4.2v-55.6H8v55.6zM14.5 389H5.8v-94.5h8.7V389zM8 386.8h4.2v-90H8v90zM14.5 501.9H5.8v-94.5h8.7v94.5zM8 499.6h4.2v-90H8v90z"></path></g><path class="st0" d="M652.5 1488H98.1c-47.9 0-86.8-39-86.8-86.9V503H4.6v-96.8h6.6v-16.1H4.6v-96.8h6.6v-50.6H4.6v-62.3h6.6V96.8C11.2 49 50.2 10 98.1 10h554.5c47.9 0 86.8 39 86.8 86.8v1304.3c0 47.9-39 86.9-86.9 86.9zM9.1 498.5h6.6v902.6c0 45.4 36.9 82.4 82.4 82.4h554.5c45.4 0 82.4-36.9 82.4-82.4V96.8c0-45.4-36.9-82.4-82.4-82.4H98.1c-45.4 0-82.4 36.9-82.4 82.4V185H9.1v53.3h6.6v59.5H9.1v87.8h6.6v25.1H9.1v87.8z"></path><g><path class="st1" d="M56 182h639v1135H56z"></path><path class="st0" d="M694 182v1134H56V182h638m1-1H55v1136h640V181z"></path></g></symbol><symbol viewBox="0 0 960 1750" id="icon-iphone6"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M479.8 103.4c-5 0-9.1-4.1-9.1-9.1s4.1-9.1 9.1-9.1 9.1 4.1 9.1 9.1c0 5.1-4.1 9.1-9.1 9.1zm0-15.9c-3.8 0-6.8 3.1-6.8 6.8 0 3.8 3.1 6.8 6.8 6.8 3.8 0 6.8-3.1 6.8-6.8 0-3.7-3-6.8-6.8-6.8zM382.2 148.8c-6.9 0-12.5-5.6-12.5-12.5s5.6-12.5 12.5-12.5 12.5 5.6 12.5 12.5-5.6 12.5-12.5 12.5zm0-22.7c-5.6 0-10.2 4.6-10.2 10.2s4.6 10.2 10.2 10.2 10.2-4.6 10.2-10.2c.1-5.6-4.5-10.2-10.2-10.2zM521.5 142H437c-3.6 0-6.5-2.9-6.5-6.5s2.9-6.5 6.5-6.5h84.5c3.6 0 6.5 2.9 6.5 6.5s-2.9 6.5-6.5 6.5zM437 131.2c-2.4 0-4.3 1.9-4.3 4.3s1.9 4.3 4.3 4.3h84.5c2.4 0 4.3-1.9 4.3-4.3s-1.9-4.3-4.3-4.3H437zM476 1675.1c-23.5 0-42.5-19.1-42.5-42.5 0-23.5 19.1-42.5 42.5-42.5 23.5 0 42.5 19.1 42.5 42.5 0 23.5-19 42.5-42.5 42.5zm0-82.8c-22.2 0-40.3 18.1-40.3 40.3 0 22.2 18.1 40.3 40.3 40.3 22.2 0 40.3-18.1 40.3-40.3s-18.1-40.3-40.3-40.3z"></path><path class="st0" d="M476 1683.5c-28.1 0-50.9-22.8-50.9-50.9s22.8-50.9 50.9-50.9 50.9 22.8 50.9 50.9-22.8 50.9-50.9 50.9zm0-99.6c-26.8 0-48.7 21.8-48.7 48.7 0 26.8 21.8 48.7 48.7 48.7 26.8 0 48.7-21.8 48.7-48.7 0-26.8-21.9-48.7-48.7-48.7z"></path><g><path class="st0" d="M801.9 1707.8H156.7c-45.7 0-82.8-37.1-82.8-82.8V142c0-45.7 37.1-82.8 82.8-82.8H802c45.7 0 82.8 37.1 82.8 82.8v1483c-.1 45.6-37.2 82.8-82.9 82.8zM156.7 61.4c-44.4 0-80.6 36.1-80.6 80.6v1483c0 44.4 36.1 80.6 80.6 80.6H802c44.4 0 80.6-36.1 80.6-80.6V142c0-44.4-36.1-80.6-80.6-80.6H156.7z"></path><path class="st0" d="M811.5 1722H147.1c-47.9 0-86.8-39-86.8-86.9V539h-6.6v-96.8h6.6v-16.1h-6.6v-96.8h6.6v-50.6h-6.6v-62.3h6.6v-83.7c0-47.9 39-86.8 86.8-86.8h664.5c47.9 0 86.8 39 86.8 86.8V1635c0 48-39 87-86.9 87zM58.1 534.5h6.6v1100.6c0 45.4 36.9 82.4 82.4 82.4h664.5c45.4 0 82.4-36.9 82.4-82.4V132.8c0-45.4-36.9-82.4-82.4-82.4H147.1c-45.4 0-82.4 36.9-82.4 82.4V221h-6.6v53.3h6.6v59.5h-6.6v87.8h6.6v25.1h-6.6v87.8z"></path></g><g><path class="st1" d="M104.5 208.5h749v1333h-749z"></path><path class="st0" d="M853 209v1332H105V209h748m1-1H104v1334h750V208z"></path></g></symbol><symbol viewBox="0 0 1330 2550" id="icon-iphone6plus"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M665.1 133.2c-8.3 0-15.1-6.8-15.1-15.1s6.8-15.1 15.1-15.1 15.1 6.8 15.1 15.1-6.8 15.1-15.1 15.1zm0-26.5c-6.3 0-11.4 5.1-11.4 11.4s5.1 11.4 11.4 11.4c6.3 0 11.4-5.1 11.4-11.4-.1-6.3-5.1-11.4-11.4-11.4zM502.5 208.8c-11.5 0-20.8-9.3-20.8-20.8s9.3-20.8 20.8-20.8 20.8 9.3 20.8 20.8-9.3 20.8-20.8 20.8zm0-37.8c-9.4 0-17 7.6-17 17s7.6 17 17 17 17-7.6 17-17c.1-9.4-7.6-17-17-17zM734.5 197.5H593.7c-6 0-10.8-4.9-10.8-10.8s4.9-10.8 10.8-10.8h140.8c6 0 10.8 4.9 10.8 10.8s-4.8 10.8-10.8 10.8zm-140.8-18c-3.9 0-7.1 3.2-7.1 7.1 0 3.9 3.2 7.1 7.1 7.1h140.8c3.9 0 7.1-3.2 7.1-7.1 0-3.9-3.2-7.1-7.1-7.1H593.7zM665 2426.1c-38 0-68.9-30.9-68.9-68.9s30.9-68.9 68.9-68.9 68.9 30.9 68.9 68.9-30.9 68.9-68.9 68.9zm0-134.2c-36 0-65.3 29.3-65.3 65.3s29.3 65.3 65.3 65.3 65.3-29.3 65.3-65.3-29.3-65.3-65.3-65.3z"></path><path class="st0" d="M665 2439.6c-45.5 0-82.5-37-82.5-82.5s37-82.5 82.5-82.5 82.5 37 82.5 82.5-37 82.5-82.5 82.5zm0-161.3c-43.5 0-78.8 35.4-78.8 78.8 0 43.5 35.4 78.8 78.8 78.8 43.5 0 78.8-35.4 78.8-78.8s-35.3-78.8-78.8-78.8z"></path><g><path class="st1" d="M125.5 315.5h1079v1919h-1079z"></path><path class="st0" d="M1204 316v1918H126V316h1078m1-1H125v1920h1080V315z"></path></g><g><path class="st0" d="M1119.5 42c38.3 0 74.4 15 101.7 42.3 27.3 27.3 42.3 63.4 42.3 101.7v2172c0 38.3-15 74.4-42.3 101.7s-63.4 42.3-101.7 42.3h-909c-38.3 0-74.4-15-101.7-42.3s-42.3-63.4-42.3-101.7V186c0-38.3 15-74.4 42.3-101.7S172.2 42 210.5 42h909m0-6h-909c-82.5 0-150 67.5-150 150v2172c0 82.5 67.5 150 150 150h909c82.5 0 150-67.5 150-150V186c0-82.5-67.5-150-150-150z"></path><path class="st0" d="M1121.5 58.7c33.5 0 65.1 13.1 89 37s37 55.5 37 89v2174.6c0 33.5-13.1 65.1-37 89s-55.5 37-89 37h-912c-33.5 0-65.1-13.1-89-37s-37-55.5-37-89V184.7c0-33.5 13.1-65.1 37-89s55.5-37 89-37h912m0-4h-912c-71.5 0-130 58.5-130 130v2174.6c0 71.5 58.5 130 130 130h912c71.5 0 130-58.5 130-130V184.7c0-71.5-58.5-130-130-130z"></path></g><g><path class="st0" d="M49 702v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V702c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM49 505v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V505c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM60 317.1v-4c-6.1.5-11 5.7-11 11.9v66c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9v-66c0-4.1 3.1-7.4 7-7.9z"></path></g></symbol><symbol viewBox="0 0 990 1860" id="icon-iphone8"><style><![CDATA[.st0{fill:#404040}.st1{fill:none;stroke:#404040;stroke-width:4;stroke-miterlimit:10}.st2{fill:transparent}]]></style><path class="st0" d="M560.7 189.4H437.9c-6 0-10.8-4.9-10.8-10.8s4.9-10.8 10.8-10.8h122.8c6 0 10.8 4.9 10.8 10.8s-4.8 10.8-10.8 10.8zm-122.8-18c-3.9 0-7.1 3.2-7.1 7.1 0 3.9 3.2 7.1 7.1 7.1h122.8c3.9 0 7.1-3.2 7.1-7.1 0-3.9-3.2-7.1-7.1-7.1H437.9z"></path><circle class="st1" cx="359.5" cy="178.6" r="15.5"></circle><circle class="st1" cx="499.3" cy="126.5" r="9.5"></circle><path class="st0" d="M781.5 60c38.3 0 74.4 15 101.7 42.3s42.3 63.4 42.3 101.7v1465c0 38.3-15 74.4-42.3 101.7-27.3 27.3-63.4 42.3-101.7 42.3h-565c-38.3 0-74.4-15-101.7-42.3s-42.3-63.4-42.3-101.7V204c0-38.3 15-74.4 42.3-101.7S178.2 60 216.5 60h565m0-6h-565c-82.5 0-150 67.5-150 150v1465c0 82.5 67.5 150 150 150h565c82.5 0 150-67.5 150-150V204c0-82.5-67.5-150-150-150z"></path><path class="st0" d="M782.5 77.7c33.5 0 65.1 13.1 89 37s37 55.5 37 89v1464.6c0 33.5-13.1 65.1-37 89s-55.5 37-89 37h-567c-33.5 0-65.1-13.1-89-37s-37-55.5-37-89V203.7c0-33.5 13.1-65.1 37-89s55.5-37 89-37h567m0-4h-567c-71.5 0-130 58.5-130 130v1464.6c0 71.5 58.5 130 130 130h567c71.5 0 130-58.5 130-130V203.7c0-71.5-58.5-130-130-130z"></path><g><path class="st0" d="M55 646v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V646c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM55 449v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V449c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM932 527.9v4c6.1-.5 11-5.7 11-11.9V399c0-6.3-4.9-11.4-11-11.9v4c3.9.5 7 3.9 7 7.9v121c0 4.1-3.1 7.4-7 7.9z"></path></g><g><circle class="st1" cx="493" cy="1689" r="66.5"></circle><circle class="st1" cx="493" cy="1689" r="55"></circle></g><g><path class="st2" d="M121.5 263.5h749v1333h-749z"></path><path class="st0" d="M870 264v1332H122V264h748m1-1H121v1334h750V263z"></path></g></symbol><symbol viewBox="0 0 1330 2550" id="icon-iphone8plus"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M668.1 133.2c-8.3 0-15.1-6.8-15.1-15.1s6.8-15.1 15.1-15.1 15.1 6.8 15.1 15.1-6.8 15.1-15.1 15.1zm0-26.5c-6.3 0-11.4 5.1-11.4 11.4s5.1 11.4 11.4 11.4c6.3 0 11.4-5.1 11.4-11.4-.1-6.3-5.1-11.4-11.4-11.4zM505.5 208.8c-11.5 0-20.8-9.3-20.8-20.8s9.3-20.8 20.8-20.8 20.8 9.3 20.8 20.8-9.3 20.8-20.8 20.8zm0-37.8c-9.4 0-17 7.6-17 17s7.6 17 17 17 17-7.6 17-17c.1-9.4-7.6-17-17-17zM737.5 197.5H596.7c-6 0-10.8-4.9-10.8-10.8s4.9-10.8 10.8-10.8h140.8c6 0 10.8 4.9 10.8 10.8s-4.8 10.8-10.8 10.8zm-140.8-18c-3.9 0-7.1 3.2-7.1 7.1 0 3.9 3.2 7.1 7.1 7.1h140.8c3.9 0 7.1-3.2 7.1-7.1 0-3.9-3.2-7.1-7.1-7.1H596.7z"></path><path d="M668 2426.1c-38 0-68.9-30.9-68.9-68.9s30.9-68.9 68.9-68.9 68.9 30.9 68.9 68.9-30.9 68.9-68.9 68.9zm0-134.2c-36 0-65.3 29.3-65.3 65.3s29.3 65.3 65.3 65.3 65.3-29.3 65.3-65.3-29.3-65.3-65.3-65.3z"></path><path d="M668 2439.6c-45.5 0-82.5-37-82.5-82.5s37-82.5 82.5-82.5 82.5 37 82.5 82.5-37 82.5-82.5 82.5zm0-161.3c-43.5 0-78.8 35.4-78.8 78.8 0 43.5 35.4 78.8 78.8 78.8 43.5 0 78.8-35.4 78.8-78.8s-35.3-78.8-78.8-78.8z"></path><g><path class="st1" d="M128.5 315.5h1079v1919h-1079z"></path><path class="st0" d="M1207 316v1918H129V316h1078m1-1H128v1920h1080V315z"></path></g><g><path class="st0" d="M1122.5 42c38.3 0 74.4 15 101.7 42.3 27.3 27.3 42.3 63.4 42.3 101.7v2172c0 38.3-15 74.4-42.3 101.7s-63.4 42.3-101.7 42.3h-909c-38.3 0-74.4-15-101.7-42.3s-42.3-63.4-42.3-101.7V186c0-38.3 15-74.4 42.3-101.7S175.2 42 213.5 42h909m0-6h-909c-82.5 0-150 67.5-150 150v2172c0 82.5 67.5 150 150 150h909c82.5 0 150-67.5 150-150V186c0-82.5-67.5-150-150-150z"></path><path class="st0" d="M1124.5 58.7c33.5 0 65.1 13.1 89 37s37 55.5 37 89v2174.6c0 33.5-13.1 65.1-37 89s-55.5 37-89 37h-912c-33.5 0-65.1-13.1-89-37s-37-55.5-37-89V184.7c0-33.5 13.1-65.1 37-89s55.5-37 89-37h912m0-4h-912c-71.5 0-130 58.5-130 130v2174.6c0 71.5 58.5 130 130 130h912c71.5 0 130-58.5 130-130V184.7c0-71.5-58.5-130-130-130z"></path></g><g><path class="st0" d="M52 702v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V702c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM52 505v142c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9V505c0-4.1 3.1-7.4 7-7.9v-4c-6.1.5-11 5.6-11 11.9zM63 317.1v-4c-6.1.5-11 5.7-11 11.9v66c0 6.3 4.9 11.4 11 11.9v-4c-3.9-.5-7-3.9-7-7.9v-66c0-4.1 3.1-7.4 7-7.9z"></path></g></symbol><symbol viewBox="0 0 1330 2680" id="icon-iphonex"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M1144 54.5c40.2 0 78 15.8 106.6 44.4s44.4 66.5 44.4 106.6v2268c0 40.2-15.8 78-44.4 106.6s-66.5 44.4-106.6 44.4H190.1c-40.2 0-78-15.8-106.6-44.4-28.6-28.6-44.4-66.5-44.4-106.6v-2268c0-40.2 15.8-78 44.4-106.6S150 54.5 190.1 54.5H1144m0-6H190.1c-86.4 0-157 70.7-157 157v2268c0 86.4 70.6 157 157 157H1144c86.4 0 157-70.6 157-157v-2268c0-86.3-70.7-157-157-157z"></path><path class="st0" d="M1151.1 82.5c31.9 0 62 12.5 84.7 35.3 22.7 22.7 35.3 52.8 35.3 84.7v2274c0 31.9-12.5 62-35.3 84.7-22.7 22.7-52.8 35.3-84.7 35.3h-968c-31.9 0-62-12.5-84.7-35.3-22.7-22.7-35.3-52.8-35.3-84.7v-2274c0-31.9 12.5-62 35.3-84.7 22.7-22.7 52.8-35.3 84.7-35.3h968m0-4h-968c-68.2 0-124 55.8-124 124v2274c0 68.2 55.8 124 124 124h968c68.2 0 124-55.8 124-124v-2274c0-68.2-55.8-124-124-124z"></path><path class="st0" d="M810.8 146.5c0-11.5 9.3-20.8 20.8-20.8s20.8 9.3 20.8 20.8-9.3 20.8-20.8 20.8-20.8-9.3-20.8-20.8zm3.8 0c0 9.4 7.6 17 17 17s17-7.6 17-17-7.6-17-17-17-17 7.6-17 17zM588.8 145.1c0-6 4.9-10.8 10.8-10.8h140.8c6 0 10.8 4.9 10.8 10.8s-4.9 10.8-10.8 10.8H599.6c-6 .1-10.8-4.8-10.8-10.8zm10.8-7.1c-3.9 0-7.1 3.2-7.1 7.1 0 3.9 3.2 7.1 7.1 7.1h140.8c3.9 0 7.1-3.2 7.1-7.1 0-3.9-3.2-7.1-7.1-7.1H599.6z"></path><g><path class="st1" d="M219.3 2557c-63 0-114.3-51.3-114.3-114.3V236.3c0-63 51.3-114.3 114.3-114.3h134.6c.7 0 1.3.3 1.8.7.5.5.7 1.1.7 1.8v26.9c0 27.9 22.7 50.6 50.6 50.6h519.8c27.9 0 50.6-22.7 50.6-50.6v-26.9c0-.7.3-1.3.7-1.8s1.1-.7 1.7-.7h134.8c63 0 114.3 51.3 114.3 114.3v2206.4c0 63-51.3 114.3-114.3 114.3H219.3z"></path><path class="st0" d="M1114.6 122.5c30.4 0 59 11.8 80.5 33.3s33.3 50.1 33.3 80.5v2206.4c0 30.4-11.8 59-33.3 80.5s-50.1 33.3-80.5 33.3H219.3c-30.4 0-59-11.8-80.5-33.3s-33.3-50.1-33.3-80.5V236.3c0-30.4 11.8-59 33.3-80.5s50.1-33.3 80.5-33.3h134.6c.5 0 1 .2 1.4.6.4.4.6.9.6 1.4v26.9c0 28.2 22.9 51.1 51.1 51.1h519.8c28.2 0 51.1-22.9 51.1-51.1v-26.9c0-.5.2-1 .6-1.4s.8-.6 1.4-.6h134.7m0-1H979.8c-1.6 0-2.9 1.3-2.9 3v26.9c0 27.5-22.5 50.1-50.1 50.1H407c-27.5 0-50.1-22.5-50.1-50.1v-26.9c0-1.7-1.3-3-3-3H219.3c-63.4 0-114.8 51.4-114.8 114.8v2206.4c0 63.4 51.4 114.8 114.8 114.8h895.4c63.4 0 114.8-51.4 114.8-114.8V236.3c0-63.4-51.5-114.8-114.9-114.8z"></path></g></symbol><symbol viewBox="0 0 1410 2980" id="icon-iphonexmax"><style><![CDATA[.st0{fill:#404040}.st1{fill:transparent}]]></style><path class="st0" d="M1222.1 97.8c39.4 0 76.5 15.4 104.5 43.5s43.5 65.2 43.5 104.5v2489c0 39.4-15.4 76.5-43.5 104.5s-65.2 43.5-104.5 43.5H188.2c-39.4 0-76.5-15.4-104.5-43.5s-43.5-65.2-43.5-104.5v-2489c0-39.4 15.4-76.5 43.5-104.5s65.1-43.5 104.5-43.5h1033.9m0-6H188.2c-84.7 0-154 69.3-154 154v2489c0 84.7 69.3 154 154 154h1033.9c84.7 0 154-69.3 154-154v-2489c0-84.7-69.3-154-154-154z"></path><path class="st0" d="M1226.2 125.8c31.9 0 62 12.5 84.7 35.3 22.7 22.7 35.3 52.8 35.3 84.7v2489c0 31.9-12.5 62-35.3 84.7-22.7 22.7-52.8 35.3-84.7 35.3h-1042c-31.9 0-62-12.5-84.7-35.3-22.7-22.7-35.3-52.8-35.3-84.7v-2489c0-31.9 12.5-62 35.3-84.7 22.7-22.7 52.8-35.3 84.7-35.3h1042m0-4h-1042c-68.2 0-124 55.8-124 124v2489c0 68.2 55.8 124 124 124h1042c68.2 0 124-55.8 124-124v-2489c0-68.2-55.8-124-124-124z"></path><path class="st0" d="M844.3 171c0-11.5 9.3-20.8 20.8-20.8s20.8 9.3 20.8 20.8-9.3 20.8-20.8 20.8-20.8-9.3-20.8-20.8zm3.8 0c0 9.4 7.6 17 17 17s17-7.6 17-17-7.6-17-17-17-17 7.6-17 17zM622.3 169.6c0-6 4.9-10.8 10.8-10.8h140.8c6 0 10.8 4.9 10.8 10.8s-4.9 10.8-10.8 10.8H633.1c-6 .1-10.8-4.8-10.8-10.8zm10.8-7.1c-3.9 0-7.1 3.2-7.1 7.1 0 3.9 3.2 7.1 7.1 7.1h140.8c3.9 0 7.1-3.2 7.1-7.1 0-3.9-3.2-7.1-7.1-7.1H633.1z"></path><g><path class="st1" d="M199 2833.8c-63 0-114.3-51.3-114.3-114.3V261.1c0-63 51.3-114.3 114.3-114.3h193.7c.7 0 1.3.3 1.8.7s.7 1.1.7 1.8v26.9c0 27.9 22.7 50.6 50.6 50.6h519.8c27.9 0 50.6-22.7 50.6-50.6v-26.9c0-.7.2-1.3.7-1.8s1.1-.7 1.7-.7h192.8c63 0 114.3 51.3 114.3 114.3v2458.4c0 63-51.3 114.3-114.3 114.3H199z"></path><path class="st0" d="M1211.4 147.3c30.4 0 59 11.8 80.5 33.3s33.3 50.1 33.3 80.5v2458.4c0 30.4-11.8 59-33.3 80.5s-50.1 33.3-80.5 33.3H199c-30.4 0-59-11.8-80.5-33.3s-33.3-50.1-33.3-80.5V261.1c0-30.4 11.8-59 33.3-80.5s50.1-33.3 80.5-33.3h193.7c.5 0 1 .2 1.4.6.4.4.6.9.6 1.4v26.9c0 28.2 22.9 51.1 51.1 51.1h519.8c28.2 0 51.1-22.9 51.1-51.1v-26.9c0-.5.2-1 .6-1.4.4-.4.8-.6 1.4-.6h192.7m0-1h-192.8c-1.6 0-2.9 1.3-2.9 3v26.9c0 27.5-22.5 50.1-50.1 50.1H445.8c-27.5 0-50.1-22.5-50.1-50.1v-26.9c0-1.7-1.3-3-3-3H199c-63.4 0-114.8 51.4-114.8 114.8v2458.4c0 63.4 51.4 114.8 114.8 114.8h1012.4c63.4 0 114.8-51.4 114.8-114.8V261.1c0-63.4-51.4-114.8-114.8-114.8z"></path></g></symbol><symbol viewBox="0 0 1040 1620" id="icon-mssurface"><style><![CDATA[.st0{fill:transparent}.st1{fill:#404040}]]></style><path class="st0" d="M136.5 127.5h767v1365h-767z"></path><path class="st1" d="M903 128v1364H137V128h766m1-1H136v1366h768V127zM953.3 814.5v16h13.4l2-16zM953.3 810.9h15.9l2.8-21.4h-18.7z"></path><g><path class="st1" d="M933.8 810.9h15.9v-21.4H931zM934.3 814.5l2 16h13.4v-16z"></path></g><g><path class="st1" d="M983 32c11 0 20 9 20 20v1516c0 11-9 20-20 20H59c-11 0-20-9-20-20V52c0-11 9-20 20-20h924m0-4H59c-13.3 0-24 10.7-24 24v1516c0 13.3 10.7 24 24 24h924c13.3 0 24-10.7 24-24V52c0-13.3-10.7-24-24-24z"></path></g></symbol><symbol viewBox="0 0 480 845.2" id="icon-win10phone"><style><![CDATA[.st0{opacity:.5}.st1{fill:transparent}.st2{fill:#404040}.st3{fill:none;stroke:#404040;stroke-width:3;stroke-miterlimit:10}]]></style><g class="st0"><path class="st1" d="M76.5 138.1h329v567h-329z"></path><path class="st2" d="M405 138.6v566H77v-566h328m1-1H76v568h330v-568z"></path></g><path class="st2" d="M448 57.6c.5 0 1 .5 1 1v774c0 .5-.5 1-1 1H32c-.5 0-1-.5-1-1v-774c0-.5.5-1 1-1h416m0-4H32c-2.8 0-5 2.3-5 5v774c0 2.8 2.3 5 5 5h416c2.8 0 5-2.3 5-5v-774c0-2.7-2.2-5-5-5z"></path><path class="st2" d="M415.5 70.6c13.5 0 24.5 11 24.5 24.5v700c0 13.5-11 24.5-24.5 24.5h-351c-13.5 0-24.5-11-24.5-24.5v-700c0-13.5 11-24.5 24.5-24.5h351m0-2h-351C49.9 68.6 38 80.5 38 95.1v700c0 14.6 11.9 26.5 26.5 26.5h351c14.6 0 26.5-11.9 26.5-26.5v-700c0-14.6-11.9-26.5-26.5-26.5z"></path><path class="st2" d="M266 90.6c.5 0 1 .5 1 1s-.5 1-1 1h-55c-.5 0-1-.5-1-1s.5-1 1-1h55m0-2h-55c-1.6 0-3 1.4-3 3s1.4 3 3 3h55c1.6 0 3-1.4 3-3s-1.4-3-3-3zM452 201.6h5v121h-5zM452 379.6h5v61h-5zM108 741.6H97.6l5.9-5.9-4.3.1-5 5-2.1 2.1 2.1 2.1 5 5 4.3.1-5.5-5.5h10zM238 743.6h-9v7.5l9 1.2zM240 743.6v8.9l12 1.6v-10.5z"></path><g><path class="st2" d="M240 732.7v8.9h12v-10.5zM238 732.9l-9 1.2v7.5h9z"></path></g><g><circle class="st3" cx="382.5" cy="744.1" r="6"></circle><path class="st2" d="M373.3 753.8c-.6-.6-.6-1.5 0-2.1l4.4-4.4 2.1 2.1-4.4 4.4c-.6.6-1.6.6-2.1 0z"></path></g></symbol><symbol viewBox="0 0 16 16" id="icon-switch-active_16x16"><path d="M11 5c1.7 0 3 1.3 3 3s-1.3 3-3 3H5c-1.7 0-3-1.3-3-3s1.3-3 3-3h6zm0-2H5C2.2 3 0 5.2 0 8s2.2 5 5 5h6c2.8 0 5-2.2 5-5s-2.2-5-5-5zm0 3c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-switch-inactive_16x16"><path d="M11 5c1.7 0 3 1.3 3 3s-1.3 3-3 3H5c-1.7 0-3-1.3-3-3s1.3-3 3-3h6zm0-2H5C2.2 3 0 5.2 0 8s2.2 5 5 5h6c2.8 0 5-2.2 5-5s-2.2-5-5-5zM5 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-text"><path d="M20 6H4c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H4V8h16v8zm-6-3H6v-2h8v2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-theme"><path d="M24 21.42a2.808 2.808 0 0 1-3 2.569 2.81 2.81 0 0 1-3-2.569c0-2.569 3-5.137 3-6.427 0 1.29 3 3.858 3 6.427zm-2-8.426L11 2 8.71 4.288l1.41 1.42.88-.88 7.17 7.167-12.53 3.808-2.81-2.809 4.88-4.877 1.58 1.589a1 1 0 0 0 1.42 0 1 1 0 0 0 0-1.42l-7-6.996a1.004 1.004 0 0 0-1.42 1.42l4 3.997L0 12.994l10 9.995 8-7.996 4-1.999z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-toolbox"><path d="M21 4h-5V2a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2H3a2 2 0 0 0-2 2v6h1v8a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-8h1V6a2 2 0 0 0-2-2zM10 2h4v2h-4V2zm10 18H4v-8h5v4h6v-4h5v8zm-9-6v-4h2v4h-2zm10-4h-6V8H9v2H3V6h18v4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-undo"><path d="M17 8H4.4l4-4L7 2.6.6 9 7 15.4 8.4 14l-4-4H17c2.2 0 4 1.8 4 4s-1.8 4-4 4h-1v2h1c3.3 0 6-2.7 6-6s-2.7-6-6-6z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-visible"><path d="M12 4C7.2 4 3 7.2.5 12 3 16.8 7.2 20 12 20s8.9-3.2 11.5-8C20.9 7.2 16.7 4 12 4zm0 14c-3.5 0-6.9-2.2-9.2-6C5.1 8.2 8.5 6 12 6c3.5 0 6.9 2.2 9.2 6-2.3 3.8-5.7 6-9.2 6zm0-11c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.3-5-5-5zm0 8c-1.7 0-3-1.3-3-3 0-.3 0-.5.1-.7l2.9.7-1.7-2.5c.5-.3 1-.5 1.7-.5 1.7 0 3 1.3 3 3s-1.4 3-3 3z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-wizard"><path d="M7.7 16.3c.4.4.4 1 0 1.4l-4 4c-.2.2-.4.3-.7.3-.3 0-.5-.1-.7-.3-.4-.4-.4-1 0-1.4l4-4c.4-.4 1-.4 1.4 0zM20.5 10l2.5 3.7-4.4.9-.9 4.4-3.7-2.5-3.7 2.5-.9-4.4-4.4-.9L7.5 10 5 6.3l4.4-.9.9-4.4L14 3.5 17.7 1l.9 4.4 4.4.9-2.5 3.7zm-2.4 0l.7-1.1.8-1.2-1.5-.3-1.3-.3-.3-1.3-.3-1.5-1.2.8-1 .8-1.1-.7-1.2-.9-.3 1.5-.3 1.3-1.3.3-1.5.3.8 1.2.8 1.1-.7 1.1-.8 1.2 1.5.3 1.3.3.3 1.3.3 1.5 1.2-.8 1.1-.7 1.1.7 1.2.8.3-1.5.3-1.3 1.3-.3 1.5-.3-.8-1.2-.9-1.1z"></path></symbol></svg>'},"./src/svgbundle.ts":
513
533
  /*!**************************!*\
514
534
  !*** ./src/svgbundle.ts ***!
515
535
  \**************************/
516
- /*! exports provided: SvgBundleViewModel */function(e,t,i){"use strict";if(i.r(t),i.d(t,"SvgBundleViewModel",(function(){})),document){var o=i(/*! ./svgbundle.html */"./src/svgbundle.html"),r=document.createElement("div");r.style.display="none",r.innerHTML=o,document.head.appendChild(r)}},"./src/textWorker.ts":
536
+ /*! exports provided: svgBundle */function(e,t,i){"use strict";i.r(t),i.d(t,"svgBundle",(function(){return o}));var o=i(/*! ./svgbundle.html */"./src/svgbundle.html")},"./src/textWorker.ts":
517
537
  /*!***************************!*\
518
538
  !*** ./src/textWorker.ts ***!
519
539
  \***************************/
@@ -521,11 +541,11 @@ License: MIT
521
541
  /*!************************!*\
522
542
  !*** ./src/toolbox.ts ***!
523
543
  \************************/
524
- /*! exports provided: QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox */function(e,t,i){"use strict";i.r(t),i.d(t,"QuestionToolboxCategory",(function(){return s})),i.d(t,"QuestionToolboxItem",(function(){return l})),i.d(t,"QuestionToolbox",(function(){return u}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ./editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ./utils/dragOrClickHelper */"./src/utils/dragOrClickHelper.ts"),s=function(e){function t(t){var i=e.call(this)||this;return i.toolbox=t,i}return Object(o.__extends)(t,e),t.prototype.toggleState=function(){this.toolbox&&this.toolbox.toggleCategoryState(this.name)},Object(o.__decorate)([Object(r.property)()],t.prototype,"name",void 0),Object(o.__decorate)([Object(r.propertyArray)()],t.prototype,"items",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"collapsed",void 0),t}(r.Base),l=function(e){function t(t){var i=e.call(this,t)||this;return i.item=t,i}return Object(o.__extends)(t,e),t.prototype.toJSON=function(){return this.item},t}(r.Action),u=function(e){function t(t,i){void 0===t&&(t=null),void 0===i&&(i=null);var o=e.call(this)||this;return o.creator=i,o._orderedQuestions=["text","checkbox","radiogroup","dropdown","comment","rating","ranking","imagepicker","boolean","image","html","signaturepad"],o._questionDefaultSettings={imagepicker:function(){return{choices:[{value:"lion",imageLink:"https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"},{value:"giraffe",imageLink:"https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"},{value:"panda",imageLink:"https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"},{value:"camel",imageLink:"https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"}]}},image:function(){return{imageLink:"https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"}}},o.copiedItemMaxCount=3,o.allowExpandMultipleCategoriesValue=!1,o.keepAllCategoriesExpandedValue=!1,o.createDefaultItems(t),o.dotsItemPopupModel.horizontalPosition="right",o.dotsItemPopupModel.verticalPosition="top",o.dragOrClickHelper=new a.DragOrClickHelper((function(e,t,i){var r=o.creator.getJSONForNewElement(i.json);o.dotsItemPopupModel.toggleVisibility(),o.dragDropHelper.startDragToolboxItem(e,r)})),o.invisibleItemsListModel.onPointerDown=function(e,t){o.dragOrClickHelper.onPointerDown(e,t)},o}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"orderedQuestions",{get:function(){return this._orderedQuestions},set:function(e){this._orderedQuestions=e,this.reorderItems()},enumerable:!1,configurable:!0}),t.prototype.onActiveCategoryChanged=function(e){for(var t=this.categories,i=0;i<t.length;i++){var o=t[i];o.collapsed=o.name!==e}},Object.defineProperty(t.prototype,"jsonText",{get:function(){return JSON.stringify(this.actions)},set:function(e){this.actions=e?JSON.parse(e):[],this.onItemsChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copiedJsonText",{get:function(){return JSON.stringify(this.copiedItems)},set:function(e){var t=e?JSON.parse(e):[];this.clearCopiedItems();for(var i=0;i<t.length;i++)t[i].isCopied=!0,this.addItem(t[i])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.actions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemNames",{get:function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].name);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copiedItems",{get:function(){for(var e=[],t=0;t<this.actions.length;t++)this.actions[t].isCopied&&e.push(this.actions[t]);return e},enumerable:!1,configurable:!0}),t.prototype.addItems=function(e,t){void 0===t&&(t=!1),t&&this.clearItems();for(var i=0;i<e.length;i++)this.actions.push(this.getActionByItem(e[i]));this.onItemsChanged()},t.prototype.addCopiedItem=function(e,t){void 0===t&&(t=null),t||(t={});var i=t.name?t.name:e.name,o=t.title?t.title:i,r={id:i,name:i,title:o,tooltip:t.tooltip?t.tooltip:o,isCopied:!1!==t.isCopied,iconName:t.iconName?t.iconName:"icon-default",json:t.json?t.json:this.getQuestionJSON(e),category:t.category?t.category:""};if(!this.replaceItem(r)){var n=this.copiedItems;this.copiedItemMaxCount>0&&n.length==this.copiedItemMaxCount&&this.removeItem(n[this.copiedItemMaxCount-1].name),this.addItem(r)}},t.prototype.getActionByItem=function(e){return e instanceof l?e:new l(e)},t.prototype.addItem=function(e,t){this.correctItem(e);var i=this.getActionByItem(e);void 0===t?this.actions.push(i):this.actions.splice(t,0,i),this.onItemsChanged()},t.prototype.correctItem=function(e){e.title||(e.title=e.name),e.tooltip||(e.tooltip=e.title)},Object.defineProperty(t.prototype,"dragDropHelper",{get:function(){return this.creator.dragDropSurveyElements},enumerable:!1,configurable:!0}),t.prototype.replaceItem=function(e){this.correctItem(e);var t=this.indexOf(e.name);if(!(t<0))return this.actions[t]=this.getActionByItem(e),this.onItemsChanged(),!0},t.prototype.removeItem=function(e){var t=this.indexOf(e);return!(t<0||(this.actions.splice(t,1),this.onItemsChanged(),0))},t.prototype.clearItems=function(){this.actions=[],this.onItemsChanged()},t.prototype.clearCopiedItems=function(){for(var e=this.copiedItems,t=0;t<e.length;t++)this.removeItem(e[t].name)},t.prototype.getItemByName=function(e){var t=this.indexOf(e);return t>-1?this.actions[t]:null},Object.defineProperty(t.prototype,"allowExpandMultipleCategories",{get:function(){return this.allowExpandMultipleCategoriesValue},set:function(e){this.allowExpandMultipleCategoriesValue=e,this.updateCategoriesState()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepAllCategoriesExpanded",{get:function(){return this.keepAllCategoriesExpandedValue},set:function(e){this.keepAllCategoriesExpandedValue=e,this.canCollapseCategories=!this.keepAllCategoriesExpanded,this.updateCategoriesState()},enumerable:!1,configurable:!0}),t.prototype.updateCategoriesState=function(){this.allowExpandMultipleCategories||this.keepAllCategoriesExpanded?(this.activeCategory="",this.keepAllCategoriesExpanded&&this.expandAllCategories()):this.categories.length>0&&(this.activeCategory=this.categories[0].name)},t.prototype.changeCategory=function(e,t){this.changeCategories([{name:e,category:t}])},t.prototype.changeCategories=function(e){for(var t=0;t<e.length;t++){var i=e[t],o=this.getItemByName(i.name);o&&(o.category=i.category)}this.onItemsChanged()},t.prototype.toggleCategoryState=function(e){if(!this.keepAllCategoriesExpanded)if(this.allowExpandMultipleCategories){var t=this.getCategoryByName(e);t&&(t.collapsed=!t.collapsed)}else this.activeCategory=e},t.prototype.expandCategory=function(e){if(this.allowExpandMultipleCategories){var t=this.getCategoryByName(e);t&&(t.collapsed=!1)}else this.canCollapseCategories&&(this.activeCategory=e)},t.prototype.collapseCategory=function(e){if(this.allowExpandMultipleCategories){var t=this.getCategoryByName(e);t&&(t.collapsed=!0)}},t.prototype.expandAllCategories=function(){this.expandCollapseAllCategories(!1)},t.prototype.collapseAllCategories=function(){this.expandCollapseAllCategories(!0)},t.prototype.invisibleItemSelected=function(e){this.creator.clickToolboxItem(e.json)},t.prototype.expandCollapseAllCategories=function(e){for(var t=this.categories,i=0;i<t.length;i++)t[i].collapsed=e},t.prototype.getCategoryByName=function(e){for(var t=this.categories,i=0;i<t.length;i++){var o=t[i];if(o.name===e)return o}return null},t.prototype.onItemsChanged=function(){for(var e=new Array,t={},i=this.activeCategory,o=0;o<this.actions.length;o++){var r=this.actions[o],a=r.category?r.category:n.editorLocalization.getString("ed.toolboxGeneralCategory");if(!t[a]){var s=this.createCategory();s.name=a,s.collapsed=a!==i&&!this.keepAllCategoriesExpanded,t[a]=s,e.push(s)}t[a].items.push(r)}this.categories=e,this.keepAllCategoriesExpanded||(this.allowExpandMultipleCategories?e.length>0&&(e[0].collapsed=!1):i&&t[i]?this.activeCategory=i:this.activeCategory=e.length>0?e[0].name:""),this.hasCategories=e.length>1,this.updateItemSeparators()},t.prototype.createCategory=function(){return new s(this)},t.prototype.indexOf=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].name==e)return t;return-1},t.prototype.updateItemSeparators=function(){this.categories.forEach((function(e,t){(e.items||[]).forEach((function(e,i){0!==t&&0==i&&(e.needSeparator=!0)}))}))},t.prototype.reorderItems=function(){var e=this;this.actions.sort((function(t,i){var o=e._orderedQuestions.indexOf(t.name);-1===o&&(o=Number.MAX_VALUE);var r=e._orderedQuestions.indexOf(i.name);return-1===r&&(r=Number.MAX_VALUE),o-r})),this.onItemsChanged()},t.prototype.createDefaultItems=function(e){this.clearItems();for(var t=this.getQuestionTypes(e),i=0;i<t.length;i++){var o=t[i],a=r.ElementFactory.Instance.createElement(o,"q1");a||(a=r.Serializer.createClass(o));var s=this.getQuestionJSON(a),l=n.editorLocalization.getString("qt."+o),u={id:o,name:o,iconName:"icon-"+o,title:l,tooltip:l,json:s,isCopied:!1,category:""};this.actions.push(this.getActionByItem(u))}this.registerCustomWidgets(),this.registerComponentQuestions(),this.onItemsChanged()},t.prototype.registerCustomWidgets=function(){var e=r.CustomWidgetCollection.Instance;if(e.getActivatedBy)for(var t=e.widgets,i=0;i<t.length;i++)t[i].canShowInToolbox&&this.addItemFromJSON(t[i].widgetJson)},t.prototype.registerComponentQuestions=function(){for(var e=this.getComponentItems(),t=0;t<e.length;t++)this.addItemFromJSON(e[t].json)},t.prototype.getComponentItems=function(){var e=void 0;if(e||(e=r.ComponentCollection),!e)return[];var t=e.Instance.items;return t||[]},t.prototype.addItemFromJSON=function(e){if(!1!==e.showInToolbox){var t=e.iconName?e.iconName:"icon-default",i=n.editorLocalization.getString("qt."+e.name);i&&i!=e.name||(i=e.title),i||(i=e.name);var o=e.defaultJSON?e.defaultJSON:{};o.type||(o.type=e.name);var a=e.category?e.category:"",s=new r.Action({id:e.name,name:e.name,iconName:t,title:i,tooltip:i,json:o,isCopied:!1,category:a});this.actions.push(this.getActionByItem(s))}},t.prototype.getQuestionJSON=function(e){var t=(new r.JsonObject).toJsonObject(e);if(t.type=e.getType(),this._questionDefaultSettings[t.type]){var i=this._questionDefaultSettings[t.type]();for(var o in i)t[o]=i[o]}return t},t.prototype.getQuestionTypes=function(e){var i=r.ElementFactory.Instance.getAllTypes();e&&0!=e.length||(e=i);for(var o=[],n=0;n<this.orderedQuestions.length;n++){var a=this.orderedQuestions[n];e.indexOf(a)>-1&&i.indexOf(a)>-1&&o.push(a)}for(n=0;n<e.length;n++){var s=e[n];o.indexOf(s)<0&&t.hiddenTypes.indexOf(s)<0&&i.indexOf(s)>-1&&o.push(s)}return o},t.prototype.dispose=function(){},t.hiddenTypes=["buttongroup","linkvalue","embeddedsurvey"],Object(o.__decorate)([Object(r.propertyArray)()],t.prototype,"categories",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:"",onSet:function(e,t){t.onActiveCategoryChanged(e)}})],t.prototype,"activeCategory",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"hasCategories",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"canCollapseCategories",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isCompact",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"visible",void 0),t}(r.AdaptiveActionContainer)},"./src/utils/actions.ts":
544
+ /*! exports provided: QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox */function(e,t,i){"use strict";i.r(t),i.d(t,"QuestionToolboxCategory",(function(){return s})),i.d(t,"QuestionToolboxItem",(function(){return l})),i.d(t,"QuestionToolbox",(function(){return u}));var o=i(/*! tslib */"./src/entries/helpers.ts"),r=i(/*! survey-core */"survey-core"),n=i(/*! ./editorLocalization */"./src/editorLocalization.ts"),a=i(/*! ./utils/dragOrClickHelper */"./src/utils/dragOrClickHelper.ts"),s=function(e){function t(t){var i=e.call(this)||this;return i.toolbox=t,i}return Object(o.__extends)(t,e),t.prototype.toggleState=function(){this.toolbox&&this.toolbox.toggleCategoryState(this.name)},Object(o.__decorate)([Object(r.property)()],t.prototype,"name",void 0),Object(o.__decorate)([Object(r.propertyArray)()],t.prototype,"items",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"collapsed",void 0),t}(r.Base),l=function(e){function t(t){var i=e.call(this,t)||this;return i.item=t,i}return Object(o.__extends)(t,e),t.prototype.toJSON=function(){return this.item},t}(r.Action),u=function(e){function t(t,i){void 0===t&&(t=null),void 0===i&&(i=null);var o=e.call(this)||this;return o.creator=i,o._orderedQuestions=["text","checkbox","radiogroup","dropdown","comment","rating","ranking","imagepicker","boolean","image","html","signaturepad"],o._questionDefaultSettings={imagepicker:function(){return{choices:[{value:"lion",imageLink:"https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"},{value:"giraffe",imageLink:"https://surveyjs.io/Content/Images/examples/image-picker/giraffe.jpg"},{value:"panda",imageLink:"https://surveyjs.io/Content/Images/examples/image-picker/panda.jpg"},{value:"camel",imageLink:"https://surveyjs.io/Content/Images/examples/image-picker/camel.jpg"}]}},image:function(){return{imageLink:"https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg"}}},o.copiedItemMaxCount=3,o.allowExpandMultipleCategoriesValue=!1,o.keepAllCategoriesExpandedValue=!1,o.createDefaultItems(t),o.dotsItemPopupModel.horizontalPosition="right",o.dotsItemPopupModel.verticalPosition="top",o.dragOrClickHelper=new a.DragOrClickHelper((function(e,t,i){var r=o.creator.getJSONForNewElement(i.json);o.dotsItemPopupModel.toggleVisibility(),o.dragDropHelper.startDragToolboxItem(e,r)})),o.invisibleItemsListModel.onPointerDown=function(e,t){o.dragOrClickHelper.onPointerDown(e,t)},o.dotsItemPopupModel.cssClass="svc-toolbox-popup",o}return Object(o.__extends)(t,e),Object.defineProperty(t.prototype,"orderedQuestions",{get:function(){return this._orderedQuestions},set:function(e){this._orderedQuestions=e,this.reorderItems()},enumerable:!1,configurable:!0}),t.prototype.onActiveCategoryChanged=function(e){for(var t=this.categories,i=0;i<t.length;i++){var o=t[i];o.collapsed=o.name!==e}},t.prototype.setLocation=function(e){"insideSideBar"===e?this.visibleActions.forEach((function(e){return e.mode="small"})):this.dotsItemPopupModel.horizontalPosition="right"==this.creator.toolboxLocation?"left":"right"},Object.defineProperty(t.prototype,"jsonText",{get:function(){return JSON.stringify(this.actions)},set:function(e){this.actions=e?JSON.parse(e):[],this.onItemsChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copiedJsonText",{get:function(){return JSON.stringify(this.copiedItems)},set:function(e){var t=e?JSON.parse(e):[];this.clearCopiedItems();for(var i=0;i<t.length;i++)t[i].isCopied=!0,this.addItem(t[i])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){return this.actions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemNames",{get:function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].name);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copiedItems",{get:function(){for(var e=[],t=0;t<this.actions.length;t++)this.actions[t].isCopied&&e.push(this.actions[t]);return e},enumerable:!1,configurable:!0}),t.prototype.addItems=function(e,t){void 0===t&&(t=!1),t&&this.clearItems();for(var i=0;i<e.length;i++)this.actions.push(this.getActionByItem(e[i]));this.onItemsChanged()},t.prototype.addCopiedItem=function(e,t){void 0===t&&(t=null),t||(t={});var i=t.name?t.name:e.name,o=t.title?t.title:i,r={id:i,name:i,title:o,tooltip:t.tooltip?t.tooltip:o,isCopied:!1!==t.isCopied,iconName:t.iconName?t.iconName:"icon-custom-question",json:t.json?t.json:this.getQuestionJSON(e),category:t.category?t.category:""};if(!this.replaceItem(r)){var n=this.copiedItems;this.copiedItemMaxCount>0&&n.length==this.copiedItemMaxCount&&this.removeItem(n[this.copiedItemMaxCount-1].name),this.addItem(r)}},t.prototype.getActionByItem=function(e){return e instanceof l?e:new l(e)},t.prototype.addItem=function(e,t){this.correctItem(e);var i=this.getActionByItem(e);void 0===t?this.actions.push(i):this.actions.splice(t,0,i),this.onItemsChanged()},t.prototype.correctItem=function(e){e.title||(e.title=e.name),e.tooltip||(e.tooltip=e.title)},Object.defineProperty(t.prototype,"dragDropHelper",{get:function(){return this.creator.dragDropSurveyElements},enumerable:!1,configurable:!0}),t.prototype.replaceItem=function(e){this.correctItem(e);var t=this.indexOf(e.name);if(!(t<0))return this.actions[t]=this.getActionByItem(e),this.onItemsChanged(),!0},t.prototype.removeItem=function(e){var t=this.indexOf(e);return!(t<0||(this.actions.splice(t,1),this.onItemsChanged(),0))},t.prototype.clearItems=function(){this.actions=[],this.onItemsChanged()},t.prototype.clearCopiedItems=function(){for(var e=this.copiedItems,t=0;t<e.length;t++)this.removeItem(e[t].name)},t.prototype.getItemByName=function(e){var t=this.indexOf(e);return t>-1?this.actions[t]:null},Object.defineProperty(t.prototype,"allowExpandMultipleCategories",{get:function(){return this.allowExpandMultipleCategoriesValue},set:function(e){this.allowExpandMultipleCategoriesValue=e,this.updateCategoriesState()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepAllCategoriesExpanded",{get:function(){return this.keepAllCategoriesExpandedValue},set:function(e){this.keepAllCategoriesExpandedValue=e,this.canCollapseCategories=!this.keepAllCategoriesExpanded,this.updateCategoriesState()},enumerable:!1,configurable:!0}),t.prototype.updateCategoriesState=function(){this.allowExpandMultipleCategories||this.keepAllCategoriesExpanded?(this.activeCategory="",this.keepAllCategoriesExpanded&&this.expandAllCategories()):this.categories.length>0&&(this.activeCategory=this.categories[0].name)},t.prototype.changeCategory=function(e,t){this.changeCategories([{name:e,category:t}])},t.prototype.changeCategories=function(e){for(var t=0;t<e.length;t++){var i=e[t],o=this.getItemByName(i.name);o&&(o.category=i.category)}this.onItemsChanged()},t.prototype.toggleCategoryState=function(e){if(!this.keepAllCategoriesExpanded)if(this.allowExpandMultipleCategories){var t=this.getCategoryByName(e);t&&(t.collapsed=!t.collapsed)}else this.activeCategory=e},t.prototype.expandCategory=function(e){if(this.allowExpandMultipleCategories){var t=this.getCategoryByName(e);t&&(t.collapsed=!1)}else this.canCollapseCategories&&(this.activeCategory=e)},t.prototype.collapseCategory=function(e){if(this.allowExpandMultipleCategories){var t=this.getCategoryByName(e);t&&(t.collapsed=!0)}},t.prototype.expandAllCategories=function(){this.expandCollapseAllCategories(!1)},t.prototype.collapseAllCategories=function(){this.expandCollapseAllCategories(!0)},t.prototype.invisibleItemSelected=function(e){this.creator.clickToolboxItem(e.json)},t.prototype.expandCollapseAllCategories=function(e){for(var t=this.categories,i=0;i<t.length;i++)t[i].collapsed=e},t.prototype.getCategoryByName=function(e){for(var t=this.categories,i=0;i<t.length;i++){var o=t[i];if(o.name===e)return o}return null},t.prototype.onItemsChanged=function(){for(var e=new Array,t={},i=this.activeCategory,o=0;o<this.actions.length;o++){var r=this.actions[o],a=r.category?r.category:n.editorLocalization.getString("ed.toolboxGeneralCategory");if(!t[a]){var s=this.createCategory();s.name=a,s.collapsed=a!==i&&!this.keepAllCategoriesExpanded,t[a]=s,e.push(s)}t[a].items.push(r)}this.categories=e,this.keepAllCategoriesExpanded||(this.allowExpandMultipleCategories?e.length>0&&(e[0].collapsed=!1):i&&t[i]?this.activeCategory=i:this.activeCategory=e.length>0?e[0].name:""),this.hasCategories=e.length>1,this.updateItemSeparators()},t.prototype.createCategory=function(){return new s(this)},t.prototype.indexOf=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].name==e)return t;return-1},t.prototype.updateItemSeparators=function(){this.categories.forEach((function(e,t){(e.items||[]).forEach((function(e,i){0!==t&&0==i&&(e.needSeparator=!0)}))}))},t.prototype.reorderItems=function(){var e=this;this.actions.sort((function(t,i){var o=e._orderedQuestions.indexOf(t.name);-1===o&&(o=Number.MAX_VALUE);var r=e._orderedQuestions.indexOf(i.name);return-1===r&&(r=Number.MAX_VALUE),o-r})),this.onItemsChanged()},t.prototype.createDefaultItems=function(e){this.clearItems();for(var t=this.getQuestionTypes(e),i=0;i<t.length;i++){var o=t[i],a=r.ElementFactory.Instance.createElement(o,"q1");a||(a=r.Serializer.createClass(o));var s=this.getQuestionJSON(a),l=n.editorLocalization.getString("qt."+o),u={id:o,name:o,iconName:"icon-"+o,title:l,tooltip:l,json:s,isCopied:!1,category:""};this.actions.push(this.getActionByItem(u))}this.registerCustomWidgets(),this.registerComponentQuestions(),this.onItemsChanged()},t.prototype.registerCustomWidgets=function(){var e=r.CustomWidgetCollection.Instance;if(e.getActivatedBy)for(var t=e.widgets,i=0;i<t.length;i++)t[i].canShowInToolbox&&this.addItemFromJSON(t[i].widgetJson)},t.prototype.registerComponentQuestions=function(){for(var e=this.getComponentItems(),t=0;t<e.length;t++)this.addItemFromJSON(e[t].json)},t.prototype.getComponentItems=function(){var e=void 0;if(e||(e=r.ComponentCollection),!e)return[];var t=e.Instance.items;return t||[]},t.prototype.addItemFromJSON=function(e){if(!1!==e.showInToolbox){var t=e.iconName?e.iconName:"icon-custom-question",i=n.editorLocalization.getString("qt."+e.name);i&&i!=e.name||(i=e.title),i||(i=e.name);var o=e.defaultJSON?e.defaultJSON:{};o.type||(o.type=e.name);var a=e.category?e.category:"",s=new r.Action({id:e.name,name:e.name,iconName:t,title:i,tooltip:i,json:o,isCopied:!1,category:a});this.actions.push(this.getActionByItem(s))}},t.prototype.getQuestionJSON=function(e){var t=(new r.JsonObject).toJsonObject(e);if(t.type=e.getType(),this._questionDefaultSettings[t.type]){var i=this._questionDefaultSettings[t.type]();for(var o in i)t[o]=i[o]}return t},t.prototype.getQuestionTypes=function(e){var i=r.ElementFactory.Instance.getAllTypes();e&&0!=e.length||(e=i);for(var o=[],n=0;n<this.orderedQuestions.length;n++){var a=this.orderedQuestions[n];e.indexOf(a)>-1&&i.indexOf(a)>-1&&o.push(a)}for(n=0;n<e.length;n++){var s=e[n];o.indexOf(s)<0&&t.hiddenTypes.indexOf(s)<0&&i.indexOf(s)>-1&&o.push(s)}return o},t.prototype.dispose=function(){},t.hiddenTypes=["buttongroup","linkvalue","embeddedsurvey"],Object(o.__decorate)([Object(r.propertyArray)()],t.prototype,"categories",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:"",onSet:function(e,t){t.onActiveCategoryChanged(e)}})],t.prototype,"activeCategory",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"hasCategories",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!0})],t.prototype,"canCollapseCategories",void 0),Object(o.__decorate)([Object(r.property)({defaultValue:!1})],t.prototype,"isCompact",void 0),t}(r.AdaptiveActionContainer)},"./src/utils/actions.ts":
525
545
  /*!******************************!*\
526
546
  !*** ./src/utils/actions.ts ***!
527
547
  \******************************/
528
- /*! exports provided: findAction, updateMatrixRemoveAction */function(e,t,i){"use strict";function o(e,t){if(!Array.isArray(e))return null;for(var i=0;i<e.length;i++)if(e[i].id===t)return e[i];return null}function r(e,t,i){var r=o(t,"remove-row");r&&(r.component="sv-action-bar-item",r.iconName="icon-delete",r.title=e.removeRowText,r.showTitle=!1,r.visibleIndex=10,r.action=function(){e.removeRowUI(i)})}i.r(t),i.d(t,"findAction",(function(){return o})),i.d(t,"updateMatrixRemoveAction",(function(){return r}))},"./src/utils/design.scss":
548
+ /*! exports provided: findAction, updateMatrixRemoveAction */function(e,t,i){"use strict";function o(e,t){if(!Array.isArray(e))return null;for(var i=0;i<e.length;i++)if(e[i].id===t)return e[i];return null}function r(e,t,i){var r=o(t,"remove-row");r&&(r.component="sv-action-bar-item",r.iconName="icon-delete",r.css="spg-action-button spg-action-button--danger",r.title=e.removeRowText,r.showTitle=!1,r.visibleIndex=10,r.action=function(){e.removeRowUI(i)})}i.r(t),i.d(t,"findAction",(function(){return o})),i.d(t,"updateMatrixRemoveAction",(function(){return r}))},"./src/utils/design.scss":
529
549
  /*!*******************************!*\
530
550
  !*** ./src/utils/design.scss ***!
531
551
  \*******************************/
@@ -545,12 +565,12 @@ License: MIT
545
565
  /*!******************************!*\
546
566
  !*** ./src/utils/resizer.ts ***!
547
567
  \******************************/
548
- /*! exports provided: ResizeManager */function(e,t,i){"use strict";i.r(t),i.d(t,"ResizeManager",(function(){return o}));var o=function(){function e(e){var t=this;this.container=e,this.events={mousedown:{touch:"touchend",mouse:"mousedown",pointer:"pointerdown"},mouseup:{touch:"touchstart",mouse:"mouseup",pointer:"pointerup"},mousemove:{touch:"touchmove",mouse:"mousemove",pointer:"pointermove"}},this.onMouseDownListener=function(e){e.preventDefault(),t.originalWidth=t.getStyleValue(t.container,"width"),t.originalMouseX=e.pageX,window.addEventListener(t.getMouseEvent("mousemove"),t.resize),window.addEventListener(t.getMouseEvent("mouseup"),t.stopResize)},this.resize=function(e){var i=t.originalWidth-(e.pageX-t.originalMouseX);i>t.maxWidth?i=t.maxWidth:i<t.minWidth&&(i=t.minWidth),t.container.style.width=i+"px"},this.stopResize=function(e){window.removeEventListener(t.getMouseEvent("mousemove"),t.resize),window.removeEventListener(t.getMouseEvent("mouseup"),t.stopResize)},this.init(e)}return e.prototype.getStyleValue=function(e,t){return parseFloat(window.getComputedStyle(e).getPropertyValue(t).replace("px",""))},e.prototype.isEventSupported=function(e){var t=document.createElement("div"),i=(e="on"+e)in t;return i||(t.setAttribute(e,"return;"),i="function"==typeof t[e]),t=null,i},e.prototype.getEventPrefix=function(){return void 0===this.mouseDevice&&(this.isEventSupported("pointerdown")?this.mouseDevice="pointer":this.isEventSupported("touchstart")?this.mouseDevice="touch":this.isEventSupported("mousedown")&&(this.mouseDevice="mouse")),this.mouseDevice},e.prototype.getMouseEvent=function(e){return this.events[e][this.getEventPrefix()]},e.prototype.init=function(e){var t=this.resizer=document.createElement("div");t.className="svc-resizer",this.minWidth=this.getStyleValue(e,"min-width"),this.maxWidth=this.getStyleValue(e,"max-width"),e.insertBefore(t,e.children[0]),t.addEventListener(this.getMouseEvent("mousedown"),this.onMouseDownListener)},e.prototype.dispose=function(){this.resizer.removeEventListener(this.getMouseEvent("mousedown"),this.onMouseDownListener),this.resizer.remove(),this.resizer=void 0},e}()},"./src/utils/utils.ts":
568
+ /*! exports provided: ResizeManager */function(e,t,i){"use strict";i.r(t),i.d(t,"ResizeManager",(function(){return o}));var o=function(){function e(e,t){var i=this;this.container=e,this.events={mousedown:{touch:"touchend",mouse:"mousedown",pointer:"pointerdown"},mouseup:{touch:"touchstart",mouse:"mouseup",pointer:"pointerup"},mousemove:{touch:"touchmove",mouse:"mousemove",pointer:"pointermove"}},this.onMouseDownListener=function(e){e.preventDefault(),i.originalWidth=i.getStyleValue(i.container,"width"),i.originalMouseX=e.pageX,i.currentResizer=e.target,window.addEventListener(i.getMouseEvent("mousemove"),i.resize),window.addEventListener(i.getMouseEvent("mouseup"),i.stopResize)},this.resize=function(e){var t=i.originalWidth,o=e.pageX-i.originalMouseX;i.currentResizer==i.westResizer?t-=o:t+=o,t>i.maxWidth?t=i.maxWidth:t<i.minWidth&&(t=i.minWidth),i.container.style.width=t+"px"},this.stopResize=function(e){window.removeEventListener(i.getMouseEvent("mousemove"),i.resize),window.removeEventListener(i.getMouseEvent("mouseup"),i.stopResize)},this.init(e),this.setHandles(t)}return e.prototype.setHandles=function(e){var t=!1,i=!1,o=e.split(",");o.forEach((function(e){return e.trim()})),((o=o.filter((function(e){return!!e})))||[]).forEach((function(e){"w"==e&&(t=!0),"e"==e&&(i=!0)})),this.westResizer.style.display=t?"block":"none",this.eastResizer.style.display=i?"block":"none"},e.prototype.getStyleValue=function(e,t){return parseFloat(window.getComputedStyle(e).getPropertyValue(t).replace("px",""))},e.prototype.isEventSupported=function(e){var t=document.createElement("div"),i=(e="on"+e)in t;return i||(t.setAttribute(e,"return;"),i="function"==typeof t[e]),t=null,i},e.prototype.getEventPrefix=function(){return void 0===this.mouseDevice&&(this.isEventSupported("pointerdown")?this.mouseDevice="pointer":this.isEventSupported("touchstart")?this.mouseDevice="touch":this.isEventSupported("mousedown")&&(this.mouseDevice="mouse")),this.mouseDevice},e.prototype.getMouseEvent=function(e){return this.events[e][this.getEventPrefix()]},e.prototype.init=function(e){this.westResizer=this.createrResizerElement("svc-resizer svc-resizer-west"),this.eastResizer=this.createrResizerElement("svc-resizer svc-resizer-east"),this.minWidth=this.getStyleValue(e,"min-width"),this.maxWidth=this.getStyleValue(e,"max-width"),e.insertBefore(this.westResizer,e.children[0]),e.appendChild(this.eastResizer)},e.prototype.createrResizerElement=function(e){var t=document.createElement("div");return t.className=e,t.addEventListener(this.getMouseEvent("mousedown"),this.onMouseDownListener),t},e.prototype.dispose=function(){this.eastResizer.removeEventListener(this.getMouseEvent("mousedown"),this.onMouseDownListener),this.eastResizer.remove(),this.eastResizer=void 0,this.westResizer.removeEventListener(this.getMouseEvent("mousedown"),this.onMouseDownListener),this.westResizer.remove(),this.westResizer=void 0},e}()},"./src/utils/utils.ts":
549
569
  /*!****************************!*\
550
570
  !*** ./src/utils/utils.ts ***!
551
571
  \****************************/
552
- /*! exports provided: getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select */function(e,t,i){"use strict";i.r(t),i.d(t,"getNextValue",(function(){return s})),i.d(t,"findParentNode",(function(){return l})),i.d(t,"focusFirstControl",(function(){return u})),i.d(t,"getFirstNonTextElement",(function(){return c})),i.d(t,"getNodesFromKoComponentInfo",(function(){return d})),i.d(t,"propertyExists",(function(){return p})),i.d(t,"isPropertyVisible",(function(){return m})),i.d(t,"toggleHovered",(function(){return g})),i.d(t,"clearNewLines",(function(){return h})),i.d(t,"select",(function(){return v}));var o=i(/*! survey-core */"survey-core");function r(e){if(!e)return"";for(var t="",i=e.length-1;i>=0;i--){if(e[i]>="0"&&e[i]<="9")t=e[i]+t;else if(t)return t;if(10==t.length)break}return t}var n={true:"false",True:"False",TRUE:"FALSE",false:"true",False:"True",FALSE:"TRUE",yes:"no",Yes:"No",YES:"NO",no:"yes",No:"Yes",NO:"YES"};function a(e,t){t=t.toString();for(var i=0;i<e.length;i++)if(e[i]&&e[i].toString()===t)return!0;return!1}function s(e,t){if(t.length>0)var i=function(e){return n[e]?n[e]:null}(t[t.length-1]);if(i&&t.indexOf(i)<0)return i;for(var o,s="",l=-1,u=t.length-1;u>=0;u--)if(t[u]){var c=t[u].toString();if(s=r(c)){l=c.lastIndexOf(s),o=t[u];break}}if(l>-1){var d,p=parseInt(s),m=o===p;do{if(m)d=++p;else{for(var g=(p++).toString();s.length>g.length;)g="0"+g;d=c.substr(0,l)+g+c.substr(l+s.length)}}while(a(t,d));return d}return e+1}function l(e,t){for(var i=t;i&&!i.classList.contains(e);)i=i.parentElement;return i}function u(e){for(var t=0;t<e.length;t++)if("function"==typeof e[t].getElementsByClassName){var i=e[t].getElementsByClassName("svd-focusable");if(0===i.length&&-1!==e[t].className.indexOf("svd-focusable")&&(i=[e[t]]),i.length>0){var o=i[0];if("a"!==o.tagName.toLowerCase()){o.focus({preventScroll:!0});break}}}}function c(e){if(e&&e.length){for(var t=0;t<e.length;t++)if("#text"!=e[t].nodeName&&"#comment"!=e[t].nodeName)return e[t];return null}}function d(e){var t=e.element,i=[];if(8!==t.nodeType)return t.childNodes;for(;t=t.nextSibling;)3!==t.nodeType&&i.push(t);return i}function p(e,t){var i=!0;return e&&"function"==typeof e.getType&&(i=!!o.Serializer.findProperty(e.getType(),t)),i}function m(e,t){var i=!0;if(e&&"function"==typeof e.getType){var r=o.Serializer.findProperty(e.getType(),t);i=!r||r.visible}return i}function g(e,t){e.__svc_question_processed||"mouseover"!==e.type?t.className=t.className.replace(" svc-hovered",""):(-1==t.className.split(" ").indexOf("svc-hovered")&&(t.className+=" svc-hovered"),e.__svc_question_processed=!0)}function h(e){return e.replace(new RegExp("(\\r\\n|\\n|\\r)","gm"),"")}function v(e){var t,i;window.getSelection&&document.createRange?(i=window.getSelection(),(t=document.createRange()).selectNodeContents(e),i.removeAllRanges(),i.addRange(t)):document.selection&&document.body.createTextRange&&((t=document.body.createTextRange()).moveToElementText(e),t.select())}},"survey-core":
572
+ /*! exports provided: getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes */function(e,t,i){"use strict";i.r(t),i.d(t,"getNextValue",(function(){return s})),i.d(t,"findParentNode",(function(){return l})),i.d(t,"focusFirstControl",(function(){return u})),i.d(t,"getFirstNonTextElement",(function(){return c})),i.d(t,"getNodesFromKoComponentInfo",(function(){return d})),i.d(t,"propertyExists",(function(){return p})),i.d(t,"isPropertyVisible",(function(){return m})),i.d(t,"toggleHovered",(function(){return g})),i.d(t,"clearNewLines",(function(){return h})),i.d(t,"select",(function(){return v})),i.d(t,"copyObject",(function(){return y})),i.d(t,"copyCssClasses",(function(){return f})),i.d(t,"assignDefaultV2Classes",(function(){return b}));var o=i(/*! survey-core */"survey-core");function r(e){if(!e)return"";for(var t="",i=e.length-1;i>=0;i--){if(e[i]>="0"&&e[i]<="9")t=e[i]+t;else if(t)return t;if(10==t.length)break}return t}var n={true:"false",True:"False",TRUE:"FALSE",false:"true",False:"True",FALSE:"TRUE",yes:"no",Yes:"No",YES:"NO",no:"yes",No:"Yes",NO:"YES"};function a(e,t){t=t.toString();for(var i=0;i<e.length;i++)if(e[i]&&e[i].toString()===t)return!0;return!1}function s(e,t){if(t.length>0)var i=function(e){return n[e]?n[e]:null}(t[t.length-1]);if(i&&t.indexOf(i)<0)return i;for(var o,s="",l=-1,u=t.length-1;u>=0;u--)if(t[u]){var c=t[u].toString();if(s=r(c)){l=c.lastIndexOf(s),o=t[u];break}}if(l>-1){var d,p=parseInt(s),m=o===p;do{if(m)d=++p;else{for(var g=(p++).toString();s.length>g.length;)g="0"+g;d=c.substr(0,l)+g+c.substr(l+s.length)}}while(a(t,d));return d}return e+1}function l(e,t){for(var i=t;i&&!i.classList.contains(e);)i=i.parentElement;return i}function u(e){for(var t=0;t<e.length;t++)if("function"==typeof e[t].getElementsByClassName){var i=e[t].getElementsByClassName("svd-focusable");if(0===i.length&&-1!==e[t].className.indexOf("svd-focusable")&&(i=[e[t]]),i.length>0){var o=i[0];if("a"!==o.tagName.toLowerCase()){o.focus({preventScroll:!0});break}}}}function c(e){if(e&&e.length){for(var t=0;t<e.length;t++)if("#text"!=e[t].nodeName&&"#comment"!=e[t].nodeName)return e[t];return null}}function d(e){var t=e.element,i=[];if(8!==t.nodeType)return t.childNodes;for(;t=t.nextSibling;)3!==t.nodeType&&i.push(t);return i}function p(e,t){var i=!0;return e&&"function"==typeof e.getType&&(i=!!o.Serializer.findProperty(e.getType(),t)),i}function m(e,t){var i=!0;if(e&&"function"==typeof e.getType){var r=o.Serializer.findProperty(e.getType(),t);i=!r||r.visible}return i}function g(e,t,i){function o(e,i){void 0===i&&(i=null);var o=t.className.split(" ");i&&-1==o.indexOf(i)||-1==o.indexOf(e)&&(t.className+=" "+e)}void 0===i&&(i=0),e.__svc_question_processed||"mouseover"!==e.type?(t.className=t.className.replace(" svc-hovered-ready",""),t.className=t.className.replace(" svc-hovered","")):(i?(o("svc-hovered-ready"),setTimeout((function(){o("svc-hovered","svc-hovered-ready")}),i)):o("svc-hovered"),e.__svc_question_processed=!0)}function h(e){return e.replace(new RegExp("(\\r\\n|\\n|\\r)","gm"),"")}function v(e){var t,i;window.getSelection&&document.createRange?(i=window.getSelection(),(t=document.createRange()).selectNodeContents(e),i.removeAllRanges(),i.addRange(t)):document.selection&&document.body.createTextRange&&((t=document.body.createTextRange()).moveToElementText(e),t.select())}function y(e,t){for(var i in t){var o=t[i];"object"==typeof o&&(o={},this.copyObject(o,t[i])),e[i]=o}}function f(e,t){t&&("string"==typeof t||t instanceof String?e.root=t:y(e,t))}function b(e,t){f(e,o.defaultV2Css.question),f(e,o.defaultV2Css[t])}},"survey-core":
553
573
  /*!*********************************************************************************************************!*\
554
574
  !*** external {"root":"Survey","commonjs2":"survey-core","commonjs":"survey-core","amd":"survey-core"} ***!
555
575
  \*********************************************************************************************************/
556
- /*! no static exports found */function(t,i){t.exports=e}})},e.exports=o(i(3))},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,i){},function(e,t,i){"use strict";i.r(t),i.d(t,"Version",(function(){return ie})),i.d(t,"SurveyCreatorComponent",(function(){return v})),i.d(t,"DesignTimeSurveyModel",(function(){return y})),i.d(t,"SurveyCreator",(function(){return f})),i.d(t,"LogoImageComponent",(function(){return b})),i.d(t,"RowWrapper",(function(){return x})),i.d(t,"QuestionAdornerComponent",(function(){return k})),i.d(t,"QuestionDropdownAdornerComponent",(function(){return S})),i.d(t,"QuestionImageAdornerComponent",(function(){return P})),i.d(t,"SurveyQuestionLinkValue",(function(){return E})),i.d(t,"SurveyElementEmbeddedSurvey",(function(){return C})),i.d(t,"QuestionRatingAdornerComponent",(function(){return N})),i.d(t,"QuestionWidgetAdornerComponent",(function(){return _})),i.d(t,"CellQuestionAdornerComponent",(function(){return O})),i.d(t,"CellQuestionDropdownAdornerComponent",(function(){return V})),i.d(t,"QuestionEditorContentComponent",(function(){return A})),i.d(t,"ItemValueAdornerComponent",(function(){return j})),i.d(t,"ImageItemValueAdornerComponent",(function(){return z})),i.d(t,"MatrixCellAdornerComponent",(function(){return M})),i.d(t,"SurveyResults",(function(){return I})),i.d(t,"TabDesignerComponent",(function(){return H})),i.d(t,"TabEmbedComponent",(function(){return B})),i.d(t,"TabJsonEditorAceComponent",(function(){return F})),i.d(t,"TabJsonEditorTextareaComponent",(function(){return Q})),i.d(t,"TabLogicAddButtonComponent",(function(){return U})),i.d(t,"TabLogicComponent",(function(){return G})),i.d(t,"TabPreviewSurveyComponent",(function(){return W})),i.d(t,"TabTranslationComponent",(function(){return K})),i.d(t,"SurveySimulator",(function(){return J})),i.d(t,"SurveyCreatorToolbox",(function(){return X})),i.d(t,"SurveyCreatorToolboxTool",(function(){return Z})),i.d(t,"SurveyCreatorToolboxItem",(function(){return Y})),i.d(t,"TabbedMenuComponent",(function(){return d})),i.d(t,"TabbedMenuItemComponent",(function(){return m})),i.d(t,"NotifierComponent",(function(){return h})),i.d(t,"SurveyNavigation",(function(){return D})),i.d(t,"ReactMouseEvent",(function(){return w})),i.d(t,"ReactDragEvent",(function(){return T})),i.d(t,"PropertyPanelComponent",(function(){return ee})),i.d(t,"PropertyGridComponent",(function(){return te})),i.d(t,"TranslationLineSkeleton",(function(){return oe})),i.d(t,"editorLocalization",(function(){return c.editorLocalization})),i.d(t,"localization",(function(){return c.editorLocalization})),i.d(t,"settings",(function(){return c.settings})),i.d(t,"SurveyLogic",(function(){return c.SurveyLogic})),i.d(t,"SurveyLogicUI",(function(){return c.SurveyLogicUI})),i.d(t,"SurveyQuestionEditorDefinition",(function(){return c.SurveyQuestionEditorDefinition})),i.d(t,"ToolboxToolViewModel",(function(){return c.ToolboxToolViewModel})),i.d(t,"PropertyGridEditorCollection",(function(){return c.PropertyGridEditorCollection})),i.d(t,"StylesManager",(function(){return c.StylesManager}));i(5),Object.assign;function o(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);function o(){this.constructor=e}e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var r=i(0),n=i.n(r),a=i(4),s=i.n(a),l=i(3),u=i(1),c=i(2),d=function(e){function t(t){var i=e.call(this,t)||this;return i.rootRef=n.a.createRef(),i}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){var e=this.model.renderedActions.map((function(e){return n.a.createElement(p,{item:e,key:e.id})}));return n.a.createElement("div",{ref:this.rootRef,className:"svc-tabbed-menu"},e)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this);var t=this.rootRef.current;t&&(this.manager=new l.ResponsivityManager(t,this.model,".svc-tabbed-menu-item-container:not(.sv-dots)>.sv-action__content"))},t.prototype.componentWillUnmount=function(){this.manager&&this.manager.dispose(),e.prototype.componentWillUnmount.call(this)},t}(u.SurveyElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e="svc-tabbed-menu-item-container";this.item.css&&(e+=" "+this.item.css),e+=this.item.isVisible?"":" sv-action--hidden";var t=u.ReactElementFactory.Instance.createElement(this.item.component||"svc-tabbed-menu-item",{item:this.item});return n.a.createElement("span",{key:this.item.id,className:e},n.a.createElement("div",{className:"sv-action__content"},t))},t}(u.SurveyElementBase),m=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this.item,t="svc-tabbed-menu-item";e.active&&(t+=" svc-tabbed-menu-item--selected"),void 0===e.enabled||e.enabled||(t+=" svc-tabbed-menu-item--disabled");var i="svc-text svc-tabbed-menu-item__text svc-text--normal";return e.active&&(i+=" svc-text--bold"),Object(u.attachKey2click)(n.a.createElement("div",{className:t,onClick:function(){return e.action(e)}},n.a.createElement("span",{className:i},e.title)))},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-tabbed-menu-item",(function(e){return n.a.createElement(m,e)}));var g=function(e){function t(t){var i=e.call(this,t)||this;return i.blurredByEscape=!1,i.onInput=function(e){return i.baseModel.onInput(e.nativeEvent),i.baseModel.errorText},i.onFocus=function(e){i.baseModel.onFocus(e.nativeEvent)},i.onKeyDown=function(e){return i.baseModel.onKeyDown(e.nativeEvent)},i.done=function(e){i.baseModel.done(e),i.locString.__isEditing=!1},i.edit=function(e){i.svStringEditorRef.current.focus(),i.locString.__isEditing=!0,i.baseModel.onClick(e)},i.state={changed:0},i.baseModel=new c.StringEditorViewModelBase(i.locString,i.creator),i.svStringEditorRef=n.a.createRef(),i.baseModel.blurEditor=function(){i.svStringEditorRef.current.blur()},i}return o(t,e),Object.defineProperty(t.prototype,"locString",{get:function(){return this.props.locStr.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.locStr.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.baseModel},Object.defineProperty(t.prototype,"errorText",{get:function(){return this.baseModel.errorText},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locString){var e=this;this.locString.onChanged=function(){e.setState({changed:e.state.changed+1})},this.locString.__isEditing&&this.svStringEditorRef.current.focus()}},t.prototype.componentWillUnmount=function(){this.locString&&(this.locString.onChanged=function(){})},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.baseModel.placeholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentEditable",{get:function(){return this.baseModel.contentEditable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this.baseModel.className(this.locString.renderedHtml)},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.locString)return null;this.baseModel.setLocString(this.locString);var e=null;if(this.locString.hasHtml){var t={__html:this.locString.renderedHtml};e=n.a.createElement("span",{ref:this.svStringEditorRef,className:"sv-string-editor",contentEditable:this.contentEditable,"aria-placeholder":this.placeholder,suppressContentEditableWarning:!0,dangerouslySetInnerHTML:t,onBlur:this.onInput,onFocus:this.onFocus,onKeyDown:this.onKeyDown,onClick:this.edit})}else e=n.a.createElement("span",{ref:this.svStringEditorRef,className:"sv-string-editor",contentEditable:this.contentEditable,"aria-placeholder":this.placeholder,suppressContentEditableWarning:!0,onBlur:this.onInput,onFocus:this.onFocus,onKeyDown:this.onKeyDown,onClick:this.edit},this.locString.renderedHtml);return n.a.createElement("span",{className:this.className},n.a.createElement("span",{className:"svc-string-editor__content"},n.a.createElement("div",{className:"svc-string-editor__border",onClick:this.edit},n.a.createElement(u.SvgIcon,{className:"svc-string-editor__button svc-string-editor__button--edit",size:16,iconName:"icon-pencil"})),e,n.a.createElement("div",{className:"svc-string-editor__controls",onClick:this.edit})),this.errorText?n.a.createElement("span",{className:"svc-string-editor__error"},this.errorText):"")},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-string-editor",(function(e){return n.a.createElement(g,e)}));var h=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){return this.notifier.active?n.a.createElement("div",{className:this.notifier.css},n.a.createElement("span",null,this.notifier.message)):null},t}(u.SurveyElementBase);l.StylesManager.applyTheme("modern");var v=function(e){function t(t){var i=e.call(this,t)||this;return i.rootNode=n.a.createRef(),i}return o(t,e),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.props.creator},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.creator.initKeyboardShortcuts(this.rootNode.current),this.creator.initResponsivityManager(this.rootNode.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.creator.removeKeyboardShortcuts(this.rootNode.current),this.creator.resetResponsivityManager()},t.prototype.renderElement=function(){var e=this.props.creator,t="svc-creator"+(this.props.creator.isMobileView?" svc-creator--mobile":""),i="svc-creator__content-wrapper svc-flex-row"+(this.props.creator.isMobileView?" svc-creator__content-wrapper--footer-toolbar":""),o=null;return this.props.creator.haveCommercialLicense||(o=n.a.createElement("div",{className:"svc-creator__banner"},n.a.createElement("span",{className:"svc-creator__non-commercial-text"},n.a.createElement("a",{href:"https://surveyjs.io/buy"},this.props.creator.licenseText)))),n.a.createElement("div",{className:t,ref:this.rootNode},n.a.createElement("div",{className:"svc-full-container svc-creator__area svc-flex-column"},n.a.createElement("div",{className:"svc-flex-row svc-full-container"},n.a.createElement("div",{className:"svc-flex-column svc-flex-row__element svc-flex-row__element--growing"},n.a.createElement("div",{className:"svc-top-bar"},e.showTabs?n.a.createElement("div",{className:"svc-tabbed-menu-wrapper"},n.a.createElement(d,{model:e.tabbedMenu})):null,e.showToolbar?n.a.createElement("div",{className:"svc-toolbar-wrapper"},n.a.createElement(u.SurveyActionBar,{model:e.toolbar})):null),n.a.createElement("div",{className:i},n.a.createElement("div",{className:"svc-creator__content-holder svc-flex-column"},this.renderActiveTab())),n.a.createElement("div",{className:"svc-footer-bar"},e.isMobileView?n.a.createElement("div",{className:"svc-toolbar-wrapper"},n.a.createElement(u.SurveyActionBar,{model:e.footerToolbar})):null)),this.renderPropertyGrid()),o,n.a.createElement(h,{creator:e,notifier:e.notifier})))},t.prototype.renderActiveTab=function(){for(var e=this.props.creator,t=0;t<e.tabs.length;t++)if(e.tabs[t].id===e.activeTab)return this.renderCreatorTab(e.tabs[t]);return null},t.prototype.renderCreatorTab=function(e){if(!1===e.visible)return null;var t=this.props.creator,i=e.renderTab?e.renderTab():u.ReactElementFactory.Instance.createElement(e.componentContent,{creator:t,survey:t.survey,data:e.data.model});return n.a.createElement("div",{key:e.id,id:"scrollableDiv-"+e.id,className:"svc-creator-tab"},i)},t.prototype.renderPropertyGrid=function(){if(this.creator.currentTabPropertyGrid){var e=this.creator.isMobileView?"sv-mobile-property-panel":"";return n.a.createElement("div",{className:e},u.ReactElementFactory.Instance.createElement("svc-property-panel",{model:this.creator.currentTabPropertyGrid}))}return null},t}(u.SurveyElementBase),y=function(e){function t(t,i){var o=e.call(this,i)||this;return o.creator=t,o.isPopupEditorContent=!1,o}return o(t,e),t.prototype.getElementWrapperComponentName=function(t,i){return Object(c.getElementWrapperComponentName)(t,i,this.isPopupEditorContent)||e.prototype.getElementWrapperComponentName.call(this,t,i)},t.prototype.getElementWrapperComponentData=function(t,i){return Object(c.getElementWrapperComponentData)(t,i,this.creator)||e.prototype.getElementWrapperComponentData.call(this,t)},t.prototype.getRowWrapperComponentName=function(e){return"svc-row"},t.prototype.getRowWrapperComponentData=function(e){return{creator:this.creator,row:e}},t.prototype.getItemValueWrapperComponentName=function(e,t){return Object(c.getItemValueWrapperComponentName)(e,t)},t.prototype.getItemValueWrapperComponentData=function(e,t){return Object(c.getItemValueWrapperComponentData)(e,t,this.creator)},t.prototype.getRendererForString=function(e,t){if(!this.creator.readOnly&&Object(c.isStringEditable)(e,t))return"svc-string-editor"},t.prototype.getRendererContextForString=function(e,t){var i=t;return!this.creator.readOnly&&Object(c.isStringEditable)(e,t.name)?{creator:this.creator,element:e,locStr:t}:i},t}(u.Model),f=function(e){function t(t,i){return void 0===t&&(t={}),e.call(this,t,i)||this}return o(t,e),t.prototype.createSurveyCore=function(e,t){return void 0===e&&(e={}),"designer"===t||"modal-question-editor"===t?new y(this,e):new u.Model(e)},t.prototype.render=function(e){var t=e;"string"==typeof e&&(t=document.getElementById(e)),s.a.unmountComponentAtNode(t),s.a.render(n.a.createElement(n.a.StrictMode,null,n.a.createElement(v,{creator:this})),t)},t.prototype.createQuestionElement=function(e){return u.ReactQuestionFactory.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isReadOnly,creator:this})},t.prototype.renderError=function(e,t,i){return n.a.createElement("div",{key:e},n.a.createElement("span",{className:i.error.icon,"aria-hidden":"true"}),n.a.createElement("span",{className:i.error.item},n.a.createElement(u.SurveyLocStringViewer,{locStr:t.locText})))},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(c.CreatorBase),b=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new c.LogoImageViewModel(t.data,null),i.rootRef=n.a.createRef(),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.root=this.rootRef.current},t.prototype.render=function(){var e=this,t=null;return t=this.model.survey.locLogo.renderedHtml?n.a.createElement(n.a.Fragment,null,n.a.createElement(u.LogoImage,{data:this.props.data.survey}),this.model.allowEdit?n.a.createElement("div",{className:"svc-image-item-value-controls"},Object(u.attachKey2click)(n.a.createElement(u.SvgIcon,{className:"svc-image-item-value-controls__button svc-image-item-value-controls__choose-file",size:24,iconName:"icon-file",onClick:function(){return e.model.chooseFile(e.model)}})),Object(u.attachKey2click)(n.a.createElement(u.SvgIcon,{className:"svc-image-item-value-controls__button svc-image-item-value-controls__remove",size:24,iconName:"icon-delete",onClick:function(){return e.model.remove(e.model)}}))):null):this.model.allowEdit?Object(u.attachKey2click)(n.a.createElement("div",{className:"svc-logo-image-placeholder",onClick:function(){return e.model.chooseFile(e.model)}},this.model.chooseLogoPlaceholder)):null,n.a.createElement("div",{ref:this.rootRef,className:"svc-logo-image"},n.a.createElement("input",{"aria-hidden":"true",type:"file",tabIndex:-1,accept:"image/*",className:"svc-choose-file-input"}),t)},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-logo-image",(function(e){return n.a.createElement(b,e)}));var x=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new c.RowViewModel(i.props.componentData.creator,i.props.row,null),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){return n.a.createElement("div",{"data-key":"svc-row-"+this.props.row.id,key:"svc-row-"+this.props.row.id,className:this.model.cssClasses},this.props.element)},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-row",(function(e){return n.a.createElement(x,e)}));var w=function(){function e(e){this.event=e}return e.prototype.stopPropagation=function(){this.event.stopPropagation()},e.prototype.preventDefault=function(){this.event.preventDefault()},Object.defineProperty(e.prototype,"cancelBubble",{get:function(){return!1},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this.event.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTarget",{get:function(){return this.event.currentTarget},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.event.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.event.clientY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.event.nativeEvent.offsetX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.event.nativeEvent.offsetY},enumerable:!1,configurable:!0}),e}(),T=function(e){function t(t){var i=e.call(this,t)||this;return i.event=t,i}return o(t,e),Object.defineProperty(t.prototype,"dataTransfer",{get:function(){return this.event.dataTransfer},enumerable:!1,configurable:!0}),t}(w),k=function(e){function t(t){var i=e.call(this,t)||this;return i.modelValue=i.createQuestionViewModel(),i}return o(t,e),t.prototype.createQuestionViewModel=function(){return new c.QuestionAdornerViewModel(this.props.componentData,this.props.question,null)},Object.defineProperty(t.prototype,"model",{get:function(){return this.modelValue},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!this.model.isDragged},t.prototype.renderElement=function(){var e=this.model.surveyElement.isInteractiveDesignElement,t=this.renderContent(e);return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{"data-sv-drop-target-survey-element":this.model.surveyElement.name,ref:this.rootRef,className:"svc-question__adorner"+this.model.rootCss(),onMouseOut:function(t){return e&&Object(c.toggleHovered)(t.nativeEvent,t.currentTarget)},onMouseOver:function(t){return e&&Object(c.toggleHovered)(t.nativeEvent,t.currentTarget)}},t))},t.prototype.renderContent=function(e){var t=this,i=this.renderElementContent();return e?Object(u.attachKey2click)(n.a.createElement("div",{className:"svc-question__content "+this.model.css(),onClick:function(e){return t.model.select(t.model,new w(e))}},this.renderContentOnTop(),this.renderDragAria(),i,n.a.createElement("div",{className:"svc-question__content-actions"},n.a.createElement(u.SurveyActionBar,{model:this.model.actionContainer})))):i},t.prototype.renderElementContent=function(){return n.a.createElement(n.a.Fragment,null,this.props.element,this.renderElementPlaceholder())},t.prototype.renderContentOnTop=function(){return null},t.prototype.renderDragAria=function(){var e=this;return this.model.allowDragging?n.a.createElement("div",{className:"svc-question__drag-area"},n.a.createElement("div",{className:"svc-question__drag-element",onPointerDown:function(t){return e.model.startDragSurveyElement(t)}})):null},t.prototype.renderElementPlaceholder=function(){return this.model.isEmptyElement?n.a.createElement("div",{className:"svc-panel__placeholder_frame"},n.a.createElement("div",{className:"svc-panel__placeholder"},this.model.placeholderText)):null},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-question",(function(e){return n.a.createElement(k,e)})),u.ReactElementFactory.Instance.registerElement("svc-panel",(function(e){return n.a.createElement(k,e)}));var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderElementPlaceholder=function(){var e=this.props.question;return n.a.createElement("div",{className:"svc-question__dropdown-choices"},(e.visibleChoices||[]).map((function(t,i){return n.a.createElement("div",{className:"svc-question__dropdown-choice",key:"editable_choice_"+i},e.survey.wrapItemValue(u.ReactElementFactory.Instance.createElement("survey-radiogroup-item",{question:e,cssClasses:e.cssClasses,isDisplayMode:!0,item:t,textStyle:e.textStyle,index:i,isChecked:e.value===t.value}),e,t))})))},t}(k);u.ReactElementFactory.Instance.registerElement("svc-dropdown-question",(function(e){return n.a.createElement(S,e)}));var P=function(e){function t(t){var i=e.call(this,t)||this;return i.rootRef=n.a.createRef(),i}return o(t,e),t.prototype.createQuestionViewModel=function(){return new c.QuestionImageAdornerViewModel(this.props.componentData,this.props.question,null,null)},Object.defineProperty(t.prototype,"imageModel",{get:function(){return this.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.imageModel.questionRoot=this.rootRef.current},t.prototype.renderContentOnTop=function(){return n.a.createElement("input",{type:"file","aria-hidden":"true",tabIndex:-1,accept:"image/*",className:"svc-choose-file-input",style:{position:"absolute",opacity:0,width:"1px",height:"1px",overflow:"hidden"}})},t.prototype.renderElementPlaceholder=function(){var e=this;return n.a.createElement("div",{className:"svc-image-question-controls"},this.model.allowEdit?Object(u.attachKey2click)(n.a.createElement("span",{className:"svc-image-question-controls__button svc-image-question-controls__choose-file",onClick:function(){return e.imageModel.chooseFile(e.imageModel)}},n.a.createElement(u.SvgIcon,{size:24,iconName:"icon-file"}))):null)},t}(k);u.ReactElementFactory.Instance.registerElement("svc-image-question",(function(e){return n.a.createElement(P,e)}));var E=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderClear=function(){var e=this;return this.questionBase.showClear?n.a.createElement(n.a.Fragment,null,Object(u.attachKey2click)(n.a.createElement("a",{className:"spg-question-link__clear-button",onClick:function(t){t.stopPropagation(),e.question.doClearClick()}},c.editorLocalization.getString("pe.clear")))):null},t.prototype.renderElement=function(){var e=this;return this.question.isReadOnly?n.a.createElement("span",null,this.question.linkValueText):n.a.createElement(n.a.Fragment,null,Object(u.attachKey2click)(n.a.createElement("a",{className:"spg-question-link__set-button",onClick:function(t){t.stopPropagation(),e.question.doLinkClick()}},this.question.linkValueText)),this.renderClear())},t}(u.SurveyQuestionElementBase);u.ReactQuestionFactory.Instance.registerQuestion("linkvalue",(function(e){return n.a.createElement(E,e)}));var C=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"embeddedSurvey",{get:function(){return this.props.element||this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.embeddedSurvey)return null;var e=this.embeddedSurvey.embeddedSurvey;return e&&e.currentPage?n.a.createElement(u.SurveyPage,{survey:e,page:e.currentPage,css:e.css,creator:this.creator}):null},t}(u.SurveyQuestionElementBase);u.ReactQuestionFactory.Instance.registerQuestion("embeddedsurvey",(function(e){return n.a.createElement(C,e)}));var N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.createQuestionViewModel=function(){return new c.QuestionRatingAdornerViewModel(this.props.componentData,this.props.question,null)},Object.defineProperty(t.prototype,"ratingModel",{get:function(){return this.model},enumerable:!1,configurable:!0}),t.prototype.renderElementPlaceholder=function(){this.props.question;var e=this.ratingModel;return n.a.createElement("div",{className:"svc-rating-question-controls svc-item-value-controls"},e.allowRemove?Object(u.attachKey2click)(n.a.createElement("span",{className:"svc-item-value-controls__button svc-item-value-controls__remove",onClick:function(){return e.removeItem(e)}},n.a.createElement(u.SvgIcon,{size:16,iconName:"icon-remove-item-value"}))):null,e.allowAdd?Object(u.attachKey2click)(n.a.createElement("span",{className:"svc-item-value-controls__button svc-item-value-controls__add",onClick:function(){return e.addItem(e)}},n.a.createElement(u.SvgIcon,{size:16,iconName:"icon-add-item-value"}))):null)},t}(k);u.ReactElementFactory.Instance.registerElement("svc-rating-question",(function(e){return n.a.createElement(N,e)}));var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.createQuestionViewModel=function(){return new c.QuestionAdornerViewModel(this.props.componentData,this.props.question,null)},Object.defineProperty(t.prototype,"widgetModel",{get:function(){return this.model},enumerable:!1,configurable:!0}),t.prototype.renderElementContent=function(){return n.a.createElement("div",{className:"svc-widget__content"},this.props.element)},t}(k);u.ReactElementFactory.Instance.registerElement("svc-widget-question",(function(e){return n.a.createElement(_,e)}));var O=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new c.QuestionAdornerViewModel(i.props.componentData,i.props.question,null),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return this.model.isDragged?null:n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{"data-sv-drop-target-survey-element":this.model.surveyElement.name,className:"svc-question__adorner"},Object(u.attachKey2click)(n.a.createElement("div",{className:" svc-question__content--selected-no-border svc-question__content",onClick:function(t){return e.model.select(e.model,new w(t))}},this.props.element))))},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-cell-question",(function(e){return n.a.createElement(O,e)}));var V=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new c.QuestionAdornerViewModel(i.props.componentData,i.props.question,null),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;if(this.model.isDragged)return null;var t=this.props.question;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{"data-sv-drop-target-survey-element":this.model.surveyElement.name,className:"svc-question__adorner"},Object(u.attachKey2click)(n.a.createElement("div",{className:" svc-question__content--selected-no-border svc-question__content",onClick:function(t){return e.model.select(e.model,new w(t))}},this.props.element,n.a.createElement("div",{className:"svc-question__dropdown-choices"},t.visibleChoices.map((function(e,i){return n.a.createElement("div",{className:"svc-question__dropdown-choice",key:"editable_choice_"+i},t.survey.wrapItemValue(u.ReactElementFactory.Instance.createElement("survey-radiogroup-item",{question:t,cssClasses:t.cssClasses,isDisplayMode:!0,item:e,textStyle:t.textStyle,index:i,isChecked:t.value===e.value}),t,e))})))))))},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-cell-dropdown-question",(function(e){return n.a.createElement(V,e)}));var A=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),t.prototype.createQuestionElement=function(e){return u.ReactQuestionFactory.Instance.createQuestion(!e.isDefaultRendering||e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t.prototype.renderError=function(e,t,i){return null},t.prototype.render=function(){var e=this.survey.getAllQuestions()[0];return n.a.createElement(n.a.Fragment,null,n.a.createElement(u.SurveyQuestion,{creator:this,element:e}))},t}(n.a.Component);u.ReactElementFactory.Instance.registerElement("svc-question-editor-content",(function(e){return n.a.createElement(A,e)}));var j=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new c.ItemValueWrapperViewModel(i.props.componentData.creator,i.props.question,i.props.item),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;this.model.item=this.props.item;var t=this.model.allowAdd?Object(u.attachKey2click)(n.a.createElement("span",{className:"svc-item-value-controls__button svc-item-value-controls__add",title:this.model.tooltip,onClick:function(){return e.model.add(e.model)}},n.a.createElement(u.SvgIcon,{size:16,iconName:"icon-add-item-value"}))):n.a.createElement(n.a.Fragment,null," ",this.model.isDraggable?n.a.createElement("span",{className:"svc-item-value-controls__button svc-item-value-controls__drag",title:this.model.dragTooltip},n.a.createElement(u.SvgIcon,{size:16,iconName:"icon-drag-handler"})):null,this.model.allowRemove?Object(u.attachKey2click)(n.a.createElement("span",{className:"svc-item-value-controls__button svc-item-value-controls__remove",title:this.model.tooltip,onClick:function(){return e.model.remove(e.model)}},n.a.createElement(u.SvgIcon,{size:16,iconName:"icon-remove-item-value"}))):null);return n.a.createElement("div",{className:"svc-item-value-wrapper"+(this.model.allowAdd?" svc-item-value--new":"")+(this.model.isDragging?" svc-item-value--dragging":"")+(this.model.isDragDropGhost?" svc-item-value--ghost":"")+(this.model.isDragDropMoveDown?" svc-item-value--movedown":"")+(this.model.isDragDropMoveUp?" svc-item-value--moveup":""),key:this.props.element.key,"data-sv-drop-target-item-value":this.model.isDraggable?this.model.item.value:void 0,onPointerDown:function(t){return e.model.onPointerDown(t)}},n.a.createElement("div",{className:"svc-item-value__ghost"}),n.a.createElement("div",{className:"svc-item-value-controls"},t),n.a.createElement("div",{className:"svc-item-value__item",onClick:function(t){return e.model.select(e.model,t)}},this.props.element))},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-item-value",(function(e){return n.a.createElement(j,e)}));var z=function(e){function t(t){var i=e.call(this,t)||this;return i.preventDragHandler=function(e){e.preventDefault()},i.model=new c.ImageItemValueWrapperViewModel(i.props.componentData.creator,i.props.question,i.props.item,null,null),i.rootRef=n.a.createRef(),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.itemsRoot=this.rootRef.current},t.prototype.render=function(){var e=this;this.model.item=this.props.item;var t=!this.props.question.isItemInList(this.props.item),i=null;return i=t?n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"svc-image-item-value__item"},n.a.createElement("div",{className:"sv-imagepicker__item sv-imagepicker__item--inline"},n.a.createElement("label",{className:"sv-imagepicker__label"},n.a.createElement("div",{style:{width:this.props.question.imageWidth?this.props.question.imageWidth+"px":void 0,height:this.props.question.imageHeight?this.props.question.imageHeight+"px":void 0},className:"sv-imagepicker__image"})))),n.a.createElement("div",{className:"svc-image-item-value-controls"},this.model.allowAdd?Object(u.attachKey2click)(n.a.createElement("span",{className:"svc-image-item-value-controls__button svc-image-item-value-controls__add",onClick:function(){return e.model.chooseNewFile(e.model)}},n.a.createElement(u.SvgIcon,{size:24,iconName:"icon-add-item-value"}))):null)):n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"svc-image-item-value__item"},this.props.element),n.a.createElement("div",{className:"svc-image-item-value-controls"},this.model.allowRemove?Object(u.attachKey2click)(n.a.createElement("span",{className:"svc-image-item-value-controls__button svc-image-item-value-controls__choose-file",onClick:function(){return e.model.chooseFile(e.model)}},n.a.createElement(u.SvgIcon,{size:24,iconName:"icon-file"}))):null,this.model.allowRemove?Object(u.attachKey2click)(n.a.createElement("span",{className:"svc-image-item-value-controls__button svc-image-item-value-controls__remove",onClick:function(){return e.model.remove(e.model)}},n.a.createElement(u.SvgIcon,{size:24,iconName:"icon-delete"}))):null)),n.a.createElement("div",{ref:this.rootRef,className:"svc-image-item-value-wrapper"+(t?" svc-image-item-value--new":""),key:this.props.element.key,"data-sv-drop-target-item-value":this.model.isDraggable?this.model.item.value:void 0,onPointerDown:function(t){return e.model.onPointerDown(t)},onDragStart:this.preventDragHandler},t?null:n.a.createElement("div",{className:"svc-image-item__drag-element"}),n.a.createElement("input",{type:"file","aria-hidden":"true",tabIndex:-1,accept:"image/*",className:"svc-choose-file-input",style:{position:"absolute",opacity:0,width:"1px",height:"1px",overflow:"hidden"}}),i)},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-image-item-value",(function(e){return n.a.createElement(z,e)}));var M=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new c.MatrixCellWrapperViewModel(i.props.componentData.creator,i.props.componentData.element,i.props.componentData.question,i.props.componentData.row,i.props.componentData.column),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this,t=null;return this.model.question&&(t=n.a.createElement("div",{className:"svc-matrix-cell__question-controls"},Object(u.attachKey2click)(n.a.createElement("span",{className:"svc-matrix-cell__question-controls-button",onClick:function(){return e.model.editQuestion(e.model)}},n.a.createElement(u.SvgIcon,{size:24,iconName:"icon-pencil"}))))),n.a.createElement("div",{className:"svc-matrix-cell",key:this.props.element.key,onClick:function(t){return!e.props.question&&e.model.selectContext(e.model,t)},onMouseOut:function(t){return e.model.hover(t.nativeEvent,t.currentTarget)},onMouseOver:function(t){return e.model.hover(t.nativeEvent,t.currentTarget)}},n.a.createElement("div",{className:"svc-matrix-cell--selected"+(this.model.isSelected?" svc-visible":"")}),this.props.element,t)},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-matrix-cell",(function(e){return n.a.createElement(M,e)}));var I=function(e){function t(t){var i=e.call(this,t)||this;return t.survey&&(i.model=new c.SurveyResultsModel(t.survey)),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return this.model?n.a.createElement("div",{className:"svd_test_results"},n.a.createElement("div",{className:"svd_results_header"},n.a.createElement("h2",null,this.model.surveyResultsText)),n.a.createElement("ul",{className:"navbar-default container-fluid nav nav-tabs editor-tabs"},n.a.createElement("li",{className:"nav-item "+this.model.resultViewType=="table"?"active":""},Object(u.attachKey2click)(n.a.createElement("a",{className:"nav-link",href:"#",onClick:function(){return e.model.selectTableClick(e.model)}},this.model.getLocString("ed.surveyResultsTable")))),n.a.createElement("li",{className:"nav-item "+this.model.resultViewType=="text"?"active":""},Object(u.attachKey2click)(n.a.createElement("a",{className:"nav-link",href:"#",onClick:function(){return e.model.selectJsonClick(e.model)}},this.model.getLocString("ed.surveyResultsJson"))))),this.renderResultAsText(),this.renderResultAsTable()):null},t.prototype.renderResultAsText=function(){return"text"!==this.model.resultViewType?null:n.a.createElement("div",{className:"svd_results_text svd-light-bg-color"},n.a.createElement("div",null,this.model.resultText))},t.prototype.renderResultAsTable=function(){return"table"!==this.model.resultViewType?null:n.a.createElement("div",{className:"svd_results_table svd-light-bg-color"},n.a.createElement("table",null,n.a.createElement("thead",null,n.a.createElement("tr",{className:"svd-light-background-color"},n.a.createElement("th",{className:"svd-dark-border-color"},this.model.resultsTitle),n.a.createElement("th",{className:"svd-dark-border-color"},this.model.resultsName),n.a.createElement("th",{className:"svd-dark-border-color"},this.model.resultsValue),n.a.createElement("th",{className:"svd-dark-border-color"},this.model.resultsDisplayValue))),n.a.createElement("tbody",null,this.renderRows(this.model.resultData))))},t.prototype.renderRows=function(e){var t=this;return e.map((function(e){return t.renderRow(e)}))},t.prototype.renderRow=function(e){return n.a.createElement(n.a.Fragment,null,n.a.createElement("tr",{"data-bind":"click: toggle"},n.a.createElement("td",{className:"svd-dark-border-color"},e.isNode?n.a.createElement("span",{className:""},"▶"):null,n.a.createElement("span",null,e.title)),n.a.createElement("td",{className:"svd-dark-border-color"},e.name),n.a.createElement("td",{className:"svd-dark-border-color"},n.a.createElement("div",{className:"survey-result-value"},e.getString(e.value))),n.a.createElement("td",{className:"svd-dark-border-color"},e.getString(e.displayValue))),this.renderRows(e.data))},t}(u.SurveyElementBase),q=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new c.PageViewModel(i.props.creator,i.props.page),i.rootRef=n.a.createRef(),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.model.onPageSelectedCallback=function(){t.rootRef.current&&c.SurveyHelper.scrollIntoViewIfNeeded(t.rootRef.current)}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.dispose()},t.prototype.canRender=function(){return!!this.model&&this.model.isPageLive&&!!this.model.page&&!!this.model.page.survey},t.prototype.renderElement=function(){var e=this,t=this.model.questionTypeSelectorModel;return Object(u.attachKey2click)(n.a.createElement("div",{ref:this.rootRef,className:"svc-page__content "+this.model.css,id:this.props.page.id,onClick:function(t){return e.model.select(e.model,new w(t))},onMouseOut:function(e){return Object(c.toggleHovered)(e.nativeEvent,e.currentTarget)},onMouseOver:function(e){return Object(c.toggleHovered)(e.nativeEvent,e.currentTarget)}},n.a.createElement(u.SurveyPage,{page:this.props.page,survey:this.props.survey,creator:this.props.creator,css:this.model.css}),this.model.allowEdit?Object(u.attachKey2click)(n.a.createElement("div",{className:"svc-page__add-new-question",onClick:function(t){t.stopPropagation(),e.model.addNewQuestion(e.model,new w(t))}},n.a.createElement("span",{className:"svc-text svc-text--normal svc-text--bold"},this.model.addNewQuestionText),Object(u.attachKey2click)(n.a.createElement("button",{onClick:function(e){e.stopPropagation(),t.action()},className:"svc-page__question-type-selector",title:this.model.addNewQuestionText},n.a.createElement("span",{className:"svc-page__question-type-selector-icon"},n.a.createElement(u.SvgIcon,{iconName:t.iconName,size:24})),n.a.createElement(u.Popup,{model:t.popupModel}))))):null,n.a.createElement("div",{className:"svc-page__content-actions"},n.a.createElement(u.SurveyActionBar,{model:this.model.actionContainer}))))},t}(u.SurveyElementBase),L=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new c.PageNavigatorViewModel(t.creator.pagesController),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.dispose()},t.prototype.renderElement=function(){var e=this;if(!this.model.visible)return null;var t="svc-page-navigator__selector";return this.model.isPopupOpened&&(t+=" svc-page-navigator__selector--opened"),n.a.createElement("div",{className:"svc-page-navigator"},n.a.createElement("div",{className:t,onClick:function(){return e.model.togglePageSelector()},title:"text"},n.a.createElement(u.SvgIcon,{className:"svc-page-navigator__navigator-icon",iconName:this.model.icon,size:22}),n.a.createElement(u.Popup,{model:this.model.popupModel})),this.model.items.map((function(e){return n.a.createElement(R,{key:e.id,item:e})})))},t}(u.SurveyElementBase),R=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getStateElement=function(){return this.props.item},t.prototype.renderElement=function(){var e=this.props.item,t="svc-page-navigator-item-content";return Object(l.unwrap)(e.active)&&(t+=" svc-page-navigator-item--selected"),Object(l.unwrap)(e.disabled)&&(t+=" svc-page-navigator-item--disabled"),n.a.createElement("div",{className:"svc-page-navigator-item"},Object(u.attachKey2click)(n.a.createElement("div",{className:t,onClick:function(){return e.action(e)},title:e.title},n.a.createElement("div",{className:"svc-page-navigator-item__dot"}),n.a.createElement("div",{className:"svc-page-navigator-item__banner"},n.a.createElement("span",{className:"svc-text svc-text--normal"},e.title),n.a.createElement("span",{className:"svc-page-navigator-item__dot"})))))},t}(u.SurveyElementBase),D=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onPropChangedHandler=function(e,i){if(!t.isRendering){var o=["showProgressBar","progressBarType","currentPageValue"];if(!(o.indexOf(i.name)<0)){for(var r={},n=0;n<o.length;n++){var a=o[n];r[a]=t.survey[a]}t.setState(r)}}},t}return o(t,e),t.prototype.componentDidMount=function(){this.setHandler()},t.prototype.componentDidUpdate=function(e,t){this.setHandler()},t.prototype.setHandler=function(){this.survey&&!this.survey.onPropertyChanged.hasFunc(this.onPropChangedHandler)&&this.survey.onPropertyChanged.add(this.onPropChangedHandler)},t.prototype.componentWillUnmount=function(){this.survey&&this.survey.onPropertyChanged.remove(this.onPropChangedHandler)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTop",{get:function(){return"top"==this.location},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.isTop?this.survey.isShowProgressBarOnTop:this.survey.isShowProgressBarOnBottom},t.prototype.renderElement=function(){return u.ReactElementFactory.Instance.createElement("sv-progress-"+this.survey.progressBarType.toLowerCase(),{survey:this.survey,css:this.survey.css,isTop:this.isTop})},t}(u.SurveyElementBase),H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.model.creator},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderPages=function(){var e=this,t=this.creator.survey.pages.map((function(t){return n.a.createElement("div",{className:"svc-page","data-sv-drop-target-page":t.name,"data-sv-drop-target-survey-element":t.name,key:t.id},n.a.createElement(q,{survey:e.creator.survey,page:t,creator:e.creator}))}));return this.model.showNewPage&&t.push(n.a.createElement("div",{className:"svc-page","data-sv-drop-target-survey-element":"newGhostPage",key:this.model.newPage.id},n.a.createElement(q,{survey:this.creator.survey,page:this.model.newPage,creator:this.creator}))),t},t.prototype.renderElement=function(){var e=this,t=this.creator.survey;t.css.root;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"svc-flex-column"},u.ReactElementFactory.Instance.createElement("svc-toolbox",{creator:this.creator})),n.a.createElement("div",{className:"svc-tab-designer "+t.css.root},n.a.createElement("div",{className:this.model.getDesignerCss()},this.creator.allowEditSurveyTitle?n.a.createElement("div",{onClick:function(){return e.creator.selectElement(t)}},n.a.createElement(u.SurveyHeader,{survey:t})):null,n.a.createElement(D,{survey:t,location:"top"}),this.renderPages(),n.a.createElement(D,{survey:t,location:"bottom",css:t.css}))),this.creator.showPageNavigator?n.a.createElement(L,{creator:this.creator,pages:this.creator.pagesController.pages}):null)},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-tab-designer",(function(e){return n.a.createElement(H,e)}));var B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){return n.a.createElement("div",{className:"svc-creator-tab__content svc-embed-tab__content"},this.model.survey?n.a.createElement(u.Survey,{model:this.model.survey}):null)},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-tab-embed",(function(e){return n.a.createElement(B,e)}));var F=function(e){function t(t){var i=e.call(this,t)||this;return i.aceEditorrRef=n.a.createRef(),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.model.init(ace.edit(this.aceEditorrRef.current))},t.prototype.renderElement=function(){return n.a.createElement("div",{className:"svc-creator-tab__content"},n.a.createElement("div",{className:"svc-json-editor-tab__content"},n.a.createElement("div",{className:"svc-json-editor-tab__ace-editor",ref:this.aceEditorrRef})))},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-tab-json-editor-ace",(function(e){return n.a.createElement(F,e)}));var Q=function(e){function t(t){var i=e.call(this,t)||this;return i.model.canShowErrors=!1,i}return o(t,e),t.prototype.getStateElement=function(){return this.model},Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this,t=[],i=1,o=this.model.userFriendlyErrors,r=0;r<o.length;r++)t.push(n.a.createElement("span",{key:i},n.a.createElement("b",null,"Error: "))),i++,t.push(n.a.createElement("span",{key:i},o[r])),i++;return n.a.createElement("div",{className:"svc-creator-tab__content"},n.a.createElement("div",{className:"svc-json-editor-tab__content"},n.a.createElement("textarea",{className:"svc-json-editor-tab__content-area",value:this.model.text,onChange:function(t){return e.model.text=t.target.value},onKeyDown:function(t){return e.model.checkKey(t,t)},disabled:this.model.readOnly,"aria-label":this.model.ariaLabel}),t.length>0&&n.a.createElement("button",{className:"svc-json-editor-tab__errros_button",onClick:function(){return e.model.toggleErrors()}},this.model.errorButtonText),this.model.canShowErrors&&n.a.createElement("div",{className:"svc-json-editor-tab__content-errors"},t)))},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-tab-json-editor-textarea",(function(e){return n.a.createElement(Q,e)}));var U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.button},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){var e=this,t="svc-logic-tab__content-action"+(void 0===this.model.enabled||this.model.enabled?"":" svc-logic-tab__content-action--disabled");return Object(u.attachKey2click)(n.a.createElement("div",{role:"button",onClick:function(t){t.stopPropagation(),e.model.action()},className:t,title:this.model.title},n.a.createElement("span",{className:"svc-text svc-text--normal svc-text--bold"},this.model.title)))},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-tab-logic-add-button",(function(e){return n.a.createElement(U,e)}));var G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){this.model;var e=this.renderViewContent();return n.a.createElement("div",{className:"svc-creator-tab__content"},e)},t.prototype.renderViewContent=function(){var e="svc-plugin-tab__content svc-logic-tab__content "+(this.model.hasItems?"":"svc-logic-tab__empty");void 0===this.model.addNewButton.enabled||this.model.addNewButton.enabled;return n.a.createElement(r.Fragment,null,n.a.createElement("div",{className:e},n.a.createElement(u.Survey,{model:this.model.itemsSurvey}),this.model.hasItems?null:n.a.createElement("div",{className:"svc-logic-tab__content-empty"},n.a.createElement("span",{className:"svc-text"},this.model.emptyTabPlaceHolder)),n.a.createElement(U,{button:this.model.addNewButton})))},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-tab-logic",(function(e){return n.a.createElement(G,e)}));var J=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){return this.model.survey?this.model.hasFrame?n.a.createElement("div",{className:"svd-simulator-main "+this.model.simulatorMainCssClass},n.a.createElement("div",{className:"svd-simulator-wrapper",style:{width:this.model.simulatorFrame.frameWidth+"px",height:this.model.simulatorFrame.frameHeight+"px"}},n.a.createElement("div",{className:"svd-simulator-frame "+this.model.simulatorFrame.cssClass,style:{width:(this.model.landscapeOrientation?this.model.simulatorFrame.frameHeight:this.model.simulatorFrame.frameWidth)+"px",height:(this.model.landscapeOrientation?this.model.simulatorFrame.frameWidth:this.model.simulatorFrame.frameHeight)+"px"}}),n.a.createElement("div",{className:"svd-simulator",style:{width:this.model.simulatorFrame.width/this.model.simulatorFrame.scale+"px",height:this.model.simulatorFrame.height/this.model.simulatorFrame.scale+"px",transform:"scale("+this.model.simulatorFrame.scale+") translate(-50%, -50%)"}},n.a.createElement("div",{className:"svd-simulator-content"},n.a.createElement(u.Survey,{model:this.model.survey}))))):n.a.createElement("div",{className:"svd-simulator-main"},n.a.createElement("div",{className:"svd-simulator-content"},n.a.createElement(u.Survey,{model:this.model.survey}))):n.a.createElement("div",{className:"svd-simulator-main"})},t}(u.SurveyElementBase),W=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){var e="svc-creator-tab__content svc-test-tab__content"+(this.model.isPageToolbarVisible?" svc-creator-tab__content--with-toolbar":"");return n.a.createElement("div",{className:e},n.a.createElement("div",{className:"svc-plugin-tab__content"},n.a.createElement(J,{model:this.model.simulator}),this.model.isRunning?null:n.a.createElement(I,{survey:this.model.simulator.survey})),this.getBottomToolbar())},t.prototype.getBottomToolbar=function(){return this.model.isPageToolbarVisible?n.a.createElement("div",{className:"svc-test-tab__content-actions"},n.a.createElement(u.SurveyActionBar,{model:this.model.pages})):null},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-tab-test",(function(e){return n.a.createElement(W,e)}));var K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){return this.model?n.a.createElement("div",{className:"svc-creator-tab__content svc-translation-tab"},this.renderElementContent()):null},t.prototype.renderElementContent=function(){return this.model.isEmpty?n.a.createElement("div",{className:"st-no-strings"},n.a.createElement("span",null,this.model.noStringsText)):n.a.createElement("div",{className:"st-content"},n.a.createElement("div",{className:"svc-flex-column st-strings-wrapper"},n.a.createElement("div",{className:"svc-flex-row st-strings-header"},n.a.createElement(u.Survey,{model:this.model.stringsHeaderSurvey})),n.a.createElement("div",{className:"svc-flex-row svc-plugin-tab__content st-strings"},n.a.createElement(u.Survey,{model:this.model.stringsSurvey}))))},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-tab-translation",(function(e){return n.a.createElement(K,e)}));var Z=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new c.ToolboxToolViewModel(i.item,i.props.creator),i}return o(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.props.isCompact},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this,t=this.item,i="svc-toolbox__tool "+t.css+(t.isVisible?"":" sv-action--hidden"),o=u.ReactElementFactory.Instance.createElement(this.item.component||"svc-toolbox-item",{item:this.item,creator:this.creator,isCompact:this.isCompact});return n.a.createElement("div",{className:i,key:t.id,onPointerDown:function(t){t.persist(),e.model.onPointerDown(t)},onClick:function(t){t.persist(),e.model.click(t)}},n.a.createElement("div",{className:"sv-action__content"},this.isCompact&&t.needSeparator?n.a.createElement("div",{className:"svc-toolbox__category-separator"}):null,o))},t}(u.SurveyElementBase),Y=function(e){function t(t){var i=e.call(this,t)||this,o=i.props.item;return i.model=new c.ToolboxToolViewModel(o,i.props.creator),i}return o(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e="svc-toolbox__item svc-toolbox__item--"+this.item.iconName;return Object(u.attachKey2click)(n.a.createElement("div",{className:e,tabIndex:0,title:this.item.tooltip,role:"button","aria-label":this.item.tooltip+" "+c.editorLocalization.getString("toolbox")+" item"},n.a.createElement("span",{className:"svc-toolbox__item-container"},n.a.createElement(u.SvgIcon,{size:24,iconName:this.item.iconName})),this.props.isCompact?n.a.createElement("span",{className:"svc-toolbox__item-banner"},n.a.createElement(u.SvgIcon,{size:24,iconName:this.item.iconName}),n.a.createElement("span",{className:"svc-toolbox__item-title"},this.item.title)):n.a.createElement("span",{className:"svc-toolbox__item-title"},this.item.title)))},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-toolbox-item",(function(e){return n.a.createElement(Y,e)}));var X=function(e){function t(t){var i=e.call(this,t)||this;return i.rootRef=n.a.createRef(),i}return o(t,e),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolbox",{get:function(){return this.creator.toolbox},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this);var t=this.rootRef.current;t&&(this.manager=new l.VerticalResponsivityManager(t,this.toolbox,".svc-toolbox__tool:not(.sv-dots)>.sv-action__content",40))},t.prototype.componentWillUnmount=function(){this.manager&&this.manager.dispose(),e.prototype.componentWillUnmount.call(this)},t.prototype.getStateElement=function(){return this.toolbox},t.prototype.render=function(){if(!this.toolbox.hasActions||!this.toolbox.visible)return null;if(this.toolbox.isCompact||1==this.toolbox.categories.length){var e=this.renderItems();return n.a.createElement("div",{ref:this.rootRef,className:"svc-toolbox"+(this.toolbox.isCompact?" svc-toolbox--compact":"")},n.a.createElement("div",{className:"svc-toolbox__container"},n.a.createElement("div",{className:"svc-toolbox__category"},e)))}var t=this.renderCategories();return n.a.createElement("div",{ref:this.rootRef,className:"svc-toolbox"},n.a.createElement("div",{className:"svc-toolbox__container"},t))},t.prototype.renderItems=function(){var e=this;return this.toolbox.renderedActions.map((function(t,i){return n.a.createElement(Z,{item:t,creator:e.creator,isCompact:e.toolbox.isCompact,key:"item"+i})}))},t.prototype.renderCategories=function(){var e=this;return this.toolbox.categories.map((function(t){return e.renderToolboxCategory(t)}))},t.prototype.renderToolboxCategory=function(e){var t=this,i=null;this.toolbox.categories.length>1&&(i=Object(u.attachKey2click)(n.a.createElement("div",{className:"svc-toolbox__category-header",onClick:function(t){return e.toggleState()}},n.a.createElement("span",{className:"svc-toolbox__category-title"},e.name),n.a.createElement("div",{className:"svc-toolbox__category-header__controls"},e.collapsed?n.a.createElement(u.SvgIcon,{className:"svc-toolbox__category-header__button svc-string-editor__button--expand",size:16,iconName:"icon-expand"}):n.a.createElement(u.SvgIcon,{className:"svc-toolbox__category-header__button svc-string-editor__button--collapse",size:16,iconName:"icon-collapse"})))));var o=[];return e.collapsed||(o=e.items.map((function(e,i){return n.a.createElement(Z,{item:e,creator:t.creator,isCompact:!1,key:"item"+i})}))),n.a.createElement("div",{className:"svc-toolbox__category",key:e.name},i,o)},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-toolbox",(function(e){return n.a.createElement(X,e)}));var $=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){return this.model.isVisible?n.a.createElement("div",{className:"svc-object-selector"},n.a.createElement(u.List,{model:this.model.list})):null},t}(u.SurveyElementBase);u.ReactElementFactory.Instance.registerElement("svc-object-selector",(function(e){return n.a.createElement($,e)}));var ee=function(e){function t(t){var i=e.call(this,t)||this;return i.containerRef=n.a.createRef(),i}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.resizeManager=new c.ResizeManager(this.containerRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.resizeManager.dispose()},t.prototype.canRender=function(){return!!this.model&&e.prototype.canRender.call(this)},t.prototype.renderElement=function(){var e=this,t={display:this.model.visible?"":"none"},i="svc-properties-container"+(this.model.flyoutPanelMode?" svc-flyoutPanelMode-panel":"");return n.a.createElement("div",{className:i},n.a.createElement("div",{className:"svc-properties-shadow"}),n.a.createElement("div",{className:"svc-flex-column svc-properties-wrapper"},n.a.createElement("div",{ref:this.containerRef,style:t,className:"svc-property-panel"},n.a.createElement("div",{className:"svc-property-panel__header"},n.a.createElement("div",{className:"svc-property-panel__actions"},n.a.createElement(u.SurveyActionBar,{model:this.model.toolbar})),n.a.createElement("div",{className:"svc-property-panel__title"},this.model.headerText)),n.a.createElement("div",{className:"svc-property-panel__expander"},u.ReactElementFactory.Instance.createElement("svc-property-grid",{model:this.model})),n.a.createElement("div",{className:"svc-property-panel__close"},n.a.createElement("div",{className:"sd-btn sd-btn--action svc-property-panel__close-button",onClick:function(){return e.model.closePropertyGrid()}}," ",this.model.closeText," ")))))},t}(u.SurveyElementBase),te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){return n.a.createElement(u.Survey,{model:this.model.survey})},t}(u.SurveyElementBase);u.ReactQuestionFactory.Instance.registerQuestion("buttongroup",(function(e){return n.a.createElement(u.SurveyQuestionButtonGroup,e)}));u.ReactElementFactory.Instance.registerElement("svc-property-grid",(function(e){return n.a.createElement(te,e)})),u.ReactElementFactory.Instance.registerElement("svc-property-panel",(function(e){return n.a.createElement(ee,e)}));var ie,oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return n.a.createElement("div",{className:"sd-translation-line-skeleton"})},t}(n.a.Component);u.ReactElementFactory.Instance.registerElement("sd-translation-line-skeleton",(function(e){return n.a.createElement(oe,e)})),ie="1.8.78-beta.1"}])}));
576
+ /*! no static exports found */function(t,i){t.exports=e}})},e.exports=o(i(3))},function(e,t){e.exports=i},function(e,t){e.exports=o},function(e,t,i){},function(e,t,i){"use strict";i.r(t),i.d(t,"Version",(function(){return ae})),i.d(t,"SurveyCreatorComponent",(function(){return y})),i.d(t,"DesignTimeSurveyModel",(function(){return f})),i.d(t,"SurveyCreator",(function(){return b})),i.d(t,"LogoImageComponent",(function(){return x})),i.d(t,"RowWrapper",(function(){return w})),i.d(t,"QuestionAdornerComponent",(function(){return S})),i.d(t,"QuestionDropdownAdornerComponent",(function(){return P})),i.d(t,"QuestionImageAdornerComponent",(function(){return E})),i.d(t,"SurveyQuestionLinkValue",(function(){return C})),i.d(t,"SurveyElementEmbeddedSurvey",(function(){return N})),i.d(t,"QuestionRatingAdornerComponent",(function(){return O})),i.d(t,"QuestionWidgetAdornerComponent",(function(){return _})),i.d(t,"CellQuestionAdornerComponent",(function(){return A})),i.d(t,"CellQuestionDropdownAdornerComponent",(function(){return j})),i.d(t,"QuestionEditorContentComponent",(function(){return V})),i.d(t,"ItemValueAdornerComponent",(function(){return I})),i.d(t,"ImageItemValueAdornerComponent",(function(){return z})),i.d(t,"MatrixCellAdornerComponent",(function(){return M})),i.d(t,"SurveyResults",(function(){return q})),i.d(t,"TabDesignerComponent",(function(){return H})),i.d(t,"TabEmbedComponent",(function(){return F})),i.d(t,"TabJsonEditorAceComponent",(function(){return Q})),i.d(t,"TabJsonEditorTextareaComponent",(function(){return U})),i.d(t,"TabLogicAddButtonComponent",(function(){return G})),i.d(t,"TabLogicComponent",(function(){return J})),i.d(t,"TabPreviewSurveyComponent",(function(){return K})),i.d(t,"TabTranslationComponent",(function(){return Z})),i.d(t,"SurveySimulator",(function(){return W})),i.d(t,"SurveyCreatorToolboxTool",(function(){return Y})),i.d(t,"SurveyCreatorToolboxItem",(function(){return X})),i.d(t,"Toolbox",(function(){return $})),i.d(t,"AdaptiveToolbox",(function(){return ee})),i.d(t,"TabbedMenuComponent",(function(){return d})),i.d(t,"TabbedMenuItemComponent",(function(){return m})),i.d(t,"NotifierComponent",(function(){return h})),i.d(t,"SurveyNavigation",(function(){return B})),i.d(t,"SideBarComponent",(function(){return te})),i.d(t,"ReactMouseEvent",(function(){return T})),i.d(t,"ReactDragEvent",(function(){return k})),i.d(t,"PropertyGridComponent",(function(){return re})),i.d(t,"TranslationLineSkeleton",(function(){return ne})),i.d(t,"ActionButton",(function(){return se})),i.d(t,"editorLocalization",(function(){return u.editorLocalization})),i.d(t,"localization",(function(){return u.editorLocalization})),i.d(t,"settings",(function(){return u.settings})),i.d(t,"svgBundle",(function(){return u.svgBundle})),i.d(t,"SurveyLogic",(function(){return u.SurveyLogic})),i.d(t,"SurveyLogicUI",(function(){return u.SurveyLogicUI})),i.d(t,"SurveyQuestionEditorDefinition",(function(){return u.SurveyQuestionEditorDefinition})),i.d(t,"ToolboxToolViewModel",(function(){return u.ToolboxToolViewModel})),i.d(t,"PropertyGridEditorCollection",(function(){return u.PropertyGridEditorCollection})),i.d(t,"StylesManager",(function(){return u.StylesManager}));i(5),Object.assign;function o(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i]);function o(){this.constructor=e}e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}var r=i(0),n=i.n(r),a=i(4),s=i.n(a),l=i(1),u=i(2),c=i(3),d=function(e){function t(t){var i=e.call(this,t)||this;return i.rootRef=n.a.createRef(),i}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){var e=this.model.renderedActions.map((function(e){return n.a.createElement(p,{item:e,key:e.id})}));return n.a.createElement("div",{ref:this.rootRef,className:"svc-tabbed-menu"},e)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this);var t=this.rootRef.current;t&&(this.manager=new c.ResponsivityManager(t,this.model,".svc-tabbed-menu-item-container:not(.sv-dots)>.sv-action__content"))},t.prototype.componentWillUnmount=function(){this.manager&&this.manager.dispose(),e.prototype.componentWillUnmount.call(this)},t}(l.SurveyElementBase),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e="svc-tabbed-menu-item-container";this.item.css&&(e+=" "+this.item.css),e+=this.item.isVisible?"":" sv-action--hidden";var t=l.ReactElementFactory.Instance.createElement(this.item.component||"svc-tabbed-menu-item",{item:this.item});return n.a.createElement("span",{key:this.item.id,className:e},n.a.createElement("div",{className:"sv-action__content"},t))},t}(l.SurveyElementBase),m=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this.item,t="svc-tabbed-menu-item";e.active&&(t+=" svc-tabbed-menu-item--selected"),void 0===e.enabled||e.enabled||(t+=" svc-tabbed-menu-item--disabled");var i="svc-text svc-tabbed-menu-item__text svc-text--normal";return e.active&&(i+=" svc-text--bold"),Object(l.attachKey2click)(n.a.createElement("div",{className:t,onClick:function(){return e.action(e)}},n.a.createElement("span",{className:i},e.title)))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-tabbed-menu-item",(function(e){return n.a.createElement(m,e)}));var g=function(e){function t(t){var i=e.call(this,t)||this;return i.blurredByEscape=!1,i.onInput=function(e){return i.baseModel.onInput(e.nativeEvent),i.baseModel.errorText},i.onFocus=function(e){i.baseModel.onFocus(e.nativeEvent)},i.onKeyDown=function(e){return i.baseModel.onKeyDown(e.nativeEvent)},i.done=function(e){i.baseModel.done(e),i.locString.__isEditing=!1},i.edit=function(e){i.svStringEditorRef.current.focus(),i.locString.__isEditing=!0,i.baseModel.onClick(e)},i.state={changed:0},i.baseModel=new u.StringEditorViewModelBase(i.locString,i.creator),i.svStringEditorRef=n.a.createRef(),i.baseModel.blurEditor=function(){i.svStringEditorRef.current.blur()},i}return o(t,e),Object.defineProperty(t.prototype,"locString",{get:function(){return this.props.locStr.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.locStr.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.baseModel},Object.defineProperty(t.prototype,"errorText",{get:function(){return this.baseModel.errorText},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locString){var e=this;this.locString.onChanged=function(){e.setState({changed:e.state.changed+1})},this.locString.__isEditing&&this.svStringEditorRef.current.focus()}},t.prototype.componentWillUnmount=function(){this.locString&&(this.locString.onChanged=function(){})},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.baseModel.placeholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentEditable",{get:function(){return this.baseModel.contentEditable},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return this.baseModel.className(this.locString.renderedHtml)},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.locString)return null;this.baseModel.setLocString(this.locString);var e=null;if(this.locString.hasHtml){var t={__html:this.locString.renderedHtml};e=n.a.createElement("span",{ref:this.svStringEditorRef,className:"sv-string-editor",contentEditable:this.contentEditable,"aria-placeholder":this.placeholder,suppressContentEditableWarning:!0,dangerouslySetInnerHTML:t,onBlur:this.onInput,onFocus:this.onFocus,onKeyDown:this.onKeyDown,onClick:this.edit})}else e=n.a.createElement("span",{ref:this.svStringEditorRef,className:"sv-string-editor",contentEditable:this.contentEditable,"aria-placeholder":this.placeholder,suppressContentEditableWarning:!0,onBlur:this.onInput,onFocus:this.onFocus,onKeyDown:this.onKeyDown,onClick:this.edit},this.locString.renderedHtml);return n.a.createElement("span",{className:this.className},n.a.createElement("span",{className:"svc-string-editor__content"},n.a.createElement("div",{className:"svc-string-editor__border",onClick:this.edit},n.a.createElement(l.SvgIcon,{className:"svc-string-editor__button svc-string-editor__button--edit",size:16,iconName:"icon-edit"})),e,n.a.createElement("div",{className:"svc-string-editor__controls",onClick:this.edit})),this.errorText?n.a.createElement("span",{className:"svc-string-editor__error"},this.errorText):"")},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-string-editor",(function(e){return n.a.createElement(g,e)}));var h=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){return this.notifier.active?n.a.createElement("div",{className:this.notifier.css},n.a.createElement("span",null,this.notifier.message)):null},t}(l.SurveyElementBase),v=function(e){function t(t){var i=e.call(this,t)||this;return i.containerRef=n.a.createRef(),i}return o(t,e),t.prototype.componentDidMount=function(){this.containerRef.current.innerHTML=u.svgBundle},t.prototype.componentWillUnmount=function(){},t.prototype.render=function(){return n.a.createElement("div",{ref:this.containerRef})},t}(n.a.Component);l.ReactElementFactory.Instance.registerElement("svc-svg-bundle",(function(e){return n.a.createElement(v,e)}));var y=function(e){function t(t){var i=e.call(this,t)||this;return i.rootNode=n.a.createRef(),i}return o(t,e),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.props.creator},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.creator.initKeyboardShortcuts(this.rootNode.current),this.creator.initResponsivityManager(this.rootNode.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.creator.removeKeyboardShortcuts(this.rootNode.current),this.creator.resetResponsivityManager()},t.prototype.renderElement=function(){var e=this.props.creator,t="svc-creator"+(this.props.creator.isMobileView?" svc-creator--mobile":""),i="svc-creator__content-wrapper svc-flex-row"+(this.props.creator.isMobileView?" svc-creator__content-wrapper--footer-toolbar":""),o="svc-flex-row svc-full-container svc-creator__side-bar--"+this.creator.sideBarLocation,r=null;return this.props.creator.haveCommercialLicense||(r=n.a.createElement("div",{className:"svc-creator__banner"},n.a.createElement("span",{className:"svc-creator__non-commercial-text"},n.a.createElement("a",{href:"https://surveyjs.io/buy"},this.props.creator.licenseText)))),n.a.createElement("div",{className:t,ref:this.rootNode},n.a.createElement(v,null),n.a.createElement("div",{className:"svc-full-container svc-creator__area svc-flex-column"},n.a.createElement("div",{className:o},n.a.createElement("div",{className:"svc-flex-column svc-flex-row__element svc-flex-row__element--growing"},n.a.createElement("div",{className:"svc-top-bar"},e.showTabs?n.a.createElement("div",{className:"svc-tabbed-menu-wrapper"},n.a.createElement(d,{model:e.tabbedMenu})):null,e.showToolbar?n.a.createElement("div",{className:"svc-toolbar-wrapper"},n.a.createElement(l.SurveyActionBar,{model:e.toolbar})):null),n.a.createElement("div",{className:i},n.a.createElement("div",{className:"svc-creator__content-holder svc-flex-column"},this.renderActiveTab())),n.a.createElement("div",{className:"svc-footer-bar"},e.isMobileView?n.a.createElement("div",{className:"svc-toolbar-wrapper"},n.a.createElement(l.SurveyActionBar,{model:e.footerToolbar})):null)),this.renderSideBar()),r,n.a.createElement(h,{creator:e,notifier:e.notifier})))},t.prototype.renderActiveTab=function(){for(var e=this.props.creator,t=0;t<e.tabs.length;t++)if(e.tabs[t].id===e.activeTab)return this.renderCreatorTab(e.tabs[t]);return null},t.prototype.renderCreatorTab=function(e){if(!1===e.visible)return null;var t=this.props.creator,i=e.renderTab?e.renderTab():l.ReactElementFactory.Instance.createElement(e.componentContent,{creator:t,survey:t.survey,data:e.data.model}),o="svc-creator-tab"+("right"==t.toolboxLocation?" svc-creator__toolbox--right":"");return n.a.createElement("div",{key:e.id,id:"scrollableDiv-"+e.id,className:o},i)},t.prototype.renderSideBar=function(){if(this.creator.sideBar){var e=this.creator.isMobileView?"sv-mobile-side-bar":"";return n.a.createElement("div",{className:e},l.ReactElementFactory.Instance.createElement("svc-side-bar",{model:this.creator.sideBar}))}return null},t}(l.SurveyElementBase),f=function(e){function t(t,i){var o=e.call(this,i)||this;return o.creator=t,o.isPopupEditorContent=!1,o}return o(t,e),t.prototype.getElementWrapperComponentName=function(t,i){return Object(u.getElementWrapperComponentName)(t,i,this.isPopupEditorContent)||e.prototype.getElementWrapperComponentName.call(this,t,i)},t.prototype.getElementWrapperComponentData=function(t,i){return Object(u.getElementWrapperComponentData)(t,i,this.creator)||e.prototype.getElementWrapperComponentData.call(this,t)},t.prototype.getRowWrapperComponentName=function(e){return"svc-row"},t.prototype.getRowWrapperComponentData=function(e){return{creator:this.creator,row:e}},t.prototype.getItemValueWrapperComponentName=function(e,t){return Object(u.getItemValueWrapperComponentName)(e,t)},t.prototype.getItemValueWrapperComponentData=function(e,t){return Object(u.getItemValueWrapperComponentData)(e,t,this.creator)},t.prototype.getRendererForString=function(e,t){if(!this.creator.readOnly&&Object(u.isStringEditable)(e,t))return"svc-string-editor"},t.prototype.getRendererContextForString=function(e,t){var i=t;return!this.creator.readOnly&&Object(u.isStringEditable)(e,t.name)?{creator:this.creator,element:e,locStr:t}:i},t}(l.Model),b=function(e){function t(t,i){return void 0===t&&(t={}),e.call(this,t,i)||this}return o(t,e),t.prototype.createSurveyCore=function(e,t){return void 0===e&&(e={}),"designer"===t||"modal-question-editor"===t?new f(this,e):new l.Model(e)},t.prototype.render=function(e){var t=e;"string"==typeof e&&(t=document.getElementById(e)),s.a.unmountComponentAtNode(t),s.a.render(n.a.createElement(n.a.StrictMode,null,n.a.createElement(y,{creator:this})),t)},t.prototype.createQuestionElement=function(e){return l.ReactQuestionFactory.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isReadOnly,creator:this})},t.prototype.renderError=function(e,t,i){return n.a.createElement("div",{key:e},n.a.createElement("span",{className:i.error.icon,"aria-hidden":"true"}),n.a.createElement("span",{className:i.error.item},n.a.createElement(l.SurveyLocStringViewer,{locStr:t.locText})))},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(u.CreatorBase);l.ReactElementFactory.Instance.registerElement("survey-widget",(function(e){return n.a.createElement(l.Survey,e)}));var x=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new u.LogoImageViewModel(t.data,null),i.rootRef=n.a.createRef(),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.root=this.rootRef.current},t.prototype.render=function(){var e=this,t=null;return t=this.model.survey.locLogo.renderedHtml?n.a.createElement(n.a.Fragment,null,n.a.createElement(l.LogoImage,{data:this.props.data.survey}),this.model.allowEdit?n.a.createElement("div",{className:"svc-image-item-value-controls"},Object(l.attachKey2click)(n.a.createElement(l.SvgIcon,{className:"svc-image-item-value-controls__button svc-image-item-value-controls__choose-file",size:24,iconName:"icon-file",onClick:function(){return e.model.chooseFile(e.model)}})),Object(l.attachKey2click)(n.a.createElement(l.SvgIcon,{className:"svc-image-item-value-controls__button svc-image-item-value-controls__remove",size:24,iconName:"icon-delete",onClick:function(){return e.model.remove(e.model)}}))):null):this.model.allowEdit?Object(l.attachKey2click)(n.a.createElement("div",{className:"svc-logo-image-placeholder",onClick:function(){return e.model.chooseFile(e.model)}},this.model.chooseLogoPlaceholder)):null,n.a.createElement("div",{ref:this.rootRef,className:"svc-logo-image"},n.a.createElement("input",{"aria-hidden":"true",type:"file",tabIndex:-1,accept:"image/*",className:"svc-choose-file-input"}),t)},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-logo-image",(function(e){return n.a.createElement(x,e)}));var w=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new u.RowViewModel(i.props.componentData.creator,i.props.row,null),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){return n.a.createElement("div",{key:"svc-row-"+this.props.row.id,className:this.model.cssClasses},this.props.element)},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-row",(function(e){return n.a.createElement(w,e)}));var T=function(){function e(e){this.event=e}return e.prototype.stopPropagation=function(){this.event.stopPropagation()},e.prototype.preventDefault=function(){this.event.preventDefault()},Object.defineProperty(e.prototype,"cancelBubble",{get:function(){return!1},set:function(e){},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){return this.event.target},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentTarget",{get:function(){return this.event.currentTarget},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientX",{get:function(){return this.event.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"clientY",{get:function(){return this.event.clientY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetX",{get:function(){return this.event.nativeEvent.offsetX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"offsetY",{get:function(){return this.event.nativeEvent.offsetY},enumerable:!1,configurable:!0}),e}(),k=function(e){function t(t){var i=e.call(this,t)||this;return i.event=t,i}return o(t,e),Object.defineProperty(t.prototype,"dataTransfer",{get:function(){return this.event.dataTransfer},enumerable:!1,configurable:!0}),t}(T),S=function(e){function t(t){var i=e.call(this,t)||this;return i.modelValue=i.createQuestionViewModel(),i}return o(t,e),t.prototype.createQuestionViewModel=function(){return new u.QuestionAdornerViewModel(this.props.componentData,this.props.question,null)},Object.defineProperty(t.prototype,"model",{get:function(){return this.modelValue},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!this.model.isDragged},t.prototype.renderElement=function(){var e=this.model.surveyElement.isInteractiveDesignElement,t=this.renderContent(e);return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{"data-sv-drop-target-survey-element":this.model.surveyElement.name,ref:this.rootRef,className:"svc-question__adorner"+this.model.rootCss(),onMouseOut:function(t){return e&&Object(u.toggleHovered)(t.nativeEvent,t.currentTarget)},onMouseOver:function(t){return e&&Object(u.toggleHovered)(t.nativeEvent,t.currentTarget)}},t))},t.prototype.renderContent=function(e){var t=this,i=this.renderElementContent();return e?Object(l.attachKey2click)(n.a.createElement("div",{className:"svc-question__content "+this.model.css(),onClick:function(e){return t.model.select(t.model,new T(e))}},this.renderContentOnTop(),this.renderDragAria(),i,!this.model.isEmptyElement&&this.model.surveyElement.isPanel&&this.model.allowEdit?Object(l.attachKey2click)(n.a.createElement("div",{className:"svc-panel__add-new-question",onClick:function(e){e.stopPropagation(),t.model.addNewQuestion()}},n.a.createElement("span",{className:"svc-text svc-text--normal svc-text--bold"},this.model.addNewQuestionText),Object(l.attachKey2click)(n.a.createElement("button",{type:"button",onClick:function(e){e.stopPropagation(),t.model.questionTypeSelectorModel.action()},className:"svc-panel__question-type-selector",title:this.model.addNewQuestionText},n.a.createElement("span",{className:"svc-panel__question-type-selector-icon"},n.a.createElement(l.SvgIcon,{iconName:this.model.questionTypeSelectorModel.iconName,size:24})),n.a.createElement(l.Popup,{model:this.model.questionTypeSelectorModel.popupModel}))))):null,n.a.createElement("div",{className:"svc-question__content-actions"},n.a.createElement(l.SurveyActionBar,{model:this.model.actionContainer})))):i},t.prototype.renderElementContent=function(){return n.a.createElement(n.a.Fragment,null,this.props.element,this.renderElementPlaceholder())},t.prototype.renderContentOnTop=function(){return null},t.prototype.renderDragAria=function(){var e=this;return this.model.allowDragging?n.a.createElement("div",{className:"svc-question__drag-area",onPointerDown:function(t){return e.model.startDragSurveyElement(t)}},n.a.createElement("div",{className:"svc-question__drag-element"})):null},t.prototype.renderElementPlaceholder=function(){var e=this;return this.model.isEmptyElement?n.a.createElement("div",{className:"svc-panel__placeholder_frame"},n.a.createElement("div",{className:"svc-panel__placeholder"},this.model.placeholderText),this.model.allowEdit?Object(l.attachKey2click)(n.a.createElement("div",{className:"svc-panel__add-new-question",onClick:function(t){t.stopPropagation(),e.model.addNewQuestion()}},n.a.createElement("span",{className:"svc-text svc-text--normal svc-text--bold"},this.model.addNewQuestionText))):null):null},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-question",(function(e){return n.a.createElement(S,e)})),l.ReactElementFactory.Instance.registerElement("svc-panel",(function(e){return n.a.createElement(S,e)}));var P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.renderElementPlaceholder=function(){var e=this.props.question;return n.a.createElement("div",{className:"svc-question__dropdown-choices"},(e.visibleChoices||[]).map((function(t,i){return n.a.createElement("div",{className:"svc-question__dropdown-choice",key:"editable_choice_".concat(i)},e.survey.wrapItemValue(l.ReactElementFactory.Instance.createElement("survey-radiogroup-item",{question:e,cssClasses:e.cssClasses,isDisplayMode:!0,item:t,textStyle:e.textStyle,index:i,isChecked:e.value===t.value}),e,t))})))},t}(S);l.ReactElementFactory.Instance.registerElement("svc-dropdown-question",(function(e){return n.a.createElement(P,e)}));var E=function(e){function t(t){var i=e.call(this,t)||this;return i.rootRef=n.a.createRef(),i}return o(t,e),t.prototype.createQuestionViewModel=function(){return new u.QuestionImageAdornerViewModel(this.props.componentData,this.props.question,null,null)},Object.defineProperty(t.prototype,"imageModel",{get:function(){return this.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.imageModel.questionRoot=this.rootRef.current},t.prototype.renderContentOnTop=function(){return n.a.createElement("input",{type:"file","aria-hidden":"true",tabIndex:-1,accept:"image/*",className:"svc-choose-file-input",style:{position:"absolute",opacity:0,width:"1px",height:"1px",overflow:"hidden"}})},t.prototype.renderElementPlaceholder=function(){var e=this;return n.a.createElement("div",{className:"svc-image-question-controls"},this.model.allowEdit?Object(l.attachKey2click)(n.a.createElement("span",{className:"svc-image-question-controls__button svc-image-question-controls__choose-file",onClick:function(){return e.imageModel.chooseFile(e.imageModel)}},n.a.createElement(l.SvgIcon,{size:24,iconName:"icon-file"}))):null)},t}(S);l.ReactElementFactory.Instance.registerElement("svc-image-question",(function(e){return n.a.createElement(E,e)}));var C=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderClear=function(){var e=this;return!this.questionBase.isReadOnly&&this.questionBase.showClear?n.a.createElement(se,{classes:"spg-question-link__clear-button",click:function(){return e.question.doClearClick()},selected:this.question.isSelected,text:u.editorLocalization.getString("pe.clear")}):null},t.prototype.renderElement=function(){var e=this;return n.a.createElement(n.a.Fragment,null,n.a.createElement(se,{classes:"spg-link-value-button spg-question-link__set-button",click:function(){return e.question.doLinkClick()},selected:this.question.isSelected,disabled:this.question.isReadOnly,text:this.question.linkValueText}),this.renderClear())},t}(l.SurveyQuestionElementBase);l.ReactQuestionFactory.Instance.registerQuestion("linkvalue",(function(e){return n.a.createElement(C,e)}));var N=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"embeddedSurvey",{get:function(){return this.props.element||this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.embeddedSurvey)return null;var e=this.embeddedSurvey.embeddedSurvey;return e&&e.currentPage?n.a.createElement(l.SurveyPage,{survey:e,page:e.currentPage,css:e.css,creator:this.creator}):null},t}(l.SurveyQuestionElementBase);l.ReactQuestionFactory.Instance.registerQuestion("embeddedsurvey",(function(e){return n.a.createElement(N,e)}));var O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.createQuestionViewModel=function(){return new u.QuestionRatingAdornerViewModel(this.props.componentData,this.props.question,null)},Object.defineProperty(t.prototype,"ratingModel",{get:function(){return this.model},enumerable:!1,configurable:!0}),t.prototype.renderElementPlaceholder=function(){this.props.question;var e=this.ratingModel;return n.a.createElement("div",{className:"svc-rating-question-controls svc-item-value-controls"},e.allowRemove?Object(l.attachKey2click)(n.a.createElement("span",{className:"svc-item-value-controls__button svc-item-value-controls__remove",onClick:function(){return e.removeItem(e)}},n.a.createElement(l.SvgIcon,{size:16,iconName:"icon-remove_16x16"}))):null,e.allowAdd?Object(l.attachKey2click)(n.a.createElement("span",{className:"svc-item-value-controls__button svc-item-value-controls__add",onClick:function(){return e.addItem(e)}},n.a.createElement(l.SvgIcon,{size:16,iconName:"icon-add_16x16"}))):null)},t}(S);l.ReactElementFactory.Instance.registerElement("svc-rating-question",(function(e){return n.a.createElement(O,e)}));var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.createQuestionViewModel=function(){return new u.QuestionAdornerViewModel(this.props.componentData,this.props.question,null)},Object.defineProperty(t.prototype,"widgetModel",{get:function(){return this.model},enumerable:!1,configurable:!0}),t.prototype.renderElementContent=function(){return n.a.createElement("div",{className:"svc-widget__content"},this.props.element)},t}(S);l.ReactElementFactory.Instance.registerElement("svc-widget-question",(function(e){return n.a.createElement(_,e)}));var A=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new u.QuestionAdornerViewModel(i.props.componentData,i.props.question,null),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return this.model.isDragged?null:n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{"data-sv-drop-target-survey-element":this.model.surveyElement.name,className:"svc-question__adorner"},Object(l.attachKey2click)(n.a.createElement("div",{className:" svc-question__content--selected-no-border svc-question__content",onClick:function(t){return e.model.select(e.model,new T(t))}},this.props.element))))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-cell-question",(function(e){return n.a.createElement(A,e)}));var j=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new u.QuestionAdornerViewModel(i.props.componentData,i.props.question,null),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;if(this.model.isDragged)return null;var t=this.props.question;return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{"data-sv-drop-target-survey-element":this.model.surveyElement.name,className:"svc-question__adorner"},Object(l.attachKey2click)(n.a.createElement("div",{className:" svc-question__content--selected-no-border svc-question__content",onClick:function(t){return e.model.select(e.model,new T(t))}},this.props.element,n.a.createElement("div",{className:"svc-question__dropdown-choices"},t.visibleChoices.map((function(e,i){return n.a.createElement("div",{className:"svc-question__dropdown-choice",key:"editable_choice_".concat(i)},t.survey.wrapItemValue(l.ReactElementFactory.Instance.createElement("survey-radiogroup-item",{question:t,cssClasses:t.cssClasses,isDisplayMode:!0,item:e,textStyle:t.textStyle,index:i,isChecked:t.value===e.value}),t,e))})))))))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-cell-dropdown-question",(function(e){return n.a.createElement(j,e)}));var V=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),t.prototype.createQuestionElement=function(e){return l.ReactQuestionFactory.Instance.createQuestion(!e.isDefaultRendering||e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t.prototype.renderError=function(e,t,i){return null},t.prototype.render=function(){var e=this.survey.getAllQuestions()[0];return n.a.createElement(n.a.Fragment,null,n.a.createElement(l.SurveyQuestion,{creator:this,element:e}))},t}(n.a.Component);l.ReactElementFactory.Instance.registerElement("svc-question-editor-content",(function(e){return n.a.createElement(V,e)}));var I=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new u.ItemValueWrapperViewModel(i.props.componentData.creator,i.props.question,i.props.item),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;this.model.item=this.props.item;var t=this.model.allowAdd?Object(l.attachKey2click)(n.a.createElement("span",{className:"svc-item-value-controls__button svc-item-value-controls__add",title:this.model.tooltip,onClick:function(){return e.model.add(e.model)}},n.a.createElement(l.SvgIcon,{size:16,iconName:"icon-add_16x16"}))):n.a.createElement(n.a.Fragment,null," ",this.model.isDraggable?n.a.createElement("span",{className:"svc-item-value-controls__button svc-item-value-controls__drag",title:this.model.dragTooltip},n.a.createElement(l.SvgIcon,{className:"svc-item-value-controls__drag-icon",size:24,iconName:"icon-drag-area-indicator"})):null,this.model.allowRemove?Object(l.attachKey2click)(n.a.createElement("span",{className:"svc-item-value-controls__button svc-item-value-controls__remove",title:this.model.tooltip,onClick:function(){return e.model.remove(e.model)}},n.a.createElement(l.SvgIcon,{size:16,iconName:"icon-remove_16x16"}))):null);return n.a.createElement("div",{className:"svc-item-value-wrapper"+(this.model.allowAdd?" svc-item-value--new":"")+(this.model.isDragging?" svc-item-value--dragging":"")+(this.model.isDragDropGhost?" svc-item-value--ghost":"")+(this.model.isDragDropMoveDown?" svc-item-value--movedown":"")+(this.model.isDragDropMoveUp?" svc-item-value--moveup":""),key:this.props.element.key,"data-sv-drop-target-item-value":this.model.isDraggable?this.model.item.value:void 0,onPointerDown:function(t){return e.model.onPointerDown(t)}},n.a.createElement("div",{className:"svc-item-value__ghost"}),n.a.createElement("div",{className:"svc-item-value-controls"},t),n.a.createElement("div",{className:"svc-item-value__item",onClick:function(t){return e.model.select(e.model,t)}},this.props.element))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-item-value",(function(e){return n.a.createElement(I,e)}));var z=function(e){function t(t){var i=e.call(this,t)||this;return i.preventDragHandler=function(e){e.preventDefault()},i.model=new u.ImageItemValueWrapperViewModel(i.props.componentData.creator,i.props.question,i.props.item,null,null),i.rootRef=n.a.createRef(),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.itemsRoot=this.rootRef.current},t.prototype.render=function(){var e=this;this.model.item=this.props.item;var t=!this.props.question.isItemInList(this.props.item),i=null;return i=t?n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"svc-image-item-value__item"},n.a.createElement("div",{className:"sv-imagepicker__item sv-imagepicker__item--inline"},n.a.createElement("label",{className:"sv-imagepicker__label"},n.a.createElement("div",{style:{width:this.props.question.imageWidth?this.props.question.imageWidth+"px":void 0,height:this.props.question.imageHeight?this.props.question.imageHeight+"px":void 0},className:"sv-imagepicker__image"})))),n.a.createElement("div",{className:"svc-image-item-value-controls"},this.model.allowAdd?Object(l.attachKey2click)(n.a.createElement("span",{className:"svc-image-item-value-controls__button svc-image-item-value-controls__add",onClick:function(){return e.model.chooseNewFile(e.model)}},n.a.createElement(l.SvgIcon,{size:24,iconName:"icon-add-lg"}))):null)):n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"svc-image-item-value__item"},this.props.element),n.a.createElement("div",{className:"svc-image-item-value-controls"},this.model.allowRemove?Object(l.attachKey2click)(n.a.createElement("span",{className:"svc-image-item-value-controls__button svc-image-item-value-controls__choose-file",onClick:function(){return e.model.chooseFile(e.model)}},n.a.createElement(l.SvgIcon,{size:24,iconName:"icon-file"}))):null,this.model.allowRemove?Object(l.attachKey2click)(n.a.createElement("span",{className:"svc-image-item-value-controls__button svc-image-item-value-controls__remove",onClick:function(){return e.model.remove(e.model)}},n.a.createElement(l.SvgIcon,{size:24,iconName:"icon-delete"}))):null)),n.a.createElement("div",{ref:this.rootRef,className:"svc-image-item-value-wrapper"+(t?" svc-image-item-value--new":""),key:this.props.element.key,"data-sv-drop-target-item-value":this.model.isDraggable?this.model.item.value:void 0,onPointerDown:function(t){return e.model.onPointerDown(t)},onDragStart:this.preventDragHandler},t?null:n.a.createElement("div",{className:"svc-image-item__drag-element"}),n.a.createElement("input",{type:"file","aria-hidden":"true",tabIndex:-1,accept:"image/*",className:"svc-choose-file-input",style:{position:"absolute",opacity:0,width:"1px",height:"1px",overflow:"hidden"}}),i)},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-image-item-value",(function(e){return n.a.createElement(z,e)}));var M=function(e){function t(t){var i=e.call(this,t)||this,o=i.props.componentData;return i.model=new u.MatrixCellWrapperViewModel(o.creator,o.element,o.question,o.row,o.column),i}return o(t,e),t.prototype.componentDidUpdate=function(t,i){e.prototype.componentDidUpdate.call(this,t,i);var o=this.props.componentData;this.model.templateData=o.element,this.model.row=o.row,this.model.column=o.column,this.model.question=o.question},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this,t=null;return this.model.question&&(t=n.a.createElement("div",{className:"svc-matrix-cell__question-controls"},Object(l.attachKey2click)(n.a.createElement("span",{className:"svc-matrix-cell__question-controls-button",onClick:function(){return e.model.editQuestion(e.model)}},n.a.createElement(l.SvgIcon,{size:24,iconName:"icon-edit"}))))),n.a.createElement("div",{className:"svc-matrix-cell",key:this.props.element.key,onClick:function(t){return!e.props.question&&e.model.selectContext(e.model,t)},onMouseOut:function(t){return e.model.hover(t.nativeEvent,t.currentTarget)},onMouseOver:function(t){return e.model.hover(t.nativeEvent,t.currentTarget)}},n.a.createElement("div",{className:"svc-matrix-cell--selected"+(this.model.isSelected?" svc-visible":"")}),this.props.element,t)},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-matrix-cell",(function(e){return n.a.createElement(M,e)}));var q=function(e){function t(t){var i=e.call(this,t)||this;return t.survey&&(i.model=new u.SurveyResultsModel(t.survey)),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return this.model?n.a.createElement("div",{className:"svd_test_results"},n.a.createElement("div",{className:"svd_results_header"},n.a.createElement("h2",null,this.model.surveyResultsText)),n.a.createElement("ul",{className:"navbar-default container-fluid nav nav-tabs editor-tabs"},n.a.createElement("li",{className:"nav-item "+this.model.resultViewType=="table"?"active":""},Object(l.attachKey2click)(n.a.createElement("a",{className:"nav-link",href:"#",onClick:function(){return e.model.selectTableClick(e.model)}},this.model.getLocString("ed.surveyResultsTable")))),n.a.createElement("li",{className:"nav-item "+this.model.resultViewType=="text"?"active":""},Object(l.attachKey2click)(n.a.createElement("a",{className:"nav-link",href:"#",onClick:function(){return e.model.selectJsonClick(e.model)}},this.model.getLocString("ed.surveyResultsJson"))))),this.renderResultAsText(),this.renderResultAsTable()):null},t.prototype.renderResultAsText=function(){return"text"!==this.model.resultViewType?null:n.a.createElement("div",{className:"svd_results_text svd-light-bg-color"},n.a.createElement("div",null,this.model.resultText))},t.prototype.renderResultAsTable=function(){return"table"!==this.model.resultViewType?null:n.a.createElement("div",{className:"svd_results_table svd-light-bg-color"},n.a.createElement("table",null,n.a.createElement("thead",null,n.a.createElement("tr",{className:"svd-light-background-color"},n.a.createElement("th",{className:"svd-dark-border-color"},this.model.resultsTitle),n.a.createElement("th",{className:"svd-dark-border-color"},this.model.resultsName),n.a.createElement("th",{className:"svd-dark-border-color"},this.model.resultsValue),n.a.createElement("th",{className:"svd-dark-border-color"},this.model.resultsDisplayValue))),n.a.createElement("tbody",null,this.renderRows(this.model.resultData))))},t.prototype.renderRows=function(e){var t=this;return e.map((function(e){return t.renderRow(e)}))},t.prototype.renderRow=function(e){return n.a.createElement(n.a.Fragment,null,n.a.createElement("tr",{"data-bind":"click: toggle"},n.a.createElement("td",{className:"svd-dark-border-color"},e.isNode?n.a.createElement("span",{className:""},"▶"):null,n.a.createElement("span",null,e.title)),n.a.createElement("td",{className:"svd-dark-border-color"},e.name),n.a.createElement("td",{className:"svd-dark-border-color"},n.a.createElement("div",{className:"survey-result-value"},e.getString(e.value))),n.a.createElement("td",{className:"svd-dark-border-color"},e.getString(e.displayValue))),this.renderRows(e.data))},t}(l.SurveyElementBase),R=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new u.PageViewModel(i.props.creator,i.props.page),i.rootRef=n.a.createRef(),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.model.onPageSelectedCallback=function(){t.rootRef.current&&u.SurveyHelper.scrollIntoViewIfNeeded(t.rootRef.current)}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.dispose()},t.prototype.canRender=function(){return!!this.model&&this.model.isPageLive&&!!this.model.page&&!!this.model.page.survey},t.prototype.renderElement=function(){var e=this,t=this.model.questionTypeSelectorModel;return Object(l.attachKey2click)(n.a.createElement("div",{ref:this.rootRef,className:"svc-page__content "+this.model.css,id:this.props.page.id,onClick:function(t){return e.model.select(e.model,new T(t))},onMouseOut:function(t){return e.model.hover(t.nativeEvent,t.currentTarget)},onMouseOver:function(t){return e.model.hover(t.nativeEvent,t.currentTarget)}},n.a.createElement(l.SurveyPage,{page:this.props.page,survey:this.props.survey,creator:this.props.creator,css:this.model.css}),this.model.allowEdit?Object(l.attachKey2click)(n.a.createElement("div",{className:"svc-page__add-new-question",onClick:function(t){t.stopPropagation(),e.model.addNewQuestion(e.model,new T(t))}},n.a.createElement("span",{className:"svc-text svc-text--normal svc-text--bold"},this.model.addNewQuestionText),Object(l.attachKey2click)(n.a.createElement("button",{type:"button",onClick:function(e){e.stopPropagation(),t.action()},className:"svc-page__question-type-selector",title:this.model.addNewQuestionText},n.a.createElement("span",{className:"svc-page__question-type-selector-icon"},n.a.createElement(l.SvgIcon,{iconName:t.iconName,size:24})),n.a.createElement(l.Popup,{model:t.popupModel}))))):null,n.a.createElement("div",{className:"svc-page__content-actions"},n.a.createElement(l.SurveyActionBar,{model:this.model.actionContainer}))))},t}(l.SurveyElementBase),L=function(e){function t(t){var i=e.call(this,t)||this;return i.containerRef=n.a.createRef(),i.model=new u.PageNavigatorViewModel(t.creator.pagesController),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this);var t=this.containerRef.current;if(t){var i=this;t.parentElement.parentElement.onscroll=function(e){return i.model.onContainerScroll(e.currentTarget)}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.containerRef.current;t&&(t.parentElement.parentElement.onscroll=void 0),this.model.dispose()},t.prototype.renderElement=function(){var e=this,t="svc-page-navigator__selector";return this.model.isPopupOpened&&(t+=" svc-page-navigator__selector--opened"),n.a.createElement("div",{className:"svc-page-navigator",ref:this.containerRef,style:{display:this.model.visible?"flex":"none"}},Object(l.attachKey2click)(n.a.createElement("div",{className:t,onClick:function(){return e.model.togglePageSelector()},title:this.model.pageSelectorCaption},n.a.createElement(l.SvgIcon,{className:"svc-page-navigator__navigator-icon",iconName:this.model.icon,size:24}),n.a.createElement(l.Popup,{model:this.model.popupModel}))),this.model.items.map((function(e){return n.a.createElement(D,{key:e.id,item:e})})))},t}(l.SurveyElementBase),D=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.getStateElement=function(){return this.props.item},t.prototype.renderElement=function(){var e=this.props.item,t="svc-page-navigator-item-content";return Object(c.unwrap)(e.active)&&(t+=" svc-page-navigator-item--selected"),Object(c.unwrap)(e.disabled)&&(t+=" svc-page-navigator-item--disabled"),n.a.createElement("div",{className:"svc-page-navigator-item"},Object(l.attachKey2click)(n.a.createElement("div",{className:t,onClick:function(){return e.action(e)}},n.a.createElement("div",{className:"svc-page-navigator-item__dot",title:e.title}),n.a.createElement("div",{className:"svc-page-navigator-item__banner svc-item__banner"},n.a.createElement("span",{className:"svc-text svc-text--small svc-text--bold"},e.title),n.a.createElement("span",{className:"svc-page-navigator-item__dot"})))))},t}(l.SurveyElementBase),B=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onPropChangedHandler=function(e,i){if(!t.isRendering){var o=["showProgressBar","progressBarType","currentPageValue"];if(!(o.indexOf(i.name)<0)){for(var r={},n=0;n<o.length;n++){var a=o[n];r[a]=t.survey[a]}t.setState(r)}}},t}return o(t,e),t.prototype.componentDidMount=function(){this.setHandler()},t.prototype.componentDidUpdate=function(e,t){this.setHandler()},t.prototype.setHandler=function(){this.survey&&!this.survey.onPropertyChanged.hasFunc(this.onPropChangedHandler)&&this.survey.onPropertyChanged.add(this.onPropChangedHandler)},t.prototype.componentWillUnmount=function(){this.survey&&this.survey.onPropertyChanged.remove(this.onPropChangedHandler)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTop",{get:function(){return"top"==this.location},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.isTop?this.survey.isShowProgressBarOnTop:this.survey.isShowProgressBarOnBottom},t.prototype.renderElement=function(){return l.ReactElementFactory.Instance.createElement("sv-progress-"+this.survey.progressBarType.toLowerCase(),{survey:this.survey,css:this.survey.css,isTop:this.isTop})},t}(l.SurveyElementBase),H=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.model.creator},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.model,this.model.survey]},t.prototype.renderPages=function(){var e=this,t=this.creator.survey.pages.map((function(t,i){return n.a.createElement("div",{className:"svc-page","data-sv-drop-target-page":t.name,"data-sv-drop-target-survey-element":t.name,key:t.id+"-"+i},n.a.createElement(R,{survey:e.creator.survey,page:t,creator:e.creator}))}));return this.model.showNewPage&&t.push(n.a.createElement("div",{className:"svc-page","data-sv-drop-target-survey-element":"newGhostPage",key:this.model.newPage.id+"-ghost-new-page"},n.a.createElement(R,{survey:this.creator.survey,page:this.model.newPage,creator:this.creator}))),t},t.prototype.renderElement=function(){var e=this,t=this.creator.survey,i="svc-tab-designer "+this.model.getRootCss();return n.a.createElement(n.a.Fragment,null,n.a.createElement("div",{className:"svc-flex-column"},this.model.isToolboxVisible?l.ReactElementFactory.Instance.createElement("svc-adaptive-toolbox",{model:this.creator}):null),n.a.createElement("div",{className:i,onClick:function(){return e.model.clickDesigner()}},n.a.createElement("div",{className:this.model.getDesignerCss()},this.creator.allowEditSurveyTitle?n.a.createElement("div",null,n.a.createElement(l.SurveyHeader,{survey:t})):null,n.a.createElement(B,{survey:t,location:"top"}),this.renderPages(),n.a.createElement(B,{survey:t,location:"bottom",css:t.css})),this.creator.showPageNavigator?n.a.createElement("div",{className:"svc-tab-designer__page-navigator"},n.a.createElement(L,{creator:this.creator,pages:this.creator.pagesController.pages})):null))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-tab-designer",(function(e){return n.a.createElement(H,e)}));var F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){return n.a.createElement("div",{className:"svc-creator-tab__content svc-embed-tab__content"},this.model.survey?n.a.createElement(l.Survey,{model:this.model.survey}):null)},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-tab-embed",(function(e){return n.a.createElement(F,e)}));var Q=function(e){function t(t){var i=e.call(this,t)||this;return i.aceEditorrRef=n.a.createRef(),i}return o(t,e),t.prototype.getStateElement=function(){return this.model},Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.model.init(ace.edit(this.aceEditorrRef.current))},t.prototype.renderElement=function(){return n.a.createElement("div",{className:"svc-creator-tab__content"},n.a.createElement("div",{className:"svc-json-editor-tab__content"},n.a.createElement("div",{className:"svc-json-editor-tab__ace-editor",ref:this.aceEditorrRef})))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-tab-json-editor-ace",(function(e){return n.a.createElement(Q,e)}));var U=function(e){function t(t){var i=e.call(this,t)||this;return i.model.canShowErrors=!1,i}return o(t,e),t.prototype.getStateElement=function(){return this.model},Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this,t=[],i=1,o=this.model.userFriendlyErrors,r=0;r<o.length;r++)t.push(n.a.createElement("span",{key:i},n.a.createElement("b",null,"Error: "))),i++,t.push(n.a.createElement("span",{key:i},o[r])),i++;return n.a.createElement("div",{className:"svc-creator-tab__content"},n.a.createElement("div",{className:"svc-json-editor-tab__content"},n.a.createElement("textarea",{className:"svc-json-editor-tab__content-area",value:this.model.text,onChange:function(t){return e.model.text=t.target.value},onKeyDown:function(t){return e.model.checkKey(t,t)},disabled:this.model.readOnly,"aria-label":this.model.ariaLabel}),t.length>0&&n.a.createElement("button",{type:"button",className:"svc-json-editor-tab__errros_button",onClick:function(){return e.model.toggleErrors()}},this.model.errorButtonText),this.model.canShowErrors&&n.a.createElement("div",{className:"svc-json-editor-tab__content-errors"},t)))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-tab-json-editor-textarea",(function(e){return n.a.createElement(U,e)}));var G=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.button},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){var e=this,t="svc-logic-tab__content-action"+(void 0===this.model.enabled||this.model.enabled?"":" svc-logic-tab__content-action--disabled");return Object(l.attachKey2click)(n.a.createElement("div",{role:"button",onClick:function(t){t.stopPropagation(),e.model.action()},className:t,title:this.model.title},n.a.createElement("span",{className:"svc-text svc-text--normal svc-text--bold"},this.model.title)))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-tab-logic-add-button",(function(e){return n.a.createElement(G,e)}));var J=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){this.model;var e=this.renderViewContent();return n.a.createElement("div",{className:"svc-creator-tab__content"},e)},t.prototype.renderViewContent=function(){var e="svc-plugin-tab__content svc-logic-tab__content "+(this.model.hasItems?"":"svc-logic-tab__empty");void 0===this.model.addNewButton.enabled||this.model.addNewButton.enabled;return n.a.createElement(r.Fragment,null,n.a.createElement("div",{className:e},n.a.createElement(l.Survey,{model:this.model.itemsSurvey}),this.model.hasItems?null:n.a.createElement("div",{className:"svc-logic-tab__content-empty"},n.a.createElement("span",{className:"svc-text"},this.model.emptyTabPlaceHolder)),n.a.createElement(G,{button:this.model.addNewButton})))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-tab-logic",(function(e){return n.a.createElement(J,e)}));var W=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){return this.model.survey?this.model.hasFrame?n.a.createElement("div",{className:"svd-simulator-main "+this.model.simulatorMainCssClass},n.a.createElement("div",{className:"svd-simulator-wrapper",style:{width:this.model.simulatorFrame.frameWidth+"px",height:this.model.simulatorFrame.frameHeight+"px"}},n.a.createElement("div",{className:"svd-simulator-frame "+this.model.simulatorFrame.cssClass,style:{width:(this.model.landscapeOrientation?this.model.simulatorFrame.frameHeight:this.model.simulatorFrame.frameWidth)+"px",height:(this.model.landscapeOrientation?this.model.simulatorFrame.frameWidth:this.model.simulatorFrame.frameHeight)+"px"}}),n.a.createElement("div",{className:"svd-simulator",style:{width:this.model.simulatorFrame.width/this.model.simulatorFrame.scale+"px",height:this.model.simulatorFrame.height/this.model.simulatorFrame.scale+"px",transform:"scale("+this.model.simulatorFrame.scale+") translate(-50%, -50%)"}},n.a.createElement("div",{className:"svd-simulator-content"},n.a.createElement(l.Survey,{model:this.model.survey}))))):n.a.createElement("div",{className:"svd-simulator-main"},n.a.createElement("div",{className:"svd-simulator-content"},n.a.createElement(l.Survey,{model:this.model.survey}))):n.a.createElement("div",{className:"svd-simulator-main"})},t}(l.SurveyElementBase),K=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){var e="svc-creator-tab__content svc-test-tab__content"+(this.model.isPageToolbarVisible?" svc-creator-tab__content--with-toolbar":"");return n.a.createElement("div",{className:e},n.a.createElement("div",{className:"svc-plugin-tab__content"},n.a.createElement(W,{model:this.model.simulator}),this.model.isRunning?null:n.a.createElement(q,{survey:this.model.simulator.survey})),this.getBottomToolbar())},t.prototype.getBottomToolbar=function(){return this.model.isPageToolbarVisible?n.a.createElement("div",{className:"svc-test-tab__content-actions"},n.a.createElement(l.SurveyActionBar,{model:this.model.pages})):null},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-tab-test",(function(e){return n.a.createElement(K,e)}));var Z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){return this.model?n.a.createElement("div",{className:"svc-creator-tab__content svc-translation-tab"},this.renderElementContent()):null},t.prototype.renderElementContent=function(){return this.model.isEmpty?n.a.createElement("div",{className:"st-no-strings"},n.a.createElement("span",null,this.model.noStringsText)):n.a.createElement("div",{className:"st-content"},n.a.createElement("div",{className:"svc-flex-column st-strings-wrapper"},n.a.createElement("div",{className:"svc-flex-row st-strings-header"},n.a.createElement(l.Survey,{model:this.model.stringsHeaderSurvey})),n.a.createElement("div",{className:"svc-flex-row svc-plugin-tab__content st-strings"},n.a.createElement(l.Survey,{model:this.model.stringsSurvey}))))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-tab-translation",(function(e){return n.a.createElement(Z,e)}));var Y=function(e){function t(t){var i=e.call(this,t)||this;return i.model=new u.ToolboxToolViewModel(i.item,i.props.creator),i}return o(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.props.isCompact},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this,t=this.item,i="svc-toolbox__tool "+t.css+(t.isVisible?"":" sv-action--hidden"),o=l.ReactElementFactory.Instance.createElement(this.item.component||"svc-toolbox-item",{item:this.item,creator:this.creator,isCompact:this.isCompact});return n.a.createElement("div",{className:i,key:t.id,onPointerDown:function(t){t.persist(),e.model.onPointerDown(t)}},n.a.createElement("div",{className:"sv-action__content"},this.isCompact&&t.needSeparator?n.a.createElement("div",{className:"svc-toolbox__category-separator"}):null,o))},t}(l.SurveyElementBase),X=function(e){function t(t){var i=e.call(this,t)||this,o=i.props.item;return i.model=new u.ToolboxToolViewModel(o,i.props.creator),i}return o(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this,t="svc-toolbox__item svc-toolbox__item--"+this.item.iconName;return Object(l.attachKey2click)(n.a.createElement("div",{className:t,tabIndex:0,role:"button","aria-label":this.item.tooltip+" "+u.editorLocalization.getString("toolbox")+" item",onClick:function(t){t.persist(),e.model.click(t)}},n.a.createElement("span",{className:"svc-toolbox__item-container"},n.a.createElement(l.SvgIcon,{size:24,iconName:this.item.iconName})),this.props.isCompact?n.a.createElement("span",{className:"svc-toolbox__item-banner svc-item__banner"},n.a.createElement(l.SvgIcon,{size:24,iconName:this.item.iconName}),n.a.createElement("span",{className:"svc-toolbox__item-title"},this.item.title)):n.a.createElement("span",{className:"svc-toolbox__item-title"},this.item.title)))},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-toolbox-item",(function(e){return n.a.createElement(X,e)}));var $=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"toolbox",{get:function(){return this.creator.toolbox},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.toolbox},t.prototype.render=function(){return this.toolbox.hasActions?n.a.createElement("div",{className:"svc-toolbox"},n.a.createElement("div",{className:"svc-toolbox__container"},1==this.toolbox.categories.length?n.a.createElement("div",{className:"svc-toolbox__category"},this.renderItems(this.toolbox.visibleActions)):this.renderCategories())):null},t.prototype.renderItems=function(e){var t=this;return e.map((function(e,i){return n.a.createElement(Y,{item:e,creator:t.creator,key:"item"+i,isCompact:!1})}))},t.prototype.renderCategories=function(){var e=this;return this.toolbox.categories.map((function(t){var i=e.renderCategoryHeader(t),o=e.renderCategoryContent(t);return n.a.createElement("div",{className:"svc-toolbox__category",key:t.name},i,o)}))},t.prototype.renderCategoryHeader=function(e){var t=e.collapsed?"arrow-down":"arrow-up",i="svc-toolbox__category-header__button svc-string-editor__button--"+(e.collapsed?"expand":"collapse");return Object(l.attachKey2click)(n.a.createElement("div",{className:"svc-toolbox__category-header",onClick:function(t){return e.toggleState()}},n.a.createElement("span",{className:"svc-toolbox__category-title"},e.name),n.a.createElement("div",{className:"svc-toolbox__category-header__controls"},n.a.createElement(l.SvgIcon,{className:i,iconName:"icon-"+t,size:24}))))},t.prototype.renderCategoryContent=function(e){return e.collapsed?[]:this.renderItems(e.items)},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-toolbox",(function(e){return n.a.createElement($,e)}));var ee=function(e){function t(t){var i=e.call(this,t)||this;return i.rootRef=n.a.createRef(),i}return o(t,e),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this);var t=this.rootRef.current;t&&(this.manager=new c.VerticalResponsivityManager(t,this.toolbox,".svc-toolbox__tool:not(.sv-dots)>.sv-action__content",40))},t.prototype.componentWillUnmount=function(){this.manager&&this.manager.dispose(),e.prototype.componentWillUnmount.call(this)},t.prototype.render=function(){if(!this.toolbox.hasActions)return null;var e="svc-toolbox"+(this.toolbox.isCompact?" svc-toolbox--compact":"");return n.a.createElement("div",{ref:this.rootRef,className:e},n.a.createElement("div",{className:"svc-toolbox__container"},this.toolbox.isCompact||1==this.toolbox.categories.length?n.a.createElement("div",{className:"svc-toolbox__category"},this.renderItems(this.toolbox.renderedActions,this.toolbox.isCompact)):this.renderCategories()))},t.prototype.renderItems=function(e,t){var i=this;return e.map((function(e,o){return n.a.createElement(Y,{item:e,creator:i.creator,isCompact:t,key:"item"+o})}))},t.prototype.renderCategoryContent=function(e){var t=[];return e.collapsed||(t=this.renderItems(e.items,!1)),t},t}($);l.ReactElementFactory.Instance.registerElement("svc-adaptive-toolbox",(function(e){return n.a.createElement(ee,e)}));var te=function(e){function t(t){var i=e.call(this,t)||this;return i.containerRef=n.a.createRef(),i}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.initResizeManager(this.containerRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.resetResizeManager()},t.prototype.canRender=function(){return!!this.model&&e.prototype.canRender.call(this)},t.prototype.renderElement=function(){var e=this,t={display:this.model.visible?"":"none"},i="svc-side-bar"+(this.model.flyoutPanelMode?" svc-flyout-side-bar":""),o=this.model.tabs.map((function(e){return n.a.createElement(ie,{item:e,key:e.id})}));return n.a.createElement("div",{className:i,style:{display:this.model.hasVisibleTabs?"":"none"}},n.a.createElement("div",{className:"svc-side-bar__shadow"}),n.a.createElement("div",{className:"svc-flex-column svc-side-bar__wrapper"},n.a.createElement("div",{ref:this.containerRef,style:t,className:"svc-side-bar__container"},n.a.createElement("div",{className:"svc-side-bar__container-header"},n.a.createElement("div",{className:"svc-side-bar__container-actions"},n.a.createElement(l.SurveyActionBar,{model:this.model.toolbar})),n.a.createElement("div",{className:"svc-side-bar__container-title"},this.model.headerText)),n.a.createElement("div",{className:"svc-side-bar__container-content"},o),n.a.createElement("div",{className:"svc-side-bar__container-close"},n.a.createElement("div",{className:"sd-btn sd-btn--action svc-side-bar__container-close-button",onClick:function(){return e.model.closePropertyGrid()}}," ",this.model.closeText," ")))))},t}(l.SurveyElementBase),ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return this.item.visible?l.ReactElementFactory.Instance.createElement(this.item.componentName,{model:this.item.model}):null},t}(l.SurveyElementBase);l.ReactQuestionFactory.Instance.registerQuestion("svc-side-bar-tab",(function(e){return n.a.createElement(ie,e)}));l.ReactElementFactory.Instance.registerElement("svc-side-bar",(function(e){return n.a.createElement(te,e)}));var oe=function(e){function t(t){return e.call(this,t)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){return this.model.isVisible?n.a.createElement("div",{className:"svc-object-selector"},n.a.createElement(l.List,{model:this.model.list})):null},t}(l.SurveyElementBase);l.ReactElementFactory.Instance.registerElement("svc-object-selector",(function(e){return n.a.createElement(oe,e)}));var re=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.canRender=function(){return!!this.model&&e.prototype.canRender.call(this)},t.prototype.renderElement=function(){return n.a.createElement(l.Survey,{model:this.model.survey})},t}(l.SurveyElementBase);l.ReactQuestionFactory.Instance.registerQuestion("buttongroup",(function(e){return n.a.createElement(l.SurveyQuestionButtonGroup,e)}));l.ReactElementFactory.Instance.registerElement("svc-property-grid",(function(e){return n.a.createElement(re,e)}));var ne=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.render=function(){return n.a.createElement("div",{className:"sd-translation-line-skeleton"})},t}(n.a.Component);l.ReactElementFactory.Instance.registerElement("sd-translation-line-skeleton",(function(e){return n.a.createElement(ne,e)}));var ae,se=function(e){function t(t){return e.call(this,t)||this}return o(t,e),t.prototype.renderElement=function(){var e=this,t=this.props.classes+" svc-action-button";return this.props.selected&&(t+=" svc-action-button--selected"),this.props.disabled?(t+=" svc-action-button--disabled",n.a.createElement("span",{className:t},this.props.text)):n.a.createElement(n.a.Fragment,null,Object(l.attachKey2click)(n.a.createElement("span",{role:"button",className:t,onClick:function(t){t.stopPropagation(),e.props.click()}},this.props.text)))},t}(l.SurveyElementBase);ae="".concat("1.9.2-beta.1")}])}));