File manager - Edit - /home/wwwroot/camplus.hk/master.camplus.hk/public_html_20190103/assets/custom/survey-editor/surveyeditor.min.js
Back
/*! * surveyjs Builder(Editor) v1.0.24 * (c) Devsoft Baltic O� - http://surveyjs.io/ * Github: https://github.com/surveyjs/editor * License: https://surveyjs.io/Licenses#BuildSurvey */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("knockout"),require("survey-knockout")):"function"==typeof define&&define.amd?define("SurveyEditor",["knockout","survey-knockout"],t):"object"==typeof exports?exports.SurveyEditor=t(require("knockout"),require("survey-knockout")):e.SurveyEditor=t(e.ko,e.Survey)}(this,function(e,t){return function(e){function t(n){if(o[n])return o[n].exports;var i=o[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var o={};return t.m=e,t.c=o,t.i=function(e){return e},t.d=function(e,o,n){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var o=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(o,"a",o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=113)}([function(e,t,o){"use strict";var n=o(23);o.d(t,"a",function(){return i}),o.d(t,"b",function(){return r});var i={currentLocale:"",locales:{},getString:function(e,t){void 0===t&&(t=null);for(var o=this.getLocale(t),n=e.split("."),i=o,a=0;a<n.length;a++)if(!(i=i[n[a]]))return o===r?n[a]:this.getString(e,"en");return i},hasString:function(e,t){void 0===t&&(t=null);for(var o=this.getLocale(t),n=e.split("."),i=o,r=0;r<n.length;r++)if(!(i=i[n[r]]))return!1;return!0},getPropertyName:function(e,t){void 0===t&&(t=null);var o=this.getProperty(e,t);return o.name?o.name:o},getPropertyTitle:function(e,t){void 0===t&&(t=null);var o=this.getProperty(e,t);return o.title?o.title:""},getProperty:function(e,t){void 0===t&&(t=null);var o=this.getString("p."+e,t);if(o!==e)return o;var n=e.indexOf("_");return n<-1?o:(e=e.substr(n+1),this.getString("p."+e,t))},getPropertyValue:function(e,t){return void 0===t&&(t=null),this.getValueInternal(e,"pv",t)},getValidatorName:function(e,t){return void 0===t&&(t=null),this.getValueInternal(e,"validators",t)},getTriggerName:function(e,t){return void 0===t&&(t=null),this.getValueInternal(e,"triggers",t)},getLocale:function(e){e||(e=this.currentLocale);var t=e?this.locales[e]:r;return t||(t=r),t},getValueInternal:function(e,t,o){if(void 0===o&&(o=null),""===e||null===e||void 0===e)return"";e=e.toString();var n=this.getLocale(o),i=n[t]?n[t][e]:null;return i||(i=r[t][e]),i||e},getLocales:function(){var e=[];e.push("");for(var t in this.locales)e.push(t);return e}},r=n.a},function(t,o){t.exports=e},function(e,o){e.exports=t},function(e,t,o){"use strict";function n(e,t){function o(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}t.a=n;Object.assign},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(12)),s=o(24),l=o(0);o.d(t,"a",function(){return d}),o.d(t,"b",function(){return c}),o.d(t,"c",function(){return u}),o.d(t,"d",function(){return p}),o.d(t,"e",function(){return h});var d=function(){function e(){}return e.getOperators=function(){for(var e=["empty","notempty","equal","notequal","contains","notcontains","greater","less","greaterorequal","lessorequal"],t=[],o=0;o<e.length;o++){var n=e[o];t.push({name:n,text:l.a.getString("op."+n)})}return t},e.registerEditor=function(t,o,n){void 0===n&&(n=null),e.creatorList[t]=o;var i=n||t;e.creatorByClassList[i]=o},e.registerCustomEditor=function(t,o){e.widgetRegisterList[t]=o},e.createEditor=function(t,o){var n=t.type;null==t.choices||n&&n!=e.defaultEditor||(n="dropdown");var i=e.createCustomEditor(n,t);if(!i){var r=e.creatorList[n];r&&(i=r(t))}return i||(r=e.findParentCreator(n),i=r(t)),i.onChanged=o,i},e.createCustomEditor=function(t,o){var n=e.widgetRegisterList[t];return n?new s.a(o,n):null},e.findParentCreator=function(t){for(var o=r.JsonObject.metaData.findClass(t);o&&o.parentName;){var n=e.creatorByClassList[o.parentName];if(n)return n;o=r.JsonObject.metaData.findClass(o.parentName)}return e.creatorList[e.defaultEditor]},e}();d.defaultEditor="string",d.creatorList={},d.creatorByClassList={},d.widgetRegisterList={};var c=function(e){function t(t){return e.call(this,t)||this}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"string"},enumerable:!0,configurable:!0}),t}(a.a),u=function(e){function t(t){var o=e.call(this,t)||this;return o.koChoices=i.observableArray(o.getLocalizableChoices()),o}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"dropdown"},enumerable:!0,configurable:!0}),t.prototype.getValueText=function(e){if("locale"===this.property.name){var t=r.surveyLocalization.localeNames;if(t){var o=t[e];if(o)return o}}if("cellType"===this.property.name){var o=l.a.getString("qt."+e);if(o)return o}return l.a.getPropertyValue(e)},t.prototype.setObject=function(t){e.prototype.setObject.call(this,t),this.beginValueUpdating(),0==this.koChoices().length&&this.koChoices(this.getLocalizableChoices()),this.endValueUpdating()},t.prototype.getLocalizableChoices=function(){var e=this.getPropertyChoices();if(!e||0==e.length)return[];var t=new Array;r.ItemValue.setData(t,e);for(var o=0;o<t.length;o++){var n=t[o].value,i=this.getValueText(n);i!=n&&(t[o].text=i)}return t},t.prototype.getPropertyChoices=function(){return this.property?this.property.getChoices?this.property.getChoices(this.object):this.property.choices:[]},t}(a.a),p=function(e){function t(t){return e.call(this,t)||this}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"boolean"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"alwaysShowEditor",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canShowDisplayNameOnTop",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getValueText=function(e){return l.a.getPropertyValue(e)},t}(a.a),h=function(e){function t(t){return e.call(this,t)||this}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"number"},enumerable:!0,configurable:!0}),t.prototype.getCorrectedValue=function(e){return e?(("string"==typeof e||e instanceof String)&&((e=Number(e))||(e=0)),e):e},t}(a.a);d.registerEditor("string",function(e){return new c(e)}),d.registerEditor("dropdown",function(e){return new u(e)}),d.registerEditor("boolean",function(e){return new p(e)}),d.registerEditor("number",function(e){return new h(e)})},function(e,t,o){"use strict";var n=o(0);o.d(t,"a",function(){return i}),o.d(t,"b",function(){return r});var i;!function(e){e[e.Unknown=0]="Unknown",e[e.Survey=1]="Survey",e[e.Page=2]="Page",e[e.Panel=3]="Panel",e[e.Question=4]="Question"}(i||(i={}));var r=function(){function e(){}return e.getNewPageName=function(t){return e.getNewName(t,n.a.getString("ed.newPageName"))},e.getNewQuestionName=function(t){return e.getNewName(t,n.a.getString("ed.newQuestionName"))},e.getNewPanelName=function(t){return e.getNewName(t,n.a.getString("ed.newPanelName"))},e.getNewName=function(e,t){for(var o={},n=0;n<e.length;n++)o[e[n].name]=!0;for(var i=1;;){if(!o[t+i.toString()])break;i++}return t+i.toString()},e.getObjectType=function(e){return e&&e.getType?"page"==e.getType()?i.Page:"panel"==e.getType()?i.Panel:"survey"==e.getType()?i.Survey:e.name?i.Question:i.Unknown:i.Unknown},e.getObjectTypeStr=function(t){var o=e.getObjectType(t);return o===i.Survey?"survey":o===i.Page?"page":o===i.Panel?"panel":o===i.Question?"question":"unknown"},e.getObjectName=function(t){if(t.name)return t.name;if(e.getObjectType(t)!=i.Page)return"";var o=t.data;return o||(o=t.survey),"[Page "+(o.pages.indexOf(t)+1)+"]"},e.getElements=function(e,t){return void 0===t&&(t=!1),e?e.getElementsInDesign?e.getElementsInDesign(t):e.elements?e.elements:[]:[]},e.isPropertyVisible=function(e,t,o){return void 0===o&&(o=null),!(!t||!t.visible)&&!(o&&!o(e,t))},e.scrollIntoViewIfNeeded=function(e,t){if(e&&e.scrollIntoView&&t){var o=e.getBoundingClientRect(),n=t.offsetParent?t.offsetParent.clientHeight:t.clientHeight;o.top<t.offsetTop?e.scrollIntoView():o.bottom>n&&(o.top>t.offsetTop+n||o.height<n)&&e.scrollIntoView(!1)}},e}()},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(12)),a=o(4),s=o(0),l=o(8),d=o(32);o.d(t,"a",function(){return u}),o.d(t,"b",function(){return p}),o.d(t,"c",function(){return h});var c=function(){function e(e){this.json=e}return e.prototype.afterRender=function(t,o){if(this.json&&this.json.afterRender&&(o.id||(o.id=e.customWidgetName+e.customWidgetId,e.customWidgetId++),this.json.afterRender(t,o),this.json.destroy)){var n=this;i.utils.domNodeDisposal.addDisposeCallback(o,function(){n.destroy(t,o)})}},e.prototype.destroy=function(e,t){this.json&&this.json.destroy&&this.json.destroy(e,t)},e}();c.customWidgetId=1,c.customWidgetName="modalEditorCustomWidget";var u=function(e){function t(n){var r=e.call(this,n)||this;r.isShowingModalValue=!1,r.koTitleCaption=i.observable(""),r.koHtmlTop=i.observable(""),r.koHtmlBottom=i.observable(""),r.property&&r.koTitleCaption(s.a.getString("pe.editProperty").format(r.property.name));n&&n.name;r.modalName="modelEditor"+r.editorType+t.idCounter,t.idCounter++,r.modalNameTarget="#"+r.modalName;var a=r;return r.koShowApplyButton=i.observable(!0),a.onHideModal=function(){},a.onApplyClick=function(){a.apply()},a.onOkClick=function(){a.apply(),a.koHasError()||a.onHideModal()},a.onResetClick=function(){a.updateValue(),a.onHideModal()},a.onShowModal=function(){a.beforeShow();var e=new d.a(document.querySelector(a.modalNameTarget),{bodyClass:"",closeTimeout:100,dialogOpenClass:"animated fadeInDown",focus:!1});e.open(),document.addEventListener("keydown",function(t){e.keydown(t)},!1),a.onHideModal=function(){a.beforeCloseModal(),e.close()},this.elements&&o.i(l.c)(this.elements)},a.koAfterRender=function(e,t){return a.afterRender(e,t)},r}return n.a(t,e),t.registerCustomWidget=function(e,o){t.customWidgets||(t.customWidgets={}),t.customWidgets[e]=new c(o)},t.getCustomWidget=function(e){return t.customWidgets?t.customWidgets[e]:null},t.prototype.setup=function(){e.prototype.setup.call(this),this.beforeShow()},Object.defineProperty(t.prototype,"isModal",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isShowingModal",{get:function(){return this.isShowingModalValue},enumerable:!0,configurable:!0}),t.prototype.beforeShow=function(){this.isShowingModalValue=!0,this.updateValue()},t.prototype.beforeCloseModal=function(){this.isShowingModalValue=!1},t.prototype.onOptionsChanged=function(){this.koShowApplyButton=i.observable(!this.options||this.options.showApplyButtonInEditors)},t.prototype.setObject=function(t){if(this.editingObject=t,e.prototype.setObject.call(this,t),this.options&&this.property){var o=this.options.onPropertyEditorModalShowDescriptionCallback(this.property.name,t);o&&(o.top&&this.koHtmlTop(o.top),o.bottom&&this.koHtmlBottom(o.bottom))}},Object.defineProperty(t.prototype,"isEditable",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.afterRender=function(e,n){this.elements=e;var i=t.getCustomWidget(this.editorType);if(i){var r=this.GetFirstNonTextElement(e),a=e[0];"#text"==a.nodeName&&(a.data=""),a=e[e.length-1],"#text"==a.nodeName&&(a.data=""),i.afterRender(this,r)}o.i(l.c)(e)},t.prototype.GetFirstNonTextElement=function(e){if(e&&e.length){for(var t=0;t<e.length;t++)if("#text"!=e[t].nodeName&&"#comment"!=e[t].nodeName)return e[t];return null}},t}(r.a);u.idCounter=1;var p=function(e){function t(t){var o=e.call(this,t)||this;o.koTextValue=i.observable();var n=o;return o.koTextValue.subscribe(function(e){n.onkoTextValueChanged(e)}),o}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"text"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isEditable",{get:function(){return!0},enumerable:!0,configurable:!0}),t.prototype.getValueText=function(e){if(!e)return null;var t=e;return t.length>20&&(t=t.substr(0,20)+"..."),t},t.prototype.onkoTextValueChanged=function(e){},t.prototype.onValueChanged=function(){this.koTextValue(this.editingValue)},t.prototype.onBeforeApply=function(){this.setValueCore(this.koTextValue())},t}(u),h=function(e){function t(t){return e.call(this,t)||this}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"html"},enumerable:!0,configurable:!0}),t}(p);a.a.registerEditor("text",function(e){return new p(e)}),a.a.registerEditor("html",function(e){return new h(e)})},function(e,t,o){"use strict";function n(e){if(!e)return null;var t=e.survey;return t||e.data}function i(e){e.dragEnterCounter=0,e.emptyElement=null,e.koRows.subscribe(function(t){e.emptyElement&&(e.emptyElement.style.display=e.koRows().length>0?"none":"")})}function r(e){e.allowingOptions={allowDelete:!0,allowEdit:!0,allowCopy:!0,allowAddToToolbox:!0,allowDragging:!0,allowChangeType:!0,allowShowHideTitle:!0,allowChangeRequired:!0},e.dragDropHelperValue=null,e.dragDropHelper=function(){return null==e.dragDropHelperValue&&(e.dragDropHelperValue=n(e).dragDropHelper),e.dragDropHelperValue},e.renderedElement=null,e.koIsDragging=v.observable(!1),e.koIsSelected=v.observable(!1),e.koIsDragging.subscribe(function(t){e.renderedElement&&(e.renderedElement.style.opacity=t?.4:1)}),e.koIsSelected.subscribe(function(t){e.renderedElement&&(t?e.renderedElement.classList.add("svd_q_selected","svd-main-border-color"):e.renderedElement.classList.remove("svd_q_selected","svd-main-border-color"))})}function a(e,t,o){var i=document.createElement("div");i.className="well card card-block",i.ondragover=function(e){t.doDragDropOver(e,o)};var r=document.createElement("span");return r.textContent=n(o).getEditorLocString("survey.dropQuestion"),i.appendChild(r),e.appendChild(i),i}function s(e,t,o,i){if(t.renderedElement=e,t.renderedElement.classList.add("svd_question"),"bootstrap"===b.a.currentTheme()&&t.renderedElement.classList.add("svd-dark-bg-color"),t.renderedElement.classList.add("svd_q_design_border"),n(t).updateElementAllowingOptions(t),t.koIsSelected()&&t.renderedElement.classList.add("svd_q_selected","svd-main-border-color"),t.dragDropHelper().attachToElement(e,t),e.onclick=function(e){e.markEvent||(e.markEvent=!0,t.parent&&(n(t).selectedElement=t))},e.ondblclick=function(e){n(t).doElementDoubleClick(t)},i=i&&!("paneldynamic"==t.getType()))for(var r=e.childNodes,a=0;a<r.length;a++)r[a].style&&(r[a].style.pointerEvents="none");h(e,t)}function l(e,t){w[e]||(w[e]=[]),w[e].push(t)}function d(e){void 0===e&&(e=void 0),void 0!==e?(e||[]).forEach(function(e){return delete w[e]}):w={}}function c(e,t){var o=t.panel?t.cssClasses.panel:t.cssClasses;Object.keys(w).forEach(function(e){w[e].forEach(function(n){var i=n.getMarkerClass(t.question||t.panel);o[e]=u(o[e],i)})})}function u(e,t){var o=e;return t&&(o=o?o+" "+t:t),o}function p(e,t){for(var n=[],i=0;i<t.length;i++){o.i(y.b)("svd_question",t[i])===e&&n.push(t[i])}return n}function h(e,t){Object.keys(w).forEach(function(o){w[o].forEach(function(o){var i=o.getMarkerClass(t);if(i){var r=e.querySelectorAll("."+i.replace(/\s/g,"."));r=p(e,r),0===r.length&&-1!==e.className.indexOf(i)&&(r=[e]),r.length>0&&o.afterRender(r,t,n(t).getEditor())}})})}var m=o(3),v=o(1),g=(o.n(v),o(0)),f=o(2),y=(o.n(f),o(8)),b=o(18);o.d(t,"a",function(){return x}),t.b=l,t.c=d;var x=function(e){function t(t,o,n){void 0===t&&(t=null),void 0===o&&(o=null),void 0===n&&(n=null);var i=e.call(this,t,o,n)||this;i.onSelectedElementChanged=new f.Event,i.onEditButtonClick=new f.Event,i.onGetMenuItems=new f.Event,i.onElementDoubleClick=new f.Event;var r=i;return i.setDesignMode(!0),i.onAfterRenderPage.add(function(e,t){t.page.onAfterRenderPage(t.htmlElement)}),i.onAfterRenderQuestion.add(function(e,t){t.question.onAfterRenderQuestion(t.htmlElement)}),i.onAfterRenderPanel.add(function(e,t){t.panel.onAfterRenderPanel(t.htmlElement)}),i.editQuestionClick=function(){r.onEditButtonClick.fire(r,null)},i.onUpdateQuestionCssClasses.add(c),i.onUpdatePanelCssClasses.add(c),i}return m.a(t,e),t.prototype.updateElementAllowingOptions=function(e){this.onUpdateElementAllowingOptions&&e.allowingOptions&&(e.allowingOptions.obj=e,this.onUpdateElementAllowingOptions(e.allowingOptions))},t.prototype.getMenuItems=function(e){var t=[],o={obj:e,items:t};return this.onGetMenuItems.fire(this,o),o.items},Object.defineProperty(t.prototype,"selectedElement",{get:function(){return this.selectedElementValue},set:function(e){if(e&&e.selectedElementInDesign&&(e=e.selectedElementInDesign),e!=this.selectedElementValue){var t=this.selectedElementValue;this.selectedElementValue=e,null!=t&&t.onSelectedElementChanged&&t.onSelectedElementChanged(),null!=this.selectedElementValue&&this.selectedElementValue.onSelectedElementChanged&&this.selectedElementValue.onSelectedElementChanged(),this.onSelectedElementChanged.fire(this,{oldElement:t,newElement:e})}},enumerable:!0,configurable:!0}),t.prototype.doElementDoubleClick=function(e){this.onElementDoubleClick.fire(this,{element:e})},t.prototype.getEditorLocString=function(e){return g.a.getString(e)},t}(f.Survey),w={};f.Page.prototype.onCreating=function(){i(this)},f.Page.prototype.onAfterRenderPage=function(e){if(n(this).isDesignMode){var t=this,o=n(this).dragDropHelper;this.dragEnterCounter=0,e.ondragenter=function(e){e.preventDefault(),t.dragEnterCounter++},e.ondragleave=function(e){0===--t.dragEnterCounter&&o.doLeavePage(e)},e.ondragover=function(e){return!1},e.ondrop=function(e){o.doDrop(e)}}},f.Panel.prototype.onCreating=function(){i(this),r(this)},f.Panel.prototype.onAfterRenderPanel=function(e){if(n(this).isDesignMode){var t=(this.koRows(),this);0==this.elements.length&&(this.emptyElement=a(e,t.dragDropHelper(),t)),s(e,this,!0,this.koIsDragging())}},f.Panel.prototype.onSelectedElementChanged=function(){null!=n(this)&&this.koIsSelected(n(this).selectedElementValue==this)},f.QuestionBase.prototype.onCreating=function(){r(this)},f.QuestionBase.prototype.onAfterRenderQuestion=function(e){n(this).isDesignMode&&s(e,this,!1,!0)},f.QuestionBase.prototype.onSelectedElementChanged=function(){null!=n(this)&&this.koIsSelected(n(this).selectedElementValue==this)}},function(e,t,o){"use strict";function n(e,t){var o=t.reduce(function(t,o){if("string"==typeof o&&0===o.indexOf(e))try{var n=parseInt(o.substring(e.length));if(n>=t)return n+1}catch(e){}return t},1);return e+o}function i(e,t){for(var o=t;(o=o.parentElement)&&!o.classList.contains(e););return o}function r(e){for(var t=0;t<e.length;t++)if("function"==typeof e[t].getElementsByClassName){var o=e[t].getElementsByClassName("form-control");if(0===o.length&&-1!==e[t].className.indexOf("form-control")&&(o=[e[t]]),o.length>0){var n=o[0];if("a"!==n.tagName.toLowerCase()){setTimeout(function(){return n.focus({preventScroll:!0})},10);break}}}}t.a=n,t.b=i,t.c=r},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(0)),r=o(25),a=o(15),s=o(2),l=(o.n(s),o(32)),d=o(5),c=o(8);o.d(t,"a",function(){return u}),o.d(t,"b",function(){return h}),o.d(t,"c",function(){return m});var u=function(){function e(){this.koVisible=n.observable(!1),this.koEditor=n.observable(null)}return e.prototype.show=function(e,t,o,n,i){void 0===n&&(n=null),void 0===i&&(i=null);var r=new h(e,this.onCanShowPropertyCallback,null,n);r.onChanged=o,this.koEditor(r),this.koVisible(!0);var a=new l.a(t,{bodyClass:"",closeTimeout:100,dialogOpenClass:"animated fadeIn",focus:!1,afterClose:function(){i&&i()}});a.open(),document.addEventListener("keydown",function(e){a.keydown(e)},!1),r.onHideWindow=function(){a.close()}},e}(),p=function(){function e(e,t){this.obj=e,this.onCanShowPropertyCallback=t,this.properties=s.JsonObject.metaData.getPropertiesByObj?s.JsonObject.metaData.getPropertiesByObj(this.obj):s.JsonObject.metaData.getProperties(this.obj.getType()),this.editorDefinition=a.a.getAllDefinitionsByClass(this.obj.getType())}return e.prototype.getProperty=function(e){var t=this.getPropertyCore(e);return t&&d.b.isPropertyVisible(this.obj,t,this.onCanShowPropertyCallback)?t:null},e.prototype.getPropertyCore=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.getProperties=function(e){var t=this;return this.editorDefinition.reduce(function(e,t){return e.concat(t.properties)},[{name:e.name,tab:e.name}]).filter(function(t){return void 0!==t&&"string"!=typeof t&&t.tab===e.name}).map(function(e){return"string"!=typeof e&&t.getPropertyCore(e.name)}).filter(function(o){return!!o&&(o.name==e.name&&!0===e.visible||d.b.isPropertyVisible(t.obj,o,t.onCanShowPropertyCallback))})},e}(),h=function(){function e(e,t,o,i){void 0===o&&(o=null),void 0===i&&(i=null),this.obj=e,this.onCanShowPropertyCallback=t,this.className=o,this.options=i,this.koActiveTab=n.observable(),this.koTitle=n.observable();var r=this;!this.className&&this.obj.getType&&(this.className=this.obj.getType()),this.properties=new p(e,t),r.onApplyClick=function(){r.apply()},r.onOkClick=function(){r.doCloseWindow(!1)},r.onResetClick=function(){r.doCloseWindow(!0)},this.onTabClick=function(e){r.koActiveTab(e.name)};var a=this.buildTabs();a.forEach(function(e){return e.beforeShow()}),this.koTabs=n.observableArray(a),a.length>0&&this.koActiveTab(a[0].name),this.koShowApplyButton=n.observable(!this.options||this.options.showApplyButtonInEditors),this.koTitle(this.getTitle())}return e.prototype.getTitle=function(){var e;return e=this.obj.name?i.a.getString("pe.qEditorTitle").format(this.obj.name):i.a.getString("pe.surveyEditorTitle"),this.options&&this.options.onGetElementEditorTitleCallback&&(e=this.options.onGetElementEditorTitleCallback(this.obj,e)),e},e.prototype.doCloseWindow=function(e){if(e?this.reset():this.apply(),e||!this.hasError()){for(var t=this.koTabs(),o=0;o<t.length;o++)t[o].doCloseWindow();this.onHideWindow&&this.onHideWindow()}},e.prototype.hasError=function(){for(var e=this.koTabs(),t=0;t<e.length;t++)if(e[t].hasError())return this.koActiveTab(e[t].name),!0;return!1},e.prototype.reset=function(){for(var e=this.koTabs(),t=0;t<e.length;t++)e[t].reset()},e.prototype.apply=function(){if(!this.hasError()){for(var e=this.koTabs(),t=0;t<e.length;t++)e[t].apply();this.onChanged&&this.onChanged(this.obj)}},e.prototype.buildTabs=function(){var e=[],t=new r.a(this.obj,a.a.getProperties(this.className),this.onCanShowPropertyCallback,this.options);a.a.isGeneralTabVisible(this.className)&&e.push(new m(this.obj,t,"general")),this.addPropertiesTabs(e);for(var o=0;o<e.length;o++)e[o].onCanShowPropertyCallback=this.onCanShowPropertyCallback;return e},e.prototype.addPropertiesTabs=function(e){for(var t=a.a.getTabs(this.className),o=0;o<t.length;o++){var n=t[o],i=this.properties.getProperties(n);if(i.length>0){var s=new m(this.obj,new r.a(this.obj,i,this.onCanShowPropertyCallback,this.options,n),n.name);s.title=n.title,e.push(s)}}},e}(),m=function(){function e(e,t,o){void 0===t&&(t=null),this.obj=e,this.properties=t,this._name=o}return e.prototype.koAfterRender=function(e,t){o.i(c.c)(e)},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){if(this.titleValue)return this.titleValue;var e=i.a.getString("pe.tabs."+this.name);return e||this.name},set:function(e){this.titleValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"htmlTemplate",{get:function(){return"questioneditortab"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"templateObject",{get:function(){return this},enumerable:!0,configurable:!0}),e.prototype.hasError=function(){return this.properties.hasError()},e.prototype.beforeShow=function(){this.properties.beforeShow()},e.prototype.reset=function(){this.properties.reset()},e.prototype.apply=function(){this.properties.apply()},e.prototype.doCloseWindow=function(){},e.prototype.getValue=function(e){return e.getPropertyValue(this.obj)},e}()},function(e,t,o){var n,i;/**! * Sortable * @author RubaXa <trash@rubaxa.org> * @license MIT */ !function(r){"use strict";n=r,void 0!==(i="function"==typeof n?n.call(t,o,t,e):n)&&(e.exports=i)}(function(){"use strict";function e(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(e);this.el=e,this.options=t=b({},t),e[Q]=this;var o={group:Math.random(),sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(e.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0}};for(var n in o)!(n in t)&&(t[n]=o[n]);ae(t);for(var i in this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&X,r(e,"mousedown",this._onTapStart),r(e,"touchstart",this._onTapStart),r(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(r(e,"dragover",this),r(e,"dragenter",this)),ie.push(this._onDragOver),t.store&&this.sort(t.store.get(this))}function t(e,t){"clone"!==e.lastPullMode&&(t=!0),C&&C.state!==t&&(l(C,"display",t?"none":""),t||C.state&&(e.options.group.revertClone?(E.insertBefore(C,P),e._animate(k,C)):E.insertBefore(C,k)),C.state=t)}function o(e,t,o){if(e){o=o||F;do{if(">*"===t&&e.parentNode===o||f(e,t))return e}while(e=n(e))}return null}function n(e){var t=e.host;return t&&t.nodeType?t:e.parentNode}function i(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.preventDefault()}function r(e,t,o){e.addEventListener(t,o,Y)}function a(e,t,o){e.removeEventListener(t,o,Y)}function s(e,t,o){if(e)if(e.classList)e.classList[o?"add":"remove"](t);else{var n=(" "+e.className+" ").replace($," ").replace(" "+t+" "," ");e.className=(n+(o?" "+t:"")).replace($," ")}}function l(e,t,o){var n=e&&e.style;if(n){if(void 0===o)return F.defaultView&&F.defaultView.getComputedStyle?o=F.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in n||(t="-webkit-"+t),n[t]=o+("string"==typeof o?"":"px")}}function d(e,t,o){if(e){var n=e.getElementsByTagName(t),i=0,r=n.length;if(o)for(;i<r;i++)o(n[i],i);return n}return[]}function c(e,t,o,n,i,r,a){e=e||t[Q];var s=F.createEvent("Event"),l=e.options,d="on"+o.charAt(0).toUpperCase()+o.substr(1);s.initEvent(o,!0,!0),s.to=t,s.from=i||t,s.item=n||t,s.clone=C,s.oldIndex=r,s.newIndex=a,t.dispatchEvent(s),l[d]&&l[d].call(e,s)}function u(e,t,o,n,i,r,a,s){var l,d,c=e[Q],u=c.options.onMove;return l=F.createEvent("Event"),l.initEvent("move",!0,!0),l.to=t,l.from=e,l.dragged=o,l.draggedRect=n,l.related=i||t,l.relatedRect=r||t.getBoundingClientRect(),l.willInsertAfter=s,e.dispatchEvent(l),u&&(d=u.call(c,l,a)),d}function p(e){e.draggable=!1}function h(){ee=!1}function m(e,t){var o=e.lastElementChild,n=o.getBoundingClientRect();return t.clientY-(n.top+n.height)>5||t.clientX-(n.left+n.width)>5}function v(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,o=t.length,n=0;o--;)n+=t.charCodeAt(o);return n.toString(36)}function g(e,t){var o=0;if(!e||!e.parentNode)return-1;for(;e&&(e=e.previousElementSibling);)"TEMPLATE"===e.nodeName.toUpperCase()||">*"!==t&&!f(e,t)||o++;return o}function f(e,t){if(e){t=t.split(".");var o=t.shift().toUpperCase(),n=new RegExp("\\s("+t.join("|")+")(?=\\s)","g");return!(""!==o&&e.nodeName.toUpperCase()!=o||t.length&&((" "+e.className+" ").match(n)||[]).length!=t.length)}return!1}function y(e,t){var o,n;return function(){void 0===o&&(o=arguments,n=this,setTimeout(function(){1===o.length?e.call(n,o[0]):e.apply(n,o),o=void 0},t))}}function b(e,t){if(e&&t)for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e}function x(e){return G?G(e).clone(!0)[0]:K&&K.dom?K.dom(e).cloneNode(!0):e.cloneNode(!0)}function w(e){for(var t=e.getElementsByTagName("input"),o=t.length;o--;){var n=t[o];n.checked&&ne.push(n)}}if("undefined"==typeof window||!window.document)return function(){throw new Error("Sortable.js requires a window with a document")};var k,S,T,C,E,P,O,V,N,j,I,A,q,M,D,R,z,L,H,_,B={},$=/\s+/g,J=/left|right|inline/,Q="Sortable"+(new Date).getTime(),U=window,F=U.document,W=U.parseInt,G=U.jQuery||U.Zepto,K=U.Polymer,Y=!1,X=!!("draggable"in F.createElement("div")),Z=function(e){return!navigator.userAgent.match(/Trident.*rv[ :]?11\./)&&(e=F.createElement("x"),e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents)}(),ee=!1,te=Math.abs,oe=Math.min,ne=[],ie=[],re=y(function(e,t,o){if(o&&t.scroll){var n,i,r,a,s,l,d=o[Q],c=t.scrollSensitivity,u=t.scrollSpeed,p=e.clientX,h=e.clientY,m=window.innerWidth,v=window.innerHeight;if(N!==o&&(V=t.scroll,N=o,j=t.scrollFn,!0===V)){V=o;do{if(V.offsetWidth<V.scrollWidth||V.offsetHeight<V.scrollHeight)break}while(V=V.parentNode)}V&&(n=V,i=V.getBoundingClientRect(),r=(te(i.right-p)<=c)-(te(i.left-p)<=c),a=(te(i.bottom-h)<=c)-(te(i.top-h)<=c)),r||a||(r=(m-p<=c)-(p<=c),a=(v-h<=c)-(h<=c),(r||a)&&(n=U)),B.vx===r&&B.vy===a&&B.el===n||(B.el=n,B.vx=r,B.vy=a,clearInterval(B.pid),n&&(B.pid=setInterval(function(){if(l=a?a*u:0,s=r?r*u:0,"function"==typeof j)return j.call(d,s,l,e);n===U?U.scrollTo(U.pageXOffset+s,U.pageYOffset+l):(n.scrollTop+=l,n.scrollLeft+=s)},24)))}},30),ae=function(e){function t(e,t){return void 0!==e&&!0!==e||(e=o.name),"function"==typeof e?e:function(o,n){var i=n.options.group.name;return t?e:e&&(e.join?e.indexOf(i)>-1:i==e)}}var o={},n=e.group;n&&"object"==typeof n||(n={name:n}),o.name=n.name,o.checkPull=t(n.pull,!0),o.checkPut=t(n.put),o.revertClone=n.revertClone,e.group=o};e.prototype={constructor:e,_onTapStart:function(e){var t,n=this,i=this.el,r=this.options,a=r.preventOnFilter,s=e.type,l=e.touches&&e.touches[0],d=(l||e).target,u=e.target.shadowRoot&&e.path&&e.path[0]||d,p=r.filter;if(w(i),!k&&!(/mousedown|pointerdown/.test(s)&&0!==e.button||r.disabled)&&(d=o(d,r.draggable,i))&&O!==d){if(t=g(d,r.draggable),"function"==typeof p){if(p.call(this,e,d,this))return c(n,u,"filter",d,i,t),void(a&&e.preventDefault())}else if(p&&(p=p.split(",").some(function(e){if(e=o(u,e.trim(),i))return c(n,e,"filter",d,i,t),!0})))return void(a&&e.preventDefault());r.handle&&!o(u,r.handle,i)||this._prepareDragStart(e,l,d,t)}},_prepareDragStart:function(e,t,o,n){var i,a=this,l=a.el,u=a.options,h=l.ownerDocument;o&&!k&&o.parentNode===l&&(L=e,E=l,k=o,S=k.parentNode,P=k.nextSibling,O=o,R=u.group,M=n,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,k.style["will-change"]="transform",i=function(){a._disableDelayedDrag(),k.draggable=a.nativeDraggable,s(k,u.chosenClass,!0),a._triggerDragStart(e,t),c(a,E,"choose",k,E,M)},u.ignore.split(",").forEach(function(e){d(k,e.trim(),p)}),r(h,"mouseup",a._onDrop),r(h,"touchend",a._onDrop),r(h,"touchcancel",a._onDrop),r(h,"pointercancel",a._onDrop),r(h,"selectstart",a),u.delay?(r(h,"mouseup",a._disableDelayedDrag),r(h,"touchend",a._disableDelayedDrag),r(h,"touchcancel",a._disableDelayedDrag),r(h,"mousemove",a._disableDelayedDrag),r(h,"touchmove",a._disableDelayedDrag),r(h,"pointermove",a._disableDelayedDrag),a._dragStartTimer=setTimeout(i,u.delay)):i())},_disableDelayedDrag:function(){var e=this.el.ownerDocument;clearTimeout(this._dragStartTimer),a(e,"mouseup",this._disableDelayedDrag),a(e,"touchend",this._disableDelayedDrag),a(e,"touchcancel",this._disableDelayedDrag),a(e,"mousemove",this._disableDelayedDrag),a(e,"touchmove",this._disableDelayedDrag),a(e,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(e,t){t=t||("touch"==e.pointerType?e:null),t?(L={target:k,clientX:t.clientX,clientY:t.clientY},this._onDragStart(L,"touch")):this.nativeDraggable?(r(k,"dragend",this),r(E,"dragstart",this._onDragStart)):this._onDragStart(L,!0);try{F.selection?setTimeout(function(){F.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){if(E&&k){var t=this.options;s(k,t.ghostClass,!0),s(k,t.dragClass,!1),e.active=this,c(this,E,"start",k,E,M)}else this._nulling()},_emulateDragOver:function(){if(H){if(this._lastX===H.clientX&&this._lastY===H.clientY)return;this._lastX=H.clientX,this._lastY=H.clientY,Z||l(T,"display","none");var e=F.elementFromPoint(H.clientX,H.clientY),t=e,o=ie.length;if(t)do{if(t[Q]){for(;o--;)ie[o]({clientX:H.clientX,clientY:H.clientY,target:e,rootEl:t});break}e=t}while(t=t.parentNode);Z||l(T,"display","")}},_onTouchMove:function(t){if(L){var o=this.options,n=o.fallbackTolerance,i=o.fallbackOffset,r=t.touches?t.touches[0]:t,a=r.clientX-L.clientX+i.x,s=r.clientY-L.clientY+i.y,d=t.touches?"translate3d("+a+"px,"+s+"px,0)":"translate("+a+"px,"+s+"px)";if(!e.active){if(n&&oe(te(r.clientX-this._lastX),te(r.clientY-this._lastY))<n)return;this._dragStarted()}this._appendGhost(),_=!0,H=r,l(T,"webkitTransform",d),l(T,"mozTransform",d),l(T,"msTransform",d),l(T,"transform",d),t.preventDefault()}},_appendGhost:function(){if(!T){var e,t=k.getBoundingClientRect(),o=l(k),n=this.options;T=k.cloneNode(!0),s(T,n.ghostClass,!1),s(T,n.fallbackClass,!0),s(T,n.dragClass,!0),l(T,"top",t.top-W(o.marginTop,10)),l(T,"left",t.left-W(o.marginLeft,10)),l(T,"width",t.width),l(T,"height",t.height),l(T,"opacity","0.8"),l(T,"position","fixed"),l(T,"zIndex","100000"),l(T,"pointerEvents","none"),n.fallbackOnBody&&F.body.appendChild(T)||E.appendChild(T),e=T.getBoundingClientRect(),l(T,"width",2*t.width-e.width),l(T,"height",2*t.height-e.height)}},_onDragStart:function(e,t){var o=e.dataTransfer,n=this.options;this._offUpEvents(),R.checkPull(this,this,k,e)&&(C=x(k),C.draggable=!1,C.style["will-change"]="",l(C,"display","none"),s(C,this.options.chosenClass,!1),E.insertBefore(C,k),c(this,E,"clone",k)),s(k,n.dragClass,!0),t?("touch"===t?(r(F,"touchmove",this._onTouchMove),r(F,"touchend",this._onDrop),r(F,"touchcancel",this._onDrop),r(F,"pointermove",this._onTouchMove),r(F,"pointerup",this._onDrop)):(r(F,"mousemove",this._onTouchMove),r(F,"mouseup",this._onDrop)),this._loopId=setInterval(this._emulateDragOver,50)):(o&&(o.effectAllowed="move",n.setData&&n.setData.call(this,o,k)),r(F,"drop",this),setTimeout(this._dragStarted,0))},_onDragOver:function(n){var i,r,a,s,d=this.el,c=this.options,p=c.group,v=e.active,g=R===p,f=!1,y=c.sort;if(void 0!==n.preventDefault&&(n.preventDefault(),!c.dragoverBubble&&n.stopPropagation()),!k.animated&&(_=!0,v&&!c.disabled&&(g?y||(s=!E.contains(k)):z===this||(v.lastPullMode=R.checkPull(this,v,k,n))&&p.checkPut(this,v,k,n))&&(void 0===n.rootEl||n.rootEl===this.el))){if(re(n,c,this.el),ee)return;if(i=o(n.target,c.draggable,d),r=k.getBoundingClientRect(),z!==this&&(z=this,f=!0),s)return t(v,!0),S=E,void(C||P?E.insertBefore(k,C||P):y||E.appendChild(k));if(0===d.children.length||d.children[0]===T||d===n.target&&m(d,n)){if(0!==d.children.length&&d.children[0]!==T&&d===n.target&&(i=d.lastElementChild),i){if(i.animated)return;a=i.getBoundingClientRect()}t(v,g),!1!==u(E,d,k,r,i,a,n)&&(k.contains(d)||(d.appendChild(k),S=d),this._animate(r,k),i&&this._animate(a,i))}else if(i&&!i.animated&&i!==k&&void 0!==i.parentNode[Q]){I!==i&&(I=i,A=l(i),q=l(i.parentNode)),a=i.getBoundingClientRect();var b=a.right-a.left,x=a.bottom-a.top,w=J.test(A.cssFloat+A.display)||"flex"==q.display&&0===q["flex-direction"].indexOf("row"),O=i.offsetWidth>k.offsetWidth,V=i.offsetHeight>k.offsetHeight,N=(w?(n.clientX-a.left)/b:(n.clientY-a.top)/x)>.5,j=i.nextElementSibling,M=!1;if(w){var D=k.offsetTop,L=i.offsetTop;M=D===L?i.previousElementSibling===k&&!O||N&&O:i.previousElementSibling===k||k.previousElementSibling===i?(n.clientY-a.top)/x>.5:L>D}else f||(M=j!==k&&!V||N&&V);var H=u(E,d,k,r,i,a,n,M);!1!==H&&(1!==H&&-1!==H||(M=1===H),ee=!0,setTimeout(h,30),t(v,g),k.contains(d)||(M&&!j?d.appendChild(k):i.parentNode.insertBefore(k,M?j:i)),S=k.parentNode,this._animate(r,k),this._animate(a,i))}}},_animate:function(e,t){var o=this.options.animation;if(o){var n=t.getBoundingClientRect();1===e.nodeType&&(e=e.getBoundingClientRect()),l(t,"transition","none"),l(t,"transform","translate3d("+(e.left-n.left)+"px,"+(e.top-n.top)+"px,0)"),t.offsetWidth,l(t,"transition","all "+o+"ms"),l(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=setTimeout(function(){l(t,"transition",""),l(t,"transform",""),t.animated=!1},o)}},_offUpEvents:function(){var e=this.el.ownerDocument;a(F,"touchmove",this._onTouchMove),a(F,"pointermove",this._onTouchMove),a(e,"mouseup",this._onDrop),a(e,"touchend",this._onDrop),a(e,"pointerup",this._onDrop),a(e,"touchcancel",this._onDrop),a(e,"pointercancel",this._onDrop),a(e,"selectstart",this)},_onDrop:function(t){var o=this.el,n=this.options;clearInterval(this._loopId),clearInterval(B.pid),clearTimeout(this._dragStartTimer),a(F,"mousemove",this._onTouchMove),this.nativeDraggable&&(a(F,"drop",this),a(o,"dragstart",this._onDragStart)),this._offUpEvents(),t&&(_&&(t.preventDefault(),!n.dropBubble&&t.stopPropagation()),T&&T.parentNode&&T.parentNode.removeChild(T),E!==S&&"clone"===e.active.lastPullMode||C&&C.parentNode&&C.parentNode.removeChild(C),k&&(this.nativeDraggable&&a(k,"dragend",this),p(k),k.style["will-change"]="",s(k,this.options.ghostClass,!1),s(k,this.options.chosenClass,!1),c(this,E,"unchoose",k,E,M),E!==S?(D=g(k,n.draggable))>=0&&(c(null,S,"add",k,E,M,D),c(this,E,"remove",k,E,M,D),c(null,S,"sort",k,E,M,D),c(this,E,"sort",k,E,M,D)):k.nextSibling!==P&&(D=g(k,n.draggable))>=0&&(c(this,E,"update",k,E,M,D),c(this,E,"sort",k,E,M,D)),e.active&&(null!=D&&-1!==D||(D=M),c(this,E,"end",k,E,M,D),this.save()))),this._nulling()},_nulling:function(){E=k=S=T=P=C=O=V=N=L=H=_=D=I=A=z=R=e.active=null,ne.forEach(function(e){e.checked=!0}),ne.length=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragover":case"dragenter":k&&(this._onDragOver(e),i(e));break;case"selectstart":e.preventDefault()}},toArray:function(){for(var e,t=[],n=this.el.children,i=0,r=n.length,a=this.options;i<r;i++)e=n[i],o(e,a.draggable,this.el)&&t.push(e.getAttribute(a.dataIdAttr)||v(e));return t},sort:function(e){var t={},n=this.el;this.toArray().forEach(function(e,i){var r=n.children[i];o(r,this.options.draggable,n)&&(t[e]=r)},this),e.forEach(function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))})},save:function(){var e=this.options.store;e&&e.set(this)},closest:function(e,t){return o(e,t||this.options.draggable,this.el)},option:function(e,t){var o=this.options;if(void 0===t)return o[e];o[e]=t,"group"===e&&ae(o)},destroy:function(){var e=this.el;e[Q]=null,a(e,"mousedown",this._onTapStart),a(e,"touchstart",this._onTapStart),a(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(a(e,"dragover",this),a(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(e){e.removeAttribute("draggable")}),ie.splice(ie.indexOf(this._onDragOver),1),this._onDrop(),this.el=e=null}},r(F,"touchmove",function(t){e.active&&t.preventDefault()});try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){Y={capture:!1,passive:!1}}}))}catch(e){}return e.utils={on:r,off:a,css:l,find:d,is:function(e,t){return!!o(e,t,e)},extend:b,throttle:y,closest:o,toggleClass:s,clone:x,index:g},e.create=function(t,o){return new e(t,o)},e.version="1.6.1",e})},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(4));o.d(t,"a",function(){return r});var r=function(){function e(e,t,o){void 0===t&&(t=null),void 0===o&&(o=null),this.property=e,this.koIsShowEditor=n.observable(!1),this.onPropertyChanged=t,this.name=this.property.name,this.disabled=e.readOnly;var r=this,a=function(e){r.onEditorValueChanged(e)};this.editor=i.a.createEditor(e,a),this.editor.onGetLocale=this.doOnGetLocale,this.editor.options=o,this.editorType=this.editor.editorType,this.isActive=!1}return Object.defineProperty(e.prototype,"displayName",{get:function(){return this.editor.displayName},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.editor.title},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isActive",{get:function(){return this.isActiveValue},set:function(e){this.isActive!=e&&(this.isActiveValue=e,this.koIsShowEditor(!this.disabled&&(this.editor.alwaysShowEditor||this.isActive)),this.editor.activate())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"koValue",{get:function(){return this.editor.koValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"koText",{get:function(){return this.editor.koText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"koIsDefault",{get:function(){return this.editor.koIsDefault},enumerable:!0,configurable:!0}),e.prototype.doOnGetLocale=function(){return this.object&&this.object.getLocale?this.object.getLocale():""},Object.defineProperty(e.prototype,"object",{get:function(){return this.objectValue},set:function(e){this.objectValue=e,this.editor.object=e},enumerable:!0,configurable:!0}),e.prototype.onEditorValueChanged=function(e){this.onPropertyChanged&&this.object&&this.onPropertyChanged(this,e)},e}()},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(2)),r=(o.n(i),o(0));o.d(t,"a",function(){return a});var a=function(){function e(e){this.editingValue_=null,this.isApplyinNewValue=!1,this.valueUpdatingCounter=0,this.optionsValue=null,this.isRequriedValue=!1,this.isCustomDisplayName=!1,this.isTabProperty=!1,this.isInplaceProperty=!1,this.iskoValueChanging=!1,this.property_=e;var t=this;this.koValue=n.observable(),this.koValue.subscribe(function(e){t.onkoValueChanged(e)}),this.koText=n.computed(function(){return t.getValueText(t.koValue())}),this.koIsDefault=n.computed(function(){return!!t.property&&t.property.isDefaultValue(t.koValue())}),this.koHasError=n.observable(!1),this.koErrorText=n.observable(""),this.setIsRequired(),this.setTitleAndDisplayName()}return e.prototype.setup=function(){},e.prototype.beforeShow=function(){},Object.defineProperty(e.prototype,"editorType",{get:function(){throw"editorType is not defined"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"property",{get:function(){return this.property_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"defaultValue",{get:function(){return this.property.defaultValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"editablePropertyName",{get:function(){return this.property?this.property.name:""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return!!this.property&&this.property.readOnly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alwaysShowEditor",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.titleValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isDiplayNameVisible",{get:function(){return!(this.isTabProperty&&this.isModal||this.isInplaceProperty||"."===this.displayName)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"displayName",{get:function(){return this.displayNameValue},set:function(e){this.isCustomDisplayName=!0,this.displayNameValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showDisplayNameOnTop",{get:function(){return this.isDiplayNameVisible&&this.canShowDisplayNameOnTop},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canShowDisplayNameOnTop",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"contentTemplateName",{get:function(){var e="propertyeditor";return this.isModal?e+="-modalcontent":e+="-"+this.editorType,e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isModal",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"object",{get:function(){return this.objectValue},set:function(e){var t=this;this.objectValue=e,"function"==typeof e.registerFunctionOnPropertyValueChanged&&e.registerFunctionOnPropertyValueChanged(this.property.name,function(){return t.updateValue()},this.property.name),this.setIsRequired(),this.setTitleAndDisplayName(),this.setObject(this.object),this.updateValue(),this.options&&this.property&&this.options.onPropertyEditorObjectSetCallback(this.property.name,this.object,this)},enumerable:!0,configurable:!0}),e.prototype.getValueText=function(e){return e},Object.defineProperty(e.prototype,"editingValue",{get:function(){return this.editingValue_},set:function(e){e=this.getCorrectedValue(e),this.setValueCore(e),this.onValueChanged()},enumerable:!0,configurable:!0}),e.prototype.hasError=function(){return this.koHasError(this.checkForErrors()),this.koHasError()},e.prototype.getLocString=function(e){return r.a.getString(e)},e.prototype.hasLocString=function(e){return r.a.hasString(e)},e.prototype.checkForErrors=function(){var e="";if(this.isRequired){this.isValueEmpty(this.koValue())&&(e=this.getLocString("pe.propertyIsEmpty"))}return!e&&this.property&&this.options&&this.options.onGetErrorTextOnValidationCallback&&(e=this.options.onGetErrorTextOnValidationCallback(this.property.name,this.object,this.koValue())),this.koErrorText(e),""!==e},Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequriedValue},enumerable:!0,configurable:!0}),e.prototype.setIsRequired=function(){if(this.isRequriedValue=!1,this.property&&this.object&&this.object.getType)for(var e=i.JsonObject.metaData.findClass(this.object.getType());e;){var t=e.requiredProperties;if(t&&(this.isRequriedValue=t.indexOf(this.property.name)>-1,this.isRequriedValue))return;if(!e.parentName)return;e=i.JsonObject.metaData.findClass(e.parentName)}},e.prototype.setTitleAndDisplayName=function(){if(!this.isCustomDisplayName&&(this.displayNameValue=this.property?this.property.name:"",this.titleValue="",this.property)){var e=this.property.name;this.displayNameValue=r.a.getPropertyName(e);var t=r.a.getPropertyTitle(e);this.titleValue=t}},e.prototype.onBeforeApply=function(){},e.prototype.apply=function(){this.hasError()||(this.onBeforeApply(),this.isApplyinNewValue=!0,this.koValue(this.editingValue),this.isApplyinNewValue=!1)},Object.defineProperty(e.prototype,"locale",{get:function(){return this.onGetLocale?this.onGetLocale():""},enumerable:!0,configurable:!0}),e.prototype.getLocale=function(){return this.locale},e.prototype.getMarkdownHtml=function(e){return e},e.prototype.getProcessedText=function(e){return e},Object.defineProperty(e.prototype,"options",{get:function(){return this.optionsValue},set:function(e){this.optionsValue=e,this.onOptionsChanged()},enumerable:!0,configurable:!0}),e.prototype.onOptionsChanged=function(){},e.prototype.setValueCore=function(e){this.editingValue_=e},e.prototype.setObject=function(e){if(this.options){var t=this.createEditorOptions();this.options.onSetPropertyEditorOptionsCallback(this.editablePropertyName,e,t),this.onSetEditorOptions(t)}},e.prototype.activate=function(){},e.prototype.createEditorOptions=function(){return{}},e.prototype.onSetEditorOptions=function(e){},e.prototype.onValueChanged=function(){},e.prototype.getCorrectedValue=function(e){return e},e.prototype.beginValueUpdating=function(){this.valueUpdatingCounter++},e.prototype.endValueUpdating=function(){this.valueUpdatingCounter>0&&this.valueUpdatingCounter--},e.prototype.updateValue=function(){this.beginValueUpdating(),this.koValue(this.getValue()),this.editingValue=this.koValue(),this.onValueUpdated&&this.onValueUpdated(this.editingValue),this.endValueUpdating()},e.prototype.getValue=function(){return this.property&&this.object?this.property.getPropertyValue(this.object):null},e.prototype.onkoValueChanged=function(e){if(!(this.valueUpdatingCounter>0||this.iskoValueChanging)){if(this.iskoValueChanging=!0,e=this.getCorrectedValue(e),this.options&&this.property&&this.object){var t={propertyName:this.property.name,obj:this.object,value:e,newValue:null,doValidation:!1};this.options.onValueChangingCallback(t),this.isValueEmpty(t.newValue)||this.koValue(t.newValue),t.doValidation&&this.hasError()}this.isApplyinNewValue||(this.editingValue=e),this.iskoValueChanging=!1,this.property&&this.object&&this.getValue()==e||null!=this.onChanged&&this.onChanged(e)}},e.prototype.isValueEmpty=function(e){return i.Base.isValueEmpty?i.Base.isValueEmpty(e):i.Helpers.isValueEmpty(e)},e}()},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(6)),a=o(0);o.d(t,"a",function(){return s});var s=function(e){function t(t){var o=e.call(this,t)||this;o.sortableOptions={handle:".svd-drag-handle",animation:150},o.koItems=i.observableArray(),o.editingValue=[],o.koAllowAddRemoveItems=i.observable(!0);var n=o;return n.onDeleteClick=function(e){n.koItems.remove(e)},n.onClearClick=function(e){n.koItems.removeAll()},n.onAddClick=function(){n.AddItem()},o}return n.a(t,e),t.prototype.getValueText=function(e){var t=e?e.length:0;return a.a.getString("pe.items").format(t)},t.prototype.getCorrectedValue=function(e){return null!=e&&Array.isArray(e)||(e=[]),e},t.prototype.createEditorOptions=function(){return{allowAddRemoveItems:!0}},t.prototype.onSetEditorOptions=function(e){this.koAllowAddRemoveItems(e.allowAddRemoveItems)},t.prototype.AddItem=function(){this.koItems.push(this.createNewEditorItem())},t.prototype.setupItems=function(){this.koItems(this.getItemsFromValue(this.editingValue))},t.prototype.onValueChanged=function(){this.isShowingModal&&this.setupItems()},t.prototype.setup=function(){e.prototype.setup.call(this),this.updateValue()},t.prototype.getItemsFromValue=function(e){void 0===e&&(e=null);var t=[];e||(e=this.editingValue);for(var o=0;o<e.length;o++)t.push(this.createEditorItem(e[o]));return t},t.prototype.onBeforeApply=function(){for(var e=[],t=this.koItems(),o=0;o<t.length;o++)e.push(this.createItemFromEditorItem(t[o]));this.setValueCore(e)},t.prototype.createNewEditorItem=function(){throw"Override 'createNewEditorItem' method"},t.prototype.createEditorItem=function(e){return e},t.prototype.createItemFromEditorItem=function(e){return e},t}(r.a)},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(13)),s=o(0),l=o(11);o.d(t,"a",function(){return d}),o.d(t,"b",function(){return c});var d=function(e){function t(t){var o=e.call(this,t)||this,n=o;return o.koEditItem=i.observable(null),o.koIsList=i.observable(!0),o.koEditItem.subscribe(function(e){n.koIsList(null==n.koEditItem()),n.onListDetailViewChanged()}),o.onEditItemClick=function(e){n.koEditItem(e)},o.onCancelEditItemClick=function(){var e=n.koEditItem();e.itemEditor&&e.itemEditor.hasError()||n.koEditItem(null)},o.koEditorName=i.computed(function(){return n.getEditorName()}),o}return n.a(t,e),t.prototype.beforeShow=function(){e.prototype.beforeShow.call(this),this.koEditItem(null)},t.prototype.createColumns=function(){for(var e=[],t=this.getProperties(),o=0;o<t.length;o++)e.push(new u(t[o]));return e},t.prototype.getProperties=function(){return[]},t.prototype.getPropertiesByNames=function(e,t){for(var o=[],n=0;n<t.length;n++){var i=t[n];i.name&&i.name;var a=r.JsonObject.metaData.findProperty(e,i);a&&a.visible&&o.push(a)}return o},t.prototype.getEditorName=function(){return""},t.prototype.onListDetailViewChanged=function(){},t.prototype.checkForErrors=function(){for(var e=!1,t=0;t<this.koItems().length;t++)e=e||this.koItems()[t].hasError();return e},t.prototype.onBeforeApply=function(){for(var t=this.koItems(),o=0;o<t.length;o++)t[o].apply();e.prototype.onBeforeApply.call(this)},t}(a.a),c=function(){function e(e,t){this.obj=e,this.columns=t,this.cellsValue=[];for(var o=0;o<t.length;o++)this.cellsValue.push(new p(e,t[o].property))}return Object.defineProperty(e.prototype,"itemEditor",{get:function(){return this.itemEditorValue||(this.itemEditorValue=this.createSurveyQuestionEditor()),this.itemEditorValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cells",{get:function(){return this.cellsValue},enumerable:!0,configurable:!0}),e.prototype.hasError=function(){if(this.itemEditorValue&&this.itemEditorValue.hasError())return!0;for(var e=!1,t=0;t<this.cells.length;t++)e=this.cells[t].hasError||e;return e},e.prototype.resetSurveyQuestionEditor=function(){this.itemEditorValue=null},e.prototype.createSurveyQuestionEditor=function(){return null},e.prototype.apply=function(){this.itemEditorValue&&this.itemEditorValue.apply()},e}(),u=function(){function e(e){this.property=e}return Object.defineProperty(e.prototype,"text",{get:function(){var e=s.a.hasString("pel."+this.property.name)?this.getLocText("pel."):this.getLocText("pe.");return e||this.property.name},enumerable:!0,configurable:!0}),e.prototype.getLocText=function(e){return s.a.getString(e+this.property.name)},e}(),p=function(){function e(e,t){this.obj=e,this.property=t;var o=this,n=function(e,t){o.value=t};this.objectPropertyValue=new l.a(this.property,n),this.objectPropertyValue.editor.isInplaceProperty=!0,this.objectProperty.object=e}return Object.defineProperty(e.prototype,"objectProperty",{get:function(){return this.objectPropertyValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"editor",{get:function(){return this.objectProperty.editor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"koValue",{get:function(){return this.objectProperty.editor.koValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.property.getValue(this.obj)},set:function(e){this.property.setValue(this.obj,e,null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasError",{get:function(){return this.editor.hasError()},enumerable:!0,configurable:!0}),e}()},function(e,t,o){"use strict";var n=o(2);o.n(n);o.d(t,"a",function(){return i});var i=function(){function e(){}return e.getProperties=function(t){for(var o=[],n=e.getAllDefinitionsByClass(t),i=n.length-1;i>=0;i--){var r=n[i];if(r.properties)for(var a=0;a<r.properties.length;a++)r.properties[a].tab&&"general"!==r.properties[a].tab||o.push(r.properties[a])}return o},e.isGeneralTabVisible=function(t){for(var o=e.getAllDefinitionsByClass(t),n=o.length-1;n>=0;n--){var i=o[n];if(i.tabs)for(var r=0;r<i.tabs.length;r++){var a=i.tabs[r];if("general"==a.name)return!1!==a.visible}}return!0},e.getTabs=function(t){for(var o=[],n=e.getAllDefinitionsByClass(t),i={},r=0;r<n.length;r++){var a=n[r];if(a.tabs)for(var s=0;s<a.tabs.length;s++){var l=a.tabs[s];i[l.name]||(i[l.name]=!0,!1!==l.visible&&o.push(l))}}return o.sort(function(e,t){return e.index<t.index?-1:e.index>t.index?1:0}),o},e.getAllDefinitionsByClass=function(t){var o=[];if(t.indexOf("@")>-1&&e.definition[t])return o.push(e.definition[t]),o;for(;t;){var i=n.JsonObject.metaData.findClass(t);if(!i)break;e.definition[i.name]&&o.push(e.definition[i.name]),t=i.parentName}return o},e}();i.definition={questionbase:{properties:["name","title",{name:"visible",category:"checks"},{name:"isRequired",category:"checks"},{name:"startWithNewLine",category:"checks"}],tabs:[{name:"visibleIf",index:100},{name:"enableIf",index:110}]},comment:{properties:["rows","placeHolder"]},file:{properties:[{name:"showPreview",category:"imageChecks"},{name:"storeDataAsText",category:"imageChecks"},"maxSize","imageHeight","imageWidth"]},html:{tabs:[{name:"html",index:10}]},matrixdropdownbase:{properties:["cellType","columnsLocation"],tabs:[{name:"columns",index:10},{name:"rows",index:11},{name:"choices",index:12}]},matrixdynamic:{properties:["rowCount","addRowLocation","addRowText","removeRowText"]},matrix:{tabs:[{name:"columns",index:10},{name:"rows",index:11}]},multipletext:{properties:["colCount"],tabs:[{name:"items",index:10}]},rating:{properties:["minRateDescription","maxRateDescription"],tabs:[{name:"rateValues",index:10}]},selectbase:{properties:[{name:"hasOther",tab:"choices"},{name:"otherText",tab:"choices"},"choicesOrder","colCount"],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11}]},"itemvalues@choices":{title:"Rules",tabs:[{name:"general",visible:!1},{name:"visibleIf",visible:!0}]},dropdown:{properties:["optionsCaption"]},text:{properties:["inputType","placeHolder"]},boolean:{properties:["label"]},expression:{tabs:[{name:"expression",index:10}]},matrixdropdowncolumn:{properties:["isRequired","cellType","name","title"]},"matrixdropdowncolumn@default":{tabs:[{name:"general",visible:!1},{name:"visibleIf",index:12},{name:"enableIf",index:20}]},"matrixdropdowncolumn@checkbox":{properties:["hasOther","otherText","choicesOrder","colCount"],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11},{name:"visibleIf",index:12},{name:"enableIf",index:20}]},"matrixdropdowncolumn@radiogroup":{properties:["hasOther","otherText","choicesOrder","colCount"],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11},{name:"visibleIf",index:12},{name:"enableIf",index:20}]},"matrixdropdowncolumn@dropdown":{properties:["hasOther","otherText","choicesOrder","optionsCaption"],tabs:[{name:"choices",index:10},{name:"choicesByUrl",index:11},{name:"visibleIf",index:12},{name:"enableIf",index:20}]},"matrixdropdowncolumn@text":{properties:["inputType","placeHolder"],tabs:[{name:"validators",index:10},{name:"visibleIf",index:12},{name:"enableIf",index:20}]},"matrixdropdowncolumn@comment":{properties:["placeHolder"],tabs:[{name:"validators",index:10},{name:"visibleIf",index:12},{name:"enableIf",index:20}]},"matrixdropdowncolumn@boolean":{properties:["defaultValue"],tabs:[{name:"visibleIf",index:12},{name:"enableIf",index:20}]},"matrixdropdowncolumn@expression":{properties:["name"],tabs:[{name:"expression",index:10}]},multipletextitem:{properties:["inputType","maxLength","placeHolder"],tabs:[{name:"validators",index:10}]},paneldynamic:{properties:[{name:"renderMode",category:"render"},{name:"allowAddPanel",category:"render"},{name:"allowRemovePanel",category:"render"},"panelAddText","panelRemoveText"],tabs:[{name:"templateTitle",index:10}]},panel:{properties:["name","title",{name:"visible",category:"checks"}],tabs:[{name:"visibleIf",index:100}]},page:{properties:["name","title",{name:"visible",category:"checks"},"questionsOrder"],tabs:[{name:"visibleIf",index:100}]},survey:{properties:["title","showTitle","locale","mode","clearInvisibleValues","cookieName",{name:"sendResultOnPageNext",category:"data"},{name:"storeOthersAsComment",category:"data"},{name:"showPageTitles",category:"page"},{name:"showPageNumbers",category:"page"},{name:"pagePrevText",tab:"navigation"},{name:"pageNextText",tab:"navigation"},{name:"completeText",tab:"navigation"},{name:"startSurveyText",tab:"navigation"},{name:"showNavigationButtons",tab:"navigation",category:"navbuttons"},{name:"showPrevButton",tab:"navigation",category:"navbuttons"},{name:"firstPageIsStarted",tab:"navigation",category:"navpages"},{name:"showCompletedPage",tab:"navigation",category:"navpages"},{name:"goNextPageAutomatic",tab:"navigation",category:"navopt"},{name:"showProgressBar",tab:"navigation",category:"navopt"},{name:"isSinglePage",tab:"navigation"},{name:"questionTitleLocation",tab:"question"},{name:"requiredText",tab:"question"},{name:"questionStartIndex",tab:"question"},{name:"showQuestionNumbers",tab:"question"},{name:"questionTitleTemplate",tab:"question"},{name:"questionErrorLocation",tab:"question"},{name:"focusFirstQuestionAutomatic",tab:"question"},{name:"questionsOrder",tab:"question"},{name:"maxTimeToFinish",tab:"timer"},{name:"maxTimeToFinishPage",tab:"timer"},{name:"showTimerPanel",tab:"timer",category:"check"},{name:"showTimerPanelMode",tab:"timer",category:"check"}],tabs:[{name:"navigation",index:10},{name:"question",index:20},{name:"completedHtml",index:70},{name:"loadingHtml",index:80},{name:"timer",index:90},{name:"triggers",index:100}]}}},function(e,t,o){"use strict";function n(e){e.size=e.value.length||5}var i=o(1),r=(o.n(i),o(7)),a=o(0),s=o(68),l=(o.n(s),o(2));o.n(l);o.d(t,"b",function(){return c}),o.d(t,"a",function(){return u});var d=o(109),c=function(){function e(e,t){var o=this;this.rootElement=t,this.editingName=i.observable(),this.prevName=i.observable(),this.isEditing=i.observable(!1),this.hideEditor=function(){o.isEditing(!1),o.forNeibours(function(e){e.style.display=e.style.oldDisplay})},this.startEdit=function(e,t){o.editingName(o.prevName()),o.isEditing(!0),o.forNeibours(function(e){e.style.oldDisplay=e.style.display,e.style.display="none"});var i=o.rootElement.getElementsByTagName("input")[0];i.focus(),n(i)},this.postEdit=function(){o.prevName()!==o.editingName()&&(o.prevName(o.editingName()),!!o.valueChanged&&o.valueChanged(o.editingName())),o.hideEditor()},this.cancelEdit=function(){o.editingName(o.prevName()),o.hideEditor()},this.nameEditorKeypress=function(e,t){n(t.target),13===t.keyCode?o.postEdit():27===t.keyCode&&o.cancelEdit()},this.editingName(e),this.prevName(e),this.forNeibours(function(e){return e.onclick=function(e){o.startEdit(o,e),e.preventDefault()}})}return e.prototype.forNeibours=function(e){for(var t=this.rootElement.parentElement.parentElement,o=0;o<t.children.length-1;o++){e(t.children[o])}},e.prototype.getLocString=function(e){return a.a.getString(e)},e}();i.components.register("title-editor",{viewModel:{createViewModel:function(e,t){var o=new c(e.model[e.name],t.element),n=l.JsonObject.metaData.findProperty(e.model.getType(),e.name);return o.valueChanged=function(t){e.model[e.name]=t,e.editor.onPropertyValueChanged(n,e.model,t)},o}},template:d});var u={getMarkerClass:function(e){return"title_editable"},afterRender:function(e,t,o){var n=document.createElement("span");n.innerHTML="<title-editor params='name: \"title\", model: model, editor: editor'></title-editor>",e[0].appendChild(n),i.applyBindings({model:t,editor:o},n)}};o.i(r.b)("title",u);var p={getMarkerClass:function(e){return e.items?"item_title_editable title_editable":""},afterRender:function(e,t,o){for(var n=0;n<e.length;n++){var r=document.createElement("span");r.innerHTML="<title-editor params='name: \"title\", model: model, editor: editor'></title-editor>",e[n].appendChild(r),i.applyBindings({model:t.items[n],editor:o},r)}}};o.i(r.b)("itemTitle",p)},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(2)),r=(o.n(i),o(11)),a=o(5);o.d(t,"a",function(){return s});var s=function(){function e(e){void 0===e&&(e=null);var t=this;this.propertyEditorOptions=e,this.oldActiveProperty=null,this.koProperties=n.observableArray(),this.koActiveProperty=n.observable(),this.koHasObject=n.observable(),this.onPropertyValueChanged=new i.Event,this.koActiveProperty.subscribe(function(e){t.oldActiveProperty!==e&&(t.oldActiveProperty&&(t.oldActiveProperty.isActive=!1),t.oldActiveProperty=e,e&&(e.isActive=!0))});var o=this;this.koAfterRender=function(e,t){o.afterRender(e,t)}}return Object.defineProperty(e.prototype,"selectedObject",{get:function(){return this.selectedObjectValue},set:function(e){this.selectedObjectValue!=e&&(this.koHasObject(null!=e),this.selectedObjectValue=e,this.updateProperties(),this.updatePropertiesObject())},enumerable:!0,configurable:!0}),e.prototype.getPropertyEditor=function(e){for(var t=this.koProperties(),o=0;o<t.length;o++)if(t[o].name==e)return t[o];return null},e.prototype.changeActiveProperty=function(e){this.koActiveProperty(e)},e.prototype.objectChanged=function(){this.updatePropertiesObject()},e.prototype.afterRender=function(e,t){if(i.SurveyElement&&i.SurveyElement.GetFirstNonTextElement&&this.onAfterRenderCallback){var o=i.SurveyElement.GetFirstNonTextElement(e),n=e[0];"#text"===n.nodeName&&(n.data=""),n=e[e.length-1],"#text"===n.nodeName&&(n.data=""),this.onAfterRenderCallback(this.selectedObject,o,t)}},e.prototype.updateProperties=function(){var e=this;if(!this.selectedObject||!this.selectedObject.getType)return this.koProperties([]),void this.koActiveProperty(null);for(var t=i.JsonObject.metaData.getPropertiesByObj?i.JsonObject.metaData.getPropertiesByObj(this.selectedObject):i.JsonObject.metaData.getProperties(this.selectedObject.getType()),o=[],n=this,a=function(t,o){n.onPropertyValueChanged.fire(e,{property:t.property,object:t.object,newValue:o})},s=[],l=0;l<t.length;l++)this.canShowProperty(t[l])&&s.push(t[l]);var d=function(e,t){var o=0;return n.onSortPropertyCallback&&(o=n.onSortPropertyCallback(n.selectedObject,e,t)),o||(e.name==t.name?0:e.name>t.name?1:-1)};s=s.sort(d);for(var l=0;l<s.length;l++){var c=new r.a(s[l],a,this.propertyEditorOptions);c.editor.isInplaceProperty=!0,o.push(c)}this.koProperties(o);var u=this.getPropertyEditor("name");!u&&o.length>0&&(u=this.getPropertyEditor(o[0].name)),u&&this.koActiveProperty(u)},e.prototype.canShowProperty=function(e){return a.b.isPropertyVisible(this.selectedObject,e,this.onCanShowPropertyCallback)},e.prototype.updatePropertiesObject=function(){for(var e=this.koProperties(),t=0;t<e.length;t++)e[t].object=this.selectedObject},e}()},function(e,t,o){"use strict";var n=o(2),i=(o.n(n),o(1));o.n(i);o.d(t,"a",function(){return r});var r=function(){function e(){this.sheet=null,this.sheet=e.findSheet(e.SurveyJSStylesSheetId),this.sheet||(this.sheet=e.createSheet(e.SurveyJSStylesSheetId),this.initializeStyles(this.sheet))}return e.findSheet=function(e){for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode.id===e)return document.styleSheets[t];return null},e.createSheet=function(e){var t=document.createElement("style");return t.id=e,t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet},e.applyTheme=function(t,o){void 0===t&&(t="default"),void 0===o&&(o=".svd_container"),e.currentTheme(t),n.Survey.cssType="bootstrap"===this.currentTheme()?"bootstrap":"default",n.StylesManager.applyTheme(t);var i=e.findSheet(t+o);if(!i){i=e.createSheet(t+o);var r=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(e.ThemeCss).forEach(function(t){var n=e.ThemeCss[t];Object.keys(r).forEach(function(e){return n=n.replace(new RegExp("\\"+e,"g"),r[e])}),i.insertRule(o+t+" { "+n+" }",0)})}},e.prototype.initializeStyles=function(t){Object.keys(e.Styles).forEach(function(o){return t.insertRule(o+" { "+e.Styles[o]+" }",0)})},e}();r.SurveyJSStylesSheetId="surveyjs",r.Styles={},r.ThemeColors={default:{"$primary-color":"#1ab394","$secondary-color":"#1ab394","$primary-text-color":"#676a6c","$secondary-text-color":"#a7a7a7","$inverted-text-color":"#ffffff","$primary-hover-color":"#18a689","$selection-border-color":"#1ab394","$primary-icon-color":"#3d4d5d","$primary-bg-color":"#fff","$secondary-bg-color":"#f4f4f4","$primary-border-color":"#e7eaec","$secondary-border-color":"#ddd"},orange:{"$primary-color":"#f78119","$secondary-color":"#4a4a4a","$primary-text-color":"#676a6c","$secondary-text-color":"#a7a7a7","$inverted-text-color":"#ffffff","$primary-hover-color":"#e77109","$selection-border-color":"#4a4a4a","$primary-icon-color":"#3d4d5d","$primary-bg-color":"#fff","$secondary-bg-color":"#f4f4f4","$primary-border-color":"#e7eaec","$secondary-border-color":"#ddd"},darkblue:{"$primary-color":"#3c4f6d","$secondary-color":"#3c4f6d","$primary-text-color":"#676a6c","$secondary-text-color":"#a7a7a7","$inverted-text-color":"#ffffff","$primary-hover-color":"#2c3f5d","$selection-border-color":"#4a4a4a","$primary-icon-color":"#3d4d5d","$primary-bg-color":"#fff","$secondary-bg-color":"#f4f4f4","$primary-border-color":"#e7eaec","$secondary-border-color":"#ddd"},darkrose:{"$primary-color":"#68656e","$secondary-color":"#68656e","$primary-text-color":"#676a6c","$secondary-text-color":"#a7a7a7","$inverted-text-color":"#ffffff","$primary-hover-color":"#57545e","$selection-border-color":"#4a4a4a","$primary-icon-color":"#3d4d5d","$primary-bg-color":"#fff","$secondary-bg-color":"#f4f4f4","$primary-border-color":"#e7eaec","$secondary-border-color":"#ddd"},stone:{"$primary-color":"#0f0f33","$secondary-color":"#0f0f33","$primary-text-color":"#676a6c","$secondary-text-color":"#a7a7a7","$inverted-text-color":"#ffffff","$primary-hover-color":"#000023","$selection-border-color":"#cdccd2","$primary-icon-color":"#3d4d5d","$primary-bg-color":"#fff","$secondary-bg-color":"#f4f4f4","$primary-border-color":"#e7eaec","$secondary-border-color":"#ddd"},winter:{"$primary-color":"#5ac8fa","$secondary-color":"#5ac8fa","$primary-text-color":"#676a6c","$secondary-text-color":"#a7a7a7","$inverted-text-color":"#ffffff","$primary-hover-color":"#4ad8ea","$selection-border-color":"#82b8da","$primary-icon-color":"#3d4d5d","$primary-bg-color":"#fff","$secondary-bg-color":"#f4f4f4","$primary-border-color":"#e7eaec","$secondary-border-color":"#ddd"},winterstone:{"$primary-color":"#3c3b40","$secondary-color":"#3c3b40","$primary-text-color":"#676a6c","$secondary-text-color":"#a7a7a7","$inverted-text-color":"#ffffff","$primary-hover-color":"#1c1b20","$selection-border-color":"#b8b8b8","$primary-icon-color":"#3d4d5d","$primary-bg-color":"#fff","$secondary-bg-color":"#f4f4f4","$primary-border-color":"#e7eaec","$secondary-border-color":"#ddd"}},r.ThemeCss={".svd_container":"color: $primary-text-color;",".svd_container a":"color: $primary-color;",".svd_container a:hover":"color: $primary-hover-color;",".svd_container .svd-main-color":"color: $primary-color;",".svd_container .svd-main-border-color":"border-color: $selection-border-color;",".svd_container .svd-main-background-color":"background-color: $primary-color;",".svd_container .svd-light-background-color":"background-color: $primary-border-color;",".svd_container .btn-primary":"color: $inverted-text-color; background-color: $secondary-color; border-color: $secondary-color;",".svd_container .btn-link":"color: $primary-text-color; background-color: $secondary-bg-color; border-color: $secondary-bg-color;",".svd_container .svd-svg-icon":"fill: $primary-icon-color;",".svd_container .svd-primary-icon .svd-svg-icon":"fill: $primary-color;",".svd_container .svd-secondary-icon .svd-svg-icon":"fill: $secondary-color;",".svd_container .icon-gearactive .svd-svg-icon":"fill: $primary-color;",".svd_container .nav-tabs a":"color: $primary-text-color",".svd_container .nav-tabs > li.active > a":"color: $primary-color",".svd_container .nav-item.active .nav-link":"background-color: $primary-bg-color;",".svd_container .sjs-cb-container:hover input ~ .checkmark":"background-color: $dd-menu-border",".svd_container .sjs-cb-container:hover input:checked ~ .checkmark":"background-color: $primary-hover-color",".svd_container .svd_custom_select:before":"background-color: $primary-color;",".svd_container .form-control:focus":"border-color: $primary-color;",".svd_container .svd-light-text-color":"color: $secondary-text-color;",".svd-light-bg-color":"background-color: $primary-bg-color;",".svd_container .svd-light-bg-color":"background-color: $primary-bg-color;",".svd_container .svd_toolbar li.active a":"background-color: $primary-color; color: $primary-bg-color;",".svd_container .svd_selected_page":"border-bottom: 1px solid $primary-bg-color;",".svd_container .editor-tabs > li > a:hover":"background-color: $secondary-bg-color; border-bottom: 1px solid $secondary-bg-color;",".svd_container .editor-tabs > li > a:focus":"background-color: $secondary-bg-color; border-bottom: 1px solid $secondary-bg-color;",".svd_container .editor-tabs > li.active > a":"color: $primary-color; background-color: $secondary-bg-color; border: 1px solid $primary-border-color; border-bottom-color: $secondary-bg-color;",".svd_container .svd-light-border-color":"border-color: $primary-border-color",".svd_container .svd-dark-border-color":"border-color: $secondary-border-color",".svd_container .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow":"background: $primary-color;",".svd_container .select2-container .select2-selection--single .select2-selection__arrow":"background: $primary-color;"},r.currentTheme=i.observable("bootstrap")},function(e,t,o){"use strict";var n=o(3),i=o(20),r=o(2);o.n(r);o.d(t,"a",function(){return s});var a=(function(){function e(){}}(),function(e){function t(t){return e.call(this,t)||this}return n.a(t,e),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return!0},enumerable:!0,configurable:!0}),t}(r.Survey)),s=function(){function e(e){this.text=e,this.text&&""!=this.text.trim()||(this.text="{}"),this.errors=[],this.process()}return Object.defineProperty(e.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isJsonCorrect",{get:function(){return null!=this.surveyValue},enumerable:!0,configurable:!0}),e.prototype.process=function(){try{this.jsonValue=new i.a(1).parse(this.text)}catch(t){this.errors.push({pos:{start:t.at,end:-1},text:t.message})}if(null!=this.jsonValue&&(this.updateJsonPositions(this.jsonValue),this.surveyValue=new a(this.jsonValue),null!=this.surveyValue.jsonErrors))for(var e=0;e<this.surveyValue.jsonErrors.length;e++){var t=this.surveyValue.jsonErrors[e];this.errors.push({pos:{start:t.at,end:-1},text:t.getFullDescription()})}this.surveyObjects=this.createSurveyObjects(),this.setEditorPositionByChartAt(this.surveyObjects),this.setEditorPositionByChartAt(this.errors)},e.prototype.updateJsonPositions=function(e){e.pos.self=e;for(var t in e){var o=e[t];o&&o.pos&&(e.pos[t]=o.pos,this.updateJsonPositions(o))}},e.prototype.createSurveyObjects=function(){var e=[];if(null==this.surveyValue)return e;this.isSurveyAsPage=!1;for(var t=0;t<this.surveyValue.pages.length;t++){var o=this.surveyValue.pages[t];0!=t||o.pos||(o.pos=this.surveyValue.pos,this.isSurveyAsPage=!0),e.push(o);for(var n=0;n<o.questions.length;n++)e.push(o.questions[n])}return e},e.prototype.setEditorPositionByChartAt=function(e){if(null!=e&&0!=e.length)for(var t={row:0,column:0},o=this.getAtArray(e),n=0,i=0;i<o.length;i++){var r=o[i].at;t=this.getPostionByChartAt(t,n,r);var a=o[i].obj;a.position||(a.position={}),r==a.pos.start?a.position.start=t:r==a.pos.end&&(a.position.end=t),n=r}},e.prototype.getPostionByChartAt=function(t,o,n){for(var i={row:t.row,column:t.column},r=o;r<n;)this.text.charAt(r)==e.newLineChar?(i.row++,i.column=0):i.column++,r++;return i},e.prototype.getAtArray=function(e){for(var t=[],o=0;o<e.length;o++){var n=e[o],i=n.pos;i&&(t.push({at:i.start,obj:n}),i.end>0&&t.push({at:i.end,obj:n}))}return t.sort(function(e,t){return e.at>t.at?1:e.at<t.at?-1:0})},e}()},function(e,t,o){"use strict";o.d(t,"a",function(){return n});var n=function(){function e(e){void 0===e&&(e=0),this.parseType=e}return e.prototype.parse=function(e,t,o,n){void 0===t&&(t=null),void 0===o&&(o=0),void 0===n&&(n=-1);var i;return this.text=String(e),this.at=o,this.endAt=n,this.ch=" ",i=this.value(),this.white(),this.ch&&this.error("Syntax error"),"function"==typeof t?function e(o,n){var i,r,a=o[n];if(a&&"object"==typeof a)for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r=e(a,i),void 0!==r?a[i]=r:delete a[i]);return t.call(o,n,a)}({"":i},""):i},e.prototype.error=function(e){var t=new SyntaxError;throw t.message=e,t.at=this.at,t},e.prototype.next=function(e){return void 0===e&&(e=null),e&&e!==this.ch&&this.error("Expected '"+e+"' instead of '"+this.ch+"'"),this.ch=this.chartAt(),this.at+=1,this.ch},e.prototype.peek=function(){return this.chartAt()},e.prototype.chartAt=function(){return this.endAt>-1&&this.at>=this.endAt?"":this.text.charAt(this.at)},e.prototype.identifier=function(){var e=this.ch;for("_"!==this.ch&&"$"!==this.ch&&(this.ch<"a"||this.ch>"z")&&(this.ch<"A"||this.ch>"Z")&&this.error("Bad identifier");this.next()&&("_"===this.ch||"$"===this.ch||this.ch>="a"&&this.ch<="z"||this.ch>="A"&&this.ch<="Z"||this.ch>="0"&&this.ch<="9");)e+=this.ch;return e},e.prototype.number=function(){var e,t="",o="",n=10;if("-"!==this.ch&&"+"!==this.ch||(t=this.ch,this.next(this.ch)),"I"===this.ch)return e=this.word(),("number"!=typeof e||isNaN(e))&&this.error("Unexpected word for number"),"-"===t?-e:e;if("N"===this.ch)return e=this.word(),isNaN(e)||this.error("expected word to be NaN"),e;switch("0"===this.ch&&(o+=this.ch,this.next(),"x"===this.ch||"X"===this.ch?(o+=this.ch,this.next(),n=16):this.ch>="0"&&this.ch<="9"&&this.error("Octal literal")),n){case 10:for(;this.ch>="0"&&this.ch<="9";)o+=this.ch,this.next();if("."===this.ch)for(o+=".";this.next()&&this.ch>="0"&&this.ch<="9";)o+=this.ch;if("e"===this.ch||"E"===this.ch)for(o+=this.ch,this.next(),"-"!==this.ch&&"+"!==this.ch||(o+=this.ch,this.next());this.ch>="0"&&this.ch<="9";)o+=this.ch,this.next();break;case 16:for(;this.ch>="0"&&this.ch<="9"||this.ch>="A"&&this.ch<="F"||this.ch>="a"&&this.ch<="f";)o+=this.ch,this.next()}if(e="-"===t?-o:+o,isFinite(e))return e;this.error("Bad number")},e.prototype.string=function(){var t,o,n,i,r="";if('"'===this.ch||"'"===this.ch)for(n=this.ch;this.next();){if(this.ch===n)return this.next(),r;if("\\"===this.ch)if(this.next(),"u"===this.ch){for(i=0,o=0;o<4&&(t=parseInt(this.next(),16),isFinite(t));o+=1)i=16*i+t;r+=String.fromCharCode(i)}else if("\r"===this.ch)"\n"===this.peek()&&this.next();else{if("string"!=typeof e.escapee[this.ch])break;r+=e.escapee[this.ch]}else{if("\n"===this.ch)break;r+=this.ch}}this.error("Bad string")},e.prototype.inlineComment=function(){"/"!==this.ch&&this.error("Not an inline comment");do{if(this.next(),"\n"===this.ch||"\r"===this.ch)return void this.next()}while(this.ch)},e.prototype.blockComment=function(){"*"!==this.ch&&this.error("Not a block comment");do{for(this.next();"*"===this.ch;)if(this.next("*"),"/"===this.ch)return void this.next("/")}while(this.ch);this.error("Unterminated block comment")},e.prototype.comment=function(){"/"!==this.ch&&this.error("Not a comment"),this.next("/"),"/"===this.ch?this.inlineComment():"*"===this.ch?this.blockComment():this.error("Unrecognized comment")},e.prototype.white=function(){for(;this.ch;)if("/"===this.ch)this.comment();else{if(!(e.ws.indexOf(this.ch)>=0))return;this.next()}},e.prototype.word=function(){switch(this.ch){case"t":return this.next("t"),this.next("r"),this.next("u"),this.next("e"),!0;case"f":return this.next("f"),this.next("a"),this.next("l"),this.next("s"),this.next("e"),!1;case"n":return this.next("n"),this.next("u"),this.next("l"),this.next("l"),null;case"I":return this.next("I"),this.next("n"),this.next("f"),this.next("i"),this.next("n"),this.next("i"),this.next("t"),this.next("y"),1/0;case"N":return this.next("N"),this.next("a"),this.next("N"),NaN}this.error("Unexpected '"+this.ch+"'")},e.prototype.array=function(){var e=[];if("["===this.ch)for(this.next("["),this.white();this.ch;){if("]"===this.ch)return this.next("]"),e;if(","===this.ch?this.error("Missing array element"):e.push(this.value()),this.white(),","!==this.ch)return this.next("]"),e;this.next(","),this.white()}this.error("Bad array")},e.prototype.object=function(){var t,o,n=!0,i={};if(this.parseType>0&&(i[e.positionName]={start:this.at-1}),"{"===this.ch)for(this.next("{"),this.white(),o=this.at-1;this.ch;){if("}"===this.ch)return this.parseType>0&&(i[e.positionName].end=o),this.next("}"),i;if(t='"'===this.ch||"'"===this.ch?this.string():this.identifier(),this.white(),this.parseType>1&&(i[e.positionName][t]={start:o,valueStart:this.at}),this.next(":"),i[t]=this.value(),this.parseType>1&&(o=this.at-1,i[e.positionName][t].valueEnd=o,i[e.positionName][t].end=o),this.white(),","!==this.ch)return this.parseType>1&&(i[e.positionName][t].valueEnd--,i[e.positionName][t].end--),this.parseType>0&&(i[e.positionName].end=this.at-1),this.next("}"),i;this.parseType>1&&(i[e.positionName][t].valueEnd--,n||i[e.positionName][t].end--),this.next(","),this.white(),n=!1}this.error("Bad object")},e.prototype.value=function(){switch(this.white(),this.ch){case"{":return this.object();case"[":return this.array();case'"':case"'":return this.string();case"-":case"+":case".":return this.number();default:return this.ch>="0"&&this.ch<="9"?this.number():this.word()}},e.prototype.stringify=function(e,t,o){if(void 0===t&&(t=null),void 0===o&&(o=null),t&&"function"!=typeof t&&!this.isArray(t))throw new Error("Replacer must be a function or an array");this.replacer=t,this.indentStr=this.getIndent(o),this.objStack=[];var n={"":e};return void 0===e?this.getReplacedValueOrUndefined(n,"",!0):this.internalStringify(n,"",!0)},e.prototype.getIndent=function(e){if(e){if("string"==typeof e)return e;if("number"==typeof e&&e>=0)return this.makeIndent(" ",e,!0)}return""},e.prototype.getReplacedValueOrUndefined=function(e,t,o){var n=e[t];return n&&n.toJSON&&"function"==typeof n.toJSON&&(n=n.toJSON()),"function"==typeof this.replacer?this.replacer.call(e,t,n):this.replacer?o||this.isArray(e)||this.replacer.indexOf(t)>=0?n:void 0:n},e.prototype.isWordChar=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e||"$"===e},e.prototype.isWordStart=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||"_"===e||"$"===e},e.prototype.isWord=function(e){if("string"!=typeof e)return!1;if(!this.isWordStart(e[0]))return!1;for(var t=1,o=e.length;t<o;){if(!this.isWordChar(e[t]))return!1;t++}return!0},e.prototype.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},e.prototype.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.prototype.isNaN=function(e){return"number"==typeof e&&e!==e},e.prototype.checkForCircular=function(e){for(var t=0;t<this.objStack.length;t++)if(this.objStack[t]===e)throw new TypeError("Converting circular structure to JSON")},e.prototype.makeIndent=function(e,t,o){if(void 0===o&&(o=!1),!e)return"";e.length>10&&(e=e.substring(0,10));for(var n=o?"":"\n",i=0;i<t;i++)n+=e;return n},e.prototype.escapeString=function(t){return e.escapable.lastIndex=0,e.escapable.test(t)?'"'+t.replace(e.escapable,function(t){var o=e.meta[t];return"string"==typeof o?o:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'},e.prototype.internalStringify=function(e,t,o){var n,i,r=this.getReplacedValueOrUndefined(e,t,o);switch(r&&!this.isDate(r)&&(r=r.valueOf()),typeof r){case"boolean":return r.toString();case"number":return isNaN(r)||!isFinite(r)?"null":r.toString();case"string":return this.escapeString(r.toString());case"object":if(null===r)return"null";if(this.isArray(r)){this.checkForCircular(r),n="[",this.objStack.push(r);for(var a=0;a<r.length;a++)i=this.internalStringify(r,a,!1),n+=this.makeIndent(this.indentStr,this.objStack.length),n+=null===i||void 0===i?"null":i,a<r.length-1?n+=",":this.indentStr&&(n+="\n");this.objStack.pop(),n+=this.makeIndent(this.indentStr,this.objStack.length,!0)+"]"}else{this.checkForCircular(r),n="{";var s=!1;this.objStack.push(r);for(var l in r)if(r.hasOwnProperty(l)){var d=this.internalStringify(r,l,!1);if(o=!1,void 0!==d&&null!==d){n+=this.makeIndent(this.indentStr,this.objStack.length),s=!0;var c=this.isWord(l)?l:this.escapeString(l);n+=c+":"+(this.indentStr?" ":"")+d+","}}this.objStack.pop(),n=s?n.substring(0,n.length-1)+this.makeIndent(this.indentStr,this.objStack.length)+"}":"{}"}return n;default:return}},e}();n.positionName="pos",n.escapee={"'":"'",'"':'"',"\\":"\\","/":"/","\n":"",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},n.ws=[" ","\t","\r","\n","\v","\f"," ","\ufeff"],n.cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n.escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n.meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"}},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(7)),s=o(0),l=o(10),d=o.n(l),c=o(16),u=o(8),p=o(63);o.n(p);o.d(t,"a",function(){return v}),o.d(t,"b",function(){return g});var h=o(105),m=function(e){function t(t,o,n,i,r){var a=e.call(this,t,i)||this;return a.question=o,a.item=n,a.editor=r,a}return n.a(t,e),t.prototype.deleteItem=function(e,t){if(this.notOther){var n=e.question.choices.indexOf(e.item);e.question.choices.splice(n,1);var i=o.i(u.b)("item_draggable",this.rootElement);i.parentElement.removeChild(i)}else this.question.hasOther=!1;this.editor.onQuestionEditorChanged(this.question)},Object.defineProperty(t.prototype,"notOther",{get:function(){return this.question.otherItem!==this.item},enumerable:!0,configurable:!0}),t}(c.b);i.components.register("item-editor",{viewModel:{createViewModel:function(e,t){var o=new m(e.target[e.name],e.question,e.item,t.element,e.editor),n=r.JsonObject.metaData.findProperty(e.target.getType(),e.name);return o.valueChanged=function(t){e.target[e.name]=t,e.editor.onPropertyValueChanged(n,e.target,t)},o}},template:h});var v={getMarkerClass:function(e){return e.parent&&e.choices?"item_editable":""},afterRender:function(e,t,o){for(var n=0;n<e.length;n++){e[n].onclick=function(e){return e.preventDefault()};var r=document.createElement("span");n===e.length-1&&t.hasOther?(r.innerHTML="<item-editor params='name: \"otherText\", target: target, item: item, question: question, editor: editor'></item-editor>",e[n].appendChild(r),i.applyBindings({item:t.otherItem,question:t,target:t,editor:o},r)):(r.innerHTML="<item-editor params='name: \"text\", target: target, item: item, question: question, editor: editor'></item-editor>",e[n].appendChild(r),i.applyBindings({item:t.choices[n],question:t,target:t.choices[n],editor:o},r))}}};o.i(a.b)("controlLabel",v);var g=function(e,t){return function(){var n=null,i=e.choices.map(function(e){return e.itemValue});n=o.i(u.a)("item",i);var a=new r.ItemValue(n);a.locOwner={getLocale:function(){return e.getLocale?e.getLocale():""},getMarkdownHtml:function(e){return e},getProcessedText:function(e){return e}},e.choices=e.choices.concat([a]),!!t&&t(a)}},f={getMarkerClass:function(e){return e.parent&&e.choices?"item_draggable":""},afterRender:function(e,t,o){var n=e[0].parentElement;t.hasOther&&e[e.length-1].classList.remove("item_draggable");var i=(d.a.create(n,{handle:".svda-drag-handle",draggable:".item_draggable",animation:150,onEnd:function(e){var n=t.choices,i=n[e.oldIndex];n.splice(e.oldIndex,1),n.splice(e.newIndex,0,i),o.onQuestionEditorChanged(t)}}),document.createElement("div"));i.title=s.a.getString("pe.addItem"),i.className="svda-add-new-item svd-primary-icon",i.onclick=g(t,function(e){return o.onQuestionEditorChanged(t)});var r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("class","svd-svg-icon"),r.style.width="12px",r.style.height="12px";var a=document.createElementNS("http://www.w3.org/2000/svg","use");a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#icon-inplaceplus"),r.appendChild(a),i.appendChild(r),n.appendChild(i)}};o.i(a.b)("item",f)},function(e,t,o){"use strict";var n=o(2),i=(o.n(n),o(5));o.d(t,"a",function(){return a});var r=function(){function e(e,t,o){this.page=e,this.target=t,this.source=o,this.nestedPanelDepth=-1}return e.prototype.moveTo=function(e,t,o){if(void 0===o&&(o=!1),o=o||!e.isPanel,e===this.target)return!this.target.isPanel;var n=this.findInfo(e,o);if(!n)return this.clear(),!1;var i=this.findInfo(this.target,!0);return this.updateInfo(n,t,o),!!this.isInfoEquals(i,n)||(this.clearByInfo(i),!!(n=this.findInfo(e,o))&&(this.updateInfo(n,t,o),!!this.canMove(n)&&(this.addInfo(n),!0)))},e.prototype.doDrop=function(){var e=this.findInfo(this.target);if(e){var t=this.getIndexByInfo(e),o=this.getNewTargetElement();if(this.moveToParent=e.panel,this.moveToIndex=t,e.panel.addElement(o,t),this.source){var n=this.findInfo(this.source,!0);(n?n.panel:this.page).removeElement(this.source)}return o}},e.prototype.clear=function(){this.clearByInfo(this.findInfo(this.target,!0))},e.prototype.getIndexByInfo=function(e){if(!e)return 0;for(var t=e.panel.koRows(),o=0,n=0;n<e.rIndex;n++)o+=t[n].koElements().length;return o+e.elIndex},e.prototype.canMove=function(e){if(this.target.isPanel&&e.element){if(this.target==e.element||this.target.containsElement(e.element))return!1;if(this.source&&(this.source==e.element||this.source.containsElement(e.element)))return!1}if(!this.source)return!0;var t=this.findInfo(this.source);if(null==t||t.panel!=e.panel)return!0;var o=this.getIndexByInfo(t),n=this.getIndexByInfo(e),i=n-o;return i<0||i>1},e.prototype.isLastElementInRow=function(e){return e.elIndex==e.panel.koRows()[e.rIndex].koElements().length-1},e.prototype.updateInfo=function(e,t,o){e.rIndex<0||(this.target.startWithNewLine?t&&e.rIndex++:t?e.elIndex++:0==e.elIndex&&e.rIndex>0&&(e.rIndex--,e.elIndex=e.panel.koRows()[e.rIndex].koElements().length))},e.prototype.addInfo=function(e){if(this.target.isPanel&&(this.target.parent=e.panel),this.target.startWithNewLine||e.elIndex<1||e.rIndex<0||e.rIndex>=e.panel.koRows().length)this.AddInfoAsRow(e);else{var t=e.panel.koRows()[e.rIndex],o=t.koElements();e.elIndex<o.length?o.splice(e.elIndex,0,this.target):o.push(this.target),t.koElements(o),t.updateVisible()}},e.prototype.AddInfoAsRow=function(e){var t=new n.QuestionRow(e.panel);t.addElement(this.target);var o=e.panel.koRows();e.rIndex>=0&&e.rIndex<e.panel.koRows().length?o.splice(e.rIndex,0,t):o.push(t),e.panel.koRows(o)},e.prototype.clearByInfo=function(e){if(null!=e){var t=e.panel.koRows();if(!(e.rIndex<0||e.rIndex>=t.length)){var o=t[e.rIndex],n=o.koElements();o.koElements().length>1?(n.splice(e.elIndex,1),o.koElements(n),o.updateVisible()):(t.splice(e.rIndex,1),e.panel.koRows(t))}}},e.prototype.isInfoEquals=function(e,t){return null!=e&&null!=t&&(e.panel===t.panel&&e.rIndex===t.rIndex&&e.elIndex===t.elIndex)},e.prototype.findInfo=function(e,t){void 0===t&&(t=!1);var o=this.findInfoInPanel(this.page,e,t,e);if(o&&this.target&&this.target.isPanel&&this.nestedPanelDepth>-1){var n=this.getParentElements(o.panel);this.nestedPanelDepth+1<n.length&&(o.panel=n[this.nestedPanelDepth],o.element=n[this.nestedPanelDepth+1])}return o},e.prototype.getParentElements=function(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t},e.prototype.findInfoInPanel=function(e,t,o,n){if(t==e){var i=e;return e.parent&&(o||n&&this.target&&n.name==this.target.name&&this.target.isPanel)&&(i=e.parent),{panel:i,rIndex:0,elIndex:0,element:e}}for(var r=e.koRows(),a=0;a<r.length;a++)for(var s=r[a],l=s.koElements(),d=0;d<l.length;d++){var c=l[d];if(c.isPanel){var u=this.findInfoInPanel(c,t,o,n);if(u)return u.element==c&&(u.rIndex=a,u.elIndex=d),u}if(c==t)return{panel:e,rIndex:a,elIndex:d,element:c};if(!c.isPanel)for(var p=this.getElements(c),h=0;h<p.length;h++)if(p[h].isPanel){var u=this.findInfoInPanel(p[h],t,o,n);if(u)return u}}return null},e.prototype.getNewTargetElement=function(){var e=n.JsonObject.metaData.createClass(this.target.getType()),t=(new n.JsonObject).toJsonObject(this.target);return(new n.JsonObject).toObject(t,e),e},e.prototype.getElements=function(e){return i.b.getElements(e,!0)},e}(),a=function(){function e(t,o,n){void 0===n&&(n=null),this.data=t,this.scrollableElement=null,this.ddTarget=null,this.id=e.counter++,this.isScrollStop=!0,this.onModifiedCallback=o,this.scrollableElement=n&&n.querySelector("#scrollableDiv"),this.prevCoordinates={x:-1,y:-1}}return e.prototype.attachToElement=function(e,t){e.style.opacity=t.koIsDragging()?.4:1,e.draggable=t.allowingOptions.allowDragging,e.ondragover=function(e){return!!t.allowingOptions.allowDragging&&(e.markEvent?void 0:(e.markEvent=!0,t.dragDropHelper().doDragDropOver(e,t,!0),!1))},e.ondrop=function(e){e.markEvent||(e.markEvent=!0,t.dragDropHelper().doDrop(e))},e.ondragstart=function(e){return(e.target||e.srcElement).contains(document.activeElement)?(e.preventDefault(),!1):!!t.allowingOptions.allowDragging&&void(e.markEvent||(e.markEvent=!0,t.dragDropHelper().startDragQuestion(e,t)))},e.ondragend=function(e){t.dragDropHelper().end()}},Object.defineProperty(e.prototype,"survey",{get:function(){return this.data},enumerable:!0,configurable:!0}),e.prototype.startDragQuestion=function(e,t){var o=(new n.JsonObject).toJsonObject(t);o.type=t.getType(),this.prepareData(e,t.name,o),this.ddTarget.source=t},e.prototype.startDragToolboxItem=function(e,t,o){this.prepareData(e,t,o)},e.prototype.isSurveyDragging=function(t){if(!t)return!1;var o=this.getData(t).text;return o&&0==o.indexOf(e.dataStart)},e.prototype.doDragDropOver=function(e,t,o){if(void 0===o&&(o=!1),e=this.getEvent(e),!this.isSameCoordinates(e)&&(this.checkScrollY(e),t&&this.isSurveyDragging(e)&&!this.isSamePlace(e,t))){t=this.replaceTargetElement(t);var n=this.isBottom(e,t);o=!t.isPanel||o&&n.isEdge,t.isPanel&&!o&&t.elements.length>0||this.ddTarget.moveTo(t,n.isBottom,o)}},e.prototype.replaceTargetElement=function(e){if(e.getType&&"page"===e.getType()&&0!==e.elements.length){var t=e.elements;e=t[t.length-1]}return e},e.prototype.end=function(){this.ddTarget&&this.ddTarget.clear(),this.isScrollStop=!0,this.clearData()},Object.defineProperty(e.prototype,"isMoving",{get:function(){return this.ddTarget&&this.ddTarget.source},enumerable:!0,configurable:!0}),e.prototype.doDrop=function(e){if(e.stopPropagation&&e.stopPropagation(),this.isSurveyDragging(e)){e.preventDefault();var t=this.ddTarget.doDrop();this.onModifiedCallback&&this.onModifiedCallback({type:"DO_DROP",page:this.ddTarget.page,source:this.ddTarget.source,target:this.ddTarget.target,newElement:this.ddTarget.source?null:t,moveToParent:this.ddTarget.moveToParent,moveToIndex:this.ddTarget.moveToIndex})}this.end()},e.prototype.doLeavePage=function(e){this.ddTarget.clear()},e.prototype.scrollToElement=function(e){this.scrollableElement&&e&&e.scrollIntoView(!1)},e.prototype.createTargetElement=function(e,t){if(!e||!t)return null;var o=null;return o=n.JsonObject.metaData.createClass(t.type),(new n.JsonObject).toObject(t,o),o.name=e,o.setSurveyImpl?o.setSurveyImpl(this.survey):o.setData(this.survey),o.renderWidth="100%",o.koIsDragging(!0),o},e.prototype.isBottom=function(t,o){t=this.getEvent(t);var n=t.currentTarget.clientHeight,i=t.offsetY;return t.hasOwnProperty("layerX")&&(i=t.layerY-t.currentTarget.offsetTop),{isBottom:i>n/2,isEdge:i<=e.edgeHeight||n-i<=e.edgeHeight}},e.prototype.isSameCoordinates=function(e){var t=Math.abs(e.pageX-this.prevCoordinates.x)>5||Math.abs(e.pageY-this.prevCoordinates.y)>5;return t&&(this.prevCoordinates.x=e.pageX,this.prevCoordinates.y=e.pageY),!t},e.prototype.isSamePlace=function(t,o){var n=e.prevEvent;return!(n.element!=o||Math.abs(t.clientX-n.x)>5||Math.abs(t.clientY-n.y)>5)||(n.element=o,n.x=t.clientX,n.y=t.clientY,!1)},e.prototype.checkScrollY=function(t){if(this.scrollableElement){var o=this.getScrollableElementPosY(t);if(!(o<0)){this.isScrollStop=!0;var n=this.scrollableElement.clientHeight;o<e.ScrollOffset&&o>=0&&(this.isScrollStop=!1,this.doScrollY(-1)),n-o<e.ScrollOffset&&n>=o&&(this.isScrollStop=!1,this.doScrollY(1))}}},e.prototype.doScrollY=function(t){var o=this.scrollableElement,n=o.scrollTop+t;if(n<0)return void(this.isScrollStop=!0);o.scrollTop=n;var i=this;this.isScrollStop||setTimeout(function(){i.doScrollY(t)},e.ScrollDelay)},e.prototype.getScrollableElementPosY=function(e){if(!this.scrollableElement||!e.currentTarget)return-1;for(var t=e.currentTarget,o=0;t&&t!=this.scrollableElement;)o+=t.offsetTop,t=t.offsetParent;return e.offsetY+e.currentTarget.offsetTop-this.scrollableElement.offsetTop-this.scrollableElement.scrollTop},e.prototype.getEvent=function(e){return e.originalEvent?e.originalEvent:e},e.prototype.getY=function(e){for(var t=0;e;)t+=e.offsetTop-e.scrollTop+e.clientTop,e=e.offsetParent;return t},e.prototype.prepareData=function(t,o,n){var i=e.dataStart+"questionname:"+o;this.setData(t,i);var a=this.createTargetElement(o,n);this.ddTarget=new r(this.survey.currentPage,a,null),this.ddTarget.nestedPanelDepth=e.nestedPanelDepth},e.prototype.setData=function(t,o){t.originalEvent&&(t=t.originalEvent),t.dataTransfer&&(t.dataTransfer.setData("Text",o),t.dataTransfer.effectAllowed="copy"),e.dragData={text:o}},e.prototype.getData=function(t){if(t.originalEvent&&(t=t.originalEvent),t.dataTransfer){var o=t.dataTransfer.getData("Text");o&&(e.dragData.text=o)}return e.dragData},e.prototype.clearData=function(){e.dragData={text:"",json:null};var t=e.prevEvent;t.element=null,t.x=-1,t.y=-1,this.prevCoordinates.x=-1,this.prevCoordinates.y=-1},e}();a.edgeHeight=20,a.nestedPanelDepth=-1,a.dataStart="surveyjs,",a.dragData={text:"",json:null},a.prevEvent={element:null,x:-1,y:-1},a.counter=1,a.ScrollDelay=30,a.ScrollOffset=100},function(e,t,o){"use strict";o.d(t,"a",function(){return n});var n={survey:{edit:"Edit",dropQuestion:"Please drop a question here from the Toolbox on the left.",copy:"Copy",addToToolbox:"Add to toolbox",deletePanel:"Delete Panel",deleteQuestion:"Delete Question",convertTo:"Convert to",drag:"Drag element"},qt:{default:"Default",checkbox:"Checkbox",comment:"Comment",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"},ed:{survey:"Survey",settings:"Survey Settings",editSurvey:"Edit Survey",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",testSurvey:"Test Survey",testSurveyAgain:"Test Survey Again",testSurveyWidth:"Survey width: ",embedSurvey:"Embed Survey",saveSurvey:"Save Survey",designer:"Survey Designer",jsonEditor:"JSON Editor",undo:"Undo",redo:"Redo",options:"Options",generateValidJSON:"Generate Valid JSON",generateReadableJSON:"Generate Readable JSON",toolbox:"Toolbox",toolboxGeneralCategory:"General",delSelObject:"Delete selected object",editSelObject:"Edit selected object",correctJSON:"Please correct JSON.",surveyResults:"Survey Result: ",modified:"Modified",saving:"Saving",saved:"Saved"},pel:{isRequired:"Required?"},pe:{apply:"Apply",ok:"OK",cancel:"Cancel",reset:"Reset",close:"Close",delete:"Delete",addNew:"Add New",addItem:"Click to add an item...",removeAll:"Remove All",edit:"Edit",itemValueEdit:"Visible If",editChoices:"Edit Choices",move:"Move",empty:"<empty>",notEmpty:"<edit value>",fastEntry:"Fast Entry",formEntry:"Form Entry",testService:"Test the service",conditionSelectQuestion:"Select question...",conditionValueQuestionTitle:"Please enter/select the value",conditionButtonAdd:"Add",conditionButtonReplace:"Replace",conditionHelp:"Please enter a boolean expression. It should return true to keep the question/page visible. For example: {question1} = 'value1' or ({question2} * {question4} > 20 and {question3} < 5)",expressionHelp:"Please enter an expression. You may use curly brackets to get access to the question values: '{question1} + {question2}', '({price}*{quantity}) * (100 - {discount})'",aceEditorHelp:"Press ctrl+space to get expression completion hint",aceEditorRowTitle:"Current row",aceEditorPanelTitle:"Current panel",showMore:"For more details please check the documentation",conditionShowMoreUrl:"https://surveyjs.io/Documentation/LibraryParameter?id=QuestionBase¶meter=visibleIf",assistantTitle:"Available questions:",cellsEmptyRowsColumns:"There is should be at least one column or row",propertyIsEmpty:"Please enter a value",value:"Value",text:"Text",columnEdit:"Edit column: {0}",itemEdit:"Edit item: {0}",url:"URL",path:"Path",valueName:"Value name",titleName:"Title name",hasOther:"Has other item",otherText:"Other item text",name:"Name",title:"Title",cellType:"Cell type",colCount:"Column count",choicesOrder:"Select choices order",visible:"Is visible?",isRequired:"Is required?",startWithNewLine:"Is start with new line?",rows:"Row count",placeHolder:"Input place holder",showPreview:"Is image preview shown?",storeDataAsText:"Store file content in JSON result as text",maxSize:"Maximum file size in bytes",imageHeight:"Image height",imageWidth:"Image width",rowCount:"Row count",columnsLocation:"Columns location",addRowLocation:"Add row button location",addRowText:"Add row button text",removeRowText:"Remove row button text",minRateDescription:"Minimum rate description",maxRateDescription:"Maximum rate description",inputType:"Input type",optionsCaption:"Options caption",defaultValue:"Default value",cellsDefaultRow:"Default cells texts",surveyEditorTitle:"Edit survey settings",qEditorTitle:"Edit: {0}",showTitle:"Show/hide title",locale:"Default language",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",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",tabs:{general:"General",fileOptions:"Options",html:"Html Editor",columns:"Columns",rows:"Rows",choices:"Choices",items:"Items",visibleIf:"Visible If",enableIf:"Enable If",rateValues:"Rate Values",choicesByUrl:"Choices from Web",matrixChoices:"Default Choices",multipleTextItems:"Text Inputs",validators:"Validators",navigation:"Navigation",question:"Question",completedHtml:"Completed Html",loadingHtml:"Loading Html",timer:"Timer/Quiz",triggers:"Triggers",templateTitle:"Template title"},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",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: ",triggerSetValue:"to: ",triggerIsVariable:"Do not put the variable into the survey result."},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:"firstExpanded",off:"off",onPanel:"onPanel",onSurvey:"onSurvey",list:"list",progressTop:"progressTop",progressBottom:"progressBottom",progressTopBottom:"progressTopBottom",horizontal:"horizontal",vertical:"vertical",top:"top",bottom:"bottom",topBottom:"top and bottom",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:"onPage",edit:"edit",display:"display",onComplete:"onComplete",onHidden:"onHidden",all:"all",page:"page",survey:"survey",onNextPage:"onNextPage",onValueChanged:"onValueChanged"},op:{empty:"is empty",notempty:"is not empty",equal:"equals",notequal:"not equals",contains:"contains",notcontains:"not contains",greater:"greater",less:"less",greaterorequal:"greater or equals",lessorequal:"less or equals"},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",standard:"No bootstrap",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:"},validators:{answercountvalidator:"answer count",emailvalidator:"e-mail",expressionvalidator:"expression",numericvalidator:"numeric",regexvalidator:"regex",textvalidator:"text"},triggers:{completetrigger:"complete survey",setvaluetrigger:"set value",visibletrigger:"change visibility"},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",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",columnsLocation:"columnsLocation",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",text:"text",minValue:"minimum value",maxValue:"maximum value",minLength:"minumum length",maxLength:"maximum length",allowDigits:"allow digits",minCount:"minumum count",maxCount:"maximum count",regex:"regular expression"}}},function(e,t,o){"use strict";var n=o(3),i=o(12);o.d(t,"a",function(){return r});var r=function(e){function t(t,o){void 0===o&&(o=null);var n=e.call(this,t)||this;n.isValueChanging=!1,n.widgetJSONValue=o;var i=n;return n.koAfterRender=function(e,t){i.doAfterRender(e,t)},n}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"custom"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widgetJSON",{get:function(){return this.widgetJSONValue},enumerable:!0,configurable:!0}),t.prototype.onValueChanged=function(){this.isValueChanging||(this.isValueChanging=!0,e.prototype.onValueChanged.call(this),this.onValueChangedCallback&&this.onValueChangedCallback(this.editingValue),this.isValueChanging=!1)},Object.defineProperty(t.prototype,"widgetRender",{get:function(){return this.widgetJSON?this.widgetJSON.render:null},enumerable:!0,configurable:!0}),t.prototype.doAfterRender=function(e,t){var o=e[0];o&&this.widgetRender&&this.widgetRender(this,o)},t}(i.a)},function(e,t,o){"use strict";var n=o(0),i=o(2),r=(o.n(i),o(11)),a=o(5);o.d(t,"c",function(){return s}),o.d(t,"b",function(){return l}),o.d(t,"a",function(){return d});var s=function(){function e(e,t,o,i,a){void 0===i&&(i=null),void 0===a&&(a=!1),this.obj=e,this.property=t;this.objectPropertyValue=new r.a(this.property,null),this.editor.isTabProperty=a,this.editor.options=i,o||(o=n.a.getString("pe."+this.property.name)),o&&(this.editor.displayName=o),this.objectProperty.object=e,this.editor.setup()}return Object.defineProperty(e.prototype,"objectProperty",{get:function(){return this.objectPropertyValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"editor",{get:function(){return this.objectProperty.editor},enumerable:!0,configurable:!0}),e.prototype.hasError=function(){return this.editor.hasError()},e.prototype.apply=function(){this.editor.apply(),this.obj[this.property.name]=this.editor.koValue()},e.prototype.reset=function(){this.editor.koValue(this.property.getPropertyValue(this.obj))},e.prototype.beforeShow=function(){this.editor.beforeShow()},e}(),l=function(){function e(e){this.obj=e,this.properties=[]}return e.prototype.addProperty=function(e,t,o,n){this.properties.push(new s(this.obj,e,t,o,n))},e.prototype.hasError=function(){for(var e=!1,t=0;t<this.properties.length;t++)e=this.properties[t].hasError()||e;return e},e}(),d=function(){function e(e,t,o,n,r){void 0===o&&(o=null),void 0===n&&(n=null),void 0===r&&(r=null),this.obj=e,this.options=n,this.tab=r,this.isTabProperty=!1,this.rows=[],this.isTabProperty=!!r,this.onCanShowPropertyCallback=o,this.properties=i.JsonObject.metaData.getPropertiesByObj?i.JsonObject.metaData.getPropertiesByObj(this.obj):i.JsonObject.metaData.getProperties(this.obj.getType()),this.buildRows(t)}return e.prototype.apply=function(){this.performForAllProperties(function(e){return e.apply()})},e.prototype.reset=function(){this.performForAllProperties(function(e){return e.reset()})},e.prototype.beforeShow=function(){this.performForAllProperties(function(e){return e.beforeShow()})},e.prototype.hasError=function(){for(var e=!1,t=0;t<this.rows.length;t++)e=this.rows[t].hasError()||e;return e},e.prototype.performForAllProperties=function(e){for(var t=0;t<this.rows.length;t++)for(var o=0;o<this.rows[t].properties.length;o++){var n=this.rows[t].properties[o];e(n)}},e.prototype.buildRows=function(e){for(var t=0;t<e.length;t++){var o=this.getName(e[t]),n=this.getProperty(o);if(n){var i=this.getRowByCategory(e[t].category);i||(i=new l(this.obj),e[t].category&&(i.category=e[t].category),this.rows.push(i)),i.addProperty(n,e[t].title,this.options,this.isTabProperty)}}},e.prototype.getName=function(e){return e?"string"==typeof e?e:e.name?e.name:null:null},e.prototype.getRowByCategory=function(e){if(!e)return null;for(var t=0;t<this.rows.length;t++)if(this.rows[t].category==e)return this.rows[t];return null},e.prototype.getProperty=function(e){if(!e)return null;for(var t=null,o=0;o<this.properties.length;o++)if(this.properties[o].name==e){t=this.properties[o];break}return t?this.tab&&t.name==this.tab.name&&!0===this.tab.visible?t:a.b.isPropertyVisible(this.obj,t,this.onCanShowPropertyCallback)?t:null:null},e}()},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(2)),r=(o.n(i),o(0));o.d(t,"a",function(){return a});var a=function(){function e(e){void 0===e&&(e=null),this.supportedQuestions=e,this._orderedQuestions=["text","checkbox","radiogroup","dropdown","comment","rating","boolean","html"],this.copiedItemMaxCount=3,this.allowExpandMultipleCategoriesValue=!1,this.itemsValue=[],this.koItems=n.observableArray(),this.koCategories=n.observableArray(),this.koActiveCategory=n.observable(""),this.koHasCategories=n.observable(!1),this.createDefaultItems(e);var t=this;this.koActiveCategory.subscribe(function(e){for(var o=0;o<t.koCategories().length;o++){var n=t.koCategories()[o];n.koCollapsed(n.name!==e)}})}return Object.defineProperty(e.prototype,"orderedQuestions",{get:function(){return this._orderedQuestions},set:function(e){this._orderedQuestions=e,this.reorderItems()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"jsonText",{get:function(){return JSON.stringify(this.itemsValue)},set:function(e){this.itemsValue=e?JSON.parse(e):[],this.onItemsChanged()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copiedJsonText",{get:function(){return JSON.stringify(this.copiedItems)},set:function(e){var t=e?JSON.parse(e):[];this.clearCopiedItems();for(var o=0;o<t.length;o++)t[o].isCopied=!0,this.addItem(t[o])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"items",{get:function(){return this.itemsValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"copiedItems",{get:function(){for(var e=[],t=0;t<this.itemsValue.length;t++)this.itemsValue[t].isCopied&&e.push(this.itemsValue[t]);return e},enumerable:!0,configurable:!0}),e.prototype.addItems=function(e,t){void 0===t&&(t=!1),t&&this.clearItems();for(var o=0;o<e.length;o++)this.itemsValue.push(e[o]);this.onItemsChanged()},e.prototype.addCopiedItem=function(e){var t={name:e.name,title:e.name,isCopied:!0,iconName:"icon-default",json:this.getQuestionJSON(e),category:""};if(!this.replaceItem(t)){var o=this.copiedItems;this.copiedItemMaxCount>0&&o.length==this.copiedItemMaxCount&&this.removeItem(o[this.copiedItemMaxCount-1].name),this.addItem(t)}},e.prototype.addItem=function(e){this.itemsValue.push(e),this.onItemsChanged()},e.prototype.replaceItem=function(e){var t=this.indexOf(e.name);if(!(t<0))return this.itemsValue[t]=e,this.onItemsChanged(),!0},e.prototype.removeItem=function(e){var t=this.indexOf(e);return!(t<0)&&(this.itemsValue.splice(t,1),this.onItemsChanged(),!0)},e.prototype.clearItems=function(){this.itemsValue=[],this.onItemsChanged()},e.prototype.clearCopiedItems=function(){for(var e=this.copiedItems,t=0;t<e.length;t++)this.removeItem(e[t].name)},e.prototype.getItemByName=function(e){var t=this.indexOf(e);return t>-1?this.itemsValue[t]:null},Object.defineProperty(e.prototype,"allowExpandMultipleCategories",{get:function(){return this.allowExpandMultipleCategoriesValue},set:function(e){this.allowExpandMultipleCategoriesValue=e,e?this.activeCategory="":this.koCategories().length>0&&(this.activeCategory=this.koCategories()[0].name)},enumerable:!0,configurable:!0}),e.prototype.changeCategory=function(e,t){this.changeCategories([{name:e,category:t}])},e.prototype.changeCategories=function(e){for(var t=0;t<e.length;t++){var o=e[t],n=this.getItemByName(o.name);n&&(n.category=o.category)}this.onItemsChanged()},Object.defineProperty(e.prototype,"activeCategory",{get:function(){return this.koActiveCategory()},set:function(e){this.koActiveCategory(e)},enumerable:!0,configurable:!0}),e.prototype.doCategoryClick=function(e){if(this.allowExpandMultipleCategories){var t=this.getCategoryByName(e);t&&t.koCollapsed(!t.koCollapsed())}else this.activeCategory=e},e.prototype.expandCategory=function(e){if(this.allowExpandMultipleCategories){var t=this.getCategoryByName(e);t&&t.koCollapsed(!1)}else this.activeCategory=e},e.prototype.collapseCategory=function(e){if(this.allowExpandMultipleCategories){var t=this.getCategoryByName(e);t&&t.koCollapsed(!0)}},e.prototype.expandAllCategories=function(){this.expandCollapseAllCategories(!1)},e.prototype.collapseAllCategories=function(){this.expandCollapseAllCategories(!0)},e.prototype.expandCollapseAllCategories=function(e){for(var t=this.koCategories(),o=0;o<t.length;o++)t[o].koCollapsed(e)},e.prototype.getCategoryByName=function(e){for(var t=this.koCategories(),o=0;o<t.length;o++){var n=t[o];if(n.name===e)return n}return null},e.prototype.onItemsChanged=function(){this.koItems(this.itemsValue);for(var e=[],t={},o=this.koActiveCategory(),i=this,a=0;a<this.itemsValue.length;a++){var s=this.itemsValue[a],l=s.category?s.category:r.a.getString("ed.toolboxGeneralCategory");if(!t[l]){var d={name:l,items:[],koCollapsed:n.observable(l!==o),expand:function(){i.doCategoryClick(this.name)}};t[l]=d,e.push(d)}t[l].items.push(s)}this.koCategories(e),this.allowExpandMultipleCategories?e.length>0&&e[0].koCollapsed(!1):o&&t[o]?this.koActiveCategory(o):this.koActiveCategory(e.length>0?e[0].name:""),this.koHasCategories(e.length>1)},e.prototype.indexOf=function(e){for(var t=0;t<this.itemsValue.length;t++)if(this.itemsValue[t].name==e)return t;return-1},e.prototype.reorderItems=function(){var e=this;this.itemsValue.sort(function(t,o){var n=e._orderedQuestions.indexOf(t.name);-1===n&&(n=Number.MAX_VALUE);var i=e._orderedQuestions.indexOf(o.name);return-1===i&&(i=Number.MAX_VALUE),n-i}),this.onItemsChanged()},e.prototype.createDefaultItems=function(e){this.clearItems();for(var t=this.getQuestionTypes(e),o=0;o<t.length;o++){var n=t[o],a=i.ElementFactory.Instance.createElement(n,"q1");a||(a=i.JsonObject.metaData.createClass(n));var s=this.getQuestionJSON(a),l={name:n,iconName:"icon-"+n,title:r.a.getString("qt."+n),json:s,isCopied:!1,category:""};this.itemsValue.push(l)}this.registerCustomWidgets(),this.onItemsChanged()},e.prototype.registerCustomWidgets=function(){var e=i.CustomWidgetCollection.Instance;if(e.getActivatedBy)for(var t=e.widgets,o=0;o<t.length;o++)if("customtype"==e.getActivatedBy(t[o].name)){var n=t[o].widgetJson;if(n.widgetIsLoaded&&n.widgetIsLoaded()){var a=n.iconName?n.iconName:"icon-default",s=r.a.getString("qt."+n.name);s&&s!=n.name||(s=n.title),s||(s=n.name);var l=n.defaultJSON?n.defaultJSON:{};l.type||(l.type=n.name);var d={name:n.name,iconName:a,title:s,json:l,isCopied:!1,category:""};this.itemsValue.push(d)}}},e.prototype.getQuestionJSON=function(e){var t=(new i.JsonObject).toJsonObject(e);return t.type=e.getType(),t},e.prototype.getQuestionTypes=function(e){var t=i.ElementFactory.Instance.getAllTypes();e&&0!=e.length||(e=t);for(var o=[],n=0;n<this.orderedQuestions.length;n++){var r=this.orderedQuestions[n];e.indexOf(r)>-1&&t.indexOf(r)>-1&&o.push(r)}for(var n=0;n<e.length;n++){var r=e[n];o.indexOf(e[n])<0&&t.indexOf(r)>-1&&o.push(r)}return o},e}()},function(e,t,o){"use strict";function n(){for(var e=i.JsonObject.metaData.getChildrenClasses("selectbase",!0),t=0;t<e.length;t++)for(var o=0;o<e.length;o++)t!=o&&r.addConvertInfo(e[t].name,e[o].name);r.addConvertInfo("text","comment"),r.addConvertInfo("comment","text")}var i=o(2);o.n(i);o.d(t,"a",function(){return r});var r=function(){function e(){}return e.addConvertInfo=function(t,o){e.convertInfo[t]||(e.convertInfo[t]=[]),e.convertInfo[t].push(o)},e.getConvertToClasses=function(t){var o=e.convertInfo[t];return o||[]},e.convertObject=function(e,t){if(!e||!e.parent||t==e.getType())return null;var o=i.QuestionFactory.Instance.createQuestion(t,e.name),n=new i.JsonObject,r=n.toJsonObject(e);n.toObject(r,o);var a=e.parent,s=a.elements.indexOf(e);return a.removeElement(e),a.addElement(o,s),o},e}();r.convertInfo={},n()},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(2)),r=(o.n(i),o(20));o.d(t,"a",function(){return a});var a=function(){function e(){this.surveyId=null,this.surveyPostId=null,this.generateValidJSON=!1,this.surveyJSVersion=i.Version,this.surveyCDNPath="https://surveyjs.azureedge.net/",this.platformSurveyJSPrefix={angular:"angular",jquery:"jquery",knockout:"ko",react:"react",vue:"vue"},this.platformJSonPage={angular:"@Component({\n selector: 'ng-app',\n template: \n <div id='surveyElement'></div>\",\n})\nexport class AppComponent {\n ngOnInit() {\n var survey = new Survey.Model(surveyJSON);\n survey.onComplete.add(sendDataToServer);\n Survey.SurveyNG.render(\"surveyElement\", { model: survey });\n }\n}",jquery:'var survey = new Survey.Model(surveyJSON);\n$("#surveyContainer").Survey({\n model: survey,\n onComplete: sendDataToServer\n});',knockout:'var survey = new Survey.Model(surveyJSON, "surveyContainer");\nsurvey.onComplete.add(sendDataToServer);',react:'ReactDOM.render(\n <Survey.Survey json={ surveyJSON } onComplete={ sendDataToServer } />, document.getElementById("surveyContainer"));',vue:"var survey = new Survey.Model(surveyJSON);\nnew Vue({ el: '#surveyContainer', data: { survey: survey } });"},this.platformJSonWindow={angular:"@Component({\n selector: 'ng-app',\n template: \n <div id='surveyElement'></div>\",\n})\nexport class AppComponent {\n ngOnInit() {\n var survey = new Survey.Model(surveyJSON);\n survey.onComplete.add(sendDataToServer);\n Survey.SurveyWindowNG.render(\"surveyElement\", { model: survey });\n }\n}",jquery:'var survey = new Survey.Model(surveyJSON);\n$("#surveyContainer").SurveyWindow({\n model: survey,\n onComplete: sendDataToServer\n});',knockout:"var survey = new Survey.Model(surveyJSON);\nsurveyWindow.show();\nsurvey.onComplete.add(sendDataToServer);",react:'ReactDOM.render(\n <Survey.SurveyWindow json={ surveyJSON } onComplete={ sendDataToServer } />, document.getElementById("surveyContainer"));',vue:""},this.platformHtmlonPage={angular:"<ng-app></ng-app>",jquery:'<div id="surveyContainer"></div>',knockout:'<div id="surveyContainer"></div>',react:'<div id="surveyContainer"></div>',vue:'<div id="surveyContainer"><survey :survey="survey"></survey></div>'},this.platformHtmlonWindow={angular:"<ng-app></ng-app>",jquery:'<div id="surveyContainer"></div>',knockout:"",react:'<div id="surveyContainer"></div>',vue:"<div id='surveyContainer'><survey-window :survey='survey'></survey-window></div>"};var e=this;this.koLibraryVersion=n.observable("jquery"),this.koShowAsWindow=n.observable("page"),this.koScriptUsing=n.observable("bootstrap"),this.koHasIds=n.observable(!1),this.koLoadSurvey=n.observable(!1),this.koHeadText=n.observable(""),this.koJavaText=n.observable(""),this.koBodyText=n.observable(""),this.koVisibleHtml=n.computed(function(){return"page"==e.koShowAsWindow()||""!=e.platformHtmlonWindow[e.koLibraryVersion()]}),this.koLibraryVersion.subscribe(function(t){e.setHeadText(),e.setJavaTest(),e.setBodyText()}),this.koShowAsWindow.subscribe(function(t){e.setJavaTest(),e.setBodyText()}),this.koScriptUsing.subscribe(function(t){e.setHeadText(),e.setJavaTest()}),this.koLoadSurvey.subscribe(function(t){e.setJavaTest()}),this.surveyEmbedingHead=null}return Object.defineProperty(e.prototype,"json",{get:function(){return this.jsonValue},set:function(e){this.jsonValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasAceEditor",{get:function(){return"undefined"!=typeof ace},enumerable:!0,configurable:!0}),e.prototype.show=function(){this.hasAceEditor&&null==this.surveyEmbedingHead&&(this.surveyEmbedingHead=this.createEditor("surveyEmbedingHead"),this.surveyEmbedingBody=this.createEditor("surveyEmbedingBody"),this.surveyEmbedingJava=this.createEditor("surveyEmbedingJava")),this.koHasIds(this.surveyId&&this.surveyPostId),this.setBodyText(),this.setHeadText(),this.setJavaTest()},e.prototype.setBodyText=function(){this.setTextToEditor(this.surveyEmbedingBody,this.koBodyText,this.platformHtmlonPage[this.koLibraryVersion()])},Object.defineProperty(e.prototype,"getCDNPath",{get:function(){return this.surveyCDNPath+this.surveyJSVersion+"/"},enumerable:!0,configurable:!0}),e.prototype.setHeadText=function(){var e="\x3c!-- Your platform ("+this.koLibraryVersion()+") scripts. --\x3e\n";"bootstrap"!=this.koScriptUsing()&&(e+='\n<link href="'+this.getCDNPath+'survey.css" type="text/css" rel="stylesheet" />'),e+='\n<script src="'+this.getCDNPath+"survey."+this.platformSurveyJSPrefix[this.koLibraryVersion()]+'.min.js"><\/script>',this.setTextToEditor(this.surveyEmbedingHead,this.koHeadText,e)},e.prototype.setJavaTest=function(){this.setTextToEditor(this.surveyEmbedingJava,this.koJavaText,this.getJavaText())},e.prototype.createEditor=function(e){var t=ace.edit(e);return t.setTheme("ace/theme/monokai"),t.session.setMode("ace/mode/json"),t.setShowPrintMargin(!1),t.renderer.setShowGutter(!1),t.setReadOnly(!0),t},e.prototype.getJavaText=function(){var e="page"==this.koShowAsWindow(),t=this.getSaveFunc()+"\n\n";t+=e?this.platformJSonPage[this.koLibraryVersion()]:this.platformJSonWindow[this.koLibraryVersion()];var o="var surveyJSON = "+this.getJsonText()+"\n\n";return this.getSetCss()+"\n"+o+t},e.prototype.getSetCss=function(){return"bootstrap"!=this.koScriptUsing()?"":'Survey.Survey.cssType = "bootstrap";\n'},e.prototype.getSaveFunc=function(){return"function sendDataToServer(survey) {\n"+this.getSaveFuncCode()+"\n}"},e.prototype.getSaveFuncCode=function(){return this.koHasIds()?" survey.sendResult('"+this.surveyPostId+"');":' //send Ajax request to your web server.\n alert("The results are:" + JSON.stringify(survey.data));'},e.prototype.getJsonText=function(){return this.koHasIds()&&this.koLoadSurvey()?"{ surveyId: '"+this.surveyId+"'}":this.generateValidJSON?JSON.stringify(this.json):(new r.a).stringify(this.json)},e.prototype.setTextToEditor=function(e,t,o){e&&e.setValue(o),t&&t(o)},e}()},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(5)),r=o(0);o.d(t,"a",function(){return s});var a=function(){function e(){this.level=0}return e}(),s=function(){function e(e,t){this.koObjects=e,this.koSelected=t}return Object.defineProperty(e.prototype,"survey",{get:function(){return this.surveyValue},set:function(e){this.survey!=e&&(this.surveyValue=e,this.rebuild())},enumerable:!0,configurable:!0}),e.prototype.addPage=function(e){this.addElement(e,null)},e.prototype.addElement=function(e,t){var o=null!=t?this.getItemIndex(t):0;if(!(o<0)){var n=null!=t?this.getElements(t):this.survey.pages,i=n.indexOf(e),r=i+1+o;if(i>0){var a=n[i-1];r=this.getItemIndex(a)+this.getAllElementCount(a)+1}var s=this.createItem(e,this.koObjects()[o]);this.addItem(s,r);var l=[];this.buildElements(l,this.getElements(e),s);for(var d=0;d<l.length;d++)this.koObjects.splice(r+1+d,0,l[d]);this.koSelected(s)}},e.prototype.selectObject=function(e){for(var t=this.koObjects(),o=0;o<t.length;o++)if(t[o].value==e)return void this.koSelected(t[o])},e.prototype.getSelectedObjectPage=function(e){if(void 0===e&&(e=null),!this.survey)return null;if(!e){if(!this.koSelected())return;e=this.koSelected().value}for(var t=this.koObjects(),o=this.getItemIndex(e);o>0;){var n=t[o];if(1==n.level)return n.value;o--}return null},e.prototype.removeObject=function(e){var t=this.getItemIndex(e);if(!(t<0)){var o=1+this.getAllElementCount(e);this.koObjects.splice(t,o)}},e.prototype.nameChanged=function(e){var t=this.getItemIndex(e);t<0||this.koObjects()[t].text(this.getText(this.koObjects()[t]))},e.prototype.selectNextQuestion=function(e){var t=this.getSelectedQuestion(),o=this.getItemIndex(t);if(o<0)return t;var n=this.koObjects(),r=o+(e?-1:1);if(r<n.length&&i.b.getObjectType(n[r].value)==i.a.Question)o=r;else for(r=o;r<n.length&&i.b.getObjectType(n[r].value)==i.a.Question;)o=r,r+=e?1:-1;this.koSelected(n[o])},e.prototype.getAllElementCount=function(e){for(var t=this.getElements(e),o=0,n=0;n<t.length;n++)o+=1+this.getAllElementCount(t[n]);return o},e.prototype.getSelectedQuestion=function(){if(!this.koSelected())return null;var e=this.koSelected().value;return e&&i.b.getObjectType(e)==i.a.Question?e:null},e.prototype.addItem=function(e,t){t>this.koObjects().length?this.koObjects.push(e):this.koObjects.splice(t,0,e)},e.prototype.rebuild=function(){var e=[];if(null==this.survey)return this.koObjects(e),void this.selectObject(null);var t=this.createItem(this.survey,null);e.push(t);for(var o=0;o<this.survey.pages.length;o++){var n=this.survey.pages[o],i=this.createItem(n,t);e.push(i),this.buildElements(e,this.getElements(n),i)}this.koObjects(e),this.selectObject(this.survey)},e.prototype.getElements=function(e){return i.b.getElements(e)},e.prototype.buildElements=function(e,t,o){for(var n=0;n<t.length;n++){var i=t[n],r=this.createItem(i,o);e.push(r),this.buildElements(e,this.getElements(i),r)}},e.prototype.createItem=function(e,t){var o=new a;return o.value=e,o.level=null!=t?t.level+1:0,o.text=n.observable(this.getText(o)),o},e.prototype.getItemIndex=function(e){if(!e)return-1;e.selectedElementInDesign&&(e=e.selectedElementInDesign);for(var t=this.koObjects(),o=0;o<t.length;o++)if(t[o].value==e)return o;return-1},e.prototype.getText=function(t){if(0==t.level)return r.a.getString("ed.survey");for(var o=e.intend,n=1;n<t.level;n++)o+=e.intend;var a=i.b.getObjectName(t.value);return this.getItemTextCallback&&(a=this.getItemTextCallback(t.value,a)),o+a},e}();s.intend="."},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(5)),r=o(0),a=o(2);o.n(a);o.d(t,"a",function(){return s});var s=function(){function e(){this.koIsRunning=n.observable(!0),this.koResultText=n.observable(""),this.koPages=n.observableArray([]),this.koActivePage=n.observable(null);var e=this;this.selectTestClick=function(){e.testAgain()},this.selectPageClick=function(t){e.survey&&("starting"==e.survey.state&&e.survey.start(),e.survey.currentPage=t.page)},this.koActivePage.subscribe(function(t){e.survey.currentPage=t}),this.setPageDisable=function(e,t){n.applyBindingsToNode(e,{disable:t.koDisabled},t)},this.survey=new a.Survey,this.koSurvey=n.observable(this.survey)}return e.prototype.setJSON=function(e){this.json=e,null!=e&&e.cookieName&&delete e.cookieName,this.survey=e?new a.Survey(e):new a.Survey,this.onSurveyCreatedCallback&&this.onSurveyCreatedCallback(this.survey);var t=this;this.survey.onComplete.add(function(e){t.koIsRunning(!1),t.koResultText(t.surveyResultsText+JSON.stringify(t.survey.data))}),this.survey.onStarted&&this.survey.onStarted.add(function(e){t.setActivePageItem(t.survey.currentPage,!0)}),this.survey.onCurrentPageChanged.add(function(e,o){t.koActivePage(o.newCurrentPage),t.setActivePageItem(o.oldCurrentPage,!1),t.setActivePageItem(o.newCurrentPage,!0)}),this.survey.onPageVisibleChanged.add(function(e,o){var n=t.getPageItemByPage(o.page);n&&(n.koVisible(o.visible),n.koDisabled(!o.visible))})},e.prototype.show=function(){for(var e=[],t=0;t<this.survey.pages.length;t++){var o=this.survey.pages[t];e.push({page:o,title:i.b.getObjectName(o),koVisible:n.observable(o.isVisible),koDisabled:n.observable(!o.isVisible),koActive:n.observable("running"==this.survey.state&&o===this.survey.currentPage)})}this.koPages(e),this.koSurvey(this.survey),this.koActivePage(this.survey.currentPage),this.koIsRunning(!0)},Object.defineProperty(e.prototype,"testSurveyAgainText",{get:function(){return r.a.getString("ed.testSurveyAgain")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surveyResultsText",{get:function(){return r.a.getString("ed.surveyResults")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectPageText",{get:function(){return r.a.getString("ts.selectPage")},enumerable:!0,configurable:!0}),e.prototype.testAgain=function(){this.setJSON(this.json),this.show()},e.prototype.setActivePageItem=function(e,t){var o=this.getPageItemByPage(e);o&&o.koActive(t)},e.prototype.getPageItemByPage=function(e){for(var t=this.koPages(),o=0;o<t.length;o++)if(t[o].page===e)return t[o];return null},e}()},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(2));o.n(i);o.d(t,"a",function(){return r}),o.d(t,"b",function(){return a});var r=function(){function e(){this.index=-1,this.maximumCount=10,this.items=[],this.koCanUndo=n.observable(!1),this.koCanRedo=n.observable(!1)}return e.prototype.clear=function(){this.items=[],this.koCanUndo(!1),this.koCanRedo(!1)},e.prototype.setCurrent=function(e,t){var o=new a;o.surveyJSON=(new i.JsonObject).toJsonObject(e),o.selectedObjName=t,this.index<this.items.length-1&&this.items.splice(this.index+1),this.items.push(o),this.removeOldData(),this.index=this.items.length-1,this.updateCanUndoRedo()},e.prototype.undo=function(){return this.canUndo?this.doUndoRedo(-1):null},e.prototype.redo=function(){return this.canRedo?this.doUndoRedo(1):null},e.prototype.updateCanUndoRedo=function(){this.koCanUndo(this.canUndo),this.koCanRedo(this.canRedo)},e.prototype.doUndoRedo=function(e){return this.index+=e,this.updateCanUndoRedo(),this.index>=0&&this.index<this.items.length?this.items[this.index]:null},Object.defineProperty(e.prototype,"canUndo",{get:function(){return this.index>=1&&this.index<this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"canRedo",{get:function(){return this.items.length>1&&this.index<this.items.length-1},enumerable:!0,configurable:!0}),e.prototype.removeOldData=function(){this.items.length-1<this.maximumCount||this.items.splice(0,this.items.length-this.maximumCount-1)},e}(),a=function(){function e(){}return e}()},function(e,t,o){"use strict";var n=function(e,t){return Object.prototype.toString.call(e).toLowerCase()==="[object "+t+"]"},i=function(e,t){e.className.split(/\s+/).filter(function(e){return!!e&&e==t}).length||(e.className+=" "+t)},r=function(e,t){e.className=e.className.split(/\s+/).filter(function(e){return!!e&&e!=t}).join(" ")},a=function(e,t){var o=this;this.opened=!1,this.opts={bodyClass:"modal-open",dialogClass:"modal-dialog",dialogOpenClass:"bounceInDown",dialogCloseClass:"bounceOutUp",focus:!0,focusElements:["a[href]","area[href]","input:not([disabled]):not([type=hidden])","button:not([disabled])","select:not([disabled])","textarea:not([disabled])","iframe","object","embed","*[tabindex]","*[contenteditable]"],escapeClose:!0,content:null,closeTimeout:500},Object.keys(t||{}).forEach(function(e){void 0!==t[e]&&(o.opts[e]=t[e])}),this.overlay=e,this.dialog=e.querySelector("."+this.opts.dialogClass),this.opts.content&&this.content(this.opts.content)};a.prototype.open=function(e){var t=this;if(this.content(e),!n(this.opts.beforeOpen,"function"))return this._doOpen();this.opts.beforeOpen(function(){t._doOpen()})},a.prototype._doOpen=function(){i(document.body,this.opts.bodyClass),r(this.dialog,this.opts.dialogCloseClass),i(this.dialog,this.opts.dialogOpenClass),this.overlay.style.display="block",this.opts.focus&&(this.focusOutElement=document.activeElement,this.focus()),n(this.opts.afterOpen,"function")&&this.opts.afterOpen(),this.opened=!0},a.prototype.close=function(){var e=this;if(!n(this.opts.beforeClose,"function"))return this._doClose();this.opts.beforeClose(function(){e._doClose()})},a.prototype._doClose=function(){var e=this;r(this.dialog,this.opts.dialogOpenClass),i(this.dialog,this.opts.dialogCloseClass),r(document.body,this.opts.bodyClass),this.opts.focus&&this.focus(this.focusOutElement),n(this.opts.afterClose,"function")&&this.opts.afterClose(),this.opened=!1,setTimeout(function(){e.overlay.style.display="none"},this.opts.closeTimeout)},a.prototype.content=function(e){if(void 0===e)return this.dialog.innerHTML;this.dialog.innerHTML=e},a.prototype.elements=function(e,t){return t=t||window.navigator.appVersion.indexOf("MSIE 9.0")>-1,e=n(e,"array")?e.join(","):e,[].filter.call(this.dialog.querySelectorAll(e),function(e){if(t){var o=window.getComputedStyle(e);return"none"!==o.display&&"hidden"!==o.visibility}return null!==e.offsetParent})},a.prototype.focus=function(e){(e=e||this.elements(this.opts.focusElements)[0]||this.dialog.firstChild)&&n(e.focus,"function")&&e.focus()},a.prototype.keydown=function(e){function t(){e.preventDefault(),e.stopPropagation()}if(this.opts.escapeClose&&27==e.which&&this.close(),this.opened&&9==e.which&&this.dialog.contains(e.target)){var o=this.elements(this.opts.focusElements),n=o[0],i=o[o.length-1];n==i?t():e.target==n&&e.shiftKey?(t(),i.focus()):e.target!=i||e.shiftKey||(t(),n.focus())}},a.prototype.version="1.0.30",a.version="1.0.30",t.a=a},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(7)),r=o(64);o.n(r);o.d(t,"a",function(){return a});var a={getMarkerClass:function(e){return"boolean"===e.getType()?"label_editable":""},afterRender:function(e,t,o){var i=document.createElement("span");i.innerHTML="<title-editor params='name: \"label\", model: model, editor: editor'></title-editor>",e[0].onclick=function(e){return e.preventDefault()},e[0].appendChild(i),n.applyBindings({model:t,editor:o},i)}};o.i(i.b)("label",a)},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(7)),r=o(0),a=o(65);o.n(a);o.d(t,"a",function(){return d});var s=o(106),l=function(){function e(e,t){this.question=e,this.editor=t,this.actions=n.observableArray();var o=t.survey;this.actions(o.getMenuItems(e))}return e.prototype.getStyle=function(e){return e.icon?n.unwrap(e.icon):"icon-action"+e.name},e.prototype.localize=function(e){return r.a.getString(e)},e}();n.components.register("question-actions",{viewModel:{createViewModel:function(e,t){return new l(e.question,e.editor)}},template:s});var d={getMarkerClass:function(e){return e.isPanel?"":"question_actions"},afterRender:function(e,t,o){var i=document.createElement("div");i.className="svda-question-actions",i.innerHTML="<question-actions params='question: model, editor: editor'></question-actions>",e[0].appendChild(i),n.applyBindings({model:t,editor:o},i)}};o.i(i.b)("mainRoot",d);var c={getMarkerClass:function(e){return e.isPanel?"panel_actions":""},afterRender:d.afterRender};o.i(i.b)("container",c)},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(7)),s=o(0),l=o(16),d=o(8),c=o(66);o.n(c);o.d(t,"a",function(){return m});var u=o(107),p=function(e){function t(t,o,n,i,r){var a=e.call(this,t,i)||this;return a.question=o,a.item=n,a.editor=r,a}return n.a(t,e),t.prototype.deleteItem=function(e,t){var o=e.question,n=o.visibleRateValues.map(function(e){return e.value}).indexOf(e.item.value);0===o.rateValues.length&&n===o.visibleRateValues.length-1?o.rateMax-=o.rateStep:(0===o.rateValues.length&&(o.rateValues=o.visibleRateValues),o.rateValues.splice(n,1)),e.editor.onQuestionEditorChanged(o)},t}(l.b);i.components.register("rating-item-editor",{viewModel:{createViewModel:function(e,t){var o=new p(e.target[e.name],e.question,e.item,t.element,e.editor),n=e.question;r.JsonObject.metaData.findProperty(e.target.getType(),e.name);return o.valueChanged=function(t){if(0===n.rateValues.length){n.rateValues=n.visibleRateValues;var o=n.rateValues.map(function(e){return e.value}).indexOf(e.item.value);n.rateValues[o]=e.target}e.target[e.name]=t,e.editor.onQuestionEditorChanged(n)},o}},template:u});var h=function(e,t){return function(){if(0===e.rateValues.length)e.rateMax+=e.rateStep;else{var n=null,i=e.rateValues.map(function(e){return e.itemValue});n=o.i(d.a)("item",i);var a=new r.ItemValue(n);a.locOwner={getLocale:function(){return e.getLocale?e.getLocale():""},getMarkdownHtml:function(e){return e},getProcessedText:function(e){return e}},e.rateValues=e.rateValues.concat([a])}!!t&&t(a)}},m={getMarkerClass:function(e){return e.visibleRateValues?"item_editable":""},afterRender:function(e,t,o){for(var n=0;n<e.length;n++){e[n].onclick=function(e){return e.preventDefault()};var r=document.createElement("span");r.innerHTML="<rating-item-editor params='name: \"text\", target: target, item: item, question: question, editor: editor'></rating-item-editor>",e[n].appendChild(r);var a=t.visibleRateValues[n];i.applyBindings({item:a,question:t,target:a,editor:o},r)}var l=document.createElement("span");l.title=s.a.getString("pe.addItem"),l.className="svda-add-new-rating-item icon-inplace-add-item svd-primary-icon",l.onclick=h(t,function(e){return o.onQuestionEditorChanged(t)});var d=document.createElementNS("http://www.w3.org/2000/svg","svg");d.setAttribute("class","svd-svg-icon"),d.style.width="12px",d.style.height="12px";var c=document.createElementNS("http://www.w3.org/2000/svg","use");c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#icon-inplaceplus"),d.appendChild(c),l.appendChild(d),e[0].parentElement.parentElement.appendChild(l)}};o.i(a.b)("itemText",m)},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(10)),r=o.n(i),a=o(7),s=o(0),l=o(21),d=o(67);o.n(d);o.d(t,"a",function(){return u});var c=o(108);n.components.register("select-items-editor",{viewModel:{createViewModel:function(e,t){var i=n.observable(!0),a=n.observableArray(e.question.choices),d=t.element.parentElement.getElementsByClassName("svda-select-items-collection")[0],c=null;return{choices:a,question:e.question,editor:e.editor,isExpanded:i,toggle:function(){return i(!i())},addItem:o.i(l.b)(e.question,function(t){return a(e.question.choices)}),getLocString:function(e){return s.a.getString(e)},choicesRendered:function(){c&&c.destroy(),c=r.a.create(d,{handle:".svda-drag-handle",draggable:".item_draggable",animation:150,onEnd:function(t){var o=[].concat(e.question.choices),n=o[t.oldIndex];o.splice(t.oldIndex,1),o.splice(t.newIndex,0,n),e.question.choices=o,a(o)}})}}}},template:c});var u={getMarkerClass:function(e){return e.parent&&e.choices?"select_items_editor":""},afterRender:function(e,t,o){e[0].onclick=function(e){return e.preventDefault()};var i=document.createElement("div");i.innerHTML="<select-items-editor params='question: question, editor: editor'></select-items-editor>",e[0].appendChild(i),n.applyBindings({question:t,editor:o},i)}};o.i(a.b)("selectWrapper",u)},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(0)),r=o(17),a=o(30),s=o(28),l=o(29),d=o(27),c=o(9),u=o(111),p=o(19),h=o(31),m=o(5),v=o(22),g=o(26),f=o(20),y=o(2),b=(o.n(y),o(7)),x=o(18);o.d(t,"a",function(){return k});var w=o(110),k=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var o=this;this._haveCommercialLicense=n.observable(!1),this.surveyValue=n.observable(),this.stateValue="",this.dragDropHelper=null,this.select2=null,this.alwaySaveTextInPropertyEditorsValue=!1,this.showApplyButtonValue=!0,this.isRTLValue=!1,this.scrollToNewElement=!0,this.surveyId=null,this.surveyPostId=null,this.onCanShowProperty=new y.Event,this.onCustomSortProperty=new y.Event,this.onPropertyAfterRender=new y.Event,this.onElementDeleting=new y.Event,this.onQuestionAdded=new y.Event,this.onElementDoubleClick=new y.Event,this.onItemValueAdded=new y.Event,this.onMatrixColumnAdded=new y.Event,this.onPanelAdded=new y.Event,this.onPageAdded=new y.Event,this.onModified=new y.Event,this.onDesignerSurveyCreated=new y.Event,this.onTestSurveyCreated=new y.Event,this.onSetPropertyEditorOptions=new y.Event,this.onPropertyValidationCustomError=new y.Event,this.onPropertyValueChanging=new y.Event,this.onPropertyEditorObjectAssign=new y.Event,this.onElementAllowOperations=new y.Event,this.onDefineElementMenuItems=new y.Event,this.onShowPropertyModalEditorDescription=new y.Event,this.onGetObjectTextInPropertyGrid=new y.Event,this.koAutoSave=n.observable(!1),this.koShowState=n.observable(!1),this.koState=n.observable(""),this.themeCss=n.computed(function(){return"bootstrap"===x.a.currentTheme()?"sv_bootstrap_css":"sv_default_css"}),this.toolbarItems=n.observableArray(),this.saveNo=0,this.addPage=function(){var e=m.b.getNewPageName(o.pages()),t=o.survey.addNewPage(e);o.pages.valueHasMutated(),o.addPageToUI(t),o.setModified({type:"PAGE_ADDED",newValue:t})},this.deletePage=function(){o.deleteCurrentObject(),o.pages.valueHasMutated()},this.movePage=function(e,t){var n=o.pages()[t];o.surveyObjects.survey=null,o.surveyObjects.survey=o.survey,o.surveyObjects.selectObject(n),o.setModified({type:"PAGE_MOVED",page:n,indexFrom:e,indexTo:t})},this.newQuestions=[],this.newPanels=[],this.isCurrentPageEmpty=n.computed(function(){return!!o.surveyValue()&&!!o.surveyValue().koCurrentPage()&&0===o.surveyValue().koCurrentPage().koRows().length}),this.showQuestionEditor=function(e,t){void 0===t&&(t=null);var n=o,i=o.renderedElement?o.renderedElement.querySelector("#surveyquestioneditorwindow"):null,r=!0;o.questionEditorWindow.show(e,i,function(e){n.onQuestionEditorChanged(e),r=!1},o,function(){t&&t(r)})},this.dirtyPageUpdate=function(){var e=o.koSelectedObject().value;if(m.b.getObjectType(e)===m.a.Page){var t=o.pages.indexOf(e);o.pages.splice(t,1),o.pages.splice(t,0,e),o.surveyObjects.selectObject(e)}},this.copyPage=function(e){var t=o.copyElement(e),n=o.pages.indexOf(e);return n>-1?o.pages.splice(n+1,0,t):o.pages.push(t),o.addPageToUI(t),o.setModified({type:"PAGE_ADDED",newValue:t}),t},this.koShowOptions=n.observable(),this.koGenerateValidJSON=n.observable(!0),this.koShowPropertyGrid=n.observable(!0),this.koDesignerHeight=n.observable(),this.koShowPagesToolbox=n.observable(!0),this.setOptions(t),this.koCanDeleteObject=n.observable(!1);var i=this;x.a.applyTheme(x.a.currentTheme()),this.pages=n.observableArray(),this.koShowSaveButton=n.observable(!1),this.koTestSurveyWidth=n.observable("100%"),this.saveButtonClick=function(){i.doSave()},this.koObjects=n.observableArray(),window.sel=this.koSelectedObject,this.koSelectedObject=n.observable(),this.koSelectedObject.subscribe(function(e){i.selectedObjectChanged(null!=e?e.value:null)}),this.koGenerateValidJSON.subscribe(function(e){i.options||(i.options={}),i.options.generateValidJSON=e,i.generateValidJSONChangedCallback&&i.generateValidJSONChangedCallback(e)}),this.surveyObjects=new l.a(this.koObjects,this.koSelectedObject),this.surveyObjects.getItemTextCallback=function(e,t){var o={obj:e,text:t};return i.onGetObjectTextInPropertyGrid.fire(i,o),o.text},this.selectPage=function(e){o.surveyObjects.selectObject(e)},this.undoRedo=new h.a,this.selectedObjectEditorValue=new r.a(this),this.selectedObjectEditorValue.onCanShowPropertyCallback=function(e,t){return i.onCanShowObjectProperty(e,t)},this.selectedObjectEditorValue.onSortPropertyCallback=function(e,t,o){return i.onCustomSortPropertyObjectProperty(e,t,o)},this.selectedObjectEditorValue.onPropertyValueChanged.add(function(e,t){i.onPropertyValueChanged(t.property,t.object,t.newValue)}),this.selectedObjectEditorValue.onAfterRenderCallback=function(e,t,o){if(!i.onPropertyAfterRender.isEmpty){var n={obj:e,htmlElement:t,property:o.property,propertyEditor:o.editor};i.onPropertyAfterRender.fire(i,n)}},this.questionEditorWindow=new c.a,this.questionEditorWindow.onCanShowPropertyCallback=function(e,t){return i.onCanShowObjectProperty(e,t)},this.surveyLive=new a.a,this.surveyEmbeding=new s.a,this.toolboxValue=new g.a(this.options&&this.options.questionTypes?this.options.questionTypes:null),this.koViewType=n.observable("designer"),this.koIsShowDesigner=n.computed(function(){return"designer"==i.koViewType()}),this.selectDesignerClick=function(){i.showDesigner()},this.selectEditorClick=function(){i.showJsonEditor()},this.selectTestClick=function(){i.showTestSurvey()},this.selectEmbedClick=function(){i.showEmbedEditor()},this.generateValidJSONClick=function(){i.koGenerateValidJSON(!0)},this.generateReadableJSONClick=function(){i.koGenerateValidJSON(!1)},this.runSurveyClick=function(){i.showLiveSurvey()},this.embedingSurveyClick=function(){i.showSurveyEmbeding()},this.deleteObjectClick=function(){i.deleteCurrentObject()},this.draggingToolboxItem=function(e,t){i.doDraggingToolboxItem(e.json,t)},this.clickToolboxItem=function(e){i.doClickToolboxItem(e.json)},this.dragEnd=function(e,t){i.dragDropHelper.end()},this.doUndoClick=function(){i.doUndoRedo(i.undoRedo.undo())},this.doRedoClick=function(){i.doUndoRedo(i.undoRedo.redo())},this.jsonEditor=new u.a,e&&this.render(e),this.text="",this.addToolbarItems()}return Object.defineProperty(e.prototype,"haveCommercialLicense",{get:function(){return this._haveCommercialLicense()},set:function(e){this._haveCommercialLicense(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAutoSave",{get:function(){return this.koAutoSave()},set:function(e){this.koAutoSave(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showState",{get:function(){return this.koShowState()},set:function(e){this.koShowState(e)},enumerable:!0,configurable:!0}),e.prototype.addToolbarItems=function(){var e=this;this.toolbarItems.push({id:"svd-undo",visible:this.koIsShowDesigner,enabled:this.undoRedo.koCanUndo,action:this.doUndoClick,title:this.getLocString("ed.undo")}),this.toolbarItems.push({id:"svd-redo",visible:this.koIsShowDesigner,enabled:this.undoRedo.koCanRedo,action:this.doRedoClick,title:this.getLocString("ed.redo")}),this.toolbarItems.push({id:"svd-survey-settings",visible:this.koIsShowDesigner,enabled:!1,action:function(){e.surveyObjects.selectObject(e.survey),e.showQuestionEditor(e.survey)},title:this.getLocString("ed.settings")}),this.toolbarItems.push({id:"svd-options",visible:n.computed(function(){return e.koIsShowDesigner()&&e.koShowOptions()}),title:this.getLocString("ed.options"),template:"svd-toolbar-options",items:n.observableArray([{id:"svd-valid-json",visible:!0,css:n.computed(function(){return e.koGenerateValidJSON()?"active":""}),action:this.generateValidJSONClick,title:this.getLocString("ed.generateValidJSON")},{id:"svd-readable-json",visible:!0,css:n.computed(function(){return e.koGenerateValidJSON()?"":"active"}),action:this.generateReadableJSONClick,title:this.getLocString("ed.generateReadableJSON")}])}),this.toolbarItems.push({id:"svd-test",visible:n.computed(function(){return"test"===e.koViewType()}),title:n.computed(function(){return e.getLocString("ed.testSurveyWidth")+" "+e.koTestSurveyWidth()}),template:"svd-toolbar-options",items:n.observableArray([{id:"svd-100-json",visible:!0,action:function(){return e.koTestSurveyWidth("100%")},title:"100%"},{id:"svd-1200px-json",visible:!0,action:function(){return e.koTestSurveyWidth("1200px")},title:"1200px"},{id:"svd-1000px-json",visible:!0,action:function(){return e.koTestSurveyWidth("1000px")},title:"1000px"},{id:"svd-800px-json",visible:!0,action:function(){return e.koTestSurveyWidth("800px")},title:"800px"},{id:"svd-600px-json",visible:!0,action:function(){return e.koTestSurveyWidth("600px")},title:"600px"},{id:"svd-400px-json",visible:!0,action:function(){return e.koTestSurveyWidth("400px")},title:"400px"}])}),this.toolbarItems.push({id:"svd-save",visible:this.koShowSaveButton,action:this.saveButtonClick,innerCss:"svd_save_btn",title:this.getLocString("ed.saveSurvey")}),this.toolbarItems.push({id:"svd-state",visible:this.koShowState,css:"svd_state",innerCss:n.computed(function(){return"icon-"+e.koState()}),title:n.computed(function(){return e.getLocString("ed."+e.koState())}),template:"svd-toolbar-state"})},e.prototype.setOptions=function(e){e||(e={}),e.hasOwnProperty("generateValidJSON")||(e.generateValidJSON=!0),this.options=e,this.showJSONEditorTabValue=void 0===e.showJSONEditorTab||e.showJSONEditorTab,this.showTestSurveyTabValue=void 0===e.showTestSurveyTab||e.showTestSurveyTab,this.showEmbededSurveyTabValue=void 0!==e.showEmbededSurveyTab&&e.showEmbededSurveyTab,this.haveCommercialLicense=void 0!==e.haveCommercialLicense&&e.haveCommercialLicense,this.koShowOptions(void 0!==e.showOptions&&e.showOptions),this.koShowPropertyGrid(void 0===e.showPropertyGrid||e.showPropertyGrid),this.koGenerateValidJSON(this.options.generateValidJSON),this.isAutoSave=void 0!==e.isAutoSave&&e.isAutoSave,this.isRTLValue=void 0!==e.isRTL&&e.isRTL,this.scrollToNewElement=void 0===e.scrollToNewElement||e.scrollToNewElement,e.designerHeight&&this.koDesignerHeight(e.designerHeight),e.objectsIntend&&(l.a.intend=e.objectsIntend),void 0!==e.showPagesToolbox&&this.koShowPagesToolbox(e.showPagesToolbox)},Object.defineProperty(e.prototype,"survey",{get:function(){return this.surveyValue()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedObjectEditor",{get:function(){return this.selectedObjectEditorValue},enumerable:!0,configurable:!0}),e.prototype.render=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),t&&this.setOptions(t);var o=this;e&&"string"==typeof e&&(e=document.getElementById(e)),e&&(this.renderedElement=e),(e=this.renderedElement)&&(e.innerHTML=w,o.applyBinding())},e.prototype.loadSurvey=function(e){var t=this;(new y.dxSurveyService).loadSurvey(e,function(e,o,n){e&&o&&(t.text=JSON.stringify(o))})},Object.defineProperty(e.prototype,"text",{get:function(){return this.koIsShowDesigner()?this.getSurveyTextFromDesigner():this.jsonEditor.text},set:function(e){this.changeText(e,!0)},enumerable:!0,configurable:!0}),e.prototype.changeText=function(e,t){void 0===t&&(t=!1);var o=new p.a(e);o.isJsonCorrect?(this.initSurvey((new y.JsonObject).toJsonObject(o.survey)),this.showDesigner(),this.setUndoRedoCurrentState(t)):(this.setTextValue(e),this.koViewType("editor"))},Object.defineProperty(e.prototype,"toolbox",{get:function(){return this.toolboxValue},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"customToolboxQuestionMaxCount",{get:function(){return this.toolbox.copiedItemMaxCount},set:function(e){this.toolbox.copiedItemMaxCount=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this.stateValue},enumerable:!0,configurable:!0}),e.prototype.setState=function(e){this.stateValue=e,this.koState(this.state)},e.prototype.doSave=function(){if(this.setState("saving"),this.saveSurveyFunc){this.saveNo++;var e=this;this.saveSurveyFunc(this.saveNo,function(t,o){e.setState("saved"),e.saveNo==t&&o&&e.setState("saved")})}},e.prototype.setModified=function(e){void 0===e&&(e=null),this.setState("modified"),this.setUndoRedoCurrentState(),this.onModified.fire(this,e),this.isAutoSave&&this.doSave()},e.prototype.setUndoRedoCurrentState=function(e){void 0===e&&(e=!1),e&&this.undoRedo.clear();var t=this.koSelectedObject()?this.koSelectedObject().value:null;this.undoRedo.setCurrent(this.surveyValue(),t?t.name:null)},Object.defineProperty(e.prototype,"saveSurveyFunc",{get:function(){return this.saveSurveyFuncValue},set:function(e){this.saveSurveyFuncValue=e,this.koShowSaveButton(null!=e&&!this.isAutoSave)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showOptions",{get:function(){return this.koShowOptions()},set:function(e){this.koShowOptions(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showPropertyGrid",{get:function(){return this.koShowPropertyGrid()},set:function(e){this.koShowPropertyGrid(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showJSONEditorTab",{get:function(){return this.showJSONEditorTabValue},set:function(e){this.showJSONEditorTabValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showTestSurveyTab",{get:function(){return this.showTestSurveyTabValue},set:function(e){this.showTestSurveyTabValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showEmbededSurveyTab",{get:function(){return this.showEmbededSurveyTabValue},set:function(e){this.showEmbededSurveyTabValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRTL",{get:function(){return this.isRTLValue},set:function(e){this.isRTLValue=e},enumerable:!0,configurable:!0}),e.prototype.onCanShowObjectProperty=function(e,t){var o={obj:e,property:t,canShow:!0};return this.onCanShowProperty.fire(this,o),o.canShow},e.prototype.onCustomSortPropertyObjectProperty=function(e,t,o){if(this.onCustomSortProperty.isEmpty)return 0;var n={obj:e,property1:t,property2:o,result:0};return this.onCustomSortProperty.fire(this,n),n.result},e.prototype.setTextValue=function(e){this.jsonEditor.text=e},e.prototype.getLocString=function(e){return i.a.getString(e)},e.prototype.addPageToUI=function(e){this.surveyObjects.addPage(e)},e.prototype.doOnQuestionAdded=function(e,t){if(!this.dragDropHelper.isMoving){var o=this.getPageByElement(e),n={question:e,page:o};this.onQuestionAdded.fire(this,n)}this.surveyObjects.addElement(e,t),this.survey.render()},e.prototype.doOnElementRemoved=function(e){this.surveyObjects.removeObject(e),this.survey.render()},e.prototype.doOnPanelAdded=function(e,t){var o=this.getPageByElement(e),n={panel:e,page:o};this.onPanelAdded.fire(this,n),this.surveyObjects.addElement(e,t),this.survey.render()},e.prototype.doOnPageAdded=function(e){var t={page:e};this.onPageAdded.fire(this,t)},e.prototype.onPropertyValueChanged=function(e,t,o){var n=(e.isDefaultValue(o),t[e.name]);t[e.name]=o,"name"!=e.name&&"title"!=e.name||this.surveyObjects.nameChanged(t),"name"===e.name?this.dirtyPageUpdate():"page"===e.name&&(this.selectPage(o),this.surveyObjects.selectObject(t)),this.setModified({type:"PROPERTY_CHANGED",name:e.name,target:t,oldValue:n,newValue:o}),"locale"!=e.name&&"hasComment"!=e.name&&"hasOther"!=e.name||this.selectedObjectEditorValue.objectChanged(),this.survey.render()},e.prototype.doUndoRedo=function(e){if(this.initSurvey(e.surveyJSON),e.selectedObjName){var t=this.findObjByName(e.selectedObjName);t&&this.surveyObjects.selectObject(t)}this.setState("modified"),this.isAutoSave&&this.doSave()},e.prototype.findObjByName=function(e){var t=this.survey.getPageByName(e);if(t)return t;var o=this.survey.getQuestionByName(e);return o||null},e.prototype.canSwitchViewType=function(e){return(!e||this.koViewType()!=e)&&("designer"==this.koViewType()&&(this.jsonEditor.text=this.getSurveyTextFromDesigner()),"editor"!=this.koViewType()||(this.jsonEditor.isJsonCorrect?(this.initSurvey((new y.JsonObject).toJsonObject(this.jsonEditor.survey)),this.setModified({type:"VIEW_TYPE_CHANGED",newType:e}),!0):(alert(this.getLocString("ed.correctJSON")),!1)))},e.prototype.showDesigner=function(){this.canSwitchViewType("designer")&&this.koViewType("designer")},e.prototype.showJsonEditor=function(){"editor"!=this.koViewType()&&(this.jsonEditor.show(this.getSurveyTextFromDesigner()),this.koViewType("editor"))},e.prototype.showTestSurvey=function(){this.canSwitchViewType(null)&&(this.showLiveSurvey(),this.koViewType("test"))},e.prototype.showEmbedEditor=function(){this.canSwitchViewType("embed")&&(this.showSurveyEmbeding(),this.koViewType("embed"))},e.prototype.getSurveyTextFromDesigner=function(){var e=(new y.JsonObject).toJsonObject(this.survey);return this.options&&this.options.generateValidJSON?JSON.stringify(e,null,1):(new f.a).stringify(e,null,1)},e.prototype.getPageByElement=function(e){var t=this.survey.getPageByElement(e);return t||this.surveyObjects.getSelectedObjectPage(e)},e.prototype.selectedObjectChanged=function(e){var t=!1;this.selectedObjectEditorValue.selectedObject=e;var o=m.b.getObjectType(e);if(o==m.a.Page&&(this.survey.currentPage=e,t=this.pages().length>1),o==m.a.Question||o==m.a.Panel){this.survey.selectedElement=e,t=!0,this.survey.currentPage=this.getPageByElement(e);var n=e.id;if(this.renderedElement&&n&&this.survey.currentPage){var i=this.renderedElement.querySelector("#"+n),r=this.renderedElement.querySelector("#"+this.survey.currentPage.id);m.b.scrollIntoViewIfNeeded(i,r)}}else this.survey.selectedElement=null;if(this.koCanDeleteObject(t),this.renderedElement&&this.select2){var a=this.renderedElement.querySelector("#select2-objectSelector-container");if(a){var s=this.surveyObjects.koSelected();s&&s.text&&(a.innerText=s.text())}}},e.prototype.applyBinding=function(){if(null!=this.renderedElement){if(n.cleanNode(this.renderedElement),n.applyBindings(this,this.renderedElement),this.surveyjs=this.renderedElement.querySelector("#surveyjs"),this.surveyjs){var e=this;this.surveyjs.onkeydown=function(t){t&&(38!=t.keyCode&&40!=t.keyCode||e.selectQuestion(38==t.keyCode))}}if(this.initSurvey(this.getDefaultSurveyJson()),this.setUndoRedoCurrentState(!0),this.jsonEditor.init(this.renderedElement.querySelector("#surveyjsJSONEditor")),"undefined"!=typeof jQuery&&jQuery().select2){var t={width:"100%"};this.isRTLValue&&(t.dir="rtl"),this.select2=jQuery("#objectSelector").select2(t)}}},e.prototype.getDefaultSurveyJson=function(){var t=(new f.a).parse(e.defaultNewSurveyText);return t.pages&&t.pages.length>0&&t.pages[0].name&&(t.pages[0].name=i.a.getString("ed.newPageName")+"1"),t},e.prototype.initSurvey=function(e){var t=this,o=this;this.surveyValue(new b.a),this.dragDropHelper=new v.a(this.survey,function(e){o.setModified(e)},this.renderedElement),this.surveyValue().getEditor=function(){return o},this.surveyValue().setJsonObject(e),this.surveyValue().isEmpty&&this.surveyValue().setJsonObject(this.getDefaultSurveyJson()),this.surveyValue().dragDropHelper=this.dragDropHelper,this.surveyValue().onUpdateElementAllowingOptions=function(e){o.onElementAllowOperations.fire(o,e)},this.surveyValue().onGetMenuItems.add(function(e,i){var r=i.obj.allowingOptions;if(r||(r={}),r.allowEdit&&i.items.push({name:"editelement",text:t.getLocString("survey.edit"),hasTitle:!0,onClick:function(e){return t.showQuestionEditor(e)}}),r.allowDelete){var a=i.obj.isPanel?"survey.deletePanel":"survey.deleteQuestion";i.items.push({name:"delete",text:o.getLocString(a),onClick:function(e){o.deleteCurrentObject()}})}if(r.allowShowHideTitle&&void 0!==i.obj.titleLocation){var s=n.observable("hidden"!==i.obj.titleLocation);i.items.push({name:"showtitle",text:t.getLocString("pe.showTitle"),icon:n.computed(function(){return s()?"icon-actionshowtitle":"icon-actionhidetitle"}),onClick:function(e){"hidden"!==e.titleLocation?(e.titleLocation="hidden","boolean"===e.getType()&&(e.showTitle=!1)):(e.titleLocation="default","boolean"===e.getType()&&(e.showTitle=!0)),s("hidden"!==e.titleLocation),t.onQuestionEditorChanged(e)}})}if(r.allowChangeRequired&&void 0!==i.obj.isRequired){var l=n.observable(i.obj.isRequired);i.items.push({name:"isrequired",text:t.getLocString("pe.isRequired"),icon:n.computed(function(){return l()?"icon-actionisrequired":"icon-actionnotrequired"}),onClick:function(e){e.isRequired=!e.isRequired,l(e.isRequired),t.onQuestionEditorChanged(e)}})}if(i.items.length>0&&i.items.push({template:"action-separator"}),r.allowCopy&&i.items.push({name:"copy",text:o.getLocString("survey.copy"),onClick:function(e){o.fastCopyQuestion(e)}}),r.allowAddToToolbox&&i.items.push({name:"addtotoolbox",text:o.getLocString("survey.addToToolbox"),onClick:function(e){o.addCustomToolboxQuestion(e)}}),r.allowChangeType){i.items.length>0&&i.items.push({template:"action-separator"});for(var c=i.obj.getType(),u=d.a.getConvertToClasses(c),p=u.length>0,h=function(e){return{name:t.getLocString("qt."+e),value:e}},m=[h(c)],v=0;v<u.length;v++){var g=u[v];m.push(h(g))}i.items.push({text:t.getLocString("qt."+c),title:t.getLocString("survey.convertTo"),type:c,allowChangeType:p,template:"convert-action",availableTypes:m,onConvertType:function(e,o){var n=o.target.value;t.convertCurrentObject(i.obj,n)}})}r.allowDragging&&i.items.push({name:"dragelement",text:o.getLocString("survey.drag"),onClick:function(e){}}),o.onDefineElementMenuItems.fire(o,i)}),this.onDesignerSurveyCreated.fire(this,{survey:this.surveyValue()}),this.survey.render(this.surveyjs),this.surveyObjects.survey=this.survey,this.pages(this.survey.pages),this.surveyValue().onSelectedElementChanged.add(function(e,t){o.surveyObjects.selectObject(e.selectedElement)}),this.surveyValue().onEditButtonClick.add(function(e){o.showQuestionEditor(o.koSelectedObject().value)}),this.surveyValue().onElementDoubleClick.add(function(e,t){o.onElementDoubleClick.fire(o,t)}),this.surveyValue().onProcessHtml.add(function(e,t){t.html=o.processHtml(t.html)}),this.surveyValue().onQuestionAdded.add(function(e,t){o.doOnQuestionAdded(t.question,t.parentPanel)}),this.surveyValue().onQuestionRemoved.add(function(e,t){o.doOnElementRemoved(t.question)}),this.surveyValue().onPanelAdded.add(function(e,t){o.doOnPanelAdded(t.panel,t.parentPanel)}),this.surveyValue().onPanelRemoved.add(function(e,t){o.doOnElementRemoved(t.panel)});var i=this.surveyValue().onPageAdded;i&&i.add&&i.add(function(e,t){o.doOnPageAdded(t.page)})},e.prototype.processHtml=function(e){if(!e)return e;for(var t=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi;t.test(e);)e=e.replace(t,"");return e},e.prototype.doDraggingToolboxItem=function(e,t){this.dragDropHelper.startDragToolboxItem(t,this.getNewName(e.type),e)},e.prototype.doClickToolboxItem=function(e){var t=this.createNewElement(e);this.doClickQuestionCore(t)},e.prototype.copyElement=function(e){var t=(new y.JsonObject).toJsonObject(e);return t.type=e.getType(),this.createNewElement(t)},e.prototype.dragOverQuestionsEditor=function(e,t){return e.survey.dragDropHelper.doDragDropOver(t,e.survey.currentPage),!1},e.prototype.dropOnQuestionsEditor=function(e,t){e.survey.dragDropHelper.doDrop(t)},e.prototype.createNewElement=function(e){var t=y.JsonObject.metaData.createClass(e.type);return(new y.JsonObject).toObject(e,t),this.setNewNames(t),t},e.prototype.setNewNames=function(e){this.newQuestions=[],this.newPanels=[],this.setNewNamesCore(e)},e.prototype.setNewNamesCore=function(e){var t=e.getType();if(e.name=this.getNewName(t),e.isPanel||"page"==t){e.isPanel&&this.newPanels.push(e);for(var o=e,n=0;n<o.elements.length;n++)this.setNewNamesCore(o.elements[n])}else this.newQuestions.push(e)},e.prototype.getNewName=function(e){return"page"==e?m.b.getNewPageName(this.pages()):"panel"==e?this.getNewPanelName():this.getNewQuestionName()},e.prototype.getNewQuestionName=function(){return m.b.getNewQuestionName(this.getAllQuestions())},e.prototype.getNewPanelName=function(){return m.b.getNewPanelName(this.getAllPanels())},e.prototype.getAllQuestions=function(){for(var e=[],t=0;t<this.pages().length;t++)this.addElements(this.pages()[t].elements,!1,e);return this.addElements(this.newPanels,!1,e),this.addElements(this.newQuestions,!1,e),e},e.prototype.getAllPanels=function(){for(var e=[],t=0;t<this.pages().length;t++)this.addElements(this.pages()[t].elements,!0,e);return this.addElements(this.newPanels,!0,e),this.addElements(this.newQuestions,!0,e),e},e.prototype.addElements=function(e,t,o){for(var n=0;n<e.length;n++)e[n].isPanel===t&&o.push(e[n]),this.addElements(m.b.getElements(e[n]),t,o)},e.prototype.doClickQuestionCore=function(e,t){void 0===t&&(t="ADDED_FROM_TOOLBOX");var o=this.survey.currentPage,n=-1,i=this.survey.selectedElement;i&&i.parent&&(o=i.parent,(n=o.elements.indexOf(this.survey.selectedElement))>-1&&n++),o.addElement(e,n),this.renderedElement&&this.scrollToNewElement&&this.dragDropHelper.scrollToElement(this.renderedElement.querySelector("#"+e.id)),this.setModified({type:t,question:e})},e.prototype.deleteQuestion=function(){this.getSelectedObjAsQuestion()&&this.deleteCurrentObject()},e.prototype.selectQuestion=function(e){this.getSelectedObjAsQuestion()&&this.surveyObjects.selectNextQuestion(e)},e.prototype.getSelectedObjAsQuestion=function(){var e=this.koSelectedObject().value;return e&&m.b.getObjectType(e)==m.a.Question?e:null},e.prototype.deleteCurrentObject=function(){this.deleteObject(this.koSelectedObject().value)},e.prototype.editCurrentObject=function(){this.showQuestionEditor(this.koSelectedObject().value)},e.prototype.convertCurrentObject=function(e,t){var o=d.a.convertObject(e,t);this.setModified({type:"QUESTION_CONVERTED",className:t,oldValue:e,newValue:o})},e.prototype.showElementEditor=function(e,t){this.showQuestionEditor(e,t)},e.prototype.onQuestionEditorChanged=function(e){this.surveyObjects.nameChanged(e),this.selectedObjectEditorValue.objectChanged(),this.dirtyPageUpdate(),this.setModified({type:"QUESTION_CHANGED_BY_EDITOR",question:e}),this.survey.endLoadingFromJson(),this.survey.render()},e.prototype.addCustomToolboxQuestion=function(e){this.toolbox.addCopiedItem(e)},e.prototype.fastCopyQuestion=function(e){var t=this.copyElement(e);this.doClickQuestionCore(t,"ELEMENT_COPIED")},e.prototype.deleteElement=function(e){this.deleteObject(e)},e.prototype.deleteObject=function(e){var t={element:e,elementType:m.b.getObjectType(e),allowing:!0};if(this.onElementDeleting.fire(this,t),t.allowing){this.surveyObjects.removeObject(e);m.b.getObjectType(e)==m.a.Page?this.survey.removePage(e):(this.survey.currentPage.removeElement(e),this.survey.selectedElement=null,this.surveyObjects.selectObject(this.survey.currentPage)),this.setModified({type:"OBJECT_DELETED",target:e}),this.survey.render()}},e.prototype.showLiveSurvey=function(){var e=this;this.surveyLive.onSurveyCreatedCallback=function(t){e.onTestSurveyCreated.fire(e,{survey:t})},this.surveyLive.setJSON(this.getSurveyJSON()),this.surveyLive.show()},e.prototype.showSurveyEmbeding=function(){var e=this.getSurveyJSON();this.surveyEmbeding.json=e,this.surveyEmbeding.surveyId=this.surveyId,this.surveyEmbeding.surveyPostId=this.surveyPostId,this.surveyEmbeding.generateValidJSON=this.options&&this.options.generateValidJSON,this.surveyEmbeding.show()},e.prototype.getSurveyJSON=function(){return this.koIsShowDesigner()?(new y.JsonObject).toJsonObject(this.survey):this.jsonEditor.isJsonCorrect?(new y.JsonObject).toJsonObject(this.jsonEditor.survey):null},e.prototype.createAnnotations=function(e,t){for(var o=new Array,n=0;n<t.length;n++){var i=t[n],r={row:i.position.start.row,column:i.position.start.column,text:i.text,type:"error"};o.push(r)}return o},Object.defineProperty(e.prototype,"alwaySaveTextInPropertyEditors",{get:function(){return this.alwaySaveTextInPropertyEditorsValue},set:function(e){this.alwaySaveTextInPropertyEditorsValue=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showApplyButtonInEditors",{get:function(){return this.showApplyButtonValue},set:function(e){this.showApplyButtonValue=e},enumerable:!0,configurable:!0}),e.prototype.onItemValueAddedCallback=function(e,t){var o={propertyName:e,newItem:t};this.onItemValueAdded.fire(this,o)},e.prototype.onMatrixDropdownColumnAddedCallback=function(e){var t={newColumn:e};this.onMatrixColumnAdded.fire(this,t)},e.prototype.onSetPropertyEditorOptionsCallback=function(e,t,o){var n={propertyName:e,obj:t,editorOptions:o};this.onSetPropertyEditorOptions.fire(this,n)},e.prototype.onGetErrorTextOnValidationCallback=function(e,t,o){var n={propertyName:e,obj:t,value:o,error:""};return this.onPropertyValidationCustomError.fire(this,n),n.error},e.prototype.onValueChangingCallback=function(e){this.onPropertyValueChanging.fire(this,e)},e.prototype.onPropertyEditorObjectSetCallback=function(e,t,o){var n={propertyName:e,obj:t,editor:o};this.onPropertyEditorObjectAssign.fire(this,n)},e.prototype.onPropertyEditorModalShowDescriptionCallback=function(e,t){var o={obj:t,propertyName:e,htmlTop:"",htmlBottom:""};return this.onShowPropertyModalEditorDescription.fire(this,o),{top:o.htmlTop,bottom:o.htmlBottom}},e.prototype.onGetElementEditorTitleCallback=function(e,t){return t},e}();k.defaultNewSurveyText="{ pages: [ { name: 'page1'}] }";var S=(new y.SurveyTemplateText).text;S=S.replace("name: 'survey-content', afterRender: koEventAfterRender","name: 'survey-content', data: survey"),n.components.register("survey-widget",{viewModel:function(e){this.survey=e.survey},template:S}),n.components.register("svg-icon",{viewModel:{createViewModel:function(e,t){n.computed(function(){var o=(n.unwrap(e.size)||16)+"px",i=t.element.childNodes[0];i.style.width=o,i.style.height=o,i.childNodes[0].setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+n.unwrap(e.iconName))})}},template:"<svg class='svd-svg-icon'><use></use></svg>"})},function(e,t,o){"use strict";var n=o(4);o.d(t,"a",function(){return i});var i=function(){function e(){}return e.registerCustomPropertyEditor=function(e,t){n.a.registerCustomEditor(e,t)},e.registerPropertyEditor=function(e,t){n.a.registerEditor(e,t)},e}()},function(e,t,o){"use strict";var n=o(0),i={survey:{edit:"Éditer",dropQuestion:"Déposer votre question ici.",copy:"Copier",addToToolbox:"Ajouter à la boîte à outils",deletePanel:"Supprimer le panneau",deleteQuestion:"Supprimer la question",convertTo:"Convertir en"},qt:{checkbox:"Cases à cocher",comment:"Commentaire",dropdown:"Liste déroulante",file:"Fichier",html:"HTML",matrix:"Matrice (choix unique)",matrixdropdown:"Matrice (choix multiples)",matrixdynamic:"Matrice (lignes dynamiques)",multipletext:"Champ multilignes",panel:"Panneau",paneldynamic:"Panneau (panneaux dynamiques)",radiogroup:"Boutons radio",rating:"Évaluation",text:"Champ texte",boolean:"Booléen",expression:"Expression"},ed:{survey:"Questionnaire",editSurvey:"Éditer le questionnaire",addNewPage:"Ajouter une page",deletePage:"Supprimer une page",editPage:"Éditer une page",newPageName:"page",newQuestionName:"question",newPanelName:"panneau",testSurvey:"Tester le questionnaire",testSurveyAgain:"Tester à nouveau le questionnaire",testSurveyWidth:"Largeur du questionnaire : ",embedSurvey:"Intégrer le questionnaire",saveSurvey:"Sauvegarder le questionnaire",designer:"Éditeur de questionnaire",jsonEditor:"Éditer JSON",undo:"Annuler",redo:"Rétablir",options:"Options",generateValidJSON:"Générer un JSON valide",generateReadableJSON:"Générer un JSON lisible",toolbox:"Boîte à outils",toolboxGeneralCategory:"Général",delSelObject:"Supprimer l'objet sélectionné",editSelObject:"Éditer l'objet sélectionné",correctJSON:"SVP corrigez le JSON",surveyResults:"Résultat du questionnaire : ",modified:"Modifié",saving:"Sauvegarde en cours",saved:"Sauvegardé"},pel:{isRequired:"Obligatoire ?"},pe:{apply:"Appliquer",ok:"OK",cancel:"Annuler",reset:"Réinitialiser",close:"Fermer",delete:"Supprimer",addNew:"Ajouter un nouveau",addItem:"Cliquer pour ajouter un item...",removeAll:"Tout supprimer",edit:"Éditer",move:"Déplacer",empty:"<vide>",notEmpty:"<éditer la valeur>",fastEntry:"Ajout rapide",formEntry:"Ajout via formulaire",testService:"Tester le service",conditionSelectQuestion:"Sélectionner une question...",conditionButtonAdd:"Ajouter",conditionButtonReplace:"Remplacer",conditionHelp:'Veuillez entrer une expression booléenne. Elle doit retourner Vrai(true) pour garder la question/page visible. Par exemple: {question1} = "valeur1" or ({question2} = 3 and {question3} < 5)',expressionHelp:"Veuillez entrer une expression. Vous pouvez utiliser des accolades pour accéder aux valeurs des questions '{question1} + {question2}', '({prix}*{quantite}) * (100 - {remise})'",aceEditorHelp:"Appuyer sur Ctrl + espace pour obtenir une aide pour la saisie d'expression",aceEditorRowTitle:"Ligne courante",aceEditorPanelTitle:"Panneau courant",showMore:"Pour plus d'informations, veuillez vous référer à la documentation",assistantTitle:"Questions disponibles :",cellsEmptyRowsColumns:"Il faut au minimum une ligne ou une colonne",propertyIsEmpty:"Veuillez entrer une valeur pour la propriété",value:"Valeur",text:"Texte",columnEdit:"Éditer la colonne: {0}",itemEdit:"Éditer l'item: {0}",url:"URL",path:"Chemin",valueName:"Nom de la valeur",titleName:"Nom du titre",hasOther:"Contient un autre item",otherText:"Autre item texte",name:"Nom",title:"Titre",cellType:"Type de cellule",colCount:"Nombre de colonnes",choicesOrder:"Sélectionner l'ordre des choix",visible:"Est visible ?",isRequired:"Est obligatoire ?",startWithNewLine:"Commencer avec une nouvelle ligne ?",rows:"Nombre de lignes",placeHolder:"Placeholder (indice dans le champ)",showPreview:"L'aperçu d'image est-il affiché ?",storeDataAsText:"Stocker le contenu du fichier dans le résultat JSON sous forme de texte",maxSize:"Taille maximum du fichier en octets",imageHeight:"Hauteur de l'image",imageWidth:"Largeur de l'image",rowCount:"Nombre de lignes",addRowText:'Texte bouton "Ajouter une ligne"',removeRowText:'Texte bouton "Supprimer une ligne"',minRateDescription:"Description note minimum",maxRateDescription:"Description note maximum",inputType:"Type de champ",optionsCaption:"Texte par défaut",defaultValue:"Valeur par défaut",cellsDefaultRow:"Texte de cellule par défaut",surveyEditorTitle:"Éditer les préférences du questionnaire",qEditorTitle:"Éditer la question: {0}",showTitle:"Afficher/cacher le titre",locale:"Langue par défaut",mode:"Mode (édition/lecture seule)",clearInvisibleValues:"Effacer les valeurs invisibles",cookieName:"Nom du cookie (pour empêcher de compléter 2 fois le questionnaire localement)",sendResultOnPageNext:"Envoyer les résultats au changement de page",storeOthersAsComment:'Sauvegarder la valeur "Autres" dans un champ séparé',showPageTitles:"Afficher les titres de pages",showPageNumbers:"Afficher les numéros de pages",pagePrevText:"Texte bouton page précédente",pageNextText:"Texte bouton page suivante",completeText:"Texte bouton terminer",startSurveyText:"Texte bouton commencer",showNavigationButtons:"Afficher les boutons de navigation (navigation par défaut)",showPrevButton:"Afficher le bouton précédent (l'utilisateur pourra retourner sur la page précédente)",firstPageIsStarted:"La première page du questionnaire est une page de démarrage.",showCompletedPage:'Afficher la page "terminé" à la fin (completedHtml)',goNextPageAutomatic:"Aller à la page suivante automatiquement pour toutes les questions",showProgressBar:"Afficher la barre de progression",questionTitleLocation:"Emplacement du titre de la question",requiredText:"La question requiert un/des symbole(s)",questionStartIndex:"Index de départ de la question (1, 2 ou 'A', 'a')",showQuestionNumbers:"Afficher les numéros de questions",questionTitleTemplate:"Gabarit du titre de question, par défaut : '{no}. {require} {title}'",questionErrorLocation:"Emplacement de l'erreur",focusFirstQuestionAutomatic:"Focus sur la première question au changement de page",questionsOrder:"Ordre des éléments sur la page",maxTimeToFinish:"Temps maximum pour terminer le questionnaire",maxTimeToFinishPage:"Temps maximum pour terminer une page",showTimerPanel:"Afficher le panneau chronomètre",showTimerPanelMode:"Mode d'affichage du panneau chronomètre",renderMode:"Mode de rendu",allowAddPanel:"Autoriser l'ajout du panneau",allowRemovePanel:"Autoriser la suppression du panneau",panelAddText:"Ajouter un panneau texte",panelRemoveText:"Supprimer le panneau texte",isSinglePage:"Afficher tous les éléments sur une seule page",tabs:{general:"Général",fileOptions:"Options",html:"Éditeur HTML",columns:"Colonnes",rows:"Lignes",choices:"Choix",visibleIf:"Visible si",enableIf:"Actif si",rateValues:"Barème",choicesByUrl:"Choix depuis API web",matrixChoices:"Choix par défaut",multipleTextItems:"Champs texte multiples",validators:"Validateurs",navigation:"Navigation",question:"Question",completedHtml:"HTML de fin",loadingHtml:"HTML de chargement",timer:"Chronomètre/Quiz",triggers:"Déclencheurs",templateTitle:"Titre de gabarit"},editProperty:'Éditer la propriété "{0}"',items:"[ Éléments: {0} ]",enterNewValue:"Veuillez saisir la valeur.",noquestions:"Il n'y a aucune question dans le questionnaire.",createtrigger:"Veuillez créer un déclencheur",triggerOn:"Quand ",triggerMakePagesVisible:"Rendre les pages visibles :",triggerMakeQuestionsVisible:"Rendre les questions visibles :",triggerCompleteText:"Terminer le questionnaire en cas de succès.",triggerNotSet:"Le déclencheur n'est pas défini",triggerRunIf:"Exécuter si",triggerSetToName:"Changer la valeur de: ",triggerSetValue:"à: ",triggerIsVariable:"Ne placez pas la variable dans le résultat du questionnaire."},pv:{true:"vrai",false:"faux",inherit:"hérité",show:"afficher",hide:"masquer",default:"par défaut",initial:"initial",random:"aléatoire",collapsed:"replié",expanded:"déployé",none:"aucun",asc:"ascendant",desc:"descendant",indeterminate:"indeterminé",decimal:"décimal",currency:"monnaie",percent:"pourcentage",firstExpanded:"déployé en premier",off:"désactivé",onPanel:"panneau",onSurvey:"questionnaire",list:"liste",progressTop:"Progression en haut",progressBottom:"Progression en bas",progressTopBottom:"Progression en haut et en bas",top:"haut",bottom:"bas",left:"gauche",color:"couleur",date:"date",datetime:"heure","datetime-local":"heure locale",email:"email",month:"mois",number:"nombre",password:"mot de passe",range:"jauge",tel:"tél.",text:"texte",time:"heure",url:"URL",week:"semaine",hidden:"masqué",on:"activé",onPage:"page",edit:"éditer",display:"affichage",onComplete:"onComplete",onHidden:"onHidden",all:"tous",page:"page",survey:"questionnaire"},op:{empty:"est vide",notempty:"n'est pas vide",equal:"égal",notequal:"n'est pas égal",contains:"contient",notcontains:"ne contient pas",greater:"supérieur",less:"inférieur",greaterorequal:"supérieur ou égal",lessorequal:"inférieur ou égal"},ew:{angular:"Utiliser la version Angular",jquery:"Utiliser la version jQuery",knockout:"Utiliser la version Knockout",react:"Utiliser la version React",vue:"Utiliser la version Vue",bootstrap:"Pour le framework Bootstrap",standard:"Sans Bootstrap",showOnPage:"Afficher le questionnaire dans une page",showInWindow:"Afficher le questionnaire dans une fenêtre",loadFromServer:"Charger le JSON du questionnaire depuis un serveur",titleScript:"Scripts et styles",titleHtml:"HTML",titleJavaScript:"JavaScript"},ts:{selectPage:"Sélectionner une page pour la tester"},validators:{answercountvalidator:"total de réponses",emailvalidator:"e-mail",numericvalidator:"numérique",regexvalidator:"regex",textvalidator:"texte"},triggers:{completetrigger:"terminer le questionnaire",setvaluetrigger:"définir la valeur",visibletrigger:"modifier la visibilité"},p:{name:"Nom",title:{name:"Titre",title:'Laissez vide, si même texte que le "Nom"'},navigationButtonsVisibility:"Visibilité des boutons de navigation",questionsOrder:"Ordre des questions",maxTimeToFinish:"Temps maximum pour terminer",visible:"Visible",visibleIf:"Visible si ",questionTitleLocation:"Emplacement titre question",description:"Description",state:"État",isRequired:"Obligatoire ?",requiredErrorText:"Message d'erreur text obligatoire",startWithNewLine:"Commencer avec une nouvelle ligne",innerIndent:"Indentation",page:"page",width:"largeur",commentText:"Description champ commentaire",valueName:"Nom de la valeur",enableIf:"Activer si",defaultValue:"Valeur par défaut",correctAnswer:"Bonne réponse",readOnly:"Lecture seule",validators:"Validateurs",titleLocation:"Emplacement du titre",hasComment:"Champ commentaire ?",hasOther:"Choix autre ?",choices:"Choix",choicesOrder:"Ordre des choix",choicesByUrl:"Choix par API",otherText:"Autre texte",otherErrorText:'Texte d\'erreur champ "Autre"',storeOthersAsComment:"Sauvegarder choix autre comme commentaire",label:"Intitulé",showTitle:"Afficher le titre",valueTrue:"Valeur vrai",valueFalse:"Valeur faux",cols:"Colonnes",rows:"Nombre de lignes",placeHolder:"PlaceHolder (indice dans le champ)",optionsCaption:"Texte par défaut",expression:"Expression",format:"Format",displayStyle:"Style d'affichage",currency:"Monnaie",useGrouping:"Utiliser les groupes",showPreview:"Voir la prévisualisation",allowMultiple:"Autoriser multiples",imageHeight:"Hauteur de l'image",imageWidth:"Largeur de l'image",storeDataAsText:"Stocker les données comme du texte",maxSize:"Taille maximum",html:"HTML",columns:"Colonnes",cells:"Cellules",horizontalScroll:"Scroll horizontal",cellType:"Type de cellule",columnColCount:"Nombre de colonnes",columnMinWidth:"Largeur minimale des colonnes",rowCount:"Nombre de lignes",minRowCount:"Nombre de lignes minimum",maxRowCount:"Nombre de lignes maximum",keyName:"Nom de la clé",keyDuplicationError:"Erreur de clés multiples",confirmDelete:"Confirmation de suppression",confirmDeleteText:"Texte de confirmation de suppression",addRowText:"Bouton ajouter une ligne",removeRowText:"Bouton supprimer une ligne",items:"Items",itemSize:"Nombre maximum de caractères",colCount:"Nombre de colonnes",templateTitle:"Titre de gabarit",templateDescription:"Description du gabarit",allowAddPanel:"Autoriser l'ajout de panneau",allowRemovePanel:"Autoriser la suppression de panneau",panelCount:"Nombre de panneaux",minPanelCount:"Nombre minimum de panneaux",maxPanelCount:"Nombre maximum de panneaux",panelsState:"État des panneaux",panelAddText:"Texte d'ajout des panneaux",panelRemoveText:"Texte de suppression des panneaux",panelPrevText:"Texte panneau précédent",panelNextText:"Texte panneau suivant",showQuestionNumbers:"Numérotation des questions",showRangeInProgress:"Afficher la progression",renderMode:"Mode de rendu",templateTitleLocation:"Emplacement du titre de gabarit",rateValues:"Barème",rateMin:"Valeur minimum",rateMax:"Valeur maximum",rateStep:"Pas",minRateDescription:"Description note minimum",maxRateDescription:"Description note maximum",inputType:"Type de champ",size:"Nombre maximum de caractères",focusFirstQuestionAutomatic:"Focus automatique sur la première question",completedHtml:"HTML questionnaire finalisé",completedBeforeHtml:"HTML avant complétion du questionnaire",loadingHtml:"HTML de chargement",triggers:"Déclencheurs",cookieName:"Nom du cookie",sendResultOnPageNext:"Envoyer les résultats au changement de page",showNavigationButtons:"Boutons de navigation",showPrevButton:"Afficher le bouton précédent",showPageTitles:"Titre des pages",showCompletedPage:"Voir la page formulaire complété ?",showPageNumbers:"Numérotation des pages",questionErrorLocation:"Emplacement des erreurs",showProgressBar:"Barre de progression",mode:"Mode d'affichage",goNextPageAutomatic:"Aller à la page suivante automatiquement",clearInvisibleValues:"Cacher les valeurs invisibles",startSurveyText:"Texte de démarrage du questionnaire",pagePrevText:"Bouton page précédente",pageNextText:"Bouton page suivante",completeText:"Texte questionnaire finalisé",requiredText:"Texte pour les champs obligatoires",questionStartIndex:"Index de numérotation des questions",questionTitleTemplate:"Template d'affichage des questions",firstPageIsStarted:"Commence à la première page",isSinglePage:"Affiché sur une page",maxTimeToFinishPage:"Temps maximum pour finir la page",showTimerPanel:"Afficher le panneau chronomètre",showTimerPanelMode:"Mode d'affichage du panneau chronomètre",indent:"Indentation",isAllRowRequired:"Toutes les lignes sont-elle obligatoires ?",locale:"Langue"}};n.a.locales.fr=i},function(e,t,o){"use strict";var n=o(0),i={survey:{edit:"Bearbeiten",dropQuestion:"Frage bitte hier platzieren.",copy:"Kopieren",addToToolbox:"Zur Werkzeugleiste hinzufügen",deletePanel:"Panel löschen",deleteQuestion:"Frage löschen"},qt:{checkbox:"Checkbox",comment:"Kommentar",dropdown:"Aufklappmenü",file:"Datei",html:"Html",matrix:"Matrix (einfache Auswahl)",matrixdropdown:"Matrix (mehrfache Auswahl)",matrixdynamic:"Matrix (dynamische Zeilen)",multipletext:"Mehrzeiliger Text",panel:"Panel",paneldynamic:"Panel (dynamische Panels)",radiogroup:"Radiogruppe",rating:"Bewertung",text:"Einfache\tEingabe",boolean:"Boolean"},ed:{survey:"Umfrage",addNewPage:"Neue Seite hinzufügen",newPageName:"Seite",newQuestionName:"Frage",newPanelName:"Panel",testSurvey:"Testumfrage",testSurveyAgain:"Testumfrage wiederholen",testSurveyWidth:"Umfragebreite: ",embedSurvey:"Umfrage einfügen",saveSurvey:" Umfrage speichern",designer:"Umfrage Designer",jsonEditor:"JSON Editor",undo:"Rückgängig",redo:"Wiederherstellen",options:"Optionen",generateValidJSON:"Generiere gültiges JSON",generateReadableJSON:"Generiere lesbares JSON",toolbox:"Werkzeugleiste",delSelObject:"Lösche markiertes Objekt",correctJSON:"Bitte JSON korrigieren.",surveyResults:"Umfrageergebnis: "},pel:{isRequired:"Erforderlich?"},pe:{apply:"Anwenden",ok:"OK",cancel:"Abbrechen",reset:"Zurücksetzen",close:"Schliessen",delete:"Löschen",addNew:"Neu hinzufügen",removeAll:"Alles löschen",edit:"Bearbeiten",empty:"<leer>",fastEntry:"Schnell-Eintrag",formEntry:"Formular-Eintrag",testService:"Service testen",expressionHelp:"Bitte geben Sie eine booleschen Ausdruck ein. Es muss 'true' retournieren um die Frage/Seite anzuzeigen. zum Beispiel: {question1} = 'value1' or ({question2} = 3 and {question3} < 5)",propertyIsEmpty:"Bitte geben Sie einen Wert ein",value:"Wert",text:"Text",columnEdit:"Spalte bearbeiten: {0}",itemEdit:"Element bearbeiten: {0}",hasOther:"Hat ein anderes Element",name:"Name",title:"Titel",cellType:"Zellentyp",colCount:"Spaltenanzahl",choicesOrder:"Wähle Auswahlreihenfolge",visible:"Ist es sichtbar?",isRequired:"Ist es erforderlich?",startWithNewLine:"In neuer Zeile beginnen?",rows:"Zeilenanzahl",placeHolder:"Platzhalter eingeben",showPreview:"Wird eine Bildvorschau angezeigt?",storeDataAsText:"Speicher Dateininhalt des JSON-Resultats als Text",maxSize:"Maximale Dateigrösse in Bytes",imageHeight:"Bildhöhe",imageWidth:"Bildbreite",rowCount:"Zeilenanzahl",addRowText:"Zeilenknopftext hinzufügen",removeRowText:"Zeilenknopftext löschen",minRateDescription:"Bewertungsbeschreibung minimieren",maxRateDescription:"Bewertungsbeschreibung maximieren",inputType:"Eingabetyp",optionsCaption:"Auswahlbeschriftung",qEditorTitle:"Frage bearbeiten: {0}",tabs:{general:"Allgemein",fileOptions:"Optionen",html:"Html Editor",columns:"Spalten",rows:"Zeilen",choices:"Auswahlmöglichkeiten",visibleIf:"Sichtbar wenn",rateValues:"Bewertungswerte",choicesByUrl:"Auswahlmöglichkeiten vom Internet",matrixChoices:"Standardauswahl",multipleTextItems:"Texteingabe",validators:"Überprüfung"},editProperty:"Eigenschaft bearbeiten '{0}'",items:"[ Gegenstand: {0} ]",enterNewValue:"Bitte einen Wert eingeben.",noquestions:"Die Umfrage enthält keine Frage.",createtrigger:"Bitte einen Trigger eingeben.",triggerOn:"Ein ",triggerMakePagesVisible:"Seiten sichtbar machen:",triggerMakeQuestionsVisible:"Elemente sichtbar machen:",triggerCompleteText:"Bei Erfolg die Umfrage abschliessen.",triggerNotSet:"Kein Trigger eingerichtet",triggerRunIf:"Ausführen wenn",triggerSetToName:"Ändere Wert von: ",triggerSetValue:"auf: ",triggerIsVariable:"Variable nicht im Umfrageergebnis einbinden."},pv:{true:"true",false:"false"},op:{empty:"ist leer",notempty:"ist nicht leer",equal:"ist gleich",notequal:"ist ungleich",contains:"enthält",notcontains:"enthält nicht",greater:"grösser als",less:"kleiner als",greaterorequal:"grösser oder kleiner als",lessorequal:"kleiner oder ist gleich"},ew:{angular:"Angular-Version benutzen",jquery:"jQuery-Version benutzen",knockout:"Knockout-Version benutzen",react:"React-Version benutzen",vue:"Vue-Version benutzen",bootstrap:"Als Bootstrap Framework",standard:"Kein Bootstrap",showOnPage:"Zeige Umfrage auf Seite",showInWindow:"Zeige Umfrage als Fenster",loadFromServer:"Lade Umfrage als JSON vom Server",titleScript:"Skripte und Styles",titleHtml:"HTML",titleJavaScript:"JavaScript"},validators:{answercountvalidator:"Anzahl Antworten",emailvalidator:"E-Mail",numericvalidator:"numerisch",regexvalidator:"regex",textvalidator:"text"},triggers:{completetrigger:"Umfrage abschliessen",setvaluetrigger:"Wert setzen",visibletrigger:"Sichtbarkeit ändern"},p:{name:"Name",title:{name:"Titel",title:"Bitte leer lassen, falls gleich wie 'Name'"},survey_title:{name:"Titel",title:"Wird auf jeder Seite angezeigt."},page_title:{name:"title",title:"Seitentitel"}}};n.a.locales.de=i},function(e,t,o){"use strict";var n=o(0),i={survey:{edit:"Modifica",dropQuestion:"Aggiungi una domanda qui",copy:"Copia",addToToolbox:"Aggiungi alla toolbox",deletePanel:"Elimina pannello",deleteQuestion:"Elimina domanda",convertTo:"Converti a"},qt:{checkbox:"Casella di controllo ",comment:"Commento",dropdown:"Combo",file:"Archivio",html:"Html",matrix:"Matrice (unica opzione)",matrixdropdown:"Matrice (opzioni multiple)",matrixdynamic:"Matrice (dinamica)",multipletext:"Testo multiplo",panel:"Pannello",paneldynamic:"Pannello (dinamico)",radiogroup:"Opzione multipla",rating:"Valutazione",text:"Testo semplice",expression:"Espressione"},ed:{survey:"Questionario",editSurvey:"Modifica Questionario",addNewPage:"Aggiungi Nuova Pagina",deletePage:"Elimina Pagina",editPage:"Modifica Pagina",newPageName:"pagina",newQuestionName:"domanda",newPanelName:"pannello",testSurvey:"Testa questionario",testSurveyAgain:"Testa questionario di nuovo",testSurveyWidth:"Larghezza questionario:",embedSurvey:"Includi questionario",saveSurvey:"Salva questionario",designer:"Disegna",jsonEditor:"Modifica JSON",undo:"Annulla",redo:"Ripeti",options:"Opzioni",generateValidJSON:"Genera JSON valido",generateReadableJSON:"Genera JSON leggibile",toolbox:"Strumenti",delSelObject:"Elimina oggetto selezionato",editSelObject:"Modifica oggetto selezionato",correctJSON:"Per favore, correggi il tuo JSON",surveyResults:"Risultati del questionario: ",modified:"Modificato",saving:"Salvataggio",saved:"Salvato"},pel:{isRequired:"Richiesto"},pe:{apply:"Applica",ok:"Accetta",cancel:"Annulla",reset:"Reimposta",close:"Chiudi",delete:"Elimina",addNew:"Nuovo",removeAll:"Elimina tutto",edit:"Modifica",empty:"<vuoto>",notEmpty:"<modifica valore>",fastEntry:"Inserimento rapido",formEntry:"Inserimento con dati ",testService:"Test del servizio",conditionSelectQuestion:"Seleziona domanda...",conditionButtonAdd:"Aggiungi",conditionButtonReplace:"Sostituisci",conditionHelp:"Per favore, inserire una espressione booleana. Dovrebbe restituire true per mantenere la domanda/pagina visibile. Ad esempio: {domanda1} = 'valore1' or ({domanda2} * {domanda4} > 20 and {domanda3} < 5)",expressionHelp:"Per favore inserire una espressione. Puoi usare parentesi graffe per ottenere l'accesso ai valori delle domande: '{domanda1} + {domanda2}', '({prezzo}*{qta}) * (100 - {sconto})'",aceEditorHelp:"Premi ctrl+space per ottenere un suggerimento sul completamento dell'espressione",aceEditorRowTitle:"Riga corrente",aceEditorPanelTitle:"Pannello Corrente",showMore:"Per favore, per maggiori dettagli guardare la documentazione",assistantTitle:"Domande disponibili:",cellsEmptyRowsColumns:"Dovrebbe esserci almeno una colonna o riga",propertyIsEmpty:"Per favore, inserire un valore per la propietà",value:"Valore",text:"Testo",columnEdit:"Modifica colonna: {0}",itemEdit:"Modifica elemento: {0}",url:"URL",path:"Percorso",valueName:"Nome Valore",titleName:"Nome Titolo",hasOther:"Altri elementi",otherText:"Testo altri elementi",name:"Nome",title:"Titolo",cellType:"Tipo di cella",colCount:"Numero di colonne",choicesOrder:"Seleziona altre opzioni",visible:"Visibile",isRequired:"Richiesto",startWithNewLine:"Nuova linea",rows:"Numero di righe",placeHolder:"Testo di riferimento",showPreview:"Mostra anteprima",storeDataAsText:"Vedi il contenuto JSON come testo",maxSize:"Dimensione massima in bytes",imageHeight:"Altezza immagine",imageWidth:"Larghezza immagine",rowCount:"Numero delle righe",addRowText:"Testo del pulsante per aggiungere una nuova righa",removeRowText:"Testo del pulsante per eliminare una righa",minRateDescription:"Descrizione del valore minimo",maxRateDescription:"Descrizione del valore massimo",inputType:"Tipo di inserimento",optionsCaption:"Titolo dell'opzione",defaultValue:"Valore default",cellsDefaultRow:"Valore default celle",surveyEditorTitle:"Edit survey settings",qEditorTitle:"Modifica domanda: {0}",showTitle:"Mostra/nascondi titolo",locale:"Lingua Default",mode:"Modalità (modifica/sola lettura)",clearInvisibleValues:"Pulischi valori non visibili",cookieName:"Nome cookie (per disabilitare esegui il questionario due volte in locale)",sendResultOnPageNext:"Invia i risultati del sondaggio alla pagina successiva",storeOthersAsComment:"Memorizza il valore 'altri' in campi separati",showPageTitles:"Visualizza titoli pagina",showPageNumbers:"Visualizza numeri pagina",pagePrevText:"Testo bottone pagina precedente",pageNextText:"Testo bottone pagina successiva",completeText:"Testo bottone Completato",startSurveyText:"Testo bottone Inizia",showNavigationButtons:"Visualizza bottoni di navigazione (navigazione di default)",showPrevButton:"Visualizza bottone precedente(l'utente può tornare alla pagina precedente)",firstPageIsStarted:"La prima pagina nel questionario è la pagina iniziale.",showCompletedPage:"Visualizza la pagina completata alla fine del questionario (completedHtml)",goNextPageAutomatic:"Rispondendo a tutte le domande, vai alla pagina successiva in automatico.",showProgressBar:"Visualizza barra di avanzamento",questionTitleLocation:"Posizione titolo domanda",requiredText:"Simbolo domanda obbligatoria, esempio (*)",questionStartIndex:"La domanda inizia con l'indice (1, 2 oppure 'A', 'a')",showQuestionNumbers:"Visualizza i numeri di domanda",questionTitleTemplate:"Template titolo della domanda, il default è: '{no}. {require} {title}'",questionErrorLocation:"Posizione notifica errore sulla domanda",focusFirstQuestionAutomatic:"Sul cambio pagina, posiziona il cursore sulla prima domanda",questionsOrder:"Ordine di elementi sulla pagina",maxTimeToFinish:"Tempo massimo per terminare il sondaggio",maxTimeToFinishPage:"Tempo massimo per terminare una pagina del sondaggio",showTimerPanel:"Visualizza pannello timer",showTimerPanelMode:"Visualizza modalità timer pannello",renderMode:"Modalità di rendering",allowAddPanel:"Consenti l'aggiunta di un pannello",allowRemovePanel:"Consenti la rimozione di un pannello",panelAddText:"Aggiungi testo pannello",panelRemoveText:"Remuovi testo pannello",isSinglePage:"Visualizza tutti gli elementi su una pagina",tabs:{general:"Generale",fileOptions:"Opzioni",html:"Modifica Html",columns:"Colonne",rows:"Righe",choices:"Scelte",visibleIf:"Visibile se",rateValues:"Volori della classifica",choicesByUrl:"Opzioni dal Web",matrixChoices:"Opzioni predefinite",multipleTextItems:"Voci di testo",validators:"Validazioni",navigation:"Navigazione",question:"Domanda",completedHtml:"Html questionario completato",loadingHtml:"Html caricamento questionario",timer:"Timer/Quiz",triggers:"Triggers",templateTitle:"Template titolo"},editProperty:"Modifca propietà '{0}'",items:"[ Elemento: {0} ]",enterNewValue:"Si prega di inserire il valore.",noquestions:"Non c'è alcun dubbio nel questionario.",createtrigger:"Si prega di creare un trigger",triggerOn:"Attivazione ",triggerMakePagesVisible:"Rendere visibili le pagine:",triggerMakeQuestionsVisible:"Rendere visibili le domande:",triggerCompleteText:"Completare il questionario, in caso di successo.",triggerNotSet:"Non impostato",triggerRunIf:"Esegui se",triggerSetToName:"Cambia il valore a: ",triggerSetValue:"a: ",triggerIsVariable:"Non posizionare la variabile del risultato del questionario"},op:{empty:"è vuoto",notempty:"non è vuoto ",equal:"è uguale a",notequal:"non è uguale a",contains:"contiene",notcontains:"non contiene",greater:"maggiore",less:"minore",greaterorequal:"maggiore o uguale",lessorequal:"minore o uguale"},ew:{angular:"Versione per Angular",jquery:"Versione per jQuery",knockout:"Versione per Knockout",react:"Versione per React",vue:"Versione per Vue",bootstrap:"Per framework bootstrap",standard:"No bootstrap",showOnPage:"Visualizza in questa pagina",showInWindow:"Visualizza in una finestra",loadFromServer:"Carica JSON dal server",titleScript:"Scripts e stili",titleHtml:"HTML",titleJavaScript:"JavaScript"},ts:{selectPage:"Seleziona la pagina da testare:"},validators:{answercountvalidator:"numero risposte",emailvalidator:"e-mail",numericvalidator:"numerico",regexvalidator:"regex",textvalidator:"testo"},triggers:{completetrigger:"completa questionario",setvaluetrigger:"setta valore",visibletrigger:"cambia visibilità"},p:{name:"nome",title:{name:"titolo",title:"Lascia vuoto se è lo stesso di 'Nome'"},page_title:{name:"titolo",title:"Titolo della pagina"}}};n.a.locales.it=i},function(e,t,o){"use strict";var n=o(0),i={survey:{edit:"ویرایش",dropQuestion:"لطفا از جعبه ابزار سوالی در اینجا قرار دهید",copy:"کپی",addToToolbox:"افزودن به جعبه ابزار",deletePanel:"حذف پنل",deleteQuestion:"حذف سوال",convertTo:"تبدیل به"},qt:{checkbox:"چند انتخابی",comment:"نظر",dropdown:"لیست انتخابی",file:"فایل",html:"Html",matrix:"ماتریس (تک انتخابی)",matrixdropdown:"ماتریس (چند انتخابی)",matrixdynamic:"ماتریس (سطرهای داینامیک)",multipletext:"متن چند خطی",panel:"پنل",paneldynamic:"پنل (پنل های داینامیک)",radiogroup:"تک انتخابی",rating:"رتبه بندی",text:"متن تک خطی",boolean:"صحیح و غلط",expression:"توصیفی"},ed:{survey:"نظرسنجی",editSurvey:"ویرایش نظرسنجی",addNewPage:"درج صفحه جدید",deletePage:"حذف صفحه",editPage:"ویرایش صفحه",newPageName:"صفحه",newQuestionName:"سوال",newPanelName:"پنل",testSurvey:"پیش نمایش",testSurveyAgain:"پیش نمایش مجدد",testSurveyWidth:"عرض پرسشنامه: ",embedSurvey:"کد پرسشنامه",saveSurvey:"ذخیره نظرسنجی",designer:"طراح پرسشنامه",jsonEditor:"ویرایشگر JSON",undo:"بازگردانی",redo:"بازانجام",options:"انتخاب ها",generateValidJSON:"تولید کد معتبر JSON",generateReadableJSON:"تولید کد خوانا JSON",toolbox:"جعبه ابزار",delSelObject:"حذف مورد انتخابی",editSelObject:"ویرایش مورد انتخابی",correctJSON:"کد JSON را تصحیح کنید",surveyResults:"نتایج نظرسنجی: ",modified:"تغییر داده شده",saving:"در حال ذخیره سازی",saved:"ذخیره شد"},pel:{isRequired:"اجباری؟"},pe:{apply:"اعمال",ok:"تایید",cancel:"لغو",reset:"بازنشانی",close:"بستن",delete:"حذف",addNew:"افزودن",removeAll:"حذف همه",edit:"ویرایش",empty:"<خالی>",fastEntry:"تکمیل سریع",formEntry:"تکمیل فرم",testService:"بررسی سرویس",conditionHelp:"لطفا یک مقدار بولین توصیفی وارد کنید که صحیح یا غلط را برگرداند تا صفحه سوالات نمایش داده شود. برای مثال: {question1} = 'value1' or ({question2} * {question4} > 20 and {question3} < 5)",expressionHelp:"لطفا یک عبارت توصیفی را وارد کنید. شما ممکن است از کروشه برای دسترسی به مقدار سوالات استفاده کنید. برای مثال: {question1} = 'value1' or ({question2} = 3 and {question3} < 5)",aceEditorHelp:"برای مشاهده نکات تکمیلی ctrl+space را بفشارید",aceEditorRowTitle:"سطر فعلی",aceEditorPanelTitle:"پنل فعلی",showMore:"برای اطلاعات بیشتر لطفا سند راهنما را مطالعه کنید",assistantTitle:"سوالات موجود:",propertyIsEmpty:"لطفا یک مقدار وارد کنید",value:"مقدار",text:"متن",columnEdit:"ویرایش ستون: {0}",itemEdit:"ویرایش آیتم: {0}",url:"URL",path:"Path",valueName:"نام مقدار",titleName:"نام عنوان",hasOther:"دارای آیتم دیگر",name:"نام",title:"عنوان",cellType:"نوع سلول",colCount:"تعداد ستون",choicesOrder:"ترتیب گزینه را انتخاب کنید",visible:"نمایش داده شود؟",isRequired:"ضروری است؟",startWithNewLine:"با سطر جدید شروع شود؟",rows:"تعداد سطر",placeHolder:"نگهدارنده متن",showPreview:"پیش نمایش تصویر نشان داده شود؟",storeDataAsText:"ذخیره کردن محتوای فایل در JSON به عنوان متن",maxSize:"حداکثر سایز به بایت",imageHeight:"ارتفاع تصویر",imageWidth:"عرض تصویر",rowCount:"تعداد سطر",addRowText:"متن دکمه درج سطر",removeRowText:"متن دکمه حذف سطر",minRateDescription:"توضیح حداقل امتیاز",maxRateDescription:"توضیح حداکثر امتیاز",inputType:"نوع ورودی",optionsCaption:"نوشته انتخاب ها",defaultValue:"مقدار پیش فرض",surveyEditorTitle:"ویرایش نظرسنجی",qEditorTitle:"ویرایش سوال: {0}",showTitle:"نمایش/پنهان کردن عنوان",locale:"زبان پیش فرض",mode:"حالت (ویرایش/خواندن)",clearInvisibleValues:"پاکسازی مقادیر پنهان",cookieName:"نام کوکی (به منظور جلوگیری از اجرای دوباره نظرسنجی)",sendResultOnPageNext:"ارسال نتایج نظرسنجی در صفحه بعدی",storeOthersAsComment:"ذخیره مقدار 'سایر' در فیلد جداگانه",showPageTitles:"نمایش عنوان صفحات",showPageNumbers:"نمایش شماره صفحات",pagePrevText:"متن دکمه صفحه قبلی",pageNextText:"متن دکمه صفحه بعدی",completeText:"متن دکمه تکمیل نظرسنجی",startSurveyText:"متن دکمه شروع نظرسنجی",showNavigationButtons:"نمایش دکمه های ناوبری (ناوبری پیش فرض)",showPrevButton:"نمایش دکمه قبلی (کاربر ممکن است به صفحه قبل برگردد)",firstPageIsStarted:"صفحه اول در نظرسنجی نقطه آغازین آن است.",showCompletedPage:"نمایش صفحه اتمام نظرسنجی در پایان (completedHtml)",goNextPageAutomatic:"با پاسخگویی به تمام سوالات، به صورت اتوماتیک به صفحه بعد برود",showProgressBar:"نمایش نشانگر پیشرفت",questionTitleLocation:"محل عنوان سوال",requiredText:"سوالات نشان دار اجباری هستند",questionStartIndex:"نمایه شروع سوالات (۱،۲ یا a و b)",showQuestionNumbers:"نمایش شماره های سوالات",questionTitleTemplate:"قالب عنوان سوال، به صورت پیش فرض: '{no}. {require} {title}'",questionErrorLocation:"محل خطای سوال",focusFirstQuestionAutomatic:"تمرکز بر روی اولین سوال با تغییر صفحه",questionsOrder:"ترتیب المان ها در صفحه",maxTimeToFinish:"نهایت زمان برای اتمام نظرسنجی",maxTimeToFinishPage:"نهایت زمان برای اتمام این صفحه نظرسنجی",showTimerPanel:"نمایش پنل زمان سنج",showTimerPanelMode:"نمایش حالت پنل زمان سنج",renderMode:"حالت رندر",allowAddPanel:"اجازه افزودن پنل",allowRemovePanel:"اجازه حذف پنل",panelAddText:"متن افزودن پنل",panelRemoveText:"متن حذف پنل",isSinglePage:"نمایش تمام المان ها در یک صفحه",tabs:{general:"عمومی",fileOptions:"انتخاب ها",html:"ویرایشگر HTML",columns:"ستون ها",rows:"سطرها",choices:"انتخاب ها",visibleIf:"نمایش در صورت",rateValues:"مقادیر رتبه بندی",choicesByUrl:"انتخاب ها از وب",matrixChoices:"انتخاب های پیشفرض",multipleTextItems:"فیلدهای متنی",validators:"اعتبارسنجی ها",navigation:"ناوبری",question:"سوال",completedHtml:"HTML صفحه تکمیل نظرسنجی",loadingHtml:"HTML بارگزاری",timer:"زمان سنج/کوئیز",triggers:"اجرا کننده",templateTitle:"عنوان قالب"},editProperty:"ویرایش خصوصیت '{0}'",items:"[ آیتم ها: {0} ]",enterNewValue:"لطفا یک مقدار وارد کنید",noquestions:"سوالی در پرسشنامه درج نشده",createtrigger:"اجرا کننده ای بسازید",triggerOn:"در ",triggerMakePagesVisible:"صفحات را قابل نمایش کن:",triggerMakeQuestionsVisible:"سوالات را قابل نمایش کن:",triggerCompleteText:"پرسشنامه را تکمیل کن اگر موفق بود.",triggerNotSet:"اجرا کننده تنظیم نشده.",triggerRunIf:"اجرا در صورت",triggerSetToName:"تعییر مقدار از: ",triggerSetValue:"به: ",triggerIsVariable:"عدم درج متغییر در نتایج پرسشنامه"},pv:{true:"صحیح",false:"نادرست"},op:{empty:"خالی باشد",notempty:"خالی نباشد",equal:"مساوی باشد",notequal:"مساوی نباشد",contains:"شامل",notcontains:"شامل نباشد",greater:"بزرگتر",less:"کوچکتر",greaterorequal:"بزرگتر یا مساوی",lessorequal:"کوچکتر یا مساوی"},ew:{angular:"استفاده از نسخه Angular",jquery:"استفاده از نسخه jQuery",knockout:"استفاده از نسخه ناک اوت",react:"استفاده از نسخه React",vue:"استفاده از نسخه Vue",bootstrap:"برای فریم ورک بوتسترپ",standard:"بدون بوتسترپ",showOnPage:"نمایش نظرسنجی در یک صفحه",showInWindow:"نمایش نظرسنجی در یک پنجره",loadFromServer:"بارگزاری JSON از سرور",titleScript:"اسکریپت و شیوه نمایش",titleHtml:"HTML",titleJavaScript:"جاوااسکریپت"},ts:{selectPage:"صفحه ای را برای آزمایش انتخاب کنید:"},validators:{answercountvalidator:"تعداد پاسخ",emailvalidator:"ایمیل",numericvalidator:"عدد",regexvalidator:"regex",textvalidator:"متن"},triggers:{completetrigger:"تکمیل نظرسنجی",setvaluetrigger:"تنظیم مقدار",visibletrigger:"تغییر وضعیت دیده شدن"},p:{name:"نام",title:{name:"عنوان",title:"اگر خالی باشد مانند نام درج می شود"},survey_title:{name:"عنوان",title:"در تمام صفحات دیده می شود"},page_title:{name:"عنوان",title:"عنوان صفحه"}}};n.a.locales.fa=i},function(e,t,o){"use strict";var n=o(0),i={survey:{edit:"Edytuj",dropQuestion:"Przeciągnij pytanie.",copy:"Kopiuj",addToToolbox:"Dodaj do palety",deletePanel:"Usuń panel",deleteQuestion:"Usuń pytanie",convertTo:"Konwertuj na"},qt:{checkbox:"Wielokrotny wybór",comment:"Komentarz",dropdown:"Lista wyboru",file:"Plik",html:"Html",matrix:"Macierz (jednokrotny wybór)",matrixdropdown:"Matrix (wielokrotny wybór)",matrixdynamic:"Matrix (dynamiczne wiersze)",multipletext:"Wiele linii tekstu",panel:"Panel",paneldynamic:"Panel (dynamiczne panele)",radiogroup:"Jednokrotny wybór",rating:"Ocena",text:"Pojedyncza odpowiedź",boolean:"Prawda/Fałsz",expression:"Wyrażenie"},ed:{survey:"Ankieta",Survey:"Ankieta",editSurvey:"Edytuj ankietę",addNewPage:"Dodaj nową sekcję",deletePage:"Usuń sekcję",editPage:"Edytuj sekcję",newPageName:"sekcja",newQuestionName:"pytanie",newPanelName:"panel",testSurvey:"Testuj ankietę",testSurveyAgain:"Testuj ponownie",testSurveyWidth:"Szerokość ankiety: ",embedSurvey:"Embed Survey",saveSurvey:"Zapisz ankietę",designer:"Projektant ankiety",jsonEditor:"JSON Editor",undo:"Cofnij",redo:"Ponów",options:"Opcje",generateValidJSON:"Generate Valid JSON",generateReadableJSON:"Generate Readable JSON",toolbox:"Paleta",delSelObject:"Usuń wybrany element",correctJSON:"Please correct JSON.",surveyResults:"Wynik ankiety: ",modified:"Zmodyfikowana",saving:"Trwa zapis",saved:"Zapisano"},pel:{isRequired:"Wymagane?"},pe:{apply:"Zastosuj",ok:"OK",cancel:"Anuluj",reset:"Resetuj",close:"Zamknij",delete:"Usuń",addNew:"Dodaj nową",removeAll:"Usuń wszystkie",edit:"Edytuj",empty:"<pusty>",fastEntry:"Szybkie wprowadzanie",formEntry:"Formularz",testService:"Testuj usługę",conditionHelp:"Podaj wyrażenie, które zwróci wartość prawda/fałsz. Jeśli chcesz, aby sekcja lub pytanie pozostały widoczne - powinno zwrócić prawdę. Przykład: {pytanie1} = 'wartość1' or ({pytanie2} * {pytanie4} > 20 and {pytanie3} < 5)",expressionHelp:"Please enter an expression. You may use curly brackets to get access to the question values: '{question1} + {question2}', '({price}*{quantity}) * (100 - {discount})'",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:",propertyIsEmpty:"Podaj wartość",value:"Wartość",text:"Etykieta",columnEdit:"Edit column: {0}",itemEdit:"Edit item: {0}",url:"URL",path:"Path",valueName:"Value name",titleName:"Title name",hasOther:"Czy możliwa własna odpowiedź",otherText:"Other item text",name:"Nazwa",title:"Etykieta",cellType:"Typ komórki",colCount:"Liczba kolumn",choicesOrder:"Kolejność odpowiedzi",visible:"Czy widoczne?",isRequired:"Czy wymagalne?",startWithNewLine:"Czy rozpoczyna się nową linią?",rows:"Liczba wierszy",placeHolder:"Input place holder",showPreview:"Is image preview shown?",storeDataAsText:"Store file content in JSON result as text",maxSize:"Maximum file size in bytes",imageHeight:"Image height",imageWidth:"Image width",rowCount:"Row count",addRowText:"Add row button text",removeRowText:"Remove row button text",minRateDescription:"Opis najniższej oceny",maxRateDescription:"Opis najwyższej oceny",inputType:"Input type",optionsCaption:"Options caption",defaultValue:"Default value",surveyEditorTitle:"Edytuj ankietę",qEditorTitle:"Edytuj: {0}",showTitle:"Pokaż/ukryj tytuł",locale:"Domyślny język",mode:"Tryb (edycja/podgląd)",clearInvisibleValues:"Usuń niewidoczne odpowiedzi",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",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",tabs:{general:"Ogólne",fileOptions:"Options",html:"Html Editor",columns:"Kolumny",rows:"Wiersze",choices:"Odpowiedzi",visibleIf:"Widoczne jeśli",enableIf:"Enable If",rateValues:"Wartość oceny",choicesByUrl:"Odpowiedzi z webserwisu",matrixChoices:"Default Choices",multipleTextItems:"Text Inputs",validators:"Validators",navigation:"Navigation",question:"Question",completedHtml:"Completed Html",loadingHtml:"Loading Html",timer:"Timer/Quiz",triggers:"Triggers",templateTitle:"Template title"},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",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: ",triggerSetValue:"to: ",triggerIsVariable:"Do not put the variable into the survey result."},pv:{true:"prawda",false:"fałsz"},op:{empty:"is empty",notempty:"is not empty",equal:"equals",notequal:"not equals",contains:"contains",notcontains:"not contains",greater:"greater",less:"less",greaterorequal:"greater or equals",lessorequal:"Less or Equals"},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",standard:"No bootstrap",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:"Wybierz stronę, aby ją przetestować:"},validators:{answercountvalidator:"answer count",emailvalidator:"e-mail",numericvalidator:"numeric",regexvalidator:"regex",textvalidator:"text"},triggers:{completetrigger:"complete survey",setvaluetrigger:"set value",visibletrigger:"change visibility"},p:{name:"nazwa",title:{name:"tytuł",title:"Pozostaw pusty, jeśli ma być taki sam, jak 'Nazwa'"},page_title:{name:"tytuł",title:"Tytuł sekcji"}}};n.a.locales.pl=i},function(e,t,o){"use strict";var n=o(0),i={survey:{dropQuestion:"Por favor arraste uma pergunta aqui.",copy:"Copiar",addToToolbox:"Adicionar à toolbox",deletePanel:"Remover Painel",deleteQuestion:"Remover Pergunta"},qt:{checkbox:"Checkbox",comment:"Comentário",dropdown:"Dropdown",file:"Arquivo",html:"Html",matrix:"Matriz (opção única)",matrixdropdown:"Matriz (multiplas opções)",matrixdynamic:"Matriz (linhas dinâmicas)",multipletext:"Texto múltiplo",panel:"Painel",radiogroup:"Radiogroup",rating:"Rating",text:"Texto único"},ed:{addNewPage:"Adicionar Nova Página",newPageName:"página",newQuestionName:"pergunta",newPanelName:"painel",testSurvey:"Testar pesquisa",testSurveyAgain:"Testar pesquisa novamente",testSurveyWidth:"Tamanho do pesquisa: ",embedSurvey:"Incorporar Pesquisa",saveSurvey:"Salvar Pesquisa",designer:"Designer de Pesquisa",jsonEditor:"Editor de JSON",undo:"Desfazer",redo:"Refazer",options:"Opções",generateValidJSON:"Gerar JSON válido",generateReadableJSON:"Gerar JSON legível",toolbox:"Toolbox",delSelObject:"Apagar objeto selecionado",correctJSON:"Por favor corrija o JSON.",surveyResults:"Resultado da pesquisa: "},pel:{isRequired:"Obrigatório?"},pe:{apply:"Aplicar",ok:"OK",cancel:"Cancelar",reset:"Limpar",close:"Fechar",delete:"Apagar",addNew:"Adicionar Novo",removeAll:"Remover Todos",edit:"Editar",empty:"<vazio>",fastEntry:"Entrada Rápida",formEntry:"Entrada com formulário",testService:"Testar o serviço",expressionHelp:"Por favor informe uma expressão boleana. Ela deve retornar verdadeiro para manter a pergunta/página visível. Por exemplo: {´pergunta1} = 'valor1' or ({pergunta2} = 3 and {pergunta3} < 5)",propertyIsEmpty:"Por favor informe um valor na propriedade",value:"Valor",text:"Texto",columnEdit:"Editar coluna: {0}",itemEdit:"Editar item: {0}",hasOther:"Tem outro item",name:"Nome",title:"Título",cellType:"Tipo de célula",colCount:"Contagem de células",choicesOrder:"Selecione a ordem das alternativas",visible:"É visível?",isRequired:"É obrigatório?",startWithNewLine:"Começa com uma nova linha?",rows:"Contagem de linhas",placeHolder:"Texto de referência",showPreview:"Mostra pré-visualização de imagem?",storeDataAsText:"Gravar conteúdo de arquivo no resultado JSON como texto",maxSize:"Tamanho máximo de arquivo em bytes",imageHeight:"Altura da imagem",imageWidth:"Largura da imagem",rowCount:"Contagem de linhas",addRowText:"Texto do botão para adicionar linhas",removeRowText:"Texto do botão para remover linhas",minRateDescription:"Descrição de qualificação mínima",maxRateDescription:"Descrição de qualificação máxima",inputType:"Tipo de entrada",optionsCaption:"Título de opção",qEditorTitle:"Editar pergunta: {0}",tabs:{general:"Geral",fileOptions:"Opções",html:"Editor Html",columns:"Colunas",rows:"Linhas",choices:"Opções",visibleIf:"Visível se",rateValues:"Valores de qualificação",choicesByUrl:"Opções com origem na Web",matrixChoices:"Opções padrão",multipleTextItems:"Entradas de texto",validators:"Validadores"},editProperty:"Editar propriedade '{0}'",items:"[ Items: {0} ]",enterNewValue:"Por favor, informe o valor.",noquestions:"Não há nenhuma pergunta na pesquisa.",createtrigger:"Por favor, crie um gatilho",triggerOn:"Ligado ",triggerMakePagesVisible:"Tornar páginas visíveis:",triggerMakeQuestionsVisible:"Tornar perguntas visíves:",triggerCompleteText:"Completar a pesquisa se obtiver êxito.",triggerNotSet:"O gatilho não está definido",triggerRunIf:"Executar se",triggerSetToName:"Mudar o valor de: ",triggerSetValue:"para: ",triggerIsVariable:"Não colocar a variável no resultado da pesquisa."},op:{empty:"está vazio",notempty:"não está vazio",equal:"é igual",notequal:"não é igual",contains:"contém",notcontains:"não contém",greater:"maior",less:"menor",greaterorequal:"maior ou igual",lessorequal:"menor ou igual"},ew:{angular:"Usar versão Angular",jquery:"Usar versão jQuery",knockout:"Usar versão Knockout",react:"Usar versão React",vue:"Usar versão Vue",bootstrap:"Para framework bootstrap",standard:"Sem bootstrap",showOnPage:"Mostrar pesquisa em uma página",showInWindow:"Mostrar pesquisa em uma janela",loadFromServer:"Carregar JSON da pesquisa de um servidor",titleScript:"Scripts e estilos",titleHtml:"HTML",titleJavaScript:"JavaScript"},p:{name:"nome",title:{name:"título",title:"Deixar vazio se for o mesmo que 'Nome'"},survey_title:{name:"título",title:"Será mostrado em cada página."},page_title:{name:"título",title:"Título de página"}}};n.a.locales.pt=i},function(e,t,o){"use strict";var n=o(0),i={survey:{edit:"编辑",dropQuestion:"请将问题放置于此",copy:"复制",addToToolbox:"添加到工具箱",deletePanel:"删除面板",deleteQuestion:"删除题目",convertTo:"转变为"},qt:{checkbox:"多项选择",comment:"多行文本框",dropdown:"下拉框",file:"文件上传",html:"Html 代码",matrix:"矩阵 (单选题)",matrixdropdown:"矩阵 (下拉框)",matrixdynamic:"矩阵 (动态问题)",multipletext:"文本框组",panel:"面板",paneldynamic:"面板(动态)",radiogroup:"单项选择",rating:"评分",text:"文本框",boolean:"布尔选择",expression:"表达式"},ed:{survey:"调查问卷",editSurvey:"修改",addNewPage:"添加新页面",deletePage:"删除页面",editPage:"编辑页面",newPageName:"页面",newQuestionName:"问题",newPanelName:"面板",testSurvey:"测试问卷",testSurveyAgain:"再次测试问卷",testSurveyWidth:"问卷宽度: ",embedSurvey:"将问卷嵌入网页",saveSurvey:"保存问卷",designer:"问卷设计器",jsonEditor:"JSON 编辑器",undo:"撤销",redo:"恢复",options:"选项",generateValidJSON:"生成 JSON 数据",generateReadableJSON:"生成易读的 JSON 数据",toolbox:"工具箱",delSelObject:"删除所选对象",editSelObject:"编辑所选对象",correctJSON:"请修正 JSON 数据",surveyResults:"问卷结果: ",modified:"已修改",saving:"保存中...",saved:"已保存"},pel:{isRequired:"是否为必填项?"},pe:{apply:"应用",ok:"确定",cancel:"取消",reset:"重置",close:"关闭",delete:"删除",addNew:"新建",removeAll:"全部删除",edit:"编辑器",empty:"<空>",fastEntry:"快速输入",formEntry:"表单输入",testService:"测试服务",showMore:"更多细节请查看文档",conditionHelp:"请输入一个布尔表达式。当布尔值为真,问题/页面可见。例如:{question1} = 'value1' or ({question2} * {question4} > 20 and {question3} < 5)",expressionHelp:"请输入一项条件判断。当条件判断为真时问题/页面将可见。例如: {question1} = 'value1' or ({question2} = 3 and {question3} < 5)",propertyIsEmpty:"请为该属性设定一个值",value:"值",text:"显示文本",columnEdit:"编辑列: {0}",itemEdit:"编辑选项: {0}",hasOther:"可添加其他答案?",otherText:"其他答案文本",url:"URL",path:"Path",valueName:"Value name",titleName:"Title name",name:"题目名",title:"题目文本",cellType:"单元格类型",colCount:"列数",choicesOrder:"设置选项顺序",visible:"是否可见?",isRequired:"是否为必填项?",startWithNewLine:"问题是否新起一行?",rows:"文本框行数",placeHolder:"占位文本",showPreview:"是否显示图像预览?",storeDataAsText:"以 JSON 文本方式存储文件",maxSize:"文件最大尺寸 (Bytes)",imageHeight:"图片高度",imageWidth:"图片宽度",rowCount:"默认行数",addRowText:"添加条目按钮文本",removeRowText:"删除条目按钮文本",minRateDescription:"最小值提示",maxRateDescription:"最大值提示",inputType:"文本框类型",optionsCaption:"下拉框提示语",qEditorTitle:"编辑问题: {0}",showTitle:"显示/隐藏 标题",locale:"默认语言",mode:"模式 (编辑/只读)",clearInvisibleValues:"清除隐藏值",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:"显示页面标题",showPageNumbers:"显示页数",pagePrevText:"前一页按钮文本",pageNextText:"后一页按钮文本",completeText:"完成按钮文本",startSurveyText:"开始按钮文本",showNavigationButtons:"显示导航按钮 (默认导航)",showPrevButton:"显示前一页按钮 (用户可返回至前一页面)",firstPageIsStarted:"调查的第一页面为起始页.",showCompletedPage:"结尾展示完成后的页面 (completedHtml)",goNextPageAutomatic:"回答本页所有问题后,自动跳转到下一页",showProgressBar:"显示进度条",questionTitleLocation:"问题的标题位置",requiredText:"The question required symbol(s)",questionStartIndex:"问题起始标志 (1, 2 or 'A', 'a')",showQuestionNumbers:"显示问题编号",questionTitleTemplate:"问题标题模板, 默认为: '{no}. {require} {title}'",questionErrorLocation:"问题错误定位",focusFirstQuestionAutomatic:"改变页面时聚焦在第一个问题",questionsOrder:"Elements order on the page",maxTimeToFinish:"完成调查的最长时间",maxTimeToFinishPage:"完成调查中页面的最长时间",showTimerPanel:"显示计时器面板",showTimerPanelMode:"显示计时器面板模式",renderMode:"渲染模式",allowAddPanel:"允许添加面板",allowRemovePanel:"允许删除面板",panelAddText:"添加面板文本",panelRemoveText:"删除面板文本",isSinglePage:"在一个页面上展示所有元素",tabs:{general:"通用项",navigation:"导航",question:"问题",completedHtml:"完成后的Html",loadingHtml:"加载中的Html",timer:"问卷计时器",trigger:"触发器",fileOptions:"选项",html:"HTML 编辑器",columns:"设置列",rows:"设置行",choices:"设置选项",visibleIf:"设置可见条件",enableIf:"Enable If",rateValues:"设置评分值",choicesByUrl:"通过 URL 导入选项",matrixChoices:"默认选项",multipleTextItems:"文本输入",validators:"校验规则"},editProperty:"编辑属性: '{0}'",items:"[ 项目数量: {0} ]",enterNewValue:"请设定值",noquestions:"问卷中还没有创建任何问题",createtrigger:"请创建触发器",triggerOn:"当 ",triggerMakePagesVisible:"使页面可见:",triggerMakeQuestionsVisible:"使问题可见:",triggerCompleteText:"如果满足条件,则完成问卷",triggerNotSet:"触发器尚未设置",triggerRunIf:"满足下列条件时执行",triggerSetToName:"修改下列问题值: ",triggerSetValue:"修改为: ",triggerIsVariable:"在问卷提交结果中不要包含该变量"},op:{empty:"为空",notempty:"不为空",equal:"等于",notequal:"不等于",contains:"包含",notcontains:"不包含",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"},validators:{answercountvalidator:"数量检查",emailvalidator:"Email",numericvalidator:"数字",regexvalidator:"正则表达式",textvalidator:"文本"},triggers:{completetrigger:"完成问卷",setvaluetrigger:"设置问题值",visibletrigger:"修改可见性"},p:{commentText:"备注文本",choices:"选项",choicesByUrl:"Url选项",choicesOrder:"选项排序",colCount:"列数",correctAnswer:"正确答案",defaultVaule:"默认选项",description:"说明",enableIf:"允许判断",hasComment:"hasComment",hasOther:"允许其他答案",otherText:"其他答案文本",page:"所在页面",readOnly:"只读",indent:"缩进",isRequired:"必选",requiredErrorText:"requiredErrorText",otherErrorText:"requiredErrorText",startWithNewLine:"允许问题在新行",showTitle:"显示/隐藏 标题",locale:"默认语言",mode:"模式 (编辑/只读)",clearInvisibleValues:"清除隐藏值",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:"显示页面标题",showPageNumbers:"显示页数",pagePrevText:"前一页按钮文本",pageNextText:"后一页按钮文本",completeText:"完成按钮文本",startSurveyText:"开始按钮文本",showNavigationButtons:"显示导航按钮 (默认导航)",showPrevButton:"显示前一页按钮 (用户可返回至前一页面)",firstPageIsStarted:"调查的第一页面为起始页.",showCompletedPage:"结尾展示完成后的页面 (completedHtml)",goNextPageAutomatic:"回答本页所有问题后,自动跳转到下一页",showProgressBar:"显示进度条",questionTitleLocation:"问题的标题位置",requiredText:"The question required symbol(s)",questionStartIndex:"问题起始标志 (1, 2 or 'A', 'a')",showQuestionNumbers:"显示问题编号",questionTitleTemplate:"问题标题模板, 默认为: '{no}. {require} {title}'",questionErrorLocation:"问题错误定位",focusFirstQuestionAutomatic:"改变页面时聚焦在第一个问题",questionsOrder:"页面中元素的顺序",maxTimeToFinish:"完成调查的最长时间",maxTimeToFinishPage:"完成调查中页面的最长时间",showTimerPanel:"显示计时器面板",showTimerPanelMode:"显示计时器面板模式",renderMode:"渲染模式",allowAddPanel:"允许添加面板",allowRemovePanel:"允许删除面板",panelAddText:"添加面板文本",panelRemoveText:"删除面板文本",isSinglePage:"在一个页面上展示所有元素",name:"名字",title:{name:"标题",title:"如果与名字相同,请设置为空值"},survey_title:{name:"标题",title:"问卷标题在每页上都会显示"},page_title:{name:"标题",title:"页面标题"}}};n.a.locales["zh-cn"]=i},function(e,t,o){"use strict";var n=o(0),i={survey:{edit:"Editar",dropQuestion:"Por favor coloque una pregunta aquí de la caja de herramientas en la izquierda.",copy:"Copiar",addToToolbox:"Añadir a la caja de herramientas",deletePanel:"Eliminar Panel",deleteQuestion:"Borrar Pregunta",convertTo:"Convertir a"},qt:{checkbox:"Checkbox",comment:"Comentario",dropdown:"Dropdown",file:"Archivo",html:"Html",matrix:"Matriz (elección única)",matrixdropdown:"Matriz (elección múltiple)",matrixdynamic:"Matriz (filas dinámicas)",multipletext:"Texto múltiple",panel:"Panel",paneldynamic:"Panel (paneles dinámicos)",radiogroup:"Grupo de radio",rating:"Rating",text:"Entrada sencilla",boolean:"Booleano",expression:"Expresión"},ed:{survey:"Encuesta",editSurvey:"Editar Encuesta",addNewPage:"Añadir Nueva Página",deletePage:"Borrar Página",editPage:"Editar Página",newPageName:"página",newQuestionName:"pregunta",newPanelName:"panel",testSurvey:"Probar Encuesta",testSurveyAgain:"Probar Encuesta Otra Vez",testSurveyWidth:"Ancho de Encuesta: ",embedSurvey:"Empotrar Encuesta",saveSurvey:"Guardar Encuesta",designer:"Diseñador de Encuesta",jsonEditor:"Editor de JSON",undo:"Deshacer",redo:"Rehacer",options:"Opciones",generateValidJSON:"Generar JSON válido",generateReadableJSON:"Generar JSON legible",toolbox:"Caja de herramientas",delSelObject:"Borrar objeto seleccionado",editSelObject:"Editar objeto seleccionado",correctJSON:"Por favor corrija JSON.",surveyResults:"Resultado de Encuesta: ",modified:"Modificado",saving:"Salvando",saved:"Salvado"},pel:{isRequired:"Requerido?"},pe:{apply:"Aplicar",ok:"OK",cancel:"Cancelar",reset:"Restaurar",close:"Cerrar",delete:"Borrar",addNew:"Añadir nuevo",addItem:"Click para añadir articulo...",removeAll:"Quitar todos",edit:"Editar",move:"Mover",empty:"<vacío>",fastEntry:"Entrada rápida",formEntry:"Entrar en forma",testService:"Pruebe el servicio",conditionSelectQuestion:"Seleccionar pregunta...",conditionButtonAdd:"Añadir",conditionButtonReplace:"Reemplazar",conditionHelp:"Por favor proporcione una expresión booleana. Debería regresar verdadero para mantener la pregunta/página visible. Por ejemplo: {pregunta1} = 'valor1' or ({pregunta2} * {pregunta4} > 20 and {pregunta3} < 5)",expressionHelp:"Por favor proporcione una expresión. Puede hacer uso de llaves para tener acceso a los valores de la pregunta: '{pregunta1} + {pregunta2}', '({precio}*{cantidad}) * (100 - {descuento})'",aceEditorHelp:"Presione ctrl+espacio para obtener un indicio de completado de expresión",aceEditorRowTitle:"Fila actual",aceEditorPanelTitle:"Panel actual",showMore:"Por favor use la documentación para más detalles",assistantTitle:"Preguntas disponibles:",propertyIsEmpty:"Por favor proporcione un valor",value:"Valor",text:"Texto",columnEdit:"Editar columna: {0}",itemEdit:"Editar artículo: {0}",url:"URL",path:"trayecto",valueName:"Nombre del valor",titleName:"Título",hasOther:"Tiene otro artículo",otherText:"Texto de otro artículo",name:"Nombre",title:"Título",cellType:"Tipo de celda",colCount:"Conteo de columnas",choicesOrder:"Orden de selección de elecciones",visible:"Es visible?",isRequired:"Es requerido?",startWithNewLine:"Es inicio con nueva línea?",rows:"Conteo de filas",placeHolder:"Marcador de entrada",showPreview:"Se muestra avance de imagen?",storeDataAsText:"Guardar contenido de archivo en resultado JSON como texto",maxSize:"Tamaño máximo de archivo en bytes",imageHeight:"Altura de imagen",imageWidth:"Ancho de imagen",rowCount:"Conteo de filas",addRowText:"Añadir texto de boton de fila",removeRowText:"Quitar texto de boton de fila",minRateDescription:"Descripción de la tasa mínima",maxRateDescription:"Descripción de la tarifa máxima",inputType:"Tipo de entrada",optionsCaption:"Leyenda de opciones",defaultValue:"Valor de defecto",surveyEditorTitle:"Editar ajustes de encuesta",qEditorTitle:"Editar: {0}",showTitle:"Mostrar/esconder título",locale:"Lenguaje de defecto",mode:"Modo (editar/solo lectura)",clearInvisibleValues:"Borrar valores invisibles",cookieName:"Nombre de Cookie (para deshabilitar corra encuesta dos veces localmente)",sendResultOnPageNext:"Mandar resultados de encuesta en página siguiente",storeOthersAsComment:"Guardar valor 'otros' en campo separado",showPageTitles:"Mostrar títulos de página",showPageNumbers:"Mostrar números de página",pagePrevText:"Texto de botón de página previa",pageNextText:"Texto de botón de página próxima",completeText:"Texto de botón de completado",startSurveyText:"Texto de botón de inicio",showNavigationButtons:"Mostrar botones de navigación (navegación de defecto)",showPrevButton:"Mostrar botón previo (el usuario puede regresar en página previa)",firstPageIsStarted:"La primera página en la encuesta es una página iniciada.",showCompletedPage:"Mostrar la página completada al final (completedHtml)",goNextPageAutomatic:"Al contestar todas las preguntas, ir a la próxima página automáticamente",showProgressBar:"Mostrar barra de progreso",questionTitleLocation:"Localización de título de pregunta",requiredText:"La pregunta requiere de símbolo(s)",questionStartIndex:"Índice de inicio de pregunta (1, 2 o 'A', 'a')",showQuestionNumbers:"Mostrar números de preguntas",questionTitleTemplate:"Plantilla de título de pregunta, defecto es: '{no}. {require} {title}'",questionErrorLocation:"Localización de error de pregunta",focusFirstQuestionAutomatic:"Foco en primera pregunta al cambiar la página",questionsOrder:"Órden de elementos en la página",maxTimeToFinish:"Tiempo máximo para finalizar la encuesta",maxTimeToFinishPage:"Tiempo máximo para finalizar una página en la encuesta",showTimerPanel:"Mostrar panel de temporizador",showTimerPanelMode:"Modo de muestra de panel de temporizador",renderMode:"Modo de interpretador",allowAddPanel:"Permitir adición de un panel",allowRemovePanel:"Permitir remoción del panel",panelAddText:"Añadiendo texto de panel",panelRemoveText:"Quitando texto de panel",isSinglePage:"Mostrar todos los elementos en una página",tabs:{general:"General",fileOptions:"Opciones",html:"Editor Html",columns:"Columnas",rows:"Filas",choices:"Opciones",visibleIf:"Visible Si",enableIf:"Habilitar Si",rateValues:"Valores de tasa",choicesByUrl:"Opciones de la Web",matrixChoices:"Opciones de defecto",multipleTextItems:"Entradas de texto",validators:"Validadores",navigation:"Navegación",question:"Pregunta",completedHtml:"Html Completado",loadingHtml:"Cargando Html",timer:"Temporizador/Quiz",triggers:"Disparadores",templateTitle:"Título de plantilla"},editProperty:"Editar propiedad '{0}'",items:"[ Items: {0} ]",enterNewValue:"Por favor, proporcione el valor.",noquestions:"No hay ni una pregunta en la encuesta.",createtrigger:"Por favor cree un disparador",triggerOn:"En ",triggerMakePagesVisible:"Hacer páginas visibles:",triggerMakeQuestionsVisible:"Hacer elementos visibles:",triggerCompleteText:"Complete la encuesta en caso de éxito.",triggerNotSet:"El disparador no está configurado",triggerRunIf:"Correr si",triggerSetToName:"Cambiar valor de: ",triggerSetValue:"a: ",triggerIsVariable:"No poner la variable en el resultado de la encuesta."},pv:{true:"verdadero",false:"falso"},op:{empty:"es vacío",notempty:"no es vacío",equal:"igual a",notequal:"no igual a",contains:"contiene",notcontains:"no contiene",greater:"mayor",less:"menor",greaterorequal:"mayor o igual a",lessorequal:"menor or igual a"},ew:{angular:"Use versión Angular",jquery:"Use versión jQuery",knockout:"Use versión Knockout",react:"Use versión React",vue:"Use versión Vue",bootstrap:"Para entorno bootstrap",standard:"No bootstrap",showOnPage:"Mostrar encuesta en una página",showInWindow:"Mostrar encuesta en una ventana",loadFromServer:"Cargar JSON de encuesta del servidor",titleScript:"Scripts y estilos",titleHtml:"HTML",titleJavaScript:"JavaScript"},ts:{selectPage:"Seleccione la página para probarla:"},validators:{answercountvalidator:"cuenta de respuestas",emailvalidator:"e-mail",numericvalidator:"numerico",regexvalidator:"regex",textvalidator:"texto"},triggers:{completetrigger:"encuesta completa",setvaluetrigger:"valor ajustado",visibletrigger:"cambio de visibilidad"},p:{name:"nombre",title:{name:"título",title:"Dejarlo vacío, si es igual que 'Nombre'"},page_title:{name:"título",title:"Título de página"}}};n.a.locales.es=i},function(e,t,o){"use strict";var n=o(3),i=o(2);o.n(i);o.d(t,"a",function(){return s});var r=function(e){function t(t,o){var n=e.call(this)||this;return n.baseUrl=t,n.accessKey=o,n}return n.a(t,e),t.prototype.getActiveSurveys=function(e){var t=new XMLHttpRequest;t.open("GET",this.baseUrl+"/getActive?accessKey="+this.accessKey),t.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),t.onload=function(){var o=t.response?JSON.parse(t.response):null;e(200==t.status,o,t.response)},t.send()},t.prototype.createSurvey=function(e,t){var o=new XMLHttpRequest;o.open("GET",this.baseUrl+"/create?accessKey="+this.accessKey+"&name="+e),o.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),o.onload=function(){var e=o.response?JSON.parse(o.response):null;t(200==o.status,e,o.response)},o.send()},t.prototype.saveSurvey=function(e,t,o){var n=new XMLHttpRequest;n.open("POST",this.baseUrl+"/changeJson?accessKey="+this.accessKey),n.setRequestHeader("Content-Type","application/json;charset=UTF-8"),n.onload=function(){var e=n.response?JSON.parse(n.response):null;!!o&&o(200==n.status,e,n.response)},n.send(JSON.stringify({Id:e,Json:t,Text:t}))},t.prototype.updateSurveyName=function(e,t,o){var n=new XMLHttpRequest;n.open("GET",this.baseUrl+"/changeName/"+e+"?accessKey="+this.accessKey+"&name="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=n.response?JSON.parse(n.response):null;!!o&&o(200==n.status,e,n.response)},n.send()},t}(i.dxSurveyService),a=function(){function e(e,t,o,n,i){void 0===e&&(e=ko.observable("")),void 0===t&&(t=new Date(Date.now()).toDateString()),void 0===o&&(o=""),void 0===n&&(n=""),void 0===i&&(i=""),this.name=e,this.createdAt=t,this.id=o,this.resultId=n,this.postId=i}return e}(),s=function(){function e(t,o,n){var i=this;this.baseUrl=t,this.accessKey=o,this.editor=n,this.isEditMode=ko.observable(!1),this.surveyId=ko.observable(),this.surveys=ko.observableArray(),this.currentSurvey=ko.observable(),this.currentSurveyName=ko.observable(""),this.isLoading=ko.observable(!1),this.nameEditorKeypress=function(e,t){13===t.keyCode?i.edit(e,t):27===t.keyCode&&i.isEditMode(!1)};var a=window.location.hash;if(0===a.indexOf("#")&&this.surveyId(a.slice(1)),this.api=new r(t+e.serviceUrlPath,o),n.isAutoSave=!0,n.showState=!0,n.saveSurveyFunc=function(e,t){n.surveyId||i.surveyId()||i.addHandler(function(o){return t(e,o)}),(n.surveyId||i.surveyId())&&i.api.saveSurvey(n.surveyId||i.surveyId(),n.text,function(o){return t(e,o)})},this.surveys(this.getSurveys()),this.surveyId()){var s=this.surveys().filter(function(e){return e.id===i.surveyId()})[0];s?(this.currentSurvey(s),this.surveyId(void 0)):n.loadSurvey(this.surveyId())}else this.currentSurvey(this.surveys()[0]);var l=function(e){if(e){if(i.surveyId(void 0),window.location.hash="#"+e.id,n.surveyId===e.id)return;n.loadSurvey(e.id),n.surveyId=e.id,n.surveyPostId=e.postId}else i.surveyId()||(n.surveyId="",n.surveyPostId="",window.location.hash="",n.text="")};this.currentSurvey.subscribe(l),l(this.currentSurvey());var d=ko.observable(!1);ko.computed(function(){var e=i.currentSurvey();d(!1),e&&i.api.updateSurveyName(e.id,e.name.peek(),function(e){d(e)})}),this.toolbarItem={id:"svd-attach-survey",template:"attach-survey",visible:d,action:ko.computed(function(){return"https://dxsurvey.com/Home/AttachSurvey/"+(i.currentSurvey()&&i.currentSurvey().id)}),css:"link-to-attach",innerCss:"icon-cloud",title:"Attach survey to your SurveyJS service account..."}}return e.prototype.getSurveys=function(){return JSON.parse(window.localStorage.getItem(e.StorageKey)||"[]").map(function(e){return new a(ko.observable(e.name),e.createdAt,e.id,e.resultId,e.postId)})},e.prototype.setSurveys=function(t){window.localStorage.setItem(e.StorageKey,ko.toJSON(t))},e.prototype.edit=function(e,t){var o=this.currentSurvey();o&&(this.isEditMode()?(o.name(this.currentSurveyName()),this.setSurveys(this.surveys()),this.api.updateSurveyName(o.id,o.name()),this.isEditMode(!1)):(this.currentSurveyName(o.name()),this.isEditMode(!0),$(t.target).parents(".svd-manage").find("input").focus()))},e.prototype.addHandler=function(e){var t=this;this.isLoading(!0),this.api.createSurvey("NewSurvey",function(o,n,i){var r=new a(ko.observable(n.Name),n.CreatedAt,n.Id,n.ResultId,n.PostId);t.surveys.push(r),t.setSurveys(t.surveys()),t.editor.surveyId=n.Id,t.editor.surveyPostId=n.PostId,t.api.saveSurvey(n.Id,t.editor.text),t.currentSurvey(r),t.isLoading(!1),e&&e(o,n,i)})},e.prototype.add=function(){this.addHandler()},e.prototype.remove=function(){confirm("Do you really want to remove current survey?")&&(this.surveys.remove(this.currentSurvey()),this.setSurveys(this.surveys()),this.currentSurvey(this.surveys()[0]))},Object.defineProperty(e.prototype,"cssEdit",{get:function(){return this.isEditMode()?"icon-saved":"icon-edit"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cssAdd",{get:function(){return this.surveyId()?"icon-fork":"icon-new"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleEdit",{get:function(){return this.isEditMode()?"Save survey name":"Edit survey name"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"titleAdd",{get:function(){return this.surveyId()?"Fork this survey":"Add new survey"},enumerable:!0,configurable:!0}),e}();s.serviceUrlPath="/api/MySurveys",s.StorageKey="mySurveys"},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(5)),r=o(0),a=o(112);o.n(a);o.d(t,"a",function(){return s});var s=function(){function e(e,t){var o=this;this.editor=e,this.element=t,this.isNeedAutoScroll=!0,this._selectedPage=n.observable(),this.pageSelection=n.computed({read:function(){return o._selectedPage()},write:function(e){e&&"function"==typeof e.getType?o.selectedPage=e:o.editor.pages().length>0&&o.addPage()}}),this.onPageClick=function(e,t){o.isNeedAutoScroll=!1,o.editor.selectPage(e),t.stopPropagation(),o.updateMenuPosition()},this.getPageClass=function(e){var t=e===o.selectedPage?"svd_selected_page svd-light-bg-color":"";return o.editor.pages().indexOf(e)!==o.editor.pages().length-1&&(t+=" svd-border-right-none"),t},this.getPageMenuIconClass=function(e){return e===o.selectedPage&&o.isActive()?"icon-gearactive":"icon-gear"},this.showActions=function(e){return e===o.selectedPage&&o.isActive()},this.pagesSelection=n.computed(function(){return o.editor.pages().concat([{name:o.getLocString("ed.addNewPage")}])}),this._selectedPage(this.editor.pages()[0]),this.editor.koSelectedObject.subscribe(function(e){o.isActive()&&(o._selectedPage(e.value),o.isNeedAutoScroll?o.scrollToSelectedPage():o.isNeedAutoScroll=!0)})}return e.prototype.addPage=function(){this.editor.addPage()},e.prototype.copyPage=function(e){this.editor.copyPage(e)},e.prototype.deletePage=function(){this.editor.deletePage()},e.prototype.showPageSettings=function(e){this.editor.showQuestionEditor(e)},Object.defineProperty(e.prototype,"sortableOptions",{get:function(){var e=this;return{onEnd:function(t){e.isNeedAutoScroll=!1,e.editor.movePage(t.oldIndex,t.newIndex)},handle:".svd-page-name",animation:150}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedPage",{get:function(){return this._selectedPage()},set:function(e){this.editor.selectPage(e)},enumerable:!0,configurable:!0}),e.prototype.isLastPage=function(){return 1===this.editor.pages().length},e.prototype.moveLeft=function(e,t){this.element.querySelector(".svd-pages").scrollLeft-=50,this.updateMenuPosition()},e.prototype.moveRight=function(e,t){this.element.querySelector(".svd-pages").scrollLeft+=50,this.updateMenuPosition()},e.prototype.scrollToSelectedPage=function(){var e=this.element.querySelector(".svd-pages");if(e){var t=this.editor.pages().indexOf(this.selectedPage),o=e.children[t];o&&(e.scrollLeft=o.offsetLeft-e.offsetLeft-e.offsetWidth/2,this.updateMenuPosition())}},e.prototype.onWheel=function(e,t){var o=e.element.querySelector(".svd-pages");t=t||window.event,t.originalEvent&&(t=t.originalEvent);var n=t.deltaY||t.detail||t.wheelDelta;o.scrollLeft-=n,t.preventDefault?t.preventDefault():t.returnValue=!1,this.updateMenuPosition()},e.prototype.updateMenuPosition=function(){for(var e=this.element.querySelector(".svd-pages"),t=e.getElementsByClassName("svd-page-actions"),o=0;o<t.length;o++)t[o].style.left=t[o].parentElement.offsetLeft-e.scrollLeft+"px"},e.prototype.getLocString=function(e){return r.a.getString(e)},e.prototype.isActive=function(){var e=this.editor.koSelectedObject();if(e)return i.b.getObjectType(e.value)===i.a.Page},e}();n.components.register("pages-editor",{viewModel:{createViewModel:function(e,t){return new s(e.editor,t.element)}},template:{element:"svd-page-selector-template"}})},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(6)),s=o(0),l=o(4);o.d(t,"a",function(){return d});var d=function(e){function t(t){var o=e.call(this,t)||this;return o.koRows=i.observableArray(),o.koColumns=i.observableArray(),o.koCanEdit=i.observable(!1),o}return n.a(t,e),t.prototype.getValueText=function(e){var t=e?"notEmpty":"empty";return s.a.getString("pe."+t)},t.prototype.beforeShow=function(){e.prototype.beforeShow.call(this),this.setupCells()},t.prototype.onBeforeApply=function(){if(this.canEdit){var e=new r.QuestionMatrix("");e.setSurveyImpl(this.object.survey),e.rows=this.rows,e.columns=this.columns,e.cells=this.object.cells;for(var t=this.koRows(),o=0;o<t.length;o++)for(var n=t[o],i=n.koCells(),a=0;a<e.columns.length;a++)n.rowIndex<0?e.setDefaultCellText(a,i[a].text()):e.setCellText(t[o].rowIndex,a,i[a].text());e.cells.isEmpty?this.koValue(null):this.koValue(e.cells)}},Object.defineProperty(t.prototype,"editorType",{get:function(){return"cells"},enumerable:!0,configurable:!0}),t.prototype.onValueChanged=function(){this.isShowingModal&&this.setupCells()},Object.defineProperty(t.prototype,"canEdit",{get:function(){return this.rows.length>0&&this.columns.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rows",{get:function(){return this.object&&this.object.rows?this.object.rows:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.object&&this.object.columns?this.object.columns:[]},enumerable:!0,configurable:!0}),t.prototype.getCellText=function(e,t){return e<0?this.object.getDefaultCellText(t):this.object.getCellText(e,t)},t.prototype.setupCells=function(){if(this.koRows([]),this.koColumns([]),this.koCanEdit(this.canEdit),this.canEdit){for(var e=[],t=0;t<this.columns.length;t++)e.push(this.columns[t].text);var o=[];o.push(this.createRow(-1,s.a.getString("pe.cellsDefaultRow")));for(var t=0;t<this.rows.length;t++)o.push(this.createRow(t,this.rows[t].text));this.koColumns(e),this.koRows(o)}},t.prototype.createRow=function(e,t){for(var o={rowIndex:e,rowText:t,koCells:i.observableArray()},n=[],r=0;r<this.columns.length;r++)n.push({text:i.observable(this.getCellText(e,r))});return o.koCells(n),o},t}(a.a);l.a.registerEditor("cells",function(e){return new d(e)})},function(e,t,o){"use strict";function n(e,t,o,n){void 0===n&&(n=null);var i=[],r=o.question,a=(o.questions||[]).filter(function(e){return e!==r});if(a||r instanceof s.MatrixDropdownColumn||r.data instanceof s.QuestionPanelDynamicItem)if("row"===e&&r instanceof s.MatrixDropdownColumn)i=r.colOwner.columns.filter(function(e){return e.name!==r.name}).map(function(e){return{name:"",value:"{row."+e.name+"}",some:"",meta:e.title,identifierRegex:m}});else if("panel"===e&&r.data instanceof s.QuestionPanelDynamicItem){var l=r.data.panel;i=l.elements.filter(function(e){return e.name!==r.name}).map(function(e){return{name:"",value:"{panel."+e.name+"}",some:"",meta:e.name,identifierRegex:m}})}else{var d=p.filter(function(e){return!t||-1!==e.value.indexOf(t)}),u=a.filter(function(e){return!t||-1!==e.name.indexOf(t)});r instanceof s.MatrixDropdownColumn?i.push({name:"",value:"{row.",some:"",meta:c.a.getString(c.b.pe.aceEditorRowTitle),identifierRegex:m}):r.data instanceof s.QuestionPanelDynamicItem&&i.push({name:"",value:"{panel.",some:"",meta:c.a.getString(c.b.pe.aceEditorPanelTitle),identifierRegex:m}),i=i.concat(u.map(function(e){return{completer:n,name:"",value:"{"+e.name+"}",some:"",meta:e.title,identifierRegex:m}})).concat(d.map(function(e){return{name:"",value:e.value,some:"",meta:e.title,identifierRegex:m}}))}return i}function i(e,t){if(e.completer.completions.filterText)for(var o,n=e.selection.getAllRanges(),i=0;o=n[i];i++){o.start.column-=e.completer.completions.filterText.length;var r=e.session.getTextRange(o);if(0!==r.indexOf("{")){var a=o.clone();a.start.column--,0===e.session.getTextRange(a).indexOf("{")&&(o=a)}e.session.remove(o)}e.execCommand("insertstring",t.value||t)}var r=o(3),a=o(1),s=(o.n(a),o(2)),l=(o.n(s),o(6)),d=o(4),c=o(0);o.d(t,"a",function(){return u});var u=function(e){function t(o,n,i){void 0===n&&(n="condition"),void 0===i&&(i="createCondition");var r=e.call(this,o)||this;r._type=n,r.syntaxCheckMethodName=i,r.availableOperators=[],r.isValueChanging=!1,r.availableOperators=d.a.getOperators(),r.koIsValid=a.observable(!0),r.koAddConditionQuestions=a.observableArray(),r.koAddConditionQuestion=a.observable(""),r.koAddConditionOperator=a.observable(""),r.koAddConditionValue=a.observable(""),r.koAddConditionType=a.observable("and"),r.koHasValueSurvey=a.observable(!1),r.koValueSurvey=a.observable(t.emptySurvey);var s=r;return r.koAddConditionQuestion.subscribe(function(e){s.onValueSurveyChanged(e,s.koAddConditionOperator())}),r.koAddConditionOperator.subscribe(function(e){s.onValueSurveyChanged(s.koAddConditionQuestion(),e)}),r.koAddConditionValue.subscribe(function(e){s.koHasValueSurvey()&&(s.isValueChanging=!0,s.koValueSurvey().setValue("question",JSON.parse(e)),s.isValueChanging=!1)}),r.koCanAddCondition=a.computed(function(){return""!=this.koAddConditionQuestion()&&void 0!=this.koAddConditionQuestion()&&""!=this.koAddConditionOperator()&&(!this.koAddContionValueEnabled()||""!=this.koAddConditionValue())},r),r.koShowAddConditionType=a.computed(function(){if(!this.koIsValid())return!1;var e=this.koTextValue();return e&&(e=e.trim()),e},r),r.koAddConditionButtonText=a.computed(function(){var e=this.koIsValid()?"conditionButtonAdd":"conditionButtonReplace";return c.a.getString("pe."+e)},r),r.koAddContionValueEnabled=a.computed(function(){return s.canShowValueByOperator(s.koAddConditionOperator())},r),r.onConditionAddClick=function(){s.addCondition()},r.resetAddConditionValues(),r}return r.a(t,e),t.prototype.setObject=function(t){e.prototype.setObject.call(this,t),this.koAddConditionQuestions(this.allCondtionQuestions)},Object.defineProperty(t.prototype,"editorType",{get:function(){return this._type},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"availableQuestions",{get:function(){return this.object instanceof s.MatrixDropdownColumn?this.object.colOwner.survey.getAllQuestions():this.object&&this.object.survey&&this.object.survey.getAllQuestions()||[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allCondtionQuestions",{get:function(){if(!this.object)return[];for(var e=[],t=this.availableQuestions,o=0;o<t.length;o++)this.addConditionQuestionNames(t[o],e);return this.addMatrixColumnsToCondtion(e),this.addPanelDynamicQuestionsToCondition(e),e.sort(),e},enumerable:!0,configurable:!0}),t.prototype.addConditionQuestionNames=function(e,t){e!=this.object&&e.addConditionNames(t)},t.prototype.addMatrixColumnsToCondtion=function(e){if(this.object instanceof s.MatrixDropdownColumn&&this.object&&this.object.colOwner&&this.object.colOwner.columns)for(var t=this.object.colOwner.columns,o=0;o<t.length;o++)t[o]!=this.object&&e.push("row."+t[o].name)},t.prototype.addPanelDynamicQuestionsToCondition=function(e){if(this.object.data instanceof s.QuestionPanelDynamicItem){for(var t=this.object.data.panel,o=[],n=0;n<t.questions.length;n++){var i=t.questions[n];i.name!=this.object.name&&this.addConditionQuestionNames(i,o)}for(var n=0;n<o.length;n++)e.push("panel."+o[n])}},t.prototype.onValueSurveyChanged=function(e,t){if(!(this.canShowValueByOperator(t)&&e&&this.object&&this.object.survey))return void this.koHasValueSurvey(!1);var o=this.getQuestionConditionJson(e,t);this.koHasValueSurvey(o&&o.type),this.koHasValueSurvey()&&this.koValueSurvey(this.createValueSurvey(o))},t.prototype.createValueSurvey=function(e){e.name="question",e.title=c.a.getString("pe.conditionValueQuestionTitle"),delete e.visible,delete e.visibleIf,delete e.enable,delete e.enableIf;var t={questions:[],showNavigationButtons:!1,showQuestionNumbers:"off"};t.questions.push(e);var o=new s.Survey(t),n=this;return o.onValueChanged.add(function(e,t){n.isValueChanging||n.koAddConditionValue(JSON.stringify(t.value))}),o},t.prototype.getQuestionConditionJson=function(e,t){var o="",n=e.indexOf(".");n>-1&&(o=e.substr(n+1),e=e.substr(0,n),(n=e.indexOf("["))>-1&&(e=e.substr(0,n)));var i=this.object.survey.getQuestionByName(e),r=i&&i.getConditionJson?i.getConditionJson(t,o):null;return r&&("text"!==r.type||r.inputType)?r:null},t.prototype.canShowValueByOperator=function(e){return"empty"!=e&&"notempty"!=e},Object.defineProperty(t.prototype,"hasAceEditor",{get:function(){return"undefined"!=typeof ace&&void 0!==ace.require("ace/ext/language_tools")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"addConditionQuestionOptions",{get:function(){return c.a.getString("pe.conditionSelectQuestion")},enumerable:!0,configurable:!0}),t.prototype.addCondition=function(){if(this.koCanAddCondition()){var e="";this.koShowAddConditionType()&&(e=this.koTextValue()+" "+this.koAddConditionType()+" "),e+="{"+this.koAddConditionQuestion()+"} "+this.getAddConditionOperator(),this.koAddContionValueEnabled()&&(e+=" "+this.getAddConditionValue()),this.koTextValue(e),this.resetAddConditionValues()}},t.prototype.getAddConditionOperator=function(){var e=this.koAddConditionOperator();return"equal"==e?"=":"notequal"==e?"<>":"greater"==e?">":"less"==e?"<":"greaterorequal"==e?">=":"lessorequal"==e?"<=":e},t.prototype.getAddConditionValue=function(){var e=this.koAddConditionValue();return e?"true"==e||"false"==e?e:isNaN(e)?"["==e[0]?e:(this.isQuote(e[0])||(e="'"+e),this.isQuote(e[e.length-1])||(e+="'"),e):e:e},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t.prototype.onkoTextValueChanged=function(e){if(e){var t=new s.ConditionsParser;t[this.syntaxCheckMethodName](e),this.koIsValid(!t.error)}else this.koIsValid(!0)},t.prototype.resetAddConditionValues=function(){this.koAddConditionQuestion(""),this.koAddConditionOperator("equal"),this.koAddConditionValue("")},t}(l.b);u.emptySurvey=new s.Survey,d.a.registerEditor("condition",function(e){return new u(e,"condition","createCondition")}),d.a.registerEditor("expression",function(e){return new u(e,"expression","parseExpression")});var p=[{value:"and",title:"logical 'and' operator"},{value:"&&",title:"logical 'and' operator"},{value:"or",title:"logical 'or' operator"},{value:"||",title:"logical 'or' operator"},{value:"empty",title:"returns true if the left operand is empty\t{questionName} empty"},{value:"notempty",title:"returns true if the left operand is not empty\t{questionName} notempty"},{value:"=",title:"returns true if two values are equal\t{questionName} = 5, {questionName} == 'abc', {questionName} equal 124"},{value:"==",title:"returns true if two values are equal\t{questionName} = 5, {questionName} == 'abc', {questionName} equal 124"},{value:"equal",title:"returns true if two values are equal\t{questionName} = 5, {questionName} == 'abc', {questionName} equal 124"},{value:"<>",title:"returns true if two values are not equal\t{questionName} <> 5, {questionName} != 'abc', {questionName} notequal 124"},{value:"!=",title:"returns true if two values are not equal\t{questionName} <> 5, {questionName} != 'abc', {questionName} notequal 124"},{value:"notequal",title:"returns true if two values are not equal\t{questionName} <> 5, {questionName} != 'abc', {questionName} notequal 124"},{value:">",title:"returns true if the left operand greater then the second operand\t{questionName} > 2, {questionName} greater 'a'"},{value:"greater",title:"returns true if the left operand greater then the second operand\t{questionName} > 2, {questionName} greater 'a'"},{value:"<",title:"returns true if the left operand less then the second operand\t{questionName} < 2, {questionName} less 'a'"},{value:"less",title:"returns true if the left operand less then the second operand\t{questionName} < 2, {questionName} less 'a'"},{value:">=",title:"returns true if the left operand equal or greater then the second operand\t{questionName} >= 2, {questionName} greaterorequal 'a'"},{value:"greaterorequal",title:"returns true if the left operand equal or greater then the second operand\t{questionName} >= 2, {questionName} greaterorequal 'a'"},{value:"<=",title:"returns true if the left operand equal or less then the second operand\t{questionName} <= 2, {questionName} lessorequal 'a'"},{value:"lessorequal",title:"returns true if the left operand equal or less then the second operand\t{questionName} <= 2, {questionName} lessorequal 'a'"},{value:"contains",title:"return true if the left operand is an array and it contains a value of the second operand\t{questionName} contains 'a'"},{value:"notcontains",title:"return true if the left operand is an array and it does not contain a value of the second operand"}],h=function(e,t){e=e||"";var o=new Array,n=new s.ConditionsParser;if(n[t](e),e&&n.error){var i=e.substring(0,n.error.at),r=i.length-i.lastIndexOf("\n"),a={row:e.match(/\n/g)?e.match(/\n/g).length:0,column:r,text:n.error.code+" ("+r+")",type:"error"};o.push(a)}return o},m=/[a-zA-Z_0-9{\*\/\<\>\=\!\$\.\-\u00A2-\uFFFF]/;a.bindingHandlers.aceEditor={init:function(e,t){var o=t(),r=ace.require("ace/ext/language_tools"),s=ace.require("ace/autocomplete/util"),l=ace.edit(e),d=o.editor,c=!1;l.setOption("useWorker",!1),l.getSession().on("change",function(){var e=h(l.getValue(),d.syntaxCheckMethodName);c=!0,d.koTextValue(l.getValue()),c=!1,l.getSession().setAnnotations(e)});var u=function(){c||l.setValue(d.koTextValue()||"")},p=d.koTextValue.subscribe(u);u();var v={identifierRegexps:[m],insertMatch:i,getCompletions:function(e,t,i,r,a){a(null,n(s.retrievePrecedingIdentifier(t.getLine(i.row),i.column-1),r,o,v))},getDocTooltip:function(e){e.docHTML="<div style='max-width: 300px; white-space: normal;'>"+e.meta+"</div>"}};r.setCompleters([v]),l.setOptions({enableBasicAutocompletion:!0,enableLiveAutocompletion:!0}),a.utils.domNodeDisposal.addDisposeCallback(e,function(){l.destroy(),p.dispose()}),l.focus()}}},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(6)),s=o(0),l=o(4);o.d(t,"a",function(){return d});var d=function(e){function t(t){var o=e.call(this,t)||this;return o.koSurvey=i.observable(new r.Survey),o}return n.a(t,e),t.prototype.getValueText=function(e){return e?JSON.stringify(e):s.a.getString("pe.empty")},t.prototype.beforeShow=function(){e.prototype.beforeShow.call(this),this.createSurvey()},t.prototype.onBeforeApply=function(){this.survey&&this.setValueCore(this.survey.getValue(this.object.name))},Object.defineProperty(t.prototype,"editorType",{get:function(){return"value"},enumerable:!0,configurable:!0}),t.prototype.createSurvey=function(){var e=(new r.JsonObject).toJsonObject(this.object);e.type=this.getJsonType(this.object.getType()),e.titleLocation="hidden",delete e.visible,delete e.visibleIf,delete e.enable,delete e.enableIf;var t={questions:[],showNavigationButtons:!1};t.questions.push(e),this.survey=new r.Survey(t),this.survey.setValue(this.object.name,this.editingValue),this.koSurvey(this.survey)},t.prototype.getJsonType=function(e){return"expression"!=e?e:"text"},t}(a.a);l.a.registerEditor("value",function(e){return new d(e)})},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(0)),s=o(4),l=o(8),d=o(15),c=o(14),u=o(9);o.d(t,"a",function(){return p});var p=function(e){function t(t){var o=e.call(this,t)||this;o.optionsShowTextView=!0,o.koShowTextView=i.observable(!0);var n=o;return t&&(o.detailDefinition=d.a.definition[o.getItemValueClassName()]),o.columnsValue=o.createColumns(),o.koActiveView=i.observable("form"),o.koItemsText=i.observable(""),o.koActiveView.subscribe(function(e){"form"==e?n.updateItems(n.koItemsText()):n.koItemsText(n.getItemsText())}),o.changeToTextViewClick=function(){n.koActiveView("text")},o.changeToFormViewClick=function(){n.koActiveView("form")},o}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"itemvalues"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasDetailButton",{get:function(){return!!this.detailDefinition},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.columnsValue},enumerable:!0,configurable:!0}),t.prototype.getItemValueClassName=function(){return this.property?this.editorType+"@"+this.property.name:""},t.prototype.getEditorName=function(){return this.koEditItem()&&this.koEditItem().item?a.a.getString("pe.itemEdit").format(this.koEditItem().item.value):""},t.prototype.checkForErrors=function(){for(var e=!1,t=0;t<this.koItems().length;t++){e=this.koItems()[t].hasError()||e}return e},t.prototype.beforeShow=function(){e.prototype.beforeShow.call(this);var t=this.getDefinedProperties();t&&t.length>0&&(this.columnsValue=this.createColumns())},t.prototype.getProperties=function(){var e=this.getDefinedProperties();return e&&e.length>0?e:this.getDefaultProperties()},Object.defineProperty(t.prototype,"itemValueClasseName",{get:function(){var e=this.property?this.property.type:"itemvalue";return e==this.editorType&&(e="itemvalue"),e},enumerable:!0,configurable:!0}),t.prototype.getDefinedProperties=function(){if(this.property&&this.object&&this.object.getType){var e=d.a.getProperties(this.object.getType()+"@"+this.property.name);if(e&&e.length>0)return this.getPropertiesByNames(this.itemValueClasseName,e)}return[]},t.prototype.getDefaultProperties=function(){for(var e=r.JsonObject.metaData.getProperties(this.itemValueClasseName),t=[],o=0;o<e.length;o++)e[o].visible&&t.push(e[o]);return t},t.prototype.createEditorOptions=function(){var t=e.prototype.createEditorOptions.call(this);return t.showTextView=!0,t.itemsEntryType=this.options.options&&this.options.options.itemValuesEditorEntryType||"form",t},t.prototype.onSetEditorOptions=function(t){e.prototype.onSetEditorOptions.call(this,t),this.optionsShowTextView=t.showTextView,this.updateShowTextViewVisibility(),this.koActiveView(t.itemsEntryType||"form")},t.prototype.createNewEditorItem=function(){var e=null,t=this.koItems().map(function(e){return e.item.itemValue});e=o.i(l.a)("item",t);var n=this.createEditorItemCore(e);return this.options&&this.options.onItemValueAddedCallback(this.editablePropertyName,n),new h(n,this.columns,this.getItemValueClassName())},t.prototype.createEditorItem=function(e){var t=this.createEditorItemCore(null);return t.setData(e),new h(t,this.columns,this.getItemValueClassName())},t.prototype.createEditorItemCore=function(e){var t=new r.ItemValue(e);return t.visibleIf&&(t.survey=this.object.survey),t.locOwner=this,t},t.prototype.createItemFromEditorItem=function(e){var t=e.item;this.options&&this.options.alwaySaveTextInPropertyEditors||t.text!=t.value||(t.text=null);var o=new r.ItemValue(null);return o.setData(t),o},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.isShowingModal&&"form"!==this.koActiveView()&&this.koItemsText(this.getItemsText()),this.updateShowTextViewVisibility()},t.prototype.onBeforeApply=function(){"form"!==this.koActiveView()&&this.updateItems(this.koItemsText()),e.prototype.onBeforeApply.call(this)},t.prototype.onListDetailViewChanged=function(){e.prototype.onListDetailViewChanged.call(this),this.updateShowTextViewVisibility()},t.prototype.updateItems=function(e){var t=[];if(e)for(var o=this.getProperties(),n=e.split("\n"),i=0;i<n.length;i++)if(n[i]){var a=n[i].split(r.ItemValue.Separator),s=new r.ItemValue(""),l={};o.forEach(function(e,t){s[e.name]=a[t],l[e.name]=a[t]}),l.text=s.hasText?s.text:"",t.push(l)}this.koItems(this.getItemsFromValue(t))},t.prototype.getItemsText=function(){return this.koItems().filter(function(e){return!e.cells[0].hasError}).map(function(e){return e.cells.map(function(e){return e.value||""}).join(r.ItemValue.Separator).replace(/\|$/,"")}).join("\n")},t.prototype.updateShowTextViewVisibility=function(){if(this.koShowTextView)return this.optionsShowTextView&&0!=this.columns.length?void this.koShowTextView(!this.hasVisibleIf()):void this.koShowTextView(!1)},t.prototype.hasVisibleIf=function(){for(var e=this.koItems(),t=0;t<e.length;t++)if(e[t].item.visibleIf)return!0;return!1},t}(c.a),h=function(e){function t(t,o,n){void 0===n&&(n="");var i=e.call(this,t,o)||this;return i.item=t,i.columns=o,i.className=n,i}return n.a(t,e),t.prototype.createSurveyQuestionEditor=function(){return new u.b(this.item,null,this.className,null)},t}(c.b);s.a.registerEditor("itemvalues",function(e){return new p(e)},"itemvalue")},function(e,t,o){"use strict";var n=o(3),i=o(2),r=(o.n(i),o(9)),a=o(0),s=o(14),l=o(4),d=o(15);o.d(t,"a",function(){return c}),o.d(t,"b",function(){return u});var c=function(e){function t(t){var o=e.call(this,t)||this;return o.columnsValue=o.createColumns(),o}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"matrixdropdowncolumns"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.columnsValue},enumerable:!0,configurable:!0}),t.prototype.getEditorName=function(){return this.koEditItem()?a.a.getString("pe.columnEdit").format(this.koEditItem().column.name):""},t.prototype.createNewEditorItem=function(){var e=this.createEditorItemCore(null);return this.options&&this.options.onMatrixDropdownColumnAddedCallback(e),new u(e,this.columns,this.options)},t.prototype.createEditorItem=function(e){var t=this.createEditorItemCore(e);return new u(t,this.columns,this.options)},t.prototype.createItemFromEditorItem=function(e){return e.column},t.prototype.createEditorItemCore=function(e){var t=new i.MatrixDropdownColumn("");if(e){var o=(new i.JsonObject).toJsonObject(e);(new i.JsonObject).toObject(o,t)}return t.colOwner=this.object,t},t.prototype.getProperties=function(){var e=this.getPropertiesNames();return this.getPropertiesByNames("matrixdropdowncolumn",e)},t.prototype.getPropertiesNames=function(){var e=[],t=d.a.getProperties("matrixdropdowncolumn");if(t)for(var o=0;o<t.length;o++){var n=t[o];e.push(n.name?n.name:n)}return 0==e.length&&(e=["isRequired","cellType","name","title"]),e},t}(s.a),u=function(e){function t(t,o,n){void 0===n&&(n=null);var i=e.call(this,t,o)||this;i.column=t,i.columns=o,i.options=n;var r=i;return t.registerFunctionOnPropertyValueChanged("cellType",function(){r.resetSurveyQuestionEditor()},"colEdit"),i}return n.a(t,e),t.prototype.createSurveyQuestionEditor=function(){return new r.b(this.column,null,"matrixdropdowncolumn@"+this.column.cellType,this.options)},t}(s.b);l.a.registerEditor("matrixdropdowncolumns",function(e){return new c(e)})},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(6)),s=o(0),l=o(4);o.d(t,"a",function(){return d});var d=function(e){function t(t){var o=e.call(this,t)||this;return o.items=[],o.koEditingValue=i.observableArray(),o.koItems=i.observableArray(),o.setItems(),o}return n.a(t,e),t.prototype.getValueText=function(e){if(!e)return s.a.getString("pe.empty");Array.isArray(e)||(e=[e]);for(var t="[",o=0;o<e.length;o++)o>0&&(t+=", "),t+=this.getTextByItemValue(e[o]);return t+="]"},t.prototype.setObject=function(t){e.prototype.setObject.call(this,t),this.setItems(),this.setEditingValue()},t.prototype.updateValue=function(){e.prototype.updateValue.call(this),this.setEditingValue()},t.prototype.onBeforeApply=function(){this.koValue(this.koEditingValue())},Object.defineProperty(t.prototype,"editorType",{get:function(){return"multiplevalues"},enumerable:!0,configurable:!0}),t.prototype.setItems=function(){r.ItemValue.setData(this.items,this.property.choices),this.koItems(this.items)},t.prototype.getTextByItemValue=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].value==e)return this.items[t].text;return e},t.prototype.setEditingValue=function(){var e=this.koValue();null!=e&&void 0!=e||(e=[]),Array.isArray(e)||(e=[e]),this.koEditingValue(e)},t}(a.a);l.a.registerEditor("multiplevalues",function(e){return new d(e)})},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(6)),s=o(0),l=o(4);o.d(t,"a",function(){return d});var d=function(e){function t(t){var o=e.call(this,t)||this;return o.items=[],o.koItems=i.observableArray(),o.createSurvey(),o}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"restfull"},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"restfullValue",{get:function(){return this.editingObject?this.editingObject[this.property.name]:this.editingValue?this.editingValue:null},enumerable:!0,configurable:!0}),t.prototype.getValueText=function(e){if(!e||!e.url)return s.a.getString("pe.empty");var t=e.url;return t.length>20&&(t=t.substr(0,20)+"..."),t},t.prototype.addItem=function(e,t){var o=this;this.items.push(new c(e,t?t[e]:"",function(e){o.onItemValueChanged(e)}))},t.prototype.onItemValueChanged=function(e){this.question.choicesByUrl[e.name]=e.koValue(),this.run()},t.prototype.onValueChanged=function(){var e=this.restfullValue;if(this.items=[],this.addItem("url",e),this.addItem("path",e),this.addItem("valueName",e),this.addItem("titleName",e),e&&e.getCustomPropertiesNames)for(var t=e.getCustomPropertiesNames(),o=0;o<t.length;o++){var n=t[o];"visibleIfName"!==n&&this.addItem(n,e)}this.koItems(this.items)},t.prototype.onBeforeApply=function(){var e=new r.ChoicesRestfull;e.owner=this.editingObject;for(var t=0;t<this.items.length;t++){var o=this.items[t];e[o.name]=o.koValue()}this.setValueCore(e)},t.prototype.run=function(){this.question.choicesByUrl.run()},t.prototype.createSurvey=function(){this.survey=new r.Survey,this.survey.showNavigationButtons=!1,this.survey.showQuestionNumbers="off";var e=this.survey.addNewPage("page1");this.question=e.addNewQuestion("dropdown","q1"),this.question.title=s.a.getString("pe.testService"),this.question.choices=[]},t}(a.a),c=function(){function e(e,t,o){this.name=e,this.onValueChanged=o,this.isSetttingValue=!1,this.koValue=i.observable(t||"");var n=this;this.koValue.subscribe(function(e){n.isSetttingValue||n.onValueChanged(n)})}return e.prototype.setValue=function(e){this.isSetttingValue=!0,this.koValue(e),this.isSetttingValue=!1},e}();l.a.registerEditor("restfull",function(e){return new d(e)})},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(5)),s=o(0),l=o(9),d=o(14),c=o(4);o.d(t,"a",function(){return u});var u=function(e){function t(t){var o=e.call(this,t)||this;return o.isTitleVisible=o.getIsTitleVisible(),o}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"textitems"},enumerable:!0,configurable:!0}),t.prototype.getEditorName=function(){return this.koEditItem()?s.a.getString("pe.columnEdit").format(this.koEditItem().koName()):""},t.prototype.createNewEditorItem=function(){var e=new r.MultipleTextItem(this.getNewName());return new p(e)},t.prototype.createEditorItem=function(e){return new p(e)},t.prototype.createItemFromEditorItem=function(e){return e.item},t.prototype.getNewName=function(){for(var e=[],t=this.koItems(),o=0;o<t.length;o++)e.push({name:t[o].koName()});return a.b.getNewName(e,"text")},t.prototype.getIsTitleVisible=function(){var e=r.JsonObject.metaData.findProperty("multipletextitem","title");return null!=e&&e.visible},t}(d.a),p=function(e){function t(t){var o=e.call(this,t,[])||this;return o.item=t,o.koName=i.observable(t.name),o.koTitle=i.observable(t.name===t.title?"":t.title),o.koIsRequired=i.observable(o.item.isRequired),o.koHasError=i.observable(!1),o}return n.a(t,e),t.prototype.createSurveyQuestionEditor=function(){return new l.b(this.item,null,"multipletextitem")},t.prototype.hasError=function(){return!!e.prototype.hasError.call(this)||(this.koHasError(!this.koName()),this.koHasError())},t.prototype.apply=function(){e.prototype.apply.call(this),this.item.name=this.koName(),this.item.title=this.koTitle(),this.item.isRequired=this.koIsRequired()},t}(d.b);c.a.registerEditor("textitems",function(e){return new u(e)})},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(13)),s=o(0),l=o(4);o.d(t,"a",function(){return d});var d=function(e){function t(t){var o=e.call(this,t)||this;o.availableTriggers=[],o.triggerClasses=[];var n=o;return o.onDeleteClick=function(){n.koItems.remove(n.koSelected())},o.onAddClick=function(e){n.addItem(e.value)},o.koSelected=i.observable(null),o.koPages=i.observableArray(),o.koQuestions=i.observableArray(),o.koQuestionNames=i.observableArray(),o.koElements=i.observableArray(),o.triggerClasses=r.JsonObject.metaData.getChildrenClasses("surveytrigger",!0),o.availableTriggers=o.getAvailableTriggers(),o.koTriggers=i.observableArray(o.getLocalizedTriggers()),o}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"triggers"},enumerable:!0,configurable:!0}),t.prototype.onValueChanged=function(){if(this.editingObject){var t=this.editingObject.getAllQuestions();this.koPages(this.getNames(this.editingObject.pages)),this.koQuestions(this.getNames(t)),this.koQuestionNames(this.getQuestionNames(t)),this.koElements(this.getNames(this.getAllElements()))}e.prototype.onValueChanged.call(this),this.koSelected&&this.koSelected(this.koItems().length>0?this.koItems()[0]:null)},t.prototype.getAllElements=function(){for(var e=[],t=this.editingObject.pages,o=0;o<t.length;o++)this.addElemenetsIntoList(t[o],e);return e},t.prototype.addElemenetsIntoList=function(e,t){var o=e.getElementsInDesign(!1);if(o)for(var n=0;n<o.length;n++)t.push(o[n]),this.addElemenetsIntoList(o[n],t)},t.prototype.addItem=function(e){var t=r.JsonObject.metaData.createClass(e),o=this.createPropertyTrigger(t);this.koItems.push(o),this.koSelected(o)},t.prototype.createEditorItem=function(e){var t=new r.JsonObject,o=r.JsonObject.metaData.createClass(e.getType());return t.toObject(e,o),this.createPropertyTrigger(o)},t.prototype.createItemFromEditorItem=function(e){return e.createTrigger()},t.prototype.getLocalizedTriggers=function(){for(var e=[],t=0;t<this.availableTriggers.length;t++){var o=this.availableTriggers[t];e.push({value:o,text:s.a.getTriggerName(o)})}return e},t.prototype.getAvailableTriggers=function(){for(var e=[],t=0;t<this.triggerClasses.length;t++)e.push(this.triggerClasses[t].name);return e},t.prototype.getNames=function(e){for(var t=[],o=0;o<e.length;o++){var n=e[o];n.name&&t.push(n.name)}return t},t.prototype.getQuestionNames=function(e){for(var t=[],o=0;o<e.length;o++)e[o].addConditionNames(t);for(var n=[],o=0;o<t.length;o++)t[o].indexOf("[")<0&&n.push(t[o]);return n},t.prototype.createPropertyTrigger=function(e){var t=null;return"visibletrigger"==e.getType()&&(t=new u(e,this.koPages,this.koElements)),"setvaluetrigger"==e.getType()&&(t=new p(e,this.koQuestions)),t||(t=new c(e)),t},t}(a.a),c=function(){function e(e){this.trigger=e,this.availableOperators=[],this.availableOperators=l.a.getOperators(),this.triggerType=e.getType(),this.koType=i.observable(this.triggerType),this.koName=i.observable(e.name),this.koOperator=i.observable(e.operator),this.koValue=i.observable(e.value);var t=this;this.koRequireValue=i.computed(function(){return"empty"!=t.koOperator()&&"notempty"!=t.koOperator()}),this.koIsValid=i.computed(function(){return!(!t.koName()||t.koRequireValue()&&!t.koValue())}),this.koText=i.computed(function(){return t.koName(),t.koOperator(),t.koValue(),t.getText()})}return e.prototype.createTrigger=function(){var e=r.JsonObject.metaData.createClass(this.triggerType);return e.name=this.koName(),e.operator=this.koOperator(),e.value=this.koValue(),e},e.prototype.getText=function(){return this.koIsValid()?s.a.getString("pe.triggerRunIf")+" '"+this.koName()+"' "+this.getOperatorText()+this.getValueText():s.a.getString("pe.triggerNotSet")},e.prototype.getOperatorText=function(){for(var e=this.koOperator(),t=0;t<this.availableOperators.length;t++)if(this.availableOperators[t].name==e)return this.availableOperators[t].text;return e},e.prototype.getValueText=function(){return this.koRequireValue()?" "+this.koValue():""},e}(),u=function(e){function t(t,o,n){var i=e.call(this,t)||this;return i.trigger=t,i.pages=new h(s.a.getString("pe.triggerMakePagesVisible"),o(),t.pages),i.questions=new h(s.a.getString("pe.triggerMakeQuestionsVisible"),n(),t.questions),i}return n.a(t,e),t.prototype.createTrigger=function(){var t=e.prototype.createTrigger.call(this);return t.pages=this.pages.koChoosen(),t.questions=this.questions.koChoosen(),t},t}(c),p=function(e){function t(t,o){var n=e.call(this,t)||this;return n.trigger=t,n.koQuestions=o,n.kosetToName=i.observable(t.setToName),n.kosetValue=i.observable(t.setValue),n.koisVariable=i.observable(t.isVariable),n}return n.a(t,e),t.prototype.createTrigger=function(){var t=e.prototype.createTrigger.call(this);return t.setToName=this.kosetToName(),t.setValue=this.kosetValue(),t.isVariable=this.koisVariable(),t},t}(c),h=function(){function e(e,t,o){this.title=e,this.koChoosen=i.observableArray(o);for(var n=[],r=0;r<t.length;r++){var a=t[r];o.indexOf(a)<0&&n.push(a)}this.koObjects=i.observableArray(n),this.koSelected=i.observable(),this.koChoosenSelected=i.observable();var s=this;this.onDeleteClick=function(){s.deleteItem()},this.onAddClick=function(){s.addItem()}}return e.prototype.deleteItem=function(){this.changeItems(this.koChoosenSelected(),this.koChoosen,this.koObjects)},e.prototype.addItem=function(){this.changeItems(this.koSelected(),this.koObjects,this.koChoosen)},e.prototype.changeItems=function(e,t,o){t.remove(e),o.push(e),t.sort(),o.sort()},e}();l.a.registerEditor("triggers",function(e){return new d(e)})},function(e,t,o){"use strict";var n=o(3),i=o(1),r=(o.n(i),o(2)),a=(o.n(r),o(13)),s=o(17),l=o(0),d=o(4);o.d(t,"a",function(){return c});var c=function(e){function t(t){var o=e.call(this,t)||this;o.availableValidators=[],o.validatorClasses=[];var n=o;return o.selectedObjectEditor=new s.a,o.selectedObjectEditor.onPropertyValueChanged.add(function(e,t){n.onPropertyValueChanged(t.property,t.object,t.newValue)}),o.koSelected=i.observable(null),o.koSelected.subscribe(function(e){n.selectedObjectEditor.selectedObject=null!=e?e.validator:null}),o.validatorClasses=r.JsonObject.metaData.getChildrenClasses("surveyvalidator",!0),o.availableValidators=o.getAvailableValidators(),o.koValidators=i.observableArray(o.getLocalizedValidators()),o.onDeleteClick=function(){n.koItems.remove(n.koSelected())},o.onAddClick=function(e){n.addItem(e.value)},o}return n.a(t,e),Object.defineProperty(t.prototype,"editorType",{get:function(){return"validators"},enumerable:!0,configurable:!0}),t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.koSelected&&this.koSelected(this.koItems().length>0?this.koItems()[0]:null)},t.prototype.createEditorItem=function(e){var t=new r.JsonObject,o=r.JsonObject.metaData.createClass(e.getType());return t.toObject(e,o),this.setItemProperties(o),new u(o)},t.prototype.createItemFromEditorItem=function(e){var t=e;return delete t.validator.survey,t.validator},t.prototype.addItem=function(e){var t=new u(r.JsonObject.metaData.createClass(e));this.setItemProperties(t.validator),this.koItems.push(t),this.koSelected(t)},t.prototype.setItemProperties=function(e){this.object&&(e.survey=this.object.survey),e.locOwner=this},t.prototype.getLocalizedValidators=function(){for(var e=[],t=0;t<this.availableValidators.length;t++){var o=this.availableValidators[t];e.push({value:o,text:l.a.getValidatorName(o)})}return e},t.prototype.getAvailableValidators=function(){for(var e=[],t=0;t<this.validatorClasses.length;t++)e.push(this.validatorClasses[t].name);return e},t.prototype.onPropertyValueChanged=function(e,t,o){null!=this.koSelected()&&(this.koSelected().validator[e.name]=o)},t}(a.a),u=function(){function e(e){this.validator=e,this.text=l.a.getValidatorName(e.getType())}return e}();d.a.registerEditor("validators",function(e){return new c(e)})},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){e.exports='<svg style="display:none;"><symbol viewBox="0 0 16 16" id="icon-actionaddtotoolbox"><path d="M7.3 8H1v2h5.2c.2-.7.6-1.4 1.1-2zM10 6.2V5H1v2h7.3c.5-.3 1.1-.6 1.7-.8zM1 2h9v2H1zM11.5 7C9 7 7 9 7 11.5S9 16 11.5 16s4.5-2 4.5-4.5S14 7 11.5 7zm2.5 5h-2v2h-1v-2H9v-1h2V9h1v2h2v1z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-actionconvertto"><path d="M3 10L0 7h6zM13 7l3 3h-6z"></path><path d="M8 4c1.5 0 2.8.8 3.4 2h2.2c-.8-2.3-3-4-5.7-4C4.7 2 2 4.7 2 8h2c0-2.2 1.8-4 4-4zM11.9 9c-.4 1.7-2 3-3.9 3-1 0-1.9-.4-2.6-1H2.8c1 1.8 3 3 5.2 3 3 0 5.4-2.2 5.9-5h-2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-actioncopy"><path d="M2 6h9v9H2z"></path><path d="M5 3v2h7v7h2V3z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-actiondelete"><path d="M8 2C4.7 2 2 4.7 2 8s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6zm3 8l-1 1-2-2-2 2-1-1 2-2-2-2 1-1 2 2 2-2 1 1-2 2 2 2z"></path></symbol><symbol viewBox="0 0 32 32" id="icon-actiondragelement"><path d="M4 10h24a2 2 0 0 0 0-4H4a2 2 0 0 0 0 4zm24 4H4a2 2 0 0 0 0 4h24a2 2 0 0 0 0-4zm0 8H4a2 2 0 0 0 0 4h24a2 2 0 0 0 0-4z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-actioneditelement"><path d="M1 15h4l-4-4zM7 5l-5 5 4 4 5-5zM14 6l-4-4-2 2 4 4zM9 14h5v1H9z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-actionhidetitle"><path d="M15.7 7.7c-.1-.1-1.5-1.7-3.4-3L15 2l-1-1-2.9 2.9C10.1 3.4 9 3 8 3 4.3 3 .4 7.5.3 7.7L0 8l.3.3c.1.1 1.5 1.7 3.4 3L1 14l1 1 2.9-2.9c1 .5 2.1.9 3.1.9 3.7 0 7.6-4.5 7.7-4.7L16 8l-.3-.3zM2 8c.8-.8 3.4-3 6-3 .6 0 .6 0 0 0-1.7 0-3 1.3-3 3 0 .6.2 1.1.4 1.6l-.6.6C3.5 9.4 2.5 8.5 2 8zm6 3c-.6 0-.6 0 0 0 1.7 0 3-1.3 3-3 0-.6-.2-1.1-.4-1.6l.6-.6c1.3.8 2.3 1.7 2.8 2.2-.8.8-3.4 3-6 3z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-actionisrequired"><circle cx="7.5" cy="13.5" r="1.5"></circle><path d="M8 10l1-9H6l1 9z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-actionnotrequired"><path d="M14 1L8.4 6.6 9 1H6l.8 7.2L1 14l1 1L15 2z"></path><circle cx="7.5" cy="13.5" r="1.5"></circle></symbol><symbol viewBox="0 0 16 16" id="icon-actionshowtitle"><path d="M15.7 7.7C15.6 7.5 11.7 3 8 3S.4 7.5.3 7.7L0 8l.3.3c.1.2 4 4.7 7.7 4.7s7.6-4.5 7.7-4.7L16 8l-.3-.3zM8 11c-2.6 0-5.2-2.2-6-3 .8-.8 3.4-3 6-3s5.2 2.2 6 3c-.8.8-3.4 3-6 3z"></path><circle cx="8" cy="8" r="3"></circle></symbol><symbol viewBox="0 0 16 16" id="icon-add"><path d="M14 7h-4V3H7v4H3v3h4v4h3v-4h4z"></path></symbol><symbol viewBox="0 0 10 10" id="icon-arrow_down_10x10"><path d="M2 2L0 4l5 5 5-5-2-2-3 3z"></path></symbol><symbol viewBox="0 0 10 10" id="icon-arrow_up_10x10"><path d="M8 9l2-2-5-5-5 5 2 2 3-3z"></path></symbol><symbol viewBox="0 0 34 34" id="icon-arrowdown_34x34"><style><![CDATA[.st0{fill:#fff}]]></style><path class="st0" d="M12 16l2-2 3 3 3-3 2 2-5 5z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-cloud_24x24"><style><![CDATA[.st0{fill:#1ab394}]]></style><path class="st0" d="M75 6.5C75 4.6 73.4 3 71.5 3S68 4.6 68 6.5c0 1.4.8 2.6 2 3.2-.2 1-.7 1.8-1.7 2.3-.4.2-.9.4-1.3.6-.8.3-1.7.6-2.5.9-.2.1-.3.1-.5.2v-6c1.2-.6 2-1.8 2-3.2C66 2.6 64.4 1 62.5 1S59 2.6 59 4.5c0 1.4.8 2.6 2 3.2v9.7c-1.2.6-2 1.8-2 3.2 0 1.8 1.6 3.4 3.5 3.4s3.5-1.6 3.5-3.5c0-1.4-.8-2.6-2-3.2.1-.5.4-1 .9-1.2.3-.1.6-.3 1-.4 1.1-.4 2.1-.7 3.2-1.2 1.4-.6 2.5-1.5 3.1-2.9.2-.4.3-1.1.4-1.8C74 9.3 75 8.1 75 6.5zM62.5 3c.8 0 1.5.7 1.5 1.5S63.3 6 62.5 6 61 5.3 61 4.5 61.7 3 62.5 3zm0 19c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5 1.5.7 1.5 1.5-.7 1.5-1.5 1.5zM70 6.5c0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5S72.3 8 71.5 8 70 7.3 70 6.5zM9 18l1 1 2-2v6h2v-6l2 2 1-1-4-4z"></path><path class="st0" d="M20.9 7.9c.1-.3.1-.6.1-.9 0-2.8-2.2-5-5-5-2.6 0-4.7 1.9-4.9 4.4C10.3 5.6 9.2 5 8 5 5.8 5 4 6.8 4 9v.2c-1.7.4-3 1.3-3 3.8 0 2.3 2.4 3 4 3h3l5-5 5 5c2.8 0 5-1.2 5-4 0-1.7-.8-3.1-2.1-4.1z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-autocomplete"><style><![CDATA[.st0{fill:#3d4d5d}]]></style><path class="st0" d="M15 6H7v10h9v-1H8v-2h7v2h1V6h-1zm0 6H8v-2h7v2zm0-3H8V7h7v2zM3 10H1V4h2V3H0v8h3zM14 5h1V3H6v1h8zM5 1h1V0H3v1h1v11H3v1h3v-1H5z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-barrating"><style><![CDATA[.st0{fill:#3d4d5d}]]></style><path class="st0" 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 16 16" id="icon-datepicker"><style><![CDATA[.st0{fill:#3d4d5d}]]></style><path class="st0" d="M3 7h2v2H3zM7 11h2v2H7zM3 11h2v2H3zM11 11h2v2h-2zM11 7h2v2h-2zM10 6H6v4h4V6zM9 9H7V7h2v2zM4 0h1v3H4zM11 0h1v3h-1z"></path><path class="st0" d="M13 2v2h-3V2H6v2H3V2H0v14h16V2h-3zm2 13H1V5h14v10z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-editor"><style><![CDATA[.st0{fill:#3d4d5d}]]></style><path class="st0" d="M1 3h2v5H2v1h4V8H5V3h2v1h1V1H0v3h1zM10 5h6v1h-6zM10 8h6v1h-6zM0 11h16v1H0zM0 14h16v1H0z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-imagepicker"><style><![CDATA[.st0{fill:#3d4d5d}]]></style><path class="st0" d="M15 14H0V1h15v13zM1 13h13V2H1v11z"></path><path class="st0" d="M2 3v9h11V3H2zm4 1c.6 0 1 .4 1 1s-.4 1-1 1-1-.4-1-1 .4-1 1-1zm-3 7l2-3 1 1 2-3 4 5H3z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-nouislider"><style><![CDATA[.st0{fill:#3d4d5d}]]></style><path class="st0" d="M0 10h16v2H0zM2 4v3l2 2 2-2V4zM10 4v3l2 2 2-2V4z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-singaturepad"><style><![CDATA[.st0{fill:#3d4d5d}]]></style><path class="st0" d="M0 0v15h16V0H0zm15 14H1V1h14v13z"></path><path class="st0" d="M2.6 10.2c.1.1.1.2.2.3-.2.3-.4.6-.7.8l.7.7c.2-.3.5-.6.7-.9h.1c.2.1.9.1 1.1.1 1.5-.1 2.3-.5 2.8-.8h.1l.6.3h.6c.7-.1 1.9-.8 2.5-1.2.2-.1.5-.3.5-.3v.2c0 .2 0 .3.1.5.1.3.3.4.6.5.2 0 .4 0 .5-.1.1-.3.8-1 1-1.3V8c-.1.1-.3.2-.4.4-.2.2-.5.4-.8.6l-.1.1v-.3c0-.2 0-.4-.1-.5-.1-.4-.5-.6-.9-.4-.1.1-.4.2-.6.4-.9.6-2 1.2-2.2 1.3-.1 0-.2.1-.4.1l.1-.1c.3-.3.7-.6.9-1 .2-.3.3-.6.3-.9 0-.4 0-.7-.2-1.1-.1-.3-.4-.6-.8-.7-.2-.1-.4-.1-.7 0-.2.1-.5.2-.7.4-.3.3-.5.6-.6 1-.1.2-.1.5-.1.7 0 .4 0 .7.1 1.1 0 .2.1.3.2.5-.6.3-1.5.7-2.8.6v-.1c0-.1.1-.3.2-.4.4-.7.7-1.4.9-2.1.2-.6.3-1.3.3-1.9V4.3c0-.3-.1-.6-.3-.8-.2-.4-.6-.6-1-.5-.3.1-.5.2-.7.4-.3.2-.6.5-.8.9-.2.5-.4 1-.6 1.6-.1.5-.2 1-.2 1.5s0 1 .1 1.4c.1.6.3 1 .5 1.4zm5-2.5c.1-.2.2-.5.4-.6.2-.2.4-.2.7-.2.1 0 .2.1.2.2.1.3.1.6-.1.8-.2.3-.4.6-.6.8-.2.2-.3.3-.5.4-.1-.1-.1-.2-.1-.4v-1zM3 6.7c.1-.6.3-1.3.6-1.8.1-.3.3-.5.5-.8.1 0 .2-.1.2-.1.1-.1.2 0 .3.1.1.1.1.3.1.4 0 .4.1.9 0 1.3 0 .8-.2 1.6-.5 2.3-.3.5-.5 1-.8 1.5-.1 0-.2-.1-.2-.2-.2-.6-.3-1.2-.3-1.8 0-.3.1-.6.1-.9z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-sortablejs"><style><![CDATA[.st0{fill:#3d4d5d}]]></style><path class="st0" 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 16 16" id="icon-tagbox"><style><![CDATA[.st0{fill:#3d4d5d}]]></style><path class="st0" d="M15 11H0V5h15v6zM1 10h13V6H1v4z"></path><path class="st0" d="M2 7h4v2H2zM7 7h4v2H7z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-delete_24x24"><path fill-rule="evenodd" clip-rule="evenodd" fill="#1AB394" d="M6 8l2-2 4 4 4-4 2 2-4 4 4 4-2 2-4-4-4 4-2-2 4-4-4-4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-edit"><g fill-rule="evenodd" clip-rule="evenodd"><path d="M19 4l-9 9 4 4 9-9-4-4zM8 15v4h4l-4-4zM1 17v2h4v-2H1z"></path></g></symbol><symbol viewBox="0 0 16 16" id="icon-boolean"><path d="M0 16h10V6H0v10zm2-6l2 2 4-4 1 1-5 5-3-3 1-1z"></path><path d="M5 1v4h1V2h8v8h-3v1h4V1z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-checkbox"><path d="M1 1v14h14V1H1zm6 10L4 8l1-1 2 2 4-4 1 1-5 5z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-comment"><path d="M8 2C4.1 2 1 4.2 1 7c0 1.9 1.5 3.6 3.8 4.4C4.6 13.1 3 14 3 14s1.5-.2 2.7-.9c.4-.2.9-.8 1.3-1.2.3.1.6.1 1 .1 3.9 0 7-2.2 7-5s-3.1-5-7-5zM4 8c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zm4 0c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zm4 0c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1z"></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-dropdown"><path d="M1 1v6h14V1H1zm10 5L8 3l1-1 2 2 2-2 1 1-3 3zm-8 5h12V9H3v2zm0 4h12v-2H3v2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-expression"><path d="M15 9l-4 4-2-2-1 1 3 3 5-5zM4 4v1h2v1H3v3h4V4H4zm2 4H4V7h2v1zM8 8h1v1H8z"></path><path d="M1 1h13v7l1-1V0H0v12h6l1-1H1z"></path><path d="M10 4h1v1h-1zM9 5h1v1H9zM11 5h1v1h-1zM11 3h1v1h-1zM9 3h1v1H9z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-file"><path d="M9 0v5h5z"></path><path d="M8 0H2v16h12V6H8z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-html"><path d="M4 4L0 8l4 4 1-1-3-3 3-3zM11 4l-1 1 3 3-3 3 1 1 4-4z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-matrix"><path d="M4 1C2.3 1 1 2.3 1 4s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 5c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path><circle cx="4" cy="4" r="1"></circle><path d="M12 7c1.7 0 3-1.3 3-3s-1.3-3-3-3-3 1.3-3 3 1.3 3 3 3zm0-5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM4 9c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 5c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM12 9c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 5c-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-matrixdropdown"><path d="M4 1C2.3 1 1 2.3 1 4s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 5c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path><circle cx="4" cy="4" r="1"></circle><path d="M12 7c1.7 0 3-1.3 3-3s-1.3-3-3-3-3 1.3-3 3 1.3 3 3 3zm0-5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM4 9c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 5c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path><circle cx="4" cy="12" r="1"></circle><path d="M12 9c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 5c-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-matrixdynamic"><path d="M3 1C1.3 1 0 2.3 0 4s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 5c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path><circle cx="3" cy="4" r="1"></circle><path d="M11 7c1.7 0 3-1.3 3-3s-1.3-3-3-3-3 1.3-3 3 1.3 3 3 3zm0-5c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zM3 9c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 5c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM8 15h2l-2-2zM9.03 11.99l4.03-4.03 1.98 1.98-4.03 4.03z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-multipletext"><path d="M0 2v12h16V2H0zm5 9H2V9h3v2zm0-4H2V5h3v2zm9 4H7V9h7v2zm0-4H7V5h7v2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-panel_dynamic"><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-panel"><path d="M0 0v16h16V0H0zm15 15H1V1h14v14z"></path><path d="M2 12h12v2H2zM2 9h12v2H2zM11 8L8 5h2V2h2v3h2zM5 8L2 5h2V2h2v3h2z"></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-radiogroup"><path d="M3 1C1.3 1 0 2.3 0 4s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zm0 4c-1.7 0-3 1.3-3 3s1.3 3 3 3 3-1.3 3-3-1.3-3-3-3zm0 4c-.6 0-1-.4-1-1s.4-1 1-1 1 .4 1 1-.4 1-1 1zM8 3v2h8V3H8zm0 10h8v-2H8v2z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-rating"><path d="M0 7h1l1-1v5h1V5H2L0 7zm5 5h5V4H5v8zm1-5h2V6H6V5h3v3H7v2h2v1H6V7zm6-2v1h2v1h-2v1h2v2h-2v1h3V5h-3z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-text"><path d="M2 1v3h1V3h4v10H5v1h6v-1H9V3h4v1h1V1H2z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-fork_24x24"><path opacity=".9" d="M-40-20c-1.2 0-2-.9-2-2v-2c0-1.1.9-2 2-2h.1c1.1 0 2 .9 2 2v2.1c-.1 1-1 1.9-2.1 1.9z"></path><path opacity=".5" d="M-40-2c-1.2 0-2-.9-2-2v-2c0-1.1.9-2 2-2h.1c1.1 0 2 .9 2 2v2c-.1 1.1-1 2-2.1 2z"></path><path opacity=".2" d="M-52-14c0-1.2.9-2 2-2h2.1c1.1 0 2 .9 2 2v.1c0 1.1-.9 2-2 2H-50c-1.1-.1-2-1-2-2.1z"></path><path opacity=".7" d="M-34-14c0-1.2.9-2 2-2h2.1c1.1 0 2 .9 2 2v.1c0 1.1-.9 2-2 2H-32c-1.1-.1-2-1-2-2.1z"></path><path opacity=".1" d="M-44.5-18.6c-.8.8-2.1.8-2.8.1l-1.2-1.2c-.8-.8-.8-2 0-2.8l.1-.1c.8-.8 2-.8 2.8 0l1.2 1.2c.7.8.7 2.1-.1 2.8z"></path><path opacity=".6" d="M-31.5-5.5c-.8.8-2.1.8-2.8.1l-1.2-1.2c-.8-.8-.8-2 0-2.8l.1-.1c.8-.8 2-.8 2.8 0l1.2 1.2c.7.8.7 2-.1 2.8z"></path><path opacity=".3" d="M-48.5-5.5c-.8-.8-.8-2.1-.1-2.8l1.2-1.2c.8-.8 2-.8 2.8 0l.1.1c.8.8.8 2 0 2.8l-1.2 1.2c-.7.7-2 .7-2.8-.1z"></path><path opacity=".8" d="M-35.4-18.5c-.8-.8-.8-2.1-.1-2.8l1.2-1.2c.8-.8 2-.8 2.8 0l.1.1c.8.8.8 2 0 2.8l-1.2 1.2c-.8.7-2.1.7-2.8-.1z"></path><path opacity=".9" fill="#9D9FA1" d="M-22-13l2-2 4 4 9-9 2 2-11 11z"></path><path d="M41-19h-1.2c-.2-.7-.4-1.3-.8-1.9l.8-.8c.4-.4.4-1 0-1.4l-.7-.7c-.4-.4-1-.4-1.4 0l-.8.8c-.6-.4-1.2-.6-1.9-.8V-25c0-.5-.5-1-1-1h-1c-.5 0-1 .5-1 1v1.2c-.7.2-1.3.4-1.9.8l-.8-.8c-.4-.4-1-.4-1.4 0l-.7.7c-.4.4-.4 1 0 1.4l.8.8c-.4.6-.6 1.2-.8 1.9H26c-.5 0-1 .5-1 1v1c0 .5.5 1 1 1h1.2c.2.7.4 1.3.8 1.9l-.8.8c-.4.4-.4 1 0 1.4l.7.7c.4.4 1 .4 1.4 0l.8-.8c.6.4 1.2.6 1.9.8v1.2c0 .5.5 1 1 1h1c.5 0 1-.5 1-1v-1.2c.7-.2 1.3-.4 1.9-.8l.8.8c.4.4 1 .4 1.4 0l.7-.7c.4-.4.4-1 0-1.4l-.8-.8c.4-.6.6-1.2.8-1.9H41c.5 0 1-.5 1-1v-1c0-.5-.5-1-1-1zm-7.5 5.5c-2.2 0-4-1.8-4-4s1.8-4 4-4 4 1.8 4 4-1.8 4-4 4z"></path><path opacity=".9" fill="#9D9FA1" d="M13-15v-3h-1.2c-.1-.4-.3-.8-.5-1.2l.9-.9-2.2-2-.9.9c-.4-.2-.8-.4-1.2-.5V-23H5v1.2c-.4.1-.8.3-1.2.5l-.8-.8L.8-20l.9.9c-.2.4-.4.8-.5 1.2H0v3h1.2c.1.4.3.8.5 1.2l-.9.7L3-10.8l.9-.9c.4.2.8.4 1.2.5v1.2h3v-1.2c.4-.1.8-.3 1.2-.5l.9.9 2.1-2.1-.9-.9c.2-.4.4-.8.5-1.2H13zm-6.5 1.5c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z"></path><path opacity=".6" fill="#9D9FA1" d="M23-9v-2h-1.1c-.1-.4-.2-.7-.4-1l.8-.8-1.4-1.4-.9.8c-.3-.2-.7-.3-1-.4V-15h-2v1.1c-.4.1-.7.2-1 .4l-.8-.8-1.4 1.4.8.8c-.2.3-.3.7-.4 1H13v2h1.1c.1.4.2.7.4 1l-.8.8 1.4 1.4.9-.7c.3.2.7.3 1 .4V-5h2v-1.1c.4-.1.7-.2 1-.4l.8.8 1.4-1.4-.8-.9c.2-.3.3-.7.4-1H23zm-5 1c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"></path><path opacity=".5" fill="#9D9FA1" d="M-69-7h3v5h-3z"></path><path opacity=".9" fill="#9D9FA1" d="M-69-23h3v5h-3z"></path><path opacity=".2" fill="#9D9FA1" d="M-72.993-13.993v3h-5v-3z"></path><path opacity=".7" fill="#9D9FA1" d="M-56.993-13.993v3h-5v-3z"></path><path opacity=".6" fill="#9D9FA1" d="M-64.615-7.549l2.121-2.12 3.536 3.535-2.122 2.121z"></path><path opacity=".1" fill="#9D9FA1" d="M-75.98-18.791l2.121-2.122 3.536 3.536-2.122 2.121z"></path><path opacity=".3" fill="#9D9FA1" d="M-72.505-9.669l2.121 2.121-3.535 3.536-2.122-2.121z"></path><path opacity=".8" fill="#9D9FA1" d="M-61.14-20.912l2.121 2.121-3.535 3.536-2.122-2.121z"></path><path fill="#1AB394" d="M21 6.5C21 4.6 19.4 3 17.5 3S14 4.6 14 6.5c0 1.4.8 2.6 2 3.2-.2 1-.7 1.8-1.7 2.3-.4.2-.9.4-1.3.6-.8.3-1.7.6-2.5.9-.2.1-.3.1-.5.2v-6c1.2-.6 2-1.8 2-3.2C12 2.6 10.4 1 8.5 1S5 2.6 5 4.5c0 1.4.8 2.6 2 3.2v9.7c-1.2.6-2 1.8-2 3.2C5 22.4 6.6 24 8.5 24s3.5-1.6 3.5-3.5c0-1.4-.8-2.6-2-3.2.1-.5.4-1 .9-1.2.3-.1.6-.3 1-.4 1.1-.4 2.1-.7 3.2-1.2 1.4-.6 2.5-1.5 3.1-2.9.2-.4.3-1.1.4-1.8C20 9.3 21 8.1 21 6.5zM8.5 3c.8 0 1.5.7 1.5 1.5S9.3 6 8.5 6 7 5.3 7 4.5 7.7 3 8.5 3zm0 19c-.8 0-1.5-.7-1.5-1.5S7.7 19 8.5 19s1.5.7 1.5 1.5S9.3 22 8.5 22zM16 6.5c0-.8.7-1.5 1.5-1.5s1.5.7 1.5 1.5S18.3 8 17.5 8 16 7.3 16 6.5z"></path></symbol><symbol viewBox="0 0 12 12" id="icon-gear"><path d="M12 7V5H9.9c-.1-.4-.3-.7-.5-1l1.5-1.5-1.4-1.4L8 2.6c-.3-.2-.6-.4-1-.5V0H5v2.1c-.4.1-.7.3-1 .5L2.5 1.1 1.1 2.5 2.6 4c-.2.3-.4.6-.5 1H0v2h2.1c.1.4.2.7.4 1L1.1 9.5l1.4 1.4L4 9.4c.3.2.7.3 1 .4V12h2V9.9c.4-.1.7-.2 1-.4L9.5 11l1.4-1.4L9.4 8c.2-.3.3-.7.4-1H12zM6 8c-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 12 12" id="icon-gearactive"><path d="M12 7V5H9.9c-.1-.4-.3-.7-.5-1l1.5-1.5-1.4-1.4L8 2.6c-.3-.2-.6-.4-1-.5V0H5v2.1c-.4.1-.7.3-1 .5L2.5 1.1 1.1 2.5 2.6 4c-.2.3-.4.6-.5 1H0v2h2.1c.1.4.2.7.4 1L1.1 9.5l1.4 1.4L4 9.4c.3.2.7.3 1 .4V12h2V9.9c.4-.1.7-.2 1-.4L9.5 11l1.4-1.4L9.4 8c.2-.3.3-.7.4-1H12zM6 8c-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 12 12" id="icon-inplacecheck"><path d="M2 7l1-1 2 2 5-5 1 1-6 6z"></path></symbol><symbol viewBox="0 0 12 12" id="icon-inplacedelete"><path d="M3 2L2 3l3 3-3 3 1 1 3-3 3 3 1-1-3-3 3-3-1-1-3 3z"></path></symbol><symbol viewBox="0 0 12 12" id="icon-inplacedraggable"><path d="M0 4h7v7H0z"></path><path d="M2 3h6v6h1V2H2z"></path><path d="M4 1h6v6h1V0H4z"></path></symbol><symbol viewBox="0 0 12 12" id="icon-inplaceedit"><path d="M1 11h3L1 8zM6 3L2 7l3 3 4-4zM11 4L8 1 7 2l3 3zM7 10h5v1H7z"></path></symbol><symbol viewBox="0 0 12 12" id="icon-inplaceplus"><path d="M11 5H7V1H5v4H1v2h4v4h2V7h4z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-left"><path d="M11 12l-2 2-6-6 6-6 2 2-4 4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-new_24x24"><path fill="#1AB394" d="M18 11h-5V6h-3v5H5v3h5v5h3v-5h5z"></path></symbol><symbol viewBox="0 0 20 20" id="icon-noncommercial"><path d="M10 0C4.5 0 0 4.5 0 10s4.5 10 10 10 10-4.5 10-10S15.5 0 10 0zM2 10c0-1.4.4-2.8 1.1-3.9l7.6 7.6c-.3.1-.6.2-.9.2-1.1 0-2.1-.4-3-1.1l-1 1.8c.2.2.5.5.9.7s.9.4 1.4.5c.3.1.6.1.9.2v1h2v-1.3c.5-.1.9-.3 1.2-.5l1.7 1.7c-1.1.7-2.5 1.1-3.9 1.1-4.4 0-8-3.6-8-8zm14.1 5.1l-2.4-2.4v-.3c0-.6-.1-1.2-.3-1.6s-.5-.7-.8-.9c-.3-.2-.7-.4-1.1-.5l-1.2-.3c-.1-.1-.2-.1-.4-.2L8.4 7.4c0-.3.2-.6.4-.8.3-.2.7-.3 1.3-.3.8 0 1.6.3 2.4 1l.9-1.8c-.5-.4-1-.7-1.6-.9-.3-.1-.6-.2-.9-.2V3H9v1.4c-.7.1-1.3.3-1.7.7-.2.2-.4.4-.5.7L4.9 3.9C6.3 2.7 8 2 10 2c4.4 0 8 3.6 8 8 0 2-.7 3.7-1.9 5.1z"></path></symbol><symbol viewBox="0 0 16 16" id="icon-right"><path d="M5 4l2-2 6 6-6 6-2-2 4-4z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-modified"><path opacity=".9" d="M14 11V8h-1.2c-.1-.4-.3-.8-.5-1.2l.9-.8L11 3.8l-.9.9c-.3-.2-.7-.4-1.1-.5V3H6v1.2c-.4.1-.8.3-1.2.5L4 3.8 1.8 6l.9.9c-.2.3-.4.7-.5 1.1H1v3h1.2c.1.4.3.8.5 1.2l-.9.8L4 15.2l.9-.9c.4.2.8.4 1.2.5V16h3v-1.2c.4-.1.8-.3 1.2-.5l.9.9 2.1-2.1-.9-.9c.2-.4.4-.8.5-1.2H14zm-6.5 1.5c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3z"></path><path opacity=".6" d="M24 17v-2h-1.1c-.1-.4-.2-.7-.4-1l.8-.8-1.4-1.4-.9.8c-.3-.2-.7-.3-1-.4V11h-2v1.1c-.4.1-.7.2-1 .4l-.8-.8-1.4 1.4.8.8c-.2.3-.3.7-.4 1H14v2h1.1c.1.4.2.7.4 1l-.8.8 1.4 1.4.8-.8c.3.2.7.3 1 .4V21h2v-1.1c.4-.1.7-.2 1-.4l.8.8 1.4-1.4-.7-.9c.2-.3.3-.7.4-1H24zm-5 1c-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-saved"><path opacity=".9" d="M4 13l2-2 4 4 9-9 2 2-11 11z"></path></symbol><symbol viewBox="0 0 24 24" id="icon-saving"><path opacity=".5" d="M10 17h3v5h-3z"></path><path opacity=".9" d="M10 1h3v5h-3z"></path><path opacity=".2" d="M6 10v3H1v-3z"></path><path opacity=".7" d="M22 10v3h-5v-3z"></path><path opacity=".6" d="M14.39 16.45l2.12-2.121 3.536 3.535-2.121 2.121z"></path><path opacity=".1" d="M2.954 5.136l2.121-2.121L8.61 6.55 6.49 8.672z"></path><path opacity=".3" d="M6.49 14.328l2.12 2.122-3.535 3.535-2.121-2.121z"></path><path opacity=".8" d="M17.925 3.015l2.121 2.12-3.535 3.536-2.122-2.12z"></path></symbol></svg>'},function(e,t){e.exports='<script type="text/html" id="convert-action">\n <span class="svda_question_action">\n \x3c!-- ko if: allowChangeType --\x3e\n <select class="svda_current_type svd-main-color svd-light-bg-color" data-bind="foreach: availableTypes, event: { change: onConvertType }, attr: {title: title}">\n <option class="svd-light-bg-color" data-bind="text: $data.name, value: $data.value, attr:{selected: $data.value === $parent.type ? \'selected\': null}"></option>\n </select>\n \x3c!-- /ko --\x3e\n \x3c!-- ko ifnot: allowChangeType --\x3e\n <span data-bind="text: text" class="svda_current_type svd-main-color"> </span>\n \x3c!-- /ko --\x3e\n </span>\n<\/script>\n\n<script type="text/html" id="action-separator">\n <span class="svda_action_separator svd-dark-border-color">\n </span>\n<\/script>'},function(e,t){e.exports='<div class="svd_container svd-light-bg-color" data-bind="css: themeCss">\n \x3c!-- ko ifnot: haveCommercialLicense --\x3e\n <div class="svd_commercial_container">\n <a class="svd_commercial_text" href="https://surveyjs.io/Licenses#BuildSurvey" target="_blank">\n <span>\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-noncommercial\', size: 20"></svg-icon>\n </span>\n <span class="svd_commercial_product svd-main-color">SurveyJS Builder</span>\n <span class="svd_noncommercial_use svd-light-text-color">for non-commercial use only</span>\n </a>\n </div>\n \x3c!-- /ko --\x3e\n <ul class="navbar-default container-fluid nav nav-tabs editor-tabs svd-light-bg-color">\n <li class="nav-item" data-bind="css: {active: koViewType() == \'designer\'}">\n <a class="nav-link" href="#" data-bind="click:selectDesignerClick, text: $root.getLocString(\'ed.designer\')"></a>\n </li>\n <li class="nav-item" data-bind="visible: showJSONEditorTab, css: {active: koViewType() == \'editor\'}">\n <a class="nav-link" href="#" data-bind="click:selectEditorClick, text: $root.getLocString(\'ed.jsonEditor\')"></a>\n </li>\n <li class="nav-item" data-bind="visible: showTestSurveyTab, css: {active: koViewType() == \'test\'}">\n <a class="nav-link" href="#" data-bind="click:selectTestClick, text: $root.getLocString(\'ed.testSurvey\')"></a>\n </li>\n <li class="nav-item" data-bind="visible: showEmbededSurveyTab, css: {active: koViewType() == \'embed\'}">\n <a class="nav-link" href="#" data-bind="click:selectEmbedClick, text: $root.getLocString(\'ed.embedSurvey\')"></a>\n </li>\n </ul>\n\n <div class="panel card svd_content svd-dark-bg-color">\n <div class="row svd_survey_designer" data-bind="visible: koViewType() == \'designer\'">\n <div class="col-lg-2 col-md-2 col-sm-1 col-xs-1 svd_toolbox svd-dark-bg-color">\n \x3c!-- ko if: toolbox.koHasCategories --\x3e\n <div class="panel-group" role="tablist" data-bind="foreach: toolbox.koCategories">\n <div class="panel panel-info">\n <div class="svd-toolbox-category-header" role="tab" data-bind="click: expand">\n <span data-bind="css: { \'svd-main-color\': !koCollapsed() }, text: name"></span>\n \x3c!-- ko if: koCollapsed --\x3e\n <svg-icon class="icon-toolbox-arrow" params="iconName: \'icon-arrow_down_10x10\', size: 10"></svg-icon>\n \x3c!-- /ko --\x3e\n \x3c!-- ko ifnot: koCollapsed --\x3e\n <svg-icon class="icon-toolbox-arrow svd-primary-icon" params="iconName: \'icon-arrow_up_10x10\', size: 10"></svg-icon>\n \x3c!-- /ko --\x3e\n </div>\n <div role="tabpanel" data-bind="css: { \'panel-collapse collapse\': koCollapsed}">\n \x3c!-- ko foreach: items --\x3e\n <div draggable="true" class="svd_toolbox_item svd-light-border-color" data-bind="click: $root.clickToolboxItem, event:{dragstart: function(el, e) { $root.draggingToolboxItem($data, e); return true;}, dragend: function(el, e) { $root.dragEnd(); }}">\n <span data-bind="attr: {title: title}">\n <svg-icon params="iconName: iconName"></svg-icon>\n </span>\n <span class="svd_toolbox_item_text hidden-sm hidden-xs" data-bind="text:title"></span>\n </div>\n \x3c!-- /ko --\x3e\n </div>\n </div>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: !toolbox.koHasCategories() --\x3e\n <div class="svd_toolbox_title hidden-sm hidden-xs" data-bind="text: $root.getLocString(\'ed.toolbox\')"></div>\n \x3c!-- ko foreach: toolbox.koItems --\x3e\n <div draggable="true" class="svd_toolbox_item svd-light-border-color" data-bind="click: $root.clickToolboxItem, event:{dragstart: function(el, e) { $root.draggingToolboxItem($data, e); return true;}, dragend: function(el, e) { $root.dragEnd(); }}">\n <span data-bind="attr: {title: title}">\n <svg-icon params="iconName: iconName"></svg-icon>\n </span>\n <span class="svd_toolbox_item_text hidden-sm hidden-xs" data-bind="text:title"></span>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n <div class="col-xs-11 svd_editors" data-bind="css: {\'col-lg-7 col-md-7 col-sm-8\': koShowPropertyGrid, \'col-lg-10 col-md-10 col-sm-11\': !koShowPropertyGrid(), \'svd_wide\': !koShowPropertyGrid()}">\n <div class="svd_toolbar">\n \x3c!-- ko foreach: toolbarItems --\x3e\n <span class="svd_action" data-bind="css: $data.css, visible: visible, attr: { id: id }">\n \x3c!-- ko template: { name: $data.template || \'svd-toolbar-button\', data: $data.data || $data } --\x3e\n \x3c!-- /ko --\x3e\n </span>\n \x3c!-- /ko --\x3e\n </div>\n <pages-editor params="editor:$data" data-bind="visible: koShowPagesToolbox">\n </pages-editor>\n <div class="svd_questions_editor svd-light-bg-color" id="scrollableDiv" data-bind="style: { height: koDesignerHeight }, event: { dragover: dragOverQuestionsEditor, drop: dropOnQuestionsEditor }">\n <div id="surveyjs"></div>\n \x3c!-- ko if: isCurrentPageEmpty --\x3e\n <div class="empty-message" data-bind="text: $root.getLocString(\'survey.dropQuestion\')"></div>\n \x3c!-- /ko --\x3e\n </div>\n </div>\n <div class="col-lg-3 col-md-3 col-sm-3 hidden-xs svd_properties svd-light-border-color svd-light-bg-color" data-bind="visible: koShowPropertyGrid">\n <div class="svd_object_selector svd-light-border-color">\n <div class="svd_custom_select">\n <select id="objectSelector" class="form-control" data-bind="options: koObjects, optionsText: \'text\', value: koSelectedObject"></select>\n </div>\n <span data-bind="click: editCurrentObject, attr: { title: $root.getLocString(\'ed.editSelObject\')}">\n <svg-icon class="svd-primary-icon icon-edit" params="iconName: \'icon-edit\', size:24"></svg-icon>\n </span>\n </div>\n <div class="svd_object_editor" data-bind="style: {height: koDesignerHeight}">\n <div data-bind="template: { name: \'objecteditor\', data: selectedObjectEditor }"></div>\n </div>\n </div>\n </div>\n\n <div data-bind="visible: koViewType() == \'editor\'">\n <div data-bind="template: { name: \'jsoneditor\', data: jsonEditor }"></div>\n </div>\n\n <div data-bind="visible: koViewType() == \'test\', style: {width: koTestSurveyWidth}">\n <div id="surveyjsExample" data-bind="template: { name: \'surveylive\', data: surveyLive }"></div>\n </div>\n\n <div data-bind="visible: koViewType() == \'embed\'">\n <div data-bind="template: { name: \'surveyembeding\', data: surveyEmbeding }"></div>\n </div>\n </div>\n <div data-bind="template: { name: \'questioneditor\', data: questionEditorWindow }"></div>\n</div>'},function(e,t){e.exports='<script type="text/html" id="jsoneditor">\n <div data-bind="visible: !hasAceEditor">\n <textarea class="svd_json_editor_area" data-bind="textInput:koText"></textarea>\n \x3c!-- ko foreach: koErrors --\x3e\n <div>\n <span>Error: </span><span data-bind="text: text"></span>\n </div>\n \x3c!-- /ko --\x3e\n </div>\n <div id="surveyjsJSONEditor" class="svd_json_editor"></div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="surveys-manage">\n <div class="svd-manage">\n <div class="svd-manage-mask" data-bind="visible: isLoading"></div>\n <div class="svd-manage-control svd-light-border-color">\n <select class="svd-manage-select" data-bind="visible: !isEditMode(), options: surveys,\n optionsText: \'name\',\n value: currentSurvey,\n optionsCaption: \'Choose survey to edit or start editing and survey will be saved automatically...\'"></select>\n <input type="text" class="svd-manage-name" data-bind="visible: isEditMode, value: currentSurveyName, event: { keyup: nameEditorKeypress }"\n />\n </div>\n <div class="svd-manage-buttons">\n <span class="icon" data-bind="visible: currentSurvey, click: edit, css: cssEdit, attr: { title: titleEdit }"></span>\n <span class="icon" data-bind="visible: !isEditMode(), click: add, css: cssAdd, attr: { title: titleAdd }"></span>\n <span class="icon icon-delete" title="Delete current survey" data-bind="visible: !isEditMode() && !surveyId() && currentSurvey(), click:remove"></span>\n </div>\n </div>\n<\/script>\n<script type="text/html" id="attach-survey">\n <a target="_blank" href="#" data-bind="attr: { href: action, title: title }">\n <span class="icon" data-bind="css: innerCss"></span>\n <span data-bind="text: title"></span>\n </a>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="objecteditor">\n <table class="table svd_table-nowrap svd_properties_grid">\n <tbody data-bind="foreach: koProperties">\n \x3c!-- ko template: { name: \'objecteditorproperty\', afterRender: $parent.koAfterRender } --\x3e\n \x3c!-- /ko --\x3e\n </tbody>\n </table>\n<\/script>\n<script type="text/html" id="objecteditorproperty">\n <tr data-bind="click: $parent.changeActiveProperty($data), css: {\'active\': $parent.koActiveProperty() == $data}">\n <td width="50%">\n <span data-bind="text: displayName, attr: {title: title || displayName}"></span>\n </td>\n <td class="svd-light-text-color" width="50%">\n <span data-bind="css: {\'form-control\': !editor.alwaysShowEditor && (koText() === \'\' || koText() === null) }, text: koText, visible: !koIsShowEditor(), attr: {title: koText}"\n style="text-overflow:ellipsis;white-space:nowrap;overflow:hidden"></span>\n <div data-bind="visible: koIsShowEditor()">\n \x3c!-- ko template: { name: \'propertyeditor-\' + editorType, data: $data.editor } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n </td>\n </tr>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="svd-page-selector-template">\n <div class="svd-page-selector svd_custom_select svd-light-bg-color svd-light-border-color">\n <select data-bind="options: pagesSelection, value: pageSelection, optionsText:\'name\'"></select>\n </div>\n <div class="svd-page-scroller-arrow" data-bind="click: moveLeft, attr: {title: getLocString(\'ed.moveLeft\')}">\n <span>\n <svg-icon class="svd-secondary-icon" params="iconName: \'icon-left\'"></svg-icon>\n </span>\n </div>\n\n <div class="svd-pages" data-bind="sortable: {foreach: editor.pages, options: sortableOptions}, event: {wheel: onWheel}">\n <div class="svd-page svd-light-border-color" data-bind="css: $parent.getPageClass($data), click: $parent.onPageClick">\n <span class="svd-page-name" data-bind="text: name"></span>\n <span class="svd-page-actions-container">\n <svg-icon data-bind="css: $parent.getPageMenuIconClass($data)" params="iconName: $parent.getPageMenuIconClass($data), size: 12"></svg-icon>\n <div style="position: static">\n <div class="svd-page-actions svd-dark-border-color svd-light-bg-color" data-bind="visible: $parent.showActions($data)">\n <span class="svd-page-action" data-bind="click: function(model, event) {$parent.showPageSettings($data); event.stopPropagation();}, attr: {title: $parent.getLocString(\'ed.editPage\')}">\n <span>\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-actioneditelement\'"></svg-icon>\n </span>\n <span class="svd-main-color" data-bind="text: $parent.getLocString(\'ed.edit\')"></span>\n </span>\n <span class="svd-page-action" data-bind="click: function(model, event) {$parent.deletePage($data); event.stopPropagation();}, attr: {title: $parent.getLocString(\'ed.deletePage\')}, visible: !$parent.isLastPage()">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-actiondelete\'"></svg-icon>\n </span>\n <span class="svda_action_separator svd-dark-border-color" data-bind="visible: !$parent.isLastPage()"></span>\n <span class="svd-page-action" data-bind="click: function(model, event) {$parent.copyPage($data); event.stopPropagation();}, attr: {title: $parent.getLocString(\'survey.Copy\')}">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-actioncopy\'"></svg-icon>\n </span>\n </div>\n </div>\n </span>\n </div>\n </div>\n <div class="svd-page-scroller-arrow" data-bind="click: moveRight, attr: {title: getLocString(\'ed.moveRight\')}">\n <span>\n <svg-icon class="svd-secondary-icon" params="iconName: \'icon-right\'"></svg-icon>\n </span>\n </div>\n <div class="svd-page-add" data-bind="click: addPage, attr: {title: getLocString(\'ed.addNewPage\')}">\n <span>\n <svg-icon class="svd-secondary-icon" params="iconName: \'icon-add\'"></svg-icon>\n </span>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-boolean">\n <div class="sjs-cb-wrapper">\n <label>\n <div class="sjs-cb-container">\n <input class="svd_editor_control" type="checkbox" data-bind="checked: koValue, disable: $data.readOnly">\n <span class="checkmark" data-bind="css: { \'svd-main-background-color\': koValue, \'svd-light-background-color\': !koValue() }"></span>\n \x3c!-- ko if: $data.isDiplayNameVisible --\x3e\n <span class="sjs-cb-label" data-bind="text: $data.displayName"></span>\n \x3c!-- /ko --\x3e\n </div>\n </label>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-cells">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n<script type="text/html" id="propertyeditorcontent-cells">\n <div class="panel card">\n <div data-bind="visible:!koCanEdit(), text: $root.getLocString(\'pe.cellsEmptyRowsColumns\')"></div>\n <div data-bind="visible: koCanEdit" style="overflow:auto">\n <table class="table">\n <thead>\n <tr>\n <th></th>\n \x3c!-- ko foreach: koColumns --\x3e\n <th>\n <span data-bind="text:$data"></span>\n </th>\n \x3c!-- /ko --\x3e\n </tr>\n </thead>\n <tbody>\n \x3c!-- ko foreach: koRows --\x3e\n <tr>\n <td>\n <span data-bind="text:rowText"></span>\n </td>\n \x3c!-- ko foreach: koCells --\x3e\n <td style="min-width:120px">\n <textarea rows="2" cols="25" class="form-control" data-bind="textInput:text"></textarea>\n </td>\n \x3c!-- /ko --\x3e\n </tr>\n \x3c!-- /ko --\x3e\n </tbody>\n </table>\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-condition">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n\n<script type="text/html" id="propertyeditorcontent-condition">\n <div class="propertyeditor-condition">\n <div class="form-inline form-group">\n <div class="form-control svd_custom_select">\n <select style="max-width:200px" data-bind="options: koAddConditionQuestions, value: koAddConditionQuestion, optionsCaption: addConditionQuestionOptions"></select>\n </div>\n <div class="form-control svd_custom_select">\n <select data-bind="options:availableOperators, optionsValue: \'name\', optionsText: \'text\', value:koAddConditionOperator"></select>\n </div>\n <input class="form-control" type="text" data-bind="textInput:koAddConditionValue, enable: koAddContionValueEnabled" style="width:120px"\n />\n <input type="button" class="form-control btn btn-primary" data-bind="enable: koCanAddCondition, click: onConditionAddClick, value: koAddConditionButtonText"\n />\n <div class="svd_wrap_elements" data-bind="visible:koHasValueSurvey">\n <survey-widget params="survey: koValueSurvey"></survey-widget>\n </div>\n </div>\n \x3c!-- ko if: $parent.hasAceEditor --\x3e\n <span data-bind="text:$data.getLocString(\'pe.aceEditorHelp\')"></span>\n <div id="expression-ace-editor" style="height: 200px; width: 100%;" data-bind="value:koValue, aceEditor:{questions: $parent.availableQuestions, question: $data.editingObject, editor: $parent}"></div>\n \x3c!-- /ko --\x3e\n\n \x3c!-- ko if: !$parent.hasAceEditor --\x3e\n <textarea class="svd-dark-border-color" data-bind="value:koValue" rows="8" autofocus="autofocus"></textarea>\n \x3c!-- /ko --\x3e\n\n \x3c!-- <div class="assistant">\n <div class="assistant-title" data-bind="text:$data.getLocString(\'pe.assistantTitle\')"></div>\n <div class="assistant-content" data-bind="foreach:availableQuestions">\n <div class="assistant-item" data-bind=" text:name, click:function () { $parent.insertQuestion($data, $element); } "></div>\n </div>\n </div> --\x3e\n <span data-bind="text:$data.getLocString(\'pe.conditionHelp\')" style="white-space:normal "></span>\n <div data-bind="visible: $data.hasLocString(\'pe.conditionShowMoreUrl\')">\n <a data-bind="attr: { href: $data.getLocString(\'pe.conditionShowMoreUrl\')}, text:$data.getLocString(\'pe.showMore\')" target="_blank"></a>\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-custom">\n \x3c!-- ko template: { name: "propertyeditor-customcontent", data: $data, afterRender: $data.koAfterRender } --\x3e\x3c!-- /ko --\x3e\n<\/script>\n<script type="text/html" id="propertyeditor-customcontent"><div></div><\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-value">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n\n<script type="text/html" id="propertyeditorcontent-value">\n <form>\n <div class="svd_wrap_elements">\n <survey-widget params="survey: koSurvey"></survey-widget>\n </div>\n </form>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-dropdown">\n <div class="svd_custom_select svd_property_editor_dropdown">\n <select class="form-control svd_editor_control" data-bind="value: koValue, disable: readOnly, options: koChoices, optionsValue: \'value\', optionsText: \'text\'" style="width:100%"></select>\n </div>\n<\/script> '},function(e,t){e.exports='<script type="text/html" id="propertyeditor-expression">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n\n<script type="text/html" id="propertyeditorcontent-expression">\n <div class="propertyeditor-expression">\n \x3c!-- ko if: $parent.hasAceEditor --\x3e\n <span data-bind="text:$root.getLocString(\'pe.aceEditorHelp\')"></span>\n <div id="expression-ace-editor" style="height: 400px; width: 100%;" data-bind="value:koValue, aceEditor: {questions: $parent.availableQuestions, question: $data.editingObject, editor: $parent}"></div>\n \x3c!-- /ko --\x3e\n\n \x3c!-- ko if: !$parent.hasAceEditor --\x3e\n <textarea class="svd-dark-border-color" data-bind="value:koValue" rows="8" autofocus="autofocus"></textarea>\n \x3c!-- /ko --\x3e\n\n \x3c!-- <div class="assistant">\n <div class="assistant-title" data-bind="text:$root.getLocString(\'pe.assistantTitle\')"></div>\n <div class="assistant-content" data-bind="foreach:availableQuestions">\n <div class="assistant-item" data-bind="text:name, click:function () { $parent.insertQuestion($data, $element); } "></div>\n </div>\n </div> --\x3e\n <span data-bind="text:$root.getLocString(\'pe.expressionHelp\')" style="white-space:normal"></span>\n \x3c!-- <div>\n <a data-bind="text:$root.getLocString(\'pe.showMore\')" target="_blank" href="https://surveyjs.io/Documentation/LibraryParameter?id=QuestionBase¶meter=visibleIf"></a>\n </div> --\x3e\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-html">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\x3c!-- /ko --\x3e\n<\/script>\n\n<script type="text/html" id="propertyeditorcontent-html">\n <textarea class="form-control" data-bind="value:koValue, disable: readOnly" style="width:100%" rows="10" autofocus="autofocus"></textarea>\n<\/script>\n'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-itemvalues">\n \x3c!-- ko template: { name: \'propertyeditor-modal\' } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n<script type="text/html" id="propertyeditorcontent-itemvalues">\n <div data-bind="visible: koIsList">\n <div style="margin-bottom:3px" data-bind="visible: koShowTextView">\n <button class="btn btn-sm btn-xs" data-bind="css: {\'btn-primary\': koActiveView() === \'form\', \'btn-link\': koActiveView() !== \'form\'}, click:changeToFormViewClick, text: $root.getLocString(\'pe.formEntry\')"></button>\n <button class="btn btn-sm btn-xs" data-bind="css: {\'btn-primary\': koActiveView() !== \'form\', \'btn-link\': koActiveView() === \'form\'}, click:changeToTextViewClick, text: $root.getLocString(\'pe.fastEntry\')"></button>\n </div>\n <div data-bind="visible:koActiveView() == \'form\'" style="overflow-y: auto; overflow-x:hidden; max-height:400px;min-height:200px">\n <table class="svd_items_table">\n <thead>\n <tr>\n <th></th>\n \x3c!-- ko foreach: columns --\x3e\n <th data-bind="text: text"></th>\n \x3c!-- /ko --\x3e\n <th></th>\n </tr>\n </thead>\n \x3c!-- ko template: { name: \'propertyeditor-itemvalues-items\' } --\x3e\n \x3c!-- /ko --\x3e\n </table>\n </div>\n <div class="svd-items-control-footer" data-bind="visible:koActiveView() == \'form\'">\n <input type="button" class="btn btn-primary" data-bind="visible: koAllowAddRemoveItems, click: onAddClick, value: $root.getLocString(\'pe.addNew\')"\n />\n <input type="button" class="btn btn-danger" data-bind="visible: koAllowAddRemoveItems, click: onClearClick, value: $root.getLocString(\'pe.removeAll\')"\n />\n </div>\n <div data-bind="visible:koActiveView() != \'form\'">\n <textarea class="form-control" data-bind="textInput: koItemsText" style="overflow-y: auto; overflow-x:hidden; max-height:400px; min-height:250px; width:100%"></textarea>\n </div>\n </div>\n \x3c!-- ko if: !koIsList() --\x3e\n \x3c!-- ko template: { name: "propertyeditorcontent-nested", data: $data } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n<script type="text/html" id="propertyeditor-itemvalues-items">\n <tbody data-bind="sortable: { foreach: koItems, options: sortableOptions }">\n <tr>\n <td class="svd-itemvalue-actions-container">\n <div class="svd-drag-handle svd-itemvalue-action">\n ☰\n </div>\n <button type="button" class="btn btn-sm svd-textitems-edit svd-itemvalue-action" data-bind="visible: $parent.hasDetailButton, click: $parent.onEditItemClick">\n <span class="glyphicon glyphicon-edit" data-bind="text: $root.getLocString(\'pe.itemValueEdit\')"></span>\n </button>\n </td>\n \x3c!-- ko foreach: cells --\x3e\n <td>\n \x3c!-- ko template: { name: \'propertyeditor\', data: objectProperty.editor } --\x3e\n \x3c!-- /ko --\x3e\n </td>\n \x3c!-- /ko --\x3e\n <td>\n <button type="button" class="btn btn-sm btn-xs btn-danger" data-bind="visible: $parent.koAllowAddRemoveItems, click: $parent.onDeleteClick">\n <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>\n </button>\n </td>\n </tr>\n </tbody>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-matrixdropdowncolumns">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n<script type="text/html" id="propertyeditorcontent-matrixdropdowncolumns">\n <div data-bind="visible: koIsList">\n <table class="svd_items_table svd-matrixdropdowncolumns-table">\n <thead>\n <tr>\n <th></th>\n \x3c!-- ko foreach: columns --\x3e\n <th data-bind="text: text"></th>\n \x3c!-- /ko --\x3e\n <th></th>\n </tr>\n </thead>\n <tbody data-bind="sortable: { foreach: koItems, options: { handle: \'.svd-drag-handle\', animation: 150 } }">\n <tr>\n <td class="svd-itemvalue-actions-container">\n <div class="svd-drag-handle svd-itemvalue-action">\n ☰\n </div>\n <button type="button" class="btn btn-sm svd-textitems-edit svd-itemvalue-action" data-bind="click: $parent.onEditItemClick">\n <span class="glyphicon glyphicon-edit" data-bind="text: $root.getLocString(\'pe.edit\')"></span>\n </button>\n </td>\n \x3c!-- ko foreach: cells --\x3e\n <td>\n \x3c!-- ko template: { name: \'propertyeditor\', data: objectProperty.editor } --\x3e\n \x3c!-- /ko --\x3e\n </td>\n \x3c!-- /ko --\x3e\n <td class="svd-textitems-column">\n <button type="button" class="btn btn-sm btn-danger" data-bind="visible: $parent.koAllowAddRemoveItems, click: $parent.onDeleteClick">\n <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>\n </button>\n </td>\n </tr>\n </tbody>\n </table>\n <div class="svd-items-control-footer" data-bind="visible: koAllowAddRemoveItems">\n <input type="button" class="btn btn-primary" data-bind="click: onAddClick, value: $root.getLocString(\'pe.addNew\')" />\n <input type="button" class="btn btn-danger" data-bind="click: onClearClick, value: $root.getLocString(\'pe.removeAll\')" />\n </div>\n </div>\n \x3c!-- ko if: !koIsList() --\x3e\n \x3c!-- ko template: { name: "propertyeditorcontent-nested", data: $data } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-modal">\n <div class="input-group" data-bind="visible:!$data.isEditable">\n <a class="form-control" data-bind="click: $data.onShowModal, attr: {\'data-target\' : modalNameTarget}">\n <span data-bind="text: koText"></span>\n </a>\n <div class="input-group-addon">\n <span class="glyphicon glyphicon-edit" aria-hidden="true" data-bind="click: $data.onShowModal, attr: {\'data-target\' : modalNameTarget}, text: $root.getLocString(\'pe.edit\')"></span>\n </div>\n </div>\n <div class="input-group" data-bind="visible:$data.isEditable">\n <input class="form-control svd_editor_control" type="text" data-bind="value: koValue" />\n <div class="input-group-addon">\n <span class="glyphicon glyphicon-edit" aria-hidden="true" data-bind="click: $data.onShowModal, attr: {\'data-target\' : modalNameTarget}, text: $root.getLocString(\'pe.edit\')"></span>\n </div>\n </div>\n\n <div data-bind="attr: {id : modalName}" class="modal" role="dialog">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-bind="click: onResetClick">×</button>\n <h4 class="modal-title" data-bind="text:$data.koTitleCaption"></h4>\n </div>\n <div class="modal-body svd_notopbottompaddings">\n \x3c!-- ko template: { name: \'propertyeditor-modalcontent\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n <div class="modal-footer">\n <input type="button" class="btn btn-primary" data-bind="visible: $data.koShowApplyButton, click: $data.onApplyClick, value: $root.getLocString(\'pe.apply\')"\n style="width:100px" />\n <input type="button" class="btn btn-default btn-secondary" data-bind="click: $data.onOkClick, value: $root.getLocString(\'pe.ok\')"\n style="width:100px" />\n <input type="button" class="btn btn-primary" data-bind="click: $data.onResetClick, value: $root.getLocString(\'pe.cancel\')"\n style="width:100px" />\n </div>\n </div>\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-modalcontent">\n <div data-bind="html: $data.koHtmlTop"></div>\n \x3c!-- ko template: { name: \'propertyeditorcontent-\' + editorType, data: $data, afterRender: $data.koAfterRender } --\x3e\n \x3c!-- /ko --\x3e\n <div data-bind="html: $data.koHtmlBottom"></div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-multiplevalues">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n<script type="text/html" class="btn-xs" id="propertyeditorcontent-multiplevalues">\n <div style="max-height:300px; overflow-y:scroll;">\n \x3c!-- ko foreach: { data: koItems, as: \'item\'} --\x3e\n <div data-bind="style:{display: \'inline-block\'">\n <label>\n <input type="checkbox" data-bind="attr: {value: item.value}, checked: $parent.koEditingValue" />\n <span class="checkbox-material">\n <span class="check"></span>\n </span>\n <span style="position: static;" data-bind="text: item.text"></span>\n </label>\n </div>\n \x3c!-- /ko --\x3e\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditorcontent-nested">\n <div style="padding: 5px">\n <button type="button" class="btn btn-sm" data-bind="click: onCancelEditItemClick">\n <span class="glyphicon glyphicon-list-alt"></span>\n </button>\n <span data-bind="text: koEditorName"></span>\n </div>\n \x3c!-- ko template: { name: "questioneditor-content", data: koEditItem().itemEditor } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-number">\n <input class="form-control svd_editor_control" type="number" data-bind="value: koValue, disable: readOnly" style="width:100%" />\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-restfull">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n\n<script type="text/html" id="propertyeditorcontent-restfull">\n <form>\n <div class="form-group" data-bind="foreach: koItems">\n <label data-bind="attr: {for: name}, text: $root.getLocString(\'pe.\'+name)"></label>\n <input type="text" data-bind="attr: {id: name}, value:koValue" class="form-control"></input>\n </div>\n <div class="form-group">\n <label for="titleName">\n <span data-bind="text:$root.getLocString(\'pe.testService\')"></span>\n </label>\n <div class="form-control svd_custom_select" style="display: block;">\n <select data-bind="options: question.koVisibleChoices, optionsText: \'text\', optionsValue: \'value\', optionsCaption: question.optionsCaption"></select>\n </div>\n </div>\n </form>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-string">\n <input class="form-control svd_editor_control" type="text" data-bind="value: koValue, disable: readOnly, attr: {placeholder: defaultValue}" style="width:100%" />\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-text">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\x3c!-- /ko --\x3e\n<\/script>\n\n<script type="text/html" id="propertyeditorcontent-text">\n <textarea class="form-control" data-bind="value:koValue, disable: readOnly, attr: {rows: isDiplayNameVisible ? \'2\' : \'5\'}" style="width:100%" autofocus="autofocus"></textarea>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-textitems">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n<script type="text/html" id="propertyeditorcontent-textitems">\n <div class="panel card">\n <table class="table" data-bind="visible: koIsList">\n <thead>\n <tr>\n <th data-bind="text: $root.getLocString(\'pe.isRequired\')"></th>\n <th data-bind="text: $root.getLocString(\'pe.name\'), style: {width: isTitleVisible? \'\': \'100%\'}"></th>\n <th data-bind="visible: isTitleVisible, text: $root.getLocString(\'pe.title\')"></th>\n <th></th>\n </tr>\n </thead>\n <tbody>\n \x3c!-- ko foreach: koItems --\x3e\n <tr>\n <td class="svd-textitems-column" style="width: 130px;">\n <div class="svd-textitems-isrequired">\n \x3c!-- ko template: { name: "propertyeditor-boolean", data: { koValue: koIsRequired } } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n <button type="button" class="btn btn-sm svd-textitems-edit" data-bind="click: $parent.onEditItemClick, attr: { title: $root.getLocString(\'pe.edit\') }">\n <span class="glyphicon glyphicon-edit" data-bind="text: $root.getLocString(\'pe.edit\')"></span>\n </button>\n </td>\n <td>\n <input type="text" class="form-control" data-bind="value:koName, style: {width: $parent.isTitleVisible? \'180px\': \'100%\'}"\n />\n </td>\n <td data-bind="visible: $parent.isTitleVisible">\n <input type="text" class="form-control" data-bind="value:koTitle" style="width:180px" />\n </td>\n <td class="svd-textitems-column">\n <button type="button" class="btn btn-sm btn-danger" data-bind="visible: $parent.koAllowAddRemoveItems, click: $parent.onDeleteClick, attr: { title: $root.getLocString(\'pe.delete\') }">\n <span class="glyphicon glyphicon-remove" aria-hidden="true"></span>\n </button>\n </td>\n </tr>\n \x3c!-- /ko --\x3e\n <tr>\n <td colspan="4">\n <input type="button" class="btn btn-primary" data-bind="visible: koAllowAddRemoveItems, click: onAddClick, value: $root.getLocString(\'pe.addNew\')"\n />\n <input type="button" class="btn btn-danger" data-bind="visible: koAllowAddRemoveItems, click: onClearClick, value: $root.getLocString(\'pe.removeAll\')"\n />\n </td>\n </tr>\n </tbody>\n </table>\n \x3c!-- ko if: !koIsList() --\x3e\n \x3c!-- ko template: { name: "propertyeditorcontent-nested", data: $data } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-triggers">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n<script type="text/html" id="propertyeditorcontent-triggers">\n <div class="propertyeditor-triggers">\n <div class="input-group form-group">\n <div class="input-group-addon first-addon" data-bind="visible: koAllowAddRemoveItems">\n <div class="ddmenu-container">\n <div style="-webkit-tap-highlight-color:rgba(0,0,0,0)" onclick="return true"></div>\n\n <div class="ddmenu">\n <span tabindex="0" data-bind="attr: { title: $root.getLocString(\'pe.addNew\') }">\n <span class="glyphicon glyphicon-plus svd-main-color"></span>\n </span>\n <div tabindex="0" onclick="return true"></div>\n <ul class="svd-light-bg-color">\n \x3c!-- ko foreach: koTriggers --\x3e\n <li>\n <a data-bind="click: $parent.onAddClick, text:$data.text"></a>\n </li>\n \x3c!-- /ko --\x3e\n </ul>\n </div>\n </div>\n </div>\n <div class="form-control svd_custom_select">\n <select data-bind="options: koItems, optionsText: \'koText\', value: koSelected"></select>\n </div>\n <span data-bind="visible: koAllowAddRemoveItems, attr: { title: $root.getLocString(\'pe.delete\') }, enable: koSelected() != null, click: onDeleteClick"\n class="input-group-addon btn-danger">\n <span class="glyphicon glyphicon-remove"></span>\n </span>\n </div>\n <div data-bind="visible: koSelected() == null">\n <div data-bind="visible: koQuestionNames().length == 0, text: $root.getLocString(\'pe.noquestions\')"></div>\n <div data-bind="visible: koQuestionNames().length > 0, text: $root.getLocString(\'pe.createtrigger\')"></div>\n </div>\n <div data-bind="visible: koSelected() != null">\n <div data-bind="with: koSelected">\n <div class="form-inline form-group">\n <span class="input-group" data-bind="text: $root.getLocString(\'pe.triggerOn\')"></span>\n <div class="form-control svd_custom_select">\n <select data-bind="options:$parent.koQuestionNames, value: koName"></select>\n </div>\n <div class="form-control svd_custom_select">\n <select data-bind="options:availableOperators, optionsValue: \'name\', optionsText: \'text\', value:koOperator"></select>\n </div>\n <input class="form-control" type="text" data-bind="visible: koRequireValue, value:koValue" />\n </div>\n\n \x3c!-- ko if: koType() == \'visibletrigger\' --\x3e\n <div class="row">\n <div class="col-lg-6 col-sm-6">\n \x3c!-- ko template: { name: \'propertyeditor-triggersitems\', data: pages } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n <div class="col-lg-6 col-sm-6">\n \x3c!-- ko template: { name: \'propertyeditor-triggersitems\', data: questions } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koType() == \'completetrigger\' --\x3e\n <div class="row">\n <div style="margin: 10px" data-bind="text: $root.getLocString(\'pe.triggerCompleteText\')"></div>\n </div>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: koType() == \'setvaluetrigger\' --\x3e\n <div class="row">\n <div class="col-lg-6 col-sm-6">\n <div class="form-group">\n <div data-bind="text: $root.getLocString(\'pe.triggerSetToName\')"></div>\n <input class="form-control" type="text" data-bind="value:kosetToName" />\n </div>\n </div>\n <div class="col-lg-6 col-sm-6">\n <div class="form-group">\n <div data-bind="text: $root.getLocString(\'pe.triggerSetValue\')">\n </div>\n <input class="form-control" type="text" data-bind="value:kosetValue" />\n </div>\n </div>\n </div>\n \x3c!-- ko template: { name: "propertyeditor-boolean", data: { koValue: koisVariable, displayName: $root.getLocString(\'pe.triggerIsVariable\') } } --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-triggersitems">\n <div>\n <div class="form-group" data-bind="text: title"></div>\n <div class="form-group input-group">\n <select class="form-control" multiple="multiple" data-bind="options:koChoosen, value: koChoosenSelected"></select>\n <span class="input-group-addon btn-danger" data-bind="enable: koChoosenSelected() != null, click: onDeleteClick">\n <span class="glyphicon glyphicon-remove"></span>\n </span>\n </div>\n <div class="form-group input-group">\n <div class="form-control svd_custom_select">\n <select data-bind="options:koObjects, value: koSelected"></select>\n </div>\n <span class="input-group-addon btn-default" data-bind="enable: koSelected() != null, click: onAddClick">\n <span class="glyphicon glyphicon-plus svd-main-color"></span>\n </span>\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor-validators">\n \x3c!-- ko template: { name: \'propertyeditor-modal\', data: $data } --\x3e\n \x3c!-- /ko --\x3e\n<\/script>\n<script type="text/html" id="propertyeditorcontent-validators">\n <div class="propertyeditor-validators">\n <div class="input-group form-group">\n <div class="input-group-addon first-addon" data-bind="visible: koAllowAddRemoveItems">\n <div class="ddmenu-container">\n <div style="-webkit-tap-highlight-color:rgba(0,0,0,0)" onclick="return true"></div>\n\n <div class="ddmenu">\n <span tabindex="0">\n <span class="glyphicon glyphicon-plus svd-main-color"></span>\n </span>\n\n <div tabindex="0" onclick="return true"></div>\n <ul class="svd-light-bg-color">\n \x3c!-- ko foreach: koValidators --\x3e\n <li>\n <a href="#" data-bind="click: $parent.onAddClick">\n <span data-bind="text:$data.text"></span>\n </a>\n </li>\n \x3c!-- /ko --\x3e\n </ul>\n </div>\n </div>\n </div>\n <div class="form-control svd_custom_select">\n <select data-bind="options: koItems, optionsText: \'text\', value: koSelected"></select>\n </div>\n <span class="input-group-addon btn-danger" data-bind="visible: koAllowAddRemoveItems, enable: koSelected() != null, click: onDeleteClick">\n <span class="glyphicon glyphicon-remove"></span>\n </span>\n </div>\n <div data-bind="template: { name: \'objecteditor\', data: selectedObjectEditor }"></div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="propertyeditor">\n <label data-bind="text:displayName, visible: showDisplayNameOnTop"></label>\n <div class="alert alert-danger" role="alert" data-bind="visible:koHasError">\n <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>\n <span class="sr-only">Error:</span>\n <span data-bind="text:koErrorText"></span>\n </div>\n \x3c!-- ko template: {name: $data.contentTemplateName, data: $data} --\x3e\n \x3c!-- /ko --\x3e\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="questioneditor-content">\n <ul class="nav nav-tabs" data-bind="foreach: koTabs">\n <li class="nav-item" role="presentation" data-bind="css: {active: $parent.koActiveTab() == $data.name}, click: $parent.onTabClick">\n <a class="nav-link" data-bind="css: {active: $parent.koActiveTab() == $data.name}">\n <span data-bind="text:$data.title"></span>\n </a>\n </li>\n </ul>\n \x3c!-- ko foreach: koTabs --\x3e\n <div data-bind="if: $parent.koActiveTab() === $data.name" style="margin-top:5px">\n \x3c!-- ko template: { name: $data.htmlTemplate, data: $data.templateObject, afterRender: $data.koAfterRender } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="questioneditor">\n <div id="surveyquestioneditorwindow" class="modal" data-bind="with:koEditor">\n <div class="modal-dialog">\n <div class="modal-content">\n <div class="modal-header">\n <button type="button" class="close" data-bind="click: onResetClick">×</button>\n <h4 class="modal-title" data-bind="text:koTitle"></h4>\n </div>\n <div class="modal-body svd_notopbottompaddings">\n \x3c!-- ko template: { name: "questioneditor-content", data: $data } --\x3e\n \x3c!-- /ko --\x3e\n </div>\n <div class="modal-footer">\n <input type="button" class="btn btn-primary" data-bind="visible: koShowApplyButton, click: onApplyClick, value: $root.getLocString(\'pe.apply\')"\n style="width:100px" />\n <input type="button" class="btn btn-default btn-secondary" data-bind="click: onOkClick, value: $root.getLocString(\'pe.ok\')"\n style="width:100px" />\n <input type="button" class="btn btn-primary" data-bind="click: onResetClick, value: $root.getLocString(\'pe.cancel\')" style="width:100px"\n />\n </div>\n </div>\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="questioneditortab">\n <div class="row">\n <div class="col-sm-12">\n \x3c!-- ko foreach: properties.rows --\x3e\n <div class="form-group">\n \x3c!-- ko foreach: properties --\x3e\n \x3c!-- ko template: { name: \'propertyeditor\', data: objectProperty.editor } --\x3e\x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- /ko --\x3e\n </div>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="surveyembeding">\n <div class="row">\n <div class="form-control svd_custom_select svd_embed_tab">\n <select data-bind="value:koLibraryVersion">\n <option value="angular" data-bind="text: $root.getLocString(\'ew.angular\')"></option>\n <option value="jquery" data-bind="text: $root.getLocString(\'ew.jquery\')"></option>\n <option value="knockout" data-bind="text: $root.getLocString(\'ew.knockout\')"></option>\n <option value="react" data-bind="text: $root.getLocString(\'ew.react\')"></option>\n <option value="vue" data-bind="text: $root.getLocString(\'ew.vue\')"></option>\n </select>\n </div>\n <div class="form-control svd_custom_select svd_embed_tab">\n <select data-bind="value:koScriptUsing">\n <option value="bootstrap" data-bind="text: $root.getLocString(\'ew.bootstrap\')"></option>\n <option value="standard" data-bind="text: $root.getLocString(\'ew.standard\')"></option>\n </select>\n </div>\n <div class="form-control svd_custom_select svd_embed_tab">\n <select data-bind="value:koShowAsWindow">\n <option value="page" data-bind="text: $root.getLocString(\'ew.showOnPage\')"></option>\n <option value="window" data-bind="text: $root.getLocString(\'ew.showInWindow\')"></option>\n </select>\n </div>\n <label class="checkbox-inline form-check-label" data-bind="visible:koHasIds">\n <input type="checkbox" data-bind="checked:koLoadSurvey" />\n <span data-bind="text: $root.getLocString(\'ew.loadFromServer\')"></span>\n </label>\n </div>\n <div class="panel card">\n <div class="panel-heading card-header" data-bind="text: $root.getLocString(\'ew.titleScript\')"></div>\n <div data-bind="visible:hasAceEditor">\n <div id="surveyEmbedingHead" style="height:70px;width:100%"></div>\n </div>\n <textarea data-bind="visible:!hasAceEditor, text: koHeadText" style="height:70px;width:100%"></textarea>\n </div>\n <div class="panel card" data-bind="visible: koVisibleHtml">\n <div class="panel-heading card-header" data-bind="text: $root.getLocString(\'ew.titleHtml\')"></div>\n <div data-bind="visible:hasAceEditor">\n <div id="surveyEmbedingBody" style="height:30px;width:100%"></div>\n </div>\n <textarea data-bind="visible:!hasAceEditor, text: koBodyText" style="height:30px;width:100%"></textarea>\n </div>\n <div class="panel card">\n <div class="panel-heading card-header" data-bind="text: $root.getLocString(\'ew.titleJavaScript\')"></div>\n <div data-bind="visible:hasAceEditor">\n <div id="surveyEmbedingJava" style="height:300px;width:100%"></div>\n </div>\n <textarea data-bind="visible:!hasAceEditor, text: koJavaText" style="height:300px;width:100%"></textarea>\n </div>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="surveylive">\n <div data-bind="visible: koIsRunning() && koPages().length > 1">\n <label for="testSurveyPageChanged" data-bind="text: selectPageText"></label>\n <span id="testSurveyPageChanged">\n <select class="form-control" data-bind="options: koPages, optionsText: \'title\', optionsValue: \'page\', value: koActivePage, optionsAfterRender: setPageDisable"></select>\n </span>\n </div>\n <survey-widget params="survey: koSurvey"></survey-widget>\n <div data-bind="text: koResultText, visible: koIsRunning() == false"></div>\n <button data-bind="visible: koIsRunning() == false, click:selectTestClick, text: testSurveyAgainText">Test Again</button>\n<\/script>'},function(e,t){e.exports='<script type="text/html" id="svd-toolbar-button">\n <button type="button" class="btn btn-primary" data-bind="enable: $data.enabled || true, click: action, css: $data.innerCss">\n <span data-bind="text: title"></span>\n </button>\n<\/script>\n<script type="text/html" id="svd-toolbar-options">\n <div class="ddmenu-container toolbar-options btn-group inline">\n <div style="-webkit-tap-highlight-color:rgba(0,0,0,0)" onclick="return true"></div>\n\n <div class="ddmenu">\n <span class="btn btn-primary" tabindex="0">\n <span data-bind="text: title"></span>\n <span class="caret"></span>\n </span>\n <div tabindex="0" onclick="return true"></div>\n <ul class="svd-light-bg-color">\n \x3c!-- ko foreach: items --\x3e\n <li data-bind="css: $data.css">\n <a href="#" data-bind="click: action, text: title"></a>\n </li>\n \x3c!-- /ko --\x3e\n </ul>\n </div>\n </div>\n<\/script>\n<script type="text/html" id="svd-toolbar-state">\n <span class="icon">\n <svg-icon class="icon-status" params="iconName: innerCss, size: 24"></svg-icon>\n </span>\n <span class="svd-light-text-color" data-bind="text: title"></span>\n<\/script>'},function(e,t){e.exports='<div class="svda-content">\n <span class="svda-title-editor-content" data-bind="visible: isEditing" style="display: none;">\n <input data-bind="textInput: editingName, event: { keyup: nameEditorKeypress, blur: postEdit }" style="border-top: none; border-left: none; border-right: none; outline: none; background-color: transparent; display: inline-block;"\n />\n <span class="svda-edit-button" data-bind="click: postEdit, enable: editingName() != \'\'">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-inplacecheck\', size: 12"></svg-icon>\n </span>\n \x3c!-- <span class="svda-edit-button" data-bind="click: cancelEdit">✕</span> --\x3e\n </span>\n <span class="svda-title-editor-content svda-title-editor-start" data-bind="visible: !isEditing()">\n <span style="display: none;" data-bind="text: editingName"></span>\n <span class="edit-survey-name" data-bind="click: startEdit, attr: { title: getLocString(\'pe.edit\') }">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-inplaceedit\', size: 12"></svg-icon>\n </span>\n </span>\n \x3c!-- ko if: notOther --\x3e\n <span class="svda-drag-handle" data-bind="attr: { title: getLocString(\'pe.move\') }, visible: !isEditing()">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-inplacedraggable\', size: 12"></svg-icon>\n </span>\n \x3c!-- /ko --\x3e\n <span class="svda-delete-item" data-bind="click: deleteItem, attr: { title: getLocString(\'pe.delete\') }, visible: !isEditing()">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-inplacedelete\', size: 12"></svg-icon>\n </span>\n</div>'},function(e,t){e.exports='<div>\n \x3c!-- ko foreach: actions --\x3e\n \x3c!-- ko if: !$data.template --\x3e\n <span class="svda_question_action svd-main-color" data-bind="click: function() { onClick($parent.question); }, attr: {title: text}">\n <span>\n <svg-icon class="svd-primary-icon" data-bind="css: $parent.getStyle($data)" params="iconName: $parent.getStyle($data)"></svg-icon>\n </span>\n <span data-bind="text: $data.hasTitle ? text: \'\'"></span>\n </span>\n \x3c!-- /ko --\x3e\n \x3c!-- ko if: !!$data.template --\x3e\n \x3c!-- ko template: template --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n \x3c!-- /ko --\x3e\n</div>'},function(e,t){e.exports='<div class="svda-content">\n <span class="svda-title-editor-content" data-bind="visible: isEditing" style="display: none;">\n <input data-bind="textInput: editingName, event: { keyup: nameEditorKeypress, blur: postEdit }" style="border-top: none; border-left: none; border-right: none; outline: none; background-color: transparent; display: inline-block; margin: -6px;"\n />\n <span class="svda-edit-button" data-bind="click: postEdit, enable: editingName() != \'\'">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-inplacecheck\', size: 12"></svg-icon>\n </span>\n \x3c!-- <span class="svda-edit-button" data-bind="click: cancelEdit">✕</span> --\x3e\n </span>\n <span class="svda-title-editor-content svda-title-editor-start" data-bind="visible: !isEditing()">\n <span style="display: none;" data-bind="text: editingName"></span>\n <span class="edit-survey-name" data-bind="click: startEdit, attr: { title: getLocString(\'pe.edit\') }">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-inplaceedit\', size: 12"></svg-icon>\n </span>\n </span>\n <span class="svda-delete-item" data-bind="click: deleteItem, attr: { title: getLocString(\'pe.delete\') }, visible: !isEditing()">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-inplacedelete\', size: 12"></svg-icon>\n </span>\n</div>'},function(e,t){e.exports='<div class="svda-select-items-editor">\n <div class="svda-select-items-title" data-bind="click: toggle">\n <span class="svd-main-color" data-bind="text: getLocString(\'pe.editChoices\')"></span>\n </div>\n <div class="svda-select-items-content svd-dark-border-color svd-light-bg-color" data-bind="visible: isExpanded">\n <div class="svda-select-items-collection">\n \x3c!-- ko foreach: { data: choices, afterRender: choicesRendered } --\x3e\n <div class="item_editable item_draggable">\n <span data-bind="text: text"></span>\n <span>\n <item-editor params=\'name: "text", target: $data, item: $data, question: $parent.question, editor: $parent.editor\'></item-editor>\n </span>\n </div>\n \x3c!-- /ko --\x3e\n </div>\n \x3c!-- ko if: question.hasOther --\x3e\n <div class="item_editable">\n <span data-bind="text: question.otherText"></span>\n <span>\n <item-editor params=\'name: "otherText", target: question, item: question.otherItem, question: question, editor: editor\'></item-editor>\n </span>\n </div>\n \x3c!-- /ko --\x3e\n <div class="svda-add-new-item" data-bind="click: addItem, attr: { title: getLocString(\'pe.addItem\') }">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-inplaceplus\', size: 12"></svg-icon>\n </div>\n </div>\n</div>'},function(e,t){e.exports='<div class="svda-content">\n <span class="svda-title-editor-content" data-bind="visible: isEditing" style="display: none;">\n <input data-bind="textInput: editingName, event: { keyup: nameEditorKeypress, blur: postEdit }" style="border-top: none; border-left: none; border-right: none; outline: none; background-color: transparent; display: inline-block;"\n />\n <span class="svda-edit-button" data-bind="click: postEdit, enable: editingName() != \'\'">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-inplacecheck\', size: 12"></svg-icon>\n </span>\n \x3c!-- <span class="svda-edit-button" data-bind="click: cancelEdit">✕</span> --\x3e\n </span>\n <span class="svda-title-editor-content svda-title-editor-start" data-bind="visible: !isEditing()">\n <span style="display: none;" data-bind="text: editingName"></span>\n <span class="edit-survey-name" data-bind="click: startEdit, attr: { title: getLocString(\'pe.edit\') }">\n <svg-icon class="svd-primary-icon" params="iconName: \'icon-inplaceedit\', size: 12"></svg-icon>\n </span>\n </span>\n</div>'},function(e,t,o){e.exports=o(71)+" "+o(72)+" "+o(74)+" "+o(75)+"\n"+o(103)+" "+o(102)+" "+o(100)+" "+o(99)+"\n"+o(101)+" "+o(98)+" "+o(76)+"\n"+o(81)+" "+o(83)+" "+o(78)+"\n"+o(82)+" "+o(84)+"\n"+o(88)+" "+o(89)+"\n"+o(85)+" "+o(86)+o(87)+"\n"+o(90)+" "+o(91)+" "+o(80)+"\n"+o(92)+" "+o(93)+" "+o(77)+"\n"+o(94)+" "+o(95)+"\n"+o(96)+" "+o(97)+"\n"+o(79)+" "+o(73)+" "+o(104)+" "+o(70)+"\n"+o(69)},function(e,t,o){"use strict";var n=o(1),i=(o.n(n),o(19));o.d(t,"a",function(){return r});var r=function(){function e(){this.isProcessingImmediately=!1,this.timeoutId=-1,this.koText=n.observable(""),this.koErrors=n.observableArray();var e=this;this.koText.subscribe(function(t){e.onJsonEditorChanged()})}return e.prototype.init=function(e){if(this.hasAceEditor){this.aceEditor=ace.edit(e);var t=this;this.aceEditor.setShowPrintMargin(!1),this.aceEditor.getSession().on("change",function(){t.onJsonEditorChanged()}),this.aceEditor.getSession().setUseWorker(!0),i.a.newLineChar=this.aceEditor.session.doc.getNewLineCharacter()}},Object.defineProperty(e.prototype,"hasAceEditor",{get:function(){return"undefined"!=typeof ace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.hasAceEditor?this.aceEditor.getValue():this.koText()},set:function(e){this.isProcessingImmediately=!0,this.koText(e),this.aceEditor&&(this.aceEditor.setValue(e),this.aceEditor.renderer.updateFull(!0)),this.processJson(e),this.isProcessingImmediately=!1},enumerable:!0,configurable:!0}),e.prototype.show=function(e){this.text=e,this.aceEditor&&this.aceEditor.focus()},Object.defineProperty(e.prototype,"isJsonCorrect",{get:function(){return this.textWorker=new i.a(this.text),this.textWorker.isJsonCorrect},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.textWorker.survey},enumerable:!0,configurable:!0}),e.prototype.onJsonEditorChanged=function(){if(this.timeoutId>-1&&clearTimeout(this.timeoutId),this.isProcessingImmediately)this.timeoutId=-1;else{var t=this;this.timeoutId=window.setTimeout(function(){t.timeoutId=-1,t.processJson(t.text)},e.updateTextTimeout)}},e.prototype.processJson=function(e){this.textWorker=new i.a(e),this.aceEditor?this.aceEditor.getSession().setAnnotations(this.createAnnotations(e,this.textWorker.errors)):this.koErrors(this.textWorker.errors)},e.prototype.createAnnotations=function(e,t){for(var o=new Array,n=0;n<t.length;n++){var i=t[n],r={row:i.position.start.row,column:i.position.start.column,text:i.text,type:"error"};o.push(r)}return o},e}();r.updateTextTimeout=1e3},function(e,t,o){var n,i,n,i,r,n,i;!function(a){"use strict";var s;s="undefined"!=typeof ko?ko:o(1);var l;l="undefined"!=typeof Sortable?Sortable:o(10),void 0!==s&&void 0!==l?a(s,l):void 0!==s&&void 0===l?(n=[o(10)],void 0!==(i=function(e){a(s,e)}.apply(t,n))&&(e.exports=i)):void 0===s&&void 0!==l?(n=[o(1)],void 0!==(i=function(e){a(e,l)}.apply(t,n))&&(e.exports=i)):void 0===s&&void 0===l&&(n=[o(1),o(10)],r=a,void 0!==(i="function"==typeof r?r.apply(t,n):r)&&(e.exports=i))}(function(e,t){"use strict";var o=function(o,n,a,s,l,d){var c=r(n,d);["onStart","onEnd","onRemove","onAdd","onUpdate","onSort","onFilter","onMove","onClone"].forEach(function(t){(c[t]||i[t])&&(c[t]=function(t,o,n,r,a){var s=e.dataFor(a.item),l=e.utils.peekObservable(n()),d=l.sortable||l.draggable,c=d.collection||d.foreach;r&&r(a,s,o,c,l),i[t]&&i[t](a,s,o,c,l)}.bind(void 0,t,s,a,c[t]))});var u=t.create(o,c);return e.utils.domNodeDisposal.addDisposeCallback(o,function(){u.destroy()}),e.bindingHandlers.template.init(o,n)},n=function(t,o,n,i,r,a){return e.bindingHandlers.template.update(t,o,n,i,r)},i=function(t){var o=[],n=function(e,t,n,r,a){var s={event:e,itemVM:t,parentVM:n,collection:r,parentBindings:a},l=o.filter(function(e){return e.itemVM===s.itemVM})[0];if(l){o.splice(o.indexOf(l),1);var d="remove"===s.event.type?s:l,c="add"===s.event.type?s:l;i(t,d.collection,c.collection,c.event.clone,c.event)}else o.push(s)},i=function(t,o,n,i,r){var a=o(),s=a.indexOf(t),l=r.newIndex;r.item.previousElementSibling&&(l=n().indexOf(e.dataFor(r.item.previousElementSibling)),l+=l>s?0:1),r.item.parentNode.removeChild(r.item),a.splice(s,1),o.valueHasMutated(),i&&o!==n&&(a.splice(s,0,t),o.valueHasMutated()),!!e.tasks&&e.tasks.runEarly(),n().splice(l,0,t),n.valueHasMutated()};return t.onRemove=n,t.onAdd=n,t.onUpdate=function(e,t,o,n,r){i(t,n,n,!1,e)},t}({}),r=function(t,o){var n=function(e,t){for(var o in t)"[object Object]"===Object.prototype.toString.call(t[o])?("[object Object]"!==Object.prototype.toString.call(e[o])&&(e[o]={}),e[o]=n(e[o],t[o])):e[o]=t[o];return e},i=e.utils.peekObservable(t()).options||{};return o=n({},o),i.group&&"[object Object]"!==Object.prototype.toString.call(i.group)&&(i.group={name:i.group}),n(o,i)};e.bindingHandlers.draggable={sortableOptions:{group:{pull:"clone",put:!1},sort:!1},init:function(t,n,i,r,a){return o(t,n,i,r,a,e.bindingHandlers.draggable.sortableOptions)},update:function(t,o,i,r,a){return n(t,o,i,r,a,e.bindingHandlers.draggable.sortableOptions)}},e.bindingHandlers.sortable={sortableOptions:{group:{pull:!0,put:!0}},init:function(t,n,i,r,a){return o(t,n,i,r,a,e.bindingHandlers.sortable.sortableOptions)},update:function(t,o,i,r,a){return n(t,o,i,r,a,e.bindingHandlers.sortable.sortableOptions)}}})},function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(34),i=(o.n(n),o(35)),r=(o.n(i),o(36)),a=(o.n(r),o(33)),s=(o.n(a),o(23));o.d(t,"enStrings",function(){return s.a});var l=o(0);o.d(t,"editorLocalization",function(){return l.a}),o.d(t,"defaultStrings",function(){return l.b});var d=o(22);o.d(t,"DragDropHelper",function(){return d.a});var c=o(12);o.d(t,"SurveyPropertyEditorBase",function(){return c.a});var u=o(24);o.d(t,"SurveyPropertyCustomEditor",function(){return u.a});var p=o(4);o.d(t,"SurveyPropertyEditorFactory",function(){return p.a}),o.d(t,"SurveyStringPropertyEditor",function(){return p.b}),o.d(t,"SurveyDropdownPropertyEditor",function(){return p.c}),o.d(t,"SurveyBooleanPropertyEditor",function(){return p.d}),o.d(t,"SurveyNumberPropertyEditor",function(){return p.e});var h=o(60);o.d(t,"SurveyPropertyTextItemsEditor",function(){return h.a});var m=o(13);o.d(t,"SurveyPropertyItemsEditor",function(){return m.a});var v=o(56);o.d(t,"SurveyPropertyItemValuesEditor",function(){return v.a});var g=o(58);o.d(t,"SurveyPropertyMultipleValuesEditor",function(){return g.a});var f=o(14);o.d(t,"SurveyNestedPropertyEditor",function(){return f.a}),o.d(t,"SurveyNestedPropertyEditorItem",function(){return f.b});var y=o(57);o.d(t,"SurveyPropertyDropdownColumnsEditor",function(){return y.a}),o.d(t,"SurveyPropertyMatrixDropdownColumnsItem",function(){return y.b});var b=o(6);o.d(t,"SurveyPropertyModalEditor",function(){return b.a}),o.d(t,"SurveyPropertyTextEditor",function(){return b.b}),o.d(t,"SurveyPropertyHtmlEditor",function(){return b.c});var x=o(54);o.d(t,"SurveyPropertyConditionEditor",function(){return x.a});var w=o(59);o.d(t,"SurveyPropertyResultfullEditor",function(){return w.a});var k=o(55);o.d(t,"SurveyPropertyDefaultValueEditor",function(){return k.a});var S=o(61);o.d(t,"SurveyPropertyTriggersEditor",function(){return S.a});var T=o(62);o.d(t,"SurveyPropertyValidatorsEditor",function(){return T.a});var C=o(53);o.d(t,"SurveyPropertyCellsEditor",function(){return C.a});var E=o(29);o.d(t,"SurveyObjects",function(){return E.a});var P=o(25);o.d(t,"SurveyQuestionEditorProperties",function(){return P.a}),o.d(t,"SurveyQuestionEditorRow",function(){return P.b}),o.d(t,"SurveyQuestionEditorProperty",function(){return P.c});var O=o(15);o.d(t,"SurveyQuestionEditorDefinition",function(){return O.a});var V=o(9);o.d(t,"SurveyPropertyEditorShowWindow",function(){return V.a}),o.d(t,"SurveyQuestionEditor",function(){return V.b}),o.d(t,"SurveyQuestionEditorTab",function(){return V.c});var N=o(26);o.d(t,"QuestionToolbox",function(){return N.a});var j=o(11);o.d(t,"SurveyObjectProperty",function(){return j.a});var I=o(17);o.d(t,"SurveyObjectEditor",function(){return I.a});var A=o(52);o.d(t,"PagesEditor",function(){return A.a});var q=o(19);o.d(t,"SurveyTextWorker",function(){return q.a});var M=o(5);o.d(t,"ObjType",function(){return M.a}),o.d(t,"SurveyHelper",function(){return M.b});var D=o(30);o.d(t,"SurveyLiveTester",function(){return D.a});var R=o(28);o.d(t,"SurveyEmbedingWindow",function(){return R.a});var z=o(27);o.d(t,"QuestionConverter",function(){return z.a});var L=o(31);o.d(t,"SurveyUndoRedo",function(){return L.a}),o.d(t,"UndoRedoItem",function(){return L.b});var H=o(7);o.d(t,"SurveyForDesigner",function(){return H.a}),o.d(t,"registerAdorner",function(){return H.b}),o.d(t,"removeAdorners",function(){return H.c});var _=o(42);o.d(t,"Extentions",function(){return _.a});var B=o(41);o.d(t,"SurveyEditor",function(){return B.a});var $=o(51);o.d(t,"SurveysManager",function(){return $.a});var J=o(18);o.d(t,"StylesManager",function(){return J.a});var Q=(o(43),o(44),o(45),o(46),o(47),o(48),o(49),o(50),o(16));o.d(t,"titleAdorner",function(){return Q.a});var U=o(21);o.d(t,"itemAdorner",function(){return U.a});var F=o(37);o.d(t,"labelAdorner",function(){return F.a});var W=o(38);o.d(t,"questionActionsAdorner",function(){return W.a});var G=o(40);o.d(t,"selectItemsEditorAdorner",function(){return G.a});var K=o(39);o.d(t,"ratingItemAdorner",function(){return K.a}),o.d(t,"Version",function(){return Y});var Y;Y="1.0.24"}])});
| ver. 1.4 |
Github
|
.
| PHP 7.2.34 | Generation time: 0.65 |
proxy
|
phpinfo
|
Settings