PageSourceSearch

https://app.hireez.com/vendor.survey-core.1bcc24773bcdf373.js

js hireez.com collected 2026-09-24 09:04:08 UTC 1,563,533 bytes, 1 lines download raw bytes

1(self.webpackChunkhiretual_frontend=self.webpackChunkhiretual_frontend||[]).push([["6429"],{512535:function(e,t,r){var n,o,i=r(425108);n=0,o=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,(function(t){return e[t]}).bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./src/entries/core.ts")}({
1"./src/entries/core.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"Version",function(){return eE}),r.d(t,"ReleaseDate",function(){return eR}),r.d(t,"checkLibraryVersion",function(){return lt}),r.d(t,"setLicenseKey",function(){return lr}),r.d(t,"slk",function(){return ln}),r.d(t,"hasLicense",function(){return lo}),r.d(t,"settings",function(){return r9}),r.d(t,"Helpers",function(){return eA}),r.d(t,"AnswerCountValidator",function(){return nx}),r.d(t,"EmailValidator",function(){return nP}),r.d(t,"NumericValidator",function(){return nv}),r.d(t,"RegexValidator",function(){return nw}),r.d(t,"SurveyValidator",function(){return ny}),r.d(t,"TextValidator",function(){return nC}),r.d(t,"ValidatorResult",function(){return nm}),r.d(t,"ExpressionValidator",function(){return nV}),r.d(t,"ValidatorRunner",function(){return nb}),r.d(t,"ItemValue",function(){return nL}),r.d(t,"Base",function(){return tQ}),r.d(t,"Event",function(){return tz}),r.d(t,"EventBase",function(){return tW}),r.d(t,"ArrayChanges",function(){return tH}),r.d(t,"ComputedUpdater",function(){return tB}),r.d(t,"SurveyError",function(){return ne}),r.d(t,"SurveyElementCore",function(){return rx}),r.d(t,"SurveyElement",function(){return rw}),r.d(t,"DragTypeOverMeEnum",function(){return eT}),r.d(t,"CalculatedValue",function(){return nM}),r.d(t,"CustomError",function(){return nf}),r.d(t,"AnswerRequiredError",function(){return nr}),r.d(t,"OneAnswerRequiredError",function(){return nn}),r.d(t,"RequreNumericError",function(){return no}),r.d(t,"ExceedSizeError",function(){return ni}),r.d(t,"LocalizableString",function(){return rV}),r.d(t,"LocalizableStrings",function(){return rj}),r.d(t,"HtmlConditionItem",function(){return nB}),r.d(t,"UrlConditionItem",function(){return nQ}),r.d(t,"ChoicesRestful",function(){return nW}),r.d(t,"ChoicesRestfull",function(){return nU}),r.d(t,"FunctionFactory",function(){return tt}),r.d(t,"registerFunction",function(){return tr}),r.d(t,"ConditionRunner",function(){return tA}),r.d(t,"ExpressionRunner",function(){return tL}),r.d(t,"ExpressionExecutor",function(){return tD}),r.d(t,"Operand",function(){return tb}),r.d(t,"Const",function(){return tw}),r.d(t,"BinaryOperand",function(){return tv}),r.d(t,"Variable",function(){return tP}),r.d(t,"FunctionOperand",function(){return tV}),r.d(t,"ArrayOperand",function(){return tx}),r.d(t,"UnaryOperand",function(){return tC}),r.d(t,"ConditionsParser",function(){return tE}),r.d(t,"ProcessValue",function(){return e9}),r.d(t,"JsonError",function(){return eX}),r.d(t,"JsonIncorrectTypeError",function(){return e2}),r.d(t,"JsonMetadata",function(){return eY}),r.d(t,"JsonMetadataClass",function(){return eK}),r.d(t,"JsonMissingTypeError",function(){return e1}),r.d(t,"JsonMissingTypeErrorBase",function(){return e0}),r.d(t,"JsonObject",function(){return e3}),r.d(t,"JsonObjectProperty",function(){return eG}),r.d(t,"JsonRequiredPropertyError",function(){return e5}),r.d(t,"JsonUnknownPropertyError",function(){return eZ}),r.d(t,"Serializer",function(){return e6}),r.d(t,"property",function(){return eW}),r.d(t,"propertyArray",function(){return eJ}),r.d(t,"MatrixDropdownCell",function(){return og}),r.d(t,"MatrixDropdownRowModelBase",function(){return ob}),r.d(t,"QuestionMatrixDropdownModelBase",function(){return oC}),r.d(t,"MatrixDropdownColumn",function(){return oi}),r.d(t,"matrixDropdownColumnTypes",function(){return oo}),r.d(t,"QuestionMatrixDropdownRenderedCell",function(){return oc}),r.d(t,"QuestionMatrixDropdownRenderedRow",function(){return op}),r.d(t,"QuestionMatrixDropdownRenderedErrorRow",function(){return oh}),r.d(t,"QuestionMatrixDropdownRenderedTable",function(){return od}),r.d(t,"MatrixDropdownRowModel",function(){return ow}),r.d(t,"QuestionMatrixDropdownModel",function(){return oP}),r.d(t,"MatrixDynamicRowModel",function(){return oM}),r.d(t,"QuestionMatrixDynamicModel",function(){return oF}),r.d(t,"MatrixRowModel",function(){return iG}),r.d(t,"MatrixCells",function(){return i$}),r.d(t,"QuestionMatrixModel",function(){return iK}),r.d(t,"QuestionMatrixBaseModel",function(){return n$}),r.d(t,"MultipleTextItemModel",function(){return si}
1),r.d(t,"MultipleTextCell",function(){return su}),r.d(t,"MultipleTextErrorCell",function(){return sc}),r.d(t,"MutlipleTextErrorRow",function(){return sl}),r.d(t,"MutlipleTextRow",function(){return sa}),r.d(t,"QuestionMultipleTextModel",function(){return ss}),r.d(t,"MultipleTextEditorModel",function(){return so}),r.d(t,"PanelModel",function(){return il}),r.d(t,"PanelModelBase",function(){return ia}),r.d(t,"QuestionRowModel",function(){return is}),r.d(t,"FlowPanelModel",function(){return sh}),r.d(t,"PageModel",function(){return ih}),r.d(t,"DefaultTitleModel",function(){return sd}),r.d(t,"Question",function(){return n_}),r.d(t,"QuestionNonValue",function(){return sg}),r.d(t,"QuestionEmptyModel",function(){return sy}),r.d(t,"QuestionCheckboxBase",function(){return iT}),r.d(t,"QuestionSelectBase",function(){return iI}),r.d(t,"QuestionCheckboxModel",function(){return sv}),r.d(t,"QuestionTagboxModel",function(){return sI}),r.d(t,"QuestionRankingModel",function(){return sN}),r.d(t,"QuestionCommentModel",function(){return sF}),r.d(t,"QuestionDropdownModel",function(){return iU}),r.d(t,"QuestionFactory",function(){return n6}),r.d(t,"ElementFactory",function(){return n7}),r.d(t,"QuestionFileModel",function(){return sJ}),r.d(t,"QuestionFilePage",function(){return sU}),r.d(t,"QuestionHtmlModel",function(){return sK}),r.d(t,"QuestionRadiogroupModel",function(){return sX}),r.d(t,"QuestionRatingModel",function(){return s5}),r.d(t,"RenderedRatingItem",function(){return s1}),r.d(t,"QuestionExpressionModel",function(){return oe}),r.d(t,"QuestionTextBase",function(){return i0}),r.d(t,"CharacterCounter",function(){return iZ}),r.d(t,"QuestionTextModel",function(){return i3}),r.d(t,"QuestionBooleanModel",function(){return s3}),r.d(t,"QuestionImagePickerModel",function(){return ae}),r.d(t,"ImageItemValue",function(){return s9}),r.d(t,"QuestionImageModel",function(){return ai}),r.d(t,"QuestionSignaturePadModel",function(){return ah}),r.d(t,"QuestionPanelDynamicModel",function(){return ax}),r.d(t,"QuestionPanelDynamicItem",function(){return av}),r.d(t,"SurveyTimer",function(){return oU}),r.d(t,"SurveyTimerModel",function(){return o$}),r.d(t,"tryFocusPage",function(){return iy}),r.d(t,"createTOCListModel",function(){return ib}),r.d(t,"getTocRootCss",function(){return iC}),r.d(t,"TOCModel",function(){return ix}),r.d(t,"SurveyProgressModel",function(){return aw}),r.d(t,"ProgressButtons",function(){return ig}),r.d(t,"ProgressButtonsResponsivityManager",function(){return im}),r.d(t,"SurveyModel",function(){return iV}),r.d(t,"SurveyTrigger",function(){return aj}),r.d(t,"SurveyTriggerComplete",function(){return aO}),r.d(t,"SurveyTriggerSetValue",function(){return aI}),r.d(t,"SurveyTriggerVisible",function(){return aS}),r.d(t,"SurveyTriggerCopyValue",function(){return aR}),r.d(t,"SurveyTriggerRunExpression",function(){return aE}),r.d(t,"SurveyTriggerSkip",function(){return aT}),r.d(t,"Trigger",function(){return aV}),r.d(t,"PopupSurveyModel",function(){return ak}),r.d(t,"SurveyWindowModel",function(){return aA}),r.d(t,"TextPreProcessor",function(){return nX}),r.d(t,"Notifier",function(){return oX}),r.d(t,"Cover",function(){return o2}),r.d(t,"CoverCell",function(){return o1}),r.d(t,"dxSurveyService",function(){return oz}),r.d(t,"englishStrings",function(){return eL}),r.d(t,"surveyLocalization",function(){return eN}),r.d(t,"surveyStrings",function(){return eB}),r.d(t,"getLocaleString",function(){return eM}),r.d(t,"getLocaleStrings",function(){return eF}),r.d(t,"setupLocale",function(){return eq}),r.d(t,"QuestionCustomWidget",function(){return nj}),r.d(t,"CustomWidgetCollection",function(){return nS}),r.d(t,"QuestionCustomModel",function(){return n4}),r.d(t,"QuestionCompositeModel",function(){return n3}),r.d(t,"ComponentQuestionJSON",function(){return n1}),r.d(t,"ComponentCollection",function(){return n2}),r.d(t,"ListModel",function(){return t4}),r.d(t,"MultiSelectListModel",function(){return sw}),r.d(t,"PopupModel",function(){return t6}),r.d(t,"createDialogOptions",function(){return t7}),r.d(t,"PopupBaseViewModel",function(){return iL}),r.d(t,"PopupDropdownViewModel",function(){return iq}),r.d(t,"PopupModalViewModel",function(){return aN}),r.d(t,"createPopupViewModel",function(){return aq}),r.d(t,"createPopupModalViewModel",function(){return aF}),r.d(t,"DropdownListModel",function(){return iH}),r.d(t,"DropdownMultiSelectListModel",function(){return sj}),r.d(t,"QuestionButtonGroupModel",function(){return az}),r.d(t,"ButtonGroupItemModel",function(){return aW}),r.d(t,"ButtonGroupItemValue",function(){return aH}),r.d(t,"IsMobile",function(){return oS}),r.d(t,"IsTouch",function(){return oT}),r.d(t,"_setIsTouch",function(){return oE}),r.d(t,"confirmAction",function(){return rS}),r.d(t,"confirmActionAsync",function(){return rO}),r.d(t,"detectIEOrEdge",function(){return rI}),r.d(t,"doKey2ClickUp",function(){return rz}),r.d(t,"doKey2ClickDown",function(){return rW}),r.d(t,"doKey2ClickBlur",function(){return rH}),r.d(t,"loadFileFromBase64",function(){return rT}),r.d(t,"increaseHeightByContent",function(){return rU}),r.d(t,"createSvg",function(){return rM}),r.d(t,"chooseFiles",function(){return r1}),r.d(t,"sanitizeEditableContent",function(){return rX}),r.d(t,"prepareElementForVerticalAnimation",function(){return r5}),r.d(t,"cleanHtmlElementAfterAnimation",function(){return r4}),r.d(t,"classesToSelector",function(){return r$}),r.d(t,"renamedIcons",function(){return rA}),r.d(t,"getIconNameFromProxy",function(){return rL}),r.d(t,"InputMaskBase",function(){return aG}),r.d(t,"InputMaskPattern",function(){return aZ}),r.d(t,"InputMaskNumeric",function(){return a2}),r.d(t,"InputMaskDateTime",function(){return a6}),r.d(t,"InputMaskCurrency",function(){return le}),r.d(t,"CssClassBuilder",function(){return t$}),r.d(t,"TextAreaModel",function(){return nI}),r.d(t,"surveyCss",function(){return oB}),r.d(t,"defaultV2Css",function(){return oQ}),r.d(t,"defaultV2ThemeName",function(){return oH}),r.d(t,"DragDropCore",function(){return oD}),r.d(t,"DragDropChoices",function(){return sE}),r.d(t,"DragDropRankingSelectToRank",function(){return sk}),r.d(t,"StylesManager",function(){return lf}),r.d(t,"defaultStandardCss",function(){return lg}),r.d(t,"modernCss",function(){return lm}),r.d(t,"SvgIconRegistry",function(){return ly}),r.d(t,"SvgRegistry",function(){return lb}),r.d(t,"SvgThemeSets",function(){return lv}),r.d(t,"addIconsToThemeSet",function(){return lC}),r.d(t,"RendererFactory",function(){return nO}),r.d(t,"ResponsivityManager",function(){return tJ}),r.d(t,"VerticalResponsivityManager",function(){return tG}),r.d(t,"unwrap",function(){return rF}),r.d(t,"getOriginalEvent",function(){return rJ}),r.d(t,"getElement",function(){return rR}),r.d(t,"activateLazyRenderingChecks",function(){return rD}),r.d(t,"createDropdownActionModel",function(){return rr}),r.d(t,"createDropdownActionModelAdvanced",function(){return rn}),r.d(t,"createPopupModelWithListModel",function(){return ro}),r.d(t,"getActionDropdownButtonTarget",function(){return ri}),r.d(t,"BaseAction",function(){return rs}),r.d(t,"Action",function(){return ra}),r.d(t,"ActionDropdownViewModel",function(){return rl}),r.d(t,"AnimationUtils",function(){return rh}),r.d(t,"AnimationPropertyUtils",function(){return rd}),r.d(t,"AnimationGroupUtils",function(){return rf}),r.d(t,"AnimationProperty",function(){return rg}),r.d(t,"AnimationBoolean",function(){return rm}),r.d(t,"AnimationGroup",function(){return ry}),r.d(t,"AnimationTab",function(){return rb}),r.d(t,"AdaptiveActionContainer",function(){return rc}),r.d(t,"defaultActionBarCss",function(){return tX}),r.d(t,"ActionContainer",function(){return tZ}),r.d(t,"DragOrClickHelper",function(){return oL}),r.d(t,"Model",function(){return iV});var n,o,s,a,l,u,c,p,h,d,f,g,m,y,b,v,C,x,w,P,V,j,S,O,I,T,E,R,_,D,k,A,L,N,M,F,q,B,Q,H,z,W,U,J,G,$,K,Y,X,Z,ee,et,er,en,eo,ei,es,ea,el,eu,ec,ep,eh,ed,ef,eg,em,ey,eb,ev,eC,ex,ew,eP,eV,ej,eS,eO,eI,eT,eE,eR,e_=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof window},e.isFileReaderAvailable=function(){return!!e.isAvailable()&&!!window.FileReader},e.getLocation=function(){if(e.isAvailable())return window.location},e.getVisualViewport=function(){return e.isAvailable()?window.visualVie
vendor: 11,512 bytes, line 1
1wport:null},e.getInnerWidth=function(){if(e.isAvailable())return window.innerWidth},e.getInnerHeight=function(){return e.isAvailable()?window.innerHeight:null},e.getWindow=function(){if(e.isAvailable())return window},e.hasOwn=function(t){if(e.isAvailable())return t in window},e.getSelection=function(){if(e.isAvailable()&&window.getSelection)return window.getSelection()},e.requestAnimationFrame=function(t){if(e.isAvailable())return window.requestAnimationFrame(t)},e.addEventListener=function(t,r){e.isAvailable()&&window.addEventListener(t,r)},e.removeEventListener=function(t,r){e.isAvailable()&&window.removeEventListener(t,r)},e.matchMedia=function(t){return e.isAvailable()&&void 0!==window.matchMedia?window.matchMedia(t):null},e}(),eD=function(){function e(){}return e.isAvailable=function(){return"undefined"!=typeof document},e.getBody=function(){if(e.isAvailable())return document.body},e.getDocumentElement=function(){if(e.isAvailable())return document.documentElement},e.getDocument=function(){if(e.isAvailable())return document},e.getCookie=function(){if(e.isAvailable())return document.cookie},e.setCookie=function(t){e.isAvailable()&&(document.cookie=t)},e.activeElementBlur=function(){if(e.isAvailable()){var t=document.activeElement;t&&t.blur&&t.blur()}},e.createElement=function(t){if(e.isAvailable())return document.createElement(t)},e.getComputedStyle=function(t){return e.isAvailable()?document.defaultView.getComputedStyle(t):new CSSStyleDeclaration},e.addEventListener=function(t,r){e.isAvailable()&&document.addEventListener(t,r)},e.removeEventListener=function(t,r){e.isAvailable()&&document.removeEventListener(t,r)},e}();function ek(e,t){if(!t)return new Date;!r9.storeUtcDates&&"string"==typeof t&&function(e){return!(e.indexOf("T")>0)&&!!/\d{4}-\d{2}-\d{2}/.test(e)&&!isNaN(new Date(e).getTime())}(t)&&(t+="T00:00:00");var r=new Date(t);return r9.onDateCreated(r,e,t)}var eA=function(){function e(){}return e.isValueEmpty=function(t){if(Array.isArray(t)&&0===t.length)return!0;if(t&&e.isValueObject(t)&&t.constructor===Object){for(var r in t)if(!e.isValueEmpty(t[r]))return!1;return!0}return!t&&0!==t&&!1!==t},e.isArrayContainsEqual=function(t,r){if(!Array.isArray(t)||!Array.isArray(r)||t.length!==r.length)return!1;for(var n=0;n<t.length;n++){for(var o=0;o<r.length&&!e.isTwoValueEquals(t[n],r[o]);o++);if(o===r.length)return!1}return!0},e.isArraysEqual=function(t,r,n,o,i){if(void 0===n&&(n=!1),!Array.isArray(t)||!Array.isArray(r)||t.length!==r.length)return!1;if(n){for(var s=[],a=[],l=0;l<t.length;l++)s.push(t[l]),a.push(r[l]);s.sort(),a.sort(),t=s,r=a}for(var l=0;l<t.length;l++)if(!e.isTwoValueEquals(t[l],r[l],n,o,i))return!1;return!0},e.compareStrings=function(e,t){var r=r9.comparator.normalizeTextCallback;if(e&&(e=r(e,"compare").trim()),t&&(t=r(t,"compare").trim()),!e&&!t)return 0;if(!e)return -1;if(!t)return 1;if(e===t)return 0;for(var n=-1,o=0;o<e.length&&o<t.length;o++){if(this.isCharDigit(e[o])&&this.isCharDigit(t[o])){n=o;break}if(e[o]!==t[o])break}if(n>-1){var i=this.getNumberFromStr(e,n),s=this.getNumberFromStr(t,n);if(!Number.isNaN(i)&&!Number.isNaN(s)&&i!==s)return i>s?1:-1}return e>t?1:-1},e.isTwoValueEquals=function(t,r,n,o,i){if(void 0===n&&(n=!1),t===r||Array.isArray(t)&&0===t.length&&void 0===r||Array.isArray(r)&&0===r.length&&void 0===t||null==t&&""===r||null==r&&""===t)return!0;if(void 0===i&&(i=r9.comparator.trimStrings),void 0===o&&(o=r9.comparator.caseSensitive),"string"==typeof t&&"string"==typeof r){var s=r9.comparator.normalizeTextCallback;return t=s(t,"compare"),r=s(r,"compare"),i&&(t=t.trim(),r=r.trim()),!o&&(t=t.toLowerCase(),r=r.toLowerCase()),t===r}if(t instanceof Date&&r instanceof Date)return t.getTime()==r.getTime();if(e.isConvertibleToNumber(t)&&e.isConvertibleToNumber(r)&&parseInt(t)===parseInt(r)&&parseFloat(t)===parseFloat(r))return!0;if(!e.isValueEmpty(t)&&e.isValueEmpty(r)||e.isValueEmpty(t)&&!e.isValueEmpty(r))return!1;if((!0===t||!1===t)&&"string"==typeof r)return t.toString()===r.toLocaleLowerCase();if((!0===r||!1===r)&&"string"==typeof t)return r.toString()===t.toLocaleLowerCase();if(!e.isValueObject(t)&&!e.isValueObject(r))return t==r;if(!e.isValueObject(t)||!e.isValueObject(r))return!1;if(t.equals&&r.equals)return t.equals(r);if(Array.isArray(t)&&Array.isArray(r))return e.isArraysEqual(t,r,n,o,i);for(var a in t)if(t.hasOwnProperty(a)&&(!r.hasOwnProperty(a)||!this.isTwoValueEquals(t[a],r[a],n,o,i)))return!1;for(a in r)if(r.hasOwnProperty(a)&&!t.hasOwnProperty(a))return!1;return!0},e.randomizeArray=function(e){for(var t=e.length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e},e.getUnbindValue=function(t){if(Array.isArray(t)){for(var r=[],n=0;n<t.length;n++)r.push(e.getUnbindValue(t[n]));return r}return t&&e.isValueObject(t)&&!(t instanceof Date)?JSON.parse(JSON.stringify(t)):t},e.createCopy=function(e){var t={};if(!e)return t;for(var r in e)t[r]=e[r];return t},e.isConvertibleToNumber=function(e){return null!=e&&!Array.isArray(e)&&!isNaN(e)},e.isValueObject=function(e,t){return e instanceof Object&&(!t||!Array.isArray(e))},e.isNumber=function(e){return!isNaN(this.getNumber(e))},e.getNumber=function(t){var r=e.getNumberCore(t);return r9.parseNumber(t,r)},e.getNumberCore=function(t){if("string"==typeof t){if(!(t=t.trim()))return NaN;if(0==t.indexOf("0x"))return t.length>32?NaN:parseInt(t);if(t.length>15&&e.isDigitsOnly(t)||e.isStringHasOperator(t))return NaN}var r=parseFloat(t=this.prepareStringToNumber(t));return isNaN(r)||!isFinite(t)?NaN:r},e.isStringHasOperator=function(e){if(e.lastIndexOf("-")>0||e.lastIndexOf("+")>0)return!1;for(var t="*^/%",r=0;r<t.length;r++)if(e.indexOf(t[r])>-1)return!0;return!1},e.prepareStringToNumber=function(e){if("string"!=typeof e||!e)return e;var t=e.indexOf(",");return t>-1&&0>e.indexOf(",",t+1)?e.replace(",","."):e},e.getMaxLength=function(e,t){return e<0&&(e=t),e>0?e:null},e.getRemainingCharacterCounterText=function(e,t){return t&&!(t<=0)&&r9.showMaxLengthIndicator?[e?e.length:"0",t].join("/"):""},e.getNumberByIndex=function(t,r,n){if(t<0)return"";var o=1,i="",s=".",a=!0,l="A",u="",c=function(t){if(!t)return!1;for(var r=0;r<t.length;r++)if(e.isCharDigit(t[r]))return!0;return!1};if(r){for(var p=(u=r).length-1,h=c(u),d=function(){return h&&!e.isCharDigit(u[p])||e.isCharNotLetterAndDigit(u[p])};p>=0&&d();)p--;var f="";for(p<u.length-1&&(f=u.substring(p+1),u=u.substring(0,p+1)),p=u.length-1;p>=0&&!d();){;if(p--,!h)break}l=u.substring(p+1),i=u.substring(0,p+1),parseInt(l)?o=parseInt(l):1==l.length&&(a=!1),(f||i)&&(s=f)}if(n>-1&&c(i)&&(i=this.getNumberByIndex(n,i)),a){for(var g=(t+o).toString();g.length<l.length;)g="0"+g;return i+g+s}return i+String.fromCharCode(l.charCodeAt(0)+t)+s},e.isCharNotLetterAndDigit=function(t){return t.toUpperCase()==t.toLowerCase()&&!e.isCharDigit(t)},e.isCharDigit=function(e){return e>="0"&&e<="9"},e.isDigitsOnly=function(t){if(!t)return!1;for(var r=0;r<t.length;r++)if(!e.isCharDigit(t[r]))return!1;return!0},e.getNumberFromStr=function(e,t){if(!this.isCharDigit(e[t]))return NaN;for(var r="";t<e.length&&this.isCharDigit(e[t]);)r+=e[t],t++;return r?this.getNumber(r):NaN},e.countDecimals=function(t){if(e.isNumber(t)&&Math.floor(t)!==t){var r=t.toString().split(".");return r.length>1&&r[1].length||0}return 0},e.correctAfterPlusMinis=function(t,r,n){var o=e.countDecimals(t),i=e.countDecimals(r);if(o>0||i>0){var s=Math.max(o,i);n=parseFloat(n.toFixed(s))}return n},e.sumAnyValues=function(t,r){if(!e.isNumber(t)||!e.isNumber(r)){if(Array.isArray(t)&&Array.isArray(r))return[].concat(t).concat(r);if(Array.isArray(t)||Array.isArray(r)){var n=Array.isArray(t)?t:r,o=n===t?r:t;if("string"==typeof o){var i=n.join(", ");return n===t?i+o:o+i}if("number"==typeof o){for(var s=0,a=0;a<n.length;a++)"number"==typeof n[a]&&(s=e.correctAfterPlusMinis(s,n[a],s+n[a]));return e.correctAfterPlusMinis(s,o,s+o)}}return t+r}return"string"==typeof t||"string"==typeof r?t+r:e.correctAfterPlusMinis(t,r,t+r)},e.correctAfterMultiple=function(t,r,n){var o=e.countDecimals(t)+e.countDecimals(r);return o>0&&(n=parseFloat(n.toFixed(o))),n},e.convertArrayValueToObject=function(t,r,n){void 0===n&&(n=void 0);var o=[];if(!t||!Array.isArray(t))return o;for(var i=0;i<t.length;i++){var s=void 0;Array.isArray(n)&&(s=e.findObjByPropValue(n,r,t[i])),!s&&((s={})[r]=t[i]),o.push(s)}return o},e.findObjByPropValue=function(t,r,n){for(var o=0;o<t.length;o++)if(e.isTwoValueEquals(t[o][r],n))return t[o]},e.convertArrayObjectToValue=function(t,r){var n=[];if(!t||!Array.isArray(t))return n;for(var o=0;o<t.length;o++){var i=t[o]?t[o][r]:void 0;!e.isValueEmpty(i)&&n.push(i)}return n},e.convertDateToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())},e.convertDateTimeToString=function(e){var t=function(e){return e<10?"0"+e.toString():e.toString()};return this.convertDateToString(e)+" "+t(e.getHours())+":"+t(e.getMinutes())},e.convertValToQuestionVal=function(t,r){if(t instanceof Date)return"datetime-local"===r?e.convertDateTimeToString(t):e.convertDateToString(t);return this.getUnbindValue(t)},e.compareVerions=function(e,t){if(!e&&!t)return 0;for(var r=e.split("."),n=t.split("."),o=r.length,i=n.length,s=0;s<o&&s<i;s++){var a=r[s],l=n[s];if(a.length!==l.length)return a.length<l.length?-1:1;if(a!==l)return a<l?-1:1}return o===i?0:o<i?-1:1},e.isUrlYoutubeVideo=function(e){if(!e)return!1;var t=["www.youtube.com","m.youtube.com","youtube.com","youtu.be"];e=(e=e.toLowerCase()).replace(/^https?:\/\//,"");for(var r=0;r<t.length;r++)if(0===e.indexOf(t[r]+"/"))return!0;return!1},e}();!String.prototype.format&&(String.prototype.format=function(){var e=arguments;return this.replace(/{(\d+)}/g,function(t,r){return void 0!==e[r]?e[r]:t})});var eL={pagePrevText:"Previous",pageNextText:"Next",completeText:"Complete",previewText:"Preview",editText:"Edit",startSurveyText:"Start",otherItemText:"Other (describe)",noneItemText:"None",refuseItemText:"Refuse to answer",dontKnowItemText:"Don't know",selectAllItemText:"Select All",deselectAllItemText:"Deselect all",progressText:"Page {0} of {1}",indexText:"{0} of {1}",panelDynamicProgressText:"{0} of {1}",panelDynamicTabTextFormat:"Panel {panelIndex}",questionsProgressText:"Answered {0}/{1} questions",emptySurvey:"The survey doesn't contain any visible elements.",completingSurvey:"Thank you for completing the survey",completingSurveyBefore:"You have already completed this survey.",loadingSurvey:"Loading Survey...",placeholder:"Select...",ratingOptionsCaption:"Select...",value:"value",requiredError:"Response required.",requiredErrorInPanel:"Response required: answer at least one question.",requiredInAllRowsError:"Response required: answer questions in all rows.",eachRowUniqueError:"Each row must have a unique value.",numericError:"The value should be numeric.",minError:"The value should not be less than {0}",maxError:"The value should not be greater than {0}",textNoDigitsAllow:"Numbers are not allowed.",textMinLength:"Please enter at least {0} character(s).",textMaxLength:"Please enter no more than {0} character(s).",textMinMaxLength:"Please enter at least {0} and no more than {1} characters.",minRowCountError:"Please fill in at least {0} row(s).",minSelectError:"Please select at least {0} option(s).",maxSelectError:"Please select no more than {0} option(s).",numericMinMax:"The '{0}' should be at least {1} and at most {2}",numericMin:"The '{0}' should be at least {1}",numericMax:"The '{0}' should be at most {1}
1",invalidEmail:"Please enter a valid e-mail address.",invalidExpression:"The expression: {0} should return 'true'.",urlRequestError:"The request returned error '{0}'. {1}",urlGetChoicesError:"The request returned empty data or the 'path' property is incorrect",exceedMaxSize:"The file size should not exceed {0}.",noUploadFilesHandler:"Files cannot be uploaded. Please add a handler for the 'onUploadFiles' event.",otherRequiredError:"Response required: enter another value.",uploadingFile:"Your file is uploading. Please wait several seconds and try again.",loadingFile:"Loading...",chooseFile:"Choose file(s)...",noFileChosen:"No file selected",filePlaceholder:"Drag and drop a file here or click the button below to select a file to upload.",confirmDelete:"Are you sure you want to delete this record?",keyDuplicationError:"This value should be unique.",addColumn:"Add Column",addRow:"Add Row",removeRow:"Remove",emptyRowsText:"There are no rows.",addPanel:"Add new",removePanel:"Remove",showDetails:"Show Details",hideDetails:"Hide Details",choices_Item:"item",matrix_column:"Column",matrix_row:"Row",multipletext_itemname:"text",savingData:"The results are being saved on the server...",savingDataError:"An error occurred and we could not save the results.",savingDataSuccess:"The results were saved successfully!",savingExceedSize:"Your response exceeds 64KB. Please reduce the size of your file(s) and try again or contact the survey owner.",saveAgainButton:"Try again",timerMin:"min",timerSec:"sec",timerSpentAll:"You have spent {0} on this page and {1} in total.",timerSpentPage:"You have spent {0} on this page.",timerSpentSurvey:"You have spent {0} in total.",timerLimitAll:"You have spent {0} of {1} on this page and {2} of {3} in total.",timerLimitPage:"You have spent {0} of {1} on this page.",timerLimitSurvey:"You have spent {0} of {1} in total.",clearCaption:"Clear",signaturePlaceHolder:"Sign here",signaturePlaceHolderReadOnly:"No signature",chooseFileCaption:"Select File",takePhotoCaption:"Take Photo",photoPlaceholder:"Click the button below to take a photo using the camera.",fileOrPhotoPlaceholder:"Drag and drop or select a file to upload or take a photo using the camera.",replaceFileCaption:"Replace file",removeFileCaption:"Remove this file",booleanCheckedLabel:"Yes",booleanUncheckedLabel:"No",confirmRemoveFile:"Are you sure that you want to remove this file: {0}?",confirmRemoveAllFiles:"Are you sure that you want to remove all files?",questionTitlePatternText:"Question Title",modalCancelButtonText:"Cancel",modalApplyButtonText:"Apply",filterStringPlaceholder:"Type to search...",emptyMessage:"No data to display",noEntriesText:"No entries yet.\nClick the button below to add a new entry.",noEntriesReadonlyText:"No entries",tabTitlePlaceholder:"New Panel",more:"More",tagboxDoneButtonCaption:"OK",selectToRankEmptyRankedAreaText:"All choices are selected for ranking",selectToRankEmptyUnrankedAreaText:"Drag choices here to rank them",ok:"OK",cancel:"Cancel"},eN={currentLocaleValue:"",defaultLocaleValue:"en",locales:{},localeNames:{},localeNamesInEnglish:{},localeDirections:{},supportedLocales:[],useEnglishNames:!1,get showNamesInEnglish(){return this.useEnglishNames},set showNamesInEnglish(val){this.useEnglishNames=val},setupLocale:function(e){var t=e.localeCode;this.locales[t]=e.strings,this.localeNames[t]=e.nativeName,this.localeNamesInEnglish[t]=e.englishName,void 0!==e.rtl&&(this.localeDirections[t]=e.rtl)},get currentLocale(){return this.currentLocaleValue===this.defaultLocaleValue?"":this.currentLocaleValue},set currentLocale(val){"cz"===val&&(val="cs"),this.currentLocaleValue=val},get defaultLocale(){return this.defaultLocaleValue},set defaultLocale(val){"cz"===val&&(val="cs"),this.defaultLocaleValue=val},getLocaleStrings:function(e){return this.locales[e]},getString:function(e,t){var r=this;void 0===t&&(t=null);var n=[],o=function(e){var t=r.locales[e];t&&n.push(t)},i=function(e){if(!!e){o(e);var t=e.indexOf("-");!(t<1)&&o(e=e.substring(0,t))}};i(t),i(this.currentLocale),i(this.defaultLocale),"en"!==this.defaultLocale&&o("en");for(var s=0;s<n.length;s++){var a=n[s][e];if(void 0!==a)return a}return this.onGetExternalString(e,t)},getLocaleName:function(e,t){if(!e)return"";void 0===t&&(t=this.showNamesInEnglish);var r=t?this.localeNamesInEnglish:this.localeNames,n=t?this.localeNames:this.localeNamesInEnglish;return r[e]||n[e]||e}
vendor: 4,237 bytes, line 1
1,getLocales:function(e){var t=this;void 0===e&&(e=!1);var r=[];r.push("");var n=this.locales;if(this.supportedLocales&&this.supportedLocales.length>0){n={};for(var o=0;o<this.supportedLocales.length;o++)n[this.supportedLocales[o]]=!0}for(var i in n)(!e||i!=this.defaultLocale)&&r.push(i);var s=function(e){return t.getLocaleName(e).toLowerCase()};return r.sort(function(e,t){var r=s(e),n=s(t);return r===n?0:r<n?-1:1}),r},onGetExternalString:function(e,t){}};function eM(e,t){return void 0===t&&(t=null),eN.getString(e,t)}function eF(e){return eN.getLocaleStrings(e)}function eq(e){eN.setupLocale(e)}var eB=eL;eN.locales.en=eL,eN.localeNames.en="english";var eQ=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),eH=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};function ez(e,t,r){var n=e.getLocalizableString(r);if(!n){var o=void 0;"object"==typeof t.localizable&&t.localizable.defaultStr&&(o=t.localizable.defaultStr),n=e.createLocalizableString(r,e,!0,o),"object"==typeof t.localizable&&"function"==typeof t.localizable.onGetTextCallback&&(n.onGetTextCallback=t.localizable.onGetTextCallback)}}function eW(e){return void 0===e&&(e={}),function(t,r){var n=function(e,t){if(t&&"object"==typeof t&&t.type===tB.ComputedUpdaterType){tQ.startCollectDependencies(function(){return e[r]=t.updater()},e,r);var n=t.updater(),o=tQ.finishCollectDependencies();return t.setDependencies(o),e.dependencies[r]&&e.dependencies[r].dispose(),e.dependencies[r]=t,n}return t};e&&e.localizable?(Object.defineProperty(t,r,{get:function(){return function(e,t,r){ez(e,t,r);var n=e.getLocalizableStringText(r);if(n)return n;if("object"==typeof t.localizable&&t.localizable.defaultStr){var o=e.getLocale?e.getLocale():"";return eM(t.localizable.defaultStr,o)}return""}(this,e,r)},set:function(t){ez(this,e,r);var o=n(this,t);this.setLocalizableStringText(r,o),e&&e.onSet&&e.onSet(o,this)}}),Object.defineProperty(t,"object"==typeof e.localizable&&e.localizable.name?e.localizable.name:"loc"+r.charAt(0).toUpperCase()+r.slice(1),{get:function(){return ez(this,e,r),this.getLocalizableString(r)}})):Object.defineProperty(t,r,{get:function(){var t=null;return e&&("function"==typeof e.getDefaultValue&&(t=e.getDefaultValue(this)),void 0!==e.defaultValue&&(t=e.defaultValue)),this.getPropertyValue(r,t)},set:function(t){var o=n(this,t),i=this.getPropertyValue(r);o!==i&&(this.setPropertyValue(r,o),e&&e.onSet&&e.onSet(o,this,i))}})}}function eU(e,t,r){e.ensureArray(r,function(r,n){var o=t?t.onPush:null;o&&o(r,n,e)},function(r,n){var o=t?t.onRemove:null;o&&o(r,n,e)})}function eJ(e){return function(t,r){Object.defineProperty(t,r,{get:function(){return eU(this,e,r),this.getPropertyValue(r)},set:function(t){eU(this,e,r);var n=this.getPropertyValue(r);if(t!==n)n?n.splice.apply(n,eH([0,n.length],t||[])):this.setPropertyValue(r,t),e&&e.onSet&&e.onSet(t,this)}})}}var eG=function(){function e(t,r,n){void 0===n&&(n=!1),this.name=r,this.isRequiredValue=!1,this.isUniqueValue=!1,this.isSerializable=!0,this.isLightSerializable=!0,this.isCustom=!1,this.isDynamicChoices=!1,this.isBindable=!1,this.category="",this.categoryIndex=-1,this.visibleIndex=-1,this.maxLength=-1,this.isArray=!1,this.classInfoValue=t,this.isRequiredValue=n,this.idValue=e.Index++}return Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classInfo",{get:function(){return this.classInfoValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.typeValue?this.typeValue:"string"},set:function(e){"itemvalues"===e&&(e="itemvalue[]"),"textitems"===e&&(e="textitem[]"),this.typeValue=e,this.typeValue.indexOf("[]")===this.typeValue.length-2&&(this.isArray=!0,this.className=this.typeValue.substring(0,this.typeValue.length-2))}
vendor: 4,462 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.isRequiredValue},set:function(e){e!==this.isRequired&&(this.isRequiredValue=e,this.classInfo&&this.classInfo.resetAllProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isUnique",{get:function(){return this.isUniqueValue},set:function(e){this.isUniqueValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniquePropertyName",{get:function(){return this.uniquePropertyValue},set:function(e){this.uniquePropertyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasToUseGetValue",{get:function(){return this.onGetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.getDefaultValue=function(t){var r=this.defaultValueFunc?this.defaultValueFunc(t):this.defaultValueValue;return e.getItemValuesDefaultValue&&e6.isDescendantOf(this.className,"itemvalue")&&(r=e.getItemValuesDefaultValue(this.defaultValueValue||[],this.className)),r},Object.defineProperty(e.prototype,"defaultValue",{get:function(){return this.getDefaultValue(void 0)},set:function(e){this.defaultValueValue=e},enumerable:!1,configurable:!0}),e.prototype.isDefaultValue=function(e){return this.isDefaultValueByObj(void 0,e)},e.prototype.isDefaultValueByObj=function(e,t){if(this.isLocalizable)return null==t;var r=this.getDefaultValue(e);return eA.isValueEmpty(r)?!1===t&&("boolean"==this.type||"switch"==this.type)&&!this.defaultValueFunc||""===t||eA.isValueEmpty(t):eA.isTwoValueEquals(t,r,!1,!0,!1)},e.prototype.getSerializableValue=function(e,t){if(this.onSerializeValue)return this.onSerializeValue(e);var r=this.getValue(e);if(null!=r){if(!(!t&&this.isDefaultValueByObj(e,r)))return r}},e.prototype.getValue=function(e){return this.onGetValue?(e=this.getOriginalObj(e),this.onGetValue(e)):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].getJson():e[this.name]},e.prototype.getPropertyValue=function(e){return this.isLocalizable?e[this.serializationProperty]?e[this.serializationProperty].text:null:this.getValue(e)},Object.defineProperty(e.prototype,"hasToUseSetValue",{get:function(){return this.onSetValue||this.serializationProperty},enumerable:!1,configurable:!0}),e.prototype.settingValue=function(e,t){return!this.onSettingValue||e.isLoadingFromJson?t:this.onSettingValue(e,t)},e.prototype.setValue=function(e,t,r){this.onSetValue?(e=this.getOriginalObj(e),this.onSetValue(e,t,r)):this.serializationProperty&&e[this.serializationProperty]?e[this.serializationProperty].setJson(t,!0):(t&&"string"==typeof t&&("number"==this.type&&(t=parseInt(t)),("boolean"==this.type||"switch"==this.type)&&(t="true"===t.toLowerCase())),e[this.name]=t)},e.prototype.validateValue=function(e){var t=this.choices;return!Array.isArray(t)||0===t.length||t.indexOf(e)>-1},e.prototype.getObjType=function(e){return this.classNamePart?e.replace(this.classNamePart,""):e},Object.defineProperty(e.prototype,"choices",{get:function(){return this.getChoices(null)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasChoices",{get:function(){return!!this.choicesValue||!!this.choicesfunc},enumerable:!1,configurable:!0}),e.prototype.getChoices=function(e,t){return(void 0===t&&(t=null),null!=this.choicesValue)?this.choicesValue:null!=this.choicesfunc?this.choicesfunc(e,t):null},e.prototype.setChoices=function(e,t){void 0===t&&(t=null),this.choicesValue=e,this.choicesfunc=t},e.prototype.getBaseValue=function(){return this.baseValue?"function"==typeof this.baseValue?this.baseValue():this.baseValue:""},e.prototype.setBaseValue=function(e){this.baseValue=e},Object.defineProperty(e.prototype,"readOnly",{get:function(){return null!=this.readOnlyValue&&this.readOnlyValue},set:function(e){this.readOnlyValue=e},enumerable:!1,configurable:!0}),e.prototype.isEnable=function(e){return!this.readOnly&&(!e||!this.enableIf||this.enableIf(this.getOriginalObj(e)))},e.prototype.isVisible=function(e,t){void 0===t&&(t=null);var r=!this.layout||!e||this.layout===e;return!!this.visible&&!!r&&(!this.visibleIf||!t||this.visibleIf(this.getOriginalObj(t)))},e.prototype.getOriginalObj=function(e){if(e&&e.getOriginalObj){var t=e.getOriginalObj();if(t&&e6.findProperty(t.getType(),this.name))return t}return e},Object.defineProperty(e.prototype,"visible",{get:function(){return null==this.visibleValue||this.visibleValue},set:function(e){this.visibleValue=e}
vendor: 4,929 bytes, line 1
1,enumerable:!1,configurable:!0}),e.prototype.isAvailableInVersion=function(e){return!!this.alternativeName||!!this.oldName||this.isAvailableInVersionCore(e)},e.prototype.getSerializedName=function(e){return this.alternativeName?this.isAvailableInVersionCore(e)?this.name:this.alternativeName||this.oldName:this.name},e.prototype.getSerializedProperty=function(e,t){return!this.oldName||this.isAvailableInVersionCore(t)?this:e&&e.getType?e6.findProperty(e.getType(),this.oldName):null},e.prototype.isAvailableInVersionCore=function(e){return!e||!this.version||0>=eA.compareVerions(this.version,e)},Object.defineProperty(e.prototype,"isLocalizable",{get:function(){return null!=this.isLocalizableValue&&this.isLocalizableValue},set:function(e){this.isLocalizableValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataList",{get:function(){return Array.isArray(this.dataListValue)?this.dataListValue:[]},set:function(e){this.dataListValue=e},enumerable:!1,configurable:!0}),e.prototype.mergeWith=function(t){for(var r=e.mergableValues,n=0;n<r.length;n++)this.mergeValue(t,r[n])},e.prototype.addDependedProperty=function(e){!this.dependedProperties&&(this.dependedProperties=[]),0>this.dependedProperties.indexOf(e)&&this.dependedProperties.push(e)},e.prototype.getDependedProperties=function(){return this.dependedProperties?this.dependedProperties:[]},e.prototype.schemaType=function(){if("choicesByUrl"!==this.className)return"string"===this.className?this.className:this.className||this.baseClassName?"array":"switch"==this.type?"boolean":"boolean"==this.type||"number"==this.type?this.type:"string"},e.prototype.schemaRef=function(){if(this.className)return this.className},e.prototype.mergeValue=function(e,t){null==this[t]&&null!=e[t]&&(this[t]=e[t])},e.Index=1,e.mergableValues=["typeValue","choicesValue","baseValue","readOnlyValue","visibleValue","isSerializable","isLightSerializable","isCustom","isBindable","isUnique","uniquePropertyName","isDynamicChoices","isLocalizableValue","className","alternativeName","oldName","layout","version","classNamePart","baseClassName","defaultValue","defaultValueFunc","serializationProperty","onGetValue","onSetValue","onSettingValue","displayName","category","categoryIndex","visibleIndex","nextToProperty","overridingProperty","showMode","dependedProperties","visibleIf","enableIf","onExecuteExpression","onPropertyEditorUpdate","maxLength","maxValue","minValue","dataListValue"],e}(),e$=function(){function e(){}return e.addProperty=function(t,r){t=t.toLowerCase();var n=e.properties;!n[t]&&(n[t]=[]),n[t].push(r)},e.removeProperty=function(t,r){t=t.toLowerCase();var n=e.properties;if(n[t]){for(var o=n[t],i=0;i<o.length;i++)if(o[i].name==r){n[t].splice(i,1);break}}},e.removeAllProperties=function(t){t=t.toLowerCase(),delete e.properties[t]},e.addClass=function(t,r){t=t.toLowerCase(),r&&(r=r.toLowerCase()),e.parentClasses[t]=r},e.getProperties=function(t){t=t.toLowerCase();for(var r=[],n=e.properties;t;){var o=n[t];if(o)for(var i=0;i<o.length;i++)r.push(o[i]);t=e.parentClasses[t]}return r},e.createProperties=function(t){t&&t.getType&&e.createPropertiesCore(t,t.getType())},e.createPropertiesCore=function(t,r){var n=e.properties;n[r]&&e.createPropertiesInObj(t,n[r]);var o=e.parentClasses[r];o&&e.createPropertiesCore(t,o)},e.createPropertiesInObj=function(t,r){for(var n=0;n<r.length;n++)e.createPropertyInObj(t,r[n])},e.createPropertyInObj=function(t,r){if(!e.checkIsPropertyExists(t,r.name)){if(!(r.serializationProperty&&e.checkIsPropertyExists(t,r.serializationProperty))){if(r.isLocalizable&&r.serializationProperty&&t.createCustomLocalizableObj){t.createCustomLocalizableObj(r.name).defaultValue=r.getDefaultValue(t);Object.defineProperty(t,r.serializationProperty,{get:function(){return t.getLocalizableString(r.name)}});var n={get:function(){return t.getLocalizableStringText(r.name)},set:function(e){t.setLocalizableStringText(r.name,e)}};Object.defineProperty(t,r.name,n)}else{var o=r.isArray||"multiplevalues"===r.type;if("function"==typeof t.createNewArray&&(e6.isDescendantOf(r.className,"itemvalue")?(t.createNewArray(r.name,function(e){e.locOwner=t,e.ownerPropertyName=r.name}),o=!0):o&&t.createNewArray(r.name),o)){var i=r.getDefaultValue(t);Array.isArray(i)&&t.setPropertyValue(r.name,i)}if(t.getPropertyValue&&t.setPropertyValue){var n={get:function(){return r.onGetValue?r.onGetValue(t):t.getPropertyValue(r.name,void 0)},set:function(e){r.onSetValue?r.onSetValue(t,e,null):t.setPropertyValue(r.name,e)}};Object.defineProperty(t,r.name,n)}}("condition"===r.type||"expression"===r.type)&&r.onExecuteExpression&&t.addExpressionProperty(r.name,r.onExecuteExpression)}}},e.checkIsPropertyExists=function(e,t){return e.hasOwnProperty(t)||e[t]},e.properties={},e.parentClasses={},e}(),eK=function(){function e(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),this.name=e,this.creator=r,this.parentName=n,e=e.toLowerCase(),this.isCu
1stomValue=!r&&"survey"!==e,this.parentName&&(this.parentName=this.parentName.toLowerCase(),e$.addClass(e,this.parentName),r&&this.makeParentRegularClass()),this.properties=[];for(var o=0;o<t.length;o++)this.createProperty(t[o],this.isCustom)}return e.prototype.find=function(e){for(var t=0;t<this.properties.length;t++)if(this.properties[t].name==e)return this.properties[t];return null},e.prototype.findProperty=function(e){return this.fillAllProperties(),this.hashProperties[e]},e.prototype.getAllProperties=function(){return this.fillAllProperties(),this.allProperties},e.prototype.getRequiredProperties=function(){if(this.requiredProperties)return this.requiredProperties;this.requiredProperties=[];for(var e=this.getAllProperties(),t=0;t<e.length;t++)e[t].isRequired&&this.requiredProperties.push(e[t]);return this.requiredProperties},e.prototype.resetAllProperties=function(){this.allProperties=void 0,this.requiredProperties=void 0,this.hashProperties=void 0;for(var e=e6.getChildrenClasses(this.name),t=0;t<e.length;t++)e[t].resetAllProperties()},Object.defineProperty(e.prototype,"isCustom",{get:function(){return this.isCustomValue},enumerable:!1,configurable:!0}),e.prototype.fillAllProperties=function(){var e=this;if(!this.allProperties){this.allProperties=[],this.hashProperties={};var t={};this.properties.forEach(function(e){return t[e.name]=e});var r=this.parentName?e6.findClass(this.parentName):null;r&&r.getAllProperties().forEach(function(r){var n=t[r.name];n?(n.mergeWith(r),e.addPropCore(n)):e.addPropCore(r)}),this.properties.forEach(function(t){!e.hashProperties[t.name]&&e.addPropCore(t)})}},e.prototype.addPropCore=function(e){this.allProperties.push(e),this.hashProperties[e.name]=e,e.alternativeName&&(this.hashProperties[e.alternativeName]=e)},e.prototype.isOverridedProp=function(e){return!!this.parentName&&!!e6.findProperty(this.parentName,e)},e.prototype.hasRegularChildClass=function(){if(this.isCustom){this.isCustomValue=!1;for(var e=0;e<this.properties.length;e++)this.properties[e].isCustom=!1;e$.removeAllProperties(this.name),this.makeParentRegularClass()}},e.prototype.makeParentRegularClass=function(){if(this.parentName){var e=e6.findClass(this.parentName);e&&e.hasRegularChildClass()}},e.prototype.createProperty=function(t,r){void 0===r&&(r=!1);var n="string"==typeof t?t:t.name;if(n){var o=null,i=n.indexOf(e.typeSymbol);i>-1&&(o=n.substring(i+1),n=n.substring(0,i));var s=this.getIsPropertyNameRequired(n)||!!t.isRequired,a=new eG(this,n=this.getPropertyName(n),s);if(o&&(a.type=o),"object"==typeof t){if(t.type&&(a.type=t.type),void 0!==t.default&&(a.defaultValue=t.default),void 0!==t.defaultFunc&&(a.defaultValueFunc=t.defaultFunc),!eA.isValueEmpty(t.isSerializable)&&(a.isSerializable=t.isSerializable),!eA.isValueEmpty(t.isLightSerializable)&&(a.isLightSerializable=t.isLightSerializable),!eA.isValueEmpty(t.maxLength)&&(a.maxLength=t.maxLength),void 0!==t.displayName&&(a.displayName=t.displayName),!eA.isValueEmpty(t.category)&&(a.category=t.category),!eA.isValueEmpty(t.categoryIndex)&&(a.categoryIndex=t.categoryIndex),!eA.isValueEmpty(t.nextToProperty)&&(a.nextToProperty=t.nextToProperty),!eA.isValueEmpty(t.overridingProperty)&&(a.overridingProperty=t.overridingProperty),!eA.isValueEmpty(t.visibleIndex)&&(a.visibleIndex=t.visibleIndex),!eA.isValueEmpty(t.showMode)&&(a.showMode=t.showMode),!eA.isValueEmpty(t.maxValue)&&(a.maxValue=t.maxValue),!eA.isValueEmpty(t.minValue)&&(a.minValue=t.minValue),!eA.isValueEmpty(t.dataList)&&(a.dataList=t.dataList),!eA.isValueEmpty(t.isDynamicChoices)&&(a.isDynamicChoices=t.isDynamicChoices),!eA.isValueEmpty(t.isBindable)&&(a.isBindable=t.isBindable),!eA.isValueEmpty(t.isUnique)&&(a.isUnique=t.isUnique),!eA.isValueEmpty(t.uniqueProperty)&&(a.uniquePropertyName=t.uniqueProperty),!eA.isValueEmpty(t.isArray)&&(a.isArray=t.isArray),(!0===t.visible||!1===t.visible)&&(a.visible=t.visible),t.visibleIf&&(a.visibleIf=t.visibleIf),t.enableIf&&(a.enableIf=t.enableIf),t.onExecuteExpression&&(a.onExecuteExpression=t.onExecuteExpression),t.onPropertyEditorUpdate&&(a.onPropertyEditorUpdate=t.onPropertyEditorUpdate),!0===t.readOnly&&(a.readOnly=!0),!0===t.availableInMatrixColumn&&(a.availableInMatrixColumn=!0),t.choices){var l="function"==typeof t.choices?t.choices:null,u="function"!=typeof t.choices?t.choices:null;a.setChoices(u,l)}t.baseValue&&a.setBaseValue(t.baseValue),t.onSerializeValue&&(a.onSerializeValue=t.onSerializeValue),t.onGetValue&&(a.onGetValue=t.onGetValue),t.onSetValue&&(a.onSetValue=t.onSetValue),t.onSettingValue&&(a.onSettingValue=t.onSettingValue),t.isLocalizable&&(t.serializationProperty="loc"+a.name),t.serializationProperty&&(a.serializationProperty=t.serializationProperty,a.serializationProperty&&0==a.serializationProperty.indexOf("loc")&&(a.isLocalizable=!0)),t.isLocalizable&&(a.isLocalizable=t.isLocalizable),t.className&&(a.className=t.className),t.baseClassName&&(a.baseClassName=t.baseClassName,a.isArray=!0),!0===a.isArray&&(a.isArray=!0),t.classNamePart&&(a.classNamePart=t.classNamePart),t.alternativeName&&(a.alternativeName=t.alternativeName),t.oldName&&(a.oldName=t.oldName),t.layout&&(a.layout=t.layout),t.version&&(a.version=t.version),t.depen
vendor: 11,647 bytes, line 1
1dsOn&&this.addDependsOnProperties(a,t.dependsOn)}return this.properties.push(a),r&&!this.isOverridedProp(a.name)&&(a.isCustom=!0,e$.addProperty(this.name,a)),a}},e.prototype.addDependsOnProperties=function(e,t){var r=Array.isArray(t)?t:[t];e.dependsOn=r;for(var n=0;n<r.length;n++)this.addDependsOnProperty(e,r[n])},e.prototype.addDependsOnProperty=function(e,t){var r=this.find(t);!r&&(r=e6.findProperty(this.parentName,t)),r&&r.addDependedProperty(e.name)},e.prototype.getIsPropertyNameRequired=function(t){return t.length>0&&t[0]==e.requiredSymbol},e.prototype.getPropertyName=function(e){return this.getIsPropertyNameRequired(e)?e=e.slice(1):e},e.requiredSymbol="!",e.typeSymbol=":",e}(),eY=function(){function e(){this.classes={},this.alternativeNames={},this.childrenClasses={},this.dynamicPropsCache={}}return e.prototype.getObjPropertyValue=function(e,t){if(this.isObjWrapper(e)&&this.isNeedUseObjWrapper(e,t)){var r=e.getOriginalObj(),n=e6.findProperty(r.getType(),t);if(n)return this.getObjPropertyValueCore(r,n)}var o=e6.findProperty(e.getType(),t);return o?this.getObjPropertyValueCore(e,o):e[t]},e.prototype.setObjPropertyValue=function(e,t,r){if(e[t]!==r){if(e[t]&&e[t].setJson)e[t].setJson(r,!0);else{if(Array.isArray(r)){for(var n=[],o=0;o<r.length;o++)n.push(r[o]);r=n}e[t]=r}}},e.prototype.getObjPropertyValueCore=function(e,t){if(!t.isSerializable)return e[t.name];if(t.isLocalizable){if(t.isArray)return e[t.name];if(t.serializationProperty)return e[t.serializationProperty].text}return e.getPropertyValue(t.name)},e.prototype.isObjWrapper=function(e){return!!e.getOriginalObj&&!!e.getOriginalObj()},e.prototype.isNeedUseObjWrapper=function(e,t){if(!e.getDynamicProperties)return!0;var r=e.getDynamicProperties();if(!Array.isArray(r))return!1;for(var n=0;n<r.length;n++)if(r[n].name===t)return!0;return!1},e.prototype.addClass=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=null);var o=new eK(e=e.toLowerCase(),t,r,n);return this.classes[e]=o,n&&(n=n.toLowerCase(),!this.childrenClasses[n]&&(this.childrenClasses[n]=[]),this.childrenClasses[n].push(o)),o},e.prototype.removeClass=function(e){var t=this.findClass(e);if(t&&(delete this.classes[t.name],t.parentName)){var r=this.childrenClasses[t.parentName].indexOf(t);r>-1&&this.childrenClasses[t.parentName].splice(r,1)}},e.prototype.overrideClassCreatore=function(e,t){this.overrideClassCreator(e,t)},e.prototype.overrideClassCreator=function(e,t){e=e.toLowerCase();var r=this.findClass(e);r&&(r.creator=t)},e.prototype.getProperties=function(e){var t=this.findClass(e);return t?t.getAllProperties():[]},e.prototype.getPropertiesByObj=function(e){var t=e&&e.getType?e.getType():void 0;if(!t)return[];for(var r=this.getProperties(t),n=this.getDynamicPropertiesByObj(e),o=n.length-1;o>=0;o--)this.findProperty(t,n[o].name)&&n.splice(o,1);return 0===n.length?r:[].concat(r).concat(n)},e.prototype.addDynamicPropertiesIntoObj=function(e,t,r){var n=this;r.forEach(function(r){n.addDynamicPropertyIntoObj(e,t,r.name,!1),r.serializationProperty&&n.addDynamicPropertyIntoObj(e,t,r.serializationProperty,!0),r.alternativeName&&n.addDynamicPropertyIntoObj(e,t,r.alternativeName,!1)})},e.prototype.addDynamicPropertyIntoObj=function(e,t,r,n){var o={configurable:!0,get:function(){return t[r]}};!n&&(o.set=function(e){t[r]=e}),Object.defineProperty(e,r,o)},e.prototype.getDynamicPropertiesByObj=function(e,t){if(void 0===t&&(t=null),!e||!e.getType)return[];if(e.getDynamicProperties)return e.getDynamicProperties();if(!e.getDynamicType&&!t)return[];var r=t||e.getDynamicType();return this.getDynamicPropertiesByTypes(e.getType(),r)},e.prototype.getDynamicPropertiesByTypes=function(e,t,r){if(!t)return[];var n=t+"-"+e;if(this.dynamicPropsCache[n])return this.dynamicPropsCache[n];var o=this.getProperties(t);if(!o||0==o.length)return[];for(var i={},s=this.getProperties(e),a=0;a<s.length;a++)i[s[a].name]=s[a];var l=[];!r&&(r=[]);for(var u=0;u<o.length;u++){var c=o[u];0>r.indexOf(c.name)&&this.canAddDybamicProp(c,i[c.name])&&l.push(c)}return this.dynamicPropsCache[n]=l,l},e.prototype.canAddDybamicProp=function(e,t){if(!t)return!0;if(e===t)return!1;for(var r=e.classInfo;r&&r.parentName;){if((e=this.findProperty(r.parentName,e.name))&&e===t)return!0;r=e?e.classInfo:void 0}return!1},e.prototype.hasOriginalProperty=function(e,t){return!!this.getOriginalProperty(e,t)},e.prototype.getOriginalProperty=function(e,t){var r=this.findProperty(e.getType(),t);return r?r:this.isObjWrapper(e)?this.findProperty(e.getOriginalObj().getType(),t):null},e.prototype.getProperty=function(e,t){var r=this.findProperty(e,t);if(!r)return r;var n=this.findClass(e);if(r.classInfo===n)return r;var o=new eG(n,r.name,r.isRequired);return o.mergeWith(r),o.isArray=r.isArray,n.properties.push(o),n.resetAllProperties(),o},e.prototype.findProperty=function(e,t){var r=this.findClass(e);return r?r.findProperty(t):null},e.prototype.findProperties=function(e,t){var r=[],n=this.findClass(e);if(!n)return r;for(var o=0;o<t.length;o++){var i=n.findProperty(t[o]);i&&r.push(i)}return r},e.prototype.getAllPropertiesByName=function(e){for(var t=[],r=this.getAllClasses(),n=0;n<r.length;n++){for(var o=this.findClass(r[n]),i=0;i<o.properties.length;i++)if(o.properties[i].name==e){t.push(o.properties[i]);break}}return t},e.prototype.getAllClasses=function(){var e=[];for(var t in this.classes)e.push(t);return e},e.prototype.createClass=function(e,t){void 0===t&&(t=void 0),e=e.toLowerCase();var r=this.findClass(e);if(!r)return null;if(r.creator)return r.creator(t);for(var n=r.parentName;n&&(r=this.findClass(n));){;if(n=r.parentName,r.creator)return this.createCustomType(e,r.creator,t)}return null},e.prototype.createCustomType=function(e,t,r){void 0===r&&(r=void 0),e=e.toLowerCase();var n=t(r),o=e,i=n.getTemplate?n.getTemplate():n.getType();return n.getType=function(){return o},n.getTemplate=function(){return i},e$.createProperties(n),n},e.prototype.getChildrenClasses=function(e,t){void 0===t&&(t=!1),e=e.toLowerCase();var r=[];return this.fillChildrenClasses(e,t,r),r},e.prototype.getRequiredProperties=function(e){var t=this.findClass(e);if(!t)return[];for(var r=t.getRequiredProperties(),n=[],o=0;o<r.length;o++)n.push(r[o].name);return n},e.prototype.addProperties=function(e,t){e=e.toLowerCase();for(var r=this.findClass(e),n=0;n<t.length;n++)this.addCustomPropertyCore(r,t[n])},e.prototype.addProperty=function(e,t){return this.addCustomPropertyCore(this.findClass(e),t)},e.prototype.addCustomPropertyCore=function(e,t){if(!e)return null;var r=e.createProperty(t,!0);return r&&(this.clearDynamicPropsCache(e),e.resetAllProperties()),r},e.prototype.removeProperty=function(e,t){var r=this.findClass(e);if(!r)return!1;var n=r.find(t);n&&(this.clearDynamicPropsCache(r),this.removePropertyFromClass(r,n),r.resetAllProperties(),e$.removeProperty(r.name,t))},e.prototype.clearDynamicPropsCache=function(e){this.dynamicPropsCache={}},e.prototype.removePropertyFromClass=function(e,t){var r=e.properties.indexOf(t);!(r<0)&&e.properties.splice(r,1)},e.prototype.fillChildrenClasses=function(e,t,r){var n=this.childrenClasses[e];if(n)for(var o=0;o<n.length;o++)(!t||n[o].creator)&&r.push(n[o]),this.fillChildrenClasses(n[o].name,t,r)},e.prototype.findClass=function(e){e=e.toLowerCase();var t=this.classes[e];if(!t){var r=this.alternativeNames[e];if(r&&r!=e)return this.findClass(r)}return t},e.prototype.isDescendantOf=function(e,t){if(!e||!t)return!1;e=e.toLowerCase(),t=t.toLowerCase();var r=this.findClass(e);if(!r)return!1;var n=r;do{if(n.name===t)return!0;n=this.classes[n.parentName]}while(!!n);return!1},e.prototype.addAlterNativeClassName=function(e,t){this.alternativeNames[t.toLowerCase()]=e.toLowerCase()},e.prototype.generateSchema=function(e){void 0===e&&(e=void 0),!e&&(e="survey");var t=this.findClass(e);if(!t)return null;var r={$schema:"http://json-schema.org/draft-07/schema#",title:"SurveyJS Library json schema",type:"object",properties:{},definitions:{locstring:this.generateLocStrClass()}};return this.generateSchemaProperties(t,r,r.definitions,!0),r},e.prototype.generateLocStrClass=function(){var e={},t=e6.findProperty("survey","locale");if(t){var r=t.getChoices(null);Array.isArray(r)&&(0>r.indexOf("en")&&r.splice(0,0,"en"),r.splice(0,0,"default"),r.forEach(function(t){t&&(e[t]={type:"string"})}))}return{$id:"locstring",type:"object",properties:e}},e.prototype.generateSchemaProperties=function(e,t,r,n){if(e){var o=t.properties,i=[];"question"===e.name&&(o.type={type:"string"},i.push("type"));for(var s=0;s<e.properties.length;s++){var a=e.properties[s];if(!1!==a.isSerializable)!(e.parentName&&e6.findProperty(e.parentName,a.name))&&(o[a.name]=this.generateSchemaProperty(a,r,n),a.isRequired&&i.push(a.name))}i.length>0&&(t.required=i)}},e.prototype.generateSchemaProperty=function(e,t,r){if(e.isLocalizable)return{oneOf:[{type:"string"},{$ref:this.getChemeRefName("locstring",r)}]};var n=e.schemaType(),o=e.schemaRef(),i={};if(n&&(i.type=n),e.hasChoices){var s=e.getChoices(null);Array.isArray(s)&&s.length>0&&(i.enum=this.getChoicesValues(s))}if(o&&("array"===n?"string"===e.className?i.items={type:e.className}:i.items={$ref:this.getChemeRefName(e.className,r)}:i.$ref=this.getChemeRefName(o,r),this.generateChemaClass(e.className,t,!1)),e.baseClassName){var a=this.getChildrenClasses(e.baseClassName,!0);"question"==e.baseClassName&&a.push(this.findClass("panel")),i.items={anyOf:[]};for(var l=0;l<a.length;l++){var u=a[l].name;i.items.anyOf.push({$ref:this.getChemeRefName(u,r)}),this.generateChemaClass(u,t,!1)}}return i},e.prototype.getChemeRefName=function(e,t){return t?"#/definitions/"+e:e},e.prototype.generateChemaClass=function(e,t,r){if(!t[e]){var n=this.findClass(e);if(n){var o=!!n.parentName&&"base"!=n.parentName;o&&this.generateChemaClass(n.parentName,t,r);var i={type:"object",$id:e};t[e]=i;var s={properties:{}};this.generateSchemaProperties(n,s,t,r),o?i.allOf=[{$ref:this.getChemeRefName(n.parentName,r)},{properties:s.properties}]:i.properties=s.properties,Array.isArray(s.required)&&(i.required=s.required)}}},e.prototype.getChoicesValues=function(e){var t=[];return e.forEach(function(e){"object"==typeof e&&void 0!==e.value?t.push(e.value):t.push(e)}),t},e}(),eX=function(){function e(e,t){this.type=e,this.message=t,this.description="",this.at=-1,this.end=-1}return e.prototype.getFullDescription=function(){return this.message+(this.description?"\n"+this.description:"")},e}(),eZ=function(e){function t(t,r){var n=e.call(this,"unknownproperty","Unknown property in class '"+r+"': '"+t+"'.")||this;return n.propertyName=t,n.className=r,n}return eQ(t,e),t}(eX),e0=function(e){function t(t,r,n){var o=e.call(this,r,n)||this;return o.baseClassName=t,o.type=r,o.message=n,o}return eQ(t,e),t}(eX),e1=function(e){function t(t,r){var n=e.call(this,r,"missingtypeproperty","The property type is missing in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return eQ(t,e),t}(e0),e2=function(e){function t(t,r){var n=e.call(this,r,"incorrecttypeproperty","The property type is incorrect in the object. Please take a look at property: '"+t+"'.")||this;return n.propertyName=t,n.baseClassName=r,n}return eQ(t,e),t}(e0),e5=function(e){function t(t,r){var n=e.call(this,"requiredproperty","The property '"+t+"' is required in class '"+r+"'.")||this;return n.propertyName=t,n.className=r,n}return eQ(t,e),t}(eX),e4=function(e){function t(t,r){var n=e.call(this,"arrayproperty","The property '"+t+"' should be an array in '"+r+"'.")||this;return n.propertyName=t,n.className=r,n}return eQ(t,e),t}(eX),e8=function(e){function t(t,r){var n=e.call(this,"incorrectvalue","The property value: '"+r+"' is 
1incorrect for property '"+t.name+"'.")||this;return n.property=t,n.value=r,n}return eQ(t,e),t}(eX),e3=function(){function e(){this.errors=[],this.lightSerializing=!1}return Object.defineProperty(e,"metaData",{get:function(){return e.metaDataValue},enumerable:!1,configurable:!0}),e.prototype.toJsonObject=function(e,t){return this.toJsonObjectCore(e,null,t)},e.prototype.toObject=function(e,t,r){this.toObjectCore(e,t,r);var n=this.getRequiredError(t,e);n&&this.addNewError(n,e,t)},e.prototype.toObjectCore=function(t,r,n){if(!!t){var o=null,i=void 0,s=!0;if(r.getType&&(i=r.getType(),o=e6.getProperties(i),s=!!i&&!e6.isDescendantOf(i,"itemvalue")),o){r.startLoadingFromJson&&r.startLoadingFromJson(t),o=this.addDynamicProperties(r,t,o),this.options=n;var a={};a[e.typePropertyName]=!0;var l={};for(var u in t)this.setPropertyValueToObj(t,r,u,o,a,l,i,s,n);this.options=void 0,r.endLoadingFromJson&&r.endLoadingFromJson()}}},e.prototype.setPropertyValueToObj=function(t,r,n,o,i,s,a,l,u){var c=this;if(!i[n]){if(n===e.positionPropertyName){r[n]=t[n];return}var p=this.findProperty(o,n);if(!p&&l&&this.addNewError(new eZ(n.toString(),a),t,r),p){var h=p.dependsOn;Array.isArray(h)&&(s[n]=!0,h.forEach(function(e){!s[e]&&c.setPropertyValueToObj(t,r,e,o,i,s,a,!1,u)})),this.valueToObj(t[n],r,p,t,u),i[n]=!0}}},e.prototype.toJsonObjectCore=function(t,r,n){if(!t||!t.getType)return t;if(!t.isSurvey&&"function"==typeof t.getData)return t.getData();var o={};null!=r&&!r.className&&(o[e.typePropertyName]=r.getObjType(t.getType()));var i=!0===n;return(!n||!0===n)&&(n={}),i&&(n.storeDefaults=i),this.propertiesToJson(t,e6.getProperties(t.getType()),o,n),this.propertiesToJson(t,this.getDynamicProperties(t),o,n),o},e.prototype.getDynamicProperties=function(e){return e6.getDynamicPropertiesByObj(e)},e.prototype.addDynamicProperties=function(e,t,r){if(!e.getDynamicPropertyName&&!e.getDynamicProperties)return r;if(e.getDynamicPropertyName){var n=e.getDynamicPropertyName();if(!n)return r;n&&t[n]&&(e[n]=t[n])}var o=this.getDynamicProperties(e);return 0===o.length?r:[].concat(r).concat(o)},e.prototype.propertiesToJson=function(e,t,r,n){for(var o=0;o<t.length;o++)this.valueToJson(e,r,t[o],n)},e.prototype.valueToJson=function(e,t,r,n){if(!n&&(n={}),!1!==r.isSerializable&&(!1!==r.isLightSerializable||!this.lightSerializing))(!n.version||r.isAvailableInVersion(n.version))&&this.valueToJsonCore(e,t,r,n)},e.prototype.valueToJsonCore=function(e,t,r,n){var o=r.getSerializedProperty(e,n.version);if(o&&o!==r){this.valueToJsonCore(e,t,o,n);return}var i=r.getSerializableValue(e,n.storeDefaults);if(void 0!==i){if(this.isValueArray(i)){for(var s=[],a=0;a<i.length;a++)s.push(this.toJsonObjectCore(i[a],r,n));i=s.length>0?s:null}else i=this.toJsonObjectCore(i,r,n);if(null!=i){var l=r.getSerializedName(n.version),u="function"==typeof e.getPropertyValue&&null!==e.getPropertyValue(l,null);(n.storeDefaults&&u||!r.isDefaultValueByObj(e,i))&&(!e6.onSerializingProperty||!e6.onSerializingProperty(e,r,i,t))&&(t[l]=this.removePosOnValueToJson(r,i))}}},e.prototype.valueToObj=function(e,t,r,n,o){if(null!=e){if(this.removePos(r,e),null!=r&&r.hasToUseSetValue){r.setValue(t,e,this);return}if(r.isArray&&!Array.isArray(e)&&e){e=[e];var i=n&&r.alternativeName&&n[r.alternativeName]?r.alternativeName:r.name;this.addNewError(new e4(i,t.getType()),n||e,t)}if(this.isValueArray(e)){this.valueToArray(e,t,r.name,r,o);return}var s=this.createNewObj(e,r);s.newObj&&(this.toObjectCore(e,s.newObj,o),e=s.newObj),!s.error&&(null!=r?(r.setValue(t,e,this),o&&o.validatePropertyValues&&!r.validateValue(e)&&this.addNewError(new e8(r,e),n,t)):t[r.name]=e)}},e.prototype.removePosOnValueToJson=function(e,t){return e.isCustom&&t?(this.removePosFromObj(t),t):t},e.prototype.removePos=function(e,t){!(!e||!e.type||0>e.type.indexOf("value"))&&this.removePosFromObj(t)},e.prototype.removePosFromObj=function(t){if(!!t&&"function"!=typeof t.getType){if(Array.isArray(t))for(var r=0;r<t.length;r++)this.removePosFromObj(t[r]);if("object"==typeof t)for(var n in t[e.positionPropertyName]&&delete t[e.positionPropertyName],t)this.removePosFromObj(t[n])}},e.prototype.isValueArray=function(e){return e&&Array.isArray(e)}
1,e.prototype.createNewObj=function(e,t){var r={newObj:null,error:null},n=this.getClassNameForNewObj(e,t);return r.newObj=n?e6.createClass(n,e):null,r.error=this.checkNewObjectOnErrors(r.newObj,e,t,n),r},e.prototype.getClassNameForNewObj=function(t,r){var n=null!=r&&r.className?r.className:void 0;if(!n&&(n=t[e.typePropertyName]),!n)return n;n=n.toLowerCase();var o=r.classNamePart;return o&&0>n.indexOf(o)&&(n+=o),n},e.prototype.checkNewObjectOnErrors=function(e,t,r,n){var o=null;return e?o=this.getRequiredError(e,t):r.baseClassName&&(o=n?new e2(r.name,r.baseClassName):new e1(r.name,r.baseClassName)),o&&this.addNewError(o,t,e),o},e.prototype.getRequiredError=function(e,t){if(!e.getType||"function"==typeof e.getData)return null;var r=e6.findClass(e.getType());if(!r)return null;var n=r.getRequiredProperties();if(!Array.isArray(n))return null;for(var o=0;o<n.length;o++){var i=n[o];if(eA.isValueEmpty(i.defaultValue)&&!t[i.name])return new e5(i.name,e.getType())}return null},e.prototype.addNewError=function(t,r,n){if(t.jsonObj=r,t.element=n,this.errors.push(t),!!r){var o=r[e.positionPropertyName];o&&(t.at=o.start,t.end=o.end)}},e.prototype.valueToArray=function(e,t,r,n,o){if(!t[r]||this.isValueArray(t[r])){t[r]&&e.length>0&&t[r].splice(0,t[r].length);var i=t[r]?t[r]:[];this.addValuesIntoArray(e,i,n,o),!t[r]&&(t[r]=i)}},e.prototype.addValuesIntoArray=function(e,t,r,n){for(var o=0;o<e.length;o++){var i=this.createNewObj(e[o],r);i.newObj?(e[o].name&&(i.newObj.name=e[o].name),e[o].valueName&&(i.newObj.valueName=e[o].valueName.toString()),t.push(i.newObj),this.toObjectCore(e[o],i.newObj,n)):!i.error&&t.push(e[o])}},e.prototype.findProperty=function(e,t){if(!e)return null;for(var r=0;r<e.length;r++){var n=e[r];if(n.name==t||n.alternativeName==t)return n}return null},e.typePropertyName="type",e.positionPropertyName="pos",e.metaDataValue=new eY,e}(),e6=e3.metaData,e7="@survey",e9=function(){function e(){this.values=null,this.properties=null,this.asyncValues={}}return e.prototype.getFirstName=function(e,t){if(void 0===t&&(t=null),!e)return e;var r="";if(t&&(r=this.getFirstPropertyName(e,t)))return r;for(var n=0;n<e.length;n++){var o=e[n];if("."==o||"["==o)break;r+=o}return r},e.prototype.hasValue=function(e,t){return void 0===t&&(t=null),!t&&(t=this.values),this.getValueCore(e,t).hasValue},e.prototype.getValue=function(e,t){return void 0===t&&(t=null),!t&&(t=this.values),this.getValueCore(e,t).value},e.prototype.setValue=function(e,t,r){if(!!t){var n=this.getNonNestedObject(e,t,!0);n&&(e=n.value,t=n.text,e&&t&&(e[t]=r))}},e.prototype.getValueInfo=function(e){if(e.path){e.value=this.getValueFromPath(e.path,this.values),e.hasValue=null!==e.value&&!eA.isValueEmpty(e.value),!e.hasValue&&e.path.length>1&&"length"==e.path[e.path.length-1]&&(e.hasValue=!0,e.value=0);return}var t=this.getValueCore(e.name,this.values);e.value=t.value,e.hasValue=t.hasValue,e.path=t.hasValue?t.path:null,e.sctrictCompare=t.sctrictCompare},e.prototype.isAnyKeyChanged=function(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(!n)continue;var o=n.toLowerCase();if(e.hasOwnProperty(n)||n!==o&&e.hasOwnProperty(o))return!0;var i=this.getFirstName(n);if(!!e.hasOwnProperty(i)){if(n===i)return!0;var s=e[i];if(void 0!=s){if(!s.hasOwnProperty("oldValue")||!s.hasOwnProperty("newValue"))return!0;var a={};a[i]=s.oldValue;var l=this.getValue(n,a);a[i]=s.newValue;var u=this.getValue(n,a);if(!eA.isTwoValueEquals(l,u,!1,!1,!1))return!0}}}return!1},e.prototype.getValueFromPath=function(e,t){if(2===e.length&&e[0]===e7)return this.getValueFromSurvey(e[1]);for(var r=0;t&&r<e.length;){var n=e[r];if(eA.isNumber(n)&&Array.isArray(t)&&n>=t.length)return null;t=t[n],r++}return t},e.prototype.getValueCore=function(e,t){var r=this.getQuestionDirectly(e);if(r)return{hasValue:!0,value:r.value,path:[e],sctrictCompare:r.requireStrictCompare};var n=this.getValueFromValues(e,t);if(e&&!n.hasValue){var o=this.getValueFromSurvey(e);void 0!==o&&(n.hasValue=!0,n.value=o,n.path=[e7,e])}return n},e.prototype.getQuestionDirectly=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getQuestionByValueName(e)},e.prototype.getValueFromSurvey=function(e){if(this.properties&&this.properties.survey)return this.properties.survey.getBuiltInVariableValue(e.toLocaleLowerCase())},e.prototype.getValueFromValues=function(e,t){var r={hasValue:!1,value:null,path:null};if(!t&&0!==t&&!1!==t)return r;e&&e.lastIndexOf(".length")>-1&&e.lastIndexOf(".length")===e.length-7&&(r.value=0,r.hasValue=!0);var n=this.getNonNestedObject(t,e,!1);return n?(r.path=n.path,r.value=n.text?this.getObjectValue(n.value,
1n.text):n.value,r.hasValue=!eA.isValueEmpty(r.value),r):r},e.prototype.getNonNestedObject=function(e,t,r){for(var n=[],o=0,i=this.getNonNestedObjectCore(e,t,r,n);!i&&o<n.length;)o=n.length,i=this.getNonNestedObjectCore(e,t,r,n);return i},e.prototype.getNonNestedObjectCore=function(e,t,r,n){var o=this.getFirstPropertyName(t,e,r,n);o&&n.push(o);for(var i=o?[o]:null;t!=o&&e;){if("["==t[0]){var s=this.getObjInArray(e,t);if(!s)return null;e=s.value,t=s.text,i.push(s.index)}else{if(!o&&t==this.getFirstName(t))return{value:e,text:t,path:i};if(e=this.getObjectValue(e,o),eA.isValueEmpty(e)&&!r)return null;t=t.substring(o.length)}t&&"."==t[0]&&(t=t.substring(1)),(o=this.getFirstPropertyName(t,e,r,n))&&i.push(o)}return{value:e,text:t,path:i}},e.prototype.getObjInArray=function(e,t){if(!Array.isArray(e))return null;for(var r=1,n="";r<t.length&&"]"!=t[r];)n+=t[r],r++;return(t=r<t.length?t.substring(r+1):"",(r=this.getIntValue(n))<0||r>=e.length)?null:{value:e[r],text:t,index:r}},e.prototype.getFirstPropertyName=function(e,t,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=void 0),!e)return e;if(!t&&(t={}),t.hasOwnProperty(e))return e;var o=e.toLowerCase(),i=o[0],s=i.toUpperCase();for(var a in t)if(!(Array.isArray(n)&&n.indexOf(a)>-1)){var l=a[0];if(l===s||l===i){var u=a.toLowerCase();if(u==o)return a;if(o.length<=u.length)continue;var c=o[u.length];if("."!=c&&"["!=c)continue;if(u==o.substring(0,u.length))return a}}if(r&&"["!==e[0]){var p=e.indexOf(".");return p>-1&&(t[e=e.substring(0,p)]={}),e}return""},e.prototype.getObjectValue=function(e,t){return t?e[t]:null},e.prototype.getIntValue=function(e){return"0"==e||(0|e)>0&&e%1==0?Number(e):-1},e}(),te=function(){function e(){}return e.disposedObjectChangedProperty=function(t,r){e.warn('An attempt to set a property "'+t+'" of a disposed object "'+r+'"')},e.inCorrectQuestionValue=function(t,r){var n=JSON.stringify(r,null,3);e.warn("An attempt to assign an incorrect value"+n+' to the following question: "'+t+'"')},e.warn=function(e){i.warn(e)},e.error=function(e){i.error(e)},e}(),tt=function(){function e(){this.functionHash={},this.isAsyncHash={}}return e.prototype.register=function(e,t,r){void 0===r&&(r=!1),this.functionHash[e]=t,r&&(this.isAsyncHash[e]=!0)},e.prototype.unregister=function(e){delete this.functionHash[e],delete this.isAsyncHash[e]},e.prototype.hasFunction=function(e){return!!this.functionHash[e]},e.prototype.isAsyncFunction=function(e){return!!this.isAsyncHash[e]},e.prototype.clear=function(){this.functionHash={}},e.prototype.getAll=function(){var e=[];for(var t in this.functionHash)e.push(t);return e.sort()},e.prototype.run=function(e,t,r,n){void 0===r&&(r=null);var o=this.functionHash[e];if(!o)return te.warn("Unknown function name: "+e),null;var i={func:o};if(r)for(var s in r)i[s]=r[s];return i.func(t,n)},e.Instance=new e,e}(),tr=tt.Instance.register;function tn(e,t){if(null!=e){if(Array.isArray(e))for(var r=0;r<e.length;r++)tn(e[r],t);else eA.isNumber(e)&&(e=eA.getNumber(e)),t.push(e)}}function to(e){var t=[];tn(e,t);for(var r=0,n=0;n<t.length;n++)r=eA.correctAfterPlusMinis(r,t[n],r+t[n]);return r}function ti(e,t){var r=[];tn(e,r);for(var n=void 0,o=0;o<r.length;o++)void 0===n&&(n=r[o]),t?n>r[o]&&(n=r[o]):n<r[o]&&(n=r[o]);return n}tt.Instance.register("sum",to);tt.Instance.register("min",function(e){return ti(e,!0)});tt.Instance.register("max",function(e){return ti(e,!1)});tt.Instance.register("count",function(e){var t=[];return tn(e,t),t.length});tt.Instance.register("avg",function(e){var t=[];tn(e,t);var r=to(e);return t.length>0?r/t.length:0});function ts(e,t,r,n,o,i){var s;if(!e||eA.isValueEmpty(e[t])||i&&!i.run(e))return r;return n(r,o?"string"==typeof(s=e[t])?eA.isNumber(s)?eA.getNumber(s):void 0:s:1)}function ta(e,t,r,n){void 0===n&&(n=!0);var o=function(e,t){if(e.length<2||e.length>3)return null;var r=e[0];if(!r||!Array.isArray(r)&&!Array.isArray(Object.keys(r)))return null;var n=e[1];if("string"!=typeof n&&!(n instanceof String))return null;var o=e.length>2?e[2]:void 0;if("string"!=typeof o&&!(o instanceof String)&&(o=void 0),!o){var i=Array.isArray(t)&&t.length>2?t[2]:void 0;i&&i.toString()&&(o=i.toString())}return{data:r,name:n,expression:o}}(e,t);if(o){var i=o.expression?new tA(o.expression):void 0;i&&i.isAsync&&(i=void 0);var s=void 0;if(Array.isArray(o.data))for(var a=0;a<o.data.length;a++)s=ts(o.data[a],o.name,s,r,n,i);else for(var l in o.data)s=ts(o.data[l],o.name,s,r,n,i);return s}}function tl(e,t){var r=ta(e,t,function(e,t){return(void 0==e&&(e=0),void 0==t||null==t)?e:eA.correctAfterPlusMinis(e,t,e+t)}
1);return void 0!==r?r:0}tt.Instance.register("sumInArray",tl);tt.Instance.register("minInArray",function(e,t){return ta(e,t,function(e,t){return void 0==e?t:void 0==t||null==t?e:e<t?e:t})});function tu(e,t){var r=ta(e,t,function(e,t){return(void 0==e&&(e=0),void 0==t||null==t)?e:e+1},!1);return void 0!==r?r:0}tt.Instance.register("maxInArray",function(e,t){return ta(e,t,function(e,t){return void 0==e?t:void 0==t||null==t?e:e>t?e:t})}),tt.Instance.register("countInArray",tu);tt.Instance.register("avgInArray",function(e,t){var r=tu(e,t);return 0==r?0:tl(e,t)/r});tt.Instance.register("iif",function(e){return e||3===e.length?e[0]?e[1]:e[2]:""});function tc(e,t,r){if("days"===r)return td([e,t]);var n=ek("function-dateDiffMonths",e),o=ek("function-dateDiffMonths",t),i=o.getFullYear()-n.getFullYear();r=r||"years";var s=12*i+o.getMonth()-n.getMonth();return o.getDate()<n.getDate()&&(s-=1),"months"===r?s:~~(s/12)}tt.Instance.register("getDate",function(e){return(e||!(e.length<1))&&e[0]?ek("function-getDate",e[0]):null});tt.Instance.register("age",function(e){return Array.isArray(e)&&!(e.length<1)&&e[0]?tc(e[0],void 0,(e.length>1?e[1]:"")||"years"):null});tt.Instance.register("dateDiff",function(e){return Array.isArray(e)&&!(e.length<2)&&e[0]&&e[1]?tc(e[0],e[1],(e.length>2?e[2]:"")||"days"):null});function tp(e){if(!e)return!1;for(var t=e.questions,r=0;r<t.length;r++)if(!t[r].validate(!1))return!1;return!0}tt.Instance.register("dateAdd",function(e){if(!Array.isArray(e)||e.length<2||!e[0]||!e[1])return null;var t=ek("function-dateAdd",e[0]),r=e[1],n=e[2]||"days";return"days"===n&&t.setDate(t.getDate()+r),"months"===n&&t.setMonth(t.getMonth()+r),"years"===n&&t.setFullYear(t.getFullYear()+r),t});tt.Instance.register("isContainerReady",function(e){if(!e&&e.length<1||!e[0]||!this.survey)return!1;var t=e[0],r=this.survey.getPageByName(t);if(!r&&(r=this.survey.getPanelByName(t)),!r){var n=this.survey.getQuestionByName(t);if(!n||!Array.isArray(n.panels))return!1;if(e.length>1)e[1]<n.panels.length&&(r=n.panels[e[1]]);else{for(var o=0;o<n.panels.length;o++)if(!tp(n.panels[o]))return!1;return!0}}return tp(r)});tt.Instance.register("isDisplayMode",function(){return this.survey&&this.survey.isDisplayMode});function th(e){var t=ek("function-today");return r9.localization.useLocalTimeZone?t.setHours(0,0,0,0):t.setUTCHours(0,0,0,0),Array.isArray(e)&&1==e.length&&t.setDate(t.getDate()+e[0]),t}tt.Instance.register("currentDate",function(){return ek("function-currentDate")}),tt.Instance.register("today",th);tt.Instance.register("getYear",function(e){if(1===e.length&&e[0])return ek("function-getYear",e[0]).getFullYear()});function td(e){if(!Array.isArray(e)||2!==e.length||!e[0]||!e[1])return 0;var t=ek("function-diffDays",e[0]);return Math.ceil(Math.abs(ek("function-diffDays",e[1])-t)/864e5)}function tf(e,t){var r=th(void 0);return t&&t[0]&&(r=ek("function-"+e,t[0])),r}tt.Instance.register("currentYear",function(){return ek("function-currentYear").getFullYear()}),tt.Instance.register("diffDays",td);tt.Instance.register("year",function(e){return tf("year",e).getFullYear()});tt.Instance.register("month",function(e){return tf("month",e).getMonth()+1});tt.Instance.register("day",function(e){return tf("day",e).getDate()});function tg(e,t){if(e&&t){for(var r=e.question;r&&r.parent;){var n=r.parent.getQuestionByName(t);if(n)return n;r=r.parentQuestion}for(var o=["row","panel","survey"],i=0;i<o.length;i++){var s=e[o[i]];if(s&&s.getQuestionByName){var n=s.getQuestionByName(t);if(n)return n}}return null}}function tm(e,t){return t.length>1&&!eA.isValueEmpty(t[1])?e.getDisplayValue(!0,t[1]):e.displayValue}tt.Instance.register("weekday",function(e){return tf("weekday",e).getDay()});tt.Instance.register("displayValue",function(e){var t=this,r=tg(this,e[0]);if(!r)return"";if(r.isReady)this.returnResult(tm(r,e));else{var n=function(r,o){r.isReady&&(r.onReadyChanged.remove(n),t.returnResult(tm(r,e)))};r.onReadyChanged.add(n)}},!0);tt.Instance.register("propertyValue",function(e){if(2===e.length&&e[0]&&e[1]){var t=tg(this,e[0]);return t?t[e[1]]:void 0}});tt.Instance.register("substring",function(e){if(e.length<2)return"";var t=e[0];if(!t||"string"!=typeof t)return"";var r=e[1];if(!eA.isNumber(r))return"";var n=e.length>2?e[2]:void 0;return eA.isNumber(n)?t.substring(r,n):t.substring(r)});
vendor: 22,610 bytes, line 1
1var ty=(o=function(e,t){return(o=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),tb=function(){function e(){this._id=e.counter++}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.toString=function(e){return void 0===e&&(e=void 0),""},e.prototype.hasFunction=function(){return!1},e.prototype.hasAsyncFunction=function(){return!1},e.prototype.addToAsyncList=function(e){},e.prototype.isEqual=function(e){return!!e&&e.getType()===this.getType()&&this.isContentEqual(e)},e.prototype.areOperatorsEquals=function(e,t){return!e&&!t||!!e&&e.isEqual(t)},e.counter=1,e}(),tv=function(e){function t(t,r,n,o){void 0===r&&(r=null),void 0===n&&(n=null),void 0===o&&(o=!1);var i=e.call(this)||this;return i.operatorName=t,i.left=r,i.right=n,i.isArithmeticValue=o,o?i.consumer=tj.binaryFunctions.arithmeticOp(t):i.consumer=tj.binaryFunctions[t],null==i.consumer&&tj.throwInvalidOperatorError(t),i}return ty(t,e),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return this.getIsOperandRequireStrict(this.left)||this.getIsOperandRequireStrict(this.right)},enumerable:!1,configurable:!0}),t.prototype.getIsOperandRequireStrict=function(e){return!!e&&e.requireStrictCompare},t.prototype.getType=function(){return"binary"},Object.defineProperty(t.prototype,"isArithmetic",{get:function(){return this.isArithmeticValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isConjunction",{get:function(){return"or"==this.operatorName||"and"==this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"conjunction",{get:function(){return this.isConjunction?this.operatorName:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leftOperand",{get:function(){return this.left},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightOperand",{get:function(){return this.right},enumerable:!1,configurable:!0}),t.prototype.isContentEqual=function(e){return e.operator===this.operator&&this.areOperatorsEquals(this.left,e.left)&&this.areOperatorsEquals(this.right,e.right)},t.prototype.evaluateParam=function(e,t){return null==e?null:e.evaluate(t)},t.prototype.evaluate=function(e){return this.consumer.call(this,this.evaluateParam(this.left,e),this.evaluateParam(this.right,e),this.requireStrictCompare)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"("+tj.safeToString(this.left,e)+" "+tj.operatorToString(this.operatorName)+" "+tj.safeToString(this.right,e)+")"},t.prototype.setVariables=function(e){null!=this.left&&this.left.setVariables(e),null!=this.right&&this.right.setVariables(e)},t.prototype.hasFunction=function(){return!!this.left&&this.left.hasFunction()||!!this.right&&this.right.hasFunction()},t.prototype.hasAsyncFunction=function(){return!!this.left&&this.left.hasAsyncFunction()||!!this.right&&this.right.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.left&&this.left.addToAsyncList(e),this.right&&this.right.addToAsyncList(e)},t}(tb),tC=function(e){function t(t,r){var n=e.call(this)||this;return n.expressionValue=t,n.operatorName=r,n.consumer=tj.unaryFunctions[r],null==n.consumer&&tj.throwInvalidOperatorError(r),n}return ty(t,e),Object.defineProperty(t.prototype,"operator",{get:function(){return this.operatorName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.expressionValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"unary"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return tj.operatorToString(this.operatorName)+" "+this.expression.toString(e)},t.prototype.isContentEqual=function(e){return e.operator==this.operator&&this.areOperatorsEquals(this.expression,e.expression)},t.prototype.hasFunction=function(){return this.expression.hasFunction()},t.prototype.hasAsyncFunction=function(){return this.expression.hasAsyncFunction()},t.prototype.addToAsyncList=function(e){this.expression.addToAsyncList(e)},t.prototype.evaluate=function(e){var t=this.expression.evaluate(e);return this.consumer.call(this,t)},t.prototype.setVariables=function(e){this.expression.setVariables(e)},t}(tb),tx=function(e){function t(t){var r=e.call(this)||this;return r.values=t,r}return ty(t,e),t.prototype.getType=function(){return"array"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return"["+this.values.map(function(t){return t.toString(e)}).join(", ")+"]"},t.prototype.evaluate=function(e){return this.values.map(function(t){return t.evaluate(e)})},t.prototype.setVariables=function(e){this.values.forEach(function(t){t.setVariables(e)})},t.prototype.hasFunction=function(){return this.values.some(function(e){return e.hasFunction()})},t.prototype.hasAsyncFunction=function(){return this.values.some(function(e){return e.hasAsyncFunction()})},t.prototype.addToAsyncList=function(e){this.values.forEach(function(t){return t.addToAsyncList(e)})},t.prototype.isContentEqual=function(e){if(e.values.length!==this.values.length)return!1;for(var t=0;t<this.values.length;t++)if(!e.values[t].isEqual(this.values[t]))return!1;return!0},t}(tb),tw=function(e){function t(t){var r=e.call(this)||this;return r.value=t,r}return ty(t,e),t.prototype.getType=function(){return"const"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.value.toString()},Object.defineProperty(t.prototype,"correctValue",{get:function(){return this.getCorrectValue(this.value)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(){return this.getCorrectValue(this.value)},t.prototype.setVariables=function(e){},t.prototype.getCorrectValue=function(e){if(!e||"string"!=typeof e)return e;if(tj.isBooleanValue(e))return"true"===e.toLowerCase();if(e.length>1&&this.isQuote(e[0])&&this.isQuote(e[e.length-1]))return e.substring(1,e.length-1);if(eA.isNumber(e)){if("0"===e[0]&&0!=e.indexOf("0x")){var t=e.length,r=t>1&&("."===e[1]||","===e[1]);if(!r&&t>1||r&&t<2)return e}return eA.getNumber(e)}return e},t.prototype.isContentEqual=function(e){return e.value==this.value},t.prototype.isQuote=function(e){return"'"==e||'"'==e},t}(tb),tP=function(e){function t(r){var n=e.call(this,r)||this;return n.variableName=r,n.valueInfo={},n.useValueAsItIs=!1,n.variableName&&n.variableName.length>1&&n.variableName[0]===t.DisableConversionChar&&(n.variableName=n.variableName.substring(1),n.useValueAsItIs=!0),n}return ty(t,e),Object.defineProperty(t,"DisableConversionChar",{get:function(){return r9.expressionDisableConversionChar},set:function(e){r9.expressionDisableConversionChar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0===this.valueInfo.sctrictCompare},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"variable"},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var r=e(this);if(r)return r}return"{"+(this.useValueAsItIs?t.DisableConversionChar:"")+this.variableName+"}"},Object.defineProperty(t.prototype,"variable",{get:function(){return this.variableName},enumerable:!1,configurable:!0}),t.prototype.evaluate=function(e){return this.valueInfo.name=this.variableName,e.getValueInfo(this.valueInfo),this.valueInfo.hasValue?this.getCorrectValue(this.valueInfo.value):null},t.prototype.setVariables=function(e){e.push(this.variableName)},t.prototype.getCorrectValue=function(t){return this.useValueAsItIs?t:e.prototype.getCorrectValue.call(this,t)},t.prototype.isContentEqual=function(e){return e.variable==this.variable},t}(tw),tV=function(e){function t(t,r){var n=e.call(this)||this;return n.originalValue=t,n.parameters=r,Array.isArray(r)&&0===r.length&&(n.parameters=new tx([])),n}return ty(t,e),t.prototype.getType=function(){return"function"},t.prototype.evaluate=function(e){var t=this.getAsynValue(e);return t?t.value:this.evaluateCore(e)},t.prototype.evaluateCore=function(e){var t=e.properties;if(this.isAsyncFunction){t=eA.createCopy(e.properties);var r=this.id,n=e.asyncValues,o=e.onCompleteAsyncFunc,i=this;t.returnResult=function(e){n[r]={value:e},o(i)}}return tt.Instance.run(this.originalValue,this.parameters.evaluate(e),t,this.parameters.values)},t.prototype.toString=function(e){if(void 0===e&&(e=void 0),e){var t=e(this);if(t)return t}return this.originalValue+"("+this.parameters.toString(e)+")"},t.prototype.setVariables=function(e){this.parameters.setVariables(e)},t.prototype.isReady=function(e){return!!this.getAsynValue(e)},t.prototype.getAsynValue=function(e){return e.asyncValues[this.id]},t.prototype.hasFunction=function(){return!0},t.prototype.hasAsyncFunction=function(){return this.isAsyncFunction()||this.parameters.hasAsyncFunction()},t.prototype.isAsyncFunction=function(){return tt.Instance.isAsyncFunction(this.originalValue)},t.prototype.addToAsyncList=function(e){var t=void 0;if(this.isAsyncFunction()&&(t={operand:this}),this.parameters.hasAsyncFunction()){var r=[];this.parameters.addToAsyncList(r),r.forEach(function(e){return e.parent=t}),!t&&(t={}),t.children=r}t&&e.push(t)},t.prototype.isContentEqual=function(e){return e.originalValue==this.originalValue&&this.areOperatorsEquals(e.parameters,this.parameters)},t}(tb),tj=function(){function e(){}return e.throwInvalidOperatorError=function(e){throw Error("Invalid operator: '"+e+"'")},e.safeToString=function(e,t){return null==e?"":e.toString(t)},e.toOperandString=function(t){return t&&!eA.isNumber(t)&&!e.isBooleanValue(t)&&(t="'"+t+"'"),t},e.isBooleanValue=function(e){return!!e&&("true"===e.toLowerCase()||"false"===e.toLowerCase())},e.countDecimals=function(e){if(eA.isNumber(e)&&Math.floor(e)!==e){var t=e.toString().split(".");return t.length>1&&t[1].length||0}return 0},e.plusMinus=function(t,r,n){var o=e.countDecimals(t),i=e.countDecimals(r);if(o>0||i>0){var s=Math.max(o,i);n=parseFloat(n.toFixed(s))}return n},e.isTwoValueEquals=function(e,t,r){return void 0===r&&(r=!0),"undefined"===e&&(e=void 0),"undefined"===t&&(t=void 0),eA.isTwoValueEquals(e,t,r)},e.operatorToString=function(t){var r=e.signs[t];return null==r?t:r},e.convertValForDateCompare=function(e,t){if(t instanceof Date&&"string"==typeof e){var r=ek("expression-operand",e);return r.setHours(0,0,0),r}return e},e.unaryFunctions={empty:function(e){return eA.isValueEmpty(e)},notempty:function(t){return!e.unaryFunctions.empty(t)},negate:function(e){return!e}},e.binaryFunctions={arithmeticOp:function(t){var r=function(e,t){return eA.isValueEmpty(e)?"number"==typeof t?0:"string"==typeof e?e:"string"==typeof t?"":Array.isArray(t)?[]:0:e};return function(n,o){n=r(n,o),o=r(o,n);var i=e.binaryFunctions[t];return null==i?null:i.call(this,n,o)}},and:function(e,t){return e&&t},or:function(e,t){return e||t},plus:function(e,t){return eA.sumAnyValues(e,t)},minus:function(e,t){return eA.correctAfterPlusMinis(e,t,e-t)},mul:function(e,t){return eA.correctAfterMultiple(e,t,e*t)},div:function(e,t){return t?e/t:null},mod:function(e,t){return t?e%t:null},power:function(e,t){return Math.pow(e,t)},greater:function(t,r){return null!=t&&null!=r&&(t=e.convertValForDateCompare(t,r),r=e.convertValForDateCompare(r,t),t>r)},less:function(t,r){return null!=t&&null!=r&&(t=e.convertValForDateCompare(t,r),r=e.convertValForDateCompare(r,t),t<r)},greaterorequal:function(t,r){return!!e.binaryFunctions.equal(t,r)||e.binaryFunctions.greater(t,r)},lessorequal:function(t,r){return!!e.binaryFunctions.equal(t,r)||e.binaryFunctions.less(t,r)},equal:function(t,r,n){return t=e.convertValForDateCompare(t,r),r=e.convertValForDateCompare(r,t),e.isTwoValueEquals(t,r,!0!==n)},notequal:function(t,r,n){return!e.binaryFunctions.equal(t,r,n)},contains:function(t,r){return e.binaryFunctions.containsCore(t,r,!0)},notcontains:function(t,r){return!(t||eA.isValueEmpty(r))||e.binaryFunctions.containsCore(t,r,!1)},anyof:function(t,r){if(eA.isValueEmpty(t)&&eA.isValueEmpty(r))return!0;if(eA.isValueEmpty(t)||!Array.isArray(t)&&0===t.length)return!1;if(eA.isValueEmpty(r))return!0;if(!Array.isArray(t))return e.binaryFunctions.contains(r,t);if(!Array.isArray(r))return e.binaryFunctions.contains(t,r);for(var n=0;n<r.length;n++)if(e.binaryFunctions.contains(t,r[n]))return!0;return!1},allof:function(t,r){if(!t&&!eA.isValueEmpty(r))return!1;if(!Array.isArray(r))return e.binaryFunctions.contains(t,r);for(var n=0;n<r.length;n++)if(!e.binaryFunctions.contains(t,r[n]))return!1;return!0},containsCore:function(t,r,n){if(!t&&0!==t&&!1!==t)return!1;if(!t.length&&(t=t.toString(),("string"==typeof r||r instanceof String)&&(t=t.toUpperCase(),r=r.toUpperCase())),"string"==typeof t||t instanceof String){if(!r)return!1;r=r.toString();var o=t.indexOf(r)>-1;return n?o:!o}for(var i=Array.isArray(r)?r:[r],s=0;s<i.length;s++){var a=0;for(r=i[s];a<t.length&&!e.isTwoValueEquals(t[a],r);a++);if(a==t.length)return!n}return n}},e.signs={less:"<",lessorequal:"<=",greater:">",greaterorequal:">=",equal:"==",notequal:"!=",plus:"+",minus:"-",mul:"*",div:"/",and:"and",or:"or",power:"^",mod:"%",negate:"!"},e}();var tS=(s=function(e,t){return(s=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}s(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),tO=function(e){function t(r,n,o,i){var s=e.call(this)||this;return s.message=r,s.expected=n,s.found=o,s.location=i,s.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(s,t),s}return tS(t,e),t.buildMessage=function(e,t){var r;function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function o(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function i(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function s(e){switch(e.type){case"literal":return'"'+o(e.text)+'"';case"class":var t=e.parts.map(function(e){return Array.isArray(e)?i(e[0])+"-"+i(e[1]):i(e)});return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,r,n=e.map(s);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+((r=t)?'"'+o(r)+'"':"end of input")+" found."},t}(Error),tI=function(e,t){t=void 0!==t?t:{};var r,n,o,i,s={},a={Expression:eK},l=eK,u=function(e,t){return tc(e,t,!0)},c=eW("||",!1),p=eW("or",!0),h=eW("&&",!1),d=eW("and",!0),f=function(e,t){return tc(e,t)},g=eW("<=",!1),m=eW("lessorequal",!0),y=eW(">=",!1),b=eW("greaterorequal",!0),v=eW("==",!1),C="equal",x=eW("equal",!0),w=function(){return"equal"},P=eW("=",!1),V=eW("!=",!1),j=eW("notequal",!0),S=eW("<",!1),O=eW("less",!0),I=eW(">",!1),T=eW("greater",!0),E=eW("+",!1),R=eW("-",!1),_=eW("*",!1),D=eW("/",!1),k=eW("%",!1),A=eW("^",!1),L=eW("power",!0),N=eW("*=",!1),M=eW("contains",!0),F=eW("contain",!0),q=eW("notcontains",!0),B=eW("notcontain",!0),Q=eW("anyof",!0),H=eW("allof",!0),z=eW("(",!1),W=eW(")",!1),U=eW("!",!1),J=eW("negate",!0),G=eW("empty",!0),$=eW("notempty",!0),K="undefined",Y=eW("undefined",!1),X="null",Z=eW("null",!1),ee=eW("{",!1),et=eW("}",!1),er=function(e){return e},en=eW("''",!1),eo=function(){return""},ei=eW('""',!1),es=eW("'",!1),ea=function(e){return"'"+e+"'"},el=eW('"',!1),eu=eW("[",!1),ec=eW("]",!1),ep=eW(",",!1),eh=function(e,t){if(null==e)return new tx([]);var r=[e];if(Array.isArray(t)){for(var n=function(e){return[].concat.apply([],e)}(t),o=3;o<n.length;o+=4)r.push(n[o])}return new tx(r)},ed=eW("true",!0),ef=eW("false",!0),eg=eW("0x",!1),em=/^[\-]/,ey=eU(["-"],!1,!1),eb=eW(".",!1),ev=eW("0",!1),eC=function(e){return e.join("")},ex=eW("\\'",!1),ew=eW('\\"',!1),eP=/^[^"']/,eV=eU(['"',"'"],!0,!1),ej=function(){return ez()},eS=/^[^{}]/,eO=eU(["{","}"],!0,!1),eI=/^[0-9]/,eT=eU([["0","9"]],!1,!1),eE=/^[1-9]/,eR=eU([["1","9"]],!1,!1),e_=/^[a-zA-Z_]/,eD=eU([["a","z"],["A","Z"],"_"],!1,!1),ek=function(e){return{type:"other",description:e}}("whitespace"),eA=/^[ \t\n\r]/,eL=eU([" ","	","\n","\r"],!1,!1),eN=0,eM=0,eF=[{line:1,column:1}],eq=0,eB=[],eQ=0,eH={};if(void 0!==t.startRule){if(!(t.startRule in a))throw Error("Can't start parsing from rule \""+t.startRule+'".');l=a[t.startRule]}function ez(){return e.substring(eM,eN)}function eW(e,t){return{type:"literal",text:e,ignoreCase:t}}function eU(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function eJ(t){var r,n=eF[t];if(n)return n;for(r=t-1;!eF[r];)r--;for(n={line:(n=eF[r]).line,column:n.column};r<t;)10===e.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return eF[t]=n,n}function eG(e,t){var r=eJ(e),n=eJ(t);return{start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function e$(e){if(!(eN<eq))eN>eq&&(eq=eN,eB=[]),eB.push(e)}function eK(){var e,t,r,n,o,i,a,l,c,p=34*eN+0,h=eH[p];if(h)return eN=h.nextPos,h.result;if(e=eN,(t=tu())!==s){if((r=eX())!==s){for(n=[],o=eN,(i=tu())!==s&&(a=eY())!==s&&(l=tu())!==s&&(c=eX())!==s?o=i=[i,a,l,c]:(eN=o,o=s);o!==s;)n.push(o),o=eN,(i=tu())!==s&&(a=eY())!==s&&(l=tu())!==s&&(c=eX())!==s?o=i=[i,a,l,c]:(eN=o,o=s);n!==s&&(o=tu())!==s?(eM=e,e=t=u(r,n)):(eN=e,e=s)}else eN=e,e=s}else eN=e,e=s;return eH[p]={nextPos:eN,result:e},e}function eY(){var t,r,n=34*eN+1,o=eH[n];return o?(eN=o.nextPos,o.result):(t=eN,"||"===e.substr(eN,2)?(r="||",eN+=2):(r=s,0===eQ&&e$(c)),r===s&&("or"===e.substr(eN,2).toLowerCase()?(r=e.substr(eN,2),eN+=2):(r=s,0===eQ&&e$(p))),r!==s&&(eM=t,r="or"),t=r,eH[n]={nextPos:eN,result:t},t)}function eX(){var e,t,r,n,o,i,a,l,c=34*eN+2,p=eH[c];if(p)return eN=p.nextPos,p.result;if(e=eN,(t=e0())!==s){for(r=[],n=eN,(o=tu())!==s&&(i=eZ())!==s&&(a=tu())!==s&&(l=e0())!==s?n=o=[o,i,a,l]:(eN=n,n=s);n!==s;)r.push(n),n=eN,(o=tu())!==s&&(i=eZ())!==s&&(a=tu())!==s&&(l=e0())!==s?n=o=[o,i,a,l]:(eN=n,n=s);r!==s?(eM=e,e=t=u(t,r)):(eN=e,e=s)}else eN=e,e=s;return eH[c]={nextPos:eN,result:e},e}function eZ(){var t,r,n=34*eN+3,o=eH[n];return o?(eN=o.nextPos,o.result):(t=eN,"&&"===e.substr(eN,2)?(r="&&",eN+=2):(r=s,0===eQ&&e$(h)),r===s&&("and"===e.substr(eN,3).toLowerCase()?(r=e.substr(eN,3),eN+=3):(r=s,0===eQ&&e$(d))),r!==s&&(eM=t,r="and"),t=r,eH[n]={nextPos:eN,result:t},t)}function e0(){var e,t,r,n,o,i,a,l,u=34*eN+4,c=eH[u];if(c)return eN=c.nextPos,c.result;if(e=eN,(t=e2())!==s){for(r=[],n=eN,(o=tu())!==s&&(i=e1())!==s&&(a=tu())!==s&&(l=e2())!==s?n=o=[o,i,a,l]:(eN=n,n=s);n!==s;)r.push(n),n=eN,(o=tu())!==s&&(i=e1())!==s&&(a=tu())!==s&&(l=e2())!==s?n=o=[o,i,a,l]:(eN=n,n=s);r!==s?(eM=e,e=t=f(t,r)):(eN=e,e=s)}else eN=e,e=s;return eH[u]={nextPos:eN,result:e},e}function e1(){var t,r,n=34*eN+5,o=eH[n];return o?(eN=o.nextPos,o.result):(t=eN,"<="===e.substr(eN,2)?(r="<=",eN+=2):(r=s,0===eQ&&e$(g)),r===s&&("lessorequal"===e.substr(eN,11).toLowerCase()?(r=e.substr(eN,11),eN+=11):(r=s,0===eQ&&e$(m))),r!==s&&(eM=t,r="lessorequal"),(t=r)===s&&(t=eN,">="===e.substr(eN,2)?(r=">=",eN+=2):(r=s,0===eQ&&e$(y)),r===s&&("greaterorequal"===e.substr(eN,14).toLowerCase()?(r=e.substr(eN,14),eN+=14):(r=s,0===eQ&&e$(b))),r!==s&&(eM=t,r="greaterorequal"),(t=r)===s&&(t=eN,"=="===e.substr(eN,2)?(r="==",eN+=2):(r=s,0===eQ&&e$(v)),r===s&&(e.substr(eN,5).toLowerCase()===C?(r=e.substr(eN,5),eN+=5):(r=s,0===eQ&&e$(x))),r!==s&&(eM=t,r=w()),(t=r)===s&&(t=eN,61===e.charCodeAt(eN)?(r="=",eN++):(r=s,0===eQ&&e$(P)),r===s&&(e.substr(eN,5).toLowerCase()===C?(r=e.substr(eN,5),eN+=5):(r=s,0===eQ&&e$(x))),r!==s&&(eM=t,r=w()),(t=r)===s&&(t=eN,"!="===e.substr(eN,2)?(r="!=",eN+=2):(r=s,0===eQ&&e$(V)),r===s&&("notequal"===e.substr(eN,8).toLowerCase()?(r=e.substr(eN,8),eN+=8):(r=s,0===eQ&&e$(j))),r!==s&&(eM=t,r="notequal"),(t=r)===s&&(t=eN,60===e.charCodeAt(eN)?(r="<",eN++):(r=s,0===eQ&&e$(S)),r===s&&("less"===e.substr(eN,4).toLowerCase()?(r=e.substr(eN,4),eN+=4):(r=s,0===eQ&&e$(O))),r!==s&&(eM=t,r="less"),(t=r)===s&&(t=eN,62===e.charCodeAt(eN)?(r=">",eN++):(r=s,0===eQ&&e$(I)),r===s&&("greater"===e.substr(eN,7).toLowerCase()?(r=e.substr(eN,7),eN+=7):(r=s,0===eQ&&e$(T))),r!==s&&(eM=t,r="greater"),t=r)))))),eH[n]={nextPos:eN,result:t},t)}function e2(){var e,t,r,n,o,i,a,l,c=34*eN+6,p=eH[c];if(p)return eN=p.nextPos,p.result;if(e=eN,(t=e4())!==s){for(r=[],n=eN,(o=tu())!==s&&(i=e5())!==s&&(a=tu())!==s&&(l=e4())!==s?n=o=[o,i,a,l]:(eN=n,n=s);n!==s;)r.push(n),n=eN,(o=tu())!==s&&(i=e5())!==s&&(a=tu())!==s&&(l=e4())!==s?n=o=[o,i,a,l]:(eN=n,n=s);r!==s?(eM=e,e=t=u(t,r)):(eN=e,e=s)}else eN=e,e=s;return eH[c]={nextPos:eN,result:e},e}function e5(){var t,r,n=34*eN+7,o=eH[n];return o?(eN=o.nextPos,o.result):(t=eN,43===e.charCodeAt(eN)?(r="+",eN++):(r=s,0===eQ&&e$(E)),r!==s&&(eM=t,r="plus"),(t=r)===s&&(t=eN,45===e.charCodeAt(eN)?(r="-",eN++):(r=s,0===eQ&&e$(R)),r!==s&&(eM=t,r="minus"),t=r),eH[n]={nextPos:eN,result:t},t)}function e4(){var e,t,r,n,o,i,a,l,c=34*eN+8,p=eH[c];if(p)return eN=p.nextPos,p.result;if(e=eN,(t=e3())!==s){for(r=[],n=eN,(o=tu())!==s&&(i=e8())!==s&&(a=tu())!==s&&(l=e3())!==s?n=o=[o,i,a,l]:(eN=n,n=s);n!==s;)r.push(n),n=eN,(o=tu())!==s&&(i=e8())!==s&&(a=tu())!==s&&(l=e3())!==s?n=o=[o,i,a,l]:(eN=n,n=s);r!==s?(eM=e,e=t=u(t,r)):(eN=e,e=s)}else eN=e,e=s;return eH[c]={nextPos:eN,result:e},e}function e8(){var t,r,n=34*eN+9,o=eH[n];return o?(eN=o.nextPos,o.result):(t=eN,42===e.charCodeAt(eN)?(r="*",eN++):(r=s,0===eQ&&e$(_)),r!==s&&(eM=t,r="mul"),
1(t=r)===s&&(t=eN,47===e.charCodeAt(eN)?(r="/",eN++):(r=s,0===eQ&&e$(D)),r!==s&&(eM=t,r="div"),(t=r)===s&&(t=eN,37===e.charCodeAt(eN)?(r="%",eN++):(r=s,0===eQ&&e$(k)),r!==s&&(eM=t,r="mod"),t=r)),eH[n]={nextPos:eN,result:t},t)}function e3(){var e,t,r,n,o,i,a,l,c=34*eN+10,p=eH[c];if(p)return eN=p.nextPos,p.result;if(e=eN,(t=e7())!==s){for(r=[],n=eN,(o=tu())!==s&&(i=e6())!==s&&(a=tu())!==s&&(l=e7())!==s?n=o=[o,i,a,l]:(eN=n,n=s);n!==s;)r.push(n),n=eN,(o=tu())!==s&&(i=e6())!==s&&(a=tu())!==s&&(l=e7())!==s?n=o=[o,i,a,l]:(eN=n,n=s);r!==s?(eM=e,e=t=u(t,r)):(eN=e,e=s)}else eN=e,e=s;return eH[c]={nextPos:eN,result:e},e}function e6(){var t,r,n=34*eN+11,o=eH[n];return o?(eN=o.nextPos,o.result):(t=eN,94===e.charCodeAt(eN)?(r="^",eN++):(r=s,0===eQ&&e$(A)),r===s&&("power"===e.substr(eN,5).toLowerCase()?(r=e.substr(eN,5),eN+=5):(r=s,0===eQ&&e$(L))),r!==s&&(eM=t,r="power"),t=r,eH[n]={nextPos:eN,result:t},t)}function e7(){var e,t,r,n,o,i,a,l,u=34*eN+12,c=eH[u];if(c)return eN=c.nextPos,c.result;if(e=eN,(t=te())!==s){for(r=[],n=eN,(o=tu())!==s&&(i=e9())!==s&&(a=tu())!==s?((l=te())===s&&(l=null),l!==s?n=o=[o,i,a,l]:(eN=n,n=s)):(eN=n,n=s);n!==s;)r.push(n),n=eN,(o=tu())!==s&&(i=e9())!==s&&(a=tu())!==s?((l=te())===s&&(l=null),l!==s?n=o=[o,i,a,l]:(eN=n,n=s)):(eN=n,n=s);r!==s?(eM=e,e=t=f(t,r)):(eN=e,e=s)}else eN=e,e=s;return eH[u]={nextPos:eN,result:e},e}function e9(){var t,r,n=34*eN+13,o=eH[n];return o?(eN=o.nextPos,o.result):(t=eN,"*="===e.substr(eN,2)?(r="*=",eN+=2):(r=s,0===eQ&&e$(N)),r===s&&("contains"===e.substr(eN,8).toLowerCase()?(r=e.substr(eN,8),eN+=8):(r=s,0===eQ&&e$(M)),r===s&&("contain"===e.substr(eN,7).toLowerCase()?(r=e.substr(eN,7),eN+=7):(r=s,0===eQ&&e$(F)))),r!==s&&(eM=t,r="contains"),(t=r)===s&&(t=eN,"notcontains"===e.substr(eN,11).toLowerCase()?(r=e.substr(eN,11),eN+=11):(r=s,0===eQ&&e$(q)),r===s&&("notcontain"===e.substr(eN,10).toLowerCase()?(r=e.substr(eN,10),eN+=10):(r=s,0===eQ&&e$(B))),r!==s&&(eM=t,r="notcontains"),(t=r)===s&&(t=eN,"anyof"===e.substr(eN,5).toLowerCase()?(r=e.substr(eN,5),eN+=5):(r=s,0===eQ&&e$(Q)),r!==s&&(eM=t,r="anyof"),(t=r)===s&&(t=eN,"allof"===e.substr(eN,5).toLowerCase()?(r=e.substr(eN,5),eN+=5):(r=s,0===eQ&&e$(H)),r!==s&&(eM=t,r="allof"),t=r))),eH[n]={nextPos:eN,result:t},t)}function te(){var t,r,n,o,i=34*eN+14,a=eH[i];if(a)return eN=a.nextPos,a.result;if(t=eN,40===e.charCodeAt(eN)?(r="(",eN++):(r=s,0===eQ&&e$(z)),r!==s){if(tu()!==s){if((n=eK())!==s){if(tu()!==s){if(41===e.charCodeAt(eN)?(o=")",eN++):(o=s,0===eQ&&e$(W)),o===s&&(o=null),o!==s)eM=t,t=r=n;else eN=t,t=s}else eN=t,t=s}else eN=t,t=s}else eN=t,t=s}else eN=t,t=s;return t===s&&(t=function(){var t,r,n,o,i,a=34*eN+15,l=eH[a];if(l)return eN=l.nextPos,l.result;if(t=eN,(r=ts())!==s){if(40===e.charCodeAt(eN)?(n="(",eN++):(n=s,0===eQ&&e$(z)),n!==s){if((o=tr())!==s){if(41===e.charCodeAt(eN)?(i=")",eN++):(i=s,0===eQ&&e$(W)),i===s&&(i=null),i!==s)eM=t,t=r=new tV(r,o);else eN=t,t=s}else eN=t,t=s}else eN=t,t=s}else eN=t,t=s;return eH[a]={nextPos:eN,result:t},t}())===s&&(t=function(){var t,r,n,o,i=34*eN+16,a=eH[i];if(a)return eN=a.nextPos,a.result;if(t=eN,33===e.charCodeAt(eN)?(r="!",eN++):(r=s,0===eQ&&e$(U)),r===s&&("negate"===e.substr(eN,6).toLowerCase()?(r=e.substr(eN,6),eN+=6):(r=s,0===eQ&&e$(J))),r!==s){if((n=tu(
1))!==s){if((o=eK())!==s)eM=t,t=r=new tC(o,"negate");else eN=t,t=s}else eN=t,t=s}else eN=t,t=s;if(t===s){if(t=eN,(r=tt())!==s){if((n=tu())!==s){if((o=function(){var t,r,n=34*eN+17,o=eH[n];return o?(eN=o.nextPos,o.result):(t=eN,"empty"===e.substr(eN,5).toLowerCase()?(r=e.substr(eN,5),eN+=5):(r=s,0===eQ&&e$(G)),r!==s&&(eM=t,r="empty"),(t=r)===s&&(t=eN,"notempty"===e.substr(eN,8).toLowerCase()?(r=e.substr(eN,8),eN+=8):(r=s,0===eQ&&e$($)),r!==s&&(eM=t,r="notempty"),t=r),eH[n]={nextPos:eN,result:t},t)}())!==s)eM=t,t=r=new tC(r,o);else eN=t,t=s}else eN=t,t=s}else eN=t,t=s}return eH[i]={nextPos:eN,result:t},t}())===s&&(t=tt())===s&&(t=function(){var t,r,n,o,i=34*eN+20,a=eH[i];if(a)return eN=a.nextPos,a.result;if(t=eN,91===e.charCodeAt(eN)?(r="[",eN++):(r=s,0===eQ&&e$(eu)),r!==s){if((n=tr())!==s){if(93===e.charCodeAt(eN)?(o="]",eN++):(o=s,0===eQ&&e$(ec)),o!==s)eM=t,t=r=n;else eN=t,t=s}else eN=t,t=s}else eN=t,t=s;return eH[i]={nextPos:eN,result:t},t}()),eH[i]={nextPos:eN,result:t},t}function tt(){var t,r,n,o,i,a=34*eN+18,l=eH[a];if(l)return eN=l.nextPos,l.result;if(t=eN,(r=tu())!==s?(e.substr(eN,9)===K?(n=K,eN+=9):(n=s,0===eQ&&e$(Y)),n===s&&(e.substr(eN,4)===X?(n=X,eN+=4):(n=s,0===eQ&&e$(Z))),n!==s?(eM=t,t=r=null):(eN=t,t=s)):(eN=t,t=s),t===s){if(t=eN,(r=tu())!==s){if((n=function(){var t,r,n,o,i=34*eN+19,a=eH[i];return a?(eN=a.nextPos,a.result):(t=eN,(r=function(){var t,r,n=34*eN+22,o=eH[n];return o?(eN=o.nextPos,o.result):(t=eN,"true"===e.substr(eN,4).toLowerCase()?(r=e.substr(eN,4),eN+=4):(r=s,0===eQ&&e$(ed)),r!==s&&(eM=t,r=!0),(t=r)===s&&(t=eN,"false"===e.substr(eN,5).toLowerCase()?(r=e.substr(eN,5),eN+=5):(r=s,0===eQ&&e$(ef)),r!==s&&(eM=t,r=!1),t=r),eH[n]={nextPos:eN,result:t},t)}())!==s&&(eM=t,r=er(r)),(t=r)===s&&(t=eN,(r=function(){var t,r,n,o,i,a=34*eN+23,l=eH[a];if(l)return eN=l.nextPos,l.result;if(n=eN,"0x"===e.substr(eN,2)?(o="0x",eN+=2):(o=s,0===eQ&&e$(eg)),o!==s&&(i=ta())!==s?(eM=n,n=o=parseInt(ez(),16)):(eN=n,n=s),n===s){if(n=eN,em.test(e.charAt(eN))?(o=e.charAt(eN),eN++):(o=s,0===eQ&&e$(ey)),o===s&&(o=null),o!==s){if((i=function(){var t,r,n,o=34*eN+24,i=eH[o];return i?(eN=i.nextPos,i.result):(t=eN,(r=ta())!==s?(46===e.charCodeAt(eN)?(n=".",eN++):(n=s,0===eQ&&e$(eb)),n!==s&&ta()!==s?(eM=t,t=r=parseFloat(ez())):(eN=t,t=s)):(eN=t,t=s),t===s&&(t=eN,(r=function(){var t,r,n=34*eN+31,o=eH[n];if(o)return eN=o.nextPos,o.result;if(t=[],eE.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=s,0===eQ&&e$(eR)),r!==s)for(;r!==s;)t.push(r),eE.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=s,0===eQ&&e$(eR));else t=s;return eH[n]={nextPos:eN,result:t},t}())!==s?((n=ta())===s&&(n=null),n!==s?(eM=t,t=r=parseInt(ez(),10)):(eN=t,t=s)):(eN=t,t=s),t===s&&(t=eN,48===e.charCodeAt(eN)?(r="0",eN++):(r=s,0===eQ&&e$(ev)),r!==s&&(eM=t,r=0),t=r)),eH[o]={nextPos:eN,result:t},t)}())!==s){;eM=n,t=o,r=i,n=o=null==t?r:-r}else eN=n,n=s}else eN=n,n=s}return eH[a]={nextPos:eN,result:n},n}())!==s&&(eM=t,r=er(r)),(t=r)===s&&(t=eN,(r=ts())!==s&&(eM=t,r=er(r)),(t=r)===s&&(t=eN,"''"===e.substr(eN,2)?(r="''",eN+=2):(r=s,0===eQ&&e$(en)),r!==s&&(eM=t,r=eo()),(t=r)===s&&(t=eN,'""'===e.substr(eN,2)?(r='""',eN+=2):(r=s,0===eQ&&e$(ei)),r!==s&&(eM=t,r=eo()),(t=r)===s&&(t=eN,39===e.charCodeAt(eN)?(r="'",eN++):(r=s,0===eQ&&e$(es)),r!==s&&(n=tn())!==s?(39===e.charCodeAt(eN)?(o="'",eN++):(o=s,0===eQ&&e$(es)),o!==s?(eM=t,t=r=ea(n)):(eN=t,t=s)):(eN=t,t=s),t===s&&(t=eN,34===e.charCodeAt(eN)?(r='"',eN++):(r=s,0===eQ&&e$(el)),r!==s&&(n=tn())!==s?(34===e.charCodeAt(eN)?(o='"',eN++):(o=s,0===eQ&&e$(el)),o!==s?(eM=t,t=r=ea(n)):(eN=t,t=s)):(eN=t,t=s))))))),eH[i]={nextPos:eN,result:t},t)}())!==s)eM=t,t=r=new tw(n);else eN=t,t=s}else eN=t,t=s;if(t===s){if(t=eN,(r=tu())!==s){if(123===e.charCodeAt(eN)?(n="{",eN++):(n=s,0===eQ&&e$(ee)),n!==s){if((o=function(){var e,t,r,n=34*eN+25,o=eH[n];if(o)return eN=o.nextPos,o.result;if(e=eN,t=[],(r=ti())!==s)for(;r!==s;)t.push(r),r=ti();else t=s;return t!==s&&(eM=e,t=eC(t)),e=t,eH[n]={nextPos:eN,result:e},e}())!==s){if(125===e.charCodeAt(eN)?(i="}",eN++):(i=s,0===eQ&&e$(et)),i!==s)eM=t,t=r=new tP(o);else eN=t,t=s}else eN=t,t=s}else eN=t,t=s}else eN=t,t=s}}return eH[a]={nextPos:eN,result:t},t}function tr(){var t,r,n,o,i,a,l,u,c=34*eN+21,p=eH[c];if(p)return eN=p.nextPos,p.result;if(t=eN,(r=eK())===s&&(r=null),r!==s){for(n=[],o=eN,(i=tu())!==s?(44===e.charCodeAt(eN)?(a=",",eN++):(a=s,0===eQ&&e$(ep)),a!==s&&(l=tu())!==s&&(u=eK())!==s?o=i=[i,a,l,u]:(eN=o,o=s)):(eN=o,o=s);o!==s;)n.push(o),o=eN,(i=tu())!==s?(44===e.charCodeAt(eN)?(a=",",eN++):(a=s,0===eQ&&e$(ep)),a!==s&&(l=tu())!==s&&(u=eK())!==s?o=i=[i,a,l,u]:(eN=o,o=s)):(eN=o,o=s);n!==s?(eM=t,t=r=eh(r,n)):(eN=t,t=s)}else eN=t,t=s;return eH[c]={nextPos:eN,result:t},t}function tn(){var e,t,r,n=34*eN+26,o=eH[n];if(o)return eN=o.nextPos,o.result;if(e=eN,t=[],(r=to())!==s)for(;r!==s;)t.push(r),r=to();else t=s;return t!==s&&(eM=e,t=eC(t)),e=t,eH[n]={nextPos:eN,result:e},e}function to(){var t,r,n=34*eN+27,o=eH[n];return o?(eN=o.nextPos,o.result):(t=eN,"\\'"===e.substr(eN,2)?(r="\\'",eN+=2):(r=s,0===eQ&&e$(ex)),r!==s&&(eM=t,r="'"),(t=r)===s&&(t=eN,'\\"'===e.substr(eN,2)?(r='\\"',eN+=2):(r=s,0===eQ&&e$(ew)),r!==s&&(eM=t,r='"'),(t=r)===s&&(t=eN,eP.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=s,0===eQ&&e$(eV)),r!==s&&(eM=t,r=ej()),t=r)),eH[n]={nextPos:eN,result:t},t)}function ti(){var t,r,n=34*eN+28,o=eH[n];return o?(eN=o.nextPos,o.result):(t=eN,eS.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=s,0===eQ&&e$(eO)),r!==s&&(eM=t,r=ej()),t=r,eH[n]={nextPos:eN,result:t},t)}function ts(){var e,t,r,n,o,i,a,l=34*eN+29,u=eH[l];if(u)return eN=u.nextPos,u.result;
1if(e=eN,(t=tl())!==s){if(r=[],n=eN,(o=ta())!==s){for(i=[],a=tl();a!==s;)i.push(a),a=tl();i!==s?n=o=[o,i]:(eN=n,n=s)}else eN=n,n=s;for(;n!==s;)if(r.push(n),n=eN,(o=ta())!==s){for(i=[],a=tl();a!==s;)i.push(a),a=tl();i!==s?n=o=[o,i]:(eN=n,n=s)}else eN=n,n=s;r!==s?(eM=e,e=t=ej()):(eN=e,e=s)}else eN=e,e=s;return eH[l]={nextPos:eN,result:e},e}function ta(){var t,r,n=34*eN+30,o=eH[n];if(o)return eN=o.nextPos,o.result;if(t=[],eI.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=s,0===eQ&&e$(eT)),r!==s)for(;r!==s;)t.push(r),eI.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=s,0===eQ&&e$(eT));else t=s;return eH[n]={nextPos:eN,result:t},t}function tl(){var t,r,n=34*eN+32,o=eH[n];if(o)return eN=o.nextPos,o.result;if(t=[],e_.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=s,0===eQ&&e$(eD)),r!==s)for(;r!==s;)t.push(r),e_.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=s,0===eQ&&e$(eD));else t=s;return eH[n]={nextPos:eN,result:t},t}function tu(){var t,r,n=34*eN+33,o=eH[n];if(o)return eN=o.nextPos,o.result;for(eQ++,t=[],eA.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=s,0===eQ&&e$(eL));r!==s;)t.push(r),eA.test(e.charAt(eN))?(r=e.charAt(eN),eN++):(r=s,0===eQ&&e$(eL));return eQ--,t===s&&(r=s,0===eQ&&e$(ek)),eH[n]={nextPos:eN,result:t},t}function tc(e,t,r){return void 0===r&&(r=!1),t.reduce(function(e,t){return new tv(t[1],e,t[3],r)},e)}if((i=l())!==s&&eN===e.length)return i;throw i!==s&&eN<e.length&&e$({type:"end"}),r=eB,n=eq<e.length?e.charAt(eq):null,o=eG(eq,eq<e.length?eq+1:eq),new tO(tO.buildMessage(r,n),r,n,o)},tT=function(e,t){this.at=e,this.code=t},tE=function(){function e(){}return e.prototype.patchExpression=function(e){return e.replace(/=>/g,">=").replace(/=</g,"<=").replace(/<>/g,"!=").replace(/equals/g,"equal ").replace(/notequals/g,"notequal ")},e.prototype.createCondition=function(e){return this.parseExpression(e)},e.prototype.parseExpression=function(t){try{var r=e.parserCache[t];return void 0===r&&!(r=tI(this.patchExpression(t))).hasAsyncFunction()&&(e.parserCache[t]=r),r}catch(e){e instanceof tO&&(this.conditionError=new tT(e.location.start.offset,e.message))}},Object.defineProperty(e.prototype,"error",{get:function(){return this.conditionError},enumerable:!1,configurable:!0}),e.parserCache={},e}();var tR=(a=function(e,t){return(a=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),t_=function(){function e(e,t,r,n,o){this.operand=e,this.id=t,this.onComplete=r,this.processValue=new e9,this.processValue.values=n,this.processValue.properties=o}return e.prototype.run=function(e){var t=this;if(!e)return this.runValues();this.processValue.values=eA.createCopy(this.processValue.values),this.processValue.onCompleteAsyncFunc=function(e){var r=t.getAsyncItemByOperand(e,t.asyncFuncList);r&&t.doAsyncFunctionReady(r)},this.asyncFuncList=[],this.operand.addToAsyncList(this.asyncFuncList);for(var r=0;r<this.asyncFuncList.length;r++)this.runAsyncItem(this.asyncFuncList[r]);return!1},e.prototype.getAsyncItemByOperand=function(e,t){if(!Array.isArray(t))return null;for(var r=0;r<t.length;r++){if(t[r].operand===e)return t[r];var n=this.getAsyncItemByOperand(e,t[r].children);if(n)return n}return null},e.prototype.runAsyncItem=function(e){var t=this;e.children?e.children.forEach(function(e){return t.runAsyncItem(e)}):this.runAsyncItemCore(e)},e.prototype.runAsyncItemCore=function(e){e.operand?e.operand.evaluate(this.processValue):this.doAsyncFunctionReady(e)},e.prototype.doAsyncFunctionReady=function(e){if(e.parent&&this.isAsyncChildrenReady(e)){this.runAsyncItemCore(e.parent);return}for(var t=0;t<this.asyncFuncList.length;t++)if(!this.isAsyncFuncReady(this.asyncFuncList[t]))return;this.runValues()},e.prototype.isAsyncFuncReady=function(e){return(!e.operand||!!e.operand.isReady(this.processValue))&&this.isAsyncChildrenReady(e)},e.prototype.isAsyncChildrenReady=function(e){if(e.children){for(var t=0;t<e.children.length;t++)if(!this.isAsyncFuncReady(e.children[t]))return!1}return!0},e.prototype.runValues=function(){var e=this.operand.evaluate(this.processValue);return this.onComplete&&this.onComplete(e,this.id),e},e}(),tD=function(){function e(e){this.parser=new tE,this.isAsyncValue=!1,this.hasFunctionValue=!1,this.setExpression(e)}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionValue}
vendor: 9,601 bytes, line 1
1,enumerable:!1,configurable:!0}),e.prototype.setExpression=function(e){this.expression!==e&&(this.expressionValue=e,this.operand=this.parser.parseExpression(e),this.hasFunctionValue=!!this.canRun()&&this.operand.hasFunction(),this.isAsyncValue=!!this.hasFunction()&&this.operand.hasAsyncFunction())},e.prototype.getVariables=function(){if(!this.operand)return[];var e=[];return this.operand.setVariables(e),e},e.prototype.hasFunction=function(){return this.hasFunctionValue},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.isAsyncValue},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return!!this.operand},e.prototype.run=function(e,t,r){return(void 0===t&&(t=null),this.operand)?new t_(this.operand,r,this.onComplete,e,t).run(this.isAsync):(this.expression&&te.warn("Invalid expression: "+this.expression),null)},e.createExpressionExecutor=function(t){return new e(t)},e}(),tk=function(){function e(e){this.expression=e}return Object.defineProperty(e.prototype,"expression",{get:function(){return this.expressionExecutor?this.expressionExecutor.expression:""},set:function(e){var t=this;(!this.expressionExecutor||e!==this.expression)&&(this.expressionExecutor=tD.createExpressionExecutor(e),this.expressionExecutor.onComplete=function(e,r){t.doOnComplete(e,r)},this.variables=void 0,this.containsFunc=void 0)},enumerable:!1,configurable:!0}),e.prototype.getVariables=function(){return void 0===this.variables&&(this.variables=this.expressionExecutor.getVariables()),this.variables},e.prototype.hasFunction=function(){return void 0===this.containsFunc&&(this.containsFunc=this.expressionExecutor.hasFunction()),this.containsFunc},Object.defineProperty(e.prototype,"isAsync",{get:function(){return this.expressionExecutor.isAsync},enumerable:!1,configurable:!0}),e.prototype.canRun=function(){return this.expressionExecutor.canRun()},e.prototype.runCore=function(t,r){void 0===r&&(r=null);var n=e.IdRunnerCounter++;return this.onBeforeAsyncRun&&this.isAsync&&this.onBeforeAsyncRun(n),this.expressionExecutor.run(t,r,n)},e.prototype.doOnComplete=function(e,t){this.onAfterAsyncRun&&this.isAsync&&this.onAfterAsyncRun(t)},e.IdRunnerCounter=1,e}(),tA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tR(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),!0==this.runCore(e,t)},t.prototype.doOnComplete=function(t,r){this.onRunComplete&&this.onRunComplete(!0==t),e.prototype.doOnComplete.call(this,t,r)},t}(tk),tL=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tR(t,e),t.prototype.run=function(e,t){return void 0===t&&(t=null),this.runCore(e,t)},t.prototype.doOnComplete=function(t,r){this.onRunComplete&&this.onRunComplete(t),e.prototype.doOnComplete.call(this,t,r)},t}(tk);var tN=(l=function(e,t){return(l=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),tM=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},tF=function(){function e(e){this.obj=e,this.properties=null,this.values=null}return e.prototype.getType=function(){return"bindings"},e.prototype.getNames=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)this.properties[t].isVisible("",this.obj)&&e.push(this.properties[t].name);return e},e.prototype.getProperties=function(){var e=[];this.fillProperties();for(var t=0;t<this.properties.length;t++)e.push(this.properties[t]);return e},e.prototype.setBinding=function(e,t){!this.values&&(this.values={});var r=this.getJson();r!==t&&(t?this.values[e]=t:(delete this.values[e],0==Object.keys(this.values).length&&(this.values=null)),this.onChangedJSON(r))},e.prototype.clearBinding=function(e){this.setBinding(e,"")},e.prototype.isEmpty=function(){if(!this.values)return!0;for(var e in this.values)return!1;return!0},e.prototype.getValueNameByPropertyName=function(e){if(this.values)return this.values[e]},e.prototype.getPropertiesByValueName=function(e){if(!this.values)return[];var t=[];for(var r in this.values)this.values[r]==e&&t.push(r);return t},e.prototype.getJson=function(){if(!this.isEmpty()){var e={};for(var t in this.values)e[t]=this.values[t];return e}},e.prototype.setJson=function(e,t){var r=this.getJson();if(this.values=null,e)for(var n in this.values={},e)this.values[n]=e[n];!t&&this.onChangedJSON(r)},e.prototype.fillProperties=function(){if(null===this.properties){this.properties=[];for(var e=e6.getPropertiesByObj(this.obj),t=0;t<e.length;t++)e[t].isBindable&&this.properties.push(e[t])}},e.prototype.onChangedJSON=function(e){this.obj&&this.obj.onBindingChanged(e,this.getJson())},e}(),tq=function(){function e(t,r,n){this.currentDependency=t,this.target=r,this.property=n,this.dependencies=[],this.id=""+ ++e.DependenciesCount}return e.prototype.addDependency=function(e,t){if(this.target!==e||this.property!==t)!this.dependencies.some(function(r){return r.obj===e&&r.prop===t})&&(this.dependencies.push({obj:e,prop:t,id:this.id}),e.registerPropertyChangedHandlers([t],this.currentDependency,this.id))},e.prototype.dispose=function(){this.dependencies.forEach(function(e){e.obj.unregisterPropertyChangedHandlers([e.prop],e.id)})},e.DependenciesCount=0,e}(),tB=function(){function e(t){this._updater=t,this.dependencies=void 0,this.type=e.ComputedUpdaterType}return Object.defineProperty(e.prototype,"updater",{get:function(){return this._updater},enumerable:!1,configurable:!0}),e.prototype.setDependencies=function(e){this.clearDependencies(),this.dependencies=e},e.prototype.getDependencies=function(){return this.dependencies},e.prototype.clearDependencies=function(){this.dependencies&&(this.dependencies.dispose(),this.dependencies=void 0)},e.prototype.dispose=function(){this.clearDependencies(),this._updater=void 0},e.ComputedUpdaterType="__dependency_computed",e}(),tQ=function(){function e(){this.dependencies={},this.propertyHash=e.createPropertiesHash(),this.eventList=[],this.isLoadingFromJsonValue=!1,this.loadingOwner=null,this.onPropertyChanged=this.addEvent(),this.onItemValuePropertyChanged=this.addEvent(),this.isCreating=!0,this.animationAllowedLock=0,this.supportOnElementRerenderedEvent=!0,this.onElementRerenderedEventEnabled=!1,this._onElementRerendered=new tW,this.bindingsValue=new tF(this),e$.createProperties(this),this.onBaseCreating(),this.isCreating=!1}return e.finishCollectDependencies=function(){var t=e.currentDependencis;return e.currentDependencis=void 0,t},e.startCollectDependencies=function(t,r,n){if(void 0!==e.currentDependencis)throw Error("Attempt to collect nested dependencies. Nested dependencies are not supported.");e.currentDependencis=new tq(t,r,n)},e.collectDependency=function(t,r){void 0!==e.currentDependencis&&e.currentDependencis.addDependency(t,r)},Object.defineProperty(e,"commentSuffix",{get:function(){return r9.commentSuffix},set:function(e){r9.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"commentPrefix",{get:function(){return e.commentSuffix},set:function(t){e.commentSuffix=t},enumerable:!1,configurable:!0}),e.prototype.isValueEmpty=function(e,t){return void 0===t&&(t=!0),t&&(e=this.trimValue(e)),eA.isValueEmpty(e)},e.prototype.equals=function(e){return!!e&&!this.isDisposed&&!e.isDisposed&&this.getType()==e.getType()&&this.equalsCore(e)},e.prototype.equalsCore=function(e){return this.name===e.name&&eA.isTwoValueEquals(this.toJSON(),e.toJSON(),!1,!0,!1)},e.prototype.trimValue=function(e){return e&&("string"==typeof e||e instanceof String)?e.trim():e},e.prototype.isPropertyEmpty=function(e){return""!==e&&this.isValueEmpty(e)},e.createPropertiesHash=function(){return{}},e.prototype.dispose=function(){for(var e=this,t=0;t<this.eventList.length;t++)this.eventList[t].clear();this.onPropertyValueChangedCallback=void 0,this.isDisposedValue=!0,Object.keys(this.dependencies).forEach(function(t){return e.dependencies[t].dispose()}),Object.keys(this.propertyHash).forEach(function(t){var r=e.getPropertyValueCore(e.propertyHash,t);r&&r.type==tB.ComputedUpdaterType&&r.dispose()})},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return!0===this.isDisposedValue},enumerable:!1,configurable:!0}),e.prototype.addEvent=function(){var e=new tW;return this.eventList.push(e),e},e.prototype.onBaseCreating=function(){},e.prototype.getType=function(){return"base"},e.prototype.isDescendantOf=function(e){return e6.isDescendantOf(this.getType(),e)},e.prototype.getSurvey=function(e){return void 0===e&&(e=!1),null},Object.defineProperty(e.prototype,"isDesignMode",{get:function(){var e=this.getSurvey();return!!e&&e.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDesignModeV2",{get:function(){return r9.supportCreatorV2&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"inSurvey",{get:function(){return!!this.getSurvey(!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bindings",{get:function(){return this.bindingsValue},enumerable:!1,configurable:!0}),e.prototype.checkBindings=function(e,t){},e.prototype.updateBindings=function(e,t){var r=this.bindings.getValueNameByPropertyName(e);r&&this.updateBindingValue(r,t)},e.prototype.updateBindingValue=function(e,t){},e.prototype.getTemplate=function(){return this.getType()}
1,Object.defineProperty(e.prototype,"isLoadingFromJson",{get:function(){return this.isLoadingFromJsonValue||this.getIsLoadingFromJson()},enumerable:!1,configurable:!0}),e.prototype.getIsLoadingFromJson=function(){return!!this.loadingOwner&&!!this.loadingOwner.isLoadingFromJson||this.isLoadingFromJsonValue},e.prototype.startLoadingFromJson=function(e){this.isLoadingFromJsonValue=!0,this.jsonObj=e},e.prototype.endLoadingFromJson=function(){this.isLoadingFromJsonValue=!1},e.prototype.toJSON=function(e){return new e3().toJsonObject(this,e)},e.prototype.fromJSON=function(e,t){new e3().toObject(e,this,t),this.onSurveyLoad()},e.prototype.onSurveyLoad=function(){},e.prototype.clone=function(){var e=e6.createClass(this.getType());return e.fromJSON(this.toJSON()),e},e.prototype.getPropertyByName=function(e){var t=this.getType();return(!this.classMetaData||this.classMetaData.name!==t)&&(this.classMetaData=e6.findClass(t)),this.classMetaData?this.classMetaData.findProperty(e):null},e.prototype.isPropertyVisible=function(e){var t=this.getPropertyByName(e);return!!t&&t.isVisible("",this)},e.createProgressInfo=function(){return{questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0}},e.prototype.getProgressInfo=function(){return e.createProgressInfo()},e.prototype.localeChanged=function(){},e.prototype.locStrsChanged=function(){if(this.arraysInfo)for(var t in this.arraysInfo){var r=this.arraysInfo[t];if(r&&r.isItemValues){var n=this.getPropertyValue(t);n&&e.itemValueLocStrChanged&&e.itemValueLocStrChanged(n)}}if(this.localizableStrings)for(var t in this.localizableStrings){var r=this.getLocalizableString(t);r&&r.strChanged()}},e.prototype.getPropertyValue=function(e,t,r){var n=this.getPropertyValueWithoutDefault(e);if(this.isPropertyEmpty(n)){var o=this.localizableStrings?this.localizableStrings[e]:void 0;if(o)return o.text;if(null!=t)return t;if(r){var i=r();if(void 0!==i){if(!Array.isArray(i))return this.setPropertyValueDirectly(e,i),i;var s=this.createNewArray(e);return s.splice.apply(s,tM([0,0],i)),s}}var a=this.getDefaultPropertyValue(e);if(void 0!==a)return a}return n},e.prototype.getDefaultPropertyValue=function(e){var t=this.getPropertyByName(e);if(t&&(!t.isCustom||!this.isCreating)){if(t.defaultValueFunc)return t.defaultValueFunc(this);var r=t.getDefaultValue(this);if(!this.isPropertyEmpty(r)&&!Array.isArray(r))return r;var n=this.localizableStrings?this.localizableStrings[e]:void 0;if(n&&n.localizationName)return this.getLocalizationString(n.localizationName);if("boolean"==t.type||"switch"==t.type)return!1;if(t.isCustom&&t.onGetValue)return t.onGetValue(this)}},e.prototype.hasDefaultPropertyValue=function(e){return void 0!==this.getDefaultPropertyValue(e)},e.prototype.resetPropertyValue=function(e){var t=this.localizableStrings?this.localizableStrings[e]:void 0;t?(this.setLocalizableStringText(e,void 0),t.clear()):this.setPropertyValue(e,void 0)},e.prototype.getPropertyValueWithoutDefault=function(e){return this.getPropertyValueCore(this.propertyHash,e)},e.prototype.getPropertyValueCore=function(t,r){return(!this.isLoadingFromJson&&e.collectDependency(this,r),this.getPropertyValueCoreHandler)?this.getPropertyValueCoreHandler(t,r):t[r]},e.prototype.geValueFromHash=function(){return this.propertyHash.value},e.prototype.setPropertyValueCore=function(e,t,r){this.setPropertyValueCoreHandler?this.isDisposedValue?te.disposedObjectChangedProperty(t,this.getType()):this.setPropertyValueCoreHandler(e,t,r):e[t]=r},Object.defineProperty(e.prototype,"isEditingSurveyElement",{get:function(){var e=this.getSurvey();return!!e&&e.isEditingSurveyElement},enumerable:!1,configurable:!0}),e.prototype.iteratePropertiesHash=function(e){var t=this,r=[];for(var n in this.propertyHash)!("value"===n&&this.isEditingSurveyElement&&Array.isArray(this.value))&&r.push(n);r.forEach(function(r){return e(t.propertyHash,r)})},e.prototype.setPropertyValue=function(e,t){if(!this.isDisposedValue){if(!this.isLoadingFromJson){var r=this.getPropertyByName(e);r&&(t=r.settingValue(this,t))}var n=this.getPropertyValue(e);n&&Array.isArray(n)&&this.arraysInfo&&(!t||Array.isArray(t))?!this.isTwoValueEquals(n,t)&&this.setArrayPropertyDirectly(e,t):t!==n&&(this.setPropertyValueDirectly(e,t),!this.isTwoValueEquals(n,t)&&this.propertyValueChanged(e,n,t))}},e.prototype.setArrayPropertyDirectly=function(e,t,r){void 0===r&&(r=!0);var n=this.arraysInfo[e];this.setArray(e,this.getPropertyValue(e),t,!!n&&n.isItemValues,n?r&&n.onPush:null)},e.prototype.setPropertyValueDirectly=function(e,t){this.setPropertyValueCore(this.propertyHash,e,t)},e.prototype.clearPropertyValue=function(e){this.setPropertyValueCore(this.propertyHash,e,null),delete this.propertyHash[e]},e.prototype.onPropertyValueChangedCallback=function(e,t,r,n,o){},e.prototype.itemValuePropertyChanged=function(e,t,r,n){this.onItemValuePropertyChanged.fire(this,{obj:e,name:t,oldValue:r,newValue:n,propertyName:e.ownerPropertyName})},e.prototype.onPropertyValueChanged=function(e,t,r){},e.prototype.propertyValueChanged=function(e,t,r,n,o){if(!this.isLoadingFromJson){if(this.updateBindings(e,r),this.onPropertyValueChanged(e,t,r),this.onPropertyChanged.fire(this,{name:e,oldValue:t,newValue:r,arrayChanges:n,target:o}),this.doPropertyValueChangedCallback(e,t,r,n,this),this.checkConditionPropertyChanged(e),this.onPropChangeFunctions)for(var i=0;i<this.onPropChangeFunctions.length;i++)this.onPropChangeFunctions[i].name==e&&this.onPropChangeFunctions[i].func(r,n)}},e.prototype.onBindingChanged=function(e,t){!this.isLoadingFromJson&&this.doPropertyValueChangedCallback("bindings",e,t)},Object.defineProperty(e.prototype,"isInternal",{get:function(){return!1}
vendor: 26,136 bytes, line 1
1,enumerable:!1,configurable:!0}),e.prototype.doPropertyValueChangedCallback=function(e,t,r,n,o){var i=function(i){i&&i.onPropertyValueChangedCallback&&i.onPropertyValueChangedCallback(e,t,r,o,n)};if(this.isInternal){i(this);return}!o&&(o=this);var s=this.getSurvey();!s&&(s=this),i(s),s!==this&&i(this)},e.prototype.addExpressionProperty=function(e,t,r){!this.expressionInfo&&(this.expressionInfo={}),this.expressionInfo[e]={onExecute:t,canRun:r}},e.prototype.getDataFilteredValues=function(){return{}},e.prototype.getDataFilteredProperties=function(){return{}},e.prototype.runConditionCore=function(e,t){if(this.expressionInfo)for(var r in this.expressionInfo)this.runConditionItemCore(r,e,t)},e.prototype.canRunConditions=function(){return!this.isDesignMode},e.prototype.checkConditionPropertyChanged=function(e){if(!!this.expressionInfo&&!!this.expressionInfo[e])this.canRunConditions()&&this.runConditionItemCore(e,this.getDataFilteredValues(),this.getDataFilteredProperties())},e.prototype.runConditionItemCore=function(e,t,r){var n=this,o=this.expressionInfo[e],i=this.getPropertyValue(e);if(!!i)(!o.canRun||o.canRun(this))&&(!o.runner&&(o.runner=this.createExpressionRunner(i),o.runner.onRunComplete=function(e){o.onExecute(n,e)}),o.runner.expression=i,o.runner.run(t,r))},e.prototype.doBeforeAsynRun=function(e){!this.asynExpressionHash&&(this.asynExpressionHash={});var t=!this.isAsyncExpressionRunning;this.asynExpressionHash[e]=!0,t&&this.onAsyncRunningChanged()},e.prototype.doAfterAsynRun=function(e){this.asynExpressionHash&&(delete this.asynExpressionHash[e],!this.isAsyncExpressionRunning&&this.onAsyncRunningChanged())},e.prototype.onAsyncRunningChanged=function(){},Object.defineProperty(e.prototype,"isAsyncExpressionRunning",{get:function(){return!!this.asynExpressionHash&&Object.keys(this.asynExpressionHash).length>0},enumerable:!1,configurable:!0}),e.prototype.createExpressionRunner=function(e){var t=this,r=new tL(e);return r.onBeforeAsyncRun=function(e){t.doBeforeAsynRun(e)},r.onAfterAsyncRun=function(e){t.doAfterAsynRun(e)},r},e.prototype.registerPropertyChangedHandlers=function(e,t,r){void 0===r&&(r=null);for(var n=0;n<e.length;n++)this.registerFunctionOnPropertyValueChanged(e[n],t,r)},e.prototype.unregisterPropertyChangedHandlers=function(e,t){void 0===t&&(t=null);for(var r=0;r<e.length;r++)this.unRegisterFunctionOnPropertyValueChanged(e[r],t)},e.prototype.registerFunctionOnPropertyValueChanged=function(e,t,r){if(void 0===r&&(r=null),!this.onPropChangeFunctions&&(this.onPropChangeFunctions=[]),r)for(var n=0;n<this.onPropChangeFunctions.length;n++){var o=this.onPropChangeFunctions[n];if(o.name==e&&o.key==r){o.func=t;return}}this.onPropChangeFunctions.push({name:e,func:t,key:r})},e.prototype.registerFunctionOnPropertiesValueChanged=function(e,t,r){void 0===r&&(r=null),this.registerPropertyChangedHandlers(e,t,r)},e.prototype.unRegisterFunctionOnPropertyValueChanged=function(e,t){if(void 0===t&&(t=null),this.onPropChangeFunctions)for(var r=0;r<this.onPropChangeFunctions.length;r++){var n=this.onPropChangeFunctions[r];if(n.name==e&&n.key==t){this.onPropChangeFunctions.splice(r,1);return}}},e.prototype.unRegisterFunctionOnPropertiesValueChanged=function(e,t){void 0===t&&(t=null),this.unregisterPropertyChangedHandlers(e,t)},e.prototype.createCustomLocalizableObj=function(e){var t=this.getLocalizableString(e);return t?t:this.createLocalizableString(e,this,!1,!0)},e.prototype.getLocale=function(){var e=this.getSurvey();return e?e.getLocale():""},e.prototype.getLocalizationString=function(e){return eM(e,this.getLocale())},e.prototype.getLocalizationFormatString=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=this.getLocalizationString(e);return n&&n.format?n.format.apply(n,t):""},e.prototype.createLocalizableString=function(e,t,r,n){var o=this;void 0===r&&(r=!1),void 0===n&&(n=!1);var i=void 0;n&&(i=!0===n?e:n);var s=new rV(t,r,e,i);s.onStrChanged=function(t,r){o.propertyValueChanged(e,t,r)},!this.localizableStrings&&(this.localizableStrings={}),this.localizableStrings[e]=s;var a=this.getPropertyByName(e);return s.disableLocalization=a&&!1===a.isLocalizable,s},e.prototype.getLocalizableString=function(e){return this.localizableStrings?this.localizableStrings[e]:null},e.prototype.getLocalizableStringText=function(t,r){void 0===r&&(r=""),e.collectDependency(this,t);var n=this.getLocalizableString(t);if(!n)return"";var o=n.text;return o||r},e.prototype.setLocalizableStringText=function(e,t){var r=this.getLocalizableString(e);r&&r.text!=t&&(r.text=t)},e.prototype.addUsedLocales=function(e){if(this.localizableStrings)for(var t in this.localizableStrings){var r=this.getLocalizableString(t);r&&this.AddLocStringToUsedLocales(r,e)}if(this.arraysInfo)for(var t in this.arraysInfo){var n=this.getPropertyByName(t);if(!!n&&!!n.isSerializable){var o=this.getPropertyValue(t);if(o&&o.length)for(var i=0;i<o.length;i++){var r=o[i];r&&r.addUsedLocales&&r.addUsedLocales(e)}}}},e.prototype.searchText=function(e,t){var r=[];this.getSearchableLocalizedStrings(r);for(var n=0;n<r.length;n++)r[n].setFindText(e)&&t.push({element:this,str:r[n]})},e.prototype.getSearchableLocalizedStrings=function(e){if(this.localizableStrings){var t=[];this.getSearchableLocKeys(t);for(var r=0;r<t.length;r++){var n=this.getLocalizableString(t[r]);n&&e.push(n)}}if(this.arraysInfo){var o=[];this.getSearchableItemValueKeys(o);for(var r=0;r<o.length;r++){var i=this.getPropertyValue(o[r]);if(i)for(var s=0;s<i.length;s++)e.push(i[s].locText)}}},e.prototype.getSearchableLocKeys=function(e){},e.prototype.getSearchableItemValueKeys=function(e){},e.prototype.AddLocStringToUsedLocales=function(e,t){for(var r=e.getLocales(),n=0;n<r.length;n++)0>t.indexOf(r[n])&&t.push(r[n])},e.prototype.createItemValues=function(e){var t=this,r=this.createNewArray(e,function(r){if(r.locOwner=t,r.ownerPropertyName=e,"function"==typeof r.getSurvey){var n=r.getSurvey();n&&"function"==typeof n.makeReactive&&n.makeReactive(r)}});return this.arraysInfo[e].isItemValues=!0,r},e.prototype.notifyArrayChanged=function(e,t){e.onArrayChanged&&e.onArrayChanged(t)},e.prototype.createNewArrayCore=function(e){var t=null;return this.createArrayCoreHandler&&(t=this.createArrayCoreHandler(this.propertyHash,e)),!t&&(t=[],this.setPropertyValueCore(this.propertyHash,e,t)),t},e.prototype.ensureArray=function(e,t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!this.arraysInfo||!this.arraysInfo[e])return this.createNewArray(e,t,r)},e.prototype.createNewArray=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=this.createNewArrayCore(e);!this.arraysInfo&&(this.arraysInfo={}),this.arraysInfo[e]={onPush:t,isItemValues:!1};var o=this;return n.push=function(r){var i=Object.getPrototypeOf(n).push.call(n,r);if(!o.isDisposedValue){t&&t(r,n.length-1);var s=new tH(n.length-1,0,[r],[]);o.propertyValueChanged(e,n,n,s),o.notifyArrayChanged(n,s)}return i},n.shift=function(){var t=Object.getPrototypeOf(n).shift.call(n);if(!o.isDisposedValue&&t){r&&r(t);var i=new tH(n.length-1,1,[],[]);o.propertyValueChanged(e,n,n,i),o.notifyArrayChanged(n,i)}return t},n.unshift=function(r){var i=Object.getPrototypeOf(n).unshift.call(n,r);if(!o.isDisposedValue){t&&t(r,n.length-1);var s=new tH(0,0,[r],[]);o.propertyValueChanged(e,n,n,s),o.notifyArrayChanged(n,s)}return i},n.pop=function(){var t=Object.getPrototypeOf(n).pop.call(n);if(!o.isDisposedValue){r&&r(t);var i=new tH(n.length-1,1,[],[]);o.propertyValueChanged(e,n,n,i),o.notifyArrayChanged(n,i)}return t},n.splice=function(i,s){for(var a,l=[],u=2;u<arguments.length;u++)l[u-2]=arguments[u];!i&&(i=0),!s&&(s=0);var c=(a=Object.getPrototypeOf(n).splice).call.apply(a,tM([n,i,s],l));if(!l&&(l=[]),!o.isDisposedValue){if(r&&c)for(var p=0;p<c.length;p++)r(c[p]);if(t)for(var p=0;p<l.length;p++)t(l[p],i+p);var h=new tH(i,s,l,c);o.propertyValueChanged(e,n,n,h),o.notifyArrayChanged(n,h)}return c},n},e.prototype.getItemValueType=function(){},e.prototype.setArray=function(t,r,n,o,i){var s=[].concat(r);if(Object.getPrototypeOf(r).splice.call(r,0,r.length),n)for(var a=0;a<n.length;a++){var l=n[a];o&&e.createItemValue&&(l=e.createItemValue(l,this.getItemValueType())),Object.getPrototypeOf(r).push.call(r,l),i&&i(r[a])}var u=new tH(0,s.length,r,s);this.propertyValueChanged(t,s,r,u),this.notifyArrayChanged(r,u)},e.prototype.isTwoValueEquals=function(e,t,r,n){return void 0===r&&(r=!1),void 0===n&&(n=!1),eA.isTwoValueEquals(e,t,!1,!r,n)},e.copyObject=function(e,t){for(var r in t){var n=t[r];"object"==typeof n&&(n={},this.copyObject(n,t[r])),e[r]=n}},e.prototype.copyCssClasses=function(t,r){r&&("string"==typeof r||r instanceof String?t.root=r:e.copyObject(t,r))},e.prototype.getValueInLowCase=function(e){return e&&"string"==typeof e?e.toLowerCase():e},e.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),[]},Object.defineProperty(e.prototype,"animationAllowed",{get:function(){return this.getIsAnimationAllowed()},enumerable:!1,configurable:!0}),e.prototype.getIsAnimationAllowed=function(){return r9.animationEnabled&&this.animationAllowedLock>=0&&!this.isLoadingFromJson&&!this.isDisposed&&(!!this.onElementRerendered||!this.supportOnElementRerenderedEvent)},e.prototype.blockAnimations=function(){this.animationAllowedLock--},e.prototype.releaseAnimations=function(){this.animationAllowedLock++},e.prototype.enableOnElementRerenderedEvent=function(){this.onElementRerenderedEventEnabled=!0},e.prototype.disableOnElementRerenderedEvent=function(){var e;null===(e=this.onElementRerendered)||void 0===e||e.fire(this,{isCancel:!0}),this.onElementRerenderedEventEnabled=!1},Object.defineProperty(e.prototype,"onElementRerendered",{get:function(){return this.supportOnElementRerenderedEvent&&this.onElementRerenderedEventEnabled?this._onElementRerendered:void 0},enumerable:!1,configurable:!0}),e.prototype.afterRerender=function(){var e;null===(e=this.onElementRerendered)||void 0===e||e.fire(this,{isCancel:!1})},e.currentDependencis=void 0,e}(),tH=function(e,t,r,n){this.index=e,this.deleteCount=t,this.itemsToAdd=r,this.deletedItems=n},tz=function(){function e(){}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this.callbacks?this.callbacks.length:0},enumerable:!1,configurable:!0}),e.prototype.fireByCreatingOptions=function(e,t){if(this.callbacks){for(var r=0;r<this.callbacks.length;r++)if(this.callbacks[r](e,t()),!this.callbacks)return}},e.prototype.fire=function(e,t){if(this.callbacks){for(var r=[].concat(this.callbacks),n=0;n<r.length;n++)if(r[n](e,t),!this.callbacks)return}},e.prototype.clear=function(){this.callbacks=void 0},e.prototype.add=function(e){!this.hasFunc(e)&&(!this.callbacks&&(this.callbacks=[]),this.callbacks.push(e),this.fireCallbackChanged())},e.prototype.remove=function(e){if(this.hasFunc(e)){var t=this.callbacks.indexOf(e,0);this.callbacks.splice(t,1),this.fireCallbackChanged()}},e.prototype.hasFunc=function(e){return null!=this.callbacks&&this.callbacks.indexOf(e,0)>-1},e.prototype.fireCallbackChanged=function(){this.onCallbacksChanged&&this.onCallbacksChanged()},e}(),tW=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return tN(t,e),t}(tz);var tU=(u=function(e,t){return(u=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}u(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),tJ=function(){function e(e,t,r,n,o){var i=this;void 0===n&&(n=null),void 0===o&&(o=function(e){queueMicrotask?queueMicrotask(e):e()}),this.container=e,this.model=t,this.itemsSelector=r,this.dotsItemSize=n,this.delayedUpdateFunction=o,this.resizeObserver=void 0,this.isInitialized=!1,this.minDimensionConst=56,this.separatorSize=17,this.separatorAddConst=1,this.paddingSizeConst=8,this.dotsSizeConst=48,this.dotsIconClass=".sv-dots",this.iconClass=".sv-svg-icon",this.recalcMinDimensionConst=!0,this.getComputedStyle=function(e){return eD.getComputedStyle(e)},this.model.updateCallback=function(e){e&&(i.isInitialized=!1),setTimeout(function(){i.process()},1)},"undefined"!=typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(e){e_.requestAnimationFrame(function(){i.process()})}),this.resizeObserver.observe(this.container.parentElement))}return e.prototype.getDimensions=function(e){return{scroll:e.scrollWidth,offset:e.offsetWidth}},e.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetWidth;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)),t},e.prototype.calcItemSize=function(e){return e.offsetWidth||e.getBoundingClientRect().width},e.prototype.calcMinDimension=function(e,t){if(t&&(!e.iconSize||"auto"===e.iconSize)){var r,n=t.querySelector(this.iconClass);r=n&&this.calcItemSize(n)}else e.iconSize&&"number"==typeof e.iconSize&&this.recalcMinDimensionConst&&(r=e.iconSize);var o=r?r+2*this.paddingSizeConst:this.minDimensionConst;return e.canShrink?o+(e.needSeparator?this.separatorSize:0):e.maxDimension},e.prototype.calcItemsSizes=function(){var e=this;if(this.container&&!this.isInitialized){var t=this.model.actions;(this.container.querySelectorAll(this.itemsSelector)||[]).forEach(function(r,n){var o=t[n];o&&e.calcActionDimensions(o,r)})}},e.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcMinDimension(e,t)},Object.defineProperty(e.prototype,"isContainerVisible",{get:function(){return!!this.container&&rY(this.container)},enumerable:!1,configurable:!0}),e.prototype.process=function(){var e=this;if(this.isContainerVisible&&!this.model.isResponsivenessDisabled){!this.isInitialized&&this.model.setActionsMode("large");var t=function(){var t,r=e.dotsItemSize;if(!e.dotsItemSize){var n=null===(t=e.container)||void 0===t?void 0:t.querySelector(e.dotsIconClass);r=n&&e.calcItemSize(n)||e.dotsSizeConst}e.model.fit(e.getAvailableSpace(),r)};if(this.isInitialized)t();else{var r=function(){if(!!e.container)e.calcItemsSizes(),e.isInitialized=!0,t()};this.delayedUpdateFunction?this.delayedUpdateFunction(r):r()}}},e.prototype.dispose=function(){this.model.updateCallback=void 0,this.resizeObserver&&this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.container=void 0},e}(),tG=function(e){function t(t,r,n,o,i,s){void 0===i&&(i=40);var a=e.call(this,t,r,n,o,s)||this;return a.minDimensionConst=i,a.recalcMinDimensionConst=!1,a}return tU(t,e),t.prototype.getDimensions=function(){return{scroll:this.container.scrollHeight,offset:this.container.offsetHeight}},t.prototype.getAvailableSpace=function(){var e=this.getComputedStyle(this.container),t=this.container.offsetHeight;return"border-box"===e.boxSizing&&(t-=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom)),t},t.prototype.calcItemSize=function(e){return e.offsetHeight},t.prototype.calcActionDimensions=function(e,t){e.maxDimension=this.calcItemSize(t),e.minDimension=this.calcItemSize(t)},t}(tJ),t$=function(){function e(){this.classes=[]}return e.prototype.isEmpty=function(){return""===this.toString()},e.prototype.append=function(e,t){return void 0===t&&(t=!0),e&&t&&("string"==typeof e&&(e=e.trim()),this.classes.push(e)),this},e.prototype.toString=function(){return this.classes.join(" ")},e}();var tK=(c=function(e,t){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}c(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),tY=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},tX={root:"sv-action-bar",defaultSizeMode:"sv-action-bar--default-size-mode",smallSizeMode:"sv-action-bar--small-size-mode",item:"sv-action-bar-item",itemWithTitle:"",itemAsIcon:"sv-action-bar-item--icon",itemActive:"sv-action-bar-item--active",itemPressed:"sv-action-bar-item--pressed",itemIcon:"sv-action-bar-item__icon",itemTitle:"sv-action-bar-item__title",itemTitleWithIcon:"sv-action-bar-item__title--with-icon"},tZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sizeMode="default",t}return tK(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getRenderedActions=function(){return this.actions},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.actions.forEach(function(e){e.locTitle&&e.locTitle.strChanged(),e.locStrsChanged()})},t.prototype.raiseUpdate=function(e){this.isEmpty=!this.actions.some(function(e){return e.visible}),this.updateCallback&&this.updateCallback(e)},t.prototype.onSet=function(){var e=this;this.actions.forEach(function(t){e.setActionCssClasses(t)}),this.raiseUpdate(!0)},t.prototype.onPush=function(e){this.setActionCssClasses(e),e.owner=this,this.raiseUpdate(!0)},t.prototype.onRemove=function(e){e.owner=null,this.raiseUpdate(!0)},t.prototype.setActionCssClasses=function(e){e.cssClasses=this.cssClasses},Object.defineProperty(t.prototype,"hasActions",{get:function(){return(this.actions||[]).length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedActions",{get:function(){return this.getRenderedActions()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleActions",{get:function(){return this.actions.filter(function(e){return!1!==e.visible})},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){var e="small"===this.sizeMode?this.cssClasses.smallSizeMode:this.cssClasses.defaultSizeMode;return new t$().append(this.cssClasses.root+(e?" "+e:"")+(this.containerCss?" "+this.containerCss:"")).append(this.cssClasses.root+"--empty",this.isEmpty).toString()},t.prototype.getDefaultCssClasses=function(){return tX},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return!this.cssClassesValue&&(this.cssClassesValue=this.getDefaultCssClasses()),this.cssClassesValue},set:function(e){var t=this;this.cssClassesValue={},this.copyCssClasses(this.cssClassesValue,this.getDefaultCssClasses()),rZ(e,this.cssClasses),this.actions.forEach(function(e){t.setActionCssClasses(e)})},enumerable:!1,configurable:!0}),t.prototype.createAction=function(e){return e instanceof rs?e:new ra(e)},t.prototype.addAction=function(e,t){void 0===t&&(t=!0);var r=this.createAction(e);if(t&&!this.isActionVisible(r))return r;var n=[].concat(this.actions,r);return this.sortItems(n),this.actions=n,r},t.prototype.setItems=function(e,t){var r=this;void 0===t&&(t=!0);var n=[];e.forEach(function(e){(!t||r.isActionVisible(e))&&n.push(r.createAction(e))}),t&&this.sortItems(n),this.actions=n},t.prototype.sortItems=function(e){this.hasSetVisibleIndex(e)&&e.sort(this.compareByVisibleIndex)},t.prototype.hasSetVisibleIndex=function(e){for(var t=0;t<e.length;t++){var r=e[t].visibleIndex;if(void 0!==r&&r>=0)return!0}return!1},t.prototype.compareByVisibleIndex=function(e,t){return e.visibleIndex-t.visibleIndex},t.prototype.isActionVisible=function(e){return e.visibleIndex>=0||void 0===e.visibleIndex},t.prototype.popupAfterShowCallback=function(e){},t.prototype.mouseOverHandler=function(e){var t=this;e.isHovered=!0,this.actions.forEach(function(r){r===e&&e.popupModel&&(e.showPopupDelayed(t.subItemsShowDelay),t.popupAfterShowCallback(e))})},t.prototype.initResponsivityManager=function(e,t){},t.prototype.resetResponsivityManager=function(){},t.prototype.getActionById=function(e){for(var t=0;t<this.actions.length;t++)if(this.actions[t].id===e)return this.actions[t];return null},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetResponsivityManager(),this.actions.forEach(function(e){return e.dispose()}),this.actions.length=0},tY([eJ({onSet:function(e,t){t.onSet()},onPush:function(e,t,r){r.onPush(e)},onRemove:function(e,t,r){r.onRemove(e)}})],t.prototype,"actions",void 0),tY([eW({})],t.prototype,"containerCss",void 0),tY([eW({defaultValue:!1})],t.prototype,"isEmpty",void 0),tY([eW({defaultValue:300})],t.prototype,"subItemsShowDelay",void 0),tY([eW({defaultValue:300})],t.prototype,"subItemsHideDelay",void 0),t}(tQ),t0=function(){function e(){}return e.focusElement=function(e){e&&e.focus()},e.visibility=function(e){var t=eD.getComputedStyle(e);return"none"!==t.display&&"hidden"!==t.visibility&&(!e.parentElement||this.visibility(e.parentElement))},e.getNextElementPreorder=function(e){var t=e.nextElementSibling?e.nextElementSibling:e.parentElement.firstElementChild;return this.visibility(t)?t:this.getNextElementPreorder(t)},e.getNextElementPostorder=function(e){var t=e.previousElementSibling?e.previousElementSibling:e.parentElement.lastElementChild;return this.visibility(t)?t:this.getNextElementPostorder(t)},e.hasHorizontalScroller=function(e){return!!e&&e.scrollWidth>e.offsetWidth},e.hasVerticalScroller=function(e){return!!e&&e.scrollHeight>e.offsetHeight},e}();var t1=(p=function(e,t){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),t2=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},t5={root:"sv-list__container",item:"sv-list__item",searchClearButtonIcon:"sv-list__filter-clear-button",loadingIndicator:"sv-list__loading-indicator",itemSelected:"sv-list__item--selected",itemGroup:"sv-list__item--group",itemGroupSelected:"sv-list__item--group-selected",itemWithIcon:"sv-list__item--with-icon",itemDisabled:"sv-list__item--disabled",itemFocused:"sv-list__item--focused",itemHovered:"sv-list__item--hovered",itemTextWrap:"sv-list__item-text--wrap",itemIcon:"sv-list__item-icon",itemMarkerIcon:"sv-list-item__marker-icon",itemSeparator:"sv-list__item-separator",itemBody:"sv-list__item-body",itemsContainer:"sv-list",itemsContainerFiltering:"sv-list--filtering",filter:"sv-list__filter",filterIcon:"sv-list__filter-icon",filterInput:"sv-list__input",emptyContainer:"sv-list__empty-container",emptyText:"sv-list__empty-text"},t4=function(e){function t(t,r,n,o,i){var s=e.call(this)||this;return s.onSelectionChanged=r,s.allowSelection=n,s.elementId=i,s.onItemClick=function(e){if(!s.isItemDisabled(e)){s.isExpanded=!1,s.allowSelection&&(s.selectedItem=e),s.onSelectionChanged&&s.onSelectionChanged(e);var t=e.action;t&&t(e)}},s.onItemHover=function(e){s.mouseOverHandler(e)},s.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},s.isItemSelected=function(e){return s.areSameItems(s.selectedItem,e)},s.isItemFocused=function(e){return s.areSameItems(s.focusedItem,e)},s.getListClass=function(){return new t$().append(s.cssClasses.itemsContainer).append(s.cssClasses.itemsContainerFiltering,!!s.filterString&&s.visibleActions.length!==s.visibleItems.length).toString()},s.getItemClass=function(e){var t=s.isItemSelected(e);return new t$().append(s.cssClasses.item).append(s.cssClasses.itemWithIcon,!!e.iconName).append(s.cssClasses.itemDisabled,s.isItemDisabled(e)).append(s.cssClasses.itemFocused,s.isItemFocused(e)).append(s.cssClasses.itemSelected,!e.hasSubItems&&t).append(s.cssClasses.itemGroup,e.hasSubItems).append(s.cssClasses.itemGroupSelected,e.hasSubItems&&t).append(s.cssClasses.itemHovered,e.isHovered).append(s.cssClasses.itemTextWrap,s.textWrapEnabled).append(e.css).toString()},s.getItemStyle=function(e){return{"--sjs-list-item-level":(e.level||0)+1}},-1!==Object.keys(t).indexOf("items")?(Object.keys(t).forEach(function(e){switch(e){case"items":s.setItems(t.items);break;case"onFilterStringChangedCallback":s.setOnFilterStringChangedCallback(t.onFilterStringChangedCallback);break;case"onTextSearchCallback":s.setOnTextSearchCallback(t.onTextSearchCallback);break;default:s[e]=t[e]}}),s.updateActionsIds()):(s.setItems(t),s.selectedItem=o),s}return t1(t,e),t.prototype.hasText=function(e,t){if(!t)return!0;var r=e.title||"";if(this.onTextSearchCallback)return this.onTextSearchCallback(e,t);var n=r.toLocaleLowerCase();return(n=r9.comparator.normalizeTextCallback(n,"filter")).indexOf(t.toLocaleLowerCase())>-1},t.prototype.isItemVisible=function(e){return e.visible&&(!this.shouldProcessFilter||this.hasText(e,this.filterString))},t.prototype.getRenderedActions=function(){var t=e.prototype.getRenderedActions.call(this);if(this.filterString){var r=[];return t.forEach(function(e){r.push(e),e.items&&e.items.forEach(function(t){var n=new ra(t);!n.iconName&&(n.iconName=e.iconName),r.push(n)})}),r}return t},Object.defineProperty(t.prototype,"visibleItems",{get:function(){var e=this;return this.visibleActions.filter(function(t){return e.isItemVisible(t)})}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldProcessFilter",{get:function(){return!this.onFilterStringChangedCallback},enumerable:!1,configurable:!0}),t.prototype.onFilterStringChanged=function(e){this.onFilterStringChangedCallback&&this.onFilterStringChangedCallback(e),this.updateIsEmpty()},t.prototype.updateIsEmpty=function(){var e=this;this.isEmpty=0===this.renderedActions.filter(function(t){return e.isItemVisible(t)}).length},t.prototype.scrollToItem=function(e,t){var r=this;void 0===t&&(t=0),setTimeout(function(){if(r.listContainerHtmlElement){var n=r.listContainerHtmlElement.querySelector(r$(e));n&&setTimeout(function(){n.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},t)}},t)},t.prototype.setOnFilterStringChangedCallback=function(e){this.onFilterStringChangedCallback=e},t.prototype.setOnTextSearchCallback=function(e){this.onTextSearchCallback=e},t.prototype.setItems=function(t,r){void 0===r&&(r=!0),e.prototype.setItems.call(this,t,r),this.updateActionsIds(),!this.isAllDataLoaded&&this.actions.length&&this.actions.push(this.loadingIndicator)},t.prototype.updateActionsIds=function(){var e=this;this.elementId&&this.renderedActions.forEach(function(t){t.elementId=e.elementId+t.id})},t.prototype.setSearchEnabled=function(e){this.searchEnabled=e,this.showSearchClearButton=e},t.prototype.onSet=function(){this.showFilter=this.searchEnabled&&(this.forceShowFilter||(this.actions||[]).length>t.MINELEMENTCOUNT),e.prototype.onSet.call(this)},t.prototype.getDefaultCssClasses=function(){return t5},t.prototype.popupAfterShowCallback=function(e){this.addScrollEventListener(function(){e.hidePopup()})},t.prototype.onItemLeave=function(e){e.hidePopupDelayed(this.subItemsHideDelay)},t.prototype.areSameItems=function(e,t){return this.areSameItemsCallback?this.areSameItemsCallback(e,t):!!e&&!!t&&e.id==t.id},Object.defineProperty(t.prototype,"filterStringPlaceholder",{get:function(){return this.getLocalizationString("filterStringPlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyMessage",{get:function(){return this.isAllDataLoaded?this.getLocalizationString("emptyMessage"):this.loadingText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrollableContainer",{get:function(){return this.listContainerHtmlElement.querySelector(r$(this.cssClasses.itemsContainer))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingText",{get:function(){return this.getLocalizationString("loadingFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingIndicator",{get:function(){return!this.loadingIndicatorValue&&(this.loadingIndicatorValue=new ra({id:"loadingIndicator",title:this.loadingText,action:function(){},css:this.cssClasses.loadingIndicator})),this.loadingIndicatorValue},enumerable:!1,configurable:!0}),t.prototype.goToItems=function(e){if("ArrowDown"===e.key||40===e.keyCode){var t=e.target.parentElement.parentElement.querySelector("ul"),r=function(e){for(var t,r=0;r<e.children.length;r++)!t&&"none"!==getComputedStyle(e.children[r]).display&&(t=e.children[r]);return t}(t);t&&r&&(t0.focusElement(r),e.preventDefault())}},t.prototype.onMouseMove=function(e){this.resetFocusedItem()},t.prototype.onKeyDown=function(e){var t=e.target;"ArrowDown"===e.key||40===e.keyCode?(t0.focusElement(t0.getNextElementPreorder(t)),e.preventDefault()):("ArrowUp"===e.key||38===e.keyCode)&&(t0.focusElement(t0.getNextElementPostorder(t)),e.preventDefault())},t.prototype.onPointerDown=function(e,t){},t.prototype.refresh=function(){""!==this.filterString?this.filterString="":this.updateIsEmpty(),this.resetFocusedItem()},t.prototype.onClickSearchClearButton=function(e){e.currentTarget.parentElement.querySelector("input").focus(),this.refresh()},t.prototype.resetFocusedItem=function(){this.focusedItem=void 0},t.prototype.focusFirstVisibleItem=function(){this.focusedItem=this.visibleItems[0]},t.prototype.focusLastVisibleItem=function(){this.focusedItem=this.visibleItems[this.visibleItems.length-1]},t.prototype.initFocusedItem=function(){var e=this;this.focusedItem=this.visibleItems.filter(function(t){return t.visible&&e.isItemSelected(t)})[0],!this.focusedItem&&this.focusFirstVisibleItem()}
vendor: 24,252 bytes, line 1
1,t.prototype.focusNextVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),r=e[t+1];r?this.focusedItem=r:this.focusFirstVisibleItem()}else this.initFocusedItem()},t.prototype.focusPrevVisibleItem=function(){if(this.focusedItem){var e=this.visibleItems,t=e.indexOf(this.focusedItem),r=e[t-1];r?this.focusedItem=r:this.focusLastVisibleItem()}else this.initFocusedItem()},t.prototype.selectFocusedItem=function(){this.focusedItem&&this.onItemClick(this.focusedItem)},t.prototype.initListContainerHtmlElement=function(e){this.listContainerHtmlElement=e},t.prototype.onLastItemRended=function(e){!this.isAllDataLoaded&&e===this.actions[this.actions.length-1]&&this.listContainerHtmlElement&&(this.hasVerticalScroller=t0.hasVerticalScroller(this.scrollableContainer))},t.prototype.scrollToFocusedItem=function(){this.scrollToItem(this.cssClasses.itemFocused)},t.prototype.scrollToSelectedItem=function(){this.selectedItem&&this.selectedItem.items&&this.selectedItem.items.length>0?this.scrollToItem(this.cssClasses.itemGroupSelected,110):this.scrollToItem(this.cssClasses.itemSelected,110)},t.prototype.addScrollEventListener=function(e){e&&(this.removeScrollEventListener(),this.scrollHandler=e),this.scrollHandler&&this.scrollableContainer.addEventListener("scroll",this.scrollHandler)},t.prototype.removeScrollEventListener=function(){this.scrollHandler&&this.scrollableContainer.removeEventListener("scroll",this.scrollHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.loadingIndicatorValue&&this.loadingIndicatorValue.dispose(),this.listContainerHtmlElement=void 0},t.INDENT=16,t.MINELEMENTCOUNT=10,t2([eW({defaultValue:!0,onSet:function(e,t){t.onSet()}})],t.prototype,"searchEnabled",void 0),t2([eW({defaultValue:!1})],t.prototype,"showFilter",void 0),t2([eW({defaultValue:!1})],t.prototype,"forceShowFilter",void 0),t2([eW({defaultValue:!1})],t.prototype,"isExpanded",void 0),t2([eW({})],t.prototype,"selectedItem",void 0),t2([eW()],t.prototype,"focusedItem",void 0),t2([eW({onSet:function(e,t){t.onFilterStringChanged(t.filterString)}})],t.prototype,"filterString",void 0),t2([eW({defaultValue:!1})],t.prototype,"hasVerticalScroller",void 0),t2([eW({defaultValue:!0})],t.prototype,"isAllDataLoaded",void 0),t2([eW({defaultValue:!1})],t.prototype,"showSearchClearButton",void 0),t2([eW({defaultValue:!0})],t.prototype,"renderElements",void 0),t2([eW({defaultValue:!1})],t.prototype,"textWrapEnabled",void 0),t2([eW({defaultValue:"sv-list-item-content"})],t.prototype,"itemComponent",void 0),t}(tZ);var t8=(h=function(e,t){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),t3=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},t6=function(e){function t(t,r,n,o){var i=e.call(this)||this;if(i.focusFirstInputSelector="",i.onCancel=function(){},i.onApply=function(){return!0},i.onHide=function(){},i.onShow=function(){},i.onDispose=function(){},i.onVisibilityChanged=i.addEvent(),i.onFooterActionsCreated=i.addEvent(),i.onRecalculatePosition=i.addEvent(),i.contentComponentName=t,i.contentComponentData=r,n&&"string"==typeof n)i.verticalPosition=n,i.horizontalPosition=o;else if(n)for(var s in n)i[s]=n[s];return i}return t8(t,e),t.prototype.refreshInnerModel=function(){var e=this.contentComponentData.model;e&&e.refresh&&e.refresh()},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.getPropertyValue("isVisible",!1)},set:function(e){if(this.isVisible!==e)this.setPropertyValue("isVisible",e),this.onVisibilityChanged.fire(this,{model:this,isVisible:e})},enumerable:!1,configurable:!0}),t.prototype.toggleVisibility=function(){this.isVisible=!this.isVisible},t.prototype.show=function(){!this.isVisible&&(this.isVisible=!0)},t.prototype.hide=function(){this.isVisible&&(this.isVisible=!1)},t.prototype.recalculatePosition=function(e){this.onRecalculatePosition.fire(this,{isResetHeight:e})},t.prototype.updateFooterActions=function(e){var t={actions:e};return this.onFooterActionsCreated.fire(this,t),t.actions},t.prototype.updateDisplayMode=function(e){switch(this.displayMode!==e&&(this.setWidthByTarget="dropdown"===e),e){case"dropdown":this.displayMode="popup";break;case"popup":this.displayMode="overlay",this.overlayDisplayMode="tablet-dropdown-overlay";break;case"overlay":this.displayMode="overlay",this.overlayDisplayMode="dropdown-overlay"}},t.prototype.onHiding=function(){this.refreshInnerModel(),this.onHide()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.onDispose()},t3([eW()],t.prototype,"contentComponentName",void 0),t3([eW()],t.prototype,"contentComponentData",void 0),t3([eW({defaultValue:"bottom"})],t.prototype,"verticalPosition",void 0),t3([eW({defaultValue:"left"})],t.prototype,"horizontalPosition",void 0),t3([eW({defaultValue:!0})],t.prototype,"showPointer",void 0),t3([eW({defaultValue:!1})],t.prototype,"isModal",void 0),t3([eW({defaultValue:!0})],t.prototype,"canShrink",void 0),t3([eW({defaultValue:!0})],t.prototype,"isFocusedContent",void 0),t3([eW({defaultValue:!0})],t.prototype,"isFocusedContainer",void 0),t3([eW({defaultValue:""})],t.prototype,"cssClass",void 0),t3([eW({defaultValue:""})],t.prototype,"title",void 0),t3([eW({defaultValue:"auto"})],t.prototype,"overlayDisplayMode",void 0),t3([eW({defaultValue:"popup"})],t.prototype,"displayMode",void 0),t3([eW({defaultValue:"flex"})],t.prototype,"positionMode",void 0),t}(tQ);function t7(e,t,r,n,o,i,s,a,l){return void 0===o&&(o=function(){}),void 0===i&&(i=function(){}),void 0===l&&(l="popup"),te.warn("The `showModal()` and `createDialogOptions()` methods are obsolete. Use the `showDialog()` method instead."),{componentName:e,data:t,onApply:r,onCancel:n,onHide:o,onShow:i,cssClass:s,title:a,displayMode:l}}var t9=(d=function(e,t){return(d=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}d(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),re=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},rt=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};function rr(e,t,r){return t.locOwner=r,rn(e,t,t)}function rn(e,t,r){var n,o=t.onSelectionChanged;t.onSelectionChanged=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];s.hasTitle&&(s.title=e.title),o&&o(e,t)};var i=ro(t,r);i.getTargetCallback=ri;var s=new ra(Object.assign({},e,{component:"sv-action-bar-item-dropdown",popupModel:i,action:function(t,r){e.action&&e.action(),i.isFocusedContent=i.isFocusedContent||!r,i.show()}}));return s.data=null===(n=i.contentComponentData)||void 0===n?void 0:n.model,s}function ro(e,t){var r=new t4(e);r.onSelectionChanged=function(t){e.onSelectionChanged&&e.onSelectionChanged(t),o.hide()};var n=t||{};n.onDispose=function(){r.dispose()};var o=new t6("sv-list",{model:r},n);return o.isFocusedContent=r.showFilter,o.onShow=function(){n.onShow&&n.onShow(),r.scrollToSelectedItem()},o}function ri(e){return null==e?void 0:e.previousElementSibling}var rs=function(e){function t(){var r=null!==e&&e.apply(this,arguments)||this;return r.rendredIdValue=t.getNextRendredId(),r}return t9(t,e),t.getNextRendredId=function(){return t.renderedId++},Object.defineProperty(t.prototype,"renderedId",{get:function(){return this.rendredIdValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},set:function(e){e!==this.owner&&(this.ownerValue=e,this.locStrsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getVisible()},set:function(e){this.setVisible(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.getEnabled()},set:function(e){this.setEnabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.getComponent()},set:function(e){this.setComponent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocTitle()},set:function(e){this.setLocTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getTitle()},set:function(e){this.setTitle(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.cssClassesValue||tX},set:function(e){this.cssClassesValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.visible&&"popup"!==this.mode&&"removed"!==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0!==this.enabled&&!this.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShrink",{get:function(){return!this.disableShrink&&!!this.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return("small"!=this.mode&&(this.showTitle||void 0===this.showTitle)||!this.iconName)&&!!this.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSubItems",{get:function(){return!!this.items&&this.items.length>0},enumerable:!1,configurable:!0}),t.prototype.getActionBarItemTitleCss=function(){return new t$().append(this.cssClasses.itemTitle).append(this.cssClasses.itemTitleWithIcon,!!this.iconName).toString()},t.prototype.getActionBarItemCss=function(){return new t$().append(this.cssClasses.item).append(this.cssClasses.itemWithTitle,this.hasTitle).append(this.cssClasses.itemAsIcon,!this.hasTitle).append(this.cssClasses.itemActive,!!this.active).append(this.cssClasses.itemPressed,!!this.pressed).append(this.innerCss).toString()},t.prototype.getActionRootCss=function(){return new t$().append("sv-action").append(this.css).append("sv-action--space",this.needSpace).append("sv-action--hidden",!this.isVisible).toString()},t.prototype.getTooltip=function(){return this.tooltip||this.title},t.prototype.getIsTrusted=function(e){return e.originalEvent?e.originalEvent.isTrusted:e.isTrusted},t.prototype.showPopup=function(){this.popupModel&&this.popupModel.show()},t.prototype.hidePopup=function(){this.popupModel&&this.popupModel.hide()},t.prototype.clearPopupTimeouts=function(){this.showPopupTimeout&&clearTimeout(this.showPopupTimeout),this.hidePopupTimeout&&clearTimeout(this.hidePopupTimeout)},t.prototype.showPopupDelayed=function(e){var t=this;this.clearPopupTimeouts(),this.showPopupTimeout=setTimeout(function(){t.clearPopupTimeouts(),t.showPopup()},e)},t.prototype.hidePopupDelayed=function(e){var t,r=this;(null===(t=this.popupModel)||void 0===t?void 0:t.isVisible)?(this.clearPopupTimeouts(),this.hidePopupTimeout=setTimeout(function(){r.clearPopupTimeouts(),r.hidePopup(),r.isHovered=!1},e)):(this.clearPopupTimeouts(),this.isHovered=!1)},t.renderedId=1,re([eW()],t.prototype,"tooltip",void 0),re([eW()],t.prototype,"showTitle",void 0),re([eW()],t.prototype,"innerCss",void 0),re([eW()],t.prototype,"active",void 0),re([eW()],t.prototype,"pressed",void 0),re([eW()],t.prototype,"data",void 0),re([eW()],t.prototype,"popupModel",void 0),re([eW()],t.prototype,"needSeparator",void 0),re([eW()],t.prototype,"template",void 0),re([eW({defaultValue:"large"})],t.prototype,"mode",void 0),re([eW()],t.prototype,"visibleIndex",void 0),re([eW()],t.prototype,"disableTabStop",void 0),re([eW()],t.prototype,"disableShrink",void 0),re([eW()],t.prototype,"disableHide",void 0),re([eW({defaultValue:!1})],t.prototype,"needSpace",void 0),re([eW()],t.prototype,"ariaChecked",void 0),re([eW()],t.prototype,"ariaExpanded",void 0),re([eW({defaultValue:"button"})],t.prototype,"ariaRole",void 0),re([eW()],t.prototype,"iconName",void 0),re([eW({defaultValue:24})],t.prototype,"iconSize",void 0),re([eW()],t.prototype,"markerIconName",void 0),re([eW()],t.prototype,"css",void 0),re([eW({defaultValue:!1})],t.prototype,"isPressed",void 0),re([eW({defaultValue:!1})],t.prototype,"isHovered",void 0),t}(tQ),ra=function(e){function t(r){var n=e.call(this)||this;n.locTitleChanged=function(){var e=n.locTitle.renderedHtml;n.setPropertyValue("_title",e||void 0)};var o=r instanceof t?r.innerItem:r;if(n.innerItem=o,n.locTitle=o?o.locTitle:null,o)for(var i in o)"locTitle"!==i&&("title"!==i||!n.locTitle||!n.title)&&(n[i]=o[i]);return n.locTitleName&&n.locTitleChanged(),n.registerFunctionOnPropertyValueChanged("_title",function(){n.raiseUpdate(!0)}),n.locStrChangedInPopupModel(),n}return t9(t,e),t.prototype.raiseUpdate=function(e){void 0===e&&(e=!1),this.updateCallback&&this.updateCallback(e)},t.prototype.createLocTitle=function(){return this.createLocalizableString("title",this,!0)},t.prototype.setSubItems=function(e){this.markerIconName="icon-next_16x16",this.component="sv-list-item-group",this.items=rt([],e.items);var t=Object.assign({},e);t.searchEnabled=!1;var r=ro(t,{horizontalPosition:"right",showPointer:!1,canShrink:!1});r.cssClass="sv-popup-inner",this.popupModel=r},t.prototype.getLocTitle=function(){return this.locTitleValue},t.prototype.setLocTitle=function(e){!e&&!this.locTitleValue&&(e=this.createLocTitle()),this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleValue=e,this.locTitleValue.onStringChanged.add(this.locTitleChanged),this.locTitleChanged()},t.prototype.getTitle=function(){return this._title},t.prototype.setTitle=function(e){this._title=e},Object.defineProperty(t.prototype,"locTitleName",{get:function(){return this.locTitle.localizationName},set:function(e){this.locTitle.localizationName=e},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTooltipChanged(),this.locStrChangedInPopupModel()},t.prototype.doAction=function(e){var t=e.originalEvent?e.originalEvent:e;return this.action(this,t.isTrusted),t.preventDefault(),t.stopPropagation(),!0},t.prototype.doMouseDown=function(e){this.isMouseDown=!0},t.prototype.doFocus=function(e){if(this.onFocus){var t=e.originalEvent?e.originalEvent:e;this.onFocus(this.isMouseDown,t)}this.isMouseDown=!1},t.prototype.locStrChangedInPopupModel=function(){if(this.popupModel&&this.popupModel.contentComponentData&&this.popupModel.contentComponentData.model){var e=this.popupModel.contentComponentData.model;Array.isArray(e.actions)&&e.actions.forEach(function(e){e.locStrsChanged&&e.locStrsChanged()})}},t.prototype.locTooltipChanged=function(){this.locTooltipName&&(this.tooltip=eM(this.locTooltipName,this.locTitle.locale))},t.prototype.getLocale=function(){return this.owner?this.owner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.owner?this.owner.getMarkdownHtml(e,t):void 0},t.prototype.getProcessedText=function(e){return this.owner?this.owner.getProcessedText(e):e},t.prototype.getRenderer=function(e){return this.owner?this.owner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.owner?this.owner.getRendererContext(e):e},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getVisible=function(){return this._visible},t.prototype.setEnabled=function(e){this._enabled=e},t.prototype.getEnabled=function(){return this.enabledIf?this.enabledIf():this._enabled},t.prototype.setComponent=function(e){this._component=e},t.prototype.getComponent=function(){return this._component},t.prototype.dispose=function(){this.updateCallback=void 0,this.locTitleValue&&this.locTitleValue.onStringChanged.remove(this.locTitleChanged),this.locTitleChanged=void 0,this.action=void 0,e.prototype.dispose.call(this),this.popupModel&&this.popupModel.dispose()},re([eW()],t.prototype,"id",void 0),re([eW({defaultValue:!0,onSet:function(e,t){t.raiseUpdate()}})],t.prototype,"_visible",void 0),re([eW({onSet:function(e,t){t.locTooltipChanged()}})],t.prototype,"locTooltipName",void 0),re([eW()],t.prototype,"_enabled",void 0),re([eW()],t.prototype,"action",void 0),re([eW()],t.prototype,"onFocus",void 0),re([eW()],t.prototype,"_component",void 0),re([eW()],t.prototype,"items",void 0),re([eW({onSet:function(e,t){t.locTitleValue.text!==e&&(t.locTitleValue.text=e)}})],t.prototype,"_title",void 0),t}(rs),rl=function(){function e(e){this.item=e,this.funcKey="sv-dropdown-action",this.setupPopupCallbacks()}return e.prototype.setupPopupCallbacks=function(){var e=this,t=this.popupModel=this.item.popupModel;t&&t.registerPropertyChangedHandlers(["isVisible"],function(){t.isVisible?e.item.pressed=!0:e.item.pressed=!1},this.funcKey)},e.prototype.removePopupCallbacks=function(){this.popupModel&&this.popupModel.unregisterPropertyChangedHandlers(["isVisible"],this.funcKey)},e.prototype.dispose=function(){this.removePopupCallbacks()},e}();var ru=(f=function(e,t){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}f(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),rc=function(e){function t(){var r=e.call(this)||this;return r.minVisibleItemsCount=0,r.isResponsivenessDisabled=!1,r.dotsItem=rn({id:"dotsItem-id"+t.ContainerID++,css:"sv-dots",innerCss:"sv-dots__item",iconName:"icon-more",visible:!1,tooltip:eM("more")},{items:[],allowSelection:!1}),r}return ru(t,e),t.prototype.hideItemsGreaterN=function(e){var t=this.getActionsToHide();e=Math.max(e,this.minVisibleItemsCount-(this.visibleActions.length-t.length));var r=[];t.forEach(function(t){e<=0&&(t.removePriority?t.mode="removed":(t.mode="popup",r.push(t.innerItem))),e--}),this.hiddenItemsListModel.setItems(r)},t.prototype.getActionsToHide=function(){return this.visibleActions.filter(function(e){return!e.disableHide}).sort(function(e,t){return e.removePriority||0-t.removePriority||0})},t.prototype.getVisibleItemsCount=function(e){this.visibleActions.filter(function(e){return e.disableHide}).forEach(function(t){return e-=t.minDimension});for(var t=this.getActionsToHide().map(function(e){return e.minDimension}),r=0,n=0;n<t.length&&!((r+=t[n])>e);n++);return n},t.prototype.updateItemMode=function(e,t){for(var r=this.visibleActions,n=r.length-1;n>=0;n--)t>e&&!r[n].disableShrink?(t-=r[n].maxDimension-r[n].minDimension,r[n].mode="small"):r[n].mode="large";if(t>e){var o=this.visibleActions.filter(function(e){return e.removePriority});o.sort(function(e,t){return e.removePriority-t.removePriority});for(var n=0;n<o.length;n++)t>e&&(t-=r[n].disableShrink?o[n].maxDimension:o[n].minDimension,o[n].mode="removed")}},Object.defineProperty(t.prototype,"hiddenItemsListModel",{get:function(){return this.dotsItem.data},enumerable:!1,configurable:!0}),t.prototype.onSet=function(){var t=this;this.actions.forEach(function(e){return e.updateCallback=function(e){return t.raiseUpdate(e)}}),e.prototype.onSet.call(this)},t.prototype.onPush=function(t){var r=this;t.updateCallback=function(e){return r.raiseUpdate(e)},e.prototype.onPush.call(this,t)},t.prototype.getRenderedActions=function(){return 1===this.actions.length&&this.actions[0].iconName?this.actions:this.actions.concat([this.dotsItem])},t.prototype.raiseUpdate=function(t){!this.isResponsivenessDisabled&&e.prototype.raiseUpdate.call(this,t)},t.prototype.fit=function(e,t){if(!(e<=0)){this.dotsItem.visible=!1;var r=0,n=0;this.visibleActions.forEach(function(e){r+=e.minDimension,n+=e.maxDimension}),e>=n?this.setActionsMode("large"):e<r?(this.setActionsMode("small"),this.hideItemsGreaterN(this.getVisibleItemsCount(e-t)),this.dotsItem.visible=!!this.hiddenItemsListModel.actions.length):this.updateItemMode(e,n)}},t.prototype.initResponsivityManager=function(e,t){if(this.responsivityManager){if(this.responsivityManager.container==e)return;this.responsivityManager.dispose()}this.responsivityManager=new tJ(e,this,":scope > .sv-action:not(.sv-dots) > .sv-action__content",null,t)},t.prototype.resetResponsivityManager=function(){this.responsivityManager&&(this.responsivityManager.dispose(),this.responsivityManager=void 0)},t.prototype.setActionsMode=function(e){this.actions.forEach(function(t){"small"==e&&t.disableShrink?t.mode="large":t.mode=e})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dotsItem.data.dispose(),this.dotsItem.dispose(),this.resetResponsivityManager()},t.ContainerID=1,t}(tZ);!function(){function e(e,t){var r=this;void 0===t&&(t=!1),this.func=e,this.isMultiple=t,this._isCompleted=!1,this.execute=function(){!r._isCompleted&&(r.func(),r._isCompleted=!r.isMultiple)}}e.prototype.discard=function(){this._isCompleted=!0},Object.defineProperty(e.prototype,"isCompleted",{get:function(){return this._isCompleted},enumerable:!1,configurable:!0})}(),!function(){function e(t){void 0===t&&(t=100),this.interval=t,setTimeout(e.Instance().tick,t)}e.Instance=function(){return!e.instance&&(e.instance=new e),e.instance},e.prototype.tick=function(){try{for(var t=[],r=0;r<e.tasks.length;r++){var n=e.tasks[r];n.execute(),n.isCompleted?"function"==typeof n.dispose&&n.dispose():t.push(n)}e.tasks=t}finally{setTimeout(e.Instance().tick,this.interval)}},e.schedule=function(t){e.tasks.push(t)},e.instance=void 0,e.tasks=[]}();var rp=(g=function(e,t){return(g=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),rh=function(){function e(){this.cancelQueue=[]}return e.prototype.getMsFromRule=function(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))},e.prototype.reflow=function(e){return e.offsetHeight},e.prototype.getAnimationsCount=function(e){var t="";return getComputedStyle&&(t=getComputedStyle(e).animationName),t&&"none"!=t?t.split(", ").length:0},e.prototype.getAnimationDuration=function(e){for(var t=getComputedStyle(e),r=t.animationDelay.split(", "),n=t.animationDuration.split(", "),o=0,i=0;i<Math.max(n.length,r.length);i++)o=Math.max(o,this.getMsFromRule(n[i%n.length])+this.getMsFromRule(r[i%r.length]));return o},e.prototype.addCancelCallback=function(e){this.cancelQueue.push(e)},e.prototype.removeCancelCallback=function(e){this.cancelQueue.indexOf(e)>=0&&this.cancelQueue.splice(this.cancelQueue.indexOf(e),1)},e.prototype.onAnimationEnd=function(e,t,r){var n,o=this,i=this.getAnimationsCount(e),s=function(r){void 0===r&&(r=!0),t(r),clearTimeout(n),o.removeCancelCallback(s),e.removeEventListener("animationend",a)},a=function(e){e.target==e.currentTarget&&--i<=0&&s(!1)};i>0?(e.addEventListener("animationend",a),this.addCancelCallback(s),n=setTimeout(function(){s(!1)},this.getAnimationDuration(e)+10)):t(!0)},e.prototype.afterAnimationRun=function(e,t){e&&t&&t.onAfterRunAnimation&&t.onAfterRunAnimation(e)},e.prototype.beforeAnimationRun=function(e,t){e&&t&&t.onBeforeRunAnimation&&t.onBeforeRunAnimation(e)}
1,e.prototype.getCssClasses=function(e){return e.cssClass.replace(/\s+$/,"").split(/\s+/)},e.prototype.runAnimation=function(e,t,r){e&&(null==t?void 0:t.cssClass)?(this.reflow(e),this.getCssClasses(t).forEach(function(t){e.classList.add(t)}),this.onAnimationEnd(e,r,t)):r(!0)},e.prototype.clearHtmlElement=function(e,t){e&&t.cssClass&&this.getCssClasses(t).forEach(function(t){e.classList.remove(t)}),this.afterAnimationRun(e,t)},e.prototype.onNextRender=function(e,t){var r=this;if(void 0===t&&(t=!1),!t&&e_.isAvailable()){var n=function(){e(!0),cancelAnimationFrame(o)},o=e_.requestAnimationFrame(function(){o=e_.requestAnimationFrame(function(){e(!1),r.removeCancelCallback(n)})});this.addCancelCallback(n)}else e(!0)},e.prototype.cancel=function(){[].concat(this.cancelQueue).forEach(function(e){return e()}),this.cancelQueue=[]},e}(),rd=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rp(t,e),t.prototype.onEnter=function(e){var t=this,r=e.getAnimatedElement(),n=e.getEnterOptions?e.getEnterOptions():{};this.beforeAnimationRun(r,n),this.runAnimation(r,n,function(){t.clearHtmlElement(r,n)})},t.prototype.onLeave=function(e,t){var r=this,n=e.getAnimatedElement(),o=e.getLeaveOptions?e.getLeaveOptions():{};this.beforeAnimationRun(n,o),this.runAnimation(n,o,function(e){t(),r.onNextRender(function(){r.clearHtmlElement(n,o)},e)})},t}(rh),rf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return rp(t,e),t.prototype.runGroupAnimation=function(e,t,r,n,o){var i=this,s={isAddingRunning:t.length>0,isDeletingRunning:r.length>0,isReorderingRunning:n.length>0},a=t.map(function(t){return e.getAnimatedElement(t)}),l=t.map(function(t){return e.getEnterOptions?e.getEnterOptions(t,s):{}}),u=r.map(function(t){return e.getAnimatedElement(t)}),c=r.map(function(t){return e.getLeaveOptions?e.getLeaveOptions(t,s):{}}),p=n.map(function(t){return e.getAnimatedElement(t.item)}),h=n.map(function(t){return e.getReorderOptions?e.getReorderOptions(t.item,t.movedForward,s):{}});t.forEach(function(e,t){i.beforeAnimationRun(a[t],l[t])}),r.forEach(function(e,t){i.beforeAnimationRun(u[t],c[t])}),n.forEach(function(e,t){i.beforeAnimationRun(p[t],h[t])});var d=t.length+r.length+p.length,f=function(e){--d<=0&&(o&&o(),i.onNextRender(function(){t.forEach(function(e,t){i.clearHtmlElement(a[t],l[t])}),r.forEach(function(e,t){i.clearHtmlElement(u[t],c[t])}),n.forEach(function(e,t){i.clearHtmlElement(p[t],h[t])})},e))};t.forEach(function(e,t){i.runAnimation(a[t],l[t],f)}),r.forEach(function(e,t){i.runAnimation(u[t],c[t],f)}),n.forEach(function(e,t){i.runAnimation(p[t],h[t],f)})},t}(rh),rg=function(){function e(e,t,r){var n=this;this.animationOptions=e,this.update=t,this.getCurrentValue=r,this._debouncedSync=function(e){var t,r=this,n=!1,o=!1;return{run:function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];o=!1,t=i,!n&&(n=!0,queueMicrotask(function(){!o&&e.apply(r,t),o=!1,n=!1}))},cancel:function(){o=!0}}}(function(e){n.cancelAnimations();try{n._sync(e)}catch(t){n.update(e)}})}return e.prototype.onNextRender=function(e,t){var r=this,n=this.animationOptions.getRerenderEvent();if(n){var o=function(){n.remove(i),r.cancelCallback=void 0},i=function(r,n){n.isCancel?t&&t():e(),o()};this.cancelCallback=function(){t&&t(),o()},n.add(i)}else if(e_.isAvailable()){var s=e_.requestAnimationFrame(function(){e(),r.cancelCallback=void 0});this.cancelCallback=function(){t&&t(),cancelAnimationFrame(s),r.cancelCallback=void 0}}else throw Error("Can't get next render")},e.prototype.sync=function(e){this.animationOptions.isAnimationEnabled()?this._debouncedSync.run(e):(this.cancel(),this.update(e))},e.prototype.cancel=function(){this._debouncedSync.cancel(),this.cancelAnimations()},e.prototype.cancelAnimations=function(){this.cancelCallback&&this.cancelCallback(),this.animation.cancel()},e}(),rm=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new rd,t}return rp(t,e),t.prototype._sync=function(e){var t=this;e!==this.getCurrentValue()?e?(this.onNextRender(function(){t.animation.onEnter(t.animationOptions)}),this.update(e)):this.animation.onLeave(this.animationOptions,function(){t.update(e)}):this.update(e)},t}(rg),ry=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.animation=new rf,t}return rp(t,e),t.prototype._sync=function(e){var t,r,n=this;e=[].concat(e);var o=[].concat(this.getCurrentValue()),i=null===(t=this.animationOptions.allowSyncRemovalAddition)||void 0===t||t,s=function(e,t,r){var n=new Map,o=new Map,i=new Map,s=new Map;e.forEach(function(e){var t=r(e);if(n.has(t))throw Error("keys must be unique");n.set(r(e),e)}),t.forEach(function(e){var t=r(e);if(o.has(t))throw Error("keys must be unique");o.set(t,e)});var a=[],l=[];o.forEach(function(e,t){n.has(t)?i.set(t,i.size):a.push(e)}
1),n.forEach(function(e,t){o.has(t)?s.set(t,s.size):l.push(e)});var u=[];i.forEach(function(e,t){var r=s.get(t),n=o.get(t);r!==e&&u.push({item:n,movedForward:r<e})});var c=Array(e.length),p=0,h=Array.from(i.keys());e.forEach(function(e,t){i.has(r(e))?(c[t]=o.get(h[p]),p++):c[t]=e});var d=new Map,f=[];c.forEach(function(e){var t=r(e);o.has(t)?f.length>0&&(d.set(t,f),f=[]):f.push(e)});var g=[];return o.forEach(function(e,t){d.has(t)&&d.get(t).forEach(function(e){g.push(e)}),g.push(e)}),f.forEach(function(e){g.push(e)}),{reorderedItems:u,deletedItems:l,addedItems:a,mergedItems:g}}(o,e,null!==(r=this.animationOptions.getKey)&&void 0!==r?r:function(e){return e});!i&&(s.reorderedItems.length>0||s.addedItems.length>0)&&(s.deletedItems=[],s.mergedItems=e),this.animationOptions.onCompareArrays&&this.animationOptions.onCompareArrays(s);var a=s.addedItems,l=s.reorderedItems,u=s.deletedItems,c=s.mergedItems,p=function(){n.animation.runGroupAnimation(n.animationOptions,a,u,l,function(){u.length>0&&n.update(e)})};[a,u,l].some(function(e){return e.length>0})?u.length<=0||l.length>0||a.length>0?(this.onNextRender(p,function(){n.update(e)}),this.update(c)):p():this.update(e)},t}(rg),rb=function(e){function t(t,r,n,o){var i=e.call(this,t,r,n)||this;return i.mergeValues=o,i.animation=new rf,i}return rp(t,e),t.prototype._sync=function(e){var t=this,r=[].concat(this.getCurrentValue());if(r[0]!==e[0]){var n=this.mergeValues?this.mergeValues(e,r):[].concat(r,e);this.onNextRender(function(){t.animation.runGroupAnimation(t.animationOptions,e,r,[],function(){t.update(e)})},function(){return t.update(e)}),this.update(n,!0)}else this.update(e)},t}(rg);var rv=(m=function(e,t){return(m=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}m(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),rC=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},rx=function(e){function t(){var t=e.call(this)||this;return t.createLocTitleProperty(),t}return rv(t,e),t.prototype.createLocTitleProperty=function(){return this.createLocalizableString("title",this,!0)},Object.defineProperty(t.prototype,"isPage",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.getLocalizableStringText("title",this.getDefaultTitleValue())},set:function(e){this.setTitleValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.getLocalizableString("title")},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){},t.prototype.setTitleValue=function(e){this.setLocalizableStringText("title",e)},t.prototype.updateDescriptionVisibility=function(e){var t=!1;if(this.isDesignMode){var r=e6.findProperty(this.getType(),"description");t=!!(null==r?void 0:r.placeholder)}this.hasDescription=!!e||t&&this.isDesignMode},Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.getLocalizableString("description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTagName",{get:function(){var e=this.getDefaultTitleTagName(),t=this.getSurvey();return t?t.getElementTitleTagName(this,e):e},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleTagName=function(){return r9.titleTags[this.getType()]},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.title.length>0}
vendor: 18,454 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return this.hasTitleActions},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return null},t.prototype.getTitleOwner=function(){},Object.defineProperty(t.prototype,"isTitleOwner",{get:function(){return!!this.getTitleOwner()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTitleRenderedAsString",{get:function(){return this.getIsTitleRenderedAsString()},enumerable:!1,configurable:!0}),t.prototype.toggleState=function(){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitle",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaLabel",{get:function(){return this.ariaLabel},enumerable:!1,configurable:!0}),t.prototype.getIsTitleRenderedAsString=function(){return!this.isTitleOwner},rC([eW({})],t.prototype,"hasDescription",void 0),rC([eW({localizable:!0,onSet:function(e,t){t.updateDescriptionVisibility(e)}})],t.prototype,"description",void 0),t}(tQ);(y=eT||(eT={}))[y.InsideEmptyPanel=1]="InsideEmptyPanel",y[y.MultilineRight=2]="MultilineRight",y[y.MultilineLeft=3]="MultilineLeft",y[y.Top=4]="Top",y[y.Right=5]="Right",y[y.Bottom=6]="Bottom",y[y.Left=7]="Left";var rw=function(e){function t(r){var n=e.call(this)||this;return n.selectedElementInDesignValue=n,n.disableDesignActions=t.CreateDisabledDesignElements,n.parentQuestionValue=null,n.isContentElement=!1,n.isEditableTemplateElement=!1,n.isInteractiveDesignElement=!0,n.isSingleInRow=!0,n._renderedIsExpanded=!0,n._isAnimatingCollapseExpand=!1,n.animationCollapsed=new rm(n.getExpandCollapseAnimationOptions(),function(e){n._renderedIsExpanded=e,n.animationAllowed&&(e?n.isAnimatingCollapseExpand=!0:n.updateElementCss(!1))},function(){return n.renderedIsExpanded}),n.onAfterRenderElement=n.addEvent(),n.name=r,n.createNewArray("errors"),n.createNewArray("titleActions"),n.registerPropertyChangedHandlers(["isReadOnly"],function(){n.onReadOnlyChanged()}),n.registerPropertyChangedHandlers(["errors"],function(){n.updateVisibleErrors()}),n.registerPropertyChangedHandlers(["isSingleInRow"],function(){n.updateElementCss(!1)}),n.registerPropertyChangedHandlers(["minWidth","maxWidth","renderWidth","allowRootStyle","parent"],function(){n.updateRootStyle()}),n}return rv(t,e),t.getProgressInfoByElements=function(e,t){for(var r=tQ.createProgressInfo(),n=0;n<e.length;n++)if(e[n].isVisible){var o=e[n].getProgressInfo();r.questionCount+=o.questionCount,r.answeredQuestionCount+=o.answeredQuestionCount,r.requiredQuestionCount+=o.requiredQuestionCount,r.requiredAnsweredQuestionCount+=o.requiredAnsweredQuestionCount}return t&&r.questionCount>0&&(0==r.requiredQuestionCount&&(r.requiredQuestionCount=1),r.answeredQuestionCount>0&&(r.requiredAnsweredQuestionCount=1)),r},t.IsNeedScrollIntoView=function(e,t,r){var n=r?-1:e.getBoundingClientRect().top,o=n<0,i=-1;if(!o&&t&&(o=(i=e.getBoundingClientRect().left)<0),!o&&e_.isAvailable()){var s=e_.getInnerHeight();if(!(o=s>0&&s<n)&&t){var a=e_.getInnerWidth();o=a>0&&a<i}}return o},t.ScrollIntoView=function(e,t,r){if(e.scrollIntoView(t),"function"==typeof r){var n=null,o=0,i=function(){var t=e.getBoundingClientRect().top;if(t===n){if(o++>2){r();return}}else n=t,o=0;requestAnimationFrame(i)};e_.requestAnimationFrame(i)}},t.ScrollElementToTop=function(e,r,n,o){var i=r9.environment.root;if(!e||void 0===i)return!1;var s=i.getElementById(e);return t.ScrollElementToViewCore(s,!1,r,n,o)},t.ScrollElementToViewCore=function(e,r,n,o,i){if(!e||!e.scrollIntoView)return i&&i(),!1;var s=t.IsNeedScrollIntoView(e,r,n);return s?t.ScrollIntoView(e,o,i):i&&i(),s},t.GetFirstNonTextElement=function(e,t){if(void 0===t&&(t=!1),!e||!e.length||0==e.length)return null;if(t){var r=e[0];"#text"===r.nodeName&&(r.data=""),"#text"===(r=e[e.length-1]).nodeName&&(r.data="")}for(var n=0;n<e.length;n++)if("#text"!=e[n].nodeName&&"#comment"!=e[n].nodeName)return e[n];return null},t.FocusElement=function(e,r,n){if(!e||!eD.isAvailable())return!1;var o=!r&&t.focusElementCore(e,n);return!o&&setTimeout(function(){t.focusElementCore(e,n)},r?100:10),o},t.focusElementCore=function(e,r){var n=r9.environment.root;if(!n&&!r)return!1;var o=r?r.querySelector("#"+CSS.escape(e)):n.getElementById(e);return!!o&&!o.disabled&&"none"!==o.style.display&&null!==o.offsetParent&&(t.ScrollElementToViewCore(o,!0,!1),o.focus(),!0)},Object.defineProperty(t.prototype,"colSpan",{get:function(){return this.getPropertyValue("colSpan",1)},set:function(e){this.setPropertyValue("colSpan",e)},enumerable:!1,configurable:!0}),t.prototype.onPropertyValueChanged=function(t,r,n){e.prototype.onPropertyValueChanged.call(this,t,r,n),"state"===t&&(this.updateElementCss(!1),this.notifyStateChanged(r),this.stateChangedCallback&&this.stateChangedCallback())},t.prototype.getSkeletonComponentNameCore=function(){return this.survey?this.survey.getSkeletonComponentName(this):""},Object.defineProperty(t.prototype,"parentQuestion",{get:function(){return this.parentQuestionValue},enumerable:!1,configurable:!0}),t.prototype.setParentQuestion=function(e){this.parentQuestionValue=e,this.onParentQuestionChanged()},t.prototype.onParentQuestionChanged=function(){},t.prototype.updateElementVisibility=function(){this.setPropertyValue("isVisible",this.isVisible)},Object.defineProperty(t.prototype,"skeletonComponentName",{get:function(){return this.getSkeletonComponentNameCore()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state")},set:function(e){this.setPropertyValue("state",e),this.renderedIsExpanded=!("collapsed"===this.state&&!this.isDesignMode)},enumerable:!1,configurable:!0}),t.prototype.notifyStateChanged=function(e){this.survey&&this.survey.elementContentVisibilityChanged(this)},Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return"collapsed"===this.state&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isExpanded",{get:function(){return"expanded"===this.state},enumerable:!1,configurable:!0}),t.prototype.collapse=function(){!this.isDesignMode&&(this.state="collapsed")},t.prototype.expand=function(){this.state="expanded"},t.prototype.toggleState=function(){return this.isCollapsed?(this.expand(),!0):!this.isExpanded||(this.collapse(),!1)},Object.defineProperty(t.prototype,"hasStateButton",{get:function(){return this.isExpanded||this.isCollapsed},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.title||this.name},enumerable:!1,configurable:!0}),t.prototype.getTitleToolbar=function(){return!this.titleToolbarValue&&(this.titleToolbarValue=this.createActionContainer(!0),this.titleToolbarValue.locOwner=this,this.titleToolbarValue.containerCss=(this.isPanel?this.cssClasses.panel.titleBar:this.cssClasses.titleBar)||"sv-action-title-bar",this.titleToolbarValue.setItems(this.getTitleActions())),this.titleToolbarValue},t.prototype.createActionContainer=function(e){var t=e?new rc:new tZ;return this.survey&&this.survey.getCss().actionBar&&(t.cssClasses=this.survey.getCss().actionBar),t},Object.defineProperty(t.prototype,"titleActions",{get:function(){return this.getPropertyValue("titleActions")},enumerable:!1,configurable:!0}),t.prototype.getTitleActions=function(){return!this.isTitleActionRequested&&(this.updateTitleActions(),this.isTitleActionRequested=!0),this.titleActions},t.prototype.getDefaultTitleActions=function(){return[]},t.prototype.updateTitleActions=function(){var e=this.getDefaultTitleActions();this.survey&&(e=this.survey.getUpdatedElementTitleActions(this,e)),this.setPropertyValue("titleActions",e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.titleToolbarValue&&this.titleToolbarValue.locStrsChanged()},Object.defineProperty(t.prototype,"hasTitleActions",{get:function(){return this.getTitleActions().length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleEvents",{get:function(){return void 0!==this.state&&"default"!==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleTabIndex",{get:function(){return this.isPage||"default"===this.state?void 0:0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaExpanded",{get:function(){if(!this.isPage&&"default"!==this.state)return"expanded"===this.state?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleAriaRole",{get:function(){if(!this.isPage&&"default"!==this.state)return"button"},enumerable:!1,configurable:!0}),t.prototype.setSurveyImpl=function(e,t){this.surveyImplValue=e,this.surveyImplValue?(this.surveyDataValue=this.surveyImplValue.getSurveyData(),this.setSurveyCore(this.surveyImplValue.getSurvey()),this.textProcessorValue=this.surveyImplValue.getTextProcessor(),this.onSetData()):(this.setSurveyCore(null),this.surveyDataValue=null),this.survey&&(this.updateDescriptionVisibility(this.description),this.clearCssClasses())},t.prototype.canRunConditions=function(){return e.prototype.canRunConditions.call(this)&&!!this.data},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getDataFilteredProperties=function(){var e=this.data?this.data.getFilteredProperties():{};return e.question=this,e},Object.defineProperty(t.prototype,"surveyImpl",{get:function(){return this.surveyImplValue},enumerable:!1,configurable:!0}),t.prototype.__setData=function(e){r9.supportCreatorV2&&(this.surveyDataValue=e)},Object.defineProperty(t.prototype,"data",{get:function(){return this.surveyDataValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return(void 0===e&&(e=!1),this.surveyValue)?this.surveyValue:(this.surveyImplValue&&this.setSurveyCore(this.surveyImplValue.getSurvey()),this.surveyValue)},t.prototype.setSurveyCore=function(e){this.surveyValue=e,this.surveyChangedCallback&&this.surveyChangedCallback()},Object.defineProperty(t.prototype,"skeletonHeight",{get:function(){var e=void 0;return this.survey&&this.survey.skeletonHeight&&(e=this.survey.skeletonHeight+"px"),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInternal",{get:function(){return this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return!!this.survey&&this.survey.areInvisibleElementsShowing&&!this.isContentElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return this.readOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.getPropertyValue("readOnly")},set:function(e){this.readOnly!=e&&(this.setPropertyValue("readOnly",e),!this.isLoadingFromJson&&this.setPropertyValue("isReadOnly",this.isReadOnly))},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.readOnlyChangedCallback&&this.readOnlyChangedCallback()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey?this.survey.getCss():{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClassesValue",{get:function(){var e=this.getPropertyValueWithoutDefault("cssClassesValue");return!e&&!this.isCssValueCalculating&&(this.isCssValueCalculating=!0,e=this.createCssClassesValue(),this.isCssValueCalculating=!1),e},enumerable:!1,configurable:!0}),t.prototype.ensureCssClassesValue=function(){!this.cssClassesValue&&this.createCssClassesValue()},t.prototype.createCssClassesValue=function(){var e=this.calcCssClasses(this.css);return this.setPropertyValue("cssClassesValue",e),this.onCalcCssClasses(e),this.updateElementCssCore(this.cssClassesValue),e},t.prototype.onCalcCssClasses=function(e){},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return(this.cssClassesValue,this.survey)?(this.ensureCssClassesValue(),this.cssClassesValue):this.calcCssClasses(this.css)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){var e=this.cssClasses;return e.number?e.number:e.panel?e.panel.number:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){var e=this.cssClasses;return e.requiredText||e.panel&&e.panel.requiredText},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return"default"===this.state?null:this.cssClasses.titleExpandableSvg},t.prototype.calcCssClasses=function(e){},t.prototype.updateElementCssCore=function(e){},Object.defineProperty(t.prototype,"cssError",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.clearCssClasses()},t.prototype.clearCssClasses=function(){this.resetPropertyValue("cssClassesValue")},t.prototype.getIsLoadingFromJson=function(){return!!e.prototype.getIsLoadingFromJson.call(this)||!!this.surveyValue&&this.surveyValue.isLoadingFromJson},Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){var t=this.name;this.setPropertyValue("name",this.getValidName(e)),!this.isLoadingFromJson&&t&&this.onNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.getValidName=function(e){return e},t.prototype.onNameChanged=function(e){},t.prototype.updateBindingValue=function(e,t){this.data&&!this.isTwoValueEquals(t,this.data.getValue(e))&&this.data.setValue(e,t,!1)},Object.defineProperty(t.prototype,"errors",{get:function(){return this.getPropertyValue("errors")},set:function(e){this.setPropertyValue("errors",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisibleErrors=function(){for(var e=0,t=0;t<this.errors.length;t++)this.errors[t].visible&&e++;this.hasVisibleErrors=e>0},Object.defineProperty(t.prototype,"containsErrors",{get:function(){return this.getPropertyValue("containsErrors",!1)},enumerable:!1,configurable:!0}),t.prototype.updateContainsErrors=function(){this.setPropertyValue("containsErrors",this.getContainsErrors())},t.prototype.getContainsErrors=function(){return this.errors.length>0},Object.defineProperty(t.prototype,"selectedElementInDesign",{get:function(){return this.selectedElementInDesignValue},set:function(e){this.selectedElementInDesignValue=e},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidgets=function(){},t.prototype.onSurveyLoad=function(){},Object.defineProperty(t.prototype,"wasRendered",{get:function(){return!!this.wasRenderedValue},enumerable:!1,configurable:!0}),t.prototype.onFirstRendering=function(){!this.wasRendered&&(this.wasRenderedValue=!0,this.onFirstRenderingCore())},t.prototype.onFirstRenderingCore=function(){this.ensureCssClassesValue()},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.survey&&this.onSurveyLoad(),this.updateDescriptionVisibility(this.description)},t.prototype.setVisibleIndex=function(e){return 0},t.prototype.delete=function(e){},t.prototype.getLocale=function(){return this.survey?this.survey.getLocale():this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.survey?this.survey.getSurveyMarkdownHtml(this,e,t):this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.survey&&"function"==typeof this.survey.getRendererForString?this.survey.getRendererForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRenderer?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.survey&&"function"==typeof this.survey.getRendererContextForString?this.survey.getRendererContextForString(this,e):this.locOwner&&"function"==typeof this.locOwner.getRendererContext?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.isLoadingFromJson?e:this.textProcessor?this.textProcessor.processText(e,this.getUseDisplayValuesInDynamicTexts()):this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getUseDisplayValuesInDynamicTexts=function(){return!0},t.prototype.removeSelfFromList=function(e){if(e&&Array.isArray(e)){var t=e.indexOf(this);t>-1&&e.splice(t,1)}},Object.defineProperty(t.prototype,"textProcessor",{get:function(){return this.textProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getProcessedHtml=function(e){return e&&this.textProcessor?this.textProcessor.processText(e,!0):e},t.prototype.onSetData=function(){},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),t.prototype.getPage=function(e){for(;e&&e.parent;)e=e.parent;return e&&e.isPage?e:null},t.prototype.moveToBase=function(e,t,r){if(void 0===r&&(r=null),!t)return!1;e.removeElement(this);var n=-1;return eA.isNumber(r)&&(n=parseInt(r)),-1==n&&r&&r.getType&&(n=t.indexOf(r)),t.addElement(this,n),!0},t.prototype.setPage=function(e,t){var r=this.getPage(e);this.prevSurvey=this.survey,"string"==typeof t&&this.getSurvey().pages.forEach(function(e){t===e.name&&(t=e)}),r!==t&&(e&&e.removeElement(this),t&&t.addElement(this,-1),this.prevSurvey=void 0)},t.prototype.getSearchableLocKeys=function(e){e.push("title"),e.push("description")},Object.defineProperty(t.prototype,"isDefaultV2Theme",{get:function(){return this.survey&&-1!==this.survey.getCss().root.indexOf("sd-root-modern")}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasParent",{get:function(){return this.parent&&!this.parent.isPage||void 0===this.parent},enumerable:!1,configurable:!0}),t.prototype.shouldAddRunnerStyles=function(){return!this.isDesignMode&&this.isDefaultV2Theme},Object.defineProperty(t.prototype,"isCompact",{get:function(){return this.survey&&this.survey.isCompact},enumerable:!1,configurable:!0}),t.prototype.canHaveFrameStyles=function(){return void 0!==this.parent&&(!this.hasParent||this.parent&&this.parent.showPanelAsPage)},t.prototype.getHasFrameV2=function(){return this.shouldAddRunnerStyles()&&this.canHaveFrameStyles()},t.prototype.getIsNested=function(){return this.shouldAddRunnerStyles()&&!this.canHaveFrameStyles()},t.prototype.getCssRoot=function(e){var t=!!this.isCollapsed||!!this.isExpanded;return new t$().append(e.withFrame,this.getHasFrameV2()&&!this.isCompact).append(e.compact,this.isCompact&&this.getHasFrameV2()).append(e.collapsed,!!this.isCollapsed).append(e.expandableAnimating,t&&this.isAnimatingCollapseExpand).append(e.expanded,!!this.isExpanded&&this.renderedIsExpanded).append(e.expandable,t).append(e.nested,this.getIsNested()).toString()},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width","")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){return this.getPropertyValue("maxWidth")},set:function(e){this.setPropertyValue("maxWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderWidth",{get:function(){return this.getPropertyValue("renderWidth","")},set:function(e){this.setPropertyValue("renderWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indent",{get:function(){return this.getPropertyValue("indent")},set:function(e){this.setPropertyValue("indent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rightIndent",{get:function(){return this.getPropertyValue("rightIndent",0)},set:function(e){this.setPropertyValue("rightIndent",e)},enumerable:!1,configurable:!0}),t.prototype.getRootStyle=function(){var e={};return this.paddingLeft&&(e["--sv-element-add-padding-left"]=this.paddingLeft),this.paddingRight&&(e["--sv-element-add-padding-right"]=this.paddingRight),e},Object.defineProperty(t.prototype,"paddingLeft",{get:function(){var e=this;return this.getPropertyValue("paddingLeft",void 0,function(){return e.calcPaddingLeft()})},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return""},Object.defineProperty(t.prototype,"paddingRight",{get:function(){var e=this;return this.getPropertyValue("paddingRight",void 0,function(){return e.calcPaddingRight()})},set:function(e){this.setPropertyValue("paddingRight",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingRight=function(){return""},t.prototype.resetIndents=function(){this.resetPropertyValue("paddingLeft"),this.resetPropertyValue("paddingRight")},t.prototype.updateRootStyle=function(){var e,t={};if(this.parent&&(e=this.parent.getColumsForElement(this).reduce(function(e,t){return t.effectiveWidth+e},0))&&100!==e&&(t.flexGrow=1,t.flexShrink=0,t.flexBasis=e+"%",t.minWidth=void 0,t.maxWidth=this.maxWidth),0==Object.keys(t).length){var r=""+this.minWidth;if(r&&"auto"!=r){if(-1!=r.indexOf("px")&&this.survey){var n=parseFloat(r=r.replace("px",""));!isNaN(n)&&(r=""+(r=n*this.survey.widthScale/100)+"px")}r="min(100%, "+r+")"}this.allowRootStyle&&this.renderWidth&&(t.flexGrow=1,t.flexShrink=1,t.flexBasis=this.renderWidth,t.minWidth=r,t.maxWidth=this.maxWidth)}this.rootStyle=t},t.prototype.isContainsSelection=function(e){var t=void 0,r=eD.getDocument();if(eD.isAvailable()&&r&&r.selection)t=r.selection.createRange().parentElement();else{var n=e_.getSelection();if(n&&n.rangeCount>0){var o=n.getRangeAt(0);o.startOffset!==o.endOffset&&(t=o.startContainer.parentNode)}}return t==e},Object.defineProperty(t.prototype,"clickTitleFunction",{get:function(){var e=this;if(this.needClickTitleFunction())return function(t){if(!(t&&e.isContainsSelection(t.target)))return e.processTitleClick()}}
vendor: 19,362 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype.needClickTitleFunction=function(){return"default"!==this.state},t.prototype.processTitleClick=function(){"default"!==this.state&&this.toggleState()},Object.defineProperty(t.prototype,"hasAdditionalTitleToolbar",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"additionalTitleToolbar",{get:function(){return this.getAdditionalTitleToolbar()},enumerable:!1,configurable:!0}),t.prototype.getAdditionalTitleToolbar=function(){return null},t.prototype.getCssTitle=function(e){if(!e)return"";var t="default"!==this.state;return new t$().append(e.title).append(e.titleNumInline,(this.no||"").length>4||t).append(e.titleExpandable,t).append(e.titleExpanded,this.isExpanded).append(e.titleCollapsed,this.isCollapsed).append(e.titleDisabled,this.isDisabledStyle).append(e.titleReadOnly,this.isReadOnly).append(e.titleOnError,this.containsErrors).toString()},Object.defineProperty(t.prototype,"isDisabledStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyStyle",{get:function(){return this.getIsDisableAndReadOnlyStyles(!1)[0]},enumerable:!1,configurable:!0}),t.prototype.getIsDisableAndReadOnlyStyles=function(e){var t=this.isPreviewStyle,r=e||this.isReadOnly,n=!this.isDefaultV2Theme&&(r||t);return[r&&!t,n]},Object.defineProperty(t.prototype,"isPreviewStyle",{get:function(){return!!this.survey&&"preview"===this.survey.state},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.updateDescriptionVisibility(this.description),this.errors.length>0&&this.errors.forEach(function(e){e.updateText()})},t.prototype.setWrapperElement=function(e){this.wrapperElement=e},t.prototype.getWrapperElement=function(){return this.wrapperElement},Object.defineProperty(t.prototype,"isAnimatingCollapseExpand",{get:function(){return this._isAnimatingCollapseExpand||this._renderedIsExpanded!=this.isExpanded},set:function(e){e!==this._isAnimatingCollapseExpand&&(this._isAnimatingCollapseExpand=e,this.updateElementCss(!1))},enumerable:!1,configurable:!0}),t.prototype.onElementExpanded=function(e){},t.prototype.getExpandCollapseAnimationOptions=function(){var e=this,t=function(t){e.isAnimatingCollapseExpand=!0,r5(t)},r=function(t){e.isAnimatingCollapseExpand=!1,r4(t)};return{getRerenderEvent:function(){return e.onElementRerendered},getEnterOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentEnter,onBeforeRunAnimation:t,onAfterRunAnimation:function(t){r(t),e.onElementExpanded(!0)}}},getLeaveOptions:function(){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).contentLeave,onBeforeRunAnimation:t,onAfterRunAnimation:r}},getAnimatedElement:function(){var t,r=e.isPanel?e.cssClasses.panel:e.cssClasses;if(r.content){var n=r$(r.content);if(n)return null===(t=e.getWrapperElement())||void 0===t?void 0:t.querySelector(":scope "+n)}},isAnimationEnabled:function(){return e.isExpandCollapseAnimationEnabled}}},Object.defineProperty(t.prototype,"isExpandCollapseAnimationEnabled",{get:function(){return this.animationAllowed&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedIsExpanded",{get:function(){return!!this._renderedIsExpanded},set:function(e){var t=this._renderedIsExpanded;this.animationCollapsed.sync(e),!this.isExpandCollapseAnimationEnabled&&!t&&this.renderedIsExpanded&&this.onElementExpanded(!1)},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){return e.prototype.getIsAnimationAllowed.call(this)&&!!this.survey&&!this.survey.isEndLoadingFromJson},t.prototype.afterRenderCore=function(e){this.onAfterRenderElement.fire(this,{htmlElement:e})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.titleToolbarValue&&this.titleToolbarValue.dispose()},t.CreateDisabledDesignElements=!1,rC([eW({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),rC([eW({defaultValue:!1})],t.prototype,"isDragMe",void 0),rC([eW({onSet:function(e,t){t.colSpan=e}})],t.prototype,"effectiveColSpan",void 0),rC([eW({defaultValue:!1})],t.prototype,"hasVisibleErrors",void 0),rC([eW({defaultValue:!0})],t.prototype,"isSingleInRow",void 0),rC([eW({defaultValue:!0})],t.prototype,"allowRootStyle",void 0),rC([eW()],t.prototype,"rootStyle",void 0),rC([eW()],t.prototype,"_renderedIsExpanded",void 0),t}(rx),rP=function(){function e(e,t,r){var n=this;void 0===r&&(r=100),this._elements=e,this._renderedHandler=t,this._elementsToRenderCount=0,this._elementsToRenderTimer=void 0,this._elementRenderedHandler=function(e,t){var r;null===(r=e.onAfterRenderElement)||void 0===r||r.remove(n._elementRenderedHandler),n._elementsToRenderCount--,n._elementsToRenderCount<=0&&n.visibleElementsRendered()},this._elements.forEach(function(e){e.onAfterRenderElement&&(e.onAfterRenderElement.add(n._elementRenderedHandler),n._elementsToRenderCount++)}),this._elementsToRenderCount>0?this._elementsToRenderTimer=setTimeout(function(){n._elementsToRenderCount>0&&n.visibleElementsRendered()},r):this.visibleElementsRendered()}return e.prototype.stopWaitingForElementsRendering=function(){var e=this;this._elementsToRenderTimer&&(clearTimeout(this._elementsToRenderTimer),this._elementsToRenderTimer=void 0),this._elements.forEach(function(t){var r;null===(r=t.onAfterRenderElement)||void 0===r||r.remove(e._elementRenderedHandler)}),this._elementsToRenderCount=0},e.prototype.visibleElementsRendered=function(){var e=this._renderedHandler;this.dispose(),"function"==typeof e&&e()},e.prototype.dispose=function(){this.stopWaitingForElementsRendering(),this._elements=void 0,this._renderedHandler=void 0},e}(),rV=function(){function e(e,t,r,n){void 0===t&&(t=!1),this.owner=e,this.useMarkdown=t,this.name=r,this.values={},this.htmlValues={},this.onStringChanged=new tW,this._localizationName=n,this.onCreating()}return Object.defineProperty(e,"defaultLocale",{get:function(){return r9.localization.defaultLocaleName},set:function(e){r9.localization.defaultLocaleName=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"localizationName",{get:function(){return this._localizationName},set:function(e){this._localizationName!=e&&(this._localizationName=e,this.strChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allowLineBreaks",{get:function(){var e;return void 0===this._allowLineBreaks&&(this._allowLineBreaks=!1,this.name&&this.owner instanceof rx&&(this._allowLineBreaks=(null===(e=e6.findProperty(this.owner.getType(),this.name))||void 0===e?void 0:e.type)=="text")),this._allowLineBreaks},enumerable:!1,configurable:!0}),e.prototype.getIsMultiple=function(){return!1},Object.defineProperty(e.prototype,"locale",{get:function(){if(this.owner&&this.owner.getLocale){var e=this.owner.getLocale();if(e||!this.sharedData)return e}return this.sharedData?this.sharedData.locale:""},enumerable:!1,configurable:!0}),e.prototype.strChanged=function(){this.searchableText=void 0,(void 0!==this.renderedText||!this.isEmpty||this.onGetTextCallback||this.localizationName)&&(this.calculatedTextValue=this.calcText(),this.renderedText!==this.calculatedTextValue&&(this.renderedText=void 0,this.calculatedTextValue=void 0),this.htmlValues={},this.onChanged(),this.onStringChanged.fire(this,{}))},Object.defineProperty(e.prototype,"text",{get:function(){return this.pureText},set:function(e){this.setLocaleText(this.locale,e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"calculatedText",{get:function(){return this.renderedText=void 0!==this.calculatedTextValue?this.calculatedTextValue:this.calcText(),this.calculatedTextValue=void 0,this.renderedText},enumerable:!1,configurable:!0}),e.prototype.calcText=function(){var e=this.pureText,t=e;return t&&this.owner&&this.owner.getProcessedText&&t.indexOf("{")>-1&&(t=this.owner.getProcessedText(t)),this.onGetTextCallback&&(t=this.onGetTextCallback(t,e)),t},Object.defineProperty(e.prototype,"pureText",{get:function(){var e=this.locale;!e&&(e=this.defaultLoc);var t=this.getValue(e);if(this.isValueEmpty(t)&&e===this.defaultLoc&&(t=this.getValue(eN.defaultLocale)),this.isValueEmpty(t)){var r=this.getRootDialect(e);r&&(t=this.getValue(r))}return this.isValueEmpty(t)&&e!==this.defaultLoc&&(t=this.getValue(this.defaultLoc)),this.isValueEmpty(t)&&this.getLocalizationName()&&(t=this.getLocalizationStr(),this.onGetLocalizationTextCallback&&(t=this.onGetLocalizationTextCallback(t))),!t&&(t=this.defaultValue||""),t},enumerable:!1,configurable:!0}),e.prototype.getRootDialect=function(e){if(!e)return e;var t=e.indexOf("-");return t>-1?e.substring(0,t):""},e.prototype.getLocalizationName=function(){return this.sharedData?this.sharedData.localizationName:this.localizationName},e.prototype.getLocalizationStr=function(){var e=this.getLocalizationName();return e?eM(e,this.locale):""},Object.defineProperty(e.prototype,"hasHtml",{get:function(){return this.hasHtmlValue()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"html",{get:function(){return this.hasHtml?this.getHtmlValue():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textOrHtml",{get:function(){return this.hasHtml?this.getHtmlValue():this.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderedHtml",{get:function(){return this.textOrHtml},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getLocaleTextCore(e);return t||""},e.prototype.getLocaleTextCore=function(e){return!e&&(e=this.defaultLoc),this.getValue(e)},e.prototype.isLocaleTextEqualsWithDefault=function(e,t){var r=this.getLocaleTextCore(e);return r===t||this.isValueEmpty(r)&&this.isValueEmpty(t)},e.prototype.clear=function(){this.setJson(void 0)},e.prototype.clearLocale=function(e){this.setLocaleText(e,void 0)},e.prototype.setLocaleText=function(e,t){if((e=this.getValueLoc(e))&&void 0===t){var r=this.getValue(e);void 0!==r&&(this.deleteValue(e),this.fireStrChanged(e,r));return}if(!this.storeDefaultText&&this.isLocaleTextEqualsWithDefault(e,t)){if(!this.isValueEmpty(t)||e&&e!==this.defaultLoc)return;var n=eN.defaultLocale,o=this.getValue(n);n&&!this.isValueEmpty(o)&&(this.setValue(n,t),this.fireStrChanged(n,o));return}if(r9.localization.storeDuplicatedTranslations||this.isValueEmpty(t)||!e||e==this.defaultLoc||this.getValue(e)||t!=this.getLocaleText(this.defaultLoc)){var i=this.curLocale;!e&&(e=this.defaultLoc);var s=this.onStrChanged&&e===i?this.pureText:void 0;delete this.htmlValues[e],this.isValueEmpty(t)?this.deleteValue(e):"string"==typeof t&&(this.canRemoveLocValue(e,t)?this.setLocaleText(e,null):(this.setValue(e,t),e==this.defaultLoc&&this.deleteValuesEqualsToDefault(t))),this.fireStrChanged(e,s)}},e.prototype.isValueEmpty=function(e){return null==e||!this.localizationName&&""===e},Object.defineProperty(e.prototype,"curLocale",{get:function(){return this.locale?this.locale:this.defaultLoc},enumerable:!1,configurable:!0}),e.prototype.canRemoveLocValue=function(e,t){if(r9.localization.storeDuplicatedTranslations||e===this.defaultLoc)return!1;var r=this.getRootDialect(e);if(!r)return t==this.getLocaleText(this.defaultLoc);var n=this.getLocaleText(r);return n?n==t:this.canRemoveLocValue(r,t)},e.prototype.fireStrChanged=function(e,t){if(this.strChanged(),this.onStrChanged){var r=this.pureText;(e!==this.curLocale||t!==r)&&this.onStrChanged(t,r)}},e.prototype.hasNonDefaultText=function(){var e=this.getValuesKeys();return 0!=e.length&&(e.length>1||e[0]!=this.defaultLoc)},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){if(this.sharedData)return this.sharedData.getJson();var e=this.getValuesKeys();if(0==e.length){if(this.serializeCallBackText){var t=this.calcText();if(t)return t}return null}if(1==e.length&&e[0]==r9.localization.defaultLocaleName&&!r9.serialization.localizableStringSerializeAsObject)return this.values[e[0]];var r={};for(var n in this.values)r[n]=this.values[n];return r},e.prototype.setJson=function(e,t){if(this.sharedData){this.sharedData.setJson(e,t);return}if(this.values={},this.htmlValues={},null!=e){if(t)"string"==typeof e?this.values[r9.defaultLocaleName]=e:(this.values=e,delete this.values.pos);else{if("string"==typeof e)this.setLocaleText(null,e);else for(var r in e)this.setLocaleText(r,e[r]);this.strChanged()}}},Object.defineProperty(e.prototype,"renderAs",{get:function(){return this.owner&&"function"==typeof this.owner.getRenderer&&this.owner.getRenderer(this.name)||e.defaultRenderer},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"renderAsData",{get:function(){return this.owner&&"function"==typeof this.owner.getRendererContext&&this.owner.getRendererContext(this)||this},enumerable:!1,configurable:!0}),e.prototype.equals=function(e){return this.sharedData?this.sharedData.equals(e):!!e&&!!e.values&&eA.isTwoValueEquals(this.values,e.values,!1,!0,!1)},e.prototype.setFindText=function(e){if(this.searchText!=e){if(this.searchText=e,!this.searchableText){var t=this.textOrHtml;this.searchableText=t?t.toLowerCase():""}var r=this.searchableText,n=r&&e?r.indexOf(e):void 0;return n<0&&(n=void 0),(void 0!=n||this.searchIndex!=n)&&(this.searchIndex=n,this.onSearchChanged&&this.onSearchChanged()),void 0!=this.searchIndex}},e.prototype.onChanged=function(){},e.prototype.onCreating=function(){},e.prototype.hasHtmlValue=function(){if(!this.owner||!this.useMarkdown)return!1;var e=this.locale;if(!e&&(e=this.defaultLoc),void 0!==this.htmlValues[e])return!!this.htmlValues[e];var t=this.calculatedText;if(!t||this.getLocalizationName()&&t===this.getLocalizationStr())return this.setHtmlValue(e,""),!1;var r=this.owner.getMarkdownHtml(t,this.name);return this.setHtmlValue(e,r),!!r},e.prototype.setHtmlValue=function(e,t){this.htmlValues[e]=t},e.prototype.getHtmlValue=function(){var e=this.locale;return!e&&(e=this.defaultLoc),this.htmlValues[e]},e.prototype.deleteValuesEqualsToDefault=function(e){if(!r9.localization.storeDuplicatedTranslations){for(var t=this.getValuesKeys(),r=0;r<t.length;r++)t[r]!=this.defaultLoc&&this.getValue(t[r])==e&&this.deleteValue(t[r])}},e.prototype.getValue=function(e){return this.sharedData?this.sharedData.getValue(e):this.values[this.getValueLoc(e)]},e.prototype.setValue=function(e,t){this.sharedData?this.sharedData.setValue(e,t):this.values[this.getValueLoc(e)]=t},e.prototype.deleteValue=function(e){this.sharedData?this.sharedData.deleteValue(e):delete this.values[this.getValueLoc(e)]},e.prototype.getValueLoc=function(e){return this.disableLocalization?r9.localization.defaultLocaleName:e},e.prototype.getValuesKeys=function(){return this.sharedData?this.sharedData.getValuesKeys():Object.keys(this.values)},Object.defineProperty(e.prototype,"defaultLoc",{get:function(){return r9.localization.defaultLocaleName},enumerable:!1,configurable:!0}),e.SerializeAsObject=!1,e.defaultRenderer="sv-string-viewer",e.editableRenderer="sv-string-editor",e}(),rj=function(){function e(e){this.owner=e,this.values={}}return e.prototype.getIsMultiple=function(){return!0},Object.defineProperty(e.prototype,"locale",{get:function(){return this.owner&&this.owner.getLocale?this.owner.getLocale():""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue("")},set:function(e){this.setValue("",e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return Array.isArray(this.value)?this.value.join("\n"):""},set:function(e){this.value=e?e.split("\n"):[]},enumerable:!1,configurable:!0}),e.prototype.getLocaleText=function(e){var t=this.getValueCore(e,!e||e===this.locale);return t&&Array.isArray(t)&&0!=t.length?t.join("\n"):""},e.prototype.setLocaleText=function(e,t){var r=t?t.split("\n"):null;this.setValue(e,r)},e.prototype.getValue=function(e){return this.getValueCore(e)},e.prototype.getValueCore=function(e,t){if(void 0===t&&(t=!0),e=this.getLocale(e),this.values[e])return this.values[e];if(t){var r=r9.localization.defaultLocaleName;if(e!==r&&this.values[r])return this.values[r]}return[]},e.prototype.setValue=function(e,t){e=this.getLocale(e);var r=eA.createCopy(this.values);t&&0!=t.length?this.values[e]=t:delete this.values[e],this.onValueChanged&&this.onValueChanged(r,this.values)},e.prototype.hasValue=function(e){return void 0===e&&(e=""),!this.isEmpty&&this.getValue(e).length>0},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0==this.getValuesKeys().length},enumerable:!1,configurable:!0}),e.prototype.getLocale=function(e){return e?e:(e=this.locale)||r9.localization.defaultLocaleName},e.prototype.getLocales=function(){var e=this.getValuesKeys();return 0==e.length?[]:e},e.prototype.getJson=function(){var e=this.getValuesKeys();return 0==e.length?null:1!=e.length||e[0]!=r9.localization.defaultLocaleName||r9.serialization.localizableStringSerializeAsObject?eA.createCopy(this.values):this.values[e[0]]},e.prototype.setJson=function(e){if(this.values={},e){if(Array.isArray(e))this.setValue(null,e);else for(var t in e)this.setValue(t,e[t])}},e.prototype.getValuesKeys=function(){return Object.keys(this.values)},e}();function rS(e){return r9&&r9.confirmActionFunc?r9.confirmActionFunc(e):confirm(e)}function rO(e){var t=function(t){t?e.funcOnYes():e.funcOnNo&&e.funcOnNo()};if(!(r9&&r9.confirmActionAsync&&r9.confirmActionAsync(e.message,t,e)))t(rS(e.message))}function rI(){if(void 0===rI.isIEOrEdge){var e=navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/"),n=e.indexOf("Edge/");rI.isIEOrEdge=n>0||r>0||t>0}return rI.isIEOrEdge}function rT(e,t){try{for(var r=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],o=new ArrayBuffer(r.length),i=new Uint8Array(o),s=0;s<r.length;s++)i[s]=r.charCodeAt(s);var a=new Blob([o],{type:n});navigator&&navigator.msSaveBlob&&navigator.msSaveOrOpenBlob(a,t)}catch(e){}}var rE=function(e){return!!e&&!!("host"in e&&e.host)},rR=function(e){var t=r9.environment.root;return"string"==typeof e?t.getElementById(e):e};function r_(e){var t=r9.environment.root;return e?e.scrollHeight>e.clientHeight&&("scroll"===getComputedStyle(e).overflowY||"auto"===getComputedStyle(e).overflowY)||e.scrollWidth>e.clientWidth&&("scroll"===getComputedStyle(e).overflowX||"auto"===getComputedStyle(e).overflowX)?e:r_(e.parentElement):rE(t)?t.host:t.documentElement}function rD(e){var t=r9.environment;if(!!t){var r=t.root.getElementById(e);if(r){var n=r_(r);n&&setTimeout(function(){return n.dispatchEvent(new CustomEvent("scroll"))},10)}}}function rk(e){return e?["url(",e,")"].join(""):""}var rA={changecamera:"flip-24x24",clear:"clear-24x24",cancel:"cancel-24x24",closecamera:"close-24x24",defaultfile:"file-72x72",choosefile:"folder-24x24",file:"toolbox-file-24x24",left:"chevronleft-16x16",modernbooleancheckchecked:"plus-32x32",modernbooleancheckunchecked:"minus-32x32",more:"more-24x24",navmenu_24x24:"navmenu-24x24",removefile:"error-24x24",takepicture:"camera-32x32",takepicture_24x24:"camera-24x24",v2check:"check-16x16",checked:"check-16x16",v2check_24x24:"check-24x24","back-to-panel_16x16":"restoredown-16x16",clear_16x16:"clear-16x16",close_16x16:"close-16x16",collapsedetail
1:"collapsedetails-16x16",expanddetail:"expanddetails-16x16","full-screen_16x16":"maximize-16x16",loading:"loading-48x48",minimize_16x16:"minimize-16x16",next_16x16:"chevronright-16x16",previous_16x16:"chevronleft-16x16","no-image":"noimage-48x48","ranking-dash":"rankingundefined-16x16","drag-n-drop":"drag-24x24","ranking-arrows":"reorder-24x24",restore_16x16:"fullsize-16x16",reset:"restore-24x24",search:"search-24x24",average:"smiley-rate5-24x24",excellent:"smiley-rate9-24x24",good:"smiley-rate7-24x24",normal:"smiley-rate6-24x24","not-good":"smiley-rate4-24x24",perfect:"smiley-rate10-24x24",poor:"smiley-rate3-24x24",terrible:"smiley-rate1-24x24","very-good":"smiley-rate8-24x24","very-poor":"smiley-rate2-24x24",add_16x16:"add-16x16",add_24x24:"add-24x24",alert_24x24:"warning-24x24",apply:"apply-24x24","arrow-down":"arrowdown-24x24","arrow-left":"arrowleft-24x24","arrow-left_16x16":"arrowleft-16x16",arrowleft:"arrowleft-16x16","arrow-right":"arrowright-24x24","arrow-right_16x16":"arrowright-16x16",arrowright:"arrowright-16x16","arrow-up":"arrowup-24x24",boolean:"toolbox-boolean-24x24","change-question-type_16x16":"speechbubble-16x16",checkbox:"toolbox-checkbox-24x24","collapse-detail_16x16":"minusbox-16x16","collapse-panel":"collapse-pg-24x24",collapse_16x16:"collapse-16x16","color-picker":"dropper-16x16",comment:"toolbox-longtext-24x24",config:"wrench-24x24",copy:"copy-24x24",default:"toolbox-customquestion-24x24",delete_16x16:"delete-16x16",delete_24x24:"delete-24x24",delete:"delete-24x24","description-hide":"hidehint-16x16",description:"hint-16x16","device-desktop":"desktop-24x24","device-phone":"phone-24x24","device-rotate":"rotate-24x24","device-tablet":"tablet-24x24",download:"download-24x24","drag-area-indicator":"drag-24x24","drag-area-indicator_24x16":"draghorizontal-24x16",v2dragelement_16x16:"draghorizontal-24x16","drop-down-arrow":"chevrondown-24x24","drop-down-arrow_16x16":"chevrondown-16x16",chevron_16x16:"chevrondown-16x16",dropdown:"toolbox-dropdown-24x24",duplicate_16x16:"copy-16x16",edit:"edit-24x24",edit_16x16:"edit-16x16","editing-finish":"finishedit-24x24",error:"error-16x16","expand-detail_16x16":"plusbox-16x16","expand-panel":"expand-pg-24x24",expand_16x16:"expand-16x16",expression:"toolbox-expression-24x24","fast-entry":"textedit-24x24",fix:"fix-24x24",html:"toolbox-html-24x24",image:"toolbox-image-24x24",imagepicker:"toolbox-imagepicker-24x24",import:"import-24x24","invisible-items":"invisible-24x24",language:"language-24x24",load:"import-24x24","logic-collapse":"collapse-24x24","logic-expand":"expand-24x24",logo:"image-48x48",matrix:"toolbox-matrix-24x24",matrixdropdown:"toolbox-multimatrix-24x24",matrixdynamic:"toolbox-dynamicmatrix-24x24",multipletext:"toolbox-multipletext-24x24",panel:"toolbox-panel-24x24",paneldynamic:"toolbox-dynamicpanel-24x24",preview:"preview-24x24",radiogroup:"toolbox-radiogroup-24x24",ranking:"toolbox-ranking-24x24",rating:"toolbox-rating-24x24",redo:"redo-24x24",remove_16x16:"remove-16x16",required:"required-16x16",save:"save-24x24","select-page":"selectpage-24x24",settings:"settings-24x24",settings_16x16:"settings-16x16",signaturepad:"toolbox-signature-24x24","switch-active_16x16":"switchon-16x16","switch-inactive_16x16":"switchoff-16x16",tagbox:"toolbox-tagbox-24x24",text:"toolbox-singleline-24x24",theme:"theme-24x24",toolbox:"toolbox-24x24",undo:"undo-24x24",visible:"visible-24x24",wizard:"wand-24x24",searchclear:"clear-16x16","chevron-16x16":"chevrondown-16x16",chevron:"chevrondown-24x24",progressbuttonv2:"arrowleft-16x16",right:"chevronright-16x16","add-lg":"add-24x24",add:"add-24x24"};function rL(e){return function(e){var t=r9.customIcons[e];return t?rN(t):(e=rN(e),t=r9.customIcons[e])?t:null}(e)||rN(e)}function rN(e){var t="icon-",r=e.replace(t,"");return t+(rA[r]||r)}function rM(e,t,r,n,o,i){if(o){"auto"!==e&&(o.style.width=(e||t||16)+"px",o.style.height=(e||r||16)+"px");var s=o.childNodes[0],a=rL(n);s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a);var l=o.getElementsByTagName("title")[0];if(i)!l&&(l=eD.getDocument().createElementNS("http://www.w3.org/2000/svg","title"),o.appendChild(l));else{l&&o.removeChild(l);return}l.textContent=i}}function rF(e){return"function"!=typeof e?e:e()}function rq(e){if("string"==typeof e){if(!isNaN(Number(e)))return Number(e);if(e.includes("px"))return parseFloat(e)}if("number"==typeof e)return e}function rB(e){if(void 0===rq(e))return e}var rQ="sv-focused--by-key";function rH(e){var t=e.target;t&&t.classList&&t.classList.remove(rQ)}function rz(e,t){if(!e.target||"true"!==e.target.contentEditable){var r=e.target;if(r){var n=e.which||e.keyCode;if(9===n){r.classList&&!r.classList.contains(rQ)&&r.classList.add(rQ);return}if(t){if(!t.__keyDownReceived)return;t.__keyDownReceived=!1}13===n||32===n?r.click&&r.click():(!t||t.processEsc)&&27===n&&r.blur&&r.blur()}}}function rW(e,t){if(void 0===t&&(t={processEsc:!0}),t&&(t.__keyDownReceived=!0),!e.target||"true"!==e.target.contentEditable){var r=e.which||e.keyCode,n=[13,32];t.processEsc&&n.push(27),-1!==n.indexOf(r)&&e.preventDefault()}}function rU(e,t){if(e){!t&&(t=function(e){return eD.getComputedStyle(e)});var r=t(e);e.style.height="auto",e.scrollHeight&&(e.style.height=e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth)+"px")}}function rJ(e){return e.originalEvent||e}function rG(e){e.preventDefault(),e.stopPropagation()}function r$(e){return e?e.replace(/\s*?([\w-]+)\s*?/g,".$1"):e}function rK(e){return getComputedStyle?Number.parseFloat(getComputedStyle(e).width):e.offsetWidth}function rY(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)}function rX(e,t){if(void 0===t&&(t=!0),e_.isAvailable()&&eD.isAvailable()&&e.childNodes.length>0){var r=e_.getSelection();if(0!=r.rangeCount){var n=r.getRangeAt(0);n.setStart(n.endContainer,n.endOffset),n.setEndAfter(e.lastChild),r.removeAllRanges(),r.addRange(n);var o=r.toString(),i=e.innerText;o=o.replace(/\r/g,""),t&&(o=o.replace(/\n/g,""),i=i.replace(/\n/g,""));var s=o.length;for(e.innerText=i,(n=eD.getDocument().createRange()).setStart(e.firstChild,0),n.setEnd(e.firstChild,0),r.removeAllRanges(),r.addRange(n);r.toString().length<i.length-s;){var a=r.toString().length;if(r.modify("extend","forward","character"),r.toString().length==a)break}(n=r.getRangeAt(0)).setStart(n.endContainer,n.endOffset)}}}function rZ(e,t){if(!!t&&!!e){if("object"==typeof t)for(var r in e){var n=e[r];!Array.isArray(n)&&n&&"object"==typeof n?((!t[r]||"object"!=typeof t[r])&&(t[r]={}),rZ(n,t[r])):t[r]=n}}}function r0(e,t){var r={};rZ(t.list,r),rZ(e.list,r),e.list=r}!function(){function e(){this._result=""}e.prototype.log=function(e){this._result+="->"+e},Object.defineProperty(e.prototype,"result",{get:function(){return this._result}
1,enumerable:!1,configurable:!0})}();function r1(e,t){e_.isFileReaderAvailable()&&(e.value="",e.onchange=function(r){if(!!e_.isFileReaderAvailable()){if(e&&e.files&&!(e.files.length<1)){for(var n=[],o=0;o<e.files.length;o++)n.push(e.files[o]);t(n)}}},e.click())}function r2(e,t,r){var n;void 0===r&&(r="--animation-"),e.__sv_created_properties=null!==(n=e.__sv_created_properties)&&void 0!==n?n:[],Object.keys(t).forEach(function(n){var o=""+r+n.split(/\.?(?=[A-Z])/).join("-").toLowerCase();e.style.setProperty(o,t[n]),e.__sv_created_properties.push(o)})}function r5(e){r2(e,function(e){if(!!eD.isAvailable()){var t=eD.getComputedStyle(e),r=t.paddingTop,n=t.paddingBottom,o=t.borderTopWidth,i=t.borderBottomWidth,s=t.marginTop,a=t.marginBottom,l=t.boxSizing,u=e.offsetHeight+"px";if("content-box"==l){var c=e.offsetHeight;[i,o,n,r].forEach(function(e){c-=parseFloat(e)}),u=c+"px"}return{paddingTop:r,paddingBottom:n,borderTopWidth:o,borderBottomWidth:i,marginTop:s,marginBottom:a,heightFrom:"0px",heightTo:u}}}(e))}function r4(e){Array.isArray(e.__sv_created_properties)&&(e.__sv_created_properties.forEach(function(t){e.style.removeProperty(t)}),delete e.__sv_created_properties)}var r8="undefined"!=typeof globalThis?globalThis.document:(void 0).document,r3=r8?{root:r8,_rootElement:eD.getBody(),get rootElement(){var r6;return null!==(r6=this._rootElement)&&void 0!==r6?r6:eD.getBody()},set rootElement(rootElement){this._rootElement=rootElement},_popupMountContainer:eD.getBody(),get popupMountContainer(){var r7;return null!==(r7=this._popupMountContainer)&&void 0!==r7?r7:eD.getBody()},set popupMountContainer(popupMountContainer){this._popupMountContainer=popupMountContainer},svgMountContainer:r8.head,stylesSheetsMountContainer:r8.head}:void 0,r9={version:"",designMode:{showEmptyDescriptions:!0,showEmptyTitles:!0},get allowShowEmptyDescriptionInDesignMode(){return this.designMode.showEmptyDescriptions},set allowShowEmptyDescriptionInDesignMode(val){this.designMode.showEmptyDescriptions=val},get allowShowEmptyTitleInDesignMode(){return this.designMode.showEmptyTitles},set allowShowEmptyTitleInDesignMode(val){this.designMode.showEmptyTitles=val},localization:{useLocalTimeZone:!0,storeDuplicatedTranslations:!1,defaultLocaleName:"default"},get useLocalTimeZone(){return this.localization.useLocalTimeZone},set useLocalTimeZone(val){this.localization.useLocalTimeZone=val},get storeDuplicatedTranslations(){return this.localization.storeDuplicatedTranslations},set storeDuplicatedTranslations(val){this.localization.storeDuplicatedTranslations=val},get defaultLocaleName(){return this.localization.defaultLocaleName},set defaultLocaleName(val){this.localization.defaultLocaleName=val},web:{onBeforeRequestChoices:function(e,t){},encodeUrlParams:!0,cacheLoadedChoices:!0,disableQuestionWhileLoadingChoices:!1,surveyServiceUrl:"https://api.surveyjs.io/public/v1/Survey"},get webserviceEncodeParameters(){return this.web.encodeUrlParams},set webserviceEncodeParameters(val){this.web.encodeUrlParams=val},get useCachingForChoicesRestful(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestful(val){this.web.cacheLoadedChoices=val},get useCachingForChoicesRestfull(){return this.web.cacheLoadedChoices},set useCachingForChoicesRestfull(val){this.web.cacheLoadedChoices=val},get disableOnGettingChoicesFromWeb(){return this.web.disableQuestionWhileLoadingChoices},set disableOnGettingChoicesFromWeb(val){this.web.disableQuestionWhileLoadingChoices=val},get surveyServiceUrl(){return this.web.surveyServiceUrl},set surveyServiceUrl(val){this.web.surveyServiceUrl=val},triggers:{changeNavigationButtonsOnComplete:!0,executeCompleteOnValueChanged:!1,executeSkipOnValueChanged:!0},get executeCompleteTriggerOnValueChanged(){return this.triggers.executeCompleteOnValueChanged},set executeCompleteTriggerOnValueChanged(val){this.triggers.executeCompleteOnValueChanged=val},get changeNavigationButtonsOnCompleteTrigger(){return this.triggers.changeNavigationButtonsOnComplete},set changeNavigationButtonsOnCompleteTrigger(val){this.triggers.changeNavigationButtonsOnComplete=val},get executeSkipTriggerOnValueChanged(){return this.triggers.executeSkipOnValueChanged},set executeSkipTriggerOnValueChanged(val){this.triggers.executeSkipOnValueChanged=val},serialization:{itemValueSerializeAsObject:!1,itemValueSerializeDisplayText:!1,localizableStringSerializeAsObject:!1,matrixDropdownColumnSerializeTitle:!1},get itemValueAlwaysSerializeAsObject(){return this.serialization.itemValueSerializeAsObject},set itemValueAlwaysSerializeAsObject(val){this.serialization.itemValueSerializeAsObject=val},get itemValueAlwaysSerializeText(){return this.serialization.itemValueSerializeDisplayText},set itemValueAlwaysSerializeText(val){this.serialization.itemValueSerializeDisplayText=val},get serializeLocalizableStringAsObject(){return this.serialization.localizableStringSerializeAsObject}
vendor: 4,687 bytes, line 1
1,set serializeLocalizableStringAsObject(val){this.serialization.localizableStringSerializeAsObject=val},lazyRender:{enabled:!1,firstBatchSize:3},get lazyRowsRendering(){return this.lazyRender.enabled},set lazyRowsRendering(val){this.lazyRender.enabled=val},get lazyRowsRenderingStartRow(){return this.lazyRender.firstBatchSize},set lazyRowsRenderingStartRow(val){this.lazyRender.firstBatchSize=val},matrix:{defaultCellType:"dropdown",defaultRowName:"default",totalsSuffix:"-total",maxRowCount:1e3,maxRowCountInCondition:1,renderRemoveAsIcon:!0,columnWidthsByType:{file:{minWidth:"240px"},comment:{minWidth:"200px"}},rateSize:"small"},get matrixDefaultRowName(){return this.matrix.defaultRowName},set matrixDefaultRowName(val){this.matrix.defaultRowName=val},get matrixDefaultCellType(){return this.matrix.defaultCellType},set matrixDefaultCellType(val){this.matrix.defaultCellType=val},get matrixTotalValuePostFix(){return this.matrix.totalsSuffix},set matrixTotalValuePostFix(val){this.matrix.totalsSuffix=val},get matrixMaximumRowCount(){return this.matrix.maxRowCount},set matrixMaximumRowCount(val){this.matrix.maxRowCount=val},get matrixMaxRowCountInCondition(){return this.matrix.maxRowCountInCondition},set matrixMaxRowCountInCondition(val){this.matrix.maxRowCountInCondition=val},get matrixRenderRemoveAsIcon(){return this.matrix.renderRemoveAsIcon},set matrixRenderRemoveAsIcon(val){this.matrix.renderRemoveAsIcon=val},panel:{maxPanelCount:100,maxPanelCountInCondition:1},get panelDynamicMaxPanelCountInCondition(){return this.panel.maxPanelCountInCondition},set panelDynamicMaxPanelCountInCondition(val){this.panel.maxPanelCountInCondition=val},get panelMaximumPanelCount(){return this.panel.maxPanelCount},set panelMaximumPanelCount(val){this.panel.maxPanelCount=val},readOnly:{enableValidation:!1,commentRenderMode:"textarea",textRenderMode:"input"},get readOnlyCommentRenderMode(){return this.readOnly.commentRenderMode},set readOnlyCommentRenderMode(val){this.readOnly.commentRenderMode=val},get readOnlyTextRenderMode(){return this.readOnly.textRenderMode},set readOnlyTextRenderMode(val){this.readOnly.textRenderMode=val},numbering:{includeQuestionsWithHiddenNumber:!1,includeQuestionsWithHiddenTitle:!1},get setQuestionVisibleIndexForHiddenTitle(){return this.numbering.includeQuestionsWithHiddenTitle},set setQuestionVisibleIndexForHiddenTitle(val){this.numbering.includeQuestionsWithHiddenTitle=val},get setQuestionVisibleIndexForHiddenNumber(){return this.numbering.includeQuestionsWithHiddenNumber},set setQuestionVisibleIndexForHiddenNumber(val){this.numbering.includeQuestionsWithHiddenNumber=val},enterKeyAction:"default",comparator:{trimStrings:!0,caseSensitive:!1,normalizeTextCallback:function(e,t){return e}},expressionDisableConversionChar:"#",get commentPrefix(){return r9.commentSuffix},set commentPrefix(val){r9.commentSuffix=val},commentSuffix:"-Comment",itemValueSeparator:"|",ratingMaximumRateValueCount:20,tagboxCloseOnSelect:!1,dropdownSearchDelay:500,confirmActionFunc:function(e){return confirm(e)},confirmActionAsync:function(e,t,r){var n,o,i,s,a,l,u,c;return n=e,o=t,i=r,s=new rV(void 0),u=(l=(a=r9.showDialog({componentName:"sv-string-viewer",data:{locStr:s,locString:s,model:s},onApply:function(){return o(!0),!0},onCancel:function(){return o(!1),!1},title:n||i.message,displayMode:"popup",isFocusedContent:!1,cssClass:i.cssClass||"sv-popup--confirm"},i.rootElement)).footerToolbar).getActionById("apply"),(c=l.getActionById("cancel")).title=eM("cancel",i.locale),c.innerCss="sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small",u.title=i.applyTitle||eM("ok",i.locale),u.innerCss="sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger",function(e){e.width="min-content"}(a),!0},minWidth:"300px",maxWidth:"100%",maxConditionRunCountOnValueChanged:10,notifications:{lifetime:2e3},autoAdvanceDelay:300,showItemsInOrder:"default",noneItemValue:"none",refuseItemValue:"refused",dontKnowItemValue:"dontknow",specialChoicesOrder:{selectAllItem:[-1],noneItem:[1],refuseItem:[2],dontKnowItem:[3],otherItem:[4]},choicesSeparator:", ",supportedValidators:{question:["expression"],comment:["text","regex"],text:["numeric","text","regex","email"],checkbox:["answercount"],imagepicker:["answercount"]},minDate:"",maxDate:"",showModal:void 0,showDialog:void 0,supportCreatorV2:!1,showDefaultItemsInCreatorV2:!0,customIcons:{},rankingDragHandleArea:"entireItem",environment:r3,showMaxLengthIndicator:!0,animationEnabled:!0,titleTags:{survey:"h3",page:"h4",panel:"h4",question:"h5"},questions:{inputTypes:["color","date","datetime-local","email","month","number","password","range","tel","text","t
1ime","url","week"],dataList:["","name","honorific-prefix","given-name","additional-name","family-name","honorific-suffix","nickname","organization-title","username","new-password","current-password","organization","street-address","address-line1","address-line2","address-line3","address-level4","address-level3","address-level2","address-level1","country","country-name","postal-code","cc-name","cc-given-name","cc-additional-name","cc-family-name","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc","cc-type","transaction-currency","transaction-amount","language","bday","bday-day","bday-month","bday-year","sex","url","photo","tel","tel-country-code","tel-national","tel-area-code","tel-local","tel-local-prefix","tel-local-suffix","tel-extension","email","impp"]},legacyProgressBarView:!1,maskSettings:{patternPlaceholderChar:"_",patternEscapeChar:"\\",patternDefinitions:{9:/[0-9]/,a:/[a-zA-Z]/,"#":/[a-zA-Z0-9]/}},storeUtcDates:!1,onDateCreated:function(e,t,r){return e},parseNumber:function(e,t){return t}},ne=function(){function e(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.text=e,this.errorOwner=t,this.visible=!0,this.onUpdateErrorTextCallback=void 0}return e.prototype.equals=function(e){return!!e&&!!e.getErrorType&&this.getErrorType()===e.getErrorType()&&this.text===e.text&&this.visible===e.visible},Object.defineProperty(e.prototype,"locText",{get:function(){return!this.locTextValue&&(this.locTextValue=new rV(this.errorOwner,!0),this.locTextValue.storeDefaultText=!0,this.locTextValue.text=this.getText()),this.locTextValue},enumerable:!1,configurable:!0}),e.prototype.getText=function(){var e=this.text;return!e&&(e=this.getDefaultText()),this.errorOwner&&(e=this.errorOwner.getErrorCustomText(e,this)),e},e.prototype.getErrorType=function(){return"base"},e.prototype.getDefaultText=function(){return""},e.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},e.prototype.getLocalizationString=function(e){return eM(e,this.getLocale())},e.prototype.updateText=function(){this.onUpdateErrorTextCallback&&this.onUpdateErrorTextCallback(this),this.locText.text=this.getText()},e}();var nt=(b=function(e,t){return(b=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),nr=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return nt(t,e),t.prototype.getErrorType=function(){return"required"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredError")},t}(ne),nn=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return nt(t,e),t.prototype.getErrorType=function(){return"requireoneanswer"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredErrorInPanel")},t}(ne),no=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return nt(t,e),t.prototype.getErrorType=function(){return"requirenumeric"},t.prototype.getDefaultText=function(){return this.getLocalizationString("numericError")},t}(ne),ni=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,null,r)||this;return n.maxSize=t,n.locText.text=n.getText(),n}return nt(t,e),t.prototype.getErrorType=function(){return"exceedsize"},t.prototype.getDefaultText=function(){return eM("exceedMaxSize").format(this.getTextSize())},t.prototype.getTextSize=function(){if(0===this.maxSize)return"0 Byte";var e=Math.floor(Math.log(this.maxSize)/Math.log(1024));return(this.maxSize/Math.pow(1024,e)).toFixed([0,0,2,3,3][e])+" "+["Bytes","KB","MB","GB","TB"][e]},t}(ne),ns=function(e){function t(t,r,n){void 0===n&&(n=null);var o=e.call(this,null,n)||this;return o.status=t,o.response=r,o}return nt(t,e),t.prototype.getErrorType=function(){return"webrequest"},t.prototype.getDefaultText=function(){var e=this.getLocalizationString("urlRequestError");return e?e.format(this.status,this.response):""},t}(ne),na=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return nt(t,e),t.prototype.getErrorType=function(){return"webrequestempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("urlGetChoicesError")},t}(ne),nl=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return nt(t,e),t.prototype.getErrorType=function(){return"otherempty"},t.prototype.getDefaultText=function(){return this.getLocalizationString("otherRequiredError")},t}(ne),nu=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return nt(t,e),t.prototype.getErrorType=function(){return"uploadingfile"},t.prototype.getDefaultText=function(){return this.getLocalizationString("uploadingFile")},t}(ne),nc=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return nt(t,e),t.prototype.getErrorType=function(){return"requiredinallrowserror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("requiredInAllRowsError")},t}(ne),np=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return nt(t,e),t.prototype.getErrorType=function(){return"eachrowuniqueeerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("eachRowUniqueError")},t}(ne),nh=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,null,r)||this;return n.minRowCount=t,n}return nt(t,e),t.prototype.getErrorType=function(){return"minrowcounterror"},t.prototype.getDefaultText=function(){return eM("minRowCountError").format(this.minRowCount)},t}(ne),nd=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return nt(t,e),t.prototype.getErrorType=function(){return"keyduplicationerror"},t.prototype.getDefaultText=function(){return this.getLocalizationString("keyDuplicationError")},t}(ne),nf=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this,t,r)||this;return n.text=t,n}return nt(t,e),t.prototype.getErrorType=function(){return"custom"},t}(ne);var ng=(v=function(e,t){return(v=Object.setPrototypeOf||({__proto__:[]}
vendor: 17,629 bytes, line 1
1)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}v(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),nm=function(e,t){void 0===t&&(t=null),this.value=e,this.error=t},ny=function(e){function t(){var t=e.call(this)||this;return t.createLocalizableString("text",t,!0),t}return ng(t,e),Object.defineProperty(t.prototype,"isValidator",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.errorOwner&&this.errorOwner.getSurvey?this.errorOwner.getSurvey():null},Object.defineProperty(t.prototype,"text",{get:function(){return this.getLocalizableStringText("text")},set:function(e){this.setLocalizableStringText("text",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.getLocalizableString("text")},enumerable:!1,configurable:!0}),t.prototype.getErrorText=function(e){return this.text?this.text:this.getDefaultErrorText(e)},t.prototype.getDefaultErrorText=function(e){return""},t.prototype.validate=function(e,t,r,n){return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),null},Object.defineProperty(t.prototype,"isRunning",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.errorOwner?this.errorOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.errorOwner?this.errorOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.errorOwner?this.errorOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.errorOwner?this.errorOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.errorOwner?this.errorOwner.getProcessedText(e):e},t.prototype.createCustomError=function(e){var t=this,r=new nf(this.getErrorText(e),this.errorOwner);return r.onUpdateErrorTextCallback=function(r){return r.text=t.getErrorText(e)},r},t.prototype.toString=function(){var e=this.getType().replace("validator","");return this.text&&(e+=", "+this.text),e},t}(tQ),nb=function(){function e(){}return e.prototype.run=function(e){var t=this,r=[],n=null,o=null;this.prepareAsyncValidators();for(var i=[],s=e.getValidators(),a=0;a<s.length;a++){var l=s[a];!n&&l.isValidateAllValues&&(n=e.getDataFilteredValues(),o=e.getDataFilteredProperties()),l.isAsync&&(this.asyncValidators.push(l),l.onAsyncCompleted=function(e){if(e&&e.error&&i.push(e.error),t.onAsyncCompleted){for(var r=0;r<t.asyncValidators.length;r++)if(t.asyncValidators[r].isRunning)return;t.onAsyncCompleted(i)}})}s=e.getValidators();for(var a=0;a<s.length;a++){var l=s[a],u=l.validate(e.validatedValue,e.getValidatorTitle(),n,o);u&&u.error&&r.push(u.error)}return 0==this.asyncValidators.length&&this.onAsyncCompleted&&this.onAsyncCompleted([]),r},e.prototype.prepareAsyncValidators=function(){if(this.asyncValidators)for(var e=0;e<this.asyncValidators.length;e++)this.asyncValidators[e].onAsyncCompleted=null;this.asyncValidators=[]},e}(),nv=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minValue=t,n.maxValue=r,n}return ng(t,e),t.prototype.getType=function(){return"numericvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),this.isValueEmpty(e))return null;if(!eA.isNumber(e))return new nm(null,new no(this.text,this.errorOwner));var o=new nm(eA.getNumber(e));return null!==this.minValue&&this.minValue>o.value||null!==this.maxValue&&this.maxValue<o.value?(o.error=this.createCustomError(t),o):"number"==typeof e?null:o},t.prototype.getDefaultErrorText=function(e){var t=e||this.getLocalizationString("value");return null!==this.minValue&&null!==this.maxValue?this.getLocalizationFormatString("numericMinMax",t,this.minValue,this.maxValue):null!==this.minValue?this.getLocalizationFormatString("numericMin",t,this.minValue):this.getLocalizationFormatString("numericMax",t,this.maxValue)},Object.defineProperty(t.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e)},enumerable:!1,configurable:!0}),t}(ny),nC=function(e){function t(){return e.call(this)||this}return ng(t,e),t.prototype.getType=function(){return"textvalidator"},t.prototype.validate=function(e,t,r,n){return(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),this.isValueEmpty(e))?null:!this.allowDigits&&/\d+$/.test(e)?new nm(null,this.createCustomError("textNoDigitsAllow")):this.minLength>0&&e.length<this.minLength||this.maxLength>0&&e.length>this.maxLength?new nm(null,this.createCustomError(t)):null},t.prototype.getDefaultErrorText=function(e){return"textNoDigitsAllow"===e?this.getLocalizationString(e):this.minLength>0&&this.maxLength>0?this.getLocalizationFormatString("textMinMaxLength",this.minLength,this.maxLength):this.minLength>0?this.getLocalizationFormatString("textMinLength",this.minLength):this.getLocalizationFormatString("textMaxLength",this.maxLength)},Object.defineProperty(t.prototype,"minLength",{get:function(){return this.getPropertyValue("minLength")},set:function(e){this.setPropertyValue("minLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowDigits",{get:function(){return this.getPropertyValue("allowDigits")},set:function(e){this.setPropertyValue("allowDigits",e)},enumerable:!1,configurable:!0}),t}(ny),nx=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.minCount=t,n.maxCount=r,n}return ng(t,e),t.prototype.getType=function(){return"answercountvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),null==e||e.constructor!=Array)return null;var o=e.length;return 0==o?null:this.minCount&&o<this.minCount?new nm(null,this.createCustomError(this.getLocalizationFormatString("minSelectError",this.minCount))):this.maxCount&&o>this.maxCount?new nm(null,this.createCustomError(this.getLocalizationFormatString("maxSelectError",this.maxCount))):null},t.prototype.getDefaultErrorText=function(e){return e},Object.defineProperty(t.prototype,"minCount",{get:function(){return this.getPropertyValue("minCount")},set:function(e){this.setPropertyValue("minCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxCount",{get:function(){return this.getPropertyValue("maxCount")},set:function(e){this.setPropertyValue("maxCount",e)},enumerable:!1,configurable:!0}),t}(ny),nw=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.regex=t,r}return ng(t,e),t.prototype.getType=function(){return"regexvalidator"},t.prototype.validate=function(e,t,r,n){if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!this.regex||this.isValueEmpty(e))return null;var o=this.createRegExp();if(Array.isArray(e))for(var i=0;i<e.length;i++){var s=this.hasError(o,e[i],t);if(s)return s}return this.hasError(o,e,t)},t.prototype.hasError=function(e,t,r){return e.test(t)?null:new nm(t,this.createCustomError(r))},Object.defineProperty(t.prototype,"regex",{get:function(){return this.getPropertyValue("regex")},set:function(e){this.setPropertyValue("regex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"caseInsensitive",{get:function(){return this.getPropertyValue("caseInsensitive")},set:function(e){this.setPropertyValue("caseInsensitive",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"insensitive",{get:function(){return this.caseInsensitive},set:function(e){this.caseInsensitive=e},enumerable:!1,configurable:!0}),t.prototype.createRegExp=function(){return new RegExp(this.regex,this.caseInsensitive?"i":"")},t}(ny),nP=function(e){function t(){var t=e.call(this)||this;return t.re=/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()=[\]\.,;:\s@\"]+\.)+[^<>()=[\]\.,;:\s@\"]{2,})$/i,t}return ng(t,e),t.prototype.getType=function(){return"emailvalidator"},t.prototype.validate=function(e,t,r,n){return(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!e||this.re.test(e))?null:new nm(e,this.createCustomError(t))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationString("invalidEmail")},t}(ny),nV=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.conditionRunner=null,r.isRunningValue=!1,r.expression=t,r}return ng(t,e),t.prototype.getType=function(){return"expressionvalidator"},Object.defineProperty(t.prototype,"isValidateAllValues",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAsync",{get:function(){return!!this.ensureConditionRunner(!1)&&this.conditionRunner.isAsync},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.isRunningValue},enumerable:!1,configurable:!0}),t.prototype.validate=function(e,t,r,n){var o=this;if(void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),!this.expression)return null;this.conditionRunner&&(this.conditionRunner.onRunComplete=null),this.ensureConditionRunner(!0),this.conditionRunner.onRunComplete=function(r){o.isRunningValue=!1,o.onAsyncCompleted&&o.onAsyncCompleted(o.generateError(r,e,t))},this.isRunningValue=!0;var i=this.conditionRunner.run(r,n);return this.conditionRunner.isAsync?null:(this.isRunningValue=!1,this.generateError(i,e,t))},t.prototype.generateError=function(e,t,r){return e?null:new nm(t,this.createCustomError(r))},t.prototype.getDefaultErrorText=function(e){return this.getLocalizationFormatString("invalidExpression",this.expression)},t.prototype.ensureConditionRunner=function(e){return!!this.expression&&(e||!this.conditionRunner?this.conditionRunner=new tA(this.expression):this.conditionRunner.expression=this.expression,!0)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t}(ny);e6.addClass("surveyvalidator",[{name:"text",serializationProperty:"locText"}]),e6.addClass("numericvalidator",["minValue:number","maxValue:number"],function(){return new nv},"surveyvalidator"),e6.addClass("textvalidator",[{name:"minLength:number",default:0},{name:"maxLength:number",default:0},{name:"allowDigits:boolean",default:!0}],function(){return new nC},"surveyvalidator"),e6.addClass("answercountvalidator",["minCount:number","maxCount:number"],function(){return new nx},"surveyvalidator"),e6.addClass("regexvalidator",["regex",{name:"caseInsensitive:boolean",alternativeName:"insensitive"}],function(){return new nw},"surveyvalidator"),e6.addClass("emailvalidator",[],function(){return new nP},"surveyvalidator"),e6.addClass("expressionvalidator",["expression:condition"],function(){return new nV},"surveyvalidator");var nj=function(){function e(e,t){this.name=e,this.widgetJson=t,this.htmlTemplate=t.htmlTemplate?t.htmlTemplate:""}return e.prototype.afterRender=function(e,t){var r=this;this.widgetJson.afterRender&&(e.localeChangedCallback=function(){r.widgetJson.willUnmount&&r.widgetJson.willUnmount(e,t),r.widgetJson.afterRender(e,t)},this.widgetJson.afterRender(e,t))},e.prototype.willUnmount=function(e,t){this.widgetJson.willUnmount&&this.widgetJson.willUnmount(e,t)},e.prototype.getDisplayValue=function(e,t){return(void 0===t&&(t=void 0),this.widgetJson.getDisplayValue)?this.widgetJson.getDisplayValue(e,t):null},e.prototype.validate=function(e){if(this.widgetJson.validate)return this.widgetJson.validate(e)},e.prototype.isFit=function(e){return!!this.isLibraryLoaded()&&!!this.widgetJson.isFit&&this.widgetJson.isFit(e)},Object.defineProperty(e.prototype,"canShowInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox&&"customtype"==nS.Instance.getActivatedBy(this.name)&&(!this.widgetJson.widgetIsLoaded||this.widgetJson.widgetIsLoaded())},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showInToolbox",{get:function(){return!1!==this.widgetJson.showInToolbox},set:function(e){this.widgetJson.showInToolbox=e},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.widgetJson.init&&this.widgetJson.init()},e.prototype.activatedByChanged=function(e){this.isLibraryLoaded()&&this.widgetJson.activatedByChanged&&this.widgetJson.activatedByChanged(e)},e.prototype.isLibraryLoaded=function(){return!this.widgetJson.widgetIsLoaded||!0==this.widgetJson.widgetIsLoaded()},Object.defineProperty(e.prototype,"isDefaultRender",{get:function(){return this.widgetJson.isDefaultRender},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfQuestionType",{get:function(){return this.widgetJson.pdfQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pdfRender",{get:function(){return this.widgetJson.pdfRender},enumerable:!1,configurable:!0}),e}(),nS=function(){function e(){this.widgetsValues=[],this.widgetsActivatedBy={},this.onCustomWidgetAdded=new tz}return Object.defineProperty(e.prototype,"widgets",{get:function(){return this.widgetsValues},enumerable:!1,configurable:!0}),e.prototype.add=function(e,t){void 0===t&&(t="property"),this.addCustomWidget(e,t)},e.prototype.addCustomWidget=function(e,t){void 0===t&&(t="property");var r=e.name;!r&&(r="widget_"+this.widgets.length+"1");var n=new nj(r,e);return this.widgetsValues.push(n),n.init(),this.widgetsActivatedBy[r]=t,n.activatedByChanged(t),this.onCustomWidgetAdded.fire(n,null),n},e.prototype.getActivatedBy=function(e){var t=this.widgetsActivatedBy[e];return t||"property"},e.prototype.setActivatedBy=function(e,t){if(!!e&&!!t){var r=this.getCustomWidgetByName(e);r&&(this.widgetsActivatedBy[e]=t,r.activatedByChanged(t))}},e.prototype.clear=function(){this.widgetsValues=[]},e.prototype.getCustomWidgetByName=function(e){for(var t=0;t<this.widgets.length;t++)if(this.widgets[t].name==e)return this.widgets[t];return null},e.prototype.getCustomWidget=function(e){for(var t=0;t<this.widgetsValues.length;t++)if(this.widgetsValues[t].isFit(e))return this.widgetsValues[t];return null},e.Instance=new e,e}(),nO=function(){function e(){this.renderersHash={},this.defaultHash={}}return e.prototype.unregisterRenderer=function(e,t){delete this.renderersHash[e][t],this.defaultHash[e]===t&&delete this.defaultHash[e]},e.prototype.registerRenderer=function(e,t,r,n){void 0===n&&(n=!1),!this.renderersHash[e]&&(this.renderersHash[e]={}),this.renderersHash[e][t]=r,n&&(this.defaultHash[e]=t)},e.prototype.getRenderer=function(e,t){var r=this.renderersHash[e];if(r){if(t&&r[t])return r[t];var n=this.defaultHash[e];if(n&&r[n])return r[n]}return"default"},e.prototype.getRendererByQuestion=function(e){return this.getRenderer(e.getType(),e.renderAs)},e.prototype.clear=function(){this.renderersHash={}},e.Instance=new e,e}(),nI=function(){function e(e){var t=this;this.options=e,this.onPropertyChangedCallback=function(){t.element&&(t.element.value=t.getTextValue(),t.updateElement())},this.question.registerFunctionOnPropertyValueChanged(this.options.propertyName,this.onPropertyChangedCallback,"__textarea")}return e.prototype.updateElement=function(){var e=this;this.element&&this.autoGrow&&setTimeout(function(){return rU(e.element)},1)},e.prototype.setElement=function(e){e&&(this.element=e,this.updateElement())},e.prototype.resetElement=function(){this.element=void 0},e.prototype.getTextValue=function(){return this.options.getTextValue&&this.options.getTextValue()||""},e.prototype.onTextAreaChange=function(e){this.options.onTextAreaChange&&this.options.onTextAreaChange(e)},e.prototype.onTextAreaInput=function(e){this.options.onTextAreaInput&&this.options.onTextAreaInput(e),this.element&&this.autoGrow&&rU(this.element)},e.prototype.onTextAreaKeyDown=function(e){this.options.onTextAreaKeyDown&&this.options.onTextAreaKeyDown(e)},e.prototype.onTextAreaBlur=function(e){this.onTextAreaChange(e),this.options.onTextAreaBlur&&this.options.onTextAreaBlur(e)},e.prototype.onTextAreaFocus=function(e){this.options.onTextAreaFocus&&this.options.onTextAreaFocus(e)},Object.defineProperty(e.prototype,"question",{get:function(){return this.options.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.options.id()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this.options.placeholder()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){return this.options.className()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxLength",{get:function(){if(this.options.maxLength)return this.options.maxLength()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"autoGrow",{get:function(){if(this.options.autoGrow)return this.options.autoGrow()}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rows",{get:function(){if(this.options.rows)return this.options.rows()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cols",{get:function(){if(this.options.cols)return this.options.cols()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDisabledAttr",{get:function(){return this.options.isDisabledAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isReadOnlyAttr",{get:function(){if(this.options.isReadOnlyAttr)return this.options.isReadOnlyAttr()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaRequired",{get:function(){if(this.options.ariaRequired)return this.options.ariaRequired()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabel",{get:function(){if(this.options.ariaLabel)return this.options.ariaLabel()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaInvalid",{get:function(){if(this.options.ariaInvalid)return this.options.ariaInvalid()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaLabelledBy",{get:function(){if(this.options.ariaLabelledBy)return this.options.ariaLabelledBy()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaDescribedBy",{get:function(){if(this.options.ariaDescribedBy)return this.options.ariaDescribedBy()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ariaErrormessage",{get:function(){if(this.options.ariaErrormessage)return this.options.ariaErrormessage()},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.question&&this.question.unRegisterFunctionOnPropertyValueChanged(this.options.propertyName,"__textarea"),this.resetElement()},e}();var nT=(C=function(e,t){return(C=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}C(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),nE=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},nR=function(e,t,r){this.name=e,this.canRun=t,this.doComplete=r,this.runSecondCheck=function(e){return!1}},n_=function(e){function t(r){var n=e.call(this,r)||this;return n.customWidgetData={isNeedRender:!0},n.hasCssErrorCallback=function(){return!1},n.isReadyValue=!0,n.dependedQuestions=[],n.onReadyChanged=n.addEvent(),n.triggersInfo=[],n.isRunningValidatorsValue=!1,n.isValueChangedInSurvey=!1,n.allowNotifyValueChanged=!0,n.id=t.getQuestionId(),n.onCreating(),n.createNewArray("validators",function(e){e.errorOwner=n}),n.addExpressionProperty("visibleIf",function(e,t){n.visible=!0===t}),n.addExpressionProperty("enableIf",function(e,t){n.readOnly=!1===t}),n.addExpressionProperty("requiredIf",function(e,t){n.isRequired=!0===t}),n.createLocalizableString("commentText",n,!0,"otherItemText"),n.createLocalizableString("requiredErrorText",n),n.addTriggerInfo("resetValueIf",function(){return!n.isEmpty()},function(){n.startSetValueOnExpression(),n.clearValue(),n.updateValueWithDefaults(),n.finishSetValueOnExpression()}),n.addTriggerInfo("setValueIf",function(){return!0},function(){return n.runSetValueExpression()}).runSecondCheck=function(e){return n.checkExpressionIf(e)},n.registerPropertyChangedHandlers(["width"],function(){n.updateQuestionCss(),n.parent&&n.parent.elementWidthChanged(n)}),n.registerPropertyChangedHandlers(["isRequired"],function(){!n.isRequired&&n.errors.length>0&&n.validate(),n.locTitle.strChanged(),n.clearCssClasses()}),n.registerPropertyChangedHandlers(["indent","rightIndent"],function(){n.resetIndents()}
vendor: 41,094 bytes, line 1
1),n.registerPropertyChangedHandlers(["showCommentArea","showOtherItem"],function(){n.initCommentFromSurvey()}),n.registerFunctionOnPropertiesValueChanged(["no","readOnly","hasVisibleErrors","containsErrors"],function(){n.updateQuestionCss()}),n.registerPropertyChangedHandlers(["_isMobile"],function(){n.onMobileChanged()}),n.registerPropertyChangedHandlers(["colSpan"],function(){var e;null===(e=n.parent)||void 0===e||e.updateColumns()}),n}return nT(t,e),t.getQuestionId=function(){return"sq_"+t.questionCounter++},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===r9.readOnly.commentRenderMode},t.prototype.allowMobileInDesignMode=function(){return!1},t.prototype.updateIsMobileFromSurvey=function(){this.setIsMobile(this.survey._isMobile)},t.prototype.setIsMobile=function(e){var t=e&&(this.allowMobileInDesignMode()||!this.isDesignMode);this.isMobile=t},t.prototype.getIsMobile=function(){return this._isMobile},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this.getIsMobile()},set:function(e){this._isMobile=e},enumerable:!1,configurable:!0}),t.prototype.themeChanged=function(e){},t.prototype.getDefaultTitle=function(){return this.name},t.prototype.createLocTitleProperty=function(){var t=this,r=e.prototype.createLocTitleProperty.call(this);return r.storeDefaultText=!0,r.onGetTextCallback=function(e,r){return(!e&&!r&&(e=t.getDefaultTitle()),t.survey)?t.survey.getUpdatedQuestionTitle(t,e):e},this.locProcessedTitle=new rV(this,!0),this.locProcessedTitle.sharedData=r,r},Object.defineProperty(t.prototype,"commentTextAreaModel",{get:function(){return!this.commentTextAreaModelValue&&(this.commentTextAreaModelValue=new nI(this.getCommentTextAreaOptions())),this.commentTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getCommentTextAreaOptions=function(){var e=this;return{question:this,id:function(){return e.commentId},propertyName:"comment",className:function(){return e.cssClasses.comment},placeholder:function(){return e.renderedCommentPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},autoGrow:function(){return e.autoGrowComment},maxLength:function(){return e.getOthersMaxLength()},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},getTextValue:function(){return e.comment},onTextAreaChange:function(t){e.onCommentChange(t)},onTextAreaInput:function(t){e.onCommentInput(t)}}},t.prototype.getSurvey=function(t){return(void 0===t&&(t=!1),t)?this.parent?this.parent.getSurvey(t):null:this.onGetSurvey?this.onGetSurvey():e.prototype.getSurvey.call(this)},t.prototype.getValueName=function(){return this.valueName?this.valueName.toString():this.name},Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){var t=this.getValueName();this.setPropertyValue("valueName",e),this.onValueNameChanged(t)},enumerable:!1,configurable:!0}),t.prototype.onValueNameChanged=function(e){this.survey&&(this.survey.questionRenamed(this,this.name,e||this.name),this.initDataFromSurvey())},t.prototype.onNameChanged=function(e){this.locTitle.strChanged(),this.survey&&this.survey.questionRenamed(this,e,this.valueName?this.valueName:e)},Object.defineProperty(t.prototype,"isReady",{get:function(){return this.isReadyValue},enumerable:!1,configurable:!0}),t.prototype.onAsyncRunningChanged=function(){this.updateIsReady()},t.prototype.updateIsReady=function(){var e=this.getIsQuestionReady();if(e){for(var t=this.getIsReadyDependsOn(),r=0;r<t.length;r++)if(!t[r].getIsQuestionReady()){e=!1;break}}this.setIsReady(e)},t.prototype.getIsQuestionReady=function(){return!this.isAsyncExpressionRunning&&this.getAreNestedQuestionsReady()},t.prototype.getAreNestedQuestionsReady=function(){var e=this.getIsReadyNestedQuestions();if(!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!e[t].isReady)return!1;return!0},t.prototype.getIsReadyNestedQuestions=function(){return this.getNestedQuestions()},t.prototype.setIsReady=function(e){var t=this.isReadyValue;this.isReadyValue=e,t!=e&&(this.getIsReadyDependends().forEach(function(e){return e.updateIsReady()}),this.onReadyChanged.fire(this,{question:this,isReady:e,oldIsReady:t}))},t.prototype.getIsReadyDependsOn=function(){return this.getIsReadyDependendCore(!0)},t.prototype.getIsReadyDependends=function(){return this.getIsReadyDependendCore(!1)},t.prototype.getIsReadyDependendCore=function(e){var t=this;if(!this.survey)return[];var r=this.survey.questionsByValueName(this.getValueName()),n=[];return r.forEach(function(e){e!==t&&n.push(e)}),!e&&(this.parentQuestion&&n.push(this.parentQuestion),this.dependedQuestions.length>0&&this.dependedQuestions.forEach(function(e){return n.push(e)})),n},t.prototype.choicesLoaded=function(){},Object.defineProperty(t.prototype,"page",{get:function(){return this.parentQuestion?this.parentQuestion.page:this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return null},t.prototype.delete=function(e){void 0===e&&(e=!0),this.removeFromParent(),e?this.dispose():this.resetDependedQuestions()},t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.addDependedQuestion=function(e){!(!e||this.dependedQuestions.indexOf(e)>-1)&&this.dependedQuestions.push(e)},t.prototype.removeDependedQuestion=function(e){if(e){var t=this.dependedQuestions.indexOf(e);t>-1&&this.dependedQuestions.splice(t,1)}},t.prototype.updateDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].updateDependedQuestion()},t.prototype.updateDependedQuestion=function(){},t.prototype.resetDependedQuestion=function(){},Object.defineProperty(t.prototype,"isFlowLayout",{get:function(){return"flow"===this.getLayoutType()},enumerable:!1,configurable:!0}),t.prototype.getLayoutType=function(){return this.parent?this.parent.getChildrenLayoutType():"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!=this.visible&&(this.setPropertyValue("visible",e),this.onVisibleChanged(),this.notifySurveyVisibilityChanged())},enumerable:!1,configurable:!0}),t.prototype.onVisibleChanged=function(){this.updateIsVisibleProp(),!this.isVisible&&this.errors&&this.errors.length>0&&(this.errors=[])},t.prototype.notifyStateChanged=function(t){e.prototype.notifyStateChanged.call(this,t),this.isCollapsed&&this.onHidingContent()},t.prototype.updateElementVisibility=function(){this.updateIsVisibleProp()},t.prototype.updateIsVisibleProp=function(){var e=this.getPropertyValue("isVisible"),t=this.isVisible;e!==t&&(this.setPropertyValue("isVisible",t),!t&&this.onHidingContent()),t!==this.visible&&this.areInvisibleElementsShowing&&this.updateQuestionCss(!0)},Object.defineProperty(t.prototype,"useDisplayValuesInDynamicTexts",{get:function(){return this.getPropertyValue("useDisplayValuesInDynamicTexts")},set:function(e){this.setPropertyValue("useDisplayValuesInDynamicTexts",e)},enumerable:!1,configurable:!0}),t.prototype.getUseDisplayValuesInDynamicTexts=function(){return this.useDisplayValuesInDynamicTexts},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!(this.survey&&this.survey.areEmptyElementsHidden&&this.isEmpty())&&(!!this.areInvisibleElementsShowing||this.isVisibleCore())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisibleInSurvey",{get:function(){return this.isVisible&&this.isParentVisible},enumerable:!1,configurable:!0}),t.prototype.isVisibleCore=function(){return this.visible},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){},Object.defineProperty(t.prototype,"hideNumber",{get:function(){return this.getPropertyValue("hideNumber")},set:function(e){this.setPropertyValue("hideNumber",e),this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"question"},Object.defineProperty(t.prototype,"isQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},t.prototype.getProgressInfo=function(){return this.hasInput?{questionCount:1,answeredQuestionCount:this.isEmpty()?0:1,requiredQuestionCount:this.isRequired?1:0,requiredAnsweredQuestionCount:!this.isEmpty()&&this.isRequired?1:0}:e.prototype.getProgressInfo.call(this)},t.prototype.ensureSetValueExpressionRunner=function(){var e=this;this.setValueExpressionRunner?this.setValueExpressionRunner.expression=this.setValueExpression:(this.setValueExpressionRunner=new tL(this.setValueExpression),this.setValueExpressionRunner.onRunComplete=function(t){e.runExpressionSetValue(t)})},t.prototype.runSetValueExpression=function(){this.setValueExpression?(this.ensureSetValueExpressionRunner(),this.setValueExpressionRunner.run(this.getDataFilteredValues(),this.getDataFilteredProperties())):this.clearValue()},t.prototype.checkExpressionIf=function(e){return this.ensureSetValueExpressionRunner(),!!this.setValueExpressionRunner&&this.canExecuteTriggerByKeys(e,this.setValueExpressionRunner)},t.prototype.addTriggerInfo=function(e,t,r){var n=new nR(e,t,r);return this.triggersInfo.push(n),n},t.prototype.runTriggerInfo=function(e,t){var r=this[e.name];if(!r||e.isRunning||!e.canRun()){e.runSecondCheck(t)&&e.doComplete();return}e.runner?e.runner.expression=r:(e.runner=new tL(r),e.runner.onRunComplete=function(t){!0===t&&e.doComplete(),e.isRunning=!1}),(this.canExecuteTriggerByKeys(t,e.runner)||e.runSecondCheck(t))&&(e.isRunning=!0,e.runner.run(this.getDataFilteredValues(),this.getDataFilteredProperties()))},t.prototype.canExecuteTriggerByKeys=function(e,t){var r=t.getVariables();return!!((!r||0===r.length)&&t.hasFunction())||new e9().isAnyKeyChanged(e,r)},t.prototype.runTriggers=function(e,t,r){var n=this;!this.isSettingQuestionValue&&(!this.parentQuestion||this.parentQuestion.getValueName()!==e)&&(!r&&((r={})[e]=t),this.triggersInfo.forEach(function(e){n.runTriggerInfo(e,r)}))},t.prototype.runConditions=function(){this.data&&!this.isLoadingFromJson&&(!this.isDesignMode&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties()),this.locStrsChanged())},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t),this.survey&&(this.survey.questionCreated(this),!0!==r&&this.runConditions(),!this.visible&&this.updateIsVisibleProp(),this.updateIsMobileFromSurvey())},Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.parent!==e&&(this.removeFromParent(),this.setPropertyValue("parent",e),e&&this.updateQuestionCss(),this.onParentChanged())},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return"hidden"!==this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleLocation",{get:function(){return this.getPropertyValue("titleLocation")},set:function(e){var t="hidden"==this.titleLocation||"hidden"==e;this.setPropertyValue("titleLocation",e.toLowerCase()),this.updateQuestionCss(),t&&this.notifySurveyVisibilityChanged()},enumerable:!1,configurable:!0}),t.prototype.getTitleOwner=function(){return this},t.prototype.getIsTitleRenderedAsString=function(){return"hidden"===this.titleLocation},t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return!1},t.prototype.notifySurveyVisibilityChanged=function(){if(this.survey&&!this.isLoadingFromJson){this.survey.questionVisibilityChanged(this,this.isVisible,!this.parentQuestion||this.parentQuestion.notifySurveyOnChildrenVisibilityChanged());var e=this.isClearValueOnHidden;!this.visible&&this.clearValueOnHidding(e),e&&this.isVisibleInSurvey&&this.updateValueWithDefaults()}},t.prototype.clearValueOnHidding=function(e){e&&this.clearValueIfInvisible()},Object.defineProperty(t.prototype,"titleWidth",{get:function(){if(this.parent&&"left"===this.getTitleLocation()){var e=this.parent.getColumsForElement(this),t=e.length;if(0!==t&&e[0].questionTitleWidth)return e[0].questionTitleWidth;var r=this.getPercentQuestionTitleWidth();if(!r&&this.parent){var n=this.parent.getQuestionTitleWidth();return n&&!isNaN(n)&&(n+="px"),n}return r/(t||1)+"%"}},enumerable:!1,configurable:!0}),t.prototype.getPercentQuestionTitleWidth=function(){var e=!!this.parent&&this.parent.getQuestionTitleWidth();if(e&&"%"===e[e.length-1])return parseInt(e)},t.prototype.getTitleLocation=function(){if(this.isFlowLayout)return"hidden";var e=this.getTitleLocationCore();return"left"===e&&!this.isAllowTitleLeft&&(e="top"),e},t.prototype.getTitleLocationCore=function(){return"default"!==this.titleLocation?this.titleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},Object.defineProperty(t.prototype,"hasTitleOnLeft",{get:function(){return this.hasTitle&&"left"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnTop",{get:function(){return this.hasTitle&&"top"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnBottom",{get:function(){return this.hasTitle&&"bottom"===this.getTitleLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitleOnLeftTop",{get:function(){if(!this.hasTitle)return!1;var e=this.getTitleLocation();return"left"===e||"top"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"errorLocation",{get:function(){return this.getPropertyValue("errorLocation")},set:function(e){this.setPropertyValue("errorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getErrorLocation=function(){return"default"!==this.errorLocation?this.errorLocation:this.parentQuestion?this.parentQuestion.getChildErrorLocation(this):this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getChildErrorLocation=function(e){return this.getErrorLocation()},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return this.hasInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputId",{get:function(){return this.id+"i"},enumerable:!1,configurable:!0}),t.prototype.getDefaultTitleValue=function(){return this.name},t.prototype.getDefaultTitleTagName=function(){return r9.titleTags.question},Object.defineProperty(t.prototype,"descriptionLocation",{get:function(){return this.getPropertyValue("descriptionLocation")},set:function(e){this.setPropertyValue("descriptionLocation",e),this.updateQuestionCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return"underTitle"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasDescriptionUnderInput",{get:function(){return"underInput"==this.getDescriptionLocation()&&this.hasDescription},enumerable:!1,configurable:!0}),t.prototype.getDescriptionLocation=function(){return"default"!==this.descriptionLocation?this.descriptionLocation:this.survey?this.survey.questionDescriptionLocation:"underTitle"},t.prototype.needClickTitleFunction=function(){return e.prototype.needClickTitleFunction.call(this)||this.hasInput},t.prototype.processTitleClick=function(){var t=this;if(e.prototype.processTitleClick.call(this),!this.isCollapsed)return setTimeout(function(){t.focus()},1),!0},Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentText",{get:function(){return this.getLocalizableStringText("commentText")},set:function(e){this.setLocalizableStringText("commentText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCommentText",{get:function(){return this.getLocalizableString("commentText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPlaceHolder",{get:function(){return this.commentPlaceholder},set:function(e){this.commentPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCommentPlaceholder",{get:function(){var e=this;return this.getPropertyValue("renderedCommentPlaceholder",void 0,function(){return e.isReadOnly?void 0:e.commentPlaceHolder})},enumerable:!1,configurable:!0}),t.prototype.resetRenderedCommentPlaceholder=function(){this.resetPropertyValue("renderedCommentPlaceholder")},t.prototype.getAllErrors=function(){return this.errors.slice()},t.prototype.getErrorByType=function(e){for(var t=0;t<this.errors.length;t++)if(this.errors[t].getErrorType()===e)return this.errors[t];return null},Object.defineProperty(t.prototype,"customWidget",{get:function(){return!this.isCustomWidgetRequested&&!this.customWidgetValue&&(this.isCustomWidgetRequested=!0,this.updateCustomWidget()),this.customWidgetValue},enumerable:!1,configurable:!0}),t.prototype.updateCustomWidget=function(){this.customWidgetValue=nS.Instance.getCustomWidget(this)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.resetRenderedCommentPlaceholder(),this.localeChangedCallback&&this.localeChangedCallback()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.updateCommentElements=function(){},t.prototype.onCommentInput=function(e){this.isInputTextUpdate?e.target&&(this.comment=e.target.value):this.updateCommentElements()},t.prototype.onCommentChange=function(e){this.comment=e.target.value,this.comment!==e.target.value&&(e.target.value=this.comment)},t.prototype.afterRenderQuestionElement=function(e){this.survey&&this.hasSingleInput&&this.survey.afterRenderQuestionInput(this,e)},t.prototype.afterRender=function(e){var t=this;this.afterRenderCore(e),this.survey&&(this.survey.afterRenderQuestion(this,e),this.afterRenderQuestionCallback&&this.afterRenderQuestionCallback(this,e),(this.supportComment()||this.supportOther())&&(this.commentElements=[],this.getCommentElementsId().forEach(function(e){var r=r9.environment.root.getElementById(e);r&&t.commentElements.push(r)}),this.updateCommentElements()),this.checkForResponsiveness(e))},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t)},t.prototype.getCommentElementsId=function(){return[this.commentId]},t.prototype.beforeDestroyQuestionElement=function(e){this.commentElements=void 0},Object.defineProperty(t.prototype,"processedTitle",{get:function(){var e=this.locProcessedTitle.textOrHtml;return e||this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern&&""!==this.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.startWithNewLine!=e&&this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={error:{}};return this.copyCssClasses(t,e.question),this.copyCssClasses(t.error,e.error),this.updateCssClasses(t,e),t},t.prototype.onCalcCssClasses=function(t){e.prototype.onCalcCssClasses.call(this,t),this.survey&&this.survey.updateQuestionCssClasses(this,t),this.onUpdateCssClassesCallback&&this.onUpdateCssClassesCallback(t)},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssRoot","")},enumerable:!1,configurable:!0}),t.prototype.setCssRoot=function(e){this.setPropertyValue("cssRoot",e)},t.prototype.getCssRoot=function(t){var r=this.hasCssError();return new t$().append(e.prototype.getCssRoot.call(this,t)).append(this.isFlowLayout&&!this.isDesignMode?t.flowRoot:t.mainRoot).append(t.titleLeftRoot,!this.isFlowLayout&&this.hasTitleOnLeft).append(t.titleTopRoot,!this.isFlowLayout&&this.hasTitleOnTop).append(t.titleBottomRoot,!this.isFlowLayout&&this.hasTitleOnBottom).append(t.descriptionUnderInputRoot,!this.isFlowLayout&&this.hasDescriptionUnderInput).append(t.hasError,r).append(t.hasErrorTop,r&&"top"==this.getErrorLocation()).append(t.hasErrorBottom,r&&"bottom"==this.getErrorLocation()).append(t.small,!this.width).append(t.answered,this.isAnswered).append(t.noPointerEventsMode,this.isReadOnlyAttr).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssHeader","")},enumerable:!1,configurable:!0}),t.prototype.setCssHeader=function(e){this.setPropertyValue("cssHeader",e)},t.prototype.getCssHeader=function(e){return new t$().append(e.header).append(e.headerTop,this.hasTitleOnTop).append(e.headerLeft,this.hasTitleOnLeft).append(e.headerBottom,this.hasTitleOnBottom).toString()},t.prototype.supportContainerQueries=function(){return!1},Object.defineProperty(t.prototype,"cssContent",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssContent","")},enumerable:!1,configurable:!0}),t.prototype.setCssContent=function(e){this.setPropertyValue("cssContent",e)},t.prototype.getCssContent=function(e){return new t$().append(e.content).append(e.contentSupportContainerQueries,this.supportContainerQueries()).append(e.contentLeft,this.hasTitleOnLeft).toString()},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssTitle","")},enumerable:!1,configurable:!0}),t.prototype.setCssTitle=function(e){this.setPropertyValue("cssTitle",e)},t.prototype.getCssTitle=function(t){return new t$().append(e.prototype.getCssTitle.call(this,t)).append(t.titleOnAnswer,!this.containsErrors&&this.isAnswered).append(t.titleEmpty,!this.title.trim()).toString()},Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssDescription","")},enumerable:!1,configurable:!0}),t.prototype.setCssDescription=function(e){this.setPropertyValue("cssDescription",e)},t.prototype.getCssDescription=function(e){return new t$().append(e.description).append(e.descriptionUnderInput,"underInput"==this.getDescriptionLocation()).toString()},t.prototype.showErrorOnCore=function(e){return!this.showErrorsAboveQuestion&&!this.showErrorsBelowQuestion&&this.getErrorLocation()===e},Object.defineProperty(t.prototype,"showErrorOnTop",{get:function(){return this.showErrorOnCore("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorOnBottom",{get:function(){return this.showErrorOnCore("bottom")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsOutsideQuestion",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsAboveQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"top"===this.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showErrorsBelowQuestion",{get:function(){return this.showErrorsOutsideQuestion&&"bottom"===this.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.ensureElementCss(),this.getPropertyValue("cssError","")},enumerable:!1,configurable:!0}),t.prototype.setCssError=function(e){this.setPropertyValue("cssError",e)},t.prototype.getCssError=function(e){return new t$().append(e.error.root).append(e.errorsContainer,this.showErrorsBelowQuestion||this.showErrorsAboveQuestion).append(e.errorsContainerTop,this.showErrorsAboveQuestion).append(e.errorsContainerBottom,this.showErrorsBelowQuestion).append(e.error.locationTop,this.showErrorOnTop).append(e.error.locationBottom,this.showErrorOnBottom).toString()},t.prototype.hasCssError=function(){return this.errors.length>0||this.hasCssErrorCallback()},t.prototype.getRootCss=function(){return new t$().append(this.cssRoot).append(this.cssClasses.mobile,this.isMobile).append(this.cssClasses.readOnly,this.isReadOnlyStyle).append(this.cssClasses.disabled,this.isDisabledStyle).append(this.cssClasses.preview,this.isPreviewStyle).append(this.cssClasses.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getQuestionRootCss=function(){return new t$().append(this.cssClasses.root).append(this.cssClasses.rootMobile,this.isMobile).toString()},t.prototype.updateElementCss=function(t){this.wasRendered?(e.prototype.updateElementCss.call(this,t),t&&this.updateQuestionCss(!0)):this.isRequireUpdateElements=!0,this.resetIndents()},t.prototype.onFirstRenderingCore=function(){this.isRequireUpdateElements&&(this.isRequireUpdateElements=!1,this.updateElementCss(!0)),e.prototype.onFirstRenderingCore.call(this)},t.prototype.updateQuestionCss=function(e){!this.isLoadingFromJson&&this.survey&&(this.wasRendered?this.updateElementCssCore(this.cssClasses):this.isRequireUpdateElements=!0)},t.prototype.ensureElementCss=function(){!this.cssClassesValue&&this.updateQuestionCss(!0)},t.prototype.updateElementCssCore=function(e){this.setCssRoot(this.getCssRoot(e)),this.setCssHeader(this.getCssHeader(e)),this.setCssContent(this.getCssContent(e)),this.setCssTitle(this.getCssTitle(e)),this.setCssDescription(this.getCssDescription(e)),this.setCssError(this.getCssError(e))},t.prototype.updateCssClasses=function(e,t){if(t.question){var r=t[this.getCssType()],n=new t$().append(e.title).append(t.question.titleRequired,this.isRequired);e.title=n.toString();var o=new t$().append(e.root).append(r,this.isRequired&&!!t.question.required);if(null==r)e.root=o.toString();else if("string"==typeof r||r instanceof String)e.root=o.append(r.toString()).toString();else for(var i in e.root=o.toString(),r)e[i]=r[i]}},t.prototype.getCssType=function(){return this.getType()},Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return this.cssClasses.root||void 0},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.getIndentSize=function(e){return!(e<1)&&this.getSurvey()&&this.cssClasses&&this.cssClasses.indent?e*this.cssClasses.indent+"px":""},t.prototype.focus=function(e,t){var r=this;if(void 0===e&&(e=!1),!this.isDesignMode&&this.isVisible&&this.survey){var n=this.page;if(n&&this.survey.activePage!==n)this.survey.focusQuestionByInstance(this,e);else if(this.survey){this.expandAllParents();var o=this.survey.isSmoothScrollEnabled?{behavior:"smooth"}:void 0;this.survey.scrollElementToTop(this,this,null,this.id,t,o,void 0,function(){r.focusInputElement(e)})}else this.focusInputElement(e)}},t.prototype.focusInputElement=function(e){var t,r=e?this.getFirstErrorInputElementId():this.getFirstInputElementId(),n=null===(t=this.survey)||void 0===t?void 0:t.rootElement;rw.FocusElement(r,!1,n)&&this.fireCallback(this.focusCallback)},Object.defineProperty(t.prototype,"isValidateVisitedEmptyFields",{get:function(){return this.supportEmptyValidation()&&!!this.survey&&this.survey.getValidateVisitedEmptyFields()&&this.isEmpty()},enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return!1},t.prototype.onBlur=function(e){this.onBlurCore(e)},t.prototype.onFocus=function(e){this.onFocusCore(e)},t.prototype.onBlurCore=function(e){this.isFocusEmpty&&this.isEmpty()&&this.validate(!0)},t.prototype.onFocusCore=function(e){this.isFocusEmpty=this.isValidateVisitedEmptyFields},t.prototype.expandAllParents=function(){this.expandAllParentsCore(this)},t.prototype.expandAllParentsCore=function(e){e&&(e.isCollapsed&&e.expand(),this.expandAllParentsCore(e.parent),this.expandAllParentsCore(e.parentQuestion))},t.prototype.focusIn=function(){this.survey&&!this.isDisposed&&!this.isContainer&&this.survey.whenQuestionFocusIn(this)},t.prototype.fireCallback=function(e){e&&e()},t.prototype.getOthersMaxLength=function(){return this.survey?this.survey.maxOthersLength>0?this.survey.maxOthersLength:null:null},t.prototype.onCreating=function(){},t.prototype.getFirstQuestionToFocus=function(e){return this.hasInput&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.inputId},t.prototype.getFirstErrorInputElementId=function(){return this.getFirstInputElementId()},t.prototype.getProcessedTextValue=function(e){var r=e.name.toLocaleLowerCase();e.isExists=-1!==Object.keys(t.TextPreprocessorValuesMap).indexOf(r)||void 0!==this[e.name],e.value=this[t.TextPreprocessorValuesMap[r]||e.name]},t.prototype.supportComment=function(){var e=this.getPropertyByName("showCommentArea");return!e||e.visible},t.prototype.supportOther=function(){return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCommentArea",{get:function(){return this.getPropertyValue("showCommentArea",!1)},set:function(e){this.supportComment()&&this.setPropertyValue("showCommentArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasComment",{get:function(){return this.showCommentArea},set:function(e){this.showCommentArea=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaTitleId",{get:function(){return this.id+"_ariaTitle"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescriptionId",{get:function(){return this.id+"_ariaDescription"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentId",{get:function(){return this.id+"_comment"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showOtherItem",{get:function(){return this.getPropertyValue("showOtherItem",!1)},set:function(e){this.supportOther()&&this.showOtherItem!=e&&(this.setPropertyValue("showOtherItem",e),this.hasOtherChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.showOtherItem},set:function(e){this.showOtherItem=e},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){},Object.defineProperty(t.prototype,"requireUpdateCommentValue",{get:function(){return this.hasComment||this.hasOther},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.parentQuestion&&this.parentQuestion.isReadOnly,r=!!this.survey&&this.survey.isDisplayMode,n=!!this.readOnlyCallback&&this.readOnlyCallback();return this.readOnly||e||r||t||n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInputReadOnly",{get:function(){return void 0!==this.forceIsInputReadOnly?this.forceIsInputReadOnly:this.isReadOnly||this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputReadOnly",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputDisabled",{get:function(){return this.isInputReadOnly?"":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return this.isDesignModeV2||!!this.readOnlyCallback&&this.readOnlyCallback()},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){this.setPropertyValue("isInputReadOnly",this.isInputReadOnly),e.prototype.onReadOnlyChanged.call(this),this.isReadOnly&&this.clearErrors(),this.updateQuestionCss(),this.resetRenderedCommentPlaceholder()},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){},t.prototype.runCondition=function(e,t){!this.isDesignMode&&(!t&&(t={}),t.question=this,this.runConditionCore(e,t),!this.isValueChangedDirectly&&(!this.isClearValueOnHidden||this.isVisibleInSurvey)&&(this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.runDefaultValueExpression(this.defaultValueRunner,e,t)))},Object.defineProperty(t.prototype,"isInDesignMode",{get:function(){return!this.isContentElement&&this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isInDesignModeV2",{get:function(){return!this.isContentElement&&this.isDesignModeV2},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"no",{get:function(){return this.getPropertyValue("no")},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){if(!this.hasTitle||this.hideNumber)return"";var e,t=null===(e=this.parent)||void 0===e?void 0:e.visibleIndex,r=eA.getNumberByIndex(this.visibleIndex,this.getStartIndex(),t);return this.survey&&(r=this.survey.getUpdatedQuestionNo(this,r)),r},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.onSurveyLoad=function(){this.isCustomWidgetRequested=!1,this.fireCallback(this.surveyLoadCallback),this.updateValueWithDefaults(),this.isEmpty()&&this.initDataFromSurvey()},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),!this.isDesignMode&&this.survey&&!this.isLoadingFromJson&&(this.initDataFromSurvey(),this.onSurveyValueChanged(this.value),this.updateValueWithDefaults(),this.updateIsAnswered())},t.prototype.initDataFromSurvey=function(){if(this.data){var e=this.data.getValue(this.getValueName());(!eA.isValueEmpty(e)||!this.isLoadingFromJson)&&this.updateValueFromSurvey(e),this.initCommentFromSurvey()}},t.prototype.initCommentFromSurvey=function(){this.data&&this.requireUpdateCommentValue?this.updateCommentFromSurvey(this.data.getComment(this.getValueName())):this.updateCommentFromSurvey("")},t.prototype.runExpression=function(e){if(this.survey&&e)return this.survey.runExpression(e)},Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.survey&&this.survey.commentAreaRows},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.survey&&this.survey.autoGrowComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.survey&&this.survey.allowResizeComment},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionValue",{get:function(){return this.getPropertyValueWithoutDefault("value")},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionComment",{get:function(){return this.getPropertyValueWithoutDefault("comment")},set:function(e){this.setPropertyValue("comment",e),this.fireCallback(this.commentChangedCallback)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValueCore()},set:function(e){this.setNewValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredValue=function(){return this.value},t.prototype.getFilteredName=function(){return this.getValueName()},Object.defineProperty(t.prototype,"valueForSurvey",{get:function(){return this.valueForSurveyCore(this.value)},enumerable:!1,configurable:!0}),t.prototype.valueForSurveyCore=function(e){return this.valueToDataCallback?this.valueToDataCallback(e):e},t.prototype.valueFromDataCore=function(e){return this.valueFromDataCallback?this.valueFromDataCallback(e):e},t.prototype.clearValue=function(e){void 0!==this.value&&(this.value=void 0),this.comment&&!0!==e&&(this.comment=void 0),this.setValueChangedDirectly(!1)},t.prototype.clearValueOnly=function(){this.clearValue(!0)},t.prototype.unbindValue=function(){this.clearValue()},t.prototype.createValueCopy=function(){return this.getUnbindValue(this.value)},t.prototype.initDataUI=function(){},t.prototype.getUnbindValue=function(e){return this.isValueSurveyElement(e)?e:eA.getUnbindValue(e)},t.prototype.isValueSurveyElement=function(e){return!!e&&(Array.isArray(e)?e.length>0&&this.isValueSurveyElement(e[0]):!!e.getType&&!!e.onPropertyChanged)},t.prototype.canClearValueAsInvisible=function(e){return"onHiddenContainer"===e&&!this.isParentVisible||!this.isVisibleInSurvey&&(!this.page||!this.page.isStartPage)&&(!this.survey||!this.survey.hasVisibleQuestionByValueName(this.getValueName()))},Object.defineProperty(t.prototype,"isParentVisible",{get:function(){if(this.parentQuestion&&!this.parentQuestion.isVisible)return!1;for(var e=this.parent;e;){if(!e.isVisible)return!1;e=e.parent}return!0},enumerable:!1,configurable:!0}),t.prototype.clearValueIfInvisible=function(e){void 0===e&&(e="onHidden");var t=this.getClearIfInvisible();if("none"!==t&&("onHidden"!==e||"onComplete"!==t))("onHiddenContainer"!==e||t===e)&&this.clearValueIfInvisibleCore(e)},t.prototype.clearValueIfInvisibleCore=function(e){this.canClearValueAsInvisible(e)&&this.clearValue()},Object.defineProperty(t.prototype,"clearIfInvisible",{get:function(){return this.getPropertyValue("clearIfInvisible")},set:function(e){this.setPropertyValue("clearIfInvisible",e)},enumerable:!1,configurable:!0}),t.prototype.getClearIfInvisible=function(){var e=this.clearIfInvisible;return this.survey?this.survey.getQuestionClearIfInvisible(e):"default"!==e?e:"onComplete"},Object.defineProperty(t.prototype,"displayValue",{get:function(){return this.isLoadingFromJson?"":this.getDisplayValue(!0)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValue=function(e,t){void 0===t&&(t=void 0);var r=this.calcDisplayValue(e,t);return this.survey&&(r=this.survey.getQuestionDisplayValue(this,r)),this.displayValueCallback?this.displayValueCallback(r):r},t.prototype.calcDisplayValue=function(e,t){if(void 0===t&&(t=void 0),this.customWidget){var r=this.customWidget.getDisplayValue(this,t);if(r)return r}return(t=void 0==t?this.createValueCopy():t,this.isValueEmpty(t,!this.allowSpaceAsAnswer))?this.getDisplayValueEmpty():this.getDisplayValueCore(e,t)},t.prototype.getDisplayValueCore=function(e,t){return t},t.prototype.getDisplayValueEmpty=function(){return""},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){if(this.isValueExpression(e)){this.defaultValueExpression=e.substring(1);return}this.setPropertyValue("defaultValue",this.convertDefaultValue(e)),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.getPropertyValue("defaultValueExpression")},set:function(e){this.setPropertyValue("defaultValueExpression",e),this.defaultValueRunner=void 0,this.updateV
1alueWithDefaults()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.getPropertyValue("resetValueIf")},set:function(e){this.setPropertyValue("resetValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.getPropertyValue("setValueIf")},set:function(e){this.setPropertyValue("setValueIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.getPropertyValue("setValueExpression")},set:function(e){this.setPropertyValue("setValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.allowResizeComment?"both":"none"},enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(e){var t=this;if(!e&&(e={includeEmpty:!0,includeQuestionTypes:!1}),e.includeEmpty||!this.isEmpty()){var r={name:this.name,title:this.locTitle.renderedHtml,value:this.value,displayValue:this.displayValue,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}};return!0===e.includeQuestionTypes&&(r.questionType=this.getType()),(e.calculations||[]).forEach(function(e){r[e.propertyName]=t.getPlainDataCalculatedValue(e.propertyName)}),this.hasComment&&(r.isNode=!0,r.data=[{name:0,isComment:!0,title:"Comment",value:r9.commentSuffix,displayValue:this.comment,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}]),r}},t.prototype.getPlainDataCalculatedValue=function(e){return this[e]},Object.defineProperty(t.prototype,"correctAnswer",{get:function(){return this.getPropertyValue("correctAnswer")},set:function(e){this.setPropertyValue("correctAnswer",this.convertDefaultValue(e))},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"quizQuestionCount",{get:function(){return this.isVisible&&this.hasInput&&!this.isValueEmpty(this.correctAnswer)?this.getQuizQuestionCount():0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"correctAnswerCount",{get:function(){return this.isEmpty()||this.isValueEmpty(this.correctAnswer)?0:this.getCorrectAnswerCount()},enumerable:!1,configurable:!0}),t.prototype.getQuizQuestionCount=function(){return 1},t.prototype.getCorrectAnswerCount=function(){return this.checkIfAnswerCorrect()?1:0},t.prototype.checkIfAnswerCorrect=function(){var e=eA.isTwoValueEquals(this.value,this.correctAnswer,this.getAnswerCorrectIgnoreOrder(),r9.comparator.caseSensitive,!0),t=e?1:0,r=this.quizQuestionCount-t,n={result:e,correctAnswers:t,correctAnswerCount:t,incorrectAnswers:r,incorrectAnswerCount:r};return this.survey&&this.survey.onCorrectQuestionAnswer(this,n),n.result},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.correctAnswerCount==this.quizQuestionCount},t.prototype.updateValueWithDefaults=function(){if(!(this.isLoadingFromJson||!this.isDesignMode&&this.isDefaultValueEmpty()||!this.isDesignMode&&!this.isEmpty()||this.isEmpty()&&this.isDefaultValueEmpty())&&(!this.isClearValueOnHidden||!!this.isVisible))!(this.isDesignMode&&this.isContentElement&&this.isDefaultValueEmpty())&&this.setDefaultValue()},Object.defineProperty(t.prototype,"isValueDefault",{get:function(){return!this.isEmpty()&&(this.isTwoValueEquals(this.defaultValue,this.value)||!this.isValueChangedDirectly&&!!this.defaultValueExpression)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isClearValueOnHidden",{get:function(){var e=this.getClearIfInvisible();return"none"!==e&&"onComplete"!==e&&("onHidden"===e||"onHiddenContainer"===e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){return null},t.prototype.getDefaultValue=function(){return this.defaultValue},t.prototype.isDefaultValueEmpty=function(){return!this.defaultValueExpression&&this.isValueEmpty(this.defaultValue,!this.allowSpaceAsAnswer)},t.prototype.getDefaultRunner=function(e,t){return!e&&t&&(e=this.createExpressionRunner(t)),e&&(e.expression=t),e},t.prototype.setDefaultValue=function(){var e=this;this.setDefaultValueCore(function(t){!e.isTwoValueEquals(e.value,t)&&(e.value=t)})},t.prototype.setDefaultValueCore=function(e){this.defaultValueRunner=this.getDefaultRunner(this.defaultValueRunner,this.defaultValueExpression),this.setValueAndRunExpression(this.defaultValueRunner,this.getUnbindValue(this.defaultValue),function(t){return e(t)})},t.prototype.isValueExpression=function(e){return!!e&&"string"==typeof e&&e.length>0&&"="==e[0]},t.prototype.setValueAndRunExpression=function(e,t,r,n,o){var i=this;void 0===n&&(n=null),void 0===o&&(o=null);var s=function(e){i.runExpressionSetValueCore(e,r)};!this.runDefaultValueExpression(e,n,o,s)&&s(t)},t.prototype.convertFuncValuetoQuestionValue=function(e){return eA.convertValToQuestionVal(e)},t.prototype.runExpressionSetValueCore=function(e,t){t(this.convertFuncValuetoQuestionValue(e))},t.prototype.runExpressionSetValue=function(e){var t=this;this.runExpressionSetValueCore(e,function(e){!t.isTwoValueEquals(t.value,e)&&(t.startSetValueOnExpression(),t.value=e,t.finishSetValueOnExpression())})},t.prototype.startSetValueOnExpression=function(){var e;null===(e=this.survey)||void 0===e||e.startSetValueOnExpression()},t.prototype.finishSetValueOnExpression=function(){var e;null===(e=this.survey)||void 0===e||e.finishSetValueOnExpression()},t.prototype.runDefaultValueExpression=function(e,t,r,n){var o=this;return void 0===t&&(t=null),void 0===r&&(r=null),!!e&&!!this.data&&(!n&&(n=function(e){o.runExpressionSetValue(e)}),!t&&(t=this.defaultValueExpression?this.data.getFilteredValues():{}),!r&&((r=this.defaultValueExpression?this.data.getFilteredProperties():{}).question=this),e&&e.canRun&&(e.onRunComplete=function(e){void 0==e&&(e=o.defaultValue),o.isChangingViaDefaultValue=!0,n(e),o.isChangingViaDefaultValue=!1},e.run(t,r)),!0)},Object.defineProperty(t.prototype,"comment",{get:function(){return this.getQuestionComment()},set:function(e){if(e){var t=e.toString().trim();t!==e&&(e=t)===this.comment&&this.setPropertyValueDirectly("comment",e)}this.comment!=e&&(this.setQuestionComment(e),this.updateCommentElements())}
vendor: 23,837 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype.getCommentAreaCss=function(e){return void 0===e&&(e=!1),new t$().append("form-group",e).append(this.cssClasses.formGroup,!e).append(this.cssClasses.commentArea).toString()},t.prototype.getQuestionComment=function(){return this.questionComment},t.prototype.setQuestionComment=function(e){this.setNewComment(e)},t.prototype.isEmpty=function(){return this.isValueEmpty(this.value,!this.allowSpaceAsAnswer)},Object.defineProperty(t.prototype,"isAnswered",{get:function(){return this.getPropertyValue("isAnswered")||!1},set:function(e){this.setPropertyValue("isAnswered",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsAnswered=function(){var e=this.isAnswered;this.setPropertyValue("isAnswered",this.getIsAnswered()),e!==this.isAnswered&&this.updateQuestionCss()},t.prototype.getIsAnswered=function(){return!this.isEmpty()},Object.defineProperty(t.prototype,"validators",{get:function(){return this.getPropertyValue("validators")},set:function(e){this.setPropertyValue("validators",e)},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},t.prototype.getSupportedValidators=function(){for(var e=[],t=this.getType();t;){var r=r9.supportedValidators[t];if(r)for(var n=r.length-1;n>=0;n--)e.splice(0,0,r[n]);t=e6.findClass(t).parentName}return e},t.prototype.addConditionObjectsByContext=function(e,t){e.push({name:this.getFilteredName(),text:this.processedTitle,question:this})},t.prototype.getNestedQuestions=function(e){void 0===e&&(e=!1);var t=[];return(this.collectNestedQuestions(t,e),1===t.length&&t[0]===this)?[]:t},t.prototype.collectNestedQuestions=function(e,t){void 0===t&&(t=!1),(!t||this.isVisible)&&this.collectNestedQuestionsCore(e,t)},t.prototype.collectNestedQuestionsCore=function(e,t){e.push(this)},t.prototype.getConditionJson=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null);var r=new e3().toJsonObject(this);return r.type=this.getType(),r},t.prototype.hasErrors=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=null);var r=this.checkForErrors(!!t&&!0===t.isOnValueChanged,e);return e&&(this.survey&&this.survey.beforeSettingQuestionErrors(this,r),this.errors=r,this.errors!==r&&this.errors.forEach(function(e){return e.locText.strChanged()})),this.updateContainsErrors(),this.isCollapsed&&t&&e&&r.length>0&&this.expand(),r.length>0},t.prototype.validate=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),t&&t.isOnValueChanged&&this.parent&&this.parent.validateContainerOnly(),!this.hasErrors(e,t)},Object.defineProperty(t.prototype,"currentErrorCount",{get:function(){return this.errors.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return null!=this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),t.prototype.addError=function(e){if(e){var t=null;t="string"==typeof e||e instanceof String?this.addCustomError(e):e,this.errors.push(t)}},t.prototype.addCustomError=function(e){return new nf(e,this.survey)},t.prototype.removeError=function(e){if(!e)return!1;var t=this.errors,r=t.indexOf(e);return -1!==r&&t.splice(r,1),-1!==r},t.prototype.checkForErrors=function(e,t){var r=[];return this.isVisible&&this.canCollectErrors()&&this.collectErrors(r,e,t),r},t.prototype.canCollectErrors=function(){return!this.isReadOnly||r9.readOnly.enableValidation},t.prototype.collectErrors=function(e,t,r){if(this.onCheckForErrors(e,t,r),!(e.length>0)&&this.canRunValidators(t)){var n=this.runValidators();if(n.length>0){e.length=0;for(var o=0;o<n.length;o++)e.push(n[o])}if(this.survey&&0==e.length){var i=this.fireSurveyValidation();i&&e.push(i)}}},t.prototype.canRunValidators=function(e){return!0},t.prototype.fireSurveyValidation=function(){return this.validateValueCallback?this.validateValueCallback():this.survey?this.survey.validateQuestion(this):null},t.prototype.onCheckForErrors=function(e,t,r){var n=this;if((!t||this.isOldAnswered)&&this.hasRequiredError()){var o=new nr(this.requiredErrorText,this);o.onUpdateErrorTextCallback=function(e){e.text=n.requiredErrorText},e.push(o)}if(!this.isEmpty()&&this.customWidget){var i=this.customWidget.validate(this);i&&e.push(this.addCustomError(i))}},t.prototype.hasRequiredError=function(){return this.isRequired&&this.isEmpty()},Object.defineProperty(t.prototype,"isRunningValidators",{get:function(){return this.getIsRunningValidators()},enumerable:!1,configurable:!0}),t.prototype.getIsRunningValidators=function(){return this.isRunningValidatorsValue},t.prototype.runValidators=function(){var e=this;return this.validatorRunner&&(this.validatorRunner.onAsyncCompleted=null),this.validatorRunner=new nb,this.isRunningValidatorsValue=!0,this.validatorRunner.onAsyncCompleted=function(t){e.doOnAsyncCompleted(t)},this.validatorRunner.run(this)},t.prototype.doOnAsyncCompleted=function(e){for(var t=0;t<e.length;t++)this.errors.push(e[t]);this.isRunningValidatorsValue=!1,this.raiseOnCompletedAsyncValidators()},t.prototype.raiseOnCompletedAsyncValidators=function(){this.onCompletedAsyncValidators&&!this.isRunningValidators&&(this.onCompletedAsyncValidators(this.getAllErrors().length>0),this.onCompletedAsyncValidators=null)},t.prototype.setNewValue=function(e){if(!this.isNewValueEqualsToValue(e))this.checkIsValueCorrect(e)&&(this.isOldAnswered=this.isAnswered,this.isSettingQuestionValue=!0,this.setNewValueInData(e),this.allowNotifyValueChanged&&this.onValueChanged(),this.isSettingQuestionValue=!1,this.isAnswered!==this.isOldAnswered&&this.updateQuestionCss(),this.isOldAnswered=void 0,this.parent&&this.parent.onQuestionValueChanged(this))},t.prototype.checkIsValueCorrect=function(e){var t=this.isValueEmpty(e,!this.allowSpaceAsAnswer)||this.isNewValueCorrect(e);return!t&&te.inCorrectQuestionValue(this.name,e),t},t.prototype.isNewValueCorrect=function(e){return!0},t.prototype.isNewValueEqualsToValue=function(e){var t=this.value;return!!this.isTwoValueEquals(e,t,!1,!1)&&!(e===t&&t&&(Array.isArray(t)||"object"==typeof t))},t.prototype.isTextValue=function(){return!1},t.prototype.getIsInputTextUpdate=function(){return!!this.survey&&this.survey.isUpdateValueTextOnTyping},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getDataLocNotification=function(){return!!this.isInputTextUpdate&&"text"},Object.defineProperty(t.prototype,"isInputTextUpdate",{get:function(){return this.getIsInputTextUpdate()&&this.isTextValue()},enumerable:!1,configurable:!0}),t.prototype.setNewValueInData=function(e){e=this.valueToData(e),!this.isValueChangedInSurvey&&this.setValueCore(e)},t.prototype.getValueCore=function(){return this.questionValue},t.prototype.setValueCore=function(e){this.setQuestionValue(e),null!=this.data&&this.canSetValueToSurvey()&&(e=this.valueForSurvey,this.data.setValue(this.getValueName(),e,this.getDataLocNotification(),this.allowNotifyValueChanged,this.name)),this.isMouseDown=!1},t.prototype.canSetValueToSurvey=function(){return!0},t.prototype.valueFromData=function(e){return e},t.prototype.valueToData=function(e){return e},t.prototype.convertToCorrectValue=function(e){return e},t.prototype.onValueChanged=function(){},t.prototype.onMouseDown=function(){this.isMouseDown=!0},t.prototype.setNewComment=function(e){this.questionComment!==e&&(this.questionComment=e,this.setCommentIntoData(e))},t.prototype.setCommentIntoData=function(e){null!=this.data&&this.data.setComment(this.getValueName(),e,!!this.getIsInputTextUpdate()&&"text")},t.prototype.getValidName=function(e){return nD(e)},t.prototype.updateValueFromSurvey=function(e,t){var r=this;if(void 0===t&&(t=!1),e=this.getUnbindValue(e),e=this.valueFromDataCore(e),this.checkIsValueCorrect(e)){var n=this.isValueEmpty(e);!n&&this.defaultValueExpression?this.setDefaultValueCore(function(t){r.updateValueFromSurveyCore(e,r.isTwoValueEquals(e,t))}):(this.updateValueFromSurveyCore(e,this.data!==this.getSurvey()),t&&n&&(this.isValueChangedDirectly=!1)),this.updateDependedQuestions(),this.updateIsAnswered()}},t.prototype.updateValueFromSurveyCore=function(e,t){this.isChangingViaDefaultValue=t,this.setQuestionValue(this.valueFromData(e)),this.isChangingViaDefaultValue=!1},t.prototype.updateCommentFromSurvey=function(e){this.questionComment=e},t.prototype.onChangeQuestionValue=function(e){},t.prototype.setValueChangedDirectly=function(e){this.isValueChangedDirectly=e,this.setValueChangedDirectlyCallback&&this.setValueChangedDirectlyCallback(e)},t.prototype.setQuestionValue=function(e,t){void 0===t&&(t=!0),e=this.convertToCorrectValue(e);var r=this.isTwoValueEquals(this.questionValue,e);!r&&!this.isChangingViaDefaultValue&&!this.isParentChangingViaDefaultValue&&this.setValueChangedDirectly(!0),this.questionValue=e,!r&&this.onChangeQuestionValue(e),!r&&this.allowNotifyValueChanged&&this.fireCallback(this.valueChangedCallback),t&&this.updateIsAnswered()},Object.defineProperty(t.prototype,"isParentChangingViaDefaultValue",{get:function(){var e;return(null===(e=this.data)||void 0===e?void 0:e.isChangingViaDefaultValue)===!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(e){},t.prototype.setVisibleIndex=function(e){return(!this.isVisible||!this.hasTitle&&!r9.numbering.includeQuestionsWithHiddenTitle||this.hideNumber&&!r9.numbering.includeQuestionsWithHiddenNumber)&&(e=-1),this.setPropertyValue("visibleIndex",e),this.setPropertyValue("no",this.calcNo()),e<0?0:1},t.prototype.removeElement=function(e){return!1},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.supportGoNextPageError=function(){return!0},t.prototype.clearIncorrectValues=function(){},t.prototype.clearOnDeletingContainer=function(){},t.prototype.clearErrors=function(){this.errors=[]},t.prototype.clearUnusedValues=function(){},t.prototype.onAnyValueChanged=function(e,t){},t.prototype.checkBindings=function(e,t){if(!this.bindings.isEmpty()&&this.data){for(var r=this.bindings.getPropertiesByValueName(e),n=0;n<r.length;n++){var o=r[n];this.isValueEmpty(t)&&eA.isNumber(this[o])&&(t=0),this.updateBindingProp(o,t)}}},t.prototype.updateBindingProp=function(e,t){this[e]=t},t.prototype.getComponentName=function(){return nO.Instance.getRendererByQuestion(this)},t.prototype.isDefaultRendering=function(){return!!this.customWidget||"default"===this.getComponentName()},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.getValidatorTitle=function(){return null},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.processPopupVisiblilityChanged=function(e,t){this.survey.processPopupVisiblityChanged(this,e,t)},t.prototype.processOpenDropdownMenu=function(e){this.survey.processOpenDropdownMenu(this,e)},t.prototype.onTextKeyDownHandler=function(e){13===e.keyCode&&this.survey.questionEditFinishCallback(this,e)},t.prototype.transformToMobileView=function(){},t.prototype.transformToDesktopView=function(){},t.prototype.needResponsiveWidth=function(){return!1},t.prototype.supportResponsiveness=function(){return!1},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme&&!this.isDesignMode},t.prototype.checkForResponsiveness=function(e){var t=this;this.needResponsiveness()&&(this.isCollapsed?this.registerPropertyChangedHandlers(["state"],function(){t.isExpanded&&(t.initResponsiveness(e),t.unregisterPropertyChangedHandlers(["state"],"for-responsiveness"))},"for-responsiveness"):this.initResponsiveness(e))},t.prototype.getObservedElementSelector=function(){return".sd-scrollable-container"},t.prototype.onMobileChanged=function(){this.onMobileChangedCallback&&this.onMobileChangedCallback()},t.prototype.triggerResponsiveness=function(e){void 0===e&&(e=!0),this.triggerResponsivenessCallback&&this.triggerResponsivenessCallback(e)},t.prototype.initResponsiveness=function(e){var t=this;if(this.destroyResizeObserver(),e&&this.isDefaultRendering()){var r=this.getObservedElementSelector();if(!r||!e.querySelector(r))return;var n=!1,o=void 0;this.triggerResponsivenessCallback=function(i){i&&(o=void 0,t.renderAs="default",n=!1);var s=function(){var i=e.querySelector(r);!o&&t.isDefaultRendering()&&(o=i.scrollWidth),n=!n&&!!rY(i)&&t.processResponsiveness(o,rK(i))};i?setTimeout(s,1):s()},this.resizeObserver=new ResizeObserver(function(e){e_.requestAnimationFrame(function(){t.triggerResponsiveness(!1)})}),this.onMobileChangedCallback=function(){setTimeout(function(){var n=e.querySelector(r);t.processResponsiveness(o,rK(n))},0)},this.resizeObserver.observe(e)}},t.prototype.getCompactRenderAs=function(){return"default"},t.prototype.getDesktopRenderAs=function(){return"default"},t.prototype.onBeforeSetCompactRenderer=function(){},t.prototype.onBeforeSetDesktopRenderer=function(){},t.prototype.processResponsiveness=function(e,t){if(Math.abs(e-(t=Math.round(t)))>2){var r=this.renderAs;return e>t?(this.onBeforeSetCompactRenderer(),this.renderAs=this.getCompactRenderAs()):(this.onBeforeSetDesktopRenderer(),this.renderAs=this.getDesktopRenderAs()),r!==this.renderAs}return!1},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.onMobileChangedCallback=void 0,this.triggerResponsivenessCallback=void 0,this.renderAs=this.getDesktopRenderAs())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.resetDependedQuestions(),this.destroyResizeObserver()},t.prototype.resetDependedQuestions=function(){for(var e=0;e<this.dependedQuestions.length;e++)this.dependedQuestions[e].resetDependedQuestion()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabel",{get:function(){return this.isNewA11yStructure?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRole",{get:function(){return this.isNewA11yStructure?null:"textbox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return this.isNewA11yStructure?null:this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaInvalid",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaLabelledBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaDescribedBy",{get:function(){return this.isNewA11yStructure?null:this.hasTitle&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaErrormessage",{get:function(){return this.isNewA11yStructure?null:this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return this.isRequired?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaInvalid",{get:function(){return this.hasCssError()?"true":"false"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.hasTitle&&!this.parentQuestion?null:this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return this.hasTitle&&!this.parentQuestion?this.ariaTitleId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return this.hasTitle&&!this.parentQuestion&&this.hasDescription?this.ariaDescriptionId:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaErrormessage",{get:function(){return this.hasCssError()?this.id+"_errors":null},enumerable:!1,configurable:!0}),t.TextPreprocessorValuesMap={title:"processedTitle",require:"requiredText"},t.questionCounter=100,nE([eW({defaultValue:!1})],t.prototype,"_isMobile",void 0),nE([eW()],t.prototype,"forceIsInputReadOnly",void 0),nE([eW()],t.prototype,"ariaExpanded",void 0),nE([eW({localizable:!0,onSet:function(e,t){return t.resetRenderedCommentPlaceholder()}})],t.prototype,"commentPlaceholder",void 0),nE([eW()],t.prototype,"renderAs",void 0),nE([eW({defaultValue:!1})],t.prototype,"inMatrixMode",void 0),t}(rw);function nD(e){if(!e)return e;for(e=e.trim().replace(/[\{\}]+/g,"");e&&e[0]===r9.expressionDisableConversionChar;)e=e.substring(1);return e}e6.addClass("question",[{name:"!name",onSettingValue:function(e,t){return nD(t)}},{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"useDisplayValuesInDynamicTexts:boolean",alternativeName:"useDisplayValuesInTitle",default:!0,layout:"row"},"visibleIf:condition",{name:"width"},{name:"minWidth",defaultFunc:function(){return r9.minWidth}},{name:"maxWidth",defaultFunc:function(){return r9.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(e){return e.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(e){return!!e&&!!e.survey&&e.survey.gridLayoutEnabled}},{name:"startWithNewLine:boolean",default:!0,layout:"row"},{name:"indent:number",default:0,choices:[0,1,2,3],layout:"row"},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"title:text",serializationProperty:"locTitle",layout:"row",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.getDefaultTitle())}},{name:"titleLocation",default:"default",choices:["default","top","bottom","left","hidden"],layout:"row"},{name:"description:text",serializationProperty:"locDescription",layout:"row"},{name:"descriptionLocation",default:"default",choices:["default","underInput","underTitle"]},{name:"hideNumber:boolean",dependsOn:"titleLocation",visibleIf:function(e){if(!e)return!0;if("hidden"===e.titleLocation)return!1;var t=e?e.parent:null;if(!(!t||"off"!==t.showQuestionNumbers))return!1;var r=e?e.survey:null;return!r||"off"!==r.showQuestionNumbers||!!t&&"onpanel"===t.showQuestionNumbers}},{name:"valueName",onSettingValue:function(e,t){return nD(t)}},"enableIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression","defaultValue:value",{name:"defaultValueExpression:expression",category:"logic"},"correctAnswer:value",{name:"clearIfInvisible",default:"default",choices:["default","none","onComplete","onHidden","onHiddenContainer"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},"requiredIf:condition",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"errorLocation",default:"default",choices:["default","top","bottom"]},{name:"readOnly:switch",overridingProperty:"enableIf"},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"bindings:bindings",serializationProperty:"bindings",visibleIf:function(e){return e.bindings.getNames().length>0}},{name:"renderAs",default:"default",visible:!1},{name:"showCommentArea",visible:!1,default:!1,alternativeName:"hasComment",category:"general"},{name:"commentText",dependsOn:"showCommentArea",visibleIf:function(e){return e.showCommentArea},serializationProperty:"locCommentText"},{name:"commentPlaceholder",alternativeName:"commentPlaceHolder",serializationProperty:"locCommentPlaceholder",dependsOn:"showCommentArea",visibleIf:function(e){return e.hasComment}}]),e6.addAlterNativeClassName("question","questionbase");var nk=(x=function(e,t){return(x=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}x(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),nA=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},nL=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="itemvalue");var o=e.call(this)||this;return o.typeName=n,o.ownerPropertyName="",o.locTextValue=new rV(o,!0,"text"),o.locTextValue.onStrChanged=function(e,t){t==o.value&&(t=void 0),o.propertyValueChanged("text",e,t)},o.locTextValue.onGetTextCallback=function(e){return e||(eA.isValueEmpty(o.value)?null:o.value.toString())},r&&(o.locText.text=r),t&&"object"==typeof t?o.setData(t,!0):o.setValue(t,!0),"itemvalue"!=o.getType()&&e$.createProperties(o),o.data=o,o.onCreating(),o}return nk(t,e),t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},Object.defineProperty(t,"Separator",{get:function(){return r9.itemValueSeparator},set:function(e){r9.itemValueSeparator=e},enumerable:!1,configurable:!0}),t.setData=function(e,t,r){e.length=0;for(var n=0;n<t.length;n++){var o=t[n],i=o&&"function"==typeof o.getType?o.getType():null!=r?r:"itemvalue",s=e6.createClass(i);s.setData(o),o.originalItem&&(s.originalItem=o.originalItem),e.push(s)}},t.getData=function(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].getData());return t},t.getItemByValue=function(e,t){if(!Array.isArray(e))return null;for(var r=eA.isValueEmpty(t),n=0;n<e.length;n++)if(r&&eA.isValueEmpty(e[n].value)||eA.isTwoValueEquals(e[n].value,t,!1,!0,!1))return e[n];return null},t.getTextOrHtmlByValue=function(e,r){var n=t.getItemByValue(e,r);return null!==n?n.locText.textOrHtml:""},t.locStrsChanged=function(e){for(var t=0;t<e.length;t++)e[t].locStrsChanged()},t.runConditionsForItems=function(e,r,n,o,i,s,a){return void 0===s&&(s=!0),t.runConditionsForItemsCore(e,r,n,o,i,!0,s,a)},t.runEnabledConditionsForItems=function(e,r,n,o,i){return t.runConditionsForItemsCore(e,null,r,n,o,!1,!0,i)},t.runConditionsForItemsCore=function(e,t,r,n,o,i,s,a){void 0===s&&(s=!0),!n&&(n={});for(var l=n.item,u=n.choice,c=!1,p=0;p<e.length;p++){var h=e[p];n.item=h.value,n.choice=h.value;var d=!!s&&!!h.getConditionRunner&&h.getConditionRunner(i);!d&&(d=r);var f=!0;d&&(f=d.run(n,o)),a&&(f=a(h,f)),t&&f&&t.push(h),f!=(i?h.isVisible:h.isEnabled)&&(c=!0,i?h.setIsVisible&&h.setIsVisible(f):h.setIsEnabled&&h.setIsEnabled(f))}return l?n.item=l:delete n.item,u?n.choice=u:delete n.choice,c},t.prototype.onCreating=function(){},t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner&&this.locOwner.getSurvey?this.locOwner.getSurvey():null},t.prototype.getLocale=function(){return this.locOwner&&this.locOwner.getLocale?this.locOwner.getLocale():""},Object.defineProperty(t.prototype,"isInternal",{get:function(){return!0===this.isGhost}
vendor: 4,765 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locTextValue},enumerable:!1,configurable:!0}),t.prototype.setLocText=function(e){this.locTextValue=e},Object.defineProperty(t.prototype,"locOwner",{get:function(){return this._locOwner},set:function(e){this._locOwner=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){this.setValue(e,!1)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,t){var r=void 0;if(!eA.isValueEmpty(e)){var n=e.toString(),o=n.indexOf(r9.itemValueSeparator);o>-1&&(e=n.slice(0,o),r=n.slice(o+1))}t?this.setPropertyValueDirectly("value",e):this.setPropertyValue("value",e),r&&(this.text=r),this.id=this.value},Object.defineProperty(t.prototype,"hasText",{get:function(){return!!this.locText.pureText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pureText",{get:function(){return this.locText.pureText},set:function(e){this.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.locText.calculatedText},set:function(e){this.locText.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedText",{get:function(){return this.locText.calculatedText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shortcutText",{get:function(){return this.text},enumerable:!1,configurable:!0}),t.prototype.canSerializeValue=function(){var e=this.value;return null!=e&&!Array.isArray(e)&&"object"!=typeof e},t.prototype.getData=function(){var e=this.toJSON();if(e.value&&e.value.pos&&delete e.value.pos,eA.isValueEmpty(e.value))return e;var t=this.canSerializeValue();return t&&(r9.serialization.itemValueSerializeAsObject||r9.serialization.itemValueSerializeDisplayText)||1!=Object.keys(e).length?(r9.serialization.itemValueSerializeDisplayText&&void 0===e.text&&t&&(e.text=this.value.toString()),e):this.value},t.prototype.toJSON=function(){var e={},t=e6.getProperties(this.getType());(!t||0==t.length)&&(t=e6.getProperties("itemvalue"));for(var r=new e3,n=0;n<t.length;n++){var o=t[n];!("text"===o.name&&!this.locText.hasNonDefaultText()&&eA.isTwoValueEquals(this.value,this.text,!1,!0,!1))&&r.valueToJson(this,e,o)}return e},t.prototype.setData=function(e,t){if(!eA.isValueEmpty(e)){if(void 0===e.value&&void 0!==e.text&&1===Object.keys(e).length&&(e.value=e.text),void 0!==e.value){var r=void 0;r="function"==typeof e.toJSON?e.toJSON():e,new e3().toObject(r,this)}else this.setValue(e,t);!t&&this.locText.strChanged()}},Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValueWithoutDefault("visibleIf")||""},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValueWithoutDefault("enableIf")||""},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){var e=this.getPropertyValueWithoutDefault("isVisible");return void 0===e||e},enumerable:!1,configurable:!0}),t.prototype.setIsVisible=function(e){this.setPropertyValue("isVisible",e)},Object.defineProperty(t.prototype,"isEnabled",{get:function(){var e=this.getPropertyValueWithoutDefault("isEnabled");return void 0===e||e},enumerable:!1,configurable:!0}),t.prototype.setIsEnabled=function(e){this.setPropertyValue("isEnabled",e)},t.prototype.addUsedLocales=function(e){this.AddLocStringToUsedLocales(this.locTextValue,e)},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locText.strChanged()},t.prototype.onPropertyValueChanged=function(e,t,r){"value"===e&&!this.hasText&&this.locText.strChanged();var n="itemValuePropertyChanged";this.locOwner&&this.locOwner[n]&&this.locOwner[n](this,e,t,r)},t.prototype.getConditionRunner=function(e){return e?this.getVisibleConditionRunner():this.getEnableConditionRunner()},t.prototype.getVisibleConditionRunner=function(){return this.visibleIf?(!this.visibleConditionRunner&&(this.visibleConditionRunner=new tA(this.visibleIf)),this.visibleConditionRunner.expression=this.visibleIf,this.visibleConditionRunner):null},t.prototype.getEnableConditionRunner=function(){return this.enableIf?(!this.enableConditionRunner&&(this.enableConditionRunner=new tA(this.enableIf)),this.enableConditionRunner.expression=this.enableIf,this.enableConditionRunner):null},Object.defineProperty(t.prototype,"selected",{get:function(){var e=this,t=this._locOwner;return t instanceof n_&&t.isItemSelected&&void 0===this.selectedValue&&(this.selectedValue=new tB(function(){return t.isItemSelected(e)})),this.selectedValue}
vendor: 28,433 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype.getComponent=function(){return this._locOwner instanceof n_?this.componentValue||this._locOwner.itemComponent:this.componentValue},t.prototype.setComponent=function(e){this.componentValue=e},t.prototype.setRootElement=function(e){this._htmlElement=e},t.prototype.getRootElement=function(){return this._htmlElement},t.prototype.getEnabled=function(){return this.isEnabled},t.prototype.setEnabled=function(e){this.setIsEnabled(e)},t.prototype.getVisible=function(){var e=void 0===this.isVisible||this.isVisible,t=void 0===this._visible||this._visible;return e&&t},t.prototype.setVisible=function(e){this.visible!==e&&(this._visible=e)},t.prototype.getLocTitle=function(){return this.locText},t.prototype.getTitle=function(){return this.text},t.prototype.setLocTitle=function(e){},t.prototype.setTitle=function(e){},nA([eW({defaultValue:!0})],t.prototype,"_visible",void 0),nA([eW()],t.prototype,"selectedValue",void 0),nA([eW()],t.prototype,"icon",void 0),t}(rs);tQ.createItemValue=function(e,t){var r=null;return(r=t?e3.metaData.createClass(t,{}):"function"==typeof e.getType?new nL(null,void 0,e.getType()):new nL(null)).setData(e),r},tQ.itemValueLocStrChanged=function(e){nL.locStrsChanged(e)},eG.getItemValuesDefaultValue=function(e,t){var r=[];return nL.setData(r,Array.isArray(e)?e:[],t),r},e6.addClass("itemvalue",[{name:"!value",isUnique:!0},{name:"text",serializationProperty:"locText"},{name:"visibleIf:condition",showMode:"form"},{name:"enableIf:condition",showMode:"form",visibleIf:function(e){return!e||"rateValues"!==e.ownerPropertyName}}],function(e){return new nL(e)});var nN=(w=function(e,t){return(w=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}w(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),nM=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.expressionIsRunning=!1,n.isCalculated=!1,t&&(n.name=t),r&&(n.expression=r),n}return nN(t,e),t.prototype.setOwner=function(e){this.data=e,this.rerunExpression()},t.prototype.getType=function(){return"calculatedvalue"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.data&&this.data.getSurvey?this.data.getSurvey():null},Object.defineProperty(t.prototype,"owner",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")||""},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"includeIntoResult",{get:function(){return this.getPropertyValue("includeIntoResult")},set:function(e){this.setPropertyValue("includeIntoResult",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression")||""},set:function(e){this.setPropertyValue("expression",e),this.rerunExpression()},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.resetCalculation=function(){this.isCalculated=!1},t.prototype.doCalculation=function(e,t,r){!this.isCalculated&&(this.runExpressionCore(e,t,r),this.isCalculated=!0)},t.prototype.runExpression=function(e,t){this.runExpressionCore(null,e,t)},Object.defineProperty(t.prototype,"value",{get:function(){if(this.data)return this.data.getVariable(this.name)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e){this.data&&this.data.setVariable(this.name,e)},Object.defineProperty(t.prototype,"canRunExpression",{get:function(){return!!this.data&&!this.isLoadingFromJson&&!!this.expression&&!this.expressionIsRunning&&!!this.name},enumerable:!1,configurable:!0}),t.prototype.rerunExpression=function(){this.canRunExpression&&this.runExpression(this.data.getFilteredValues(),this.data.getFilteredProperties())},t.prototype.runExpressionCore=function(e,t,r){this.canRunExpression&&(this.ensureExpression(t),this.locCalculation(),e&&this.runDependentExpressions(e,t,r),this.expressionRunner.run(t,r))},t.prototype.runDependentExpressions=function(e,t,r){var n=this.expressionRunner.getVariables();if(n)for(var o=0;o<e.length;o++){var i=e[o];!(i===this||0>n.indexOf(i.name))&&(i.doCalculation(e,t,r),t[i.name]=i.value)}},t.prototype.ensureExpression=function(e){var t=this;!this.expressionRunner&&(this.expressionRunner=new tL(this.expression),this.expressionRunner.onRunComplete=function(e){!eA.isTwoValueEquals(e,t.value,!1,!0,!1)&&t.setValue(e),t.unlocCalculation()})},t}(tQ);e6.addClass("calculatedvalue",[{name:"!name",isUnique:!0},"expression:expression","includeIntoResult:boolean"],function(){return new nM},"base");var nF=(P=function(e,t){return(P=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),nq=function(e){function t(t){void 0===t&&(t=null);var r=e.call(this)||this;return r.expression=t,r}return nF(t,e),t.prototype.getType=function(){return"expressionitem"},t.prototype.runCondition=function(e,t){return!!this.expression&&new tA(this.expression).run(e,t)},Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.locOwner},t}(tQ),nB=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t)||this;return n.createLocalizableString("html",n),n.html=r,n}return nF(t,e),t.prototype.getType=function(){return"htmlconditionitem"},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),t}(nq),nQ=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this,t)||this;return n.createLocalizableString("url",n),n.url=r,n}return nF(t,e),t.prototype.getType=function(){return"urlconditionitem"},Object.defineProperty(t.prototype,"url",{get:function(){return this.getLocalizableStringText("url")},set:function(e){this.setLocalizableStringText("url",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locUrl",{get:function(){return this.getLocalizableString("url")},enumerable:!1,configurable:!0}),t}(nq);e6.addClass("expressionitem",["expression:condition"],function(){return new nq},"base"),e6.addClass("htmlconditionitem",[{name:"html:html",serializationProperty:"locHtml"}],function(){return new nB},"expressionitem"),e6.addClass("urlconditionitem",[{name:"url:string",serializationProperty:"locUrl"}],function(){return new nQ},"expressionitem");var nH=(V=function(e,t){return(V=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}V(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),nz=function(){function e(){this.parser=new DOMParser}return e.prototype.assignValue=function(e,t,r){Array.isArray(e[t])?e[t].push(r):void 0!==e[t]?e[t]=[e[t]].concat(r):"object"==typeof r&&1===Object.keys(r).length&&Object.keys(r)[0]===t?e[t]=r[t]:e[t]=r},e.prototype.xml2Json=function(e,t){if(e.children&&e.children.length>0)for(var r=0;r<e.children.length;r++){var n=e.children[r],o={};this.xml2Json(n,o),this.assignValue(t,n.nodeName,o)}else this.assignValue(t,e.nodeName,e.textContent)},e.prototype.parseXmlString=function(e){var t=this.parser.parseFromString(e,"text/xml"),r={};return this.xml2Json(t,r),r},e}(),nW=function(e){function t(){var t=e.call(this)||this;return t.lastObjHash="",t.isRunningValue=!1,t.processedUrl="",t.processedPath="",t.isUsingCacheFromUrl=void 0,t.error=null,t.createItemValue=function(e){return new nL(e)},t.registerPropertyChangedHandlers(["url"],function(){t.owner&&t.owner.setPropertyValue("isUsingRestful",!!t.url)}),t}return nH(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return r9.web.encodeUrlParams},set:function(e){r9.web.encodeUrlParams=e},enumerable:!1,configurable:!0}),t.clearCache=function(){t.itemsResult={},t.sendingSameRequests={}},t.addSameRequest=function(e){if(!e.isUsingCache)return!1;var r=e.objHash,n=t.sendingSameRequests[r];return n?(n.push(e),e.isRunningValue=!0,!0):(t.sendingSameRequests[e.objHash]=[],!1)},t.unregisterSameRequests=function(e,r){if(!!e.isUsingCache){var n=t.sendingSameRequests[e.objHash];if(delete t.sendingSameRequests[e.objHash],n)for(var o=0;o<n.length;o++)n[o].isRunningValue=!1,n[o].getResultCallback&&n[o].getResultCallback(r)}},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return r9.web.onBeforeRequestChoices},set:function(e){r9.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t.getCachedItemsResult=function(e){var r=e.objHash,n=t.itemsResult[r];return!!n&&(e.getResultCallback&&e.getResultCallback(n),!0)},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner?this.owner.survey:null},t.prototype.run=function(e){if(void 0===e&&(e=null),!this.url||!this.getResultCallback)return;if(this.processedText(e),!this.processedUrl){this.doEmptyResultCallback({}),this.lastObjHash=this.objHash;return}if(this.lastObjHash===this.objHash)return;if(this.lastObjHash=this.objHash,this.error=null,!this.useChangedItemsResults())!t.addSameRequest(this)&&this.sendRequest()},Object.defineProperty(t.prototype,"isUsingCache",{get:function(){return!0===this.isUsingCacheFromUrl||!1!==this.isUsingCacheFromUrl&&r9.web.cacheLoadedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getIsRunning()},enumerable:!1,configurable:!0}),t.prototype.getIsRunning=function(){return this.isRunningValue},Object.defineProperty(t.prototype,"isWaitingForParameters",{get:function(){return this.url&&!this.processedUrl},enumerable:!1,configurable:!0}),t.prototype.useChangedItemsResults=function(){return t.getCachedItemsResult(this)},t.prototype.doEmptyResultCallback=function(e){var t=[];this.updateResultCallback&&(t=this.updateResultCallback(t,e)),this.getResultCallback(t)},t.prototype.processedText=function(e){var r=this.url;if(r&&(r=r.replace(t.cacheText,"").replace(t.noCacheText,"")),e){var n=e.processTextEx({text:r,runAtDesign:!0}),o=e.processTextEx({text:this.path,runAtDesign:!0});n.hasAllValuesOnLastRun&&o.hasAllValuesOnLastRun?(this.processedUrl=n.text,this.processedPath=o.text):(this.processedUrl="",this.processedPath="")}else this.processedUrl=r,this.processedPath=this.path;this.onProcessedUrlCallback&&this.onProcessedUrlCallback(this.processedUrl,this.processedPath)},t.prototype.parseResponse=function(e){var t;if(e&&"function"==typeof e.indexOf&&0===e.indexOf("<"))t=new nz().parseXmlString(e);else try{t=JSON.parse(e)}catch(r){t=(e||"").split("\n").map(function(e){return e.trim(" ")}).filter(function(e){return!!e})}return t},t.prototype.sendRequest=function(){var e=new XMLHttpRequest;e.open("GET",this.processedUrl),e.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var t=this,r=this.objHash;e.onload=function(){t.beforeLoadRequest(),200===e.status?t.onLoad(t.parseResponse(e.response),r):t.onError(e.statusText,e.responseText)};var n={request:e};r9.web.onBeforeRequestChoices&&r9.web.onBeforeRequestChoices(this,n),this.beforeSendRequest(),n.request.send()},t.prototype.getType=function(){return"choicesByUrl"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return!this.url&&!this.path},enumerable:!1,configurable:!0}),t.prototype.getCustomPropertiesNames=function(){for(var e=this.getCustomProperties(),t=[],r=0;r<e.length;r++)t.push(this.getCustomPropertyName(e[r].name));return t},t.prototype.getCustomPropertyName=function(e){return e+"Name"},t.prototype.getCustomProperties=function(){for(var e=e6.getProperties(this.itemValueType),t=[],r=0;r<e.length;r++)"value"!==e[r].name&&"text"!==e[r].name&&"visibleIf"!==e[r].name&&"enableIf"!==e[r].name&&t.push(e[r]);return t},t.prototype.getAllPropertiesNames=function(){var e=[];return e6.getPropertiesByObj(this).forEach(function(t){return e.push(t.name)}),this.getCustomPropertiesNames().forEach(function(t){return e.push(t)}),e},t.prototype.setData=function(e){var t=this;!e&&(e={}),this.getAllPropertiesNames().forEach(function(r){t[r]=e[r]})},t.prototype.getData=function(){var e=this,t={},r=!1;return this.getAllPropertiesNames().forEach(function(n){var o=e[n];!e.isValueEmpty(o)&&o!==e.getDefaultPropertyValue(n)&&(t[n]=o,r=!0)}),r?t:null},Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url")||""},set:function(e){this.setPropertyValue("url",e),this.isUsingCacheFromUrl=void 0,e&&(e.indexOf(t.cacheText)>-1?this.isUsingCacheFromUrl=!0:e.indexOf(t.noCacheText)>-1&&(this.isUsingCacheFromUrl=!1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this.getPropertyValue("path")||""},set:function(e){this.setPropertyValue("path",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueName",{get:function(){return this.getPropertyValue("valueName","")},set:function(e){this.setPropertyValue("valueName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titleName",{get:function(){return this.getPropertyValue("titleName","")},set:function(e){this.setPropertyValue("titleName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageLinkName",{get:function(){return this.getPropertyValue("imageLinkName","")},set:function(e){this.setPropertyValue("imageLinkName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowEmptyResponse",{get:function(){return this.getPropertyValue("allowEmptyResponse")},set:function(e){this.setPropertyValue("allowEmptyResponse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attachOriginalItems",{get:function(){return this.getPropertyValue("attachOriginalItems")},set:function(e){this.setPropertyValue("attachOriginalItems",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemValueType",{get:function(){if(!this.owner)return"itemvalue";var e=e6.findProperty(this.owner.getType(),"choices");return e&&"itemvalue[]"!=e.type?e.type:"itemvalue"},enumerable:!1,configurable:!0}),t.prototype.clear=function(){this.setData(void 0)},t.prototype.beforeSendRequest=function(){this.isRunningValue=!0,this.beforeSendRequestCallback&&this.beforeSendRequestCallback()},t.prototype.beforeLoadRequest=function(){this.isRunningValue=!1},t.prototype.onLoad=function(e,r){void 0===r&&(r=null),!r&&(r=this.objHash);var n=[],o=this.getResultAfterPath(e);if(o&&o.length)for(var i=0;i<o.length;i++){var s=o[i];if(s){var a=this.getItemValueCallback?this.getItemValueCallback(s):this.getValue(s),l=this.createItemValue(a);this.setTitle(l,s),this.setCustomProperties(l,s),this.attachOriginalItems&&(l.originalItem=s);var u=this.getImageLink(s);u&&(l.imageLink=u),n.push(l)}}else!this.allowEmptyResponse&&(this.error=new na(null,this.owner));this.updateResultCallback&&(n=this.updateResultCallback(n,e)),this.isUsingCache&&(t.itemsResult[r]=n),this.callResultCallback(n,r),t.unregisterSameRequests(this,n)},t.prototype.callResultCallback=function(e,t){t==this.objHash&&this.getResultCallback(e)},t.prototype.setCustomProperties=function(e,t){for(var r=this.getCustomProperties(),n=0;n<r.length;n++){var o=r[n],i=this.getValueCore(t,this.getPropertyBinding(o.name));!this.isValueEmpty(i)&&(e[o.name]=i)}},t.prototype.getPropertyBinding=function(e){return this[this.getCustomPropertyName(e)]?this[this.getCustomPropertyName(e)]:this[e]?this[e]:e},t.prototype.onError=function(e,r){this.error=new ns(e,r,this.owner),this.doEmptyResultCallback(r),t.unregisterSameRequests(this,[])},t.prototype.getResultAfterPath=function(e){if(!e||!this.processedPath)return e;for(var t=this.getPathes(),r=0;r<t.length;r++)if(!(e=e[t[r]]))return null;return e},t.prototype.getPathes=function(){var e=[];return 0==(e=this.processedPath.indexOf(";")>-1?this.path.split(";"):this.processedPath.indexOf(",")>-1?this.processedPath.split(","):this.processedPath.split(".")).length&&e.push(this.processedPath),e},t.prototype.getValue=function(e){return e?this.valueName?this.getValueCore(e,this.valueName):e instanceof Object?Object.keys(e).length<1?null:e[Object.keys(e)[0]]:e:null},t.prototype.setTitle=function(e,t){var r=this.titleName?this.titleName:"title",n=this.getValueCore(t,r);n&&("string"==typeof n?e.text=n:e.locText.setJson(n))},t.prototype.getImageLink=function(e){var t=this.imageLinkName?this.imageLinkName:"imageLink";return this.getValueCore(e,t)},t.prototype.getValueCore=function(e,t){if(!e)return null;if(0>t.indexOf("."))return e[t];for(var r=t.split("."),n=0;n<r.length;n++)if(!(e=e[r[n]]))return null;return e},Object.defineProperty(t.prototype,"objHash",{get:function(){return this.processedUrl+";"+this.processedPath+";"+this.valueName+";"+this.titleName+";"+this.imageLinkName},enumerable:!1,configurable:!0}),t.cacheText="{CACHE}",t.noCacheText="{NOCACHE}",t.itemsResult={},t.sendingSameRequests={},t}(tQ),nU=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return nH(t,e),Object.defineProperty(t,"EncodeParameters",{get:function(){return nW.EncodeParameters},set:function(e){nW.EncodeParameters=e},enumerable:!1,configurable:!0}),t.clearCache=function(){nW.clearCache()},Object.defineProperty(t,"onBeforeSendRequest",{get:function(){return r9.web.onBeforeRequestChoices},set:function(e){r9.web.onBeforeRequestChoices=e},enumerable:!1,configurable:!0}),t}(nW);e6.addClass("choicesByUrl",["url","path","valueName","titleName",{name:"imageLinkName",visibleIf:function(e){return!!e&&!!e.owner&&"imagepicker"==e.owner.getType()}},{name:"allowEmptyResponse:boolean"},{name:"attachOriginalItems:boolean",visible:!1}],function(){return new nW});var nJ=(j=function(e,t){return(j=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}j(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),nG=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},n$=function(e){function t(t){var r=e.call(this,t)||this;return r.generatedVisibleRows=null,r.generatedTotalRow=null,r.filteredRows=null,r.columns=r.createColumnValues(),r.rows=r.createItemValues("rows"),r}return nJ(t,e),t.prototype.createColumnValues=function(){return this.createItemValues("columns")},t.prototype.getType=function(){return"matrixbase"},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibilityBasedOnRows()},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},set:function(e){this.setPropertyValue("showHeader",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.getPropertyValue("columns")},set:function(e){this.setPropertyValue("columns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleColumns",{get:function(){var e=this,t=[];return this.columns.forEach(function(r){e.isColumnVisible(r)&&t.push(r)}),t},enumerable:!1,configurable:!0}),t.prototype.isColumnVisible=function(e){return e.isVisible},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){var t=this.processRowsOnSet(e);this.setPropertyValue("rows",t)},enumerable:!1,configurable:!0}),t.prototype.processRowsOnSet=function(e){return e},t.prototype.getVisibleRows=function(){return[]},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsVisibleIf",{get:function(){return this.getPropertyValue("rowsVisibleIf","")},set:function(e){this.setPropertyValue("rowsVisibleIf",e),!this.isLoadingFromJsonValue&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsVisibleIf",{get:function(){return this.getPropertyValue("columnsVisibleIf","")},set:function(e){this.setPropertyValue("columnsVisibleIf",e),!this.isLoadingFromJson&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},enumerable:!1,configurable:!0}),t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runItemsCondition(t,r)},t.prototype.onColumnsChanged=function(){},t.prototype.onRowsChanged=function(){this.updateVisibilityBasedOnRows(),this.fireCallback(this.visibleRowsChangedCallback)},t.prototype.updateVisibilityBasedOnRows=function(){this.hideIfRowsEmpty&&this.onVisibleChanged()},t.prototype.isVisibleCore=function(){var t,r=e.prototype.isVisibleCore.call(this);return r&&this.hideIfRowsEmpty?(null===(t=this.visibleRows)||void 0===t?void 0:t.length)>0:r},t.prototype.shouldRunColumnExpression=function(){return!this.survey||!this.survey.areInvisibleElementsShowing},t.prototype.hasRowsAsItems=function(){return!0},t.prototype.runItemsCondition=function(e,t){var r=this.hasRowsAsItems()&&this.runConditionsForRows(e,t),n=this.runConditionsForColumns(e,t);(r=n||r)&&(this.isClearValueOnHidden&&n&&this.clearInvisibleColumnValues(),this.clearGeneratedRows(),n&&this.onColumnsChanged(),this.onRowsChanged())},t.prototype.isRowsFiltered=function(){return!!this.filteredRows},t.prototype.clearGeneratedRows=function(){this.generatedVisibleRows=null},t.prototype.createRowsVisibleIfRunner=function(){return null},t.prototype.runConditionsForRows=function(e,t){var r=!!this.survey&&this.survey.areInvisibleElementsShowing,n=r?null:this.createRowsVisibleIfRunner();this.filteredRows=[];var o=nL.runConditionsForItems(this.rows,this.filteredRows,n,e,t,!r);return nL.runEnabledConditionsForItems(this.rows,void 0,e,t),this.filteredRows.length===this.rows.length&&(this.filteredRows=null),o},t.prototype.runConditionsForColumns=function(e,t){var r=this.survey&&!this.survey.areInvisibleElementsShowing&&this.columnsVisibleIf?new tA(this.columnsVisibleIf):null;return nL.runConditionsForItems(this.columns,void 0,r,e,t,this.shouldRunColumnExpression())},t.prototype.clearInvisibleColumnValues=function(){},t.prototype.clearInvisibleValuesInRows=function(){},t.prototype.needResponsiveWidth=function(){return!0},Object.defineProperty(t.prototype,"columnsAutoWidth",{get:function(){return!this.isMobile&&!this.columns.some(function(e){return!!e.width})},enumerable:!1,configurable:!0}),t.prototype.getTableCss=function(){var e;return new t$().append(this.cssClasses.root).append(this.cssClasses.columnsAutoWidth,this.columnsAutoWidth).append(this.cssClasses.noHeader,!this.showHeader).append(this.cssClasses.hasFooter,!!(null===(e=this.renderedTable)||void 0===e?void 0:e.showAddRowOnBottom)).append(this.cssClasses.rootAlternateRows,this.alternateRows).append(this.cssClasses.rootVerticalAlignTop,"top"===this.verticalAlign).append(this.cssClasses.rootVerticalAlignMiddle,"middle"===this.verticalAlign).toString()},Object.defineProperty(t.prototype,"columnMinWidth",{get:function(){return this.getPropertyValue("columnMinWidth")||""},set:function(e){this.setPropertyValue("columnMinWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTitleWidth",{get:function(){return this.getPropertyValue("rowTitleWidth")||""},set:function(e){this.setPropertyValue("rowTitleWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this.getPropertyValue("displayMode")},set:function(e){this.setPropertyValue("displayMode",e)},enumerable:!1,configurable:!0}),t.prototype.getCellAriaLabel=function(e,t){return(this.getLocalizationString("matrix_row")||"row").toLocaleLowerCase()+" "+e+", "+(this.getLocalizationString("matrix_column")||"column").toLocaleLowerCase()+" "+t},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getIsMobile=function(){return"auto"==this.displayMode?e.prototype.getIsMobile.call(this):"list"===this.displayMode},nG([eW()],t.prototype,"verticalAlign",void 0),nG([eW()],t.prototype,"alternateRows",void 0),t}(n_);e6.addClass("matrixbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"columnsVisibleIf:condition","rowsVisibleIf:condition","columnMinWidth",{name:"showHeader:boolean",default:!0},{name:"verticalAlign",choices:["top","middle"],default:"middle"},{name:"alternateRows:boolean",default:!1},{name:"displayMode",default:"auto",choices:["auto","table","list"],visible:!1}],void 0,"question");var nK=function(){},nY=function(e,t){this.name=e,this.returnDisplayValue=t,this.isExists=!1,this.canProcess=!0},nX=function(){function e(){this._unObservableValues=[void 0]}return Object.defineProperty(e.prototype,"hasAllValuesOnLastRunValue",{get:function(){return this._unObservableValues[0]},set:function(e){this._unObservableValues[0]=e},enumerable:!1,configurable:!0}),e.prototype.process=function(e,t,r,n){if(this.hasAllValuesOnLastRunValue=!0,!e||!this.onProcess)return e;for(var o=this.getItems(e),i=o.length-1;i>=0;i--){var s=o[i],a=this.getName(e.substring(s.start+1,s.end));if(a){var l=new nY(a,!0===t);if(this.onProcess(l),!l.isExists&&l.canProcess&&(this.hasAllValuesOnLastRunValue=!1),l.isExists||n){eA.isValueEmpty(l.value)&&(this.hasAllValuesOnLastRunValue=!1);var u=eA.isValueEmpty(l.value)?"":l.value;r&&(u=encodeURIComponent(u)),e=e.substring(0,s.start)+u+e.substring(s.end+1)}}}return e},e.prototype.processValue=function(e,t){var r=new nY(e,t);return this.onProcess&&this.onProcess(r),r},Object.defineProperty(e.prototype,"hasAllValuesOnLastRun",{get:function(){return!!this.hasAllValuesOnLastRunValue},enumerable:!1,configurable:!0}),e.prototype.processText=function(e,t){return this.process(e,t)},e.prototype.processTextEx=function(e){var t={hasAllValuesOnLastRun:!0,text:e.text};return t.text=this.process(e.text,e.returnDisplayValue,e.doEncoding,e.replaceUndefinedValues),t.hasAllValuesOnLastRun=this.hasAllValuesOnLastRun,t},e.prototype.getItems=function(e){for(var t=[],r=e.length,n=-1,o="",i=0;i<r;i++)if("{"==(o=e[i])&&(n=i),"}"==o){if(n>-1){var s=new nK;s.start=n,s.end=i,this.isValidItemName(e.substring(n+1,i-1))&&t.pu
1sh(s)}n=-1}return t},e.prototype.isValidItemName=function(e){return!!e&&0>e.indexOf(":")},e.prototype.getName=function(e){if(e)return e.trim()},e}(),nZ=function(){function e(e){var t=this;this.variableName=e,this.textPreProcessor=new nX,this.textPreProcessor.onProcess=function(e){t.getProcessedTextValue(e)}}return e.prototype.processValue=function(e,t){return this.textPreProcessor.processValue(e,t)},Object.defineProperty(e.prototype,"survey",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panel",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getValues=function(){return this.panel?this.panel.getValue():null},e.prototype.getQuestionByName=function(e){return this.panel?this.panel.getQuestionByValueName(e):null},e.prototype.getParentTextProcessor=function(){return null},e.prototype.onCustomProcessText=function(e){return!1},e.prototype.getQuestionDisplayText=function(e){return e.displayValue},e.prototype.getProcessedTextValue=function(e){if(!(!e||this.onCustomProcessText(e))){var t=new e9().getFirstName(e.name);if(e.isExists=t==this.variableName,e.canProcess=e.isExists,e.canProcess){e.name=e.name.replace(this.variableName+".","");var t=new e9().getFirstName(e.name),r=this.getQuestionByName(t),n={};if(r)n[t]=e.returnDisplayValue?this.getQuestionDisplayText(r):r.value;else{var o=this.panel?this.getValues():null;o&&(n[t]=o[t])}e.value=new e9().getValue(e.name,n)}}},e.prototype.processText=function(e,t){return this.processTextEx({text:e,returnDisplayValue:t}).text},e.prototype.processTextEx=function(e){var t,r={hasAllValuesOnLastRun:!0,text:e.text};if(!e.runAtDesign&&(null===(t=this.survey)||void 0===t?void 0:t.isDesignMode))return r;var n=[];this.addTextPreProcessor(n,this.textPreProcessor),this.addTextPreProcessor(n,this.getParentTextProcessor()),this.addTextPreProcessor(n,this.survey);for(var o=0;o<n.length;o++){var i=n[o];e.text=r.text;var s=i.processTextEx(e);r.text=s.text,r.hasAllValuesOnLastRun=r.hasAllValuesOnLastRun&&s.hasAllValuesOnLastRun}return r},e.prototype.addTextPreProcessor=function(e,t){!(!t||e.indexOf(t)>-1)&&e.push(t)},e}();var n0=(S=function(e,t){return(S=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}S(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),n1=function(){function e(e,t){this.name=e,this.json=t;var r=this;e6.addClass(e,[],function(e){return n2.Instance.createQuestion(e?e.name:"",r)},"question"),this.onInit()}return e.prototype.onInit=function(){this.json.onInit&&this.json.onInit()},e.prototype.onCreated=function(e){this.json.onCreated&&this.json.onCreated(e)},e.prototype.onLoaded=function(e){this.json.onLoaded&&this.json.onLoaded(e)},e.prototype.onAfterRender=function(e,t){this.json.onAfterRender&&this.json.onAfterRender(e,t)},e.prototype.onAfterRenderContentElement=function(e,t,r){this.json.onAfterRenderContentElement&&this.json.onAfterRenderContentElement(e,t,r)},e.prototype.onUpdateQuestionCssClasses=function(e,t,r){this.json.onUpdateQuestionCssClasses&&this.json.onUpdateQuestionCssClasses(e,t,r)},e.prototype.onSetQuestionValue=function(e,t){this.json.onSetQuestionValue&&this.json.onSetQuestionValue(e,t),this.json.onValueSet&&this.json.onValueSet(e,t)},e.prototype.onPropertyChanged=function(e,t,r){this.json.onPropertyChanged&&this.json.onPropertyChanged(e,t,r)},e.prototype.onValueChanged=function(e,t,r){this.json.onValueChanged&&this.json.onValueChanged(e,t,r)},e.prototype.onValueChanging=function(e,t,r){return this.json.onValueChanging?this.json.onValueChanging(e,t,r):r},e.prototype.onGetErrorText=function(e){if(this.json.getErrorText)return this.json.getErrorText(e)},e.prototype.onItemValuePropertyChanged=function(e,t,r,n,o){this.json.onItemValuePropertyChanged&&this.json.onItemValuePropertyChanged(e,{obj:t,propertyName:r,name:n,newValue:o})},e.prototype.getDisplayValue=function(e,t,r){return this.json.getDisplayValue?this.json.getDisplayValue(r):r.getDisplayValue(e,t)},Object.defineProperty(e.prototype,"defaultQuestionTitle",{get:function(){return this.json.defaultQuestionTitle}
vendor: 19,246 bytes, line 1
1,enumerable:!1,configurable:!0}),e.prototype.setValueToQuestion=function(e){var t=this.json.valueToQuestion||this.json.setValue;return t?t(e):e},e.prototype.getValueFromQuestion=function(e){var t=this.json.valueFromQuestion||this.json.getValue;return t?t(e):e},Object.defineProperty(e.prototype,"isComposite",{get:function(){return!!this.json.elementsJSON||!!this.json.createElements},enumerable:!1,configurable:!0}),e.prototype.getDynamicProperties=function(){return!Array.isArray(this.dynamicProperties)&&(this.dynamicProperties=this.calcDynamicProperties()),this.dynamicProperties},e.prototype.calcDynamicProperties=function(){var e=this.json.inheritBaseProps;if(!e||!this.json.questionJSON)return[];var t=this.json.questionJSON.type;if(!t)return[];if(Array.isArray(e)){var r=[];return e.forEach(function(e){var n=e6.findProperty(t,e);n&&r.push(n)}),r}var n=[];for(var o in this.json.questionJSON)n.push(o);return e6.getDynamicPropertiesByTypes(this.name,t,n)},e}(),n2=function(){function e(){this.customQuestionValues=[]}return e.prototype.add=function(e){if(e){var t=e.name;if(!t)throw"Attribute name is missed";if(t=t.toLowerCase(),this.getCustomQuestionByName(t))throw"There is already registered custom question with name '"+t+"'";if(e6.findClass(t))throw"There is already class with name '"+t+"'";var r=new n1(t,e);this.onAddingJson&&this.onAddingJson(t,r.isComposite),this.customQuestionValues.push(r)}},e.prototype.remove=function(e){if(!e)return!1;var t=this.getCustomQuestionIndex(e.toLowerCase());return!(t<0)&&(this.removeByIndex(t),!0)},Object.defineProperty(e.prototype,"items",{get:function(){return this.customQuestionValues},enumerable:!1,configurable:!0}),e.prototype.getCustomQuestionByName=function(e){var t=this.getCustomQuestionIndex(e);return t>=0?this.customQuestionValues[t]:void 0},e.prototype.getCustomQuestionIndex=function(e){for(var t=0;t<this.customQuestionValues.length;t++)if(this.customQuestionValues[t].name===e)return t;return -1},e.prototype.removeByIndex=function(e){e6.removeClass(this.customQuestionValues[e].name),this.customQuestionValues.splice(e,1)},e.prototype.clear=function(e){for(var t=this.customQuestionValues.length-1;t>=0;t--)(e||!this.customQuestionValues[t].json.internal)&&this.removeByIndex(t)},e.prototype.createQuestion=function(e,t){return t.isComposite?this.createCompositeModel(e,t):this.createCustomModel(e,t)},e.prototype.createCompositeModel=function(e,t){return this.onCreateComposite?this.onCreateComposite(e,t):new n3(e,t)},e.prototype.createCustomModel=function(e,t){return this.onCreateCustom?this.onCreateCustom(e,t):new n4(e,t)},e.Instance=new e,e}(),n5=function(e){function t(t,r){var n=e.call(this,t)||this;return n.customQuestion=r,e$.createProperties(n),rw.CreateDisabledDesignElements=!0,n.locQuestionTitle=n.createLocalizableString("questionTitle",n),n.locQuestionTitle.setJson(n.customQuestion.defaultQuestionTitle),n.createWrapper(),rw.CreateDisabledDesignElements=!1,n.customQuestion&&n.customQuestion.onCreated(n),n}return n0(t,e),t.prototype.getType=function(){return this.customQuestion?this.customQuestion.name:"custom"},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.locStrsChanged.call(this),this.getElement()&&this.getElement().localeChanged()},t.prototype.getDefaultTitle=function(){return this.locQuestionTitle.isEmpty?e.prototype.getDefaultTitle.call(this):this.getProcessedText(this.locQuestionTitle.textOrHtml)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.getElement()&&this.getElement().addUsedLocales(t)},t.prototype.needResponsiveWidth=function(){var e=this.getElement();return!!e&&e.needResponsiveWidth()},t.prototype.createWrapper=function(){},t.prototype.onPropertyValueChanged=function(t,r,n){e.prototype.onPropertyValueChanged.call(this,t,r,n),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onPropertyChanged(this,t,n)},t.prototype.itemValuePropertyChanged=function(t,r,n,o){e.prototype.itemValuePropertyChanged.call(this,t,r,n,o),this.customQuestion&&!this.isLoadingFromJson&&this.customQuestion.onItemValuePropertyChanged(this,t,t.ownerPropertyName,r,o)},t.prototype.onFirstRenderingCore=function(){e.prototype.onFirstRenderingCore.call(this);var t=this.getElement();t&&t.onFirstRendering()},t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this);var t=this.getElement();t&&t.onHidingContent()},t.prototype.getProgressInfo=function(){var t=e.prototype.getProgressInfo.call(this);return this.getElement()&&(t=this.getElement().getProgressInfo()),this.isRequired&&0==t.requiredQuestionCount&&(t.requiredQuestionCount=1,!this.isEmpty()&&(t.answeredQuestionCount=1)),t},t.prototype.initElement=function(e){e&&(e.setSurveyImpl(this),e.disableDesignActions=!0)},t.prototype.setSurveyImpl=function(t,r){this.isSettingValOnLoading=!0,e.prototype.setSurveyImpl.call(this,t,r),this.initElement(this.getElement()),this.isSettingValOnLoading=!1},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.getElement()&&(this.getElement().onSurveyLoad(),this.customQuestion.onLoaded(this))},t.prototype.afterRenderQuestionElement=function(e){},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t),this.customQuestion&&this.customQuestion.onAfterRender(this,t)},t.prototype.onUpdateQuestionCssClasses=function(e,t){this.customQuestion&&this.customQuestion.onUpdateQuestionCssClasses(this,e,t)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.updateElementCss(),this.customQuestion&&this.customQuestion.onSetQuestionValue(this,t)},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateElementCss()},t.prototype.onCheckForErrors=function(t,r,n){if(e.prototype.onCheckForErrors.call(this,t,r,n),this.customQuestion){var o=this.customQuestion.onGetErrorText(this);o&&t.push(new nf(o,this))}},t.prototype.getSurveyData=function(){return this},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getValue=function(e){return this.value},t.prototype.setValue=function(e,t,r,n){if(this.data){this.customQuestion&&this.customQuestion.onValueChanged(this,e,t);var o=this.convertDataName(e),i=this.convertDataValue(e,t);this.valueToDataCallback&&(i=this.valueToDataCallback(i)),this.data.setValue(o,i,r,n),this.updateIsAnswered(),this.updateElementCss()}},t.prototype.getQuestionByName=function(e){},t.prototype.isValueChanging=function(e,t){if(this.customQuestion){var r=t;if(t=this.customQuestion.onValueChanging(this,e,t),!eA.isTwoValueEquals(t,r)){var n=this.getQuestionByName(e);if(n)return n.value=t,!0}}return!1},t.prototype.convertDataName=function(e){return this.getValueName()},t.prototype.convertDataValue=function(e,t){return t},t.prototype.getVariable=function(e){return this.data?this.data.getVariable(e):null},t.prototype.setVariable=function(e,t){this.data&&this.data.setVariable(e,t)},t.prototype.getComment=function(e){return this.data?this.data.getComment(this.getValueName()):""},t.prototype.setComment=function(e,t,r){this.data&&this.data.setComment(this.getValueName(),t,r)},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():{}},t.prototype.getFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getFilteredProperties=function(){return this.data?this.data.getFilteredProperties():{}},t.prototype.findQuestionByName=function(e){return this.data?this.data.findQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return -1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getQuestionErrorLocation=function(){return this.getErrorLocation()},t.prototype.getContentDisplayValueCore=function(t,r,n){return n?this.customQuestion.getDisplayValue(t,r,n):e.prototype.getDisplayValueCore.call(this,t,r)},t}(n_),n4=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n0(t,e),t.prototype.getTemplate=function(){return"custom"},t.prototype.getDynamicProperties=function(){return this.customQuestion.getDynamicProperties()||[]},t.prototype.getDynamicType=function(){return this.questionWrapper?this.questionWrapper.getType():"question"},t.prototype.getOriginalObj=function(){return this.questionWrapper},t.prototype.createWrapper=function(){var e=this;this.questionWrapper=this.createQuestion(),this.createDynamicProperties(this.questionWrapper),this.getDynamicProperties().length>0&&(this.questionWrapper.onPropertyValueChangedCallback=function(t,r,n,o,i){e.getDynamicProperty(t)&&e.propertyValueChanged(t,r,n,i)})},t.prototype.getDynamicProperty=function(e){for(var t=this.getDynamicProperties(),r=0;r<t.length;r++)if(t[r].name===e)return t[r];return null},t.prototype.getElement=function(){return this.contentQuestion},t.prototype.onAnyValueChanged=function(t,r){e.prototype.onAnyValueChanged.call(this,t,r),this.contentQuestion&&this.contentQuestion.onAnyValueChanged(t,r)},t.prototype.getQuestionByName=function(e){return this.contentQuestion},t.prototype.getDefaultTitle=function(){return this.hasJSONTitle&&this.contentQuestion?this.getProcessedText(this.contentQuestion.title):e.prototype.getDefaultTitle.call(this)},t.prototype.setValue=function(t,r,n,o){!this.isValueChanging(t,r)&&e.prototype.setValue.call(this,t,r,n,o)},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),this.survey&&!this.isEmpty()&&this.setValue(this.name,this.value,!1,this.allowNotifyValueChanged)},t.prototype.hasErrors=function(t,r){if(void 0===t&&(t=!0),void 0===r&&(r=null),!this.contentQuestion)return!1;var n=this.contentQuestion.hasErrors(t,r);this.errors=[];for(var o=0;o<this.contentQuestion.errors.length;o++)this.errors.push(this.contentQuestion.errors[o]);return!n&&(n=e.prototype.hasErrors.call(this,t,r)),this.updateElementCss(),n},t.prototype.focus=function(t){void 0===t&&(t=!1),this.contentQuestion?this.contentQuestion.focus(t):e.prototype.focus.call(this,t)},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t),this.contentQuestion&&this.contentQuestion.afterRender(t)},Object.defineProperty(t.prototype,"contentQuestion",{get:function(){return this.questionWrapper},enumerable:!1,configurable:!0}),t.prototype.createQuestion=function(){var e=this,t=this.customQuestion.json,r=null;if(t.questionJSON){this.hasJSONTitle=!!t.questionJSON.title;var n=t.questionJSON.type;if(!n||!e6.findClass(n))throw"type attribute in questionJSON is empty or incorrect";(r=e6.createClass(n)).fromJSON(t.questionJSON),r=this.checkCreatedQuestion(r)}else t.createQuestion&&(r=this.checkCreatedQuestion(t.createQuestion()));return this.initElement(r),r&&(r.isContentElement=!0,!r.name&&(r.name="question"),r.onUpdateCssClassesCallback=function(t){e.onUpdateQuestionCssClasses(r,t)},r.hasCssErrorCallback=function(){return e.errors.length>0},r.setValueChangedDirectlyCallback=function(t){e.setValueChangedDirectly(t)}),r},t.prototype.checkCreatedQuestion=function(e){return e?(!e.isQuestion&&(e=Array.isArray(e.questions)&&e.questions.length>0?e.questions[0]:e6.createClass("text"),te.error("Could not create component: '"+this.getType()+"'. questionJSON should be a question.")),e):e},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.contentQuestion&&this.isEmpty()&&!this.contentQuestion.isEmpty()&&(this.value=this.getContentQuestionValue())},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.contentQuestion&&this.contentQuestion.runCondition(t,r)},t.prototype.convertDataName=function(t){var r=this.contentQuestion;if(!r||t===this.getValueName())return e.prototype.convertDataName.call(this,t);var n=t.replace(r.getValueName(),this.getValueName());return 0==n.indexOf(this.getValueName())?n:e.prototype.convertDataName.call(this,t)},t.prototype.convertDataValue=function(t,r){return this.convertDataName(t)==e.prototype.convertDataName.call(this,t)?this.getContentQuestionValue():r},t.prototype.getContentQuestionValue=function(){if(this.contentQuestion){var e=this.contentQuestion.value;return this.customQuestion&&(e=this.customQuestion.getValueFromQuestion(e)),e}},t.prototype.setContentQuestionValue=function(e){this.contentQuestion&&(this.customQuestion&&(e=this.customQuestion.setValueToQuestion(e)),this.contentQuestion.value=e)},t.prototype.canSetValueToSurvey=function(){return!1},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),!this.isLoadingFromJson&&this.contentQuestion&&!this.isTwoValueEquals(this.getContentQuestionValue(),t)&&this.setContentQuestionValue(this.getUnbindValue(t))},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.contentQuestion&&this.contentQuestion.onSurveyValueChanged(t)},t.prototype.getValueCore=function(){return this.contentQuestion?this.getContentQuestionValue():e.prototype.getValueCore.call(this)},t.prototype.setValueChangedDirectly=function(t){!this.isSettingValueChanged&&(this.isSettingValueChanged=!0,e.prototype.setValueChangedDirectly.call(this,t),this.contentQuestion&&this.contentQuestion.setValueChangedDirectly(t),this.isSettingValueChanged=!1)},t.prototype.createDynamicProperties=function(e){if(e){var t=this.getDynamicProperties();Array.isArray(t)&&e6.addDynamicPropertiesIntoObj(this,e,t)}},t.prototype.initElement=function(t){var r=this;e.prototype.initElement.call(this,t),t&&(t.parent=this,t.afterRenderQuestionCallback=function(e,t){r.customQuestion&&r.customQuestion.onAfterRenderContentElement(r,e,t)})},t.prototype.updateElementCss=function(t){this.contentQuestion&&this.questionWrapper.updateElementCss(t),e.prototype.updateElementCss.call(this,t)},t.prototype.updateElementCssCore=function(t){this.contentQuestion&&(t=this.contentQuestion.cssClasses),e.prototype.updateElementCssCore.call(this,t)},t.prototype.getDisplayValueCore=function(t,r){return e.prototype.getContentDisplayValueCore.call(this,t,r,this.contentQuestion)},t}(n5),n8=function(e){function t(t,r){var n=e.call(this,r)||this;return n.composite=t,n.variableName=r,n}return n0(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.composite.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.composite.contentPanel},enumerable:!1,configurable:!0}),t}(nZ),n3=function(e){function t(r,n){var o=e.call(this,r,n)||this;return o.customQuestion=n,o.settingNewValue=!1,o.textProcessing=new n8(o,t.ItemVariableName),o}return n0(t,e),t.prototype.createWrapper=function(){this.panelWrapper=this.createPanel()},t.prototype.getTemplate=function(){return"composite"},t.prototype.getElement=function(){return this.contentPanel},t.prototype.getCssRoot=function(t){return new t$().append(e.prototype.getCssRoot.call(this,t)).append(t.composite).toString()},Object.defineProperty(t.prototype,"contentPanel",{get:function(){return this.panelWrapper},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var n=e.prototype.hasErrors.call(this,t,r);return this.contentPanel&&this.contentPanel.hasErrors(t,!1,r)||n},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t),this.contentPanel&&this.contentPanel.updateElementCss(t)},t.prototype.dispose=function(){this.unConnectEditingObj(),e.prototype.dispose.call(this)},t.prototype.updateEditingObj=function(){var e,t=this,r=null===(e=this.data)||void 0===e?void 0:e.getEditingSurveyElement();if(r){var n=r[this.getValueName()];return n&&!n.onPropertyChanged&&(n=void 0),n!==this.editingObjValue&&(this.unConnectEditingObj(),this.editingObjValue=n,n&&(this.onEditingObjPropertyChanged=function(e,r){t.setNewValueIntoQuestion(r.name,t.editingObjValue[r.name])},n.onPropertyChanged.add(this.onEditingObjPropertyChanged))),this.editingObjValue}},t.prototype.unConnectEditingObj=function(){this.editingObjValue&&!this.editingObjValue.isDisposed&&this.editingObjValue.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getTextProcessor=function(){return this.textProcessing},t.prototype.findQuestionByName=function(t){var r=this.getQuestionByName(t);return r?r:e.prototype.findQuestionByName.call(this,t)},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t);for(var r=this.contentPanel.questions,n=0;n<r.length;n++)r[n].clearValueIfInvisible(t)},t.prototype.onAnyValueChanged=function(t,r){e.prototype.onAnyValueChanged.call(this,t,r);for(var n=this.contentPanel.questions,o=0;o<n.length;o++)n[o].onAnyValueChanged(t,r)},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.createPanel=function(){var e=this,t=e6.createClass("panel");t.showQuestionNumbers="off",t.renderWidth="100%";var r=this.customQuestion.json;return r.elementsJSON&&t.fromJSON({elements:r.elementsJSON}),r.createElements&&r.createElements(t,this),this.initElement(t),t.readOnly=this.isReadOnly,t.questions.forEach(function(t){t.setParentQuestion(e),t.onUpdateCssClassesCallback=function(r){e.onUpdateQuestionCssClasses(t,r)}}),this.setAfterRenderCallbacks(t),t},t.prototype.onReadOnlyChanged=function(){this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly),e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateValueFromSurvey=function(t,r){void 0===r&&(r=!1),this.updateEditingObj(),e.prototype.updateValueFromSurvey.call(this,t,r)},t.prototype.onSurveyLoad=function(){if(this.isSettingValOnLoading=!0,this.contentPanel&&(this.contentPanel.readOnly=this.isReadOnly,this.setIsContentElement(this.contentPanel)),e.prototype.onSurveyLoad.call(this),this.contentPanel){var t=this.getContentPanelValue();!eA.isValueEmpty(t)&&(this.value=t)}this.isSettingValOnLoading=!1},t.prototype.setIsContentElement=function(e){e.isContentElement=!0;for(var t=e.elements,r=0;r<t.length;r++){var n=t[r];n.isPanel?this.setIsContentElement(n):n.isContentElement=!0}},t.prototype.setVisibleIndex=function(t){var r=e.prototype.setVisibleIndex.call(this,t);return this.isVisible&&this.contentPanel&&(r+=this.contentPanel.setVisibleIndex(t)),r},t.prototype.runCondition=function(r,n){if(e.prototype.runCondition.call(this,r,n),this.contentPanel){var o=r[t.ItemV
1ariableName];r[t.ItemVariableName]=this.contentPanel.getValue(),this.contentPanel.runCondition(r,n),delete r[t.ItemVariableName],o&&(r[t.ItemVariableName]=o)}},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t);var r=t||{};this.contentPanel&&this.contentPanel.questions.forEach(function(e){e.onSurveyValueChanged(r[e.getValueName()])})},t.prototype.getValue=function(e){var t=this.value;return t?t[e]:null},t.prototype.getQuestionByName=function(e){return this.contentPanel?this.contentPanel.getQuestionByName(e):void 0},t.prototype.setValue=function(r,n,o,i){if(this.settingNewValue){this.setNewValueIntoQuestion(r,n);return}if(!this.isValueChanging(r,n)){if(this.settingNewValue=!0,!this.isEditingSurveyElement&&this.contentPanel){for(var s=0,a=this.contentPanel.questions.length+1;s<a&&this.updateValueCoreWithPanelValue();)s++}this.setNewValueIntoQuestion(r,n),e.prototype.setValue.call(this,r,n,o,i),this.settingNewValue=!1,this.runPanelTriggers(t.ItemVariableName+"."+r,n)}},t.prototype.setComment=function(e,t,r){var n=this.getUnbindValue(this.value),o=this.getCommentName(e);if((n||t)&&(!t||!n||n[o]!==t)){t?(!n&&(n={}),n[o]=t):delete n[o];var i=this.getQuestionByName(e);i&&i.comment!==t&&(i.comment=t),this.value=n}},t.prototype.getComment=function(e){var t=this.getQuestionByName(e);if(t)return t.comment;var r=this.value;return!!r&&r[this.getCommentName(e)]||""},t.prototype.getCommentName=function(e){return e+r9.commentSuffix},t.prototype.runPanelTriggers=function(e,t){this.contentPanel&&this.contentPanel.questions.forEach(function(r){r.runTriggers(e,t)})},t.prototype.getFilteredValues=function(){var e=this.data?this.data.getFilteredValues():{};return this.contentPanel&&(e[t.ItemVariableName]=this.contentPanel.getValue()),e},t.prototype.updateValueCoreWithPanelValue=function(){var e=this.getContentPanelValue();return!this.isTwoValueEquals(this.getValueCore(),e)&&(this.setValueCore(e),!0)},t.prototype.getContentPanelValue=function(e){return!e&&(e=this.contentPanel.getValue()),this.customQuestion.setValueToQuestion(e)},t.prototype.getValueForContentPanel=function(e){return this.customQuestion.getValueFromQuestion(e)},t.prototype.setNewValueIntoQuestion=function(e,t){var r=this.getQuestionByName(e);r&&!this.isTwoValueEquals(t,r.value)&&(r.value=t)},t.prototype.addConditionObjectsByContext=function(e,t){if(this.contentPanel){for(var r=this.contentPanel.questions,n=this.name,o=this.title,i=0;i<r.length;i++)e.push({name:n+"."+r[i].name,text:o+"."+r[i].title,question:r[i]})}},t.prototype.collectNestedQuestionsCore=function(e,t){this.contentPanel&&this.contentPanel.questions.forEach(function(r){return r.collectNestedQuestions(e,t)})},t.prototype.convertDataValue=function(e,t){var r=this.contentPanel&&!this.isEditingSurveyElement?this.contentPanel.getValue():this.getValueForContentPanel(this.value);return!r&&(r={}),!r.getType&&(r=eA.getUnbindValue(r)),this.isValueEmpty(t)&&!this.isEditingSurveyElement?delete r[e]:r[e]=t,this.getContentPanelValue(r)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),this.setValuesIntoQuestions(t),!this.isEditingSurveyElement&&this.contentPanel&&(t=this.getContentPanelValue()),e.prototype.setQuestionValue.call(this,t,r)},t.prototype.setValuesIntoQuestions=function(e){if(this.contentPanel&&!this.settingNewValue){e=this.getValueForContentPanel(e);var t=this.settingNewValue;this.settingNewValue=!0;for(var r=this.contentPanel.questions,n=0;n<r.length;n++){var o=r[n],i=o.getValueName(),s=this.getCommentName(i),a=e?e[i]:void 0,l=!!e&&e[s]||"";!this.isTwoValueEquals(o.value,a)&&(void 0!==a||!o.isEmpty())&&(o.value=a),o.comment!==l&&(o.comment=l)}this.settingNewValue=t}},t.prototype.getDisplayValueCore=function(t,r){return e.prototype.getContentDisplayValueCore.call(this,t,r,this.contentPanel)},t.prototype.setAfterRenderCallbacks=function(e){var t=this;if(e&&this.customQuestion){for(var r=e.questions,n=0;n<r.length;n++)r[n].afterRenderQuestionCallback=function(e,r){t.customQuestion.onAfterRenderContentElement(t,e,r)}}},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"group"}
vendor: 4,187 bytes, line 1
1,enumerable:!1,configurable:!0}),t.ItemVariableName="composite",t}(n5),n6=function(){function e(){}return Object.defineProperty(e,"DefaultChoices",{get:function(){var e=eM("choices_Item");return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultColums",{get:function(){var e=eM("matrix_column")+" ";return[e+"1",e+"2",e+"3"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultRows",{get:function(){var e=eM("matrix_row")+" ";return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),Object.defineProperty(e,"DefaultMutlipleTextItems",{get:function(){var e=eM("multipletext_itemname");return[e+"1",e+"2"]},enumerable:!1,configurable:!0}),e.prototype.registerQuestion=function(e,t,r){void 0===r&&(r=!0),n7.Instance.registerElement(e,t,r)},e.prototype.registerCustomQuestion=function(e){n7.Instance.registerCustomQuestion(e)},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),n7.Instance.unregisterElement(e,t)},e.prototype.clear=function(){n7.Instance.clear()},e.prototype.getAllTypes=function(){return n7.Instance.getAllTypes()},e.prototype.createQuestion=function(e,t){return n7.Instance.createElement(e,t)},e.Instance=new e,e}(),n7=function(){function e(){var e=this;this.creatorHash={},this.registerCustomQuestion=function(t,r){void 0===r&&(r=!0);e.registerElement(t,function(e){var r=e6.createClass(t);return r&&(r.name=e),r},r)}}return e.prototype.registerElement=function(e,t,r){void 0===r&&(r=!0),this.creatorHash[e]={showInToolbox:r,creator:t}},e.prototype.clear=function(){this.creatorHash={}},e.prototype.unregisterElement=function(e,t){void 0===t&&(t=!1),delete this.creatorHash[e],t&&e6.removeClass(e)},e.prototype.getAllToolboxTypes=function(){return this.getAllTypesCore(!0)},e.prototype.getAllTypes=function(){return this.getAllTypesCore(!1)},e.prototype.createElement=function(e,t){var r=this.creatorHash[e];if(r&&r.creator)return r.creator(t);var n=n2.Instance.getCustomQuestionByName(e);return n?n2.Instance.createQuestion(t,n):null},e.prototype.getAllTypesCore=function(e){var t=[];for(var r in this.creatorHash)(!e||this.creatorHash[r].showInToolbox)&&t.push(r);return t.sort()},e.Instance=new e,e}();var n9=(O=function(e,t){return(O=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}O(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),oe=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("format",r),r.registerPropertyChangedHandlers(["expression"],function(){r.expressionRunner&&(r.expressionRunner=r.createRunner())}),r.registerPropertyChangedHandlers(["format","currency","displayStyle"],function(){r.updateFormatedValue()}),r}return n9(t,e),t.prototype.getType=function(){return"expression"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"format",{get:function(){return this.getLocalizableStringText("format","")},set:function(e){this.setLocalizableStringText("format",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locFormat",{get:function(){return this.getLocalizableString("format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.locCalculation=function(){this.expressionIsRunning=!0},t.prototype.unlocCalculation=function(){this.expressionIsRunning=!1},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.expression&&!this.expressionIsRunning&&(this.runIfReadOnly||!this.isReadOnly)&&(this.locCalculation(),!this.expressionRunner&&(this.expressionRunner=this.createRunner()),this.expressionRunner.run(t,r))},t.prototype.canCollectErrors=function(){return!0},t.prototype.hasRequiredError=function(){return!1}
1,t.prototype.createRunner=function(){var e=this,t=this.createExpressionRunner(this.expression);return t.onRunComplete=function(t){e.value=e.roundValue(t),e.unlocCalculation()},t},Object.defineProperty(t.prototype,"maximumFractionDigits",{get:function(){return this.getPropertyValue("maximumFractionDigits")},set:function(e){!(e<-1)&&!(e>20)&&this.setPropertyValue("maximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minimumFractionDigits",{get:function(){return this.getPropertyValue("minimumFractionDigits")},set:function(e){!(e<-1)&&!(e>20)&&this.setPropertyValue("minimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runIfReadOnly",{get:function(){return!0===this.runIfReadOnlyValue},set:function(e){this.runIfReadOnlyValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formatedValue",{get:function(){return this.getPropertyValue("formatedValue","")},enumerable:!1,configurable:!0}),t.prototype.updateFormatedValue=function(){this.setPropertyValue("formatedValue",this.getDisplayValueCore(!1,this.value))},t.prototype.onValueChanged=function(){this.updateFormatedValue()},t.prototype.updateValueFromSurvey=function(t,r){e.prototype.updateValueFromSurvey.call(this,t,r),this.updateFormatedValue()},t.prototype.getDisplayValueCore=function(e,t){var r=null==t?this.defaultValue:t,n="";if(!this.isValueEmpty(r)){var o=this.getValueAsStr(r);n=this.format?this.format.format(o):o}return this.survey&&(n=this.survey.getExpressionDisplayValue(this,r,n)),n},Object.defineProperty(t.prototype,"displayStyle",{get:function(){return this.getPropertyValue("displayStyle")},set:function(e){this.setPropertyValue("displayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currency",{get:function(){return this.getPropertyValue("currency")},set:function(e){!(0>ot().indexOf(e))&&this.setPropertyValue("currency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useGrouping",{get:function(){return this.getPropertyValue("useGrouping")},set:function(e){this.setPropertyValue("useGrouping",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"precision",{get:function(){return this.getPropertyValue("precision")},set:function(e){this.setPropertyValue("precision",e)},enumerable:!1,configurable:!0}),t.prototype.roundValue=function(e){if(e!==1/0)return this.precision<0||!eA.isNumber(e)?e:parseFloat(e.toFixed(this.precision))},t.prototype.getValueAsStr=function(e){if("date"==this.displayStyle){var t=ek("question-expression",e);if(t&&t.toLocaleDateString)return t.toLocaleDateString()}if("none"!=this.displayStyle&&eA.isNumber(e)){var r=this.getLocale();!r&&(r="en");var n={style:this.displayStyle,currency:this.currency,useGrouping:this.useGrouping};return this.maximumFractionDigits>-1&&(n.maximumFractionDigits=this.maximumFractionDigits),this.minimumFractionDigits>-1&&(n.minimumFractionDigits=this.minimumFractionDigits),e.toLocaleString(r,n)}return e.toString()},t}(n_);function ot(){return["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HRK","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRO","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLL","SOS","SRD","SSP","STD","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UZS","VEF","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]}e6.addClass("expression",["expression:expression",{name:"format",serializationProperty:"locFormat"},{name:"displayStyle",default:"none",choices:["none","decimal","currency","percent","date"]}
1,{name:"currency",choices:function(){return ot()},default:"USD",visibleIf:function(e){return"currency"===e.displayStyle}},{name:"maximumFractionDigits:number",default:-1},{name:"minimumFractionDigits:number",default:-1},{name:"useGrouping:boolean",default:!0},{name:"precision:number",default:-1,category:"data"},{name:"enableIf",visible:!1},{name:"isRequired",visible:!1},{name:"readOnly",visible:!1},{name:"requiredErrorText",visible:!1},{name:"resetValueIf",visible:!1},{name:"setValueIf",visible:!1},{name:"setValueExpression",visible:!1},{name:"defaultValueExpression",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"requiredIf",visible:!1}],function(){return new oe("")},"question"),n6.Instance.registerQuestion("expression",function(e){return new oe(e)});var or=(I=function(e,t){return(I=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}I(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function on(e,t,r,n){e.storeOthersAsComment=!!r&&r.storeOthersAsComment,(!e.choices||0==e.choices.length)&&e.choicesByUrl.isEmpty&&(e.choices=r.choices),!e.choicesByUrl.isEmpty&&e.choicesByUrl.run(n.getTextProcessor())}var oo={dropdown:{onCellQuestionUpdate:function(e,t,r,n){var o,i;on(o=e,t,i=r,n),o.locPlaceholder&&o.locPlaceholder.isEmpty&&!i.locPlaceholder.isEmpty&&(o.optionsCaption=i.optionsCaption)}},checkbox:{onCellQuestionUpdate:function(e,t,r,n){on(e,t,r,n),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},radiogroup:{onCellQuestionUpdate:function(e,t,r,n){on(e,t,r,n),e.colCount=t.colCount>-1?t.colCount:r.columnColCount}},tagbox:{onCellQuestionUpdate:function(e,t,r,n){on(e,t,r,n)}},text:{},comment:{},boolean:{onCellQuestionUpdate:function(e,t,r,n){e.renderAs=t.renderAs}},expression:{},rating:{}},oi=function(e){function t(t,r,n){var o=e.call(this)||this;return o.indexValue=-1,o._hasVisibleCell=!0,o.isColumnsVisibleIf=!0,o.previousChoicesId=void 0,o.colOwnerValue=n,o.createLocalizableString("totalFormat",o),o.createLocalizableString("cellHint",o),o.registerPropertyChangedHandlers(["showInMultipleColumns"],function(){o.doShowInMultipleColumnsChanged()}),o.registerPropertyChangedHandlers(["visible"],function(){o.doColumnVisibilityChanged()}),o.updateTemplateQuestion(void 0,t,r),o}return or(t,e),t.getColumnTypes=function(){var e=[];for(var t in oo)e.push(t);return e},t.prototype.getOriginalObj=function(){return this.templateQuestion},t.prototype.getClassNameProperty=function(){return"cellType"},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.colOwner?this.colOwner.survey:null},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns,this.templateQuestion.endLoadingFromJson(),this.templateQuestion.onGetSurvey=function(){return t.getSurvey()}},t.prototype.getDynamicPropertyName=function(){return"cellType"},t.prototype.getDynamicType=function(){return"default"===this.cellType?"question":this.calcCellQuestionType(null)},Object.defineProperty(t.prototype,"colOwner",{get:function(){return this.colOwnerValue},set:function(e){this.colOwnerValue=e,e&&(this.updateTemplateQuestion(),this.setParentQuestionToTemplate(this.templateQuestion))},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.locTitle.strChanged()},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.templateQuestion.addUsedLocales(t)},Object.defineProperty(t.prototype,"index",{get:function(){return this.indexValue},enumerable:!1,configurable:!0}),t.prototype.setIndex=function(e){this.indexValue=e},t.prototype.getType=function(){return"matrixdropdowncolumn"},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType")},set:function(e){e=e.toLocaleLowerCase(),this.updateTemplateQuestion(e),this.setPropertyValue("cellType",e),this.colOwner&&this.colOwner.onColumnCellTypeChanged(this)}
vendor: 22,216 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateQuestion",{get:function(){return this.templateQuestionValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.templateQuestion.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVisible",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isColumnVisible",{get:function(){return!!this.isDesignMode||this.visible&&this.hasVisibleCell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.templateQuestion.visible},set:function(e){this.templateQuestion.visible=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleCell",{get:function(){return this._hasVisibleCell},set:function(e){this._hasVisibleCell=e},enumerable:!1,configurable:!0}),t.prototype.getVisibleMultipleChoices=function(){var e=this.templateQuestion.visibleChoices;if(!Array.isArray(e))return[];if(!Array.isArray(this._visiblechoices))return e;for(var t=[],r=0;r<e.length;r++){var n=e[r];this._visiblechoices.indexOf(n.value)>-1&&t.push(n)}return t},Object.defineProperty(t.prototype,"getVisibleChoicesInCell",{get:function(){if(Array.isArray(this._visiblechoices))return this._visiblechoices;var e=this.templateQuestion.visibleChoices;return Array.isArray(e)?e:[]},enumerable:!1,configurable:!0}),t.prototype.setVisibleChoicesInCell=function(e){this._visiblechoices=e},Object.defineProperty(t.prototype,"isFilteredMultipleColumns",{get:function(){if(!this.showInMultipleColumns)return!1;var e=this.templateQuestion.choices;if(!Array.isArray(e))return!1;for(var t=0;t<e.length;t++)if(e[t].visibleIf)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.templateQuestion.name},set:function(e){this.templateQuestion.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.templateQuestion.title},set:function(e){this.templateQuestion.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.templateQuestion.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.locTitle.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.templateQuestion.isRequired},set:function(e){this.templateQuestion.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderedRequired",{get:function(){return this.getPropertyValue("isRenderedRequired",this.isRequired)},set:function(e){this.setPropertyValue("isRenderedRequired",e)},enumerable:!1,configurable:!0}),t.prototype.updateIsRenderedRequired=function(e){this.isRenderedRequired=e||this.isRequired},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.isRenderedRequired&&this.getSurvey()?this.getSurvey().requiredText:this.templateQuestion.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.templateQuestion.requiredErrorText},set:function(e){this.templateQuestion.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.templateQuestion.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this.templateQuestion.readOnly},set:function(e){this.templateQuestion.readOnly=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasOther",{get:function(){return this.templateQuestion.hasOther},set:function(e){this.templateQuestion.hasOther=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.templateQuestion.visibleIf},set:function(e){this.templateQuestion.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.templateQuestion.enableIf},set:function(e){this.templateQuestion.enableIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.templateQuestion.requiredIf},set:function(e){this.templateQuestion.requiredIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resetValueIf",{get:function(){return this.templateQuestion.resetValueIf},set:function(e){this.templateQuestion.resetValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.templateQuestion.defaultValueExpression},set:function(e){this.templateQuestion.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueIf",{get:function(){return this.templateQuestion.setValueIf},set:function(e){this.templateQuestion.setValueIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValueExpression",{get:function(){return this.templateQuestion.setValueExpression},set:function(e){this.templateQuestion.setValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUnique",{get:function(){return this.getPropertyValue("isUnique")},set:function(e){this.setPropertyValue("isUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInMultipleColumns",{get:function(){return this.getPropertyValue("showInMultipleColumns")},set:function(e){this.setPropertyValue("showInMultipleColumns",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSupportMultipleColumns",{get:function(){return["checkbox","radiogroup"].indexOf(this.cellType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowInMultipleColumns",{get:function(){return this.showInMultipleColumns&&this.isSupportMultipleColumns},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.templateQuestion.validators},set:function(e){this.templateQuestion.validators=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalType",{get:function(){return this.getPropertyValue("totalType")},set:function(e){this.setPropertyValue("totalType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalExpression",{get:function(){return this.getPropertyValue("totalExpression")},set:function(e){this.setPropertyValue("totalExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTotal",{get:function(){return"none"!=this.totalType||!!this.totalExpression},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalFormat",{get:function(){return this.getLocalizableStringText("totalFormat","")},set:function(e){this.setLocalizableStringText("totalFormat",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalFormat",{get:function(){return this.getLocalizableString("totalFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellHint",{get:function(){return this.getLocalizableStringText("cellHint","")},set:function(e){this.setLocalizableStringText("cellHint",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCellHint",{get:function(){return this.getLocalizableString("cellHint")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderAs",{get:function(){return this.getPropertyValue("renderAs")},set:function(e){this.setPropertyValue("renderAs",e),this.templateQuestion&&(this.templateQuestion.renderAs=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMaximumFractionDigits",{get:function(){return this.getPropertyValue("totalMaximumFractionDigits")},set:function(e){!(e<-1)&&!(e>20)&&this.setPropertyValue("totalMaximumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalMinimumFractionDigits",{get:function(){return this.getPropertyValue("totalMinimumFractionDigits")},set:function(e){!(e<-1)&&!(e>20)&&this.setPropertyValue("totalMinimumFractionDigits",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalDisplayStyle",{get:function(){return this.getPropertyValue("totalDisplayStyle")},set:function(e){this.setPropertyValue("totalDisplayStyle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalAlignment",{get:function(){return this.getPropertyValue("totalAlignment")},set:function(e){this.setPropertyValue("totalAlignment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"totalCurrency",{get:function(){return this.getPropertyValue("totalCurrency")},set:function(e){!(0>ot().indexOf(e))&&this.setPropertyValue("totalCurrency",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth","")},set:function(e){this.setPropertyValue("minWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.templateQuestion.width},set:function(e){this.templateQuestion.width=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){!(e<-1)&&!(e>4)&&this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.colOwner?this.colOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.colOwner?this.colOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.colOwner?this.colOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.colOwner?this.colOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.colOwner?this.colOwner.getProcessedText(e):e},t.prototype.createCellQuestion=function(e){var t=this.calcCellQuestionType(e),r=this.createNewQuestion(t);return this.callOnCellQuestionUpdate(r,e),r},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&!t.cellType&&t.choices&&(t.cellType=this.colOwner.getCellType())},t.prototype.updateCellQuestion=function(e,t,r){void 0===r&&(r=null),this.setQuestionProperties(e,r)},t.prototype.callOnCellQuestionUpdate=function(e,t){var r=oo[e.getType()];r&&r.onCellQuestionUpdate&&r.onCellQuestionUpdate(e,this,this.colOwner,t)},t.prototype.defaultCellTypeChanged=function(){this.updateTemplateQuestion()},t.prototype.calcCellQuestionType=function(e){var t=this.getDefaultCellQuestionType();return e&&this.colOwner&&(t=this.colOwner.getCustomCellType(this,e,t)),t},t.prototype.getDefaultCellQuestionType=function(e){return(!e&&(e=this.cellType),"default"!==e)?e:this.colOwner?this.colOwner.getCellType():r9.matrix.defaultCellType},t.prototype.updateTemplateQuestion=function(e,t,r){var n=this,o=this.getDefaultCellQuestionType(e),i=this.templateQuestion?this.templateQuestion.getType():"";o!==i&&(this.templateQuestion&&this.removeProperties(i),this.templateQuestionValue=this.createNewQuestion(o),this.templateQuestion.locOwner=this,this.addProperties(o),t&&(this.name=t),r?this.title=r:this.templateQuestion.locTitle.strChanged(),r9.serialization.matrixDropdownColumnSerializeTitle&&(this.templateQuestion.locTitle.serializeCallBackText=!0),this.templateQuestion.onPropertyChanged.add(function(e,t){n.propertyValueChanged(t.name,t.oldValue,t.newValue,t.arrayChanges,t.target)}),this.templateQuestion.onItemValuePropertyChanged.add(function(e,t){n.doItemValuePropertyChanged(t.propertyName,t.obj,t.name,t.newValue,t.oldValue)}),this.templateQuestion.isContentElement=!0,!this.isLoadingFromJson&&(this.templateQuestion.onGetSurvey=function(){return n.getSurvey()}),this.templateQuestion.locTitle.strChanged())},t.prototype.createNewQuestion=function(e){var t=e6.createClass(e);return!t&&(t=e6.createClass("text")),t.loadingOwner=this,t.isEditableTemplateElement=!0,t.autoOtherMode=this.isShowInMultipleColumns,this.setQuestionProperties(t),this.setParentQuestionToTemplate(t),t},t.prototype.setParentQuestionToTemplate=function(e){this.colOwner&&this.colOwner.isQuestion&&e.setParentQuestion(this.colOwner)},t.prototype.setQuestionProperties=function(e,t){var r=this;if(void 0===t&&(t=null),this.templateQuestion){var n=new e3().toJsonObject(this.templateQuestion,!0);if(t&&t(n),n.type=e.getType(),"default"===this.cellType&&this.colOwner&&this.colOwner.hasChoices()&&delete n.choices,delete n.itemComponent,this.jsonObj&&"rating"===n.type&&Object.keys(this.jsonObj).forEach(function(e){n[e]=r.jsonObj[e]}),"random"===n.choicesOrder){n.choicesOrder="none";var o=this.templateQuestion.visibleChoices;Array.isArray(o)&&(n.choices=o)}new e3().toObject(n,e),e.isContentElement=this.templateQuestion.isContentElement,this.previousChoicesId=void 0,e.loadedChoicesFromServerCallback=function(){if(!!r.isShowInMultipleColumns){if(!r.previousChoicesId||r.previousChoicesId===e.id){r.previousChoicesId=e.id;var t=e.visibleChoices;r.templateQuestion.choices=t,r.propertyValueChanged("choices",t,t)}}}}},t.prototype.propertyValueChanged=function(t,r,n,o,i){if(e.prototype.propertyValueChanged.call(this,t,r,n,o,i),"isRequired"===t&&this.updateIsRenderedRequired(n),!!this.colOwner&&!this.isLoadingFromJson){if(this.isShowInMultipleColumns){if("choicesOrder"===t)return;["visibleChoices","choices"].indexOf(t)>-1&&this.colOwner.onShowInMultipleColumnsChanged(this)}e6.hasOriginalProperty(this,t)&&this.colOwner.onColumnPropertyChanged(this,t,n)}},t.prototype.doItemValuePropertyChanged=function(e,t,r,n,o){e6.hasOriginalProperty(t,r)&&null!=this.colOwner&&!this.isLoadingFromJson&&this.colOwner.onColumnItemValuePropertyChanged(this,e,t,r,n,o)},t.prototype.doShowInMultipleColumnsChanged=function(){null!=this.colOwner&&this.colOwner.onShowInMultipleColumnsChanged(this),this.templateQuestion&&(this.templateQuestion.autoOtherMode=this.isShowInMultipleColumns)},t.prototype.doColumnVisibilityChanged=function(){null!=this.colOwner&&!this.isDesignMode&&this.colOwner.onColumnVisibilityChanged(this)},t.prototype.getProperties=function(e){return e6.getDynamicPropertiesByObj(this,e)},t.prototype.removeProperties=function(e){for(var t=this.getProperties(e),r=0;r<t.length;r++){var n=t[r];delete this[n.name],n.serializationProperty&&delete this[n.serializationProperty]}},t.prototype.addProperties=function(e){var t=this.getProperties(e);e6.addDynamicPropertiesIntoObj(this,this.templateQuestion,t)},t}(tQ);e6.addClass("matrixdropdowncolumn",[{name:"!name",isUnique:!0},{name:"title",serializationProperty:"locTitle",dependsOn:"name",onPropertyEditorUpdate:function(e,t){e&&t&&(t.placeholder=e.name)}},{name:"cellHint",serializationProperty:"locCellHint",visible:!1},{name:"cellType",default:"default",choices:function(){var e=oi.getColumnTypes();return e.splice(0,0,"default"),e}},{name:"colCount",default:-1,choices:[-1,0,1,2,3,4]},"isRequired:boolean","isUnique:boolean",{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},"readOnly:boolean",{name:"minWidth",onPropertyEditorUpdate:function(e,t){e&&t&&(t.value=e.minWidth)}},"width",{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition","resetValueIf:condition","setValueIf:condition","setValueExpression:expression",{name:"showInMultipleColumns:boolean",dependsOn:"cellType",visibleIf:function(e){return e.isSupportMultipleColumns}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"},{name:"totalType",visibleIf:function(e){return!e.isShowInMultipleColumns},default:"none",choices:["none","sum","count","min","max","avg"]},{name:"totalExpression:expression",visibleIf:function(e){return!e.isShowInMultipleColumns}},{name:"totalFormat",serializationProperty:"locTotalFormat",visibleIf:function(e){return e.hasTotal}},{name:"totalDisplayStyle",visibleIf:function(e){return e.hasTotal},default:"none",choices:["none","decimal","currency","percent"]},{name:"totalAlignment",visibleIf:function(e){return e.hasTotal},default:"auto",choices:["auto","left","center","right"]},{name:"totalCurrency",visibleIf:function(e){return e.hasTotal},choices:function(){return ot()},default:"USD"},{name:"totalMaximumFractionDigits:number",default:-1,visibleIf:function(e){return e.hasTotal}},{name:"totalMinimumFractionDigits:number",default:-1,visibleIf:function(e){return e.hasTotal}},{name:"renderAs",default:"default",visible:!1}],function(){return new oi("")});var os=(T=function(e,t){return(T=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),oa=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ol=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};function ou(e,t,r){return e+(t?"-error":"")+(r?"-detail":"")}var oc=function(){function e(){this.minWidth="",this.width="",this.colSpans=1,this.isActionsCell=!1,this.isErrorsCell=!1,this.isDragHandlerCell=!1,this.isDetailRowCell=!1,this.classNameValue="",this.idValue=e.counter++}return Object.defineProperty(e.prototype,"requiredText",{get:function(){return this.column&&this.column.isRenderedRequired?this.column.requiredText:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasQuestion",{get:function(){return!!this.question&&!this.isErrorsCell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasTitle",{get:function(){return!!this.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.panel},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){var e=this.question?this.question.id:this.idValue.toString();return this.isChoice&&(e+="-"+(Number.isInteger(this.choiceIndex)?"index"+this.choiceIndex.toString():this.item.id)),ou(e,this.isErrorsCell,this.isDetailRowCell)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.itemValue},set:function(e){this.itemValue=e,e&&(e.hideCaption=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChoice",{get:function(){return!!this.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isItemChoice",{get:function(){return this.isChoice&&!this.isOtherChoice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"choiceValue",{get:function(){return this.isChoice?this.item.value:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isCheckbox",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("checkbox")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRadio",{get:function(){return this.isItemChoice&&this.question.isDescendantOf("radiogroup")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirstChoice",{get:function(){return 0===this.choiceIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"className",{get:function(){var e=new t$().append(this.classNameValue);return this.hasQuestion&&e.append(this.question.cssClasses.hasError,this.question.errors.length>0).append(this.question.cssClasses.answered,this.question.isAnswered),e.toString()},set:function(e){this.classNameValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cellQuestionWrapperClassName",{get:function(){return this.cell.getQuestionWrapperClassName(this.matrix.cssClasses.cellQuestionWrapper)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isVisible",{get:function(){var e;return!this.hasQuestion&&!this.isErrorsCell||!(null===(e=this.matrix)||void 0===e?void 0:e.isMobile)||this.question.isVisible},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showResponsiveTitle",{get:function(){var e;return this.hasQuestion&&(null===(e=this.matrix)||void 0===e?void 0:e.isMobile)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsiveTitleCss",{get:function(){return new t$().append(this.matrix.cssClasses.cellResponsiveTitle).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responsiveLocTitle",{get:function(){return this.cell.column.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){if(this.cell&&this.cell.column){if(this.matrix.IsMultiplyColumn(this.cell.column))return this.item?this.item.locText.renderedHtml:"";var e=this.cell.column.cellHint;if(e)return""===e.trim()?"":this.cell.column.locCellHint.renderedHtml;return this.hasQuestion&&this.question.isVisible&&this.question.title?this.question.title:this.cell.column.title}return this.hasQuestion&&this.question.isVisible?this.question.locTitle.renderedHtml:this.hasTitle&&this.locTitle.renderedHtml||""},enumerable:!1,configurable:!0}),e.prototype.getTitle=function(){return this.matrix&&this.matrix.showHeader?this.headers:""},e.prototype.calculateFinalClassName=function(e){var t=this.cell.question.cssClasses,r=new t$().append(t.itemValue,!!t).append(t.asCell,!!t);return r.append(e.cell,r.isEmpty()&&!!e).append(e.choiceCell,this.isChoice).toString()},e.prototype.focusIn=function(){this.question&&this.question.focusIn()},e.counter=1,e}(),op=function(e){function t(r,n){void 0===n&&(n=!1);var o=e.call(this)||this;return o.cssClasses=r,o.isDetailRow=n,o.hasEndActions=!1,o.isErrorsRow=!1,o.cells=[],o.idValue=t.counter++,o}return os(t,e),Object.defineProperty(t.prototype,"id",{get:function(){var e;return ou((null===(e=this.row)||void 0===e?void 0:e.id)||this.idValue.toString(),this.isErrorsRow,this.isDetailRow)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){return this.row?{"data-sv-drop-target-matrix-row":this.row.id}:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){var e,t;return new t$().append(this.cssClasses.row).append(this.cssClasses.detailRow,this.isDetailRow).append(this.cssClasses.rowHasPanel,null===(e=this.row)||void 0===e?void 0:e.hasPanel).append(this.cssClasses.expandedRow,(null===(t=this.row)||void 0===t?void 0:t.isDetailPanelShowing)&&!this.isDetailRow).append(this.cssClasses.rowHasEndActions,this.hasEndActions).append(this.cssClasses.ghostRow,this.isGhostRow).append(this.cssClasses.rowAdditional,this.isAdditionalClasses).toString()},enumerable:!1,configurable:!0}),t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.prototype.focusCell=function(e){if(this.rootElement){var t=this.rootElement.querySelectorAll(":scope td:nth-of-type("+(e+1)+") input, :scope td:nth-of-type("+(e+1)+") button")[0];t&&t.focus()}},t.counter=1,oa([eW({defaultValue:!1})],t.prototype,"isGhostRow",void 0),oa([eW({defaultValue:!1})],t.prototype,"isAdditionalClasses",void 0),oa([eW({defaultValue:!0})],t.prototype,"visible",void 0),t}(tQ),oh=function(e){function t(t){var r=e.call(this,t)||this;return r.isErrorsRow=!0,r}return os(t,e),Object.defineProperty(t.prototype,"attributes",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"className",{get:function(){return new t$().append(this.cssClasses.row).append(this.cssClasses.errorRow).toString()},enumerable:!1,configurable:!0}),t.prototype.onAfterCreated=function(){var e=this,t=function(){e.visible=e.cells.some(function(e){return e.question&&e.question.hasVisibleErrors})};this.cells.forEach(function(e){e.question&&e.question.registerFunctionOnPropertyValueChanged("hasVisibleErrors",t)}),t()},t}(op),od=function(e){function t(t){var r=e.call(this)||this;return r.matrix=t,r._renderedRows=[],r.renderedRowsAnimation=new ry(r.getRenderedRowsAnimationOptions(),function(e){r._renderedRows=e},function(){return r._renderedRows}),r.hasActionCellInRowsValues={},r.build(),r}return os(t,e),t.prototype.getIsAnimationAllowed=function(){return e.prototype.getIsAnimationAllowed.call(this)&&this.matrix.animationAllowed},t.prototype.getRenderedRowsAnimationOptions=function(){var e=this,t=function(e){e.querySelectorAll(":scope > td > *").forEach(function(e){r5(e)})},r=function(e){e.querySelectorAll(":scope > td > *").forEach(function(e){r4(e)})};return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(e){return e.getRootElement()},getLeaveOptions:function(){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:t,onAfterRunAnimation:r}},getEnterOptions:function(n,o){return{cssClass:e.cssClasses.rowEnter,onBeforeRunAnimation:t,onAfterRunAnimation:r}},getKey:function(e){return e.id}}},t.prototype.updateRenderedRows=function(){this.renderedRows=this.rows},Object.defineProperty(t.prototype,"renderedRows",{get:function(){return this._renderedRows},set:function(e){this.renderedRowsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTable",{get:function(){return this.getPropertyValue("showTable",!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getPropertyValue("showHeader")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRow",{get:function(){return this.getPropertyValue("showAddRow",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnTop",{get:function(){return this.getPropertyValue("showAddRowOnTop",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showAddRowOnBottom",{get:function(){return this.getPropertyValue("showAddRowOnBottom",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.matrix.hasFooter&&this.matrix.isColumnLayoutHorizontal}
vendor: 10,371 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFooter",{get:function(){return!!this.footerRow},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRemoveRows",{get:function(){return this.hasRemoveRowsValue},enumerable:!1,configurable:!0}),t.prototype.isRequireReset=function(){return this.hasRemoveRows!=this.matrix.canRemoveRows||!this.matrix.isColumnLayoutHorizontal},Object.defineProperty(t.prototype,"headerRow",{get:function(){return this.headerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerRow",{get:function(){return this.footerRowValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.matrix.isRowsDragAndDrop&&this.matrix.isColumnLayoutHorizontal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsTop",{get:function(){return"top"===this.matrix.getErrorLocation()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCellErrorsBottom",{get:function(){return"bottom"===this.matrix.getErrorLocation()},enumerable:!1,configurable:!0}),t.prototype.build=function(){this.hasRemoveRowsValue=this.matrix.canRemoveRows,this.matrix.visibleRows,this.cssClasses=this.matrix.cssClasses,this.buildRowsActions(),this.buildHeader(),this.buildRows(),this.buildFooter(),this.updateShowTableAndAddRow()},t.prototype.updateShowTableAndAddRow=function(){var e=this.rows.length>0||this.matrix.isDesignMode||!this.matrix.getShowColumnsIfEmpty();this.setPropertyValue("showTable",e);var t=this.matrix.canAddRow&&e,r=t,n=t;r&&(r="default"===this.matrix.getAddRowLocation()?!this.matrix.isColumnLayoutHorizontal:"bottom"!==this.matrix.getAddRowLocation()),n&&"topBottom"!==this.matrix.getAddRowLocation()&&(n=!r),this.setPropertyValue("showAddRow",this.matrix.canAddRow),this.setPropertyValue("showAddRowOnTop",r),this.setPropertyValue("showAddRowOnBottom",n)},t.prototype.onAddedRow=function(e,t){if(!(this.getRenderedDataRowCount()>=this.matrix.visibleRows.length)){var r=this.getRenderedRowIndexByIndex(t);this.rowsActions.splice(t,0,this.buildRowActions(e)),this.addHorizontalRow(this.rows,e,r),this.updateShowTableAndAddRow()}},t.prototype.getRenderedRowIndexByIndex=function(e){for(var t=0,r=0,n=0;n<this.rows.length;n++){if(r===e){(this.rows[n].isErrorsRow||this.rows[n].isDetailRow)&&(t++,n+1<this.rows.length&&this.rows[n+1].isDetailRow&&t++);break}t++,!this.rows[n].isErrorsRow&&!this.rows[n].isDetailRow&&r++}return r<e?this.rows.length:t},t.prototype.getRenderedDataRowCount=function(){for(var e=0,t=0;t<this.rows.length;t++)!this.rows[t].isErrorsRow&&!this.rows[t].isDetailRow&&e++;return e},t.prototype.onRemovedRow=function(e){var t=this.getRenderedRowIndex(e);if(!(t<0)){this.rowsActions.splice(t,1);var r=1;t<this.rows.length-1&&this.showCellErrorsBottom&&this.rows[t+1].isErrorsRow&&r++,t<this.rows.length-1&&(this.rows[t+1].isDetailRow||this.showCellErrorsBottom&&t+1<this.rows.length-1&&this.rows[t+2].isDetailRow)&&r++,t>0&&this.showCellErrorsTop&&this.rows[t-1].isErrorsRow&&(t--,r++),this.rows.splice(t,r),this.updateShowTableAndAddRow()}},t.prototype.onDetailPanelChangeVisibility=function(e,t){var r=this.getRenderedRowIndex(e);if(!(r<0)){var n=r;this.showCellErrorsBottom&&n++;var o=n<this.rows.length-1&&this.rows[n+1].isDetailRow?n+1:-1;if((!t||!(o>-1))&&(t||!(o<0))){if(t){var i=this.createDetailPanelRow(e,this.rows[r]);this.rows.splice(n+1,0,i)}else this.rows.splice(o,1)}}},t.prototype.focusActionCell=function(e,t){var r=this.rows[this.rows.length-1];if(this.matrix.isColumnLayoutHorizontal){var n=this.getRenderedRowIndex(e);r=this.rows[n]}null==r||r.focusCell(t)},t.prototype.getRenderedRowIndex=function(e){for(var t=0;t<this.rows.length;t++)if(this.rows[t].row==e)return t;return -1},t.prototype.buildRowsActions=function(){this.rowsActions=[];for(var e=this.matrix.visibleRows,t=0;t<e.length;t++)this.rowsActions.push(this.buildRowActions(e[t]))},t.prototype.createRenderedRow=function(e,t){return void 0===t&&(t=!1),new op(e,t)},t.prototype.createErrorRenderedRow=function(e){return new oh(e)},t.prototype.buildHeader=function(){var e=this.matrix.isColumnLayoutHorizontal&&this.matrix.showHeader||this.matrix.hasRowText&&!this.matrix.isColumnLayoutHorizontal;if(this.setPropertyValue("showHeader",e),e){if(this.headerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.headerRow.cells.push(this.createHeaderCell(null,"action",this.cssClasses.actionsCellDrag)),this.hasActionCellInRows("start")&&this.headerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText&&this.matrix.showHeader&&this.headerRow.cells.push(this.createHeaderCell(null)),this.matrix.isColumnLayoutHorizontal)for(var t=0;t<this.matrix.columns.length;t++){var r=this.matrix.columns[t];r.isColumnVisible&&(this.matrix.IsMultiplyColumn(r)?this.createMutlipleColumnsHeader(r):this.headerRow.cells.push(this.createHeaderCell(r)))}else{for(var n=this.matrix.visibleRows,t=0;t<n.length;t++){var o=this.createTextCell(n[t].locText);this.setHeaderCellCssClasses(o),o.row=n[t],this.headerRow.cells.push(o)}if(this.matrix.hasFooter){var o=this.createTextCell(this.matrix.getFooterText());this.setHeaderCellCssClasses(o),this.headerRow.cells.push(o)}}this.hasActionCellInRows("end")&&this.headerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildFooter=function(){if(this.showFooter){if(this.footerRowValue=this.createRenderedRow(this.cssClasses),this.isRowsDragAndDrop&&this.footerRow.cells.push(this.createHeaderCell(null)),this.hasActionCellInRows("start")&&this.footerRow.cells.push(this.createHeaderCell(null,"action")),this.matrix.hasRowText){var e=this.createTextCell(this.matrix.getFooterText());e.className=new t$().append(e.className).append(this.cssClasses.footerTotalCell).toString(),this.footerRow.cells.push(e)}for(var t=this.matrix.visibleTotalRow.cells,r=0;r<t.length;r++){var n=t[r];if(n.column.isColumnVisible){if(this.matrix.IsMultiplyColumn(n.column))this.createMutlipleColumnsFooter(this.footerRow,n);else{var o=this.createEditCell(n);n.column&&this.setCellWidth(n.column,o),o.className=new t$().append(o.className).append(this.cssClasses.footerCell).toString(),this.footerRow.cells.push(o)}}}this.hasActionCellInRows("end")&&this.footerRow.cells.push(this.createHeaderCell(null,"action"))}},t.prototype.buildRows=function(){this.blockAnimations();var e=this.matrix.isColumnLayoutHorizontal?this.buildHorizontalRows():this.buildVerticalRows();this.rows=e,this.releaseAnimations()},t.prototype.hasActionCellInRows=function(e){return void 0===this.hasActionCellInRowsValues[e]&&(this.hasActionCellInRowsValues[e]=this.hasActionsCellInLocaltion(e)),this.hasActionCellInRowsValues[e]},t.prototype.hasActionsCellInLocaltion=function(e){var t=this;return"end"==e&&!!this.hasRemoveRows||this.matrix.visibleRows.some(function(r,n){return!t.isValueEmpty(t.getRowActions(n,e))})},t.prototype.canRemoveRow=function(e){return this.matrix.canRemoveRow(e)},t.prototype.buildHorizontalRows=function(){for(var e=this.matrix.visibleRows,t=[],r=0;r<e.length;r++)this.addHorizontalRow(t,e[r]);return t},t.prototype.addHorizontalRow=function(e,t,r){void 0===r&&(r=-1);var n=this.createHorizontalRow(t),o=this.createErrorRow(n);if(n.row=t,r<0&&(r=e.length),this.matrix.isMobile){for(var i=[],s=0;s<n.cells.length;s++)this.showCellErrorsTop&&!o.cells[s].isEmpty&&i.push(o.cells[s]),i.push(n.cells[s]),this.showCellErrorsBottom&&!o.cells[s].isEmpty&&i.push(o.cells[s]);n.cells=i,e.splice(r,0,n)}else e.splice.apply(e,ol([r,0],this.showCellErrorsTop?[o,n]:[n,o])),r++;t.isDetailPanelShowing&&e.splice(r+1,0,this.createDetailPanelRow(t,n))},t.prototype.getRowDragCell=function(e){var t=new oc,r=this.matrix.lockedRowCount;return t.isDragHandlerCell=r<1||e>=r,t.isEmpty=!t.isDragHandlerCell,t.className=this.getActionsCellClassName(t),t.row=this.matrix.visibleRows[e],t},t.prototype.getActionsCellClassName=function(e){var t=this;void 0===e&&(e=null);var r=new t$().append(this.cssClasses.actionsCell).append(this.cssClasses.actionsCellDrag,null==e?void 0:e.isDragHandlerCell).append(this.cssClasses.detailRowCell,null==e?void 0:e.isDetailRowCell).append(this.cssClasses.verticalCell,!this.matrix.isColumnLayoutHorizontal);if(e.isActionsCell){var n=e.item.value.actions;this.cssClasses.actionsCellPrefix&&n.forEach(function(e){r.append(t.cssClasses.actionsCellPrefix+"--"+e.id)})}return r.toString()},t.prototype.getRowActionsCell=function(e,t,r){void 0===r&&(r=!1);var n=this.getRowActions(e,t);if(!this.isValueEmpty(n)){var o=new oc,i=this.matrix.allowAdaptiveActions?new rc:new tZ;this.matrix.survey&&this.matrix.survey.getCss().actionBar&&(i.cssClasses=this.matrix.survey.getCss().actionBar),i.setItems(n);var s=new nL(i);return o.item=s,o.isActionsCell=!0,o.isDragHandlerCell=!1,o.isDetailRowCell=r,o.className=this.getActionsCellClassName(o),o.row=this.matrix.visibleRows[e],o}return null},t.prototype.getRowActions=function(e,t){var r=this.rowsActions[e];return Array.isArray(r)?r.filter(function(e){return!e.location&&(e.location="start"),e.location===t}):[]},t.prototype.buildRowActions=function(e){var t=[];return this.setDefaultRowActions(e,t),this.matrix.survey&&(t=this.matrix.survey.getUpdatedMatrixRowActions(this.matrix,e,t)),t},Object.defineProperty(t.prototype,"showRemoveButtonAsIcon",{get:function(){return r9.matrix.renderRemoveAsIcon&&this.matrix.survey&&"sd-root-modern"===this.matrix.survey.css.root},enumerable:!1,configurable:!0}),t.prototype.setDefaultRowActions=function(e,t){var r=this,n=this.matrix;this.hasRemoveRows&&this.canRemoveRow(e)&&(this.showRemoveButtonAsIcon?t.push(new ra({id:"remove-row",iconName:"icon-delete-24x24",iconSize:"auto",component:"sv-action-bar-item",innerCss:new t$().append(this.matrix.cssClasses.button).append(this.matrix.cssClasses.buttonRemove).toString(),location:"end",showTitle:!1,title:n.removeRowText,enabled:!n.isInputReadOnly,data:{row:e,question:n},action:function(){n.removeRowUI(e)}})):t.push(new ra({id:"remove-row",location:"end",enabled:!this.matrix.isInputReadOnly,component:"sv-matrix-remove-button",data:{row:e,question:this.matrix}}))),e.hasPanel&&(this.matrix.isMobile?t.unshift(new ra({id:"show-detail-mobile",title:new tB(function(){return e.isDetailPanelShowing?r.matrix.getLocalizationString("hideDetails"):r.matrix.getLocalizationString("showDetail
1s")}),showTitle:!0,location:"end",action:function(t){e.showHideDetailPanelClick()}})):t.push(new ra({id:"show-detail",title:this.matrix.getLocalizationString("editText"),showTitle:!1,location:"start",component:"sv-matrix-detail-button",data:{row:e,question:this.matrix}})))},t.prototype.createErrorRow=function(e){for(var t=this.createErrorRenderedRow(this.cssClasses),r=0;r<e.cells.length;r++){var n=e.cells[r];n.hasQuestion?this.matrix.IsMultiplyColumn(n.cell.column)?n.isFirstChoice?t.cells.push(this.createErrorCell(n.cell)):t.cells.push(this.createEmptyCell(!0)):t.cells.push(this.createErrorCell(n.cell)):t.cells.push(this.createEmptyCell(!0))}return t.onAfterCreated(),t},t.prototype.createHorizontalRow=function(e){var t=this.createRenderedRow(this.cssClasses);if(this.isRowsDragAndDrop){var r=this.matrix.visibleRows.indexOf(e);t.cells.push(this.getRowDragCell(r))}if(this.addRowActionsCell(e,t,"start"),this.matrix.hasRowText){var n=this.createTextCell(e.locText);n.row=e,t.cells.push(n),this.setCellWidth(null,n),n.className=new t$().append(n.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell,!this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.detailRowText,e.hasPanel).toString()}for(var o=0;o<e.cells.length;o++){var i=e.cells[o];if(i.column.isColumnVisible){if(this.matrix.IsMultiplyColumn(i.column))this.createMutlipleEditCells(t,i);else{i.column.isShowInMultipleColumns&&i.question.visibleChoices.map(function(e){return e.hideCaption=!1});var n=this.createEditCell(i);t.cells.push(n),this.setCellWidth(i.column,n)}}}return this.addRowActionsCell(e,t,"end"),t},t.prototype.addRowActionsCell=function(e,t,r){var n=this.matrix.visibleRows.indexOf(e);if(this.hasActionCellInRows(r)){var o=this.getRowActionsCell(n,r,t.isDetailRow);if(o)t.cells.push(o),t.hasEndActions=!0;else{var i=new oc;i.isEmpty=!0,i.isDetailRowCell=t.isDetailRow,t.cells.push(i)}}},t.prototype.createDetailPanelRow=function(e,t){var r=this.matrix.isDesignMode,n=this.createRenderedRow(this.cssClasses,!0);n.row=e;var o=new oc;this.matrix.hasRowText&&(o.colSpans=2),o.isEmpty=!0,!r&&n.cells.push(o);var i=null;this.hasActionCellInRows("end")&&((i=new oc).isEmpty=!0);var s=new oc;return s.panel=e.detailPanel,s.colSpans=t.cells.length-(r?0:o.colSpans)-(i?i.colSpans:0),s.className=this.cssClasses.detailPanelCell,n.cells.push(s),i&&(this.matrix.isMobile?this.addRowActionsCell(e,n,"end"):n.cells.push(i)),"function"==typeof this.matrix.onCreateDetailPanelRenderedRowCallback&&this.matrix.onCreateDetailPanelRenderedRowCallback(n),n},t.prototype.buildVerticalRows=function(){for(var e=this.matrix.columns,t=[],r=0;r<e.length;r++){var n=e[r];if(n.isColumnVisible){if(this.matrix.IsMultiplyColumn(n))this.createMutlipleVerticalRows(t,n,r);else{var o=this.createVerticalRow(n,r),i=this.createErrorRow(o);this.showCellErrorsTop?(t.push(i),t.push(o)):(t.push(o),t.push(i))}}}return this.hasActionCellInRows("end")&&t.push(this.createEndVerticalActionRow()),t},t.prototype.createMutlipleVerticalRows=function(e,t,r){var n=this.getMultipleColumnChoices(t);if(n)for(var o=0;o<n.length;o++){var i=this.createVerticalRow(t,r,n[o],o),s=this.createErrorRow(i);this.showCellErrorsTop?(e.push(s),e.push(i)):(e.push(i),e.push(s))}},t.prototype.createVerticalRow=function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n=-1);var o=this.createRenderedRow(this.cssClasses);if(this.matrix.showHeader){var i=r?r.locText:e.locTitle,s=this.createTextCell(i);s.column=e,s.className=new t$().append(s.className).append(this.cssClasses.rowTextCell).append(this.cssClasses.columnTitleCell).toString(),o.cells.push(s)}for(var a=this.matrix.visibleRows,l=0;l<a.length;l++){var u=r,c=n>=0?n:l,p=a[l].cells[t],h=r?p.question.visibleChoices:void 0;h&&c<h.length&&(u=h[c]);var d=this.createEditCell(p,u);d.item=u,d.choiceIndex=c,o.cells.push(d)}return this.matrix.hasTotal&&o.cells.push(this.createEditCell(this.matrix.visibleTotalRow.cells[t])),o},t.prototype.createEndVerticalActionRow=function(){var e=this.createRenderedRow(this.cssClasses);this.matrix.showHeader&&e.cells.push(this.createEmptyCell());for(var t=this.matrix.visibleRows,r=0;r<t.length;r++)e.cells.push(this.getRowActionsCell(r,"end"));return this.matrix.hasTotal&&e.cells.push(this.createEmptyCell()),e},t.prototype.createMutlipleEditCells=function(e,t,r){void 0===r&&(r=!1);var n=r?this.getMultipleColumnChoices(t.column):t.question.visibleChoices;if(n)for(var o=0;o<n.length;o++){var i=this.createEditCell(t,r?void 0:n[o]);
vendor: 32,309 bytes, line 1
1!r&&(this.setItemCellCssClasses(i),i.choiceIndex=o),e.cells.push(i)}},t.prototype.setItemCellCssClasses=function(e){e.className=new t$().append(this.cssClasses.cell).append(this.cssClasses.itemCell).append(this.cssClasses.radioCell,e.isRadio).append(this.cssClasses.checkboxCell,e.isCheckbox).toString()},t.prototype.createEditCell=function(e,t){void 0===t&&(t=void 0);var r=new oc;return r.cell=e,r.row=e.row,r.column=e.column,r.question=e.question,r.matrix=this.matrix,r.item=t,r.isOtherChoice=!!t&&!!e.question&&e.question.otherItem===t,r.className=r.calculateFinalClassName(this.cssClasses),r},t.prototype.createErrorCell=function(e,t){void 0===t&&(t=void 0);var r=new oc;return r.question=e.question,r.row=e.row,r.matrix=this.matrix,r.isErrorsCell=!0,r.className=new t$().append(this.cssClasses.cell).append(this.cssClasses.errorsCell).append(this.cssClasses.errorsCellTop,this.showCellErrorsTop).append(this.cssClasses.errorsCellBottom,this.showCellErrorsBottom).toString(),r},t.prototype.createMutlipleColumnsFooter=function(e,t){this.createMutlipleEditCells(e,t,!0)},t.prototype.createMutlipleColumnsHeader=function(e){var t=this.getMultipleColumnChoices(e);if(t)for(var r=0;r<t.length;r++){var n=this.createTextCell(t[r].locText);this.setHeaderCell(e,n),this.setHeaderCellCssClasses(n),this.headerRow.cells.push(n)}},t.prototype.getMultipleColumnChoices=function(e){var t=e.templateQuestion.choices;return t&&Array.isArray(t)&&0==t.length?[].concat(this.matrix.choices,e.getVisibleMultipleChoices()):(t=e.getVisibleMultipleChoices())&&Array.isArray(t)?t:null},t.prototype.setHeaderCellCssClasses=function(e,t,r){e.className=new t$().append(this.cssClasses.headerCell).append(this.cssClasses.columnTitleCell,this.matrix.isColumnLayoutHorizontal).append(this.cssClasses.emptyCell,!!e.isEmpty).append(this.cssClasses.cell+"--"+t,!!t).append(r,!!r).toString()},t.prototype.createHeaderCell=function(e,t,r){void 0===t&&(t=null);var n=e?this.createTextCell(e.locTitle):this.createEmptyCell();return n.column=e,this.setHeaderCell(e,n),!t&&(t=e&&"default"!==e.cellType?e.cellType:this.matrix.cellType),this.setHeaderCellCssClasses(n,t,r),n},t.prototype.setHeaderCell=function(e,t){this.setCellWidth(e,t)},t.prototype.setCellWidth=function(e,t){t.minWidth=null!=e?this.matrix.getColumnWidth(e):this.matrix.getRowTitleWidth(),t.width=null!=e?e.width:this.matrix.getRowTitleWidth()},t.prototype.createTextCell=function(e){var t=new oc;return t.locTitle=e,this.cssClasses.cell&&(t.className=this.cssClasses.cell),t},t.prototype.createEmptyCell=function(e){void 0===e&&(e=!1);var t=this.createTextCell(null);return t.isEmpty=!0,t.className=new t$().append(this.cssClasses.cell).append(this.cssClasses.emptyCell).append(this.cssClasses.errorsCell,e).toString(),t},oa([eJ({onPush:function(e,t,r){r.updateRenderedRows()},onRemove:function(e,t,r){r.updateRenderedRows()}})],t.prototype,"rows",void 0),oa([eJ()],t.prototype,"_renderedRows",void 0),t}(tQ);var of=(E=function(e,t){return(E=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}E(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),og=function(){function e(e,t,r){this.column=e,this.row=t,this.data=r,this.questionValue=this.createQuestion(e,t,r),this.questionValue.updateCustomWidget(),this.updateCellQuestionTitleDueToAccessebility(t)}return e.prototype.updateCellQuestionTitleDueToAccessebility=function(e){var t=this;this.questionValue.locTitle.onGetTextCallback=function(r){if(!e||!e.getSurvey())return t.questionValue.title;var n=e.getAccessbilityText();return n?t.column.colOwner.getCellAriaLabel(n,t.questionValue.title):t.questionValue.title}},e.prototype.locStrsChanged=function(){this.question.locStrsChanged()},e.prototype.createQuestion=function(e,t,r){var n=this,o=r.createQuestion(this.row,this.column);return o.readOnlyCallback=function(){return!n.row.isRowEnabled()},o.validateValueCallback=function(){return r.validateCell(t,e.name,t.value)},e$.getProperties(e.getType()).forEach(function(t){var r=t.name;void 0!==e[r]&&(o[r]=e[r])}),o},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.question.value},set:function(e){this.question.value=e},enumerable:!1,configurable:!0}),e.prototype.getQuestionWrapperClassName=function(e){return e},e.prototype.runCondition=function(e,t){this.question.runCondition(e,t)},e}(),om=function(e){function t(t,r,n){var o=e.call(this,t,r,n)||this;return o.column=t,o.row=r,o.data=n,o.updateCellQuestion(),o}return of(t,e),t.prototype.createQuestion=function(e,t,r){var n=e6.createClass("expression");return n.setSurveyImpl(t),n},t.prototype.locStrsChanged=function(){this.updateCellQuestion(),e.prototype.locStrsChanged.call(this)},t.prototype.updateCellQuestion=function(){this.question.locCalculation(),this.column.updateCellQuestion(this.question,null,function(e){delete e.defaultValue}),this.question.expression=this.getTotalExpression(),this.question.format=this.column.totalFormat,this.question.currency=this.column.totalCurrency,this.question.displayStyle=this.column.totalDisplayStyle,this.question.maximumFractionDigits=this.column.totalMaximumFractionDigits,this.question.minimumFractionDigits=this.column.totalMinimumFractionDigits,this.question.unlocCalculation(),this.question.runIfReadOnly=!0},t.prototype.getQuestionWrapperClassName=function(t){var r=e.prototype.getQuestionWrapperClassName.call(this,t);if(!r)return r;this.question.expression&&"''"!=this.question.expression&&(r+=" "+t+"--expression");var n=this.column.totalAlignment;return"auto"===n&&"dropdown"===this.column.cellType&&(n="left"),r+" "+t+"--"+n},t.prototype.getTotalExpression=function(){if(this.column.totalExpression)return this.column.totalExpression;if("none"==this.column.totalType)return"''";var e=this.column.totalType+"InArray";return tt.Instance.hasFunction(e)?e+"({self}, '"+this.column.name+"')":""},t}(og),oy=function(e){function t(t,r,n){var o=e.call(this,r)||this;return o.row=t,o.variableName=r,o.parentTextProcessor=n,o}return of(t,e),t.prototype.getParentTextProcessor=function(){return this.parentTextProcessor},Object.defineProperty(t.prototype,"survey",{get:function(){return this.row.getSurvey()},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.row.value},t.prototype.getQuestionByName=function(e){return this.row.getQuestionByName(e)},t.prototype.onCustomProcessText=function(e){return e.name==ob.IndexVariableName?(e.isExists=!0,e.value=this.row.rowIndex,!0):!!([ob.RowValueVariableName,ob.RowNameVariableName].indexOf(e.name)>-1)&&(e.isExists=!0,e.value=this.row.rowName,!0)},t}(nZ),ob=function(){function e(t,r){var n=this;this.isSettingValue=!1,this.detailPanelValue=null,this.visibleValue=!0,this.cells=[],this.isCreatingDetailPanel=!1,this.data=t,this.subscribeToChanges(r),this.textPreProcessor=new oy(this,e.RowVariableName,t?t.getParentTextProcessor():null),this.showHideDetailPanelClick=function(){if(n.getSurvey().isDesignMode)return!0;n.showHideDetailPanel()},this.idValue=e.getId()}return e.getId=function(){return"srow_"+e.idCounter++},Object.defineProperty(e.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rowName",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dataName",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this.rowName},enumerable:!1,configurable:!0}),e.prototype.isRowEnabled=function(){return!0},e.prototype.isRowHasEnabledCondition=function(){return!1},Object.defineProperty(e.prototype,"isVisible",{get:function(){return this.visible&&this.isItemVisible()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"visible",{get:function(){return this.visibleValue},set:function(e){var t;this.visible!==e&&(this.visibleValue=e,null===(t=this.data)||void 0===t||t.onRowVisibilityChanged(this))},enumerable:!1,configurable:!0}),e.prototype.isItemVisible=function(){return!0},Object.defineProperty(e.prototype,"value",{get:function(){for(var e={},t=this.questions,r=0;r<t.length;r++){var n=t[r];!n.isEmpty()&&(e[n.getValueName()]=n.value),n.comment&&this.getSurvey()&&this.getSurvey().storeOthersAsComment&&(e[n.getValueName()+tQ.commentSuffix]=n.comment)}return e},set:function(e){this.isSettingValue=!0,this.subscribeToChanges(e);for(var t=this.questions,r=0;r<t.length;r++){var n=t[r],o=this.getCellValue(e,n.getValueName()),i=n.comment,s=e?e[n.getValueName()+tQ.commentSuffix]:"";void 0==s&&(s=""),n.updateValueFromSurvey(o),(s||this.isTwoValueEquals(i,n.comment))&&n.updateCommentFromSurvey(s),n.onSurveyValueChanged(o)}this.isSettingValue=!1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locText",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.getAccessbilityText=function(){return this.locText&&this.locText.renderedHtml},Object.defineProperty(e.prototype,"hasPanel",{get:function(){return!!this.data&&this.data.hasDetailPanel(this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detailPanelId",{get:function(){return this.detailPanel?this.detailPanel.id:""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDetailPanelShowing",{get:function(){return!!this.data&&this.data.getIsDetailPanelShowing(this)},enumerable:!1,configurable:!0}),e.prototype.setIsDetailPanelShowing=function(e){!e&&this.detailPanel&&this.detailPanel.onHidingContent(),this.data&&this.data.setIsDetailPanelShowing(this,e),this.onDetailPanelShowingChanged&&this.onDetailPanelShowingChanged()},e.prototype.showHideDetailPanel=function(){this.isDetailPanelShowing?this.hideDetailPanel():this.showDetailPanel()},e.prototype.showDetailPanel=function(){this.ensureDetailPanel(),this.detailPanelValue&&this.setIsDetailPanelShowing(!0)},e.prototype.hideDetailPanel=function(e){void 0===e&&(e=!1),this.setIsDetailPanelShowing(!1),e&&(this.detailPanelValue=null)},e.prototype.ensureDetailPanel=function(){if(!this.isCreatingDetailPanel){if(!this.detailPanelValue&&this.hasPanel&&this.data){this.isCreatingDetailPanel=!0,this.detailPanelValue=this.data.createRowDetailPanel(this);var e=this.detailPanelValue.questions,t=this.data.getRowValue(this.data.getRowIndex(this));if(!eA.isValueEmpty(t))for(var r=0;r<e.length;r++){var n=e[r].getValueName(),o=this.editingObj?e6.getObjPropertyValue(this.editingObj,n):t[n];!eA.isValueEmpty(o)&&(e[r].value=o)}this.detailPanelValue.setSurveyImpl(this),this.isCreatingDetailPanel=!1}}},e.prototype.getAllValues=function(){return this.value},e.prototype.getFilteredValues=function(){var e=this.data?this.data.getDataFilteredValues():{},t=this.validationValues;if(t)for(var r in t)e[r]=t[r];return e.row=this.getAllValues(),this.applyRowVariablesToValues(e,this.rowIndex),e},e.prototype.getFilteredProperties=function(){return{survey:this.getSurvey(),row:this}},e.prototype.applyRowVariablesToValues=function(t,r){t[e.IndexVariableName]=r,t[e.RowValueVariableName]=this.rowName,t[e.RowNameVariableName]=this.rowName},e.prototype.runCondition=function(t,r,n){if(this.data){t[e.OwnerVariableName]=this.data.getFilteredData();var o=this.rowIndex;this.applyRowVariablesToValues(t,o);var i=eA.createCopy(r);i[e.RowVariableName]=this;var s=o>0?this.data.getRowValue(this.rowIndex-1):this.value;n?(t[e.RowVariableName]=s,this.setRowsVisibleIfValues(t),this.visible=new tA(n).run(t,r)):this.visible=!0;for(var a=0;a<this.cells.length;a++)a>0&&rZ(this.value,s),t[e.RowVariableName]=s,this.cells[a].runCondition(t,i);this.detailPanel&&this.detailPanel.runCondition(t,i),this.isRowHasEnabledCondition()&&this.onQuestionReadOnlyChanged()}},e.prototype.updateElementVisibility=function(){this.cells.forEach(function(e){return e.question.updateElementVisibility()}),this.detailPanel&&this.detailPanel.updateElementVisibility()},e.prototype.setRowsVisibleIfValues=function(e){},e.prototype.getNamesWithDefaultValues=function(){var e=[];return this.questions.forEach(function(t){t.isValueDefault&&e.push(t.getValueName())}),e},e.prototype.clearValue=function(e){for(var t=this.questions,r=0;r<t.length;r++)t[r].clearValue(e)},e.prototype.onAnyValueChanged=function(e,t){for(var r=this.questions,n=0;n<r.length;n++)r[n].onAnyValueChanged(e,t)},e.prototype.getDataValueCore=function(e,t){var r=this.getSurvey();return r?r.getDataValueCore(e,t):e[t]},e.prototype.getValue=function(e){var t=this.getQuestionByName(e);return t?t.value:null},e.prototype.setValue=function(e,t){this.setValueCore(e,t,!1)},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getQuestionByName(e);return t?t.comment:""},e.prototype.setComment=function(e,t,r){this.setValueCore(e,t,!0)},e.prototype.findQuestionByName=function(t){if(t){var r=e.RowVariableName+".";if(0===t.indexOf(r))return this.getQuestionByName(t.substring(r.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},e.prototype.getEditingSurveyElement=function(){},e.prototype.setValueCore=function(t,r,n){if(!this.isSettingValue){this.updateQuestionsValue(t,r,n),!n&&this.updateSharedQuestionsValue(t,r);var o=this.value,i=n?t+tQ.commentSuffix:t,s=this.getQuestionByName(t),a=this.data.onRowChanging(this,i,o);if(s&&!this.isTwoValueEquals(a,r)&&(this.isSettingValue=!0,n?s.comment=a:s.value=a,this.isSettingValue=!1,o=this.value),!(this.data.isValidateOnValueChanging&&this.hasQuestonError(s))){var l=null==r&&!s||n&&!r&&!!s;this.data.onRowChanged(this,i,o,l),i&&this.runTriggers(ov.RowVariableName+"."+i,o),this.onAnyValueChanged(e.RowVariableName,"")}}},e.prototype.updateQuestionsValue=function(e,t,r){if(!!this.detailPanel){var n=this.getQuestionByColumnName(e),o=this.detailPanel.getQuestionByName(e);if(n&&o){var i=this.isTwoValueEquals(t,r?n.comment:n.value)?o:n;this.isSettingValue=!0,r?i.comment=t:i.value=t,this.isSettingValue=!1}}},e.prototype.updateSharedQuestionsValue=function(e,t){var r=this.getQuestionsByValueName(e);if(r.length>1)for(var n=0;n<r.length;n++)!eA.isTwoValueEquals(r[n].value,t)&&(this.isSettingValue=!0,r[n].updateValueFromSurvey(t),this.isSettingValue=!1)},e.prototype.runTriggers=function(e,t){e&&this.questions.forEach(function(r){return r.runTriggers(e,t)})},e.prototype.hasQuestonError=function(e){if(!e)return!1;if(e.hasErrors(!0,{isOnValueChanged:!this.data.isValidateOnValueChanging}))return!0;if(e.isEmpty())return!1;var t=this.getCellByColumnName(e.name);return!!t&&!!t.column&&!!t.column.isUnique&&this.data.checkIfValueInRowDuplicated(this,e)},Object.defineProperty(e.prototype,"isEmpty",{get:function(){var e=this.value;if(eA.isValueEmpty(e))return!0;for(var t in e)if(void 0!==e[t]&&null!==e[t])return!1;return!0},enumerable:!1,configurable:!0}),e.prototype.getQuestionByColumn=function(e){var t=this.getCellByColumn(e);return t?t.question:null},e.prototype.getCellByColumn=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column==e)return this.cells[t];return null},e.prototype.getCellByColumnName=function(e){for(var t=0;t<this.cells.length;t++)if(this.cells[t].column.name==e)return this.cells[t];return null},e.prototype.getQuestionByColumnName=function(e){var t=this.getCellByColumnName(e);return t?t.question:null},Object.defineProperty(e.prototype,"questions",{get:function(){for(var e=[],t=0;t<this.cells.length;t++)e.push(this.cells[t].question);for(var r=this.detailPanel?this.detailPanel.questions:[],t=0;t<r.length;t++)e.push(r[t]);return e},enumerable:!1,configurable:!0}),e.prototype.getQuestionByName=function(e){var t=this.getQuestionByColumnName(e);return t?t:this.detailPanel?this.detailPanel.getQuestionByName(e):null},e.prototype.getQuestionsByName=function(e){var t=[],r=this.getQuestionByColumnName(e);return r&&t.push(r),this.detailPanel&&(r=this.detailPanel.getQuestionByName(e))&&t.push(r),t},e.prototype.getQuestionsByValueName=function(e){for(var t=[],r=0;r<this.cells.length;r++){var n=this.cells[r];n.question&&n.question.getValueName()===e&&t.push(n.question)}return this.detailPanel&&(t=t.concat(this.detailPanel.getQuestionsByValueName(e))),t},e.prototype.getSharedQuestionByName=function(e){return this.data?this.data.getSharedQuestionByName(e,this):null},e.prototype.clearIncorrectValues=function(e){for(var t in e){var r=this.getQuestionByName(t);if(r){var n=r.value;r.clearIncorrectValues(),!this.isTwoValueEquals(n,r.value)&&this.setValue(t,r.value)}else!this.getSharedQuestionByName(t)&&0>t.indexOf(r9.matrix.totalsSuffix)&&this.setValue(t,null)}},e.prototype.getLocale=function(){return this.data?this.data.getLocale():""},e.prototype.getMarkdownHtml=function(e,t){return this.data?this.data.getMarkdownHtml(e,t):void 0},e.prototype.getRenderer=function(e){return this.data?this.data.getRenderer(e):null},e.prototype.getRendererContext=function(e){return this.data?this.data.getRendererContext(e):e},e.prototype.getProcessedText=function(e){return this.data?this.data.getProcessedText(e):e},e.prototype.locStrsChanged=function(){for(var e=0;e<this.cells.length;e++)this.cells[e].locStrsChanged();this.detailPanel&&this.detailPanel.locStrsChanged()},e.prototype.updateCellQuestionOnColumnChanged=function(e,t,r){var n=this.getCellByColumn(e);n&&this.updateCellOnColumnChanged(n,t,r)},e.prototype.updateCellQuestionOnColumnItemValueChanged=function(e,t,r,n,o,i){var s=this.getCellByColumn(e);s&&this.updateCellOnColumnItemValueChanged(s,t,r,n,o,i)},e.prototype.onQuestionReadOnlyChanged=function(){for(var e=this.questions,t=0;t<e.length;t++){var r=e[t];r.setPropertyValue("isReadOnly",r.isReadOnly)}if(this.detailPanel){var n=!!this.data&&this.data.isMatrixReadOnly();this.detailPanel.readOnly=n||!this.isRowEnabled()}},e.prototype.hasErrors=function(e,t,r){var n=!1,o=this.cells;if(!o)return n;this.validationValues=t.validationValues;for(var i=0;i<o.length;i++){if(!o[i])continue;var s=o[i].question;if(!!s&&!!s.visible)s.onCompletedAsyncValidators=function(e){r()},!(t&&!0===t.isOnValueChanged&&s.isEmpty())&&(n=s.hasErrors(e,t)||n)}if(this.hasPanel){this.ensureDetailPanel();var a=this.detailPanel.hasErrors(e,!1,t);!t.hideErroredPanel&&a&&e&&(t.isSingleDetailPanel&&(t.hideErroredPanel=!0),this.showDetailPanel()),n=a||n}return this.validationValues=void 0,n},e.prototype.updateCellOnColumnChanged=function(e,t,r){"choices"===t&&Array.isArray(r)&&0===r.length&&this.data&&(r=this.data.choices),e.question[t]=r},e.prototype.updateCellOnColumnItemValueChanged=function(e,t,r,n,o,i){var s=e.question[t];if(!!Array.isArray(s)){var a="value"===n?i:r.value,l=nL.getItemByValue(s,a);l&&(l[n]=o)}},e.prototype.buildCells=function(e){this.isSettingValue=!0;for(var t=this.data.columns,r=0;r<t.length;r++){var n=t[r],o=this.createCell(n);this.cells.push(o);var i=this.getCellValue(e,n.name);if(!eA.isValueEmpty(i)){o.question.value=i;var s=n.name+tQ.commentSuffix;e&&!eA.isValueEmpty(e[s])&&(o.question.comment=e[s])}}this.isSettingValue=!1},e.prototype.isTwoValueEquals=function(e,t){return eA.isTwoValueEquals(e,t,!1,!0,!1)},e.prototype.getCellValue=function(e,t){return this.editingObj?e6.getObjPropertyValue(this.editingObj,t):e?e[t]:void 0},e.prototype.createCell=function(e){return new og(e,this,this.data)},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},Object.defineProperty(e.prototype,"rowIndex",{get:function(){return this.getRowIndex()},enumerable:!1,configurable:!0}),e.prototype.getRowIndex=function(){return this.data?this.data.getRowIndex(this)+1:-1},Object.defineProperty(e.prototype,"editingObj",{get:function(){return this.editingObjValue},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.editingObj&&(this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged),this.editingObjValue=null)},e.prototype.subscribeToChanges=function(e){var t=this;if(!!e&&!!e.getType&&!!e.onPropertyChanged)e!==this.editingObj&&(this.editingObjValue=e,this.onEditingObjPropertyChanged=function(e,r){t.updateOnSetValue(r.name,r.newValue)},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))},e.prototype.updateOnSetValue=function(e,t){this.isSettingValue=!0;for(var r=this.getQuestionsByName(e),n=0;n<r.length;n++)r[n].value=t;this.isSettingValue=!1},e.RowVariableName="row",e.OwnerVariableName="self",e.IndexVariableName="rowIndex",e.RowValueVariableName="rowValue",e.RowNameVariableName="rowName",e.idCounter=1,e}(),ov=function(e){function t(t){var r=e.call(this,t,null)||this;return r.buildCells(null),r}return of(t,e),t.prototype.createCell=function(e){return new om(e,this,this.data)},t.prototype.setValue=function(e,t){this.data&&!this.isSettingValue&&this.data.onTotalValueChanged()},t.prototype.runCondition=function(t,r,n){var o,i=0;do o=eA.getUnbindValue(this.value),e.prototype.runCondition.call(this,t,r,""),i++;while(!eA.isTwoValueEquals(o,this.value)&&i<3)},t.prototype.updateCellOnColumnChanged=function(e,t,r){e.updateCellQuestion()},t}(ob),oC=function(e){function t(t){var r=e.call(this,t)||this;return r.isRowChanging=!1,r.lockResetRenderedTable=!1,r.isDoingonAnyValueChanged=!1,r.createItemValues("choices"),r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("keyDuplicationError",r,!1,!0),r.detailPanelValue=r.createNewDetailPanel(),r.detailPanel.selectedElementInDesign=r,r.detailPanel.renderWidth="100%",r.detailPanel.isInteractiveDesignElement=!1,r.detailPanel.showTitle=!1,r.registerPropertyChangedHandlers(["columns","cellType"],function(){r.updateColumnsAndRows()}),r.registerPropertyChangedHandlers(["placeholder","columnColCount","rowTitleWidth","choices"],function(){r.clearRowsAndResetRenderedTable()}),r.registerPropertyChangedHandlers(["transposeData","addRowLocation","hideColumnsIfEmpty","showHeader","minRowCount","isReadOnly","rowCount","hasFooter","detailPanelMode","displayMode"],function(){r.resetRenderedTable()}),r}return of(t,e),Object.defineProperty(t,"defaultCellType",{get:function(){return r9.matrix.defaultCellType},set:function(e){r9.matrix.defaultCellType=e},enumerable:!1,configurable:!0}),t.addDefaultColumns=function(e){for(var t=n6.DefaultColums,r=0;r<t.length;r++)e.addColumn(t[r])},t.prototype.createColumnValues=function(){var e=this;return this.createNewArray("columns",function(t){t.colOwner=e,e.onAddColumn&&e.onAddColumn(t),e.survey&&e.survey.matrixColumnAdded(e,t)},function(t){t.colOwner=null,e.onRemoveColumn&&e.onRemoveColumn(t)})},t.prototype.getType=function(){return"matrixdropdownbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.clearGeneratedRows()},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateLocked",{get:function(){return this.isLoadingFromJson||this.isUpdating},enumerable:!1,configurable:!0}),t.prototype.beginUpdate=function(){this.isUpdating=!0},t.prototype.endUpdate=function(){this.isUpdating=!1,this.updateColumnsAndRows()},t.prototype.updateColumnsAndRows=function(){this.updateColumnsIndexes(this.columns),this.updateColumnsCellType(),this.generatedTotalRow=null,this.clearRowsAndResetRenderedTable()},t.prototype.itemValuePropertyChanged=function(t,r,n,o){e.prototype.itemValuePropertyChanged.call(this,t,r,n,o),"choices"===t.ownerPropertyName&&this.clearRowsAndResetRenderedTable()},Object.defineProperty(t.prototype,"transposeData",{get:function(){return this.getPropertyValue("transposeData")},set:function(e){this.setPropertyValue("transposeData",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnLayout",{get:function(){return this.transposeData?"vertical":"horizontal"},set:function(e){this.transposeData="vertical"===e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsLocation",{get:function(){return this.columnLayout},set:function(e){this.columnLayout=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailErrorLocation",{get:function(){return this.getPropertyValue("detailErrorLocation")},set:function(e){this.setPropertyValue("detailErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cellErrorLocation",{get:function(){return this.getPropertyValue("cellErrorLocation")},set:function(e){this.setPropertyValue("cellErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(t){var r=t.parent?this.detailErrorLocation:this.cellErrorLocation;return"default"!==r?r:e.prototype.getChildErrorLocation.call(this,t)},Object.defineProperty(t.prototype,"isColumnLayoutHorizontal",{get:function(){return!!this.isMobile||!this.transposeData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUniqueCaseSensitive",{get:function(){return void 0!==this.isUniqueCaseSensitiveValue?this.isUniqueCaseSensitiveValue:r9.comparator.caseSensitive},set:function(e){this.isUniqueCaseSensitiveValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanelMode",{get:function(){return this.getPropertyValue("detailPanelMode")},set:function(e){this.setPropertyValue("detailPanelMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"detailPanel",{get:function(){return this.detailPanelValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.detailPanel},Object.defineProperty(t.prototype,"detailElements",{get:function(){return this.detailPanel.elements},enumerable:!1,configurable:!0}),t.prototype.createNewDetailPanel=function(){return e6.createClass("panel")},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return null},Object.defineProperty(t.prototype,"canAddRow",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){return!0},t.prototype.onPointerDown=function(e,t){},t.prototype.onRowsChanged=function(){this.clearVisibleRows(),this.resetRenderedTable(),e.prototype.onRowsChanged.call(this)},t.prototype.onStartRowAddingRemoving=function(){this.lockResetRenderedTable=!0,this.setValueChangedDirectly(!0)},t.prototype.onEndRowAdding=function(){if(this.lockResetRenderedTable=!1,this.renderedTable){if(this.renderedTable.isRequireReset())this.resetRenderedTable();else{var e=this.visibleRows.length-1;this.renderedTable.onAddedRow(this.visibleRows[e],e)}}},t.prototype.onEndRowRemoving=function(e){this.lockResetRenderedTable=!1,this.renderedTable.isRequireReset()?this.resetRenderedTable():e&&this.renderedTable.onRemovedRow(e)},Object.defineProperty(t.prototype,"renderedTableValue",{get:function(){return this.getPropertyValue("renderedTable",null)},set:function(e){this.setPropertyValue("renderedTable",e)},enumerable:!1,configurable:!0}),t.prototype.clearRowsAndResetRenderedTable=function(){this.clearGeneratedRows(),this.resetRenderedTable(),this.fireCallback(this.columnsChangedCallback)},t.prototype.resetRenderedTable=function(){!this.lockResetRenderedTable&&!this.isUpdateLocked&&(this.renderedTableValue=null,this.fireCallback(this.onRenderedTableResetCallback))},t.prototype.clearGeneratedRows=function(){if(this.clearVisibleRows(),this.generatedVisibleRows){for(var t=0;t<this.generatedVisibleRows.length;t++)this.generatedVisibleRows[t].dispose();e.prototype.clearGeneratedRows.call(this)}},Object.defineProperty(t.prototype,"isRendredTableCreated",{get:function(){return!!this.renderedTableValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedTable",{get:function(){return!this.renderedTableValue&&(this.renderedTableValue=this.createRenderedTable(),this.onRenderedTableCreatedCallback&&this.onRenderedTableCreatedCallback(this.renderedTableValue)),this.renderedTableValue},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new od(this)},t.prototype.onMatrixRowCreated=function(e){if(this.survey){for(var t={rowValue:e.value,row:e,column:null,columnName:null,cell:null,cellQuestion:null,value:null},r=0;r<this.columns.length;r++){t.column=this.columns[r],t.columnName=t.column.name;var n=e.cells[r];t.cell=n,t.cellQuestion=n.question,t.value=n.value,this.onCellCreatedCallback&&this.onCellCreatedCallback(t),this.survey.matrixCellCreated(this,t)}}},Object.defineProperty(t.prototype,"cellType",{get:function(){return this.getPropertyValue("cellType",r9.matrix.defaultCellType)},set:function(e){e=e.toLowerCase(),this.setPropertyValue("cellType",e)},enumerable:!1,configurable:!0}),t.prototype.isSelectCellType=function(){return e6.isDescendantOf(this.cellType,"selectbase")},t.prototype.updateColumnsCellType=function(){for(var e=0;e<this.columns.length;e++)this.columns[e].defaultCellTypeChanged()},t.prototype.updateColumnsIndexes=function(e){for(var t=0;t<e.length;t++)e[t].setIndex(t)},Object.defineProperty(t.prototype,"columnColCount",{get:function(){return this.getPropertyValue("columnColCount")},set:function(e){!(e<0)&&!(e>4)&&this.setPropertyValue("columnColCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"horizontalScroll",{get:function(){return this.getPropertyValue("horizontalScroll")},set:function(e){this.setPropertyValue("horizontalScroll",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e),this.detailPanel&&(this.detailPanel.allowAdaptiveActions=e)},enumerable:!1,configurable:!0}),t.prototype.getRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.hasChoices=function(){return this.choices.length>0},t.prototype.onColumnPropertyChanged=function(e,t,r){if(this.updateHasFooter(),this.generatedVisibleRows){for(var n=0;n<this.generatedVisibleRows.length;n++)this.generatedVisibleRows[n].updateCellQuestionOnColumnChanged(e,t,r);this.generatedTotalRow&&this.generatedTotalRow.updateCellQuestionOnColumnChanged(e,t,r),this.onColumnsChanged(),"isRequired"==t&&this.resetRenderedTable()}},t.prototype.onColumnItemValuePropertyChanged=function(e,t,r,n,o,i){if(this.generatedVisibleRows)for(var s=0;s<this.generatedVisibleRows.length;s++)this.generatedVisibleRows[s].updateCellQuestionOnColumnItemValueChanged(e,t,r,n,o,i)},t.prototype.onShowInMultipleColumnsChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnVisibilityChanged=function(e){this.resetTableAndRows()},t.prototype.onColumnCellTypeChanged=function(e){this.resetTableAndRows()},t.prototype.resetTableAndRows=function(){this.clearGeneratedRows(),this.resetRenderedTable()},t.prototype.getRowTitleWidth=function(){return""},Object.defineProperty(t.prototype,"hasFooter",{get:function(){return this.getPropertyValue("hasFooter",!1)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return"default"},t.prototype.getShowColumnsIfEmpty=function(){return!1},t.prototype.updateShowTableAndAddRow=function(){this.renderedTable&&this.renderedTable.updateShowTableAndAddRow()},t.prototype.updateHasFooter=function(){this.setPropertyValue("hasFooter",this.hasTotal)},Object.defineProperty(t.prototype,"hasTotal",{get:function(){for(var e=0;e<this.columns.length;e++)if(this.columns[e].hasTotal)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getCellType=function(){return this.cellType},t.prototype.getCustomCellType=function(e,t,r){if(!this.survey)return r;
1var n={rowValue:t.value,row:t,column:e,columnName:e.name,cellType:r};return this.survey.matrixCellCreating(this,n),n.cellType},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this,t);for(var n="",o=r.length-1;o>=0&&"."!=r[o];o--)n=r[o]+n;var i=void 0,s=this.getColumnByName(n);return s?i=s.createCellQuestion(null):"none"!==this.detailPanelMode&&(i=this.detailPanel.getQuestionByName(n)),i?i.getConditionJson(t):null},t.prototype.clearIncorrectValues=function(){if(Array.isArray(this.visibleRows)){for(var e=this.generatedVisibleRows,t=0;t<e.length;t++)e[t].clearIncorrectValues(this.getRowValue(t))}},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this),this.runFuncForCellQuestions(function(e){e.clearErrors()})},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.runFuncForCellQuestions(function(e){e.localeChanged()})},t.prototype.runFuncForCellQuestions=function(e){if(this.generatedVisibleRows)for(var t=0;t<this.generatedVisibleRows.length;t++){for(var r=this.generatedVisibleRows[t],n=0;n<r.cells.length;n++)e(r.cells[n].question)}},t.prototype.runCondition=function(t,r){var n,o=t[ob.RowVariableName];e.prototype.runCondition.call(this,t,r);var i=0;do n=eA.getUnbindValue(this.totalValue),this.runCellsCondition(t,r),this.runTotalsCondition(t,r),i++;while(!eA.isTwoValueEquals(n,this.totalValue)&&i<3);this.updateVisibilityBasedOnRows(),t[ob.RowVariableName]=o},t.prototype.runTriggers=function(t,r,n){e.prototype.runTriggers.call(this,t,r,n),this.runFuncForCellQuestions(function(e){e.runTriggers(t,r,n)})},t.prototype.updateElementVisibility=function(){e.prototype.updateElementVisibility.call(this);var t=this.generatedVisibleRows;t&&t.forEach(function(e){return e.updateElementVisibility()})},t.prototype.shouldRunColumnExpression=function(){return!1},t.prototype.runCellsCondition=function(e,t){var r=this.generatedVisibleRows;
1if(r){for(var n=this.getRowConditionValues(e),o=0;o<r.length;o++)r[o].runCondition(n,t,this.rowsVisibleIf)}this.checkColumnsVisibility(),this.checkColumnsRenderedRequired()},t.prototype.runConditionsForColumns=function(e,t){var r=this;return this.columns.forEach(function(n){if(r.columnsVisibleIf){var o=new tA(r.columnsVisibleIf);e.item=n.name,n.isColumnsVisibleIf=!0===o.run(e,t)}else n.isColumnsVisibleIf=!0}),!1},t.prototype.checkColumnsVisibility=function(){if(!this.isDesignMode){for(var e=!1,t=0;t<this.columns.length;t++){var r=this.columns[t],n=!!r.visibleIf||r.isFilteredMultipleColumns;(n||this.columnsVisibleIf||!r.isColumnVisible)&&(e=this.isColumnVisibilityChanged(r,n)||e)}e&&this.resetRenderedTable()}},t.prototype.checkColumnsRenderedRequired=function(){var e=this.generatedVisibleRows;if(e)for(var t=0;t<this.columns.length;t++){var r=this.columns[t];if(r.requiredIf&&r.isColumnVisible){for(var n=e.length>0,o=0;o<e.length;o++)if(!e[o].cells[t].question.isRequired){n=!1;break}r.updateIsRenderedRequired(n)}}},t.prototype.isColumnVisibilityChanged=function(e,t){var r=e.isColumnVisible,n=!t,o=this.generatedVisibleRows,i=t&&o,s=i&&e.isFilteredMultipleColumns,a=s?e.getVisibleChoicesInCell:[],l=[];if(i)for(var u=0;u<o.length;u++){var c=o[u].cells[e.index],p=null==c?void 0:c.question;if(p&&p.isVisible){if(n=!0,s)this.updateNewVisibleChoices(p,l);else break}}return e.hasVisibleCell=n&&e.isColumnsVisibleIf,!!s&&(e.setVisibleChoicesInCell(l),!eA.isArraysEqual(a,l,!0,!1,!1))||r!==e.isColumnVisible},t.prototype.updateNewVisibleChoices=function(e,t){var r=e.visibleChoices;if(Array.isArray(r))for(var n=0;n<r.length;n++){var o=r[n];0>t.indexOf(o.value)&&t.push(o.value)}},t.prototype.runTotalsCondition=function(e,t){this.generatedTotalRow&&this.generatedTotalRow.runCondition(this.getRowConditionValues(e),t)},t.prototype.getRowConditionValues=function(e){var t=e;!t&&(t={});var r={};return!this.isValueEmpty(this.totalValue)&&(r=JSON.parse(JSON.stringify(this.totalValue))),t.row={},t.totalRow=r,t},t.prototype.IsMultiplyColumn=function(e){return e.isShowInMultipleColumns&&!this.isMobile},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.columns,r=0;r<t.length;r++)t[r].locStrsChanged();var n=this.generatedVisibleRows;
vendor: 4,292 bytes, line 1
1if(n){for(var r=0;r<n.length;r++)n[r].locStrsChanged();this.generatedTotalRow&&this.generatedTotalRow.locStrsChanged()}},t.prototype.getColumnByName=function(e){for(var t=0;t<this.columns.length;t++)if(this.columns[t].name==e)return this.columns[t];return null},t.prototype.getColumnName=function(e){return this.getColumnByName(e)},t.prototype.getColumnWidth=function(e){var t;return e.minWidth?e.minWidth:this.columnMinWidth?this.columnMinWidth:(null===(t=r9.matrix.columnWidthsByType[e.cellType])||void 0===t?void 0:t.minWidth)||""},Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return!!this.survey&&this.survey.storeOthersAsComment},enumerable:!1,configurable:!0}),t.prototype.addColumn=function(e,t){var r=new oi(e,t,this);return this.columns.push(r),r},t.prototype.clearVisibleRows=function(){this.visibleRowsArray=null},t.prototype.isColumnVisible=function(e){return e.isColumnVisible},t.prototype.getVisibleRows=function(){return this.isUpdateLocked?null:this.isGenereatingRows?[]:this.visibleRowsArray?this.visibleRowsArray:(this.generateVisibleRowsIfNeeded(),this.visibleRowsArray=this.getVisibleFromGenerated(this.generatedVisibleRows),this.visibleRowsArray)},t.prototype.generateVisibleRowsIfNeeded=function(){var e=this;!this.isUpdateLocked&&!this.generatedVisibleRows&&!this.generatedVisibleRows&&(this.isGenereatingRows=!0,this.generatedVisibleRows=this.generateRows(),this.isGenereatingRows=!1,this.generatedVisibleRows.forEach(function(t){return e.onMatrixRowCreated(t)}),this.data&&this.runCellsCondition(this.data.getFilteredValues(),this.data.getFilteredProperties()),this.generatedVisibleRows&&(this.updateValueOnRowsGeneration(this.generatedVisibleRows),this.updateIsAnswered()))},t.prototype.getVisibleFromGenerated=function(e){var t=[];return e?(e.forEach(function(e){e.isVisible&&t.push(e)}),t.length===e.length?e:t):t},t.prototype.updateValueOnRowsGeneration=function(e){for(var t=this.createNewValue(!0),r=this.createNewValue(),n=0;n<e.length;n++){var o=e[n];if(!o.editingObj){var i=this.getRowValue(n),s=o.value;!this.isTwoValueEquals(i,s)&&(r=this.getNewValueOnRowChanged(o,"",s,!1,r).value)}}!this.isTwoValueEquals(t,r)&&(this.isRowChanging=!0,this.setNewValue(r),this.isRowChanging=!1)},Object.defineProperty(t.prototype,"totalValue",{get:function(){return this.hasTotal&&this.visibleTotalRow?this.visibleTotalRow.value:{}},enumerable:!1,configurable:!0}),t.prototype.getVisibleTotalRow=function(){if(this.isUpdateLocked)return null;if(this.hasTotal){if(!this.generatedTotalRow&&(this.generatedTotalRow=this.generateTotalRow(),this.data)){var e={survey:this.survey};this.runTotalsCondition(this.data.getAllValues(),e)}}else this.generatedTotalRow=null;return this.generatedTotalRow},Object.defineProperty(t.prototype,"visibleTotalRow",{get:function(){return this.getVisibleTotalRow()},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateColumnsIndexes(this.columns),this.clearGeneratedRows(),this.generatedTotalRow=null,this.updateHasFooter()},t.prototype.getRowValue=function(e){if(e<0||!Array.isArray(this.visibleRows))return null;var t=this.generatedVisibleRows;
vendor: 4,996 bytes, line 1
1if(e>=t.length)return null;var r=this.createNewValue();return this.getRowValueCore(t[e],r)},t.prototype.checkIfValueInRowDuplicated=function(e,t){return!!this.generatedVisibleRows&&this.isValueInColumnDuplicated(t.name,!0,e)},t.prototype.setRowValue=function(e,t){if(e<0)return null;var r=this.visibleRows;if(e>=r.length)return null;r[e].value=t,this.onRowChanged(r[e],"",t,!1)},t.prototype.generateRows=function(){return null},t.prototype.generateTotalRow=function(){return new ov(this)},t.prototype.createNewValue=function(e){void 0===e&&(e=!1);var t=this.value?this.createValueCopy():{};return e&&this.isMatrixValueEmpty(t)?null:t},t.prototype.getRowValueCore=function(e,t,r){void 0===r&&(r=!1);var n=t&&t[e.rowName]?t[e.rowName]:null;return!n&&r&&(n={},t&&(t[e.rowName]=n)),n},t.prototype.getRowObj=function(e){var t=this.getRowValueCore(e,this.value);return t&&t.getType?t:null},t.prototype.getRowDisplayValue=function(e,t,r){if(!r||t.editingObj)return r;for(var n=Object.keys(r),o=0;o<n.length;o++){var i=n[o],s=t.getQuestionByName(i);if(!s&&(s=this.getSharedQuestionByName(i,t)),s){var a=s.getDisplayValue(e,r[i]);e&&s.title&&s.title!==i?(r[s.title]=a,delete r[i]):r[i]=a}}return r},t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n){n.isNode=!0;var o=Array.isArray(n.data)?[].concat(n.data):[];n.data=this.visibleRows.map(function(e){var n={name:e.dataName,title:e.text,value:e.value,displayValue:r.getRowDisplayValue(!1,e,e.value),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.cells.map(function(e){return e.question.getPlainData(t)}).filter(function(e){return!!e})};return(t.calculations||[]).forEach(function(t){n[t.propertyName]=e[t.propertyName]}),n}),n.data=n.data.concat(o)}return n},t.prototype.addConditionObjectsByContext=function(e,t){var r=[].concat(this.columns);"none"!==this.detailPanelMode&&(r=r.concat(this.detailPanel.questions));var n=!!t&&r.indexOf(t)>-1,o=!0===t||n,i=this.getConditionObjectsRowIndeces();o&&i.push(-1);for(var s=0;s<i.length;s++){var a=i[s],l=a>-1?this.getConditionObjectRowName(a):"row";if(l){for(var u=a>-1?this.getConditionObjectRowText(a):"row",c=a>-1||!0===t,p=c&&-1===a?".":"",h=(c?this.getValueName():"")+p+l+".",d=(c?this.processedTitle:"")+p+u+".",f=0;f<r.length;f++){var g=r[f];if(-1!==a||t!==g){var m={name:h+g.name,text:d+g.fullTitle,question:this};-1===a&&!0===t?m.context=this:n&&h.startsWith("row.")&&(m.context=t),e.push(m)}}}}},t.prototype.onHidingContent=function(){if(e.prototype.onHidingContent.call(this),this.generatedVisibleRows){var t=[];this.collectNestedQuestions(t,!0),t.forEach(function(e){return e.onHidingContent()})}},t.prototype.getIsReadyNestedQuestions=function(){if(!this.generatedVisibleRows)return[];var e=[];return this.collectNestedQuestonsInRows(this.generatedVisibleRows,e,!1),this.generatedTotalRow&&this.collectNestedQuestonsInRows([this.generatedTotalRow],e,!1),e},t.prototype.collectNestedQuestionsCore=function(e,t){this.collectNestedQuestonsInRows(this.visibleRows,e,t)},t.prototype.collectNestedQuestonsInRows=function(e,t,r){Array.isArray(e)&&e.forEach(function(e){e.questions.forEach(function(e){return e.collectNestedQuestions(t,r)})})},t.prototype.getConditionObjectRowName=function(e){return""},t.prototype.getConditionObjectRowText=function(e){return this.getConditionObjectRowName(e)},t.prototype.getConditionObjectsRowIndeces=function(){return[]},t.prototype.getProgressInfo=function(){if(this.generatedVisibleRows)return rw.getProgressInfoByElements(this.getCellQuestions(),this.isRequired);var e=tQ.createProgressInfo();return this.updateProgressInfoByValues(e),0===e.requiredQuestionCount&&this.isRequired&&(e.requiredQuestionCount=1,e.requiredAnsweredQuestionCount=this.isEmpty()?0:1),e},t.prototype.updateProgressInfoByValues=function(e){},t.prototype.updateProgressInfoByRow=function(e,t){for(var r=0;r<this.columns.length;r++){var n=this.columns[r];if(!!n.templateQuestion.hasInput){var o=!eA.isValueEmpty(t[n.name]);(o||!n.templateQuestion.visibleIf)&&(e.questionCount+=1,e.requiredQuestionCount+=n.isRequired,e.answeredQuestionCount+=o?1:0,e.requiredAnsweredQuestionCount+=o&&n.isRequired?1:0)}}},t.prototype.getCellQuestions=function(){var e=[];return this.runFuncForCellQuestions(function(t){e.push(t)}),e},t.prototype.onBeforeValueChanged=function(e){},t.prototype.onSetQuestionValue=function(){if(!this.isRowChanging){if(this.onBeforeValueChanged(this.value),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;for(var e=this.createNewValue(),t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t];this.generatedVisibleRows[t].value=this.getRowValueCore(r,e)}this.isRowChanging=!1}}},t.prototype.setQuestionValue=function(t){e.prototype.setQuestionValue.call(this,t,!1),this.onSetQuestionValue(),this.updateIsAnswered()},t.prototype.supportGoNextPageAutomatic=function(){var e=this.generatedVisibleRows;
1if(!e&&(e=this.visibleRows),!e)return!0;for(var t=0;t<e.length;t++){var r=this.generatedVisibleRows[t].cells;if(r)for(var n=0;n<r.length;n++){var o=r[n].question;if(o&&(!o.supportGoNextPageAutomatic()||!o.value))return!1}}return!0},t.prototype.getContainsErrors=function(){return e.prototype.getContainsErrors.call(this)||this.checkForAnswersOrErrors(function(e){return e.containsErrors},!1)},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.checkForAnswersOrErrors(function(e){return e.isAnswered},!0)},t.prototype.checkForAnswersOrErrors=function(e,t){void 0===t&&(t=!1);var r=this.generatedVisibleRows;if(!r)return!1;for(var n=0;n<r.length;n++){var o=r[n].cells;if(o){for(var i=0;i<o.length;i++)if(o[i]){var s=o[i].question;if(s&&s.isVisible){if(e(s)){if(!t)return!0}else if(t)return!1}}}}return!!t},t.prototype.hasErrors=function(t,r){void 0===t&&(t=!0),void 0===r&&(r=null);var n=this.hasErrorInRows(t,r),o=this.isValueDuplicated();return e.prototype.hasErrors.call(this,t,r)||n||o},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;if(!this.generatedVisibleRows)return!1;for(var t=0;t<this.generatedVisibleRows.length;t++){var r=this.generatedVisibleRows[t].cells;if(r){for(var n=0;n<r.length;n++)if(r[n]){var o=r[n].question;if(o&&o.isRunningValidators)return!0}}}return!1},t.prototype.getAllErrors=function(){var t=e.prototype.getAllErrors.call(this),r=this.generatedVisibleRows;
vendor: 4,863 bytes, line 1
1if(null===r)return t;for(var n=0;n<r.length;n++){for(var o=r[n],i=0;i<o.cells.length;i++){var s=o.cells[i].question.getAllErrors();s&&s.length>0&&(t=t.concat(s))}}return t},t.prototype.hasErrorInRows=function(e,t){var r=this,n=this.generatedVisibleRows;!this.generatedVisibleRows&&(n=this.visibleRows);var o=!1;if(!t&&(t={}),!n)return t;t.validationValues=this.getDataFilteredValues(),t.isSingleDetailPanel="underRowSingle"===this.detailPanelMode;for(var i=0;i<n.length;i++)n[i].isVisible&&(o=n[i].hasErrors(e,t,function(){r.raiseOnCompletedAsyncValidators()})||o);return o},t.prototype.isValueDuplicated=function(){if(!this.generatedVisibleRows)return!1;for(var e=this.getUniqueColumnsNames(),t=!1,r=0;r<e.length;r++)t=this.isValueInColumnDuplicated(e[r],!0)||t;return t},t.prototype.getUniqueColumnsNames=function(){for(var e=[],t=0;t<this.columns.length;t++)this.columns[t].isUnique&&e.push(this.columns[t].name);return e},t.prototype.isValueInColumnDuplicated=function(e,t,r){var n=this.getDuplicatedRows(e);return t&&this.showDuplicatedErrorsInRows(n,e),this.removeDuplicatedErrorsInRows(n,e),r?n.indexOf(r)>-1:n.length>0},t.prototype.getDuplicatedRows=function(e){for(var t={},r=[],n=this.generatedVisibleRows,o=0;o<n.length;o++){var i=void 0,s=n[o].getQuestionByName(e);if(s)i=s.value;else{var a=this.getRowValue(o);i=a?a[e]:void 0}!this.isValueEmpty(i)&&(!this.isUniqueCaseSensitive&&"string"==typeof i&&(i=i.toLocaleLowerCase()),!t[i]&&(t[i]=[]),t[i].push(n[o]))}for(var l in t)t[l].length>1&&t[l].forEach(function(e){return r.push(e)});return r},t.prototype.showDuplicatedErrorsInRows=function(e,t){var r=this;e.forEach(function(e){var n=e.getQuestionByName(t),o=r.detailPanel.getQuestionByName(t);!n&&o&&(e.showDetailPanel(),e.detailPanel&&(n=e.detailPanel.getQuestionByName(t))),n&&(o&&e.showDetailPanel(),r.addDuplicationError(n))})},t.prototype.removeDuplicatedErrorsInRows=function(e,t){var r=this;this.generatedVisibleRows.forEach(function(n){if(0>e.indexOf(n)){var o=n.getQuestionByName(t);o&&r.removeDuplicationError(n,o)}})},t.prototype.getDuplicationError=function(e){for(var t=e.errors,r=0;r<t.length;r++)if("keyduplicationerror"===t[r].getErrorType())return t[r];return null},t.prototype.addDuplicationError=function(e){!this.getDuplicationError(e)&&e.addError(new nd(this.keyDuplicationError,this))},t.prototype.removeDuplicationError=function(e,t){t.removeError(this.getDuplicationError(t))&&0===t.errors.length&&e.editingObj&&(e.editingObj[t.getValueName()]=t.value)},t.prototype.getFirstQuestionToFocus=function(e){return this.getFirstCellQuestion(e)},t.prototype.getFirstInputElementId=function(){var t=this.getFirstCellQuestion(!1);return t?t.inputId:e.prototype.getFirstInputElementId.call(this)},t.prototype.getFirstErrorInputElementId=function(){var t=this.getFirstCellQuestion(!0);return t?t.inputId:e.prototype.getFirstErrorInputElementId.call(this)},t.prototype.getFirstCellQuestion=function(e){if(!this.generatedVisibleRows)return null;for(var t=0;t<this.generatedVisibleRows.length;t++){for(var r=this.generatedVisibleRows[t].cells,n=0;n<r.length;n++)if(!e||r[n].question.currentErrorCount>0)return r[n].question}return null},t.prototype.onReadOnlyChanged=function(){if(e.prototype.onReadOnlyChanged.call(this),this.generateRows)for(var t=0;t<this.visibleRows.length;t++)this.visibleRows[t].onQuestionReadOnlyChanged()},t.prototype.createQuestion=function(e,t){return this.createQuestionCore(e,t)},t.prototype.createQuestionCore=function(e,t){var r=t.createCellQuestion(e);return r.setSurveyImpl(e),r.setParentQuestion(this),r.inMatrixMode=!0,r},t.prototype.deleteRowValue=function(e,t){return e?(delete e[t.rowName],this.isObject(e)&&0==Object.keys(e).length?null:e):e},t.prototype.onAnyValueChanged=function(e,t){if(!this.isUpdateLocked&&!this.isDoingonAnyValueChanged&&this.generatedVisibleRows){this.isDoingonAnyValueChanged=!0;for(var r=this.generatedVisibleRows,n=0;n<r.length;n++)r[n].onAnyValueChanged(e,t);var o=this.visibleTotalRow;o&&o.onAnyValueChanged(e,t),this.isDoingonAnyValueChanged=!1}},t.prototype.isObject=function(e){return null!==e&&"object"==typeof e},t.prototype.getOnCellValueChangedOptions=function(e,t,r){return{row:e,columnName:t,rowValue:r,value:r?r[t]:null,getCellQuestion:function(t){return e.getQuestionByName(t)},cellQuestion:e.getQuestionByName(t),column:this.getColumnByName(t)}},t.prototype.onCellValueChanged=function(e,t,r){if(this.survey){var n=this.getOnCellValueChangedOptions(e,t,r);this.onCellValueChangedCallback&&this.onCellValueChangedCallback(n),this.survey.matrixCellValueChanged(this,n)}},t.prototype.validateCell=function(e,t,r){if(this.survey){var n=this.getOnCellValueChangedOptions(e,t,r);return this.survey.matrixCellValidate(this,n)}},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return!!this.survey&&this.survey.isValidateOnValueChanging}
vendor: 12,551 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasInvisibleRows",{get:function(){var e=this.generatedVisibleRows;if(!Array.isArray(e))return!1;for(var t=0;t<e.length;t++)if(!e[t].isVisible)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.getFilteredData=function(){return!this.isEmpty()&&this.generatedVisibleRows&&this.hasInvisibleRows?this.getFilteredDataCore():this.value},t.prototype.getFilteredDataCore=function(){return this.value},t.prototype.onRowChanging=function(e,t,r){if(!this.survey&&!this.cellValueChangingCallback)return r?r[t]:null;var n=this.getOnCellValueChangedOptions(e,t,r),o=this.getRowValueCore(e,this.createNewValue(),!0);return n.oldValue=o?o[t]:null,this.cellValueChangingCallback&&(n.value=this.cellValueChangingCallback(e,t,n.value,n.oldValue)),this.survey&&this.survey.matrixCellValueChanging(this,n),n.value},t.prototype.onRowChanged=function(e,t,r,n){var o=t?this.getRowObj(e):null;if(o){var i=null;r&&!n&&(i=r[t]),this.isRowChanging=!0,e6.setObjPropertyValue(o,t,i),this.isRowChanging=!1,this.onCellValueChanged(e,t,o)}else{var s=this.createNewValue(!0),a=this.getNewValueOnRowChanged(e,t,r,n,this.createNewValue());if(this.isTwoValueEquals(s,a.value))return;this.isRowChanging=!0,this.setNewValue(a.value),this.isRowChanging=!1,t&&this.onCellValueChanged(e,t,a.rowValue)}this.getUniqueColumnsNames().indexOf(t)>-1&&this.isValueInColumnDuplicated(t,!!o)},t.prototype.getNewValueOnRowChanged=function(e,t,r,n,o){var i=this.getRowValueCore(e,o,!0);if(n&&delete i[t],e.questions.forEach(function(e){delete i[e.getValueName()]}),r)for(var s in r=JSON.parse(JSON.stringify(r)))!this.isValueEmpty(r[s])&&(i[s]=r[s]);return this.isObject(i)&&0===Object.keys(i).length&&(o=this.deleteRowValue(o,e)),{value:o,rowValue:i}},t.prototype.getRowIndex=function(e){return Array.isArray(this.generatedVisibleRows)?this.generatedVisibleRows.indexOf(e):-1},t.prototype.getElementsInDesign=function(t){var r;return void 0===t&&(t=!1),r="none"==this.detailPanelMode?e.prototype.getElementsInDesign.call(this,t):t?[this.detailPanel]:this.detailElements,this.columns.concat(r)},t.prototype.hasDetailPanel=function(e){return"none"!=this.detailPanelMode&&(!!this.isDesignMode||(this.onHasDetailPanelCallback?this.onHasDetailPanelCallback(e):this.detailElements.length>0))},t.prototype.getIsDetailPanelShowing=function(e){if("none"==this.detailPanelMode)return!1;if(this.isDesignMode){var t=0==this.visibleRows.indexOf(e);return t&&!e.detailPanel&&e.showDetailPanel(),t}return this.getPropertyValue("isRowShowing"+e.id,!1)},t.prototype.setIsDetailPanelShowing=function(e,t){if(t!=this.getIsDetailPanelShowing(e)&&(this.setPropertyValue("isRowShowing"+e.id,t),this.updateDetailPanelButtonCss(e),this.renderedTable&&this.renderedTable.onDetailPanelChangeVisibility(e,t),this.survey&&this.survey.matrixDetailPanelVisibleChanged(this,e.rowIndex-1,e,t),t&&"underRowSingle"===this.detailPanelMode)){for(var r=this.visibleRows,n=0;n<r.length;n++)r[n].id!==e.id&&r[n].isDetailPanelShowing&&r[n].hideDetailPanel()}},t.prototype.getDetailPanelButtonCss=function(e){var t=new t$().append(this.getPropertyValue("detailButtonCss"+e.id));return t.append(this.cssClasses.detailButton,""===t.toString()).toString()},t.prototype.getDetailPanelIconCss=function(e){var t=new t$().append(this.getPropertyValue("detailIconCss"+e.id));return t.append(this.cssClasses.detailIcon,""===t.toString()).toString()},t.prototype.getDetailPanelIconId=function(e){return this.getIsDetailPanelShowing(e)?this.cssClasses.detailIconExpandedId:this.cssClasses.detailIconId},t.prototype.updateDetailPanelButtonCss=function(e){var t=this.cssClasses,r=this.getIsDetailPanelShowing(e),n=new t$().append(t.detailIcon).append(t.detailIconExpanded,r);this.setPropertyValue("detailIconCss"+e.id,n.toString());var o=new t$().append(t.detailButton).append(t.detailButtonExpanded,r);this.setPropertyValue("detailButtonCss"+e.id,o.toString())},t.prototype.createRowDetailPanel=function(e){var t=this;if(this.isDesignMode)return this.detailPanel;var r=this.createNewDetailPanel();r.readOnly=this.isReadOnly||!e.isRowEnabled(),r.setSurveyImpl(e);var n=this.detailPanel.toJSON();return new e3().toObject(n,r),r.renderWidth="100%",r.updateCustomWidgets(),this.onCreateDetailPanelCallback&&this.onCreateDetailPanelCallback(e,r),r.questions.forEach(function(e){return e.setParentQuestion(t)}),r.onSurveyLoad(),r},t.prototype.getSharedQuestionByName=function(e,t){if(!this.survey||!this.valueName)return null;var r=this.getRowIndex(t);return r<0?null:this.survey.getQuestionByValueNameFromArray(this.valueName,e,r)},t.prototype.onTotalValueChanged=function(){this.data&&this.visibleTotalRow&&!this.isUpdateLocked&&!this.isSett&&this.data.setValue(this.getValueName()+r9.matrix.totalsSuffix,this.totalValue,!1)},t.prototype.getDataFilteredValues=function(){return this.data?this.data.getFilteredValues():{}},t.prototype.getParentTextProcessor=function(){if(!this.parentQuestion||!this.parent)return null;var e=this.parent.data;return e&&e.getTextProcessor?e.getTextProcessor():null},t.prototype.isMatrixReadOnly=function(){return this.isReadOnly},t.prototype.onRowVisibilityChanged=function(e){this.clearVisibleRows(),this.resetRenderedTable()},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearInvisibleValuesInRows()},t.prototype.clearInvisibleValuesInRows=function(){if(!this.isEmpty()&&this.isRowsFiltered()){var e;((null===(e=this.survey)||void 0===e?void 0:e.questionsByValueName(this.getValueName()))||[]).length<2&&(this.value=this.getFilteredData())}},t.prototype.isRowsFiltered=function(){return e.prototype.isRowsFiltered.call(this)||this.visibleRows!==this.generatedVisibleRows},t.prototype.getQuestionFromArray=function(e,t){return t>=this.visibleRows.length?null:this.visibleRows[t].getQuestionByName(e)},t.prototype.isMatrixValueEmpty=function(e){if(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)if(this.isObject(e[t])&&Object.keys(e[t]).length>0)return!1;return!0}return 0==Object.keys(e).length}},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getCellTemplateData=function(e){return this.SurveyModel.getMatrixCellTemplateData(e)},t.prototype.getCellWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,e.row instanceof ov?"row-footer":"cell")},t.prototype.getCellWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,e.row instanceof ov?"row-footer":"cell")},t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName(e,"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData(e,"row-header")},Object.defineProperty(t.prototype,"showHorizontalScroll",{get:function(){return!this.isDefaultV2Theme&&this.horizontalScroll},enumerable:!1,configurable:!0}),t.prototype.onMobileChanged=function(){e.prototype.onMobileChanged.call(this),this.resetRenderedTable()},t.prototype.getRootCss=function(){return new t$().append(e.prototype.getRootCss.call(this)).append(this.cssClasses.rootScroll,this.horizontalScroll).toString()},t.prototype.afterRenderQuestionElement=function(t){e.prototype.afterRenderQuestionElement.call(this,t),this.setRootElement(null==t?void 0:t.parentElement)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.setRootElement(void 0)},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t}(n$);e6.addClass("matrixdropdownbase",[{name:"columns:matrixdropdowncolumns",className:"matrixdropdowncolumn",isArray:!0},{name:"columnLayout",alternativeName:"columnsLocation",choices:["horizontal","vertical"],visible:!1,isSerializable:!1},{name:"transposeData:boolean",version:"1.9.130",oldName:"columnLayout"},{name:"detailElements",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"detailPanelMode",choices:["none","underRow","underRowSingle"],default:"none"},{name:"cellErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"detailErrorLocation",default:"default",choices:["default","top","bottom"],visibleIf:function(e){return!!e&&"none"!=e.detailPanelMode}},{name:"horizontalScroll:boolean",visible:!1},{name:"choices:itemvalue[]",uniqueProperty:"value",visibleIf:function(e){return e.isSelectCellType()}},{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"cellType",default:"dropdown",choices:function(){return oi.getColumnTypes()}},{name:"columnColCount",default:0,choices:[0,1,2,3,4]},"columnMinWidth",{name:"allowAdaptiveActions:boolean",default:!1,visible:!1}],function(){return new oC("")},"matrixbase");var ox=(R=function(e,t){return(R=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ow=function(e){function t(t,r,n,o){var i=e.call(this,n,o)||this;return i.name=t,i.item=r,i.buildCells(o),i}return ox(t,e),Object.defineProperty(t.prototype,"rowName",{get:function(){return this.name},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),t.prototype.isItemVisible=function(){return this.item.isVisible},t.prototype.isRowEnabled=function(){return this.item.isEnabled},t.prototype.isRowHasEnabledCondition=function(){return!!this.item.enableIf},t.prototype.setRowsVisibleIfValues=function(e){e.item=this.item.value,e.choice=this.item.value},t}(ob),oP=function(e){function t(t){var r=e.call(this,t)||this;return r.defaultValuesInRows={},r.createLocalizableString("totalText",r,!0),r.registerPropertyChangedHandlers(["rows"],function(){r.generatedVisibleRows&&(r.clearGeneratedRows(),r.resetRenderedTable(),r.getVisibleRows(),r.clearIncorrectValues())}),r.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){r.updateVisibilityBasedOnRows()}),r}return ox(t,e),t.prototype.getType=function(){return"matrixdropdown"},Object.defineProperty(t.prototype,"totalText",{get:function(){return this.getLocalizableStringText("totalText","")},set:function(e){this.setLocalizableStringText("totalText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTotalText",{get:function(){return this.getLocalizableString("totalText")},enumerable:!1,configurable:!0}),t.prototype.getFooterText=function(){return this.locTotalText},t.prototype.getRowTitleWidth=function(){return this.rowTitleWidth},Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;var r=this.visibleRows,n={};if(!r)return n;for(var o=0;o<r.length;o++){var i=r[o].rowName,s=t[i];if(s){if(e){var a=nL.getTextOrHtmlByValue(this.rows,i);a&&(i=a)}n[i]=this.getRowDisplayValue(e,r[o],s)}}return n},t.prototype.getConditionObjectRowName=function(e){return"."+this.rows[e].value},t.prototype.getConditionObjectRowText=function(e){return"."+this.rows[e].calculatedText},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=0;t<this.rows.length;t++)e.push(t);return e},t.prototype.isNewValueCorrect=function(e){return eA.isValueObject(e,!0)},t.prototype.clearIncorrectValues=function(){if(!this.isEmpty()){this.getVisibleRows();var t={},r=this.value;for(var n in r){var o=this.getRowByKey(n);o&&o.isVisible&&(t[n]=r[n])}this.value=t}e.prototype.clearIncorrectValues.call(this)},t.prototype.getRowByKey=function(e){var t=this.generatedVisibleRows;
1if(!t)return null;for(var r=0;r<t.length;r++)if(t[r].rowName===e)return t[r];return null},t.prototype.clearGeneratedRows=function(){var t=this;this.generatedVisibleRows&&(!this.isDisposed&&this.generatedVisibleRows.forEach(function(e){t.defaultValuesInRows[e.rowName]=e.getNamesWithDefaultValues()}),e.prototype.clearGeneratedRows.call(this))},t.prototype.getRowValueForCreation=function(e,t){var r=e[t];if(!r)return r;var n=this.defaultValuesInRows[t];return Array.isArray(n)&&0!==n.length?(n.forEach(function(e){delete r[e]}),r):r},t.prototype.generateRows=function(){var e=[],t=this.rows;if(!t||0===t.length)return e;var r=this.value;!r&&(r={});for(var n=0;n<t.length;n++){var o=t[n];!this.isValueEmpty(o.value)&&e.push(this.createMatrixRow(o,this.getRowValueForCreation(r,o.value)))}return e},t.prototype.createMatrixRow=function(e,t){return new ow(e.value,e,this,t)},t.prototype.getFilteredDataCore=function(){var e={},t=this.createValueCopy();return this.generatedVisibleRows.forEach(function(r){var n=t[r.rowName];r.isVisible&&!eA.isValueEmpty(n)&&(e[r.rowName]=n)}),e},t.prototype.getSearchableItemValueKeys=function(e){e.push("rows")},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;!t&&(t={});for(var r=0;r<this.rows.length;r++){var n=t[this.rows[r].value];this.updateProgressInfoByRow(e,n||{})}},t}(oC);e6.addClass("matrixdropdown",[{name:"rows:itemvalue[]",uniqueProperty:"value"},"rowsVisibleIf:condition","rowTitleWidth",{name:"totalText",serializationProperty:"locTotalText"},"hideIfRowsEmpty:boolean"],function(){return new oP("")},"matrixdropdownbase"),n6.Instance.registerQuestion("matrixdropdown",function(e){var t=new oP(e);return t.choices=[1,2,3,4,5],t.rows=n6.DefaultRows,oC.addDefaultColumns(t),t});var oV=!1,oj=null;"undefined"!=typeof navigator&&navigator&&e_.isAvailable()&&(oj=navigator.userAgent||navigator.vendor||e_.hasOwn("opera")),(_=oj)&&("MacIntel"===navigator.platform&&navigator.maxTouchPoints>0||"iPad"===navigator.platform?oV=!0:(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(_)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(_.substring(0,4)))&&(oV=!0));var oS=oV||!1,oO={get isTouch(){return!this.hasMouse&&this.hasTouchEvent},get hasTouchEvent(){return e_.isAvailable()&&(e_.hasOwn("ontouchstart")||navigator.maxTouchPoints>0)},hasMouse:!0},oI=e_.matchMedia;oO.hasMouse=function(e){if(!e||oS)return!1;var t=e("(pointer:fine)"),r=e("(any-hover:hover)");return!!t&&t.matches||!!r&&r.matches}(oI);var oT=oO.isTouch;function oE(e){oT=e}var oR=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e};"undefined"!=typeof window&&window.addEventListener("touchmove",function(e){if(!!o_.PreventScrolling)e.preventDefault()},{passive:!1});var o_=function(){function e(t,r,n){var o=this;void 0===r&&(r=!0),void 0===n&&(n=!1),this.dd=t,this.longTap=r,this.fitToContainer=n,this.scrollIntervalId=null,this.stopLongTapIfMoveEnough=function(e){e.preventDefault(),o.currentX=e.pageX,o.currentY=e.pageY,!o.isMicroMovement&&(o.returnUserSelectBack(),o.stopLongTap())},this.stopLongTap=function(e){clearTimeout(o.timeoutID),o.timeoutID=null,document.removeEventListener("pointerup",o.stopLongTap),document.removeEventListener("pointermove",o.stopLongTapIfMoveEnough)},this.handlePointerCancel=function(e){o.clear()},this.handleEscapeButton=function(e){27==e.keyCode&&o.clear()},this.onContextMenu=function(e){e.preventDefault(),e.stopPropagation()},this.dragOver=function(e){o.moveShortcutElement(e),o.draggedElementShortcut.style.cursor="grabbing",o.dd.dragOver(e)},this.clear=function(){cancelAnimationFrame(o.scrollIntervalId),document.removeEventListener("pointermove",o.dragOver),document.removeEventListener("pointercancel",o.handlePointerCancel),document.removeEventListener("keydown",o.handleEscapeButton),document.removeEventListener("pointerup",o.drop),o.draggedElementShortcut.removeEventListener("pointerup",o.drop),oT&&o.draggedElementShortcut.removeEventListener("contextmenu",o.onContextMenu),o.draggedElementShortcut.parentElement.removeChild(o.draggedElementShortcut),o.dd.clear(),o.draggedElementShortcut=null,o.scrollIntervalId=null,oT&&(o.savedTargetNode.style.cssText=null,o.savedTargetNode&&o.savedTargetNode.parentElement.removeChild(o.savedTargetNode),o.insertNodeToParentAtIndex(o.savedTargetNodeParent,o.savedTargetNode,o.savedTargetNodeIndex),e.PreventScrolling=!1),o.savedTargetNode=null,o.savedTargetNodeParent=null,o.savedTargetNodeIndex=null,o.returnUserSelectBack()},this.drop=function(){o.dd.drop(),o.clear()},this.draggedElementShortcut=null}return Object.defineProperty(e.prototype,"documentOrShadowRoot",{get:function(){return r9.environment.root}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rootElement",{get:function(){return rE(r9.environment.root)?this.rootContainer||r9.environment.root.host:this.rootContainer||r9.environment.root.documentElement||document.body},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<5&&t<5},enumerable:!1,configurable:!0}),e.prototype.startLongTapProcessing=function(e,t,r,n,o){var i=this;void 0===o&&(o=!1),this.startX=e.pageX,this.startY=e.pageY,document.body.style.setProperty("touch-action","none","important"),this.timeoutID=setTimeout(function(){i.doStartDrag(e,t,r,n),!o&&(i.savedTargetNode=e.target,i.savedTargetNode.style.cssText="\n          position: absolute;\n          height: 1px!important;\n          width: 1px!important;\n          overflow: hidden;\n          clip: rect(1px 1px 1px 1px);\n          clip: rect(1px, 1px, 1px, 1px);\n        ",i.savedTargetNodeParent=i.savedTargetNode.parentElement,i.savedTargetNodeIndex=i.getNodeIndexInParent(i.savedTargetNode),i.rootElement.appendChild(i.savedTargetNode)),i.stopLongTap()},this.longTap?500:0),document.addEventListener("pointerup",this.stopLongTap),document.addEventListener("pointermove",this.stopLongTapIfMoveEnough)},e.prototype.moveShortcutElement=function(e){var t=this.rootElement.getBoundingClientRect().x,r=this.rootElement.getBoundingClientRect().y,n=this.rootElement.scrollLeft,o=this.rootElement.scrollTop;this.doScroll(e.clientY,e.clientX);var i=this.draggedElementShortcut.offsetHeight,s=this.draggedElementShortcut.offsetWidth,a=this.draggedElementShortcut.shortcutXOffset||s/2,l=this.draggedElementShortcut.shortcutYOffset||i/2;0!==document.querySelectorAll("[dir='rtl']").length&&(a=s/2,l=i/2);var u=document.documentElement.clientHeight,c=document.documentElement.clientWidth,p=e.pageX,h=e.pageY,d=e.clientX,f=e.clientY;t-=n,r-=o;var g=this.getShortcutBottomCoordinate(f,i,l);if(this.getShortcutRightCoordinate(d,s,a)>=c){this.draggedElementShortcut.style.left=c-s-t+"px",this.draggedElementShortcut.style.top=f-l-r+"px";return}if(d-a<=0){this.draggedElementShortcut.style.left=p-d-t+"px",this.draggedElementShortcut.style.top=f-r-l+"px";return}if(g>=u){this.draggedElementShortcut.style.left=d-a-t+"px",this.draggedElementShortcut.style.top=u-i-r+"px";return}if(f-l<=0){this.draggedElementShortcut.style.left=d-a-t+"px",this.draggedElementShortcut.style.top=h-f-r+"px";return}this.draggedElementShortcut.style.left=d-t-a+"px",this.draggedElementShortcut.style.top=f-r-l+"px"},e.prototype.getShortcutBottomCoordinate=function(e,t,r){return e+t-r},e.prototype.getShortcutRightCoordinate=function(e,t,r){return e+t-r},e.prototype.requestAnimationFrame=function(e){return requestAnimationFrame(e)},e.prototype.scrollByDrag=function(e,t,r){var n,o,i,s,a=this;"HTML"===e.tagName?(n=0,o=document.documentElement.clientHeight,i=0,s=document.documentElement.clientWidth):(n=e.getBoundingClientRect().top,o=e.getBoundingClientRect().bottom,i=e.getBoundingClientRect().left,s=e.getBoundingClientRect().right);var l=function(){var u=t-n<=100,c=o-t<=100,p=r-i<=100,h=s-r<=100;!u||p||h?!c||p||h?!h||u||c?p&&!u&&!c&&(e.scrollLeft-=15):e.scrollLeft+=15:e.scrollTop+=15:e.scrollTop-=15,a.scrollIntervalId=a.requestAnimationFrame(l)};this.scrollIntervalId=this.requestAnimationFrame(l)},e.prototype.doScroll=function(e,t){cancelAnimationFrame(this.scrollIntervalId);var r=this.draggedElementShortcut.style.display;this.draggedElementShortcut.style.display="none";var n=this.documentOrShadowRoot.elementFromPoint(t,e);this.draggedElementShortcut.style.display=r||"block";var o=r_(n);this.scrollByDrag(o,e,t)},e.prototype.doStartDrag=function(t,r,n,o){oT&&(e.PreventScrolling=!0),3!==t.which&&(this.dd.dragInit(t,r,n,o),this.rootElement.append(this.draggedElementShortcut),this.moveShortcutElement(t),document.addEventListener("pointermove",this.dragOver),document.addEventListener("pointercancel",this.handlePointerCancel),document.addEventListener("keydown",this.handleEscapeButton),document.addEventListener("pointerup",this.drop),oT?this.draggedElementShortcut.addEventListener("contextmenu",this.onContextMenu):this.draggedElementShortcut.addEventListener("pointerup",this.drop))},e.prototype.returnUserSelectBack=function(){document.body.style.setProperty("touch-action","auto"),document.body.style.setProperty("user-select","auto"),document.body.style.setProperty("-webkit-user-select","auto")},e.prototype.startDrag=function(e,t,r,n,o){if(void 0===o&&(o=!1),document.body.style.setProperty("user-select","none","important"),document.body.style.setProperty("-webkit-user-select","none","important"),oT){this.startLongTapProcessing(e,t,r,n,o);return}this.doStartDrag(e,t,r,n)},e.prototype.getNodeIndexInParent=function(e){return oR([],e.parentElement.childNodes).indexOf(e)}
vendor: 13,032 bytes, line 1
1,e.prototype.insertNodeToParentAtIndex=function(e,t,r){e.insertBefore(t,e.childNodes[r])},e.PreventScrolling=!1,e}(),oD=function(){function e(e,t,r,n){var o,i=this;this.surveyValue=e,this.creator=t,this._isBottom=null,this.onGhostPositionChanged=new tW,this.onDragStart=new tW,this.onDragEnd=new tW,this.onDragClear=new tW,this.onBeforeDrop=this.onDragStart,this.onAfterDrop=this.onDragEnd,this.draggedElement=null,this.dropTarget=null,this.prevDropTarget=null,this.allowDropHere=!1,this.banDropHere=function(){i.allowDropHere=!1,i.doBanDropHere(),i.dropTarget=null,i.domAdapter.draggedElementShortcut.style.cursor="not-allowed",i.isBottom=null},this.doBanDropHere=function(){},this.domAdapter=n||new o_(this,r,null===(o=this.survey)||void 0===o?void 0:o.fitToContainer)}return Object.defineProperty(e.prototype,"isBottom",{get:function(){return!!this._isBottom},set:function(e){this._isBottom=e,this.ghostPositionChanged()},enumerable:!1,configurable:!0}),e.prototype.ghostPositionChanged=function(){this.onGhostPositionChanged.fire({},{})},Object.defineProperty(e.prototype,"dropTargetDataAttributeName",{get:function(){return"[data-sv-drop-target-"+this.draggedElementType+"]"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){var e;return this.surveyValue||(null===(e=this.creator)||void 0===e?void 0:e.survey)},enumerable:!1,configurable:!0}),e.prototype.startDrag=function(e,t,r,n,o){void 0===o&&(o=!1),this.domAdapter.rootContainer=this.getRootElement(this.survey,this.creator),this.domAdapter.startDrag(e,t,r,n,o)},e.prototype.getRootElement=function(e,t){return t?t.rootElement:e.rootElement},e.prototype.dragInit=function(e,t,r,n){this.draggedElement=t,this.parentElement=r;var o=this.getShortcutText(this.draggedElement);this.domAdapter.draggedElementShortcut=this.createDraggedElementShortcut(o,n,e),this.onStartDrag(e);var i=this.draggedElement&&this.draggedElement.parent;this.onDragStart.fire(this,{fromElement:i,draggedElement:this.draggedElement})},e.prototype.onStartDrag=function(e){},e.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},e.prototype.getShortcutText=function(e){return null==e?void 0:e.shortcutText},e.prototype.createDraggedElementShortcut=function(e,t,r){var n=eD.createElement("div");return n&&(n.innerText=e,n.className=this.getDraggedElementClass()),n},e.prototype.getDraggedElementClass=function(){return"sv-dragged-element-shortcut"},e.prototype.doDragOver=function(){},e.prototype.afterDragOver=function(e){},e.prototype.findDropTargetNodeFromPoint=function(e,t){var r=this.domAdapter.draggedElementShortcut.style.display;if(this.domAdapter.draggedElementShortcut.style.display="none",!eD.isAvailable())return null;var n=this.domAdapter.documentOrShadowRoot.elementsFromPoint(e,t);this.domAdapter.draggedElementShortcut.style.display=r||"block";for(var o=0,i=n[0];i&&i.className&&"function"==typeof i.className.indexOf&&-1!=i.className.indexOf("sv-drag-target-skipped");)i=n[++o];return i?this.findDropTargetNodeByDragOverNode(i):null},e.prototype.getDataAttributeValueByNode=function(e){var t=this,r="svDropTarget";return this.draggedElementType.split("-").forEach(function(e){r+=t.capitalizeFirstLetter(e)}),e.dataset[r]},e.prototype.getDropTargetByNode=function(e,t){var r=this.getDataAttributeValueByNode(e);return this.getDropTargetByDataAttributeValue(r,e,t)},e.prototype.capitalizeFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},e.prototype.calculateVerticalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.y+t.height/2},e.prototype.calculateHorizontalMiddleOfHTMLElement=function(e){var t=e.getBoundingClientRect();return t.x+t.width/2},e.prototype.calculateIsBottom=function(e,t){return!1},e.prototype.findDropTargetNodeByDragOverNode=function(e){return e.closest(this.dropTargetDataAttributeName)},e.prototype.dragOver=function(e){var t=this.findDropTargetNodeFromPoint(e.clientX,e.clientY);if(!t){this.banDropHere();return}this.dropTarget=this.getDropTargetByNode(t,e);var r=this.isDropTargetValid(this.dropTarget,t);if(this.doDragOver(),!r){this.banDropHere();return}var n=this.calculateIsBottom(e.clientY,t);this.allowDropHere=!0,!this.isDropTargetDoesntChanged(n)&&(this.isBottom=null,this.isBottom=n,this.draggedElement!=this.dropTarget&&this.afterDragOver(t),this.prevDropTarget=this.dropTarget)},e.prototype.drop=function(){if(this.allowDropHere){var e=this.draggedElement.parent,t=this.doDrop();this.onDragEnd.fire(this,{fromElement:e,draggedElement:t,toElement:this.dropTarget})}},e.prototype.clear=function(){this.dropTarget=null,this.prevDropTarget=null,this.draggedElement=null,this.isBottom=null,this.parentElement=null,this.onDragClear.fire(this,{})},e}();var ok=(D=function(e,t){return(D=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}D(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),oA=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.fromIndex=null,t.toIndex=null,t.doDrop=function(){return t.parentElement.moveRowByIndex(t.fromIndex,t.toIndex),t.parentElement},t}return ok(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"matrix-row"},enumerable:!1,configurable:!0}),t.prototype.onStartDrag=function(){var e=eD.getBody();e&&(this.restoreUserSelectValue=e.style.userSelect,e.style.userSelect="none")},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new t$().append(this.parentElement.cssClasses.draggedRow).toString()},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){var n=this,o=eD.createElement("div");if(o){o.className=this.shortcutClass;if(t){var i=t.closest("[data-sv-drop-target-matrix-row]"),s=i.cloneNode(!0);s.style.cssText="\n        width: "+i.offsetWidth+"px;\n      ",s.classList.remove("sv-matrix__drag-drop--moveup"),s.classList.remove("sv-matrix__drag-drop--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,o.appendChild(s);var a=t.getBoundingClientRect();o.shortcutXOffset=r.clientX-a.x,o.shortcutYOffset=r.clientY-a.y}return this.parentElement.renderedTable.rows.forEach(function(e,t){e.row===n.draggedElement&&(e.isGhostRow=!0)}),this.fromIndex=this.parentElement.visibleRows.indexOf(this.draggedElement),o}},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.renderedTable.rows.filter(function(t){return t.row&&t.row.id===e})[0].row},t.prototype.canInsertIntoThisRow=function(e){var t=this.parentElement.lockedRowCount;return t<=0||e.rowIndex>t},t.prototype.isDropTargetValid=function(e,t){return this.canInsertIntoThisRow(e)},t.prototype.calculateIsBottom=function(e){var t=this.parentElement.renderedTable.rows.map(function(e){return e.row});return t.indexOf(this.dropTarget)-t.indexOf(this.draggedElement)>0},t.prototype.afterDragOver=function(t){var r,n,o,i=this;if(!this.isDropTargetDoesntChanged(this.isBottom)){var s=this.parentElement.renderedTable.rows;s.forEach(function(e,t){e.row===i.dropTarget&&(r=t),e.row===i.draggedElement&&(o=e,n=t,o.isGhostRow=!0)}),s.splice(n,1),s.splice(r,0,o),this.toIndex=this.parentElement.visibleRows.indexOf(this.dropTarget),e.prototype.ghostPositionChanged.call(this)}},t.prototype.clear=function(){this.parentElement.renderedTable.rows.forEach(function(e){e.isGhostRow=!1}),this.parentElement.clearOnDrop(),this.fromIndex=null,this.toIndex=null;var t=eD.getBody();t&&(t.style.userSelect=this.restoreUserSelectValue||"initial"),e.prototype.clear.call(this)},t}(oD),oL=function(){function e(e){var t=this;this.dragHandler=e,this.onPointerUp=function(e){t.clearListeners()},this.tryToStartDrag=function(e){if(t.currentX=e.pageX,t.currentY=e.pageY,!t.isMicroMovement)return t.clearListeners(),t.dragHandler(t.pointerDownEvent,t.currentTarget,t.itemModel),!0}}return e.prototype.onPointerDown=function(e,t){if(oT){this.dragHandler(e,e.currentTarget,t);return}this.pointerDownEvent=e,this.currentTarget=e.currentTarget,this.startX=e.pageX,this.startY=e.pageY,eD.addEventListener("pointermove",this.tryToStartDrag),this.currentTarget.addEventListener("pointerup",this.onPointerUp),this.itemModel=t},Object.defineProperty(e.prototype,"isMicroMovement",{get:function(){var e=Math.abs(this.currentX-this.startX),t=Math.abs(this.currentY-this.startY);return e<10&&t<10},enumerable:!1,configurable:!0}),e.prototype.clearListeners=function(){this.pointerDownEvent&&(eD.removeEventListener("pointermove",this.tryToStartDrag),this.currentTarget.removeEventListener("pointerup",this.onPointerUp))},e}();var oN=(k=function(e,t){return(k=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}k(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),oM=function(e){function t(t,r,n){var o=e.call(this,r,n)||this;return o.index=t,o.buildCells(n),o}return oN(t,e),t.prototype.getRowIndex=function(){var t=e.prototype.getRowIndex.call(this);return t>0?t:this.index+1},Object.defineProperty(t.prototype,"rowName",{get:function(){return this.id},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataName",{get:function(){return"row"+(this.index+1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return"row "+(this.index+1)},enumerable:!1,configurable:!0}),t.prototype.getAccessbilityText=function(){return(this.index+1).toString()},Object.defineProperty(t.prototype,"shortcutText",{get:function(){var e=this.data.visibleRows.indexOf(this)+1,t=this.cells.length>1?this.cells[1].questionValue:void 0,r=this.cells.length>0?this.cells[0].questionValue:void 0;return t&&t.value||r&&r.value||""+e},enumerable:!1,configurable:!0}),t}(ob),oF=function(e){function t(t){var r=e.call(this,t)||this;return r.rowCounter=0,r.setRowCountValueFromData=!1,r.startDragMatrixRow=function(e,t){r.dragDropMatrixRows.startDrag(e,r.draggedRow,r,e.target)},r.initialRowCount=r.getDefaultPropertyValue("rowCount"),r.createLocalizableString("confirmDeleteText",r,!1,"confirmDelete"),r.createLocalizableString("addRowText",r).onGetTextCallback=function(e){return e||r.defaultAddRowText},r.createLocalizableString("removeRowText",r,!1,"removeRow"),r.createLocalizableString("emptyRowsText",r,!1,!0),r.registerPropertyChangedHandlers(["hideColumnsIfEmpty","allowAddRows"],function(){r.updateShowTableAndAddRow()}),r.registerPropertyChangedHandlers(["allowRowsDragAndDrop","isReadOnly","lockedRowCount"],function(){r.resetRenderedTable()}),r.registerPropertyChangedHandlers(["minRowCount"],function(){r.onMinRowCountChanged()}),r.registerPropertyChangedHandlers(["maxRowCount"],function(){r.onMaxRowCountChanged()}),r.dragOrClickHelper=new oL(r.startDragMatrixRow),r}return oN(t,e),t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.dragDropMatrixRows=new oA(this.survey,null,!0)},t.prototype.isBanStartDrag=function(e){var t=e.target;return"true"===t.getAttribute("contenteditable")||"INPUT"===t.nodeName||!this.isDragHandleAreaValid(t)},t.prototype.isDragHandleAreaValid=function(e){return"icon"!==this.survey.matrixDragHandleArea||e.classList.contains(this.cssClasses.dragElementDecorator)},t.prototype.onPointerDown=function(e,t){if(!(!t||!this.isRowsDragAndDrop||this.isDesignMode||this.isBanStartDrag(e)))!t.isDetailPanelShowing&&(this.draggedRow=t,this.dragOrClickHelper.onPointerDown(e))},t.prototype.getType=function(){return"matrixdynamic"},Object.defineProperty(t.prototype,"isRowsDynamic",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return this.getPropertyValue("defaultRowValue")},set:function(e){this.setPropertyValue("defaultRowValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastRow",{get:function(){return this.getPropertyValue("defaultValueFromLastRow")},set:function(e){this.setPropertyValue("defaultValueFromLastRow",e)}
1,enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultRowValue)},t.prototype.valueFromData=function(t){if(this.minRowCount<1||this.isEmpty())return e.prototype.valueFromData.call(this,t);!Array.isArray(t)&&(t=[]);for(var r=t.length;r<this.minRowCount;r++)t.push({});return t},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultRowValue)||!this.isValueEmpty(this.defaultValue)){e.prototype.setDefaultValue.call(this);return}if(this.isEmpty()&&0!=this.rowCount){for(var t=[],r=0;r<this.rowCount;r++)t.push(this.defaultRowValue);this.value=t}},t.prototype.moveRowByIndex=function(e,t){var r=this.createNewValue();if(!(!Array.isArray(r)&&Math.max(e,t)>=r.length)){var n=r[e];r.splice(e,1),r.splice(t,0,n),this.value=r}},t.prototype.clearOnDrop=function(){!this.isEditingSurveyElement&&this.resetRenderedTable()},t.prototype.initDataUI=function(){!this.generatedVisibleRows&&this.getVisibleRows()},Object.defineProperty(t.prototype,"rowCount",{get:function(){return this.rowCountValue},set:function(e){if(!((e=eA.getNumber(e))<0)&&!(e>r9.matrix.maxRowCount)){this.setRowCountValueFromData=!1;var t=this.rowCountValue;if(this.rowCountValue=e,this.value&&this.value.length>e){var r=this.value;r.splice(e),this.value=r}if(this.isUpdateLocked){this.initialRowCount=e;return}if(this.generatedVisibleRows||0==t){!this.generatedVisibleRows&&(this.clearGeneratedRows(),this.generatedVisibleRows=[]),this.generatedVisibleRows.splice(e);for(var n=t;n<e;n++){var o=this.createMatrixRow(this.getValueForNewRow());this.generatedVisibleRows.push(o),this.onMatrixRowCreated(o)}this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())}this.onRowsChanged()}},enumerable:!1,configurable:!0}),t.prototype.updateBindingProp=function(t,r){e.prototype.updateBindingProp.call(this,t,r);var n=this.generatedVisibleRows;
vendor: 4,316 bytes, line 1
1if("rowCount"===t&&Array.isArray(n)){var o=this.getUnbindValue(this.value)||[];if(o.length<n.length){for(var i=!1,s=o.length;s<n.length;s++)i||(i=!n[s].isEmpty),o.push(n[s].value||{});i&&(this.value=o)}}},t.prototype.updateProgressInfoByValues=function(e){var t=this.value;!Array.isArray(t)&&(t=[]);for(var r=0;r<this.rowCount;r++){var n=r<t.length?t[r]:{};this.updateProgressInfoByRow(e,n)}},t.prototype.getValueForNewRow=function(){var e=null;return this.onGetValueForNewRowCallBack&&(e=this.onGetValueForNewRowCallBack(this)),e},Object.defineProperty(t.prototype,"allowRowsDragAndDrop",{get:function(){return this.getPropertyValue("allowRowsDragAndDrop")},set:function(e){this.setPropertyValue("allowRowsDragAndDrop",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRowsDragAndDrop",{get:function(){return this.allowRowsDragAndDrop&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lockedRowCount",{get:function(){return this.getPropertyValue("lockedRowCount",0)},set:function(e){this.setPropertyValue("lockedRowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconDragElement",{get:function(){return this.cssClasses.iconDragElement},enumerable:!1,configurable:!0}),t.prototype.createRenderedTable=function(){return new oq(this)},Object.defineProperty(t.prototype,"rowCountValue",{get:function(){return this.getPropertyValue("rowCount")},set:function(e){this.setPropertyValue("rowCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minRowCount",{get:function(){return this.getPropertyValue("minRowCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minRowCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinRowCountChanged=function(){var e=this.minRowCount;e>this.maxRowCount&&(this.maxRowCount=e),this.initialRowCount<e&&(this.initialRowCount=e),this.rowCount<e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"maxRowCount",{get:function(){return this.getPropertyValue("maxRowCount")},set:function(e){if(!(e<=0))e>r9.matrix.maxRowCount&&(e=r9.matrix.maxRowCount),e!=this.maxRowCount&&this.setPropertyValue("maxRowCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMaxRowCountChanged=function(){var e=this.maxRowCount;e<this.minRowCount&&(this.minRowCount=e),this.rowCount>e&&(this.rowCount=e)},Object.defineProperty(t.prototype,"allowAddRows",{get:function(){return this.getPropertyValue("allowAddRows")},set:function(e){this.setPropertyValue("allowAddRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemoveRows",{get:function(){return this.getPropertyValue("allowRemoveRows")},set:function(e){this.setPropertyValue("allowRemoveRows",e),!this.isUpdateLocked&&this.resetRenderedTable()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canAddRow",{get:function(){return this.allowAddRows&&!this.isReadOnly&&this.rowCount<this.maxRowCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemoveRows",{get:function(){var e=this.allowRemoveRows&&!this.isReadOnly&&this.rowCount>this.minRowCount;return this.canRemoveRowsCallback?this.canRemoveRowsCallback(e):e},enumerable:!1,configurable:!0}),t.prototype.canRemoveRow=function(e){if(!this.survey)return!0;var t=e.rowIndex-1;return(!(this.lockedRowCount>0)||!(t<this.lockedRowCount))&&this.survey.matrixAllowRemoveRow(this,t,e)},t.prototype.addRowUI=function(){this.addRow(!0)},t.prototype.getQuestionToFocusOnAddingRow=function(){if(0===this.visibleRows.length)return null;for(var e=this.visibleRows[this.visibleRows.length-1],t=0;t<e.cells.length;t++){var r=e.cells[t].question;if(r&&r.isVisible&&!r.isReadOnly)return r}return null},t.prototype.addRow=function(e){var t=this.rowCount,r=this.canAddRow,n={question:this,canAddRow:r,allow:r};if(this.survey&&this.survey.matrixBeforeRowAdded(n),(r!==n.allow?n.allow:r!==n.canAddRow?n.canAddRow:r)&&(this.onStartRowAddingRemoving(),this.addRowCore(),this.onEndRowAdding(),this.detailPanelShowOnAdding&&this.visibleRows.length>0&&this.visibleRows[this.visibleRows.length-1].showDetailPanel(),e&&t!==this.rowCount)){var o=this.getQuestionToFocusOnAddingRow();o&&o.focus()}},Object.defineProperty(t.prototype,"detailPanelShowOnAdding",{get:function(){return this.getPropertyValue("detailPanelShowOnAdding")}
1,set:function(e){this.setPropertyValue("detailPanelShowOnAdding",e)},enumerable:!1,configurable:!0}),t.prototype.hasRowsAsItems=function(){return!1},t.prototype.unbindValue=function(){this.clearGeneratedRows(),this.clearPropertyValue("value"),this.rowCountValue=0,e.prototype.unbindValue.call(this)},t.prototype.isValueSurveyElement=function(t){return this.isEditingSurveyElement||e.prototype.isValueSurveyElement.call(this,t)},t.prototype.addRowCore=function(){var e=this.rowCount;this.rowCount=this.rowCount+1;var t=this.getDefaultRowValue(!0),r=null;if(!this.isValueEmpty(t)&&(r=this.createNewValue()).length==this.rowCount&&(r[r.length-1]=t,this.value=r),this.data){this.runCellsCondition(this.getDataFilteredValues(),this.getDataFilteredProperties());var n=this.visibleRows;if(this.isValueEmpty(t)&&n.length>0){var o=n[n.length-1];!this.isValueEmpty(o.value)&&(!r&&(r=this.createNewValue()),!this.isValueSurveyElement(r)&&!this.isTwoValueEquals(r[r.length-1],o.value)&&(r[r.length-1]=o.value,this.value=r))}}if(this.survey){var n=this.visibleRows;
vendor: 11,608 bytes, line 1
1if(e+1==this.rowCount&&n.length>0){var o=n[n.length-1];this.survey.matrixRowAdded(this,o),this.onRowsChanged()}}},t.prototype.getDefaultRowValue=function(e){for(var t=null,r=0;r<this.columns.length;r++){var n=this.columns[r].templateQuestion;n&&!this.isValueEmpty(n.getDefaultValue())&&((t=t||{})[this.columns[r].name]=n.getDefaultValue())}if(!this.isValueEmpty(this.defaultRowValue))for(var o in this.defaultRowValue)(t=t||{})[o]=this.defaultRowValue[o];if(e&&this.defaultValueFromLastRow){var i=this.value;if(i&&Array.isArray(i)&&i.length>=this.rowCount-1){var s=i[this.rowCount-2];for(var o in s)(t=t||{})[o]=s[o]}}return t},t.prototype.focusAddBUtton=function(){var e=this.getRootElement();if(e&&this.cssClasses.buttonAdd){var t=e.querySelectorAll("."+this.cssClasses.buttonAdd)[0];t&&t.focus()}},t.prototype.getActionCellIndex=function(e){var t=this.showHeader?1:0;return this.isColumnLayoutHorizontal?e.cells.length-1+t:this.visibleRows.indexOf(e)+t},t.prototype.removeRowUI=function(e){var t=this;if(e&&e.rowName){var r=this.visibleRows.indexOf(e);if(r<0)return;e=r}this.removeRow(e,void 0,function(){var e=t.visibleRows.length,n=r>=e?e-1:r,o=n>-1?t.visibleRows[n]:void 0;setTimeout(function(){o?t.renderedTable.focusActionCell(o,t.getActionCellIndex(o)):t.focusAddBUtton()},10)})},t.prototype.isRequireConfirmOnRowDelete=function(e){if(!this.confirmDelete||e<0||e>=this.rowCount)return!1;var t=this.createNewValue();return!this.isValueEmpty(t)&&!!Array.isArray(t)&&!(e>=t.length)&&!this.isValueEmpty(t[e])},t.prototype.removeRow=function(e,t,r){var n=this;if(!!this.canRemoveRows){if(!(e<0)&&!(e>=this.rowCount)){var o=this.visibleRows&&e<this.visibleRows.length?this.visibleRows[e]:null;if(void 0===t&&(t=this.isRequireConfirmOnRowDelete(e)),t){rO({message:this.confirmDeleteText,funcOnYes:function(){n.removeRowAsync(e,o),r&&r()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeRowAsync(e,o),r&&r()}}},t.prototype.removeRowAsync=function(e,t){(!t||!this.survey||this.survey.matrixRowRemoving(this,e,t))&&(this.onStartRowAddingRemoving(),this.removeRowCore(e),this.onEndRowRemoving(t))},t.prototype.removeRowCore=function(e){var t=this.generatedVisibleRows?this.generatedVisibleRows[e]:null;if(this.generatedVisibleRows&&e<this.generatedVisibleRows.length&&this.generatedVisibleRows.splice(e,1),this.rowCountValue--,this.value){var r=[];(r=Array.isArray(this.value)&&e<this.value.length?this.createValueCopy():this.createNewValue()).splice(e,1),r=this.deleteRowValue(r,null),this.isRowChanging=!0,this.value=r,this.isRowChanging=!1}this.onRowsChanged(),this.survey&&this.survey.matrixRowRemoved(this,e,t)},Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowText",{get:function(){return this.getLocalizableStringText("addRowText",this.defaultAddRowText)},set:function(e){this.setLocalizableStringText("addRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAddRowText",{get:function(){return this.getLocalizableString("addRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultAddRowText",{get:function(){return this.getLocalizationString(this.isColumnLayoutHorizontal?"addRow":"addColumn")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addRowLocation",{get:function(){return this.getPropertyValue("addRowLocation")},set:function(e){this.setPropertyValue("addRowLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getAddRowLocation=function(){return this.addRowLocation},Object.defineProperty(t.prototype,"hideColumnsIfEmpty",{get:function(){return this.getPropertyValue("hideColumnsIfEmpty")},set:function(e){this.setPropertyValue("hideColumnsIfEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getShowColumnsIfEmpty=function(){return this.hideColumnsIfEmpty},Object.defineProperty(t.prototype,"removeRowText",{get:function(){return this.getLocalizableStringText("removeRowText")},set:function(e){this.setLocalizableStringText("removeRowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRemoveRowText",{get:function(){return this.getLocalizableString("removeRowText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"emptyRowsText",{get:function(){return this.getLocalizableStringText("emptyRowsText")},set:function(e){this.setLocalizableStringText("emptyRowsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEmptyRowsText",{get:function(){return this.getLocalizableString("emptyRowsText")},enumerable:!1,configurable:!0}),t.prototype.getDisplayValueCore=function(e,t){if(!t||!Array.isArray(t))return t;for(var r=this.getUnbindValue(t),n=this.visibleRows,o=0;o<n.length&&o<r.length;o++){var i=r[o];i&&(r[o]=this.getRowDisplayValue(e,n[o],i))}return r},t.prototype.getConditionObjectRowName=function(e){return"["+e.toString()+"]"},t.prototype.getConditionObjectsRowIndeces=function(){for(var e=[],t=Math.max(this.rowCount,1),r=0;r<Math.min(r9.matrix.maxRowCountInCondition,t);r++)e.push(r);return e},t.prototype.supportGoNextPageAutomatic=function(){return!1},Object.defineProperty(t.prototype,"hasRowText",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onCheckForErrors=function(t,r,n){e.prototype.onCheckForErrors.call(this,t,r,n),!r&&this.hasErrorInMinRows()&&t.push(new nh(this.minRowCount,this))},t.prototype.hasErrorInMinRows=function(){if(this.minRowCount<=0||!this.isRequired||!this.generatedVisibleRows)return!1;for(var e=0,t=0;t<this.generatedVisibleRows.length;t++)!this.generatedVisibleRows[t].isEmpty&&e++;return e<this.minRowCount},t.prototype.getUniqueColumnsNames=function(){var t=e.prototype.getUniqueColumnsNames.call(this),r=this.keyName;return r&&0>t.indexOf(r)&&t.push(r),t},t.prototype.generateRows=function(){var e=[];if(0===this.rowCount)return e;for(var t=this.createNewValue(),r=0;r<this.rowCount;r++)e.push(this.createMatrixRow(this.getRowValueByIndex(t,r)));return!this.isValueEmpty(this.getDefaultRowValue(!1))&&(this.value=t),e},t.prototype.createMatrixRow=function(e){return new oM(this.rowCounter++,this,e)},t.prototype.getInsertedDeletedIndex=function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n++)if(t[n]!==e[n].editingObj)return n;return r},t.prototype.isEditingObjectValueChanged=function(){var e=this.value;if(!this.generatedVisibleRows||!this.isValueSurveyElement(e))return!1;var t=this.lastDeletedRow;this.lastDeletedRow=void 0;var r=this.generatedVisibleRows;if(!Array.isArray(e)||Math.abs(r.length-e.length)>1||r.length===e.length)return!1;var n=this.getInsertedDeletedIndex(r,e);if(r.length>e.length){this.lastDeletedRow=r[n];var o=r[n];r.splice(n,1),this.isRendredTableCreated&&this.renderedTable.onRemovedRow(o)}else{var i=void 0;t&&t.editingObj===e[n]?i=t:(t=void 0,i=this.createMatrixRow(e[n])),r.splice(n,0,i),!t&&this.onMatrixRowCreated(i),this.isRendredTableCreated&&this.renderedTable.onAddedRow(i,n)}return this.setPropertyValueDirectly("rowCount",e.length),!0},t.prototype.updateValueFromSurvey=function(t,r){if(void 0===r&&(r=!1),this.setRowCountValueFromData=!0,this.minRowCount>0&&eA.isValueEmpty(t)&&!eA.isValueEmpty(this.defaultRowValue)){t=[];for(var n=0;n<this.minRowCount;n++)t.push(eA.createCopy(this.defaultRowValue))}e.prototype.updateValueFromSurvey.call(this,t,r),this.setRowCountValueFromData=!1},t.prototype.getFilteredDataCore=function(){var e=[],t=this.createValueCopy();if(!Array.isArray(t))return e;for(var r=this.generatedVisibleRows,n=0;n<r.length&&n<t.length;n++){var o=t[n];r[n].isVisible&&!eA.isValueEmpty(o)&&e.push(o)}return e},t.prototype.onBeforeValueChanged=function(e){if(!e||!Array.isArray(e))return;var t=e.length;if(!(t==this.rowCount||!this.setRowCountValueFromData&&t<this.initialRowCount||this.isEditingObjectValueChanged())){if(this.setRowCountValueFromData=!0,this.rowCountValue=t,this.generatedVisibleRows){if(t==this.generatedVisibleRows.length+1){this.onStartRowAddingRemoving();var r=this.getRowValueByIndex(e,t-1),n=this.createMatrixRow(r);this.generatedVisibleRows.push(n),this.onMatrixRowCreated(n),this.onEndRowAdding()}else this.clearGeneratedRows(),this.getVisibleRows(),this.onRowsChanged();this.setRowCountValueFromData=!1}}},t.prototype.createNewValue=function(){var e=this.createValueCopy();(!e||!Array.isArray(e))&&(e=[]),e.length>this.rowCount&&e.splice(this.rowCount);var t=this.getDefaultRowValue(!1);t=t||{};for(var r=e.length;r<this.rowCount;r++)e.push(this.getUnbindValue(t));return e},t.prototype.deleteRowValue=function(e,t){if(!Array.isArray(e))return e;for(var r=!0,n=0;n<e.length;n++)if(this.isObject(e[n])&&Object.keys(e[n]).length>0){r=!1;break}return r?null:e},t.prototype.getRowValueByIndex=function(e,t){return Array.isArray(e)&&t>=0&&t<e.length?e[t]:null},t.prototype.getRowValueCore=function(e,t,r){if(void 0===r&&(r=!1),!this.generatedVisibleRows)return{};var n=this.getRowValueByIndex(t,this.generatedVisibleRows.indexOf(e));return!n&&r&&(n={}),n},t.prototype.getAddRowButtonCss=function(e){return void 0===e&&(e=!1),new t$().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.emptyRowsButton,e).toString()},t.prototype.getRemoveRowButtonCss=function(){return new t$().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).toString()},t.prototype.getRootCss=function(){var t;return new t$().append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,!(null===(t=this.renderedTable)||void 0===t?void 0:t.showTable)).toString()},t}(oC),oq=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return oN(t,e),t.prototype.setDefaultRowActions=function(t,r){e.prototype.setDefaultRowActions.call(this,t,r)},t}(od);e6.addClass("matrixdynamic",[{name:"allowAddRows:boolean",default:!0},{name:"allowRemoveRows:boolean",default:!0},{name:"rowCount:number",default:2,minValue:0,isBindable:!0},{name:"minRowCount:number",default:0,minValue:0},{name:"maxRowCount:number",default:r9.matrix.maxRowCount},{name:"keyName"},"defaultRowValue:rowvalue","defaultValueFromLastRow:boolean",{name:"confirmDelete:boolean"},{name:"confirmDeleteText",dependsOn:"confirmDelete",visibleIf:function(e){return!e||e.confirmDelete},serializationProperty:"locConfirmDeleteText"},{name:"addRowLocation",default:"default",choices:["default","top","bottom","topBottom"]},{name:"addRowText",serializationProperty:"locAddRowText"},{name:"removeRowText",serializationProperty:"locRemoveRowText"},"hideColumnsIfEmpty:boolean",{name:"emptyRowsText:text",serializationProperty:"locEmptyRowsText",dependsOn:"hideColumnsIfEmpty",visibleIf:function(e){return!e||e.hideColumnsIfEmpty}},{name:"detailPanelShowOnAdding:boolean",dependsOn:"detailPanelMode",visibleIf:function(e){return"none"!==e.detailPanelMode}},"allowRowsDragAndDrop:switch"],function(){return new oF("")},"matrixdropdownbase"),n6.Instance.registerQuestion("matrixdynamic",function(e){var t=new oF(e);return t.choices=[1,2,3,4,5],oC.addDefaultColumns(t),t});var oB={currentType:"",getCss:function(){var e=this.currentType?this[this.currentType]:oQ;return!e&&(e=oQ),e},getAvailableThemes:function(){return Object.keys(this).filter(function(e){return -1===["currentType","getCss","getAvailableThemes"].indexOf(e)})}},oQ
vendor: 34,615 bytes, line 1
1={root:"sd-root-modern",rootProgress:"sd-progress",rootMobile:"sd-root-modern--mobile",rootAnimationDisabled:"sd-root-modern--animation-disabled",rootReadOnly:"sd-root--readonly",rootCompact:"sd-root--compact",rootFitToContainer:"sd-root-modern--full-container",rootWrapper:"sd-root-modern__wrapper",rootWrapperFixed:"sd-root-modern__wrapper--fixed",rootWrapperHasImage:"sd-root-modern__wrapper--has-image",rootBackgroundImage:"sd-root_background-image",container:"sd-container-modern",header:"sd-title sd-container-modern__title",bodyContainer:"sv-components-row",body:"sd-body",bodyWithTimer:"sd-body--with-timer",clockTimerRoot:"sd-timer",clockTimerRootTop:"sd-timer--top",clockTimerRootBottom:"sd-timer--bottom",clockTimerProgress:"sd-timer__progress",clockTimerProgressAnimation:"sd-timer__progress--animation",clockTimerTextContainer:"sd-timer__text-container",clockTimerMinorText:"sd-timer__text--minor",clockTimerMajorText:"sd-timer__text--major",bodyEmpty:"sd-body sd-body--empty",bodyLoading:"sd-body--loading",footer:"sd-footer sd-body__navigation sd-clearfix",title:"sd-title",description:"sd-description",logo:"sd-logo",logoImage:"sd-logo__image",headerText:"sd-header__text",headerClose:"sd-hidden",navigationButton:"",bodyNavigationButton:"sd-btn",completedPage:"sd-completedpage",completedBeforePage:"sd-completed-before-page",timerRoot:"sd-body__timer",navigation:{complete:"sd-btn--action sd-navigation__complete-btn",prev:"sd-navigation__prev-btn",next:"sd-navigation__next-btn",start:"sd-navigation__start-btn",preview:"sd-navigation__preview-btn",edit:"sd-btn sd-btn--small"},panel:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",asPage:"sd-panel--as-page",number:"sd-element__num",title:"sd-title sd-element__title sd-panel__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleNumInline:"sd-element__title--num-inline",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleOnExpand:"sd-panel__title--expanded",titleOnError:"sd-panel__title--error",titleBar:"sd-action-title-bar",description:"sd-description sd-panel__description",container:"sd-element sd-element--complex sd-panel sd-row__panel",withFrame:"sd-element--with-frame",content:"sd-element__content sd-panel__content",icon:"sd-panel__icon",iconExpanded:"sd-panel__icon--expanded",footer:"sd-panel__footer",requiredText:"sd-panel__required-text",header:"sd-panel__header sd-element__header sd-element__header--location-top",collapsed:"sd-element--collapsed",expanded:"sd-element--expanded",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",nested:"sd-element--nested sd-element--nested-with-borders",invisible:"sd-element--invisible",navigationButton:"",compact:"sd-element--with-frame sd-element--compact",errorsContainer:"sd-panel__errbox sd-element__erbox sd-element__erbox--above-element"},paneldynamic:{mainRoot:"sd-element  sd-question sd-question--paneldynamic sd-element--complex sd-question--complex sd-row__question",empty:"sd-question--empty",root:"sd-paneldynamic",iconRemove:"sd-hidden",navigation:"sd-paneldynamic__navigation",title:"sd-title sd-element__title sd-question__title",header:"sd-paneldynamic__header sd-element__header",headerTab:"sd-paneldynamic__header-tab",button:"sd-action sd-paneldynamic__btn",buttonRemove:"sd-action--negative sd-paneldynamic__remove-btn",buttonAdd:"sd-paneldynamic__add-btn",buttonPrev:"sd-paneldynamic__prev-btn sd-action--icon sd-action",buttonPrevDisabled:"sd-action--disabled",buttonNextDisabled:"sd-action--disabled",buttonNext:"sd-paneldynamic__next-btn sd-action--icon sd-action",progressContainer:"sd-paneldynamic__progress-container",progress:"sd-progress",progressBar:"sd-progress__bar",nested:"sd-element--nested sd-element--nested-with-borders",progressText:"sd-paneldynamic__progress-text",separator:"sd-paneldynamic__separator",panelWrapper:"sd-paneldynamic__panel-wrapper",footer:"sd-paneldynamic__footer",panelFooter:"sd-paneldynamic__panel-footer",footerButtonsContainer:"sd-paneldynamic__buttons-container",panelsContainer:"sd-paneldynamic__panels-container",panelWrapperInRow:"sd-paneldynamic__panel-wrapper--in-row",panelWrapperEnter:"sd-paneldynamic__panel-wrapper--enter",panelWrapperLeave:"sd-paneldynamic__panel-wrapper--leave",panelWrapperList:"sd-paneldynamic__panel-wrapper--list",progressBtnIcon:"icon-progressbuttonv2",noEntriesPlaceholder:"sd-paneldynamic__placeholder sd-question__placeholder",compact:"sd-element--with-frame sd-element--compact",tabsContainer:"sd-paneldynamic__tabs-container",tabsContainerWithHeader:"sd-paneldynamic__tabs-container--with-header",tabsRoot:"sd-tabs-toolbar",tabsLeft:"sd-tabs-toolbar--left",tabsRight:"sd-tabs-toolbar--right",tabsCenter:"sd-tabs-toolbar--center",tabs:{item:"sd-tab-item",itemPressed:"sd-tab-item--pressed",itemAsIcon:"sd-tab-item--icon",itemIcon:"sd-tab-item__icon",itemTitle:"sd-tab-item__title"}},progress:"sd-progress sd-body__progress",progressTop:"sd-body__progress--top",progressBottom:"sd-body__progress--bottom",progressBar:"sd-progress__bar",progressText:"sd-progress__text",progressButtonsRoot:"sd-progress-buttons",progressButtonsNumbered:"sd-progress-buttons--numbered",progressButtonsFitSurveyWidth:"sd-progress-buttons--fit-survey-width",progressButtonsContainerCenter:"sd-progress-buttons__container-center",progressButtonsContainer:"sd-progress-buttons__container",progressButtonsConnector:"sd-progress-buttons__connector",progressButtonsButton:"sd-progress-buttons__button",progressButtonsButtonBackground:"sd-progress-buttons__button-background",progressButtonsButtonContent:"sd-progress-buttons__button-content",progressButtonsHeader:"sd-progress-buttons__header",progressButtonsFooter:"sd-progress-buttons__footer",progressButtonsImageButtonLeft:"sd-progress-buttons__image-button-left",progressButtonsImageButtonRight:"sd-progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sd-progress-buttons__image-button--hidden",progressButtonsListContainer:"sd-progress-buttons__list-container",progressButtonsList:"sd-progress-buttons__list",progressButtonsListElementPassed:"sd-progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sd-progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sd-progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sd-progress-buttons__page-title",progressButtonsPageDescription:"sd-progress-buttons__page-description",progressTextInBar:"sd-hidden",page:{root:"sd-page sd-body__page",emptyHeaderRoot:"sd-page__empty-header",title:"sd-title sd-page__title",description:"sd-description sd-page__description",number:"sd-page__num",errorsContainer:"sd-page__errbox"},pageTitle:"sd-title sd-page__title",pageDescription:"sd-description sd-page__description",row:"sd-row sd-clearfix",rowMultiple:"sd-row--multiple",rowCompact:"sd-row--compact",rowEnter:"sd-row--enter",rowDelayedEnter:"sd-row--delayed-enter",rowLeave:"sd-row--leave",rowReplace:"sd-row--replace",pageRow:"sd-page__row",question:{contentEnter:"sd-element__content--enter",contentLeave:"sd-element__content--leave",enter:"sd-element-wrapper--enter",leave:"sd-element-wrapper--leave",mobile:"sd-question--mobile",mainRoot:"sd-element sd-question sd-row__question",flowRoot:"sd-element sd-question sd-row__question sd-row__question--flow",withFrame:"sd-element--with-frame",asCell:"sd-table__cell",answered:"sd-question--answered",header:"sd-question__header sd-element__header",headerLeft:"sd-question__header--location--left",headerTop:"sd-question__header--location-top sd-element__header--location-top",headerBottom:"sd-question__header--location--bottom",content:"sd-element__content sd-question__content",contentSupportContainerQueries:"sd-question__content--support-container-queries",contentLeft:"sd-question__content--left",titleNumInline:"sd-element__title--num-inline",titleLeftRoot:"sd-question--left",titleTopRoot:"sd-question--title-top",descriptionUnderInputRoot:"sd-question--description-under-input",titleBottomRoot:"sd-question--title-bottom",titleOnAnswer:"sd-question__title--answer",titleEmpty:"sd-question__title--empty",titleOnError:"sd-question__title--error",title:"sd-title sd-element__title sd-question__title",titleExpandable:"sd-element__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sd-element__title--expanded",titleCollapsed:"sd-element__title--collapsed",titleDisabled:"sd-element__title--disabled",titleReadOnly:"sd-element__title--readonly",titleBar:"sd-action-title-bar",requiredText:"sd-question__required-text",number:"sd-element__num",description:"sd-description sd-question__description",descriptionUnderInput:"sd-question__description--under-input",comment:"sd-input sd-comment",other:"sd-input sd-comment",required:"sd-question--required",titleRequired:"sd-question__title--required",indent:20,footer:"sd-question__footer",commentArea:"sd-question__comment-area",formGroup:"sd-question__form-group",hasError:"sd-question--error",hasErrorTop:"sd-question--error-top",hasErrorBottom:"sd-question--error-bottom",collapsed:"sd-element--collapsed",expandable:"sd-element--expandable",expandableAnimating:"sd-elemenet--expandable--animating",expanded:"sd-element--expanded",nested:"sd-element--nested",invisible:"sd-element--invisible",composite:"sd-element--complex sd-composite",disabled:"sd-question--disabled",readOnly:"sd-question--readonly",preview:"sd-question--preview",noPointerEventsMode:"sd-question--no-pointer-events",errorsContainer:"sd-element__erbox sd-question__erbox",errorsContainerTop:"sd-element__erbox--above-element sd-question__erbox--above-question",errorsContainerBottom:"sd-question__erbox--below-question",confirmDialog:"sd-popup--confirm sv-popup--confirm"},image:{mainRoot:"sd-question sd-question--image",root:"sd-image",image:"sd-image__image",adaptive:"sd-image__image--adaptive",noImage:"sd-image__no-image",noImageSvgIconId:"icon-no-image",withFrame:""},html:{mainRoot:"sd-question sd-row__question sd-question--html",root:"sd-html",withFrame:"",nested:"sd-element--nested sd-html--nested"},error:{root:"sd-error",icon:"",item:"",locationTop:"",locationBottom:""},checkbox:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-checkbox sd-selectbase__item",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemOnError:"sd-item--error",itemSelectAll:"sd-checkbox--selectall",itemNone:"sd-checkbox--none",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemReadOnly:"sd-item--readonly sd-checkbox--readonly",itemPreview:"sd-item--preview sd-checkbox--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemSvgIconId:"#icon-check-16x16",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-checkbox__decorator",other:"sd-input sd-comment sd-selectbase__other",column:"sd-selectbase__column"},radiogroup:{root:"sd-selectbase",rootMobile:"sd-selectbase--mobile",rootRow:"sd-selectbase--row",rootMultiColumn:"sd-selectbase--multi-column",item:"sd-item sd-radio sd-selectbase__item",itemOnError:"sd-item--error",itemInline:"sd-selectbase__item--inline",label:"sd-selectbase__label",labelChecked:"",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",controlLabel:"sd-item__control-label",materialDecorator:"sd-item__decorator sd-radio__decorator",other:"sd-input sd-comment sd-selectbase__other",clearButton:"",column:"sd-selectbase__column"},boolean:{mainRoot:"sd-element sd-question sd-row__question sd-question--boolean",root:"sv_qcbc sv_qbln sd-scrollable-container sd-boolean-root",rootRadio:"sv_qcbc sv_qbln sd-scrollable-container sd-scrollable-container--compact",item:"sd-boolean",itemOnError:"sd-boolean--error",control:"sd-boolean__control sd-visuallyhidden",itemChecked:"sd-boolean--checked",itemExchanged:"sd-boolean--exchanged",itemIndeterminate:"sd-boolean--indeterminate",itemDisabled:"sd-boolean--disabled",itemReadOnly:"sd-boolean--readonly",itemPreview:"sd-boolean--preview",itemHover:"sd-boolean--allowhover",label:"sd-boolean__label",labelTrue:"sd-boolean__label--true",labelFalse:"sd-boolean__label--false",switch:"sd-boolean__switch",disabledLabel:"sd-checkbox__label--disabled",labelReadOnly:"sd-checkbox__label--readonly",labelPreview:"sd-checkbox__label--preview",sliderText:"sd-boolean__thumb-text",slider:"sd-boolean__thumb",sliderGhost:"sd-boolean__thumb-ghost",radioItem:"sd-item",radioItemChecked:"sd-item--checked sd-radio--checked",radioItemDisabled:"sd-item--disabled sd-radio--disabled",radioItemReadOnly:"sd-item--readonly sd-radio--readonly",radioItemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",radioLabel:"sd-selectbase__label",radioControlLabel:"sd-item__control-label",radioFieldset:"sd-selectbase",itemRadioDecorator:"sd-item__svg sd-radio__svg",materialRadioDecorator:"sd-item__decorator sd-radio__decorator",itemRadioControl:"sd-visuallyhidden sd-item__control sd-radio__control",rootCheckbox:"sd-selectbase",checkboxItem:"sd-item sd-selectbase__item sd-checkbox",checkboxLabel:"sd-selectbase__label",checkboxItemOnError:"sd-item--error",checkboxItemIndeterminate:"sd-checkbox--intermediate",checkboxItemChecked:"sd-item--checked sd-checkbox--checked",checkboxItemDecorator:"sd-item__svg sd-checkbox__svg",checkboxItemDisabled:"sd-item--disabled sd-checkbox--disabled",checkboxItemReadOnly:"sd-item--readonly sd-checkbox--readonly",checkboxItemPreview:"sd-item--preview sd-checkbox--preview",controlCheckbox:"sd-visuallyhidden sd-item__control sd-checkbox__control",checkboxMaterialDecorator:"sd-item__decorator sd-checkbox__decorator",checkboxControlLabel:"sd-item__control-label",svgIconCheckedId:"#icon-check-16x16"},text:{root:"sd-input sd-text",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",constrolWithCharacterCounter:"sd-text__character-counter",characterCounterBig:"sd-text__character-counter--big",content:"sd-text__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},multipletext:{root:"sd-multipletext",rootMobile:"sd-multipletext--mobile",itemLabel:"sd-multipletext__item-container sd-input",itemLabelReadOnly:"sd-input--readonly",itemLabelDisabled:"sd-input--disabled",itemLabelPreview:"sd-input--preview",itemLabelOnError:"sd-multipletext__item-container--error",itemLabelAllowFocus:"sd-multipletext__item-container--allow-focus",itemLabelAnswered:"sd-multipletext__item-container--answered",itemWithCharacterCounter:"sd-multipletext-item__character-counter",item:"sd-multipletext__item",itemTitle:"sd-multipletext__item-title",content:"sd-multipletext__content sd-question__content",row:"sd-multipletext__row",cell:"sd-multipletext__cell",cellError:"sd-multipletext__cell--error",cellErrorTop:"sd-multipletext__cell--error-top",cellErrorBottom:"sd-multipletext__cell--error-bottom"},dropdown:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",item:"sd-item sd-radio sd-selectbase__item",itemDisabled:"sd-item--disabled sd-radio--disabled",itemChecked:"sd-item--checked sd-radio--checked",itemHover:"sd-item--allowhover sd-radio--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-radio__control",itemDecorator:"sd-item__svg sd-radio__svg",cleanButton:"sd-dropdown_clean-button",cleanButtonSvg:"sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-dropdown",controlInputFieldComponent:"sd-dropdown__input-field-component",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-radio__decorator",hintPrefix:"sd-dropdown__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix"},imagepicker:{mainRoot:"sd-element sd-question sd-row__question",root:"sd-selectbase sd-imagepicker",rootColumn:"sd-imagepicker--column",item:"sd-imagepicker__item",itemOnError:"sd-imagepicker__item--error",itemInline:"sd-imagepicker__item--inline",itemChecked:"sd-imagepicker__item--checked",itemDisabled:"sd-imagepicker__item--disabled",itemReadOnly:"sd-imagepicker__item--readonly",itemPreview:"sd-imagepicker__item--preview",itemHover:"sd-imagepicker__item--allowhover",label:"sd-imagepicker__label",itemDecorator:"sd-imagepicker__item-decorator",imageContainer:"sd-imagepicker__image-container",itemControl:"sd-imagepicker__control sd-visuallyhidden",image:"sd-imagepicker__image",itemText:"sd-imagepicker__text",other:"sd-input sd-comment",itemNoImage:"sd-imagepicker__no-image",itemNoImageSvgIcon:"sd-imagepicker__no-image-svg",itemNoImageSvgIconId:"icon-no-image",column:"sd-selectbase__column sd-imagepicker__column",checkedItemDecorator:"sd-imagepicker__check-decorator",checkedItemSvgIcon:"sd-imagepicker__check-icon",checkedItemSvgIconId:"icon-check-24x24"},matrix:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",tableWrapper:"sd-matrix sd-table-wrapper",root:"sd-table sd-matrix__table",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",rootAlternateRows:"sd-table--alternate-rows",rowError:"sd-matrix__row--error",cell:"sd-table__cell sd-matrix__cell",row:"sd-table__row",rowDisabled:"sd-table__row-disabled",rowReadOnly:"sd-table__row-readonly",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-matrix__cell sd-table__cell--row-text",label:"sd-item sd-radio sd-matrix__label",itemOnError:"sd-item--error",itemValue:"sd-visuallyhidden sd-item__control sd-radio__control",itemChecked:"sd-item--checked sd-radio--checked",itemDisabled:"sd-item--disabled sd-radio--disabled",itemReadOnly:"sd-item--readonly sd-radio--readonly",itemPreview:"sd-item--preview sd-radio--preview",itemPreviewSvgIconId:"#icon-check-16x16",itemHover:"sd-radio--allowhover",materialDecorator:"sd-item__decorator sd-radio__decorator",itemDecorator:"sd-item__svg sd-radio__svg",cellText:"sd-matrix__text",cellTextSelected:"sd-matrix__text--checked",cellTextDisabled:"sd-matrix__text--disabled",cellResponsiveTitle:"sd-matrix__responsive-title",compact:"sd-element--with-frame sd-element--compact"},matrixdropdown:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",root:"sd-table sd-matrixdropdown",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",rootVerticalAlignTop:"sd-table--align-top",rootVerticalAlignMiddle:"sd-table--align-middle",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",itemCell:"sd-table__cell--item",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",expandedRow:"sd-table__row--expanded",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",compact:"sd-element--with-frame sd-element--compact"},matrixdynamic:{mainRoot:"sd-element sd-question sd-row__question sd-element--complex sd-question--complex sd-question--table",rootScroll:"sd-question--scroll",empty:"sd-question--empty",root:"sd-table sd-matrixdynamic",columnsAutoWidth:"sd-table--columnsautowidth",noHeader:"sd-table--no-header",hasFooter:"sd-table--has-footer",tableWrapper:"sd-table-wrapper",rootAlternateRows:"sd-table--alternate-rows",content:"sd-matrixdynamic__content sd-question__content",cell:"sd-table__cell",cellResponsiveTitle:"sd-table__responsive-title",row:"sd-table__row",rowDelayedEnter:"sd-table__row--delayed-enter",rowEnter:"sd-table__row--enter",rowLeave:"sd-table__row--leave",rowHasPanel:"sd-table__row--has-panel",rowHasEndActions:"sd-table__row--has-end-actions",expandedRow:"sd-table__row--expanded",itemCell:"sd-table__cell--item",headerCell:"sd-table__cell sd-table__cell--header",rowTextCell:"sd-table__cell sd-table__cell--row-text",footerCell:"sd-table__cell sd-table__cell--footer",columnTitleCell:"sd-table__cell--column-title",cellRequiredText:"sd-question__required-text",button:"sd-action sd-matrixdynamic__btn",detailRow:"sd-table__row sd-table__row--detail",detailButton:"sd-table__cell--detail-button",detailButtonExpanded:"sd-table__cell--detail-button--expanded",detailIcon:"sd-detail-panel__icon",detailIconExpanded:"sd-detail-panel__icon--expanded",detailIconId:"icon-expanddetail",detailIconExpandedId:"icon-collapsedetail",detailPanelCell:"sd-table__cell--detail-panel",detailRowCell:"sd-table__cell--detail",actionsCellPrefix:"sd-table__cell-action",actionsCell:"sd-table__cell sd-table__cell--actions",actionsCellDrag:"sd-table__cell--drag",buttonAdd:"sd-matrixdynamic__add-btn",buttonRemove:"sd-action--negative sd-matrixdynamic__remove-btn",iconAdd:"sd-hidden",iconRemove:"",dragElementDecorator:"sd-drag-element__svg",iconDragElement:"#icon-drag-24x24",footer:"sd-matrixdynamic__footer",footerTotalCell:"sd-table__cell sd-table__cell--footer-total",emptyRowsSection:"sd-matrixdynamic__placeholder sd-question__placeholder",iconDrag:"sv-matrixdynamic__drag-icon",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row",emptyCell:"sd-table__cell--empty",verticalCell:"sd-table__cell--vertical",cellQuestionWrapper:"sd-matrix__question-wrapper sd-table__question-wrapper",errorsCell:"sd-table__cell--error",errorsCellTop:"sd-table__cell--error-top",errorsCellBottom:"sd-table__cell--error-bottom",compact:"sd-element--with-frame sd-element--compact"},rating:{rootDropdown:"sd-scrollable-container sd-scrollable-container--compact sd-selectbase",root:"sd-scrollable-container sd-rating",rootWrappable:"sd-rating--wrappable",rootLabelsTop:"sd-rating--labels-top",rootLabelsBottom:"sd-rating--labels-bottom",rootLabelsDiagonal:"sd-rating--labels-diagonal",item:"sd-rating__item",itemOnError:"sd-rating__item--error",itemHover:"sd-rating__item--allowhover",selected:"sd-rating__item--selected",itemStar:"sd-rating__item-star",itemStarOnError:"sd-rating__item-star--error",itemStarHover:"sd-rating__item-star--allowhover",itemStarSelected:"sd-rating__item-star--selected",itemStarDisabled:"sd-rating__item-star--disabled",itemStarReadOnly:"sd-rating__item-star--readonly",itemStarPreview:"sd-rating__item-star--preview",itemStarHighlighted:"sd-rating__item-star--highlighted",itemStarUnhighlighted:"sd-rating__item-star--unhighlighted",itemStarSmall:"sd-rating__item-star--small",itemSmiley:"sd-rating__item-smiley",itemSmileyOnError:"sd-rating__item-smiley--error",itemSmileyHover:"sd-rating__item-smiley--allowhover",itemSmileySelected:"sd-rating__item-smiley--selected",itemSmileyDisabled:"sd-rating__item-smiley--disabled",itemSmileyReadOnly:"sd-rating__item-smiley--readonly",itemSmileyPreview:"sd-rating__item-smiley--preview",itemSmileyHighlighted:"sd-rating__item-star--highlighted",itemSmileyScaleColored:"sd-rating__item-smiley--scale-colored",itemSmileyRateColored:"sd-rating__item-smiley--rate-colored",itemSmileySmall:"sd-rating__item-smiley--small",minText:"sd-rating__item-text sd-rating__min-text",itemText:"sd-rating__item-text",maxText:"sd-rating__item-text sd-rating__max-text",itemDisabled:"sd-rating__item--disabled",itemReadOnly:"sd-rating__item--readonly",itemPreview:"sd-rating__item--preview",itemFixedSize:"sd-rating__item--fixed-size",control:"sd-input sd-dropdown",itemSmall:"sd-rating--small",selectWrapper:"sv-dropdown_select-wrapper",controlValue:"sd-dropdown__value",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty",filterStringInput:"sd-dropdown__filter-string-input",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",popup:"sv-dropdown-popup",onError:"sd-input--error"},comment:{root:"sd-input sd-comment",small:"sd-row__question--small",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",content:"sd-comment__content sd-question__content",remainingCharacterCounter:"sd-remaining-character-counter",onError:"sd-input--error"},expression:"sd-expression",file:{root:"sd-file",rootDragging:"sd-file--dragging",rootAnswered:"sd-file--answered",rootDisabled:"sd-file--disabled",rootReadOnly:"sd-file--readonly",rootPreview:"sd-file--preview",other:"sd-input sd-comment",placeholderInput:"sd-visuallyhidden",previewItem:"sd-file__preview-item",fileSign:"",fileList:"sd-file__list",fileSignBottom:"sd-file__sign",dragArea:"sd-file__drag-area",dragAreaActive:"sd-file__drag-area--active",fileDecorator:"sd-file__decorator",onError:"sd-file__decorator--error",fileDecoratorDrag:"sd-file__decorator--drag",fileInput:"sd-visuallyhidden",noFileChosen:"sd-description sd-file__no-file-chosen",chooseFile:"sd-file__choose-btn",chooseFileAsText:"sd-action sd-file__choose-btn--text",chooseFileAsTextDisabled:"sd-action--disabled",chooseFileAsIcon:"sd-file__choose-btn--icon",chooseFileIconId:"icon-choosefile",disabled:"sd-file__choose-btn--disabled",controlDisabled:"sd-file__choose-file-btn--disabled",removeButton:"sd-context-btn--negative",removeButtonBottom:"",removeButtonIconId:"icon-clear",removeFile:"sd-hidden",removeFileSvg:"",removeFileSvgIconId:"icon-close_16x16",wrapper:"sd-file__wrapper",defaultImage:"sd-file__default-image",defaultImageIconId:"icon-defaultfile",leftIconId:"icon-arrowleft",rightIconId:"icon-arrowright",removeFileButton:"sd-context-btn--small sd-context-btn--with-border sd-context-btn--colorful sd-context-btn--negative sd-file__remove-file-button",dragAreaPlaceholder:"sd-file__drag-area-placeholder",imageWrapper:"sd-file__image-wrapper",imageWrapperDefaultImage:"sd-file__image-wrapper--default-image",single:"sd-file--single",singleImage:"sd-file--single-image",mobile:"sd-file--mobile",videoContainer:"sd-file__video-container",contextButton:"sd-context-btn",video:"sd-file__video",actionsContainer:"sd-file__actions-container",closeCameraButton:"sd-file__close-camera-button",changeCameraButton:"sd-file__change-camera-button",takePictureButton:"sd-file__take-picture-button",loadingIndicator:"sd-file__loading-indicator",page:"sd-file__page"},signaturepad:{mainRoot:"sd-element sd-question sd-question--signature sd-row__question",root:"sd-signaturepad sjs_sp_container",small:"sd-row__question--small",controls:"sjs_sp_controls sd-signaturepad__controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas sd-signaturepad__canvas",backgroundImage:"sjs_sp__background-image sd-signaturepad__background-image",clearButton:"sjs_sp_clear sd-context-btn sd-context-btn--negative sd-signaturepad__clear",clearButtonIconId:"icon-clear",loadingIndicator:"sd-signaturepad__loading-indicator"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sd-ranking--disabled",rootReadOnly:"sd-ranking--readonly",rootPreview:"sd-ranking--preview",rootDesignMode:"sv-ranking--design-mode",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankEmptyValueMod:"sv-ranking--select-to-rank-empty-value",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content sd-ranking-item__content",itemIndex:"sv-ranking-item__index sd-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty sd-ranking-item__index--empty",itemDisabled:"sv-ranking-item--disabled",itemReadOnly:"sv-ranking-item--readonly",itemPreview:"sv-ranking-item--preview",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking--drag",itemOnError:"sv-ranking-item--error",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},list:{root:"sv-list__container sd-list",item:"sv-list__item sd-list__item",itemBody:"sv-list__item-body sd-list__item-body",itemSelected:"sv-list__item--selected sd-list__item--selected",itemFocused:"sv-list__item--focused sd-list__item--focused",itemHovered:"sv-list__item--hovered sd-list__item--hovered"},actionBar:{root:"sd-action-bar",item:"sd-action",defaultSizeMode:"",smallSizeMode:"",itemPressed:"sd-action--pressed",itemAsIcon:"sd-action--icon",itemIcon:"sd-action__icon",itemTitle:"sd-action__title"},variables:{mobileWidth:"--sd-mobile-width",themeMark:"--sv-defaultV2-mark"},tagbox:{root:"sd-selectbase",popup:"sv-dropdown-popup",small:"sd-row__question--small",selectWrapper:"sv-dropdown_select-wrapper",other:"sd-input sd-comment sd-selectbase__other",onError:"sd-input--error",label:"sd-selectbase__label",itemSvgIconId:"#icon-check-16x16",item:"sd-item sd-checkbox sd-selectbase__item",itemDisabled:"sd-item--disabled sd-checkbox--disabled",itemChecked:"sd-item--checked sd-checkbox--checked",itemHover:"sd-item--allowhover sd-checkbox--allowhover",itemControl:"sd-visuallyhidden sd-item__control sd-checkbox__control",itemDecorator:"sd-item__svg sd-checkbox__svg",itemEnter:"sd-item--enter",itemLeave:"sd-item--leave",cleanButton:"sd-tagbox_clean-button sd-dropdown_clean-button",cleanButtonSvg:"sd-tagbox_clean-button-svg sd-dropdown_clean-button-svg",cleanButtonIconId:"icon-cancel-24x24",cleanItemButton:"sd-tagbox-item_clean-button",cleanItemButtonSvg:"sd-tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",chevronButton:"sd-dropdown_chevron-button",chevronButtonSvg:"sd-dropdown_chevron-button-svg",chevronButtonIconId:"icon-chevron",control:"sd-input sd-tagbox sd-dropdown",controlValue:"sd-tagbox__value sd-dropdown__value",controlValueItems:"sd-tagbox__value-items",placeholderInput:"sd-tagbox__placeholder",controlEditable:"sd-input--editable",controlDisabled:"sd-input--disabled",controlReadOnly:"sd-input--readonly",controlPreview:"sd-input--preview",controlEmpty:"sd-dropdown--empty sd-tagbox--empty",controlLabel:"sd-item__control-label",filterStringInput:"sd-tagbox__filter-string-input sd-dropdown__filter-string-input",materialDecorator:"sd-item__decorator sd-checkbox__decorator",hint:"sd-tagbox__hint",hintPrefix:"sd-dropdown__hint-prefix sd-tagbox__hint-prefix",hintSuffix:"sd-dropdown__hint-suffix sd-tagbox__hint-suffix",hintSuffixWrapper:"sd-tagbox__hint-suffix-wrapper"}},
vendor: 14,687 bytes, line 1
1oH="defaultV2";oB[oH]=oQ;var oz=function(){function e(){}return Object.defineProperty(e,"serviceUrl",{get:function(){return r9.web.surveyServiceUrl},set:function(e){r9.web.surveyServiceUrl=e},enumerable:!1,configurable:!0}),e.prototype.loadSurvey=function(e,t){var r=new XMLHttpRequest;r.open("GET",this.serviceUrl+"/getSurvey?surveyId="+e),r.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),r.onload=function(){var e=JSON.parse(r.response);t(200==r.status,e,r.response)},r.send()},e.prototype.getSurveyJsonAndIsCompleted=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/getSurveyAndIsCompleted?surveyId="+e+"&clientId="+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=JSON.parse(n.response),t=e?e.survey:null,o=e?e.isCompleted:null;r(200==n.status,t,o,n.response)},n.send()},e.prototype.canSendResult=function(e){return!this.isSurveJSIOService||JSON.stringify(e).length<65536},Object.defineProperty(e.prototype,"isSurveJSIOService",{get:function(){return this.serviceUrl.indexOf("surveyjs.io")>=0},enumerable:!1,configurable:!0}),e.prototype.sendResult=function(e,t,r,n,o){void 0===n&&(n=null),void 0===o&&(o=!1),this.canSendResult(t)?this.sendResultCore(e,t,r,n,o):r(!1,eM("savingExceedSize",this.locale),void 0)},e.prototype.sendResultCore=function(e,t,r,n,o){void 0===n&&(n=null),void 0===o&&(o=!1);var i=new XMLHttpRequest;i.open("POST",this.serviceUrl+"/post/"),i.setRequestHeader("Content-Type","application/json; charset=utf-8");var s={postId:e,surveyResult:JSON.stringify(t)};n&&(s.clientId=n),o&&(s.isPartialCompleted=!0);var a=JSON.stringify(s);i.onload=i.onerror=function(){r&&r(200===i.status,i.response,i)},i.send(a)},e.prototype.sendFile=function(e,t,r){var n=new XMLHttpRequest;n.onload=n.onerror=function(){r&&r(200==n.status,JSON.parse(n.response))},n.open("POST",this.serviceUrl+"/upload/",!0);var o=new FormData;o.append("file",t),o.append("postId",e),n.send(o)},e.prototype.getResult=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/getResult?"+("resultId="+e+"&name=")+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=null,t=null;if(200==n.status)for(var o in e=JSON.parse(n.response),t=[],e.QuestionResult){var i={name:o,value:e.QuestionResult[o]};t.push(i)}r(200==n.status,e,t,n.response)},n.send()},e.prototype.isCompleted=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",this.serviceUrl+"/isCompleted?"+("resultId="+e+"&clientId=")+t),n.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.onload=function(){var e=null;200==n.status&&(e=JSON.parse(n.response)),r(200==n.status,e,n.response)},n.send()},Object.defineProperty(e.prototype,"serviceUrl",{get:function(){return e.serviceUrl||""},enumerable:!1,configurable:!0}),e}(),oW={setTimeout:function(e){return oW.safeTimeOut(e,1e3)},clearTimeout:function(e){clearTimeout(e)},safeTimeOut:function(e,t){return t<=0?(e(),0):setTimeout(e,t)},now:function(){return Date.now()}},oU=function(){function e(){this.listenerCounter=0,this.timerId=-1,this.onTimerTick=new tW,this.onTimer=this.onTimerTick}return Object.defineProperty(e,"instance",{get:function(){return!e.instanceValue&&(e.instanceValue=new e),e.instanceValue},enumerable:!1,configurable:!0}),e.prototype.start=function(e){var t=this;void 0===e&&(e=null),e&&this.onTimerTick.add(e),this.prevTimeInMs=oW.now(),this.timerId<0&&(this.timerId=oW.setTimeout(function(){t.doTimer()})),this.listenerCounter++},e.prototype.stop=function(e){void 0===e&&(e=null),e&&this.onTimerTick.remove(e),this.listenerCounter--,0==this.listenerCounter&&this.timerId>-1&&(oW.clearTimeout(this.timerId),this.timerId=-1)},e.prototype.doTimer=function(){var e=this;if((this.onTimerTick.isEmpty||0==this.listenerCounter)&&(this.timerId=-1),!(this.timerId<0)){var t=oW.now(),r=Math.floor((t-this.prevTimeInMs)/1e3);this.prevTimeInMs=t,r<0&&(r=1);var n=this.timerId;this.onTimerTick.fire(this,{seconds:r}),n===this.timerId&&(this.timerId=oW.setTimeout(function(){e.doTimer()}))}},e.instanceValue=null,e}();var oJ=(A=function(e,t){return(A=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}A(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),oG=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},o$=function(e){function t(t){var r=e.call(this)||this;return r.timerFunc=null,r.surveyValue=t,r.onCreating(),r}return oJ(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),t.prototype.onCreating=function(){},t.prototype.start=function(){var e=this;if(!!this.survey)!this.isRunning&&!this.isDesignMode&&(this.survey.onCurrentPageChanged.add(function(){e.update()}),this.timerFunc=function(t,r){e.doTimer(r.seconds)},this.setIsRunning(!0),this.update(),oU.instance.start(this.timerFunc))},t.prototype.stop=function(){this.isRunning&&(this.setIsRunning(!1),oU.instance.stop(this.timerFunc))},Object.defineProperty(t.prototype,"isRunning",{get:function(){return this.getPropertyValue("isRunning",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsRunning=function(e){this.setPropertyValue("isRunning",e)},t.prototype.update=function(){this.updateText(),this.updateProgress()},t.prototype.doTimer=function(e){var t=this.survey.currentPage;if(t){var r=t.getMaxTimeToFinish();r>0&&r<t.timeSpent+e&&(e=r-t.timeSpent),t.timeSpent=t.timeSpent+e}this.spent=this.spent+e,this.update(),this.onTimerTick&&this.onTimerTick(t)},t.prototype.updateProgress=function(){var e=this,t=this.survey.timerInfo,r=t.spent,n=t.limit;n?(0==r?(this.progress=0,setTimeout(function(){e.progress=Math.floor((r+1)/n*100)/100},0)):r<=n&&(this.progress=Math.floor((r+1)/n*100)/100),this.progress>1&&(this.progress=void 0)):this.progress=void 0},t.prototype.updateText=function(){var e=this.survey.timerClock;this.clockMajorText=e.majorText,this.clockMinorText=e.minorText,this.text=this.survey.timerInfoText},Object.defineProperty(t.prototype,"showProgress",{get:function(){return void 0!==this.progress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimerAsClock",{get:function(){return!!this.survey.getCss().clockTimerRoot},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rootCss",{get:function(){return new t$().append(this.survey.getCss().clockTimerRoot).append(this.survey.getCss().clockTimerRootTop,this.survey.isTimerPanelShowingOnTop).append(this.survey.getCss().clockTimerRootBottom,this.survey.isTimerPanelShowingOnBottom).toString()},enumerable:!1,configurable:!0}),t.prototype.getProgressCss=function(){return new t$().append(this.survey.getCss().clockTimerProgress).append(this.survey.getCss().clockTimerProgressAnimation,this.progress>0).toString()},Object.defineProperty(t.prototype,"textContainerCss",{get:function(){return this.survey.getCss().clockTimerTextContainer},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minorTextCss",{get:function(){return this.survey.getCss().clockTimerMinorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"majorTextCss",{get:function(){return this.survey.getCss().clockTimerMajorText},enumerable:!1,configurable:!0}),oG([eW()],t.prototype,"text",void 0),oG([eW()],t.prototype,"progress",void 0),oG([eW()],t.prototype,"clockMajorText",void 0),oG([eW()],t.prototype,"clockMinorText",void 0),oG([eW({defaultValue:0})],t.prototype,"spent",void 0),t}(tQ);var oK=(L=function(e,t){return(L=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}L(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),oY=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},oX=function(e){function t(t){var r=e.call(this)||this;return r.cssClasses=t,r.timeout=r9.notifications.lifetime,r.timer=void 0,r.actionsVisibility={},r.showActions=!0,r.actionBar=new tZ,r.actionBar.updateCallback=function(e){r.actionBar.actions.forEach(function(e){return e.cssClasses={}})},r.css=r.cssClasses.root,r}return oK(t,e),t.prototype.getCssClass=function(e){return new t$().append(this.cssClasses.root).append(this.cssClasses.rootWithButtons,this.actionBar.visibleActions.length>0).append(this.cssClasses.info,"error"!==e&&"success"!==e).append(this.cssClasses.error,"error"===e).append(this.cssClasses.success,"success"===e).append(this.cssClasses.shown,this.active).toString()},t.prototype.updateActionsVisibility=function(e){var t=this;this.actionBar.actions.forEach(function(r){return r.visible=t.showActions&&t.actionsVisibility[r.id]===e})},t.prototype.notify=function(e,t,r){var n=this;void 0===t&&(t="info"),void 0===r&&(r=!1),this.isDisplayed=!0,setTimeout(function(){n.updateActionsVisibility(t),n.message=e,n.active=!0,n.css=n.getCssClass(t),n.timer&&(clearTimeout(n.timer),n.timer=void 0),!r&&(n.timer=setTimeout(function(){n.timer=void 0,n.active=!1,n.css=n.getCssClass(t)},n.timeout))},1)},t.prototype.addAction=function(e,t){e.visible=!1,e.innerCss=this.cssClasses.button;var r=this.actionBar.addAction(e);this.actionsVisibility[r.id]=t},oY([eW({defaultValue:!1})],t.prototype,"active",void 0),oY([eW({defaultValue:!1})],t.prototype,"isDisplayed",void 0),oY([eW()],t.prototype,"message",void 0),oY([eW()],t.prototype,"css",void 0),t}(tQ);var oZ=(N=function(e,t){return(N=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}N(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o0=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},o1=function(){function e(e,t,r){this.cover=e,this.positionX=t,this.positionY=r}return e.prototype.calcRow=function(e){return"top"===e?1:"middle"===e?2:3},e.prototype.calcColumn=function(e){return"left"===e?1:"center"===e?2:3},e.prototype.calcAlignItems=function(e){return"left"===e?"flex-start":"center"===e?"center":"flex-end"},e.prototype.calcAlignText=function(e){return"left"===e?"start":"center"===e?"center":"end"},e.prototype.calcJustifyContent=function(e){return"top"===e?"flex-start":"middle"===e?"center":"flex-end"},Object.defineProperty(e.prototype,"survey",{get:function(){return this.cover.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return e.CLASSNAME+" "+e.CLASSNAME+"--"+this.positionX+" "+e.CLASSNAME+"--"+this.positionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){var e={};return e.gridColumn=this.calcColumn(this.positionX),e.gridRow=this.calcRow(this.positionY),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"contentStyle",{get:function(){var e={};return e.textAlign=this.calcAlignText(this.positionX),e.alignItems=this.calcAlignItems(this.positionX),e.justifyContent=this.calcJustifyContent(this.positionY),e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showLogo",{get:function(){return this.survey.hasLogo&&this.positionX===this.cover.logoPositionX&&this.positionY===this.cover.logoPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showTitle",{get:function(){return this.survey.hasTitle&&this.positionX===this.cover.titlePositionX&&this.positionY===this.cover.titlePositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showDescription",{get:function(){return this.survey.renderedHasDescription&&this.positionX===this.cover.descriptionPositionX&&this.positionY===this.cover.descriptionPositionY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textAreaWidth",{get:function(){return this.cover.textAreaWidth?""+this.cover.textAreaWidth+"px":""},enumerable:!1,configurable:!0}),e.CLASSNAME="sv-header__cell",e}(),o2=function(e){function t(){var t=e.call(this)||this;return t.cells=[],["top","middle","bottom"].forEach(function(e){return["left","center","right"].forEach(function(r){return t.cells.push(new o1(t,r,e))})}),t.init(),t}return oZ(t,e),t.prototype.calcBackgroundSize=function(e){return"fill"===e?"100% 100%":"tile"===e?"auto":e},t.prototype.updateHeaderClasses=function(){this.headerClasses=new t$().append("sv-header").append("sv-header__without-background","transparent"===this.backgroundColor&&!this.backgroundImage).append("sv-header__background-color--none","transparent"===this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--accent",!this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__background-color--custom",!!this.backgroundColor&&"transparent"!==this.backgroundColor&&!this.titleColor&&!this.descriptionColor).append("sv-header__overlap",this.overlapEnabled).toString()},t.prototype.updateContentClasses=function(){var e=!!this.survey&&this.survey.calculateWidthMode();this.maxWidth="survey"===this.inheritWidthFrom&&!!e&&"static"===e&&this.survey.renderedWidth,this.contentClasses=new t$().append("sv-header__content").append("sv-header__content--static","survey"===this.inheritWidthFrom&&!!e&&"static"===e).append("sv-header__content--responsive","container"===this.inheritWidthFrom||!!e&&"responsive"===e).toString()}
1,t.prototype.updateBackgroundImageClasses=function(){this.backgroundImageClasses=new t$().append("sv-header__background-image").append("sv-header__background-image--contain","contain"===this.backgroundImageFit).append("sv-header__background-image--tile","tile"===this.backgroundImageFit).toString()},t.prototype.fromTheme=function(t){e.prototype.fromJSON.call(this,t.header||{}),t.cssVariables&&(this.backgroundColor=t.cssVariables["--sjs-header-backcolor"],this.titleColor=t.cssVariables["--sjs-font-headertitle-color"],this.descriptionColor=t.cssVariables["--sjs-font-headerdescription-color"]),this.init()},t.prototype.init=function(){this.renderBackgroundImage=rk(this.backgroundImage),this.updateHeaderClasses(),this.updateContentClasses(),this.updateBackgroundImageClasses()},t.prototype.getType=function(){return"cover"},Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return(!this.survey||this.survey.isMobile)&&this.survey?this.survey&&this.survey.isMobile?this.mobileHeight?Math.max(this.mobileHeight,this.actualHeight)+"px":void 0:void 0:this.height?Math.max(this.height,this.actualHeight+40)+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedtextAreaWidth",{get:function(){return this.textAreaWidth?this.textAreaWidth+"px":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this._survey},set:function(e){var t=this;this._survey!==e&&(this._survey=e,e&&(this.updateContentClasses(),this._survey.onPropertyChanged.add(function(e,r){("widthMode"==r.name||"width"==r.name)&&t.updateContentClasses()})))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImageStyle",{get:function(){return this.backgroundImage?{opacity:this.backgroundImageOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.calcBackgroundSize(this.backgroundImageFit)}:null},enumerable:!1,configurable:!0}),t.prototype.propertyValueChanged=function(t,r,n,o,i){e.prototype.propertyValueChanged.call(this,t,r,n),("backgroundColor"===t||"backgroundImage"===t||"overlapEnabled"===t)&&this.updateHeaderClasses(),"inheritWidthFrom"===t&&this.updateContentClasses(),"backgroundImageFit"===t&&this.updateBackgroun
vendor: 10,889 bytes, line 1
1dImageClasses()},t.prototype.calculateActualHeight=function(e,t,r){var n=["top","middle","bottom"],o=n.indexOf(this.logoPositionY),i=n.indexOf(this.titlePositionY),s=n.indexOf(this.descriptionPositionY),a=["left","center","right"],l=a.indexOf(this.logoPositionX),u=a.indexOf(this.titlePositionX),c=a.indexOf(this.descriptionPositionX),p=[[0,0,0],[0,0,0],[0,0,0]];return p[o][l]=e,p[i][u]+=t,p[s][c]+=r,p.reduce(function(e,t){return e+Math.max.apply(Math,t)},0)},t.prototype.processResponsiveness=function(e){if(this.survey&&this.survey.rootElement){if(this.survey.isMobile){var t=this.survey.rootElement.querySelectorAll(".sv-header > div")[0];this.actualHeight=t?t.getBoundingClientRect().height:0}else{var r=this.survey.rootElement.querySelectorAll(".sv-header__logo")[0],n=this.survey.rootElement.querySelectorAll(".sv-header__title")[0],o=this.survey.rootElement.querySelectorAll(".sv-header__description")[0],i=r?r.getBoundingClientRect().height:0,s=n?n.getBoundingClientRect().height:0,a=o?o.getBoundingClientRect().height:0;this.actualHeight=this.calculateActualHeight(i,s,a)}}},Object.defineProperty(t.prototype,"hasBackground",{get:function(){return!!this.backgroundImage||"transparent"!==this.backgroundColor},enumerable:!1,configurable:!0}),o0([eW({defaultValue:0})],t.prototype,"actualHeight",void 0),o0([eW()],t.prototype,"height",void 0),o0([eW()],t.prototype,"mobileHeight",void 0),o0([eW()],t.prototype,"inheritWidthFrom",void 0),o0([eW()],t.prototype,"textAreaWidth",void 0),o0([eW()],t.prototype,"textGlowEnabled",void 0),o0([eW()],t.prototype,"overlapEnabled",void 0),o0([eW()],t.prototype,"backgroundColor",void 0),o0([eW()],t.prototype,"titleColor",void 0),o0([eW()],t.prototype,"descriptionColor",void 0),o0([eW({onSet:function(e,t){t.renderBackgroundImage=rk(e)}})],t.prototype,"backgroundImage",void 0),o0([eW()],t.prototype,"renderBackgroundImage",void 0),o0([eW()],t.prototype,"backgroundImageFit",void 0),o0([eW()],t.prototype,"backgroundImageOpacity",void 0),o0([eW()],t.prototype,"logoPositionX",void 0),o0([eW()],t.prototype,"logoPositionY",void 0),o0([eW()],t.prototype,"titlePositionX",void 0),o0([eW()],t.prototype,"titlePositionY",void 0),o0([eW()],t.prototype,"descriptionPositionX",void 0),o0([eW()],t.prototype,"descriptionPositionY",void 0),o0([eW()],t.prototype,"logoStyle",void 0),o0([eW()],t.prototype,"titleStyle",void 0),o0([eW()],t.prototype,"descriptionStyle",void 0),o0([eW()],t.prototype,"headerClasses",void 0),o0([eW()],t.prototype,"contentClasses",void 0),o0([eW()],t.prototype,"maxWidth",void 0),o0([eW()],t.prototype,"backgroundImageClasses",void 0),t}(tQ);e6.addClass("cover",[{name:"height:number",minValue:0,default:256},{name:"mobileHeight:number",minValue:0,default:0},{name:"inheritWidthFrom",default:"container"},{name:"textAreaWidth:number",minValue:0,default:512},{name:"textGlowEnabled:boolean"},{name:"overlapEnabled:boolean"},{name:"backgroundImage:file"},{name:"backgroundImageOpacity:number",minValue:0,maxValue:1,default:1},{name:"backgroundImageFit",default:"cover",choices:["cover","fill","contain"]},{name:"logoPositionX",default:"right"},{name:"logoPositionY",default:"top"},{name:"titlePositionX",default:"left"},{name:"titlePositionY",default:"bottom"},{name:"descriptionPositionX",default:"left"},{name:"descriptionPositionY",default:"bottom"}],function(){return new o2});var o5=(M=function(e,t){return(M=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}M(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),o4=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},o8=function(e){this.type=e,this.timestamp=new Date},o3=function(e){function t(){var t=e.call(this)||this;return t.taskList=[],t.onAllTasksCompleted=t.addEvent(),t}return o5(t,e),t.prototype.runTask=function(e,t){var r=this,n=new o8(e);return this.taskList.push(n),this.hasActiveTasks=!0,t(function(){return r.taskFinished(n)}),n},t.prototype.waitAndExecute=function(e){if(!this.hasActiveTasks){e();return}this.onAllTasksCompleted.add(function(){e()})},t.prototype.taskFinished=function(e){var t=this.taskList.indexOf(e);t>-1&&this.taskList.splice(t,1),this.hasActiveTasks&&0==this.taskList.length&&(this.hasActiveTasks=!1,this.onAllTasksCompleted.fire(this,{}))},o4([eW({defaultValue:!1})],t.prototype,"hasActiveTasks",void 0),t}(tQ),o6=function(e,t,r){void 0===r&&(r=-1),this.source=e,this.target=t,this.nestedPanelDepth=r},o7=function(){function e(e){this.panel=e}return e.prototype.dragDropAddTarget=function(e){var t=this.dragDropFindRow(e.target);this.dragDropAddTargetToRow(e,t)&&this.panel.updateRowsRemoveElementFromRow(e.target,t)},e.prototype.dragDropFindRow=function(e){if(!e||e.isPage)return null;for(var t=this.panel.rows,r=0;r<t.length;r++)if(t[r].elements.indexOf(e)>-1)return t[r];for(var r=0;r<this.panel.elements.length;r++){var n=this.panel.elements[r].getPanel();if(n){var o=n.dragDropFindRow(e);if(o)return o}}return null},e.prototype.dragDropMoveElement=function(e,t,r){r>e.parent.elements.indexOf(e)&&r--,this.panel.removeElement(e),this.panel.addElement(t,r)},e.prototype.updateRowsOnElementAdded=function(e,t,r,n){!r&&((r=new o6(null,e)).target=e,r.isEdge=this.panel.elements.length>1,this.panel.elements.length<2?r.destination=n:(r.isBottom=t>0,0==t?r.destination=this.panel.elements[1]:r.destination=this.panel.elements[t-1])),this.dragDropAddTargetToRow(r,null)},e.prototype.dragDropAddTargetToRow=function(e,t){if(!e.destination||this.dragDropAddTargetToEmptyPanel(e))return!0;var r=e.destination,n=this.dragDropFindRow(r);return!n||(e.target.startWithNewLine?this.dragDropAddTargetToNewRow(e,n,t):this.dragDropAddTargetToExistingRow(e,n,t))},e.prototype.dragDropAddTargetToEmptyPanel=function(e){if(e.destination.isPage)return this.dragDropAddTargetToEmptyPanelCore(this.panel.root,e.target,e.isBottom),!0;var t=e.destination;if(t.isPanel&&!e.isEdge){if(e.target.template===t)return!1;if(e.nestedPanelDepth<0||e.nestedPanelDepth>=t.depth)return this.dragDropAddTargetToEmptyPanelCore(t,e.target,e.isBottom),!0}return!1},e.prototype.dragDropAddTargetToExistingRow=function(e,t,r){var n=t.elements.indexOf(e.destination);if(0==n&&!e.isBottom){if(this.panel.isDesignModeV2);else if(t.elements[0].startWithNewLine)return t.index>0?(e.isBottom=!0,t=t.panel.rows[t.index-1],e.destination=t.elements[t.elements.length-1],this.dragDropAddTargetToExistingRow(e,t,r)):this.dragDropAddTargetToNewRow(e,t,r)}var o=-1;r==t&&(o=t.elements.indexOf(e.target)),e.isBottom&&n++;var i=this.panel.findRowByElement(e.source);return(i!=t||i.elements.indexOf(e.source)!=n)&&n!=o&&(o>-1&&(t.elements.splice(o,1),o<n&&n--),t.elements.splice(n,0,e.target),t.updateVisible(),o<0)},e.prototype.dragDropAddTargetToNewRow=function(e,t,r){var n=t.panel.createRowAndSetLazy(t.panel.rows.length);this.panel.isDesignModeV2&&n.setIsLazyRendering(!1),n.addElement(e.target);var o=t.index;if(e.isBottom&&o++,r&&r.panel==n.panel&&r.index==o)return!1;var i=this.panel.findRowByElement(e.source);return(!i||i.panel!=n.panel||1!=i.elements.length||i.index!=o)&&(t.panel.rows.splice(o,0,n),!0)},e.prototype.dragDropAddTargetToEmptyPanelCore=function(e,t,r){var n=e.createRow();n.addElement(t),0==e.elements.length||r?e.rows.push(n):e.rows.splice(0,0,n)},e}();var o9=(F=function(e,t){return(F=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}F(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ie=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},it=function(e){function t(t,r){var n=e.call(this)||this;return n.effectiveWidth=t,n.questionTitleWidth=r,n}return o9(t,e),t.prototype.getType=function(){return"panellayoutcolumn"},t.prototype.isEmpty=function(){return!this.width&&!this.questionTitleWidth},ie([eW()],t.prototype,"width",void 0),ie([eW({onSet:function(e,t,r){e!==r&&(t.width=e)}})],t.prototype,"effectiveWidth",void 0),ie([eW()],t.prototype,"questionTitleWidth",void 0),t}(tQ);e6.addClass("panellayoutcolumn",[{name:"effectiveWidth:number",isSerializable:!1,minValue:0},{name:"width:number",visible:!1},"questionTitleWidth"],function(e){return new it});var ir=(q=function(e,t){return(q=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}q(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),io=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ii=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},is=function(e){function t(r){var n=e.call(this)||this;return n.panel=r,n._scrollableParent=void 0,n._updateVisibility=void 0,n.visibleElementsAnimation=new ry(n.getVisibleElementsAnimationOptions(),function(e){n.setWidth(e),n.setPropertyValue("visibleElements",e)},function(){return n.visibleElements}),n.idValue=t.getRowId(),n.visible=r.areInvisibleElementsShowing,n.createNewArray("elements"),n.createNewArray("visibleElements"),n}return ir(t,e),t.getRowId=function(){return"pr_"+t.rowCounter++},Object.defineProperty(t.prototype,"allowRendering",{get:function(){return!this.panel||!this.panel.survey||!this.panel.survey.isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.startLazyRendering=function(e,t){var r=this;if(void 0===t&&(t=r_),eD.isAvailable()){this._scrollableParent=t(e),this._scrollableParent===eD.getDocumentElement()&&
1(this._scrollableParent=e_.getWindow());var n=this._scrollableParent.scrollHeight>this._scrollableParent.clientHeight;this.isNeedRender=!n,n&&(this._updateVisibility=function(){if(!!r.allowRendering){var t=function(e,t){if(void 0===t&&(t=0),void 0===r9.environment)return!1;var r=r9.environment.root,n=rE(r)?r.host.clientHeight:r.documentElement.clientHeight,o=e.getBoundingClientRect(),i=Math.max(n,e_.getInnerHeight()),s=-t,a=i+t;return Math.max(s,o.top)<=Math.min(a,o.bottom)}(e,50);!r.isNeedRender&&t&&(r.isNeedRender=!0,r.stopLazyRendering())}},setTimeout(function(){r._scrollableParent&&r._scrollableParent.addEventListener&&r._scrollableParent.addEventListener("scroll",r._updateVisibility),r.ensureVisibility()},10))}},t.prototype.ensureVisibility=function(){this._updateVisibility&&this._updateVisibility()},t.prototype.stopLazyRendering=function(){this._scrollableParent&&this._updateVisibility&&this._scrollableParent.removeEventListener&&this._scrollableParent.removeEventListener("scroll",this._updateVisibility),this._scrollableParent=void 0,this._updateVisibility=void 0},t.prototype.setIsLazyRendering=function(e){this.isLazyRenderingValue=e,this.isNeedRender=!e},t.prototype.isLazyRendering=function(){return!0===this.isLazyRenderingValue},Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.equalsCore=function(e){return this==e},Object.defineProperty(t.prototype,"elements",{get:function(){return this.getPropertyValue("elements")},enumerable:!1,configurable:!0}),t.prototype.getIsAnimationAllowed=function(){var t;return e.prototype.getIsAnimationAllowed.call(this)&&this.visible&&(null===(t=this.panel)||void 0===t?void 0:t.animationAllowed)},t.prototype.getVisibleElementsAnimationOptions=function(){var e=this,t=function(e){r5(e),r2(e,{width:rK(e)+"px"})};return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},allowSyncRemovalAddition:!1,getAnimatedElement:function(e){return e.getWrapperElement()},getLeaveOptions:function(e){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).leave,onBeforeRunAnimation:t,onAfterRunAnimation:r4}},getEnterOptions:function(e){return{cssClass:(e.isPanel?e.cssClasses.panel:e.cssClasses).enter,onBeforeRunAnimation:t,onAfterRunAnimation:r4}}}},Object.defineProperty(t.prototype,"visibleElements",{get:function(){return this.getPropertyValue("visibleElements")},set:function(e){if(e.length)this.visible=!0;else{this.visible=!1,this.visibleElementsAnimation.cancel();return}this.visibleElementsAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){this.setPropertyValue("visible",e),this.onVisibleChangedCallback&&this.onVisibleChangedCallback()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNeedRender",{get:function(){return this.getPropertyValue("isneedrender",!0)},set:function(e){this.setPropertyValue("isneedrender",e)},enumerable:!1,configurable:!0}),t.prototype.updateVisible=function(){for(var e=[],t=0;t<this.elements.length;t++)this.elements[t].isVisible&&e.push(this.elements[t]),(this.elements[t].isPanel||"paneldynamic"===this.elements[t].getType())&&(this.setIsLazyRendering(!1),this.stopLazyRendering());this.visibleElements=e},t.prototype.addElement=function(e){this.elements.push(e),this.updateVisible()},Object.defineProperty(t.prototype,"index",{get:function(){return this.panel.rows.indexOf(this)},enumerable:!1,configurable:!0}),t.prototype.setWidth=function(e){var t,r=e.length;if(0!=r){for(var n=1===e.length,o=0,i=[],s=0;s<this.elements.length;s++){var a=this.elements[s];if(a.isVisible){a.isSingleInRow=n;var l=this.getElementWidth(a);l&&(a.renderWidth=this.getRenderedWidthFromWidth(l),i.push(a)),o<r-1&&!(this.panel.isDefaultV2Theme||(null===(t=this.panel.parentQuestion)||void 0===t?void 0:t.isDefaultV2Theme))?a.rightIndent=1:a.rightIndent=0,o++}else a.renderWidth=""}for(var s=0;s<this.elements.length;s++){var a=this.elements[s];!(!a.isVisible||i.indexOf(a)>-1)&&(0==i.length?a.renderWidth=Number.parseFloat((100/r).toFixed(6))+"%":a.renderWidth=this.getRenderedCalcWidth(a,i,r))}}},t.prototype.getRenderedCalcWidth=function(e,t,r){for(var n="100%",o=0;o<t.length;o++)n+=" - "+t[o].renderWidth;var i=r-t.length;return i>1&&(n="("+n+")/"+i.toString()),"calc("+n+")"},t.prototype.getElementWidth=function(e){var t=e.width;return t&&"string"==typeof t?t.trim():""},t.prototype.getRenderedWidthFromWidth=function(e){return eA.isNumber(e)?e+"px":e},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.stopLazyRendering()},t.prototype.getRowCss=function(){return new t$().append(this.panel.cssClasse
1s.row).append(this.panel.cssClasses.rowCompact,this.panel.isCompact).append(this.panel.cssClasses.pageRow,this.panel.isPage||this.panel.showPanelAsPage).append(this.panel.cssClasses.rowMultiple,this.visibleElements.length>1).toString()},t.prototype.setRootElement=function(e){this.rootElement=e},t.prototype.getRootElement=function(){return this.rootElement},t.rowCounter=100,io([eW({defaultValue:null})],t.prototype,"dragTypeOverMe",void 0),t}(tQ),ia=function(e){function t(r){void 0===r&&(r="");var n=e.call(this,r)||this;return n.isQuestionsReady=!1,n.questionsValue=[],n._columns=void 0,n._columnsReady=!1,n.rowsAnimation=new ry(n.getRowsAnimationOptions(),function(e){n.setPropertyValue("visibleRows",e)},function(){return n.visibleRows}),n.isRandomizing=!1,n.onColumnPropertyValueChangedCallback=function(e,t,r,o,i){n._columnsReady&&(n.updateColumnWidth(n.gridLayoutColumns),n.updateRootStyle())},n.locCountRowUpdates=0,n.createNewArray("rows",function(e,t){n.onAddRow(e)},function(e){n.onRemoveRow(e)}),n.createNewArray("visibleRows"),n.elementsValue=n.createNewArray("elements",n.onAddElement.bind(n),n.onRemoveElement.bind(n)),n.id=t.getPanelId(),n.addExpressionProperty("visibleIf",function(e,t){n.visible=!0===t},function(e){return!n.areInvisibleElementsShowing}),n.addExpressionProperty("enableIf",function(e,t){n.readOnly=!1===t}),n.addExpressionProperty("requiredIf",function(e,t){n.isRequired=!0===t}),n.createLocalizableString("requiredErrorText",n),n.createLocalizableString("navigationTitle",n,!0).onGetTextCallback=function(e){return e||n.title||n.name},n.registerPropertyChangedHandlers(["questionTitleLocation"],function(){n.onVisibleChanged.bind(n),n.updateElementCss(!0)}),n.registerPropertyChangedHandlers(["questionStartIndex","showQuestionNumbers"],function(){n.updateVisibleIndexes()}),n.registerPropertyChangedHandlers(["title"],function(){n.resetHasTextInTitle()}),n.dragDropPanelHelper=new o7(n),n}return ir(t,e),t.getPanelId=function(){return"sp_"+t.panelCounter++},t.prototype.onAddRow=function(e){var t=this;this.onRowVisibleChanged(),e.onVisibleChangedCallback=function(){return t.onRowVisibleChanged()}},t.prototype.getRowsAnimationOptions=function(){var e=this;return{getRerenderEvent:function(){return e.onElementRerendered},isAnimationEnabled:function(){return e.animationAllowed},getAnimatedElement:function(e){return e.getRootElement()},getLeaveOptions:function(t,r){return{cssClass:e.cssClasses.rowLeave,onBeforeRunAnimation:r5,onAfterRunAnimation:r4}},getEnterOptions:function(t,r){var n=e.cssClasses;return{cssClass:new t$().append(n.rowEnter).append(n.rowDelayedEnter,r.isDeletingRunning).toString(),onBeforeRunAnimation:r5,onAfterRunAnimation:r4}}}},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getPropertyValue("visibleRows")},set:function(e){this.rowsAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.onRemoveRow=function(e){e.visibleElementsAnimation.cancel(),this.visibleRows=this.rows.filter(function(e){return e.visible}),e.onVisibleChangedCallback=void 0},t.prototype.onRowVisibleChanged=function(){this.visibleRows=this.rows.filter(function(e){return e.visible})},t.prototype.getType=function(){return"panelbase"},t.prototype.setSurveyImpl=function(t,r){this.blockAnimations(),e.prototype.setSurveyImpl.call(this,t,r),this.isDesignMode&&this.onVisibleChanged();for(var n=0;n<this.elements.length;n++)this.elements[n].setSurveyImpl(t,r);this.releaseAnimations()},t.prototype.endLoadingFromJson=function(){var t=this;e.prototype.endLoadingFromJson.call(this),this.updateDescriptionVisibility(this.description),this.markQuestionListDirty(),this.onRowsChanged(),this.gridLayoutColumns.forEach(function(e){e.onPropertyValueChangedCallback=t.onColumnPropertyValueChangedCallback})},Object.defineProperty(t.prototype,"hasTextInTitle",{get:function(){var e=this;return this.getPropertyValue("hasTextInTitle",void 0,function(){return!!e.title})},enumerable:!1,configurable:!0}),t.prototype.resetHasTextInTitle=function(){this.resetPropertyValue("hasTextInTitle")},Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.canShowTitle(this.survey)&&(this.hasTextInT
vendor: 41,074 bytes, line 1
1itle||this.locTitle.textOrHtml.length>0)||this.isDesignMode&&!(r9.supportCreatorV2&&this.isPanel)&&this.showTitle&&r9.designMode.showEmptyTitles},enumerable:!1,configurable:!0}),t.prototype.delete=function(e){void 0===e&&(e=!0),this.deletePanel(),this.removeFromParent(),e&&this.dispose()},t.prototype.deletePanel=function(){for(var e=this.elements,t=0;t<e.length;t++){var r=e[t];r.isPanel&&r.deletePanel(),this.onRemoveElementNotifySurvey(r)}},t.prototype.removeFromParent=function(){},t.prototype.canShowTitle=function(e){return!0},Object.defineProperty(t.prototype,"_showDescription",{get:function(){return(!!this.hasTitle||!this.isDesignMode)&&(this.survey&&this.survey.showPageTitles&&this.hasDescription||this.showDescription&&this.isDesignMode&&r9.designMode.showEmptyDescriptions)},enumerable:!1,configurable:!0}),t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].locStrsChanged()},t.prototype.getMarkdownHtml=function(t,r){return"navigationTitle"===r&&this.locNavigationTitle.isEmpty?this.locTitle.renderedHtml||this.name:e.prototype.getMarkdownHtml.call(this,t,r)},Object.defineProperty(t.prototype,"locNavigationTitle",{get:function(){return this.getLocalizableString("navigationTitle")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedNavigationTitle",{get:function(){return this.locNavigationTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.survey&&this.isRequired?this.survey.requiredText:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"titlePattern",{get:function(){return this.survey?this.survey.questionTitlePattern:"numTitleRequire"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextOnStart",{get:function(){return this.isRequired&&"requireNumTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextBeforeTitle",{get:function(){return this.isRequired&&"numRequireTitle"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRequireTextAfterTitle",{get:function(){return this.isRequired&&"numTitleRequire"==this.titlePattern},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.getLocalizableStringText("requiredErrorText")},set:function(e){this.setLocalizableStringText("requiredErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.getLocalizableString("requiredErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.canRandomize=function(e){return e&&"initial"!==this.questionsOrder||"random"===this.questionsOrder},t.prototype.randomizeElements=function(e){if(!this.canRandomize(e)||this.isRandomizing)return!1;this.isRandomizing=!0;for(var t=[],r=this.elements,n=0;n<r.length;n++)t.push(r[n]);var o=eA.randomizeArray(t);return this.setArrayPropertyDirectly("elements",o,!1),this.updateRows(),this.updateVisibleIndexes(),this.isRandomizing=!1,!0},Object.defineProperty(t.prototype,"areQuestionsRandomized",{get:function(){return"random"==("default"==this.questionsOrder&&this.survey?this.survey.questionsOrder:this.questionsOrder)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getPropertyValue("parent",null)},set:function(e){this.setPropertyValue("parent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"depth",{get:function(){return null==this.parent?0:this.parent.depth+1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleIf",{get:function(){return this.getPropertyValue("visibleIf","")},set:function(e){this.setPropertyValue("visibleIf",e)},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(e){var t={panel:{},error:{},row:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowMultiple:"",pageRow:"",rowCompact:""};return this.copyCssClasses(t.panel,e.panel),this.copyCssClasses(t.error,e.error),e.pageRow&&(t.pageRow=e.pageRow),e.rowCompact&&(t.rowCompact=e.rowCompact),e.row&&(t.row=e.row),e.rowEnter&&(t.rowEnter=e.rowEnter),e.rowLeave&&(t.rowLeave=e.rowLeave),e.rowDelayedEnter&&(t.rowDelayedEnter=e.rowDelayedEnter),e.rowMultiple&&(t.rowMultiple=e.rowMultiple),this.survey&&this.survey.updatePanelCssClasses(this,t),t},Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this},t.prototype.getLayoutType=function(){return"row"},t.prototype.isLayoutTypeSupported=function(e){return"flow"!==e},Object.defineProperty(t.prototype,"questions",{get:function(){if(!this.isQuestionsReady){this.questionsValue=[];for(var e=0;e<this.elements.length;e++){var t=this.elements[e];if(t.isPanel){for(var r=t.questions,n=0;n<r.length;n++)this.questionsValue.push(r[n])}else this.questionsValue.push(t)}this.isQuestionsReady=!0}return this.questionsValue},enumerable:!1,configurable:!0}),t.prototype.getQuestions=function(e){var t=this.questions;if(!e)return t;var r=[];return t.forEach(function(e){r.push(e),e.getNestedQuestions().forEach(function(e){return r.push(e)})}),r},t.prototype.getValidName=function(e){return e?e.trim():e},t.prototype.getQuestionByName=function(e){for(var t=this.questions,r=0;r<t.length;r++)if(t[r].name==e)return t[r];return null},t.prototype.getElementByName=function(e){for(var t=this.elements,r=0;r<t.length;r++){var n=t[r];if(n.name==e)return n;var o=n.getPanel();if(o){var i=o.getElementByName(e);if(i)return i}}return null},t.prototype.getQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);return t.length>0?t[0]:null},t.prototype.getQuestionsByValueName=function(e){for(var t=[],r=this.questions,n=0;n<r.length;n++)r[n].getValueName()==e&&t.push(r[n]);return t},t.prototype.getValue=function(){var e={};return this.collectValues(e,0),eA.getUnbindValue(e)},t.prototype.collectValues=function(e,t){var r=this.elements;0===t&&(r=this.questions);for(var n=!1,o=0;o<r.length;o++){var i=r[o];if(i.isPanel||i.isPage){var s={};i.collectValues(s,t-1)&&(e[i.name]=s)}else if(!i.isEmpty()){var a=i.getValueName();if(e[a]=i.value,this.data){var l=this.data.getComment(a);l&&(e[a+tQ.commentSuffix]=l)}}}return!0},t.prototype.getDisplayValue=function(e){for(var t={},r=this.questions,n=0;n<r.length;n++){var o=r[n];!o.isEmpty()&&(t[e?o.title:o.getValueName()]=o.getDisplayValue(e))}return t},t.prototype.getComments=function(){var e={};if(!this.data)return e;for(var t=this.questions,r=0;r<t.length;r++){var n=t[r],o=this.data.getComment(n.getValueName());o&&(e[n.getValueName()]=o)}return e},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearIncorrectValues()},t.prototype.clearErrors=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].clearErrors();this.errors=[]},t.prototype.markQuestionListDirty=function(){this.isQuestionsReady=!1,this.parent&&this.parent.markQuestionListDirty()},Object.defineProperty(t.prototype,"elements",{get:function(){return tQ.collectDependency(this,"elements"),this.elementsValue},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),this.elements},t.prototype.containsElement=function(e){for(var t=0;t<this.elements.length;t++){var r=this.elements[t];if(r==e)return!0;var n=r.getPanel();if(n&&n.containsElement(e))return!0}return!1},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.getPropertyValue("isRequired")},set:function(e){this.setPropertyValue("isRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredIf",{get:function(){return this.getPropertyValue("requiredIf","")},set:function(e){this.setPropertyValue("requiredIf",e)},enumerable:!1,configurable:!0}),t.prototype.searchText=function(t,r){e.prototype.searchText.call(this,t,r);for(var n=0;n<this.elements.length;n++)this.elements[n].searchText(t,r)},t.prototype.hasErrors=function(e,t,r){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),!this.validate(e,t,r)},t.prototype.validate=function(e,t,r){return void 0===e&&(e=!0),void 0===t&&(t=!1),void 0===r&&(r=null),!0!==(r=r||{fireCallback:e,focusOnFirstError:t,firstErrorQuestion:null,result:!1}).result&&(r.result=!1),this.hasErrorsCore(r),!r.result},t.prototype.validateContainerOnly=function(){this.hasErrorsInPanels({fireCallback:!0}),this.parent&&this.parent.validateContainerOnly()},t.prototype.onQuestionValueChanged=function(e){var t=this.questions.indexOf(e);if(!(t<0)){for(var r=this.questions.length-1,n=t-5>0?t-5:0,o=t+5<r?t+5:r,i=n;i<=o;i++)if(i!==t){var s=this.questions[i];s.errors.length>0&&s.validate(!1)&&s.validate(!0)}}},t.prototype.hasErrorsInPanels=function(e){var t=[];if(this.hasRequiredError(e,t),this.isPanel&&this.survey){var r=this.survey.validatePanel(this);r&&(t.push(r),e.result=!0)}e.fireCallback&&(this.survey&&this.survey.beforeSettingPanelErrors(this,t),this.errors=t)},t.prototype.getErrorCustomText=function(e,t){return this.survey?this.survey.getSurveyErrorCustomText(this,e,t):e},t.prototype.hasRequiredError=function(e,t){if(!!this.isRequired){var r=[];if(this.addQuestionsToList(r,!0),0!=r.length){for(var n=0;n<r.length;n++)if(!r[n].isEmpty())return;e.result=!0,t.push(new nn(this.requiredErrorText,this)),e.focusOnFirstError&&!e.firstErrorQuestion&&(e.firstErrorQuestion=r[0])}}},t.prototype.hasErrorsCore=function(e){for(var t=this.elements,r=null,n=null,o=0;o<t.length;o++)if((r=t[o]).isVisible){if(r.isPanel)r.hasErrorsCore(e);else{var i=r;!i.validate(e.fireCallback,e)&&(!n&&(n=i),!e.firstErrorQuestion&&(e.firstErrorQuestion=i),e.result=!0)}}this.hasErrorsInPanels(e),this.updateContainsErrors(),!n&&this.errors.length>0&&(n=this.getFirstQuestionToFocus(!1,!0),!e.firstErrorQuestion&&(e.firstErrorQuestion=n)),e.fireCallback&&n&&(n===e.firstErrorQuestion&&e.focusOnFirstError?n.focus(!0):n.expandAllParents())},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.elements,n=0;n<r.length;n++)if(r[n].containsErrors)return!0;return!1},t.prototype.updateElementVisibility=function(){for(var t=0;t<this.elements.length;t++)this.elements[t].updateElementVisibility();e.prototype.updateElementVisibility.call(this)},t.prototype.getFirstQuestionToFocus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),!e&&!t&&this.isCollapsed)return null;for(var r=this.elements,n=0;n<r.length;n++){var o=r[n];if(o.isVisible&&(t||!o.isCollapsed)){if(o.isPanel){var i=o.getFirstQuestionToFocus(e,t);if(i)return i}else{var s=o.getFirstQuestionToFocus(e);if(s)return s}}}return null},t.prototype.getFirstVisibleQuestion=function(){for(var e=this.questions,t=0;t<e.length;t++)if(e[t].isVisible)return e[t];return null},t.prototype.focusFirstQuestion=function(){var e=this.getFirstQuestionToFocus();e&&e.focus()},t.prototype.focusFirstErrorQuestion=function(){var e=this.getFirstQuestionToFocus(!0);e&&e.focus()},t.prototype.addQuestionsToList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!1)},t.prototype.addPanelsIntoList=function(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1),this.addElementsToList(e,t,r,!0)},t.prototype.addElementsToList=function(e,t,r,n){(!t||this.visible)&&this.addElementsToListCore(e,this.elements,t,r,n)},t.prototype.addElementsToListCore=function(e,t,r,n,o){for(var i=0;i<t.length;i++){var s=t[i];(!r||s.visible)&&((o&&s.isPanel||!o&&!s.isPanel)&&e.push(s),s.isPanel?s.addElementsToListCore(e,s.elements,r,n,o):n&&this.addElementsToListCore(e,s.getElementsInDesign(!1),r,n,o))}},t.prototype.calcMaxRowColSpan=function(){var e=0;return this.rows.forEach(function(t){var r=0,n=!1;t.elements.forEach(function(e){e.width&&(n=!0),r+=e.colSpan||1}),!n&&r>e&&(e=r)}),e},t.prototype.updateColumnWidth=function(e){var t=0,r=0;if(e.forEach(function(e){e.width?(t+=e.width,e.setPropertyValue("effectiveWidth",e.width)):r++}),r){for(var n=Math.floor((100-t)/r*100)/100,o=0;o<e.length;o++)!e[o].width&&e[o].setPropertyValue("effectiveWidth",n)}},t.prototype.updateColumns=function(){this._columns=void 0,this.updateRootStyle()},t.prototype.updateRootStyle=function(){var t;e.prototype.updateRootStyle.call(this),null===(t=this.elements)||void 0===t||t.forEach(function(e){return e.updateRootStyle()})},t.prototype.updateCustomWidgets=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].updateCustomWidgets()},Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitleLocation=function(){return this.onGetQuestionTitleLocation?this.onGetQuestionTitleLocation():"default"!=this.questionTitleLocation?this.questionTitleLocation:this.parent?this.parent.getQuestionTitleLocation():this.survey?this.survey.questionTitleLocation:"top"},t.prototype.availableQuestionTitleWidth=function(){return"left"===this.getQuestionTitleLocation()||this.hasElementWithTitleLocationLeft()},t.prototype.hasElementWithTitleLocationLeft=function(){return this.elements.some(function(e){return e instanceof t?e.hasElementWithTitleLocationLeft():e instanceof n_?"left"===e.getTitleLocation():void 0})},t.prototype.getQuestionTitleWidth=function(){return this.questionTitleWidth||this.parent&&this.parent.getQuestionTitleWidth()},Object.defineProperty(t.prototype,"columns",{get:function(){return!this._columns&&this.generateColumns(),this._columns||[]},enumerable:!1,configurable:!0}),t.prototype.generateColumns=function(){var e=this.calcMaxRowColSpan(),t=[].concat(this.gridLayoutColumns);if(e<=this.gridLayoutColumns.length)t=this.gridLayoutColumns.slice(0,e);else for(var r=this.gridLayoutColumns.length;r<e;r++){var n=new it;n.onPropertyValueChangedCallback=this.onColumnPropertyValueChangedCallback,t.push(n)}this._columns=t;try{this._columnsReady=!1,this.updateColumnWidth(t)}finally{this._columnsReady=!0}this.gridLayoutColumns=t},t.prototype.updateGridColumns=function(){this.updateColumns(),this.elements.forEach(function(e){e.isPanel&&e.updateGridColumns()})},t.prototype.getColumsForElement=function(e){var t=this.findRowByElement(e);if(!t||!this.survey||!this.survey.gridLayoutEnabled)return[];for(var r=t.elements.length-1;r>=0&&t.elements[r].getPropertyValueWithoutDefault("colSpan");){;r--}for(var n=t.elements.indexOf(e),o=0,i=0;i<n;i++)o+=t.elements[i].colSpan;var s=e.getPropertyValueWithoutDefault("colSpan");if(!s&&n===r){for(var a=0,i=0;i<t.elements.length;i++)i!==r&&(a+=t.elements[i].colSpan);s=this.columns.length-a}var l=this.columns.slice(o,o+(s||1));return e.setPropertyValue("effectiveColSpan",l.length),l},t.prototype.getStartIndex=function(){return this.parent?this.parent.getQuestionStartIndex():this.survey?this.survey.questionStartIndex:""},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.getProgressInfo=function(){return rw.getProgressInfoByElements(this.elements,this.isRequired)},Object.defineProperty(t.prototype,"root",{get:function(){for(var e=this;e.parent;)e=e.parent;return e},enumerable:!1,configurable:!0}),t.prototype.childVisibilityChanged=function(){this.getIsPageVisible(null)!==this.getPropertyValue("isVisible",!0)&&this.onVisibleChanged()},t.prototype.canRenderFirstRows=function(){return this.isPage},t.prototype.isLazyRenderInRow=function(e){return!!this.survey&&!!this.survey.isLazyRendering&&(e>=this.survey.lazyRenderingFirstBatchSize||!this.canRenderFirstRows())},t.prototype.createRowAndSetLazy=function(e){var t=this.createRow();return t.setIsLazyRendering(this.isLazyRenderInRow(e)),t},t.prototype.createRow=function(){return new is(this)},t.prototype.onSurveyLoad=function(){this.blockAnimations(),e.prototype.onSurveyLoad.call(this);for(var t=0;t<this.elements.length;t++)this.elements[t].onSurveyLoad();this.onElementVisibilityChanged(this),this.releaseAnimations()},t.prototype.onFirstRenderingCore=function(){e.prototype.onFirstRenderingCore.call(this),this.onRowsChanged(),this.elements.forEach(function(e){return e.onFirstRendering()})},t.prototype.updateRows=function(){!this.isLoadingFromJson&&(this.getElementsForRows().forEach(function(e){e.isPanel&&e.updateRows()}),this.onRowsChanged())},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},enumerable:!1,configurable:!0}),t.prototype.ensureRowsVisibility=function(){this.rows.forEach(function(e){e.ensureVisibility()})},t.prototype.onRowsChanged=function(){!this.isLoadingFromJson&&(this.blockAnimations(),this.setArrayPropertyDirectly("rows",this.buildRows()),this.updateColumns(),this.releaseAnimations())},t.prototype.blockRowsUpdates=function(){this.locCountRowUpdates++},t.prototype.releaseRowsUpdates=function(){this.locCountRowUpdates--},t.prototype.updateRowsBeforeElementRemoved=function(e){var t=this,r=this.findRowByElement(e),n=this.rows.indexOf(r),o=r.elements.indexOf(e);r.elements.splice(o,1),0==r.elements.length?this.rows.splice(n,1):!r.elements[0].startWithNewLine&&this.rows[n-1]?(r.elements.forEach(function(e){return t.rows[n-1].addElement(e)}),this.rows.splice(n,1)):r.updateVisible()},t.prototype.updateRowsOnElementAdded=function(e){var t=this,r=this.elements.indexOf(e),n=this.elements[r+1],o=function(e){var r=t.createRowAndSetLazy(e);return t.isDesignModeV2&&r.setIsLazyRendering(!1),t.rows.splice(e,0,r),r},i=function(e,t,r){for(var n,o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=(n=e.elements).splice.apply(n,ii([t,r],o));return e.updateVisible(),s};if(!n){0==r||e.startWithNewLine?i(o(this.rows.length),0,0,e):this.rows[this.rows.length-1].addElement(e);return}var s=this.findRowByElement(n);if(s){var a=this.rows.indexOf(s),l=s.elements.indexOf(n);0==l?n.startWithNewLine?e.startWithNewLine||a<1?o(a).addElement(e):this.rows[a-1].addElement(e):i(s,0,0,e):e.startWithNewLine?i.apply(void 0,ii([o(a+1),0,0],[e].concat(i(s,l,s.elements.length)))):i(s,l,0,e)}},t.prototype.canFireAddRemoveNotifications=function(e){return!!this.survey&&e.prevSurvey!==this.survey},t.prototype.onAddElement=function(e,t){var r=this,n=this.survey,o=this.canFireAddRemoveNotifications(e);this.surveyImpl&&e.setSurveyImpl(this.surveyImpl),e.parent=this,this.markQuestionListDirty(),this.canBuildRows()&&this.updateRowsOnElementAdded(e),o&&(e.isPanel?n.panelAdded(e,t,this,this.root):n.questionAdded(e,t,this,this.root)),this.addElementCallback&&this.addElementCallback(e),e.registerPropertyChangedHandlers(["visible","isVisible"],function(){r.onElementVisibilityChanged(e)},this.id),e.registerPropertyChangedHandlers(["startWithNewLine"],function(){r.onElementStartWithNewLineChanged(e)},this.id),this.onElementVisibilityChanged(this)},t.prototype.onRemoveElement=function(e){e.parent=null,this.unregisterElementPropertiesChanged(e),this.markQuestionListDirty(),this.updateRowsOnElementRemoved(e),!this.isRandomizing&&(this.onRemoveElementNotifySurvey(e),this.removeElementCallback&&this.removeElementCallback(e),this.onElementVisibilityChanged(this))},t.prototype.unregisterElementPropertiesChanged=function(e){e.unregisterPropertyChangedHandlers(["visible","isVisible","startWithNewLine"],this.id)},t.prototype.onRemoveElementNotifySurvey=function(e){this.canFireAddRemoveNotifications(e)&&(e.isPanel?this.survey.panelRemoved(e):this.survey.questionRemoved(e))},t.prototype.onElementVisibilityChanged=function(e){!this.isLoadingFromJson&&!this.isRandomizing&&(this.updateRowsVisibility(e),this.childVisibilityChanged(),this.parent&&this.parent.onElementVisibilityChanged(this))},t.prototype.onElementStartWithNewLineChanged=function(e){!(this.locCountRowUpdates>0)&&(this.blockAnimations(),this.updateRowsBeforeElementRemoved(e),this.updateRowsOnElementAdded(e),this.releaseAnimations())},t.prototype.updateRowsVisibility=function(e){for(var t=this.rows,r=0;r<t.length;r++){var n=t[r];if(n.elements.indexOf(e)>-1){n.updateVisible(),n.visible&&!n.isNeedRender&&(n.isNeedRender=!0);break}}},t.prototype.canBuildRows=function(){return!this.isLoadingFromJson&&"row"==this.getChildrenLayoutType()},t.prototype.buildRows=function(){if(!this.canBuildRows())return[];for(var e=[],t=this.getElementsForRows(),r=0;r<t.length;r++){var n=t[r],o=0==r||n.startWithNewLine,i=o?this.createRowAndSetLazy(e.length):e[e.length-1];o&&e.push(i),i.addElement(n)}return e.forEach(function(e){return e.updateVisible()}),e},t.prototype.getElementsForRows=function(){return this.elements},t.prototype.getDragDropInfo=function(){var e=this.getPage(this.parent);return e?e.getDragDropInfo():void 0},t.prototype.updateRowsOnElementRemoved=function(e){this.canBuildRows()&&(this.updateRowsRemoveElementFromRow(e,this.findRowByElement(e)),this.updateColumns())},t.prototype.updateRowsRemoveElementFromRow=function(e,t){if(!!t&&!!t.panel){var r=t.elements.indexOf(e);!(r<0)&&(t.elements.splice(r,1),t.elements.length>0?(this.blockRowsUpdates(),t.elements[0].startWithNewLine=!0,this.releaseRowsUpdates(),t.updateVisible()):t.index>=0&&t.panel.rows.splice(t.index,1))}},t.prototype.getAllRows=function(){var e=this,t=[];return this.rows.forEach(function(r){var n=[];r.elements.forEach(function(t){t.isPanel?n.push.apply(n,t.getAllRows()):"paneldynamic"==t.getType()&&(e.isDesignMode?n.push.apply(n,t.template.getAllRows()):t.panels.forEach(function(e){return n.push.apply(n,e.getAllRows())}))}),t.push(r),t.push.apply(t,n)}),t},t.prototype.findRowAndIndexByElement=function(e,t){if(!e)return{row:void 0,index:this.rows.length-1};t=t||this.rows;for(var r=0;r<t.length;r++)if(t[r].elements.indexOf(e)>-1)return{row:t[r],index:r};return{row:null,index:-1}},t.prototype.forceRenderRow=function(e){e&&!e.isNeedRender&&(e.isNeedRender=!0,e.stopLazyRendering())},t.prototype.forceRenderElement=function(e,t,r){void 0===t&&(t=function(){}),void 0===r&&(r=0);var n=this.getAllRows(),o=this.findRowAndIndexByElement(e,n),i=o.row,s=o.index;if(s>=0&&s<n.length){var a=[];a.push(i);for(var l=s-1;l>=s-r&&l>=0;l--)a.push(n[l]);this.forceRenderRows(a,t)}},t.prototype.forceRenderRows=function(e,t){var r,n=this;void 0===t&&(t=function(){});var o=(r=e.length,function(){--r<=0&&t()});e.forEach(function(e){return new rP(e.visibleElements,o)}),e.forEach(function(e){return n.forceRenderRow(e)})},t.prototype.findRowByElement=function(e){return this.findRowAndIndexByElement(e).row},t.prototype.elementWidthChanged=function(e){if(!this.isLoadingFromJson){var t=this.findRowByElement(e);t&&t.updateVisible()}},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.getRenderedTitle(this.locTitle.textOrHtml)},enumerable:!1,configurable:!0}),t.prototype.getRenderedTitle=function(e){return null!=this.textProcessor?this.textProcessor.processText(e,!0):e},Object.defineProperty(t.prototype,"visible",{get:function(){return this.getPropertyValue("visible",!0)},set:function(e){e!==this.visible&&(this.setPropertyValue("visible",e),this.setPropertyValue("isVisible",this.isVisible),!this.isLoadingFromJson&&this.onVisibleChanged())},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){this.questions.forEach(function(e){return e.onHidingContent()})},t.prototype.onVisibleChanged=function(){if(!this.isRandomizing&&(this.setPropertyValue("isVisible",this.isVisible),this.survey&&"none"!==this.survey.getQuestionClearIfInvisible("default")&&!this.isLoadingFromJson)){for(var e=this.questions,t=this.isVisible,r=0;r<e.length;r++){var n=e[r];t?n.updateValueWithDefaults():(n.clearValueIfInvisible("onHiddenContainer"),n.onHidingContent())}}},t.prototype.notifyStateChanged=function(t){e.prototype.notifyStateChanged.call(this,t),this.isCollapsed&&this.questions.forEach(function(e){return e.onHidingContent()})},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this.areInvisibleElementsShowing||this.getIsPageVisible(null)},enumerable:!1,configurable:!0}),t.prototype.getIsContentVisible=function(e){if(this.areInvisibleElementsShowing)return!0;for(var t=0;t<this.elements.length;t++)if(this.elements[t]!=e&&this.elements[t].isVisible)return!0;return!1},t.prototype.getIsPageVisible=function(e){return this.visible&&this.getIsContentVisible(e)},t.prototype.setVisibleIndex=function(e){if(!this.isVisible||e<0)return this.resetVisibleIndexes(),0;this.lastVisibleIndex=e;var t=e;e+=this.beforeSetVisibleIndex(e);for(var r=this.getPanelStartIndex(e),n=r,o=0;o<this.elements.length;o++)n+=this.elements[o].setVisibleIndex(n);return this.isContinueNumbering()&&(e+=n-r),e-t},t.prototype.updateVisibleIndexes=function(){void 0!==this.lastVisibleIndex&&(this.resetVisibleIndexes(),this.setVisibleIndex(this.lastVisibleIndex))},t.prototype.resetVisibleIndexes=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].setVisibleIndex(-1)},t.prototype.beforeSetVisibleIndex=function(e){return 0},t.prototype.getPanelStartIndex=function(e){return e},t.prototype.isContinueNumbering=function(){return!0},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){var e=!!this.parent&&this.parent.isReadOnly,t=!!this.survey&&this.survey.isDisplayMode;return this.readOnly||e||t},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){for(var t=0;t<this.elements.length;t++){var r=this.elements[t];r.setPropertyValue("isReadOnly",r.isReadOnly)}e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var r=0;r<this.elements.length;r++)this.elements[r].updateElementCss(t)},Object.defineProperty(t.prototype,"enableIf",{get:function(){return this.getPropertyValue("enableIf","")},set:function(e){this.setPropertyValue("enableIf",e)},enumerable:!1,configurable:!0}),t.prototype.addElement=function(e,t){return void 0===t&&(t=-1),!!this.canAddElement(e)&&(t<0||t>=this.elements.length?this.elements.push(e):this.elements.splice(t,0,e),this.wasRendered&&e.onFirstRendering(),this.updateColumns(),!0)},t.prototype.insertElement=function(e,t,r){if(void 0===r&&(r="bottom"),!t){this.addElement(e);return}this.blockRowsUpdates();var n=this.elements.indexOf(t),o=this.findRowByElement(t);"left"==r||"right"==r?"right"==r?(e.startWithNewLine=!1,n++):0==o.elements.indexOf(t)?(t.startWithNewLine=!1,e.startWithNewLine=!0):e.startWithNewLine=!1:(e.startWithNewLine=!0,n="top"==r?this.elements.indexOf(o.elements[0]):this.elements.indexOf(o.elements[o.elements.length-1])+1),this.releaseRowsUpdates(),this.addElement(e,n)},t.prototype.insertElementAfter=function(e,t){var r=this.elements.indexOf(t);r>=0&&this.addElement(e,r+1)},t.prototype.insertElementBefore=function(e,t){var r=this.elements.indexOf(t);r>=0&&this.addElement(e,r)},t.prototype.canAddElement=function(e){return!!e&&e.isLayoutTypeSupported(this.getChildrenLayoutType())},t.prototype.addQuestion=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addPanel=function(e,t){return void 0===t&&(t=-1),this.addElement(e,t)},t.prototype.addNewQuestion=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=-1);var n=n6.Instance.createQuestion(e,t);return this.addQuestion(n,r)?n:null},t.prototype.addNewPanel=function(e){void 0===e&&(e=null);var t=this.createNewPanel(e);return this.addPanel(t)?t:null},t.prototype.indexOf=function(e){return this.elements.indexOf(e)},t.prototype.createNewPanel=function(e){var t=e6.createClass("panel");return t.name=e,t},t.prototype.removeElement=function(e){var t=this.elements.indexOf(e);if(t<0){for(var r=0;r<this.elements.length;r++)if(this.elements[r].removeElement(e))return!0;return!1}return this.elements.splice(t,1),this.updateColumns(),!0},t.prototype.removeQuestion=function(e){this.removeElement(e)},t.prototype.runCondition=function(e,t){if(!this.isDesignMode&&!this.isLoadingFromJson){for(var r=this.elements.slice(),n=0;n<r.length;n++)r[n].runCondition(e,t);this.runConditionCore(e,t)}},t.prototype.onAnyValueChanged=function(e,t){for(var r=this.elements,n=0;n<r.length;n++)r[n].onAnyValueChanged(e,t)},t.prototype.checkBindings=function(e,t){for(var r=this.elements,n=0;n<r.length;n++)r[n].checkBindings(e,t)},t.prototype.dragDropAddTarget=function(e){this.dragDropPanelHelper.dragDropAddTarget(e)},t.prototype.dragDropFindRow=function(e){return this.dragDropPanelHelper.dragDropFindRow(e)},t.prototype.dragDropMoveElement=function(e,t,r){this.dragDropPanelHelper.dragDropMoveElement(e,t,r)},t.prototype.needResponsiveWidth=function(){var e=!1;return this.elements.forEach(function(t){t.needResponsiveWidth()&&(e=!0)}),this.rows.forEach(function(t){t.elements.length>1&&(e=!0)}),e},Object.defineProperty(t.prototype,"hasDescriptionUnderTitle",{get:function(){return this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeader",{get:function(){return this.cssClasses.panel.header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssDescription",{get:function(){return this.cssClasses.panel.description},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return"default"!==this.questionErrorLocation?this.questionErrorLocation:this.parent?this.parent.getQuestionErrorLocation():this.survey?this.survey.questionErrorLocation:"top"},t.prototype.getTitleOwner=function(){return this},Object.defineProperty(t.prototype,"no",{get:function(){return""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.panel.number},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return this.cssClasses.panel.requiredText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssError",{get:function(){return this.getCssError(this.cssClasses)},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(e){return new t$().append(e.error.root).toString()},t.prototype.getSerializableColumnsValue=function(){for(var e=-1,t=this.gridLayoutColumns.length-1;t>=0;t--)if(!this.gridLayoutColumns[t].isEmpty()){e=t;break}return this.gridLayoutColumns.slice(0,e+1)},t.prototype.afterRender=function(e){this.afterRenderCore(e)},t.prototype.dispose=function(){if(e.prototype.dispose.call(this),this.rows){for(var t=0;t<this.rows.length;t++)this.rows[t].dispose();this.rows.splice(0,this.rows.length)}this.disposeElements(),this.elements.splice(0,this.elements.length)},t.prototype.disposeElements=function(){for(var e=0;e<this.elements.length;e++)this.elements[e].dispose()},t.panelCounter=100,io([eJ()],t.prototype,"gridLayoutColumns",void 0),io([eW({defaultValue:!0})],t.prototype,"showTitle",void 0),io([eW({defaultValue:!0})],t.prototype,"showDescription",void 0),io([eW()],t.prototype,"questionTitleWidth",void 0),t}(rw),il=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.forcusFirstQuestionOnExpand=!0,r.createNewArray("footerActions"),r.registerPropertyChangedHandlers(["width"],function(){r.parent&&r.parent.elementWidthChanged(r)}),r.registerPropertyChangedHandlers(["indent","innerIndent","rightIndent"],function(){r.resetIndents()}),r.registerPropertyChangedHandlers(["colSpan"],function(){var e;null===(e=r.parent)||void 0===e||e.updateColumns()}),r}return ir(t,e),t.prototype.getType=function(){return"panel"},Object.defineProperty(t.prototype,"contentId",{get:function(){return this.id+"_content"},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(t){return(void 0===t&&(t=!1),t&&this.isPanel)?this.parent?this.parent.getSurvey(t):null:e.prototype.getSurvey.call(this,t)},Object.defineProperty(t.prototype,"isPanel",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.getPage(this.parent)},set:function(e){this.setPage(this.parent,e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.parent&&this.removeSelfFromList(this.parent.elements)},t.prototype.moveTo=function(e,t){return void 0===t&&(t=null),this.moveToBase(this.parent,e,t)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNumber",{get:function(){return this.getPropertyValue("showNumber")},set:function(e){this.setPropertyValue("showNumber",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),this.notifySurveyOnVisibilityChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionStartIndex=function(){return this.questionStartIndex?this.questionStartIndex:e.prototype.getQuestionStartIndex.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){var e=this;return this.getPropertyValue("no",void 0,function(){return e.calcNo()})},enumerable:!1,configurable:!0}),t.prototype.calcNo=function(){var e=eA.getNumberByIndex(this.visibleIndex,this.getStartIndex());return this.survey&&(e=this.survey.getUpdatedPanelNo(this,e)),e||""},t.prototype.notifyStateChanged=function(t){!this.isLoadingFromJson&&this.locTitle.strChanged(),e.prototype.notifyStateChanged.call(this,t)},t.prototype.createLocTitleProperty=function(){var t=this,r=e.prototype.createLocTitleProperty.call(this);return r.onGetTextCallback=function(e){return!e&&"default"!==t.state&&(e=t.name),e},r},t.prototype.beforeSetVisibleIndex=function(t){if(this.isPage)return e.prototype.beforeSetVisibleIndex.call(this,t);var r=-1;return this.showNumber&&(this.isDesignMode||!this.locTitle.isEmpty||this.hasParentInQuestionIndex())&&(r=t),this.setPropertyValue("visibleIndex",r),this.resetPropertyValue("no"),r<0?0:1},t.prototype.getPanelStartIndex=function(e){return"off"===this.showQuestionNumbers?-1:"onpanel"===this.showQuestionNumbers?0:e},t.prototype.hasParentInQuestionIndex=function(){if("onpanel"!==this.showQuestionNumbers)return!1;var e=this.questionStartIndex,t=e.indexOf(".");return t>-1&&t<e.length-1},t.prototype.isContinueNumbering=function(){return"off"!==this.showQuestionNumbers&&"onpanel"!==this.showQuestionNumbers},t.prototype.notifySurveyOnVisibilityChanged=function(){null!=this.survey&&!this.isLoadingFromJson&&this.page&&this.survey.panelVisibilityChanged(this,this.isVisible)},t.prototype.getRenderedTitle=function(t){if(this.isPanel&&!t){if(this.isCollapsed||this.isExpanded)return this.name;if(this.isDesignMode)return"["+this.name+"]"}return e.prototype.getRenderedTitle.call(this,t)},Object.defineProperty(t.prototype,"innerIndent",{get:function(){return this.getPropertyValue("innerIndent")},set:function(e){this.setPropertyValue("innerIndent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startWithNewLine",{get:function(){return this.getPropertyValue("startWithNewLine")},set:function(e){this.setPropertyValue("startWithNewLine",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowAdaptiveActions",{get:function(){return this.getPropertyValue("allowAdaptiveActions")},set:function(e){this.setPropertyValue("allowAdaptiveActions",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"innerPaddingLeft",{get:function(){var e=this;return this.getPropertyValue("innerPaddingLeft",void 0,function(){return e.getIndentSize(e.innerIndent)})},set:function(e){this.setPropertyValue("innerPaddingLeft",e)},enumerable:!1,configurable:!0}),t.prototype.calcPaddingLeft=function(){return this.getIndentSize(this.indent)},t.prototype.calcPaddingRight=function(){return this.getIndentSize(this.rightIndent)},t.prototype.resetIndents=function(){this.resetPropertyValue("innerPaddingLeft"),e.prototype.resetIndents.call(this)},t.prototype.getIndentSize=function(e){if(this.survey){if(e<1)return"";var t=this.survey.css;return t&&t.question&&t.question.indent?e*t.question.indent+"px":""}},t.prototype.clearOnDeletingContainer=function(){this.elements.forEach(function(e){(e instanceof n_||e instanceof t)&&e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"footerActions",{get:function(){return this.getPropertyValue("footerActions")},enumerable:!1,configurable:!0}),t.prototype.getFooterToolbar=function(){var e,t,r=this;if(!this.footerToolbarValue){var n=this.footerActions;this.hasEditButton&&n.push({id:"cancel-preview",locTitle:this.survey.locEditText,innerCss:this.survey.cssNavigationEdit,component:"sv-nav-btn",action:function(){r.cancelPreview()}}),n=this.onGetFooterActionsCallback?this.onGetFooterActionsCallback():null===(e=this.survey)||void 0===e?void 0:e.getUpdatedPanelFooterActions(this,n),this.footerToolbarValue=this.createActionContainer(this.allowAdaptiveActions);var o=this.onGetFooterToolbarCssCallback?this.onGetFooterToolbarCssCallback():"";!o&&(o=null===(t=this.cssClasses.panel)||void 0===t?void 0:t.footer),o&&(this.footerToolbarValue.containerCss=o),this.footerToolbarValue.setItems(n)}return this.footerToolbarValue},Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.cancelPreview=function(){this.hasEditButton&&this.survey.cancelPreviewByPage(this)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.getCssPanelTitle()},enumerable:!1,configurable:!0}),t.prototype.getCssPanelTitle=function(){return this.getCssTitle(this.cssClasses.panel)},t.prototype.getCssTitleExpandableSvg=function(){return"default"===this.state?null:this.cssClasses.panel.titleExpandableSvg},Object.defineProperty(t.prototype,"showErrorsAbovePanel",{get:function(){return this.isDefaultV2Theme&&!this.showPanelAsPage},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(t){if(this.isPage)return e.prototype.getCssError.call(this,t);var r=new t$().append(e.prototype.getCssError.call(this,t)).append(t.panel.errorsContainer);return r.append("panel-error-root",r.isEmpty()).toString()},t.prototype.onVisibleChanged=function(){e.prototype.onVisibleChanged.call(this),this.notifySurveyOnVisibilityChanged()},t.prototype.needResponsiveWidth=function(){return!this.startWithNewLine||e.prototype.needResponsiveWidth.call(this)},t.prototype.focusIn=function(){this.survey&&this.survey.whenPanelFocusIn(this)},t.prototype.getHasFrameV2=function(){return e.prototype.getHasFrameV2.call(this)&&!this.showPanelAsPage},t.prototype.getIsNested=function(){return e.prototype.getIsNested.call(this)&&void 0!==this.parent},Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.expand=function(t){void 0===t&&(t=!0),this.forcusFirstQuestionOnExpand=t,e.prototype.expand.call(this)},t.prototype.onElementExpanded=function(e){var t=this;if(!!this.forcusFirstQuestionOnExpand){if(null!=this.survey&&!this.isLoadingFromJson){var r=this.getFirstQuestionToFocus(!1);r&&setTimeout(function(){!t.isDisposed&&t.survey&&t.survey.scrollElementToTop(r,r,null,r.inputId,!1,{behavior:"smooth"})},e?0:15)}}},t.prototype.getCssRoot=function(t){return new t$().append(e.prototype.getCssRoot.call(this,t)).append(t.container).append(t.asPage,this.showPanelAsPage).append(t.invisible,!this.isDesignMode&&this.areInvisibleElementsShowing&&!this.visible).toString()},t.prototype.getContainerCss=function(){return this.getCssRoot(this.cssClasses.panel)},t.prototype.afterRenderCore=function(t){var r;e.prototype.afterRenderCore.call(this,t),this.isPanel&&(null===(r=this.survey)||void 0===r||r.afterRenderPanel(this,t))},t}(ia);e6.addClass("panelbase",["name",{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"visible:switch",default:!0,overridingProperty:"visibleIf"},{name:"readOnly:boolean",overridingProperty:"enableIf"},"visibleIf:condition","enableIf:condition","requiredIf:condition",{name:"questionTitleWidth",visibleIf:function(e){return!!e&&e.availableQuestionTitleWidth()}},{name:"questionTitleLocation",default:"default",choices:["default","to
1p","bottom","left","hidden"]},{name:"gridLayoutColumns:panellayoutcolumns",className:"panellayoutcolumn",isArray:!0,onSerializeValue:function(e){return e.getSerializableColumnsValue()},visibleIf:function(e){return!!e&&!!e.survey&&e.survey.gridLayoutEnabled}},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"questionsOrder",default:"default",choices:["default","initial","random"]},{name:"questionErrorLocation",default:"default",choices:["default","top","bottom"]}],function(){return new ia}),e6.addClass("panel",[{name:"state",default:"default",choices:["default","collapsed","expanded"]},{name:"isRequired:switch",overridingProperty:"requiredIf"},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"startWithNewLine:boolean",default:!0},{name:"width"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"maxWidth",defaultFunc:function(){return r9.maxWidth}},{name:"colSpan:number",visible:!1,onSerializeValue:function(e){return e.getPropertyValue("colSpan")}},{name:"effectiveColSpan:number",minValue:1,isSerializable:!1,visibleIf:function(e){return!!e.survey&&e.survey.gridLayoutEnabled}},{name:"innerIndent:number",default:0,choices:[0,1,2,3]},{name:"indent:number",default:0,choices:[0,1,2,3],visible:!1},{name:"page",isSerializable:!1,visibleIf:function(e){var t=e?e.survey:null;return!t||!t.pages||t.pages.length>1},choices:function(e){var t=e?e.survey:null;return t?t.pages.map(function(e){return{value:e.name,text:e.title}}):[]}},{name:"showNumber:boolean"},{name:"showQuestionNumbers",default:"default",choices:["default","onpanel","off"]},{name:"questionStartIndex",visibleIf:function(e){return e.isPanel}},{name:"allowAdaptiveActions:boolean",default:!0,visible:!1}],function(){return new il},"panelbase"),n7.Instance.registerElement("panel",function(e){return new il(e)});var iu=function(){function e(e){this.page=e}return e.prototype.getDragDropInfo=function(){return this.dragDropInfo},e.prototype.dragDropStart=function(e,t,r){void 0===r&&(r=-1),this.dragDropInfo=new o6(e,t,r)},e.prototype.dragDropMoveTo=function(e,t,r){if(void 0===t&&(t=!1),void 0===r&&(r=!1),!this.dragDropInfo)return!1;if(this.dragDropInfo.destination=e,this.dragDropInfo.isBottom=t,this.dragDropInfo.isEdge=r,this.correctDragDropInfo(this.dragDropInfo),!this.dragDropCanDropTagert())return!1;if(!this.dragDropCanDropSource()||!this.dragDropAllowFromSurvey()){if(this.dragDropInfo.source){var n=this.page.dragDropFindRow(this.dragDropInfo.target);this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target,n)}return!1}return this.page.dragDropAddTarget(this.dragDropInfo),!0},e.prototype.correctDragDropInfo=function(e){if(!!e.destination){var t=e.destination.isPanel?e.destination:null;t&&!e.target.isLayoutTypeSupported(t.getChildrenLayoutType())&&(e.isEdge=!0)}},e.prototype.dragDropAllowFromSurvey=function(){var e=this.dragDropInfo.destination;if(!e||!this.page.survey)return!0;var t=null,r=null,n=e.isPage||!this.dragDropInfo.isEdge&&e.isPanel?e:e.parent;if(!e.isPage){var o=e.parent;if(o){var i=o.elements,s=i.indexOf(e);s>-1&&(t=e,r=e,this.dragDropInfo.isBottom?t=s<i.length-1?i[s+1]:null:r=s>0?i[s-1]:null)}}var a={allow:!0,target:this.dragDropInfo.target,source:this.dragDropInfo.source,toElement:this.dragDropInfo.target,draggedElement:this.dragDropInfo.source,parent:n,fromElement:this.dragDropInfo.source?this.dragDropInfo.source.parent:null,insertAfter:r,insertBefore:t};return this.page.survey.dragAndDropAllow(a)},e.prototype.dragDropFinish=function(e){if(void 0===e&&(e=!1),this.dragDropInfo){var t=this.dragDropInfo.target,r=this.dragDropInfo.source,n=this.dragDropInfo.destination,o=this.page.dragDropFindRow(t),i=this.dragDropGetElementIndex(t,o);this.page.updateRowsRemoveElementFromRow(t,o);var s=[],a=[];if(!e&&o){var l=!1;if(this.page.isDesignModeV2){var u=r&&r.parent&&r.parent.dragDropFindRow(r);o.panel.elements[i]&&o.panel.elements[i].startWithNewLine&&o.elements.length>1&&o.panel.elements[i]===n&&(s.push(t),a.push(o.panel.elements[i])),t.startWithNewLine&&o.elements.length>1&&(!o.panel.elements[i]||!o.panel.elements[i].startWithNewLine)&&a.push(t),u&&u.elements[0]===r&&u.elements[1]&&s.push(u.elements[1]),o.elements.length<=1&&s.push(t),t.startWithNewLine&&o.elements.length>1&&o.elements[0]!==n&&a.push(t)}this.page.survey.startMovingQuestion(),r&&r.parent&&((l=o.panel==r.parent)?(o.panel.dragDropMoveElement(r,t,i),i=-1):r.parent.removeElement(r)),i>-1&&o.panel.addElement(t,i),this.page.survey.stopMovingQuestion()}return s.map(function(e){e.startWithNewLine=!0}),a.map(function(e){e.startWithNewLine=!1}),this.dragDropInfo=null,e?null:t}},e.prototype.dragDropGetElementIndex=function(e,t){if(!t)return -1;var r=t.elements.indexOf(e);if(0==t.index)return r;var n=t.panel.rows[t.index-1],o=n.elements[n.elements.length-1];return r+t.panel.elements.indexOf(o)+1},e.prototype.dragDropCanDropTagert=function(){var e=this.dragDropInfo.destination;return!e||!!e.isPage||this.dragDropCanDropCore(this.dragDropInfo.target,e)},e.prototype.dragDropCanDropSource=function(){var e=this.dragDropInfo.source;if(!e)return!0;var t=this.dragDropInfo.destination;if(!this.dragDropCanDropCore(e,t))return!1;if(this.page.isDesignModeV2){if(this.page.dragDropFindRow(e)!==this.page.dragDropFindRow(t)&&(!e.startWithNewLine&&t.startWithNewLine||e.startWithNewLine&&!t.startWithNewLine))return!0;var r=this.page.dragDropFindRow(t);
vendor: 14,095 bytes, line 1
1if(r&&1==r.elements.length)return!0}return this.dragDropCanDropNotNext(e,t,this.dragDropInfo.isEdge,this.dragDropInfo.isBottom)},e.prototype.dragDropCanDropCore=function(e,t){return!t||!(this.dragDropIsSameElement(t,e)||e.isPanel&&(e.containsElement(t)||e.getElementByName(t.name)))&&!0},e.prototype.dragDropCanDropNotNext=function(e,t,r,n){if(!t||t.isPanel&&!r||void 0===e.parent||e.parent!==t.parent)return!0;var o=e.parent,i=o.elements.indexOf(e),s=o.elements.indexOf(t);return s<i&&!n&&s--,n&&s++,i<s?s-i>1:i-s>0},e.prototype.dragDropIsSameElement=function(e,t){return e==t||e.name==t.name},e}();var ic=(B=function(e,t){return(B=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ip=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ih=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.hasShownValue=!1,r.timeSpent=0,r._isReadyForClean=!0,r.createLocalizableString("navigationDescription",r,!0),r.dragDropPageHelper=new iu(r),r}return ic(t,e),t.prototype.getType=function(){return"page"},t.prototype.toString=function(){return this.name},Object.defineProperty(t.prototype,"isPage",{get:function(){return!this.isPanel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPanel",{get:function(){return!!this.parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPanelAsPage",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasEditButton",{get:function(){return this.isPanel&&this.survey&&"preview"===this.survey.state&&!!this.parent&&!this.parent.isPanel},enumerable:!1,configurable:!0}),t.prototype.getElementsForRows=function(){var t,r=null===(t=this.survey)||void 0===t?void 0:t.currentSingleQuestion;if(r)return r.page===this?[r]:[];return e.prototype.getElementsForRows.call(this)},t.prototype.disposeElements=function(){!this.isPageContainer&&e.prototype.disposeElements.call(this)},t.prototype.onRemoveElement=function(t){this.isPageContainer?(t.parent=null,this.unregisterElementPropertiesChanged(t)):e.prototype.onRemoveElement.call(this,t)},t.prototype.getTemplate=function(){return this.isPanel?"panel":e.prototype.getTemplate.call(this)},Object.defineProperty(t.prototype,"no",{get:function(){if(!this.canShowPageNumber()||!this.survey)return"";var e=this.isStartPage?"":this.num+". ";return this.survey.getUpdatedPageNo(this,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssTitleNumber",{get:function(){return this.cssClasses.page.number},enumerable:!1,configurable:!0}),t.prototype.getCssTitleExpandableSvg=function(){return null},Object.defineProperty(t.prototype,"cssRequiredText",{get:function(){return""},enumerable:!1,configurable:!0}),t.prototype.canShowPageNumber=function(){return this.survey&&this.survey.showPageNumbers},t.prototype.canShowTitle=function(e){return!e||e.showPageTitles},t.prototype.setTitleValue=function(t){e.prototype.setTitleValue.call(this,t),this.navigationLocStrChanged()},Object.defineProperty(t.prototype,"navigationTitle",{get:function(){return this.getLocalizableStringText("navigationTitle")},set:function(e){this.setLocalizableStringText("navigationTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationDescription",{get:function(){return this.getLocalizableStringText("navigationDescription")},set:function(e){this.setLocalizableStringText("navigationDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNavigationDescription",{get:function(){return this.getLocalizableString("navigationDescription")},enumerable:!1,configurable:!0}),t.prototype.navigationLocStrChanged=function(){this.locNavigationTitle.isEmpty&&this.locTitle.strChanged(),this.locNavigationTitle.strChanged(),this.locNavigationDescription.strChanged()},t.prototype.getMarkdownHtml=function(t,r){var n=e.prototype.getMarkdownHtml.call(this,t,r);return"navigationTitle"===r&&this.canShowPageNumber()&&n?this.num+". "+n:n},Object.defineProperty(t.prototype,"passed",{get:function(){return this.getPropertyValue("passed",!1)},set:function(e){this.setPropertyValue("passed",e)},enumerable:!1,configurable:!0}),t.prototype.removeFromParent=function(){this.survey&&this.removeSelfFromList(this.survey.pages)},Object.defineProperty(t.prototype,"visibleIndex",{get:function(){return this.getPropertyValue("visibleIndex",-1)},set:function(e){this.setPropertyValue("visibleIndex",e)},enumerable:!1,configurable:!0}),t.prototype.canRenderFirstRows=function(){return!this.isDesignMode||0==this.visibleIndex},Object.defineProperty(t.prototype,"isStartPage",{get:function(){return this.survey&&this.survey.isPageStarted(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStarted",{get:function(){return this.isStartPage},enumerable:!1,configurable:!0}),t.prototype.calcCssClasses=function(t){if(this.isPanel)return e.prototype.calcCssClasses.call(this,t);var r={page:{},error:{},pageTitle:"",pageDescription:"",row:"",rowMultiple:"",pageRow:"",rowCompact:"",rowEnter:"",rowLeave:"",rowDelayedEnter:"",rowReplace:""};return this.copyCssClasses(r.page,t.page),this.copyCssClasses(r.error,t.error),t.pageTitle&&(r.pageTitle=t.pageTitle),t.pageDescription&&(r.pageDescription=t.pageDescription),t.row&&(r.row=t.row),t.pageRow&&(r.pageRow=t.pageRow),t.rowMultiple&&(r.rowMultiple=t.rowMultiple),t.rowCompact&&(r.rowCompact=t.rowCompact),t.rowEnter&&(r.rowEnter=t.rowEnter),t.rowDelayedEnter&&(r.rowDelayedEnter=t.rowDelayedEnter),t.rowLeave&&(r.rowLeave=t.rowLeave),t.rowReplace&&(r.rowReplace=t.rowReplace),this.survey&&this.survey.updatePageCssClasses(this,r),r},t.prototype.getCssPanelTitle=function(){return this.isPanel?e.prototype.getCssPanelTitle.call(this):this.cssClasses.page?new t$().append(this.cssClasses.page.title).toString():""},Object.defineProperty(t.prototype,"cssRoot",{get:function(){return!this.isPanel&&this.cssClasses.page&&this.survey?new t$().append(this.cssClasses.page.root).append(this.cssClasses.page.emptyHeaderRoot,!this.survey.renderedHasHeader&&!(this.survey.isShowProgressBarOnTop&&!this.survey.isStaring)).toString():""},enumerable:!1,configurable:!0}),t.prototype.getCssError=function(t){return this.isPanel?e.prototype.getCssError.call(this,t):new t$().append(e.prototype.getCssError.call(this,t)).append(t.page.errorsContainer).toString()},Object.defineProperty(t.prototype,"navigationButtonsVisibility",{get:function(){return this.getPropertyValue("navigationButtonsVisibility")},set:function(e){this.setPropertyValue("navigationButtonsVisibility",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return!!this.survey&&this.survey.currentPage===this},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasShown",{get:function(){return this.hasShownValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasShown",{get:function(){return this.wasShown},enumerable:!1,configurable:!0}),t.prototype.setWasShown=function(e){if(e!=this.hasShownValue){if(this.hasShownValue=e,!this.isDesignMode&&!0===e){for(var t,r=this.elements,n=0;n<r.length;n++)r[n].isPanel&&r[n].randomizeElements(this.areQuestionsRandomized);if(this.randomizeElements(this.areQuestionsRandomized)){var o=null===(t=this.survey)||void 0===t?void 0:t.currentSingleQuestion;(null==o?void 0:o.page)===this&&(this.survey.currentSingleQuestion=this.getFirstVisibleQuestion())}}}},t.prototype.scrollToTop=function(){this.survey&&this.survey.scrollElementToTop(this,null,this,this.id)},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);var r=[];return this.addPanelsIntoList(r,e,t),r},t.prototype.getPanels=function(e,t){return void 0===e&&(e=!1),void 0===t&&(t=!1),this.getAllPanels(e,t)},Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),t.prototype.getMaxTimeToFinish=function(){if(0!==this.timeLimit)return this.timeLimit;var e=this.survey?this.survey.timeLimitPerPage:0;return e>0?e:0},t.prototype.onNumChanged=function(e){},t.prototype.onVisibleChanged=function(){!this.isRandomizing&&(e.prototype.onVisibleChanged.call(this),null!=this.survey&&this.survey.pageVisibilityChanged(this,this.isVisible))},t.prototype.getDragDropInfo=function(){return this.dragDropPageHelper.getDragDropInfo()},t.prototype.dragDropStart=function(e,t,r){void 0===r&&(r=-1),this.dragDropPageHelper.dragDropStart(e,t,r)},t.prototype.dragDropMoveTo=function(e,t,r){return void 0===t&&(t=!1),void 0===r&&(r=!1),this.dragDropPageHelper.dragDropMoveTo(e,t,r)},t.prototype.dragDropFinish=function(e){return void 0===e&&(e=!1),this.dragDropPageHelper.dragDropFinish(e)},t.prototype.ensureRowsVisibility=function(){e.prototype.ensureRowsVisibility.call(this),this.getPanels().forEach(function(e){return e.ensureRowsVisibility()})},Object.defineProperty(t.prototype,"isReadyForClean",{get:function(){return this._isReadyForClean},set:function(e){var t=this._isReadyForClean;this._isReadyForClean=e,this._isReadyForClean!==t&&this.isReadyForCleanChangedCallback&&this.isReadyForCleanChangedCallback()},enumerable:!1,configurable:!0}),t.prototype.enableOnElementRerenderedEvent=function(){e.prototype.enableOnElementRerenderedEvent.call(this),this.isReadyForClean=!1},t.prototype.disableOnElementRerenderedEvent=function(){e.prototype.disableOnElementRerenderedEvent.call(this),this.isReadyForClean=!0},ip([eW({defaultValue:-1,onSet:function(e,t){return t.onNumChanged(e)}})],t.prototype,"num",void 0),t}(il);e6.addClass("page",[{name:"navigationButtonsVisibility",default:"inherit",choices:["inherit","show","hide"]},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0},{name:"navigationTitle",visibleIf:function(e){return!!e.survey&&("buttons"===e.survey.progressBarType||e.survey.showTOC)},serializationProperty:"locNavigationTitle"},{name:"navigationDescription",visibleIf:function(e){return!!e.survey&&"buttons"===e.survey.progressBarType},serializationProperty:"locNavigationDescription"},{name:"title:text",serializationProperty:"locTitle"},{name:"description:text",serializationProperty:"locDescription"},{name:"state",visible:!1},{name:"isRequired",visible:!1},{name:"startWithNewLine",visible:!1},{name:"width",visible:!1},{name:"minWidth",visible:!1},{name:"maxWidth",visible:!1},{name:"colSpan",visible:!1,isSerializable:!1},{name:"effectiveColSpan:number",visible:!1,isSerializable:!1},{name:"innerIndent",visible:!1},{name:"indent",visible:!1},{name:"page",visible:!1,isSerializable:!1},{name:"showNumber",visible:!1},{name:"showQuestionNumbers",visible:!1},{name:"questionStartIndex",visible:!1},{name:"allowAdaptiveActions",visible:!1},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText",visible:!1}],function(){return new ih},"panel");var id=(Q=function(e,t){return(Q=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Q(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ig=function(e){function t(t){var r=e.call(this)||this;return r.survey=t,r.onResize=r.addEvent(),r}return id(t,e),t.prototype.isListElementClickable=function(e){return!this.survey.onServerValidateQuestions||!!this.survey.onServerValidateQuestions.isEmpty||"onComplete"===this.survey.checkErrorsMode||e<=this.survey.currentPageNo+1},t.prototype.getRootCss=function(e){void 0===e&&(e="center");var t=this.survey.css.progressButtonsContainerCenter;return this.survey.css.progressButtonsRoot&&(t+=" "+this.survey.css.progressButtonsRoot+" "+this.survey.css.progressButtonsRoot+"--"+(-1!==["footer","contentBottom"].indexOf(e)?"bottom":"top"),t+=" "+this.survey.css.progressButtonsRoot+"--"+(this.showItemTitles?"with-titles":"no-titles")),this.showItemNumbers&&this.survey.css.progressButtonsNumbered&&(t+=" "+this.survey.css.progressButtonsNumbered),this.isFitToSurveyWidth&&(t+=" "+this.survey.css.progressButtonsFitSurveyWidth),t},t.prototype.getListElementCss=function(e){if(!(e>=this.survey.visiblePages.length))return new t$().append(this.survey.css.progressButtonsListElementPassed,this.survey.visiblePages[e].passed).append(this.survey.css.progressButtonsListElementCurrent,this.survey.currentPageNo===e).append(this.survey.css.progressButtonsListElementNonClickable,!this.isListElementClickable(e)).toString()},t.prototype.getScrollButtonCss=function(e,t){return new t$().append(this.survey.css.progressButtonsImageButtonLeft,t).append(this.survey.css.progressButtonsImageButtonRight,!t).append(this.survey.css.progressButtonsImageButtonHidden,!e).toString()},t.prototype.clickListElement=function(e){!(e instanceof ih)&&(e=this.survey.visiblePages[e]),this.survey.tryNavigateToPage(e)},t.prototype.isListContainerHasScroller=function(e){var t=e.querySelector("."+this.survey.css.progressButtonsListContainer);return!!t&&t.scrollWidth>t.offsetWidth},t.prototype.isCanShowItemTitles=function(e){var t=e.querySelector("ul");if(!t||t.children.length<2)return!0;
1if(t.clientWidth>t.parentElement.clientWidth)return!1;for(var r=t.children[0].clientWidth,n=0;n<t.children.length;n++)if(Math.abs(t.children[n].clientWidth-r)>5)return!1;return!0},t.prototype.clearConnectorsWidth=function(e){for(var t=e.querySelectorAll(".sd-progress-buttons__connector"),r=0;r<t.length;r++)t[r].style.width=""},t.prototype.adjustConnectors=function(e){var t=e.querySelector("ul");if(t){for(var r=e.querySelectorAll(".sd-progress-buttons__connector"),n=this.showItemNumbers?36:20,o=(t.clientWidth-n)/(t.children.length-1)-n,i=0;i<r.length;i++)r[i].style.width=o+"px"}},Object.defineProperty(t.prototype,"isFitToSurveyWidth",{get:function(){return"defaultV2"===oB.currentType&&"survey"===this.survey.progressBarInheritWidthFrom&&"static"==this.survey.widthMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressWidth",{get:function(){return this.isFitToSurveyWidth?this.survey.renderedWidth:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemNumbers",{get:function(){return"defaultV2"===oB.currentType&&this.survey.progressBarShowPageNumbers},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemTitles",{get:function(){return"defaultV2"!==oB.currentType||this.survey.progressBarShowPageTitles},enumerable:!1,configurable:!0}),t.prototype.getItemNumber=function(e){var t="";return this.showItemNumbers&&(t+=this.survey.visiblePages.indexOf(e)+1),t},Object.defineProperty(t.prototype,"headerText",{get:function(){return this.survey.currentPage?this.survey.currentPage.renderedNavigationTitle:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.processResponsiveness=function(e){this.onResize.fire(this,{width:e})},t}(tQ),im=function(){function e(e,t,r){var n=this;this.model=e,this.element=t,this.viewModel=r,this.criticalProperties=["progressBarType","progressBarShowPageTitles"],this.canShowItemTitles=!0,this.processResponsiveness=function(e,t){if(n.viewModel.onUpdateScroller(e.isListContainerHasScroller(n.element)),n.model.clearConnectorsWidth(n.element),!e.showItemTitles){n.model.adjustConnectors(n.element);return}if(e.survey.isMobile){n.prevWidth=t.width,n.canShowItemTitles=!1,n.model.adjustConnectors(n.element),n.viewModel.onResize(n.canShowItemTitles);return}void 0!==n.timer&&clearTimeout(n.timer),n.timer=setTimeout(function(){(void 0===n.prevWidth||n.prevWidth<t.width&&!n.canShowItemTitles||n.prevWidth>t.width&&n.canShowItemTitles)&&(n.prevWidth=t.width,n.canShowItemTitles=e.isCanShowItemTitles(n.element),n.viewModel.onResize(n.canShowItemTitles),n.timer=void 0)},10)},this.model.survey.registerFunctionOnPropertiesValueChanged(this.criticalProperties,function(){return n.forceUpdate()},"ProgressButtonsResponsivityManager"+this.viewModel.container),this.model.onResize.add(this.processResponsiveness),this.forceUpdate()}return e.prototype.forceUpdate=function(){this.viewModel.onUpdateSettings(),this.processResponsiveness(this.model,{})},e.prototype.dispose=function(){clearTimeout(this.timer),this.model.onResize.remove(this.processResponsiveness),this.model.survey.unRegisterFunctionOnPropertiesValueChanged(this.criticalProperties,"ProgressButtonsResponsivityManager"+this.viewModel.container),this.element=void 0,this.model=void 0},e}();function iy(e,t){return!!e.isDesignMode||(t.focusFirstQuestion(),!0)}function ib(e,t){var r=iv(e,t),n=new t4({items:r,searchEnabled:!1,locOwner:e});n.allowSelection=!1;var o=function(e,t){n.selectedItem=!!e&&n.actions.filter(function(t){return t.id===e.name})[0]||t};return o(e.currentPage,r[0]),e.onCurrentPageChanged.add(function(t,r){o(e.currentPage)}),e.onFocusInQuestion.add(function(e,t){o(function e(t){if(t.parentQuestion)return e(t.parentQuestion);for(var r=t.parent;r&&"page"!==r.getType()&&r.parent;)r=r.parent;return r&&"page"===r.getType()?r:null}(t.question))}),e.registerFunctionOnPropertyValueChanged("pages",function(){n.setItems(iv(e,t))},"toc"),n}function iv(e,t){return(e.pages||[]).map(function(r){return new ra({id:r.name,locTitle:r.locNavigationTitle,action:function(){if(eD.activeElementBlur(),t&&t(),r.isPage)return e.tryNavigateToPage(r)},visible:new tB(function(){return r.isVisible&&!r.isStartPage})})})}function iC(e,t){void 0===t&&(t=!1);var r=ix.RootStyle;return t?r+" "+ix.RootStyle+"--mobile":(r+=" "+ix.RootStyle+"--"+(e.tocLocation||"").toLowerCase(),ix.StickyPosition&&(r+=" "+ix.RootStyle+"--sticky"),r)}var ix=function(){function e(t){var r=this;this.survey=t,this.icon="icon-navmenu_24x24",this.togglePopup=function(){r.popupModel.toggleVisibility()},this.listModel=ib(t,function(){r.popupModel.isVisible=!1}),this.popupModel=new t6("sv-list",{model:this.listModel}),this.popupModel.overlayDisplayMode="plain",this.popupModel.displayMode=new tB(function(){return r.isMobile?"overlay":"popup"}),e.StickyPosition&&(t.onAfterRenderSurvey.add(function(e,t){return r.initStickyTOCSubscriptions(t.htmlElement)}),this.initStickyTOCSubscriptions(t.rootElement))}return e.prototype.initStickyTOCSubscriptions=function(t){var r=this;e.StickyPosition&&t&&(t.addEventListener("scroll",function(e){r.updateStickyTOCSize(t)}),this.updateStickyTOCSize(t))},e.prototype.updateStickyTOCSize=function(t){if(!!t){var r=t.querySelector("."+e.RootStyle);if(r&&(r.style.height="",!this.isMobile&&e.StickyPosition&&t)){var n=t.getBoundingClientRect().height,o="advanced"===this.survey.headerView?".sv-header":".sv_custom_header+div div."+(this.survey.css.title||"sd-title"),i=t.querySelector(o),s=i?i.getBoundingClientRect().height:0,a=t.scrollTop>s?0:s-t.scrollTop;r.style.height=n-a-1+"px"}}}
vendor: 7,751 bytes, line 1
1,Object.defineProperty(e.prototype,"isMobile",{get:function(){return this.survey.isMobile},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"containerCss",{get:function(){return iC(this.survey,this.isMobile)},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){this.survey.unRegisterFunctionOnPropertyValueChanged("pages","toc"),this.popupModel.dispose(),this.listModel.dispose()},e.RootStyle="sv_progress-toc",e.StickyPosition=!0,e}();var iw=(H=function(e,t){return(H=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}H(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),iP=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},iV=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;n.valuesHash={},n.variablesHash={},n.onTriggerExecuted=n.addEvent(),n.onCompleting=n.addEvent(),n.onComplete=n.addEvent(),n.onShowingPreview=n.addEvent(),n.onNavigateToUrl=n.addEvent(),n.onStarted=n.addEvent(),n.onPartialSend=n.addEvent(),n.onCurrentPageChanging=n.addEvent(),n.onCurrentPageChanged=n.addEvent(),n.onValueChanging=n.addEvent(),n.onValueChanged=n.addEvent(),n.onVariableChanged=n.addEvent(),n.onQuestionVisibleChanged=n.addEvent(),n.onVisibleChanged=n.onQuestionVisibleChanged,n.onPageVisibleChanged=n.addEvent(),n.onPanelVisibleChanged=n.addEvent(),n.onQuestionCreated=n.addEvent(),n.onQuestionAdded=n.addEvent(),n.onQuestionRemoved=n.addEvent(),n.onPanelAdded=n.addEvent(),n.onPanelRemoved=n.addEvent(),n.onPageAdded=n.addEvent(),n.onValidateQuestion=n.addEvent(),n.onSettingQuestionErrors=n.addEvent(),n.onServerValidateQuestions=n.addEvent(),n.onValidatePanel=n.addEvent(),n.onErrorCustomText=n.addEvent(),n.onValidatedErrorsOnCurrentPage=n.addEvent(),n.onProcessHtml=n.addEvent(),n.onGetQuestionDisplayValue=n.addEvent(),n.onGetQuestionTitle=n.addEvent(),n.onGetTitleTagName=n.addEvent(),n.onGetQuestionNumber=n.addEvent(),n.onGetQuestionNo=n.onGetQuestionNumber,n.onGetPanelNumber=n.addEvent(),n.onGetPageNumber=n.addEvent(),n.onGetProgressText=n.addEvent(),n.onProgressText=n.onGetProgressText,n.onTextMarkdown=n.addEvent(),n.onTextRenderAs=n.addEvent(),n.onSendResult=n.addEvent(),n.onGetResult=n.addEvent(),n.onOpenFileChooser=n.addEvent(),n.onUploadFiles=n.addEvent(),n.onDownloadFile=n.addEvent(),n.onClearFiles=n.addEvent(),n.onLoadChoicesFromServer=n.addEvent(),n.onLoadedSurveyFromService=n.addEvent(),n.onProcessTextValue=n.addEvent(),n.onUpdateQuestionCssClasses=n.addEvent(),n.onUpdatePanelCssClasses=n.addEvent(),n.onUpdatePageCssClasses=n.addEvent(),n.onUpdateChoiceItemCss=n.addEvent(),n.onAfterRenderSurvey=n.addEvent(),n.onAfterRenderHeader=n.addEvent(),n.onAfterRenderPage=n.addEvent(),n.onAfterRenderQuestion=n.addEvent(),n.onAfterRenderQuestionInput=n.addEvent(),n.onAfterRenderPanel=n.addEvent(),n.onFocusInQuestion=n.addEvent(),n.onFocusInPanel=n.addEvent(),n.onShowingChoiceItem=n.addEvent(),n.onChoicesLazyLoad=n.addEvent(),n.onChoicesSearch=n.addEvent(),n.onGetChoiceDisplayValue=n.addEvent(),n.onMatrixRowAdded=n.addEvent(),n.onMatrixRowAdding=n.addEvent(),n.onMatrixBeforeRowAdded=n.onMatrixRowAdding,n.onMatrixRowRemoving=n.addEvent(),n.onMatrixRowRemoved=n.addEvent(),n.onMatrixRenderRemoveButton=n.addEvent(),n.onMatrixAllowRemoveRow=n.onMatrixRenderRemoveButton,n.onMatrixDetailPanelVisibleChanged=n.addEvent(),n.onMatrixCellCreating=n.addEvent(),n.onMatrixCellCreated=n.addEvent(),n.onAfterRenderMatrixCell=n.addEvent(),n.onMatrixAfterCellRender=n.onAfterRenderMatrixCell,n.onMatrixCellValueChanged=n.addEvent(),n.onMatrixCellValueChanging=n.addEvent(),n.onMatrixCellValidate=n.addEvent(),n.onMatrixColumnAdded=n.addEvent(),n.onMultipleTextItemAdded=n.addEvent(),n.onDynamicPanelAdded=n.addEvent(),n.onDynamicPanelRemoved=n.addEvent(),n.onDynamicPanelRemoving=n.addEvent(),n.onTimerTick=n.addEvent(),n.onTimer=n.onTimerTick,n.onTimerPanelInfoText=n.addEvent(),n.onDynamicPanelValueChanged=n.addEvent(),n.onDynamicPanelItemValueChanged=n.onDynamicPanelValueChanged,n.onDynamicPanelValueChanging=n.addEvent(),n.onGetDynamicPanelTabTitle=n.addEvent(),n.onDynamicPanelCurrentIndexChanged=n.addEvent(),n.onCheckAnswerCorrect=n.addEvent(),n.onIsAnswerCorrect=n.onCheckAnswerCorrect,n.onDragDropAllow=n.addEvent(),n.onScrollToTop=n.addEvent(),n.onScrollingElementToTop=n.onScrollToTop,n.onLocaleChangedEvent=n.addEvent(),n.onGetQuestionTitleActions=n.addEvent(),n.onGetPanelTitleActions=n.addEvent(),n.onGetPageTitleActions=n.addEvent(),n.onGetPanelFooterActions=n.addEvent(),n.onGetMatrixRowActions=n.addEvent(),n.onElementContentVisibilityChanged=n.addEvent(),n.onGetExpressionDisplayValue=n.addEvent(),n.onPopupVisibleChanged=n.addEvent(),n.onOpenDropdownMenu=n.addEvent(),n.onElementWrapperComponentName=n.addEvent(),n.onElementWrapperComponentData=n.addEvent(),n.jsonErrors=null,n.cssValue=null,n.showHeaderOnCompletePage="auto",n._isLazyRenderingSuspended=!1,n.hideRequiredErrors=!1,n.cssVariables={},n._isMobile=!1,n._isCompact=!1,n.setValueOnExpressionCounter=0,n._isDesignMode=!1,n.validationAllowSwitchPages=!1,n.validationAllowComplete=!1,n.isNavigationButtonPressed=!1,n.mouseDownPage=null,n.isCalculatingProgressText=!1,n.isSmoothScrollEnabled=!1,n.onResize=new tW,n.isCurrentPageRendering=!0,n.isCurrentPageRendered=void 0,n.skeletonHeight=void 0,n.isTriggerIsRunning=!1,n.triggerValues=null,n.triggerKeys=null,n.conditionValues=null,n.isValueChangedOnRunningCondition=!1,n.conditionRunnerCounter=0,n.conditionUpdateVisibleIndexes=!1,n.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,n.isEndLoadingFromJson=null,n.questionHashes={names:{},namesInsensitive:{},valueNames:{},valueNamesInsensitive:{}},n.setValueFromTriggerCounter=0,n.needRenderIcons=!0,n.skippedPages=[],n.skeletonComponentName="sv-skeleton",n.taskManager=new o3,n.questionErrorComponent="sv-question-error",n.onBeforeRunConstructor();var o=function(e){return"<h3>"+e+"</h3>"};n.createHtmlLocString("completedHtml","completingSurvey",o),n.createHtmlLocString("completedBeforeHtml","completingSurveyBefore",o,"completed-before"),n.createHtmlLocString("loadingHtml","loadingSurvey",o,"loading"),n.createLocalizableString("emptySurveyText",n,!0,"emptySurvey"),n.createLocalizableString("logo",n,!1),n.createLocalizableString("startSurveyText",n,!1,!0),n.createLocalizableString("pagePrevText",n,!1,!0),n.createLocalizableString("pageNextText",n,!1,!0),n.createLocalizableString("completeText",n,!1,!0),n.createLocalizableString("previewText",n,!1,!0),n.createLocalizableString("editText",n,!1,!0),n.createLocalizableString("questionTitleTemplate",n,!0),n.timerModelValue=new o$(n),n.timerModelValue.onTimerTick=function(e){n.doTimer(e)},n.createNewArray("pages",function(e){e.isReadyForCleanChangedCallback&&e.isReadyForCleanChangedCallback(),n.doOnPageAdded(e)},function(e){e.isReadyForClean?n.doOnPageRemoved(e):e.isReadyForCleanChangedCallback=function(){n.doOnPageRemoved(e),e.isReadyForCleanChangedCallback=void 0}}),n.createNewArray("triggers",function(e){e.setOwner(n)}),n.createNewArray("calculatedValues",function(e){e.setOwner(n)}),n.createNewArray("completedHtmlOnCondition",function(e){e.locOwner=n}),n.createNewArray("navigateToUrlOnCondition",function(e){e.locOwner=n}
1),n.registerPropertyChangedHandlers(["locale"],function(){n.onSurveyLocaleChanged()}),n.registerPropertyChangedHandlers(["firstPageIsStarted"],function(){n.onFirstPageIsStartedChanged()}),n.registerPropertyChangedHandlers(["mode"],function(){n.onModeChanged()}),n.registerPropertyChangedHandlers(["progressBarType"],function(){n.updateProgressText()}),n.registerPropertyChangedHandlers(["questionStartIndex","requiredText","questionTitlePattern"],function(){n.resetVisibleIndexes()}),n.registerPropertyChangedHandlers(["isLoading","isCompleted","isCompletedBefore","mode","isStartedState","currentPage","isShowingPreview"],function(){n.updateState()}),n.registerPropertyChangedHandlers(["state","currentPage","showPreviewBeforeComplete"],function(){n.onStateAndCurrentPageChanged()}),n.registerPropertyChangedHandlers(["logo","logoPosition"],function(){n.updateHasLogo()}),n.registerPropertyChangedHandlers(["backgroundImage"],function(){n.updateRenderBackgroundImage()}),n.registerPropertyChangedHandlers(["renderBackgroundImage","backgroundOpacity","backgroundImageFit","fitToContainer","backgroundImageAttachment"],function(){n.updateBackgroun
vendor: 9,231 bytes, line 1
1dImageStyle()}),n.registerPropertyChangedHandlers(["showPrevButton","showCompleteButton"],function(){n.updateButtonsVisibility()}),n.onGetQuestionNumber.onCallbacksChanged=function(){n.resetVisibleIndexes()},n.onGetPanelNumber.onCallbacksChanged=function(){n.resetVisibleIndexes()},n.onGetProgressText.onCallbacksChanged=function(){n.updateProgressText()},n.onTextMarkdown.onCallbacksChanged=function(){n.locStrsChanged()},n.onProcessHtml.onCallbacksChanged=function(){n.locStrsChanged()},n.onGetQuestionTitle.onCallbacksChanged=function(){n.locStrsChanged()},n.onUpdatePageCssClasses.onCallbacksChanged=function(){n.currentPage&&n.currentPage.updateElementCss()},n.onUpdatePanelCssClasses.onCallbacksChanged=function(){n.currentPage&&n.currentPage.updateElementCss()},n.onUpdateQuestionCssClasses.onCallbacksChanged=function(){n.currentPage&&n.currentPage.updateElementCss()},n.onShowingChoiceItem.onCallbacksChanged=function(){n.rebuildQuestionChoices()},n.navigationBarValue=n.createNavigationBar(),n.navigationBar.locOwner=n,n.onBeforeCreating(),t&&(("string"==typeof t||t instanceof String)&&(t=JSON.parse(t)),t&&t.clientId&&(n.clientId=t.clientId),n.fromJSON(t),n.surveyId&&n.loadSurveyFromService(n.surveyId,n.clientId)),n.onCreating(),r&&n.render(r),n.updateCss(),n.setCalculatedWidthModeUpdater(),n.notifier=new oX(n.css.saveData),n.notifier.addAction(n.createTryAgainAction(),"error"),n.onPopupVisibleChanged.add(function(e,t){t.visible?n.onScrollCallback=function(){t.popup.hide()}:n.onScrollCallback=void 0}),n.progressBarValue=new ig(n),n.layoutElements.push({id:"timerpanel",template:"survey-timerpanel",component:"sv-timerpanel",data:n.timerModel}),n.layoutElements.push({id:"progress-buttons",component:"sv-progress-buttons",data:n.progressBar,processResponsiveness:function(e){return n.progressBar.processResponsiveness&&n.progressBar.processResponsiveness(e)}}),n.layoutElements.push({id:"progress-questions",component:"sv-progress-questions",data:n}),n.layoutElements.push({id:"progress-pages",component:"sv-progress-pages",data:n}),n.layoutElements.push({id:"progress-correctquestions",component:"sv-progress-correctquestions",data:n}),n.layoutElements.push({id:"progress-requiredquestions",component:"sv-progress-requiredquestions",data:n});var i=new ix(n);return n.addLayoutElement({id:"toc-navigation",component:"sv-navigation-toc",data:i,processResponsiveness:function(e){return i.updateStickyTOCSize(n.rootElement)}}),n.layoutElements.push({id:"buttons-navigation",component:"sv-action-bar",data:n.navigationBar}),n.locTitle.onStringChanged.add(function(){return n.titleIsEmpty=n.locTitle.isEmpty}),n}return iw(t,e),Object.defineProperty(t.prototype,"platformName",{get:function(){return t.platform},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentSuffix",{get:function(){return r9.commentSuffix},set:function(e){r9.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentPrefix",{get:function(){return this.commentSuffix},set:function(e){this.commentSuffix=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sjsVersion",{get:function(){return this.getPropertyValue("sjsVersion")},set:function(e){this.setPropertyValue("sjsVersion",e)},enumerable:!1,configurable:!0}),t.prototype.processClosedPopup=function(e,t){throw Error("Method not implemented.")},t.prototype.createTryAgainAction=function(){var e=this;return{id:"save-again",title:this.getLocalizationString("saveAgainButton"),action:function(){e.isCompleted?e.saveDataOnComplete():e.doComplete()}}},t.prototype.createHtmlLocString=function(e,t,r,n){var o=this,i=this.createLocalizableString(e,this,!1,t);i.onGetLocalizationTextCallback=r,n&&(i.onGetTextCallback=function(e){return o.processHtml(e,n)})},t.prototype.getType=function(){return"survey"},t.prototype.onPropertyValueChanged=function(e,t,r){"questionsOnPageMode"===e&&this.onQuestionsOnPageModeChanged(t)},Object.defineProperty(t.prototype,"pages",{get:function(){return this.getPropertyValue("pages")},enumerable:!1,configurable:!0}),t.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback&&this.renderCallback()},t.prototype.updateSurvey=function(e,t){var r=this;for(var n in e)!function(){if("model"==n||"children"==n)return;if(0==n.indexOf("on")&&r[n]&&r[n].add){var t=e[n];r[n].add(function(e,r){t(e,r)})}else r[n]=e[n]}();e&&e.data&&this.onValueChanged.add(function(t,r){e.data[r.name]=r.value})},t.prototype.getCss=function(){return this.css},t.prototype.updateCompletedPageCss=function(){this.containerCss=this.css.container,this.completedCss=new t$().append(this.css.body).append(this.css.completedPage).toString(),this.completedBeforeCss=new t$().append(this.css.body).append(this.css.completedBeforePage).toString(),this.loadingBodyCss=new t$().append(this.css.body).append(this.css.bodyLoading).toString()},t.prototype.updateCss=function(){this.rootCss=this.getRootCss(),this.updateNavigationCss(),this.updateCompletedPageCss(),this.updateWrapperFormCss()},Object.defineProperty(t.prototype,"css",{get:function(){return!this.cssValue&&(this.cssValue={},this.copyCssClasses(this.cssValue,oB.getCss())),this.cssValue},set:function(e){this.setCss(e)},enumerable:!1,configurable:!0}),t.prototype.setCss=function(e,t){void 0===t&&(t=!0),t?this.mergeValues(e,this.css):this.cssValue=e,this.updateElementCss(!1)},Object.defineProperty(t.prototype,"cssTitle",{get:function(){return this.css.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationComplete",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.complete)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPreview",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.preview)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationEdit",{get:function(){return this.getNavigationCss(this.css.navigationButton,this.css.navigation.edit)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationPrev",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.prev)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationStart",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.start)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssNavigationNext",{get:function(){return this.getNavigationCss(this.cssSurveyNavigationButton,this.css.navigation.next)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssSurveyNavigationButton",{get:function(){return new t$().append(this.css.navigationButton).append(this.css.bodyNavigationButton).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyCss",{get:function(){return new t$().append(this.css.body).append(this.css.bodyWithTimer,this.showTimer&&"running"===this.state).append(this.css.body+"--"+this.calculatedWidthMode).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyContainerCss",{get:function(){return this.css.bodyContainer},enumerable:!1,configurable:!0}),t.prototype.insertAdvancedHeader=function(e){e.survey=this,this.layoutElements.push({id:"advanced-header",container:"header",component:"sv-header",index:-100,data:e,processResponsiveness:function(t){return e.processResponsiveness(t)}})},t.prototype.getNavigationCss=function(e,t){return new t$().append(e).append(t).toString()},Object.defineProperty(t.prototype,"lazyRendering",{get:function(){return!0===this.lazyRenderingValue},set:function(e){if(this.lazyRendering!==e){this.lazyRenderingValue=e;var t=this.currentPage;t&&t.updateRows()}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRendering",{get:function(){return this.lazyRendering||r9.lazyRender.enabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lazyRenderingFirstBatchSize",{get:function(){return this.lazyRenderingFirstBatchSizeValue||r9.lazyRender.firstBatchSize},set:function(e){this.lazyRenderingFirstBatchSizeValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLazyRenderingSuspended",{get:function(){return this._isLazyRenderingSuspended},enumerable:!1,configurable:!0}),t.prototype.suspendLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!0)},t.prototype.releaseLazyRendering=function(){this.isLazyRendering&&(this._isLazyRenderingSuspended=!1)},t.prototype.updateLazyRenderingRowsOnRemovingElements=function(){if(this.isLazyRendering){var e=this.currentPage;e&&rD(e.id)}},Object.defineProperty(t.prototype,"triggers",{get:function(){return this.getPropertyValue("triggers")},set:function(e){this.setPropertyValue("triggers",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"calculatedValues",{get:function(){return this.getPropertyValue("calculatedValues")},set:function(e){this.setPropertyValue("calculatedValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyId",{get:function(){return this.getPropertyValue("surveyId","")},set:function(e){this.setPropertyValue("surveyId",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyPostId",{get:function(){return this.getPropertyValue("surveyPostId","")},set:function(e){this.setPropertyValue("surveyPostId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientId",{get:function(){return this.getPropertyValue("clientId","")},set:function(e){this.setPropertyValue("clientId",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cookieName",{get:function(){return this.getPropertyValue("cookieName","")},set:function(e){this.setPropertyValue("cookieName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sendResultOnPageNext",{get:function(){return this.getPropertyValue("sendResultOnPageNext")},set:function(e){this.setPropertyValue("sendResultOnPageNext",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"surveyShowDataSaving",{get:function(){return this.getPropertyValue("surveyShowDataSaving")},set:function(e){this.setPropertyValue("surveyShowDataSaving",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusFirstQuestionAutomatic",{get:function(){return this.getPropertyValue("focusFirstQuestionAutomatic")},set:function(e){this.setPropertyValue("focusFirstQuestionAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnFirstError",{get:function(){return this.getPropertyValue("focusOnFirstError")},set:function(e){this.setPropertyValue("focusOnFirstError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigationButtons",{get:function(){return this.getPropertyValue("showNavigationButtons")},set:function(e){(!0===e||void 0===e)&&(e="bottom"),!1===e&&(e="none"),this.setPropertyValue("showNavigationButtons",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPrevButton",{get:function(){return this.getPropertyValue("showPrevButton")},set:function(e){this.setPropertyValue("showPrevButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompleteButton",{get:function(){return this.getPropertyValue("showCompleteButton",!0)},set:function(e){this.setPropertyValue("showCompleteButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTOC",{get:function(){return this.getPropertyValue("showTOC")},set:function(e){this.setPropertyValue("showTOC",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tocLocation",{get:function(){return this.getPropertyValue("tocLocation")},set:function(e){this.setPropertyValue("tocLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTitle",{get:function(){return this.getPropertyValue("showTitle")},set:function(e){this.setPropertyValue("showTitle",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPageTitles",{get:function(){return this.getPropertyValue("showPageTitles")},set:function(e){this.setPropertyValue("showPageTitles",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showCompletedPage",{get:function(){return this.getPropertyValue("showCompletedPage")},set:function(e){this.setPropertyValue("showCompletedPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrl",{get:function(){return this.getPropertyValue("navigateToUrl")},set:function(e){this.setPropertyValue("navigateToUrl",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigateToUrlOnCondition",{get:function(){return this.getPropertyValue("navigateToUrlOnCondition")},set:function(e){this.setPropertyValue("navigateToUrlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.getNavigateToUrl=function(){var e=this.getExpressionItemOnRunCondition(this.navigateToUrlOnCondition),t=e?e.url:this.navigateToUrl;return t&&(t=this.processText(t,!1)),t},t.prototype.navigateTo=function(){var e,t,r={url:this.getNavigateToUrl(),allow:!0};if(this.onNavigateToUrl.fire(this,r),r.url&&r.allow){;e=r.url,t=e_.getLocation(),!e||!t||(t.href=function(e){return e?e.toLocaleLowerCase().indexOf("javascript:")>-1?encodeURIComponent(e):e:e}(e))}},Object.defineProperty(t.prototype,"requiredText",{get:function(){return this.getPropertyValue("requiredText","*")},set:function(e){this.setPropertyValue("requiredText",e)}
1,enumerable:!1,configurable:!0}),t.prototype.beforeSettingQuestionErrors=function(e,t){this.makeRequiredErrorsInvisible(t),this.onSettingQuestionErrors.fire(this,{question:e,errors:t})},t.prototype.beforeSettingPanelErrors=function(e,t){this.makeRequiredErrorsInvisible(t)},t.prototype.makeRequiredErrorsInvisible=function(e){if(this.hideRequiredErrors)for(var t=0;t<e.length;t++){var r=e[t].getErrorType();("required"==r||"requireoneanswer"==r)&&(e[t].visible=!1)}},Object.defineProperty(t.prototype,"questionStartIndex",{get:function(){return this.getPropertyValue("questionStartIndex","")},set:function(e){this.setPropertyValue("questionStartIndex",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")},set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTextLength",{get:function(){return this.getPropertyValue("maxTextLength")},set:function(e){this.setPropertyValue("maxTextLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxOthersLength",{get:function(){return this.getPropertyValue("maxOthersLength")},set:function(e){this.setPropertyValue("maxOthersLength",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"goNextPageAutomatic",{get:function(){return this.getPropertyValue("goNextPageAutomatic")},set:function(e){this.setPropertyValue("goNextPageAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowCompleteSurveyAutomatic",{get:function(){return this.getPropertyValue("allowCompleteSurveyAutomatic")},set:function(e){this.setPropertyValue("allowCompleteSurveyAutomatic",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkErrorsMode",{get:function(){return this.getPropertyValue("checkErrorsMode")},set:function(e){this.setPropertyValue("checkErrorsMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validateVisitedEmptyFields",{get:function(){return this.getPropertyValue("validateVisitedEmptyFields")},set:function(e){this.setPropertyValue("validateVisitedEmptyFields",e)},enumerable:!1,configurable:!0}),t.prototype.getValidateVisitedEmptyFields=function(){return this.validateVisitedEmptyFields&&this.isValidateOnValueChange},Object.defineProperty(t.prototype,"autoGrowComment",{get:function(){return this.getPropertyValue("autoGrowComment")}
1,set:function(e){this.setPropertyValue("autoGrowComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeComment",{get:function(){return this.getPropertyValue("allowResizeComment")},set:function(e){this.setPropertyValue("allowResizeComment",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"commentAreaRows",{get:function(){return this.getPropertyValue("commentAreaRows")},set:function(e){this.setPropertyValue("commentAreaRows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearInvisibleValues",{get:function(){return this.getPropertyValue("clearInvisibleValues")},set:function(e){!0===e&&(e="onComplete"),!1===e&&(e="none"),this.setPropertyValue("clearInvisibleValues",e)},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(e){void 0===e&&(e=!1);for(var t=0;t<this.pages.length;t++)this.pages[t].clearIncorrectValues();if(e){var r=this.data,n=!1;for(var o in r){if(!(this.getQuestionByValueName(o)||this.iscorrectValueWithPostPrefix(o,r9.commentSuffix)||this.iscorrectValueWithPostPrefix(o,r9.matrix.totalsSuffix))){var i=this.getCalculatedValueByName(o);(!i||!i.includeIntoResult)&&(n=!0,delete r[o])}}n&&(this.data=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t){return e.indexOf(t)===e.length-t.length&&!!this.getQuestionByValueName(e.substring(0,e.indexOf(t)))},Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues")},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locale",{get:function(){return this.getPropertyValueWithoutDefault("locale")||eN.currentLocale},set:function(e){e===eN.defaultLocale&&!eN.currentLocale&&(e=""),this.setPropertyValue("locale",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLocaleChanged=function(){this.notifyElementsOnAnyValueOrVariableChanged("locale"),this.localeChanged(),this.onLocaleChangedEvent.fire(this,this.locale)},Object.defineProperty(t.prototype,"localeDir",{get:function(){return eN.localeDirections[this.locale]},enumerable:!1,configurable:!0}),t.prototype.getUsedLocales=function(){var e=[];this.addUsedLocales(e);var t=e.indexOf("default");if(t>-1){var r=eN.defaultLocale,n=e.indexOf(r);n>-1&&e.splice(n,1),t=e.indexOf("default"),e[t]=r}return e},t.prototype.localeChanged=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].localeChanged()},t.prototype.getLocale=function(){return this.locale},t.prototype.locStrsChanged=function(){if(!this.isClearingUnsedValues){if(e.prototype.locStrsChanged.call(this),this.currentPage){if(this.isDesignMode)this.pages.forEach(function(e){return e.locStrsChanged()});else{var t=this.activePage;t&&t.locStrsChanged();for(var r=this.visiblePages,n=0;n<r.length;n++)r[n].navigationLocStrChanged()}!this.isShowStartingPage&&this.updateProgressText(),this.navigationBar.locStrsChanged()}}},t.prototype.getMarkdownHtml=function(e,t){return this.getSurveyMarkdownHtml(this,e,t)},t.prototype.getRenderer=function(e){return this.getRendererForString(this,e)},t.prototype.getRendererContext=function(e){return this.getRendererContextForString(this,e)},t.prototype.getRendererForString=function(e,t){var r=this.getBuiltInRendererForString(e,t);r=this.elementWrapperComponentNameCore(r,e,"string",t);var n={element:e,name:t,renderAs:r};return this.onTextRenderAs.fire(this,n),n.renderAs},t.prototype.getRendererContextForString=function(e,t){return this.elementWrapperDataCore(t,e,"string")},t.prototype.getExpressionDisplayValue=function(e,t,r){var n={question:e,value:t,displayValue:r};return this.onGetExpressionDisplayValue.fire(this,n),n.displayValue},t.prototype.getBuiltInRendererForString=function(e,t){if(this.isDesignMode)return rV.editableRenderer},t.prototype.getProcessedText=function(e){return this.processText(e,!0)},t.prototype.getLocString=function(e){return this.getLocalizationString(e)}
vendor: 44,792 bytes, line 1
1,t.prototype.getErrorCustomText=function(e,t){return this.getSurveyErrorCustomText(this,e,t)},t.prototype.getSurveyErrorCustomText=function(e,t,r){var n={text:t,name:r.getErrorType(),obj:e,error:r};return this.onErrorCustomText.fire(this,n),n.text},t.prototype.getQuestionDisplayValue=function(e,t){var r={question:e,displayValue:t};return this.onGetQuestionDisplayValue.fire(this,r),r.displayValue},Object.defineProperty(t.prototype,"emptySurveyText",{get:function(){return this.getLocalizableStringText("emptySurveyText")},set:function(e){this.setLocalizableStringText("emptySurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logo",{get:function(){return this.getLocalizableStringText("logo")},set:function(e){this.setLocalizableStringText("logo",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLogo",{get:function(){return this.getLocalizableString("logo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoWidth",{get:function(){return this.getPropertyValue("logoWidth")},set:function(e){this.setPropertyValue("logoWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoWidth",{get:function(){return this.logoWidth?rq(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoWidth",{get:function(){return this.logoWidth?rB(this.logoWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoHeight",{get:function(){return this.getPropertyValue("logoHeight")},set:function(e){this.setPropertyValue("logoHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedLogoHeight",{get:function(){return this.logoHeight?rq(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleLogoHeight",{get:function(){return this.logoHeight?rB(this.logoHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoPosition",{get:function(){return this.getPropertyValue("logoPosition")},set:function(e){this.setPropertyValue("logoPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasLogo",{get:function(){return this.getPropertyValue("hasLogo",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasLogo=function(){this.setPropertyValue("hasLogo",!!this.logo&&"none"!==this.logoPosition)},Object.defineProperty(t.prototype,"isLogoBefore",{get:function(){return!this.isDesignMode&&this.renderedHasLogo&&("left"===this.logoPosition||"top"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogoAfter",{get:function(){return this.isDesignMode?this.renderedHasLogo:this.renderedHasLogo&&("right"===this.logoPosition||"bottom"===this.logoPosition)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoClassNames",{get:function(){return new t$().append(this.css.logo).append({left:"sv-logo--left",right:"sv-logo--right",top:"sv-logo--top",bottom:"sv-logo--bottom"}[this.logoPosition]).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasTitle",{get:function(){return this.isDesignMode?this.isPropertyVisible("title"):!this.titleIsEmpty&&this.showTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasDescription",{get:function(){return this.isDesignMode?this.isPropertyVisible("description"):!!this.hasDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return this.renderedHasTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasLogo",{get:function(){return this.isDesignMode?this.isPropertyVisible("logo"):this.hasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHasHeader",{get:function(){return this.renderedHasTitle||this.renderedHasLogo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"logoFit",{get:function(){return this.getPropertyValue("logoFit")},set:function(e){this.setPropertyValue("logoFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"themeVariables",{get:function(){return Object.assign({},this.cssVariables)},enumerable:!1,configurable:!0}),t.prototype.setIsMobile=function(e){void 0===e&&(e=!0),this._isMobile!==e&&(this._isMobile=e,this.updateCss(),this.getAllQuestions().forEach(function(t){return t.setIsMobile(e)}))},Object.defineProperty(t.prototype,"isMobile",{get:function(){return this._isMobile&&!this.isDesignMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompact",{get:function(){return this._isCompact},set:function(e){e!==this._isCompact&&(this._isCompact=e,this.updateElementCss(),this.triggerResponsiveness(!0))},enumerable:!1,configurable:!0}),t.prototype.isLogoImageChoosen=function(){return this.locLogo.renderedHtml},Object.defineProperty(t.prototype,"titleMaxWidth",{get:function(){if(!(e_.isAvailable()&&e_.hasOwn("orientation")||this.isMobile)&&!this.isValueEmpty(this.isLogoImageChoosen())&&!r9.supportCreatorV2){var e=this.logoWidth;if("left"===this.logoPosition||"right"===this.logoPosition)return"calc(100% - 5px - 2em - "+e+")"}return""},enumerable:!1,configurable:!0}),t.prototype.updateRenderBackgroundImage=function(){var e=this.backgroundImage;this.renderBackgroundImage=rk(e)},Object.defineProperty(t.prototype,"backgroundOpacity",{get:function(){return this.getPropertyValue("backgroundOpacity")},set:function(e){this.setPropertyValue("backgroundOpacity",e)},enumerable:!1,configurable:!0}),t.prototype.updateBackgroundImageStyle=function(){this.backgroundImageStyle={opacity:this.backgroundOpacity,backgroundImage:this.renderBackgroundImage,backgroundSize:this.backgroundImageFit,backgroundAttachment:this.fitToContainer?void 0:this.backgroundImageAttachment}},t.prototype.updateWrapperFormCss=function(){this.wrapperFormCss=new t$().append(this.css.rootWrapper).append(this.css.rootWrapperHasImage,!!this.backgroundImage).append(this.css.rootWrapperFixed,!!this.backgroundImage&&"fixed"===this.backgroundImageAttachment).toString()},Object.defineProperty(t.prototype,"completedHtml",{get:function(){return this.getLocalizableStringText("completedHtml")},set:function(e){this.setLocalizableStringText("completedHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedHtml",{get:function(){return this.getLocalizableString("completedHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedHtmlOnCondition",{get:function(){return this.getPropertyValue("completedHtmlOnCondition")},set:function(e){this.setPropertyValue("completedHtmlOnCondition",e)},enumerable:!1,configurable:!0}),t.prototype.runExpression=function(e,t){if(!e)return null;var r=this.getFilteredValues(),n=this.getFilteredProperties(),o=new tL(e),i=void 0;return o.onRunComplete=function(e){i=e,t&&t(e)},o.run(r,n)||i},Object.defineProperty(t.prototype,"isSettingValueOnExpression",{get:function(){return this.setValueOnExpressionCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueOnExpression=function(){this.setValueOnExpressionCounter++},t.prototype.finishSetValueOnExpression=function(){this.setValueOnExpressionCounter--},t.prototype.runCondition=function(e){if(!e)return!1;var t=this.getFilteredValues(),r=this.getFilteredProperties();return new tA(e).run(t,r)},t.prototype.runTriggers=function(){this.checkTriggers(this.getFilteredValues(),!1)},Object.defineProperty(t.prototype,"renderedCompletedHtml",{get:function(){var e=this.getExpressionItemOnRunCondition(this.completedHtmlOnCondition);return e?e.html:this.completedHtml},enumerable:!1,configurable:!0}),t.prototype.getExpressionItemOnRunCondition=function(e){if(0==e.length)return null;for(var t=this.getFilteredValues(),r=this.getFilteredProperties(),n=0;n<e.length;n++)if(e[n].runCondition(t,r))return e[n];return null},Object.defineProperty(t.prototype,"completedBeforeHtml",{get:function(){return this.getLocalizableStringText("completedBeforeHtml")},set:function(e){this.setLocalizableStringText("completedBeforeHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompletedBeforeHtml",{get:function(){return this.getLocalizableString("completedBeforeHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"loadingHtml",{get:function(){return this.getLocalizableStringText("loadingHtml")},set:function(e){this.setLocalizableStringText("loadingHtml",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLoadingHtml",{get:function(){return this.getLocalizableString("loadingHtml")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultLoadingHtml",{get:function(){return"<h3>"+this.getLocalizationString("loadingSurvey")+"</h3>"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"navigationBar",{get:function(){return this.navigationBarValue},enumerable:!1,configurable:!0}),t.prototype.addNavigationItem=function(e){return!e.component&&(e.component="sv-nav-btn"),!e.innerCss&&(e.innerCss=this.cssSurveyNavigationButton),this.navigationBar.addAction(e)},Object.defineProperty(t.prototype,"startSurveyText",{get:function(){return this.getLocalizableStringText("startSurveyText")},set:function(e){this.setLocalizableStringText("startSurveyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locStartSurveyText",{get:function(){return this.getLocalizableString("startSurveyText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagePrevText",{get:function(){return this.getLocalizableStringText("pagePrevText")},set:function(e){this.setLocalizableStringText("pagePrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPagePrevText",{get:function(){return this.getLocalizableString("pagePrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageNextText",{get:function(){return this.getLocalizableStringText("pageNextText")},set:function(e){this.setLocalizableStringText("pageNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPageNextText",{get:function(){return this.getLocalizableString("pageNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completeText",{get:function(){return this.getLocalizableStringText("completeText")},set:function(e){this.setLocalizableStringText("completeText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locCompleteText",{get:function(){return this.getLocalizableString("completeText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"previewText",{get:function(){return this.getLocalizableStringText("previewText")},set:function(e){this.setLocalizableStringText("previewText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPreviewText",{get:function(){return this.getLocalizableString("previewText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editText",{get:function(){return this.getLocalizableStringText("editText")},set:function(e){this.setLocalizableStringText("editText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locEditText",{get:function(){return this.getLocalizableString("editText")},enumerable:!1,configurable:!0}),t.prototype.getElementTitleTagName=function(e,t){if(this.onGetTitleTagName.isEmpty)return t;var r={element:e,tagName:t};return this.onGetTitleTagName.fire(this,r),r.tagName},Object.defineProperty(t.prototype,"questionTitlePattern",{get:function(){return this.getPropertyValue("questionTitlePattern","numTitleRequire")},set:function(e){"numRequireTitle"!==e&&"requireNumTitle"!==e&&"numTitle"!=e&&(e="numTitleRequire"),this.setPropertyValue("questionTitlePattern",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionTitlePatternOptions=function(){var e=[],t=this.getLocalizationString("questionTitlePatternText"),r=this.questionStartIndex?this.questionStartIndex:"1.";return e.push({value:"numTitleRequire",text:r+" "+t+" "+this.requiredText}),e.push({value:"numRequireTitle",text:r+" "+this.requiredText+" "+t}),e.push({value:"numTitle",text:r+" "+t}),e},Object.defineProperty(t.prototype,"questionTitleTemplate",{get:function(){return this.getLocalizableStringText("questionTitleTemplate")},set:function(e){this.setLocalizableStringText("questionTitleTemplate",e),this.questionTitlePattern=this.getNewTitlePattern(e),this.questionStartIndex=this.getNewQuestionTitleElement(e,"no",this.questionStartIndex,"1"),this.requiredText=this.getNewQuestionTitleElement(e,"require",this.requiredText,"*")},enumerable:!1,configurable:!0}),t.prototype.getNewTitlePattern=function(e){if(e){for(var t=[];e.indexOf("{")>-1;){var r=(e=e.substring(e.indexOf("{")+1)).indexOf("}");if(r<0)break;t.push(e.substring(0,r)),e=e.substring(r+1)}if(t.length>1){if("require"==t[0])return"requireNumTitle";if("require"==t[1]&&3==t.length)return"numRequireTitle";if(0>t.indexOf("require"))return"numTitle"}if(1==t.length&&"title"==t[0])return"numTitle"}return"numTitleRequire"},t.prototype.getNewQuestionTitleElement=function(e,t,r,n){if(t="{"+t+"}",!e||0>e.indexOf(t))return r;for(var o=e.indexOf(t),i="",s="",a=o-1;a>=0&&"}"!=e[a];a--);for(a<o-1&&(i=e.substring(a+1,o)),o+=t.length,a=o;a<e.length&&"{"!=e[a];a++);for(a>o&&(s=e.substring(o,a)),a=0;a<i.length&&33>i.charCodeAt(a);)a++;for(i=i.substring(a),a=s.length-1;a>=0&&33>s.charCodeAt(a);)a--;return(s=s.substring(0,a+1),i||s)?i+(r||n)+s:r},Object.defineProperty(t.prototype,"locQuestionTitleTemplate",{get:function(){return this.getLocalizableString("questionTitleTemplate")},enumerable:!1,configurable:!0}),t.prototype.getUpdatedQuestionTitle=function(e,t){if(this.onGetQuestionTitle.isEmpty)return t;var r={question:e,title:t};return this.onGetQuestionTitle.fire(this,r),r.title},t.prototype.getUpdatedQuestionNo=function(e,t){if(this.onGetQuestionNumber.isEmpty)return t;var r={question:e,number:t,no:t};return this.onGetQuestionNumber.fire(this,r),r.no===t?r.number:r.no},t.prototype.getUpdatedPanelNo=function(e,t){if(this.onGetPanelNumber.isEmpty)return t;var r={panel:e,number:t};return this.onGetPanelNumber.fire(this,r),r.number},t.prototype.getUpdatedPageNo=function(e,t){if(this.onGetPageNumber.isEmpty)return t;var r={page:e,number:t};return this.onGetPageNumber.fire(this,r),r.number},Object.defineProperty(t.prototype,"showPageNumbers",{get:function(){return this.getPropertyValue("showPageNumbers")},set:function(e){e!==this.showPageNumbers&&(this.setPropertyValue("showPageNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){!0===e&&(e="on"),!1===e&&(e="off"),(e="onpage"===(e=e.toLowerCase())?"onPage":e)!==this.showQuestionNumbers&&(this.setPropertyValue("showQuestionNumbers",e),this.updateVisibleIndexes())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBar",{get:function(){return this.progressBarValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showProgressBar",{get:function(){return this.getPropertyValue("showProgressBar")},set:function(e){!0===e&&(e="auto"),!1===e&&(e="off"),this.setPropertyValue("showProgressBar",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarType",{get:function(){return this.getPropertyValue("progressBarType")},set:function(e){"correctquestion"===e&&(e="correctQuestion"),"requiredquestion"===e&&(e="requiredQuestion"),this.setPropertyValue("progressBarType",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressBarComponentName",{get:function(){var e=this.progressBarType;return!r9.legacyProgressBarView&&"defaultV2"===oB.currentType&&ij(e,"pages")&&(e="buttons"),"progress-"+e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnTop",{get:function(){return!!this.canShowProresBar()&&-1!==["auto","aboveheader","belowheader","topbottom","top","both"].indexOf(this.showProgressBar)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowProgressBarOnBottom",{get:function(){return!!this.canShowProresBar()&&("bottom"===this.showProgressBar||"both"===this.showProgressBar||"topbottom"===this.showProgressBar)},enumerable:!1,configurable:!0}),t.prototype.getProgressTypeComponent=function(){return"sv-progress-"+this.progressBarType.toLowerCase()},t.prototype.getProgressCssClasses=function(e){return void 0===e&&(e=""),new t$().append(this.css.progress).append(this.css.progressTop,this.isShowProgressBarOnTop&&(!e||"header"==e)).append(this.css.progressBottom,this.isShowProgressBarOnBottom&&(!e||"footer"==e)).toString()},t.prototype.canShowProresBar=function(){return!this.isShowingPreview||"showAllQuestions"!=this.showPreviewBeforeComplete},Object.defineProperty(t.prototype,"processedTitle",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionTitleLocation",{get:function(){return this.getPropertyValue("questionTitleLocation")},set:function(e){this.setPropertyValue("questionTitleLocation",e.toLowerCase()),!this.isLoadingFromJson&&this.updateElementCss(!0)},enumerable:!1,configurable:!0}),t.prototype.updateElementCss=function(e){this.startedPage&&this.startedPage.updateElementCss(e);for(var t=this.visiblePages,r=0;r<t.length;r++)t[r].updateElementCss(e);this.updateCss()},Object.defineProperty(t.prototype,"questionErrorLocation",{get:function(){return this.getPropertyValue("questionErrorLocation")},set:function(e){this.setPropertyValue("questionErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionDescriptionLocation",{get:function(){return this.getPropertyValue("questionDescriptionLocation")},set:function(e){this.setPropertyValue("questionDescriptionLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mode",{get:function(){return this.getPropertyValue("mode")},set:function(e){if((e=e.toLowerCase())!=this.mode)("edit"==e||"display"==e)&&this.setPropertyValue("mode",e)},enumerable:!1,configurable:!0}),t.prototype.onModeChanged=function(){for(var e=0;e<this.pages.length;e++){var t=this.pages[e];t.setPropertyValue("isReadOnly",t.isReadOnly)}this.updateButtonsVisibility(),this.updateCss()},Object.defineProperty(t.prototype,"data",{get:function(){for(var e={},t=this.getValuesKeys(),r=0;r<t.length;r++){var n=t[r],o=this.getDataValueCore(this.valuesHash,n);void 0!==o&&(e[n]=o)}return this.setCalculatedValuesIntoResult(e),e},set:function(e){this.valuesHash={},this.setDataCore(e,!e)},enumerable:!1,configurable:!0}),t.prototype.mergeData=function(e){if(e){var t=this.data;this.mergeValues(e,t),this.setDataCore(t)}},t.prototype.setDataCore=function(e,t){if(void 0===t&&(t=!1),t&&(this.valuesHash={}),e)for(var r in e){var n="string"==typeof r?r.trim():r;this.setDataValueCore(this.valuesHash,n,e[r])}this.updateAllQuestionsValue(t),this.notifyAllQuestionsOnValueChanged(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.runConditions(),this.updateAllQuestionsValue(t)},Object.defineProperty(t.prototype,"isSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getData=function(e){var t=e||{includePages:!1,includePanels:!1};return t.includePages||t.includePanels?this.getStructuredData(!!t.includePages,t.includePanels?-1:t.includePages?1:0):this.data},t.prototype.getStructuredData=function(e,t){if(void 0===e&&(e=!0),void 0===t&&(t=-1),0===t)return this.data;var r={};return this.pages.forEach(function(n){if(e){var o={};n.collectValues(o,t-1)&&(r[n.name]=o)}else n.collectValues(r,t)}),r},t.prototype.setStructuredData=function(e,t){if(void 0===t&&(t=!1),e){var r={};for(var n in e)if(this.getQuestionByValueName(n))r[n]=e[n];else{var o=this.getPageByName(n);!o&&(o=this.getPanelByName(n)),o&&this.collectDataFromPanel(o,r,e[n])}t?this.mergeData(r):this.data=r}},t.prototype.collectDataFromPanel=function(e,t,r){for(var n in r){var o=e.getElementByName(n);o&&(o.isPanel?this.collectDataFromPanel(o,t,r[n]):t[n]=r[n])}},Object.defineProperty(t.prototype,"editingObj",{get:function(){return this.editingObjValue},set:function(e){var t=this;if(this.editingObj!=e){if(this.unConnectEditingObj(),this.editingObjValue=e,!this.isDisposed){if(!e){for(var r=this.getAllQuestions(),n=0;n<r.length;n++)r[n].unbindValue()}this.editingObj&&(this.setDataCore({}),this.onEditingObjPropertyChanged=function(e,r){e6.hasOriginalProperty(t.editingObj,r.name)&&("locale"===r.name&&t.setDataCore({}),t.updateOnSetValue(r.name,t.editingObj[r.name],r.oldValue))},this.editingObj.onPropertyChanged.add(this.onEditingObjPropertyChanged))}}},enumerable:!1,configurable:!0}),t.prototype.unConnectEditingObj=function(){this.editingObj&&!this.editingObj.isDisposed&&this.editingObj.onPropertyChanged.remove(this.onEditingObjPropertyChanged)},Object.defineProperty(t.prototype,"isEditingSurveyElement",{get:function(){return!!this.editingObj},enumerable:!1,configurable:!0}),t.prototype.setCalculatedValuesIntoResult=function(e){for(var t=0;t<this.calculatedValues.length;t++){var r=this.calculatedValues[t];r.includeIntoResult&&r.name&&void 0!==this.getVariable(r.name)&&(e[r.name]=this.getVariable(r.name))}},t.prototype.getAllValues=function(){return this.data},t.prototype.getPlainData=function(e){!e&&(e={includeEmpty:!0,includeQuestionTypes:!1,includeValues:!1});var t=[],r=[];if(this.getAllQuestions().forEach(function(n){var o=n.getPlainData(e);o&&(t.push(o),r.push(n.valueName||n.name))}),e.includeValues){for(var n=this.getValuesKeys(),o=0;o<n.length;o++){var i=n[o];if(-1==r.indexOf(i)){var s=this.getDataValueCore(this.valuesHash,i);s&&t.push({name:i,title:i,value:s,displayValue:s,isNode:!1,getString:function(e){return"object"==typeof e?JSON.stringify(e):e}})}}}return t},t.prototype.getFilteredValues=function(){var e={};for(var t in this.variablesHash)e[t]=this.variablesHash[t];if(this.addCalculatedValuesIntoFilteredValues(e),!this.isDesignMode){for(var r=this.getValuesKeys(),n=0;n<r.length;n++){var t=r[n];e[t]=this.getDataValueCore(this.valuesHash,t)}this.getAllQuestions().forEach(function(t){t.hasFilteredValue&&(e[t.getFilteredName()]=t.getFilteredValue())})}return e},t.prototype.addCalculatedValuesIntoFilteredValues=function(e){for(var t=this.calculatedValues,r=0;r<t.length;r++)e[t[r].name]=t[r].value},t.prototype.getFilteredProperties=function(){return{survey:this}},t.prototype.getValuesKeys=function(){if(!this.editingObj)return Object.keys(this.valuesHash);for(var e=e6.getPropertiesByObj(this.editingObj),t=[],r=0;r<e.length;r++)t.push(e[r].name);return t},t.prototype.getDataValueCore=function(e,t){return this.editingObj?e6.getObjPropertyValue(this.editingObj,t):this.getDataFromValueHash(e,t)},t.prototype.setDataValueCore=function(e,t,r){this.editingObj?e6.setObjPropertyValue(this.editingObj,t,r):this.setDataToValueHash(e,t,r)},t.prototype.deleteDataValueCore=function(e,t){this.editingObj?this.editingObj[t]=null:this.deleteDataFromValueHash(e,t)},t.prototype.getDataFromValueHash=function(e,t){return this.valueHashGetDataCallback?this.valueHashGetDataCallback(e,t):e[t]},t.prototype.setDataToValueHash=function(e,t,r){this.valueHashSetDataCallback?this.valueHashSetDataCallback(e,t,r):e[t]=r},t.prototype.deleteDataFromValueHash=function(e,t){this.valueHashDeleteDataCallback?this.valueHashDeleteDataCallback(e,t):delete e[t]},Object.defineProperty(t.prototype,"comments",{get:function(){for(var e={},t=this.getValuesKeys(),r=0;r<t.length;r++){var n=t[r];n.indexOf(this.commentSuffix)>0&&(e[n]=this.getDataValueCore(this.valuesHash,n))}return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePages",{get:function(){if(this.isDesignMode)return this.pages;if(this.pageContainerValue&&(this.isShowingPreview||this.isSinglePage))return[this.pageContainerValue];for(var e=[],t=0;t<this.pages.length;t++)this.isPageInVisibleList(this.pages[t])&&e.push(this.pages[t]);return e},enumerable:!1,configurable:!0}),t.prototype.isPageInVisibleList=function(e){return this.isDesignMode||e.isVisible&&!e.isStartPage},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PageCount",{get:function(){return this.pageCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCount",{get:function(){return this.pages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePageCount",{get:function(){return this.visiblePages.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"startedPage",{get:function(){var e=this.firstPageIsStarted&&this.pages.length>1?this.pages[0]:null;return e&&(e.onFirstRendering(),e.setWasShown(!0)),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPage",{get:function(){return this.getPropertyValue("currentPage",null)},set:function(e){if(this.isLoadingFromJson)return;var t=this.getPageByObject(e);if(e&&!t||!t&&this.isCurrentPageAvailable)return;var r=this.visiblePages;if(!(null!=t&&0>r.indexOf(t))&&t!=this.currentPage){var n=this.currentPage;(this.isShowingPreview||this.currentSingleQuestion||this.currentPageChanging(t,n))&&(this.setPropertyValue("currentPage",t),t&&(t.onFirstRendering(),t.updateCustomWidgets(),t.setWasShown(!0)),this.locStrsChanged(),!this.isShowingPreview&&this.currentPageChanged(t,n))}},enumerable:!1,configurable:!0}),t.prototype.tryNavigateToPage=function(e){if(!this.performValidationOnPageChanging(e))return!1;var t=this.visiblePages.indexOf(e)<this.currentPageNo||!this.doServerValidation(!1,!1,e);return t&&(this.currentPage=e),t},t.prototype.performValidationOnPageChanging=function(e){if(this.isDesignMode)return!1;if(this.canGoTroughValidation())return!0;var t=this.visiblePages.indexOf(e);if(t<0||t>=this.visiblePageCount||t===this.currentPageNo)return!1;if(t<this.currentPageNo||"onComplete"===this.checkErrorsMode||this.validationAllowSwitchPages)return!0;if(!this.validateCurrentPage())return!1;for(var r=this.currentPageNo+1;r<t;r++){var n=this.visiblePages[r];if(!n.validate(!0,!0))return!1;n.passed=!0}return!0},t.prototype.updateCurrentPage=function(){!this.isCurrentPageAvailable&&(this.currentPage=this.firstVisiblePage)},Object.defineProperty(t.prototype,"isCurrentPageAvailable",{get:function(){var e=this.currentPage;return!!e&&this.isPageInVisibleList(e)&&this.isPageExistsInSurvey(e)},enumerable:!1,configurable:!0}),t.prototype.isPageExistsInSurvey=function(e){return!!(this.pages.indexOf(e)>-1)||!!this.onContainsPageCallback&&this.onContainsPageCallback(e)},Object.defineProperty(t.prototype,"activePage",{get:function(){return this.getPropertyValue("activePage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowStartingPage",{get:function(){return"starting"===this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"matrixDragHandleArea",{get:function(){return this.getPropertyValue("matrixDragHandleArea","entireItem")},set:function(e){this.setPropertyValue("matrixDragHandleArea",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPage",{get:function(){return"running"==this.state||"preview"==this.state||this.isShowStartingPage},enumerable:!1,configurable:!0}),t.prototype.updateActivePage=function(){var e=this.isShowStartingPage?this.startedPage:this.currentPage;e!==this.activePage&&this.setPropertyValue("activePage",e)},t.prototype.onStateAndCurrentPageChanged=function(){this.updateActivePage(),this.updateButtonsVisibility()},t.prototype.getPageByObject=function(e){if(!e)return null;if(e.getType&&"page"==e.getType())return e;if("string"==typeof e||e instanceof String)return this.getPageByName(String(e));if(!isNaN(e)){var t=Number(e),r=this.visiblePages;return e<0||e>=r.length?null:r[t]}return e},Object.defineProperty(t.prototype,"currentPageNo",{get:function(){return this.visiblePages.indexOf(this.currentPage)},set:function(e){var t=this.visiblePages;!(e<0)&&!(e>=t.length)&&(this.currentPage=t[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"questionsOrder",{get:function(){return this.getPropertyValue("questionsOrder")},set:function(e){this.setPropertyValue("questionsOrder",e)},enumerable:!1,configurable:!0}),t.prototype.focusFirstQuestion=function(){if(!this.focusingQuestionInfo){var e=this.activePage;e&&(e.scrollToTop(),e.focusFirstQuestion())}},t.prototype.scrollToTopOnPageChange=function(e){void 0===e&&(e=!0);var t=this.activePage;t&&(e&&t.scrollToTop(),this.isCurrentPageRendering&&this.focusFirstQuestionAutomatic&&!this.focusingQuestionInfo&&(t.focusFirstQuestion(),this.isCurrentPageRendering=!1))},Object.defineProperty(t.prototype,"state",{get:function(){return this.getPropertyValue("state","empty")},enumerable:!1,configurable:!0}),t.prototype.updateState=function(){this.setPropertyValue("state",this.calcState())},t.prototype.calcState=function(){return this.isLoading?"loading":this.isCompleted?"completed":this.isCompletedBefore?"completedbefore":!this.isDesignMode&&this.isEditMode&&this.isStartedState&&this.startedPage?"starting":this.isShowingPreview?this.currentPage?"preview":"empty":this.currentPage?"running":"empty"},Object.defineProperty(t.prototype,"isCompleted",{get:function(){return this.getPropertyValue("isCompleted",!1)},set:function(e){this.setPropertyValue("isCompleted",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowingPreview",{get:function(){return this.getPropertyValue("isShowingPreview",!1)},set:function(e){this.isShowingPreview!=e&&(this.setPropertyValue("isShowingPreview",e),this.onShowingPreviewChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStartedState",{get:function(){return this.getPropertyValue("isStartedState",!1)},set:function(e){this.setPropertyValue("isStartedState",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompletedBefore",{get:function(){return this.getPropertyValue("isCompletedBefore",!1)},set:function(e){this.setPropertyValue("isCompletedBefore",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this.getPropertyValue("isLoading",!1)},set:function(e){this.setPropertyValue("isLoading",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedState",{get:function(){return this.getPropertyValue("completedState","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedStateText",{get:function(){return this.getPropertyValue("completedStateText","")},enumerable:!1,configurable:!0}),t.prototype.setCompletedState=function(e,t){this.setPropertyValue("completedState",e),!t&&("saving"==e&&(t=this.getLocalizationString("savingData")),"error"==e&&(t=this.getLocalizationString("savingDataError")),"success"==e&&(t=this.getLocalizationString("savingDataSuccess"))),this.setPropertyValue("completedStateText",t),"completed"===this.state&&this.showCompletedPage&&this.completedState&&this.notify(this.completedStateText,this.completedState,"error"===e)},t.prototype.notify=function(e,t,r){void 0===r&&(r=!1),this.notifier.showActions=r,this.notifier.notify(e,t,r)},t.prototype.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),this.isCompleted=!1,this.isCompletedBefore=!1,this.isLoading=!1,this.completedByTriggers=void 0,e&&this.setDataCore(null,!0),this.timerModel.spent=0;for(var r=0;r<this.pages.length;r++)this.pages[r].timeSpent=0,this.pages[r].setWasShown(!1),this.pages[r].passed=!1;if(this.onFirstPageIsStartedChanged(),t&&(this.currentPage=this.firstVisiblePage,this.currentSingleQuestion)){var n=this.getAllQuestions(!0);this.currentSingleQuestion=n.length>0?n[0]:void 0}e&&this.updateValuesWithDefaults()},t.prototype.mergeValues=function(e,t){rZ(e,t)},t.prototype.updateValuesWithDefaults=function(){if(!this.isDesignMode&&!this.isLoading)for(var e=0;e<this.pages.length;e++){for(var t=this.pages[e].questions,r=0;r<t.length;r++)t[r].updateValueWithDefaults()}},t.prototype.updateCustomWidgets=function(e){e&&e.updateCustomWidgets()},t.prototype.currentPageChanging=function(e,t,r,n){var o=this.createPageChangeEventOptions(e,t,r,n);return this.currentPageChangingFromOptions(o)},t.prototype.currentPageChangingFromOptions=function(e){e.allow=!0,e.allowChanging=!0,this.onCurrentPageChanging.fire(this,e);var t=e.allowChanging&&e.allow;return t&&e.newCurrentPage!==e.oldCurrentPage&&(this.isCurrentPageRendering=!0),t},t.prototype.currentPageChanged=function(e,t){if(this.notifyQuestionsOnHidingContent(t),t&&!t.isDisposed&&!t.passed&&t.validate(!1)&&(t.passed=!0),!0===this.isCurrentPageRendered&&(this.isCurrentPageRendered=!1),!this.currentSingleQuestion){var r=this.createPageChangeEventOptions(e,t);this.onCurrentPageChanged.fire(this,r)}},t.prototype.notifyQuestionsOnHidingContent=function(e){e&&!e.isDisposed&&e.questions.forEach(function(e){return e.onHidingContent()})},t.prototype.createPageChangeEventOptions=function(e,t,r,n){var o=e&&t?e.visibleIndex-t.visibleIndex:0,i=o;return 0===i&&n&&r&&(i=e.elements.indexOf(r)-e.elements.indexOf(n)),{oldCurrentQuestion:n,newCurrentQuestion:r,oldCurrentPage:t,newCurrentPage:e,isNextPage:1===o,isPrevPage:-1===o,isGoingForward:i>0,isGoingBackward:i<0,isAfterPreview:!0===this.changeCurrentPageFromPreview}},t.prototype.getProgress=function(){if(null==this.currentPage)return 0;if("pages"!==this.progressBarType){var e=this.getProgressInfo();return"requiredQuestions"===this.progressBarType?e.requiredQuestionCount>=1?Math.ceil(100*e.requiredAnsweredQuestionCount/e.requiredQuestionCount):100:e.questionCount>=1?Math.ceil(100*e.answeredQuestionCount/e.questionCount):100}var t=this.visiblePages;return Math.ceil(100*t.indexOf(this.currentPage)/t.length)},Object.defineProperty(t.prototype,"progressValue",{get:function(){return this.getPropertyValue("progressValue",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowing",{get:function(){if(this.isDesignMode)return"none";var e=this.activePage;return e?"show"===e.navigationButtonsVisibility?"none"===this.showNavigationButtons?"bottom":this.showNavigationButtons:"hide"===e.navigationButtonsVisibility?"none":this.showNavigationButtons:"none"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnTop",{get:function(){return this.getIsNavigationButtonsShowingOn("top")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNavigationButtonsShowingOnBottom",{get:function(){return this.getIsNavigationButtonsShowingOn("bottom")},enumerable:!1,configurable:!0}),t.prototype.getIsNavigationButtonsShowingOn=function(e){var t=this.isNavigationButtonsShowing;return"both"==t||t==e},Object.defineProperty(t.prototype,"isEditMode",{get:function(){return"edit"==this.mode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return"display"==this.mode&&!this.isDesignMode||"preview"==this.state},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isUpdateValueTextOnTyping",{get:function(){return"onTyping"==this.textUpdateMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDesignMode",{get:function(){return this._isDesignMode},enumerable:!1,configurable:!0}),t.prototype.setDesignMode=function(e){!!this._isDesignMode!=!!e&&(this._isDesignMode=!!e,this.onQuestionsOnPageModeChanged("standard"))},Object.defineProperty(t.prototype,"showInvisibleElements",{get:function(){return this.getPropertyValue("showInvisibleElements",!1)},set:function(e){var t=this.visiblePages;this.setPropertyValue("showInvisibleElements",e),!this.isLoadingFromJson&&(this.runConditions(),this.updateAllElementsVisibility(t))},enumerable:!1,configurable:!0}),t.prototype.updateAllElementsVisibility=function(e){for(var t=0;t<this.pages.length;t++){var r=this.pages[t];r.updateElementVisibility(),e.indexOf(r)>-1!=r.isVisible&&this.onPageVisibleChanged.fire(this,{page:r,visible:r.isVisible})}},Object.defineProperty(t.prototype,"areInvisibleElementsShowing",{get:function(){return this.isDesignMode||this.showInvisibleElements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"areEmptyElementsHidden",{get:function(){return this.isShowingPreview&&"showAnsweredQuestions"==this.showPreviewBeforeComplete&&this.isAnyQuestionAnswered},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAnyQuestionAnswered",{get:function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)if(!e[t].isEmpty())return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCookie",{get:function(){if(!this.cookieName)return!1;var e=eD.getCookie();return e&&e.indexOf(this.cookieName+"=true")>-1},enumerable:!1,configurable:!0}),t.prototype.setCookie=function(){this.cookieName&&eD.setCookie(this.cookieName+"=true; expires=Fri, 31 Dec 9999 0:0:0 GMT")},t.prototype.deleteCookie=function(){this.cookieName&&eD.setCookie(this.cookieName+"=;")},Object.defineProperty(t.prototype,"ignoreValidation",{get:function(){return!this.validationEnabled},set:function(e){this.validationEnabled=!e},enumerable:!1,configurable:!0}),t.prototype.nextPage=function(){return this.currentSingleQuestion?this.performNext():!this.isLastPage&&this.doCurrentPageComplete(!1)},t.prototype.performNext=function(){var e=this.currentSingleQuestion;if(!e)return this.nextPage();if(!e.validate(!0))return!1;var t=this.getAllQuestions(!0),r=t.indexOf(e);return!(r<0)&&r!==t.length-1&&(this.currentSingleQuestion=t[r+1],!0)},t.prototype.performPrevious=function(){var e=this.currentSingleQuestion;if(!e)return this.prevPage();var t=this.getAllQuestions(!0),r=t.indexOf(e);return 0!==r&&(this.currentSingleQuestion=t[r-1],!0)},t.prototype.hasErrorsOnNavigate=function(e){var t=this;if(this.canGoTroughValidation())return!1;var r=e&&this.validationAllowComplete||!e&&this.validationAllowSwitchPages,n=function(n){(!n||r)&&t.doCurrentPageCompleteCore(e)};if(this.isValidateOnComplete)return!!this.isLastPage&&!0!==this.validate(!0,this.focusOnFirstError,n,!0)&&!r;return!0!==this.validateCurrentPage(n)&&!r},t.prototype.canGoTroughValidation=function(){return!this.isEditMode||!this.validationEnabled},t.prototype.checkForAsyncQuestionValidation=function(e,t){var r=this;this.clearAsyncValidationQuesitons();for(var n=this,o=0;o<e.length;o++)!function(){if(e[o].isRunningValidators){var i=e[o];i.onCompletedAsyncValidators=function(e){r.onCompletedAsyncQuestionValidators(i,t,e)},n.asyncValidationQuesitons.push(e[o])}}();return this.asyncValidationQuesitons.length>0},t.prototype.clearAsyncValidationQuesitons=function(){if(this.asyncValidationQuesitons){for(var e=this.asyncValidationQuesitons,t=0;t<e.length;t++)e[t].onCompletedAsyncValidators=null}this.asyncValidationQuesitons=[]},t.prototype.onCompletedAsyncQuestionValidators=function(e,t,r){if(r){if(this.clearAsyncValidationQuesitons(),t(!0),this.focusOnFirstError&&e&&e.page&&e.page===this.currentPage){for(var n=this.currentPage.questions,o=0;o<n.length;o++)if(n[o]!==e&&n[o].errors.length>0)return;e.focus(!0)}return}for(var i=this.asyncValidationQuesitons,s=0;s<i.length;s++)if(i[s].isRunningValidators)return;t(!1)},Object.defineProperty(t.prototype,"isCurrentPageHasErrors",{get:function(){return this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCurrentPageValid",{get:function(){return!this.checkIsCurrentPageHasErrors()},enumerable:!1,configurable:!0}),t.prototype.hasCurrentPageErrors=function(e){return this.hasPageErrors(void 0,e)},t.prototype.validateCurrentPage=function(e){return this.validatePage(void 0,e)},t.prototype.hasPageErrors=function(e,t){var r=this.validatePage(e,t);return void 0===r?r:!r},t.prototype.validatePage=function(e,t){return!e&&(e=this.activePage),!e||!this.checkIsPageHasErrors(e)&&(!t||!this.checkForAsyncQuestionValidation(e.questions,function(e){return t(e)})||void 0)},t.prototype.hasErrors=function(e,t,r){void 0===e&&(e=!0),void 0===t&&(t=!1);var n=this.validate(e,t,r);return void 0===n?n:!n},t.prototype.validate=function(e,t,r,n){void 0===e&&(e=!0),void 0===t&&(t=!1),r&&(e=!0);for(var o=this.visiblePages,i=!0,s={fireCallback:e,focusOnFirstError:t,firstErrorQuestion:null,result:!1},a=0;a<o.length;a++)!o[a].validate(e,t,s)&&(i=!1);return(s.firstErrorQuestion&&(t||n)&&(t?s.firstErrorQuestion.focus(!0):this.currentPage=s.firstErrorQuestion.page),i&&r)?!this.checkForAsyncQuestionValidation(this.getAllQuestions(),function(e){return r(e)})||void 0:i},t.prototype.ensureUniqueNames=function(e){if(void 0===e&&(e=null),null==e)for(var t=0;t<this.pages.length;t++)this.ensureUniqueName(this.pages[t]);else this.ensureUniqueName(e)},t.prototype.ensureUniqueName=function(e){if(e.isPage&&this.ensureUniquePageName(e),e.isPanel&&this.ensureUniquePanelName(e),e.isPage||e.isPanel){for(var t=e.elements,r=0;r<t.length;r++)this.ensureUniqueNames(t[r])}else this.ensureUniqueQuestionName(e)},t.prototype.ensureUniquePageName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getPageByName(e)})},t.prototype.ensureUniquePanelName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getPanelByName(e)})},t.prototype.ensureUniqueQuestionName=function(e){var t=this;return this.ensureUniqueElementName(e,function(e){return t.getQuestionByName(e)})},t.prototype.ensureUniqueElementName=function(e,t){var r=t(e.name);if(r&&r!=e){for(var n=this.getNewName(e.name);t(n);)var n=this.getNewName(e.name);e.name=n}},t.prototype.getNewName=function(e){for(var t=e.length;t>0&&e[t-1]>="0"&&e[t-1]<="9";)t--;var r=e.substring(0,t),n=0;return t<e.length&&(n=parseInt(e.substring(t))),r+ ++n},t.prototype.checkIsCurrentPageHasErrors=function(e){return void 0===e&&(e=void 0),this.checkIsPageHasErrors(this.activePage,e)},t.prototype.checkIsPageHasErrors=function(e,t){if(void 0===t&&(t=void 0),void 0===t&&(t=this.focusOnFirstError),!e)return!0;var r=!1;return r=this.currentSingleQuestion?!this.currentSingleQuestion.validate(!0):!e.validate(!0,t),this.fireValidatedErrorsOnPage(e),r},t.prototype.fireValidatedErrorsOnPage=function(e){if(!this.onValidatedErrorsOnCurrentPage.isEmpty&&e){for(var t=e.questions,r=[],n=[],o=0;o<t.length;o++){var i=t[o];if(i.errors.length>0){r.push(i);for(var s=0;s<i.errors.length;s++)n.push(i.errors[s])}}this.onValidatedErrorsOnCurrentPage.fire(this,{questions:r,errors:n,page:e})}},t.prototype.prevPage=function(){var e=this;if(this.currentSingleQuestion)return this.performPrevious();if(this.isFirstPage||"starting"===this.state)return!1;this.resetNavigationButton();var t=this.skippedPages.find(function(t){return t.to==e.currentPage});if(t)this.currentPage=t.from,this.skippedPages.splice(this.skippedPages.indexOf(t),1);else{var r=this.visiblePages,n=r.indexOf(this.currentPage);this.currentPage=r[n-1]}return!0},t.prototype.tryComplete=function(){this.isValidateOnComplete&&this.cancelPreview();var e=this.doCurrentPageComplete(!0);return e&&this.cancelPreview(),e},t.prototype.completeLastPage=function(){return this.tryComplete()},t.prototype.navigationMouseDown=function(){return this.isNavigationButtonPressed=!0,!0},t.prototype.resetNavigationButton=function(){this.isNavigationButtonPressed=!1},t.prototype.nextPageUIClick=function(){return(!this.mouseDownPage||this.mouseDownPage===this.activePage)&&(this.mouseDownPage=null,this.performNext())},t.prototype.nextPageMouseDown=function(){return this.mouseDownPage=this.activePage,this.navigationMouseDown()},t.prototype.showPreview=function(){return this.resetNavigationButton(),!(!this.isValidateOnComplete&&(this.hasErrorsOnNavigate(!0)||this.doServerValidation(!0,!0)))&&(this.showPreviewCore(),!0)},t.prototype.showPreviewCore=function(){var e={allowShowPreview:!0,allow:!0};this.onShowingPreview.fire(this,e),this.isShowingPreview=e.allowShowPreview&&e.allow},t.prototype.cancelPreview=function(e){void 0===e&&(e=null),this.isShowingPreview&&(this.gotoPageFromPreview=e,this.isShowingPreview=!1)},t.prototype.cancelPreviewByPage=function(e){this.cancelPreview(e)},t.prototype.doCurrentPageComplete=function(e){return!this.isValidatingOnServer&&(this.resetNavigationButton(),!this.hasErrorsOnNavigate(e)&&this.doCurrentPageCompleteCore(e))},t.prototype.doCurrentPageCompleteCore=function(e){return!this.doServerValidation(e)&&(e?(this.currentPage.passed=!0,this.doComplete(this.canBeCompletedByTrigger,this.completedTrigger)):(this.doNextPage(),!0))},Object.defineProperty(t.prototype,"isSinglePage",{get:function(){return"singlePage"==this.questionsOnPageMode},set:function(e){this.questionsOnPageMode=e?"singlePage":"standard"}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSingleVisibleQuestion",{get:function(){return this.isSingleVisibleQuestionVal(this.questionsOnPageMode)},enumerable:!1,configurable:!0}),t.prototype.isSingleVisibleQuestionVal=function(e){return"questionPerPage"===e||"questionOnPage"===e},Object.defineProperty(t.prototype,"questionsOnPageMode",{get:function(){return this.getPropertyValue("questionsOnPageMode")},set:function(e){this.setPropertyValue("questionsOnPageMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"firstPageIsStarted",{get:function(){return this.getPropertyValue("firstPageIsStarted")},set:function(e){this.setPropertyValue("firstPageIsStarted",e)},enumerable:!1,configurable:!0}),t.prototype.isPageStarted=function(e){return this.firstPageIsStarted&&this.pages.length>1&&this.pages[0]===e},Object.defineProperty(t.prototype,"showPreviewBeforeComplete",{get:function(){return this.getPropertyValue("showPreviewBeforeComplete")},set:function(e){this.setPropertyValue("showPreviewBeforeComplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowPreviewBeforeComplete",{get:function(){var e=this.showPreviewBeforeComplete;return"showAllQuestions"==e||"showAnsweredQuestions"==e},enumerable:!1,configurable:!0}),t.prototype.onFirstPageIsStartedChanged=function(){this.isStartedState=this.firstPageIsStarted&&this.pages.length>1,this.pageVisibilityChanged(this.pages[0],!this.isStartedState)},t.prototype.onShowingPreviewChanged=function(){this.updatePagesContainer()},t.prototype.createRootPage=function(e,t){var r=e6.createClass("page");return r.name=e,r.isPageContainer=!0,t.forEach(function(e){!e.isStartPage&&r.addElement(e)}),r},t.prototype.disposeContainerPage=function(){var e=this.pageContainerValue;[].concat(e.elements).forEach(function(t){return e.removeElement(t)}),e.dispose(),this.pageContainerValue=void 0},t.prototype.updatePagesContainer=function(){if(!this.isDesignMode){this.getAllQuestions().forEach(function(e){return e.updateElementVisibility()}),this.setPropertyValue("currentPage",void 0);var e="preview-page",t=void 0;if(this.isSinglePage){var r=this.pageContainerValue;r&&r.name===e?(t=r.elements[0],this.disposeContainerPage()):t=this.createRootPage("single-page",this.pages)}if(this.isShowingPreview&&(t=this.createRootPage(e,t?[t]:this.pages)),t&&(t.setSurveyImpl(this),this.pageContainerValue=t,this.currentPage=t),!this.isSinglePage&&!this.isShowingPreview){this.disposeContainerPage();var n=this.gotoPageFromPreview;this.gotoPageFromPreview=null,eA.isValueEmpty(n)&&this.visiblePageCount>0&&(n=this.visiblePages[this.visiblePageCount-1]),n&&(this.changeCurrentPageFromPreview=!0,this.currentPage=n,this.changeCurrentPageFromPreview=!1)}!this.currentPage&&this.visiblePageCount>0&&(this.currentPage=this.visiblePages[0]),this.pages.forEach(function(e){e.hasShown&&e.updateElementCss(!0)}),this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"currentSingleQuestion",{get:function(){return this.currentSingleQuestionValue},set:function(e){var t=this.currentSingleQuestion;if(e!==t){var r=e&&t?this.createPageChangeEventOptions(e.page,t.page,e,t):void 0;if(r&&!this.currentPageChangingFromOptions(r))return;if(this.currentSingleQuestionValue=e,e){var n=e.page;n.updateRows(),n!==this.currentPage?this.currentPage=n:this.focusFirstQuestionAutomatic&&e.focus(),this.updateButtonsVisibility(),r&&this.onCurrentPageChanged.fire(this,r)}else this.visiblePages.forEach(function(e){return e.updateRows()})}},enumerable:!1,configurable:!0}),t.prototype.onQuestionsOnPageModeChanged=function(e){if(!this.isShowingPreview&&!this.isDesignMode&&(this.currentSingleQuestion=void 0,"singlePage"===e&&this.updatePagesContainer(),this.isSinglePage&&this.updatePagesContainer(),this.isSingleVisibleQuestion)){var t=this.getAllQuestions(!0);t.length>0&&(this.currentSingleQuestion=t[0])}},t.prototype.getPageStartIndex=function(){return this.firstPageIsStarted&&this.pages.length>0?1:0},Object.defineProperty(t.prototype,"isFirstPage",{get:function(){return this.getPropertyValue("isFirstPage")}
vendor: 11,770 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastPage",{get:function(){return this.getPropertyValue("isLastPage")},enumerable:!1,configurable:!0}),t.prototype.updateButtonsVisibility=function(){this.updateIsFirstLastPageState(),this.setPropertyValue("isShowPrevButton",this.calcIsShowPrevButton()),this.setPropertyValue("isShowNextButton",this.calcIsShowNextButton()),this.setPropertyValue("isCompleteButtonVisible",this.calcIsCompleteButtonVisible()),this.setPropertyValue("isPreviewButtonVisible",this.calcIsPreviewButtonVisible()),this.setPropertyValue("isCancelPreviewButtonVisible",this.calcIsCancelPreviewButtonVisible())},Object.defineProperty(t.prototype,"isShowPrevButton",{get:function(){return this.getPropertyValue("isShowPrevButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowNextButton",{get:function(){return this.getPropertyValue("isShowNextButton")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCompleteButtonVisible",{get:function(){return this.getPropertyValue("isCompleteButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPreviewButtonVisible",{get:function(){return this.getPropertyValue("isPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCancelPreviewButtonVisible",{get:function(){return this.getPropertyValue("isCancelPreviewButtonVisible")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstElement",{get:function(){return this.getPropertyValue("isFirstElement")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLastElement",{get:function(){return this.getPropertyValue("isLastElement")},enumerable:!1,configurable:!0}),t.prototype.updateIsFirstLastPageState=function(){var e=this.currentPage;this.setPropertyValue("isFirstPage",!!e&&e===this.firstVisiblePage),this.setPropertyValue("isLastPage",!!e&&e===this.lastVisiblePage);var t=void 0,r=void 0,n=this.currentSingleQuestion;if(n){var o=this.getAllQuestions(!0),i=o.indexOf(n);i>=0&&(t=0===i,r=i===o.length-1)}this.setPropertyValue("isFirstElement",t),this.setPropertyValue("isLastElement",r)},Object.defineProperty(t.prototype,"isLastPageOrElement",{get:function(){return void 0!==this.isLastElement?this.isLastElement:this.isLastPage},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirstPageOrElement",{get:function(){return void 0!==this.isFirstElement?this.isFirstElement:this.isFirstPage},enumerable:!1,configurable:!0}),t.prototype.calcIsShowPrevButton=function(){if(this.isFirstPageOrElement||!this.showPrevButton||"running"!==this.state)return!1;if(void 0!==this.isFirstElement)return!0;var e=this.visiblePages[this.currentPageNo-1];return e&&0>=e.getMaxTimeToFinish()},t.prototype.calcIsShowNextButton=function(){return"running"===this.state&&!this.isLastPageOrElement&&!this.canBeCompletedByTrigger},t.prototype.calcIsCompleteButtonVisible=function(){var e=this.state;return this.isEditMode&&("running"===this.state&&(this.isLastPageOrElement&&!this.isShowPreviewBeforeComplete||this.canBeCompletedByTrigger)||"preview"===e)&&this.showCompleteButton},t.prototype.calcIsPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"running"==this.state&&this.isLastPageOrElement},t.prototype.calcIsCancelPreviewButtonVisible=function(){return this.isEditMode&&this.isShowPreviewBeforeComplete&&"preview"==this.state},Object.defineProperty(t.prototype,"firstVisiblePage",{get:function(){if(1===this.visiblePageCount)return this.visiblePages[0];for(var e=this.pages,t=0;t<e.length;t++)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastVisiblePage",{get:function(){if(1===this.visiblePageCount)return this.visiblePages[0];for(var e=this.pages,t=e.length-1;t>=0;t--)if(this.isPageInVisibleList(e[t]))return e[t];return null},enumerable:!1,configurable:!0}),t.prototype.doComplete=function(e,t){if(void 0===e&&(e=!1),!this.isCompleted)return this.checkOnCompletingEvent(e,t)?(this.checkOnPageTriggers(!0),this.stopTimer(),this.notifyQuestionsOnHidingContent(this.currentPage),this.isCompleted=!0,this.clearUnusedValues(),this.saveDataOnComplete(e,t),this.setCookie(),!0):(this.isCompleted=!1,!1)},t.prototype.saveDataOnComplete=function(e,t){var r=this;void 0===e&&(e=!1);var n=this.hasCookie,o=function(e){l=!0,r.setCompletedState("saving",e)},i=function(e){r.setCompletedState("error",e)},s=function(e){r.setCompletedState("success",e),r.navigateTo()},a=function(e){r.setCompletedState("","")},l=!1,u={isCompleteOnTrigger:e,completeTrigger:t,showSaveInProgress:o,showSaveError:i,showSaveSuccess:s,clearSaveMessages:a,showDataSaving:o,showDataSavingError:i,showDataSavingSuccess:s,showDataSavingClear:a};this.onComplete.fire(this,u),!n&&this.surveyPostId&&this.sendResult(),!l&&this.navigateTo()},t.prototype.checkOnCompletingEvent=function(e,t){var r={allowComplete:!0,allow:!0,isCompleteOnTrigger:e,completeTrigger:t};return this.onCompleting.fire(this,r),r.allowComplete&&r.allow},t.prototype.start=function(){return!!this.firstPageIsStarted&&(this.isCurrentPageRendering=!0,!this.checkIsPageHasErrors(this.startedPage,!0)&&(this.isStartedState=!1,this.notifyQuestionsOnHidingContent(this.pages[0]),this.startTimerFromUI(),this.onStarted.fire(this,{}),this.updateVisibleIndexes(),this.currentPage&&this.currentPage.locStrsChanged(),!0))},Object.defineProperty(t.prototype,"isValidatingOnServer",{get:function(){return this.getPropertyValue("isValidatingOnServer",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsValidatingOnServer=function(e){e!=this.isValidatingOnServer&&(this.setPropertyValue("isValidatingOnServer",e),this.onIsValidatingOnServerChanged())},t.prototype.createServerValidationOptions=function(e,t,r){var n=this,o={data:{},errors:{},survey:this,complete:function(){n.completeServerValidation(o,t,r)}};if(e&&this.isValidateOnComplete)o.data=this.data;else{for(var i=this.activePage.questions,s=0;s<i.length;s++){var a=i[s];if(a.visible){var l=this.getValue(a.getValueName());!this.isValueEmpty(l)&&(o.data[a.getValueName()]=l)}}}return o},t.prototype.onIsValidatingOnServerChanged=function(){},t.prototype.doServerValidation=function(e,t,r){var n=this;if(void 0===t&&(t=!1),!this.onServerValidateQuestions||this.onServerValidateQuestions.isEmpty||!e&&this.isValidateOnComplete)return!1;this.setIsValidatingOnServer(!0);var o="function"==typeof this.onServerValidateQuestions;return this.serverValidationEventCount=o?1:this.onServerValidateQuestions.length,o?this.onServerValidateQuestions(this,this.createServerValidationOptions(e,t,r)):this.onServerValidateQuestions.fireByCreatingOptions(this,function(){return n.createServerValidationOptions(e,t,r)}),!0},t.prototype.completeServerValidation=function(e,t,r){if(!(this.serverValidationEventCount>1)||(this.serverValidationEventCount--,!e||!e.errors||0!==Object.keys(e.errors).length)){if(this.serverValidationEventCount=0,this.setIsValidatingOnServer(!1),e||e.survey){var n=e.survey,o=!1;if(e.errors){var i=this.focusOnFirstError;for(var s in e.errors){var a=n.getQuestionByName(s);a&&a.errors&&(o=!0,a.addError(new nf(e.errors[s],this)),i&&(i=!1,a.page&&(this.currentPage=a.page),a.focus(!0)))}this.fireValidatedErrorsOnPage(this.currentPage)}!o&&(t?this.showPreviewCore():r?this.currentPage=r:n.isLastPage?n.doComplete():n.doNextPage())}}},t.prototype.doNextPage=function(){var e=this.currentPage;if(this.checkOnPageTriggers(!1),this.isCompleted)this.doComplete(!0);else if(this.sendResultOnPageNext&&this.sendResult(this.surveyPostId,this.clientId,!0),e===this.currentPage){var t=this.visiblePages,r=t.indexOf(this.currentPage);this.currentPage=t[r+1]}},t.prototype.setCompleted=function(e){this.doComplete(!0,e)},t.prototype.canBeCompleted=function(e,t){if(r9.triggers.changeNavigationButtonsOnComplete){var r,n=this.canBeCompletedByTrigger;!this.completedByTriggers&&(this.completedByTriggers={}),t?this.completedByTriggers[e.id]={trigger:e,pageId:null===(r=this.currentPage)||void 0===r?void 0:r.id}:delete this.completedByTriggers[e.id],n!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility()}},Object.defineProperty(t.prototype,"canBeCompletedByTrigger",{get:function(){if(!this.completedByTriggers)return!1;var e,t=Object.keys(this.completedByTriggers);if(0===t.length)return!1;var r=null===(e=this.currentPage)||void 0===e?void 0:e.id;if(!r)return!0;for(var n=0;n<t.length;n++)if(r===this.completedByTriggers[t[n]].pageId)return!0;return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"completedTrigger",{get:function(){if(this.canBeCompletedByTrigger){var e=Object.keys(this.completedByTriggers)[0];return this.completedByTriggers[e].trigger}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedHtml",{get:function(){var e=this.renderedCompletedHtml;return e?this.processHtml(e,"completed"):""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedCompletedBeforeHtml",{get:function(){return this.locCompletedBeforeHtml.textOrHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedLoadingHtml",{get:function(){return this.locLoadingHtml.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getProgressInfo=function(){var e=this.isDesignMode?this.pages:this.visiblePages;return rw.getProgressInfoByElements(e,!1)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.getPropertyValue("progressText","");return!e&&(this.updateProgressText(),e=this.getPropertyValue("progressText","")),e},enumerable:!1,configurable:!0}),t.prototype.updateProgressText=function(e){if(void 0===e&&(e=!1),!this.isCalculatingProgressText&&!this.isShowingPreview)(!e||"pages"!=this.progressBarType||!this.onGetProgressText.isEmpty)&&(this.isCalculatingProgressText=!0,this.setPropertyValue("progressText",this.getProgressText()),this.setPropertyValue("progressValue",this.getProgress()),this.isCalculatingProgressText=!1)},t.prototype.getProgressText=function(){if(!this.isDesignMode&&null==this.currentPage)return"";var e={questionCount:0,answeredQuestionCount:0,requiredQuestionCount:0,requiredAnsweredQuestionCount:0,text:""},t=this.progressBarType.toLowerCase();if("questions"===t||"requiredquestions"===t||"correctquestions"===t||!this.onGetProgressText.isEmpty){var r=this.getProgressInfo();e.questionCount=r.questionCount,e.answeredQuestionCount=r.answeredQuestionCount,e.requiredQuestionCount=r.requiredQuestionCount,e.requiredAnsweredQuestionCount=r.requiredAnsweredQuestionCount}return e.text=this.getProgressTextCore(e),this.onGetProgressText.fire(this,e),e.text},t.prototype.getProgressTextCore=function(e){var t=this.progressBarType.toLowerCase();if("questions"===t)return this.getLocalizationFormatString("questionsProgressText",e.answeredQuestionCount,e.questionCount);if("requiredquestions"===t)return this.getLocalizationFormatString("questionsProgressText",e.requiredAnsweredQuestionCount,e.requiredQuestionCount);if("correctquestions"===t){var r=this.getCorrectedAnswerCount();return this.getLocalizationFormatString("questionsProgressText",r,e.questionCount)}var n=this.isDesignMode?this.pages:this.visiblePages,o=n.indexOf(this.currentPage)+1;return this.getLocalizationFormatString("progressText",o,n.length)},t.prototype.getRootCss=function(){return new t$().append(this.css.root).append(this.css.rootProgress+"--"+this.progressBarType).append(this.css.rootMobile,this.isMobile).append(this.css.rootAnimationDisabled,!r9.animationEnabled).append(this.css.rootReadOnly,"display"===this.mode&&!this.isDesignMode).append(this.css.rootCompact,this.isCompact).append(this.css.rootFitToContainer,this.fitToContainer).toString()}
1,t.prototype.afterRenderSurvey=function(e){var t=this;this.destroyResizeObserver(),Array.isArray(e)&&(e=rw.GetFirstNonTextElement(e));var r=e,n=this.css.variables;if(n){var o=Number.parseFloat(eD.getComputedStyle(r).getPropertyValue(n.mobileWidth));if(o){var i=!1;this.resizeObserver=new ResizeObserver(function(e){e_.requestAnimationFrame(function(){i=!i&&!!rY(r)&&t.processResponsiveness(r.offsetWidth,o,r.offsetHeight)})}),this.resizeObserver.observe(r)}}this.onAfterRenderSurvey.fire(this,{survey:this,htmlElement:e}),this.rootElement=e,this.addScrollEventListener()},t.prototype.beforeDestroySurveyElement=function(){this.destroyResizeObserver(),this.removeScrollEventListener(),this.rootElement=void 0},t.prototype.processResponsiveness=function(e,t,r){var n=e<t,o=this.isMobile!==n;return this.setIsMobile(n),this.layoutElements.forEach(function(t){return t.processResponsiveness&&t.processResponsiveness(e)}),this.onResize.fire(this,{height:r,width:e}),o},t.prototype.triggerResponsiveness=function(e){this.getAllQuestions().forEach(function(t){t.triggerResponsiveness(e)})},t.prototype.destroyResizeObserver=function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=void 0)},t.prototype.updateQuestionCssClasses=function(e,t){this.onUpdateQuestionCssClasses.fire(this,{question:e,cssClasses:t})}
vendor: 4,232 bytes, line 1
1,t.prototype.updatePanelCssClasses=function(e,t){this.onUpdatePanelCssClasses.fire(this,{panel:e,cssClasses:t})},t.prototype.updatePageCssClasses=function(e,t){this.onUpdatePageCssClasses.fire(this,{page:e,cssClasses:t})},t.prototype.updateChoiceItemCss=function(e,t){t.question=e,this.onUpdateChoiceItemCss.fire(this,t)},t.prototype.afterRenderPage=function(e){var t=this;if(!this.isDesignMode&&!this.focusingQuestionInfo){var r=!1===this.isCurrentPageRendered;setTimeout(function(){return t.scrollToTopOnPageChange(r)},1)}this.focusQuestionInfo(),this.isCurrentPageRendered=!0,!this.onAfterRenderPage.isEmpty&&this.onAfterRenderPage.fire(this,{page:this.activePage,htmlElement:e})},t.prototype.afterRenderHeader=function(e){!this.onAfterRenderHeader.isEmpty&&this.onAfterRenderHeader.fire(this,{htmlElement:e})},t.prototype.afterRenderQuestion=function(e,t){this.onAfterRenderQuestion.fire(this,{question:e,htmlElement:t})},t.prototype.afterRenderQuestionInput=function(e,t){if(!this.onAfterRenderQuestionInput.isEmpty){var r=e.inputId,n=r9.environment.root;if(r&&(!t||t.id!==r)&&void 0!==n){var o=n.getElementById(r);o&&(t=o)}this.onAfterRenderQuestionInput.fire(this,{question:e,htmlElement:t})}},t.prototype.afterRenderPanel=function(e,t){this.onAfterRenderPanel.fire(this,{panel:e,htmlElement:t})},t.prototype.whenQuestionFocusIn=function(e){this.onFocusInQuestion.fire(this,{question:e})},t.prototype.whenPanelFocusIn=function(e){this.onFocusInPanel.fire(this,{panel:e})},t.prototype.rebuildQuestionChoices=function(){this.getAllQuestions().forEach(function(e){return e.surveyChoiceItemVisibilityChange()})},t.prototype.canChangeChoiceItemsVisibility=function(){return!this.onShowingChoiceItem.isEmpty},t.prototype.getChoiceItemVisibility=function(e,t,r){var n={question:e,item:t,visible:r};return this.onShowingChoiceItem.fire(this,n),n.visible},t.prototype.loadQuestionChoices=function(e){this.onChoicesLazyLoad.fire(this,e)},t.prototype.getChoiceDisplayValue=function(e){this.onGetChoiceDisplayValue.isEmpty?e.setItems(null):this.onGetChoiceDisplayValue.fire(this,e)},t.prototype.matrixBeforeRowAdded=function(e){this.onMatrixRowAdding.fire(this,e)},t.prototype.matrixRowAdded=function(e,t){this.onMatrixRowAdded.fire(this,{question:e,row:t})},t.prototype.matrixColumnAdded=function(e,t){this.onMatrixColumnAdded.fire(this,{question:e,column:t})},t.prototype.multipleTextItemAdded=function(e,t){this.onMultipleTextItemAdded.fire(this,{question:e,item:t})},t.prototype.getQuestionByValueNameFromArray=function(e,t,r){var n=this.getQuestionsByValueName(e);if(n){for(var o=0;o<n.length;o++){var i=n[o].getQuestionFromArray(t,r);if(i)return i}return null}},t.prototype.matrixRowRemoved=function(e,t,r){this.onMatrixRowRemoved.fire(this,{question:e,rowIndex:t,row:r})},t.prototype.matrixRowRemoving=function(e,t,r){var n={question:e,rowIndex:t,row:r,allow:!0};return this.onMatrixRowRemoving.fire(this,n),n.allow},t.prototype.matrixAllowRemoveRow=function(e,t,r){var n={question:e,rowIndex:t,row:r,allow:!0};return this.onMatrixRenderRemoveButton.fire(this,n),n.allow},t.prototype.matrixDetailPanelVisibleChanged=function(e,t,r,n){var o={question:e,rowIndex:t,row:r,visible:n,detailPanel:r.detailPanel};this.onMatrixDetailPanelVisibleChanged.fire(this,o)},t.prototype.matrixCellCreating=function(e,t){t.question=e,this.onMatrixCellCreating.fire(this,t)},t.prototype.matrixCellCreated=function(e,t){t.question=e,this.onMatrixCellCreated.fire(this,t)},t.prototype.matrixAfterCellRender=function(e,t){t.question=e,this.onAfterRenderMatrixCell.fire(this,t)},t.prototype.matrixCellValueChanged=function(e,t){t.question=e,this.onMatrixCellValueChanged.fire(this,t)},t.prototype.matrixCellValueChanging=function(e,t){t.question=e,this.onMatrixCellValueChanging.fire(this,t)},Object.defineProperty(t.prototype,"isValidateOnValueChanging",{get:function(){return"onValueChanging"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChanged",{get:function(){return"onValueChanged"===this.checkErrorsMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnValueChange",{get:function(){return this.isValidateOnValueChanged||this.isValidateOnValueChanging}
vendor: 13,020 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValidateOnComplete",{get:function(){return"onComplete"===this.checkErrorsMode||this.validationAllowSwitchPages&&!this.validationAllowComplete},enumerable:!1,configurable:!0}),t.prototype.matrixCellValidate=function(e,t){return t.question=e,this.onMatrixCellValidate.fire(this,t),t.error?new nf(t.error,this):null},t.prototype.dynamicPanelAdded=function(e,t,r){if(!this.isLoadingFromJson&&this.hasQuestionVisibleIndeces(e)&&this.updateVisibleIndexes(e.page),!this.onDynamicPanelAdded.isEmpty){var n=e.panels;void 0===t&&(t=n.length-1,r=n[t]),this.onDynamicPanelAdded.fire(this,{question:e,panel:r,panelIndex:t})}},t.prototype.dynamicPanelRemoved=function(e,t,r){for(var n=r?r.questions:[],o=0;o<n.length;o++)n[o].clearOnDeletingContainer();this.hasQuestionVisibleIndeces(e)&&this.updateVisibleIndexes(e.page),this.onDynamicPanelRemoved.fire(this,{question:e,panelIndex:t,panel:r})},t.prototype.hasQuestionVisibleIndeces=function(e){for(var t=e.getNestedQuestions(!0),r=0;r<t.length;r++)if(t[r].visibleIndex>-1)return!0;return!1},t.prototype.dynamicPanelRemoving=function(e,t,r){var n={question:e,panelIndex:t,panel:r,allow:!0};return this.onDynamicPanelRemoving.fire(this,n),n.allow},t.prototype.dynamicPanelItemValueChanged=function(e,t){t.question=e,this.onDynamicPanelValueChanged.fire(this,t)},t.prototype.dynamicPanelItemValueChanging=function(e,t){t.question=e,this.onDynamicPanelValueChanging.fire(this,t)},t.prototype.dynamicPanelGetTabTitle=function(e,t){t.question=e,this.onGetDynamicPanelTabTitle.fire(this,t)},t.prototype.dynamicPanelCurrentIndexChanged=function(e,t){t.question=e,this.onDynamicPanelCurrentIndexChanged.fire(this,t)},t.prototype.dragAndDropAllow=function(e){return this.onDragDropAllow.fire(this,e),e.allow},t.prototype.elementContentVisibilityChanged=function(e){this.currentPage&&this.currentPage.ensureRowsVisibility(),this.onElementContentVisibilityChanged.fire(this,{element:e})},t.prototype.getUpdatedPanelFooterActions=function(e,t,r){var n={question:r,panel:e,actions:t};return this.onGetPanelFooterActions.fire(this,n),n.actions},t.prototype.getUpdatedElementTitleActions=function(e,t){return e.isPage?this.getUpdatedPageTitleActions(e,t):e.isPanel?this.getUpdatedPanelTitleActions(e,t):this.getUpdatedQuestionTitleActions(e,t)},t.prototype.getTitleActionsResult=function(e,t){return e!=t.actions?t.actions:e!=t.titleActions?t.titleActions:e},t.prototype.getUpdatedQuestionTitleActions=function(e,t){var r={question:e,actions:t,titleActions:t};return this.onGetQuestionTitleActions.fire(this,r),this.getTitleActionsResult(t,r)},t.prototype.getUpdatedPanelTitleActions=function(e,t){var r={panel:e,actions:t,titleActions:t};return this.onGetPanelTitleActions.fire(this,r),this.getTitleActionsResult(t,r)},t.prototype.getUpdatedPageTitleActions=function(e,t){var r={page:e,actions:t,titleActions:t};return this.onGetPageTitleActions.fire(this,r),this.getTitleActionsResult(t,r)},t.prototype.getUpdatedMatrixRowActions=function(e,t,r){var n={question:e,actions:r,row:t};return this.onGetMatrixRowActions.fire(this,n),n.actions},t.prototype.scrollElementToTop=function(e,t,r,n,o,i,s,a){var l=this,u={element:e,question:t,page:r,elementId:n,cancel:!1,allow:!0};if(this.onScrollToTop.fire(this,u),!u.cancel&&u.allow){var c=this.getPageByElement(e);if(this.isLazyRendering&&c){var p=1,h=r9.environment.rootElement,d=this.rootElement||s||h;this.skeletonHeight&&d&&"function"==typeof d.getBoundingClientRect&&(p=d.getBoundingClientRect().height/this.skeletonHeight-1),c.forceRenderElement(e,function(){l.suspendLazyRendering(),rw.ScrollElementToTop(u.elementId,o,i,function(){l.releaseLazyRendering(),rD(c.id),a&&a()})},p)}else if(e.isPage&&!this.isSinglePage&&!this.isDesignMode&&this.rootElement){var f=this.rootElement.querySelector(r$(this.css.rootWrapper));rw.ScrollElementToViewCore(f,!1,o,i,a)}else rw.ScrollElementToTop(u.elementId,o,i,a)}},t.prototype.chooseFiles=function(e,t,r){this.onOpenFileChooser.isEmpty?r1(e,t):this.onOpenFileChooser.fire(this,{input:e,element:r&&r.element||this.survey,elementType:r&&r.elementType,item:r&&r.item,propertyName:r&&r.propertyName,callback:t,context:r})},t.prototype.uploadFiles=function(e,t,r,n){var o=this;this.onUploadFiles.isEmpty?n("error",this.getLocString("noUploadFilesHandler")):this.taskManager.runTask("file",function(i){o.onUploadFiles.fire(o,{question:e,name:t,files:r||[],callback:function(e,t){n(e,t),i()}})}),this.surveyPostId&&this.uploadFilesCore(t,r,n)},t.prototype.downloadFile=function(e,t,r,n){this.onDownloadFile.isEmpty&&n&&n("skipped",r.content||r),this.onDownloadFile.fire(this,{question:e,name:t,content:r.content||r,fileValue:r,callback:n})},t.prototype.clearFiles=function(e,t,r,n,o){this.onClearFiles.isEmpty&&o&&o("success",r),this.onClearFiles.fire(this,{question:e,name:t,value:r,fileName:n,callback:o})},t.prototype.updateChoicesFromServer=function(e,t,r){var n={question:e,choices:t,serverResult:r};return this.onLoadChoicesFromServer.fire(this,n),n.choices},t.prototype.loadedChoicesFromServer=function(e){this.locStrsChanged()},t.prototype.createSurveyService=function(){return new oz},t.prototype.uploadFilesCore=function(e,t,r){var n=this,o=[];t.forEach(function(e){r&&r("uploading",e),n.createSurveyService().sendFile(n.surveyPostId,e,function(n,i){n?(o.push({content:i,file:e}),o.length===t.length&&r&&r("success",o)):r&&r("error",{response:i,file:e})})})},t.prototype.getPage=function(e){return this.pages[e]},t.prototype.addPage=function(e,t){void 0===t&&(t=-1),null!=e&&(t<0||t>=this.pages.length?this.pages.push(e):this.pages.splice(t,0,e))},t.prototype.addNewPage=function(e,t){void 0===e&&(e=null),void 0===t&&(t=-1);var r=this.createNewPage(e);return this.addPage(r,t),r},t.prototype.removePage=function(e){var t=this.pages.indexOf(e);!(t<0)&&(this.pages.splice(t,1),this.currentPage==e&&(this.currentPage=this.pages.length>0?this.pages[0]:null))},t.prototype.getQuestionByName=function(e,t){if(void 0===t&&(t=!1),!e)return null;t&&(e=e.toLowerCase());var r=(t?this.questionHashes.namesInsensitive:this.questionHashes.names)[e];return r?r[0]:null},t.prototype.findQuestionByName=function(e){return this.getQuestionByName(e)},t.prototype.getEditingSurveyElement=function(){return this.editingObjValue},t.prototype.getQuestionByValueName=function(e,t){void 0===t&&(t=!1);var r=this.getQuestionsByValueName(e,t);return r?r[0]:null},t.prototype.getQuestionsByValueName=function(e,t){void 0===t&&(t=!1);var r=(t?this.questionHashes.valueNamesInsensitive:this.questionHashes.valueNames)[e];return r?r:null},t.prototype.getCalculatedValueByName=function(e){for(var t=0;t<this.calculatedValues.length;t++)if(e==this.calculatedValues[t].name)return this.calculatedValues[t];return null},t.prototype.getQuestionsByNames=function(e,t){void 0===t&&(t=!1);var r=[];if(!e)return r;for(var n=0;n<e.length;n++)if(e[n]){var o=this.getQuestionByName(e[n],t);o&&r.push(o)}return r},t.prototype.getPageByElement=function(e){for(var t=0;t<this.pages.length;t++){var r=this.pages[t];if(r.containsElement(e))return r}return null},t.prototype.getPageByQuestion=function(e){return this.getPageByElement(e)},t.prototype.getPageByName=function(e){for(var t=0;t<this.pages.length;t++)if(this.pages[t].name==e)return this.pages[t];return null},t.prototype.getPagesByNames=function(e){var t=[];if(!e)return t;for(var r=0;r<e.length;r++)if(e[r]){var n=this.getPageByName(e[r]);n&&t.push(n)}return t},t.prototype.getAllQuestions=function(e,t,r){void 0===e&&(e=!1),void 0===t&&(t=!1),void 0===r&&(r=!1),r&&(t=!1);for(var n=[],o=0;o<this.pages.length;o++)this.pages[o].addQuestionsToList(n,e,t);if(!r)return n;var i=[];return n.forEach(function(t){i.push(t),t.getNestedQuestions(e).forEach(function(e){return i.push(e)})}),i},t.prototype.getQuizQuestions=function(){for(var e=[],t=this.getPageStartIndex(),r=t;r<this.pages.length;r++)if(this.pages[r].isVisible){for(var n=this.pages[r].questions,o=0;o<n.length;o++){var i=n[o];i.quizQuestionCount>0&&e.push(i)}}return e},t.prototype.getPanelByName=function(e,t){void 0===t&&(t=!1);var r=this.getAllPanels();t&&(e=e.toLowerCase());for(var n=0;n<r.length;n++){var o=r[n].name;if(t&&(o=o.toLowerCase()),o==e)return r[n]}return null},t.prototype.getAllPanels=function(e,t){void 0===e&&(e=!1),void 0===t&&(t=!1);for(var r=[],n=0;n<this.pages.length;n++)this.pages[n].addPanelsIntoList(r,e,t);return r},t.prototype.createNewPage=function(e){var t=e6.createClass("page");return t.name=e,t},t.prototype.getValueChangeReason=function(){return this.isSettingValueOnExpression?"expression":this.isSettingValueFromTrigger?"trigger":void 0},t.prototype.questionOnValueChanging=function(e,t,r){if(this.editingObj){var n=e6.findProperty(this.editingObj.getType(),e);n&&(t=n.settingValue(this.editingObj,t))}if(this.onValueChanging.isEmpty)return t;var o={name:e,question:this.getQuestionByValueName(r||e),value:this.getUnbindValue(t),oldValue:this.getValue(e),reason:this.getValueChangeReason()};return this.onValueChanging.fire(this,o),o.value},t.prototype.updateQuestionValue=function(e,t){if(!this.isLoadingFromJson){var r=this.getQuestionsByValueName(e);if(r)for(var n=0;n<r.length;n++){var o=r[n].value;(o===t&&Array.isArray(o)&&this.editingObj||!this.isTwoValueEquals(o,t))&&r[n].updateValueFromSurvey(t,!1)}}},t.prototype.checkQuestionErrorOnValueChanged=function(e){!this.isNavigationButtonPressed&&(this.isValidateOnValueChanged||e.getAllErrors().length>0)&&this.checkQuestionErrorOnValueChangedCore(e)},t.prototype.checkQuestionErrorOnValueChangedCore=function(e){var t=e.getAllErrors().length,r=!e.validate(!0,{isOnValueChanged:!this.isValidateOnValueChanging});return e.page&&this.isValidateOnValueChange&&(t>0||e.getAllErrors().length>0)&&this.fireValidatedErrorsOnPage(e.page),r},t.prototype.checkErrorsOnValueChanging=function(e,t){if(this.isLoadingFromJson)return!1;var r=this.getQuestionsByValueName(e);if(!r)return!1;for(var n=!1,o=0;o<r.length;o++){var i=r[o];!this.isTwoValueEquals(i.valueForSurvey,t)&&(i.value=t),this.checkQuestionErrorOnValueChangedCore(i)&&(n=!0),n=n||i.errors.length>0}return n},t.prototype.fireOnValueChanged=function(e,t,r){this.onValueChanged.fire(this,{name:e,question:r,value:t,reason:this.getValueChangeReason()})},t.prototype.notifyQuestionOnValueChanged=function(e,t,r){if(!this.isLoadingFromJson){var n=this.getQuestionsByValueName(e);if(n)for(var o=0;o<n.length;o++){var i=n[o];this.checkQuestionErrorOnValueChanged(i),i.onSurveyValueChanged(t)}this.fireOnValueChanged(e,t,r?this.getQuestionByName(r):void 0),!this.isDisposed&&(this.checkElementsBindings(e,t),this.notifyElementsOnAnyValueOrVariableChanged(e,r))}},t.prototype.checkElementsBindings=function(e,t){this.isRunningElementsBindings=!0;for(var r=0;r<this.pages.length;r++)this.pages[r].checkBindings(e,t);this.isRunningElementsBindings=!1,this.updateVisibleIndexAfterBindings&&(this.updateVisibleIndexes(),this.updateVisibleIndexAfterBindings=!1)},t.prototype.notifyElementsOnAnyValueOrVariableChanged=function(e,t){if("processing"!==this.isEndLoadingFromJson){if(this.isRunningConditions){this.conditionNotifyElementsOnAnyValueOrVariableChanged=!0;return}for(var r=0;r<this.pages.length;r++)this.pages[r].onAnyValueChanged(e,t);!this.isEndLoadingFromJson&&this.locStrsChanged()}},t.prototype.updateAllQuestionsValue=function(e){for(var t=this.getAllQuestions(),r=0;r<t.length;r++){var n=t[r],o=n.getValueName();n.updateValueFromSurvey(this.getValue(o),e),n.requireUpdateCommentValue&&n.updateCommentFromSurvey(this.getComment(o))}},t.prototype.notifyAllQuestionsOnValueChanged=function(){for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].onSurveyValueChanged(this.getValue(e[t].getValueName()))},t.prototype.checkOnPageTriggers=function(e){for(var t=this.getCurrentPageQuestions(!0),r={},n=0;n<t.length;n++){var o=t[n].getValueName();r[o]=this.getValue(o)}this.addCalculatedValuesIntoFilteredValues(r),this.checkTriggers(r,!0,e)},t.prototype.getCurrentPageQuestions=function(e){void 0===e&&(e=!1);var t=[],r=this.currentPage;if(!r)return t;for(var n=0;n<r.questions.length;n++){var o=r.questions[n];(e||o.visible)&&o.name&&t.push(o)}return t},t.prototype.checkTriggers=function(e,t,r,n){if(void 0===r&&(r=!1),!this.isCompleted&&0!=this.triggers.length&&!this.isDisplayMode){if(this.isTriggerIsRunning){for(var o in this.triggerValues=this.getFilteredValues(),e)this.triggerKeys[o]=e[o];return}var i=!1;if(!r&&n&&this.hasRequiredValidQuestionTrigger){var s=this.getQuestionByValueName(n);i=s&&!s.validate(!1)}this.isTriggerIsRunning=!0,this.triggerKeys=e,this.triggerValues=this.getFilteredValues();for(var a=this.getFilteredProperties(),l=this.canBeCompletedByTrigger,u=0;u<this.triggers.length;u++){var c=this.triggers[u];(!i||!c.requireValidQuestion)&&c.checkExpression(t,r,this.triggerKeys,this.triggerValues,a)}l!==this.canBeCompletedByTrigger&&this.updateButtonsVisibility(),this.isTriggerIsRunning=!1}},t.prototype.checkTriggersAndRunConditions=function(e,t,r){var n={};n[e]={newValue:t,oldValue:r}
1,this.runConditionOnValueChanged(e,t),this.checkTriggers(n,!1,!1,e)},Object.defineProperty(t.prototype,"hasRequiredValidQuestionTrigger",{get:function(){for(var e=0;e<this.triggers.length;e++)if(this.triggers[e].requireValidQuestion)return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.doElementsOnLoad=function(){for(var e=0;e<this.pages.length;e++)this.pages[e].onSurveyLoad()},Object.defineProperty(t.prototype,"isRunningConditions",{get:function(){return!!this.conditionValues},enumerable:!1,configurable:!0}),t.prototype.runExpressions=function(){this.runConditions()},t.prototype.runConditions=function(){if(!this.isCompleted&&"processing"!==this.isEndLoadingFromJson&&!this.isRunningConditions){this.conditionValues=this.getFilteredValues();var e=this.getFilteredProperties(),t=this.pages.indexOf(this.currentPage);this.runConditionsCore(e),this.checkIfNewPagesBecomeVisible(t),this.conditionValues=null,this.isValueChangedOnRunningCondition&&this.conditionRunnerCounter<r9.maxConditionRunCountOnValueChanged?(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter++,this.runConditions()):(this.isValueChangedOnRunningCondition=!1,this.conditionRunnerCounter=0,this.conditionUpdateVisibleIndexes&&(this.conditionUpdateVisibleIndexes=!1,this.updateVisibleIndexes()),this.conditionNotifyElementsOnAnyValueOrVariableChanged&&(this.conditionNotifyElementsOnAnyValueOrVariableChanged=!1,this.notifyElementsOnAnyValueOrVariableChanged("")))}},t.prototype.runConditionOnValueChanged=function(e,t){this.isRunningConditions?(this.conditionValues[e]=t,this.questionTriggersKeys&&(this.questionTriggersKeys[e]=t),this.isValueChangedOnRunningCondition=!0):(this.questionTriggersKeys={},this.questionTriggersKeys[e]=t,this.runConditions(),this.runQuestionsTriggers(e,t),this.questionTriggersKeys=void 0)},t.prototype.runConditionsCore=function(t){for(var r=this.pages,n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].resetCalculation();for(var n=0;n<this.calculatedValues.length;n++)this.calculatedValues[n].doCalculation(this.calculatedValues,this.conditionValues,t);e.prototype.runConditionCore.call(this,this.conditionValues,t);for(var o=0;o<r.length;o++)r[o].runCondition(this.conditionValues,t)},t.prototype.runQuestionsTriggers=function(e,t){var r=this;!this.isDisplayMode&&!this.isDesignMode&&this.getAllQuestions().forEach(function(n){n.runTriggers(e,t,r.questionTriggersKeys)})},t.prototype.checkIfNewPagesBecomeVisible=function(e){var t=this.pages.indexOf(this.currentPage);if(!(t<=e+1)){for(var r=e+1;r<t;r++)if(this.pages[r].isVisible){this.currentPage=this.pages[r];break}}},t.prototype.sendResult=function(e,t,r){var n=this;if(void 0===e&&(e=null),void 0===t&&(t=null),void 0===r&&(r=!1),!this.isEditMode)return;if(r&&this.onPartialSend&&this.onPartialSend.fire(this,null),!e&&this.surveyPostId&&(e=this.surveyPostId),!!e){if(t&&(this.clientId=t),!r||this.clientId){var o=this.createSurveyService();o.locale=this.getLocale();var i=this.surveyShowDataSaving||!r&&o.isSurveJSIOService;i&&this.setCompletedState("saving",""),o.sendResult(e,this.data,function(e,t,r){(i||o.isSurveJSIOService)&&(e?n.setCompletedState("success",""):n.setCompletedState("error",t));n.onSendResult.fire(n,{success:e,response:t,request:r})},this.clientId,r)}}},t.prototype.getResult=function(e,t){var r=this;this.createSurveyService().getResult(e,t,function(e,t,n,o){r.onGetResult.fire(r,{success:e,data:t,dataList:n,response:o})})},t.prototype.loadSurveyFromService=function(e,t){void 0===e&&(e=null),void 0===t&&(t=null),e&&(this.surveyId=e),t&&(this.clientId=t);var r=this;this.isLoading=!0,this.onLoadingSurveyFromService(),t?this.createSurveyService().getSurveyJsonAndIsCompleted(this.surveyId,this.clientId,function(e,t,n,o){e&&(r.isCompletedBefore="completed"==n,r.loadSurveyFromServiceJson(t)),r.isLoading=!1}):this.createSurveyService().loadSurvey(this.surveyId,function(e,t,n){e&&r.loadSurveyFromServiceJson(t),r.isLoading=!1})},t.prototype.loadSurveyFromServiceJson=function(e){e&&(this.fromJSON(e),this.notifyAllQuestionsOnValueChanged(),this.onLoadSurveyFromService(),this.onLoadedSurveyFromService.fire(this,{}))},t.prototype.onLoadingSurveyFromService=function(){},t.prototype.onLoadSurveyFromService=function(){},t.prototype.resetVisibleIndexes=function(){for(var e=this.getAllQuestions(!0),t=0;t<e.length;t++)e[t].setVisibleIndex(-1);this.updateVisibleIndexes()},t.prototype.updateVisibleIndexes=function(e){if(!this.isLoadingFromJson&&!this.isEndLoadingFromJson){if(this.isRunningConditions&&this.onQuestionVisibleChanged.isEmpty&&this.onPageVisibleChanged.isEmpty){this.conditionUpdateVisibleIndexes=!0;return}if(this.isRunningElementsBindings){this.updateVisibleIndexAfterBindings=!0;return}this.updatePageVisibleIndexes(),this.updatePageElementsVisibleIndexes(e),this.updateProgressText(!0)}},t.prototype.updatePageElementsVisibleIndexes=function(e){if("onPage"==this.showQuestionNumbers){for(var t=e?[e]:this.visiblePages,r=0;r<t.length;r++)t[r].setVisibleIndex(0)}else{for(var n=this.getStartVisibleIndex(),o=0;o<this.pages.length;o++)n+=this.pages[o].setVisibleIndex(n)}},t.prototype.getStartVisibleIndex=function(){return"on"==this.showQuestionNumbers?0:-1},t.prototype.updatePageVisibleIndexes=function(){this.updateButtonsVisibility();for(var e=0,t=0;t<this.pages.length;t++){var r=this.pages[t],n=r.isVisible&&(t>0||!r.isStartPage);r.visibleIndex=n?e++:-1,r.num=n?r.visibleIndex+1:-1}},t.prototype.fromJSON=function(e,t){if(e){this.questionHashesClear(),this.jsonErrors=null,this.sjsVersion=void 0;var r=new e3;r.toObject(e,this,t),r.errors.length>0&&(this.jsonErrors=r.errors),this.onStateAndCurrentPageChanged(),this.updateState(),this.sjsVersion&&r9.version&&eA.compareVerions(this.sjsVersion,r9.version)>
10&&te.warn("The version of the survey JSON schema (v"+this.sjsVersion+") is newer than your current Form Library version ("+r9.version+"). Please update the Form Library to make sure that all survey features work as expected.")}},t.prototype.startLoadingFromJson=function(t){e.prototype.startLoadingFromJson.call(this,t),t&&t.locale&&(this.locale=t.locale)},t.prototype.setJsonObject=function(e){this.fromJSON(e)},t.prototype.endLoadingFromJson=function(){this.isEndLoadingFromJson="processing",this.onFirstPageIsStartedChanged(),e.prototype.endLoadingFromJson.call(this),this.hasCookie&&(this.isCompletedBefore=!0),this.doElementsOnLoad(),this.onQuestionsOnPageModeChanged("standard"),this.isEndLoadingFromJson="conditions",this.runConditions(),this.notifyElementsOnAnyValueOrVariableChanged(""),this.isEndLoadingFromJson=null,this.updateVisibleIndexes(),this.updateHasLogo(),this.updateRenderBackgroundImage(),this.updateCurrentPage(),this.hasDescription=!!this.description,this.titleIsEmpty=this.locTitle.isEmpty,this.setCalculatedWidthModeUpdater()},t.prototype.updateNavigationCss=function(){this.navigationBar&&(this.updateNavigationBarCss(),this.updateNavigationItemCssCallback&&this.updateNavigationItemCssCallback())},t.prototype.updateNavigationBarCss=function(){var e=this.navigationBar;e.cssClasses=this.css.actionBar,e.containerCss=this.css.footer},t.prototype.createNavigationBar=function(){var e=new tZ;return e.setItems(this.createNavigationActions()),e},t.prototype.createNavigationActions=function(){var e=this,t="sv-nav-btn",r=new ra({id:"sv-nav-start",visible:new tB(function(){return e.isShowStartingPage}),visibleIndex:10,locTitle:this.locStartSurveyText,action:function(){return e.start()},component:t}),n=new ra({id:"sv-nav-prev",visible:new tB(function(){return e.isShowPrevButton}),visibleIndex:20,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPagePrevText,action:function(){return e.performPrevious()},component:t}),o=new ra({id:"sv-nav-next",visible:new tB(function(){return e.isShowNextButton}),visibleIndex:30,data:{mouseDown:function(){return e.nextPageMouseDown()}},locTitle:this.locPageNextText,action:function(){return e.nextPageUIClick()},component:t}),i=new ra({id:"sv-nav-preview",visible:new tB(function(){return e.isPreviewButtonVisible}),visibleIndex:40,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locPreviewText,action:function(){return e.showPreview()},component:t}),s=new ra({id:"sv-nav-complete",visible:new tB(function(){return e.isCompleteButtonVisible}),visibleIndex:50,data:{mouseDown:function(){return e.navigationMouseDown()}},locTitle:this.locCompleteText,action:function(){return e.taskManager.waitAndExecute(function(){return e.tryComplete()})},component:t});return this.updateNavigationItemCssCallback=function(){r.innerCss=e.cssNavigationStart,n.innerCss=e.cssNavigationPrev,o.innerCss=e.cssNavigationNext,i.innerCss=e.cssNavigationPreview,s.innerCss=e.cssNavigationComplete},[r,n,o,i,s]},t.prototype.onBeforeRunConstructor=function(){},t.prototype.onBeforeCreating=function(){},t.prototype.onCreating=function(){},t.prototype.getProcessedTextValue=function(e){if(this.getProcessedTextValueCore(e),!this.onProcessTextValue.isEmpty){var t=this.isValueEmpty(e.value);this.onProcessTextValue.fire(this,e),e.isExists=e.isExists||t&&!this.isValueEmpty(e.value)}},t.prototype.getBuiltInVariableValue=function(e){if("pageno"===e){var t=this.currentPage;return null!=t?this.visiblePages.indexOf(t)+1:0}return"pagecount"===e?this.visiblePageCount:"correctedanswers"===e||"correctanswers"===e||"correctedanswercount"===e?this.getCorrectedAnswerCount():"incorrectedanswers"===e||"incorrectanswers"===e||"incorrectedanswercount"===e?this.getInCorrectedAnswerCount():"questioncount"===e?this.getQuizQuestionCount():void 0},t.prototype.getProcessedTextValueCore=function(e){var t=e.name.toLocaleLowerCase();if(-1===["no","require","title"].indexOf(t)){var r=this.getBuiltInVariableValue(t);if(void 0!==r){e.isExists=!0,e.value=r;return}if("locale"===t){e.isExists=!0,e.value=this.locale?this.locale:eN.defaultLocale;return}var n=this.getVariable(t);if(void 0!==n){e.isExists=!0,e.value=n;return}var o=this.getFirstName(t);if(o){var i=o.useDisplayValuesInDynamicTexts;e.isExists=!0;var s=o.getValueName().toLowerCase();t=(t=s+t.substring(s.length)).toLocaleLowerCase();var a={};a[s]=e.returnDisplayValue&&i?o.getDisplayValue(!1,void 0):o.value,e.value=new e9().getValue(t,a);return}this.getProcessedValuesWithoutQuestion(e)}},t.prototype.getProcessedValuesWithoutQuestion=function(e){var t=this.getValue(e.name);if(void 0!==t){e.isExists=!0,e.value=t;return}var r=new e9,n=r.getFirstName(e.name);if(n!==e.name){var o={},i=this.getValue(n);eA.isValueEmpty(i)&&(i=this.getVariable(n)),!eA.isValueEmpty(i)&&(o[n]=i,e.value=r.getValue(e.name,o),e.isExists=r.hasValue(e.name,o))}},t.prototype.getFirstName=function(e){var t;e=e.toLowerCase();do t=this.getQuestionByValueName(e,!0),e=this.reduceFirstName(e);while(!t&&!!e);return t},t.prototype.reduceFirstName=function(e){var t=e.lastIndexOf("."),r=e.lastIndexOf("[");if(t<0&&r<0)return"";var n=Math.max(t,r);return e.substring(0,n)},t.prototype.clearUnusedValues=function(){this.isClearingUnsedValues=!0;for(var e=this.getAllQuestions(),t=0;t<e.length;t++)e[t].clearUnusedValues();this.clearInvisibleQuestionValues(),this.isClearingUnsedValues=!1},t.prototype.hasVisibleQuestionByValueName=function(e){var t=this.getQuestionsByValueName(e);
1if(!t)return!1;for(var r=0;r<t.length;r++){var n=t[r];if(n.isVisible&&n.isParentVisible&&!n.parentQuestion)return!0}return!1},t.prototype.questionsByValueName=function(e){var t=this.getQuestionsByValueName(e);return t||[]},t.prototype.clearInvisibleQuestionValues=function(){for(var e="none"===this.clearInvisibleValues?"none":"onComplete",t=this.getAllQuestions(),r=0;r<t.length;r++)t[r].clearValueIfInvisible(e)},t.prototype.getVariable=function(e){if(!e)return null;e=e.toLowerCase();var t=this.variablesHash[e];return this.isValueEmpty(t)?(e.indexOf(".")>-1||e.indexOf("[")>-1)&&new e9().hasValue(e,this.variablesHash)?new e9().getValue(e,this.variablesHash):t:t},t.prototype.setVariable=function(e,t){if(e){var r=this.getVariable(e);this.valuesHash&&delete this.valuesHash[e],e=e.toLowerCase(),this.variablesHash[e]=t,this.notifyElementsOnAnyValueOrVariableChanged(e),!eA.isTwoValueEquals(r,t)&&(this.checkTriggersAndRunConditions(e,t,r),this.onVariableChanged.fire(this,{name:e,value:t}))}},t.prototype.getVariableNames=function(){var e=[];for(var t in this.variablesHash)e.push(t);return e},t.prototype.getUnbindValue=function(e){return this.editingObj?e:eA.getUnbindValue(e)},t.prototype.getValue=function(e){if(!e||0==e.length)return null;var t=this.getDataValueCore(this.valuesHash,e);return this.getUnbindValue(t)},t.prototype.setValue=function(e,t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!0);var i=t;if(n&&(i=this.questionOnValueChanging(e,t)),!(this.isValidateOnValueChanging&&this.checkErrorsOnValueChanging(e,i))){if(!(!this.editingObj&&this.isValueEqual(e,i)&&this.isTwoValueEquals(i,t))){var s=this.getValue(e);this.isValueEmpyOnSetValue(e,i)?this.deleteDataValueCore(this.valuesHash,e):(i=this.getUnbindValue(i),this.setDataValueCore(this.valuesHash,e,i)),this.updateOnSetValue(e,i,s,r,n,o)}}},t.prototype.isValueEmpyOnSetValue=function(e,t){return!!this.isValueEmpty(t,!1)&&(!this.editingObj||null==t||this.editingObj.getDefaultPropertyValue(e)===t)},t.prototype.updateOnSetValue=function(e,t,r,n,o,i){void 0===n&&(n=!1),void 0===o&&(o=!0),this.updateQuestionValue(e,t),!0!==n&&!this.isDisposed&&!this.isRunningElementsBindings&&(i=i||e,this.checkTriggersAndRunConditions(e,t,r),o&&this.notifyQuestionOnValueChanged(e,t,i),"text"!==n&&this.tryGoNextPageAutomatic(e))},t.prototype.isValueEqual=function(e,t){(""===t||void 0===t)&&(t=null);var r=this.getValue(e);return((""===r||void 0===r)&&(r=null),null===t||null===r)?t===r:this.isTwoValueEquals(t,r)},t.prototype.doOnPageAdded=function(e){if(e.setSurveyImpl(this),!e.name&&(e.name=this.generateNewName(this.pages,"page")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(),!this.runningPages){!this.isLoadingFromJson&&(this.updateProgressText(),this.updateCurrentPage());this.onPageAdded.fire(this,{page:e})}},t.prototype.doOnPageRemoved=function(e){e.setSurveyImpl(null),!this.runningPages&&(e===this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.updateProgressText(),this.updateLazyRenderingRowsOnRemovingElements())},t.prototype.generateNewName=function(e,t){for(var r={},n=0;n<e.length;n++)r[e[n].name]=!0;for(var o=1;r[t+o];)o++;return t+o},t.prototype.tryGoNextPageAutomatic=function(e){var t=this;if(this.isEndLoadingFromJson||!this.goNextPageAutomatic||!this.currentPage)return;var r=this.getQuestionByValueName(e);if(!r||r&&(!r.visible||!r.supportGoNextPageAutomatic())||!r.validate(!1)&&!r.supportGoNextPageError())return;if(this.currentSingleQuestion){var n=this.currentSingleQuestion;oW.safeTimeOut(function(){n===t.currentSingleQuestion&&(t.isLastElement?t.allowCompleteSurveyAutomatic&&t.tryCompleteOrShowPreview():t.performNext())},r9.autoAdvanceDelay)}var o=this.getCurrentPageQuestions();if(0>o.indexOf(r))return;for(var i=0;i<o.length;i++)if(o[i].hasInput&&o[i].isEmpty())return;if(!this.isLastPage||!0===this.goNextPageAutomatic&&!!this.allowCompleteSurveyAutomatic){if(!this.checkIsCurrentPageHasErrors(!1)){var s=this.currentPage;oW.safeTimeOut(function(){s===t.currentPage&&(t.isLastPage?t.tryCompleteOrShowPreview():t.nextPage())},r9.autoAdvanceDelay)}}},t.prototype.tryCompleteOrShowPreview=function(){this.isShowPreviewBeforeComplete?this.showPreview():this.tryComplete()},t.prototype.getComment=function(e){return this.getValue(e+this.commentSuffix)||""},t.prototype.setComment=function(e,t,r){if(void 0===r&&(r=!1),!t&&(t=""),!this.isTwoValueEquals(t,this.getComment(e))){var n=e+this.commentSuffix;t=this.questionOnValueChanging(n,t,e),this.isValueEmpty(t)?this.deleteDataValueCore(this.valuesHash,n):this.setDataValueCore(this.valuesHash,n,t);var o=this.getQuestionsByValueName(e);
vendor: 9,549 bytes, line 1
1if(o)for(var i=0;i<o.length;i++)o[i].updateCommentFromSurvey(t),this.checkQuestionErrorOnValueChanged(o[i]);!r&&this.checkTriggersAndRunConditions(e,this.getValue(e),void 0),"text"!==r&&this.tryGoNextPageAutomatic(e);var s=this.getQuestionByValueName(e);s&&(this.fireOnValueChanged(n,t,s),s.comment=t,s.comment!=t&&(s.comment=t))}},t.prototype.clearValue=function(e){this.setValue(e,null),this.setComment(e,null)},Object.defineProperty(t.prototype,"clearValueOnDisableItems",{get:function(){return this.getPropertyValue("clearValueOnDisableItems",!1)},set:function(e){this.setPropertyValue("clearValueOnDisableItems",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionClearIfInvisible=function(e){return this.isShowingPreview||this.runningPages?"none":"default"!==e?e:this.clearInvisibleValues},t.prototype.questionVisibilityChanged=function(e,t,r){r&&this.updateVisibleIndexes(e.page),this.onQuestionVisibleChanged.fire(this,{question:e,name:e.name,visible:t})},t.prototype.pageVisibilityChanged=function(e,t){!this.isLoadingFromJson&&((t&&!this.currentPage||e===this.currentPage)&&this.updateCurrentPage(),this.updateVisibleIndexes(),this.onPageVisibleChanged.fire(this,{page:e,visible:t}))},t.prototype.panelVisibilityChanged=function(e,t){this.updateVisibleIndexes(e.page),this.onPanelVisibleChanged.fire(this,{panel:e,visible:t})},t.prototype.questionCreated=function(e){this.onQuestionCreated.fire(this,{question:e})},t.prototype.questionAdded=function(e,t,r,n){!e.name&&(e.name=this.generateNewName(this.getAllQuestions(!1,!0),"question")),e.page&&this.questionHashesAdded(e),!this.isLoadingFromJson&&(!this.currentPage&&this.updateCurrentPage(),this.updateVisibleIndexes(e.page),this.setCalculatedWidthModeUpdater()),this.canFireAddElement()&&this.onQuestionAdded.fire(this,{question:e,name:e.name,index:t,parent:r,page:n,parentPanel:r,rootPanel:n})},t.prototype.canFireAddElement=function(){return!this.isMovingQuestion||this.isDesignMode&&!r9.supportCreatorV2},t.prototype.questionRemoved=function(e){this.questionHashesRemoved(e,e.name,e.getValueName()),this.updateVisibleIndexes(e.page),this.onQuestionRemoved.fire(this,{question:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.questionRenamed=function(e,t,r){this.questionHashesRemoved(e,t,r),this.questionHashesAdded(e)},t.prototype.questionHashesClear=function(){this.questionHashes.names={},this.questionHashes.namesInsensitive={},this.questionHashes.valueNames={},this.questionHashes.valueNamesInsensitive={}},t.prototype.questionHashesPanelAdded=function(e){if(!this.isLoadingFromJson){for(var t=e.questions,r=0;r<t.length;r++)this.questionHashesAdded(t[r])}},t.prototype.questionHashesAdded=function(e){this.questionHashAddedCore(this.questionHashes.names,e,e.name),this.questionHashAddedCore(this.questionHashes.namesInsensitive,e,e.name.toLowerCase()),this.questionHashAddedCore(this.questionHashes.valueNames,e,e.getValueName()),this.questionHashAddedCore(this.questionHashes.valueNamesInsensitive,e,e.getValueName().toLowerCase())},t.prototype.questionHashesRemoved=function(e,t,r){t&&(this.questionHashRemovedCore(this.questionHashes.names,e,t),this.questionHashRemovedCore(this.questionHashes.namesInsensitive,e,t.toLowerCase())),r&&(this.questionHashRemovedCore(this.questionHashes.valueNames,e,r),this.questionHashRemovedCore(this.questionHashes.valueNamesInsensitive,e,r.toLowerCase()))},t.prototype.questionHashAddedCore=function(e,t,r){var n=e[r];if(n){var n=e[r];0>n.indexOf(t)&&n.push(t)}else e[r]=[t]},t.prototype.questionHashRemovedCore=function(e,t,r){var n=e[r];if(n){var o=n.indexOf(t);o>-1&&n.splice(o,1),0==n.length&&delete e[r]}},t.prototype.panelAdded=function(e,t,r,n){!e.name&&(e.name=this.generateNewName(this.getAllPanels(!1,!0),"panel")),this.questionHashesPanelAdded(e),this.updateVisibleIndexes(e.page),this.canFireAddElement()&&this.onPanelAdded.fire(this,{panel:e,name:e.name,index:t,parent:r,page:n,parentPanel:r,rootPanel:n})},t.prototype.panelRemoved=function(e){this.updateVisibleIndexes(e.page),this.onPanelRemoved.fire(this,{panel:e,name:e.name}),this.updateLazyRenderingRowsOnRemovingElements()},t.prototype.validateQuestion=function(e){if(this.onValidateQuestion.isEmpty)return null;var t={name:e.name,question:e,value:e.value,error:null};return this.onValidateQuestion.fire(this,t),t.error?new nf(t.error,this):null},t.prototype.validatePanel=function(e){if(this.onValidatePanel.isEmpty)return null;var t={name:e.name,panel:e,error:null};return this.onValidatePanel.fire(this,t),t.error?new nf(t.error,this):null},t.prototype.processHtml=function(e,t){!t&&(t="");var r={html:e,reason:t};return this.onProcessHtml.fire(this,r),this.processText(r.html,!0)},t.prototype.processText=function(e,t){return this.processTextEx({text:e,returnDisplayValue:t,doEncoding:!1}).text},t.prototype.processTextEx=function(e){var t=void 0===e.doEncoding?r9.web.encodeUrlParams:e.doEncoding,r=e.text;(e.runAtDesign||!this.isDesignMode)&&(r=this.textPreProcessor.process(r,!0===e.returnDisplayValue,t,e.replaceUndefinedValues));var n={text:r,hasAllValuesOnLastRun:!0};return n.hasAllValuesOnLastRun=this.textPreProcessor.hasAllValuesOnLastRun,n},Object.defineProperty(t.prototype,"textPreProcessor",{get:function(){var e=this;return!this.textPreProcessorValue&&(this.textPreProcessorValue=new nX,this.textPreProcessorValue.onProcess=function(t){e.getProcessedTextValue(t)}),this.textPreProcessorValue},enumerable:!1,configurable:!0}),t.prototype.getSurveyMarkdownHtml=function(e,t,r){var n={element:e,text:t,name:r,html:null};return this.onTextMarkdown.fire(this,n),n.html},t.prototype.getCorrectedAnswerCount=function(){return this.getCorrectAnswerCount()},t.prototype.getCorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!0)},t.prototype.getQuizQuestionCount=function(){for(var e=this.getQuizQuestions(),t=0,r=0;r<e.length;r++)t+=e[r].quizQuestionCount;return t},t.prototype.getInCorrectedAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getInCorrectAnswerCount=function(){return this.getIncorrectAnswerCount()},t.prototype.getIncorrectAnswerCount=function(){return this.getCorrectedAnswerCountCore(!1)},t.prototype.onCorrectQuestionAnswer=function(e,t){!this.onIsAnswerCorrect.isEmpty&&(t.question=e,this.onIsAnswerCorrect.fire(this,t))},t.prototype.getCorrectedAnswerCountCore=function(e){for(var t=this.getQuizQuestions(),r=0,n=0;n<t.length;n++){var o=t[n],i=o.correctAnswerCount;e?r+=i:r+=o.quizQuestionCount-i}return r},t.prototype.getCorrectedAnswers=function(){return this.getCorrectedAnswerCount()},t.prototype.getInCorrectedAnswers=function(){return this.getInCorrectedAnswerCount()},Object.defineProperty(t.prototype,"showTimerPanel",{get:function(){return this.showTimer?this.timerLocation:"none"},set:function(e){this.showTimer="none"!==e,this.showTimer&&(this.timerLocation=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showTimer",{get:function(){return this.getPropertyValue("showTimer")},set:function(e){this.setPropertyValue("showTimer",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerLocation",{get:function(){return this.getPropertyValue("timerLocation")},set:function(e){this.setPropertyValue("timerLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnTop",{get:function(){return this.showTimer&&"top"===this.timerLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTimerPanelShowingOnBottom",{get:function(){return this.showTimer&&"bottom"===this.timerLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoMode",{get:function(){return this.getTimerInfoVal(this.getPropertyValue("timerInfoMode"))},set:function(e){this.setPropertyValue("timerInfoMode",e)},enumerable:!1,configurable:!0}),t.prototype.getTimerInfoVal=function(e){return"all"===e?"combined":e},Object.defineProperty(t.prototype,"showTimerPanelMode",{get:function(){var e=this.timerInfoMode;return"combined"===e?"all":e},set:function(e){this.timerInfoMode=this.getTimerInfoVal(e)},enumerable:!1,configurable:!0}),t.prototype.updateGridColumns=function(){this.pages.forEach(function(e){return e.updateGridColumns()})},Object.defineProperty(t.prototype,"widthMode",{get:function(){return this.getPropertyValue("widthMode")},set:function(e){this.setPropertyValue("widthMode",e)},enumerable:!1,configurable:!0}),t.prototype.setCalculatedWidthModeUpdater=function(){var e=this;!this.isLoadingFromJson&&(this.calculatedWidthModeUpdater&&this.calculatedWidthModeUpdater.dispose(),this.calculatedWidthModeUpdater=new tB(function(){return e.calculateWidthMode()}),this.calculatedWidthMode=this.calculatedWidthModeUpdater)},t.prototype.calculateWidthMode=function(){if("auto"==this.widthMode){var e=!1;return this.pages.forEach(function(t){t.needResponsiveWidth()&&(e=!0)}),e?"responsive":"static"}return this.widthMode},Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPropertyValue("width",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e="static"==this.getPropertyValue("calculatedWidthMode"),t=this.getPropertyValue("width");if(this.isScaled&&this.responsiveStartWidth>1){var r=this.responsiveStartWidth;try{t=t||this.staticStartWidth,r=isNaN(t)?parseFloat(t.toString().replace("px","")):t}catch(e){}return(e?r:this.responsiveStartWidth)*this.widthScale/100+"px"}return t&&!isNaN(t)&&(t+="px"),e&&t||void 0}
1,enumerable:!1,configurable:!0}),t.prototype.setStaticStartWidth=function(e){this.staticStartWidth=e},t.prototype.setResponsiveStartWidth=function(e){this.responsiveStartWidth=e},Object.defineProperty(t.prototype,"isScaled",{get:function(){return Math.abs(this.widthScale-100)>.001},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfo",{get:function(){return this.getTimerInfo()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerClock",{get:function(){if(this.currentPage){var e,t,r=this.getTimerInfo(),n=r.spent,o=r.limit,i=r.minorSpent,s=r.minorLimit;e=o>0?this.getDisplayClockTime(o-n):this.getDisplayClockTime(n),void 0!==i&&(t=s>0?this.getDisplayClockTime(s-i):this.getDisplayClockTime(i))}return{majorText:e,minorText:t}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timerInfoText",{get:function(){var e={text:this.getTimerInfoText()};this.onTimerPanelInfoText.fire(this,e);var t=new rV(this,!0);return t.text=e.text,t.textOrHtml},enumerable:!1,configurable:!0}),t.prototype.getTimerInfo=function(){var e=this.currentPage;if(!e)return{spent:0,limit:0};var t=e.timeSpent,r=this.timeSpent,n=e.getMaxTimeToFinish(),o=this.timeLimit;if("page"==this.timerInfoMode)return{spent:t,limit:n};if("survey"==this.timerInfoMode)return{spent:r,limit:o};if(n>0&&o>0)return{spent:t,limit:n,minorSpent:r,minorLimit:o};if(n>0)return{spent:t,limit:n,minorSpent:r};else if(o>0)return{spent:r,limit:o,minorSpent:t};else return{spent:t,minorSpent:r}},t.prototype.getTimerInfoText=function(){var e=this.currentPage;if(!e)return"";var t=this.getDisplayTime(e.timeSpent),r=this.getDisplayTime(this.timeSpent),n=e.getMaxTimeToFinish(),o=this.getDisplayTime(n),i=this.getDisplayTime(this.timeLimit);if("page"==this.timerInfoMode)return this.getTimerInfoPageText(e,t,o);if("survey"==this.timerInfoMode)return this.getTimerInfoSurveyText(r,i);if("combined"==this.timerInfoMode)return n<=0&&this.timeLimit<=0?this.getLocalizationFormatString("timerSpentAll",t,r):n>0&&this.timeLimit>0?this.getLocalizationFormatString("timerLimitAll",t,o,r,i):this.getTimerInfoPageText(e,t,o)+" "+this.getTimerInfoSurveyText(r,i);return""},t.prototype.getTimerInfoPageText=function(e,t,r){return e&&e.getMaxTimeToFinish()>0?this.getLocalizationFormatString("timerLimitPage",t,r):this.getLocalizationFormatString("timerSpentPage",t,r)},t.prototype.getTimerInfoSurveyText=function(e,t){var r=this.timeLimit>0?"timerLimitSurvey":"timerSpentSurvey";return this.getLocalizationFormatString(r,e,t)},t.prototype.getDisplayClockTime=function(e){e<0&&(e=0);var t=Math.floor(e/60),r=e%60,n=r.toString();return r<10&&(n="0"+n),t+":"+n},t.prototype.getDisplayTime=function(e){var t=Math.floor(e/60),r=e%60,n="";return(t>0&&(n+=t+" "+this.getLocalizationString("timerMin")),n&&0==r)?n:(n&&(n+=" "),n+r+" "+this.getLocalizationString("timerSec"))},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.timerModelValue},enumerable:!1,configurable:!0}),t.prototype.startTimer=function(){this.isEditMode&&this.timerModel.start()},t.prototype.startTimerFromUI=function(){this.showTimer&&"running"===this.state&&this.startTimer()},t.prototype.stopTimer=function(){this.timerModel.stop()},Object.defineProperty(t.prototype,"timeSpent",{get:function(){return this.timerModel.spent},set:function(e){this.timerModel.spent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimit",{get:function(){return this.getPropertyValue("timeLimit",0)},set:function(e){this.setPropertyValue("timeLimit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinish",{get:function(){return this.timeLimit},set:function(e){this.timeLimit=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"timeLimitPerPage",{get:function(){return this.getPropertyValue("timeLimitPerPage",0)},set:function(e){this.setPropertyValue("timeLimitPerPage",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxTimeToFinishPage",{get:function(){return this.timeLimitPerPage},set:function(e){this.timeLimitPerPage=e}
vendor: 11,186 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype.doTimer=function(e){if(this.onTimerTick.fire(this,{}),this.timeLimit>0&&this.timeLimit<=this.timeSpent&&(this.timeSpent=this.timeLimit,this.tryComplete()),e){var t=e.getMaxTimeToFinish();t>0&&t==e.timeSpent&&(this.isLastPage?this.tryComplete():this.nextPage())}},Object.defineProperty(t.prototype,"inSurvey",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this},t.prototype.getTextProcessor=function(){return this},t.prototype.getObjects=function(e,t){var r=[];return Array.prototype.push.apply(r,this.getPagesByNames(e)),Array.prototype.push.apply(r,this.getQuestionsByNames(t)),r},t.prototype.setTriggerValue=function(e,t,r){if(e){if(r)this.setVariable(e,t);else{var n=this.getQuestionByName(e);if(this.startSetValueFromTrigger(),n)n.value=t;else{var o=new e9,i=o.getFirstName(e);if(i==e)this.setValue(e,t);else{if(!this.getQuestionByName(i))return;var s=this.getUnbindValue(this.getFilteredValues());o.setValue(s,e,t),this.setValue(i,s[i])}}this.finishSetValueFromTrigger()}}},t.prototype.copyTriggerValue=function(e,t,r){if(e&&t){if(r)n=this.processText("{"+t+"}",!0);else{var n;n=new e9().getValue(t,this.getFilteredValues())}this.setTriggerValue(e,n,!1)}},t.prototype.triggerExecuted=function(e){this.onTriggerExecuted.fire(this,{trigger:e})},Object.defineProperty(t.prototype,"isSettingValueFromTrigger",{get:function(){return this.setValueFromTriggerCounter>0},enumerable:!1,configurable:!0}),t.prototype.startSetValueFromTrigger=function(){this.setValueFromTriggerCounter++},t.prototype.finishSetValueFromTrigger=function(){this.setValueFromTriggerCounter--},t.prototype.startMovingQuestion=function(){this.isMovingQuestion=!0},t.prototype.stopMovingQuestion=function(){this.isMovingQuestion=!1},Object.defineProperty(t.prototype,"isQuestionDragging",{get:function(){return this.isMovingQuestion},enumerable:!1,configurable:!0}),t.prototype.focusQuestion=function(e){return this.focusQuestionByInstance(this.getQuestionByName(e,!0))},t.prototype.focusQuestionByInstance=function(e,t){if(void 0===t&&(t=!1),!e||!e.isVisible||!e.page)return!1;if((null===(r=this.focusingQuestionInfo)||void 0===r?void 0:r.question)===e)return!1;this.focusingQuestionInfo={question:e,onError:t},this.skippedPages.push({from:this.currentPage,to:e.page});var r,n=this.activePage!==e.page&&!e.page.isStartPage;return n&&(this.currentPage=e.page,this.isSingleVisibleQuestion&&!this.isDesignMode&&(this.currentSingleQuestion=e)),!n&&this.focusQuestionInfo(),!0},t.prototype.focusQuestionInfo=function(){var e,t=null===(e=this.focusingQuestionInfo)||void 0===e?void 0:e.question;t&&!t.isDisposed&&t.focus(this.focusingQuestionInfo.onError),this.focusingQuestionInfo=void 0},t.prototype.questionEditFinishCallback=function(e,t){var r=this.enterKeyAction||r9.enterKeyAction;if("loseFocus"==r&&t.target.blur(),"moveToNextEditor"==r){var n=this.currentPage.questions,o=n.indexOf(e);o>-1&&o<n.length-1?n[o+1].focus():t.target.blur()}},t.prototype.elementWrapperComponentNameCore=function(e,t,r,n,o){if(this.onElementWrapperComponentName.isEmpty)return e;var i={componentName:e,element:t,wrapperName:r,reason:n,item:o};return this.onElementWrapperComponentName.fire(this,i),i.componentName},t.prototype.elementWrapperDataCore=function(e,t,r,n,o){if(this.onElementWrapperComponentData.isEmpty)return e;var i={data:e,element:t,wrapperName:r,reason:n,item:o};return this.onElementWrapperComponentData.fire(this,i),i.data},t.prototype.getElementWrapperComponentName=function(e,r){var n="logo-image"===r?"sv-logo-image":t.TemplateRendererComponentName;return this.elementWrapperComponentNameCore(n,e,"component",r)},t.prototype.getQuestionContentWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"content-component")},t.prototype.getRowWrapperComponentName=function(e){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,e,"row")},t.prototype.getItemValueWrapperComponentName=function(e,r){return this.elementWrapperComponentNameCore(t.TemplateRendererComponentName,r,"itemvalue",void 0,e)},t.prototype.getElementWrapperComponentData=function(e,t){return this.elementWrapperDataCore(e,e,"component",t)},t.prototype.getRowWrapperComponentData=function(e){return this.elementWrapperDataCore(e,e,"row")},t.prototype.getItemValueWrapperComponentData=function(e,t){return this.elementWrapperDataCore(e,t,"itemvalue",void 0,e)},t.prototype.getMatrixCellTemplateData=function(e){var t=e.question;return this.elementWrapperDataCore(t,t,"cell")},t.prototype.searchText=function(e){e&&(e=e.toLowerCase());for(var t=[],r=0;r<this.pages.length;r++)this.pages[r].searchText(e,t);return t},t.prototype.getSkeletonComponentName=function(e){return this.skeletonComponentName},t.prototype.addLayoutElement=function(e){var t=this.removeLayoutElement(e.id);return this.layoutElements.push(e),t},t.prototype.findLayoutElement=function(e){return this.layoutElements.filter(function(t){return t.id===e})[0]},t.prototype.removeLayoutElement=function(e){var t=this.findLayoutElement(e);if(t){var r=this.layoutElements.indexOf(t);this.layoutElements.splice(r,1)}return t},t.prototype.getContainerContent=function(e){for(var t=[],r=0,n=this.layoutElements;r<n.length;r++){var o=n[r];if("display"!==this.mode&&ij(o.id,"timerpanel"))"header"===e&&this.isTimerPanelShowingOnTop&&!this.isShowStartingPage&&t.push(o),"footer"===e&&this.isTimerPanelShowingOnBottom&&!this.isShowStartingPage&&t.push(o);else if("running"===this.state&&ij(o.id,this.progressBarComponentName)){if("singlePage"!=this.questionsOnPageMode||"questions"==this.progressBarType){var i=this.findLayoutElement("advanced-header"),s=i&&i.data,a=!s||s.hasBackground;ij(this.showProgressBar,"aboveHeader")&&(a=!1),ij(this.showProgressBar,"belowHeader")&&(a=!0),"header"===e&&!a&&(o.index=-150,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o)),"center"===e&&a&&(o.index&&delete o.index,this.isShowProgressBarOnTop&&!this.isShowStartingPage&&t.push(o)),"footer"===e&&this.isShowProgressBarOnBottom&&!this.isShowStartingPage&&t.push(o)}}else ij(o.id,"buttons-navigation")?("contentTop"===e&&-1!==["top","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o),"contentBottom"===e&&-1!==["bottom","both"].indexOf(this.isNavigationButtonsShowing)&&t.push(o)):"running"===this.state&&ij(o.id,"toc-navigation")&&this.showTOC?("left"===e&&-1!==["left","both"].indexOf(this.tocLocation)&&t.push(o),"right"===e&&-1!==["right","both"].indexOf(this.tocLocation)&&t.push(o)):ij(o.id,"advanced-header")?("running"===this.state||"starting"===this.state||!0===this.showHeaderOnCompletePage&&"completed"===this.state)&&o.container===e&&t.push(o):(Array.isArray(o.container)&&-1!==o.container.indexOf(e)||o.container===e)&&t.push(o)}return t.sort(function(e,t){return(e.index||0)-(t.index||0)}),t},t.prototype.processPopupVisiblityChanged=function(e,t,r){this.onPopupVisibleChanged.fire(this,{question:e,popup:t,visible:r})},t.prototype.processOpenDropdownMenu=function(e,t){var r=Object.assign({question:e},t);this.onOpenDropdownMenu.fire(this,r),t.menuType=r.menuType},t.prototype.getCssTitleExpandableSvg=function(){return null},t.prototype.applyTheme=function(e){var t=this;if(e){if(Object.keys(e).forEach(function(r){if("header"!==r)"isPanelless"===r?t.isCompact=e[r]:t[r]=e[r]}),"advanced"===this.headerView||"header"in e){this.removeLayoutElement("advanced-header");var r=new o2;r.fromTheme(e),this.insertAdvancedHeader(r)}this.themeChanged(e)}},t.prototype.themeChanged=function(e){this.getAllQuestions().forEach(function(t){return t.themeChanged(e)})},t.prototype.dispose=function(){if(this.unConnectEditingObj(),this.removeScrollEventListener(),this.destroyResizeObserver(),this.rootElement=void 0,this.layoutElements){for(var t=0;t<this.layoutElements.length;t++)this.layoutElements[t].data&&this.layoutElements[t].data!==this&&this.layoutElements[t].data.dispose&&this.layoutElements[t].data.dispose();this.layoutElements.splice(0,this.layoutElements.length)}if(e.prototype.dispose.call(this),this.editingObj=null,this.pages){this.currentPage=null;for(var t=0;t<this.pages.length;t++)this.pages[t].setSurveyImpl(void 0),this.pages[t].dispose();this.pages.splice(0,this.pages.length),this.disposeCallback&&this.disposeCallback()}},t.prototype._isElementShouldBeSticky=function(e){if(!e)return!1;var t=this.rootElement.querySelector(e);return!!t&&this.rootElement.scrollTop>0&&t.getBoundingClientRect().y<=this.rootElement.getBoundingClientRect().y},t.prototype.onScroll=function(){this.rootElement&&(this._isElementShouldBeSticky(".sv-components-container-center")?this.rootElement.classList&&this.rootElement.classList.add("sv-root--sticky-top"):this.rootElement.classList&&this.rootElement.classList.remove("sv-root--sticky-top")),this.onScrollCallback&&this.onScrollCallback()},t.prototype.addScrollEventListener=function(){var e,t=this;this.scrollHandler=function(){t.onScroll()},this.rootElement.addEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].addEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&(null===(e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])||void 0===e||e.addEventListener("scroll",this.scrollHandler))},t.prototype.removeScrollEventListener=function(){var e;this.rootElement&&this.scrollHandler&&(this.rootElement.removeEventListener("scroll",this.scrollHandler),this.rootElement.getElementsByTagName("form")[0]&&this.rootElement.getElementsByTagName("form")[0].removeEventListener("scroll",this.scrollHandler),this.css.rootWrapper&&(null===(e=this.rootElement.getElementsByClassName(this.css.rootWrapper)[0])||void 0===e||e.removeEventListener("scroll",this.scrollHandler)))},t.TemplateRendererComponentName="sv-template-renderer",t.platform="unknown",iP([eW()],t.prototype,"completedCss",void 0),iP([eW()],t.prototype,"completedBeforeCss",void 0),iP([eW()],t.prototype,"loadingBodyCss",void 0),iP([eW()],t.prototype,"containerCss",void 0),iP([eW({onSet:function(e,t){t.updateCss()}})],t.prototype,"fitToContainer",void 0),iP([eW({onSet:function(e,t){if("advanced"===e){if(!t.findLayoutElement("advanced-header")){var r=new o2;r.logoPositionX="right"===t.logoPosition?"right":"left",r.logoPositionY="middle",r.titlePositionX="right"===t.logoPosition?"left":"right",r.titlePositionY="middle",r.descriptionPositionX="right"===t.logoPosition?"left":"right",r.descriptionPositionY="middle",t.insertAdvancedHeader(r)}}else t.removeLayoutElement("advanced-header")}})],t.prototype,"headerView",void 0),iP([eW()],t.prototype,"showBrandInfo",void 0),iP([eW()],t.prototype,"enterKeyAction",void 0),iP([eW()],t.prototype,"lazyRenderingFirstBatchSizeValue",void 0),iP([eW({defaultValue:!0})],t.prototype,"titleIsEmpty",void 0),iP([eW({defaultValue:{}})],t.prototype,"cssVariables",void 0),iP([eW()],t.prototype,"_isMobile",void 0),iP([eW()],t.prototype,"_isCompact",void 0),iP([eW({onSet:function(e,t){t.updateCss()}})],t.prototype,"backgroundImage",void 0),iP([eW()],t.prototype,"renderBackgroun
1dImage",void 0),iP([eW()],t.prototype,"backgroundImageFit",void 0),iP([eW({onSet:function(e,t){t.updateCss()}})],t.prototype,"backgroundImageAttachment",void 0),iP([eW()],t.prototype,"backgroundImageStyle",void 0),iP([eW()],t.prototype,"wrapperFormCss",void 0),iP([eW({getDefaultValue:function(e){return"buttons"===e.progressBarType}})],t.prototype,"progressBarShowPageTitles",void 0),iP([eW()],t.prototype,"progressBarShowPageNumbers",void 0),iP([eW()],t.prototype,"progressBarInheritWidthFrom",void 0),iP([eW({defaultValue:!0})],t.prototype,"validationEnabled",void 0),iP([eW()],t.prototype,"rootCss",void 0),iP([eW({onSet:function(e,t){t.updateGridColumns()}})],t.prototype,"gridLayoutEnabled",void 0),iP([eW()],t.prototype,"calculatedWidthMode",void 0),iP([eW({defaultValue:100,onSet:function(e,t,r){t.pages.forEach(function(e){return e.updateRootStyle()})}})],t.prototype,"widthScale",void 0),iP([eW()],t.prototype,"staticStartWidth",void 0),iP([eW()],t.prototype,"responsiveStartWidth",void 0),iP([eJ()],t.prototype,"layoutElements",void 0),t}(rx);function ij(e,t){return!!e&&!!t&&e.toUpperCase()===t.toUpperCase()}e6.addClass("survey",[{name:"locale",choices:function(){return eN.getLocales(!0)},onGetValue:function(e){return e.locale==eN.defaultLocale?null:e.locale}},{name:"title",serializationProperty:"locTitle",dependsOn:"locale"},{name:"description:text",serializationProperty:"locDescription",dependsOn:"locale"},{name:"logo:file",serializationProperty:"locLogo"},{name:"logoWidth",default:"300px",minValue:0},{name:"logoHeight",default:"200px",minValue:0},{name:"logoFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"logoPosition",default:"left",choices:["none","left","right","top","bottom"]},{name:"focusFirstQuestionAutomatic:boolean"},{name:"focusOnFirstError:boolean",default:!0},{name:"completedHtml:html",serializationProperty:"locCompletedHtml"},{name:"completedBeforeHtml:html",serializationProperty:"locCompletedBeforeHtml"},{name:"completedHtmlOnCondition:htmlconditions",className:"htmlconditionitem",isArray:!0},{name:"loadingHtml:html",serializationProperty:"locLoadingHtml"},{name:"pages:surveypages",className:"page",isArray:!0,onSerializeValue:function(e){return e.originalPages||e.pages}},{name:"elements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1,onGetValue:function(e){return null},onSetValue:function(e,t,r){e.pages.splice(0,e.pages.length);var n=e.addNewPage("");r.toObject({questions:t},n,null==r?void 0:r.options)}},{name:"triggers:triggers",baseClassName:"surveytrigger",classNamePart:"trigger"},{name:"calculatedValues:calculatedvalues",className:"calculatedvalue",isArray:!0},{name:"sjsVersion",visible:!1},{name:"surveyId",visible:!1},{name:"surveyPostId",visible:!1},{name:"surveyShowDataSaving:boolean",visible:!1},"cookieName","sendResultOnPageNext:boolean",{name:"showNavigationButtons",default:"bottom",choices:["none","top","bottom","both"]},{name:"showPrevButton:boolean",default:!0,visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"showTitle:boolean",default:!0},{name:"showPageTitles:boolean",default:!0},{name:"showCompletedPage:boolean",default:!0},"navigateToUrl",{name:"navigateToUrlOnCondition:urlconditions",className:"urlconditionitem",isArray:!0},{name:"questionsOrder",default:"initial",choices:["initial","random"]},{name:"matrixDragHandleArea",visible:!1,default:"entireItem",choices:["entireItem","icon"]},"showPageNumbers:boolean",{name:"showQuestionNumbers",default:"on",choices:["on","onPage","off"]},{name:"questionTitleLocation",default:"top",choices:["top","bottom","left"]},{name:"questionDescriptionLocation",default:"underTitle",choices:["underInput","underTitle"]},{name:"questionErrorLocation",default:"top",choices:["top","bottom"]},{name:"showProgressBar",default:"off",choices:["off","auto","aboveheader","belowheader","bottom","topbottom"]},{name:"progressBarType",default:"pages",choices:["pages","questions","requiredQuestions","correctQuestions"],visibleIf:function(e){return"off"!==e.showProgressBar}},{name:"progressBarShowPageTitles:switch",category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"progressBarShowPageNumbers:switch",default:!1,category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"progressBarInheritWidthFrom",default:"container",choices:["container","survey"],category:"navigation",visibleIf:function(e){return"off"!==e.showProgressBar&&"pages"===e.progressBarType}},{name:"showTOC:switch",default:!1},{name:"tocLocation",default:"left",choices:["left","right"],dependsOn:["showTOC"],visibleIf:function(e){return!!e&&e.showTOC}},{name:"mode",default:"edit",choices:["edit","display"]},{name:"storeOthersAsComment:boolean",default:!0},{name:"maxTextLength:number",default:0,minValue:0},{name:"maxOthersLength:number",default:0,minValue:0},{name:"goNextPageAutomatic:boolean",onSetValue:function(e,t){"autogonext"!==t&&(t=eA.isTwoValueEquals(t,!0)),e.setPropertyValue("goNextPageAutomatic",t)}},{name:"allowCompleteSurveyAutomatic:boolean",default:!0,visibleIf:function(e){return!0===e.goNextPageAutomatic}},{name:"clearInvisibleValues",default:"onComplete",choices:["none","onComplete","onHidden","onHiddenContainer"]},{name:"checkErrorsMode",default:"onNextPage",choices:["onNextPage","onValueChanged","onComplete"]},{name:"validateVisitedEmptyFields:boolean",dependsOn:"checkErrorsMode",visibleIf:function(e){return"onValueChanged"===e.checkErrorsMode}},{name:"textUpdateMode",default:"onBlur",choices:["onBlur","onTyping"]},{name:"autoGrowComment:boolean",default:!1},{name:"allowResizeComment:boolean",default:!0},{name:"commentAreaRows:number",minValue:1},{name:"startSurveyText",serializationProperty:"locStartSurveyText",visibleIf:function(e){return e.firstPageIsStarted}},{name:"pagePrevText",serializationProperty:"locPagePrevText",visibleIf:function(e){return"none"!==e.showNavigationButtons&&e.showPrevButton}},{name:"pageNextText",serializationProperty:"locPageNextText",visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"completeText",serializationProperty:"locCompleteText",visibleIf:function(e){return"none"!==e.showNavigationButtons}},{name:"previewText",serializationProperty:"locPreviewText",visibleIf:function(e){return"noPreview"!==e.showPreviewBeforeComplete}},{name:"editText",serializationProperty:"locEditText",visibleIf:function(e){return"noPreview"!==e.showPreviewBeforeComplete}},{name:"requiredText",default:"*"},{name:"questionStartIndex",dependsOn:["showQuestionNumbers"],visibleIf:function(e){return!e||"off"!==e.showQuestionNumbers}},{name:"questionTitlePattern",default:"numTitleRequire",dependsOn:["questionStartIndex","requiredText"],choices:function(e){return e?e.getQuestionTitlePatternOptions():[]}},{name:"questionTitleTemplate",visible:!1,isSerializable:!1,serializationProperty:"locQuestionTitleTemplate"},{name:"firstPageIsStarted:boolean",default:!1},{name:"isSinglePage:boolean",default:!1,visible:!1,isSerializable:!1},{name:"questionsOnPageMode",default:"standard",choices:["standard","singlePage","questionPerPage"]},{name:"showPreviewBeforeComplete",default:"noPreview",choices:["noPreview","showAllQuestions","showAnsweredQuestions"]},{name:"showTimer:boolean"},{name:"timeLimit:number",alternativeName:"maxTimeToFinish",default:0,minValue:0,enableIf:function(e){return e.showTimer}},{name:"timeLimitPerPage:number",alternativeName:"maxTimeToFinishPage",default:0,minValue:0,enableIf:function(e){return e.showTimer}},{name:"timerLocation",default:"top",choices:["top","bottom"],enableIf:function(e){return e.showTimer}},{name:"timerInfoMode",alternativeName:"showTimerPanelMode",default:"combined",choices:["page","survey","combined"],enableIf:function(e){return e.showTimer}},{name:"showTimerPanel",visible:!1,isSerializable:!1},{name:"widthMode",default:"auto",choices:["auto","static","responsive"]},{name:"gridLayoutEnabled:boolean",default:!1},{name:"width",visibleIf:function(e){return"static"===e.widthMode}},{name:"fitToContainer:boolean",default:!0,visible:!1},{name:"headerView",default:"basic",choices:["basic","advanced"],visible:!1},{name:"backgroundImage:file",visible:!1},{name:"backgroundImageFit",default:"cover",choices:["auto","contain","cover"],visible:!1},{name:"backgroundImageAttachment",default:"scroll",choices:["scroll","fixed"],visible:!1},{name:"backgroundOpacity:number",minValue:0,maxValue:1,default:1,visible:!1},{name:"showBrandInfo:boolean",default:!1,visible:!1}]);var iS=(z=function(e,t){return(z=Object.setPrototypeOf||({__proto__:[]}
vendor: 13,851 bytes, line 1
1)instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),iO=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},iI=function(e){function t(t){var r=e.call(this,t)||this;r.otherItemValue=new nL("other"),r.isSettingDefaultValue=!1,r.isSettingComment=!1,r.isRunningChoices=!1,r.isFirstLoadChoicesFromUrl=!0,r.isUpdatingChoicesDependedQuestions=!1,r._renderedChoices=[],r.renderedChoicesAnimation=new ry(r.getRenderedChoicesAnimationOptions(),function(e){r._renderedChoices=e,r.renderedChoicesChangedCallback&&r.renderedChoicesChangedCallback()},function(){return r._renderedChoices}),r.headItemsCount=0,r.footItemsCount=0,r.prevIsOtherSelected=!1,r.noneItemValue=r.createDefaultItem(r9.noneItemValue,"noneText","noneItemText"),r.refuseItemValue=r.createDefaultItem(r9.refuseItemValue,"refuseText","refuseItemText"),r.dontKnowItemValue=r.createDefaultItem(r9.dontKnowItemValue,"dontKnowText","dontKnowItemText"),r.createItemValues("choices"),r.registerPropertyChangedHandlers(["choices"],function(){!r.filterItems()&&r.onVisibleChoicesChanged()}),r.registerPropertyChangedHandlers(["choicesFromQuestion","choicesFromQuestionMode","choiceValuesFromQuestion","choiceTextsFromQuestion","showNoneItem","showRefuseItem","showDontKnowItem","isUsingRestful","isMessagePanelVisible"],function(){r.onVisibleChoicesChanged()}),r.registerPropertyChangedHandlers(["hideIfChoicesEmpty"],function(){r.onVisibleChanged()}),r.createNewArray("visibleChoices",function(){return r.updateRenderedChoices()},function(){return r.updateRenderedChoices()}),r.setNewRestfulProperty();var n=r.createLocalizableString("otherText",r.otherItemValue,!0,"otherItemText");return r.createLocalizableString("otherErrorText",r,!0,"otherRequiredError"),r.otherItemValue.locOwner=r,r.otherItemValue.setLocText(n),r.choicesByUrl.createItemValue=function(e){return r.createItemValue(e)},r.choicesByUrl.beforeSendRequestCallback=function(){r.onBeforeSendRequest()},r.choicesByUrl.getResultCallback=function(e){r.onLoadChoicesFromUrl(e)},r.choicesByUrl.updateResultCallback=function(e,t){return r.survey?r.survey.updateChoicesFromServer(r,e,t):e},r}return iS(t,e),Object.defineProperty(t.prototype,"waitingChoicesByURL",{get:function(){return!this.isChoicesLoaded&&this.hasChoicesUrl},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"selectbase"},t.prototype.dispose=function(){e.prototype.dispose.call(this);var t=this.getQuestionWithChoices();t&&t.removeDependedQuestion(this)},Object.defineProperty(t.prototype,"otherTextAreaModel",{get:function(){return!this.otherTextAreaModelValue&&(this.otherTextAreaModelValue=new nI(this.getOtherTextAreaOptions())),this.otherTextAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getOtherTextAreaOptions=function(){var e=this;return{question:this,id:function(){return e.otherId},propertyName:"otherValue",className:function(){return e.cssClasses.other},placeholder:function(){return e.otherPlaceholder},isDisabledAttr:function(){return e.isInputReadOnly||!1},rows:function(){return e.commentAreaRows},maxLength:function(){return e.getOthersMaxLength()},autoGrow:function(){return e.survey&&e.survey.autoGrowComment},ariaRequired:function(){return e.ariaRequired||e.a11y_input_ariaRequired},ariaLabel:function(){return e.ariaLabel||e.a11y_input_ariaLabel},getTextValue:function(){return e.otherValue},onTextAreaChange:function(t){e.onOtherValueChange(t)},onTextAreaInput:function(t){e.onOtherValueInput(t)}}},t.prototype.resetDependedQuestion=function(){this.choicesFromQuestion=""},Object.defineProperty(t.prototype,"otherId",{get:function(){return this.id+"_other"},enumerable:!1,configurable:!0}),t.prototype.getCommentElementsId=function(){return[this.commentId,this.otherId]},t.prototype.getItemValueType=function(){return"itemvalue"},t.prototype.createItemValue=function(e,t){var r=e6.createClass(this.getItemValueType(),{value:e});return r.locOwner=this,t&&(r.text=t),r},Object.defineProperty(t.prototype,"isUsingCarryForward",{get:function(){return!!this.carryForwardQuestionType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"carryForwardQuestionType",{get:function(){return this.getPropertyValue("carryForwardQuestionType")},enumerable:!1,configurable:!0}),t.prototype.setCarryForwardQuestionType=function(e,t){this.setPropertyValue("carryForwardQuestionType",e?"select":t?"array":void 0)},Object.defineProperty(t.prototype,"isUsingRestful",{get:function(){return this.getPropertyValueWithoutDefault("isUsingRestful")||!1},enumerable:!1,configurable:!0}),t.prototype.updateIsUsingRestful=function(){this.setPropertyValueDirectly("isUsingRestful",this.hasChoicesUrl)},t.prototype.supportGoNextPageError=function(){return!this.isOtherSelected||!!this.otherValue},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),"none"!==this.choicesOrder&&(this.updateVisibleChoices(),this.onVisibleChoicesChanged())},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.choicesFromUrl&&(nL.locStrsChanged(this.choicesFromUrl),nL.locStrsChanged(this.visibleChoices)),this.isUsingCarryForward&&nL.locStrsChanged(this.visibleChoices)},t.prototype.updatePrevOtherErrorValue=function(e){var t=this.otherValue;e!==t&&(this.prevOtherErrorValue=t)},Object.defineProperty(t.prototype,"otherValue",{get:function(){return this.showCommentArea?this.otherValueCore:this.comment},set:function(e){this.updatePrevOtherErrorValue(e),this.showCommentArea?this.setOtherValueInternally(e):this.comment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherValueCore",{get:function(){return this.getPropertyValue("otherValue")},set:function(e){this.setPropertyValue("otherValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherItem",{get:function(){return this.otherItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOtherSelected",{get:function(){return this.hasOther&&this.getHasOther(this.renderedValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNoneSelected",{get:function(){return this.showNoneItem&&this.getIsItemValue(this.renderedValue,this.noneItem)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNoneItem",{get:function(){return this.getPropertyValue("showNoneItem")},set:function(e){this.setPropertyValue("showNoneItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasNone",{get:function(){return this.showNoneItem},set:function(e){this.showNoneItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneItem",{get:function(){return this.noneItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noneText",{get:function(){return this.getLocalizableStringText("noneText")},set:function(e){this.setLocalizableStringText("noneText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoneText",{get:function(){return this.getLocalizableString("noneText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRefuseItem",{get:function(){return this.getPropertyValue("showRefuseItem")},set:function(e){this.setPropertyValue("showRefuseItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseItem",{get:function(){return this.refuseItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"refuseText",{get:function(){return this.getLocalizableStringText("refuseText")},set:function(e){this.setLocalizableStringText("refuseText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRefuseText",{get:function(){return this.getLocalizableString("refuseText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showDontKnowItem",{get:function(){return this.getPropertyValue("showDontKnowItem")},set:function(e){this.setPropertyValue("showDontKnowItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowItem",{get:function(){return this.dontKnowItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dontKnowText",{get:function(){return this.getLocalizableStringText("dontKnowText")},set:function(e){this.setLocalizableStringText("dontKnowText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDontKnowText",{get:function(){return this.getLocalizableString("dontKnowText")},enumerable:!1,configurable:!0}),t.prototype.createDefaultItem=function(e,t,r){var n=new nL(e),o=this.createLocalizableString(t,n,!0,r);return n.locOwner=this,n.setLocText(o),n},Object.defineProperty(t.prototype,"choicesVisibleIf",{get:function(){return this.getPropertyValue("choicesVisibleIf","")},set:function(e){this.setPropertyValue("choicesVisibleIf",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesEnableIf",{get:function(){return this.getPropertyValue("choicesEnableIf","")},set:function(e){this.setPropertyValue("choicesEnableIf",e),this.filterItems()},enumerable:!1,configurable:!0}),t.prototype.surveyChoiceItemVisibilityChange=function(){this.filterItems()},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runItemsEnableCondition(t,r),this.runItemsCondition(t,r),this.choices.forEach(function(e){e.runConditionCore(t,r)})},t.prototype.isTextValue=function(){return!0},t.prototype.setDefaultValue=function(){this.isSettingDefaultValue=!this.isValueEmpty(this.defaultValue)&&this.hasUnknownValue(this.defaultValue),this.prevOtherValue=void 0;var t=this.comment;e.prototype.setDefaultValue.call(this),this.isSettingDefaultValue=!1,this.comment&&this.getStoreOthersAsComment()&&t!==this.comment&&(this.setValueCore(this.setOtherValueIntoValue(this.value)),this.setCommentIntoData(this.comment))},t.prototype.getIsMultipleValue=function(){return!1},t.prototype.convertDefaultValue=function(e){if(null==e||void 0==e)return e;if(this.getIsMultipleValue()){if(!Array.isArray(e))return[e]}else if(Array.isArray(e)&&e.length>0)return e[0];return e},t.prototype.filterItems=function(){if(this.isLoadingFromJson||!this.data||this.areInvisibleElementsShowing)return!1;var e=this.getDataFilteredValues(),t=this.getDataFilteredProperties();return this.runItemsEnableCondition(e,t),this.runItemsCondition(e,t)},t.prototype.runItemsCondition=function(e,t){this.setConditionalChoicesRunner();var r=this.runConditionsForItems(e,t);return this.filteredChoicesValue&&this.filteredChoicesValue.length===this.activeChoices.length&&(this.filteredChoicesValue=void 0),r&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues()),r},t.prototype.runItemsEnableCondition=function(e,t){var r=this;this.setConditionalEnableChoicesRunner(),nL.runEnabledConditionsForItems(this.activeChoices,this.conditionChoicesEnableIfRunner,e,t,function(e,t){return t&&r.onEnableItemCallBack(e)})&&this.clearDisabledValues(),this.onAfterRunItemsEnableCondition()},t.prototype.onAfterRunItemsEnableCondition=function(){},t.prototype.onEnableItemCallBack=function(e){return!0},t.prototype.onSelectedItemValuesChangedHandler=function(e){var t;null===(t=this.survey)||void 0===t||t.loadedChoicesFromServer(this)},t.prototype.getItemIfChoicesNotContainThisValue=function(e,t){return this.waitingChoicesByURL?this.createItemValue(e,t):null},t.prototype.getSingleSelectedItem=function(){var e=this.selectedItemValues;if(this.isEmpty())return null;var t=nL.getItemByValue(this.visibleChoices,this.value);return this.onGetSingleSelectedItem(t),!t&&(!e||this.value!=e.id)&&this.updateSelectedItemValues(),t||e||(this.isOtherSelected?this.otherItem:this.getItemIfChoicesNotContainThisValue(this.value))},t.prototype.onGetSingleSelectedItem=function(e){},t.prototype.getMultipleSelectedItems=function(){return[]},t.prototype.setConditionalChoicesRunner=function(){this.choicesVisibleIf?(!this.conditionChoicesVisibleIfRunner&&(this.conditionChoicesVisibleIfRunner=new tA(this.choicesVisibleIf)),this.conditionChoicesVisibleIfRunner.expression=this.choicesVisibleIf):this.conditionChoicesVisibleIfRunner=null},t.prototype.setConditionalEnableChoicesRunner=function(){this.choicesEnableIf?(!this.conditionChoicesEnableIfRunner&&(this.conditionChoicesEnableIfRunner=new tA(this.choicesEnableIf)),this.conditionChoicesEnableIfRunner.expression=this.choicesEnableIf):this.conditionChoicesEnableIfRunner=null},t.prototype.canSurveyChangeItemVisibility=function(){return!!this.survey&&this.survey.canChangeChoiceItemsVisibility()},t.prototype.changeItemVisibility=function(){var e=this;return this.canSurveyChangeItemVisibility()?function(t,r){return e.survey.getChoiceItemVisibility(e,t,r)}:null},t.prototype.runConditionsForItems=function(e,t){this.filteredChoicesValue=[];var r=this.changeItemVisibility();return nL.runConditionsForItems(this.activeChoices,this.getFilteredChoices(),this.areInvisibleElementsShowing?null:this.conditionChoicesVisibleIfRunner,e,t,!this.survey||!this.survey.areInvisibleElementsShowing,function(e,t){return r?r(e,t):t})},t.prototype.getHasOther=function(e){return this.getIsItemValue(e,this.otherItem)},t.prototype.getIsItemValue=function(e,t){return e===t.value},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.rendredValueToDataCore(this.value)}
1,enumerable:!1,configurable:!0}),t.prototype.createRestful=function(){return new nW},t.prototype.setNewRestfulProperty=function(){this.setPropertyValue("choicesByUrl",this.createRestful()),this.choicesByUrl.owner=this,this.choicesByUrl.loadingOwner=this},Object.defineProperty(t.prototype,"autoOtherMode",{get:function(){return this.getPropertyValue("autoOtherMode")},set:function(e){this.setPropertyValue("autoOtherMode",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionComment=function(){return this.showCommentArea?e.prototype.getQuestionComment.call(this):this.otherValueCore?this.otherValueCore:this.hasComment||this.getStoreOthersAsComment()?e.prototype.getQuestionComment.call(this):this.otherValueCore},t.prototype.selectOtherValueFromComment=function(e){e&&(this.prevIsOtherSelected=!0),this.value=e?this.otherItem.value:void 0},t.prototype.setQuestionComment=function(t){if(this.updatePrevOtherErrorValue(t),this.showCommentArea){e.prototype.setQuestionComment.call(this,t);return}this.onUpdateCommentOnAutoOtherMode(t),this.getStoreOthersAsComment()?e.prototype.setQuestionComment.call(this,t):this.setOtherValueInternally(t),this.updateChoicesDependedQuestions()},t.prototype.onUpdateCommentOnAutoOtherMode=function(e){if(this.autoOtherMode){this.prevOtherValue=void 0;var t=this.isOtherSelected;(!t&&e||t&&!e)&&this.selectOtherValueFromComment(!!e)}},t.prototype.setOtherValueInternally=function(e){!this.isSettingComment&&e!=this.otherValueCore&&(this.isSettingComment=!0,this.otherValueCore=e,this.isOtherSelected&&!this.isRenderedValueSetting&&(this.value=this.rendredValueToData(this.renderedValue)),this.isSettingComment=!1)},t.prototype.clearValue=function(t){e.prototype.clearValue.call(this,t),this.prevOtherValue=void 0,this.selectedItemValues=void 0},t.prototype.updateCommentFromSurvey=function(t){e.prototype.updateCommentFromSurvey.call(this,t),this.prevOtherValue=void 0},Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.getPropertyValue("renderedValue",null)},set:function(e){if(!this.isReadOnlyAttr){this.setPropertyValue("renderedValue",e);var e=this.rendredValueToData(e);!this.isTwoValueEquals(e,this.value)&&(this.value=e)}},enumerable:!1,configurable:!0}),t.prototype.setQuestionValue=function(t,r,n){if(void 0===r&&(r=!0),void 0===n&&(n=!0),!(this.isLoadingFromJson||this.isTwoValueEquals(this.value,t))){if(e.prototype.setQuestionValue.call(this,t,r),this.setPropertyValue("renderedValue",this.rendredValueFromData(t)),this.updateChoicesDependedQuestions(),!this.hasComment&&n){var o=this.isOtherSelected;if(o&&this.prevOtherValue){var i=this.prevOtherValue;this.prevOtherValue=void 0,this.otherValue=i}!o&&this.otherValue&&(this.getStoreOthersAsComment()&&!this.autoOtherMode&&(this.prevOtherValue=this.otherValue),this.makeCommentEmpty=!0,this.otherValueCore="",this.setPropertyValue("comment",""))}}},t.prototype.setValueCore=function(t){e.prototype.setValueCore.call(this,t),this.makeCommentEmpty&&(this.setCommentIntoData(""),this.makeCommentEmpty=!1)},t.prototype.setNewValue=function(t){t=this.valueFromData(t),(!this.choicesByUrl.isRunning&&!this.choicesByUrl.isWaitingForParameters||!this.isValueEmpty(t))&&(this.cachedValueForUrlRequests=t),e.prototype.setNewValue.call(this,t)},t.prototype.valueFromData=function(t){var r=nL.getItemByValue(this.activeChoices,t);return r?r.value:e.prototype.valueFromData.call(this,t)},t.prototype.rendredValueFromData=function(e){return this.getStoreOthersAsComment()?e:this.renderedValueFromDataCore(e)},t.prototype.rendredValueToData=function(e){return this.getStoreOthersAsComment()?e:this.rendredValueToDataCore(e)},t.prototype.renderedValueFromDataCore=function(e){return this.hasUnknownValue(e,!0,!1)?(this.otherValue=e,this.otherItem.value):this.valueFromData(e)},t.prototype.rendredValueToDataCore=function(e){return e==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()&&(e=this.otherValue),e},t.prototype.needConvertRenderedOtherToDataValue=function(){var e=this.otherValue;return!!(e&&(e=e.trim()))&&this.hasUnknownValue(e,!0,!1)},t.prototype.getIsQuestionReady=function(){return e.prototype.getIsQuestionReady.call(this)&&!this.waitingChoicesByURL&&!this.waitingGetChoiceDisplayValueResponse},t.prototype.updateSelectedItemValues=function(){var e=this;if(!(this.waitingGetChoiceDisplayValueResponse||!this.survey||this.isEmpty())){var t=this.value,r=Array.isArray(t)?t:[t];r.some(function(t){return!nL.getItemByValue(e.choices,t)}
vendor: 3,787 bytes, line 1
1)&&(this.choicesLazyLoadEnabled||this.hasChoicesUrl)&&(this.waitingGetChoiceDisplayValueResponse=!0,this.updateIsReady(),this.survey.getChoiceDisplayValue({question:this,values:r,setItems:function(n){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(e.waitingGetChoiceDisplayValueResponse=!1,!n||!n.length){e.updateIsReady();return}var s=n.map(function(t,n){return e.createItemValue(r[n],t)});e.setCustomValuesIntoItems(s,o),Array.isArray(t)?e.selectedItemValues=s:e.selectedItemValues=s[0],e.updateIsReady()}}))}},t.prototype.setCustomValuesIntoItems=function(e,t){Array.isArray(t)&&0!==t.length&&t.forEach(function(t){var r=t.values,n=t.propertyName;if(Array.isArray(r))for(var o=0;o<e.length&&o<r.length;o++)e[o][n]=r[o]})},t.prototype.hasUnknownValue=function(e,t,r,n){if(void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=!1),!Array.isArray(e))return this.hasUnknownValueItem(e,t,r,n);for(var o=0;o<e.length;o++)if(this.hasUnknownValueItem(e,t,r,n))return!0;return!1},t.prototype.hasUnknownValueItem=function(e,t,r,n){if(void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=!1),!n&&this.isValueEmpty(e)||t&&e==this.otherItem.value||this.showNoneItem&&e==this.noneItem.value||this.showRefuseItem&&e==this.refuseItem.value||this.showDontKnowItem&&e==this.dontKnowItem.value)return!1;var o=r?this.getFilteredChoices():this.activeChoices;return null==nL.getItemByValue(o,e)},t.prototype.isValueDisabled=function(e){var t=nL.getItemByValue(this.getFilteredChoices(),e);return!!t&&!t.isEnabled},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.updateVisibleChoices()},Object.defineProperty(t.prototype,"choicesByUrl",{get:function(){return this.getPropertyValue("choicesByUrl")},set:function(e){e&&(this.setNewRestfulProperty(),this.choicesByUrl.fromJSON(e.toJSON()))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choices",{get:function(){return this.getPropertyValue("choices")},set:function(e){this.setPropertyValue("choices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestion",{get:function(){return this.getPropertyValue("choicesFromQuestion")},set:function(e){var t=this.getQuestionWithChoices();this.isLockVisibleChoices=!!t&&t.name===e,t&&t.name!==e&&(t.removeDependedQuestion(this),this.isInDesignMode&&!this.isLoadingFromJson&&e&&this.setPropertyValue("choicesFromQuestion",void 0)),this.setPropertyValue("choicesFromQuestion",e),this.isLockVisibleChoices=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesFromQuestionMode",{get:function(){return this.getPropertyValue("choicesFromQuestionMode")},set:function(e){this.setPropertyValue("choicesFromQuestionMode",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceValuesFromQuestion",{get:function(){return this.getPropertyValue("choiceValuesFromQuestion")},set:function(e){this.setPropertyValue("choiceValuesFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choiceTextsFromQuestion",{get:function(){return this.getPropertyValue("choiceTextsFromQuestion")},set:function(e){this.setPropertyValue("choiceTextsFromQuestion",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfChoicesEmpty",{get:function(){return this.getPropertyValue("hideIfChoicesEmpty")},set:function(e){this.setPropertyValue("hideIfChoicesEmpty",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keepIncorrectValues",{get:function(){return this.getPropertyValue("keepIncorrectValues",!1)},set:function(e){this.setPropertyValue("keepIncorrectValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeOthersAsComment",{get:function(){return this.getPropertyValue("storeOthersAsComment")}
1,set:function(e){this.setPropertyValue("storeOthersAsComment",e)},enumerable:!1,configurable:!0}),t.prototype.hasOtherChanged=function(){this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"choicesOrder",{get:function(){return this.getPropertyValue("choicesOrder")},set:function(e){(e=e.toLowerCase())!=this.choicesOrder&&(this.setPropertyValue("choicesOrder",e),this.onVisibleChoicesChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherText",{get:function(){return this.getLocalizableStringText("otherText")},set:function(e){this.setLocalizableStringText("otherText",e),this.onVisibleChoicesChanged()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherText",{get:function(){return this.getLocalizableString("otherText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherPlaceHolder",{get:function(){return this.otherPlaceholder},set:function(e){this.otherPlaceholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"otherErrorText",{get:function(){return this.getLocalizableStringText("otherErrorText")},set:function(e){this.setLocalizableStringText("otherErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locOtherErrorText",{get:function(){return this.getLocalizableString("otherErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){return this.getPropertyValue("visibleChoices")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"enabledChoices",{get:function(){for(var e=[],t=this.visibleChoices,r=0;r<t.length;r++)t[r].isEnabled&&e.push(t[r]);return e},enumerable:!1,configurable:!0}),t.prototype.updateVisibleChoices=function(){if(!this.isLoadingFromJson&&!this.isDisposed){var e=[],t=this.calcVisibleChoices();!t&&(t=[]);for(var r=0;r<t.length;r++)e.push(t[r]);var n=this.visibleChoices;(!this.isTwoValueEquals(n,e)||this.choicesLazyLoadEnabled)&&(this.setArrayPropertyDirectly("visibleChoices",e),this.updateRenderedChoices())}},t.prototype.calcVisibleChoices=function(){if(this.canUseFilteredChoices())return this.getFilteredChoices();var e=this.sortVisibleChoices(this.getFilteredChoices().slice());return this.addToVisibleChoices(e,this.isAddDefaultItems),e},t.prototype.canUseFilteredChoices=function(){return!this.isAddDefaultItems&&!this.showNoneItem&&!this.showRefuseItem&&!this.showDontKnowItem&&!this.hasOther&&"none"==this.choicesOrder},t.prototype.setCanShowOptionItemCallback=function(e){this.canShowOptionItemCallback=e,e&&this.onVisibleChoicesChanged()},Object.defineProperty(t.prototype,"newItem",{get:function(){return this.newItemValue},enumerable:!1,configurable:!0}),t.prototype.addToVisibleChoices=function(e,t){this.headItemsCount=0,this.footItemsCount=0,!this.isEmptyActiveChoicesInDesign&&this.addNewItemToVisibleChoices(e,t);var r=[];this.addNonChoicesItems(r,t),r.sort(function(e,t){return e.index===t.index?0:e.index<t.index?-1:1});for(var n=0;n<r.length;n++){var o=r[n];o.index<0?(e.splice(n,0,o.item),this.headItemsCount++):(e.push(o.item),this.footItemsCount++)}},t.prototype.addNewItemToVisibleChoices=function(e,t){var r=this;t&&(!this.newItemValue&&(this.newItemValue=this.createItemValue("newitem"),this.newItemValue.isGhost=!0,this.newItemValue.registerFunctionOnPropertyValueChanged("isVisible",function(){r.updateVisibleChoices()})),this.newItemValue.isVisible&&!this.isUsingCarryForward&&this.canShowOptionItem(this.newItemValue,t,!1)&&(this.footItemsCount=1,e.push(this.newItemValue)))},t.prototype.addNonChoicesItems=function(e,t){this.supportNone()&&this.addNonChoiceItem(e,this.noneItem,t,this.showNoneItem,r9.specialChoicesOrder.noneItem),this.supportRefuse()&&this.addNonChoiceItem(e,this.refuseItem,t,this.showRefuseItem,r9.specialChoicesOrder.refuseItem),this.supportDontKnow()&&this.addNonChoiceItem(e,this.dontKnowItem,t,this.showDontKnowItem,r9.specialChoicesOrder.dontKnowItem),this.supportOther()&&this.addNonChoiceItem(e,this.otherItem,t,this.hasOther,r9.specialChoicesOrder.otherItem)},t.prototype.addNonChoiceItem=function(e,t,r,n,o){this.canShowOptionItem(t,r,n)&&o.forEach(function(r){return e.push({index:r,item:t})})},t.prototype.canShowOptionItem=function(e,t,r){var n=t&&(!this.canShowOptionItemCallback||this.canShowOptionItemCallback(e))||r;return this.canSurveyChangeItemVisibility()?this.changeItemVisibility()(e,n):n},t.prototype.isItemInList=function(e){return e===this.otherItem?this.hasOther:e===this.noneItem?this.showNoneItem:e===this.refuseItem?this.showRefuseItem:e===this.dontKnowItem?this.showDontKnowItem:e!==this.newItemValue&&!0},Object.defineProperty(t.prototype,"isAddDefaultItems",{get:function(){return r9.showDefaultItemsInCreatorV2&&this.isInDesignModeV2&&!this.customWidget}
vendor: 10,832 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0,includeQuestionTypes:!1});var n=e.prototype.getPlainData.call(this,t);if(n){var o=Array.isArray(this.value)?this.value:[this.value];n.isNode=!0,n.data=(n.data||[]).concat(o.map(function(e,n){var o=nL.getItemByValue(r.visibleChoices,e),i={name:n,title:"Choice",value:e,displayValue:r.getChoicesDisplayValue(r.visibleChoices,e),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1};return o&&(t.calculations||[]).forEach(function(e){i[e.propertyName]=o[e.propertyName]}),r.isOtherSelected&&r.otherItemValue===o&&(i.isOther=!0,i.displayValue=r.otherValue),i}))}return n},t.prototype.getDisplayValueCore=function(e,t){return this.useDisplayValuesInDynamicTexts?this.getChoicesDisplayValue(this.visibleChoices,t):t},t.prototype.getDisplayValueEmpty=function(){return nL.getTextOrHtmlByValue(this.visibleChoices,void 0)},t.prototype.getChoicesDisplayValue=function(e,t){if(t==this.otherItemValue.value)return this.otherValue?this.otherValue:this.locOtherText.textOrHtml;var r=this.getSingleSelectedItem();if(r&&this.isTwoValueEquals(r.value,t))return r.locText.textOrHtml;var n=nL.getTextOrHtmlByValue(e,t);return""==n&&t?t:n},t.prototype.getDisplayArrayValue=function(e,t,r){for(var n=this,o=this.visibleChoices,i=[],s=[],a=0;a<t.length;a++)s.push(r?r(a):t[a]);if(eA.isTwoValueEquals(this.value,s)&&this.getMultipleSelectedItems().forEach(function(e,t){return i.push(n.getItemDisplayValue(e,s[t]))}),0===i.length)for(var a=0;a<s.length;a++){var l=this.getChoicesDisplayValue(o,s[a]);l&&i.push(l)}return i.join(r9.choicesSeparator)},t.prototype.getItemDisplayValue=function(e,t){if(e===this.otherItem){if(this.hasOther&&this.showCommentArea&&t)return t;if(this.comment)return this.comment}return e.locText.textOrHtml},t.prototype.getFilteredChoices=function(){return this.filteredChoicesValue?this.filteredChoicesValue:this.activeChoices},Object.defineProperty(t.prototype,"activeChoices",{get:function(){var e=this.getCarryForwardQuestion();return"select"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromSelectQuestion(e)):"array"===this.carryForwardQuestionType?(e.addDependedQuestion(this),this.getChoicesFromArrayQuestion(e)):this.isEmptyActiveChoicesInDesign?[]:this.choicesFromUrl?this.choicesFromUrl:this.getChoices()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMessagePanelVisible",{get:function(){return this.getPropertyValue("isMessagePanelVisible",!1)},set:function(e){this.setPropertyValue("isMessagePanelVisible",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isEmptyActiveChoicesInDesign",{get:function(){return this.isInDesignModeV2&&(this.hasChoicesUrl||this.isMessagePanelVisible)},enumerable:!1,configurable:!0}),t.prototype.getCarryForwardQuestion=function(e){var t=this.findCarryForwardQuestion(e),r=this.getQuestionWithChoicesCore(t),n=r?null:this.getQuestionWithArrayValue(t);return this.setCarryForwardQuestionType(!!r,!!n),r||n?t:null},t.prototype.getIsReadyDependsOn=function(){var t=e.prototype.getIsReadyDependsOn.call(this);return this.carryForwardQuestion&&t.push(this.carryForwardQuestion),t},t.prototype.getQuestionWithChoices=function(){return this.getQuestionWithChoicesCore(this.findCarryForwardQuestion())},t.prototype.findCarryForwardQuestion=function(e){return!e&&(e=this.data),this.carryForwardQuestion=null,this.choicesFromQuestion&&e&&(this.carryForwardQuestion=e.findQuestionByName(this.choicesFromQuestion)),this.carryForwardQuestion},t.prototype.getQuestionWithChoicesCore=function(e){return e&&e.visibleChoices&&e6.isDescendantOf(e.getType(),"selectbase")&&e!==this?e:null},t.prototype.getQuestionWithArrayValue=function(e){return e&&e.isValueArray?e:null},t.prototype.getChoicesFromArrayQuestion=function(e){if(this.isInDesignMode)return[];var t=e.value;if(!Array.isArray(t))return[];for(var r=[],n=0;n<t.length;n++){var o=t[n];if(eA.isValueObject(o)){var i=this.getValueKeyName(o);if(i&&!this.isValueEmpty(o[i])){var s=this.choiceTextsFromQuestion?o[this.choiceTextsFromQuestion]:void 0;r.push(this.createItemValue(o[i],s))}}}return r},t.prototype.getValueKeyName=function(e){if(this.choiceValuesFromQuestion)return this.choiceValuesFromQuestion;var t=Object.keys(e);return t.length>0?t[0]:void 0},t.prototype.getChoicesFromSelectQuestion=function(e){if(this.isInDesignMode)return[];for(var t=[],r="selected"==this.choicesFromQuestionMode||"unselected"!=this.choicesFromQuestionMode&&void 0,n=e.visibleChoices,o=0;o<n.length;o++)if(!e.isBuiltInChoice(n[o])){if(void 0===r){t.push(this.copyChoiceItem(n[o]));continue}var i=e.isItemSelected(n[o]);(i&&r||!i&&!r)&&t.push(this.copyChoiceItem(n[o]))}return"selected"===this.choicesFromQuestionMode&&!this.showOtherItem&&e.isOtherSelected&&e.comment&&t.push(this.createItemValue(e.otherItem.value,e.comment)),t},t.prototype.copyChoiceItem=function(e){var t=this.createItemValue(e.value);return t.setData(e),t},Object.defineProperty(t.prototype,"hasActiveChoices",{get:function(){var e=this.visibleChoices;(!e||0==e.length)&&(this.onVisibleChoicesChanged(),e=this.visibleChoices);for(var t=0;t<e.length;t++)if(!this.isBuiltInChoice(e[t]))return!0;return!1},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return this.isNoneItem(e)||e===this.otherItem||e===this.newItemValue},t.prototype.isNoneItem=function(e){return this.getNoneItems().indexOf(e)>-1},t.prototype.getNoneItems=function(){return[this.noneItem,this.refuseItem,this.dontKnowItem]},t.prototype.getChoices=function(){return this.choices},t.prototype.supportOther=function(){return this.isSupportProperty("showOtherItem")},t.prototype.supportNone=function(){return this.isSupportProperty("showNoneItem")},t.prototype.supportRefuse=function(){return this.isSupportProperty("showRefuseItem")},t.prototype.supportDontKnow=function(){return this.isSupportProperty("showDontKnowItem")},t.prototype.isSupportProperty=function(e){return!this.isDesignMode||this.getPropertyByName(e).visible},t.prototype.onCheckForErrors=function(t,r,n){var o=this;if(e.prototype.onCheckForErrors.call(this,t,r,n),this.hasOther&&this.isOtherSelected&&!this.otherValue&&(!r||this.prevOtherErrorValue)){var i=new nl(this.otherErrorText,this);i.onUpdateErrorTextCallback=function(e){e.text=o.otherErrorText},t.push(i)}},t.prototype.setSurveyImpl=function(t,r){this.isRunningChoices=!0,e.prototype.setSurveyImpl.call(this,t,r),this.isRunningChoices=!1,this.runChoicesByUrl(),this.isAddDefaultItems&&this.updateVisibleChoices()},t.prototype.setSurveyCore=function(t){e.prototype.setSurveyCore.call(this,t),t&&this.choicesFromQuestion&&this.onVisibleChoicesChanged()},t.prototype.getStoreOthersAsComment=function(){return!this.isSettingDefaultValue&&!this.showCommentArea&&(!0===this.storeOthersAsComment||"default"==this.storeOthersAsComment&&(null==this.survey||this.survey.storeOthersAsComment)||this.hasChoicesUrl&&!this.choicesFromUrl)},t.prototype.onSurveyLoad=function(){this.runChoicesByUrl(),this.onVisibleChoicesChanged(),e.prototype.onSurveyLoad.call(this)},t.prototype.onAnyValueChanged=function(t,r){e.prototype.onAnyValueChanged.call(this,t,r),t!=this.getValueName()&&this.runChoicesByUrl();var n=this.choicesFromQuestion;t&&n&&(t===n||r===n)&&(this.onVisibleChoicesChanged(),this.clearIncorrectValues())},t.prototype.updateValueFromSurvey=function(t,r){var n="";this.hasOther&&!this.isRunningChoices&&!this.choicesByUrl.isRunning&&this.getStoreOthersAsComment()&&(this.hasUnknownValue(t)&&!this.getHasOther(t)?(n=this.getCommentFromValue(t),t=this.setOtherValueIntoValue(t)):this.data&&(n=this.data.getComment(this.getValueName()))),e.prototype.updateValueFromSurvey.call(this,t,r),(this.isRunningChoices||this.choicesByUrl.isRunning)&&!this.isEmpty()&&(this.cachedValueForUrlRequests=this.value),n&&this.setNewComment(n)},t.prototype.getCommentFromValue=function(e){return e},t.prototype.setOtherValueIntoValue=function(e){return this.otherItem.value},t.prototype.onOtherValueInput=function(e){this.isInputTextUpdate?e.target&&(this.otherValue=e.target.value):this.updateCommentElements()},t.prototype.onOtherValueChange=function(e){this.otherValue=e.target.value,this.otherValue!==e.target.value&&(e.target.value=this.otherValue)},t.prototype.runChoicesByUrl=function(){if(this.updateIsUsingRestful(),!!this.choicesByUrl&&!this.isLoadingFromJson&&!this.isRunningChoices&&!this.isInDesignModeV2){var e=this.surveyImpl?this.surveyImpl.getTextProcessor():this.textProcessor;!e&&(e=this.survey),e&&(this.updateIsReady(),this.isRunningChoices=!0,this.choicesByUrl.run(e),this.isRunningChoices=!1)}},t.prototype.onBeforeSendRequest=function(){!0===r9.web.disableQuestionWhileLoadingChoices&&!this.isReadOnly&&(this.enableOnLoadingChoices=!0,this.readOnly=!0)},t.prototype.onLoadChoicesFromUrl=function(e){this.enableOnLoadingChoices&&(this.readOnly=!1);var t=[];!this.isReadOnly&&this.choicesByUrl&&this.choicesByUrl.error&&t.push(this.choicesByUrl.error);var r=null,n=!0;this.isFirstLoadChoicesFromUrl&&!this.cachedValueForUrlRequests&&this.defaultValue&&(this.cachedValueForUrlRequests=this.defaultValue,n=!1),this.isValueEmpty(this.cachedValueForUrlRequests)&&(this.cachedValueForUrlRequests=this.value);var o=this.createCachedValueForUrlRequests(this.cachedValueForUrlRequests,n);if(e&&(e.length>0||this.choicesByUrl.allowEmptyResponse)&&(r=[],nL.setData(r,e)),r)for(var i=0;i<r.length;i++)r[i].locOwner=this;this.setChoicesFromUrl(r,t,o)},t.prototype.canAvoidSettChoicesFromUrl=function(e){return!(this.isFirstLoadChoicesFromUrl||(!e||Array.isArray(e)&&0===e.length)&&!this.isEmpty())&&eA.isTwoValueEquals(this.choicesFromUrl,e)},t.prototype.setChoicesFromUrl=function(e,t,r){if(!this.canAvoidSettChoicesFromUrl(e)){if(this.isFirstLoadChoicesFromUrl=!1,this.choicesFromUrl=e,this.filterItems(),this.onVisibleChoicesChanged(),e){var n=this.updateCachedValueForUrlRequests(r,e);if(n&&!this.isReadOnly){var o=!this.isTwoValueEquals(this.value,n.value);try{!this.isValueEmpty(n.value)&&(this.allowNotifyValueChanged=!1,this.setQuestionValue(void 0,!0,!1)),this.allowNotifyValueChanged=o,o?this.value=n.value:this.setQuestionValue(n.value)}finally{this.allowNotifyValueChanged=!0}}}!this.isReadOnly&&!e&&!this.isFirstLoadChoicesFromUrl&&(this.value=null),this.errors=t,this.choicesLoaded()}},t.prototype.createCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++)r.push(this.createCachedValueForUrlRequests(e[n],!0));return r}var o=!t||!this.hasUnknownValue(e);return{value:e,isExists:o}},t.prototype.updateCachedValueForUrlRequests=function(e,t){if(this.isValueEmpty(e))return null;if(Array.isArray(e)){for(var r=[],n=0;n<e.length;n++){var o=this.updateCachedValueForUrlRequests(e[n],t);
1if(o&&!this.isValueEmpty(o.value)){var i=o.value,s=nL.getItemByValue(t,o.value);s&&(i=s.value),r.push(i)}}return{value:r}}var a=e.isExists&&this.hasUnknownValue(e.value)?null:e.value,s=nL.getItemByValue(t,a);return s&&(a=s.value),{value:a}},t.prototype.updateChoicesDependedQuestions=function(){!this.isLoadingFromJson&&!this.isUpdatingChoicesDependedQuestions&&this.allowNotifyValueChanged&&!this.choicesByUrl.isRunning&&(this.isUpdatingChoicesDependedQuestions=!0,this.updateDependedQuestions(),this.isUpdatingChoicesDependedQuestions=!1)},t.prototype.updateDependedQuestion=function(){this.onVisibleChoicesChanged(),this.clearIncorrectValues()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.updateChoicesDependedQuestions()},t.prototype.onVisibleChoicesChanged=function(){!this.isLoadingFromJson&&!this.isLockVisibleChoices&&(this.updateVisibleChoices(),this.onVisibleChanged(),this.visibleChoicesChangedCallback&&this.visibleChoicesChangedCallback(),this.updateChoicesDependedQuestions())},t.prototype.isVisibleCore=function(){var t=e.prototype.isVisibleCore.call(this);if(!this.hideIfChoicesEmpty||!t)return t;var r=this.isUsingCarryForward?this.visibleChoices:this.getFilteredChoices();return!r||r.length>0},t.prototype.sortVisibleChoices=function(e){if(this.isInDesignMode)return e;var t=this.choicesOrder.toLowerCase();return"asc"==t?this.sortArray(e,1):"desc"==t?this.sortArray(e,-1):"random"==t?this.randomizeArray(e):e},t.prototype.sortArray=function(e,t){return e.sort(function(e,r){return eA.compareStrings(e.calculatedText,r.calculatedText)*t})},t.prototype.randomizeArray=function(e){return eA.randomizeArray(e)},Object.defineProperty(t.prototype,"hasChoicesUrl",{get:function(){return this.choicesByUrl&&!!this.choicesByUrl.url},enumerable:!1,configurable:!0}),t.prototype.clearIncorrectValues=function(){this.hasValueToClearIncorrectValues()&&this.canClearIncorrectValues()&&(this.clearIncorrectValuesCallback?this.clearIncorrectValuesCallback():this.clearIncorrectValuesCore())},t.prototype.canClearIncorrectValues=function(){return(!this.carryForwardQuestion||!!this.carryForwardQuestion.isReady)&&(!this.survey||!(this.survey.questionsByValueName(this.getValueName()).length>1))&&(!this.hasChoicesUrl||!!this.choicesFromUrl&&0!=this.choicesFromUrl.length)&&!0},t.prototype.hasValueToClearIncorrectValues=function(){return(!this.survey||!this.survey.keepIncorrectValues)&&!this.keepIncorrectValues&&!this.isEmpty()},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearIncorrectValues()},t.prototype.isItemSelected=function(e){return e===this.otherItem?this.isOtherSelected:this.isItemSelectedCore(e)},t.prototype.isItemSelectedCore=function(e){return e.value===this.value},t.prototype.clearDisabledValues=function(){this.survey&&this.survey.clearValueOnDisableItems&&this.clearDisabledValuesCore()},t.prototype.clearIncorrectValuesCore=function(){var e=this.value;this.canClearValueAnUnknown(e)&&this.clearValue(!0)},t.prototype.canClearValueAnUnknown=function(e){return(!!this.getStoreOthersAsComment()||!this.isOtherSelected)&&this.hasUnknownValue(e,!0,!0,!0)},t.prototype.clearDisabledValuesCore=function(){this.isValueDisabled(this.value)&&this.clearValue(!0)},t.prototype.clearUnusedValues=function(){e.prototype.clearUnusedValues.call(this),!this.isOtherSelected&&(this.otherValue=""),!this.showCommentArea&&!this.getStoreOthersAsComment()&&!this.isOtherSelected&&(this.comment="")},t.prototype.getColumnClass=function(){return new t$().append(this.cssClasses.column).append("sv-q-column-"+this.colCount,this.hasColumns).toString()},t.prototype.getItemIndex=function(e){return this.visibleChoices.indexOf(e)},t.prototype.getItemClass=function(e){var t={item:e},r=this.getItemClassCore(e,t);return t.css=r,this.survey&&this.survey.updateChoiceItemCss(this,t),t.css},t.prototype.getCurrentColCount=function(){return this.colCount},t.prototype.getItemClassCore=function(e,t){var r=new t$().append(this.cssClasses.item).append(this.cssClasses.itemInline,!this.hasColumns&&0===this.colCount).append("sv-q-col-"+this.getCurrentColCount(),!this.hasColumns&&0!==this.colCount).append(this.cssClasse
vendor: 14,101 bytes, line 1
1s.itemOnError,this.hasCssError()),n=this.getIsDisableAndReadOnlyStyles(!e.isEnabled),o=n[0],i=n[1],s=this.isItemSelected(e)||this.isOtherSelected&&this.otherItem.value===e.value,a=!i&&!s&&!(this.survey&&this.survey.isDesignMode),l=e===this.noneItem;return t.isDisabled=i||o,t.isChecked=s,t.isNone=l,r.append(this.cssClasses.itemDisabled,i).append(this.cssClasses.itemReadOnly,o).append(this.cssClasses.itemPreview,this.isPreviewStyle).append(this.cssClasses.itemChecked,s).append(this.cssClasses.itemHover,a).append(this.cssClasses.itemNone,l).toString()},t.prototype.getLabelClass=function(e){return new t$().append(this.cssClasses.label).append(this.cssClasses.labelChecked,this.isItemSelected(e)).toString()},t.prototype.getControlLabelClass=function(e){return new t$().append(this.cssClasses.controlLabel).append(this.cssClasses.controlLabelChecked,this.isItemSelected(e)).toString()||void 0},t.prototype.updateRenderedChoices=function(){this.renderedChoices=this.onGetRenderedChoicesCallback?this.onGetRenderedChoicesCallback(this.visibleChoices):this.visibleChoices},t.prototype.getRenderedChoicesAnimationOptions=function(){var e=this;return{isAnimationEnabled:function(){return e.animationAllowed},getRerenderEvent:function(){return e.onElementRerendered},getKey:function(t){return t!=e.newItemValue?t.value:e.newItemValue},getLeaveOptions:function(t){var r=e.cssClasses.itemLeave;if(e.hasColumns){var n=e.bodyItems.indexOf(t);-1!==n&&n!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:r5,onAfterRunAnimation:r4}},getAnimatedElement:function(e){return e.getRootElement()},getEnterOptions:function(t){var r=e.cssClasses.itemEnter;if(e.hasColumns){var n=e.bodyItems.indexOf(t);-1!==n&&n!==e.bodyItems.length-1&&(r="")}return{cssClass:r,onBeforeRunAnimation:function(r){if(0==e.getCurrentColCount()&&e.bodyItems.indexOf(t)>=0){var n=r.parentElement.firstElementChild.offsetLeft;r.offsetLeft>n&&r2(r,{moveAnimationDuration:"0s",fadeAnimationDelay:"0s"},"--")}r5(r)},onAfterRunAnimation:r4}}}},Object.defineProperty(t.prototype,"renderedChoices",{get:function(){return this._renderedChoices},set:function(e){this.renderedChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"headItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.headItemsCount:0,t=[],r=0;r<e;r++)this.renderedChoices[r]&&t.push(this.renderedChoices[r]);return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footItems",{get:function(){for(var e=this.separateSpecialChoices||this.isInDesignMode?this.footItemsCount:0,t=[],r=this.renderedChoices,n=0;n<e;n++)this.renderedChoices[r.length-e+n]&&t.push(this.renderedChoices[r.length-e+n]);return t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataChoices",{get:function(){var e=this;return this.renderedChoices.filter(function(t){return!e.isBuiltInChoice(t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bodyItems",{get:function(){return this.hasHeadItems||this.hasFootItems?this.dataChoices:this.renderedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasHeadItems",{get:function(){return this.headItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFootItems",{get:function(){return this.footItems.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){var e=[],t=this.getCurrentColCount();if(this.hasColumns&&this.renderedChoices.length>0){var r=this.separateSpecialChoices||this.isInDesignMode?this.dataChoices:this.renderedChoices;if("column"==r9.showItemsInOrder){for(var n=0,o=r.length%t,i=0;i<t;i++){for(var s=[],a=n;a<n+Math.floor(r.length/t);a++)s.push(r[a]);o>0&&(o--,s.push(r[a]),a++),n=a,e.push(s)}}else for(var i=0;i<t;i++){for(var s=[],a=i;a<r.length;a+=t)s.push(r[a]);e.push(s)}}return e},enumerable:!1,configurable:!0}),t.prototype.getItemsColumnKey=function(e){return(e||[]).map(function(e){return e.value||""}).join("")},Object.defineProperty(t.prototype,"hasColumns",{get:function(){return!this.isMobile&&this.getCurrentColCount()>1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowLayout",{get:function(){return 0==this.getCurrentColCount()&&!(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"blockedRow",{get:function(){return 0==this.getCurrentColCount()&&(this.hasFootItems||this.hasHeadItems)},enumerable:!1,configurable:!0}),t.prototype.choicesLoaded=function(){this.isChoicesLoaded=!0,this.updateIsReady(),this.survey&&this.survey.loadedChoicesFromServer(this),this.loadedChoicesFromServerCallback&&this.loadedChoicesFromServerCallback()},t.prototype.getItemValueWrapperComponentName=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentName(e,this):iV.TemplateRendererComponentName},t.prototype.getItemValueWrapperComponentData=function(e){var t=this.survey;return t?t.getItemValueWrapperComponentData(e,this):e},t.prototype.ariaItemChecked=function(e){return this.renderedValue===e.value?"true":"false"},t.prototype.isOtherItem=function(e){return this.hasOther&&e.value==this.otherItem.value},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.getSelectBaseRootCss=function(){return new t$().append(this.getQuestionRootCss()).append(this.cssClasses.rootRow,this.rowLayout).toString()},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getAriaItemLabel=function(e){return e.locText.renderedHtml},t.prototype.getItemId=function(e){return this.inputId+"_"+this.getItemIndex(e)},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.getItemEnabled=function(e){return!this.isDisabledAttr&&e.isEnabled},t.prototype.focusOtherComment=function(){var e;rw.FocusElement(this.otherId,!1,null===(e=this.survey)||void 0===e?void 0:e.rootElement)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),!this.isDesignMode&&!this.prevIsOtherSelected&&this.isOtherSelected&&this.focusOtherComment(),this.prevIsOtherSelected=this.isOtherSelected},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),iO([eW({onSet:function(e,t){t.onSelectedItemValuesChangedHandler(e)}})],t.prototype,"selectedItemValues",void 0),iO([eW()],t.prototype,"separateSpecialChoices",void 0),iO([eW({localizable:!0})],t.prototype,"otherPlaceholder",void 0),iO([eJ()],t.prototype,"_renderedChoices",void 0),t}(n_),iT=function(e){function t(t){return e.call(this,t)||this}return iS(t,e),Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount",this.isFlowLayout?0:void 0)},set:function(e){!(e<0)&&!(e>5)&&!this.isFlowLayout&&(this.setPropertyValue("colCount",e),this.fireCallback(this.colCountChangedCallback))},enumerable:!1,configurable:!0}),t.prototype.onParentChanged=function(){e.prototype.onParentChanged.call(this),this.isFlowLayout&&this.setPropertyValue("colCount",null)},t.prototype.onParentQuestionChanged=function(){this.onVisibleChoicesChanged()},t.prototype.getSearchableItemValueKeys=function(e){e.push("choices")},t}(iI);function iE(e,t){var r;if(!e)return!1;if(e.templateQuestion){var n=null===(r=e.colOwner)||void 0===r?void 0:r.data;if(!(e=e.templateQuestion).getCarryForwardQuestion(n))return!1}return e.carryForwardQuestionType===t}e6.addClass("selectbase",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},"choicesFromQuestion:question_carryforward",{name:"choices:itemvalue[]",uniqueProperty:"value",baseValue:function(){return eM("choices_Item")},dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesFromQuestionMode",default:"all",choices:["all","selected","unselected"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return iE(e,"select")}},{name:"choiceValuesFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return iE(e,"array")}},{name:"choiceTextsFromQuestion",dependsOn:"choicesFromQuestion",visibleIf:function(e){return iE(e,"array")}},{name:"choicesOrder",default:"none",choices:["none","asc","desc","random"],dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"choicesByUrl:restfull",className:"choicesByUrl",onGetValue:function(e){return e.choicesByUrl.getData()},onSetValue:function(e,t){e.choicesByUrl.setData(t)}},"hideIfChoicesEmpty:boolean","choicesVisibleIf:condition",{name:"choicesEnableIf:condition",dependsOn:"choicesFromQuestion",visibleIf:function(e){return!e.choicesFromQuestion}},{name:"defaultValue:value",visibleIf:function(e){return!e.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"correctAnswer:value",visibleIf:function(e){return!e.choicesFromQuestion},dependsOn:"choicesFromQuestion"},{name:"separateSpecialChoices:boolean",visible:!1},{name:"showOtherItem:boolean",alternativeName:"hasOther"},{name:"showNoneItem:boolean",alternativeName:"hasNone"},{name:"showRefuseItem:boolean",visible:!1,version:"1.9.128"},{name:"showDontKnowItem:boolean",visible:!1,version:"1.9.128"},{name:"otherPlaceholder",alternativeName:"otherPlaceHolder",serializationProperty:"locOtherPlaceholder",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"noneText",serializationProperty:"locNoneText",dependsOn:"showNoneItem",visibleIf:function(e){return e.showNoneItem}},{name:"refuseText",serializationProperty:"locRefuseText",dependsOn:"showRefuseItem",visibleIf:function(e){return e.showRefuseItem}},{name:"dontKnowText",serializationProperty:"locDontKnowText",dependsOn:"showDontKnowItem",visibleIf:function(e){return e.showDontKnowItem}},{name:"otherText",serializationProperty:"locOtherText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"otherErrorText",serializationProperty:"locOtherErrorText",dependsOn:"showOtherItem",visibleIf:function(e){return e.hasOther}},{name:"storeOthersAsComment",default:"default",choices:["default",!0,!1],visible:!1}],null,"question"),e6.addClass("checkboxbase",[{name:"colCount:number",default:1,choices:[0,1,2,3,4,5],layout:"row"}],null,"selectbase");var iR=function(){function e(e,t,r,n){this.x=e,this.y=t,this.width=r,this.height=n}return Object.defineProperty(e.prototype,"left",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),e}(),i_=function(){function e(){}return e.calculatePosition=function(e,t,r,n,o,i){void 0===i&&(i="flex");var s=e.left,a=e.top;return"flex"===i&&(s="center"==o?(e.left+e.right-r)/2:"left"==o?e.left-r:e.right),a="middle"==n?(e.top+e.bottom-t)/2:"top"==n?e.top-t:e.bottom,"center"!=o&&"middle"!=n&&("top"==n?a+=e.height:a-=e.height),{left:Math.round(s),top:Math.round(a)}},e.getCorrectedVerticalDimensions=function(t,r,n,o,i,s){void 0===i&&(i=!0),void 0===s&&(s={top:0,bottom:0});var a,l=n-e.bottomIndent;if("top"===o&&(a={height:r,top:t}),t<-s.top)a={height:i?r+t:r,top:-s.top};else if(r+t>n){var u=Math.min(r,l-t);a={height:i?u:r,top:i?t:t-(r-u)}}return a&&(a.height=Math.min(a.height,l),a.top=Math.max(a.top,-s.top)),a},e.updateHorizontalDimensions=function(e,t,r,n,o,i){void 0===o&&(o="flex"),void 0===i&&(i={left:0,right:0}),t+=i.left+i.right;var s=void 0,a=e;return"center"===n&&("fixed"===o?(e+t>r&&(s=r-e),a-=i.left):e<0?(a=i.left,s=Math.min(t,r)):t+e>r&&(a=Math.max(a=r-t,i.left),s=Math.min(t,r))),"left"===n&&e<0&&(a=i.left,s=Math.min(t,r)),"right"===n&&t+e>r&&(s=r-e),{width:s-i.left-i.right,left:a}},e.updateVerticalPosition=function(e,t,r,n,o){if("middle"===n)return n;var i=t-(e.top+("center"!==r?e.height:0)),s=t+e.bottom-("center"!==r?e.height:0)-o;return i>0&&s<=0&&"top"==n?n="bottom":s>0&&i<=0&&"bottom"==n?n="top":s>0&&i>0&&(n=i<s?"top":"bottom"),n},e.updateHorizontalPosition=function(e,t,r,n){if("center"===r)return r;var o=t-e.left,i=t+e.right-n;return o>0&&i<=0&&"left"==r?r="right":i>0&&o<=0&&"right"==r?r="left":i>0&&o>0&&(r=o<i?"left":"right"),r},e.calculatePopupDirection=function(e,t){var r;return"center"==t&&"middle"!=e?r=e:"center"!=t&&(r=t),r},e.calculatePointerTarget=function(e,t,r,n,o,i,s){void 0===i&&(i=0),void 0===s&&(s=0);var a={};return"center"!=o?(a.top=e.top+e.height/2,a.left=e[o]):"middle"!=n&&(a.top=e[n],a.left=e.left+e.width/2),a.left=Math.round(a.left-r),a.top=Math.round(a.top-t),"left"==o&&(a.left-=i+s),"center"===o&&(a.left-=i),a},e.bottomIndent=16,e}();var iD=(W=function(e,t){return(W=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}W(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ik=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},iA='input:not(:disabled):not([readonly]):not([type=hidden]),select:not(:disabled):not([readonly]),textarea:not(:disabled):not([readonly]), button:not(:disabled):not([readonly]), [tabindex]:not
1([tabindex^="-"])',iL=function(e){function t(t){var r=e.call(this)||this;return r.popupSelector=".sv-popup",r.fixedPopupContainer=".sv-popup",r.containerSelector=".sv-popup__container",r.scrollingContentSelector=".sv-popup__scrolling-content",r.visibilityAnimation=new rm(r,function(e){r._isVisible!==e&&(e?(r.updateBeforeShowing(),r.updateIsVisible(e)):(r.updateOnHiding(),r.updateIsVisible(e),r.updateAfterHiding(),r._isPositionSetValue=!1))},function(){return r._isVisible}),r.onVisibilityChanged=new tW,r.onModelIsVisibleChangedCallback=function(){r.isVisible=r.model.isVisible},r._isPositionSetValue=!1,r.model=t,r.locale=r.model.locale,r}return iD(t,e),t.prototype.updateIsVisible=function(e){this._isVisible=e,this.onVisibilityChanged.fire(this,{isVisible:e})},t.prototype.updateBeforeShowing=function(){this.model.onShow()},t.prototype.updateAfterHiding=function(){this.model.onHiding()},t.prototype.getLeaveOptions=function(){return{cssClass:"sv-popup--leave",onBeforeRunAnimation:function(e){e.setAttribute("inert","")},onAfterRunAnimation:function(e){return e.removeAttribute("inert")}}},t.prototype.getEnterOptions=function(){return{cssClass:"sv-popup--enter"}},t.prototype.getAnimatedElement=function(){return this.getAnimationContainer()},t.prototype.isAnimationEnabled=function(){return"overlay"!==this.model.displayMode&&r9.animationEnabled},t.prototype.getRerenderEvent=function(){return this.onElementRerendered},t.prototype.getAnimationContainer=function(){var e;return null===(e=this.container)||void 0===e?void 0:e.querySelector(this.fixedPopupContainer)},Object.defineProperty(t.prototype,"isVisible",{get:function(){return this._isVisible},set:function(e){this.visibilityAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.containerElement||this.createdContainer},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locale?this.locale:e.prototype.getLocale.call(this)},t.prototype.hidePopup=function(){this.model.isVisible=!1},t.prototype.getStyleClass=function(){return new t$().append(this.model.cssClass).append("sv-popup--"+this.model.displayMode,this.isOverlay)},t.prototype.getShowFooter=function(){return this.isOverlay},t.prototype.getShowHeader=function(){return!1},t.prototype.getPopupHeaderTemplate=function(){},t.prototype.createFooterActionBar=function(){var e=this;this.footerToolbarValue=new tZ,this.footerToolbar.updateCallback=function(t){e.footerToolbarValue.actions.forEach(function(e){return e.cssClasses={item:"sv-popup__body-footer-item sv-popup__button sd-btn"}})};var t=[{id:"cancel",visibleIndex:10,title:this.cancelButtonText,innerCss:"sv-popup__button--cancel sd-btn",action:function(){e.cancel()}}];t=this.model.updateFooterActions(t),this.footerToolbarValue.setItems(t)},t.prototype.resetDimensionsAndPositionStyleProperties=function(){var e="inherit";this.top=e,this.left=e,this.height=e,this.width=e,this.minWidth=e},t.prototype.onModelChanging=function(e){},t.prototype.setupModel=function(e){this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.onModelChanging(e),this._model=e,e.onVisibilityChanged.add(this.onModelIsVisibleChangedCallback),this.onModelIsVisibleChangedCallback()},Object.defineProperty(t.prototype,"model",{get:function(){return this._model},set:function(e){this.setupModel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.model.title},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentName",{get:function(){return this.model.contentComponentName},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentComponentData",{get:function(){return this.model.contentComponentData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isModal",{get:function(){return this.model.isModal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContent",{get:function(){return this.model.isFocusedContent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFocusedContainer",{get:function(){return this.model.isFocusedContainer}
vendor: 8,724 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFooter",{get:function(){return this.getShowFooter()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHeader",{get:function(){return this.getShowHeader()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupHeaderTemplate",{get:function(){return this.getPopupHeaderTemplate()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOverlay",{get:function(){return"overlay"===this.model.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"styleClass",{get:function(){return this.getStyleClass().toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cancelButtonText",{get:function(){return this.getLocalizationString("modalCancelButtonText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return!this.footerToolbarValue&&this.createFooterActionBar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.onKeyDown=function(e){"Tab"===e.key||9===e.keyCode?this.trapFocus(e):("Escape"===e.key||27===e.keyCode)&&this.hidePopup()},t.prototype.trapFocus=function(e){var t=this.container.querySelectorAll(iA),r=t[0],n=t[t.length-1];e.shiftKey?r9.environment.root.activeElement===r&&(n.focus(),e.preventDefault()):r9.environment.root.activeElement===n&&(r.focus(),e.preventDefault())},t.prototype.switchFocus=function(){this.isFocusedContent?this.focusFirstInput():this.isFocusedContainer&&this.focusContainer()},Object.defineProperty(t.prototype,"isPositionSet",{get:function(){return this._isPositionSetValue},enumerable:!1,configurable:!0}),t.prototype.updateOnShowing=function(){this.prevActiveElement=r9.environment.root.activeElement,this.isOverlay&&this.resetDimensionsAndPositionStyleProperties(),this.switchFocus(),this._isPositionSetValue=!0},t.prototype.updateOnHiding=function(){this.isFocusedContent&&this.prevActiveElement&&this.prevActiveElement.focus({preventScroll:!0})},t.prototype.focusContainer=function(){if(this.container){var e=this.container.querySelector(this.popupSelector);null==e||e.focus()}},t.prototype.focusFirstInput=function(){var e=this;setTimeout(function(){if(e.container){var t=e.container.querySelector(e.model.focusFirstInputSelector||iA);t?t.focus():e.focusContainer()}},100)},t.prototype.clickOutside=function(e){this.hidePopup(),null==e||e.stopPropagation()},t.prototype.cancel=function(){this.model.onCancel(),this.hidePopup()},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.model&&this.model.onVisibilityChanged.remove(this.onModelIsVisibleChangedCallback),this.createdContainer&&(this.createdContainer.remove(),this.createdContainer=void 0),this.footerToolbarValue&&this.footerToolbarValue.dispose(),this.resetComponentElement()},t.prototype.initializePopupContainer=function(){if(!this.container){var e=eD.createElement("div");this.createdContainer=e,rR(r9.environment.popupMountContainer).appendChild(e)}},t.prototype.setComponentElement=function(e){e&&(this.containerElement=e)},t.prototype.resetComponentElement=function(){this.containerElement=void 0,this.prevActiveElement=void 0},t.prototype.preventScrollOuside=function(e,t){for(var r=e.target;r!==this.container;){if("auto"===eD.getComputedStyle(r).overflowY&&r.scrollHeight!==r.offsetHeight){var n=r.scrollHeight,o=r.scrollTop,i=r.clientHeight;if(!(t>0&&1>Math.abs(n-i-o))&&!(t<0&&o<=0))return}r=r.parentElement}e.cancelable&&e.preventDefault()},ik([eW({defaultValue:"0px"})],t.prototype,"top",void 0),ik([eW({defaultValue:"0px"})],t.prototype,"left",void 0),ik([eW({defaultValue:"auto"})],t.prototype,"height",void 0),ik([eW({defaultValue:"auto"})],t.prototype,"width",void 0),ik([eW({defaultValue:"auto"})],t.prototype,"minWidth",void 0),ik([eW({defaultValue:!1})],t.prototype,"_isVisible",void 0),ik([eW()],t.prototype,"locale",void 0),t}(tQ);var iN=(U=function(e,t){return(U=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}U(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),iM=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};function iF(e,t){return Math.min(e||e_.getInnerWidth(),t||e_.getInnerHeight())>=iq.tabletSizeBreakpoint}var iq=function(e){function t(t){var r=e.call(this,t)||this;return r.scrollEventCallBack=function(e){if(r.isOverlay&&oT){e.stopPropagation(),e.preventDefault();return}r.hidePopup()},r.resizeEventCallback=function(){if(e_.isAvailable()){var e=e_.getVisualViewport(),t=eD.getDocumentElement();t&&e&&t.style.setProperty("--sv-popup-overlay-height",e.height*e.scale+"px")}},r.resizeWindowCallback=function(){!r.isOverlay&&r.updatePosition(!0,"vue"===iV.platform||"vue3"===iV.platform||"react"==iV.platform)},r.clientY=0,r.isTablet=!1,r.touchStartEventCallback=function(e){r.clientY=e.touches[0].clientY},r.touchMoveEventCallback=function(e){r.preventScrollOuside(e,r.clientY-e.changedTouches[0].clientY)},r.model.onRecalculatePosition.add(r.recalculatePositionHandler),r}return iN(t,e),t.prototype.calculateIsTablet=function(e,t){this.isTablet=iF(e,t)},t.prototype.getAvailableAreaRect=function(){var e=this.model.getAreaCallback?this.model.getAreaCallback(this.container):void 0;if(e){var t=e.getBoundingClientRect();return new iR(t.x,t.y,t.width,t.height)}return new iR(0,0,e_.getInnerWidth(),e_.getInnerHeight())},t.prototype.getTargetElementRect=function(){var e=this.container,t=this.model.getTargetCallback?this.model.getTargetCallback(e):void 0;if(e&&e.parentElement&&!this.isModal&&!t&&(t=e.parentElement),!t)return null;var r=t.getBoundingClientRect(),n=this.getAvailableAreaRect();return new iR(r.left-n.left,r.top-n.top,r.width,r.height)},t.prototype._updatePosition=function(){var e,t,r,n=this.getTargetElementRect();if(!!n){var o=this.getAvailableAreaRect(),i=null===(e=this.container)||void 0===e?void 0:e.querySelector(this.containerSelector);if(i){var s=null===(t=this.container)||void 0===t?void 0:t.querySelector(this.fixedPopupContainer),a=i.querySelector(this.scrollingContentSelector),l=eD.getComputedStyle(i),u=parseFloat(l.marginLeft)||0,c=parseFloat(l.marginRight)||0,p=parseFloat(l.marginTop)||0,h=parseFloat(l.marginBottom)||0,d=i.offsetHeight-a.offsetHeight+a.scrollHeight,f=i.getBoundingClientRect().width;this.model.setWidthByTarget&&(this.minWidth=n.width+"px");var g=this.model.verticalPosition,m=this.getActualHorizontalPosition();if(e_.isAvailable()){var y=[d,.9*e_.getInnerHeight(),null===(r=e_.getVisualViewport())||void 0===r?void 0:r.height];d=Math.ceil(Math.min.apply(Math,y.filter(function(e){return"number"==typeof e}))),g=i_.updateVerticalPosition(n,d,this.model.horizontalPosition,this.model.verticalPosition,o.height),m=i_.updateHorizontalPosition(n,f,m,o.width)}this.popupDirection=i_.calculatePopupDirection(g,m);var b=i_.calculatePosition(n,d,f+u+c,g,m,this.model.positionMode);if(e_.isAvailable()){var v=i_.getCorrectedVerticalDimensions(b.top,d,o.height,g,this.model.canShrink,{top:p,bottom:h});if(v&&(this.height=v.height+"px",b.top=v.top),this.model.setWidthByTarget)this.width=n.width+"px",b.left=n.left;else{var C=i_.updateHorizontalDimensions(b.left,f,e_.getInnerWidth(),m,this.model.positionMode,{left:u,right:c});C&&(this.width=C.width?C.width+"px":void 0,b.left=C.left)}}if(s){var x=s.getBoundingClientRect();b.top-=x.top,b.left-=x.left}b.left+=o.left,b.top+=o.top,this.left=b.left+"px",this.top=b.top+"px",this.showHeader&&(this.pointerTarget=i_.calculatePointerTarget(n,b.top,b.left,g,m,u,c),this.pointerTarget.top+="px",this.pointerTarget.left+="px")}}},t.prototype.getActualHorizontalPosition=function(){var e=this.model.horizontalPosition;return eD.isAvailable()&&"rtl"==eD.getComputedStyle(eD.getBody()).direction&&("left"===this.model.horizontalPosition?e="right":"right"===this.model.horizontalPosition&&(e="left")),e},t.prototype.getStyleClass=function(){var t=this.model.overlayDisplayMode;return e.prototype.getStyleClass.call(this).append("sv-popup--dropdown",!this.isOverlay).append("sv-popup--dropdown-overlay",this.isOverlay&&"plain"!==t).append("sv-popup--tablet",this.isOverlay&&("tablet-dropdown-overlay"==t||"auto"==t&&this.isTablet)).append("sv-popup--show-
1pointer",!this.isOverlay&&this.showHeader).append("sv-popup--"+this.popupDirection,!this.isOverlay&&(this.showHeader||"top"==this.popupDirection||"bottom"==this.popupDirection))},t.prototype.getShowHeader=function(){return this.model.showPointer&&!this.isOverlay},t.prototype.getPopupHeaderTemplate=function(){return"popup-pointer"},t.prototype.setComponentElement=function(t){e.prototype.setComponentElement.call(this,t)},t.prototype.resetComponentElement=function(){e.prototype.resetComponentElement.call(this)},t.prototype.updateOnShowing=function(){var e=r9.environment.root;this.prevActiveElement=e.activeElement,this.isOverlay?this.resetDimensionsAndPositionStyleProperties():this.updatePosition(!0,!1),this.switchFocus(),e_.addEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(e_.getVisualViewport().addEventListener("resize",this.resizeEventCallback),this.container&&(this.container.addEventListener("touchstart",this.touchStartEventCallback),this.container.addEventListener("touchmove",this.touchMoveEventCallback)),this.calculateIsTablet(),this.resizeEventCallback()),e_.addEventListener("scroll",this.scrollEventCallBack),this._isPositionSetValue=!0},Object.defineProperty(t.prototype,"shouldCreateResizeCallback",{get:function(){return!!e_.getVisualViewport()&&this.isOverlay&&oT},enumerable:!1,configurable:!0}),t.prototype.updatePosition=function(e,t){var r=this;void 0===t&&(t=!0),e&&(this.height="auto"),t?setTimeout(function(){r._updatePosition()},1):this._updatePosition()},t.prototype.updateOnHiding=function(){e.prototype.updateOnHiding.call(this),e_.removeEventListener("resize",this.resizeWindowCallback),this.shouldCreateResizeCallback&&(e_.getVisualViewport().removeEventListener("resize",this.resizeEventCallback),this.container&&(this.container.removeEventListener("touchstart",this.touchStartEventCallback),this.container.removeEventListener("touchmove",this.touchMoveEventCallback))),e_.removeEventListener("scroll",this.scrollEventCallBack),!this.isDisposed&&(this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.minWidth=void 0)},t.prototype.onModelChanging=function(t){var r=this;this.model&&this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),!this.recalculatePositionHandler&&(this.recalculatePositionHandler=function(e,t){!r.isOverlay&&r.updatePosition(t.isResetHeight)}),e.prototype.onModelChanging.call(this,t),t.onRecalculatePosition.add(this.recalculatePositionHandler)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.updateOnHiding(),this.model&&(this.model.onRecalculatePosition.remove(this.recalculatePositionHandler),this.recalculatePositionHandler=void 0),this.resetComponentElement()},t.tabletSizeBreakpoint=600,iM([eW()],t.prototype,"isTablet",void 0),iM([eW({defaultValue:"left"})],t.prototype,"popupDirection",void 0),iM([eW({defaultValue:{left:"0px",top:"0px"}})],t.prototype,"pointerTarget",void 0),t}(iL);var iB=(J=function(e,t){return(J=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}J(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),iQ=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},iH=function(e){function t(t,r){var n=e.call(this)||this;n.question=t,n.onSelectionChanged=r,n.minPageSize=25,n.loadingItemHeight=40,n.timer=void 0,n._markdownMode=!1,n.filteredItems=void 0,n.selectedItemSelector=".sv-list__item--selected",n.itemSelector=".sv-list__item",n.itemsSettings={skip:0,take:0,totalCount:0,items:[]},n.listModelFilterStringChanged=function(e){n.filterString!==e&&(n.filterString=e)}
vendor: 52,318 bytes, line 1
1,n.questionPropertyChangedHandler=function(e,t){n.onPropertyChangedHandler(e,t)},n.htmlCleanerElement=eD.createElement("div"),t.onPropertyChanged.add(n.questionPropertyChangedHandler),n.showInputFieldComponent=n.question.showInputFieldComponent,n.listModel=n.createListModel(),n.updateAfterListModelCreated(n.listModel),n.setChoicesLazyLoadEnabled(n.question.choicesLazyLoadEnabled),n.setSearchEnabled(n.question.searchEnabled),n.setTextWrapEnabled(n.question.textWrapEnabled),n.createPopup(),n.resetItemsSettings();var o=t.cssClasses;return n.updateCssClasses(o.popup,o.list),n}return iB(t,e),Object.defineProperty(t.prototype,"focusFirstInputSelector",{get:function(){return this.getFocusFirstInputSelector()},enumerable:!1,configurable:!0}),t.prototype.getFocusFirstInputSelector=function(){return oT?this.isValueEmpty(this.question.value)?this.itemSelector:this.selectedItemSelector:!this.listModel.showFilter&&this.question.value?this.selectedItemSelector:""},t.prototype.resetItemsSettings=function(){this.itemsSettings.skip=0,this.itemsSettings.take=Math.max(this.minPageSize,this.question.choicesLazyLoadPageSize),this.itemsSettings.totalCount=0,this.itemsSettings.items=[]},t.prototype.setItems=function(e,t){this.itemsSettings.items=[].concat(this.itemsSettings.items,e),this.itemsSettings.totalCount=t,this.listModel.isAllDataLoaded=this.question.choicesLazyLoadEnabled&&this.itemsSettings.items.length==this.itemsSettings.totalCount,this.question.choices=this.itemsSettings.items},t.prototype.loadQuestionChoices=function(e){var t=this;this.question.survey.loadQuestionChoices({question:this.question,filter:this.filterString,skip:this.itemsSettings.skip,take:this.itemsSettings.take,setItems:function(r,n){t.setItems(r||[],n||0),t.popupRecalculatePosition(t.itemsSettings.skip===t.itemsSettings.take),e&&e()}}),this.itemsSettings.skip+=this.itemsSettings.take},t.prototype.updateQuestionChoices=function(e){var t=this,r=this.itemsSettings.skip+1<this.itemsSettings.totalCount;(!this.itemsSettings.skip||r)&&(this.resetTimer(),this.filterString&&r9.dropdownSearchDelay>0?this.timer=setTimeout(function(){t.loadQuestionChoices(e)},r9.dropdownSearchDelay):this.loadQuestionChoices(e))},t.prototype.resetTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=void 0)},t.prototype.updatePopupFocusFirstInputSelector=function(){this._popupModel.focusFirstInputSelector=this.focusFirstInputSelector},t.prototype.getDropdownMenuOptions=function(){var e=e_.getInnerWidth(),t=e_.getInnerHeight(),r=iF(e,t),n="dropdown",o="desktop";return oT&&(n=r?"popup":"overlay",o=r?"tablet":"mobile"),{menuType:n,deviceType:o,hasTouchScreen:oT,screenHeight:t,screenWidth:e}},t.prototype.createPopup=function(){var e=this;this._popupModel=new t6("sv-list",{model:this.listModel},{verticalPosition:"bottom",horizontalPosition:"center",showPointer:!1}),this._popupModel.displayMode=oT?"overlay":"popup",this._popupModel.positionMode="fixed",this._popupModel.isFocusedContainer=!1,this._popupModel.isFocusedContent=oT,this._popupModel.setWidthByTarget=!oT,this._popupModel.locale=this.question.getLocale(),this.updatePopupFocusFirstInputSelector(),this.listModel.registerPropertyChangedHandlers(["showFilter"],function(){e.updatePopupFocusFirstInputSelector()}),this._popupModel.onVisibilityChanged.add(function(t,r){if(r.isVisible&&(e.listModel.renderElements=!0),r.isVisible&&e.question.choicesLazyLoadEnabled&&(e.listModel.actions=[],e.resetItemsSettings(),e.updateQuestionChoices()),r.isVisible){e.updatePopupFocusFirstInputSelector();var n=e.getDropdownMenuOptions(),o=n.menuType;e.question.processOpenDropdownMenu(n),o!==n.menuType&&(e._popupModel.updateDisplayMode(n.menuType),e.listModel.setSearchEnabled(e.searchEnabled&&"dropdown"!==n.menuType)),e.question.onOpenedCallBack&&e.question.onOpenedCallBack()}!r.isVisible&&(e.onHidePopup(),e.question.choicesLazyLoadEnabled&&e.resetItemsSettings()),e.question.ariaExpanded=r.isVisible?"true":"false",e.question.processPopupVisiblilityChanged(e.popupModel,r.isVisible)})},t.prototype.setFilterStringToListModel=function(e){var t=this;if(this.listModel.filterString=e,this.listModel.resetFocusedItem(),this.question.selectedItem&&this.question.selectedItem.text.indexOf(e)>=0){this.listModel.focusedItem=this.getAvailableItems().filter(function(e){return e.id==t.question.selectedItem.value})[0],this.listModel.filterString&&this.listModel.actions.map(function(e){return e.selectedValue=!1});return}(!this.listModel.focusedItem||!this.listModel.isItemVisible(this.listModel.focusedItem))&&this.listModel.focusFirstVisibleItem()},t.prototype.setTextWrapEnabled=function(e){this.listModel.textWrapEnabled=e},t.prototype.popupRecalculatePosition=function(e){var t=this;setTimeout(function(){t.popupModel.recalculatePosition(e)},1)},t.prototype.onHidePopup=function(){this.resetFilterString(),this.question.suggestedItem=null},t.prototype.getAvailableItems=function(){return this.question.visibleChoices},t.prototype.setOnTextSearchCallbackForListModel=function(e){var t=this;e.setOnTextSearchCallback(function(e,r){if(t.filteredItems)return t.filteredItems.indexOf(e)>=0;var n=e.text.toLocaleLowerCase(),o=(n=r9.comparator.normalizeTextCallback(n,"filter")).indexOf(r.toLocaleLowerCase());return"startsWith"==t.question.searchMode?0==o:o>-1})},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),r=this.onSelectionChanged;!r&&(r=function(t){e.question.value=t.id,e.question.searchEnabled&&e.applyInputString(t),e.popupModel.hide()});var n=new t4({items:t,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId});return this.setOnTextSearchCallbackForListModel(n),n.renderElements=!1,n.forceShowFilter=!0,n.areSameItemsCallback=function(e,t){return e===t},n},t.prototype.updateAfterListModelCreated=function(e){var t=this;e.isItemSelected=function(e){return!!e.selected},e.onPropertyChanged.add(function(e,r){"hasVerticalScroller"==r.name&&(t.hasScroll=r.newValue)}),e.isAllDataLoaded=!this.question.choicesLazyLoadEnabled,e.actions.forEach(function(e){return e.disableTabStop=!0})},t.prototype.getPopupCssClasses=function(){return"sv-single-select-list"},t.prototype.updateCssClasses=function(e,t){this.popupModel.cssClass=new t$().append(e).append(this.getPopupCssClasses()).toString(),this.listModel.cssClasses=t},t.prototype.resetFilterString=function(){this.filterString&&(this.filterString=void 0)},t.prototype.clear=function(){this.inputString=null,this.hintString="",this.resetFilterString()},t.prototype.onSetFilterString=function(){var e=this;if(this.filteredItems=void 0,this.filterString||this.popupModel.isVisible){var t={question:this.question,choices:this.getAvailableItems(),filter:this.filterString,filteredChoices:void 0};this.question.survey.onChoicesSearch.fire(this.question.survey,t),this.filteredItems=t.filteredChoices,this.filterString&&!this.popupModel.isVisible&&this.popupModel.show();var r=function(){e.setFilterStringToListModel(e.filterString),e.popupRecalculatePosition(!0)};this.question.choicesLazyLoadEnabled?(this.resetItemsSettings(),this.updateQuestionChoices(r)):r()}},Object.defineProperty(t.prototype,"isAllDataLoaded",{get:function(){return!!this.itemsSettings.totalCount&&this.itemsSettings.items.length==this.itemsSettings.totalCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowSelectedItem",{get:function(){return!this.focused||this._markdownMode||!this.searchEnabled},enumerable:!1,configurable:!0}),t.prototype.applyInputString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.inputString=this.cleanHtml(null==e?void 0:e.locText.getHtmlValue()),this.hintString=""):(this.inputString=null==e?void 0:e.title,this.hintString=null==e?void 0:e.title)},t.prototype.cleanHtml=function(e){return this.htmlCleanerElement?(this.htmlCleanerElement.innerHTML=e,this.htmlCleanerElement.textContent):""},t.prototype.fixInputCase=function(){var e=this.hintStringMiddle;e&&this.inputString!=e&&(this.inputString=e)},t.prototype.applyHintString=function(e){(null==e?void 0:e.locText.hasHtml)||this.question.inputFieldComponentName?(this._markdownMode=!0,this.hintString=""):this.hintString=null==e?void 0:e.title},Object.defineProperty(t.prototype,"inputStringRendered",{get:function(){return this.inputString||""},set:function(e){this.inputString=e,this.filterString=e,e?this.applyHintString(this.listModel.focusedItem||this.question.selectedItem):this.hintString=""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholderRendered",{get:function(){return this.hintString?"":this.question.readOnlyText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElementId",{get:function(){return this.question.inputId+"_list"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringLC",{get:function(){var e;return(null===(e=this.hintString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputStringLC",{get:function(){var e;return(null===(e=this.inputString)||void 0===e?void 0:e.toLowerCase())||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintPrefix",{get:function(){return!!this.inputString&&this.hintStringLC.indexOf(this.inputStringLC)>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringPrefix",{get:function(){return this.inputString?this.hintString.substring(0,this.hintStringLC.indexOf(this.inputStringLC)):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showHintString",{get:function(){return!!this.question.searchEnabled&&this.hintStringLC&&this.hintStringLC.indexOf(this.inputStringLC)>=0||!this.question.searchEnabled&&this.hintStringLC&&this.question.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringSuffix",{get:function(){return this.hintString.substring(this.hintStringLC.indexOf(this.inputStringLC)+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hintStringMiddle",{get:function(){var e=this.hintStringLC.indexOf(this.inputStringLC);return -1==e?null:this.hintString.substring(e,e+this.inputStringLC.length)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this._popupModel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"noTabIndex",{get:function(){return this.question.isInputReadOnly||this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterReadOnly",{get:function(){return this.question.isInputReadOnly||!this.searchEnabled||!this.focused},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filterStringEnabled",{get:function(){return!this.question.isInputReadOnly&&this.searchEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputMode",{get:function(){return oT?"none":"text"},enumerable:!1,configurable:!0}),t.prototype.setSearchEnabled=function(e){this.listModel.setSearchEnabled(oT&&e),this.searchEnabled=e},t.prototype.setChoicesLazyLoadEnabled=function(e){this.listModel.setOnFilterStringChangedCallback(e?this.listModelFilterStringChanged:void 0)},t.prototype.updateItems=function(){this.listModel.setItems(this.getAvailableItems())},t.prototype.onClick=function(e){!this.question.readOnly&&!this.question.isDesignMode&&!this.question.isPreviewStyle&&!this.question.isReadOnlyAttr&&(this._popupModel.toggleVisibility(),this.focusItemOnClickAndPopup(),this.question.focusInputElement(!1))},t.prototype.chevronPointerDown=function(e){this._popupModel.isVisible&&e.preventDefault()},t.prototype.onPropertyChangedHandler=function(e,t){"value"==t.name&&(this.showInputFieldComponent=this.question.showInputFieldComponent),"textWrapEnabled"==t.name&&this.setTextWrapEnabled(t.newValue)},t.prototype.focusItemOnClickAndPopup=function(){this._popupModel.isVisible&&this.question.value&&this.changeSelectionWithKeyboard(!1)},t.prototype.onClear=function(e){this.question.clearValue(!0),this._popupModel.hide(),e&&(e.preventDefault(),e.stopPropagation())},t.prototype.getSelectedAction=function(){return this.question.selectedItem||null},t.prototype.changeSelectionWithKeyboard=function(e){var t,r=this.listModel.focusedItem;!r&&this.question.selectedItem?nL.getItemByValue(this.question.visibleChoices,this.question.value)&&(this.listModel.focusedItem=this.question.selectedItem):e?this.listModel.focusPrevVisibleItem():this.listModel.focusNextVisibleItem(),this.beforeScrollToFocusedItem(r),this.scrollToFocusedItem(),this.afterScrollToFocusedItem(),this.ariaActivedescendant=null===(t=this.listModel.focusedItem)||void 0===t?void 0:t.elementId},t.prototype.beforeScrollToFocusedItem=function(e){this.question.value&&e&&(e.selectedValue=!1,this.listModel.focusedItem.selectedValue=!this.listModel.filterString,this.question.suggestedItem=this.listModel.focusedItem)},t.prototype.afterScrollToFocusedItem=function(){var e;this.question.value&&!this.listModel.filterString&&this.question.searchEnabled?this.applyInputString(this.listModel.focusedItem||this.question.selectedItem):this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.fixInputCase(),this.ariaActivedescendant=null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.elementId},t.prototype.keyHandler=function(e){var t=e.which||e.keyCode;if(this.popupModel.isVisible&&38===e.keyCode?(this.changeSelectionWithKeyboard(!0),e.preventDefault(),e.stopPropagation()):40===e.keyCode&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1),e.preventDefault(),e.stopPropagation()),9===e.keyCode)this.popupModel.hide();else if(this.popupModel.isVisible||13!==e.keyCode&&32!==e.keyCode){if(!this.popupModel.isVisible||13!==e.keyCode&&(32!==e.keyCode||this.question.searchEnabled&&this.inputString)){if(46===t||8===t)!this.searchEnabled&&this.onClear(e);else if(27===e.keyCode)this._popupModel.hide(),this.hintString="",this.onEscape();else{if((38===e.keyCode||40===e.keyCode||32===e.keyCode&&!this.question.searchEnabled)&&(e.preventDefault(),e.stopPropagation()),32===e.keyCode&&this.question.searchEnabled)return;rz(e,{processEsc:!1,disableTabStop:this.question.isInputReadOnly})}}else 13===e.keyCode&&this.question.searchEnabled&&!this.inputString&&this.question instanceof iU&&!this._markdownMode&&this.question.value?(this._popupModel.hide(),this.onClear(e)):(this.listModel.selectFocusedItem(),this.onFocus(e)),e.preventDefault(),e.stopPropagation()}else 32===e.keyCode&&(this.popupModel.show(),this.changeSelectionWithKeyboard(!1)),13===e.keyCode&&this.question.survey.questionEditFinishCallback(this.question,e),e.preventDefault(),e.stopPropagation()},t.prototype.onEscape=function(){this.question.searchEnabled&&this.applyInputString(this.question.selectedItem)},t.prototype.onScroll=function(e){var t=e.target;t.scrollHeight-(t.scrollTop+t.offsetHeight)<=this.loadingItemHeight&&this.updateQuestionChoices()},t.prototype.onBlur=function(e){if(this.focused=!1,this.popupModel.isVisible&&oT){this._popupModel.show();return}rH(e),this._popupModel.hide(),this.resetFilterString(),this.inputString=null,this.hintString="",e.stopPropagation()},t.prototype.onFocus=function(e){this.focused=!0,this.setInputStringFromSelectedItem(this.question.selectedItem)},t.prototype.setInputStringFromSelectedItem=function(e){this.focused&&(this.question.searchEnabled&&e?this.applyInputString(e):this.inputString=null)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.question&&this.question.onPropertyChanged.remove(this.questionPropertyChangedHandler),this.questionPropertyChangedHandler=void 0,this.listModel&&this.listModel.dispose(),this.popupModel&&this.popupModel.dispose(),this.htmlCleanerElement=void 0},t.prototype.scrollToFocusedItem=function(){this.listModel.scrollToFocusedItem()},iQ([eW({defaultValue:!1})],t.prototype,"focused",void 0),iQ([eW({defaultValue:!0})],t.prototype,"searchEnabled",void 0),iQ([eW({defaultValue:"",onSet:function(e,t){t.onSetFilterString()}})],t.prototype,"filterString",void 0),iQ([eW({defaultValue:"",onSet:function(e,t){t.question.inputHasValue=!!e}})],t.prototype,"inputString",void 0),iQ([eW({})],t.prototype,"showInputFieldComponent",void 0),iQ([eW()],t.prototype,"ariaActivedescendant",void 0),iQ([eW({defaultValue:!1,onSet:function(e,t){e?t.listModel.addScrollEventListener(function(e){t.onScroll(e)}):t.listModel.removeScrollEventListener()}})],t.prototype,"hasScroll",void 0),iQ([eW({defaultValue:""})],t.prototype,"hintString",void 0),t}(tQ);var iz=(G=function(e,t){return(G=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}G(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),iW=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},iU=function(e){function t(t){var r=e.call(this,t)||this;return r.lastSelectedItemValue=null,r.minMaxChoices=[],r.onOpened=r.addEvent(),r.ariaExpanded="false",r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("clearCaption",r,!1,!0),r.registerPropertyChangedHandlers(["choicesMin","choicesMax","choicesStep"],function(){r.onVisibleChoicesChanged()}),r.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){r.updateReadOnlyText()}),r.updateReadOnlyText(),r}return iz(t,e),t.prototype.updateReadOnlyText=function(){var e=this.selectedItem?"":this.placeholder;"select"==this.renderAs&&(this.isOtherSelected?e=this.otherText:this.isNoneSelected?e=this.noneText:this.selectedItem&&(e=this.selectedItemText)),this.readOnlyText=e},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.updateReadOnlyText()},Object.defineProperty(t.prototype,"showOptionsCaption",{get:function(){return this.allowClear},set:function(e){this.allowClear=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||r9.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionsCaption",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"dropdown"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),t.prototype.onGetSingleSelectedItem=function(e){e&&(this.lastSelectedItemValue=e)},t.prototype.supportGoNextPageAutomatic=function(){return!this.isOtherSelected},t.prototype.getChoices=function(){var t=e.prototype.getChoices.call(this);if(this.choicesMax<=this.choicesMin)return t;for(var r=[],n=0;n<t.length;n++)r.push(t[n]);if(0===this.minMaxChoices.length||this.minMaxChoices.length!==(this.choicesMax-this.choicesMin)/this.choicesStep+1){this.minMaxChoices=[];for(var n=this.choicesMin;n<=this.choicesMax;n+=this.choicesStep)this.minMaxChoices.push(this.createItemValue(n))}return r=r.concat(this.minMaxChoices)},Object.defineProperty(t.prototype,"choicesMin",{get:function(){return this.getPropertyValue("choicesMin")},set:function(e){this.setPropertyValue("choicesMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesMax",{get:function(){return this.getPropertyValue("choicesMax")},set:function(e){this.setPropertyValue("choicesMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"choicesStep",{get:function(){return this.getPropertyValue("choicesStep")},set:function(e){e<1&&(e=1),this.setPropertyValue("choicesStep",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete","")},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new t$().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).append(this.cssClasses.controlInputFieldComponent,!!this.inputFieldComponentName).toString()},t.prototype.updateCssClasses=function(t,r){e.prototype.updateCssClasses.call(this,t,r),this.useDropdownList&&r0(t,r)},t.prototype.calcCssClasses=function(t){var r=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(r.popup,r.list),r},Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e=this.suggestedItem||this.selectedItem;return null==e?void 0:e.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputFieldComponentName",{get:function(){return this.inputFieldComponent||this.itemComponent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.inputHasValue&&!this.inputFieldComponentName&&!!this.selectedItemLocText&&this.dropdownListModel.canShowSelectedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showInputFieldComponent",{get:function(){return!this.inputHasValue&&!!this.inputFieldComponentName&&!this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemText",{get:function(){var e=this.selectedItem;return e?e.text:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useDropdownList",{get:function(){return"select"!==this.renderAs},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return this.useDropdownList&&!this.dropdownListModelValue&&(this.dropdownListModelValue=new iH(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.onSelectedItemValuesChangedHandler=function(t){var r;null===(r=this.dropdownListModelValue)||void 0===r||r.setInputStringFromSelectedItem(t),e.prototype.onSelectedItemValuesChangedHandler.call(this,t)},t.prototype.hasUnknownValue=function(t,r,n,o){return!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,r,n,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,r=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!r&&e.prototype.hasUnknownValue.call(this,r,!0,!1)},t.prototype.getItemIfChoicesNotContainThisValue=function(t,r){return this.choicesLazyLoadEnabled?this.createItemValue(t,r):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,r)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.clearValue=function(t){var r;e.prototype.clearValue.call(this,t),this.lastSelectedItemValue=null,null===(r=this.dropdownListModelValue)||void 0===r||r.clear()},t.prototype.afterRenderCore=function(t){e.prototype.afterRenderCore.call(this,t),this.dropdownListModelValue&&this.dropdownListModelValue.clear()},t.prototype.onClick=function(e){this.onOpenedCallBack&&this.onOpenedCallBack()},t.prototype.onKeyUp=function(e){46===(e.which||e.keyCode)&&(this.clearValue(!0),e.preventDefault(),e.stopPropagation())},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(t){this.dropdownListModel.onBlur(t),e.prototype.onBlurCore.call(this,t)},t.prototype.onFocusCore=function(t){this.dropdownListModel.onFocus(t),e.prototype.onFocusCore.call(this,t)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},iW([eW()],t.prototype,"allowClear",void 0),iW([eW({onSet:function(e,t){t.dropdownListModelValue&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),iW([eW()],t.prototype,"searchMode",void 0),iW([eW()],t.prototype,"textWrapEnabled",void 0),iW([eW({defaultValue:!1})],t.prototype,"inputHasValue",void 0),iW([eW({defaultValue:""})],t.prototype,"readOnlyText",void 0),iW([eW({onSet:function(e,t){t.dropdownListModelValue&&t.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),iW([eW()],t.prototype,"choicesLazyLoadPageSize",void 0),iW([eW()],t.prototype,"suggestedItem",void 0),t}(iI);e6.addClass("dropdown",[{name:"placeholder",alternativeName:"optionsCaption",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",alternativeName:"showOptionsCaption",default:!0},{name:"choicesMin:number",default:0},{name:"choicesMax:number",default:0},{name:"choicesStep:number",default:1,minValue:1},{name:"autocomplete",alternativeName:"autoComplete",choices:r9.questions.dataList},{name:"textWrapEnabled:boolean",default:!0},{name:"renderAs",default:"default",visible:!1},{name:"searchEnabled:boolean",default:!0,visible:!1},{name:"searchMode",default:"contains",choices:["contains","startsWith"]},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"inputFieldComponent",visible:!1},{name:"itemComponent",visible:!1,default:""}],function(){return new iU("")},"selectbase"),n6.Instance.registerQuestion("dropdown",function(e){var t=new iU(e);return t.choices=n6.DefaultChoices,t});var iJ=($=function(e,t){return($=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}$(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),iG=function(e){function t(t,r,n,o){var i=e.call(this)||this;return i.item=t,i.fullName=r,i.data=n,i.setValueDirectly(o),i.cellClick=function(e){i.value=e.value},i.registerPropertyChangedHandlers(["value"],function(){i.data&&i.data.onMatrixRowChanged(i)}),i.data&&i.data.hasErrorInRow(i)&&(i.hasError=!0),i}return iJ(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"text",{get:function(){return this.item.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value")},set:function(e){!this.isReadOnly&&this.setValueDirectly(this.data.getCorrectedRowValue(e))},enumerable:!1,configurable:!0}),t.prototype.setValueDirectly=function(e){this.setPropertyValue("value",e)},Object.defineProperty(t.prototype,"isReadOnly",{get:function(){return!this.item.enabled||this.data.isInputReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isReadOnlyAttr",{get:function(){return this.data.isReadOnlyAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDisabledAttr",{get:function(){return!this.item.enabled||this.data.isDisabledAttr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowTextClasses",{get:function(){return new t$().append(this.data.cssClasses.rowTextCell).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasError",{get:function(){return this.getPropertyValue("hasError",!1)},set:function(e){this.setPropertyValue("hasError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowClasses",{get:function(){var e=this.data.cssClasses;return new t$().append(e.row).append(e.rowError,this.hasError).append(e.rowReadOnly,this.isReadOnly).append(e.rowDisabled,this.data.isDisabledStyle).toString()},enumerable:!1,configurable:!0}),t}(tQ),i$=function(e){function t(t){var r=e.call(this)||this;return r.cellsOwner=t,r.values={},r.locs={},r}return iJ(t,e),t.prototype.getType=function(){return"cells"},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0==Object.keys(this.values).length},enumerable:!1,configurable:!0}),t.prototype.valuesChanged=function(){!this.locNotification&&this.onValuesChanged&&this.onValuesChanged()},t.prototype.getDefaultCellLocText=function(e){return this.getCellLocCore(this.defaultRowValue,e)},t.prototype.getCellDisplayLocText=function(e,t){return this.getCellLocCore(e,t)},t.prototype.getCellLocCore=function(e,t){var r=this;if(e=this.getCellRowColumnValue(e,this.rows),t=this.getCellRowColumnValue(t,this.columns),eA.isValueEmpty(e)||eA.isValueEmpty(t))return null;!this.locs[e]&&(this.locs[e]={});var n=this.locs[e][t];return!n&&((n=this.createString()).setJson(this.getCellLocData(e,t)),n.onGetTextCallback=function(e){if(!e){var n=nL.getItemByValue(r.columns,t);if(n)return n.locText.getJson()||n.value}return e},n.onStrChanged=function(n,o){r.updateValues(e,t,o)},this.locs[e][t]=n),n},Object.defineProperty(t.prototype,"defaultRowValue",{get:function(){return r9.matrix.defaultRowName},enumerable:!1,configurable:!0}),t.prototype.getCellLocData=function(e,t){var r=this.getCellLocDataFromValue(e,t);return r?r:this.getCellLocDataFromValue(this.defaultRowValue,t)},t.prototype.getCellLocDataFromValue=function(e,t){return this.values[e]&&this.values[e][t]?this.values[e][t]:null},t.prototype.getCellText=function(e,t){var r=this.getCellLocCore(e,t);return r?r.calculatedText:null},t.prototype.setCellText=function(e,t,r){var n=this.getCellLocCore(e,t);n&&(n.text=r)},t.prototype.updateValues=function(e,t,r){r?(!this.values[e]&&(this.values[e]={}),this.values[e][t]=r,this.valuesChanged()):this.values[e]&&this.values[e][t]&&(delete this.values[e][t],0==Object.keys(this.values[e]).length&&delete this.values[e],this.valuesChanged())},t.prototype.getDefaultCellText=function(e){var t=this.getCellLocCore(this.defaultRowValue,e);return t?t.calculatedText:null},t.prototype.setDefaultCellText=function(e,t){this.setCellText(this.defaultRowValue,e,t)},t.prototype.getCellDisplayText=function(e,t){var r=this.getCellDisplayLocText(e,t);return r?r.calculatedText:null},Object.defineProperty(t.prototype,"rows",{get:function(){return this.cellsOwner?this.cellsOwner.getRows():[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columns",{get:function(){return this.cellsOwner?this.cellsOwner.getColumns():[]},enumerable:!1,configurable:!0}),t.prototype.getCellRowColumnValue=function(e,t){if(null==e)return null;if("number"==typeof e){if(e<0||e>=t.length)return null;e=t[e].value}return e.value?e.value:e},t.prototype.getJson=function(){if(this.isEmpty)return null;var e=this.values[this.defaultRowValue],t={};for(var r in this.values){var n={},o=this.values[r];for(var i in o)(r===this.defaultRowValue||!e||e[i]!==o[i])&&(n[i]=o[i]);t[r]=n}return t},t.prototype.setJson=function(e,t){var r=this;if(this.values={},e){for(var n in e)if("pos"!=n){var o=e[n];for(var i in this.values[n]={},o)"pos"!=i&&(this.values[n][i]=o[i])}}this.locNotification=!0,this.runFuncOnLocs(function(e,t,n){return n.setJson(r.getCellLocData(e,t))}),this.locNotification=!1,this.valuesChanged()},t.prototype.locStrsChanged=function(){this.runFuncOnLocs(function(e,t,r){return r.strChanged()})},t.prototype.runFuncOnLocs=function(e){for(var t in this.locs){var r=this.locs[t];for(var n in r)e(t,n,r[n])}},t.prototype.createString=function(){return new rV(this.cellsOwner,!0)},t}(tQ),iK=function(e){function t(t){var r=e.call(this,t)||this;return r.isRowChanging=!1,r.emptyLocalizableString=new rV(r),r.cellsValue=new i$(r),r.cellsValue.onValuesChanged=function(){r.updateHasCellText(),r.propertyValueChanged("cells",r.cells,r.cells)},r.registerPropertyChangedHandlers(["columns"],function(){r.onColumnsChanged()}),r.registerPropertyChangedHandlers(["rows"],function(){r.runCondition(r.getDataFilteredValues(),r.getDataFilteredProperties()),r.onRowsChanged()}),r.registerPropertyChangedHandlers(["hideIfRowsEmpty"],function(){r.updateVisibilityBasedOnRows()}),r}return iJ(t,e),t.prototype.getType=function(){return"matrix"},Object.defineProperty(t.prototype,"cellComponent",{get:function(){return this.getPropertyValue("cellComponent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemComponent",{set:function(e){this.setPropertyValue("cellComponent",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllRowRequired",{get:function(){return this.getPropertyValue("isAllRowRequired")},set:function(e){this.setPropertyValue("isAllRowRequired",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"eachRowUnique",{get:function(){return this.getPropertyValue("eachRowUnique")},set:function(e){this.setPropertyValue("eachRowUnique",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasRows",{get:function(){return this.rows.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rowsOrder",{get:function(){return this.getPropertyValue("rowsOrder")},set:function(e){(e=e.toLowerCase())!=this.rowsOrder&&(this.setPropertyValue("rowsOrder",e),this.onRowsChanged())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideIfRowsEmpty",{get:function(){return this.getPropertyValue("hideIfRowsEmpty")},set:function(e){this.setPropertyValue("hideIfRowsEmpty",e)},enumerable:!1,configurable:!0}),t.prototype.getRows=function(){return this.rows},t.prototype.getColumns=function(){return this.visibleColumns},t.prototype.addColumn=function(e,t){var r=new nL(e,t);return this.columns.push(r),r},t.prototype.getItemClass=function(e,t){var r=e.value==t.value,n=this.isReadOnly,o=this.hasCellText,i=this.cssClasses;return new t$().append(i.cell,o).append(o?i.cellText:i.label).append(i.itemOnError,!o&&(this.isAllRowRequired||this.eachRowUnique?e.hasError:this.hasCssError())).append(o?i.cellTextSelected:i.itemChecked,r).append(o?i.cellTextDisabled:i.itemDisabled,this.isDisabledStyle).append(o?i.cellTextReadOnly:i.itemReadOnly,this.isReadOnlyStyle).append(o?i.cellTextPreview:i.itemPreview,this.isPreviewStyle).append(i.itemHover,!r&&!n&&!o).toString()},Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.cells.locStrsChanged()},t.prototype.getQuizQuestionCount=function(){for(var e=0,t=0;t<this.rows.length;t++)!this.isValueEmpty(this.correctAnswer[this.rows[t].value])&&e++;return e},t.prototype.getCorrectAnswerCount=function(){for(var e=0,t=this.value,r=0;r<this.rows.length;r++){var n=this.rows[r].value;!this.isValueEmpty(t[n])&&this.isTwoValueEquals(this.correctAnswer[n],t[n])&&e++}return e},t.prototype.runCondition=function(t,r){nL.runEnabledConditionsForItems(this.rows,void 0,t,r),e.prototype.runCondition.call(this,t,r)},t.prototype.createRowsVisibleIfRunner=function(){return this.rowsVisibleIf?new tA(this.rowsVisibleIf):null},t.prototype.onRowsChanged=function(){this.clearGeneratedRows(),e.prototype.onRowsChanged.call(this)},t.prototype.getVisibleRows=function(){if(this.generatedVisibleRows)return this.generatedVisibleRows;var e=[],t=this.value;!t&&(t={});for(var r=this.filteredRows||this.rows,n=0;n<r.length;n++){var o=r[n];if(!this.isValueEmpty(o.value)){var i=this.id+"_"+o.value.toString().replace(/\s/g,"_");e.push(this.createMatrixRow(o,i,t[o.value]))}}return this.generatedVisibleRows=e,e},t.prototype.sortVisibleRows=function(e){return this.survey&&this.survey.isDesignMode?e:"random"===this.rowsOrder.toLowerCase()?eA.randomizeArray(e):e},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.rows=this.sortVisibleRows(this.rows),this.onRowsChanged(),this.onColumnsChanged()},t.prototype.isNewValueCorrect=function(e){return eA.isValueObject(e,!0)},t.prototype.processRowsOnSet=function(e){return this.sortVisibleRows(e)},Object.defineProperty(t.prototype,"visibleRows",{get:function(){return this.getVisibleRows()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cells",{get:function(){return this.cellsValue},set:function(e){this.cells.setJson(e&&e.getJson?e.getJson():null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasCellText",{get:function(){return this.getPropertyValue("hasCellText",!1)},enumerable:!1,configurable:!0}),t.prototype.updateHasCellText=function(){this.setPropertyValue("hasCellText",!this.cells.isEmpty)},t.prototype.setCellText=function(e,t,r){this.cells.setCellText(e,t,r)},t.prototype.getCellText=function(e,t){return this.cells.getCellText(e,t)},t.prototype.setDefaultCellText=function(e,t){this.cells.setDefaultCellText(e,t)},t.prototype.getDefaultCellText=function(e){return this.cells.getDefaultCellText(e)},t.prototype.getCellDisplayText=function(e,t){return this.cells.getCellDisplayText(e,t)},t.prototype.getCellDisplayLocText=function(e,t){var r=this.cells.getCellDisplayLocText(e,t);return r||this.emptyLocalizableString},t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown&&this.hasValuesInAllRows()},t.prototype.onCheckForErrors=function(t,r,n){if(e.prototype.onCheckForErrors.call(this,t,r,n),!r||this.hasCssError()){var o={noValue:!1,isNotUnique:!1};this.checkErrorsAllRows(n,o),o.noValue&&t.push(new nc(null,this)),o.isNotUnique&&t.push(new np(null,this))}},t.prototype.hasValuesInAllRows=function(){var e={noValue:!1,isNotUnique:!1};return this.checkErrorsAllRows(!1,e,!0),!e.noValue},t.prototype.checkErrorsAllRows=function(e,t,r){var n=this,o=this.generatedVisibleRows;if(!o&&(o=this.visibleRows),!!o){var i=this.isAllRowRequired||r,s=this.eachRowUnique;if(t.noValue=!1,t.isNotUnique=!1,e&&(this.errorsInRow=void 0),i||s){for(var a={},l=0;l<o.length;l++){var u=o[l].value,c=this.isValueEmpty(u),p=s&&!c&&!0===a[u];c=c&&i,e&&(c||p)&&this.addErrorIntoRow(o[l]),!c&&(a[u]=!0),t.noValue=t.noValue||c,t.isNotUnique=t.isNotUnique||p}e&&o.forEach(function(e){e.hasError=n.hasErrorInRow(e)})}}},t.prototype.addErrorIntoRow=function(e){!this.errorsInRow&&(this.errorsInRow={}),this.errorsInRow[e.name]=!0,e.hasError=!0},t.prototype.refreshRowsErrors=function(){this.errorsInRow&&this.checkErrorsAllRows(!0,{noValue:!1,isNotUnique:!1})},t.prototype.getIsAnswered=function(){return e.prototype.getIsAnswered.call(this)&&this.hasValuesInAllRows()},t.prototype.createMatrixRow=function(e,t,r){var n=new iG(e,t,this,r);return this.onMatrixRowCreated(n),n},t.prototype.onMatrixRowCreated=function(e){},t.prototype.setQuestionValue=function(t,r){if(void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,this.isRowChanging||r),this.generatedVisibleRows&&0!=this.generatedVisibleRows.length){this.isRowChanging=!0;var n=this.value;if(!n&&(n={}),0==this.rows.length)this.generatedVisibleRows[0].setValueDirectly(n);else for(var o=0;o<this.generatedVisibleRows.length;o++){var i=n[this.generatedVisibleRows[o].name];this.isValueEmpty(i)&&(i=null),this.generatedVisibleRows[o].setValueDirectly(i)}this.refreshRowsErrors(),this.updateIsAnswered(),this.isRowChanging=!1}},t.prototype.getDisplayValueCore=function(e,t){var r={};for(var n in t){var o=e?nL.getTextOrHtmlByValue(this.rows,n):n;!o&&(o=n);var i=nL.getTextOrHtmlByValue(this.columns,t[n]);!i&&(i=t[n]),r[o]=i}return r},t.prototype.getPlainData=function(t){var r=this;void 0===t&&(t={includeEmpty:!0});var n=e.prototype.getPlainData.call(this,t);if(n){var o=this.createValueCopy();n.isNode=!0,n.data=Object.keys(o||{}).map(function(e){var n=r.rows.filter(function(t){return t.value===e})[0],i={name:e,title:n?n.text:"row",value:o[e],displayValue:nL.getTextOrHtmlByValue(r.visibleColumns,o[e]),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1},s=nL.getItemByValue(r.visibleColumns,o[e]);return s&&(t.calculations||[]).forEach(function(e){i[e.propertyName]=s[e.propertyName]}),i})}return n},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=0;r<this.rows.length;r++){var n=this.rows[r];n.value&&e.push({name:this.getValueName()+"."+n.value,text:this.processedTitle+"."+n.calculatedText,question:this})}},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this,t);var n=new iU(r);n.choices=this.columns;var o=new e3().toJsonObject(n);return o.type=n.getType(),o},t.prototype.clearIncorrectValues=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!0,!0),e.prototype.clearIncorrectValues.call(this)},t.prototype.clearValueIfInvisibleCore=function(t){e.prototype.clearValueIfInvisibleCore.call(this,t),this.clearInvisibleValuesInRowsAndColumns(!0,!0,!1)},t.prototype.clearInvisibleColumnValues=function(){this.clearInvisibleValuesInRowsAndColumns(!1,!0,!1)},t.prototype.clearInvisibleValuesInRows=function(){this.clearInvisibleValuesInRowsAndColumns(!0,!1,!1)},t.prototype.clearInvisibleValuesInRowsAndColumns=function(e,t,r){if(!this.isEmpty()){for(var n=this.getUnbindValue(this.value),o={},i=this.rows,s=0;s<i.length;s++){var a=i[s].value;n[a]&&(e&&!i[s].isVisible||t&&!this.getVisibleColumnByValue(n[a])?delete n[a]:o[a]=n[a])}r&&(n=o),!this.isTwoValueEquals(n,this.value)&&(this.value=n)}},t.prototype.getVisibleColumnByValue=function(e){var t=nL.getItemByValue(this.columns,e);return t&&t.isVisible?t:null},t.prototype.getFirstInputElementId=function(){var t=this.generatedVisibleRows;return(!t&&(t=this.visibleRows),t.length>0&&this.visibleColumns.length>0)?this.inputId+"_"+t[0].name+"_0":e.prototype.getFirstInputElementId.call(this)},t.prototype.onMatrixRowChanged=function(e){if(!this.isRowChanging){if(this.isRowChanging=!0,this.hasRows){var t=this.value;!t&&(t={}),t[e.name]=e.value,this.setNewValue(t)}else this.setNewValue(e.value);this.isRowChanging=!1}},t.prototype.getCorrectedRowValue=function(e){for(var t=0;t<this.columns.length;t++)if(e===this.columns[t].value)return e;for(var t=0;t<this.columns.length;t++)if(this.isTwoValueEquals(e,this.columns[t].value))return this.columns[t].value;return e},t.prototype.hasErrorInRow=function(e){return!!this.errorsInRow&&!!this.errorsInRow[e.name]},t.prototype.getSearchableItemValueKeys=function(e){e.push("columns"),e.push("rows")},Object.defineProperty(t.prototype,"SurveyModel",{get:function(){return this.survey},enumerable:!1,configurable:!0}),t.prototype.getColumnHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({column:e},"column-header")},t.prototype.getColumnHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({column:e},"column-header")},t.prototype.getRowHeaderWrapperComponentName=function(e){return this.SurveyModel.getElementWrapperComponentName({row:e},"row-header")},t.prototype.getRowHeaderWrapperComponentData=function(e){return this.SurveyModel.getElementWrapperComponentData({row:e},"row-header")},t}(n$);e6.addClass("matrix",["rowTitleWidth",{name:"columns:itemvalue[]",uniqueProperty:"value",baseValue:function(){return eM("matrix_column")}},{name:"rows:itemvalue[]",uniqueProperty:"value",baseValue:function(){return eM("matrix_row")}},{name:"cells:cells",serializationProperty:"cells"},{name:"rowsOrder",default:"initial",choices:["initial","random"]},"isAllRowRequired:boolean",{name:"eachRowUnique:boolean",category:"validation"},"hideIfRowsEmpty:boolean",{name:"cellComponent",visible:!1,default:"survey-matrix-cell"}],function(){return new iK("")},"matrixbase"),n6.Instance.registerQuestion("matrix",function(e){var t=new iK(e);return t.rows=n6.DefaultRows,t.columns=n6.DefaultColums,t});var iY=(K=function(e,t){return(K=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}K(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),iX=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},iZ=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return iY(t,e),t.prototype.updateRemainingCharacterCounter=function(e,t){this.remainingCharacterCounter=eA.getRemainingCharacterCounterText(e,t)},iX([eW()],t.prototype,"remainingCharacterCounter",void 0),t}(tQ),i0=function(e){function t(t){var r=e.call(this,t)||this;return r.characterCounter=new iZ,r}return iY(t,e),t.prototype.isTextValue=function(){return!0},Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.getPropertyValue("maxLength")},set:function(e){this.setPropertyValue("maxLength",e),this.updateRemainingCharacterCounter(this.value)},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return eA.getMaxLength(this.maxLength,this.survey?this.survey.maxTextLength:-1)},t.prototype.updateRemainingCharacterCounter=function(e){this.characterCounter.updateRemainingCharacterCounter(e,this.getMaxLength())},Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"textbase"},t.prototype.isEmpty=function(){return e.prototype.isEmpty.call(this)||""===this.value},Object.defineProperty(t.prototype,"textUpdateMode",{get:function(){return this.getPropertyValue("textUpdateMode")},set:function(e){this.setPropertyValue("textUpdateMode",e)},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return"default"==this.textUpdateMode?e.prototype.getIsInputTextUpdate.call(this):"onTyping"==this.textUpdateMode},Object.defineProperty(t.prototype,"renderedPlaceholder",{get:function(){var e=this;return this.getPropertyValue("renderedPlaceholder",void 0,function(){return e.hasPlaceholder()?e.placeHolder:void 0})},enumerable:!1,configurable:!0}),t.prototype.onReadOnlyChanged=function(){e.prototype.onReadOnlyChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.resetRenderedPlaceholder()},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.resetRenderedPlaceholder=function(){this.resetPropertyValue("renderedPlaceholder")},t.prototype.hasPlaceholder=function(){return!this.isReadOnly},t.prototype.setNewValue=function(t){e.prototype.setNewValue.call(this,t),this.updateRemainingCharacterCounter(t)},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.updateRemainingCharacterCounter(t)},t.prototype.convertToCorrectValue=function(e){return Array.isArray(e)?e.join(this.getValueSeparator()):e},t.prototype.getValueSeparator=function(){return", "},t.prototype.getControlCssClassBuilder=function(){return new t$().append(this.cssClasses.root).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle)},t.prototype.getControlClass=function(){return this.getControlCssClassBuilder().toString()},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),iX([eW({localizable:!0,onSet:function(e,t){return t.resetRenderedPlaceholder()}})],t.prototype,"placeholder",void 0),t}(n_);e6.addClass("textbase",[],function(){return new i0("")},"question");var i1=function(){function e(e,t,r){var n=this;this.inputMaskInstance=e,this.inputElement=t,this.prevUnmaskedValue=void 0,this.inputMaskInstancePropertyChangedHandler=function(e,t){if("saveMaskedValue"!==t.name){var r=n.inputMaskInstance.getMaskedValue(n.prevUnmaskedValue);n.inputElement.value=r}},this.clickHandler=function(e){n.inputElement.value==n.inputMaskInstance.getMaskedValue("")&&n.inputElement.setSelectionRange(0,0)},this.beforeInputHandler=function(e){var t=n.createArgs(e),r=n.inputMaskInstance.processInput(t);n.inputElement.value=r.value,n.inputElement.setSelectionRange(r.caretPosition,r.caretPosition),!r.cancelPreventDefault&&e.preventDefault()},this.changeHandler=function(e){var t=n.inputMaskInstance.processInput({prevValue:"",insertedChars:e.target.value,selectionStart:0,selectionEnd:0});n.inputElement.value=t.value};var o=r;null==o&&(o=""),this.inputElement.value=e.getMaskedValue(o),this.prevUnmaskedValue=o,e.onPropertyChanged.add(this.inputMaskInstancePropertyChangedHandler),this.addInputEventListener()}return e.prototype.createArgs=function(e){var t={insertedChars:e.data,selectionStart:e.target.selectionStart,selectionEnd:e.target.selectionEnd,prevValue:e.target.value,inputDirection:"forward"};return"deleteContentBackward"===e.inputType&&(t.inputDirection="backward",t.selectionStart===t.selectionEnd&&(t.selectionStart=Math.max(t.selectionStart-1,0))),"deleteContentForward"===e.inputType&&t.selectionStart===t.selectionEnd&&(t.selectionEnd+=1),t},e.prototype.addInputEventListener=function(){this.inputElement&&(this.inputElement.addEventListener("beforeinput",this.beforeInputHandler),this.inputElement.addEventListener("click",this.clickHandler),this.inputElement.addEventListener("focus",this.clickHandler),this.inputElement.addEventListener("change",this.changeHandler))},e.prototype.removeInputEventListener=function(){this.inputElement&&(this.inputElement.removeEventListener("beforeinput",this.beforeInputHandler),this.inputElement.removeEventListener("click",this.clickHandler),this.inputElement.removeEventListener("focus",this.clickHandler),this.inputElement.removeEventListener("change",this.changeHandler))},e.prototype.dispose=function(){this.removeInputEventListener(),this.inputElement=void 0,this.inputMaskInstance.onPropertyChanged.remove(this.inputMaskInstancePropertyChangedHandler)},e}(),i2=/[0-9]/;function i5(){var e=(e6.getChildrenClasses("masksettings")||[]).map(function(e){var t=e.name;
1return -1!==e.name.indexOf("mask")&&(t=t.slice(0,t.indexOf("mask"))),t});return e.unshift("none"),e}var i4=(Y=function(e,t){return(Y=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Y(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i8=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},i3=function(e){function t(t){var r=e.call(this,t)||this;return r._isWaitingForEnter=!1,r.onCompositionUpdate=function(e){r.isInputTextUpdate&&setTimeout(function(){r.updateValueOnEvent(e)},1),r.updateRemainingCharacterCounter(e.target.value)},r.onKeyUp=function(e){r.updateDateValidationMessage(e),r.isInputTextUpdate?(!r._isWaitingForEnter||13===e.keyCode)&&(r.updateValueOnEvent(e),r._isWaitingForEnter=!1):13===e.keyCode&&r.updateValueOnEvent(e),r.updateRemainingCharacterCounter(e.target.value)},r.onKeyDown=function(e){r.onKeyDownPreprocess&&r.onKeyDownPreprocess(e),r.isInputTextUpdate&&(r._isWaitingForEnter=229===e.keyCode),r.onTextKeyDownHandler(e)},r.onChange=function(e){r.updateDateValidationMessage(e),e.target===r9.environment.root.activeElement?r.isInputTextUpdate&&r.updateValueOnEvent(e):r.updateValueOnEvent(e),r.updateRemainingCharacterCounter(e.target.value)},r.createLocalizableString("minErrorText",r,!0,"minError"),r.createLocalizableString("maxErrorText",r,!0,"maxError"),r.setNewMaskSettingsProperty(),r.locDataListValue=new rj(r),r.locDataListValue.onValueChanged=function(e,t){r.propertyValueChanged("dataList",e,t)},r.registerPropertyChangedHandlers(["min","max","inputType","minValueExpression","maxValueExpression"],function(){r.setRenderedMinMax()}),r.registerPropertyChangedHandlers(["inputType","size"],function(){r.updateInputSize(),r.resetRenderedPlaceholder()}),r}return i4(t,e),t.prototype.createMaskAdapter=function(){this.input&&!this.maskTypeIsEmpty&&(this.maskInputAdapter=new i1(this.maskInstance,this.input,this.value))},t.prototype.deleteMaskAdapter=function(){this.maskInputAdapter&&(this.maskInputAdapter.dispose(),this.maskInputAdapter=void 0)},t.prototype.updateMaskAdapter=function(){this.deleteMaskAdapter(),this.createMaskAdapter()},t.prototype.onSetMaskType=function(e){this.setNewMaskSettingsProperty(),this.updateMaskAdapter()},Object.defineProperty(t.prototype,"maskTypeIsEmpty",{get:function(){switch(this.inputType){case"tel":case"text":return"none"===this.maskType;default:return!0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){e&&(this.setNewMaskSettingsProperty(),this.maskSettings.fromJSON(e.toJSON()),this.updateMaskAdapter())},enumerable:!1,configurable:!0}),t.prototype.setNewMaskSettingsProperty=function(){this.setPropertyValue("maskSettings",this.createMaskSettings())},t.prototype.createMaskSettings=function(){var e=this.maskType&&"none"!==this.maskType?this.maskType+"mask":"masksettings";!e6.findClass(e)&&(e="masksettings");var t=e6.createClass(e);return t.owner=this.survey,t},t.prototype.isTextValue=function(){return this.isDateInputType||["text","number","password"].indexOf(this.inputType)>-1},t.prototype.getType=function(){return"text"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.setRenderedMinMax(),this.updateInputSize()},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.getPropertyValue("inputType")},set:function(e){("datetime_local"===(e=e.toLowerCase())||"datetime"===e)&&(e="datetime-local"),this.setPropertyValue("inputType",e.toLowerCase()),!this.isLoadingFromJson&&(this.min=void 0,this.max=void 0,this.step=void 0),this.updateMaskAdapter()}
vendor: 23,273 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){return this.isTextInput?e.prototype.getMaxLength.call(this):null},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),(this.minValueExpression||this.maxValueExpression)&&this.setRenderedMinMax(t,r)},t.prototype.getDisplayValueCore=function(t,r){return this.maskTypeIsEmpty||eA.isValueEmpty(r)?e.prototype.getDisplayValueCore.call(this,t,r):this.maskInstance.getMaskedValue(r)},t.prototype.isLayoutTypeSupported=function(e){return!0},Object.defineProperty(t.prototype,"size",{get:function(){return this.getPropertyValue("size")},set:function(e){this.setPropertyValue("size",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isTextInput",{get:function(){return["text","search","tel","url","email","password"].indexOf(this.inputType)>-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputSize",{get:function(){return this.getPropertyValue("inputSize",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedInputSize",{get:function(){return this.getPropertyValue("inputSize")||null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputWidth",{get:function(){return this.getPropertyValue("inputWidth")},enumerable:!1,configurable:!0}),t.prototype.updateInputSize=function(){var e=this.isTextInput&&this.size>0?this.size:0;this.isTextInput&&e<1&&this.parent&&this.parent.itemSize&&(e=this.parent.itemSize),this.setPropertyValue("inputSize",e),this.setPropertyValue("inputWidth",e>0?"auto":"")},Object.defineProperty(t.prototype,"autocomplete",{get:function(){return this.getPropertyValue("autocomplete",null)},set:function(e){this.setPropertyValue("autocomplete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this.getPropertyValue("min")},set:function(e){if(this.isValueExpression(e)){this.minValueExpression=e.substring(1);return}this.setPropertyValue("min",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this.getPropertyValue("max")},set:function(e){if(this.isValueExpression(e)){this.maxValueExpression=e.substring(1);return}this.setPropertyValue("max",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.getPropertyValue("minValueExpression","")},set:function(e){this.setPropertyValue("minValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.getPropertyValue("maxValueExpression","")},set:function(e){this.setPropertyValue("maxValueExpression",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMin",{get:function(){return this.getPropertyValue("renderedMin")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMax",{get:function(){return this.getPropertyValue("renderedMax")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minErrorText",{get:function(){return this.getLocalizableStringText("minErrorText")},set:function(e){this.setLocalizableStringText("minErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinErrorText",{get:function(){return this.getLocalizableString("minErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxErrorText",{get:function(){return this.getLocalizableStringText("maxErrorText")},set:function(e){this.setLocalizableStringText("maxErrorText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxErrorText",{get:function(){return this.getLocalizableString("maxErrorText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isMinMaxType",{get:function(){return i7(this)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskInstance",{get:function(){return this.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputValue",{get:function(){return this._inputValue||this.maskTypeIsEmpty?this._inputValue:this.maskInstance.getMaskedValue("")},set:function(e){var t=e;this._inputValue=e,!this.maskTypeIsEmpty&&(t=this.maskInstance.getUnmaskedValue(e),this._inputValue=this.maskInstance.getMaskedValue(t),t&&this.maskSettings.saveMaskedValue&&(t=this.maskInstance.getMaskedValue(t))),this.value=t},enumerable:!1,configurable:!0}),t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.updateInputValue()},t.prototype.updateInputValue=function(){this.maskTypeIsEmpty?this._inputValue=this.value:this.maskSettings.saveMaskedValue?this._inputValue=this.value?this.value:this.maskInstance.getMaskedValue(""):this._inputValue=this.maskInstance.getMaskedValue(this.value)},t.prototype.hasToConvertToUTC=function(e){return r9.storeUtcDates&&this.isDateTimeLocaleType()&&!!e},t.prototype.createDate=function(e){return ek("question-text",e)},t.prototype.valueForSurveyCore=function(t){return this.hasToConvertToUTC(t)&&(t=this.createDate(t).toISOString()),e.prototype.valueForSurveyCore.call(this,t)},t.prototype.valueFromDataCore=function(t){if(this.hasToConvertToUTC(t)){var r=this.createDate(t),n=this.createDate(r.getTime()-6e4*r.getTimezoneOffset()).toISOString();t=n.substring(0,n.length-2)}return e.prototype.valueFromDataCore.call(this,t)},t.prototype.onCheckForErrors=function(t,r,n){var o=this;if(e.prototype.onCheckForErrors.call(this,t,r,n),!r){if(this.isValueLessMin){var i=new nf(this.getMinMaxErrorText(this.minErrorText,this.getCalculatedMinMax(this.renderedMin)),this);i.onUpdateErrorTextCallback=function(e){e.text=o.getMinMaxErrorText(o.minErrorText,o.getCalculatedMinMax(o.renderedMin))},t.push(i)}if(this.isValueGreaterMax){var s=new nf(this.getMinMaxErrorText(this.maxErrorText,this.getCalculatedMinMax(this.renderedMax)),this);s.onUpdateErrorTextCallback=function(e){e.text=o.getMinMaxErrorText(o.maxErrorText,o.getCalculatedMinMax(o.renderedMax))},t.push(s)}this.dateValidationMessage&&t.push(new nf(this.dateValidationMessage,this));var a=this.getValidatorTitle(),l=new nP;if(l.errorOwner=this,"email"===this.inputType&&!this.validators.some(function(e){return"emailvalidator"===e.getType()})){var u=l.validate(this.value,a);u&&u.error&&t.push(u.error)}}},t.prototype.canSetValueToSurvey=function(){if(!this.isMinMaxType)return!0;var e=!this.isValueLessMin&&!this.isValueGreaterMax;return(!e||this.errors.length>0)&&this.survey&&(this.survey.isValidateOnValueChanging||this.survey.isValidateOnValueChanged)&&this.hasErrors(),e},t.prototype.convertFuncValuetoQuestionValue=function(e){var t=this.maskTypeIsEmpty?this.inputType:this.maskSettings.getTypeForExpressions();return eA.convertValToQuestionVal(e,t)},t.prototype.getMinMaxErrorText=function(e,t){if(eA.isValueEmpty(t))return e;var r=t.toString();return"date"===this.inputType&&t.toDateString&&(r=t.toDateString()),e.replace("{0}",r)},Object.defineProperty(t.prototype,"isValueLessMin",{get:function(){return!this.isValueEmpty(this.renderedMin)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)<this.getCalculatedMinMax(this.renderedMin)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueGreaterMax",{get:function(){return!this.isValueEmpty(this.renderedMax)&&!this.isEmpty()&&this.getCalculatedMinMax(this.value)>this.getCalculatedMinMax(this.renderedMax)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDateInputType",{get:function(){return"date"===this.inputType||this.isDateTimeLocaleType()},enumerable:!1,configurable:!0}),t.prototype.isDateTimeLocaleType=function(){return"datetime-local"===this.inputType},t.prototype.getCalculatedMinMax=function(e){return this.isValueEmpty(e)?e:this.isDateInputType?this.createDate(e):e},t.prototype.setRenderedMinMax=function(e,t){var r=this;void 0===e&&(e=null),void 0===t&&(t=null),this.minValueRunner=this.getDefaultRunner(this.minValueRunner,this.minValueExpression),this.setValueAndRunExpression(this.minValueRunner,this.min,function(e){!e&&r.isDateInputType&&r9.minDate&&(e=r9.minDate),r.setPropertyValue("renderedMin",e)},e,t),this.maxValueRunner=this.getDefaultRunner(this.maxValueRunner,this.maxValueExpression),this.setValueAndRunExpression(this.maxValueRunner,this.max,function(e){!e&&r.isDateInputType&&(e=r9.maxDate?r9.maxDate:"2999-12-31"),r.setPropertyValue("renderedMax",e)},e,t)},Object.defineProperty(t.prototype,"step",{get:function(){return this.getPropertyValue("step")},set:function(e){this.setPropertyValue("step",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStep",{get:function(){return this.isValueEmpty(this.step)?"number"!==this.inputType?void 0:"any":this.step},enumerable:!1,configurable:!0}),t.prototype.getIsInputTextUpdate=function(){return!!this.maskTypeIsEmpty&&e.prototype.getIsInputTextUpdate.call(this)},t.prototype.supportGoNextPageAutomatic=function(){return!this.getIsInputTextUpdate()&&!this.isDateInputType},t.prototype.supportGoNextPageError=function(){return!this.isDateInputType},Object.defineProperty(t.prototype,"dataList",{get:function(){return this.locDataList.value},set:function(e){this.locDataList.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDataList",{get:function(){return this.locDataListValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dataListId",{get:function(){return this.locDataList.hasValue()?this.id+"_datalist":void 0},enumerable:!1,configurable:!0}),t.prototype.setNewValue=function(t){(t=this.correctValueType(t))&&(this.dateValidationMessage=void 0),e.prototype.setNewValue.call(this,t)},t.prototype.correctValueType=function(e){if(!e)return e;if("number"===this.inputType||"range"===this.inputType)return eA.isNumber(e)?eA.getNumber(e):"";if("month"===this.inputType){var t=this.createDate(e),r=0==t.toISOString().indexOf(e)&&-1==e.indexOf("T"),n=r?t.getUTCMonth():t.getMonth(),o=r?t.getUTCFullYear():t.getFullYear(),i=n+1;return o+"-"+(i<10?"0":"")+i}return e},t.prototype.hasPlaceholder=function(){return!this.isReadOnly&&"range"!==this.inputType},t.prototype.getControlCssClassBuilder=function(){var t=this.getMaxLength();return e.prototype.getControlCssClassBuilder.call(this).append(this.cssClasses.constrolWithCharacterCounter,!!t).append(this.cssClasses.characterCounterBig,t>99)},t.prototype.isReadOnlyRenderDiv=function(){return this.isReadOnly&&"div"===r9.readOnly.textRenderMode},Object.defineProperty(t.prototype,"inputStyle",{get:function(){var e={};return e.width=this.inputWidth,this.updateTextAlign(e),e},enumerable:!1,configurable:!0}),t.prototype.updateTextAlign=function(e){"auto"!==this.inputTextAlignment?e.textAlign=this.inputTextAlignment:!this.maskTypeIsEmpty&&"auto"!==this.maskSettings.getTextAlignment()&&(e.textAlign=this.maskSettings.getTextAlignment())},t.prototype.updateValueOnEvent=function(e){var t=e.target.value;!this.isTwoValueEquals(this.value,t)&&(this.inputValue=t)},t.prototype.updateDateValidationMessage=function(e){this.dateValidationMessage=this.isDateInputType&&e.target?e.target.validationMessage:void 0},t.prototype.onBlurCore=function(t){this.updateDateValidationMessage(t),this.updateValueOnEvent(t),this.updateRemainingCharacterCounter(t.target.value),e.prototype.onBlurCore.call(this,t)},t.prototype.onFocusCore=function(t){this.updateRemainingCharacterCounter(t.target.value),e.prototype.onFocusCore.call(this,t)},t.prototype.afterRenderQuestionElement=function(t){t&&(this.input=t instanceof HTMLInputElement?t:t.querySelector("input"),this.createMaskAdapter()),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){this.deleteMaskAdapter(),this.input=void 0},i8([eW({onSet:function(e,t){t.onSetMaskType(e)}})],t.prototype,"maskType",void 0),i8([eW()],t.prototype,"inputTextAlignment",void 0),i8([eW()],t.prototype,"_inputValue",void 0),t}(i0),i6=["number","range","date","datetime-local","month","time","week"];function i7(e){var t=e?e.inputType:"";return!!t&&i6.indexOf(t)>-1}function i9(e,t){var r=e.split(t);return 2===r.length&&eA.isNumber(r[0])&&eA.isNumber(r[1])?60*parseFloat(r[0])+parseFloat(r[1]):-1}function se(e,t,r,n){var o=n?r:t;if(!i7(e)||eA.isValueEmpty(t)||eA.isValueEmpty(r))return o;if(0===e.inputType.indexOf("date")||"month"===e.inputType){var i="month"===e.inputType,s="question-text-minmax",a=ek(s,i?t+"-01":t),l=ek(s,i?r+"-01":r);if(!a||!l)return o;if(a>l)return n?t:r}if("week"===e.inputType||"time"===e.inputType){var u,c,p,h,d,f="week"===e.inputType?"-W":":";return(u=t,c=r,h=i9(u,p=f),d=i9(c,p),h<0||d<0||!(h>d))?o:n?t:r}if("number"===e.inputType){if(!eA.isNumber(t)||!eA.isNumber(r))return o;if(eA.getNumber(t)>eA.getNumber(r))return n?t:r}return"string"==typeof t||"string"==typeof r?o:t>r?n?t:r:o}function st(e,t){e&&e.inputType&&(t.inputType="range"!==e.inputType?e.inputType:"number",t.textUpdateMode="onBlur")}e6.addClass("text",[{name:"inputType",default:"text",choices:r9.questions.inputTypes},{name:"size:number",minValue:0,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"],dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"autocomplete",alternativeName:"autoComplete",choices:r9.questions.dataList},{name:"min",dependsOn:"inputType",visibleIf:function(e){return i7(e)},onPropertyEditorUpdate:function(e,t){st(e,t)},onSettingValue:function(e,t){return se(e,t,e.max,!1)}},{name:"max",dependsOn:"inputType",nextToProperty:"*min",visibleIf:function(e){return i7(e)},onSettingValue:function(e,t){return se(e,e.min,t,!0)},onPropertyEditorUpdate:function(e,t){st(e,t)}},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return i7(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return i7(e)}},{name:"minErrorText",serializationProperty:"locMinErrorText",dependsOn:"inputType",visibleIf:function(e){return i7(e)}},{name:"maxErrorText",serializationProperty:"locMaxErrorText",dependsOn:"inputType",visibleIf:function(e){return i7(e)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType||"tel"===e.inputType},choices:function(e){return i5()}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:["inputType","maskType"],visibleIf:function(e){return"text"===e.inputType||"tel"===e.inputType},onGetValue:function(e){return e.maskSettings.getData()},onSetValue:function(e,t){e.maskSettings.setData(t)}},{name:"step:number",dependsOn:"inputType",visibleIf:function(e){return!!e&&("number"===e.inputType||"range"===e.inputType)}},{name:"maxLength:number",default:-1,dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder",dependsOn:"inputType",visibleIf:function(e){return!!e&&e.isTextInput}},{name:"dataList:string[]",serializationProperty:"locDataList",dependsOn:"inputType",visibleIf:function(e){return!!e&&"text"===e.inputType}}],function(){return new i3("")},"textbase"),n6.Instance.registerQuestion("text",function(e){return new i3(e)});var sr=(X=function(e,t){return(X=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}X(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sn=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},so=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),Object.defineProperty(t.prototype,"a11y_input_ariaLabel",{get:function(){return this.locTitle.renderedHtml},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaLabelledBy",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaDescribedBy",{get:function(){return null},enumerable:!1,configurable:!0}),t}(i3),si=function(e){function t(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.call(this)||this;return n.focusIn=function(){n.editor.focusIn()},n.editorValue=n.createEditor(t),n.maskSettings=n.editorValue.maskSettings,n.editor.questionTitleTemplateCallback=function(){return""},n.editor.titleLocation="left",r&&(n.title=r),n.editor.onPropertyChanged.add(function(e,t){n.onPropertyChanged.fire(n,t)}),n}return sr(t,e),t.prototype.getType=function(){return"multipletextitem"},Object.defineProperty(t.prototype,"id",{get:function(){return this.editor.id},enumerable:!1,configurable:!0}),t.prototype.getOriginalObj=function(){return this.editor},Object.defineProperty(t.prototype,"name",{get:function(){return this.editor.name},set:function(e){this.editor.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"editor",{get:function(){return this.editorValue},enumerable:!1,configurable:!0}),t.prototype.createEditor=function(e){return new so(e)},t.prototype.addUsedLocales=function(t){e.prototype.addUsedLocales.call(this,t),this.editor.addUsedLocales(t)},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this),this.editor.localeChanged()},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.editor.locStrsChanged()},t.prototype.setData=function(e){this.data=e,e&&(this.editor.defaultValue=e.getItemDefaultValue(this.name),this.editor.setSurveyImpl(this),this.editor.parent=e,this.editor.setParentQuestion(e))},Object.defineProperty(t.prototype,"isRequired",{get:function(){return this.editor.isRequired},set:function(e){this.editor.isRequired=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputType",{get:function(){return this.editor.inputType},set:function(e){this.editor.inputType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"title",{get:function(){return this.editor.title},set:function(e){this.editor.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.editor.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fullTitle",{get:function(){return this.editor.fullTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function(){return this.editor.maxLength},set:function(e){this.editor.maxLength=e},enumerable:!1,configurable:!0}),t.prototype.getMaxLength=function(){var e=this.getSurvey();return eA.getMaxLength(this.maxLength,e?e.maxTextLength:-1)},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.editor.placeholder},set:function(e){this.editor.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.editor.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeHolder",{get:function(){return this.placeholder},set:function(e){this.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceHolder",{get:function(){return this.locPlaceholder},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"requiredErrorText",{get:function(){return this.editor.requiredErrorText},set:function(e){this.editor.requiredErrorText=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRequiredErrorText",{get:function(){return this.editor.locRequiredErrorText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){return this.editor.size},set:function(e){this.editor.size=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueExpression",{get:function(){return this.editor.defaultValueExpression},set:function(e){this.editor.defaultValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minValueExpression",{get:function(){return this.editor.minValueExpression},set:function(e){this.editor.minValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxValueExpression",{get:function(){return this.editor.maxValueExpression},set:function(e){this.editor.maxValueExpression=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"validators",{get:function(){return this.editor.validators},set:function(e){this.editor.validators=e},enumerable:!1,configurable:!0}),t.prototype.getValidators=function(){return this.validators},Object.defineProperty(t.prototype,"maskType",{get:function(){return this.editor.maskType},set:function(e){this.editor.maskType=e,this.maskSettings=this.editor.maskSettings},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maskSettings",{get:function(){return this.getPropertyValue("maskSettings")},set:function(e){this.setPropertyValue("maskSettings",e),this.editor.maskSettings!==e&&(this.editor.maskSettings=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputTextAlignment",{get:function(){return this.editor.inputTextAlignment},set:function(e){this.editor.inputTextAlignment=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.data?this.data.getMultipleTextValue(this.name):null},set:function(e){null!=this.data&&this.data.setMultipleTextValue(this.name,e)},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){return this.editor.isEmpty()},t.prototype.onValueChanged=function(e){this.valueChangedCallback&&this.valueChangedCallback(e)},t.prototype.getSurveyData=function(){return this},t.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},t.prototype.getTextProcessor=function(){return this.data?this.data.getTextProcessor():null},t.prototype.getValue=function(e){return this.data?this.data.getMultipleTextValue(e):null},t.prototype.setValue=function(e,t){this.data&&this.data.setMultipleTextValue(e,t)},t.prototype.getVariable=function(e){},t.prototype.setVariable=function(e,t){},t.prototype.getComment=function(e){return null},t.prototype.setComment=function(e,t){},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():this.value},t.prototype.getFilteredValues=function(){return this.getAllValues()},t.prototype.getFilteredProperties=function(){return{survey:this.getSurvey()}},t.prototype.findQuestionByName=function(e){var t=this.getSurvey();return t?t.getQuestionByName(e):null},t.prototype.getEditingSurveyElement=function(){},t.prototype.getValidatorTitle=function(){return this.title},Object.defineProperty(t.prototype,"validatedValue",{get:function(){return this.value},set:function(e){this.value=e}
vendor: 4,267 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype.getDataFilteredValues=function(){return this.getFilteredValues()},t.prototype.getDataFilteredProperties=function(){return this.getFilteredProperties()},t}(tQ),ss=function(e){function t(t){var r=e.call(this,t)||this;return r.isMultipleItemValueChanging=!1,r.createNewArray("items",function(e){e.setData(r),r.survey&&r.survey.multipleTextItemAdded(r,e)}),r.registerPropertyChangedHandlers(["items","colCount","itemErrorLocation"],function(){r.calcVisibleRows()}),r.registerPropertyChangedHandlers(["itemSize"],function(){r.updateItemsSize()}),r}return sr(t,e),t.addDefaultItems=function(e){for(var t=n6.DefaultMutlipleTextItems,r=0;r<t.length;r++)e.addItem(t[r])},t.prototype.getType=function(){return"multipletext"},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r);for(var n=0;n<this.items.length;n++)this.items[n].setData(this)},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.getPropertyValue("id")},set:function(e){var t;null===(t=this.items)||void 0===t||t.map(function(t,r){return t.editor.id=e+"_"+r}),this.setPropertyValue("id",e)},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){this.editorsOnSurveyLoad(),e.prototype.onSurveyLoad.call(this),!eA.isValueEmpty(this.rows)&&this.calcVisibleRows()},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),e.prototype.setQuestionValue.call(this,t,r),this.performForEveryEditor(function(e){e.editor.updateValueFromSurvey(e.value)}),this.updateIsAnswered()},t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),this.performForEveryEditor(function(e){e.editor.onSurveyValueChanged(e.value)})},t.prototype.updateItemsSize=function(){this.performForEveryEditor(function(e){e.editor.updateInputSize()})},t.prototype.editorsOnSurveyLoad=function(){this.performForEveryEditor(function(e){e.editor.onSurveyLoad()})},t.prototype.performForEveryEditor=function(e){for(var t=0;t<this.items.length;t++){var r=this.items[t];r.editor&&e(r)}},Object.defineProperty(t.prototype,"items",{get:function(){return this.getPropertyValue("items")},set:function(e){this.setPropertyValue("items",e)},enumerable:!1,configurable:!0}),t.prototype.addItem=function(e,t){void 0===t&&(t=null);var r=this.createTextItem(e,t);return this.items.push(r),r},t.prototype.getItemByName=function(e){for(var t=0;t<this.items.length;t++)if(this.items[t].name==e)return this.items[t];return null},t.prototype.getElementsInDesign=function(t){return void 0===t&&(t=!1),e.prototype.getElementsInDesign.call(this,t).concat(this.items)},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=0;r<this.items.length;r++){var n=this.items[r];e.push({name:this.getValueName()+"."+n.name,text:this.processedTitle+"."+n.fullTitle,question:this})}},t.prototype.collectNestedQuestionsCore=function(e,t){this.items.forEach(function(r){return r.editor.collectNestedQuestions(e,t)})},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this,t);var n=this.getItemByName(r);if(!n)return null;var o=new e3().toJsonObject(n);return o.type="text",o},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].locStrsChanged()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.items.length;t++)this.items[t].localeChanged()},Object.defineProperty(t.prototype,"itemErrorLocation",{get:function(){return this.getPropertyValue("itemErrorLocation")},set:function(e){this.setPropertyValue("itemErrorLocation",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionErrorLocation=function(){return"default"!==this.itemErrorLocation?this.itemErrorLocation:this.getErrorLocation()},Object.defineProperty(t.prototype,"showItemErrorOnTop",{get:function(){return"top"==this.getQuestionErrorLocation()}
vendor: 9,152 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showItemErrorOnBottom",{get:function(){return"bottom"==this.getQuestionErrorLocation()},enumerable:!1,configurable:!0}),t.prototype.getChildErrorLocation=function(e){return this.getQuestionErrorLocation()},t.prototype.isNewValueCorrect=function(e){return eA.isValueObject(e,!0)},t.prototype.supportGoNextPageAutomatic=function(){for(var e=0;e<this.items.length;e++)if(this.items[e].isEmpty())return!1;return!0},Object.defineProperty(t.prototype,"colCount",{get:function(){return this.getPropertyValue("colCount")},set:function(e){!(e<1)&&!(e>5)&&this.setPropertyValue("colCount",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSize",{get:function(){return this.getPropertyValue("itemSize")},set:function(e){this.setPropertyValue("itemSize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTitleWidth",{get:function(){return this.getPropertyValue("itemTitleWidth")||""},set:function(e){this.setPropertyValue("itemTitleWidth",e)},enumerable:!1,configurable:!0}),t.prototype.onRowCreated=function(e){return e},t.prototype.calcVisibleRows=function(){for(var e,t,r=this.colCount,n=this.items,o=0,i=[],s=0;s<n.length;s++)0==o&&(e=this.onRowCreated(new sa),t=this.onRowCreated(new sl),this.showItemErrorOnTop?(i.push(t),i.push(e)):(i.push(e),i.push(t))),e.cells.push(new su(n[s],this)),t.cells.push(new sc(n[s],this)),(++o>=r||s==n.length-1)&&(o=0,t.onAfterCreated());this.rows=i},t.prototype.getRows=function(){return eA.isValueEmpty(this.rows)&&this.calcVisibleRows(),this.rows},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this),this.onItemValueChanged()},t.prototype.createTextItem=function(e,t){return new si(e,t)},t.prototype.onItemValueChanged=function(){if(!this.isMultipleItemValueChanging)for(var e=0;e<this.items.length;e++){var t=null;this.value&&this.items[e].name in this.value&&(t=this.value[this.items[e].name]),this.items[e].onValueChanged(t)}},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.items.forEach(function(e){return e.editor.runCondition(t,r)})},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.items.length;t++)if(this.items[t].editor.isRunningValidators)return!0;return!1},t.prototype.hasErrors=function(t,r){var n=this;void 0===t&&(t=!0),void 0===r&&(r=null);for(var o=!1,i=0;i<this.items.length;i++)this.items[i].editor.onCompletedAsyncValidators=function(e){n.raiseOnCompletedAsyncValidators()},!(r&&!0===r.isOnValueChanged&&this.items[i].editor.isEmpty())&&(o=this.items[i].editor.hasErrors(t,r)||o);return e.prototype.hasErrors.call(this,t)||o},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=0;r<this.items.length;r++){var n=this.items[r].editor.getAllErrors();n&&n.length>0&&(t=t.concat(n))}return t},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.items.length;t++)this.items[t].editor.clearErrors()},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.items,n=0;n<r.length;n++)if(r[n].editor.containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=0;t<this.items.length;t++){var r=this.items[t].editor;if(r.isVisible&&!r.isAnswered)return!1}return!0},t.prototype.getProgressInfo=function(){for(var e=[],t=0;t<this.items.length;t++)e.push(this.items[t].editor);return rw.getProgressInfoByElements(e,this.isRequired)},t.prototype.getDisplayValueCore=function(e,t){if(!t)return t;for(var r={},n=0;n<this.items.length;n++){var o=this.items[n],i=t[o.name];if(!eA.isValueEmpty(i)){var s=o.name;e&&o.title&&(s=o.title),r[s]=o.editor.getDisplayValue(e,i)}}return r},t.prototype.allowMobileInDesignMode=function(){return!0},t.prototype.getMultipleTextValue=function(e){return this.value?this.value[e]:null},t.prototype.setMultipleTextValue=function(e,t){this.isMultipleItemValueChanging=!0,this.isValueEmpty(t)&&(t=void 0);var r=this.value;!r&&(r={}),r[e]=t,this.setNewValue(r),this.isMultipleItemValueChanging=!1},t.prototype.getItemDefaultValue=function(e){return this.defaultValue?this.defaultValue[e]:null},t.prototype.getTextProcessor=function(){return this.textProcessor},t.prototype.getAllValues=function(){return this.data?this.data.getAllValues():null},t.prototype.getIsRequiredText=function(){return this.survey?this.survey.requiredText:""},t.prototype.addElement=function(e,t){},t.prototype.removeElement=function(e){return!1},t.prototype.getQuestionTitleLocation=function(){return"left"},t.prototype.getQuestionTitleWidth=function(){},t.prototype.getColumsForElement=function(e){return[]},t.prototype.updateColumns=function(){},t.prototype.getQuestionStartIndex=function(){return this.getStartIndex()},t.prototype.getChildrenLayoutType=function(){return"row"},t.prototype.elementWidthChanged=function(e){},Object.defineProperty(t.prototype,"elements",{get:function(){return[]},enumerable:!1,configurable:!0}),t.prototype.indexOf=function(e){return -1},t.prototype.ensureRowsVisibility=function(){},t.prototype.validateContainerOnly=function(){},t.prototype.onQuestionValueChanged=function(e){},t.prototype.getItemLabelCss=function(e){return new t$().append(this.cssClasses.itemLabel).append(this.cssClasses.itemLabelDisabled,this.isDisabledStyle).append(this.cssClasses.itemLabelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.itemLabelPreview,this.isPreviewStyle).append(this.cssClasses.itemLabelAnswered,e.editor.isAnswered).append(this.cssClasses.itemLabelAllowFocus,!this.isDesignMode).append(this.cssClasses.itemLabelOnError,e.editor.errors.length>0).append(this.cssClasses.itemWithCharacterCounter,!!e.getMaxLength()).toString()},t.prototype.getItemCss=function(){return new t$().append(this.cssClasses.item).toString()},t.prototype.getItemTitleCss=function(){return new t$().append(this.cssClasses.itemTitle).toString()},sn([eJ()],t.prototype,"rows",void 0),t}(n_),sa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isVisible=!0,t.cells=[],t}return sr(t,e),sn([eW()],t.prototype,"isVisible",void 0),sn([eJ()],t.prototype,"cells",void 0),t}(tQ),sl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return sr(t,e),t.prototype.onAfterCreated=function(){var e=this,t=function(){e.isVisible=e.cells.some(function(e){var t,r;return(null===(t=e.item)||void 0===t?void 0:t.editor)&&(null===(r=e.item)||void 0===r?void 0:r.editor.hasVisibleErrors)})};this.cells.forEach(function(e){var r,n;(null===(r=e.item)||void 0===r?void 0:r.editor)&&(null===(n=e.item)||void 0===n||n.editor.registerFunctionOnPropertyValueChanged("hasVisibleErrors",t))}),t()},t}(sa),su=function(){function e(e,t){this.item=e,this.question=t,this.isErrorsCell=!1}return e.prototype.getClassName=function(){return new t$().append(this.question.cssClasses.cell).toString()},Object.defineProperty(e.prototype,"className",{get:function(){return this.getClassName()},enumerable:!1,configurable:!0}),e}(),sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isErrorsCell=!0,t}return sr(t,e),t.prototype.getClassName=function(){return new t$().append(e.prototype.getClassName.call(this)).append(this.question.cssClasses.cellError).append(this.question.cssClasses.cellErrorTop,this.question.showItemErrorOnTop).append(this.question.cssClasses.cellErrorBottom,this.question.showItemErrorOnBottom).toString()},t}(su);e6.addClass("multipletextitem",[{name:"!name",isUnique:!0},"isRequired:boolean",{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"inputType",default:"text",choices:r9.questions.inputTypes},{name:"maskType",default:"none",visibleIndex:0,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType},choices:function(e){return i5()}},{name:"maskSettings:masksettings",className:"masksettings",visibleIndex:1,dependsOn:"inputType",visibleIf:function(e){return"text"===e.inputType},onGetValue:function(e){return e.maskSettings.getData()},onSetValue:function(e,t){e.maskSettings.setData(t)}},{name:"inputTextAlignment",default:"auto",choices:["left","right","auto"]},{name:"title",serializationProperty:"locTitle"},{name:"maxLength:number",default:-1},{name:"size:number",minValue:0},{name:"requiredErrorText:text",serializationProperty:"locRequiredErrorText"},{name:"defaultValueExpression:expression",visible:!1},{name:"minValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return i7(e)}},{name:"maxValueExpression:expression",category:"logic",dependsOn:"inputType",visibleIf:function(e){return i7(e)}},{name:"validators:validators",baseClassName:"surveyvalidator",classNamePart:"validator"}],function(){return new si("")}),e6.addClass("multipletext",[{name:"!items:textitems",className:"multipletextitem",isArray:!0},{name:"itemSize:number",minValue:0,visible:!1},{name:"colCount:number",default:1,choices:[1,2,3,4,5]},{name:"itemErrorLocation",default:"default",choices:["default","to
1p","bottom"],visible:!1},{name:"itemTitleWidth",category:"layout"}],function(){return new ss("")},"question"),n6.Instance.registerQuestion("multipletext",function(e){var t=new ss(e);return ss.addDefaultItems(t),t});var sp=(Z=function(e,t){return(Z=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Z(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sh=function(e){function t(t){void 0===t&&(t="");var r=e.call(this,t)||this;return r.createLocalizableString("content",r,!0),r.registerPropertyChangedHandlers(["content"],function(){r.onContentChanged()}),r}return sp(t,e),t.prototype.getType=function(){return"flowpanel"},t.prototype.getChildrenLayoutType=function(){return"flow"},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.onContentChanged()},Object.defineProperty(t.prototype,"content",{get:function(){return this.getLocalizableStringText("content")},set:function(e){this.setLocalizableStringText("content",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locContent",{get:function(){return this.getLocalizableString("content")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"html",{get:function(){return this.getPropertyValue("html","")},set:function(e){this.setPropertyValue("html",e)},enumerable:!1,configurable:!0}),t.prototype.onContentChanged=function(){var e="";e=this.onCustomHtmlProducing?this.onCustomHtmlProducing():this.produceHtml(),this.html=e,this.contentChangedCallback&&this.contentChangedCallback()},t.prototype.produceHtml=function(){for(var e=[],t=/{(.*?(element:)[^$].*?)}/g,r=this.content,n=0,o=null;null!==(o=t.exec(r));){o.index>n&&(e.push(r.substring(n,o.index)),n=o.index);var i=this.getQuestionFromText(o[0]);i?e.push(this.getHtmlForQuestion(i)):e.push(r.substring(n,o.index+o[0].length)),n=o.index+o[0].length}return n<r.length&&e.push(r.substring(n,r.length)),e.join("").replace(RegExp("<br>","g"),"<br/>")},t.prototype.getQuestionFromText=function(e){return e=(e=e.substring(1,e.length-1)).replace(t.contentElementNamePrefix,"").trim(),this.getQuestionByName(e)},t.prototype.getHtmlForQuestion=function(e){return this.onGetHtmlForQuestion?this.onGetHtmlForQuestion(e):""},t.prototype.getQuestionHtmlId=function(e){return this.name+"_"+e.id},t.prototype.onAddElement=function(t,r){e.prototype.onAddElement.call(this,t,r),this.addElementToContent(t),t.renderWidth=""},t.prototype.onRemoveElement=function(t){var r=this.getElementContentText(t);this.content=this.content.replace(r,""),e.prototype.onRemoveElement.call(this,t)},t.prototype.dragDropMoveElement=function(e,t,r){},t.prototype.addElementToContent=function(e){if(!this.isLoadingFromJson){var t=this.getElementContentText(e);!this.insertTextAtCursor(t)&&(this.content=this.content+t)}},t.prototype.insertTextAtCursor=function(e,t){if(void 0===t&&(t=null),!this.isDesignMode||!e_.isAvailable())return!1;var r=e_.getSelection();if(r.getRangeAt&&r.rangeCount){var n=r.getRangeAt(0);n.deleteContents();var o=new Text(e);n.insertNode(o);if(this.getContent){var i=this.getContent(t);this.content=i}return!0}return!1},t.prototype.getElementContentText=function(e){return"{"+t.contentElementNamePrefix+e.name+"}"},t.contentElementNamePrefix="element:",t}(il);e6.addClass("flowpanel",[{name:"content:html",serializationProperty:"locContent"}],function(){return new sh},"panel");var sd=function(){function e(){}return e.getIconCss=function(e,t){return new t$().append(e.icon).append(e.iconExpanded,!t).toString()},e}();var sf=(ee=function(e,t){return(ee=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ee(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sg=function(e){function t(t){return e.call(this,t)||this}return sf(t,e),t.prototype.getType=function(){return"nonvalue"},Object.defineProperty(t.prototype,"hasInput",{get:function(){return!1}
vendor: 5,711 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getTitleLocation=function(){return""},Object.defineProperty(t.prototype,"hasComment",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.hasErrors=function(e,t){return void 0===e&&(e=!0),void 0===t&&(t=null),!1},t.prototype.getAllErrors=function(){return[]},t.prototype.supportGoNextPageAutomatic=function(){return!1},t.prototype.addConditionObjectsByContext=function(e,t){},t.prototype.getConditionJson=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),null},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(n_);e6.addClass("nonvalue",[{name:"title",visible:!1},{name:"description",visible:!1},{name:"valueName",visible:!1},{name:"enableIf",visible:!1},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"clearIfInvisible",visible:!1},{name:"isRequired",visible:!1,isSerializable:!1},{name:"requiredErrorText",visible:!1},{name:"readOnly",visible:!1},{name:"requiredIf",visible:!1},{name:"validators",visible:!1},{name:"titleLocation",visible:!1},{name:"showCommentArea",visible:!1},{name:"useDisplayValuesInDynamicTexts",alternativeName:"useDisplayValuesInTitle",visible:!1}],function(){return new sg("")},"question");var sm=(et=function(e,t){return(et=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}et(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sy=function(e){function t(t){return e.call(this,t)||this}return sm(t,e),t.prototype.getType=function(){return"empty"},t}(n_);e6.addClass("empty",[],function(){return new sy("")},"question");var sb=(er=function(e,t){return(er=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}er(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sv=function(e){function t(t){var r=e.call(this,t)||this;return r.invisibleOldValues={},r.isChangingValueOnClearIncorrect=!1,r.selectAllItemValue=new nL(""),r.selectAllItemValue.id="selectall",r.selectAllItemText=r.createLocalizableString("selectAllText",r.selectAllItem,!0,"selectAllItemText"),r.selectAllItem.locOwner=r,r.selectAllItem.setLocText(r.selectAllItemText),r.registerPropertyChangedHandlers(["showSelectAllItem","selectAllText"],function(){r.onVisibleChoicesChanged()}),r}return sb(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-checkbox-item"},t.prototype.getType=function(){return"checkbox"},t.prototype.onCreating=function(){e.prototype.onCreating.call(this),this.createNewArray("renderedValue"),this.createNewArray("value")},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"valuePropertyName",{get:function(){return this.getPropertyValue("valuePropertyName")},set:function(e){this.setPropertyValue("valuePropertyName",e)},enumerable:!1,configurable:!0}),t.prototype.getQuestionFromArray=function(e,t){if(e&&e===this.valuePropertyName){var r=this.value;if(Array.isArray(r)&&t<r.length)return this}return null},Object.defineProperty(t.prototype,"selectAllItem",{get:function(){return this.selectAllItemValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectAllText",{get:function(){return this.getLocalizableStringText("selectAllText")},set:function(e){this.setLocalizableStringText("selectAllText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locSelectAllText",{get:function(){return this.getLocalizableString("selectAllText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showSelectAllItem",{get:function(){return this.getPropertyValue("showSelectAllItem")},set:function(e){this.setPropertyValue("showSelectAllItem",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSelectAll",{get:function(){return this.showSelectAllItem},set:function(e){this.showSelectAllItem=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAllSelected",{get:function(){return this.allElementsSelected()},set:function(e){e?this.selectAll():this.clearValue(!0)},enumerable:!1,configurable:!0}),t.prototype.toggleSelectAll=function(){this.isAllSelected=!this.isAllSelected},t.prototype.allElementsSelected=function(){for(var e=this.getNoneItems(),t=0;t<e.length;t++)if(this.isItemSelected(e[t]))return!1;var r=this.getVisibleEnableItems();if(0===r.length)return!1;var n=this.value;if(!n||!Array.isArray(n)||0===n.length||n.length<r.length)return!1;for(var o=[],t=0;t<n.length;t++)o.push(this.getRealValue(n[t]));for(var t=0;t<r.length;t++)if(0>o.indexOf(r[t].value))return!1;return!0},t.prototype.selectAll=function(){for(var e=[],t=this.getVisibleEnableItems(),r=0;r<t.length;r++)e.push(t[r].value);this.renderedValue=e},t.prototype.clickItemHandler=function(e,t){if(!this.isReadOnlyAttr){if(e===this.selectAllItem)!0===t||!1===t?this.isAllSelected=t:this.toggleSelectAll();else if(this.isNoneItem(e))this.renderedValue=t?[e.value]:[];
1else{var r=[].concat(this.renderedValue||[]),n=r.indexOf(e.value);t?n<0&&r.push(e.value):n>-1&&r.splice(n,1),this.renderedValue=r}}},t.prototype.isItemSelectedCore=function(e){if(e===this.selectAllItem)return this.isAllSelected;var t=this.renderedValue;if(!t||!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.hasUnknownValueItem=function(t,r,n,o){void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===o&&(o=!1);var i=this.valuePropertyName;return i&&"object"==typeof t&&void 0!==t[i]&&(t=t[i]),e.prototype.hasUnknownValueItem.call(this,t,r,n,o)},t.prototype.convertFuncValuetoQuestionValue=function(t){var r=this;if(this.valuePropertyName&&Array.isArray(t)&&t.length>0){var n=[];t.forEach(function(e){var t="object"==typeof e,o=t?e:{};!t&&(o[r.valuePropertyName]=e),n.push(o)}),t=n}return e.prototype.convertDefaultValue.call(this,t)},t.prototype.getRealValue=function(e){return e?this.valuePropertyName?e[this.valuePropertyName]:e:e},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSelectedChoices",{get:function(){return this.getPropertyValue("maxSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("maxSelectedChoices",e),this.filterItems()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minSelectedChoices",{get:function(){return this.getPropertyValue("minSelectedChoices")},set:function(e){e<0&&(e=0),this.setPropertyValue("minSelectedChoices",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedChoices",{get:function(){var e=this.renderedValue,t=this.visibleChoices,r=this.selectedItemValues;if(this.isEmpty())return[];var n=this.defaultSelectedItemValues?[].concat(this.defaultSelectedItemValues,t):t,o=e.map(function(e){return nL.getItemByValue(n,e)}).filter(function(e){return!!e});return!o.length&&!r&&this.updateSelectedItemValues(),this.validateItemValues(o)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this.selectedChoices},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFilteredValue",{get:function(){return!!this.valuePropertyName},enumerable:!1,configurable:!0}),t.prototype.getFilteredName=function(){var t=e.prototype.getFilteredName.call(this);return this.hasFilteredValue&&(t+="-unwrapped"),t},t.prototype.getFilteredValue=function(){return this.hasFilteredValue?this.renderedValue:e.prototype.getFilteredValue.call(this)},t.prototype.getMultipleSelectedItems=function(){return this.selectedChoices},t.prototype.validateItemValues=function(e){var t=this;if(e.length)return e;var r=this.selectedItemValues;return r&&r.length?(this.defaultSelectedItemValues=[].concat(r),r):this.renderedValue.map(function(e){return t.createItemValue(e)})},t.prototype.getAnswerCorrectIgnoreOrder=function(){return!0},t.prototype.onCheckForErrors=function(t,r,n){if(e.prototype.onCheckForErrors.call(this,t,r,n),!r&&this.minSelectedChoices>0&&this.checkMinSelectedChoicesUnreached()){var o=new nf(this.getLocalizationFormatString("minSelectError",this.minSelectedChoices),this);t.push(o)}},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.updateSelectAllItemProps()},t.prototype.onEnableItemCallBack=function(e){return!this.shouldCheckMaxSelectedChoices()||this.isItemSelected(e)},t.prototype.onAfterRunItemsEnableCondition=function(){if(this.updateSelectAllItemProps(),this.maxSelectedChoices<1){this.otherItem.setIsEnabled(!0);return}this.hasOther&&this.otherItem.setIsEnabled(!this.shouldCheckMaxSelectedChoices()||this.isOtherSelected)},t.prototype.updateSelectAllItemProps=function(){this.hasSelectAll&&this.selectAllItem.setIsEnabled(this.getSelectAllEnabled())},t.prototype.getSelectAllEnabled=function(){if(!this.hasSelectAll)return!0;this.activeChoices;var e=this.getVisibleEnableItems().length,t=this.maxSelectedChoices;return(!(t>0)||!(t<e))&&e>0},t.prototype.getVisibleEnableItems=function(){for(var e=[],t=this.activeChoices,r=0;r<t.length;r++){var n=t[r];n.isEnabled&&n.isVisible&&e.push(n)}return e},t.prototype.shouldCheckMaxSelectedChoices=function(){if(this.maxSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)>=this.maxSelectedChoices},t.prototype.checkMinSelectedChoicesUnreached=function(){if(this.minSelectedChoices<1)return!1;var e=this.value;return(Array.isArray(e)?e.length:0)<this.minSelectedChoices},t.prototype.getItemClassCore=function(t,r){return this.value,r.isSelectAllItem=t===this.selectAllItem,new t$().append(e.prototype.getItemClassCore.call(this,t,r)).append(this.cssClasse
vendor: 35,652 bytes, line 1
1s.itemSelectAll,r.isSelectAllItem).toString()},t.prototype.updateValueFromSurvey=function(t,r){e.prototype.updateValueFromSurvey.call(this,t,r),this.invisibleOldValues={}},t.prototype.setDefaultValue=function(){e.prototype.setDefaultValue.call(this);var t=this.defaultValue;if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=this.getRealValue(t[r]);this.canClearValueAnUnknown(n)&&this.addIntoInvisibleOldValues(n)}},t.prototype.addIntoInvisibleOldValues=function(e){this.invisibleOldValues[e]=e},t.prototype.hasValueToClearIncorrectValues=function(){return e.prototype.hasValueToClearIncorrectValues.call(this)||!eA.isValueEmpty(this.invisibleOldValues)},t.prototype.setNewValue=function(t){!this.isChangingValueOnClearIncorrect&&(this.invisibleOldValues={}),t=this.valueFromData(t);var r=this.value;!t&&(t=[]),!r&&(r=[]),!this.isTwoValueEquals(r,t)&&(this.removeNoneItemsValues(r,t),e.prototype.setNewValue.call(this,t))},t.prototype.getIsMultipleValue=function(){return!0},t.prototype.getCommentFromValue=function(e){var t=this.getFirstUnknownIndex(e);return t<0?"":e[t]},t.prototype.getStoreOthersAsComment=function(){return!this.valuePropertyName&&e.prototype.getStoreOthersAsComment.call(this)},t.prototype.setOtherValueIntoValue=function(e){var t=this.getFirstUnknownIndex(e);if(t<0)return e;var r=this.otherItem.value,n=this.valuePropertyName;if(n){var o={};o[n]=r,r=o}return e.splice(t,1,r),e},t.prototype.getFirstUnknownIndex=function(e){if(!Array.isArray(e))return -1;for(var t=0;t<e.length;t++)if(this.hasUnknownValueItem(e[t],!1,!1))return t;return -1},t.prototype.removeNoneItemsValues=function(e,t){var r=[];if(this.showNoneItem&&r.push(this.noneItem.value),this.showRefuseItem&&r.push(this.refuseItem.value),this.showDontKnowItem&&r.push(this.dontKnowItem.value),r.length>0){var n=this.noneIndexInArray(e,r),o=this.noneIndexInArray(t,r);if(n.index>-1){if(n.val===o.val)t.length>0&&t.splice(o.index,1);else{var i=this.noneIndexInArray(t,[n.val]);i.index>-1&&i.index<t.length-1&&t.splice(i.index,1)}}else if(o.index>-1&&t.length>1){var s=this.convertValueToObject([o.val])[0];t.splice(0,t.length,s)}}},t.prototype.noneIndexInArray=function(e,t){if(!Array.isArray(e))return{index:-1,val:void 0};for(var r=e.length-1;r>=0;r--){var n=t.indexOf(this.getRealValue(e[r]));if(n>-1)return{index:r,val:t[n]}}return{index:-1,val:void 0}},t.prototype.canUseFilteredChoices=function(){return!this.hasSelectAll&&e.prototype.canUseFilteredChoices.call(this)},t.prototype.supportSelectAll=function(){return this.isSupportProperty("showSelectAllItem")},t.prototype.addNonChoicesItems=function(t,r){e.prototype.addNonChoicesItems.call(this,t,r),this.supportSelectAll()&&this.addNonChoiceItem(t,this.selectAllItem,r,this.hasSelectAll,r9.specialChoicesOrder.selectAllItem)},t.prototype.isBuiltInChoice=function(t){return t===this.selectAllItem||e.prototype.isBuiltInChoice.call(this,t)},t.prototype.isItemInList=function(t){return t==this.selectAllItem?this.hasSelectAll:e.prototype.isItemInList.call(this,t)},t.prototype.getDisplayValueEmpty=function(){var e=this;return nL.getTextOrHtmlByValue(this.visibleChoices.filter(function(t){return t!=e.selectAllItemValue}),void 0)},t.prototype.getDisplayValueCore=function(t,r){if(!Array.isArray(r))return e.prototype.getDisplayValueCore.call(this,t,r);var n=this.valuePropertyName;return this.getDisplayArrayValue(t,r,function(e){var t=r[e];return n&&t[n]&&(t=t[n]),t})},t.prototype.clearIncorrectValuesCore=function(){this.clearIncorrectAndDisabledValues(!1)},t.prototype.clearDisabledValuesCore=function(){this.clearIncorrectAndDisabledValues(!0)},t.prototype.clearIncorrectAndDisabledValues=function(e){var t=this.value,r=!1,n=this.restoreValuesFromInvisible();if(!!t||0!=n.length){if(!Array.isArray(t)||0==t.length){if(this.isChangingValueOnClearIncorrect=!0,!e&&(this.hasComment?this.value=null:this.clearValue(!0)),this.isChangingValueOnClearIncorrect=!1,0==n.length)return;t=[]}for(var o=[],i=0;i<t.length;i++){var s=this.getRealValue(t[i]),a=this.canClearValueAnUnknown(s);(e||a)&&(!e||this.isValueDisabled(s))?(r=!0,a&&this.addIntoInvisibleOldValues(t[i])):o.push(t[i])}for(var i=0;i<n.length;i++)o.push(n[i]),r=!0;r&&(this.isChangingValueOnClearIncorrect=!0,0==o.length?this.clearValue(!0):this.value=o,this.isChangingValueOnClearIncorrect=!1)}},t.prototype.restoreValuesFromInvisible=function(){for(var e=[],t=this.visibleChoices,r=0;r<t.length;r++){var n=t[r];if(n!==this.selectAllItem){var o=t[r].value;eA.isTwoValueEquals(o,this.invisibleOldValues[o])&&(!this.isItemSelected(n)&&e.push(o),delete this.invisibleOldValues[o])}}return e},t.prototype.getConditionJson=function(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.prototype.getConditionJson.call(this,t,r);return("contains"==t||"notcontains"==t)&&(n.type="radiogroup"),n.maxSelectedChoices=0,n.minSelectedChoices=0,n},t.prototype.isAnswerCorrect=function(){return eA.isArrayContainsEqual(this.value,this.correctAnswer)},t.prototype.setDefaultValueWithOthers=function(){this.value=this.renderedValueFromDataCore(this.defaultValue)},t.prototype.getIsItemValue=function(e,t){return!!(e&&Array.isArray(e))&&e.indexOf(t.value)>=0},t.prototype.valueFromData=function(t){if(!t)return t;if(!Array.isArray(t))return[e.prototype.valueFromData.call(this,t)];for(var r=[],n=0;n<t.length;n++){var o=nL.getItemByValue(this.activeChoices,t[n]);o?r.push(o.value):r.push(t[n])}return r},t.prototype.rendredValueFromData=function(t){return t=this.convertValueFromObject(t),e.prototype.rendredValueFromData.call(this,t)},t.prototype.rendredValueToData=function(t){return t=e.prototype.rendredValueToData.call(this,t),this.convertValueToObject(t)},t.prototype.convertValueFromObject=function(e){return this.valuePropertyName?eA.convertArrayObjectToValue(e,this.valuePropertyName):e},t.prototype.convertValueToObject=function(e){if(!this.valuePropertyName)return e;var t=void 0;return this.survey&&this.survey.questionsByValueName(this.getValueName()).length>1&&(t=this.data.getValue(this.getValueName())),eA.convertArrayValueToObject(e,this.valuePropertyName,t)},t.prototype.renderedValueFromDataCore=function(e){if((!e||!Array.isArray(e))&&(e=[]),!this.hasActiveChoices)return e;for(var t=0;t<e.length&&e[t]!=this.otherItem.value;t++){;if(this.hasUnknownValueItem(e[t],!0,!1)){this.otherValue=e[t];var r=e.slice();return r[t]=this.otherItem.value,r}}return e},t.prototype.rendredValueToDataCore=function(e){if(!e||!e.length)return e;for(var t=0;t<e.length;t++)if(e[t]==this.otherItem.value&&this.needConvertRenderedOtherToDataValue()){var r=e.slice();return r[t]=this.otherValue,r}return e},t.prototype.selectOtherValueFromComment=function(e){var t=[],r=this.renderedValue;if(Array.isArray(r))for(var n=0;n<r.length;n++)r[n]!==this.otherItem.value&&t.push(r[n]);e&&t.push(this.otherItem.value),this.value=t},Object.defineProperty(t.prototype,"checkBoxSvgPath",{get:function(){return"M5,13l2-2l3,3l7-7l2,2l-9,9L5,13z"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"group"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRequired",{get:function(){return null},enumerable:!1,configurable:!0}),t}(iT);e6.addClass("checkbox",[{name:"showSelectAllItem:boolean",alternativeName:"hasSelectAll"},{name:"separateSpecialChoices",visible:!0},{name:"maxSelectedChoices:number",default:0,onSettingValue:function(e,t){if(t<=0)return 0;var r=e.minSelectedChoices;return r>0&&t<r?r:t}},{name:"minSelectedChoices:number",default:0,onSettingValue:function(e,t){if(t<=0)return 0;var r=e.maxSelectedChoices;return r>0&&t>r?r:t}},{name:"selectAllText",serializationProperty:"locSelectAllText",dependsOn:"showSelectAllItem",visibleIf:function(e){return e.hasSelectAll}},{name:"valuePropertyName",category:"data"},{name:"itemComponent",visible:!1,default:"survey-checkbox-item"}],function(){return new sv("")},"checkboxbase"),n6.Instance.registerQuestion("checkbox",function(e){var t=new sv(e);return t.choices=n6.DefaultChoices,t});var sC=(en=function(e,t){return(en=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}en(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sx=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},sw=function(e){function t(t){var r=e.call(this,t)||this;return r.onItemClick=function(e){!r.isItemDisabled(e)&&(r.isExpanded=!1,r.isItemSelected(e)?(r.selectedItems.splice(r.selectedItems.indexOf(e),1)[0],r.onSelectionChanged&&r.onSelectionChanged(e,"removed")):(r.selectedItems.push(e),r.onSelectionChanged&&r.onSelectionChanged(e,"added")))},r.isItemDisabled=function(e){return void 0!==e.enabled&&!e.enabled},r.isItemSelected=function(e){return!!r.allowSelection&&r.selectedItems.filter(function(t){return r.areSameItems(t,e)}).length>0},r.setSelectedItems(t.selectedItems||[]),r}return sC(t,e),t.prototype.updateItemState=function(){var e=this;this.actions.forEach(function(t){var r=e.isItemSelected(t);t.visible=!e.hideSelectedItems||!r})},t.prototype.updateState=function(){var e=this;this.updateItemState(),this.isEmpty=0===this.renderedActions.filter(function(t){return e.isItemVisible(t)}).length},t.prototype.setSelectedItems=function(e){this.selectedItems=e,this.updateState()},t.prototype.selectFocusedItem=function(){e.prototype.selectFocusedItem.call(this),this.hideSelectedItems&&this.focusNextVisibleItem()},sx([eW()],t.prototype,"hideSelectedItems",void 0),t}(t4);var sP=(eo=function(e,t){return(eo=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eo(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sV=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},sj=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.setHideSelectedItems(t.hideSelectedItems),n.syncFilterStringPlaceholder(),n.closeOnSelect=t.closeOnSelect,n}return sP(t,e),t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this),this.syncFilterStringPlaceholder()},t.prototype.updateListState=function(){this.listModel.updateState(),this.syncFilterStringPlaceholder()},t.prototype.syncFilterStringPlaceholder=function(){this.getSelectedActions().length||this.question.selectedItems.length||this.listModel.focusedItem?this.filterStringPlaceholder=void 0:this.filterStringPlaceholder=this.question.placeholder},t.prototype.getSelectedActions=function(){return this.listModel.actions.filter(function(e){return e.selected})},t.prototype.getFocusFirstInputSelector=function(){return this.listModel.hideSelectedItems&&oT&&!this.isValueEmpty(this.question.value)?this.itemSelector:e.prototype.getFocusFirstInputSelector.call(this)},t.prototype.getPopupCssClasses=function(){return"sv-multi-select-list"},t.prototype.createListModel=function(){var e=this,t=this.getAvailableItems(),r=this.onSelectionChanged;!r&&(r=function(t,r){e.resetFilterString(),"selectall"===t.id?e.selectAllItems():"added"===r&&t.value===r9.noneItemValue?e.selectNoneItem():"added"===r?e.selectItem(t.value):"removed"===r&&e.deselectItem(t.value),e.popupRecalculatePosition(!1),e.closeOnSelect&&(e.popupModel.isVisible=!1)});var n=new sw({items:t,onSelectionChanged:r,allowSelection:!1,locOwner:this.question,elementId:this.listElementId});return this.setOnTextSearchCallbackForListModel(n),n.forceShowFilter=!0,n},t.prototype.resetFilterString=function(){e.prototype.resetFilterString.call(this),this.inputString=null,this.hintString=""},Object.defineProperty(t.prototype,"shouldResetAfterCancel",{get:function(){return oT&&!this.closeOnSelect},enumerable:!1,configurable:!0}),t.prototype.createPopup=function(){var t=this;e.prototype.createPopup.call(this),this.popupModel.onFooterActionsCreated.add(function(e,r){t.shouldResetAfterCancel&&r.actions.push({id:"sv-dropdown-done-button",title:t.doneButtonCaption,innerCss:"sv-popup__button--done",needSpace:!0,action:function(){t.popupModel.isVisible=!1},enabled:new tB(function(){return!t.isTwoValueEquals(t.question.renderedValue,t.previousValue)})})}),this.popupModel.onVisibilityChanged.add(function(e,r){t.shouldResetAfterCancel&&r.isVisible&&(t.previousValue=[].concat(t.question.renderedValue||[]))}),this.popupModel.onCancel=function(){t.shouldResetAfterCancel&&(t.question.renderedValue=t.previousValue,t.updateListState())}},t.prototype.selectAllItems=function(){this.question.toggleSelectAll(),this.question.isAllSelected&&this.question.hideSelectedItems&&this.popupModel.hide(),this.updateListState()},t.prototype.selectNoneItem=function(){this.question.renderedValue=[r9.noneItemValue],this.updateListState()},t.prototype.selectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.push(e),this.question.renderedValue=t,this.updateListState()},t.prototype.deselectItem=function(e){var t=[].concat(this.question.renderedValue||[]);t.splice(t.indexOf(e),1),this.question.renderedValue=t,this.applyHintString(this.listModel.focusedItem),this.updateListState()},t.prototype.clear=function(){e.prototype.clear.call(this),this.syncFilterStringPlaceholder()},t.prototype.onClear=function(t){e.prototype.onClear.call(this,t),this.updateListState()},t.prototype.setHideSelectedItems=function(e){this.listModel.hideSelectedItems=e,this.updateListState()},t.prototype.removeLastSelectedItem=function(){this.deselectItem(this.question.renderedValue[this.question.renderedValue.length-1]),this.popupRecalculatePosition(!1)},t.prototype.inputKeyHandler=function(e){8===e.keyCode&&!this.filterString&&(this.removeLastSelectedItem(),e.preventDefault(),e.stopPropagation())},t.prototype.setInputStringFromSelectedItem=function(e){this.question.searchEnabled&&(this.inputString=null)},t.prototype.focusItemOnClickAndPopup=function(){},t.prototype.onEscape=function(){},t.prototype.beforeScrollToFocusedItem=function(e){},t.prototype.afterScrollToFocusedItem=function(){var e;(null===(e=this.listModel.focusedItem)||void 0===e?void 0:e.selected)?this.hintString="":this.applyHintString(this.listModel.focusedItem||this.question.selectedItem),this.syncFilterStringPlaceholder()},t.prototype.onPropertyChangedHandler=function(t,r){e.prototype.onPropertyChangedHandler.call(this,t,r),("value"===r.name||"renderedValue"===r.name||"placeholder"===r.name)&&this.syncFilterStringPlaceholder()},sV([eW({defaultValue:""})],t.prototype,"filterStringPlaceholder",void 0),sV([eW({defaultValue:!0})],t.prototype,"closeOnSelect",void 0),sV([eW()],t.prototype,"previousValue",void 0),sV([eW({localizable:{defaultStr:"tagboxDoneButtonCaption"}})],t.prototype,"doneButtonCaption",void 0),t}(iH);var sS=(ei=function(e,t){return(ei=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ei(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sO=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},sI=function(e){function t(t){var r=e.call(this,t)||this;return r.itemDisplayNameMap={},r.onOpened=r.addEvent(),r.ariaExpanded="false",r.createLocalizableString("placeholder",r,!1,!0),r.createLocalizableString("clearCaption",r,!1,!0),r.createLocalizableString("readOnlyText",r,!0),r.deselectAllItemText=r.createLocalizableString("deselectAllText",r.selectAllItem,!0,"deselectAllItemText"),r.registerPropertyChangedHandlers(["value","renderAs","showOtherItem","otherText","placeholder","choices","visibleChoices"],function(){r.updateReadOnlyText()}),r.updateReadOnlyText(),r}return sS(t,e),t.prototype.locStrsChanged=function(){var t;e.prototype.locStrsChanged.call(this),this.updateReadOnlyText(),null===(t=this.dropdownListModelValue)||void 0===t||t.locStrsChanged()},t.prototype.updateReadOnlyText=function(){this.readOnlyText=this.displayValue||this.placeholder},t.prototype.getDefaultItemComponent=function(){return""},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return!this.dropdownListModelValue&&(this.dropdownListModelValue=new sj(this)),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("placeholder")},set:function(e){this.setLocalizableStringText("placeholder",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("placeholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.getLocalizableStringText("readOnlyText")},set:function(e){this.setLocalizableStringText("readOnlyText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locReadOnlyText",{get:function(){return this.getLocalizableString("readOnlyText")},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"tagbox"},Object.defineProperty(t.prototype,"ariaRole",{get:function(){return"combobox"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"popupModel",{get:function(){return this.dropdownListModel.popupModel},enumerable:!1,configurable:!0}),t.prototype.getControlClass=function(){return new t$().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlEditable,!this.isDisabledStyle&&!this.isReadOnlyStyle&&!this.isPreviewStyle).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},t.prototype.updateCssClasses=function(t,r){e.prototype.updateCssClasses.call(this,t,r),r0(t,r)},t.prototype.calcCssClasses=function(t){var r=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModelValue&&this.dropdownListModel.updateCssClasses(r.popup,r.list),r},t.prototype.onOpenedCallBack=function(){this.onOpened.fire(this,{question:this,choices:this.choices})},t.prototype.hasUnknownValue=function(t,r,n,o){return void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===o&&(o=!1),!this.choicesLazyLoadEnabled&&e.prototype.hasUnknownValue.call(this,t,r,n,o)},t.prototype.needConvertRenderedOtherToDataValue=function(){var t,r=null===(t=this.otherValue)||void 0===t?void 0:t.trim();return!!r&&e.prototype.hasUnknownValue.call(this,r,!0,!1)},t.prototype.onVisibleChoicesChanged=function(){e.prototype.onVisibleChoicesChanged.call(this),this.dropdownListModelValue&&this.dropdownListModel.updateItems()},t.prototype.getItemIfChoicesNotContainThisValue=function(t,r){return this.choicesLazyLoadEnabled?this.createItemValue(t,r):e.prototype.getItemIfChoicesNotContainThisValue.call(this,t,r)},t.prototype.validateItemValues=function(e){var t=this;this.updateItemDisplayNameMap();var r=this.renderedValue;if(e.length&&e.length===r.length)return e;var n=this.selectedItemValues;if(!e.length&&n&&n.length)return this.defaultSelectedItemValues=[].concat(n),n;var o=e.map(function(e){return e.value});return r.filter(function(e){return -1===o.indexOf(e)}).forEach(function(r){var n=t.getItemIfChoicesNotContainThisValue(r,t.itemDisplayNameMap[r]);n&&e.push(n)}),e.sort(function(e,t){return r.indexOf(e.value)-r.indexOf(t.value)}),e},t.prototype.updateItemDisplayNameMap=function(){var e=this,t=function(t){e.itemDisplayNameMap[t.value]=t.text};(this.defaultSelectedItemValues||[]).forEach(t),(this.selectedItemValues||[]).forEach(t),this.visibleChoices.forEach(t)},t.prototype.getFirstInputElementId=function(){return this.inputId+(this.searchEnabled?"_0":"")},t.prototype.getInputId=function(){return this.inputId+"_0"},t.prototype.supportEmptyValidation=function(){return!0},t.prototype.onBlurCore=function(t){this.dropdownListModel.onBlur(t),e.prototype.onBlurCore.call(this,t)},t.prototype.onFocusCore=function(t){this.dropdownListModel.onFocus(t),e.prototype.onFocusCore.call(this,t)},t.prototype.allElementsSelected=function(){var t=e.prototype.allElementsSelected.call(this);return this.updateSelectAllItemText(t),t},t.prototype.updateSelectAllItemText=function(e){this.selectAllItem.setLocText(e?this.deselectAllItemText:this.selectAllItemText)},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.prototype.clearValue=function(t){var r;e.prototype.clearValue.call(this,t),null===(r=this.dropdownListModelValue)||void 0===r||r.clear()},Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.allowClear&&!this.isEmpty()&&(!this.isDesignMode||r9.supportCreatorV2)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),sO([eW()],t.prototype,"searchMode",void 0),sO([eW()],t.prototype,"allowClear",void 0),sO([eW({onSet:function(e,t){t.dropdownListModelValue&&t.dropdownListModel.setSearchEnabled(e)}})],t.prototype,"searchEnabled",void 0),sO([eW({onSet:function(e,t){t.dropdownListModelValue&&t.dropdownListModel.setHideSelectedItems(e)}})],t.prototype,"hideSelectedItems",void 0),sO([eW({onSet:function(e,t){t.dropdownListModelValue&&t.dropdownListModel.setChoicesLazyLoadEnabled(e)}})],t.prototype,"choicesLazyLoadEnabled",void 0),sO([eW()],t.prototype,"choicesLazyLoadPageSize",void 0),sO([eW({getDefaultValue:function(){return r9.tagboxCloseOnSelect}})],t.prototype,"closeOnSelect",void 0),sO([eW()],t.prototype,"textWrapEnabled",void 0),t}(sv);e6.addClass("tagbox",[{name:"placeholder",serializationProperty:"locPlaceholder"},{name:"allowClear:boolean",default:!0},{name:"searchEnabled:boolean",default:!0},{name:"textWrapEnabled:boolean",default:!0},{name:"choicesLazyLoadEnabled:boolean",default:!1,visible:!1},{name:"choicesLazyLoadPageSize:number",default:25,visible:!1},{name:"hideSelectedItems:boolean",default:!1},{name:"closeOnSelect:boolean"},{name:"itemComponent",visible:!1,default:""},{name:"searchMode",default:"contains",choices:["contains","startsWith"]}],function(){return new sI("")},"checkbox"),n6.Instance.registerQuestion("tagbox",function(e){var t=new sI(e);return t.choices=n6.DefaultChoices,t});var sT=(es=function(e,t){return(es=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}es(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sE=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.doDragOver=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="grabbing")},t.doBanDropHere=function(){"imagepicker"!==t.parentElement.getType()&&(t.domAdapter.draggedElementShortcut.querySelector(".svc-item-value-controls__button").style.cursor="not-allowed")},t}return sT(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"item-value"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){if("imagepicker"===this.parentElement.getType())return this.createImagePickerShortcut(this.draggedElement,e,t,r);var n=eD.createElement("div");if(n){n.className="sv-drag-drop-choices-shortcut";var o=t.closest("[data-sv-drop-target-item-value]").cloneNode(!0);o.classList.add("sv-drag-drop-choices-shortcut__content"),o.querySelector(".svc-item-value-controls__drag-icon").style.visibility="visible",o.querySelector(".svc-item-value-controls__remove").style.backgroundColor="transparent",o.classList.remove("svc-item-value--moveup"),o.classList.remove("svc-item-value--movedown"),this.draggedElement.isDragDropMoveDown=!1,this.draggedElement.isDragDropMoveUp=!1,n.appendChild(o);var i=t.getBoundingClientRect();return n.shortcutXOffset=r.clientX-i.x,n.shortcutYOffset=r.clientY-i.y,this.isBottom=null,"function"==typeof this.onShortcutCreated&&this.onShortcutCreated(n),n}},t.prototype.createImagePickerShortcut=function(e,t,r,n){var o=eD.createElement("div");if(o){o.style.cssText=" \n      cursor: grabbing;\n      position: absolute;\n      z-index: 10000;\n      box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n      background-color: var(--sjs-general-backcolor, var(--background, #fff));\n      padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n      border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n    ";var i=r.closest("[data-sv-drop-target-item-value]");this.imagepickerControlsNode=i.querySelector(".svc-image-item-value-controls");var s=i.querySelector(".sd-imagepicker__image-container"),a=i.querySelector(e.imageLink?"img":".sd-imagepicker__no-image").cloneNode(!0);return this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="none"),s.style.width=a.width+"px",s.style.height=a.height+"px",a.style.objectFit="cover",a.style.borderRadius="4px",o.appendChild(a),o}},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.choices.filter(function(t){return""+t.value==e})[0]},t.prototype.getVisibleChoices=function(){var e=this.parentElement;return"ranking"!==e.getType()||e.selectToRankEnabled?e.visibleChoices:e.rankingChoices},t.prototype.isDropTargetValid=function(e,t){var r=this.getVisibleChoices();if("imagepicker"!==this.parentElement.getType()){var n=r.indexOf(this.dropTarget),o=r.indexOf(this.draggedElement);if(o>n&&this.dropTarget.isDragDropMoveUp)return this.dropTarget.isDragDropMoveUp=!1,!1;if(o<n&&this.dropTarget.isDragDropMoveDown)return this.dropTarget.isDragDropMoveDown=!1,!1}return -1!==r.indexOf(e)&&!0},t.prototype.isDropTargetDoesntChanged=function(e){return this.dropTarget===this.prevDropTarget&&e===this.isBottom},t.prototype.calculateIsBottom=function(e,t){var r=t.getBoundingClientRect();return e>=r.y+r.height/2},t.prototype.afterDragOver=function(t){var r=this.getVisibleChoices(),n=r.indexOf(this.dropTarget),o=r.indexOf(this.draggedElement);if(o<n&&!0===this.isBottom)r.splice(o,1),r.splice(n,0,this.draggedElement);else{if(!(o>n)||!1!==this.isBottom)return;r.splice(n,1),r.splice(o,0,this.dropTarget)}"imagepicker"!==this.parentElement.getType()&&(o!==n&&(t.classList.remove("svc-item-value--moveup"),t.classList.remove("svc-item-value--movedown"),this.dropTarget.isDragDropMoveDown=!1,this.dropTarget.isDragDropMoveUp=!1),o>n&&(this.dropTarget.isDragDropMoveDown=!0),o<n&&(this.dropTarget.isDragDropMoveUp=!0),e.prototype.ghostPositionChanged.call(this))},t.prototype.doDrop=function(){var e=this.parentElement.choices,t=this.getVisibleChoices().filter(function(t){return -1!==e.indexOf(t)}),r=e.indexOf(this.draggedElement),n=t.indexOf(this.draggedElement);return e.splice(r,1),e.splice(n,0,this.draggedElement),this.parentElement},t.prototype.clear=function(){this.parentElement&&this.updateVisibleChoices(this.parentElement),this.imagepickerControlsNode&&(this.imagepickerControlsNode.style.display="flex",this.imagepickerControlsNode=null),e.prototype.clear.call(this)},t.prototype.updateVisibleChoices=function(e){"ranking"===e.getType()?e.updateRankingChoices():e.updateVisibleChoices()},t}(oD);var sR=(ea=function(e,t){return(ea=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ea(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s_=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isDragOverRootNode=!1,t.doDragOver=function(){t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="grabbing"},t.reorderRankedItem=function(e,r,n){if(r!=n){var o=e.rankingChoices,i=o[r];e.isValueSetByUser=!0,o.splice(r,1),o.splice(n,0,i),t.updateDraggedElementShortcut(n+1)}},t.doBanDropHere=function(){if(t.isDragOverRootNode){t.allowDropHere=!0;return}t.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item").style.cursor="not-allowed"},t}return sR(t,e),Object.defineProperty(t.prototype,"draggedElementType",{get:function(){return"ranking-item"},enumerable:!1,configurable:!0}),t.prototype.createDraggedElementShortcut=function(e,t,r){var n=eD.createElement("div");if(n){n.className=this.shortcutClass+" sv-ranking-shortcut";var o=t.cloneNode(!0);n.appendChild(o);var i=t.getBoundingClientRect();n.style.left=i.x,n.style.top=i.y,this.domAdapter.rootElement.append(n);var s=n.offsetHeight,a=r.clientY;return a>i.y+s&&(a=i.y+s-10),n.shortcutXOffset=r.clientX-i.x,n.shortcutYOffset=a-i.y,this.parentElement&&this.parentElement.useFullItemSizeForShortcut&&(n.style.width=t.offsetWidth+"px",n.style.height=t.offsetHeight+"px"),n}},Object.defineProperty(t.prototype,"shortcutClass",{get:function(){return new t$().append(this.parentElement.cssClasses.root).append(this.parentElement.cssClasses.rootMobileMod,oS).toString()},enumerable:!1,configurable:!0}),t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]},t.prototype.findDropTargetNodeByDragOverNode=function(t){return this.isDragOverRootNode=this.getIsDragOverRootNode(t),e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getIsDragOverRootNode=function(e){return"string"==typeof e.className&&-1!==e.className.indexOf("sv-ranking")},t.prototype.isDropTargetValid=function(e,t){return -1!==this.parentElement.rankingChoices.indexOf(e)&&!0},t.prototype.calculateIsBottom=function(t,r){return this.dropTarget instanceof nL&&this.draggedElement!==this.dropTarget&&e.prototype.calculateIsBottom.call(this,t,r)},t.prototype.getIndices=function(e,t,r){var n=t.indexOf(this.draggedElement),o=r.indexOf(this.dropTarget);return n<0&&this.draggedElement&&(this.draggedElement=nL.getItemByValue(t,this.draggedElement.value)||this.draggedElement,n=t.indexOf(this.draggedElement)),-1===o?o=e.value.length:t==r?(!this.isBottom&&n<o&&o--,this.isBottom&&n>o&&o++):t!=r&&this.isBottom&&o++,{fromIndex:n,toIndex:o}},t.prototype.afterDragOver=function(e){var t=this.getIndices(this.parentElement,this.parentElement.rankingChoices,this.parentElement.rankingChoices),r=t.fromIndex,n=t.toIndex;this.reorderRankedItem(this.parentElement,r,n)},t.prototype.updateDraggedElementShortcut=function(e){var t;(null===(t=this.domAdapter)||void 0===t?void 0:t.draggedElementShortcut)&&(this.domAdapter.draggedElementShortcut.querySelector(".sv-ranking-item__index").innerText=null!==e?e+"":"")},t.prototype.ghostPositionChanged=function(){this.parentElement.currentDropTarget=this.draggedElement,e.prototype.ghostPositionChanged.call(this)},t.prototype.doDrop=function(){return this.parentElement.setValue(),this.parentElement},t.prototype.clear=function(){this.parentElement&&(this.parentElement.dropTargetNodeMove=null,this.parentElement.updateRankingChoices(!0)),e.prototype.clear.call(this)},t}(sE);var sD=(el=function(e,t){return(el=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}el(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sk=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.selectToRank=function(e,r,n){var o=[].concat(e.rankingChoices),i=e.unRankingChoices[r];o.splice(n,0,i),t.updateChoices(e,o)},t.unselectFromRank=function(e,r,n){var o=[].concat(e.rankingChoices);o.splice(r,1),t.updateChoices(e,o)},t}return sD(t,e),t.prototype.findDropTargetNodeByDragOverNode=function(t){if("from-container"===t.dataset.ranking||"to-container"===t.dataset.ranking)return t;var r=t.closest("[data-ranking='to-container']"),n=t.closest("[data-ranking='from-container']");return 0===this.parentElement.unRankingChoices.length&&n?n:0===this.parentElement.rankingChoices.length&&r?r:e.prototype.findDropTargetNodeByDragOverNode.call(this,t)},t.prototype.getDropTargetByDataAttributeValue=function(e){return this.parentElement.rankingChoices[e]||this.parentElement.unRankingChoices[e]},t.prototype.getDropTargetByNode=function(t,r){return"to-container"===t.dataset.ranking?"to-container":"from-container"===t.dataset.ranking||t.closest("[data-ranking='from-container']")?"from-container":e.prototype.getDropTargetByNode.call(this,t,r)},t.prototype.isDropTargetValid=function(t,r){return"to-container"===t||"from-container"===t||e.prototype.isDropTargetValid.call(this,t,r)},t.prototype.afterDragOver=function(e){var t=this.parentElement,r=t.rankingChoices,n=t.unRankingChoices;if(this.isDraggedElementUnranked&&this.isDropTargetRanked){this.doRankBetween(e,n,r,this.selectToRank);return}if(this.isDraggedElementRanked&&this.isDropTargetRanked){this.doRankBetween(e,r,r,this.reorderRankedItem);return}if(this.isDraggedElementRanked&&!this.isDropTargetRanked){this.doRankBetween(e,r,n,this.unselectFromRank);return}},t.prototype.doRankBetween=function(e,t,r,n){var o=this.parentElement,i=this.getIndices(o,t,r);n(o,i.fromIndex,i.toIndex,e)},Object.defineProperty(t.prototype,"isDraggedElementRanked",{get:function(){return -1!==this.parentElement.rankingChoices.indexOf(this.draggedElement)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDropTargetRanked",{get:function(){return"to-container"===this.dropTarget||-1!==this.parentElement.rankingChoices.indexOf(this.dropTarget)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDraggedElementUnranked",{get:function(){return!this.isDraggedElementRanked},enumerable:!1,configurable:!0}),t.prototype.updateChoices=function(e,t){e.isValueSetByUser=!0,e.rankingChoices=t,e.updateUnRankingChoices(t)},t}(s_);var sA=(eu=function(e,t){return(eu=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eu(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sL=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},sN=function(e){function t(t){var r=e.call(this,t)||this;return r.domNode=null,r.onVisibleChoicesChanged=function(){if(e.prototype.onVisibleChoicesChanged.call(r),r.carryForwardStartUnranked&&!r.isValueSetByUser&&!r.selectToRankEnabled&&!r.defaultValue&&(r.value=[]),1===r.visibleChoices.length&&!r.selectToRankEnabled){r.value=[],r.value.push(r.visibleChoices[0].value),r.updateRankingChoices();return}if(r.isEmpty()||r.selectToRankEnabled){r.updateRankingChoices();return}r.visibleChoices.length>r.value.length&&r.addToValueByVisibleChoices(),r.visibleChoices.length<r.value.length&&r.removeFromValueByVisibleChoices(),r.updateRankingChoices()},r.localeChanged=function(){e.prototype.localeChanged.call(r),r.updateRankingChoicesSync()},r._rankingChoicesAnimation=new ry(r.getChoicesAnimationOptions(!0),function(e){r._renderedRankingChoices=e},function(){return r.renderedRankingChoices}),r._unRankingChoicesAnimation=new ry(r.getChoicesAnimationOptions(!1),function(e){r._renderedUnRankingChoices=e},function(){return r.renderedUnRankingChoices}),r.rankingChoices=[],r.unRankingChoices=[],r._renderedRankingChoices=[],r._renderedUnRankingChoices=[],r.handlePointerDown=function(e,t,n){var o=e.target;r.isDragStartNodeValid(o)&&r.isAllowStartDrag(o,t)&&(r.draggedChoiceValue=t.value,r.draggedTargetNode=n,r.dragOrClickHelper.onPointerDown(e))},r.startDrag=function(e){var t=nL.getItemByValue(r.activeChoices,r.draggedChoiceValue);r.dragDropRankingChoices.startDrag(e,t,r,r.draggedTargetNode)},r.handlePointerUp=function(e,t,n){if(r.selectToRankEnabled){var o=e.target;r.isAllowStartDrag(o,t)&&r.handleKeydownSelectToRank(e,t," ",!1)}},r.handleKeydown=function(e,t){if(!r.isReadOnlyAttr&&!r.isDesignMode){var n=e.key,o=r.rankingChoices.indexOf(t);if(r.selectToRankEnabled){r.handleKeydownSelectToRank(e,t);return}if("ArrowUp"===n&&o||"ArrowDown"===n&&o!==r.rankingChoices.length-1){var i="ArrowUp"==n?o-1:o+1;r.dragDropRankingChoices.reorderRankedItem(r,o,i),r.setValueAfterKeydown(i,"",!0,e)}}},r.focusItem=function(e,t){if(r.domNode){if(r.selectToRankEnabled&&t){var n=r.domNode.querySelectorAll("[data-ranking='"+t+"'] ."+r.cssClasses.item);n[e].focus()}else{var n=r.domNode.querySelectorAll("."+r.cssClasses.item);n[e].focus()}}},r.isValueSetByUser=!1,r.setValue=function(){var e=[];r.rankingChoices.forEach(function(t){e.push(t.value)}),r.value=e,r.isValueSetByUser=!0},r.registerFunctionOnPropertyValueChanged("selectToRankEnabled",function(){r.clearValue(!0),r.setDragDropRankingChoices(),r.updateRankingChoicesSync()}),r.dragOrClickHelper=new oL(r.startDrag),r}return sA(t,e),t.prototype.getType=function(){return"ranking"},t.prototype.getItemTabIndex=function(e){if(!this.isDesignMode&&!e.disabled)return 0},t.prototype.supportContainerQueries=function(){return this.selectToRankEnabled},Object.defineProperty(t.prototype,"rootClass",{get:function(){return new t$().append(this.cssClasse
vendor: 4,801 bytes, line 1
1s.root).append(this.cssClasses.rootMobileMod,this.isMobileMode()).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDesignMode,!!this.isDesignMode).append(this.cssClasses.itemOnError,this.hasCssError()).append(this.cssClasses.rootDragHandleAreaIcon,"icon"===r9.rankingDragHandleArea).append(this.cssClasses.rootSelectToRankMod,this.selectToRankEnabled).append(this.cssClasses.rootSelectToRankEmptyValueMod,this.isEmpty()).append(this.cssClasses.rootSelectToRankAlignHorizontal,this.selectToRankEnabled&&"horizontal"===this.renderedSelectToRankAreasLayout).append(this.cssClasses.rootSelectToRankAlignVertical,this.selectToRankEnabled&&"vertical"===this.renderedSelectToRankAreasLayout).append(this.cssClasses.rootSelectToRankSwapAreas,this.selectToRankEnabled&&"horizontal"===this.renderedSelectToRankAreasLayout&&this.selectToRankSwapAreas).toString()},enumerable:!1,configurable:!0}),t.prototype.isItemSelectedCore=function(t){return!this.selectToRankEnabled||e.prototype.isItemSelectedCore.call(this,t)},t.prototype.getItemClassCore=function(t,r){return new t$().append(e.prototype.getItemClassCore.call(this,t,r)).append(this.cssClasses.itemGhostMod,this.currentDropTarget===t).toString()},t.prototype.getContainerClasses=function(e){var t=!1,r="to"===e,n="from"===e;return r?t=0===this.renderedRankingChoices.length:n&&(t=0===this.renderedUnRankingChoices.length),new t$().append(this.cssClasses.container).append(this.cssClasses.containerToMode,r).append(this.cssClasses.containerFromMode,n).append(this.cssClasses.containerEmptyMode,t).toString()},t.prototype.isItemCurrentDropTarget=function(e){return this.dragDropRankingChoices.dropTarget===e},Object.defineProperty(t.prototype,"ghostPositionCssClass",{get:function(){return"top"===this.ghostPosition?this.cssClasses.dragDropGhostPositionTop:"bottom"===this.ghostPosition?this.cssClasses.dragDropGhostPositionBottom:""},enumerable:!1,configurable:!0}),t.prototype.getItemIndexClasses=function(e){var t;return t=this.selectToRankEnabled?-1!==this.unRankingChoices.indexOf(e):this.isEmpty(),new t$().append(this.cssClasses.itemIndex).append(this.cssClasses.itemIndexEmptyMode,t).toString()},t.prototype.getNumberByIndex=function(e){return this.isEmpty()?"":e+1+""},t.prototype.updateRankingChoicesSync=function(){this.blockAnimations(),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.setDragDropRankingChoices(),this.updateRankingChoicesSync()},t.prototype.isAnswerCorrect=function(){return eA.isArraysEqual(this.value,this.correctAnswer,!1)},Object.defineProperty(t.prototype,"requireStrictCompare",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.onSurveyValueChanged=function(t){e.prototype.onSurveyValueChanged.call(this,t),!this.isLoadingFromJson&&this.updateRankingChoices()},t.prototype.onSurveyLoad=function(){this.blockAnimations(),e.prototype.onSurveyLoad.call(this),this.updateRankingChoices(),this.releaseAnimations()},t.prototype.updateValueFromSurvey=function(t,r){e.prototype.updateValueFromSurvey.call(this,t,r),t&&(this.isValueSetByUser=!0)},t.prototype.addToValueByVisibleChoices=function(){var e=this.value.slice();this.visibleChoices.forEach(function(t){-1===e.indexOf(t.value)&&e.push(t.value)}),this.value=e},t.prototype.removeFromValueByVisibleChoices=function(){for(var e=this.value.slice(),t=this.visibleChoices,r=this.value.length-1;r>=0;r--)!nL.getItemByValue(t,this.value[r])&&e.splice(r,1);this.value=e},t.prototype.getChoicesAnimationOptions=function(e){var t=this;return{getKey:function(e){return e.value},getRerenderEvent:function(){return t.onElementRerendered},isAnimationEnabled:function(){return t.animationAllowed&&!t.isDesignMode&&t.isVisible&&!!t.domNode},getReorderOptions:function(e,r){var n="";return e!==t.currentDropTarget&&(n=r?"sv-dragdrop-movedown":"sv-dragdrop-moveup"),{cssClass:n}},getLeaveOptions:function(r){var n=e?t.renderedRankingChoices:t.renderedUnRankingChoices;return"vertical"==t.renderedSelectToRankAreasLayout&&1==n.length&&n.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-removing-empty"}:{cssClass:"sv-ranking-item--animate-item-removing",onBeforeRunAnimation:function(e){e.style.setProperty("--animation-height",e.offsetHeight+"px")}}},getEnterOptions:function(r){var n=e?t.renderedRankingChoices:t.renderedUnRankingChoices;return"vertical"==t.renderedSelectToRankAreasLayout&&1==n.length&&n.indexOf(r)>=0?{cssClass:"sv-ranking-item--animate-item-adding-empty"}:{cssClass:"sv-ranking-item--animate-item-adding",onBeforeRunAnimation:function(e){e.style.setProperty("--animation-height",e.offsetHeight+"px")}}}
1,getAnimatedElement:function(r){var n,o=t.cssClasses,i="";t.selectToRankEnabled&&(!e&&o.containerFromMode?i=r$(o.containerFromMode):e&&o.containerToMode&&(i=r$(o.containerToMode)));var s=e?t.renderedRankingChoices.indexOf(r):t.renderedUnRankingChoices.indexOf(r);return null===(n=t.domNode)||void 0===n?void 0:n.querySelector(i+" [data-sv-drop-target-ranking-item='"+s+"']")},allowSyncRemovalAddition:!0}},Object.defineProperty(t.prototype,"rankingChoicesAnimation",{get:function(){return this._rankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unRankingChoicesAnimation",{get:function(){return this._unRankingChoicesAnimation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedRankingChoices",{get:function(){return this._renderedRankingChoices},set:function(e){this.rankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedUnRankingChoices",{get:function(){return this._renderedUnRankingChoices},set:function(e){this.unRankingChoicesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.updateRenderedRankingChoices=function(){this.renderedRankingChoices=this.rankingChoices},t.prototype.updateRenderedUnRankingChoices=function(){this.renderedUnRankingChoices=this.unRankingChoices},t.prototype.updateRankingChoices=function(e){var t=this;if(void 0===e&&(e=!1),this.selectToRankEnabled){this.updateRankingChoicesSelectToRankMode(e);return}var r=[];if(e&&(this.rankingChoices=[]),this.isEmpty()){this.rankingChoices=this.visibleChoices;return}this.value.forEach(function(e){t.visibleChoices.forEach(function(t){t.value===e&&r.push(t)})}),this.rankingChoices=r},t.prototype.updateUnRankingChoices=function(e){var t=[];this.visibleChoices.forEach(function(e){t.push(e)}),e.forEach(function(e){t.forEach(function(r,n){r.value===e.value&&t.splice(n,1)})}),this.unRankingChoices=t},t.prototype.updateRankingChoicesSelectToRankMode=function(e){var t=this,r=[];!this.isEmpty()&&this.value.forEach(function(e){t.visibleChoices.forEach(function(t){t.value===e&&r.push(t)})}),this.updateUnRankingChoices(r),this.rankingChoices=r},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.setDragDropRankingChoices()},t.prototype.setDragDropRankingChoices=function(){this.dragDropRankingChoices=this.createDragDropRankingChoices()},t.prototype.createDragDropRankingChoices=function(){return this.selectToRankEnabled?new sk(this.survey,null,this.longTap):new s_(this.survey,null,this.longTap)},t.prototype.isDragStartNodeValid=function(e){return"icon"!==r9.rankingDragHandleArea||e.classList.contains(this.cssClasses.itemIconHoverMod)},t.prototype.isAllowStartDrag=function(e,t){return!this.isReadOnly&&!this.isDesignMode&&this.canStartDragDueMaxSelectedChoices(e)&&this.canStartDragDueItemEnabled(t)},t.prototype.canStartDragDueMaxSelectedChoices=function(e){return!this.selectToRankEnabled||!e.closest("[data-ranking='from-container']")||this.checkMaxSelectedChoicesUnreached()},t.prototype.canStartDragDueItemEnabled=function(e){return e.enabled},t.prototype.checkMaxSelectedChoicesUnreached=function(){if(this.maxSelectedChoices<1)return!0;var e=this.value;return(Array.isArray(e)?e.length:0)<this.maxSelectedChoices},t.prototype.afterRenderQuestionElement=function(t){this.domNode=t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){this.domNode=void 0,e.prototype.beforeDestroyQuestionElement.call(this,t)},t.prototype.supportSelectAll=function(){return!1},t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.handleKeydownSelectToRank=function(e,t,r,n){if(void 0===n&&(n=!0),this.isDesignMode)return;var o,i=e.key;if(r&&(i=r)," "!==i&&"ArrowUp"!==i&&"ArrowDown"!==i)return;var s=this.dragDropRankingChoices,a=this.rankingChoices,l=-1!==a.indexOf(t),u=(l?a:this.unRankingChoices).indexOf(t);if(u<0)return;if(" "===i&&!l){if(!this.checkMaxSelectedChoicesUnreached()||!this.canStartDragDueItemEnabled(t))return;o=this.value.length,s.selectToRank(this,u,o),this.setValueAfterKeydown(o,"to-container",n,e);return}if(!l)return;if(" "===i){s.unselectFromRank(this,u),o=this.unRankingChoices.indexOf(t),this.setValueAfterKeydown(o,"from-container",n,e);return}var c="ArrowUp"===i?-1:"ArrowDown"===i?1:0;if(0!==c)!((o=u+c)<0)&&!(o>=a.length)&&(s.reorderRankedItem(this,u,o),this.setValueAfterKeydown(o,"to-container",n,e))},t.prototype.setValueAfterKeydown=function(e,t,r,n){var o=this;void 0===r&&(r=!0),this.setValue(),r&&setTimeout(function(){o.focusItem(e,t)},1),n&&n.preventDefault()},t.prototype.getIconHoverCss=function(){return new t$().append(this.cssClasse
vendor: 4,465 bytes, line 1
1s.itemIcon).append(this.cssClasses.itemIconHoverMod).toString()},t.prototype.getIconFocusCss=function(){return new t$().append(this.cssClasses.itemIcon).append(this.cssClasses.itemIconFocusMod).toString()},Object.defineProperty(t.prototype,"longTap",{get:function(){return this.getPropertyValue("longTap")},set:function(e){this.setPropertyValue("longTap",e)},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"sv-ranking-item"},Object.defineProperty(t.prototype,"selectToRankEnabled",{get:function(){return this.getPropertyValue("selectToRankEnabled",!1)},set:function(e){this.setPropertyValue("selectToRankEnabled",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankSwapAreas",{get:function(){return this.getPropertyValue("selectToRankSwapAreas",!1)},set:function(e){this.setPropertyValue("selectToRankSwapAreas",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectToRankAreasLayout",{get:function(){return this.getPropertyValue("selectToRankAreasLayout")},set:function(e){this.setPropertyValue("selectToRankAreasLayout",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedSelectToRankAreasLayout",{get:function(){return this.isMobileMode()?"vertical":this.selectToRankAreasLayout},enumerable:!1,configurable:!0}),t.prototype.isMobileMode=function(){return oS},Object.defineProperty(t.prototype,"useFullItemSizeForShortcut",{get:function(){return this.getPropertyValue("useFullItemSizeForShortcut")},set:function(e){this.setPropertyValue("useFullItemSizeForShortcut",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dragDropSvgIcon",{get:function(){return this.cssClasses.dragDropSvgIconId||"#icon-drag-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"arrowsSvgIcon",{get:function(){return this.cssClasses.arrowsSvgIconId||"#icon-reorder-24x24"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"dashSvgIcon",{get:function(){return this.cssClasses.dashSvgIconId||"#icon-rankingundefined-16x16"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!1},enumerable:!1,configurable:!0}),sL([eJ({onSet:function(e,t){return t.updateRenderedRankingChoices()},onRemove:function(e,t,r){return r.updateRenderedRankingChoices()},onPush:function(e,t,r){return r.updateRenderedRankingChoices()}})],t.prototype,"rankingChoices",void 0),sL([eJ({onSet:function(e,t){return t.updateRenderedUnRankingChoices()},onRemove:function(e,t,r){return r.updateRenderedUnRankingChoices()},onPush:function(e,t,r){return r.updateRenderedUnRankingChoices()}})],t.prototype,"unRankingChoices",void 0),sL([eJ()],t.prototype,"_renderedRankingChoices",void 0),sL([eJ()],t.prototype,"_renderedUnRankingChoices",void 0),sL([eW({defaultValue:null})],t.prototype,"currentDropTarget",void 0),sL([eW({defaultValue:!0})],t.prototype,"carryForwardStartUnranked",void 0),sL([eW({localizable:{defaultStr:"selectToRankEmptyRankedAreaText"}})],t.prototype,"selectToRankEmptyRankedAreaText",void 0),sL([eW({localizable:{defaultStr:"selectToRankEmptyUnrankedAreaText"}})],t.prototype,"selectToRankEmptyUnrankedAreaText",void 0),t}(sv);e6.addClass("ranking",[{name:"showOtherItem",visible:!1,isSerializable:!1},{name:"otherText",visible:!1,isSerializable:!1},{name:"otherErrorText",visible:!1,isSerializable:!1},{name:"storeOthersAsComment",visible:!1,isSerializable:!1},{name:"showNoneItem",visible:!1,isSerializable:!1},{name:"showRefuseItem",visible:!1,isSerializable:!1},{name:"showDontKnowItem",visible:!1,isSerializable:!1},{name:"noneText",visible:!1,isSerializable:!1},{name:"showSelectAllItem",visible:!1,isSerializable:!1},{name:"selectAllText",visible:!1,isSerializable:!1},{name:"colCount:number",visible:!1,isSerializable:!1},{name:"separateSpecialChoices",visible:!1,isSerializable:!1},{name:"longTap",default:!0,visible:!1,isSerializable:!1},{name:"selectToRankEnabled:switch",default:!1,visible:!0,isSerializable:!0},{name:"selectToRankSwapAreas:switch",default:!1,visible:!1,isSerializable:!0,dependsOn:"selectToRankEnabled"},{name:"selectToRankAreasLayout",default:"horizontal",choices:["horizontal","vertical"],dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},visible:!0,isSerializable:!0},{name:"selectToRankEmptyRankedAreaText:text",serializationProperty:"locSelectToRankEmptyRankedAreaText",category:"general",depen
1dsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled}},{name:"selectToRankEmptyUnrankedAreaText:text",serializationProperty:"locSelectToRankEmptyUnrankedAreaText",category:"general",dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled}},{name:"maxSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"minSelectedChoices:number",visible:!0,default:0,dependsOn:"selectToRankEnabled",visibleIf:function(e){return!!e.selectToRankEnabled},isSerializable:!0},{name:"itemComponent",visible:!1,default:"sv-ranking-item"}],function(){return new sN("")},"checkbox"),n6.Instance.registerQuestion("ranking",function(e){var t=new sN(e);return t.choices=n6.DefaultChoices,t});var sM=(ec=function(e,t){return(ec=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ec(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sF=function(e){function t(t){return e.call(this,t)||this}return sM(t,e),Object.defineProperty(t.prototype,"textAreaModel",{get:function(){return!this.textAreaModelValue&&(this.textAreaModelValue=new nI(this.getTextAreaOptions())),this.textAreaModelValue},enumerable:!1,configurable:!0}),t.prototype.getTextAreaOptions=function(){var e=this,t=this,r=function(e){!eA.isTwoValueEquals(t.value,e,!1,!0,!1)&&(t.value=e)};return{question:this,id:function(){return e.inputId},propertyName:"value",className:function(){return e.className},placeholder:function(){return e.renderedPlaceholder},isDisabledAttr:function(){return e.isDisabledAttr},isReadOnlyAttr:function(){return e.isReadOnlyAttr},autoGrow:function(){return e.renderedAutoGrow},maxLength:function(){return e.getMaxLength()},rows:function(){return e.rows},cols:function(){return e.cols},ariaRequired:function(){return e.a11y_input_ariaRequired},ariaLabel:function(){return e.a11y_input_ariaLabel},ariaLabelledBy:function(){return e.a11y_input_ariaLabelledBy},ariaDescribedBy:function(){return e.a11y_input_ariaDescribedBy},ariaInvalid:function(){return e.a11y_input_ariaInvalid},ariaErrormessage:function(){return e.a11y_input_ariaErrormessage},getTextValue:function(){return e.value},onTextAreaChange:function(e){r(e.target.value)},onTextAreaInput:function(t){e.onInput(t)},onTextAreaKeyDown:function(t){e.onKeyDown(t)},onTextAreaFocus:function(t){e.onFocus(t)},onTextAreaBlur:function(t){e.onBlur(t)}}},Object.defineProperty(t.prototype,"rows",{get:function(){return this.getPropertyValue("rows")},set:function(e){this.setPropertyValue("rows",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cols",{get:function(){return this.getPropertyValue("cols")},set:function(e){this.setPropertyValue("cols",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptCarriageReturn",{get:function(){return this.getPropertyValue("acceptCarriageReturn")},set:function(e){this.setPropertyValue("acceptCarriageReturn",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoGrow",{get:function(){return this.getPropertyValue("autoGrow")},set:function(e){this.setPropertyValue("autoGrow",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAutoGrow",{get:function(){var e=this.autoGrow;return void 0===e&&this.survey?this.survey.autoGrowComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowResize",{get:function(){return this.getPropertyValue("allowResize")},set:function(e){this.setPropertyValue("allowResize",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedAllowResize",{get:function(){var e=this.allowResize;return void 0===e&&this.survey?this.survey.allowResizeComment:!!e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"resizeStyle",{get:function(){return this.renderedAllowResize?"both":"none"}
1,enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"comment"},t.prototype.afterRenderQuestionElement=function(t){var r=r9.environment.root;this.element=r.getElementById(this.inputId)||t,e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.element=void 0},t.prototype.onInput=function(e){this.isInputTextUpdate&&(this.value=e.target.value),this.updateRemainingCharacterCounter(e.target.value)},t.prototype.onBlurCore=function(t){e.prototype.onBlurCore.call(this,t)},t.prototype.onKeyDown=function(e){this.onKeyDownPreprocess&&this.onKeyDownPreprocess(e),!this.acceptCarriageReturn&&("Enter"===e.key||13===e.keyCode)&&(e.preventDefault(),e.stopPropagation())},t.prototype.setNewValue=function(t){!this.acceptCarriageReturn&&t&&(t=t.replace(RegExp("(\r\n|\n|\r)","gm"),"")),e.prototype.setNewValue.call(this,t)},t.prototype.getValueSeparator=function(){return"\n"},t.prototype.notifyStateChanged=function(t){e.prototype.notifyStateChanged.call(this,t),!this.isCollapsed&&this.textAreaModel.updateElement()},Object.defineProperty(t.prototype,"className",{get:function(){return(this.cssClasses?this.getControlClass():"panel-comment-root")||void 0},enumerable:!1,configurable:!0}),t}(i0);e6.addClass("comment",[{name:"maxLength:number",default:-1},{name:"cols:number",default:50,visible:!1,isSerializable:!1},{name:"rows:number",default:4},{name:"placeholder",alternativeName:"placeHolder",serializationProperty:"locPlaceholder"},{name:"textUpdateMode",default:"default",choices:["default","onBlur","onTyping"]},{name:"autoGrow:boolean",defaultFunc:function(){}},{name:"allowResize:boolean",defaultFunc:function(){}},{name:"acceptCarriageReturn:boolean",default:!0,visible:!1}],function(){return new sF("")},"textbase"),n6.Instance.registerQuestion("comment",function(e){return new sF(e)});var sq="environment",sB="user",sQ=function(){function e(){this.canFlipValue=void 0}return e.clear=function(){e.cameraList=void 0,e.cameraIndex=-1},e.setCameraList=function(t){var r=function(e){var t=e.label.toLocaleLowerCase();return t.indexOf(sB)>-1?sB:t.indexOf(sq)>-1?sq:t.indexOf("front")>-1?sB:t.indexOf("back")>-1?sq:""};e.clear(),Array.isArray(t)&&t.length>0&&(e.cameraIndex=-1,t.sort(function(e,n){if(e===n)return 0;if(e.label!==n.label){var o=r(e),i=r(n);if(o!==i){if(o===sB)return -1;if(i===sB)return 1;if(o===sq)return -1;if(i===sq)return 1}}return t.indexOf(e)<t.indexOf(n)?-1:1})),e.cameraList=t},e.prototype.hasCamera=function(t){var r=this;if(void 0!==e.cameraList){this.hasCameraCallback(t);return}if(e.mediaDevicesCallback){e.mediaDevicesCallback(function(e){r.setVideoInputs(e),r.hasCameraCallback(t)});return}"undefined"!=typeof navigator&&navigator.mediaDevices?navigator.mediaDevices.enumerateDevices().then(function(e){r.setVideoInputs(e),r.hasCameraCallback(t),r.updateCanFlipValue()}).catch(function(n){e.cameraList=null,r.hasCameraCallback(t)}):(e.cameraList=null,this.hasCameraCallback(t))},e.prototype.getMediaConstraints=function(t){var r=e.cameraList;if(Array.isArray(r)&&!(r.length<1)){e.cameraIndex<0&&(e.cameraIndex=0);var n=r[e.cameraIndex],o={};return n&&n.deviceId?o.deviceId={exact:n.deviceId}:o.facingMode=e.cameraFacingMode,t&&((null==t?void 0:t.height)&&(o.height={ideal:t.height}),(null==t?void 0:t.width)&&(o.width={ideal:t.width})),{video:o,audio:!1}}},e.prototype.startVideo=function(t,r,n,o){var i=this;if(!t){r(void 0);return}t.style.width="100%",t.style.height="auto",t.style.height="100%",t.style.objectFit="contain";var s=this.getMediaConstraints({width:n,height:o});navigator.mediaDevices.getUserMedia(s).then(function(n){var o;t.srcObject=n,!(null===(o=e.cameraList[e.cameraIndex])||void 0===o?void 0:o.deviceId)&&n.getTracks()[0].getCapabilities().facingMode&&(e.canSwitchFacingMode=!0,i.updateCanFlipValue()),t.play(),r(n)}).catch(function(e){r(void 0)})},e.prototype.getImageSize=function(e){return{width:e.videoWidth,height:e.videoHeight}},e.prototype.snap=function(e,t){if(!e||!eD.isAvailable())return!1;var r=eD.getDocument().createElement("canvas"),n=this.getImageSize(e);r.height=n.height,r.width=n.width;var o=r.getContext("2d");return o.clearRect(0,0,r.width,r.height),o.drawImage(e,0,0,r.width,r.height),r.toBlob(t,"image/png"),!0},e.prototype.updateCanFlipValue=function(){var t=e.cameraList;this.canFlipValue=Array.isArray(t)&&t.length>1||e.canSwitchFacingMode,this.onCanFlipChangedCallback&&this.onCanFlipChangedCallback(this.canFlipValue)},e.prototype.canFlip=function(e){return void 0===this.canFlipValue&&this.updateCanFlipValue(),e&&(this.onCanFlipChangedCallback=e),this.canFlipValue},e.prototype.flip=function(){this.canFlip()&&(e.canSwitchFacingMode?e.cameraFacingMode=e.cameraFacingMode===sB?"environment":sB:e.cameraIndex>=e.cameraList.length-1?e.cameraIndex=0:e.cameraIndex++)},e.prototype.hasCameraCallback=function(t){t(Array.isArray(e.cameraList))},e.prototype.setVideoInputs=function(t){var r=[];t.forEach(function(e){"videoinput"===e.kind&&r.push(e)}),e.setCameraList(r.length>0?r:null)},e.cameraIndex=-1,e.cameraFacingMode=sB,e.canSwitchFacingMode=!1,e}();
vendor: 4,497 bytes, line 1
1var sH=(ep=function(e,t){return(ep=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ep(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sz=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},sW=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isUploading=!1,t.onUploadStateChanged=t.addEvent(),t.onStateChanged=t.addEvent(),t}return sH(t,e),t.prototype.stateChanged=function(e){if(this.currentState!=e)"loading"===e&&(this.isUploading=!0),"loaded"===e&&(this.isUploading=!1),"error"===e&&(this.isUploading=!1),this.currentState=e,this.onStateChanged.fire(this,{state:e}),this.onUploadStateChanged.fire(this,{state:e})},Object.defineProperty(t.prototype,"showLoadingIndicator",{get:function(){return this.isUploading&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"storeDataAsText",{get:function(){return this.getPropertyValue("storeDataAsText")},set:function(e){this.setPropertyValue("storeDataAsText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"waitForUpload",{get:function(){return this.getPropertyValue("waitForUpload")},set:function(e){this.setPropertyValue("waitForUpload",e)},enumerable:!1,configurable:!0}),t.prototype.clearValue=function(t){this.clearOnDeletingContainer(),e.prototype.clearValue.call(this,t)},t.prototype.clearOnDeletingContainer=function(){this.survey&&this.survey.clearFiles(this,this.name,this.value,null,function(){})},t.prototype.onCheckForErrors=function(t,r,n){e.prototype.onCheckForErrors.call(this,t,r,n),this.isUploading&&this.waitForUpload&&t.push(new nu(this.getLocalizationString("uploadingFile"),this))},t.prototype.uploadFiles=function(e){var t=this;this.survey&&(this.stateChanged("loading"),this.survey.uploadFiles(this,this.name,e,function(e,r){Array.isArray(e)&&(t.setValueFromResult(e),Array.isArray(r)&&(r.forEach(function(e){return t.errors.push(new nu(e,t))}),t.stateChanged("error"))),"success"===e&&Array.isArray(r)&&t.setValueFromResult(r),"error"===e&&("string"==typeof r&&t.errors.push(new nu(r,t)),Array.isArray(r)&&r.length>0&&r.forEach(function(e){return t.errors.push(new nu(e,t))}),t.stateChanged("error")),t.stateChanged("loaded")}))},t.prototype.loadPreview=function(e){},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),this.stateChanged(this.isEmpty()?"empty":"loaded")},t.prototype.getIsQuestionReady=function(){return e.prototype.getIsQuestionReady.call(this)&&!this.isFileLoading},Object.defineProperty(t.prototype,"isFileLoading",{get:function(){return this.isFileLoadingValue},set:function(e){this.isFileLoadingValue=e,this.updateIsReady()},enumerable:!1,configurable:!0}),sz([eW()],t.prototype,"isUploading",void 0),sz([eW({defaultValue:"empty"})],t.prototype,"currentState",void 0),t}(n_),sU=function(e){function t(r,n){var o=e.call(this)||this;return o.question=r,o.index=n,o.id=t.getId(),o}return sH(t,e),t.getId=function(){return"sv_sfp_"+t.pageCounter++},Object.defineProperty(t.prototype,"css",{get:function(){return this.question.cssClasses.page},enumerable:!1,configurable:!0}),t.pageCounter=0,sz([eJ({})],t.prototype,"items",void 0),t}(tQ),sJ=function(e){function t(t){var r=e.call(this,t)||this;return r.isDragging=!1,r.fileNavigator=new tZ,r.canFlipCameraValue=void 0,r.prevPreviewLength=0,r._renderedPages=[],r.pagesAnimation=new rb(r.getPagesAnimationOptions(),function(e){r._renderedPages=e},function(){return r.renderedPages}),r.calcAvailableItemsCount=function(e,t,r){var n=Math.floor(e/(t+r));return(n+1)*(t+r)-r<=e&&n++,n},r.dragCounter=0,r.onDragEnter=function(e){r.canDragDrop()&&(e.preventDefault(),r.isDragging=!0,r.dragCounter++)},r.onDragOver=function(e){if(!r.canDragDrop())return e.returnValue=!1,!1;e.dataTransfer.dropEffect="copy",e.preventDefault()},r.onDrop=function(e){if(r.canDragDrop()){r.isDragging=!1,r.dragCounter=0,e.preventDefault();var t=e.dataTransfer;
1r.onChange(t)}},r.onDragLeave=function(e){r.canDragDrop()&&(r.dragCounter--,0===r.dragCounter&&(r.isDragging=!1))},r.doChange=function(e){var t=e.target||e.srcElement;r.onChange(t)},r.doClean=function(){if(r.needConfirmRemoveFile){rO({message:r.confirmRemoveAllMessage,funcOnYes:function(){r.clearFilesCore()},locale:r.getLocale(),rootElement:r.survey.rootElement,cssClass:r.cssClasses.confirmDialog});return}r.clearFilesCore()},r.doDownloadFileFromContainer=function(e){e.stopPropagation();var t=e.currentTarget;if(t&&t.getElementsByTagName){var r=t.getElementsByTagName("a")[0];null==r||r.click()}},r.doDownloadFile=function(e,t){e.stopPropagation(),rI()&&(e.preventDefault(),rT(t.content,t.name))},r.createLocalizableString("takePhotoCaption",r,!1,!0),r.createLocalizableString("clearCaption",r,!1,!0),r.actionsContainer=new tZ,r.actionsContainer.locOwner=r,r.fileIndexAction=new ra({id:"fileIndex",title:r.getFileIndexCaption(),enabled:!1}),r.prevFileAction=new ra({id:"prevPage",iconSize:16,action:function(){r.navigationDirection="left",r.indexToShow=r.previewValue.length&&(r.indexToShow-1+r.pagesCount)%r.pagesCount||0,r.fileIndexAction.title=r.getFileIndexCaption()}}),r.nextFileAction=new ra({id:"nextPage",iconSize:16,action:function(){r.navigationDirection="right",r.indexToShow=r.previewValue.length&&(r.indexToShow+1)%r.pagesCount||0,r.fileIndexAction.title=r.getFileIndexCaption()}}),r.takePictureAction=new ra({iconName:"icon-takepicture",id:"sv-file-take-picture",iconSize:"auto",innerCss:new tB(function(){return new t$().append(r.cssClasses.contextButton).append(r.cssClasses.takePictureButton).toString()}),locTitle:r.locTakePhotoCaption,showTitle:!1,action:function(){r.snapPicture()}}),r.closeCameraAction=new ra({iconName:"icon-closecamera",id:"sv-file-close-camera",iconSize:"auto",innerCss:new tB(function(){return new t$().append(r.cssClasses.contextButton).append(r.cssClasses.closeCameraButton).toString()}),action:function(){r.stopVideo()}}),r.changeCameraAction=new ra({iconName:"icon-changecamera",id:"sv-file-change-camera",iconSize:"auto",innerCss:new tB(function(){return new t$().append(r.cssClasses.contextButton).append(r.cssClasses.changeCameraButton).toString()}),visible:new tB(function(){return r.canFlipCamera()}),action:function(){r.flipCamera()}}),r.chooseFileAction=new ra({iconName:"icon-choosefile",id:"sv-file-choose-file",iconSize:"auto",data:{question:r},enabledIf:function(){return!r.isInputReadOnly},component:"sv-file-choose-btn"}),r.startCameraAction=new ra({iconName:"icon-takepicture_24x24",id:"sv-file-start-camera",iconSize:"auto",locTitle:r.locTakePhotoCaption,showTitle:new tB(function(){return!r.isAnswered}),enabledIf:function(){return!r.isInputReadOnly},action:function(){r.startVideo()}}),r.cleanAction=new ra({iconName:"icon-clear",id:"sv-file-clean",iconSize:"auto",locTitle:r.locClearButtonCaption,showTitle:!1,enabledIf:function(){return!r.isInputReadOnly},innerCss:new tB(function(){return r.cssClasses.removeButton}),action:function(){r.doClean()}}),[r.closeCameraAction,r.changeCameraAction,r.takePictureAction].forEach(function(e){e.cssClasses={}}),r.registerFunctionOnPropertiesValueChanged(["sourceType","currentMode","isAnswered"],function(){r.updateActionsVisibility()}),r.actionsContainer.actions=[r.chooseFileAction,r.startCameraAction,r.cleanAction],r.fileNavigator.actions=[r.prevFileAction,r.fileIndexAction,r.nextFileAction],r}return sH(t,e),Object.defineProperty(t.prototype,"supportFileNavigator",{get:function(){return this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fileNavigatorVisible",{get:function(){var e=this.isUploading,t=this.isPlayingVideo,r=this.containsMultiplyFiles,n=this.pageSize<this.previewValue.length;return!e&&!t&&r&&n&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pagesCount",{get:function(){return Math.ceil(this.previewValue.length/this.pageSize)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionsContainerVisible",{get:function(){var e=this.isUploading,t=this.isPlayingVideo,r=this.isDefaultV2Theme;return!e&&!t&&r}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"videoId",{get:function(){return this.id+"_video"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasVideoUI",{get:function(){return"file"!==this.currentMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasFileUI",{get:function(){return"camera"!==this.currentMode},enumerable:!1,configurable:!0}),t.prototype.startVideo=function(){var e=this;"file"!==this.currentMode&&!this.isDesignMode&&!this.isPlayingVideo&&(this.setIsPlayingVideo(!0),setTimeout(function(){e.startVideoInCamera()},0))},Object.defineProperty(t.prototype,"videoHtmlElement",{get:function(){var e;return null===(e=this.rootElement)||void 0===e?void 0:e.querySelector("#"+this.videoId)},enumerable:!1,configurable:!0}),t.prototype.startVideoInCamera=function(){var e=this;this.camera.startVideo(this.videoHtmlElement,function(t){e.videoStream=t,!t&&e.stopVideo()},rq(this.imageWidth),rq(this.imageHeight))},t.prototype.stopVideo=function(){this.setIsPlayingVideo(!1),this.closeVideoStream()},t.prototype.snapPicture=function(){var e=this;this.isPlayingVideo&&(this.camera.snap(this.videoHtmlElement,function(t){if(t){var r=new File([t],"snap_picture.png",{type:"image/png"});e.loadFiles([r])}}),this.stopVideo())},t.prototype.canFlipCamera=function(){var e=this;return void 0===this.canFlipCameraValue&&(this.canFlipCameraValue=this.camera.canFlip(function(t){e.canFlipCameraValue=t})),this.canFlipCameraValue},t.prototype.flipCamera=function(){this.canFlipCamera()&&(this.closeVideoStream(),this.camera.flip(),this.startVideoInCamera())},t.prototype.closeVideoStream=function(){this.videoStream&&(this.videoStream.getTracks().forEach(function(e){e.stop()}),this.videoStream=void 0)},t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this),this.stopVideo()},t.prototype.updateElementCssCore=function(t){e.prototype.updateElementCssCore.call(this,t),this.prevFileAction.iconName=this.cssClasses.leftIconId,this.nextFileAction.iconName=this.cssClasses.rightIconId,this.updateCurrentMode()},t.prototype.getFileIndexCaption=function(){return this.getLocalizationFormatString("indexText",this.indexToShow+1,this.pagesCount)},t.prototype.updateFileNavigator=function(){this.updatePages(),this.navigationDirection=void 0,this.indexToShow=this.previewValue.length&&(this.indexToShow+this.pagesCount)%this.pagesCount||0,this.fileIndexAction.title=this.getFileIndexCaption()},t.prototype.updateRenderedPages=function(){this.pages&&this.pages[this.indexToShow]&&(this.renderedPages=[this.pages[this.indexToShow]])},t.prototype.updatePages=function(){var e,t=this;this.blockAnimations(),this.pages=[],this.renderedPages=[],this.previewValue.forEach(function(r,n){n%t.pageSize==0&&(e=new sU(t,t.pages.length),t.pages.push(e)),e.items.push(r)}),this.releaseAnimations(),this.updateRenderedPages()},t.prototype.previewValueChanged=function(){var e=this;this.navigationDirection=void 0,this.previewValue.length!==this.prevPreviewLength&&(this.previewValue.length>0?this.prevPreviewLength>this.previewValue.length?this.indexToShow>=this.pagesCount&&this.indexToShow>0&&(this.indexToShow=this.pagesCount-1,this.navigationDirection="left-delete"):this.indexToShow=Math.floor(this.prevPreviewLength/this.pageSize):this.indexToShow=0),this.updatePages(),this.fileIndexAction.title=this.getFileIndexCaption(),this.containsMultiplyFiles=this.previewValue.length>1,this.previewValue.length>0&&!this.calculatedGapBetweenItems&&!this.calculatedItemWidth&&setTimeout(function(){e.processResponsiveness(0,e._width)},1),this.prevPreviewLength=this.previewValue.length},t.prototype.getType=function(){return"file"},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),!this.isLoadingFromJson&&this.loadPreview(t)},Object.defineProperty(t.prototype,"showPreview",{get:function(){return this.getPropertyValue("showPreview")},set:function(e){this.setPropertyValue("showPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowMultiple",{get:function(){return this.getPropertyValue("allowMultiple")}
vendor: 4,131 bytes, line 1
1,set:function(e){this.setPropertyValue("allowMultiple",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"acceptedTypes",{get:function(){return this.getPropertyValue("acceptedTypes")},set:function(e){this.setPropertyValue("acceptedTypes",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowImagesPreview",{get:function(){return this.getPropertyValue("allowImagesPreview")},set:function(e){this.setPropertyValue("allowImagesPreview",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxSize",{get:function(){return this.getPropertyValue("maxSize")},set:function(e){this.setPropertyValue("maxSize",e)},enumerable:!1,configurable:!0}),t.prototype.chooseFile=function(e){var t=this;if(!!this.rootElement){var r=this.rootElement.querySelector("#"+this.inputId);r&&(e.preventDefault(),e.stopImmediatePropagation(),r&&(this.survey?this.survey.chooseFiles(r,function(e){return t.loadFiles(e)},{element:this,elementType:this.getType(),propertyName:this.name}):r.click()))}},Object.defineProperty(t.prototype,"needConfirmRemoveFile",{get:function(){return this.getPropertyValue("needConfirmRemoveFile")},set:function(e){this.setPropertyValue("needConfirmRemoveFile",e)},enumerable:!1,configurable:!0}),t.prototype.getConfirmRemoveMessage=function(e){return this.confirmRemoveMessage.format(e)},Object.defineProperty(t.prototype,"takePhotoCaption",{get:function(){return this.getLocalizableStringText("takePhotoCaption")},set:function(e){this.setLocalizableStringText("takePhotoCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTakePhotoCaption",{get:function(){return this.getLocalizableString("takePhotoCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizableStringText("clearCaption")},set:function(e){this.setLocalizableStringText("clearCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locClearButtonCaption",{get:function(){return this.getLocalizableString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){var e=this;return void 0===this.locRenderedPlaceholderValue&&(this.locRenderedPlaceholderValue=new tB(function(){var t,r=e.isReadOnly,n=!e.isDesignMode&&e.hasFileUI||e.isDesignMode&&"camera"!=e.sourceType,o=!e.isDesignMode&&e.hasVideoUI||e.isDesignMode&&"file"!=e.sourceType;return t=r?e.locNoFileChosenCaption:n&&o?e.locFileOrPhotoPlaceholder:n?e.locFilePlaceholder:e.locPhotoPlaceholder})),this.locRenderedPlaceholderValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentMode",{get:function(){return this.getPropertyValue("currentMode",this.sourceType)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlayingVideo",{get:function(){return this.getPropertyValue("isPlayingVideo",!1)},enumerable:!1,configurable:!0}),t.prototype.setIsPlayingVideo=function(e){this.setPropertyValue("isPlayingVideo",e)},t.prototype.updateCurrentMode=function(){var e=this;!this.isDesignMode&&this.survey&&("file"!==this.sourceType?this.camera.hasCamera(function(t){e.setPropertyValue("currentMode",t&&e.isDefaultV2Theme?e.sourceType:"file")}):this.setPropertyValue("currentMode",this.sourceType))},t.prototype.updateActionsVisibility=function(){var e=this.isDesignMode;this.chooseFileAction.visible=!e&&this.hasFileUI||e&&"camera"!==this.sourceType,this.startCameraAction.visible=!e&&this.hasVideoUI||e&&"file"!==this.sourceType,this.cleanAction.visible=!!this.isAnswered},Object.defineProperty(t.prototype,"inputTitle",{get:function(){return this.isUploading?this.loadingFileTitle:this.isEmpty()?this.chooseFileTitle:" "}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"chooseButtonText",{get:function(){return this.isEmpty()||this.allowMultiple?this.chooseButtonCaption:this.replaceButtonCaption},enumerable:!1,configurable:!0}),t.prototype.clear=function(e){var t=this;this.survey&&(this.containsMultiplyFiles=!1,this.survey.clearFiles(this,this.name,this.value,null,function(r,n){"success"===r&&(t.value=void 0,t.errors=[],e&&e(),t.indexToShow=0,t.fileIndexAction.title=t.getFileIndexCaption())}))},Object.defineProperty(t.prototype,"renderCapture",{get:function(){return this.allowCameraAccess?"user":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"multipleRendered",{get:function(){return this.allowMultiple?"multiple":void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showChooseButton",{get:function(){return!this.isReadOnly&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showFileDecorator",{get:function(){var e=this.isPlayingVideo,t=this.showLoadingIndicator;return!e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowShowPreview",{get:function(){var e=this.showLoadingIndicator,t=this.isPlayingVideo;return!e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showPreviewContainer",{get:function(){return this.previewValue&&this.previewValue.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonCore",{get:function(){var e=this.showLoadingIndicator,t=this.isReadOnly,r=this.isEmpty();return!t&&!r&&!e&&!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButton",{get:function(){return this.showRemoveButtonCore&&this.cssClasses.removeButton},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRemoveButtonBottom",{get:function(){var e=new t$().append(this.cssClasses.removeButtonBottom).append(this.cssClasses.contextButton).toString();return this.showRemoveButtonCore&&e},enumerable:!1,configurable:!0}),t.prototype.defaultImage=function(e){return!this.canPreviewImage(e)&&!!this.cssClasses.defaultImage},t.prototype.removeFile=function(e){this.removeFileByContent(this.value.filter(function(t){return t.name===e})[0])},t.prototype.removeFileByContent=function(e){var t=this;this.survey&&this.survey.clearFiles(this,this.name,this.value,e.name,function(r,n){if("success"===r){var o=t.value;Array.isArray(o)?t.value=o.filter(function(t){return!eA.isTwoValueEquals(t,e,!0,!1,!1)}):t.value=void 0}})},t.prototype.setValueFromResult=function(e){this.value=(this.value||[]).concat(e.map(function(e){return{name:e.file.name,type:e.file.type,content:e.content}}))},t.prototype.loadFiles=function(e){var t=this;if(!this.survey)return;if(this.errors=[],!!this.allFilesOk(e)){var r=function(){t.stateChanged("loading");var r=[];t.storeDataAsText?e.forEach(function(n){var o=new FileReader;o.onload=function(i){(r=r.concat([{name:n.name,type:n.type,content:o.result}])).length===e.length&&(t.value=(t.value||[]).concat(r))},o.readAsDataURL(n)}):t.uploadFiles(e)};this.allowMultiple?r():this.clear(r)}},Object.defineProperty(t.prototype,"camera",{get:function(){return!this.cameraValue&&(this.cameraValue=new sQ),this.cameraValue},enumerable:!1,configurable:!0}),t.prototype.canPreviewImage=function(e){return this.allowImagesPreview&&!!e&&this.isFileImage(e)},t.prototype.loadPreview=function(e){var t=this;if(!this.showPreview||this.prevLoadedPreviewValue!==e){if(this.previewValue.splice(0,this.previewValue.length),this.showPreview&&e){this.prevLoadedPreviewValue=e;var r=Array.isArray(e)?e:e?[e]:[];this.storeDataAsText?(r.forEach(function(e){var r=e.content||e;t.previewValue.push({name:e.name,type:e.type,content:r})}),this.previewValueChanged()):(this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new sG(this,function(e,r){"error"!==e&&(r.forEach(function(e){t.previewValue.push(e)}),t.previewValueChanged()),t.isFileLoading=!1,t._previewLoader.dispose(),t._previewLoader=void 0}),this._previewLoader.load(r))}}},t.prototype.allFilesOk=function(e){var t=this,r=this.errors?this.errors.length:0;
vendor: 4,195 bytes, line 1
1return(e||[]).forEach(function(e){t.maxSize>0&&e.size>t.maxSize&&t.errors.push(new ni(t.maxSize,t))}),r===this.errors.length},t.prototype.isFileImage=function(e){if(!e||!e.content||!e.content.substring)return!1;var t="data:image",r=e.content&&e.content.substring(0,t.length);return(r=r&&r.toLowerCase())===t||!!e.type&&0===e.type.toLowerCase().indexOf("image/")},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r&&!this.isEmpty()){r.isNode=!1;var n=Array.isArray(this.value)?this.value:[this.value];r.data=n.map(function(e,t){return{name:t,title:"File",value:e.content&&e.content||e,displayValue:e.name&&e.name||e,getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!1}})}return r},t.prototype.getImageWrapperCss=function(e){return new t$().append(this.cssClasses.imageWrapper).append(this.cssClasses.imageWrapperDefaultImage,this.defaultImage(e)).toString()},t.prototype.getActionsContainerCss=function(e){return new t$().append(e.actionsContainer).append(e.actionsContainerAnswered,this.isAnswered).toString()},t.prototype.getRemoveButtonCss=function(){return new t$().append(this.cssClasses.removeFileButton).append(this.cssClasses.contextButton).toString()},t.prototype.getChooseFileCss=function(){var e=this.isAnswered;return new t$().append(this.cssClasses.chooseFile).append(this.cssClasses.controlDisabled,this.isReadOnly).append(this.cssClasses.chooseFileAsText,!e).append(this.cssClasses.chooseFileAsTextDisabled,!e&&this.isInputReadOnly).append(this.cssClasses.contextButton,e).append(this.cssClasses.chooseFileAsIcon,e).toString()},t.prototype.getReadOnlyFileCss=function(){return new t$().append("form-control").append(this.cssClasses.placeholderInput).toString()},Object.defineProperty(t.prototype,"fileRootCss",{get:function(){return new t$().append(this.cssClasses.root).append(this.cssClasses.rootDisabled,this.isDisabledStyle).append(this.cssClasses.rootReadOnly,this.isReadOnlyStyle).append(this.cssClasses.rootPreview,this.isPreviewStyle).append(this.cssClasses.rootDragging,this.isDragging).append(this.cssClasses.rootAnswered,this.isAnswered).append(this.cssClasses.single,!this.allowMultiple).append(this.cssClasses.singleImage,!this.allowMultiple&&this.isAnswered&&this.canPreviewImage(this.value[0])).append(this.cssClasses.mobile,this.isMobile).toString()},enumerable:!1,configurable:!0}),t.prototype.getFileDecoratorCss=function(){return new t$().append(this.cssClasses.fileDecorator).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.fileDecoratorDrag,this.isDragging).toString()},t.prototype.onChange=function(e){if(!!e_.isFileReaderAvailable()){if(e&&e.files&&!(e.files.length<1)){for(var t=[],r=this.allowMultiple?e.files.length:1,n=0;n<r;n++)t.push(e.files[n]);e.value="",this.loadFiles(t)}}},t.prototype.calcCssClasses=function(t){var r=e.prototype.calcCssClasses.call(this,t);return this.actionsContainer.cssClasses=t.actionBar,this.actionsContainer.cssClasses.itemWithTitle=this.actionsContainer.cssClasses.item,this.actionsContainer.cssClasses.item="",this.actionsContainer.cssClasses.itemAsIcon=r.contextButton,this.actionsContainer.containerCss=r.actionsContainer,r},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.updateCurrentMode(),this.updateActionsVisibility(),this.loadPreview(this.value)},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getObservedElementSelector=function(){return r$(this.cssClasses.dragArea)},t.prototype.getFileListSelector=function(){return r$(this.cssClasses.fileList)},Object.defineProperty(t.prototype,"renderedPages",{get:function(){return this._renderedPages},set:function(e){this.pagesAnimation.sync(e)},enumerable:!1,configurable:!0}),t.prototype.getPagesAnimationOptions=function(){var e=this;return{getEnterOptions:function(t){var r=e.cssClasses.page;return{cssClass:r?new t$().append(r+"--enter-from-left","left"==e.navigationDirection||"left-delete"==e.navigationDirection).append(r+"--enter-from-right","right"==e.navigationDirection).toString():""}}
1,getLeaveOptions:function(t){var r=e.cssClasses.page;return{cssClass:r?new t$().append(r+"--leave-to-left","right"==e.navigationDirection).append(r+"--leave-to-right","left"==e.navigationDirection).toString():""}},getAnimatedElement:function(t){var r;return null===(r=e.rootElement)||void 0===r?void 0:r.querySelector("#"+t.id)},isAnimationEnabled:function(){return e.animationAllowed&&!!e.rootElement},getRerenderEvent:function(){return e.onElementRerendered}}},t.prototype.triggerResponsiveness=function(t){t&&(this.calculatedGapBetweenItems=void 0,this.calculatedItemWidth=void 0),e.prototype.triggerResponsiveness.call(this)},t.prototype.processResponsiveness=function(e,t){if(this._width=t,this.rootElement&&(!this.calculatedGapBetweenItems||!this.calculatedItemWidth)&&this.allowMultiple){var r=this.getFileListSelector()?this.rootElement.querySelector(this.getFileListSelector()):void 0;if(r){var n=r.querySelector(r$(this.cssClasses.page));if(n){var o=n.querySelector(r$(this.cssClasses.previewItem));this.calculatedGapBetweenItems=Math.ceil(Number.parseFloat(eD.getComputedStyle(n).gap)),o&&(this.calculatedItemWidth=Math.ceil(Number.parseFloat(eD.getComputedStyle(o).width)))}}}return!!this.calculatedGapBetweenItems&&!!this.calculatedItemWidth&&(this.pageSize=this.calcAvailableItemsCount(t,this.calculatedItemWidth,this.calculatedGapBetweenItems),!0)},t.prototype.canDragDrop=function(){return!this.isInputReadOnly&&"camera"!==this.currentMode&&!this.isPlayingVideo},t.prototype.afterRenderQuestionElement=function(e){this.rootElement=e},t.prototype.beforeDestroyQuestionElement=function(e){this.rootElement=void 0},t.prototype.clearFilesCore=function(){if(this.rootElement){var e=this.rootElement.querySelectorAll("input")[0];e&&(e.value="")}this.clear()},t.prototype.doRemoveFile=function(e,t){var r=this;if(t.stopPropagation(),this.needConfirmRemoveFile){rO({message:this.getConfirmRemoveMessage(e.name),funcOnYes:function(){r.clearFilesCore()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog});return}this.removeFileCore(e)},t.prototype.removeFileCore=function(e){var t=this.previewValue.indexOf(e);this.removeFileByContent(-1===t?e:this.value[t])},t.prototype.dispose=function(){this.cameraValue=void 0,this.closeVideoStream(),e.prototype.dispose.call(this)},sz([eW()],t.prototype,"isDragging",void 0),sz([eJ({})],t.prototype,"previewValue",void 0),sz([eJ({})],t.prototype,"pages",void 0),sz([eW({defaultValue:0,onSet:function(e,t){t.updateRenderedPages()}})],t.prototype,"indexToShow",void 0),sz([eW({defaultValue:1,onSet:function(e,t){t.updateFileNavigator()}})],t.prototype,"pageSize",void 0),sz([eW({defaultValue:!1})],t.prototype,"containsMultiplyFiles",void 0),sz([eW()],t.prototype,"allowCameraAccess",void 0),sz([eW({onSet:function(e,t){!t.isLoadingFromJson&&t.updateCurrentMode()}})],t.prototype,"sourceType",void 0),sz([eW()],t.prototype,"canFlipCameraValue",void 0),sz([eW({localizable:{defaultStr:"confirmRemoveFile"}})],t.prototype,"confirmRemoveMessage",void 0),sz([eW({localizable:{defaultStr:"confirmRemoveAllFiles"}})],t.prototype,"confirmRemoveAllMessage",void 0),sz([eW({localizable:{defaultStr:"noFileChosen"}})],t.prototype,"noFileChosenCaption",void 0),sz([eW({localizable:{defaultStr:"chooseFileCaption"}})],t.prototype,"chooseButtonCaption",void 0),sz([eW({localizable:{defaultStr:"replaceFileCaption"}})],t.prototype,"replaceButtonCaption",void 0),sz([eW({localizable:{defaultStr:"removeFileCaption"}})],t.prototype,"removeFileCaption",void 0),sz([eW({localizable:{defaultStr:"loadingFile"}})],t.prototype,"loadingFileTitle",void 0),sz([eW({localizable:{defaultStr:"chooseFile"}})],t.prototype,"chooseFileTitle",void 0),sz([eW({localizable:{defaultStr:"fileOrPhotoPlaceholder"}})],t.prototype,"fileOrPhotoPlaceholder",void 0),sz([eW({localizable:{defaultStr:"photoPlaceholder"}})],t.prototype,"photoPlaceholder",void 0),sz([eW({localizable:{defaultStr:"filePlaceholder"}})],t.prototype,"filePlaceholder",void 0),sz([eW()],t.prototype,"locRenderedPlaceholderValue",void 0),sz([eJ()],t.prototype,"_renderedPages",void 0),t}(sW);e6.addClass("file",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"showPreview:boolean",default:!0,visible:!1},"allowMultiple:boolean",{name:"allowImagesPreview:boolean",default:!0,dependsOn:"showPreview",visibleIf:function(e){return!!e.showPreview}},"imageHeight","imageWidth","acceptedTypes",{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1},{name:"maxSize:number",default:0},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"validators",visible:!1},{name:"needConfirmRemoveFile:boolean"},{name:"sourceType",choices:["file","camera","file-camera"],default:"file",category:"general",visible:!0,visibleIf:function(){return r9.supportCreatorV2}},{name:"fileOrPhotoPlaceholder:text",serializationProperty:"locFileOrPhotoPlaceholder",category:"general",visibleIf:function(){return r9.supportCreatorV2}},{name:"photoPlaceholder:text",serializationProperty:"locPhotoPlaceholder",category:"general",visibleIf:function(){return r9.supportCreatorV2}},{name:"filePlaceholder:text",serializationProperty:"locFilePlaceholder",category:"general",visibleIf:function(){return r9.supportCreatorV2}},{name:"allowCameraAccess:switch",category:"general",visible:!1}],function(){return new sJ("")},"question"),n6.Instance.registerQuestion("file",function(e){return new sJ(e)});var sG=function(){function e(e,t){this.fileQuestion=e,this.callback=t,this.loaded=[]}return e.prototype.load=function(e){var t=this,r=0;this.loaded=Array(e.length),e.forEach(function(n,o){t.fileQuestion.survey&&t.fileQuestion.survey.downloadFile(t.fileQuestion,t.fileQuestion.name,n,function(i,s){if(!!t.fileQuestion&&!!t.callback)"error"!==i?(t.loaded[o]={content:s,name:n.name,type:n.type},++r===e.length&&t.callback(i,t.loaded)):t.callback("error",t.loaded)})})},e.prototype.dispose=function(){this.fileQuestion=void 0,this.callback=void 0},e}();
vendor: 4,145 bytes, line 1
1var s$=(eh=function(e,t){return(eh=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eh(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sK=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("html",r).onGetTextCallback=function(e){return r.survey&&!r.ignoreHtmlProgressing?r.processHtml(e):e},r}return s$(t,e),t.prototype.getType=function(){return"html"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getProcessedText=function(t){return this.ignoreHtmlProgressing?t:e.prototype.getProcessedText.call(this,t)},Object.defineProperty(t.prototype,"html",{get:function(){return this.getLocalizableStringText("html","")},set:function(e){this.setLocalizableStringText("html",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locHtml",{get:function(){return this.getLocalizableString("html")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"processedHtml",{get:function(){return this.processHtml(this.html)},enumerable:!1,configurable:!0}),t.prototype.processHtml=function(e){return this.survey?this.survey.processHtml(e,"html-question"):this.html},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderCssRoot",{get:function(){return new t$().append(this.cssClasses.root).append(this.cssClasses.nested,this.getIsNested()).toString()||void 0},enumerable:!1,configurable:!0}),t}(sg);e6.addClass("html",[{name:"html:html",serializationProperty:"locHtml"},{name:"hideNumber",visible:!1},{name:"state",visible:!1},{name:"titleLocation",visible:!1},{name:"descriptionLocation",visible:!1},{name:"errorLocation",visible:!1},{name:"indent",visible:!1},{name:"width",visible:!1}],function(){return new sK("")},"nonvalue"),n6.Instance.registerQuestion("html",function(e){return new sK(e)});var sY=(ed=function(e,t){return(ed=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ed(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),sX=function(e){function t(t){return e.call(this,t)||this}return sY(t,e),t.prototype.getDefaultItemComponent=function(){return"survey-radiogroup-item"},t.prototype.getType=function(){return"radiogroup"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},Object.defineProperty(t.prototype,"selectedItem",{get:function(){return this.getSingleSelectedItem()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showClearButton",{get:function(){return this.getPropertyValue("showClearButton")},set:function(e){this.setPropertyValue("showClearButton",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){return this.showClearButton&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown&&!this.isOtherSelected},t.prototype.getConditionJson=function(t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.prototype.getConditionJson.call(this,t,r);return delete n.showClearButton,n},t.prototype.setNewComment=function(t){this.isMouseDown=!0,e.prototype.setNewComment.call(this,t),this.isMouseDown=!1},Object.defineProperty(t.prototype,"showClearButtonInContent",{get:function(){return!this.isDefaultV2Theme&&this.canShowClearButton}
1,enumerable:!1,configurable:!0}),t.prototype.clickItemHandler=function(e){!this.isReadOnlyAttr&&(this.renderedValue=e.value)},t.prototype.getDefaultTitleActions=function(){var e=this,t=[];if(this.isDefaultV2Theme&&!this.isDesignMode){var r=new ra({locTitleName:"clearCaption",id:"sv-clr-btn-"+this.id,action:function(){e.clearValue(!0)},innerCss:this.cssClasses.clearButton,visible:new tB(function(){return e.canShowClearButton})});t.push(r)}return t},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"radiogroup"},enumerable:!1,configurable:!0}),t}(iT);e6.addClass("radiogroup",[{name:"showClearButton:boolean",default:!1},{name:"separateSpecialChoices",visible:!0},{name:"itemComponent",visible:!1,default:"survey-radiogroup-item"}],function(){return new sX("")},"checkboxbase"),n6.Instance.registerQuestion("radiogroup",function(e){var t=new sX(e);return t.choices=n6.DefaultChoices,t});var sZ=(ef=function(e,t){return(ef=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ef(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s0=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},s1=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.itemValue=t,n.locString=r,n.locText.onStringChanged.add(n.onStringChangedCallback.bind(n)),n.onStringChangedCallback(),n}return sZ(t,e),t.prototype.onStringChangedCallback=function(){this.text=this.itemValue.text},Object.defineProperty(t.prototype,"value",{get:function(){return this.itemValue.getPropertyValue("value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locText",{get:function(){return this.locString||this.itemValue.locText},enumerable:!1,configurable:!0}),s0([eW({defaultValue:""})],t.prototype,"highlight",void 0),s0([eW({defaultValue:""})],t.prototype,"text",void 0),s0([eW()],t.prototype,"style",void 0),t}(tQ),s2=function(e){function t(t,r,n){var o=e.call(this,t,r)||this;return o.description=n,o}return sZ(t,e),t}(nL),s5=function(e){function t(t){var r=e.call(this,t)||this;return r._syncPropertiesChanging=!1,r.iCounter=0,r.createItemValues("rateValues"),r.createLocalizableString("ratingOptionsCaption",r,!1,!0),r.registerFunctionOnPropertiesValueChanged(["rateMin","rateMax","minRateDescription","maxRateDescription","rateStep","displayRateDescriptionsAsExtremeItems"],function(){return r.resetRenderedItems()}),r.registerFunctionOnPropertiesValueChanged(["rateType"],function(){r.setIconsToRateValues(),r.resetRenderedItems(),r.updateRateCount()}),r.registerFunctionOnPropertiesValueChanged(["rateValues"],function(){r.setIconsToRateValues(),r.resetRenderedItems()}),r.registerSychProperties(["rateValues"],function(){r.autoGenerate=0==r.rateValues.length,r.setIconsToRateValues(),r.resetRenderedItems()}),r.registerFunctionOnPropertiesValueChanged(["rateColorMode","scaleColorMode"],function(){r.updateColors(r.survey.themeVariables)}),r.registerFunctionOnPropertiesValueChanged(["displayMode"],function(){r.updateRenderAsBasedOnDisplayMode(!0)}),r.registerSychProperties(["autoGenerate"],function(){!r.autoGenerate&&0===r.rateValues.length&&r.setPropertyValue("rateValues",r.visibleRateValues),r.autoGenerate&&(r.rateValues.splice(0,r.rateValues.length),r.updateRateMax()),r.resetRenderedItems()}),r.createLocalizableString("minRateDescription",r,!0).onStringChanged.add(function(e,t){r.hasMinRateDescription=!e.isEmpty}),r.createLocalizableString("maxRateDescription",r,!0).onStringChanged.add(function(e,t){r.hasMaxRateDescription=!e.isEmpty}),r.initPropertyDependencies(),r}
1return sZ(t,e),t.prototype.setIconsToRateValues=function(){var e=this;"smileys"==this.rateType&&this.rateValues.map(function(t){return t.icon=e.getItemSmiley(t)})},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),void 0!==this.jsonObj.rateMin&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMax&&this.updateRateMax(),void 0!==this.jsonObj.rateMax&&void 0!==this.jsonObj.rateCount&&void 0===this.jsonObj.rateMin&&this.updateRateMin(),void 0===this.jsonObj.autoGenerate&&void 0!==this.jsonObj.rateValues&&(this.autoGenerate=!this.jsonObj.rateValues.length),this.updateRateCount(),this.setIconsToRateValues()},t.prototype.registerSychProperties=function(e,t){var r=this;this.registerFunctionOnPropertiesValueChanged(e,function(){!r._syncPropertiesChanging&&(r._syncPropertiesChanging=!0,t(),r._syncPropertiesChanging=!1)})},t.prototype.useRateValues=function(){return!!this.rateValues.length&&!this.autoGenerate},t.prototype.updateRateMax=function(){this.rateMax=this.rateMin+this.rateStep*(this.rateCount-1)},t.prototype.updateRateMin=function(){this.rateMin=this.rateMax-this.rateStep*(this.rateCount-1)},t.prototype.updateRateCount=function(){var e=0;(e=this.useRateValues()?this.rateValues.length:Math.trunc((this.rateMax-this.rateMin)/(this.rateStep||1))+1)>10&&"smileys"==this.rateDisplayMode&&(e=10),this.rateCount=e,this.rateValues.length>e&&this.rateValues.splice(e,this.rateValues.length-e)},t.prototype.initPropertyDependencies=function(){var e=this;this.registerSychProperties(["rateCount"],function(){if(e.useRateValues()){if(e.rateCount<e.rateValues.length){if(!(e.rateCount>=10)||"smileys"!=e.rateDisplayMode)e.rateValues.splice(e.rateCount,e.rateValues.length-e.rateCount)}else for(var t=e.rateValues.length;t<e.rateCount;t++)e.rateValues.push(new nL(eM("choices_Item")+(t+1)))}else e.rateMax=e.rateMin+e.rateStep*(e.rateCount-1)}),this.registerSychProperties(["rateMin","rateMax","rateStep","rateValues"],function(){e.updateRateCount()})},Object.defineProperty(t.prototype,"showSelectedItemLocText",{get:function(){return!this.readOnly&&!this.inputHasValue&&!!this.selectedItemLocText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemLocText",{get:function(){var e,t=this;return!this.readOnly&&(null===(e=this.visibleRateValues.filter(function(e){return e.value==t.value})[0])||void 0===e?void 0:e.locText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateValues",{get:function(){return this.getPropertyValue("rateValues")},set:function(e){this.setPropertyValue("rateValues",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMin",{get:function(){return this.getPropertyValue("rateMin")},set:function(e){this.setPropertyValue("rateMin",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateMax",{get:function(){return this.getPropertyValue("rateMax")},set:function(e){this.setPropertyValue("rateMax",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"rateStep",{get:function(){return this.getPropertyValue("rateStep")},set:function(e){this.setPropertyValue("rateStep",e)},enumerable:!1,configurable:!0}),t.prototype.updateColors=function(e){if("monochrome"!==this.colorMode&&!!eD.isAvailable())!t.colorsCalculated&&(t.badColor=n("--sjs-special-red","--sd-rating-bad-color"),t.normalColor=n("--sjs-special-yellow","--sd-rating-normal-color"),t.goodColor=n("--sjs-special-green","--sd-rating-good-color"),t.badColorLight=n("--sjs-special-red-light","--sd-rating-bad-color-light"),t.normalColorLight=n("--sjs-special-yellow-light","--sd-rating-normal-color-light"),t.goodColorLight=n("--sjs-special-green-light","--sd-rating-good-color-light"),this.colorsCalculated=!0,this.resetRenderedItems());function r(e){var t=getComputedStyle(eD.getDocumentElement());return t.getPropertyValue&&t.getPropertyValue(e)}function n(t,n){var o=!!e&&e[t];if(!o&&(o=r(n)),!o)return null;var i=eD.createElement("canvas");if(!i)return null;var s=i.getContext("2d");s.fillStyle=o,"#000000"==s.fillStyle&&(s.fillStyle=r(n));var a=s.fillStyle;if(a.startsWith("rgba"))return a.substring(5,a.length-1).split(",").map(function(e){return+e.trim()});var l=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return l?[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16),1]:null}},t.prototype.getDisplayValueCore=function(t,r){if(!this.useRateValues)return e.prototype.getDisplayValueCore.call(this,t,r);var n=nL.getTextOrHtmlByValue(this.visibleRateValues,r);return n||r},Object.defineProperty(t.prototype,"visibleRateValues",{get:function(){return this.renderedRateItems.map(function(e){return e.itemValue})}
1,enumerable:!1,configurable:!0}),t.prototype.supportEmptyValidation=function(){return"dropdown"===this.renderAs},t.prototype.itemValuePropertyChanged=function(t,r,n,o){!this.useRateValues()&&void 0!==o&&(this.autoGenerate=!1),e.prototype.itemValuePropertyChanged.call(this,t,r,n,o)},t.prototype.runConditionCore=function(t,r){e.prototype.runConditionCore.call(this,t,r),this.runRateItesmCondition(t,r)},t.prototype.runRateItesmCondition=function(e,t){if(this.useRateValues()){var r,n=!1;if((null===(r=this.survey)||void 0===r?void 0:r.areInvisibleElementsShowing)?this.rateValues.forEach(function(e){n=n||!e.isVisible,e.setIsVisible(e,!0)}):n=nL.runConditionsForItems(this.rateValues,void 0,void 0,e,t,!0),n&&(this.resetRenderedItems(),!this.isEmpty()&&!this.isReadOnly)){var o=nL.getItemByValue(this.rateValues,this.value);o&&!o.isVisible&&this.clearValue()}}},t.prototype.getRateValuesCore=function(){if(!this.useRateValues())return this.createRateValues();var e=[];return this.rateValues.forEach(function(t){t.isVisible&&e.push(t)}),e},t.prototype.calculateRateValues=function(){var e=this.getRateValuesCore();return"smileys"==this.rateType&&e.length>10&&(e=e.slice(0,10)),e},t.prototype.calculateRenderedRateItems=function(){var e=this,t=this.calculateRateValues();return t.map(function(r,n){var o=null;return e.displayRateDescriptionsAsExtremeItems&&(0==n&&(o=new s1(r,e.minRateDescription&&e.locMinRateDescription||r.locText)),n==t.length-1&&(o=new s1(r,e.maxRateDescription&&e.locMaxRateDescription||r.locText))),!o&&(o=new s1(r)),o})},t.prototype.calculateVisibleChoices=function(){var e=this;return this.calculateRateValues().map(function(t,r){return e.getRatingItemValue(t,r)})},t.prototype.resetRenderedItems=function(){if(this.autoGenerate){var e=this.getRateValuesCore();this.rateMax=e[e.length-1].value}Array.isArray(this.getPropertyValueWithoutDefault("renderedRateItems"))&&this.setArrayPropertyDirectly("renderedRateItems",this.calculateRenderedRateItems()),Array.isArray(this.getPropertyValueWithoutDefault("visibleChoices"))&&this.setArrayPropertyDirectly("visibleChoices",this.calculateVisibleChoices)},Object.defineProperty(t.prototype,"renderedRateItems",{get:function(){var e=this;return this.getPropertyValue("renderedRateItems",void 0,function(){return e.calculateRenderedRateItems()})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visibleChoices",{get:function(){var e=this;return this.getPropertyValue("visibleChoices",void 0,function(){return e.calculateVisibleChoices()})},enumerable:!1,configurable:!0}),t.prototype.createRateValues=function(){for(var e=[],t=this.rateMin,r=this.rateStep;t<=this.rateMax&&e.length<r9.ratingMaximumRateValueCount;){var n=new nL(t);n.locOwner=this,n.ownerPropertyName="rateValues",e.push(n),t=this.correctValue(t+r,r)}return e},t.prototype.getRatingItemValue=function(e,t){if(!e)return null;var r,n=e.value;n===this.rateMin&&(r=this.minRateDescription&&this.locMinRateDescription),(n===this.rateMax||t===r9.ratingMaximumRateValueCount)&&(r=this.maxRateDescription&&this.locMaxRateDescription);var o=new s2(n,e.text,r);return o.locOwner=e.locOwner,o.ownerPropertyName=e.ownerPropertyName,o},t.prototype.correctValue=function(e,t){if(!e||Math.round(e)==e)return e;for(var r=0;Math.round(t)!=t;)t*=10,r++;return parseFloat(e.toFixed(r))},t.prototype.getType=function(){return"rating"},t.prototype.getFirstInputElementId=function(){return this.inputId+"_0"},t.prototype.getInputId=function(e){return this.inputId+"_"+e},Object.defineProperty(t.prototype,"questionName",{get:function(){return this.name+"_"+this.id},enumerable:!1,configurable:!0}),t.prototype.supportGoNextPageAutomatic=function(){return!0===this.isMouseDown||"dropdown"===this.renderAs},t.prototype.supportOther=function(){return!1},t.prototype.getPlainDataCalculatedValue=function(t){var r=e.prototype.getPlainDataCalculatedValue.call(this,t);if(void 0!==r||!this.useRateValues||this.isEmpty())return r;var n=nL.getItemByValue(this.visibleRateValues,this.value);return n?n[t]:void 0},Object.defineProperty(t.prototype,"minRateDescription",{get:function(){return this.getLocalizableStringText("minRateDescription")},set:function(e){this.setLocalizableStringText("minRateDescription",e)}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMinRateDescription",{get:function(){return this.getLocalizableString("minRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxRateDescription",{get:function(){return this.getLocalizableStringText("maxRateDescription")},set:function(e){this.setLocalizableStringText("maxRateDescription",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locMaxRateDescription",{get:function(){return this.getLocalizableString("maxRateDescription")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMinLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMinRateDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasMaxLabel",{get:function(){return!this.displayRateDescriptionsAsExtremeItems&&!!this.hasMaxRateDescription},enumerable:!1,configurable:!0}),t.prototype.updateRenderAsBasedOnDisplayMode=function(e){this.isDesignMode?(e||"dropdown"===this.renderAs)&&(this.renderAs="default"):(e||"auto"!==this.displayMode)&&(this.renderAs="dropdown"===this.displayMode?"dropdown":"default")},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),"dropdown"===this.renderAs&&"auto"===this.displayMode?this.displayMode=this.renderAs:this.updateRenderAsBasedOnDisplayMode()},Object.defineProperty(t.prototype,"rateDisplayMode",{get:function(){return this.rateType},set:function(e){this.rateType=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStar",{get:function(){return"stars"==this.rateType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSmiley",{get:function(){return"smileys"==this.rateType},enumerable:!1,configurable:!0}),t.prototype.getDefaultItemComponent=function(){return"dropdown"==this.renderAs?"sv-rating-dropdown-item":this.isStar?"sv-rating-item-star":this.isSmiley?"sv-rating-item-smiley":"sv-rating-item"},Object.defineProperty(t.prototype,"itemComponent",{get:function(){return this.getPropertyValue("itemComponent",this.getDefaultItemComponent())},set:function(e){this.setPropertyValue("itemComponent",e)},enumerable:!1,configurable:!0}),t.prototype.valueToData=function(e){if(this.useRateValues()){var t=nL.getItemByValue(this.rateValues,e);return t?t.value:e}return isNaN(e)?e:parseFloat(e)},t.prototype.setValueFromClick=function(e){if(!this.isReadOnlyAttr){this.value===("string"==typeof this.value?e:parseFloat(e))?this.clearValue(!0):this.value=e;for(var t=0;t<this.renderedRateItems.length;t++)this.renderedRateItems[t].highlight="none"}},t.prototype.onItemMouseIn=function(e){if(!oT){if(!this.isReadOnly&&e.itemValue.isEnabled&&!this.isDesignMode){var t=!0,r=null!=this.value;if("stars"!==this.rateType){e.highlight="highlighted";return}for(var n=0;n<this.renderedRateItems.length;n++)this.renderedRateItems[n].highlight=t&&!r&&"highlighted"||!t&&r&&"unhighlighted"||"none",this.renderedRateItems[n]==e&&(t=!1),this.renderedRateItems[n].itemValue.value==this.value&&(r=!1)}}},t.prototype.onItemMouseOut=function(e){!oT&&this.renderedRateItems.forEach(function(e){return e.highlight="none"})},Object.defineProperty(t.prototype,"itemSmallMode",{get:function(){return this.inMatrixMode&&"small"==r9.matrix.rateSize},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ratingRootCss",{get:function(){var e=("buttons"==this.displayMode||this.survey&&this.survey.isDesignMode)&&this.cssClasses.rootWrappable?this.cssClasses.rootWrappable:"",t="";return(this.hasMaxLabel||this.hasMinLabel)&&("top"==this.rateDescriptionLocation&&(t=this.cssClasses.rootLabelsTop),"bottom"==this.rateDescriptionLocation&&(t=this.cssClasses.rootLabelsBottom),"topBottom"==this.rateDescriptionLocation&&(t=this.cssClasses.rootLabelsDiagonal)),new t$().append(this.cssClasses.root).append(e).append(t).append(this.cssClasses.itemSmall,this.itemSmallMode&&"labels"!=this.rateType).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIcon",{get:function(){return this.itemSmallMode?"icon-rating-star-small":"icon-rating-star"}
vendor: 28,300 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemStarIconAlt",{get:function(){return this.itemStarIcon+"-2"},enumerable:!1,configurable:!0}),t.prototype.getItemSmiley=function(e){var t=["very-good","not-good","normal","good","average","excellent","poor","perfect","very-poor","terrible"].slice(0,this.useRateValues()?this.rateValues.length:this.rateMax-this.rateMin+1),r=["terrible","very-poor","poor","not-good","average","normal","good","very-good","excellent","perfect"].filter(function(e){return -1!=t.indexOf(e)});return this.useRateValues()?r[this.rateValues.indexOf(e)]:r[e.value-this.rateMin]},t.prototype.getItemSmileyIconName=function(e){return"icon-"+this.getItemSmiley(e)},t.prototype.getItemClassByText=function(e,t){return this.getItemClass(e)},t.prototype.getRenderedItemColor=function(e,r){var n=r?t.badColorLight:t.badColor,o=r?t.goodColorLight:t.goodColor,i=(this.rateCount-1)/2,s=r?t.normalColorLight:t.normalColor;if(e<i?o=s:(n=s,e-=i),!n||!o)return null;for(var a=[0,0,0,0],l=0;l<4;l++)a[l]=n[l]+(o[l]-n[l])*e/i,l<3&&(a[l]=Math.trunc(a[l]));return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+")"},t.prototype.getItemStyle=function(e,t){if(void 0===t&&(t="none"),"monochrome"===this.scaleColorMode&&"default"==this.rateColorMode||this.isPreviewStyle||this.isReadOnlyStyle)return{};var r=this.visibleRateValues.indexOf(e),n=this.getRenderedItemColor(r,!1),o="highlighted"==t&&"colored"===this.scaleColorMode&&this.getRenderedItemColor(r,!0);return o?{"--sd-rating-item-color":n,"--sd-rating-item-color-light":o}:{"--sd-rating-item-color":n}},t.prototype.getItemClass=function(e,t){var r=this;void 0===t&&(t="none");var n=this.value==e.value;this.isStar&&(n=this.useRateValues()?this.rateValues.indexOf(this.rateValues.filter(function(e){return e.value==r.value})[0])>=this.rateValues.indexOf(e):this.value>=e.value);var o=!(this.isReadOnly||!e.isEnabled)&&this.value!=e.value&&!(this.survey&&this.survey.isDesignMode),i=this.renderedRateItems.filter(function(t){return t.itemValue==e})[0],s=this.isStar&&(null==i?void 0:i.highlight)=="highlighted",a=this.isStar&&(null==i?void 0:i.highlight)=="unhighlighted",l=this.cssClasses.item,u=this.cssClasses.selected,c=this.cssClasses.itemDisabled,p=this.cssClasses.itemReadOnly,h=this.cssClasses.itemPreview,d=this.cssClasses.itemHover,f=this.cssClasses.itemOnError,g=null,m=null,y=null,b=null,v=null;this.isStar&&(l=this.cssClasses.itemStar,u=this.cssClasses.itemStarSelected,c=this.cssClasses.itemStarDisabled,p=this.cssClasses.itemStarReadOnly,h=this.cssClasses.itemStarPreview,d=this.cssClasses.itemStarHover,f=this.cssClasses.itemStarOnError,g=this.cssClasses.itemStarHighlighted,m=this.cssClasses.itemStarUnhighlighted,v=this.cssClasses.itemStarSmall),this.isSmiley&&(l=this.cssClasses.itemSmiley,u=this.cssClasses.itemSmileySelected,c=this.cssClasses.itemSmileyDisabled,p=this.cssClasses.itemSmileyReadOnly,h=this.cssClasses.itemSmileyPreview,d=this.cssClasses.itemSmileyHover,f=this.cssClasses.itemSmileyOnError,g=this.cssClasses.itemSmileyHighlighted,y=this.cssClasses.itemSmileyScaleColored,b=this.cssClasses.itemSmileyRateColored,v=this.cssClasses.itemSmileySmall);var C=!this.isStar&&!this.isSmiley&&(!this.displayRateDescriptionsAsExtremeItems||this.useRateValues()&&e!=this.rateValues[0]&&e!=this.rateValues[this.rateValues.length-1]||!this.useRateValues()&&e.value!=this.rateMin&&e.value!=this.rateMax)&&e.locText.calculatedText.length<=2&&Number.isInteger(Number(e.locText.calculatedText));return new t$().append(l).append(u,n).append(c,this.isDisabledStyle).append(p,this.isReadOnlyStyle).append(h,this.isPreviewStyle).append(d,o).append(g,s).append(y,"colored"==this.scaleColorMode).append(b,"scale"==this.rateColorMode&&n).append(m,a).append(f,this.hasCssError()).append(v,this.itemSmallMode).append(this.cssClasses.itemFixedSize,C).toString()},t.prototype.getControlClass=function(){return this.isEmpty(),new t$().append(this.cssClasses.control).append(this.cssClasses.controlEmpty,this.isEmpty()).append(this.cssClasses.onError,this.hasCssError()).append(this.cssClasses.controlDisabled,this.isDisabledStyle).append(this.cssClasses.controlReadOnly,this.isReadOnlyStyle).append(this.cssClasses.controlPreview,this.isPreviewStyle).toString()},Object.defineProperty(t.prototype,"placeholder",{get:function(){return this.getLocalizableStringText("ratingOptionsCaption")},set:function(e){this.setLocalizableStringText("ratingOptionsCaption",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPlaceholder",{get:function(){return this.getLocalizableString("ratingOptionsCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"searchEnabled",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedValue",{get:function(){return this.value},set:function(e){this.value=e},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){return e.value==this.value},Object.defineProperty(t.prototype,"readOnlyText",{get:function(){return this.readOnly?this.displayValue||this.placeholder:this.isEmpty()?this.placeholder:""},enumerable:!1,configurable:!0}),t.prototype.needResponsiveWidth=function(){this.getPropertyValue("rateValues");var e=this.getPropertyValue("rateStep"),t=this.getPropertyValue("rateMax"),r=this.getPropertyValue("rateMin");return"dropdown"!=this.displayMode&&!!(this.hasMinRateDescription||this.hasMaxRateDescription||e&&(t-r)/e>9)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.onBeforeSetCompactRenderer=function(){!this.dropdownListModelValue&&(this.dropdownListModelValue=new iH(this),this.ariaExpanded="false")},t.prototype.getCompactRenderAs=function(){return"buttons"==this.displayMode?"default":"dropdown"},t.prototype.getDesktopRenderAs=function(){return"dropdown"==this.displayMode?"dropdown":"default"},Object.defineProperty(t.prototype,"dropdownListModel",{get:function(){return"dropdown"===this.renderAs&&this.onBeforeSetCompactRenderer(),this.dropdownListModelValue},set:function(e){this.dropdownListModelValue=e,this.ariaExpanded=e?"false":void 0,this.updateElementCss()},enumerable:!1,configurable:!0}),t.prototype.onBlurCore=function(t){var r;null===(r=this.dropdownListModel)||void 0===r||r.onBlur(t),e.prototype.onBlurCore.call(this,t)},t.prototype.updateCssClasses=function(t,r){e.prototype.updateCssClasses.call(this,t,r),r0(t,r)},t.prototype.calcCssClasses=function(t){var r=e.prototype.calcCssClasses.call(this,t);return this.dropdownListModelValue&&this.dropdownListModelValue.updateCssClasses(r.popup,r.list),r},t.prototype.themeChanged=function(e){this.colorsCalculated=!1,this.updateColors(e.cssVariables)},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.survey&&(this.updateColors(this.survey.themeVariables),this.updateRenderAsBasedOnDisplayMode())},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.dropdownListModelValue&&(this.dropdownListModelValue.dispose(),this.dropdownListModelValue=void 0)},t.colorsCalculated=!1,s0([eW({defaultValue:!1})],t.prototype,"inputHasValue",void 0),s0([eW()],t.prototype,"autoGenerate",void 0),s0([eW()],t.prototype,"rateCount",void 0),s0([eW({defaultValue:!1})],t.prototype,"hasMinRateDescription",void 0),s0([eW({defaultValue:!1})],t.prototype,"hasMaxRateDescription",void 0),s0([eW()],t.prototype,"displayRateDescriptionsAsExtremeItems",void 0),s0([eW()],t.prototype,"displayMode",void 0),s0([eW()],t.prototype,"rateDescriptionLocation",void 0),s0([eW()],t.prototype,"rateType",void 0),s0([eW()],t.prototype,"scaleColorMode",void 0),s0([eW()],t.prototype,"rateColorMode",void 0),t}(n_);e6.addClass("rating",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"rateType",alternativeName:"rateDisplayMode",default:"labels",category:"rateValues",choices:["labels","stars","smileys"],visibleIndex:1},{name:"scaleColorMode",category:"rateValues",default:"monochrome",choices:["monochrome","colored"],visibleIf:function(e){return"smileys"==e.rateDisplayMode},visibleIndex:2},{name:"rateColorMode",category:"rateValues",default:"scale",choices:["default","scale"],visibleIf:function(e){return"smileys"==e.rateDisplayMode&&"monochrome"==e.scaleColorMode},visibleIndex:3},{name:"autoGenerate",category:"rateValues",default:!0,choices:[!0,!1],visibleIndex:5},{name:"rateCount:number",default:5,category:"rateValues",visibleIndex:4,onSettingValue:function(e,t){return t<2?2:t>r9.ratingMaximumRateValueCount&&t>e.rateValues.length?r9.ratingMaximumRateValueCount:t>10&&"smileys"==e.rateDisplayMode?10:t}},{name:"rateValues:itemvalue[]",baseValue:function(){return eM("choices_Item")},category:"rateValues",visibleIf:function(e){return!e.autoGenerate},visibleIndex:6},{name:"rateMin:number",default:1,onSettingValue:function(e,t){return t>e.rateMax-e.rateStep?e.rateMax-e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:7},{name:"rateMax:number",default:5,onSettingValue:function(e,t){return t<e.rateMin+e.rateStep?e.rateMin+e.rateStep:t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:8},{name:"rateStep:number",default:1,minValue:.1,onSettingValue:function(e,t){return t<=0&&(t=1),t>e.rateMax-e.rateMin&&(t=e.rateMax-e.rateMin),t},visibleIf:function(e){return!!e.autoGenerate},visibleIndex:9},{name:"minRateDescription",alternativeName:"mininumRateDescription",serializationProperty:"locMinRateDescription",visibleIndex:18},{name:"maxRateDescription",alternativeName:"maximumRateDescription",serializationProperty:"locMaxRateDescription",visibleIndex:19},{name:"displayRateDescriptionsAsExtremeItems:boolean",default:!1,visibleIndex:21,visibleIf:function(e){return"labels"==e.rateType}},{name:"rateDescriptionLocation",default:"leftRight",choices:["leftRight","top","bottom","topBottom"],visibleIndex:20},{name:"displayMode",default:"auto",choices:["auto","buttons","dropdown"],visibleIndex:0},{name:"itemComponent",visible:!1,defaultFunc:function(e){return e?(e.getOriginalObj&&(e=e.getOriginalObj()),e.getDefaultItemComponent()):"sv-rating-item"}}],function(){return new s5("")},"question"),n6.Instance.registerQuestion("rating",function(e){return new s5(e)});var s4=(eg=function(e,t){return(eg=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eg(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s8=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},s3=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("labelFalse",r,!0,"booleanUncheckedLabel"),r.createLocalizableString("labelTrue",r,!0,"booleanCheckedLabel"),r}return s4(t,e),t.prototype.getType=function(){return"boolean"},t.prototype.isLayoutTypeSupported=function(e){return!0},t.prototype.supportGoNextPageAutomatic=function(){return"checkbox"!==this.renderAs},Object.defineProperty(t.prototype,"isIndeterminate",{get:function(){return this.isEmpty()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTitle",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"booleanValue",{get:function(){return this.isEmpty()?null:this.value==this.getValueTrue()},set:function(e){if(!this.isReadOnly&&!this.isDesignMode)this.setBooleanValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checkedValue",{get:function(){return this.booleanValue},set:function(e){this.booleanValue=e},enumerable:!1,configurable:!0}),t.prototype.setBooleanValue=function(e){this.isValueEmpty(e)?(this.value=void 0,this.booleanValueRendered=void 0):(this.value=!0==e?this.getValueTrue():this.getValueFalse(),this.booleanValueRendered=e)},Object.defineProperty(t.prototype,"defaultValue",{get:function(){return this.getPropertyValue("defaultValue")},set:function(e){!0===e&&(e="true"),!1===e&&(e="false"),this.setPropertyValue("defaultValue",e),this.updateValueWithDefaults()},enumerable:!1,configurable:!0}),t.prototype.getDefaultValue=function(){var e=this.defaultValue;if("indeterminate"!==e&&null!=e)return"true"==e?this.getValueTrue():this.getValueFalse()},Object.defineProperty(t.prototype,"locTitle",{get:function(){var e=this.getLocalizableString("title");return!this.isValueEmpty(this.locLabel.text)&&(this.isValueEmpty(e.text)||this.isLabelRendered&&!this.showTitle)?this.locLabel:e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelRenderedAriaID",{get:function(){return this.isLabelRendered?this.ariaTitleId:null},enumerable:!1,configurable:!0}),t.prototype.beforeDestroyQuestionElement=function(t){e.prototype.beforeDestroyQuestionElement.call(this,t),this.leftAnswerElement=void 0},Object.defineProperty(t.prototype,"isLabelRendered",{get:function(){return"hidden"===this.titleLocation},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRenderLabelDescription",{get:function(){return this.isLabelRendered&&this.hasDescription&&(this.hasDescriptionUnderTitle||this.hasDescriptionUnderInput)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelTrue",{get:function(){return this.getLocalizableStringText("labelTrue")},set:function(e){this.setLocalizableStringText("labelTrue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelTrue",{get:function(){return this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isDeterminated",{get:function(){return null!==this.booleanValue&&void 0!==this.booleanValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelLeft",{get:function(){return this.swapOrder?this.getLocalizableString("labelTrue"):this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelRight",{get:function(){return this.swapOrder?this.getLocalizableString("labelFalse"):this.getLocalizableString("labelTrue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelFalse",{get:function(){return this.getLocalizableStringText("labelFalse")},set:function(e){this.setLocalizableStringText("labelFalse",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locLabelFalse",{get:function(){return this.getLocalizableString("labelFalse")},enumerable:!1,configurable:!0}),t.prototype.getValueTrue=function(){return void 0===this.valueTrue||this.valueTrue},t.prototype.getValueFalse=function(){return void 0!==this.valueFalse&&this.valueFalse},t.prototype.setDefaultValue=function(){this.isDefaultValueSet("true",this.valueTrue)&&this.setBooleanValue(!0),this.isDefaultValueSet("false",this.valueFalse)&&this.setBooleanValue(!1);var e=this.defaultValue;("indeterminate"===e||null==e)&&this.setBooleanValue(void 0)},t.prototype.isDefaultValueSet=function(e,t){return this.defaultValue==e||void 0!==t&&this.defaultValue===t},t.prototype.getDisplayValueCore=function(e,t){return t==this.getValueTrue()?this.locLabelTrue.textOrHtml:this.locLabelFalse.textOrHtml},t.prototype.getItemCssValue=function(e){return new t$().append(e.item).append(e.itemOnError,this.hasCssError()).append(e.itemDisabled,this.isDisabledStyle).append(e.itemReadOnly,this.isReadOnlyStyle).append(e.itemPreview,this.isPreviewStyle).append(e.itemHover,!this.isDesignMode).append(e.itemChecked,!!this.booleanValue).append(e.itemExchanged,!!this.swapOrder).append(e.itemIndeterminate,!this.isDeterminated).toString()},t.prototype.getItemCss=function(){return this.getItemCssValue(this.cssClasses)},t.prototype.getCheckboxItemCss=function(){return this.getItemCssValue({item:this.cssClasses.checkboxItem,itemOnError:this.cssClasses.checkboxItemOnError,itemDisabled:this.cssClasses.checkboxItemDisabled,itemDisable:this.cssClasses.checkboxItemDisabled,itemReadOnly:this.cssClasses.checkboxItemReadOnly,itemPreview:this.cssClasses.checkboxItemPreview,itemChecked:this.cssClasses.checkboxItemChecked,itemIndeterminate:this.cssClasses.checkboxItemIndeterminate})},t.prototype.getLabelCss=function(e){return new t$().append(this.cssClasses.label).append(this.cssClasses.disabledLabel,!e===this.booleanValue||this.isDisabledStyle).append(this.cssClasses.labelReadOnly,this.isReadOnlyStyle).append(this.cssClasses.labelPreview,this.isPreviewStyle).append(this.cssClasses.labelTrue,!this.isIndeterminate&&!this.swapOrder===e).append(this.cssClasses.labelFalse,!this.isIndeterminate&&e===this.swapOrder).toString()},t.prototype.updateValueFromSurvey=function(t,r){void 0===r&&(r=!1),e.prototype.updateValueFromSurvey.call(this,t,r)},t.prototype.onValueChanged=function(){e.prototype.onValueChanged.call(this)},Object.defineProperty(t.prototype,"svgIcon",{get:function(){return this.booleanValue&&this.cssClasses.svgIconCheckedId?this.cssClasses.svgIconCheckedId:!this.isDeterminated&&this.cssClasses.svgIconIndId?this.cssClasses.svgIconIndId:!this.booleanValue&&this.cssClasses.svgIconUncheckedId?this.cssClasses.svgIconUncheckedId:this.cssClasses.svgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemSvgIcon",{get:function(){return this.isPreviewStyle&&this.cssClasses.itemPreviewSvgIconId?this.cssClasses.itemPreviewSvgIconId:this.cssClasses.itemSvgIconId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClick",{get:function(){return this.isIndeterminate&&!this.isInputReadOnly},enumerable:!1,configurable:!0}),t.prototype.getCheckedLabel=function(){return!0===this.booleanValue?this.locLabelTrue:!1===this.booleanValue?this.locLabelFalse:void 0},t.prototype.setQuestionValue=function(t,r){void 0===r&&(r=!0),"true"===t&&"true"!==this.valueTrue&&(t=!0),"false"===t&&"false"!==this.valueFalse&&(t=!1),("indeterminate"===t||null===t)&&(t=void 0),e.prototype.setQuestionValue.call(this,t,r)},t.prototype.onLabelClick=function(e,t){return this.allowClick&&(rG(e),this.booleanValue=t),!0},t.prototype.calculateBooleanValueByEvent=function(e,t){var r=!1;eD.isAvailable()&&(r="rtl"==eD.getComputedStyle(e.target).direction),this.booleanValue=r?!t:t},t.prototype.onSwitchClickModel=function(e){if(this.allowClick){rG(e);var t=e.offsetX/e.target.offsetWidth>.5;this.calculateBooleanValueByEvent(e,t);return}return!0},t.prototype.onKeyDownCore=function(e){return("ArrowLeft"===e.key||"ArrowRight"===e.key)&&(e.stopPropagation(),this.calculateBooleanValueByEvent(e,"ArrowRight"===e.key)),!0},t.prototype.getRadioItemClass=function(e,t){var r=void 0;return e.radioItem&&(r=e.radioItem),e.radioItemChecked&&t===this.booleanValue&&(r=(r?r+" ":"")+e.radioItemChecked),this.isDisabledStyle&&(r+=" "+e.radioItemDisabled),this.isReadOnlyStyle&&(r+=" "+e.radioItemReadOnly),this.isPreviewStyle&&(r+=" "+e.radioItemPreview),r},t.prototype.supportResponsiveness=function(){return!0},t.prototype.getCompactRenderAs=function(){return"radio"},t.prototype.createActionContainer=function(t){return e.prototype.createActionContainer.call(this,"checkbox"!==this.renderAs)},Object.defineProperty(t.prototype,"isNewA11yStructure",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"a11y_input_ariaRole",{get:function(){return"switch"},enumerable:!1,configurable:!0}),s8([eW()],t.prototype,"booleanValueRendered",void 0),s8([eW()],t.prototype,"showTitle",void 0),s8([eW({localizable:!0})],t.prototype,"label",void 0),s8([eW({defaultValue:!1})],t.prototype,"swapOrder",void 0),s8([eW()],t.prototype,"valueTrue",void 0),s8([eW()],t.prototype,"valueFalse",void 0),t}(n_);e6.addClass("boolean",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"label:text",serializationProperty:"locLabel",isSerializable:!1,visible:!1},{name:"labelTrue:text",serializationProperty:"locLabelTrue"},{name:"labelFalse:text",serializationProperty:"locLabelFalse"},"valueTrue","valueFalse",{name:"swapOrder:boolean",category:"general"},{name:"renderAs",default:"default",visible:!1}],function(){return new s3("")},"question"),n6.Instance.registerQuestion("boolean",function(e){return new s3(e)});var s6=(em=function(e,t){return(em=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}em(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),s7=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},s9=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="imageitemvalue");var o=e.call(this,t,r,n)||this;return o.typeName=n,o.createLocalizableString("imageLink",o,!1),o}return s6(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"itemvalue"},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e),this.imageNotLoaded=!1,this.videoNotLoaded=!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),t.prototype.getLocale=function(){return this.locOwner?this.locOwner.getLocale():""},t.prototype.getMarkdownHtml=function(e,t){return this.locOwner?this.locOwner.getMarkdownHtml(e,t):void 0},t.prototype.getRenderer=function(e){return this.locOwner?this.locOwner.getRenderer(e):null},t.prototype.getRendererContext=function(e){return this.locOwner?this.locOwner.getRendererContext(e):e},t.prototype.getProcessedText=function(e){return this.locOwner?this.locOwner.getProcessedText(e):e},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},Object.defineProperty(t.prototype,"contentNotLoaded",{get:function(){return this.locOwner instanceof ae&&"video"==this.locOwner.contentMode?this.videoNotLoaded:this.imageNotLoaded},set:function(e){this.locOwner instanceof ae&&"video"==this.locOwner.contentMode?this.videoNotLoaded=e:this.imageNotLoaded=e},enumerable:!1,configurable:!0}),s7([eW({defaultValue:!1})],t.prototype,"videoNotLoaded",void 0),s7([eW({defaultValue:!1})],t.prototype,"imageNotLoaded",void 0),t}(nL),ae=function(e){function t(t){var r=e.call(this,t)||this;return r.isResponsiveValue=!1,r.onContentLoaded=function(e,t){e.contentNotLoaded=!1;var n=t.target;"video"==r.contentMode?e.aspectRatio=n.videoWidth/n.videoHeight:e.aspectRatio=n.naturalWidth/n.naturalHeight,r._width&&r.processResponsiveness(0,r._width)},r.colCount=0,r.registerPropertyChangedHandlers(["minImageWidth","maxImageWidth","minImageHeight","maxImageHeight","visibleChoices","colCount","isResponsiveValue"],function(){r._width&&r.processResponsiveness(0,r._width)}),r.registerPropertyChangedHandlers(["imageWidth","imageHeight"],function(){r.calcIsResponsive()}),r.calcIsResponsive(),r}return s6(t,e),t.prototype.getType=function(){return"imagepicker"},t.prototype.supportGoNextPageAutomatic=function(){return!this.multiSelect},Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.getItemValueType=function(){return"imageitemvalue"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.supportOther=function(){return!1},t.prototype.supportNone=function(){return!1},t.prototype.supportRefuse=function(){return!1},t.prototype.supportDontKnow=function(){return!1},t.prototype.isAnswerCorrect=function(){return this.multiSelect?eA.isArrayContainsEqual(this.value,this.correctAnswer):e.prototype.isAnswerCorrect.call(this)},Object.defineProperty(t.prototype,"multiSelect",{get:function(){return this.getPropertyValue("multiSelect")},set:function(e){this.setPropertyValue("multiSelect",e)},enumerable:!1,configurable:!0}),t.prototype.isItemSelected=function(e){var t=this.value;if(this.isValueEmpty(t)||!e.imageLink||e.contentNotLoaded)return!1;if(!this.multiSelect)return this.isTwoValueEquals(t,e.value);if(!Array.isArray(t))return!1;for(var r=0;r<t.length;r++)if(this.isTwoValueEquals(t[r],e.value))return!0;return!1},t.prototype.getItemEnabled=function(t){return!!t.imageLink&&!t.contentNotLoaded&&e.prototype.getItemEnabled.call(this,t)},t.prototype.clearIncorrectValues=function(){if(this.multiSelect){var t=this.value;if(!!t){if(!Array.isArray(t)||0==t.length){this.clearValue(!0);return}for(var r=[],n=0;n<t.length;n++)!this.hasUnknownValue(t[n],!0)&&r.push(t[n]);r.length!=t.length&&(0==r.length?this.clearValue(!0):this.value=r)}}else e.prototype.clearIncorrectValues.call(this)},t.prototype.getDisplayValueCore=function(t,r){return this.multiSelect||Array.isArray(r)?this.getDisplayArrayValue(t,r):e.prototype.getDisplayValueCore.call(this,t,r)},Object.defineProperty(t.prototype,"showLabel",{get:function(){return this.getPropertyValue("showLabel")},set:function(e){this.setPropertyValue("showLabel",e)},enumerable:!1,configurable:!0}),t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),!this.isDesignMode&&this.multiSelect&&(this.createNewArray("renderedValue"),this.createNewArray("value")),this.calcIsResponsive()},t.prototype.getValueCore=function(){var t=e.prototype.getValueCore.call(this);return void 0!==t?t:this.multiSelect?[]:t},t.prototype.convertValToArrayForMultSelect=function(e){return!this.multiSelect||this.isValueEmpty(e)||Array.isArray(e)?e:[e]},t.prototype.renderedValueFromDataCore=function(e){return this.convertValToArrayForMultSelect(e)},t.prototype.rendredValueToDataCore=function(e){return this.convertValToArrayForMultSelect(e)},Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageScale",{get:function(){return this.survey?this.survey.widthScale/100:1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageHeight",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageHeight):this.imageHeight*this.imageScale;return e||150*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedImageWidth",{get:function(){var e=this.isResponsive?Math.floor(this.responsiveImageWidth):this.imageWidth*this.imageScale;return e||200*this.imageScale},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),t.prototype.convertDefaultValue=function(e){return e},Object.defineProperty(t.prototype,"inputType",{get:function(){return this.multiSelect?"checkbox":"radio"},enumerable:!1,configurable:!0}),t.prototype.isBuiltInChoice=function(e){return!1},t.prototype.addToVisibleChoices=function(e,t){this.addNewItemToVisibleChoices(e,t)},t.prototype.getSelectBaseRootCss=function(){return new t$().append(e.prototype.getSelectBaseRootCss.call(this)).append(this.cssClasse
1s.rootColumn,1==this.getCurrentColCount()).toString()},Object.defineProperty(t.prototype,"isResponsive",{get:function(){return this.isResponsiveValue&&this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"exactSizesAreEmpty",{get:function(){var e=this;return!["imageHeight","imageWidth"].some(function(t){return void 0!==e[t]&&null!==e[t]})},enumerable:!1,configurable:!0}),t.prototype.calcIsResponsive=function(){this.isResponsiveValue=this.exactSizesAreEmpty},t.prototype.getObservedElementSelector=function(){return r$(this.cssClasses.root)},t.prototype.supportResponsiveness=function(){return!0},t.prototype.needResponsiveness=function(){return this.supportResponsiveness()&&this.isDefaultV2Theme},t.prototype.needResponsiveWidth=function(){return this.colCount>2},t.prototype.getCurrentColCount=function(){return void 0===this.responsiveColCount||0===this.colCount?this.colCount:this.responsiveColCount},t.prototype.processResponsiveness=function(e,t){this._width=t=Math.floor(t);var r=function(e,t,r){var n=Math.floor(e/(t+r));return(n+1)*(t+r)-r<=e&&n++,n};if(this.isResponsive){var n,o=this.choices.length+(this.isDesignMode?1:0),i=(this.gapBetweenItems||0)*this.imageScale,s=this.minImageWidth*this.imageScale,a=this.maxImageWidth*this.imageScale,l=this.maxImageHeight*this.imageScale,u=this.minImageHeight*this.imageScale,c=this.colCount;if(0===c){if((i+s)*o-i>t){var p=r(t,s,i);n=Math.floor((t-i*(p-1))/p)}else n=Math.floor((t-i*(o-1))/o)}else{var h=r(t,s,i);h<c?(this.responsiveColCount=h>=1?h:1,c=this.responsiveColCount):this.responsiveColCount=c,n=Math.floor((t-i*(c-1))/c)}n=Math.max(s,Math.min(n,a));var d=Number.MIN_VALUE;this.choices.forEach(function(e){var t=n/e.aspectRatio;d=t>d?t:d}),d>l?d=l:d<u&&(d=u);var f=this.responsiveImageWidth,g=this.responsiveImageHeight;return this.responsiveImageWidth=n,this.responsiveImageHeight=d,f!==this.responsiveImageWidth||g!==this.responsiveImageHeight}return!1},t.prototype.triggerResponsiveness=function(t){void 0===t&&(t=!0),t&&this.reCalcGapBetweenItemsCallback&&this.reCalcGapBetweenItemsCallback(),e.prototype.triggerResponsiveness.call(this,t)},t.prototype.afterRender=function(t){var r=this;e.prototype.afterRender.call(this,t);var n=this.getObservedElementSelector(),o=t&&n?t.querySelector(n):void 0;o&&(this.reCalcGapBetweenItemsCallback=function(){r.gapBetweenItems=Math.ceil(Number.parseFloat(eD.getComputedStyle(o).gap))||16},this.reCalcGapBetweenItemsCallback())},s7([eW({})],t.prototype,"responsiveImageHeight",void 0),s7([eW({})],t.prototype,"responsiveImageWidth",void 0),s7([eW({})],t.prototype,"isResponsiveValue",void 0),s7([eW({})],t.prototype,"maxImageWidth",void 0),s7([eW({})],t.prototype,"minImageWidth",void 0),s7([eW({})],t.prototype,"maxImageHeight",void 0),s7([eW({})],t.prototype,"minImageHeight",void 0),s7([eW({})],t.prototype,"responsiveColCount",void 0),t}(iT);e6.addClass("imageitemvalue",[{name:"imageLink:file",serializationProperty:"locImageLink"}],function(e){return new s9(e)},"itemvalue"),e6.addClass("responsiveImageSize",[],void 0,"number"),e6.addClass("imagepicker",[{name:"showOtherItem",visible:!1},{name:"otherText",visible:!1},{name:"showNoneItem",visible:!1},{name:"showRefuseItem",visible:!1},{name:"showDontKnowItem",visible:!1},{name:"noneText",visible:!1},{name:"optionsCaption",visible:!1},{name:"otherErrorText",visible:!1},{name:"storeOthersAsComment",visible:!1},{name:"contentMode",default:"image",choices:["image","video"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight:number",minValue:0},{name:"imageWidth:number",minValue:0},{name:"minImageWidth:responsiveImageSize",default:200,minValue:0,visibleIf:function(){return r9.supportCreatorV2}},{name:"minImageHeight:responsiveImageSize",default:133,minValue:0,visibleIf:function(){return r9.supportCreatorV2}},{name:"maxImageWidth:responsiveImageSize",default:400,minValue:0,visibleIf:function(){return r9.supportCreatorV2}},{name:"maxImageHeight:responsiveImageSize",default:266,minValue:0,visibleIf:function(){return r9.supportCreatorV2}}],function(){return new ae("")},"checkboxbase"),e6.addProperty("imagepicker",{name:"showLabel:boolean",default:!1}),e6.addProperty("imagepicker",{name:"colCount:number",default:0,choices:[0,1,2,3,4,5]}),e6.addProperty("imagepicker",{name:"multiSelect:boolean",default:!1}),e6.addProperty("imagepicker",{name:"choices:imageitemvalue[]"}),n6.Instance.registerQuestion("imagepicker",function(e){return new ae(e)});
vendor: 4,117 bytes, line 1
1var at=(ey=function(e,t){return(ey=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ey(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ar=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},an=[".mp4",".mov",".wmv",".flv",".avi",".mkv"],ao="embed",ai=function(e){function t(t){var r=e.call(this,t)||this;return r.createLocalizableString("imageLink",r,!1).onGetTextCallback=function(e){return function(e,t){if(!e||!eA.isUrlYoutubeVideo(e))return t?"":e;if(e.toLocaleLowerCase().indexOf(ao)>-1)return e;for(var r="",n=e.length-1;n>=0&&"="!==e[n]&&"/"!==e[n];n--)r=e[n]+r;return"https://www.youtube.com/"+ao+"/"+r}(e,"youtube"==r.contentMode)},r.createLocalizableString("altText",r,!1),r.registerPropertyChangedHandlers(["contentMode","imageLink"],function(){return r.calculateRenderedMode()}),r}return at(t,e),t.prototype.getType=function(){return"image"},Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.calculateRenderedMode()},Object.defineProperty(t.prototype,"imageLink",{get:function(){return this.getLocalizableStringText("imageLink")},set:function(e){this.setLocalizableStringText("imageLink",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locImageLink",{get:function(){return this.getLocalizableString("imageLink")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"altText",{get:function(){return this.getLocalizableStringText("altText")},set:function(e){this.setLocalizableStringText("altText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locAltText",{get:function(){return this.getLocalizableString("altText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageHeight",{get:function(){return this.getPropertyValue("imageHeight")},set:function(e){this.setPropertyValue("imageHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleHeight",{get:function(){return this.imageHeight?rB(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedHeight",{get:function(){return this.imageHeight?rq(this.imageHeight):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageWidth",{get:function(){return this.getPropertyValue("imageWidth")},set:function(e){this.setPropertyValue("imageWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedStyleWidth",{get:function(){return this.imageWidth?rB(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){return this.imageWidth?rq(this.imageWidth):void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"imageFit",{get:function(){return this.getPropertyValue("imageFit")},set:function(e){this.setPropertyValue("imageFit",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentMode",{get:function(){return this.getPropertyValue("contentMode")},set:function(e){this.setPropertyValue("contentMode",e),"video"===e&&(this.showLabel=!0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedMode",{get:function(){return this.getPropertyValue("renderedMode","image")},enumerable:!1,configurable:!0}),t.prototype.getImageCss=function(){var e=this.getPropertyByName("imageHeight"),t=this.getPropertyByName("imageWidth"),r=e.isDefaultValue(this.imageHeight)&&t.isDefaultValue(this.imageWidth);
1return new t$().append(this.cssClasses.image).append(this.cssClasses.adaptive,r).toString()},t.prototype.onLoadHandler=function(){this.contentNotLoaded=!1},t.prototype.onErrorHandler=function(){this.contentNotLoaded=!0},t.prototype.setRenderedMode=function(e){this.setPropertyValue("renderedMode",e)},t.prototype.calculateRenderedMode=function(){"auto"!==this.contentMode?this.setRenderedMode(this.contentMode):this.isYoutubeVideo()?this.setRenderedMode("youtube"):this.isVideo()?this.setRenderedMode("video"):this.setRenderedMode("image")},t.prototype.isYoutubeVideo=function(){return eA.isUrlYoutubeVideo(this.imageLink)},t.prototype.isVideo=function(){var e=this.imageLink;if(!e)return!1;e=e.toLowerCase();for(var t=0;t<an.length;t++)if(e.endsWith(an[t]))return!0;return!1},ar([eW({defaultValue:!1})],t.prototype,"contentNotLoaded",void 0),t}(sg);e6.addClass("image",[{name:"imageLink:file",serializationProperty:"locImageLink"},{name:"altText",serializationProperty:"locAltText",alternativeName:"text",category:"general"},{name:"contentMode",default:"auto",choices:["auto","image","video","youtube"]},{name:"imageFit",default:"contain",choices:["none","contain","cover","fill"]},{name:"imageHeight",default:"150"},{name:"imageWidth",default:"200"}],function(){return new ai("")},"nonvalue"),n6.Instance.registerQuestion("image",function(e){return new ai(e)});class as{constructor(e,t,r,n){if(isNaN(e)||isNaN(t))throw Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=r||0,this.time=n||Date.now()}distanceTo(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}equals(e){return this.x===e.x&&this.y===e.y&&this.pressure===e.pressure&&this.time===e.time}velocityFrom(e){return this.time!==e.time?this.distanceTo(e)/(this.time-e.time):0}}class aa{static fromPoints(e,t){let r=this.calculateControlPoints(e[0],e[1],e[2]).c2,n=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new aa(e[1],r,n,e[2],t.start,t.end)}static calculateControlPoints(e,t,r){let n=e.x-t.x,o=e.y-t.y,i=t.x-r.x,s=t.y-r.y,a={x:(e.x+t.x)/2,y:(e.y+t.y)/2},l={x:(t.x+r.x)/2,y:(t.y+r.y)/2},u=Math.sqrt(n*n+o*o),c=Math.sqrt(i*i+s*s),p=a.x-l.x,h=a.y-l.y,d=c/(u+c),f={x:l.x+p*d,y:l.y+h*d},g=t.x-f.x,m=t.y-f.y;return{c1:new as(a.x+g,a.y+m),c2:new as(l.x+g,l.y+m)}}constructor(e,t,r,n,o,i){this.startPoint=e,this.control2=t,this.control1=r,this.endPoint=n,this.startWidth=o,this.endWidth=i}length(){let e,t;let r=0;for(let n=0;n<=10;n+=1){let o=n/10,i=this.point(o,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(o,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(n>0){let n=i-e,o=s-t;r+=Math.sqrt(n*n+o*o)}e=i,t=s}return r}point(e,t,r,n,o){return t*(1-e)*(1-e)*(1-e)+3*r*(1-e)*(1-e)*e+3*n*(1-e)*e*e+o*e*e*e}}class al{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,r){this._et.addEventListener(e,t,r)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,r){this._et.removeEventListener(e,t,r)}}class au extends al{constructor(e,t={}){super(),this.canvas=e,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{1===e.buttons&&this._strokeBegin(e)},this._handleMouseMove=e=>{this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._strokeEnd(e)},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),1===e.targetTouches.length){let t=e.changedTouches[0];this._strokeBegin(t)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();let t=e.targetTouches[0];this._strokeMoveUpdate(t)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();let t=e.changedTouches[0];this._strokeEnd(t)}},this._handlePointerStart=e=>{e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._strokeMoveUpdate(e)},this._handlePointerEnd=e=>{this._drawingStroke&&(e.preventDefault(),this._strokeEnd(e))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=t.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in t?t.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?function(e,t=250){let r,n,o,i=0,s=null,a=()=>{i=Date.now(),s=null,r=e.apply(n,o),!s&&(n=null,o=[])};return function(...l){let u=Date.now(),c=t-(u-i);return n=this,o=l,c<=0||c>t?(s&&(clearTimeout(s),s=null),i=u,r=e.apply(n,o),!s&&(n=null,o=[])):!s&&(s=window.setTimeout(a,c)),r}}(au.prototype._strokeUpdate,this.throttle):au.prototype._strokeUpdate,this._ctx=e.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){let{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise((r,n)=>
1{let o=new Image,i=t.ratio||window.devicePixelRatio||1,s=t.width||this.canvas.width/i,a=t.height||this.canvas.height/i,l=t.xOffset||0,u=t.yOffset||0;this._reset(this._getPointGroupOptions()),o.onload=()=>{this._ctx.drawImage(o,l,u,s,a),r()},o.onerror=e=>{n(e)},o.crossOrigin="anonymous",o.src=e,this._isEmpty=!1})}toDataURL(e="image/png",t){if("image/svg+xml"===e)return"object"!=typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`;return"number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t)}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";let e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:e,cancelable:!0})))return;this._drawingStroke=!0;let t=this._getPointGroupOptions(),r=Object.assign(Object.assign({},t),{points:[]});this._data.push(r),this._reset(t),this._strokeUpdate(e)}_strokeUpdate(e){if(!this._drawingStroke)return;if(0===this._data.length){this._strokeBegin(e);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));let t=e.clientX,r=e.clientY,n=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0,o=this._createPoint(t,r,n),i=this._data[this._data.length-1],s=i.points,a=s.length>0&&s[s.length-1],l=!!a&&o.distanceTo(a)<=this.minDistance,u=this._getPointGroupOptions(i);if(!a||!(a&&l)){let e=this._addPoint(o,u);a?e&&this._drawCurve(e,u):this._drawDot(o,u),s.push({time:o.time,x:o.x,y:o.y,pressure:o.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){if(!!this._drawingStroke)this._strokeUpdate(e),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:e}))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,r){let n=this.canvas.getBoundingClientRect();return new as(e-n.left,t-n.top,r,new Date().getTime())}_addPoint(e,t){let{_lastPoints:r}=this;if(r.push(e),r.length>2){3===r.length&&r.unshift(r[0]);let e=this._calculateCurveWidths(r[1],r[2],t),n=aa.fromPoints(r,e);return r.shift(),n}return null}_calculateCurveWidths(e,t,r){let n=r.velocityFilterWeight*t.velocityFrom(e)+(1-r.velocityFilterWeight)*this._lastVelocity,o=this._strokeWidth(n,r),i={end:o,start:this._lastWidth};return this._lastVelocity=n,this._lastWidth=o,i}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,r){let n=this._ctx;n.moveTo(e,t),n.arc(e,t,r,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){let r=this._ctx,n=e.endWidth-e.startWidth,o=2*Math.ceil(e.length());r.beginPath(),r.fillStyle=t.penColor;for(let r=0;r<o;r+=1){let i=r/o,s=i*i,a=s*i,l=1-i,u=l*l,c=u*l,p=c*e.startPoint.x;p+=3*u*i*e.control1.x+3*l*s*e.control2.x+a*e.endPoint.x;let h=c*e.startPoint.y;h+=3*u*i*e.control1.y+3*l*s*e.control2.y+a*e.endPoint.y;let d=Math.min(e.startWidth+a*n,t.maxWidth);this._drawCurveSegment(p,h,d)}r.closePath(),r.fill()}_drawDot(e,t){let r=this._ctx,n=t.dotSize>0?t.dotSize:(t.minWidth+t.maxWidth)/2;r.beginPath(),this._drawCurveSegment(e.x,e.y,n),r.closePath(),r.fillStyle=t.penColor,r.fill()}_fromData(e,t,r){for(let n of e){let{points:e}=n,o=this._getPointGroupOptions(n);if(e.length>1)for(let r=0;r<e.length;r+=1){let n=e[r],i=new as(n.x,n.y,n.pressure,n.time);0===r&&this._reset(o);let s=this._addPoint(i,o);s&&t(s,o)}else this._reset(o),r(e[0],o)}}
vendor: 4,767 bytes, line 1
1toSVG({includeBackgroundColor:e=!1}={}){let t=this._data,r=Math.max(window.devicePixelRatio||1,1),n=this.canvas.width/r,o=this.canvas.height/r,i=document.createElementNS("http://www.w3.org/2000/svg","svg");if(i.setAttribute("xmlns","http://www.w3.org/2000/svg"),i.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),i.setAttribute("viewBox",`0 0 ${n} ${o}`),i.setAttribute("width",n.toString()),i.setAttribute("height",o.toString()),e&&this.backgroundColor){let e=document.createElement("rect");e.setAttribute("width","100%"),e.setAttribute("height","100%"),e.setAttribute("fill",this.backgroundColor),i.appendChild(e)}return this._fromData(t,(e,{penColor:t})=>{let r=document.createElement("path");if(!isNaN(e.control1.x)&&!isNaN(e.control1.y)&&!isNaN(e.control2.x)&&!isNaN(e.control2.y)){let n=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;r.setAttribute("d",n),r.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),r.setAttribute("stroke",t),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),i.appendChild(r)}},(e,{penColor:t,dotSize:r,minWidth:n,maxWidth:o})=>{let s=document.createElement("circle");s.setAttribute("r",(r>0?r:(n+o)/2).toString()),s.setAttribute("cx",e.x.toString()),s.setAttribute("cy",e.y.toString()),s.setAttribute("fill",t),i.appendChild(s)}),i.outerHTML}}var ac=(eb=function(e,t){return(eb=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eb(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ap=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ah=function(e){function t(t){var r=e.call(this,t)||this;return r.valueIsUpdatingInternally=!1,r._loadedData=void 0,r.updateValueHandler=function(){r._loadedData=void 0,r.scaleCanvas(!1,!0),r.loadPreview(r.value)},r}return ac(t,e),t.prototype.getPenColorFromTheme=function(){var e=this.survey;return!!e&&!!e.themeVariables&&e.themeVariables["--sjs-primary-backcolor"]},t.prototype.updateColors=function(e){var t=this.getPenColorFromTheme(),r=this.getPropertyByName("penColor");e.penColor=this.penColor||t||r.defaultValue||"#1ab394";var n=this.getPropertyByName("backgroundColor"),o=t?"transparent":void 0,i=this.backgroundImage?"transparent":this.backgroundColor;e.backgroundColor=i||o||n.defaultValue||"#ffffff"},t.prototype.getCssRoot=function(t){return new t$().append(e.prototype.getCssRoot.call(this,t)).append(t.small,"300"===this.signatureWidth.toString()).toString()},t.prototype.getFormat=function(){return"jpeg"===this.dataFormat?"image/jpeg":"svg"===this.dataFormat?"image/svg+xml":""},t.prototype.updateValue=function(){if(this.signaturePad){var e=this.signaturePad.toDataURL(this.getFormat());this.valueIsUpdatingInternally=!0,this.value=e,this.valueIsUpdatingInternally=!1}},t.prototype.getType=function(){return"signaturepad"},t.prototype.afterRenderQuestionElement=function(t){t&&(!this.isDesignMode&&this.initSignaturePad(t),this.element=t),e.prototype.afterRenderQuestionElement.call(this,t)},t.prototype.beforeDestroyQuestionElement=function(e){e&&this.destroySignaturePad(e)},t.prototype.themeChanged=function(e){this.signaturePad&&this.updateColors(this.signaturePad)},t.prototype.resizeCanvas=function(){this.canvas.width=this.containerWidth,this.canvas.height=this.containerHeight},t.prototype.scaleCanvas=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!1);var r=this.canvas,n=r.offsetWidth/this.containerWidth;(this.scale!=n||t)&&(this.scale=n,r.style.width=this.renderedCanvasWidth,this.resizeCanvas(),this.signaturePad.minWidth=this.penMinWidth*n,this.signaturePad.maxWidth=this.penMaxWidth*n,r.getContext("2d").scale(1/n,1/n),e&&this.loadPreview(this.value))},t.prototype.fromUrl=function(e){var t,r=this;if(this.isFileLoading=!0,"string"==typeof(t=e)?/^data:((?:\w+\/(?:(?!;).)+)?)((?:;[^;]+?)*),(.+)$/.test(t):null)this.fromDataUrl(e),this.isFileLoading=!1;else{var n=new Image;n.crossOrigin="anonymous",n.src=e,n.onload=function(){if(r.canvas){var e=eD.createElement("canvas");e.width=r.containerWidth,e.height=r.containerHeight,e.getContext("2d").drawImage(n,
10,0);var t=e.toDataURL(r.getFormat());r.fromDataUrl(t)}r.isFileLoading=!1},n.onerror=function(){r.isFileLoading=!1}}},t.prototype.fromDataUrl=function(e){this._loadedData=e,this.signaturePad&&this.signaturePad.fromDataURL(e,{width:this.canvas.width*this.scale,height:this.canvas.height*this.scale})},Object.defineProperty(t.prototype,"loadedData",{get:function(){return this._loadedData},enumerable:!1,configurable:!0}),t.prototype.loadPreview=function(e){var t=this;if(!e){this.signaturePad&&this.canvas&&(this.canvas.getContext("2d").clearRect(0,0,this.canvas.width*this.scale,this.canvas.height*this.scale),this.signaturePad.clear()),this.valueWasChangedFromLastUpload=!1;return}if(this.storeDataAsText)this.fromDataUrl(e);else if(this.loadedData)this.fromDataUrl(this.loadedData);else{var r=e?[e]:[];this._previewLoader&&this._previewLoader.dispose(),this.isFileLoading=!0,this._previewLoader=new sG(this,function(r,n){"success"===r&&n&&n.length>0&&n[0].content?(t.fromDataUrl(n[0].content),t.isFileLoading=!1):"skipped"===r&&t.fromUrl(e),t._previewLoader.dispose(),t._previewLoader=void 0}),this._previewLoader.load(r)}},t.prototype.onChangeQuestionValue=function(t){e.prototype.onChangeQuestionValue.call(this,t),!this.isLoadingFromJson&&(this._loadedData=void 0,this.loadPreview(t))},t.prototype.onSurveyLoad=function(){e.prototype.onSurveyLoad.call(this),this.loadPreview(this.value)},t.prototype.initSignaturePad=function(e){var t=this,r=e.getElementsByTagName("canvas")[0];this.canvas=r,this.resizeCanvas();var n=new au(r,{backgroundColor:"#ffffff"});this.signaturePad=n,this.isInputReadOnly&&n.off(),this.readOnlyChangedCallback=function(){t.isInputReadOnly?n.off():n.on()},this.updateColors(n),n.addEventListener("beginStroke",function(){t.scaleCanvas(),t.isDrawingValue=!0,r.focus()},{once:!1}),n.addEventListener("endStroke",function(){t.isDrawingValue=!1,t.storeDataAsText?t.updateValue():t.valueWasChangedFromLastUpload=!0},{once:!1}),this.updateValueHandler(),this.readOnlyChangedCallback();var o=function(e,r){("signatureWidth"===r.name||"signatureHeight"===r.name)&&!t.valueIsUpdatingInternally&&t.updateValueHandler()};this.onPropertyChanged.add(o),this.signaturePad.propertyChangedHandler=o},t.prototype.destroySignaturePad=function(e){this.signaturePad&&(this.onPropertyChanged.remove(this.signaturePad.propertyChangedHandler),this.signaturePad.off()),this.readOnlyChangedCallback=null,this.signaturePad=null},Object.defineProperty(t.prototype,"dataFormat",{get:function(){return this.getPropertyValue("dataFormat")},set:function(e){this.setPropertyValue("dataFormat",ad(e))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureWidth",{get:function(){return this.getPropertyValue("signatureWidth")},set:function(e){this.setPropertyValue("signatureWidth",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"signatureHeight",{get:function(){return this.getPropertyValue("signatureHeight")},set:function(e){this.setPropertyValue("signatureHeight",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerHeight",{get:function(){return this.signatureHeight||200},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerWidth",{get:function(){return this.signatureWidth||300},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedCanvasWidth",{get:function(){return this.signatureAutoScaleEnabled?"100%":this.containerWidth+"px"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPropertyValue("height",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowClear",{get:function(){return this.getPropertyValue("allowClear")},set:function(e){this.setPropertyValue("allowClear",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canShowClearButton",{get:function(){var e=!this.nothingIsDrawn(),t=this.isUploading;return!this.isInputReadOnly&&this.allowClear&&e&&!t},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"penColor",{get:function(){return this.getPropertyValue("penColor")}
vendor: 10,597 bytes, line 1
1,set:function(e){this.setPropertyValue("penColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundColor",{get:function(){return this.getPropertyValue("backgroundColor")},set:function(e){this.setPropertyValue("backgroundColor",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"backgroundImage",{get:function(){return this.getPropertyValue("backgroundImage")},set:function(e){this.setPropertyValue("backgroundImage",e),this.signaturePad&&this.updateColors(this.signaturePad)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clearButtonCaption",{get:function(){return this.getLocalizationString("clearCaption")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locRenderedPlaceholder",{get:function(){return this.isReadOnly?this.locPlaceholderReadOnly:this.locPlaceholder},enumerable:!1,configurable:!0}),t.prototype.nothingIsDrawn=function(){var e=this.isDrawingValue,t=this.isEmpty(),r=this.isUploading,n=this.valueWasChangedFromLastUpload;return!e&&t&&!r&&!n},t.prototype.needShowPlaceholder=function(){return this.showPlaceholder&&this.nothingIsDrawn()},t.prototype.onBlurCore=function(t){if(e.prototype.onBlurCore.call(this,t),!this.storeDataAsText&&!this.element.contains(t.relatedTarget)){var r,n,o;if(!!this.valueWasChangedFromLastUpload)this.uploadFiles([(r=this.signaturePad.toDataURL(this.getFormat()),n=this.name+"."+ad(this.dataFormat),o=this.getFormat(),new File([new Uint8Array(atob(r.split(",")[1]).split("").map(function(e){return e.charCodeAt(0)})).buffer],n,{type:o}))]),this.valueWasChangedFromLastUpload=!1}},t.prototype.uploadResultItemToValue=function(e){return e.content},t.prototype.setValueFromResult=function(e){this.valueIsUpdatingInternally=!0,this.value=(null==e?void 0:e.length)?e.map(function(e){return e.content})[0]:void 0,this.valueIsUpdatingInternally=!1},t.prototype.clearValue=function(t){this.valueWasChangedFromLastUpload=!1,e.prototype.clearValue.call(this,t),this._loadedData=void 0,this.loadPreview(this.value)},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),300===this.signatureWidth&&this.width&&"number"==typeof this.width&&this.width&&(te.warn("Use signatureWidth property to set width for the signature pad"),this.signatureWidth=this.width,this.width=void 0),200===this.signatureHeight&&this.height&&(te.warn("Use signatureHeight property to set width for the signature pad"),this.signatureHeight=this.height,this.height=void 0)},ap([eW({defaultValue:!1})],t.prototype,"isDrawingValue",void 0),ap([eW({defaultValue:!1})],t.prototype,"isReadyForUpload",void 0),ap([eW({defaultValue:!1})],t.prototype,"valueWasChangedFromLastUpload",void 0),ap([eW()],t.prototype,"signatureAutoScaleEnabled",void 0),ap([eW()],t.prototype,"penMinWidth",void 0),ap([eW()],t.prototype,"penMaxWidth",void 0),ap([eW({})],t.prototype,"showPlaceholder",void 0),ap([eW({localizable:{defaultStr:"signaturePlaceHolder"}})],t.prototype,"placeholder",void 0),ap([eW({localizable:{defaultStr:"signaturePlaceHolderReadOnly"}})],t.prototype,"placeholderReadOnly",void 0),t}(sW);function ad(e){return!e&&(e="png"),"jpeg"!==(e=e.replace("image/","").replace("+xml",""))&&"svg"!==e&&(e="png"),e}e6.addClass("signaturepad",[{name:"signatureWidth:number",category:"general",default:300},{name:"signatureHeight:number",category:"general",default:200},{name:"signatureAutoScaleEnabled:boolean",category:"general",default:!1},{name:"penMinWidth:number",category:"general",default:.5},{name:"penMaxWidth:number",category:"general",default:2.5},{name:"height:number",category:"general",visible:!1},{name:"allowClear:boolean",category:"general",default:!0},{name:"showPlaceholder:boolean",category:"general",default:!0},{name:"placeholder:text",serializationProperty:"locPlaceholder",category:"general",dependsOn:"showPlaceholder",visibleIf:function(e){return e.showPlaceholder}},{name:"placeholderReadOnly:text",serializationProperty:"locPlaceholderReadOnly",category:"general",dependsOn:"showPlaceholder",visibleIf:function(e){return e.showPlaceholder}},{name:"backgroundImage:file",category:"general"},{name:"penColor:color",category:"general"},{name:"backgroundColor:color",category:"general"},{name:"dataFormat",category:"general",default:"png",choices:[{value:"png",text:"PNG"},{value:"jpeg",text:"JPEG"},{value:"svg",text:"SVG"}],onSettingValue:function(e,t){return ad(t)}},{name:"defaultValue",visible:!1},{name:"correctAnswer",visible:!1},{name:"storeDataAsText:boolean",default:!0},{name:"waitForUpload:boolean",default:!1}],function(){return new ah("")},"question"),n6.Instance.registerQuestion("signaturepad",function(e){return new ah(e)});var af=(ev=function(e,t){return(ev=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ev(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),ag=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},am=function(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e},ay=function(e){function t(t,r,n){var o=e.call(this,n)||this;return o.data=t,o.panelItem=r,o.variableName=n,o.sharedQuestions={},o}return af(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.panelItem.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelItem.panel},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelIndex",{get:function(){return this.data?this.data.getItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelIndex",{get:function(){return this.data?this.data.getVisibleItemIndex(this.panelItem):-1},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.panelItem.getAllValues()},t.prototype.getQuestionByName=function(t){var r=e.prototype.getQuestionByName.call(this,t);if(r)return r;var n=this.panelIndex,o=(r=n>-1?this.data.getSharedQuestionFromArray(t,n):void 0)?r.name:t;return this.sharedQuestions[o]=t,r},t.prototype.getQuestionDisplayText=function(t){var r=this.sharedQuestions[t.name];if(!r)return e.prototype.getQuestionDisplayText.call(this,t);var n=this.panelItem.getValue(r);return t.getDisplayValue(!0,n)},t.prototype.onCustomProcessText=function(e){if(e.name==av.IndexVariableName){var r=this.panelIndex;if(r>-1)return e.isExists=!0,e.value=r+1,!0}if(e.name==av.VisibleIndexVariableName){var r=this.visiblePanelIndex;if(r>-1)return e.isExists=!0,e.value=r+1,!0}if(0==e.name.toLowerCase().indexOf(av.ParentItemVariableName+".")){var n=this.data;if(n&&n.parentQuestion&&n.parent&&n.parent.data){var o=new t(n.parentQuestion,n.parent.data,av.ItemVariableName),i=av.ItemVariableName+e.name.substring(av.ParentItemVariableName.length),s=o.processValue(i,e.returnDisplayValue);e.isExists=s.isExists,e.value=s.value}return!0}return!1},t}(nZ),ab=function(e){function t(t){return e.call(this,t)||this}return af(t,e),t}(ra),av=function(){function e(t,r){this.data=t,this.panelValue=r,this.textPreProcessor=new ay(t,this,e.ItemVariableName),this.setSurveyImpl()}return Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelValue},enumerable:!1,configurable:!0}),e.prototype.setSurveyImpl=function(){this.panel.setSurveyImpl(this)},e.prototype.getValue=function(e){return this.getAllValues()[e]},e.prototype.setValue=function(t,r){var n=this.data.getPanelItemData(this),o=n?n[t]:void 0;if(!eA.isTwoValueEquals(r,o,!1,!0,!1)){this.data.setPanelItemData(this,t,eA.getUnbindValue(r));for(var i=this.panel.questions,s=e.ItemVariableName+"."+t,a=0;a<i.length;a++){var l=i[a];l.getValueName()!==t&&l.checkBindings(t,r),l.runTriggers(s,r)}}},e.prototype.getVariable=function(e){},e.prototype.setVariable=function(e,t){},e.prototype.getComment=function(e){var t=this.getValue(e+r9.commentSuffix);return t||""},e.prototype.setComment=function(e,t,r){this.setValue(e+r9.commentSuffix,t)},e.prototype.findQuestionByName=function(t){if(t){var r=e.ItemVariableName+".";if(0===t.indexOf(r))return this.panel.getQuestionByName(t.substring(r.length));var n=this.getSurvey();return n?n.getQuestionByName(t):null}},e.prototype.getEditingSurveyElement=function(){},e.prototype.getAllValues=function(){return this.data.getPanelItemData(this)},e.prototype.getFilteredValues=function(){var t={},r=this.data&&this.data.getRootData()?this.data.getRootData().getFilteredValues():{};for(var n in r)t[n]=r[n];if(t[e.ItemVariableName]=this.getAllValues(),this.data){var o=e.IndexVariableName,i=e.VisibleIndexVariableName;delete t[o],delete t[i],t[o.toLowerCase()]=this.data.getItemIndex(this),t[i.toLowerCase()]=this.data.getVisibleItemIndex(this);var s=this.data;s&&s.parentQuestion&&s.parent&&(t[e.ParentItemVariableName]=s.parent.getValue())}return t},e.prototype.getFilteredProperties=function(){return this.data&&this.data.getRootData()?this.data.getRootData().getFilteredProperties():{survey:this.getSurvey()}},e.prototype.getSurveyData=function(){return this},e.prototype.getSurvey=function(){return this.data?this.data.getSurvey():null},e.prototype.getTextProcessor=function(){return this.textPreProcessor},e.ItemVariableName="panel",e.ParentItemVariableName="parentpanel",e.IndexVariableName="panelIndex",e.VisibleIndexVariableName="visiblePanelIndex",e}(),aC=function(){function e(e){this.data=e}return e.prototype.getSurveyData=function(){return null},e.prototype.getSurvey=function(){return this.data.getSurvey()},e.prototype.getTextProcessor=function(){return null},e}(),ax=function(e){function t(t){var r=e.call(this,t)||this;return r._renderedPanels=[],r.isPanelsAnimationRunning=!1,r.isAddingNewPanels=!1,r.isSetPanelItemData={},r.createNewArray("panels",function(e){r.onPanelAdded(e)},function(e){r.onPanelRemoved(e)}),r.createNewArray("visiblePanels"),r.templateValue=r.createAndSetupNewPanelObject(),r.template.renderWidth="100%",r.template.selectedElementInDesign=r,r.template.addElementCallback=function(e){r.addOnPro
1pertyChangedCallback(e),r.rebuildPanels()},r.template.removeElementCallback=function(){r.rebuildPanels()},r.createLocalizableString("confirmDeleteText",r,!1,"confirmDelete"),r.createLocalizableString("keyDuplicationError",r,!1,!0),r.createLocalizableString("panelAddText",r,!1,"addPanel"),r.createLocalizableString("panelRemoveText",r,!1,"removePanel"),r.createLocalizableString("panelPrevText",r,!1,"pagePrevText"),r.createLocalizableString("panelNextText",r,!1,"pageNextText"),r.createLocalizableString("noEntriesText",r,!1,"noEntriesText"),r.createLocalizableString("templateTabTitle",r,!0,"panelDynamicTabTextFormat"),r.createLocalizableString("tabTitlePlaceholder",r,!0,"tabTitlePlaceholder"),r.registerPropertyChangedHandlers(["panelsState"],function(){r.setPanelsState()}),r.registerPropertyChangedHandlers(["newPanelPosition","displayMode","showProgressBar"],function(){r.updateFooterActions()}),r.registerPropertyChangedHandlers(["allowAddPanel"],function(){r.updateNoEntriesTextDefaultLoc()}),r.registerPropertyChangedHandlers(["minPanelCount"],function(){r.onMinPanelCountChanged()}),r.registerPropertyChangedHandlers(["maxPanelCount"],function(){r.onMaxPanelCountChanged()}),r}return af(t,e),Object.defineProperty(t.prototype,"isCompositeQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasSingleInput",{get:function(){return!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isContainer",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.getFirstQuestionToFocus=function(e){for(var t=0;t<this.visiblePanelsCore.length;t++){var r=this.visiblePanelsCore[t].getFirstQuestionToFocus(e);if(r)return r}return this.showAddPanelButton&&(!e||this.currentErrorCount>0)?this:null},t.prototype.getFirstInputElementId=function(){return this.showAddPanelButton?this.addButtonId:e.prototype.getFirstInputElementId.call(this)},t.prototype.setSurveyImpl=function(t,r){e.prototype.setSurveyImpl.call(this,t,r),this.setTemplatePanelSurveyImpl(),this.setPanelsSurveyImpl()},t.prototype.assignOnPropertyChangedToTemplate=function(){for(var e=this.template.elements,t=0;t<e.length;t++)this.addOnPropertyChangedCallback(e[t])},t.prototype.addOnPropertyChangedCallback=function(e){var t=this;e.isQuestion&&e.setParentQuestion(this),e.onPropertyChanged.add(function(e,r){t.onTemplateElementPropertyChanged(e,r)}),e.isPanel&&(e.addElementCallback=function(e){t.addOnPropertyChangedCallback(e)})},t.prototype.onTemplateElementPropertyChanged=function(e,t){if(!this.isLoadingFromJson&&!this.useTemplatePanel&&0!=this.panelsCore.length){if(e6.findProperty(e.getType(),t.name)){for(var r=this.panelsCore,n=0;n<r.length;n++){var o=r[n].getQuestionByName(e.name);o&&o[t.name]!==t.newValue&&(o[t.name]=t.newValue)}}}},Object.defineProperty(t.prototype,"useTemplatePanel",{get:function(){return this.isDesignMode&&!this.isContentElement},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"paneldynamic"},t.prototype.clearOnDeletingContainer=function(){this.panelsCore.forEach(function(e){e.clearOnDeletingContainer()})},Object.defineProperty(t.prototype,"isAllowTitleLeft",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.removeElement=function(e){return this.template.removeElement(e)},Object.defineProperty(t.prototype,"template",{get:function(){return this.templateValue},enumerable:!1,configurable:!0}),t.prototype.getPanel=function(){return this.template},Object.defineProperty(t.prototype,"templateElements",{get:function(){return this.template.elements},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitle",{get:function(){return this.template.title},set:function(e){this.template.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTitle",{get:function(){return this.template.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTabTitle",{get:function(){return this.locTemplateTabTitle.text},set:function(e){this.locTemplateTabTitle.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateTabTitle",{get:function(){return this.getLocalizableString("templateTabTitle")}
vendor: 4,099 bytes, line 1
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabTitlePlaceholder",{get:function(){return this.locTabTitlePlaceholder.text},set:function(e){this.locTabTitlePlaceholder.text=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTabTitlePlaceholder",{get:function(){return this.getLocalizableString("tabTitlePlaceholder")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateDescription",{get:function(){return this.template.description},set:function(e){this.template.description=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTemplateDescription",{get:function(){return this.template.locDescription},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateVisibleIf",{get:function(){return this.getPropertyValue("templateVisibleIf")},set:function(e){this.setPropertyValue("templateVisibleIf",e),this.template.visibleIf=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"items",{get:function(){for(var e=[],t=0;t<this.panelsCore.length;t++)e.push(this.panelsCore[t].data);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.panelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanels",{get:function(){return this.buildPanelsFirstTime(this.canBuildPanels),this.visiblePanelsCore},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsCore",{get:function(){return this.getPropertyValue("panels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelsCore",{get:function(){return this.getPropertyValue("visiblePanels")},enumerable:!1,configurable:!0}),t.prototype.onPanelAdded=function(e){if(this.onPanelRemovedCore(e),e.visible){for(var t=0,r=this.panelsCore,n=0;n<r.length&&r[n]!==e;n++)r[n].visible&&t++;this.visiblePanelsCore.splice(t,0,e),this.addTabFromToolbar(e,t),!this.currentPanel&&(this.currentPanel=e),this.updateRenderedPanels()}},t.prototype.onPanelRemoved=function(e){var t=this.onPanelRemovedCore(e);if(this.currentPanel===e){var r=this.visiblePanelsCore;t>=r.length&&(t=r.length-1),this.currentPanel=t>=0?r[t]:null}this.updateRenderedPanels()},t.prototype.onPanelRemovedCore=function(e){var t=this.visiblePanelsCore,r=t.indexOf(e);return r>-1&&(t.splice(r,1),this.removeTabFromToolbar(e)),r},Object.defineProperty(t.prototype,"currentIndex",{get:function(){return this.isRenderModeList?-1:this.useTemplatePanel?0:this.visiblePanelsCore.indexOf(this.currentPanel)},set:function(e){!(e<0)&&!(this.visiblePanelCount<1)&&(e>=this.visiblePanelCount&&(e=this.visiblePanelCount-1),this.currentPanel=this.visiblePanelsCore[e])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentPanel",{get:function(){if(this.isDesignMode)return this.template;if(this.isRenderModeList||this.useTemplatePanel)return null;var e=this.getPropertyValue("currentPanel",null);return!e&&this.visiblePanelCount>0&&(e=this.visiblePanelsCore[0],this.currentPanel=e),e},set:function(e){if(!this.isRenderModeList&&!this.useTemplatePanel){var t=this.getPropertyValue("currentPanel"),r=e?this.visiblePanelsCore.indexOf(e):-1;(!e||!(r<0))&&e!==t&&(t&&t.onHidingContent(),this.setPropertyValue("currentPanel",e),this.updateRenderedPanels(),this.updateFooterActions(),this.updateTabToolbarItemsPressedState(),this.fireCallback(this.currentIndexChangedCallback),r>-1&&this.survey&&this.survey.dynamicPanelCurrentIndexChanged(this,{panel:e,visiblePanelIndex:r}))}},enumerable:!1,configurable:!0}),t.prototype.updateRenderedPanels=function(){this.isRenderModeList?this.renderedPanels=[].concat(this.visiblePanels):this.currentPanel?this.renderedPanels=[this.currentPanel]:this.renderedPanels=[]},Object.defineProperty(t.prototype,"renderedPanels",{get:function(){return this._renderedPanels},set:function(e){0==this.renderedPanels.length||0==e.length?(this.blockAnimations(),this.panelsAnimation.sync(e),this.releaseAnimations()):(this.isPanelsAnimationRunning=!0,this.panelsAnimation.sync(e))}
vendor: 4,197 bytes, line 1
1,enumerable:!1,configurable:!0}),t.prototype.getPanelsAnimationOptions=function(){var e=this,t=function(){if(e.isRenderModeList)return"";var t=new t$,r=!1,n=e.renderedPanels.filter(function(t){return t!==e.currentPanel})[0],o=e.visiblePanels.indexOf(n);return o<0&&(r=!0,o=e.removedPanelIndex),t.append("sv-pd-animation-adding",!!e.focusNewPanelCallback).append("sv-pd-animation-removing",r).append("sv-pd-animation-left",o<=e.currentIndex).append("sv-pd-animation-right",o>e.currentIndex).toString()};return{getRerenderEvent:function(){return e.onElementRerendered},getAnimatedElement:function(t){var r,n;if(t&&e.cssContent){var o=r$(e.cssContent);return null===(n=null===(r=e.getWrapperElement())||void 0===r?void 0:r.querySelector(":scope "+o+" #"+t.id))||void 0===n?void 0:n.parentElement}},getEnterOptions:function(){return{onBeforeRunAnimation:function(t){if(e.focusNewPanelCallback){var r=e.isRenderModeList?t:t.parentElement;rw.ScrollElementToViewCore(r,!1,!1,{behavior:"smooth"})}!e.isRenderModeList&&t.parentElement?r2(t.parentElement,{heightTo:t.offsetHeight+"px"}):r5(t)},onAfterRunAnimation:function(e){r4(e),e.parentElement&&r4(e.parentElement)},cssClass:new t$().append(e.cssClasses.panelWrapperEnter).append(t()).toString()}},getLeaveOptions:function(){return{onBeforeRunAnimation:function(t){!e.isRenderModeList&&t.parentElement?r2(t.parentElement,{heightFrom:t.offsetHeight+"px"}):r5(t)},onAfterRunAnimation:function(e){r4(e),e.parentElement&&r4(e.parentElement)},cssClass:new t$().append(e.cssClasses.panelWrapperLeave).append(t()).toString()}},isAnimationEnabled:function(){return e.animationAllowed&&!!e.getWrapperElement()}}},t.prototype.disablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.blockAnimations()})},t.prototype.enablePanelsAnimations=function(){this.panelsCore.forEach(function(e){e.releaseAnimations()})},t.prototype.updatePanelsAnimation=function(){var e=this;this._panelsAnimations=new(this.isRenderModeList?ry:rb)(this.getPanelsAnimationOptions(),function(t,r){e._renderedPanels=t,!r&&(e.isPanelsAnimationRunning=!1,e.focusNewPanel())},function(){return e._renderedPanels})},Object.defineProperty(t.prototype,"panelsAnimation",{get:function(){return!this._panelsAnimations&&this.updatePanelsAnimation(),this._panelsAnimations},enumerable:!1,configurable:!0}),t.prototype.onHidingContent=function(){e.prototype.onHidingContent.call(this),this.currentPanel?this.currentPanel.onHidingContent():this.visiblePanelsCore.forEach(function(e){return e.onHidingContent()})},Object.defineProperty(t.prototype,"confirmDelete",{get:function(){return this.getPropertyValue("confirmDelete")},set:function(e){this.setPropertyValue("confirmDelete",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyName",{get:function(){return this.getPropertyValue("keyName","")},set:function(e){this.setPropertyValue("keyName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"confirmDeleteText",{get:function(){return this.getLocalizableStringText("confirmDeleteText")},set:function(e){this.setLocalizableStringText("confirmDeleteText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locConfirmDeleteText",{get:function(){return this.getLocalizableString("confirmDeleteText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"keyDuplicationError",{get:function(){return this.getLocalizableStringText("keyDuplicationError")},set:function(e){this.setLocalizableStringText("keyDuplicationError",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locKeyDuplicationError",{get:function(){return this.getLocalizableString("keyDuplicationError")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelPrevText",{get:function(){return this.getLocalizableStringText("panelPrevText")},set:function(e){this.setLocalizableStringText("panelPrevText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelPrevText",{get:function(){return this.getLocalizableString("panelPrevText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelNextText",{get:function(){return this.getLocalizableStringText("panelNextText")}
vendor: 37,212 bytes, line 1
1,set:function(e){this.setLocalizableStringText("panelNextText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelNextText",{get:function(){return this.getLocalizableString("panelNextText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelAddText",{get:function(){return this.getLocalizableStringText("panelAddText")},set:function(e){this.setLocalizableStringText("panelAddText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelAddText",{get:function(){return this.getLocalizableString("panelAddText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelRemoveText",{get:function(){return this.getLocalizableStringText("panelRemoveText")},set:function(e){this.setLocalizableStringText("panelRemoveText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locPanelRemoveText",{get:function(){return this.getLocalizableString("panelRemoveText")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressTopShowing",{get:function(){return"carousel"==this.displayMode&&("top"===this.progressBarLocation||"topBottom"===this.progressBarLocation)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProgressBottomShowing",{get:function(){return"carousel"==this.displayMode&&("bottom"===this.progressBarLocation||"topBottom"===this.progressBarLocation)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonVisible",{get:function(){return this.currentIndex>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPrevButtonShowing",{get:function(){return this.isPrevButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonVisible",{get:function(){return this.currentIndex>=0&&this.currentIndex<this.visiblePanelCount-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isNextButtonShowing",{get:function(){return this.isNextButtonVisible},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRangeShowing",{get:function(){return this.showRangeInProgress&&this.currentIndex>=0&&this.visiblePanelCount>1},enumerable:!1,configurable:!0}),t.prototype.getElementsInDesign=function(e){return void 0===e&&(e=!1),e?[this.template]:this.templateElements},t.prototype.prepareValueForPanelCreating=function(){this.addingNewPanelsValue=this.value,this.isAddingNewPanels=!0,this.isNewPanelsValueChanged=!1},t.prototype.setValueAfterPanelsCreating=function(){this.isAddingNewPanels=!1,this.isNewPanelsValueChanged&&(this.isValueChangingInternally=!0,this.value=this.addingNewPanelsValue,this.isValueChangingInternally=!1)},t.prototype.getValueCore=function(){return this.isAddingNewPanels?this.addingNewPanelsValue:e.prototype.getValueCore.call(this)},t.prototype.setValueCore=function(t){this.isAddingNewPanels?(this.isNewPanelsValueChanged=!0,this.addingNewPanelsValue=t):e.prototype.setValueCore.call(this,t)},t.prototype.setIsMobile=function(t){e.prototype.setIsMobile.call(this,t),(this.panelsCore||[]).forEach(function(e){return e.getQuestions(!0).forEach(function(e){e.setIsMobile(t)})})},t.prototype.themeChanged=function(t){e.prototype.themeChanged.call(this,t),(this.panelsCore||[]).forEach(function(e){return e.getQuestions(!0).forEach(function(e){e.themeChanged(t)})})},Object.defineProperty(t.prototype,"panelCount",{get:function(){return!this.canBuildPanels||this.wasNotRenderedInSurvey?this.getPropertyValue("panelCount"):this.panelsCore.length},set:function(e){if(!(e<0)){if(!this.canBuildPanels||this.wasNotRenderedInSurvey){this.setPropertyValue("panelCount",e);return}if(e!=this.panelsCore.length&&!this.useTemplatePanel){this.updateBindings("panelCount",e),this.prepareValueForPanelCreating();for(var t=this.panelCount;t<e;t++){var r=this.createNewPanel();this.panelsCore.push(r),"list"==this.displayMode&&"default"!=this.panelsState&&("expanded"===this.panelsState?r.expand():r.title&&r.collapse())}e<this.panelCount&&this.panelsCore.splice(e,this.panelCount-e),this.disablePanelsAnimations(),this.setValueAfterPanelsCreating(),this.setValueBasedOnPanelCount(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.enablePanelsAnimations()}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"visiblePanelCount",{get:function(){return this.visiblePanels.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelsState",{get:function(){return this.getPropertyValue("panelsState")},set:function(e){this.setPropertyValue("panelsState",e)},enumerable:!1,configurable:!0}),t.prototype.setTemplatePanelSurveyImpl=function(){this.template.setSurveyImpl(this.useTemplatePanel?this.surveyImpl:new aC(this))},t.prototype.setPanelsSurveyImpl=function(){for(var e=0;e<this.panelsCore.length;e++){var t=this.panelsCore[e];t!=this.template&&t.setSurveyImpl(t.data)}},t.prototype.setPanelsState=function(){if(!this.useTemplatePanel&&"list"==this.displayMode&&this.templateTitle)for(var e=0;e<this.panelsCore.length;e++){var t=this.panelsState;"firstExpanded"===t&&(t=0===e?"expanded":"collapsed"),this.panelsCore[e].state=t}},t.prototype.setValueBasedOnPanelCount=function(){var e=this.value;if((!e||!Array.isArray(e))&&(e=[]),e.length!=this.panelCount){for(var t=e.length;t<this.panelCount;t++){var r=this.panels[t].getValue(),n=eA.isValueEmpty(r)?{}:r;e.push(n)}e.length>this.panelCount&&e.splice(this.panelCount,e.length-this.panelCount),this.isValueChangingInternally=!0,this.value=e,this.isValueChangingInternally=!1}},Object.defineProperty(t.prototype,"minPanelCount",{get:function(){return this.getPropertyValue("minPanelCount")},set:function(e){e<0&&(e=0),this.setPropertyValue("minPanelCount",e)},enumerable:!1,configurable:!0}),t.prototype.onMinPanelCountChanged=function(){var e=this.minPanelCount;e>this.maxPanelCount&&(this.maxPanelCount=e),this.panelCount<e&&(this.panelCount=e)},Object.defineProperty(t.prototype,"maxPanelCount",{get:function(){return this.getPropertyValue("maxPanelCount")},set:function(e){!(e<=0)&&(e>r9.panel.maxPanelCount&&(e=r9.panel.maxPanelCount),this.setPropertyValue("maxPanelCount",e),this.updateFooterActions())},enumerable:!1,configurable:!0}),t.prototype.onMaxPanelCountChanged=function(){var e=this.maxPanelCount;e<this.minPanelCount&&(this.minPanelCount=e),this.panelCount>e&&(this.panelCount=e),this.updateFooterActions()},Object.defineProperty(t.prototype,"allowAddPanel",{get:function(){return this.getPropertyValue("allowAddPanel")},set:function(e){this.setPropertyValue("allowAddPanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"addButtonId",{get:function(){return this.id+"addPanel"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"newPanelPosition",{get:function(){return this.getPropertyValue("newPanelPosition")},set:function(e){this.setPropertyValue("newPanelPosition",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowRemovePanel",{get:function(){return this.getPropertyValue("allowRemovePanel")},set:function(e){this.setPropertyValue("allowRemovePanel",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateTitleLocation",{get:function(){return this.getPropertyValue("templateTitleLocation")},set:function(e){this.setPropertyValue("templateTitleLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"templateErrorLocation",{get:function(){return this.getPropertyValue("templateErrorLocation")},set:function(e){this.setPropertyValue("templateErrorLocation",e.toLowerCase())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showQuestionNumbers",{get:function(){return this.getPropertyValue("showQuestionNumbers")},set:function(e){this.setPropertyValue("showQuestionNumbers",e),!this.isLoadingFromJson&&this.survey&&this.survey.questionVisibilityChanged(this,this.visible,!0)},enumerable:!1,configurable:!0}),t.prototype.notifySurveyOnChildrenVisibilityChanged=function(){return"onSurvey"===this.showQuestionNumbers},Object.defineProperty(t.prototype,"panelRemoveButtonLocation",{get:function(){return this.getPropertyValue("panelRemoveButtonLocation")},set:function(e){this.setPropertyValue("panelRemoveButtonLocation",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showRangeInProgress",{get:function(){return this.showProgressBar},set:function(e){this.showProgressBar=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderMode",{get:function(){var e=this.displayMode;if("carousel"==e){var t=this.progressBarLocation;if("top"==t)return"progressTop";if("bottom"==t)return"progressBottom";else if("topBottom"==t)return"progressTopBottom"}return e},set:function(e){(e||"").startsWith("progress")?("progressTop"==e?this.progressBarLocation="top":"progressBottom"==e?this.progressBarLocation="bottom":"progressTopBottom"==e&&(this.progressBarLocation="topBottom"),this.displayMode="carousel"):this.displayMode=e},enumerable:!1,configurable:!0}),t.prototype.updatePanelView=function(){this.blockAnimations(),this.updateRenderedPanels(),this.releaseAnimations(),this.updatePanelsAnimation()},Object.defineProperty(t.prototype,"tabAlign",{get:function(){return this.getPropertyValue("tabAlign")},set:function(e){this.setPropertyValue("tabAlign",e),this.isRenderModeTab&&(this.tabbedMenu.containerCss=this.getTabbedMenuCss())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeList",{get:function(){return"list"===this.displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isRenderModeTab",{get:function(){return"tab"===this.displayMode},enumerable:!1,configurable:!0}),t.prototype.setVisibleIndex=function(t){if(!this.isVisible)return 0;for(var r="onSurvey"===this.showQuestionNumbers,n=r?t:0,o=this.isDesignMode?[this.template]:this.visiblePanelsCore,i=0;i<o.length;i++){var s=this.setPanelVisibleIndex(o[i],n,"off"!=this.showQuestionNumbers);r&&(n+=s)}return e.prototype.setVisibleIndex.call(this,r?-1:t),r?n-t:1},t.prototype.setPanelVisibleIndex=function(e,t,r){return r?e.setVisibleIndex(t):(e.setVisibleIndex(-1),0)},Object.defineProperty(t.prototype,"canAddPanel",{get:function(){return!this.isDesignMode&&(!this.isDefaultV2Theme||!!this.legacyNavigation||!!this.isRenderModeList||!(this.currentIndex<this.visiblePanelCount-1)||"next"===this.newPanelPosition)&&this.allowAddPanel&&!this.isReadOnly&&this.panelCount<this.maxPanelCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canRemovePanel",{get:function(){return!this.isDesignMode&&this.allowRemovePanel&&!this.isReadOnly&&this.panelCount>this.minPanelCount},enumerable:!1,configurable:!0}),t.prototype.rebuildPanels=function(){if(!this.isLoadingFromJson){this.prepareValueForPanelCreating();var e,t,r=[];if(this.useTemplatePanel)new av(this,this.template),r.push(this.template);else for(var n=0;n<this.panelCount;n++)this.createNewPanel(),r.push(this.createNewPanel());(e=this.panelsCore).splice.apply(e,am([0,this.panelsCore.length],r)),this.setValueAfterPanelsCreating(),this.setPanelsState(),this.reRunCondition(),this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.updateTabToolbar()}},Object.defineProperty(t.prototype,"defaultPanelValue",{get:function(){return this.getPropertyValue("defaultPanelValue")},set:function(e){this.setPropertyValue("defaultPanelValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultValueFromLastPanel",{get:function(){return this.getPropertyValue("defaultValueFromLastPanel")},set:function(e){this.setPropertyValue("defaultValueFromLastPanel",e)},enumerable:!1,configurable:!0}),t.prototype.isDefaultValueEmpty=function(){return e.prototype.isDefaultValueEmpty.call(this)&&this.isValueEmpty(this.defaultPanelValue)},t.prototype.setDefaultValue=function(){if(this.isValueEmpty(this.defaultPanelValue)||!this.isValueEmpty(this.defaultValue)){e.prototype.setDefaultValue.call(this);return}if(this.isEmpty()&&0!=this.panelCount){for(var t=[],r=0;r<this.panelCount;r++)t.push(this.defaultPanelValue);this.value=t}},Object.defineProperty(t.prototype,"isValueArray",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isEmpty=function(){var e=this.value;if(!e||!Array.isArray(e))return!0;for(var t=0;t<e.length;t++)if(!this.isRowEmpty(e[t]))return!1;return!0},t.prototype.getProgressInfo=function(){return rw.getProgressInfoByElements(this.visiblePanelsCore,this.isRequired)},t.prototype.isRowEmpty=function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.prototype.addPanelUI=function(){if(!this.canAddPanel||!this.canLeaveCurrentPanel())return null;var e=this.addPanel();return"list"===this.displayMode&&"default"!==this.panelsState&&e.expand(),this.focusNewPanelCallback=function(){e.focusFirstQuestion()},!this.isPanelsAnimationRunning&&this.focusNewPanel(),e},t.prototype.focusNewPanel=function(){this.focusNewPanelCallback&&(this.focusNewPanelCallback(),this.focusNewPanelCallback=void 0)},t.prototype.addPanel=function(e){var t=this.currentIndex;return void 0===e&&(e=t<0?this.panelCount:t+1),(e<0||e>this.panelCount)&&(e=this.panelCount),this.updateValueOnAddingPanel(t<0?this.panelCount-1:t,e),!this.isRenderModeList&&(this.currentIndex=e),this.survey&&this.survey.dynamicPanelAdded(this),this.panelsCore[e]},t.prototype.updateValueOnAddingPanel=function(e,t){this.panelCount++;var r=this.value;if(Array.isArray(r)&&r.length===this.panelCount){var n=!1,o=this.panelCount-1;if(t<o){n=!0;var i=r[o];r.splice(o,1),r.splice(t,0,i)}if(!this.isValueEmpty(this.defaultPanelValue)&&(n=!0,this.copyValue(r[t],this.defaultPanelValue)),this.defaultValueFromLastPanel&&r.length>1){var s=e>-1&&e<=o?e:o;n=!0,this.copyValue(r[t],r[s])}n&&(this.value=r)}},t.prototype.canLeaveCurrentPanel=function(){return!("list"!==this.displayMode&&this.currentPanel&&this.currentPanel.hasErrors(!0,!0))},t.prototype.copyValue=function(e,t){for(var r in t)e[r]=t[r]},t.prototype.removePanelUI=function(e){var t=this,r=this.getVisualPanelIndex(e);if(!(r<0)&&!(r>=this.visiblePanelCount)){if(this.canRemovePanel){var n=function(){t.removePanel(r);var e,n=t.visiblePanelCount,o=r>=n?n-1:r,i=0===n?t.addButtonId:o>-1?t.getPanelRemoveButtonId(t.visiblePanels[o]):"";i&&rw.FocusElement(i,!0,null===(e=t.survey)||void 0===e?void 0:e.rootElement)};this.isRequireConfirmOnDelete(e)?rO({message:this.confirmDeleteText,funcOnYes:function(){n()},locale:this.getLocale(),rootElement:this.survey.rootElement,cssClass:this.cssClasses.confirmDialog}):n()}}},t.prototype.getPanelRemoveButtonId=function(e){return e.id+"_remove_button"},t.prototype.isRequireConfirmOnDelete=function(e){if(!this.confirmDelete)return!1;var t=this.getVisualPanelIndex(e);if(t<0||t>=this.visiblePanelCount)return!1;var r=this.visiblePanelsCore[t].getValue();return!this.isValueEmpty(r)&&(this.isValueEmpty(this.defaultPanelValue)||!this.isTwoValueEquals(r,this.defaultPanelValue))},t.prototype.goToNextPanel=function(){return!(this.currentIndex<0)&&!!this.canLeaveCurrentPanel()&&(this.currentIndex++,!0)},t.prototype.goToPrevPanel=function(){!(this.currentIndex<0)&&this.currentIndex--},t.prototype.removePanel=function(e){var t=this.getVisualPanelIndex(e);if(t<0||t>=this.visiblePanelCount)return;this.removedPanelIndex=t;var r=this.visiblePanelsCore[t],n=this.panelsCore.indexOf(r);if(!(n<0)&&(!this.survey||!!this.survey.dynamicPanelRemoving(this,n,r))){this.panelsCore.splice(n,1),this.updateBindings("panelCount",this.panelCount);var e=this.value;e&&Array.isArray(e)&&!(n>=e.length)&&(this.isValueChangingInternally=!0,e.splice(n,1),this.value=e,this.updateFooterActions(),this.fireCallback(this.panelCountChangedCallback),this.survey&&this.survey.dynamicPanelRemoved(this,n,r),this.isValueChangingInternally=!1)}},t.prototype.getVisualPanelIndex=function(e){if(eA.isNumber(e))return e;for(var t=this.visiblePanelsCore,r=0;r<t.length;r++)if(t[r]===e||t[r].data===e)return r;return -1},t.prototype.getPanelVisibleIndexById=function(e){for(var t=this.visiblePanelsCore,r=0;r<t.length;r++)if(t[r].id===e)return r;return -1},t.prototype.locStrsChanged=function(){e.prototype.locStrsChanged.call(this);for(var t=this.panelsCore,r=0;r<t.length;r++)t[r].locStrsChanged();this.tabbedMenu&&this.tabbedMenu.locStrsChanged()},t.prototype.clearIncorrectValues=function(){for(var e=0;e<this.panelsCore.length;e++)this.clearIncorrectValuesInPanel(e)},t.prototype.clearErrors=function(){e.prototype.clearErrors.call(this);for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].clearErrors()},t.prototype.getQuestionFromArray=function(e,t){return t<0||t>=this.panelsCore.length?null:this.panelsCore[t].getQuestionByName(e)},t.prototype.clearIncorrectValuesInPanel=function(e){var t=this.panelsCore[e];t.clearIncorrectValues();var r=this.value,n=r&&e<r.length?r[e]:null;if(n){var o=!1;for(var i in n){if(!(this.getSharedQuestionFromArray(i,e)||t.getQuestionByName(i)))!(this.iscorrectValueWithPostPrefix(t,i,r9.commentSuffix)||this.iscorrectValueWithPostPrefix(t,i,r9.matrix.totalsSuffix))&&(delete n[i],o=!0)}o&&(r[e]=n,this.value=r)}},t.prototype.iscorrectValueWithPostPrefix=function(e,t,r){return t.indexOf(r)===t.length-r.length&&!!e.getQuestionByName(t.substring(0,t.indexOf(r)))},t.prototype.getSharedQuestionFromArray=function(e,t){return this.survey&&this.valueName?this.survey.getQuestionByValueNameFromArray(this.valueName,e,t):null},t.prototype.addConditionObjectsByContext=function(e,t){for(var r=(null==t?void 0:t.isValidator)?t.errorOwner:t,n=!!t&&(!0===t||this.template.questions.indexOf(r)>-1),o=[],i=this.template.questions,s=0;s<i.length;s++)i[s].addConditionObjectsByContext(o,t);for(var a=0;a<r9.panel.maxPanelCountInCondition;a++){for(var l="["+a+"].",u=this.getValueName()+l,c=this.processedTitle+l,s=0;s<o.length;s++)o[s].context?e.push(o[s]):e.push({name:u+o[s].name,text:c+o[s].text,question:o[s].question})}if(n){for(var u=!0===t?this.getValueName()+".":"",c=!0===t?this.processedTitle+".":"",s=0;s<o.length;s++)if(o[s].question!=t){var p={name:u+av.ItemVariableName+"."+o[s].name,text:c+av.ItemVariableName+"."+o[s].text,question:o[s].question};p.context=this,e.push(p)}}},t.prototype.collectNestedQuestionsCore=function(e,t){var r=t?this.visiblePanelsCore:this.panelsCore;Array.isArray(r)&&r.forEach(function(r){r.questions.forEach(function(r){return r.collectNestedQuestions(e,t)})})},t.prototype.getConditionJson=function(t,r){if(void 0===t&&(t=null),void 0===r&&(r=null),!r)return e.prototype.getConditionJson.call(this,t);var n=r,o=r.indexOf(".");o>-1&&(n=r.substring(0,o),r=r.substring(o+1));var i=this.template.getQuestionByName(n);return i?i.getConditionJson(t,r):null},t.prototype.onReadOnlyChanged=function(){var t=this.isReadOnly;this.template.readOnly=t;for(var r=0;r<this.panelsCore.length;r++)this.panelsCore[r].readOnly=t;this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),e.prototype.onReadOnlyChanged.call(this)},t.prototype.updateNoEntriesTextDefaultLoc=function(){var e=this.getLocalizableString("noEntriesText");e&&(e.localizationName=this.isReadOnly||!this.allowAddPanel?"noEntriesReadonlyText":"noEntriesText")},t.prototype.onSurveyLoad=function(){this.template.readOnly=this.isReadOnly,this.template.onSurveyLoad(),this.panelCount<this.minPanelCount&&(this.panelCount=this.minPanelCount),this.panelCount>this.maxPanelCount&&(this.panelCount=this.maxPanelCount),this.buildPanelsFirstTime(),e.prototype.onSurveyLoad.call(this)},t.prototype.buildPanelsFirstTime=function(e){if(void 0===e&&(e=!1),!this.hasPanelBuildFirstTime){if(e||!this.wasNotRenderedInSurvey){if(this.blockAnimations(),this.hasPanelBuildFirstTime=!0,this.isBuildingPanelsFirstTime=!0,this.getPropertyValue("panelCount")>0&&(this.panelCount=this.getPropertyValue("panelCount")),this.useTemplatePanel&&this.rebuildPanels(),this.setPanelsSurveyImpl(),this.setPanelsState(),this.assignOnPropertyChangedToTemplate(),this.survey)for(var t=0;t<this.panelCount;t++)this.survey.dynamicPanelAdded(this);this.updateIsReady(),!this.showAddPanelButton&&this.updateNoEntriesTextDefaultLoc(),this.updateFooterActions(),this.isBuildingPanelsFirstTime=!1,this.releaseAnimations()}}},Object.defineProperty(t.prototype,"showAddPanelButton",{get:function(){return this.allowAddPanel&&!this.isReadOnly},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wasNotRenderedInSurvey",{get:function(){return!this.hasPanelBuildFirstTime&&!this.wasRendered&&!!this.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canBuildPanels",{get:function(){return!this.isLoadingFromJson&&!this.useTemplatePanel},enumerable:!1,configurable:!0}),t.prototype.onFirstRenderingCore=function(){e.prototype.onFirstRenderingCore.call(this),this.buildPanelsFirstTime(),this.template.onFirstRendering();for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].onFirstRendering()},t.prototype.localeChanged=function(){e.prototype.localeChanged.call(this);for(var t=0;t<this.panelsCore.length;t++)this.panelsCore[t].localeChanged()},t.prototype.runCondition=function(t,r){e.prototype.runCondition.call(this,t,r),this.runPanelsCondition(this.panelsCore,t,r)},t.prototype.runTriggers=function(t,r,n){e.prototype.runTriggers.call(this,t,r,n),this.visiblePanelsCore.forEach(function(e){e.questions.forEach(function(e){return e.runTriggers(t,r,n)})})},t.prototype.reRunCondition=function(){this.data&&this.runCondition(this.getDataFilteredValues(),this.getDataFilteredProperties())},t.prototype.runPanelsCondition=function(e,t,r){var n={};t&&t instanceof Object&&(n=JSON.parse(JSON.stringify(t))),this.parentQuestion&&this.parent&&(n[av.ParentItemVariableName]=this.parent.getValue()),this.isValueChangingInternally=!0;for(var o=0;o<e.length;o++){var i=e[o],s=this.getPanelItemData(i.data),a=eA.createCopy(n),l=av.ItemVariableName;a[l]=s,a[av.IndexVariableName.toLowerCase()]=o;var u=eA.createCopy(r);u[l]=i,i.runCondition(a,u)}this.isValueChangingInternally=!1},t.prototype.onAnyValueChanged=function(t,r){e.prototype.onAnyValueChanged.call(this,t,r);for(var n=0;n<this.panelsCore.length;n++)this.panelsCore[n].onAnyValueChanged(t,r),this.panelsCore[n].onAnyValueChanged(av.ItemVariableName,"")},t.prototype.hasKeysDuplicated=function(e,t){void 0===t&&(t=null);for(var r,n=[],o=0;o<this.panelsCore.length;o++)r=this.isValueDuplicated(this.panelsCore[o],n,t,e)||r;return r},t.prototype.updatePanelsContainsErrors=function(){for(var e=this.changingValueQuestion.parent;e;)e.updateContainsErrors(),e=e.parent;this.updateContainsErrors()},t.prototype.hasErrors=function(t,r){if(void 0===t&&(t=!0),void 0===r&&(r=null),this.isValueChangingInternally||this.isBuildingPanelsFirstTime)return!1;var n=!1;if(this.changingValueQuestion){var n=this.changingValueQuestion.hasErrors(t,r);n=this.hasKeysDuplicated(t,r)||n,this.updatePanelsContainsErrors()}else n=this.hasErrorInPanels(t,r);return e.prototype.hasErrors.call(this,t,r)||n},t.prototype.getContainsErrors=function(){var t=e.prototype.getContainsErrors.call(this);if(t)return t;for(var r=this.panelsCore,n=0;n<r.length;n++)if(r[n].containsErrors)return!0;return!1},t.prototype.getIsAnswered=function(){if(!e.prototype.getIsAnswered.call(this))return!1;for(var t=this.visiblePanelsCore,r=0;r<t.length;r++){var n=[];t[r].addQuestionsToList(n,!0);for(var o=0;o<n.length;o++)if(!n[o].isAnswered)return!1}return!0},t.prototype.clearValueOnHidding=function(t){if(!t){if(this.survey&&"none"===this.survey.getQuestionClearIfInvisible("onHidden"))return;this.clearValueInPanelsIfInvisible("onHiddenContainer")}e.prototype.clearValueOnHidding.call(this,t)},t.prototype.clearValueIfInvisible=function(t){void 0===t&&(t="onHidden");var r="onHidden"===t?"onHiddenContainer":t;this.clearValueInPanelsIfInvisible(r),e.prototype.clearValueIfInvisible.call(this,t)},t.prototype.clearValueInPanelsIfInvisible=function(e){for(var t=0;t<this.panelsCore.length;t++){var r=this.panelsCore[t],n=r.questions;this.isSetPanelItemData={};for(var o=0;o<n.length;o++){var i=n[o];(!i.visible||r.isVisible)&&(i.clearValueIfInvisible(e),this.isSetPanelItemData[i.getValueName()]=this.maxCheckCount+1)}}this.isSetPanelItemData={}},t.prototype.getIsRunningValidators=function(){if(e.prototype.getIsRunningValidators.call(this))return!0;for(var t=0;t<this.panelsCore.length;t++){for(var r=this.panelsCore[t].questions,n=0;n<r.length;n++)if(r[n].isRunningValidators)return!0}return!1},t.prototype.getAllErrors=function(){for(var t=e.prototype.getAllErrors.call(this),r=this.visiblePanelsCore,n=0;n<r.length;n++){for(var o=r[n].questions,i=0;i<o.length;i++){var s=o[i].getAllErrors();s&&s.length>0&&(t=t.concat(s))}}return t},t.prototype.getDisplayValueCore=function(e,t){var r=this.getUnbindValue(t);if(!r||!Array.isArray(r))return r;for(var n=0;n<this.panelsCore.length&&n<r.length;n++){var o=r[n];o&&(r[n]=this.getPanelDisplayValue(n,o,e))}return r},t.prototype.getPanelDisplayValue=function(e,t,r){if(!t)return t;for(var n=this.panelsCore[e],o=Object.keys(t),i=0;i<o.length;i++){var s=o[i],a=n.getQuestionByValueName(s);if(!a&&(a=this.getSharedQuestionFromArray(s,e)),a){var l=a.getDisplayValue(r,t[s]);t[s]=l,r&&a.title&&a.title!==s&&(t[a.title]=l,delete t[s])}}return t},t.prototype.hasErrorInPanels=function(e,t){for(var r=!1,n=this.visiblePanels,o=[],i=0;i<n.length;i++)this.setOnCompleteAsyncInPanel(n[i]);for(var s=!!t&&t.focusOnFirstError,a=0;a<n.length;a++){var l=n[a].hasErrors(e,s,t);l=this.isValueDuplicated(n[a],o,t,e)||l,!this.isRenderModeList&&l&&!r&&s&&(this.currentIndex=a),r=l||r}return r},t.prototype.setOnCompleteAsyncInPanel=function(e){for(var t=this,r=e.questions,n=0;n<r.length;n++)r[n].onCompletedAsyncValidators=function(e){t.raiseOnCompletedAsyncValidators()}},t.prototype.isValueDuplicated=function(e,t,r,n){if(!this.keyName)return!1;var o=e.getQuestionByValueName(this.keyName);if(!o||o.isEmpty())return!1;var i=o.value;this.changingValueQuestion&&o!=this.changingValueQuestion&&o.hasErrors(n,r);for(var s=0;s<t.length;s++)if(i==t[s])return n&&o.addError(new nd(this.keyDuplicationError,this)),r&&!r.firstErrorQuestion&&(r.firstErrorQuestion=o),!0;return t.push(i),!1},t.prototype.getPanelActions=function(e){var t=this,r=e.footerActions;return"right"!==this.panelRemoveButtonLocation&&r.push(new ra({id:"remove-panel-"+e.id,component:"sv-paneldynamic-remove-btn",visible:new tB(function(){return[t.canRemovePanel,"collapsed"!==e.state,"right"!==t.panelRemoveButtonLocation].every(function(e){return!0===e})}),data:{question:this,panel:e}})),this.survey&&(r=this.survey.getUpdatedPanelFooterActions(e,r,this)),r},t.prototype.createNewPanel=function(){var e=this,t=this.createAndSetupNewPanelObject(),r=this.template.toJSON();new e3().toObject(r,t),t.renderWidth="100%",t.updateCustomWidgets(),new av(this,t),!this.isDesignMode&&!this.isReadOnly&&!this.isValueEmpty(t.getValue())&&this.runPanelsCondition([t],this.getDataFilteredValues(),this.getDataFilteredProperties());for(var n=t.questions,o=0;o<n.length;o++)n[o].setParentQuestion(this);return this.wasRendered&&(t.onFirstRendering(),t.locStrsChanged()),t.onGetFooterActionsCallback=function(){return e.getPanelActions(t)},t.onGetFooterToolbarCssCallback=function(){return e.cssClasses.panelFooter},t.registerPropertyChangedHandlers(["visible"],function(){t.visible?e.onPanelAdded(t):e.onPanelRemoved(t),e.updateFooterActions()}),t},t.prototype.createAndSetupNewPanelObject=function(){var e=this,t=this.createNewPanelObject();return t.isInteractiveDesignElement=!1,t.setParentQuestion(this),t.onGetQuestionTitleLocation=function(){return e.getTemplateQuestionTitleLocation()},t},t.prototype.getTemplateQuestionTitleLocation=function(){return"default"!=this.templateTitleLocation?this.templateTitleLocation:this.getTitleLocationCore()},t.prototype.getChildErrorLocation=function(t){return"default"!==this.templateErrorLocation?this.templateErrorLocation:e.prototype.getChildErrorLocation.call(this,t)},t.prototype.createNewPanelObject=function(){return e6.createClass("panel")},t.prototype.setPanelCountBasedOnValue=function(){if(!this.isValueChangingInternally&&!this.useTemplatePanel){var e=this.value,t=e&&Array.isArray(e)?e.length:0;0==t&&this.getPropertyValue("panelCount")>0&&(t=this.getPropertyValue("panelCount")),this.settingPanelCountBasedOnValue=!0,this.panelCount=t,this.settingPanelCountBasedOnValue=!1}},t.prototype.setQuestionValue=function(t){if(!this.settingPanelCountBasedOnValue){e.prototype.setQuestionValue.call(this,t,!1),this.setPanelCountBasedOnValue();for(var r=0;r<this.panelsCore.length;r++)this.panelUpdateValueFromSurvey(this.panelsCore[r]);this.updateIsAnswered()}},t.prototype.onSurveyValueChanged=function(t){if(!(void 0===t&&this.isAllPanelsEmpty())){e.prototype.onSurveyValueChanged.call(this,t);for(var r=0;r<this.panelsCore.length;r++)this.panelSurveyValueChanged(this.panelsCore[r]);void 0===t&&this.setValueBasedOnPanelCount(),this.updateIsReady()}},t.prototype.isAllPanelsEmpty=function(){for(var e=0;e<this.panelsCore.length;e++)if(!eA.isValueEmpty(this.panelsCore[e].getValue()))return!1;return!0},t.prototype.panelUpdateValueFromSurvey=function(e){for(var t=e.questions,r=this.getPanelItemData(e.data),n=0;n<t.length;n++){var o=t[n];o.updateValueFromSurvey(r[o.getValueName()]),o.updateCommentFromSurvey(r[o.getValueName()+r9.commentSuffix]),o.initDataUI()}},t.prototype.panelSurveyValueChanged=function(e){for(var t=e.questions,r=this.getPanelItemData(e.data),n=0;n<t.length;n++){var o=t[n];o.onSurveyValueChanged(r[o.getValueName()])}},t.prototype.onSetData=function(){e.prototype.onSetData.call(this),!this.isLoadingFromJson&&this.useTemplatePanel&&(this.setTemplatePanelSurveyImpl(),this.rebuildPanels())},t.prototype.isNewValueCorrect=function(e){return Array.isArray(e)},t.prototype.getItemIndex=function(e){var t=this.items.indexOf(e);return t>-1?t:this.items.length},t.prototype.getVisibleItemIndex=function(e){for(var t=this.visiblePanelsCore,r=0;r<t.length;r++)if(t[r].data===e)return r;return t.length},t.prototype.getPanelItemData=function(e){var t=this.items,r=t.indexOf(e),n=this.value;return(r<0&&Array.isArray(n)&&n.length>t.length&&(r=t.length),r<0||!n||!Array.isArray(n)||n.length<=r)?{}:n[r]},t.prototype.setPanelItemData=function(e,t,r){if(!(this.isSetPanelItemData[t]>this.maxCheckCount)){!this.isSetPanelItemData[t]&&(this.isSetPanelItemData[t]=0),this.isSetPanelItemData[t]++;var n=this.items,o=n.indexOf(e);o<0&&(o=n.length);var i=this.getUnbindValue(this.value);if((!i||!Array.isArray(i))&&(i=[]),i.length<=o)for(var s=i.length;s<=o;s++)i.push({});!i[o]&&(i[o]={});var a=i[o][t];this.isValueEmpty(r)?delete i[o][t]:i[o][t]=r,o>=0&&o<this.panelsCore.length&&(this.changingValueQuestion=this.panelsCore[o].getQuestionByValueName(t));var l={panel:e.panel,name:t,panelIndex:o,panelData:i[o],value:r,oldValue:a};this.survey&&this.survey.dynamicPanelItemValueChanging(this,l),this.value=i,this.changingValueQuestion=null,this.survey&&this.survey.dynamicPanelItemValueChanged(this,l),this.isSetPanelItemData[t]--,this.isSetPanelItemData[t]-1&&delete this.isSetPanelItemData[t]}},t.prototype.getRootData=function(){return this.data},t.prototype.getPlainData=function(t){void 0===t&&(t={includeEmpty:!0});var r=e.prototype.getPlainData.call(this,t);if(r){r.isNode=!0;var n=Array.isArray(r.data)?[].concat(r.data):[];r.data=this.panels.map(function(e,r){var n={name:e.name||r,title:e.title||"Panel",value:e.getValue(),displayValue:e.getValue(),getString:function(e){return"object"==typeof e?JSON.stringify(e):e},isNode:!0,data:e.questions.map(function(e){return e.getPlainData(t)}).filter(function(e){return!!e})};return(t.calculations||[]).forEach(function(t){n[t.propertyName]=e[t.propertyName]}),n}),r.data=r.data.concat(n)}return r},t.prototype.updateElementCss=function(t){e.prototype.updateElementCss.call(this,t);for(var r=0;r<this.panelsCore.length;r++)this.panelsCore[r].updateElementCss(t)},Object.defineProperty(t.prototype,"progressText",{get:function(){var e=this.visiblePanelCount;return this.getLocalizationFormatString("panelDynamicProgressText",this.currentIndex+1,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return(this.currentIndex+1)/this.visiblePanelCount*100+"%"},enumerable:!1,configurable:!0}),t.prototype.getRootCss=function(){return new t$().append(e.prototype.getRootCss.call(this)).append(this.cssClasses.empty,this.getShowNoEntriesPlaceholder()).toString()},Object.defineProperty(t.prototype,"cssHeader",{get:function(){var t=this.isRenderModeTab&&!!this.visiblePanelCount;return new t$().append(e.prototype.getCssHeader.call(this,this.cssClasses)).append(this.cssClasses.headerTab,this.hasTitleOnTop&&t).toString()},enumerable:!1,configurable:!0}),t.prototype.getTabsContainerCss=function(){return new t$().append(this.cssClasses.tabsContainer).append(this.cssClasses.tabsContainerWithHeader,this.hasTitleOnTop).toString()},t.prototype.getPanelWrapperCss=function(e){return new t$().append(this.cssClasses.panelWrapper,!e||e.visible).append(this.cssClasses.panelWrapperList,this.isRenderModeList).append(this.cssClasses.panelWrapperInRow,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getPanelRemoveButtonCss=function(){return new t$().append(this.cssClasses.button).append(this.cssClasses.buttonRemove).append(this.cssClasses.buttonRemoveRight,"right"===this.panelRemoveButtonLocation).toString()},t.prototype.getAddButtonCss=function(){return new t$().append(this.cssClasses.button).append(this.cssClasses.buttonAdd).append(this.cssClasses.buttonAdd+"--list-mode","list"===this.displayMode).toString()},t.prototype.getPrevButtonCss=function(){return new t$().append(this.cssClasses.buttonPrev).append(this.cssClasses.buttonPrevDisabled,!this.isPrevButtonVisible).toString()},t.prototype.getNextButtonCss=function(){return new t$().append(this.cssClasses.buttonNext).append(this.cssClasses.buttonNextDisabled,!this.isNextButtonVisible).toString()},Object.defineProperty(t.prototype,"noEntriesText",{get:function(){return this.getLocalizableStringText("noEntriesText")},set:function(e){this.setLocalizableStringText("noEntriesText",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locNoEntriesText",{get:function(){return this.getLocalizableString("noEntriesText")},enumerable:!1,configurable:!0}),t.prototype.getShowNoEntriesPlaceholder=function(){return!!this.cssClasses.noEntriesPlaceholder&&!this.isDesignMode&&0===this.visiblePanelCount},t.prototype.needResponsiveWidth=function(){var e=this.getPanel();return!!(e&&e.needResponsiveWidth())||!1},Object.defineProperty(t.prototype,"hasTabbedMenu",{get:function(){return this.isRenderModeTab&&this.visiblePanels.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tabbedMenu",{get:function(){return this.isRenderModeTab?(!this.tabbedMenuValue&&(this.tabbedMenuValue=new rc,this.tabbedMenuValue.dotsItem.popupModel.showPointer=!1,this.tabbedMenuValue.dotsItem.popupModel.verticalPosition="bottom",this.tabbedMenuValue.dotsItem.popupModel.horizontalPosition="center",this.updateElementCss(!1)),this.tabbedMenuValue):null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"footerToolbar",{get:function(){return!this.footerToolbarValue&&this.initFooterToolbar(),this.footerToolbarValue},enumerable:!1,configurable:!0}),t.prototype.updateFooterActions=function(){this.updateFooterActionsCallback&&this.updateFooterActionsCallback()},t.prototype.initFooterToolbar=function(){var e=this;this.footerToolbarValue=this.createActionContainer();var t=[],r=new ra({id:"sv-pd-prev-btn",title:this.panelPrevText,action:function(){e.goToPrevPanel()}}),n=new ra({id:"sv-pd-next-btn",title:this.panelNextText,action:function(){e.goToNextPanel()}}),o=new ra({id:"sv-pd-add-btn",component:"sv-paneldynamic-add-btn",data:{question:this}}),i=new ra({id:"sv-prev-btn-icon",component:"sv-paneldynamic-prev-btn",data:{question:this}}),s=new ra({id:"sv-pd-progress-text",component:"sv-paneldynamic-progress-text",data:{question:this}}),a=new ra({id:"sv-pd-next-btn-icon",component:"sv-paneldynamic-next-btn",data:{question:this}});t.push(r,n,o,i,s,a),this.updateFooterActionsCallback=function(){var t=e.legacyNavigation,l=e.isRenderModeList,u=e.isMobile,c=!t&&!l;r.visible=c&&e.currentIndex>0,n.visible=c&&e.currentIndex<e.visiblePanelCount-1,n.needSpace=u&&n.visible&&r.visible,o.visible=e.canAddPanel,o.needSpace=e.isMobile&&!n.visible&&r.visible,s.visible=!e.isRenderModeList&&!u,s.needSpace=!t&&!e.isMobile;var p=t&&!l;i.visible=p,a.visible=p,i.needSpace=p},this.updateFooterActionsCallback(),this.footerToolbarValue.setItems(t)},t.prototype.createTabByPanel=function(e,t){var r=this;if(this.isRenderModeTab){var n=new rV(e,!0);n.onGetTextCallback=function(n){if(!n&&(n=r.locTabTitlePlaceholder.renderedHtml),!r.survey)return n;var o={title:n,panel:e,visiblePanelIndex:t};return r.survey.dynamicPanelGetTabTitle(r,o),o.title},n.sharedData=this.locTemplateTabTitle;var o=e.id,i=this.getPanelVisibleIndexById(o)===this.currentIndex;return new ab({id:this.id+"_tab_"+o,panelId:o,pressed:i,locTitle:n,disableHide:i,action:function(){r.currentIndex=r.getPanelVisibleIndexById(o)}})}},t.prototype.getTabbedMenuCss=function(e){var t=null!=e?e:this.cssClasse
1s;return new t$().append(t.tabsRoot).append(t.tabsLeft,"left"===this.tabAlign).append(t.tabsRight,"right"===this.tabAlign).append(t.tabsCenter,"center"===this.tabAlign).toString()},t.prototype.updateTabToolbarItemsPressedState=function(){if(!!this.isRenderModeTab){if(!(this.currentIndex<0)&&!(this.currentIndex>=this.visiblePanelCount)){var e=this.visiblePanelsCore[this.currentIndex];this.tabbedMenu.renderedActions.forEach(function(t){var r=t.panelId===e.id;t.pressed=r,t.disableHide=r,"popup"===t.mode&&t.disableHide&&t.raiseUpdate()})}}},t.prototype.updateTabToolbar=function(){var e=this;if(this.isRenderModeTab){for(var t=[],r=this.visiblePanelsCore,n=function(n){o.visiblePanelsCore.forEach(function(o){return t.push(e.createTabByPanel(r[n],n))})},o=this,i=0;i<r.length;i++)n(i);this.tabbedMenu.setItems(t)}},t.prototype.addTabFromToolbar=function(e,t){if(this.isRenderModeTab){var r=this.createTabByPanel(e,t);this.tabbedMenu.actions.splice(t,0,r),this.updateTabToolbarItemsPressedState()}},t.prototype.removeTabFromToolbar=function(e){if(!!this.isRenderModeTab){var t=this.tabbedMenu.actions.find(function(t){return t.panelId==e.id});t&&(this.tabbedMenu.actions.splice(this.tabbedMenu.actions.indexOf(t),1),this.updateTabToolbarItemsPressedState())}},Object.defineProperty(t.prototype,"showLegacyNavigation",{get:function(){return!this.isDefaultV2Theme},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"showNavigation",{get:function(){return(!this.isReadOnly||1!=this.visiblePanelCount)&&this.visiblePanelCount>0&&!this.showLegacyNavigation&&!!this.cssClasses.footer},enumerable:!1,configurable:!0}),t.prototype.showSeparator=function(e){return this.isRenderModeList&&e<this.renderedPanels.length-1},t.prototype.calcCssClasses=function(t){var r=e.prototype.calcCssClasses.call(this,t),n=this.tabbedMenu;
vendor: 39,718 bytes, line 1
1return n&&(n.containerCss=this.getTabbedMenuCss(r),n.cssClasses=r.tabs,n.dotsItem.cssClasses=r.tabs,n.dotsItem.popupModel.contentComponentData.model.cssClasses=t.list),r},t.prototype.onMobileChanged=function(){e.prototype.onMobileChanged.call(this),this.updateFooterActions()},t.maxCheckCount=3,ag([eJ({})],t.prototype,"_renderedPanels",void 0),ag([eW({onSet:function(e,t){t.fireCallback(t.renderModeChangedCallback),t.updatePanelView()}})],t.prototype,"displayMode",void 0),ag([eW({onSet:function(e,t){t.fireCallback(t.currentIndexChangedCallback)}})],t.prototype,"showProgressBar",void 0),ag([eW({onSet:function(e,t){}})],t.prototype,"progressBarLocation",void 0),ag([eW({defaultValue:!1,onSet:function(e,t){t.updateFooterActions()}})],t.prototype,"legacyNavigation",void 0),t}(n_);e6.addClass("paneldynamic",[{name:"showCommentArea:switch",layout:"row",visible:!0,category:"general"},{name:"templateElements",alternativeName:"questions",baseClassName:"question",visible:!1,isLightSerializable:!1},{name:"templateTitle:text",serializationProperty:"locTemplateTitle"},{name:"templateTabTitle",serializationProperty:"locTemplateTabTitle",visibleIf:function(e){return"tab"===e.displayMode}},{name:"tabTitlePlaceholder",serializationProperty:"locTabTitlePlaceholder",visibleIf:function(e){return"tab"===e.displayMode}},{name:"templateDescription:text",serializationProperty:"locTemplateDescription"},{name:"minWidth",defaultFunc:function(){return"auto"}},{name:"noEntriesText:text",serializationProperty:"locNoEntriesText"},{name:"allowAddPanel:boolean",default:!0},{name:"allowRemovePanel:boolean",default:!0},{name:"newPanelPosition",choices:["next","last"],default:"last",category:"layout"},{name:"panelCount:number",isBindable:!0,default:0,choices:[0,1,2,3,4,5,6,7,8,9,10]},{name:"minPanelCount:number",default:0,minValue:0},{name:"maxPanelCount:number",defaultFunc:function(){return r9.panel.maxPanelCount}},"defaultPanelValue:panelvalue","defaultValueFromLastPanel:boolean",{name:"panelsState",default:"default",choices:["default","collapsed","expanded","firstExpanded"],visibleIf:function(e){return"list"===e.displayMode}},{name:"keyName"},{name:"keyDuplicationError",serializationProperty:"locKeyDuplicationError"},{name:"confirmDelete:boolean"},{name:"confirmDeleteText",serializationProperty:"locConfirmDeleteText",visibleIf:function(e){return e.confirmDelete}},{name:"panelAddText",serializationProperty:"locPanelAddText",visibleIf:function(e){return e.allowAddPanel}},{name:"panelRemoveText",serializationProperty:"locPanelRemoveText",visibleIf:function(e){return e.allowRemovePanel}},{name:"panelPrevText",serializationProperty:"locPanelPrevText",visibleIf:function(e){return"list"!==e.displayMode}},{name:"panelNextText",serializationProperty:"locPanelNextText",visibleIf:function(e){return"list"!==e.displayMode}},{name:"showQuestionNumbers",default:"off",choices:["off","onPanel","onSurvey"]},{name:"renderMode",visible:!1,isSerializable:!1},{name:"displayMode",default:"list",choices:["list","carousel","tab"]},{name:"showProgressBar:boolean",alternativeName:"showRangeInProgress",default:!0,visibleIf:function(e){return"carousel"===e.displayMode}},{name:"progressBarLocation",default:"top",choices:["top","bottom","topBottom"],visibleIf:function(e){return e.showProgressBar}},{name:"tabAlign",default:"center",choices:["left","center","right"],visibleIf:function(e){return"tab"===e.displayMode}},{name:"templateTitleLocation",default:"default",choices:["default","top","bottom","left"]},{name:"templateErrorLocation",default:"default",choices:["default","top","bottom"]},{name:"templateVisibleIf:expression",category:"logic"},{name:"panelRemoveButtonLocation",default:"bottom",choices:["bottom","right"],visibleIf:function(e){return e.allowRemovePanel}}],function(){return new ax("")},"question"),n6.Instance.registerQuestion("paneldynamic",function(e){return new ax(e)});var aw=function(){function e(){}return e.getProgressTextInBarCss=function(e){return new t$().append(e.progressText).append(e.progressTextInBar).toString()},e.getProgressTextUnderBarCss=function(e){return new t$().append(e.progressText).append(e.progressTextUnderBar).toString()},e}();var aP=(eC=function(e,t){return(eC=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eC(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),aV=function(e){function t(){var r=e.call(this)||this;return r.idValue=t.idCounter++,r.registerPropertyChangedHandlers(["operator","value","name"],function(){r.oldPropertiesChanged()}),r.registerPropertyChangedHandlers(["expression"],function(){r.onExpressionChanged()}),r}return aP(t,e),Object.defineProperty(t,"operators",{get:function(){return null!=t.operatorsValue?t.operatorsValue:(t.operatorsValue={empty:function(e,t){return!e},notempty:function(e,t){return!!e},equal:function(e,t){return e==t},notequal:function(e,t){return e!=t},contains:function(e,t){return e&&e.indexOf&&e.indexOf(t)>-1},notcontains:function(e,t){return!e||!e.indexOf||-1==e.indexOf(t)},greater:function(e,t){return e>t},less:function(e,t){return e<t},greaterorequal:function(e,t){return e>=t},lessorequal:function(e,t){return e<=t}},t.operatorsValue)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this.idValue},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"triggerbase"},t.prototype.toString=function(){var e=this.getType().replace("trigger",""),t=this.expression?this.expression:this.buildExpression();return t&&(e+=", "+t),e},Object.defineProperty(t.prototype,"isInternal",{get:function(){return!0===this.isGhost},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"operator",{get:function(){return this.getPropertyValue("operator","equal")},set:function(e){if(!!e)e=e.toLowerCase(),t.operators[e]&&this.setPropertyValue("operator",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.getPropertyValue("value",null)},set:function(e){this.setPropertyValue("value",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name","")},set:function(e){this.setPropertyValue("name",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expression",{get:function(){return this.getPropertyValue("expression","")},set:function(e){this.setPropertyValue("expression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!0},t.prototype.canBeExecutedOnComplete=function(){return!1},t.prototype.checkExpression=function(e,t,r,n,o){if(void 0===o&&(o=null),this.isExecutingOnNextPage=e,!!this.canBeExecuted(e)&&(!t||!!this.canBeExecutedOnComplete()))this.isCheckRequired(r)&&(this.conditionRunner?this.perform(n,o):this.canSuccessOnEmptyExpression()&&this.triggerResult(!0,n,o))},t.prototype.canSuccessOnEmptyExpression=function(){return!1},t.prototype.check=function(e){t.operators[this.operator](e,this.value)?this.onSuccess({},null):this.onFailure()},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!1},enumerable:!1,configurable:!0}),t.prototype.perform=function(e,t){var r=this;this.conditionRunner.onRunComplete=function(n){r.triggerResult(n,e,t)},this.conditionRunner.run(e,t)},t.prototype.triggerResult=function(e,t,r){e?(this.onSuccess(t,r),this.onSuccessExecuted()):this.onFailure()},t.prototype.onSuccess=function(e,t){},t.prototype.onFailure=function(){},t.prototype.onSuccessExecuted=function(){},t.prototype.endLoadingFromJson=function(){e.prototype.endLoadingFromJson.call(this),this.oldPropertiesChanged()},t.prototype.oldPropertiesChanged=function(){this.onExpressionChanged()},t.prototype.onExpressionChanged=function(){this.conditionRunner=null},t.prototype.buildExpression=function(){return!this.name||this.isValueEmpty(this.value)&&this.isRequireValue?"":"{"+this.name+"} "+this.operator+" "+tj.toOperandString(this.value)},t.prototype.isCheckRequired=function(e){return!!e&&(this.createConditionRunner(),!!this.conditionRunner&&!0===this.conditionRunner.hasFunction()||new e9().isAnyKeyChanged(e,this.getUsedVariables()))},t.prototype.getUsedVariables=function(){if(!this.conditionRunner)return[];var e=this.conditionRunner.getVariables();if(Array.isArray(e)){for(var t="-unwrapped",r=e.length-1;r>=0;r--){var n=e[r];n.endsWith(t)&&e.push(n.substring(0,n.length-t.length))}}return e},t.prototype.createConditionRunner=function(){if(!this.conditionRunner){var e=this.expression;!e&&(e=this.buildExpression()),e&&(this.conditionRunner=new tA(e))}},Object.defineProperty(t.prototype,"isRequireValue",{get:function(){return"empty"!==this.operator&&"notempty"!=this.operator},enumerable:!1,configurable:!0}),t.idCounter=1,t.operatorsValue=null,t}(tQ),aj=function(e){function t(){var t=e.call(this)||this;return t.ownerValue=null,t}return aP(t,e),Object.defineProperty(t.prototype,"owner",{get:function(){return this.ownerValue},enumerable:!1,configurable:!0}),t.prototype.setOwner=function(e){this.ownerValue=e},t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner&&this.owner.getSurvey?this.owner.getSurvey():null},t.prototype.isRealExecution=function(){return!0},t.prototype.onSuccessExecuted=function(){this.owner&&this.isRealExecution()&&this.owner.triggerExecuted(this)},t}(aV),aS=function(e){function t(){var t=e.call(this)||this;return t.pages=[],t.questions=[],t}return aP(t,e),t.prototype.getType=function(){return"visibletrigger"},t.prototype.onSuccess=function(e,t){this.onTrigger(this.onItemSuccess)},t.prototype.onFailure=function(){this.onTrigger(this.onItemFailure)},t.prototype.onTrigger=function(e){if(this.owner){for(var t=this.owner.getObjects(this.pages,this.questions),r=0;r<t.length;r++)e(t[r])}},t.prototype.onItemSuccess=function(e){e.visible=!0},t.prototype.onItemFailure=function(e){e.visible=!1},t}(aj),aO=function(e){function t(){return e.call(this)||this}return aP(t,e),t.prototype.getType=function(){return"completetrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.isRealExecution=function(){return!r9.triggers.executeCompleteOnValueChanged===this.isExecutingOnNextPage},t.prototype.onSuccess=function(e,t){this.owner&&(this.isRealExecution()?this.owner.setCompleted(this):this.owner.canBeCompleted(this,!0))},t.prototype.onFailure=function(){this.owner.canBeCompleted(this,!1)},t}(aj),aI=function(e){function t(){return e.call(this)||this}return aP(t,e),t.prototype.getType=function(){return"setvaluetrigger"},t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName},t.prototype.onPropertyValueChanged=function(t,r,n){if(e.prototype.onPropertyValueChanged.call(this,t,r,n),"setToName"===t){var o=this.getSurvey();o&&!o.isLoadingFromJson&&o.isDesignMode&&(this.setValue=void 0)}},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"setValue",{get:function(){return this.getPropertyValue("setValue")},set:function(e){this.setPropertyValue("setValue",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isVariable",{get:function(){return this.getPropertyValue("isVariable")},set:function(e){this.setPropertyValue("isVariable",e)},enumerable:!1,configurable:!0}),t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.setTriggerValue(this.setToName,this.setValue,this.isVariable)},t}(aj),aT=function(e){function t(){return e.call(this)||this}return aP(t,e),t.prototype.getType=function(){return"skiptrigger"},Object.defineProperty(t.prototype,"requireValidQuestion",{get:function(){return this.canBeExecuted(!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"gotoName",{get:function(){return this.getPropertyValue("gotoName","")},set:function(e){this.setPropertyValue("gotoName",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!r9.triggers.executeSkipOnValueChanged===e},t.prototype.onSuccess=function(e,t){this.gotoName&&this.owner&&this.owner.focusQuestion(this.gotoName)},t}(aj),aE=function(e){function t(){return e.call(this)||this}return aP(t,e),t.prototype.getType=function(){return"runexpressiontrigger"},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"runExpression",{get:function(){return this.getPropertyValue("runExpression","")},set:function(e){this.setPropertyValue("runExpression",e)},enumerable:!1,configurable:!0}),t.prototype.canBeExecuted=function(e){return!e},t.prototype.onSuccess=function(e,t){var r=this;if(this.owner&&this.runExpression){var n=new tL(this.runExpression);n.canRun&&(n.onRunComplete=function(e){r.onCompleteRunExpression(e)},n.run(e,t))}},t.prototype.onCompleteRunExpression=function(e){this.setToName&&void 0!==e&&this.owner.setTriggerValue(this.setToName,eA.convertValToQuestionVal(e),!1)},t}(aj),aR=function(e){function t(){return e.call(this)||this}return aP(t,e),t.prototype.canBeExecuted=function(e){return!e&&!!this.setToName&&!!this.fromName},Object.defineProperty(t.prototype,"setToName",{get:function(){return this.getPropertyValue("setToName","")},set:function(e){this.setPropertyValue("setToName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"fromName",{get:function(){return this.getPropertyValue("fromName","")},set:function(e){this.setPropertyValue("fromName",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"copyDisplayValue",{get:function(){return this.getPropertyValue("copyDisplayValue")},set:function(e){this.setPropertyValue("copyDisplayValue",e)},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"copyvaluetrigger"},t.prototype.onSuccess=function(e,t){this.setToName&&this.owner&&this.owner.copyTriggerValue(this.setToName,this.fromName,this.copyDisplayValue)},t.prototype.canSuccessOnEmptyExpression=function(){return!0},t.prototype.getUsedVariables=function(){var t=e.prototype.getUsedVariables.call(this);return 0===t.length&&this.fromName&&t.push(this.fromName),t},t}(aj);e6.addClass("trigger",[{name:"operator",default:"equal",visible:!1},{name:"value",visible:!1},"expression:condition"]),e6.addClass("surveytrigger",[{name:"name",visible:!1}],null,"trigger"),e6.addClass("visibletrigger",["pages:pages","questions:questions"],function(){return new aS},"surveytrigger"),e6.addClass("completetrigger",[],function(){return new aO},"surveytrigger"),e6.addClass("setvaluetrigger",[{name:"!setToName:questionvalue"},{name:"setValue:triggervalue",dependsOn:"setToName",visibleIf:function(e){return!!e&&!!e.setToName}},{name:"isVariable:boolean",visible:!1}],function(){return new aI},"surveytrigger"),e6.addClass("copyvaluetrigger",[{name:"!fromName:questionvalue"},{name:"!setToName:questionvalue"},{name:"copyDisplayValue:boolean",visible:!1}],function(){return new aR},"surveytrigger"),e6.addClass("skiptrigger",[{name:"!gotoName:question"}],function(){return new aT},"surveytrigger"),e6.addClass("runexpressiontrigger",[{name:"setToName:questionvalue"},"runExpression:expression"],function(){return new aE},"surveytrigger");var a_=(ex=function(e,t){return(ex=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ex(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),aD=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},ak=function(e){function t(t,r){void 0===r&&(r=null);var n=e.call(this)||this;return n.closeOnCompleteTimeout=0,r?n.surveyValue=r:n.surveyValue=n.createSurvey(t),n.surveyValue.fitToContainer=!0,n.windowElement=eD.createElement("div"),n.survey.onComplete.add(function(e,t){n.onSurveyComplete()}),n.registerPropertyChangedHandlers(["isShowing"],function(){n.showingChangedCallback&&n.showingChangedCallback()}),n.registerPropertyChangedHandlers(["isExpanded"],function(){n.onExpandedChanged()}),n.width=new tB(function(){return n.survey.width}),n.width=n.survey.width,n.updateCss(),n.onCreating(),n}return a_(t,e),t.prototype.onCreating=function(){},t.prototype.getType=function(){return"popupsurvey"},Object.defineProperty(t.prototype,"survey",{get:function(){return this.surveyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isShowing",{get:function(){return this.getPropertyValue("isShowing",!1)},set:function(e){this.setPropertyValue("isShowing",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFullScreen",{get:function(){return this.getPropertyValue("isFullScreen",!1)},set:function(e){!this.isExpanded&&e&&(this.isExpanded=!0),this.setPropertyValue("isFullScreen",e),this.setCssRoot()},enumerable:!1,configurable:!0}),t.prototype.show=function(){this.isShowing=!0},t.prototype.hide=function(){this.isShowing=!1},t.prototype.toggleFullScreen=function(){this.isFullScreen=!this.isFullScreen},Object.defineProperty(t.prototype,"isExpanded",{get:function(){return this.getPropertyValue("isExpanded",!1)},set:function(e){this.isFullScreen&&!e&&(this.isFullScreen=!1),this.setPropertyValue("isExpanded",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isCollapsed",{get:function(){return!this.isExpanded},enumerable:!1,configurable:!0}),t.prototype.onExpandedChanged=function(){this.expandedChangedCallback&&this.expandedChangedCallback(),this.updateCssButton()},Object.defineProperty(t.prototype,"title",{get:function(){return this.survey.title},set:function(e){this.survey.title=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locTitle",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locTitle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"locDescription",{get:function(){return this.survey.locTitle.isEmpty?null:this.survey.locDescription},enumerable:!1,configurable:!0}),t.prototype.expand=function(){this.isExpanded=!0},t.prototype.collapse=function(){this.isExpanded=!1},t.prototype.changeExpandCollapse=function(){this.isExpanded=!this.isExpanded},Object.defineProperty(t.prototype,"allowClose",{get:function(){return this.getPropertyValue("allowClose",!1)},set:function(e){this.setPropertyValue("allowClose",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"allowFullScreen",{get:function(){return this.getPropertyValue("allowFullScreen",!1)},set:function(e){this.setPropertyValue("allowFullScreen",e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssButton",{get:function(){return this.getPropertyValue("cssButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRoot",{get:function(){var e=this.getPropertyValue("cssRoot","");return this.isCollapsed&&(e+=" "+this.getPropertyValue("cssRootCollapsedMod","")),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootCollapsedMod",{get:function(){return this.getPropertyValue("cssRootCollapsedMod")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssRootContent",{get:function(){return this.getPropertyValue("cssRootContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssBody",{get:function(){return this.getPropertyValue("cssBody","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderRoot",{get:function(){return this.getPropertyValue("cssHeaderRoot","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderTitleCollapsed",{get:function(){return this.getPropertyValue("cssHeaderTitleCollapsed","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderButtonsContainer",{get:function(){return this.getPropertyValue("cssHeaderButtonsContainer","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCollapseButton",{get:function(){return this.getPropertyValue("cssHeaderCollapseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderCloseButton",{get:function(){return this.getPropertyValue("cssHeaderCloseButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssHeaderFullScreenButton",{get:function(){return this.getPropertyValue("cssHeaderFullScreenButton","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderedWidth",{get:function(){var e=this.getPropertyValue("width","60%");return e&&!isNaN(e)&&(e+="px"),e},enumerable:!1,configurable:!0}),t.prototype.updateCss=function(){if(!!this.css&&!!this.css.window){var e=this.css.window;this.setCssRoot(),this.setPropertyValue("cssRootCollapsedMod",e.rootCollapsedMod),this.setPropertyValue("cssRootContent",e.rootContent),this.setPropertyValue("cssBody",e.body);var t=e.header;t&&(this.setPropertyValue("cssHeaderRoot",t.root),this.setPropertyValue("cssHeaderTitleCollapsed",t.titleCollapsed),this.setPropertyValue("cssHeaderButtonsContainer",t.buttonsContainer),this.setPropertyValue("cssHeaderCollapseButton",t.collapseButton),this.setPropertyValue("cssHeaderCloseButton",t.closeButton),this.setPropertyValue("cssHeaderFullScreenButton",t.fullScreenButton),this.updateCssButton())}},t.prototype.setCssRoot=function(){var e=this.css.window;this.isFullScreen?this.setPropertyValue("cssRoot",e.root+" "+e.rootFullScreenMode):this.setPropertyValue("cssRoot",e.root)},t.prototype.updateCssButton=function(){var e=this.css.window?this.css.window.header:null;e&&this.setCssButton(this.isExpanded?e.buttonExpanded:e.buttonCollapsed)},t.prototype.setCssButton=function(e){e&&this.setPropertyValue("cssButton",e)},t.prototype.createSurvey=function(e){return new iV(e)},t.prototype.onSurveyComplete=function(){if(!(this.closeOnCompleteTimeout<0)){if(0==this.closeOnCompleteTimeout)this.hide();else{var e=this,t=null;t=setInterval(function(){e.hide(),clearInterval(t)},1e3*this.closeOnCompleteTimeout)}}},t.prototype.onScroll=function(){this.survey.onScroll()},aD([eW()],t.prototype,"width",void 0),t}(tQ),aA=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a_(t,e),t}(ak);var aL=(ew=function(e,t){return(ew=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ew(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),aN=function(e){function t(t){var r=e.call(this,t)||this;return r.onScrollOutsideCallback=function(e){r.preventScrollOuside(e,e.deltaY)},r}return aL(t,e),t.prototype.getStyleClass=function(){return e.prototype.getStyleClass.call(this).append("sv-popup--modal",!this.isOverlay)},t.prototype.getShowFooter=function(){return!0},t.prototype.createFooterActionBar=function(){var t=this;e.prototype.createFooterActionBar.call(this),this.footerToolbar.containerCss="sv-footer-action-bar",this.footerToolbarValue.addAction({id:"apply",visibleIndex:20,title:this.applyButtonText,innerCss:"sv-popup__body-footer-item sv-popup__button sv-popup__button--apply sd-btn sd-btn--action",action:function(){t.apply()}})},Object.defineProperty(t.prototype,"applyButtonText",{get:function(){return this.getLocalizationString("modalApplyButtonText")},enumerable:!1,configurable:!0}),t.prototype.apply=function(){(!this.model.onApply||this.model.onApply())&&this.hidePopup()},t.prototype.clickOutside=function(){},t.prototype.onKeyDown=function(t){("Escape"===t.key||27===t.keyCode)&&this.model.onCancel(),e.prototype.onKeyDown.call(this,t)},t.prototype.updateOnShowing=function(){this.container&&this.container.addEventListener("wheel",this.onScrollOutsideCallback,{passive:!1}),e.prototype.updateOnShowing.call(this)},t.prototype.updateOnHiding=function(){this.container&&this.container.removeEventListener("wheel",this.onScrollOutsideCallback),e.prototype.updateOnHiding.call(this)},t}(iL),aM=function(){return(aM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function aF(e,t){var r,n=aM({},e);n.verticalPosition="top",n.horizontalPosition="left",n.showPointer=!1,n.isModal=!0,n.displayMode=e.displayMode||"popup";var o=new t6(e.componentName,e.data,n);o.isFocusedContent=null===(r=e.isFocusedContent)||void 0===r||r;var i=new aN(o);if(t&&t.appendChild){var s=eD.createElement("div");t.appendChild(s),i.setComponentElement(s)}!i.container&&i.initializePopupContainer();var a=function(e,t){!t.isVisible&&s&&i.resetComponentElement(),i.onVisibilityChanged.remove(a)};return i.onVisibilityChanged.add(a),i}function aq(e){return e.isModal?new aN(e):new iq(e)}var aB=(eP=function(e,t){return(eP=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eP(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),aQ=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},aH=function(e){function t(t,r,n){void 0===r&&(r=null),void 0===n&&(n="buttongroupitemvalue");var o=e.call(this,t,r,n)||this;return o.typeName=n,o}return aB(t,e),t.prototype.getType=function(){return this.typeName?this.typeName:"buttongroupitemvalue"},aQ([eW()],t.prototype,"iconName",void 0),aQ([eW()],t.prototype,"iconSize",void 0),aQ([eW()],t.prototype,"showCaption",void 0),t}(nL),az=function(e){function t(t){return e.call(this,t)||this}return aB(t,e),t.prototype.getType=function(){return"buttongroup"},t.prototype.getItemValueType=function(){return"buttongroupitemvalue"},t.prototype.supportOther=function(){return!1},t}(iT);e6.addClass("buttongroup",[{name:"choices:buttongroupitemvalue[]"}],function(){return new az("")},"checkboxbase"),e6.addClass("buttongroupitemvalue",[{name:"showCaption:boolean",default:!0},{name:"iconName:text"},{name:"iconSize:number"}],function(e){return new aH(e)},"itemvalue");var aW=function(){function e(e,t,r){this.question=e,this.item=t,this.index=r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.item.value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconName",{get:function(){return this.item.iconName},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"iconSize",{get:function(){return this.item.iconSize||24},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"caption",{get:function(){return this.item.locText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"showCaption",{get:function(){return this.item.showCaption||void 0===this.item.showCaption},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isRequired",{get:function(){return this.question.isRequired},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.question.isItemSelected(this.item)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"readOnly",{get:function(){return this.question.isInputReadOnly||!this.item.isEnabled},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.question.name+"_"+this.question.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this.question.inputId+"_"+this.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasErrors",{get:function(){return this.question.errors.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"describedBy",{get:function(){return this.question.errors.length>0?this.question.id+"_errors":null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"labelClass",{get:function(){return new t$().append(this.question.cssClasses.item).append(this.question.cssClasses.itemSelected,this.selected).append(this.question.cssClasses.itemHover,!this.readOnly&&!this.selected).append(this.question.cssClasses.itemDisabled,this.question.isReadOnly||!this.item.isEnabled).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return{label:this.labelClass,icon:this.question.cssClasses.itemIcon,control:this.question.cssClasses.itemControl,caption:this.question.cssClasses.itemCaption,decorator:this.question.cssClasses.itemDecorator}},enumerable:!1,configurable:!0}),e.prototype.onChange=function(){this.question.renderedValue=this.item.value},e}();var aU=(eV=function(e,t){return(eV=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eV(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),aJ=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},aG=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return aU(t,e),t.prototype.getSurvey=function(e){return void 0===e&&(e=!1),this.owner},t.prototype.getType=function(){return"masksettings"},t.prototype.setData=function(e){var t=this;e6.getProperties(this.getType()).forEach(function(r){var n=e[r.name];t[r.name]=void 0!==n?n:r.getDefaultValue(t)})},t.prototype.getData=function(){var e=this,t={};return e6.getProperties(this.getType()).forEach(function(r){var n=e[r.name];!r.isDefaultValue(n)&&(t[r.name]=n)}),t},t.prototype.processInput=function(e){return{value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1}},t.prototype.getUnmaskedValue=function(e){return e},t.prototype.getMaskedValue=function(e){return e},t.prototype.getTextAlignment=function(){return"auto"},t.prototype.getTypeForExpressions=function(){return"text"},aJ([eW()],t.prototype,"saveMaskedValue",void 0),t}(tQ);e6.addClass("masksettings",[{name:"saveMaskedValue:boolean",visibleIf:function(e){return!!e&&"masksettings"!==e.getType()}}],function(){return new aG});var a$=(ej=function(e,t){return(ej=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ej(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),aK=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};function aY(e){for(var t=[],r=!1,n=Object.keys(r9.maskSettings.patternDefinitions),o=0;o<e.length;o++){var i=e[o];i===r9.maskSettings.patternEscapeChar?r=!0:r?(r=!1,t.push({type:"fixed",value:i})):t.push({type:-1!==n.indexOf(i)?"regex":"const",value:i})}return t}function aX(e,t,r,n){void 0===n&&(n=!1);var o="";if(!e)return o;for(var i="string"==typeof t?aY(t):t,s=0;s<i.length;s++)if("fixed"===i[s].type&&!n&&(o+=i[s].value),"regex"===i[s].type){var a=r9.maskSettings.patternDefinitions[i[s].value];if(e[s]&&e[s].match(a))o+=e[s];else if(r){o="";break}else break}return o}var aZ=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.literals=[],t}return a$(t,e),t.prototype.updateLiterals=function(){this.literals=aY(this.pattern||"")},t.prototype.onPropertyValueChanged=function(e,t,r){"pattern"===e&&this.updateLiterals()},t.prototype.getType=function(){return"patternmask"},t.prototype.fromJSON=function(t,r){e.prototype.fromJSON.call(this,t,r),this.updateLiterals()},t.prototype._getMaskedValue=function(e,t){return void 0===t&&(t=!1),function(e,t,r){for(var n=null==e?"":e,o="",i=0,s="string"==typeof t?aY(t):t,a=0;a<s.length;a++)switch(s[a].type){case"regex":if(i<n.length&&(i=function(e,t,r){for(var n=r9.maskSettings.patternDefinitions[r.value];t<e.length&&!e[t].match(n);){;t++}return t}(n,i,s[a])),i<n.length)o+=n[i];else{if(!r)return o;o+=r9.maskSettings.patternPlaceholderChar}i++;break;case"const":case"fixed":o+=s[a].value,s[a].value===n[i]&&i++}return o}(null==e?"":e,this.literals,t)},t.prototype._getUnmaskedValue=function(e,t){return void 0===t&&(t=!1),aX(null==e?"":e,this.literals,t)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1};if(!e.insertedChars&&e.selectionStart===e.selectionEnd)return t;var r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),n=aX(e.prevValue.slice(0,e.selectionStart),this.literals.slice(0,e.selectionStart),!1),o=aX(e.prevValue.slice(e.selectionEnd),this.literals.slice(e.selectionEnd),!1,!0);return t.value=this._getMaskedValue(n+(e.insertedChars||"")+o,!0),e.insertedChars||"backward"!==e.inputDirection?t.caretPosition=this._getMaskedValue(r).length:t.caretPosition=e.selectionStart,t},t.prototype.getMaskedValue=function(e){return this._getMaskedValue(e,!0)},t.prototype.getUnmaskedValue=function(e){return this._getUnmaskedValue(e,!0)},aK([eW()],t.prototype,"pattern",void 0),t}(aG);e6.addClass("patternmask",[{name:"pattern"}],function(){return new aZ},"masksettings");var a0=(eS=function(e,t){return(eS=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eS(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a1=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},a2=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a0(t,e),t.prototype.calccaretPosition=function(e,t,r){for(var n=e?this.displayNumber(this.parseNumber(e),!1).length:0,o=0,i=t.selectionStart,s=!t.insertedChars&&"forward"===t.inputDirection,a=0;a<r.length;a++)if(r[a]!==this.thousandsSeparator&&o++,o===n+(s?1:0)){i=s?a:a+1;break}return i},t.prototype.numericalCompositionIsEmpty=function(e){return!e.integralPart&&!e.fractionalPart},t.prototype.displayNumber=function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=!1);var n=e.integralPart;t&&n&&(n=(function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r=3);var n=[];if(t){for(var o=e.length-r;o>-r;o-=r)n.push(e.substring(o,o+r));n=n.reverse()}else for(var o=0;o<e.length;o+=r)n.push(e.substring(o,o+r));return n})(n).join(this.thousandsSeparator));var o=e.fractionalPart,i=e.isNegative?"-":"";if(""!==o)return[i+(n=n||"0"),o=o.substring(0,this.precision)].join(this.decimalSeparator);if(r)return n&&"0"!==n?i+n:n;var s=n+(e.hasDecimalSeparator&&!r?this.decimalSeparator:"");return"0"===s?s:i+s},t.prototype.convertNumber=function(e){var t,r=e.isNegative?"-":"";return t=e.fractionalPart?parseFloat(r+(e.integralPart||"0")+"."+e.fractionalPart.substring(0,this.precision)):parseInt(r+e.integralPart||"0")},t.prototype.validateNumber=function(e,t){var r=this.min||Number.MIN_SAFE_INTEGER,n=this.max||Number.MAX_SAFE_INTEGER;if(this.numericalCompositionIsEmpty(e))return!0;if(void 0!==this.min||void 0!==this.max){var o=this.convertNumber(e);if(Number.isNaN(o)||o>=r&&o<=n)return!0;if(!t){if(e.hasDecimalSeparator||0==o){var i=Math.pow(.1,(e.fractionalPart||"").length);if(o>=0)return o+i>r&&o<=n;if(o<0)return o>=r&&o-i<n}else{var s=o,a=o;if(o>0){if(o+1>r&&o<=n)return!0;for(;s=10*s+9,!((a*=10)>n);){;if(s>r)return!0}return!1}if(o<0){if(o>=r&&o-1<n)return!0;for(;a=10*a-9,!((s*=10)<r);){;if(a<n)return!0}return!1}}return o>=0&&o<=n||o<0&&o>=r}return!1}return!0},t.prototype.parseNumber=function(e){for(var t={integralPart:"",fractionalPart:"",hasDecimalSeparator:!1,isNegative:!1},r=null==e?"":e.toString(),n=0,o=0;o<r.length;o++){var i=r[o];switch(i){case"-":this.allowNegativeValues&&(void 0===this.min||this.min<0)&&n++;break;case this.decimalSeparator:this.precision>0&&(t.hasDecimalSeparator=!0);break;case this.thousandsSeparator:break;default:i.match(i2)&&(t.hasDecimalSeparator?t.fractionalPart+=i:t.integralPart+=i)}}return t.isNegative=n%2!=0,t.integralPart.length>1&&"0"===t.integralPart[0]&&(t.integralPart=t.integralPart.slice(1)),t},t.prototype.getNumberMaskedValue=function(e,t){void 0===t&&(t=!1);var r=this.parseNumber(e);return this.validateNumber(r,t)?this.displayNumber(r,!0,t):null},t.prototype.getNumberUnmaskedValue=function(e){var t=this.parseNumber(e);if(!this.numericalCompositionIsEmpty(t))return this.convertNumber(t)},t.prototype.getTextAlignment=function(){return"right"},t.prototype.getMaskedValue=function(e){var t=null==e?"":e.toString();return t=t.replace(".",this.decimalSeparator),this.getNumberMaskedValue(t,!0)},t.prototype.getUnmaskedValue=function(e){return this.getNumberUnmaskedValue(e)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart)+(e.insertedChars||""),n=r+e.prevValue.slice(e.selectionEnd),o=this.parseNumber(n);if(!this.validateNumber(o,!1))return t;var i=this.getNumberMaskedValue(n),s=this.calccaretPosition(r,e,i);return t.value=i,t.caretPosition=s,t},t.prototype.getType=function(){return"numericmask"},t.prototype.isPropertyEmpty=function(e){return""===e||null==e},a1([eW()],t.prototype,"allowNegativeValues",void 0),a1([eW()],t.prototype,"decimalSeparator",void 0),a1([eW()],t.prototype,"precision",void 0),a1([eW()],t.prototype,"thous
1andsSeparator",void 0),a1([eW()],t.prototype,"min",void 0),a1([eW()],t.prototype,"max",void 0),t}(aG);e6.addClass("numericmask",[{name:"allowNegativeValues:boolean",default:!0},{name:"decimalSeparator",default:".",maxLength:1},{name:"thousandsSeparator",default:",",maxLength:1},{name:"precision:number",default:2,minValue:0},{name:"min:number"},{name:"max:number"}],function(){return new a2},"masksettings");var a5=(eO=function(e,t){return(eO=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eO(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a4=function(){return(a4=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r],t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},a8=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s};function a3(e,t){switch(e){case"hour":case"minute":case"second":case"day":case"month":return 2;case"timeMarker":case"year":return t;default:return 1}}var a6=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.defaultDate="1970-01-01T",t.turnOfTheCentury=68,t.twelve=12,t.lexems=[],t.inputDateTimeData=[],t.validBeginningOfNumbers={hour:1,hourU:2,minute:5,second:5,day:3,month:1},t}return a5(t,e),Object.defineProperty(t.prototype,"hasDatePart",{get:function(){return this.lexems.some(function(e){return"day"===e.type||"month"===e.type||"year"===e.type})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTimePart",{get:function(){return this.lexems.some(function(e){return"hour"===e.type||"minute"===e.type||"second"===e.type})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"is12Hours",{get:function(){return this.lexems.filter(function(e){return"hour"===e.type&&!e.upperCase}).length>0},enumerable:!1,configurable:!0}),t.prototype.getType=function(){return"datetimemask"},t.prototype.getTypeForExpressions=function(){return this.hasTimePart?"datetime-local":"datetime"},t.prototype.updateLiterals=function(){this.lexems=function(e){for(var t,r=[],n=function(e,n,o){if(void 0===o&&(o=!1),t&&t===e){r[r.length-1].count++;var i=a3(e,r[r.length-1].count);r[r.length-1].maxCount=i}else{var i=a3(e,1);r.push({type:e,value:n,count:1,maxCount:i,upperCase:o})}},o=0;o<e.length;o++){var i=e[o];switch(i){case"m":n("month",i);break;case"d":n("day",i);break;case"y":n("year",i);break;case"h":n("hour",i,!1);break;case"H":n("hour",i,!0);break;case"M":n("minute",i);break;case"s":n("second",i);break;case"t":n("timeMarker",i);break;case"T":n("timeMarker",i,!0);break;default:r.push({type:"separator",value:i,count:1,maxCount:1,upperCase:!1})}t=r[r.length-1].type}return r}(this.pattern||"")},t.prototype.leaveOnlyNumbers=function(e){for(var t="",r=0;r<e.length;r++)e[r].match(i2)&&(t+=e[r]);return t},t.prototype.getMaskedStrFromISO=function(e){var t=this,r=new Date(e);return this.initInputDateTimeData(),!this.hasTimePart&&(r=new Date(e+"T00:00:00")),!this.hasDatePart&&(r=new Date(this.defaultDate+e)),!isNaN(r)&&this.lexems.forEach(function(e,n){var o=t.inputDateTimeData[n];switch(o.isCompleted=!0,e.type){case"hour":t.is12Hours?o.value=((r.getHours()-1)%t.twelve+1).toString():o.value=r.getHours().toString();break;case"minute":o.value=r.getMinutes().toString();break;case"second":o.value=r.getSeconds().toString();break;case"timeMarker":var i=r.getHours()>=t.twelve?"pm":"am";o.value=e.upperCase?i.toUpperCase():i;break;case"day":o.value=r.getDate().toString();break;case"month":o.value=(r.getMonth()+1).toString();break;case"year":var s=r.getFullYear();2==e.count&&(s%=100),o.value=s.toString()}}),this.getFormatedString(!0)},t.prototype.initInputDateTimeData=function(){var e=this;
1this.inputDateTimeData=[],this.lexems.forEach(function(t){e.inputDateTimeData.push({lexem:t,isCompleted:!1,value:void 0})})},t.prototype.getISO_8601Format=function(e){var t=[],r=[];if(void 0!==e.year){var n=this.getPlaceholder(4,e.year.toString(),"0")+e.year;t.push(n)}if(void 0!==e.month&&void 0!==e.year){var o=this.getPlaceholder(2,e.month.toString(),"0")+e.month;t.push(o)}if(void 0!==e.day&&void 0!==e.month&&void 0!==e.year){var i=this.getPlaceholder(2,e.day.toString(),"0")+e.day;t.push(i)}if(void 0!==e.hour){var s=this.getPlaceholder(2,e.hour.toString(),"0")+e.hour;r.push(s)}if(void 0!==e.minute&&void 0!==e.hour){var a=this.getPlaceholder(2,e.minute.toString(),"0")+e.minute;r.push(a)}if(void 0!==e.second&&void 0!==e.minute&&void 0!==e.hour){var l=this.getPlaceholder(2,e.second.toString(),"0")+e.second;r.push(l)}var u=[];return t.length>0&&u.push(t.join("-")),r.length>1&&u.push(r.join(":")),u.join("T")},t.prototype.isYearValid=function(e){if(void 0===e.min&&void 0===e.max)return!1;var t=e.year.toString(),r=e.min.toISOString().slice(0,t.length),n=e.max.toISOString().slice(0,t.length);return e.year>=parseInt(r)&&e.year<=parseInt(n)},t.prototype.createIDateTimeCompositionWithDefaults=function(e,t){var r=29==e.day&&2==e.month,n=e.min.getFullYear(),o=e.max.getFullYear();r&&(o=4*Math.floor((n=4*Math.ceil(n/4))/4),n>o&&(n=void 0,o=void 0));var i=void 0!==e.year?e.year:t?o:n,s=void 0!==e.month?e.month:t&&this.hasDatePart?12:1,a=void 0!==e.day?e.day:t&&this.hasDatePart?this.getMaxDateForMonth(i,s):1;return{year:i,month:s,day:a,hour:void 0!==e.hour?e.hour:t?23:0,minute:void 0!==e.minute?e.minute:t?59:0,second:void 0!==e.second?e.second:t?59:0}},t.prototype.getMaxDateForMonth=function(e,t){return 2==t?e%4==0&&e%100!=0||e%400?29:28:[31,28,31,30,31,30,31,31,30,31,30,31][t-1]},t.prototype.isDateValid=function(e){var t=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!1))),r=new Date(this.getISO_8601Format(this.createIDateTimeCompositionWithDefaults(e,!0)));return!isNaN(t)&&(t.getDate()===e.day||void 0===e.day)&&(t.getMonth()===e.month-1||void 0===e.month)&&(t.getFullYear()===e.year||void 0===e.year)&&r>=e.min&&t<=e.max},t.prototype.getPlaceholder=function(e,t,r){var n=e-(t||"").length;return n>0?r.repeat(n):""},t.prototype.isDateValid12=function(e){if(!this.is12Hours)return this.isDateValid(e);if(this.is12Hours&&e.hour>this.twelve)return!1;if(e.timeMarker){if("p"===e.timeMarker[0].toLowerCase())return e.hour!==this.twelve&&(e.hour+=this.twelve),this.isDateValid(e);else return e.hour===this.twelve&&(e.hour=0),this.isDateValid(e)}return!!this.isDateValid(e)||(e.hour+=this.twelve,this.isDateValid(e))},t.prototype.updateTimeMarkerInputDateTimeData=function(e,t){var r=e.value;if(r){var n="timeMarker",o=a4({},t);o[n]=r,this.isDateValid12(o)?e.isCompleted=!0:r=r.slice(0,r.length-1),e.value=r||void 0,t[n]=r||void 0}},t.prototype.updateInputDateTimeData=function(e,t){var r=e.value;if(r){var n=e.lexem.type,o=a4({},t);if(o[n]=parseInt(this.parseTwoDigitYear(e)),r.length===e.lexem.maxCount){if(this.isDateValid12(o)){e.isCompleted=!0,e.value=r||void 0,t[n]=parseInt(r)>0?parseInt(r):void 0;return}r=r.slice(0,r.length-1)}o[n]=parseInt(r);var i=parseInt(r[0]),s=this.validBeginningOfNumbers[n+(e.lexem.upperCase?"U":"")];"year"!==n||this.isYearValid(o)?void 0!==s&&i>s?this.isDateValid12(o)?e.isCompleted=!0:r=r.slice(0,r.length-1):void 0!==s&&0!==i&&i<=s&&(this.checkValidationDateTimePart(o,n,e),e.isCompleted&&!this.isDateValid12(o)&&(r=r.slice(0,r.length-1))):(r=r.slice(0,r.length-1),e.isCompleted=!1),e.value=r||void 0,t[n]=parseInt(r)>0?parseInt(r):void 0}},t.prototype.checkValidationDateTimePart=function(e,t,r){var n=e[t],o=10*n,i=10;"month"===t&&(i=3),"hour"===t&&(i=this.is12Hours?3:5),r.isCompleted=!0;for(var s=0;s<i;s++)if(e[t]=o+s,this.isDateValid12(e)){r.isCompleted=!1;break}e[t]=n},t.prototype.getCorrectDatePartFormat=function(e,t){var r,n,o,i=e.lexem,s=e.value||"";if(s&&"timeMarker"===i.type)return t&&(s+=this.getPlaceholder(i.count,s,i.value)),s;if(s&&e.isCompleted&&(s=parseInt(s).toString()),s&&e.isCompleted)s=this.getPlaceholder(i.count,s,"0")+s;else{;r=i,o=n=s,r.count<r.maxCount&&("day"===r.type&&0===parseInt(n[0])||"month"===r.type&&0===parseInt(n[0]))&&(o=n.slice(1,n.length)),s=o,t&&(s+=this.getPlaceholder(i.count,s,i.value))}return s},t.prototype.createIDateTimeComposition=function(){var e,t;return this.hasDatePart?(e=this.min||"0001-01-01",t=this.max||"9999-12-31"):(e=this.defaultDate+(this.min||"00:00:00"),t=this.defaultDate+(this.max||"23:59:59")),{hour:void 0,minute:void 0,second:void 0,day:void 0,month:void 0,year:void 0,min:new Date(e),max:new Date(t)}},t.prototype.parseTwoDigitYear=function(e){var t=e.value;return"year"!==e.lexem.type||e.lexem.count>2?t:(this.max&&this.max.length>
vendor: 4,784 bytes, line 1
1=4&&(this.turnOfTheCentury=parseInt(this.max.slice(2,4))),(parseInt(t)>this.turnOfTheCentury?"19":"20")+t)},t.prototype.getFormatedString=function(e){var t="",r="",n=!1,o=this.inputDateTimeData.length-1;if(!e){var i=this.inputDateTimeData.filter(function(e){return!!e.value});o=this.inputDateTimeData.indexOf(i[i.length-1])}for(var s=0;s<this.inputDateTimeData.length;s++){var a=this.inputDateTimeData[s];switch(a.lexem.type){case"timeMarker":case"hour":case"minute":case"second":case"day":case"month":case"year":if(void 0===a.value&&!e)return t+=n?r:"";var l=e||o>s;t+=r+this.getCorrectDatePartFormat(a,l),n=a.isCompleted;break;case"separator":r=a.lexem.value}}return t},t.prototype.cleanTimeMarker=function(e,t){var r="";e=e.toUpperCase();for(var n=0;n<e.length;n++)(!r&&("P"==e[n]||"A"==e[n])||r&&"M"==e[n])&&(r+=e[n]);return r=t?r.toUpperCase():r.toLowerCase()},t.prototype.setInputDateTimeData=function(e){var t=this,r=0;this.initInputDateTimeData(),this.lexems.forEach(function(n,o){if(e.length>0&&r<e.length&&"separator"!==n.type){var i=t.inputDateTimeData[o],s=e[r],a=void 0;a="timeMarker"===n.type?t.cleanTimeMarker(s,n.upperCase):t.leaveOnlyNumbers(s),i.value=a.slice(0,n.maxCount),r++}})},t.prototype._getMaskedValue=function(e,t){var r=this;void 0===t&&(t=!0);var n=null==e?"":e.toString(),o=this.getParts(n);this.setInputDateTimeData(o);var i=this.createIDateTimeComposition();return this.inputDateTimeData.forEach(function(e){"timeMarker"===e.lexem.type?r.updateTimeMarkerInputDateTimeData(e,i):r.updateInputDateTimeData(e,i)}),this.getFormatedString(t)},t.prototype.getParts=function(e){for(var t=[],r=this.lexems.filter(function(e){return"separator"!==e.type}),n=this.lexems.filter(function(e){return"separator"===e.type}).map(function(e){return e.value}),o="",i=!1,s=!1,a=0;a<e.length;a++){var l=e[a];if(l.match(i2)||l===r[t.length].value?(i=!1,s=!1,o+=l):"timeMarker"===r[t.length].type?(i=!1,s=!1,o+=l):-1!==n.indexOf(l)?!s&&(i=!0,t.push(o),o=""):!i&&(s=!0,t.push(o),o=""),t.length>=r.length){i=!1;break}}return(""!=o||i)&&t.push(o),t},t.prototype.getUnmaskedValue=function(e){var t,r=this,n=null==e?"":e.toString(),o=this.getParts(n);this.setInputDateTimeData(o);var i=null===(t=this.inputDateTimeData.filter(function(e){return"timeMarker"===e.lexem.type})[0])||void 0===t?void 0:t.value.toLowerCase()[0],s=this.createIDateTimeComposition(),a=!1;return this.inputDateTimeData.forEach(function(e){var t=e.value;if("timeMarker"!=e.lexem.type&&"separator"!=e.lexem.type){if(!t||t.length<e.lexem.count){a=!0;return}var n=parseInt(r.parseTwoDigitYear(e));"hour"==e.lexem.type&&"p"===i&&n!=r.twelve&&(n+=r.twelve),s[e.lexem.type]=n}}),a?"":this.getISO_8601Format(s)},t.prototype.getMaskedValue=function(e){return this.getMaskedStrFromISO(e)},t.prototype.processInput=function(e){var t={value:e.prevValue,caretPosition:e.selectionEnd,cancelPreventDefault:!1},r=e.prevValue.slice(0,e.selectionStart),n=e.prevValue.slice(e.selectionEnd);return t.value=this._getMaskedValue(r+(e.insertedChars||"")+n),e.insertedChars||"backward"!==e.inputDirection?t.caretPosition=this._getMaskedValue(r+(e.insertedChars||""),!1).length:t.caretPosition=e.selectionStart,t},a8([eW()],t.prototype,"min",void 0),a8([eW()],t.prototype,"max",void 0),t}(aZ);e6.addClass("datetimemask",[{name:"min",type:"datetime",enableIf:function(e){return!!e.pattern}},{name:"max",type:"datetime",enableIf:function(e){return!!e.pattern}}],function(){return new a6},"patternmask");var a7=(eI=function(e,t){return(eI=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}eI(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),a9=function(e,t,r,n){var o,i=arguments.length,s=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(s=(i<3?o(s):i>3?o(t,r,s):o(t,r))||s);return i>3&&s&&Object.defineProperty(t,r,s),s},le=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return a7(t,e),t.prototype.getType=function(){return"currencymask"},t.prototype.wrapText=function(e){var t=this.prefix||"",r=this.suffix||"",n=e;return n?(-1===n.indexOf(t)&&(n=t+n),-1===n.indexOf(r)&&(n+=r),n):n},t.prototype.unwrapInputArgs=function(e){var t=e.prevValue;if(t){if(this.prefix&&-1!==t.indexOf(this.prefix)){t=t.slice(t.indexOf(this.prefix)+this.prefix.length);var r=(this.prefix||"").length;e.selectionStart=Math.max(e.selectionStart-r,0),e.selectionEnd-=r}
1this.suffix&&-1!==t.indexOf(this.suffix)&&(t=t.slice(0,t.indexOf(this.suffix))),e.prevValue=t}},t.prototype.processInput=function(t){this.unwrapInputArgs(t);var r=e.prototype.processInput.call(this,t),n=(this.prefix||"").length;return r.value&&(r.caretPosition+=n),r.value=this.wrapText(r.value),r},t.prototype.getMaskedValue=function(t){var r=e.prototype.getMaskedValue.call(this,t);return this.wrapText(r)},a9([eW()],t.prototype,"prefix",void 0),a9([eW()],t.prototype,"suffix",void 0),t}(a2);function lt(e,t){if(eE!=e){var r="survey-core has version '"+eE+"' and "+t+" has version '"+e+"'. SurveyJS libraries should have the same versions to work correctly.";i.error(r)}}function lr(e){ln(e)}function ln(e){(function(e,t,r){if(!e)return;var n=function(e){var t,r,n,o={},i=0,s=0,a="",l=String.fromCharCode,u=e.length;for(t=0;t<64;t++)o["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(t)]=t;for(r=0;r<u;r++)for(i=(i<<6)+o[e.charAt(r)],s+=6;s>=8;)((n=i>>>(s-=8)&255)||r<u-2)&&(a+=l(n));return a}(e);if(!n)return;var o=n.indexOf(";");if(!(o<0))(function(e){if(!e)return!0;var t="domains:",r=e.indexOf(t);if(r<0)return!0;var n=e.substring(r+t.length).toLowerCase().split(",");if(!Array.isArray(n)||0===n.length)return!0;var o=e_.getLocation();if(o&&o.hostname){var i=o.hostname.toLowerCase();n.push("localhost");for(var s=0;s<n.length;s++)if(i.indexOf(n[s])>-1)return!0;return!1}return!0})(n.substring(0,o))&&(n=n.substring(o+1)).split(",").forEach(function(e){var n=e.indexOf("=");n>0&&(t[e.substring(0,n)]=new Date(r)<=new Date(e.substring(n+1)))})})(e,li,eR)}function lo(e){return!0===li[e.toString()]}e6.addClass("currencymask",[{name:"prefix"},{name:"suffix"}],function(){return new le},"numericmask"),eE="1.12.23",r9.version=eE,eR="2025-02-11";var li={},ls={"$main-color":"#1ab394","$add-button-color":"#1948b3","$remove-button-color":"#ff1800","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-slider-color":"#cfcfcf","$error-color":"#d52901","$text-color":"#404040","$light-text-color":"#fff","$checkmark-color":"#fff","$progress-buttons-color":"#8dd9ca","$inputs-background-color":"transparent","$main-hover-color":"#9f9f9f","$body-container-background-color":"#f4f4f4","$text-border-color":"#d4d4d4","$disabled-text-color":"rgba(64, 64, 64, 0.5)","$border-color":"rgb(64, 64, 64, 0.5)","$header-background-color":"#e7e7e7","$answer-background-color":"rgba(26, 179, 148, 0.2)","$error-background-color":"rgba(213, 41, 1, 0.2)","$radio-checked-color":"#404040","$clean-button-color":"#1948b3","$body-background-color":"#ffffff","$foreground-light":"#909090","$font-family":"Raleway"},la={"$header-background-color":"#e7e7e7","$body-container-background-color":"#f4f4f4","$main-color":"#1ab394","$main-hover-color":"#0aa384","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#6d7072","$text-input-color":"#6d7072","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#8dd9ca","$progress-buttons-line-color":"#d4d4d4"},ll={"$header-background-color":"#4a4a4a","$body-container-background-color":"#f8f8f8","$main-color":"#f78119","$main-hover-color":"#e77109","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#f78119","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#f7b781","$progress-buttons-line-color":"#d4d4d4"},lu={"$header-background-color":"#d9d8dd","$body-container-background-color":"#f6f7f2","$main-color":"#3c4f6d","$main-hover-color":"#2c3f5d","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 
164, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#839ec9","$progress-buttons-line-color":"#d4d4d4"},lc={"$header-background-color":"#ddd2ce","$body-container-background-color":"#f7efed","$main-color":"#68656e","$main-hover-color":"#58555e","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#4a4a4a","$text-input-color":"#4a4a4a","$header-color":"#6d7072","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#c6bed4","$progress-buttons-line-color":"#d4d4d4"},lp={"$header-background-color":"#cdccd2","$body-container-background-color":"#efedf4","$main-color":"#0f0f33","$main-hover-color":"#191955","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#0f0f33","$text-input-color":"#0f0f33","$header-color":"#0f0f33","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$progress-text-color":"#9d9d9d","$disable-color":"#dbdbdb","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#747491","$progress-buttons-line-color":"#d4d4d4"},lh={"$header-background-color":"#82b8da","$body-container-background-color":"#dae1e7","$main-color":"#3c3b40","$main-hover-color":"#1e1d20","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#d1c9f5","$progress-buttons-line-color":"#d4d4d4"},ld={"$header-background-color":"#323232","$body-container-background-color":"#f8f8f8","$main-color":"#5ac8fa","$main-hover-color":"#06a1e7","$body-background-color":"white","$inputs-background-color":"white","$text-color":"#000","$text-input-color":"#000","$header-color":"#000","$border-color":"#e7e7e7","$error-color":"#ed5565","$error-background-color":"#fcdfe2","$disable-color":"#dbdbdb","$progress-text-color":"#9d9d9d","$disabled-label-color":"rgba(64, 64, 64, 0.5)","$slider-color":"white","$disabled-switch-color":"#9f9f9f","$disabled-slider-color":"#cfcfcf","$foreground-light":"#909090","$foreground-disabled":"#161616","$background-dim":"#f3f3f3","$progress-buttons-color":"#acdcf2","$progress-buttons-line-color":"#d4d4d4"},lf=function(){function e(){e.autoApplyTheme()}return e.autoApplyTheme=function(){if("bootstrap"!==oB.currentType&&"bootstrapmaterial"!==oB.currentType){var t=e.getIncludedThemeCss();1===t.length&&e.applyTheme(t[0].name)}},e.getAvailableThemes=function(){return oB.getAvailableThemes().filter(function(e){return -1!==["defaultV2","default","modern"].indexOf(e)}).map(function(e){return{name:e,theme:oB[e]}})},e.getIncludedThemeCss=function(){if(void 0===r9.environment)return[];var t=r9.environment.rootElement,r=e.getAvailableThemes(),n=rE(t)?t.host:t;if(n){var o=getComputedStyle(n);if(o.length)return r.filter(function(e){return e.theme.variables&&o.getPropertyValue(e.theme.variables.themeMark)})}return[]},e.findSheet=function(e){if(void 0===r9.environment)return null;for(var t=r9.environment.root.styleSheets,r=0;r<t.length;r++)if(t[r].ownerNode&&t[r].ownerNode.id===e)return t[r];return null},e.createSheet=function(t){var r=r9.environment.stylesSheetsMountContainer,n=eD.createElement("style");return n.id=t,n.appendChild(new Text("")),rR(r).appendChild(n),e.Logger&&e.Logger.log("style sheet "+t+" created"),n.sheet},e.applyTheme=function(t,r){if(void 0===t&&(t="default"),void 0!==r9.environment){var n=r9.environment.rootElement,o=rE(n)?n.host:n;if(oB.currentType=t,e.Enabled){if("bootstrap"!==t&&"bootstrapmaterial"!==t){!function(e,t){Object.keys(e||{}
1).forEach(function(r){var n=r.substring(1);t.style.setProperty("--"+n,e[r])})}(e.ThemeColors[t],o),e.Logger&&e.Logger.log("apply theme "+t+" completed");return}var i=e.ThemeCss[t];if(!i){oB.currentType="defaultV2";return}e.insertStylesRulesIntoDocument();var s=r||e.ThemeSelector[t]||e.ThemeSelector.default,a=(t+s).trim(),l=e.findSheet(a);if(!l){l=e.createSheet(a);var u=e.ThemeColors[t]||e.ThemeColors.default;Object.keys(i).forEach(function(e){var t=i[e];Object.keys(u||{}).forEach(function(e){return t=t.replace(RegExp("\\"+e,"g"),u[e])});try{0===e.indexOf("body")?l.insertRule(e+" { "+t+" }",0):l.insertRule(s+e+" { "+t+" }",0)}catch(e){}})}}e.Logger&&e.Logger.log("apply theme "+t+" completed")}},e.insertStylesRulesIntoDocument=function(){if(e.Enabled){var t=e.findSheet(e.SurveyJSStylesSheetId);!t&&(t=e.createSheet(e.SurveyJSStylesSheetId)),Object.keys(e.Styles).length&&Object.keys(e.Styles).forEach(function(r){try{t.insertRule(r+" { "+e.Styles[r]+" }",0)}catch(e){}}),Object.keys(e.Media).length&&Object.keys(e.Media).forEach(function(r){try{t.insertRule(e.Media[r].media+" { "+r+" { "+e.Media[r].style+" } }",0)}catch(e){}})}},e.SurveyJSStylesSheetId="surveyjs-styles",e.Styles={},e.Media={},e.ThemeColors={modern:ls,default:la,orange:ll,darkblue:lu,darkrose:lc,stone:lp,winter:lh,winterstone:ld},e.ThemeCss={},e.ThemeSelector={default:".sv_main ",modern:".sv-root-modern "},e.Enabled=!0,e}();iV.prototype.onBeforeRunConstructor=function(){e_.isAvailable()&&lf.autoApplyTheme()};var lg={root:"sv_main sv_default_css",rootProgress:"sv_progress",container:"sv_container",header:"sv_header",bodyContainer:"sv-components-row",body:"sv_body",bodyEmpty:"sv_body sv_body_empty",footer:"sv_nav",title:"",description:"",logo:"sv_logo",logoImage:"sv_logo__image",headerText:"sv_header__text",navigationButton:"sv_nav_btn",completedPage:"sv_completed_page",navigation:{complete:"sv_complete_btn",prev:"sv_prev_btn",next:"sv_next_btn",start:"sv_start_btn",preview:"sv_preview_btn",edit:"sv_edit_btn"},progress:"sv_progress",progressBar:"sv_progress_bar",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv_p_root",title:"sv_page_title",description:""},pageTitle:"sv_page_title",pageDescription:"",row:"sv_row",question:{mainRoot:"sv_q sv_qstn",flowRoot:"sv_q_flow sv_qstn",header:"",headerLeft:"title-left",content:"",contentLeft:"content-left",titleLeftRoot:"sv_qstn_left",requiredText:"sv_q_required_text",title:"sv_q_title",titleExpandable:"sv_q_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_q_title_expanded",titleCollapsed:"sv_q_title_collapsed",number:"sv_q_num",description:"sv_q_description",comment:"",required:"",titleRequired:"",hasError:"",indent:20,footer:"sv_q_footer",formGroup:"form-group",asCell:"sv_matrix_cell",icon:"sv_question_icon",iconExpanded:"sv_expanded",disabled:"sv_q--disabled"},panel:{title:"sv_p_title",titleExpandable:"sv_p_title_expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv_p_title_expanded",titleCollapsed:"sv_p_title_collapsed",titleOnError:"",icon:"sv_panel_icon",iconExpanded:"sv_expanded",description:"sv_p_description",container:"sv_p_container",footer:"sv_p_footer",number:"sv_q_num",requiredText:"sv_q_required_text"},error:{root:"sv_q_erbox",icon:"",item:"",locationTop:"sv_qstn_error_top",locationBottom:"sv_qstn_error_bottom"},boolean:{root:"sv_qcbc sv_qbln",rootRadio:"sv_qcbc sv_qbln",item:"sv-boolean",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label ",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qcbc sv_qbln",checkboxItem:"sv-boolean",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyvisible",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator",checkboxItemDecorator:"sv-item__svg sv-boolean__svg"},checkbox:{root:"sv_qcbc sv_qcbx",item:"sv_q_checkbox",itemSelectAll:"sv_q_checkbox_selectall",itemNone:"sv_q_checkbox_none",itemChecked:"checked",itemInline:"sv_q_checkbox_inline",label:"sv_q_checkbox_label",labelChecked:"",itemControl:"sv_q_checkbox_control_item",itemDecorator:"sv-hidden",controlLabel:"sv_q_checkbox_control_label",other:"sv_q_other sv_q_checkbox_other",column:"sv_q_select_column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},comment:{remainingCharacterCounter:"sv-remaining-character-counter"},dropdown:{root:"",popup:"sv-dropdown-popup",control:"sv_q_dropdown_control",controlInputFieldComponent:"sv_q_dropdown_control__input-field-component",selectWrapper:"sv_select_wrapper",other:"sv_q_dd_other",cleanButton:"sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv_q_dropdown__value",filterStringInput:"sv_q_dropdown__filter-string-input",hintPrefix:"sv_q_dropdown__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix"},html:{root:""},image:{root:"sv_q_image",image:"sv_image_image",noImage:"sv-image__no-image",noImageSvgIconId:"icon-no-image"},matrix:{root:"sv_q_matrix",label:"sv_q_m_label",itemChecked:"checked",itemDecorator:"sv-hidden",cell:"sv_q_m_cell",cellText:"sv_q_m_cell_text",cellTextSelected:"sv_q_m_cell_selected",cellLabel:"sv_q_m_cell_label",cellResponsiveTitle:"sv_q_m_cell_responsive_title"},matrixdropdown:{root:"sv_q_matrix_dropdown",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",rowAdditional:"sv-matrix__row--additional",rowTextCell:"sv-table__cell--row-text",detailRow:"sv_matrix_detail_row",detailRowText:"sv_matrix_cell_detail_rowtext",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions"},matrixdynamic:{root:"sv_q_matrix_dynamic",button:"sv_matrix_dynamic_button",buttonAdd:"sv_matrix_dynamic_button--add",buttonRemove:"",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",cell:"sv_matrix_cell",cellResponsiveTitle:"sv_matrix_cell_responsive_title",headerCell:"sv_matrix_cell_header",row:"sv_matrix_row",detailRow:"sv_matrix_detail_row",detailCell:"sv_matrix_cell_detail",choiceCell:"sv-table__cell--choice",detailButton:"sv_matrix_cell_detail_button",detailButtonExpanded:"sv_matrix_cell_detail_button_expanded",detailIcon:"sv_detail_panel_icon",detailIconExpanded:"sv_detail_expanded",detailPanelCell:"sv_matrix_cell_detail_panel",actionsCell:"sv_matrix_cell sv_matrix_cell_actions",emptyRowsSection:"sv_matrix_empty_rows_section",emptyRowsText:"sv_matrix_empty_rows_text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},paneldynamic:{root:"sv_panel_dynamic",title:"sv_p_title",header:"sv-paneldynamic__header sv_header",headerTab:"sv-paneldynamic__header-tab",button:"",buttonAdd:"sv-paneldynamic__add-btn",buttonRemove:"sv_p_remove_bt
1n",buttonRemoveRight:"sv_p_remove_btn_right",buttonPrev:"sv-paneldynamic__prev-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",buttonNext:"sv-paneldynamic__next-btn",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",panelWrapper:"sv_p_wrapper",panelWrapperInRow:"sv_p_wrapper_in_row",footer:"",progressBtnIcon:"icon-progressbutton"},multipletext:{root:"sv_q_mt",itemTitle:"sv_q_mt_title",item:"sv_q_mt_item",row:"sv_q_mt_row",itemLabel:"sv_q_mt_label",itemValue:"sv_q_mt_item_value sv_q_text_root"},radiogroup:{root:"sv_qcbc",item:"sv_q_radiogroup",itemChecked:"checked",itemInline:"sv_q_radiogroup_inline",itemDecorator:"sv-hidden",label:"sv_q_radiogroup_label",labelChecked:"",itemControl:"sv_q_radiogroup_control_item",controlLabel:"",other:"sv_q_other sv_q_radiogroup_other",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemHover:"sv-button-group__item--hover",itemSelected:"sv-button-group__item--selected",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},imagepicker:{root:"sv_imgsel",item:"sv_q_imgsel",itemChecked:"checked",label:"sv_q_imgsel_label",itemControl:"sv_q_imgsel_control_item",image:"sv_q_imgsel_image",itemInline:"sv_q_imagepicker_inline",itemText:"sv_q_imgsel_text",clearButton:"sv_q_radiogroup_clear",column:"sv_q_select_column",itemNoImage:"sv_q_imgsel__no-image",itemNoImageSvgIcon:"sv_q_imgsel__no-image-svg",itemNoImageSvgIconId:"icon-no-image"},rating:{root:"sv_q_rating",item:"sv_q_rating_item",itemFixedSize:"sv_q_rating_item_fixed",selected:"active",minText:"sv_q_rating_min_text",itemText:"sv_q_rating_item_text",maxText:"sv_q_rating_max_text",itemStar:"sv_q_rating__item-star",itemStarSelected:"sv_q_rating__item-star--selected",itemSmiley:"sv_q_rating__item-smiley",itemSmileySelected:"sv_q_rating__item-smiley--selected"},text:{root:"sv_q_text_root",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv_q_file",placeholderInput:"sv-visuallyhidden",previewItem:"sv_q_file_preview",removeButton:"sv_q_file_remove_button",fileInput:"sv-visuallyhidden",removeFile:"sv_q_file_remove",fileDecorator:"sv-file__decorator",fileSign:"sv_q_file_sign",chooseFile:"sv_q_file_choose_button",noFileChosen:"sv_q_file_placeholder",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv_q_signaturepad sjs_sp_container",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-default-mark"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv_q_row__question--small",selectWrapper:"sv_select_wrapper sv_q_tagbox_wrapper",other:"sv_q_input sv_q_comment sv_q_selectbase__other",cleanButton:"sv_q_tagbox_clean-button sv_q_dropdown_clean-button",cleanButtonSvg:"sv_q_tagbox_clean-button-svg sv_q_dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv_q_tagbox-item_clean-button",cleanItemButtonSvg:"sv_q_tagbox-item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv_q_input sv_q_tagbox sv_q_dropdown_control",controlValue:"sv_q_tagbox__value sv_q_dropdown__value",controlEmpty:"sv_q_dropdown--empty sv_q_tagbox--empty",placeholderInput:"sv_q_tagbox__placeholder",filterStringInput:"sv_q_tagbox__filter-string-input sv_q_dropdown__filter-string-input",hint:"sv_q_tagbox__hint",hintPrefix:"sv_q_dropdown__hint-prefix sv_q_tagbox__hint-prefix",hintSuffix:"sv_q_dropdown__hint-suffix sv_q_tagbox__hint-suffix",hintSuffixWrapper:"sv_q_tagbox__hint-suffix-wrapper"}};oB.default=lg,oB.orange=lg,oB.darkblue=lg,oB.darkrose=lg,oB.stone=lg,oB.winter=lg,oB.winterstone=lg;var lm
vendor: 15,826 bytes, line 1
1={root:"sv-root-modern",rootProgress:"sv-progress",timerRoot:"sv-body__timer",container:"sv-container-modern",header:"sv-title sv-container-modern__title",headerClose:"sv-container-modern__close",bodyContainer:"sv-components-row",body:"sv-body",bodyEmpty:"sv-body sv-body--empty",footer:"sv-footer sv-body__footer sv-clearfix",title:"",description:"",logo:"sv-logo",logoImage:"sv-logo__image",headerText:"sv-header__text",navigationButton:"sv-btn sv-btn--navigation",completedPage:"sv-completedpage",navigation:{complete:"sv-footer__complete-btn",prev:"sv-footer__prev-btn",next:"sv-footer__next-btn",start:"sv-footer__start-btn",preview:"sv-footer__preview-btn",edit:"sv-footer__edit-btn"},panel:{title:"sv-title sv-panel__title",titleExpandable:"sv-panel__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-panel__title--expanded",titleCollapsed:"sv-panel__title--collapsed",titleOnError:"sv-panel__title--error",description:"sv-description sv-panel__description",container:"sv-panel sv-row__panel",content:"sv-panel__content",icon:"sv-panel__icon",iconExpanded:"sv-panel__icon--expanded",footer:"sv-panel__footer",requiredText:"sv-panel__required-text",number:"sv-question__num"},paneldynamic:{root:"sv-paneldynamic",navigation:"sv-paneldynamic__navigation",title:"sv-title sv-question__title",button:"sv-btn",buttonRemove:"sv-paneldynamic__remove-btn",buttonRemoveRight:"sv-paneldynamic__remove-btn--right",buttonAdd:"sv-paneldynamic__add-btn",progressTop:"sv-paneldynamic__progress sv-paneldynamic__progress--top",progressBottom:"sv-paneldynamic__progress sv-paneldynamic__progress--bottom",buttonPrev:"sv-paneldynamic__prev-btn",buttonNext:"sv-paneldynamic__next-btn",buttonPrevDisabled:"sv-paneldynamic__prev-btn--disabled",buttonNextDisabled:"sv-paneldynamic__next-btn--disabled",progressContainer:"sv-paneldynamic__progress-container",progress:"sv-progress",progressBar:"sv-progress__bar",progressText:"sv-paneldynamic__progress-text",separator:"sv-paneldynamic__separator",panelWrapper:"sv-paneldynamic__panel-wrapper",panelWrapperInRow:"sv-paneldynamic__panel-wrapper--in-row",progressBtnIcon:"icon-progressbutton",footer:""},progress:"sv-progress sv-body__progress",progressBar:"sv-progress__bar",progressText:"sv-progress__text",progressTextInBar:"sv-hidden",progressButtonsContainerCenter:"sv_progress-buttons__container-center",progressButtonsContainer:"sv_progress-buttons__container",progressButtonsImageButtonLeft:"sv_progress-buttons__image-button-left",progressButtonsImageButtonRight:"sv_progress-buttons__image-button-right",progressButtonsImageButtonHidden:"sv_progress-buttons__image-button--hidden",progressButtonsListContainer:"sv_progress-buttons__list-container",progressButtonsList:"sv_progress-buttons__list",progressButtonsListElementPassed:"sv_progress-buttons__list-element--passed",progressButtonsListElementCurrent:"sv_progress-buttons__list-element--current",progressButtonsListElementNonClickable:"sv_progress-buttons__list-element--nonclickable",progressButtonsPageTitle:"sv_progress-buttons__page-title",progressButtonsPageDescription:"sv_progress-buttons__page-description",page:{root:"sv-page sv-body__page",title:"sv-title sv-page__title",number:"sv-page__num",description:"sv-description sv-page__description"},pageTitle:"sv-title sv-page__title",pageDescription:"sv-description sv-page__description",row:"sv-row sv-clearfix",question:{mainRoot:"sv-question sv-row__question",flowRoot:"sv-question sv-row__question sv-row__question--flow",asCell:"sv-table__cell",header:"sv-question__header",headerLeft:"sv-question__header--location--left",headerTop:"sv-question__header--location--top",headerBottom:"sv-question__header--location--bottom",content:"sv-question__content",contentLeft:"sv-question__content--left",titleLeftRoot:"",answered:"sv-question--answered",titleOnAnswer:"sv-question__title--answer",titleOnError:"sv-question__title--error",title:"sv-title sv-question__title",titleExpandable:"sv-question__title--expandable",titleExpandableSvg:"sd-element__title-expandable-svg",titleExpanded:"sv-question__title--expanded",titleCollapsed:"sv-question__title--collapsed",icon:"sv-question__icon",iconExpanded:"sv-question__icon--expanded",requiredText:"sv-question__required-text",number:"sv-question__num",description:"sv-description sv-question__description",descriptionUnderInput:"sv-description sv-question__description",comment:"sv-comment",required:"sv-question--required",titleRequired:"sv-question__title--required",indent:20,footer:"sv-question__footer",formGroup:"sv-question__form-group",hasError:"",disabled:"sv-question--disabled"},image:{root:"sv-image",image:"sv_image_image"},error:{root:"sv-question__erbox",icon:"",item:"",locationTop:"sv-question__erbox--location--top",locationBottom:"sv-question__erbox--location--bottom"},checkbox:{root:"sv-selectbase",item:"sv-item sv-checkbox sv-selectbase__item",itemSelectAll:"sv-checkbox--selectall",itemNone:"sv-checkbox--none",itemDisabled:"sv-item--disabled sv-checkbox--disabled",itemChecked:"sv-checkbox--checked",itemHover:"sv-checkbox--allowhover",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-checkbox__svg",itemSvgIconId:"#icon-moderncheck",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-checkbox__decorator",other:"sv-comment sv-question__other",column:"sv-selectbase__column"},ranking:{root:"sv-ranking",rootMobileMod:"sv-ranking--mobile",rootDragMod:"sv-ranking--drag",rootDisabled:"sv-ranking--disabled",rootDragHandleAreaIcon:"sv-ranking--drag-handle-area-icon",rootSelectToRankMod:"sv-ranking--select-to-rank",rootSelectToRankAlignVertical:"sv-ranking--select-to-rank-vertical",rootSelectToRankAlignHorizontal:"sv-ranking--select-to-rank-horizontal",rootSelectToRankSwapAreas:"sv-ranking--select-to-rank-swap-areas",item:"sv-ranking-item",itemContent:"sv-ranking-item__content",itemIndex:"sv-ranking-item__index",itemIndexEmptyMode:"sv-ranking-item__index--empty",controlLabel:"sv-ranking-item__text",itemGhostNode:"sv-ranking-item__ghost",itemIconContainer:"sv-ranking-item__icon-container",itemIcon:"sv-ranking-item__icon",itemIconHoverMod:"sv-ranking-item__icon--hover",itemIconFocusMod:"sv-ranking-item__icon--focus",itemGhostMod:"sv-ranking-item--ghost",itemDragMod:"sv-ranking-item--drag",container:"sv-ranking__container",containerEmptyMode:"sv-ranking__container--empty",containerFromMode:"sv-ranking__container--from",containerToMode:"sv-ranking__container--to",containerPlaceholder:"sv-ranking__container-placeholder",containersDivider:"sv-ranking__containers-divider"},radiogroup:{root:"sv-selectbase",item:"sv-item sv-radio sv-selectbase__item",itemInline:"sv-selectbase__item--inline",label:"sv-selectbase__label",labelChecked:"",itemDisabled:"sv-item--disabled sv-radio--disabled",itemChecked:"sv-radio--checked",itemHover:"sv-radio--allowhover",itemControl:"sv-visuallyhidden sv-item__control",itemDecorator:"sv-item__svg sv-radio__svg",itemSvgIconId:"#icon-modernradio",controlLabel:"sv-item__control-label",materialDecorator:"sv-item__decorator sv-selectbase__decorator sv-radio__decorator",other:"sv-comment sv-question__other",clearButton:"sv-btn sv-selectbase__clear-btn",column:"sv-selectbase__column"},buttongroup:{root:"sv-button-group",item:"sv-button-group__item",itemIcon:"sv-button-group__item-icon",itemDecorator:"sv-button-group__item-decorator",itemCaption:"sv-button-group__item-caption",itemSelected:"sv-button-group__item--selected",itemHover:"sv-button-group__item--hover",itemDisabled:"sv-button-group__item--disabled",itemControl:"sv-visuallyhidden"},boolean:{root:"sv_qbln",rootRadio:"sv_qbln",small:"sv-row__question--small",item:"sv-boolean sv-item",control:"sv-visuallyhidden",itemChecked:"sv-boolean--checked",itemIndeterminate:"sv-boolean--indeterminate",itemDisabled:"sv-item--disabled sv-boolean--disabled",switch:"sv-boolean__switch",slider:"sv-boolean__slider",label:"sv-boolean__label",disabledLabel:"sv-boolean__label--disabled",sliderGhost:"sv-boolean__thumb-ghost",rootCheckbox:"sv_qbln",checkboxItem:"sv-boolean sv-item",checkboxItemChecked:"sv-boolean--checked",controlCheckbox:"sv-visuallyhidden",checkboxControlLabel:"sv-boolean__label",checkboxItemIndeterminate:"sv-boolean--indeterminate",checkboxItemDisabled:"sv-item--disabled sv-boolean--disabled",checkboxMaterialDecorator:"sv-item__decorator sv-boolean__decorator ",checkboxItemDecorator:"sv-item__svg  sv-boolean__svg",indeterminatePath:"sv-boolean__indeterminate-path",svgIconCheckedId:"#icon-modernbooleancheckchecked",svgIconUncheckedId:"#icon-modernbooleancheckunchecked",svgIconIndId:"#icon-modernbooleancheckind"},text:{root:"sv-text",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter",onError:"sv-text--error"},multipletext:{root:"sv-multipletext",item:"sv-multipletext__item",itemLabel:"sv-multipletext__item-label",itemTitle:"sv-multipletext__item-title",row:"sv-multipletext__row",cell:"sv-multipletext__cell"},dropdown:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",control:"sv-dropdown",selectWrapper:"",other:"sv-comment sv-question__other",onError:"sv-dropdown--error",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",filterStringInput:"sv-dropdown__filter-string-input",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",hintPrefix:"sv-dropdown__hint-prefix",hintSuffix:"sv-dropdown__hint-suffix"},tagbox:{root:"",popup:"sv-dropdown-popup",small:"sv-row__question--small",selectWrapper:"sv_select_wrapper sv-tagbox_wrapper",other:"sv-input sv-comment sv-selectbase__other",cleanButton:"sv-tagbox_clean-button sv-dropdown_clean-button",cleanButtonSvg:"sv-tagbox_clean-button-svg sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",cleanItemButton:"sv-tagbox__item_clean-button",cleanItemButtonSvg:"sv-tagbox__item_clean-button-svg",cleanItemButtonIconId:"icon-clear_16x16",control:"sv-input sv-tagbox sv-dropdown",controlValue:"sv-tagbox__value sv-dropdown__value",controlEmpty:"sv-dropdown--empty sv-tagbox--empty",placeholderInput:"sv-tagbox__placeholder",filterStringInput:"sv-tagbox__filter-string-input sv-dropdown__filter-string-input"},imagepicker:{root:"sv-selectbase sv-imagepicker",column:"sv-selectbase__column",item:"sv-imagepicker__item",itemInline:"sv-imagepicker__item--inline",itemChecked:"sv-imagepicker__item--checked",itemDisabled:"sv-imagepicker__item--disabled",itemHover:"sv-imagepicker__item--allowhover",label:"sv-imagepicker__label",itemControl:"sv-imagepicker__control sv-visuallyhidden",image:"sv-imagepicker__image",itemText:"sv-imagepicker__text",clearButton:"sv-btn",other:"sv-comment sv-question__other"},matrix:{tableWrapper:"sv-matrix",root:"sv-table sv-matrix-root",rowError:"sv-matrix__row--error",cell:"sv-table__cell sv-matrix__cell",headerCell:"sv-table__cell sv-table__cell--header",label:"sv-item sv-radio sv-matrix__label",itemValue:"sv-visuallyhidden sv-item__control sv-radio__control",itemChecked:"sv-radio--checked",itemDisabled:"sv-item--disabled sv-radio--disabled",itemHover:"sv-radio--allowhover",materialDecorator:"sv-item__decorator sv-radio__decorator",itemDecorator:"sv-item__svg sv-radio__svg",cellText:"sv-matrix__text",cellTextSelected:"sv-matrix__text--checked",cellTextDisabled:"sv-matrix__text--disabled",cellResponsiveTitle:"sv-matrix__cell-responsive-title",itemSvgIconId:"#icon-modernradio"},matrixdropdown:{root:"sv-table sv-matrixdropdown",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",row:"sv-table__row",rowTextCell:"sv-table__cell--row-text",rowAdditional:"sv-table__row--additional",detailRow:"sv-table__row--detail",detailRowText:"sv-table__cell--detail-rowtext",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions"},matrixdynamic:{root:"sv-table sv-matrixdynamic",cell:"sv-table__cell",cellResponsiveTitle:"sv-table__responsive-title",headerCell:"sv-table__cell sv-table__cell--header",button:"sv-btn",buttonAdd:"sv-matrixdynamic__add-btn",buttonRemove:"sv-matrixdynamic__remove-btn",iconAdd:"",iconRemove:"",iconDrag:"sv-matrixdynamic__drag-icon",row:"sv-table__row",detailRow:"sv-table__row--detail",detailCell:"sv-table__cell--detail",choiceCell:"sv-table__cell--choice",detailButton:"sv-table__cell--detail-button",detailButtonExpanded:"sv-table__cell--detail-button--expanded",detailIcon:"sv-detail-panel__icon",detailIconExpanded:"sv-detail-panel__icon--expanded",detailPanelCell:"sv-table__cell--detail-panel",actionsCell:"sv-table__cell sv-table__cell--actions",emptyRowsSection:"sv-table__empty--rows--section",emptyRowsText:"sv-table__empty--rows--text",emptyRowsButton:"",ghostRow:"sv-matrix-row--drag-drop-ghost-mod",draggedRow:"sv-matrixdynamic-dragged-row"},rating:{root:"sv-rating",item:"sv-rating__item",selected:"sv-rating__item--selected",minText:"sv-rating__min-text",itemText:"sv-rating__item-text",maxText:"sv-rating__max-text",itemDisabled:"sv-rating--disabled",filterStringInput:"sv-dropdown__filter-string-input",control:"sv-dropdown",cleanButton:"sv-dropdown_clean-button",cleanButtonSvg:"sv-dropdown_clean-button-svg",cleanButtonIconId:"icon-clear_16x16",controlValue:"sv-dropdown__value",controlInputFieldComponent:"sv_dropdown_control__input-field-component",itemSmiley:"sv-rating__item-smiley",itemStar:"sv-rating__item-star",itemSmileySelected:"sv-rating__item-smiley--selected",itemStarSelected:"sv-rating__item-star--selected"},comment:{root:"sv-comment",small:"sv-row__question--small",remainingCharacterCounter:"sv-remaining-character-counter"},expression:"",file:{root:"sv-file",other:"sv-comment sv-question__other",placeholderInput:"sv-visuallyhidden",previewItem:"sd-file__preview-item",fileSignBottom:"sv-file__sign",fileDecorator:"sv-file__decorator",fileInput:"sv-visuallyhidden",noFileChosen:"sv-description sv-file__no-file-chosen",chooseFile:"sv-btn sv-file__choose-btn",controlDisabled:"sv-file__choose-btn--disabled",removeButton:"sv-hidden",removeButtonBottom:"sv-btn sv-file__clean-btn",removeFile:"sv-hidden",removeFileSvg:"sv-file__remove-svg",removeFileSvgIconId:"icon-removefile",wrapper:"sv-file__wrapper",dragAreaPlaceholder:"sv-hidden",fileList:""},signaturepad:{root:"sv-signaturepad sjs_sp_container",small:"sv-row__question--small",controls:"sjs_sp_controls",placeholder:"sjs_sp_placeholder",canvas:"sjs_sp_canvas",backgroundImage:"sjs_sp__background-image",clearButton:"sjs_sp_clear"},saveData:{root:"sv-save-data_root",rootWithButtons:"sv-save-data_root--with-buttons",info:"sv-save-data_info",error:"sv-save-data_error",success:"sv-save-data_success",button:"sv-save-data_button",shown:"sv-save-data_root--shown"},window:{root:"sv_window",rootCollapsedMod:"sv_window--collapsed",rootFullScreenMode:"sv_window--full-screen",rootContent:"sv_window_root-content",body:"sv_window_content",header:{root:"sv_window_header",titleCollapsed:"sv_window_header_title_collapsed",buttonsContainer:"sv_window_buttons_container",button:"sv_window_button",buttonExpanded:"",buttonCollapsed:"",collapseButton:"sv_window_button sv_window_button_collapse",closeButton:"sv_window_button sv_window_button_close",fullScreenButton:"sv_window_button sv_window_button_full_screen"}},variables:{mobileWidth:"--sv-mobile-width",themeMark:"--sv-modern-mark"}};
1oB.modern=lm;var ly=function(){function e(){this.icons={},this.iconPrefix="icon-",this.onIconsChanged=new tW}return e.prototype.processId=function(e,t){return 0==e.indexOf(t)&&(e=e.substring(t.length)),e=rA[e]||e},e.prototype.registerIconFromSymbol=function(e,t){this.icons[e]=t},e.prototype.registerIconFromSvgViaElement=function(e,t,r){if(void 0===r&&(r=this.iconPrefix),eD.isAvailable()){e=this.processId(e,r);var n=eD.createElement("div");n.innerHTML=t;var o=eD.createElement("symbol"),i=n.querySelector("svg");o.innerHTML=i.innerHTML;for(var s=0;s<i.attributes.length;s++)o.setAttributeNS("http://www.w3.org/2000/svg",i.attributes[s].name,i.attributes[s].value);o.id=r+e,this.registerIconFromSymbol(e,o.outerHTML)}},e.prototype.registerIconFromSvg=function(e,t,r){void 0===r&&(r=this.iconPrefix),e=this.processId(e,r);var n="<svg ",o="</svg>",i=(t=t.trim()).toLowerCase();return i.substring(0,n.length)===n&&i.substring(i.length-o.length,i.length)===o&&(this.registerIconFromSymbol(e,'<symbol id="'+r+e+'" '+t.substring(n.length,i.length-o.length)+"</symbol>"),!0)},e.prototype.registerIconsFromFolder=function(e){var t=this;e.keys().forEach(function(r){t.registerIconFromSvg(r.substring(2,r.length-4).toLowerCase(),e(r))})},e.prototype.registerIcons=function(e){for(var t in e)this.registerIconFromSvg(t,e[t]);this.updateMarkup()},e.prototype.iconsRenderedHtml=function(){var e=this;return Object.keys(this.icons).map(function(t){return e.icons[t]}).join("")},e.prototype.updateMarkup=function(){this.onIconsChanged.fire(this,{})},e}(),lb=new ly,lv={};function lC(e,t){!lv[e]&&(lv[e]={});var r=lv[e];for(var n in t)r[n]=t[n]}}})},e.exports=o()},664876:function(e){var t,r;t=0,r=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,(function(t){return e[t]}).bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s="./packages/survey-core/src/themes/index.ts")}({
1"./packages/survey-core/src/themes/borderless-dark-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"BorderlessDarkPanelless",function(){return o});var n={themeName:"borderless",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(43, 48, 63, 1)","--sjs-general-backcolor-dark":"rgba(50, 55, 72, 1)","--sjs-general-backcolor-dim":"rgba(43, 48, 63, 1)","--sjs-general-backcolor-dim-light":"rgba(36, 41, 55, 1)","--sjs-general-backcolor-dim-dark":"rgba(40, 46, 61, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(114, 120, 137, 1)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(114, 120, 137, 1)","--sjs-primary-backcolor":"rgba(114, 187, 255, 1)","--sjs-primary-backcolor-light":"rgba(114, 187, 255, 0.1)","--sjs-primary-backcolor-dark":"rgba(151, 205, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(55, 62, 79, 1)","--sjs-border-default":"rgba(65, 72, 90, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/borderless-dark.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"BorderlessDark",function(){return o});var n={themeName:"borderless",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(43, 48, 63, 1)","--sjs-general-backcolor-dark":"rgba(50, 55, 72, 1)","--sjs-general-backcolor-dim":"rgba(33, 37, 51, 1)","--sjs-general-backcolor-dim-light":"rgba(36, 41, 55, 1)","--sjs-general-backcolor-dim-dark":"rgba(40, 46, 61, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(114, 120, 137, 1)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(114, 120, 137, 1)","--sjs-primary-backcolor":"rgba(114, 187, 255, 1)","--sjs-primary-backcolor-light":"rgba(114, 187, 255, 0.1)","--sjs-primary-backcolor-dark":"rgba(151, 205, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(55, 62, 79, 1)","--sjs-border-default":"rgba(65, 72, 90, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/borderless-light-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"BorderlessLightPanelless",function(){return o});var n={themeName:"borderless",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(231, 240, 255, 1)","--sjs-general-backcolor-dark":"rgba(220, 232, 252, 1)","--sjs-general-backcolor-dim":"rgba(231, 240, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(220, 232, 252, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(133, 154, 186, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(133, 154, 186, 1)","--sjs-primary-backcolor":"rgba(35, 101, 200, 1)","--sjs-primary-backcolor-light":"rgba(35, 101, 200, 0.1)","--sjs-primary-backcolor-dark":"rgba(26, 86, 175, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(220, 229, 241, 1)","--sjs-border-default":"rgba(179, 200, 229, 1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/borderless-light.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"BorderlessLight",function(){return o});var n={themeName:"borderless",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(241, 246, 255, 1)","--sjs-general-backcolor-dim":"rgba(231, 240, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(238, 245, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(223, 233, 250, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(133, 154, 186, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(133, 154, 186, 1)","--sjs-primary-backcolor":"rgba(35, 101, 200, 1)","--sjs-primary-backcolor-light":"rgba(35, 101, 200, 0.1)","--sjs-primary-backcolor-dark":"rgba(26, 86, 175, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(220, 229, 241, 1)","--sjs-border-default":"rgba(179, 200, 229, 1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/contrast-dark-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ContrastDarkPanelless",function(){return o});var n={themeName:"contrast",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dark":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(255, 255, 255, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 1)","--sjs-primary-backcolor-dark":"rgba(53, 53, 53, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-large":"0px 6px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 1),0px -2px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1),0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-border-light":"rgba(232, 192, 51, 1)","--sjs-border-default":"rgba(0, 0, 0, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/contrast-dark.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ContrastDark",function(){return o});var n={themeName:"contrast",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dark":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim":"rgba(0, 0, 0, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(255, 255, 255, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 1)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 1)","--sjs-primary-backcolor":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 1)","--sjs-primary-backcolor-dark":"rgba(53, 53, 53, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-large":"0px 6px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 1),0px -2px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1),0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-border-light":"rgba(232, 192, 51, 1)","--sjs-border-default":"rgba(0, 0, 0, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/contrast-light-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ContrastLightPanelless",function(){return o});var n={themeName:"contrast",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-dark":"rgba(255, 216, 77, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor-light":"rgba(255, 216, 77, 1)","--sjs-primary-backcolor-dark":"rgba(83, 83, 83, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-large":"0px 6px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 1),0px -2px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1),0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-border-light":"rgba(0, 0, 0, 0.2)","--sjs-border-default":"rgba(0, 0, 0, 1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/contrast-light.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ContrastLight",function(){return o});var n={themeName:"contrast",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 216, 77, 1)","--sjs-general-backcolor-dim-dark":"rgba(255, 216, 77, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 1)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor":"rgba(0, 0, 0, 1)","--sjs-primary-backcolor-light":"rgba(255, 216, 77, 1)","--sjs-primary-backcolor-dark":"rgba(83, 83, 83, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-large":"0px 6px 0px 0px rgba(0, 0, 0, 1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 1),0px -2px 0px 2px rgba(0, 0, 0, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 1),0px 0px 0px 0px rgba(0, 0, 0, 1)","--sjs-border-light":"rgba(0, 0, 0, 0.2)","--sjs-border-default":"rgba(0, 0, 0, 1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/default-dark-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DefaultDarkPanelless",function(){return o});var n={themeName:"default",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(52, 52, 52, 1)","--sjs-general-backcolor-dim":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim-light":"rgba(43, 43, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(46, 46, 46, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(255, 152, 20, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.07)","--sjs-primary-backcolor-dark":"rgba(255, 170, 24, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 1px 2px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(255, 255, 255, 0.08)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/default-dark.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DefaultDark",function(){return o});var n={themeName:"default",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(52, 52, 52, 1)","--sjs-general-backcolor-dim":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-light":"rgba(43, 43, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(46, 46, 46, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(255, 152, 20, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.07)","--sjs-primary-backcolor-dark":"rgba(255, 170, 24, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 1px 2px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.35)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(255, 255, 255, 0.08)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/default-light-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DefaultLightPanelless",function(){return o});var n={themeName:"default",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(249, 249, 249, 1)","--sjs-general-backcolor-dim-dark":"rgba(243, 243, 243, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(25, 179, 148, 1)","--sjs-primary-backcolor-light":"rgba(25, 179, 148, 0.1)","--sjs-primary-backcolor-dark":"rgba(20, 164, 139, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 1px 2px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/default-light.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DefaultLight",function(){return o});var n={themeName:"default",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim":"rgba(243, 243, 243, 1)","--sjs-general-backcolor-dim-light":"rgba(249, 249, 249, 1)","--sjs-general-backcolor-dim-dark":"rgba(243, 243, 243, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(25, 179, 148, 1)","--sjs-primary-backcolor-light":"rgba(25, 179, 148, 0.1)","--sjs-primary-backcolor-dark":"rgba(20, 164, 139, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 1px 2px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 1px 2px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/doubleborder-dark-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DoubleBorderDarkPanelless",function(){return o});var n={themeName:"doubleborder",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(52, 52, 52, 1)","--sjs-general-backcolor-dark":"rgba(58, 58, 58, 1)","--sjs-general-backcolor-dim":"rgba(52, 52, 52, 1)","--sjs-general-backcolor-dim-light":"rgba(47, 47, 47, 1)","--sjs-general-backcolor-dim-dark":"rgba(53, 53, 53, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(120, 156, 210, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.1)","--sjs-primary-backcolor-dark":"rgba(146, 181, 235, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(255, 255, 255, 0.12)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(255, 255, 255, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(255, 255, 255, 0.1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.1)","--sjs-border-light":"rgba(255, 255, 255, 0.1)","--sjs-border-default":"rgba(255, 255, 255, 0.1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/doubleborder-dark.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DoubleBorderDark",function(){return o});var n={themeName:"doubleborder",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(52, 52, 52, 1)","--sjs-general-backcolor-dark":"rgba(58, 58, 58, 1)","--sjs-general-backcolor-dim":"rgba(47, 47, 47, 1)","--sjs-general-backcolor-dim-light":"rgba(47, 47, 47, 1)","--sjs-general-backcolor-dim-dark":"rgba(53, 53, 53, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(120, 156, 210, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.1)","--sjs-primary-backcolor-dark":"rgba(146, 181, 235, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(255, 255, 255, 0.12)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(255, 255, 255, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(255, 255, 255, 0.1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.1)","--sjs-border-light":"rgba(255, 255, 255, 0.1)","--sjs-border-default":"rgba(255, 255, 255, 0.1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/doubleborder-light-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DoubleBorderLightPanelless",function(){return o});var n={themeName:"doubleborder",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(239, 239, 239, 1)","--sjs-general-backcolor-dim":"rgba(245, 245, 245, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(237, 237, 237, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(76, 100, 137, 1)","--sjs-primary-backcolor-light":"rgba(76, 100, 137, 0.1)","--sjs-primary-backcolor-dark":"rgba(62, 83, 115, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 0.07)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.07)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 0.08),0px 2px 6px 0px rgba(0, 0, 0, 0.04)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.08)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.1)","--sjs-border-default":"rgba(0, 0, 0, 0.1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/doubleborder-light.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DoubleBorderLight",function(){return o});var n={themeName:"doubleborder",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(239, 239, 239, 1)","--sjs-general-backcolor-dim":"rgba(245, 245, 245, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(237, 237, 237, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(76, 100, 137, 1)","--sjs-primary-backcolor-light":"rgba(76, 100, 137, 0.1)","--sjs-primary-backcolor-dark":"rgba(62, 83, 115, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 2px rgba(0, 0, 0, 0.07)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.07)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(0, 0, 0, 0.08),0px 2px 6px 0px rgba(0, 0, 0, 0.04)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.08)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.1)","--sjs-border-default":"rgba(0, 0, 0, 0.1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/flat-dark-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FlatDarkPanelless",function(){return o});var n={themeName:"flat",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(56, 56, 56, 1)","--sjs-general-backcolor-dim":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim-light":"rgba(43, 43, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(52, 52, 52, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(92, 214, 49, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.07)","--sjs-primary-backcolor-dark":"rgba(130, 237, 92, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.09)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.09)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.12),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.07)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.07)","--sjs-border-light":"rgba(255, 255, 255, 0.07)","--sjs-border-default":"rgba(255, 255, 255, 0.07)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/flat-dark.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FlatDark",function(){return o});var n={themeName:"flat",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(56, 56, 56, 1)","--sjs-general-backcolor-dim":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-light":"rgba(43, 43, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(52, 52, 52, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(92, 214, 49, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.07)","--sjs-primary-backcolor-dark":"rgba(130, 237, 92, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.09)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.09)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.12),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.07)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.07)","--sjs-border-light":"rgba(255, 255, 255, 0.07)","--sjs-border-default":"rgba(255, 255, 255, 0.07)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/flat-light-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FlatLightPanelless",function(){return o});var n={themeName:"flat",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(246, 246, 246, 1)","--sjs-general-backcolor-dark":"rgba(235, 235, 235, 1)","--sjs-general-backcolor-dim":"rgba(246, 246, 246, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(235, 235, 235, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(85, 181, 52, 1)","--sjs-primary-backcolor-light":"rgba(85, 181, 52, 0.1)","--sjs-primary-backcolor-dark":"rgba(64, 159, 31, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1),0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.12)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.12)","--sjs-border-light":"rgba(0, 0, 0, 0.12)","--sjs-border-default":"rgba(0, 0, 0, 0.12)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/flat-light.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"FlatLight",function(){return o});var n={themeName:"flat",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(246, 246, 246, 1)","--sjs-general-backcolor-dark":"rgba(235, 235, 235, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(235, 235, 235, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(85, 181, 52, 1)","--sjs-primary-backcolor-light":"rgba(85, 181, 52, 0.1)","--sjs-primary-backcolor-dark":"rgba(64, 159, 31, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1),0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.12)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.12)","--sjs-border-light":"rgba(0, 0, 0, 0.12)","--sjs-border-default":"rgba(0, 0, 0, 0.12)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/index.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"DefaultLight",function(){return H}),r.d(t,"DefaultDark",function(){return z}),r.d(t,"DefaultLightPanelless",function(){return W}),r.d(t,"DefaultDarkPanelless",function(){return U}),r.d(t,"SharpLight",function(){return J}),r.d(t,"SharpDark",function(){return G}),r.d(t,"SharpLightPanelless",function(){return $}),r.d(t,"SharpDarkPanelless",function(){return K}),r.d(t,"BorderlessLight",function(){return Y}),r.d(t,"BorderlessDark",function(){return X}),r.d(t,"BorderlessLightPanelless",function(){return Z}),r.d(t,"BorderlessDarkPanelless",function(){return ee}),r.d(t,"FlatLight",function(){return et}),r.d(t,"FlatDark",function(){return er}),r.d(t,"FlatLightPanelless",function(){return en}),r.d(t,"FlatDarkPanelless",function(){return eo}),r.d(t,"PlainLight",function(){return ei}),r.d(t,"PlainDark",function(){return es}),r.d(t,"PlainLightPanelless",function(){return ea}),r.d(t,"PlainDarkPanelless",function(){return el}),r.d(t,"DoubleBorderLight",function(){return eu}),r.d(t,"DoubleBorderDark",function(){return ec}),r.d(t,"DoubleBorderLightPanelless",function(){return ep}),r.d(t,"DoubleBorderDarkPanelless",function(){return eh}),r.d(t,"LayeredLight",function(){return ed}),r.d(t,"LayeredDark",function(){return ef}),r.d(t,"LayeredLightPanelless",function(){return eg}),r.d(t,"LayeredDarkPanelless",function(){return em}),r.d(t,"SolidLight",function(){return ey}),r.d(t,"SolidDark",function(){return eb}),r.d(t,"SolidLightPanelless",function(){return ev}),r.d(t,"SolidDarkPanelless",function(){return eC}),r.d(t,"ThreeDimensionalLight",function(){return ex}),r.d(t,"ThreeDimensionalDark",function(){return ew}),r.d(t,"ThreeDimensionalLightPanelless",function(){return eP}),r.d(t,"ThreeDimensionalDarkPanelless",function(){return eV}),r.d(t,"ContrastLight",function(){return ej}),r.d(t,"ContrastDark",function(){return eS}),r.d(t,"ContrastLightPanelless",function(){return eO}),r.d(t,"ContrastDarkPanelless",function(){return eI});var n=r("./packages/survey-core/src/themes/default-light.ts"),o=r("./packages/survey-core/src/themes/default-dark.ts"),i=r("./packages/survey-core/src/themes/default-light-panelless.ts"),s=r("./packages/survey-core/src/themes/default-dark-panelless.ts"),a=r("./packages/survey-core/src/themes/sharp-light.ts"),l=r("./packages/survey-core/src/themes/sharp-dark.ts"),u=r("./packages/survey-core/src/themes/sharp-light-panelless.ts"),c=r("./packages/survey-core/src/themes/sharp-dark-panelless.ts"),p=r("./packages/survey-core/src/themes/borderless-light.ts"),h=r("./packages/survey-core/src/themes/borderless-dark.ts"),d=r("./packages/survey-core/src/themes/borderless-light-panelless.ts"),f=r("./packages/survey-core/src/themes/borderless-dark-panelless.ts"),g=r("./packages/survey-core/src/themes/flat-light.ts"),m=r("./packages/survey-core/src/themes/flat-dark.ts"),y=r("./packages/survey-core/src/themes/flat-light-panelless.ts"),b=r("./packages/survey-core/src/themes/flat-dark-panelless.ts"),v=r("./packages/survey-core/src/themes/plain-light.ts"),C=r("./packages/survey-core/src/themes/plain-dark.ts"),x=r("./packages/survey-core/src/themes/plain-light-panelless.ts"),w=r("./packages/survey-core/src/themes/plain-dark-panelless.ts"),P=r("./packages/survey-core/src/themes/doubleborder-light.ts"),V=r("./packages/survey-core/src/themes/doubleborder-dark.ts"),j=r("./packages/survey-core/src/themes/doubleborder-light-panelless.ts"),S=r("./packages/survey-core/src/themes/doubleborder-dark-panelless.ts"),O=r("./packages/survey-core/src/themes/layered-light.ts"),I=r("./packages/survey-core/src/themes/layered-dark.ts"),T=r("./packages/survey-core/src/themes/layered-light-panelless.ts"),E=r("./packages/survey-core/src/themes/layered-dark-panelless.ts"),R=r("./packages/survey-core/src/themes/solid-light.ts"),_=r("./packages/survey-core/src/themes/solid-dark.ts"),D=r("./packages/survey-core/src/themes/solid-light-panelless.ts"),k=r("./packages/survey-core/src/themes/solid-dark-panelless.ts"),A=r("./packages/survey-core/src/themes/threedimensional-light.ts"),L=r("./packages/survey-core/src/themes/threedimensional-dark.ts"),N=r("./packages/survey-core/src/themes/threedimensional-light-panelless.ts"),M=r("./packages/survey-core/src/themes/threedimensional-dark-panelless.ts"),F=r("./
1packages/survey-core/src/themes/contrast-light.ts"),q=r("./packages/survey-core/src/themes/contrast-dark.ts"),B=r("./packages/survey-core/src/themes/contrast-light-panelless.ts"),Q=r("./packages/survey-core/src/themes/contrast-dark-panelless.ts"),H=n.default,z=o.default,W=i.default,U=s.default,J=a.default,G=l.default,$=u.default,K=c.default,Y=p.default,X=h.default,Z=d.default,ee=f.default,et=g.default,er=m.default,en=y.default,eo=b.default,ei=v.default,es=C.default,ea=x.default,el=w.default,eu=P.default,ec=V.default,ep=j.default,eh=S.default,ed=O.default,ef=I.default,eg=T.default,em=E.default,ey=R.default,eb=_.default,ev=D.default,eC=k.default,ex=A.default,ew=L.default,eP=N.default,eV=M.default,ej=F.default,eS=q.default,eO=B.default,eI=Q.default},
1"./packages/survey-core/src/themes/layered-dark-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"LayeredDarkPanelless",function(){return o});var n={themeName:"layered",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(39, 40, 50, 1)","--sjs-general-backcolor-dark":"rgba(46, 47, 58, 1)","--sjs-general-backcolor-dim":"rgba(39, 40, 50, 1)","--sjs-general-backcolor-dim-light":"rgba(32, 33, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(37, 38, 48, 1)","--sjs-general-forecolor":"rgba(213, 215, 238, 1)","--sjs-general-forecolor-light":"rgba(117, 120, 140, 1)","--sjs-general-dim-forecolor":"rgba(213, 215, 238, 1)","--sjs-general-dim-forecolor-light":"rgba(117, 119, 141, 1)","--sjs-primary-backcolor":"rgba(164, 127, 243, 1)","--sjs-primary-backcolor-light":"rgba(164, 127, 243, 0.1)","--sjs-primary-backcolor-dark":"rgba(192, 165, 251, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.1),0px 8px 16px 0px rgba(0, 0, 0, 0.15),0px 2px 4px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.1),0px 0px 0px 0px rgba(0, 0, 0, 0.15),0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"inset 0px 0px 0px 1px rgba(255, 255, 255, 0.05),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.03),inset 0px 1px 4px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.03),inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(54, 56, 69, 1)","--sjs-border-default":"rgba(67, 69, 85, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/layered-dark.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"LayeredDark",function(){return o});var n={themeName:"layered",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(39, 40, 50, 1)","--sjs-general-backcolor-dark":"rgba(46, 47, 58, 1)","--sjs-general-backcolor-dim":"rgba(30, 31, 40, 1)","--sjs-general-backcolor-dim-light":"rgba(32, 33, 43, 1)","--sjs-general-backcolor-dim-dark":"rgba(37, 38, 48, 1)","--sjs-general-forecolor":"rgba(213, 215, 238, 1)","--sjs-general-forecolor-light":"rgba(117, 120, 140, 1)","--sjs-general-dim-forecolor":"rgba(213, 215, 238, 1)","--sjs-general-dim-forecolor-light":"rgba(117, 119, 141, 1)","--sjs-primary-backcolor":"rgba(164, 127, 243, 1)","--sjs-primary-backcolor-light":"rgba(164, 127, 243, 0.1)","--sjs-primary-backcolor-dark":"rgba(192, 165, 251, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.1),0px 8px 16px 0px rgba(0, 0, 0, 0.15),0px 2px 4px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.1),0px 0px 0px 0px rgba(0, 0, 0, 0.15),0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"inset 0px 0px 0px 1px rgba(255, 255, 255, 0.05),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.03),inset 0px 1px 4px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.03),inset 0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-border-light":"rgba(54, 56, 69, 1)","--sjs-border-default":"rgba(67, 69, 85, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/layered-light-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"LayeredLightPanelless",function(){return o});var n={themeName:"layered",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(244, 244, 244, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(241, 237, 248, 1)","--sjs-general-backcolor-dim-dark":"rgba(225, 220, 233, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.5)","--sjs-primary-backcolor":"rgba(122, 100, 168, 1)","--sjs-primary-backcolor-light":"rgba(122, 100, 168, 0.1)","--sjs-primary-backcolor-dark":"rgba(105, 84, 152, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.05),0px 8px 16px 0px rgba(0, 0, 0, 0.1),0px 2px 4px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.05),0px 0px 0px 0px rgba(0, 0, 0, 0.1),0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05),inset 0px 1px 4px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.05),inset 0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/layered-light.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"LayeredLight",function(){return o});var n={themeName:"layered",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(244, 244, 244, 1)","--sjs-general-backcolor-dim":"rgba(216, 207, 236, 1)","--sjs-general-backcolor-dim-light":"rgba(241, 237, 248, 1)","--sjs-general-backcolor-dim-dark":"rgba(225, 220, 233, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.5)","--sjs-primary-backcolor":"rgba(122, 100, 168, 1)","--sjs-primary-backcolor-light":"rgba(122, 100, 168, 0.1)","--sjs-primary-backcolor-dark":"rgba(105, 84, 152, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.05),0px 8px 16px 0px rgba(0, 0, 0, 0.1),0px 2px 4px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.05),0px 0px 0px 0px rgba(0, 0, 0, 0.1),0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 0px 0px 1px rgba(0, 0, 0, 0.05),inset 0px 1px 4px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.05),inset 0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/plain-dark-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PlainDarkPanelless",function(){return o});var n={themeName:"plain",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dark":"rgba(47, 47, 47, 1)","--sjs-general-backcolor-dim":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-light":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-dark":"rgba(47, 47, 47, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(85, 171, 250, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.12)","--sjs-primary-backcolor-dark":"rgba(126, 193, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.12)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.12),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.12)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-border-light":"rgba(255, 255, 255, 0.12)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/plain-dark.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PlainDark",function(){return o});var n={themeName:"plain",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dark":"rgba(47, 47, 47, 1)","--sjs-general-backcolor-dim":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-light":"rgba(36, 36, 36, 1)","--sjs-general-backcolor-dim-dark":"rgba(47, 47, 47, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(85, 171, 250, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.12)","--sjs-primary-backcolor-dark":"rgba(126, 193, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.12)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.12),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.12)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.12)","--sjs-border-light":"rgba(255, 255, 255, 0.12)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/plain-light-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PlainLightPanelless",function(){return o});var n={themeName:"plain",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(243, 243, 243, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(37, 137, 229, 1)","--sjs-primary-backcolor-light":"rgba(37, 137, 229, 0.1)","--sjs-primary-backcolor-dark":"rgba(21, 119, 209, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.05)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(0, 0, 0, 0.15)","--sjs-border-default":"rgba(0, 0, 0, 0.15)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/plain-light.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"PlainLight",function(){return o});var n={themeName:"plain",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(243, 243, 243, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(37, 137, 229, 1)","--sjs-primary-backcolor-light":"rgba(37, 137, 229, 0.1)","--sjs-primary-backcolor-dark":"rgba(21, 119, 209, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.05)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.15)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-border-light":"rgba(0, 0, 0, 0.15)","--sjs-border-default":"rgba(0, 0, 0, 0.15)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/sharp-dark-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SharpDarkPanelless",function(){return o});var n={themeName:"sharp",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(58, 58, 58, 1)","--sjs-general-backcolor-dim":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim-light":"rgba(33, 33, 33, 1)","--sjs-general-backcolor-dim-dark":"rgba(47, 47, 47, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.5)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.8)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.55)","--sjs-primary-backcolor":"rgba(16, 226, 255, 1)","--sjs-primary-backcolor-light":"rgba(0, 0, 0, 0.35)","--sjs-primary-backcolor-dark":"rgba(129, 240, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.28)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.28)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.25),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.22)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.22)","--sjs-border-light":"rgba(255, 255, 255, 0.22)","--sjs-border-default":"rgba(255, 255, 255, 0.22)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/sharp-dark.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SharpDark",function(){return o});var n={themeName:"sharp",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dark":"rgba(58, 58, 58, 1)","--sjs-general-backcolor-dim":"rgba(27, 27, 27, 1)","--sjs-general-backcolor-dim-light":"rgba(33, 33, 33, 1)","--sjs-general-backcolor-dim-dark":"rgba(47, 47, 47, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.5)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.8)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.55)","--sjs-primary-backcolor":"rgba(16, 226, 255, 1)","--sjs-primary-backcolor-light":"rgba(0, 0, 0, 0.35)","--sjs-primary-backcolor-dark":"rgba(129, 240, 255, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(255, 255, 255, 0.28)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.28)","--sjs-shadow-medium":"0px 0px 0px 1px rgba(255, 255, 255, 0.25),0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(255, 255, 255, 0.22)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(255, 255, 255, 0.22)","--sjs-border-light":"rgba(255, 255, 255, 0.22)","--sjs-border-default":"rgba(255, 255, 255, 0.22)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/sharp-light-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SharpLightPanelless",function(){return o});var n={themeName:"sharp",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(228, 228, 228, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(238, 238, 238, 1)","--sjs-general-backcolor-dim-dark":"rgba(220, 220, 220, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.6)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.6)","--sjs-primary-backcolor":"rgba(103, 58, 176, 1)","--sjs-primary-backcolor-light":"rgba(103, 58, 176, 0.1)","--sjs-primary-backcolor-dark":"rgba(69, 24, 142, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.25)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.25)","--sjs-border-light":"rgba(0, 0, 0, 0.25)","--sjs-border-default":"rgba(0, 0, 0, 0.25)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/sharp-light.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SharpLight",function(){return o});var n={themeName:"sharp",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(228, 228, 228, 1)","--sjs-general-backcolor-dim":"rgba(224, 224, 224, 1)","--sjs-general-backcolor-dim-light":"rgba(238, 238, 238, 1)","--sjs-general-backcolor-dim-dark":"rgba(220, 220, 220, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.6)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.6)","--sjs-primary-backcolor":"rgba(103, 58, 176, 1)","--sjs-primary-backcolor-light":"rgba(103, 58, 176, 0.1)","--sjs-primary-backcolor-dark":"rgba(69, 24, 142, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 0px 0px 1px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 1px rgba(0, 0, 0, 0.25)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.25)","--sjs-border-light":"rgba(0, 0, 0, 0.25)","--sjs-border-default":"rgba(0, 0, 0, 0.25)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/solid-dark-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SolidDarkPanelless",function(){return o});var n={themeName:"solid",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(53, 55, 63, 1)","--sjs-general-backcolor-dark":"rgba(60, 63, 74, 1)","--sjs-general-backcolor-dim":"rgba(53, 55, 63, 1)","--sjs-general-backcolor-dim-light":"rgba(46, 48, 55, 1)","--sjs-general-backcolor-dim-dark":"rgba(51, 53, 61, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(125, 129, 143, 1)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(125, 130, 148, 1)","--sjs-primary-backcolor":"rgba(58, 202, 211, 1)","--sjs-primary-backcolor-light":"rgba(67, 70, 80, 1)","--sjs-primary-backcolor-dark":"rgba(92, 224, 233, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 2px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px -2px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(33, 35, 43, 1)","--sjs-border-light":"rgba(65, 69, 83, 1)","--sjs-border-default":"rgba(97, 101, 118, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/solid-dark.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SolidDark",function(){return o});var n={themeName:"solid",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(53, 55, 63, 1)","--sjs-general-backcolor-dark":"rgba(60, 63, 74, 1)","--sjs-general-backcolor-dim":"rgba(38, 40, 47, 1)","--sjs-general-backcolor-dim-light":"rgba(46, 48, 55, 1)","--sjs-general-backcolor-dim-dark":"rgba(51, 53, 61, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(125, 129, 143, 1)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(125, 130, 148, 1)","--sjs-primary-backcolor":"rgba(58, 202, 211, 1)","--sjs-primary-backcolor-light":"rgba(67, 70, 80, 1)","--sjs-primary-backcolor-dark":"rgba(92, 224, 233, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 2px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-inner":"0px -2px 0px 0px rgba(33, 35, 43, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(33, 35, 43, 1)","--sjs-border-light":"rgba(65, 69, 83, 1)","--sjs-border-default":"rgba(97, 101, 118, 1)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/solid-light-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SolidLightPanelless",function(){return o});var n={themeName:"solid",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(243, 243, 243, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(245, 245, 245, 1)","--sjs-general-backcolor-dim-dark":"rgba(234, 234, 234, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.43)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(46, 172, 180, 1)","--sjs-primary-backcolor-light":"rgba(46, 172, 180, 0.1)","--sjs-primary-backcolor-dark":"rgba(23, 156, 165, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 2px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 2px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/solid-light.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"SolidLight",function(){return o});var n={themeName:"solid",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(243, 243, 243, 1)","--sjs-general-backcolor-dim":"rgba(46, 172, 180, 1)","--sjs-general-backcolor-dim-light":"rgba(245, 245, 245, 1)","--sjs-general-backcolor-dim-dark":"rgba(234, 234, 234, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.43)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 1)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.8)","--sjs-primary-backcolor":"rgba(46, 172, 180, 1)","--sjs-primary-backcolor-light":"rgba(46, 172, 180, 0.1)","--sjs-primary-backcolor-dark":"rgba(23, 156, 165, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 2px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.2)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"inset 0px 2px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/threedimensional-dark-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ThreeDimensionalDarkPanelless",function(){return o});var n={themeName:"threedimensional",colorPalette:"dark",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(38, 38, 38, 1)","--sjs-general-backcolor-dark":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim":"rgba(28, 28, 28, 1)","--sjs-general-backcolor-dim-light":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim-dark":"rgba(58, 58, 58, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(243, 87, 134, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.05)","--sjs-primary-backcolor-dark":"rgba(250, 118, 157, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 2px 0px 2px rgba(64, 64, 64, 1),0px 0px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(64, 64, 64, 1),0px 0px 0px 0px rgba(64, 64, 64, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(64, 64, 64, 1),0px 8px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-large":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(64, 64, 64, 1),0px 2px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(64, 64, 64, 1),0px 0px 0px 0px rgba(64, 64, 64, 1)","--sjs-border-light":"rgba(255, 255, 255, 0.12)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/threedimensional-dark.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ThreeDimensionalDark",function(){return o});var n={themeName:"threedimensional",colorPalette:"dark",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(38, 38, 38, 1)","--sjs-general-backcolor-dark":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim":"rgba(28, 28, 28, 1)","--sjs-general-backcolor-dim-light":"rgba(48, 48, 48, 1)","--sjs-general-backcolor-dim-dark":"rgba(58, 58, 58, 1)","--sjs-general-forecolor":"rgba(255, 255, 255, 0.78)","--sjs-general-forecolor-light":"rgba(255, 255, 255, 0.42)","--sjs-general-dim-forecolor":"rgba(255, 255, 255, 0.79)","--sjs-general-dim-forecolor-light":"rgba(255, 255, 255, 0.45)","--sjs-primary-backcolor":"rgba(243, 87, 134, 1)","--sjs-primary-backcolor-light":"rgba(255, 255, 255, 0.05)","--sjs-primary-backcolor-dark":"rgba(250, 118, 157, 1)","--sjs-primary-forecolor":"rgba(32, 32, 32, 1)","--sjs-primary-forecolor-light":"rgba(32, 32, 32, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(48, 48, 48, 1)","--sjs-secondary-forecolor-light":"rgba(48, 48, 48, 0.25)","--sjs-shadow-small":"0px 2px 0px 2px rgba(64, 64, 64, 1),0px 0px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(64, 64, 64, 1),0px 0px 0px 0px rgba(64, 64, 64, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(64, 64, 64, 1),0px 8px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-large":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(64, 64, 64, 1),0px 2px 0px 2px rgba(64, 64, 64, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(64, 64, 64, 1),0px 0px 0px 0px rgba(64, 64, 64, 1)","--sjs-border-light":"rgba(255, 255, 255, 0.12)","--sjs-border-default":"rgba(255, 255, 255, 0.12)","--sjs-border-inside":"rgba(255, 255, 255, 0.08)","--sjs-special-red":"rgba(254, 76, 108, 1)","--sjs-special-red-light":"rgba(254, 76, 108, 0.1)","--sjs-special-red-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-green":"rgba(36, 197, 164, 1)","--sjs-special-green-light":"rgba(36, 197, 164, 0.1)","--sjs-special-green-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-blue":"rgba(91, 151, 242, 1)","--sjs-special-blue-light":"rgba(91, 151, 242, 0.1)","--sjs-special-blue-forecolor":"rgba(48, 48, 48, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(48, 48, 48, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/threedimensional-light-panelless.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ThreeDimensionalLightPanelless",function(){return o});var n={themeName:"threedimensional",colorPalette:"light",isPanelless:!0,cssVariables:{"--sjs-general-backcolor":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dark":"rgba(242, 242, 242, 1)","--sjs-general-backcolor-dim":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(242, 242, 242, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(217, 74, 100, 1)","--sjs-primary-backcolor-light":"rgba(217, 74, 100, 0.1)","--sjs-primary-backcolor-dark":"rgba(189, 61, 84, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 2px 0px 2px rgba(228, 228, 228, 1),0px 0px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(228, 228, 228, 1),0px 0px 0px 0px rgba(228, 228, 228, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(228, 228, 228, 1),0px 8px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-large":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(228, 228, 228, 1),0px -2px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(228, 228, 228, 1),0px 0px 0px 0px rgba(228, 228, 228, 1)","--sjs-border-light":"rgba(0, 0, 0, 0.08)","--sjs-border-default":"rgba(0, 0, 0, 0.08)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n},
1"./packages/survey-core/src/themes/threedimensional-light.ts":function(e,t,r){"use strict";r.r(t),r.d(t,"ThreeDimensionalLight",function(){return o});var n={themeName:"threedimensional",colorPalette:"light",isPanelless:!1,cssVariables:{"--sjs-general-backcolor":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dark":"rgba(242, 242, 242, 1)","--sjs-general-backcolor-dim":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-light":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dim-dark":"rgba(242, 242, 242, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-primary-backcolor":"rgba(217, 74, 100, 1)","--sjs-primary-backcolor-light":"rgba(217, 74, 100, 0.1)","--sjs-primary-backcolor-dark":"rgba(189, 61, 84, 1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-base-unit":"8px","--sjs-corner-radius":"4px","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small":"0px 2px 0px 2px rgba(228, 228, 228, 1),0px 0px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(228, 228, 228, 1),0px 0px 0px 0px rgba(228, 228, 228, 1)","--sjs-shadow-medium":"0px 0px 0px 2px rgba(228, 228, 228, 1),0px 8px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-large":"0px 0px 0px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner":"0px 0px 0px 2px rgba(228, 228, 228, 1),0px -2px 0px 2px rgba(228, 228, 228, 1)","--sjs-shadow-inner-reset":"0px 0px 0px 0px rgba(228, 228, 228, 1),0px 0px 0px 0px rgba(228, 228, 228, 1)","--sjs-border-light":"rgba(0, 0, 0, 0.08)","--sjs-border-default":"rgba(0, 0, 0, 0.08)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none"}};t.default=n;var o=n}
1})},e.exports=r()}}]);

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