survey-js-ui 1.11.11 → 1.11.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * surveyjs - Survey JavaScript library v1.11.11
2
+ * surveyjs - Survey JavaScript library v1.11.13
3
3
  * Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * License: MIT (http://www.opensource.org/licenses/mit-license.php)
5
5
  */
6
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("survey-core")):"function"==typeof define&&define.amd?define("survey-js-ui",["survey-core"],e):"object"==typeof exports?exports["survey-js-ui"]=e(require("survey-core")):t.SurveyUI=e(t.Survey)}(this,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e),n.d(e,"useState",(function(){return at})),n.d(e,"useId",(function(){return gt})),n.d(e,"useReducer",(function(){return lt})),n.d(e,"useEffect",(function(){return ct})),n.d(e,"useLayoutEffect",(function(){return pt})),n.d(e,"useInsertionEffect",(function(){return Oe})),n.d(e,"useTransition",(function(){return we})),n.d(e,"useDeferredValue",(function(){return qe})),n.d(e,"useSyncExternalStore",(function(){return Se})),n.d(e,"startTransition",(function(){return Ce})),n.d(e,"useRef",(function(){return dt})),n.d(e,"useImperativeHandle",(function(){return ht})),n.d(e,"useMemo",(function(){return ft})),n.d(e,"useCallback",(function(){return mt})),n.d(e,"useContext",(function(){return yt})),n.d(e,"useDebugValue",(function(){return vt})),n.d(e,"version",(function(){return ce})),n.d(e,"Children",(function(){return Dt})),n.d(e,"render",(function(){return Zt})),n.d(e,"hydrate",(function(){return Xt})),n.d(e,"unmountComponentAtNode",(function(){return ye})),n.d(e,"createPortal",(function(){return Vt})),n.d(e,"createElement",(function(){return C})),n.d(e,"createContext",(function(){return K})),n.d(e,"createFactory",(function(){return pe})),n.d(e,"cloneElement",(function(){return me})),n.d(e,"createRef",(function(){return w})),n.d(e,"Fragment",(function(){return O})),n.d(e,"isValidElement",(function(){return de})),n.d(e,"isFragment",(function(){return he})),n.d(e,"isMemo",(function(){return fe})),n.d(e,"findDOMNode",(function(){return ve})),n.d(e,"Component",(function(){return E})),n.d(e,"PureComponent",(function(){return Nt})),n.d(e,"memo",(function(){return xt})),n.d(e,"forwardRef",(function(){return kt})),n.d(e,"flushSync",(function(){return ge})),n.d(e,"unstable_batchedUpdates",(function(){return _e})),n.d(e,"StrictMode",(function(){return be})),n.d(e,"Suspense",(function(){return Lt})),n.d(e,"SuspenseList",(function(){return Ut})),n.d(e,"lazy",(function(){return Ht})),n.d(e,"renderSurvey",(function(){return Ui})),n.d(e,"renderPopupSurvey",(function(){return Wi})),n.d(e,"preact",(function(){return Qi})),n.d(e,"Survey",(function(){return Qn})),n.d(e,"attachKey2click",(function(){return Vn})),n.d(e,"ReactSurveyElementsWrapper",(function(){return Re})),n.d(e,"SurveyNavigationBase",(function(){return Kn})),n.d(e,"SurveyTimerPanel",(function(){return $n})),n.d(e,"SurveyPage",(function(){return Rn})),n.d(e,"SurveyRow",(function(){return Ue})),n.d(e,"SurveyPanel",(function(){return Yn})),n.d(e,"SurveyFlowPanel",(function(){return Xn})),n.d(e,"SurveyQuestion",(function(){return En})),n.d(e,"SurveyElementErrors",(function(){return Sn})),n.d(e,"SurveyQuestionAndErrorsCell",(function(){return Pn})),n.d(e,"ReactSurveyElement",(function(){return De})),n.d(e,"SurveyElementBase",(function(){return Te})),n.d(e,"SurveyQuestionElementBase",(function(){return Be})),n.d(e,"SurveyQuestionCommentItem",(function(){return _n})),n.d(e,"SurveyQuestionComment",(function(){return vn})),n.d(e,"SurveyQuestionCheckbox",(function(){return eo})),n.d(e,"SurveyQuestionCheckboxItem",(function(){return no})),n.d(e,"SurveyQuestionRanking",(function(){return ro})),n.d(e,"SurveyQuestionRankingItem",(function(){return io})),n.d(e,"SurveyQuestionRankingItemContent",(function(){return so})),n.d(e,"RatingItem",(function(){return lo})),n.d(e,"RatingItemStar",(function(){return po})),n.d(e,"RatingItemSmiley",(function(){return fo})),n.d(e,"RatingDropdownItem",(function(){return yo})),n.d(e,"TagboxFilterString",(function(){return _o})),n.d(e,"SurveyQuestionOptionItem",(function(){return bo})),n.d(e,"SurveyQuestionDropdownBase",(function(){return qo})),n.d(e,"SurveyQuestionDropdown",(function(){return Oo})),n.d(e,"SurveyQuestionTagboxItem",(function(){return So})),n.d(e,"SurveyQuestionTagbox",(function(){return Po})),n.d(e,"SurveyQuestionDropdownSelect",(function(){return xo})),n.d(e,"SurveyQuestionMatrix",(function(){return jo})),n.d(e,"SurveyQuestionMatrixRow",(function(){return ko})),n.d(e,"SurveyQuestionMatrixCell",(function(){return To})),n.d(e,"SurveyQuestionHtml",(function(){return Bo})),n.d(e,"SurveyQuestionFile",(function(){return Wo})),n.d(e,"SurveyFileChooseButton",(function(){return Ho})),n.d(e,"SurveyFilePreview",(function(){return Qo})),n.d(e,"SurveyQuestionMultipleText",(function(){return zo})),n.d(e,"SurveyQuestionRadiogroup",(function(){return Go})),n.d(e,"SurveyQuestionRadioItem",(function(){return Yo})),n.d(e,"SurveyQuestionText",(function(){return Xo})),n.d(e,"SurveyQuestionBoolean",(function(){return er})),n.d(e,"SurveyQuestionBooleanCheckbox",(function(){return or})),n.d(e,"SurveyQuestionBooleanRadio",(function(){return ir})),n.d(e,"SurveyQuestionEmpty",(function(){return ur})),n.d(e,"SurveyQuestionMatrixDropdownCell",(function(){return vr})),n.d(e,"SurveyQuestionMatrixDropdownBase",(function(){return fr})),n.d(e,"SurveyQuestionMatrixDropdown",(function(){return gr})),n.d(e,"SurveyQuestionMatrixDynamic",(function(){return Cr})),n.d(e,"SurveyQuestionMatrixDynamicAddButton",(function(){return qr})),n.d(e,"SurveyQuestionPanelDynamic",(function(){return kr})),n.d(e,"SurveyProgress",(function(){return Br})),n.d(e,"SurveyProgressButtons",(function(){return Lr})),n.d(e,"SurveyProgressToc",(function(){return Qr})),n.d(e,"SurveyQuestionRating",(function(){return zr})),n.d(e,"SurveyQuestionRatingDropdown",(function(){return Jr})),n.d(e,"SurveyQuestionExpression",(function(){return Gr})),n.d(e,"PopupSurvey",(function(){return Zr})),n.d(e,"SurveyWindow",(function(){return Xr})),n.d(e,"ReactQuestionFactory",(function(){return hn})),n.d(e,"ReactElementFactory",(function(){return xe})),n.d(e,"SurveyQuestionImagePicker",(function(){return ei})),n.d(e,"SurveyQuestionImage",(function(){return ri})),n.d(e,"SurveyQuestionSignaturePad",(function(){return si})),n.d(e,"SurveyQuestionButtonGroup",(function(){return ai})),n.d(e,"SurveyQuestionCustom",(function(){return pi})),n.d(e,"SurveyQuestionComposite",(function(){return di})),n.d(e,"Popup",(function(){return Ze})),n.d(e,"ListItemContent",(function(){return fi})),n.d(e,"ListItemGroup",(function(){return yi})),n.d(e,"List",(function(){return Wr})),n.d(e,"TitleActions",(function(){return cn})),n.d(e,"TitleElement",(function(){return dn})),n.d(e,"SurveyActionBar",(function(){return sn})),n.d(e,"LogoImage",(function(){return _i})),n.d(e,"SurveyHeader",(function(){return kn})),n.d(e,"SvgIcon",(function(){return Ve})),n.d(e,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return bi})),n.d(e,"SurveyQuestionMatrixDetailButton",(function(){return qi})),n.d(e,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return pr})),n.d(e,"SurveyQuestionPanelDynamicAddButton",(function(){return Er})),n.d(e,"SurveyQuestionPanelDynamicRemoveButton",(function(){return Oi})),n.d(e,"SurveyQuestionPanelDynamicPrevButton",(function(){return Nr})),n.d(e,"SurveyQuestionPanelDynamicNextButton",(function(){return Ir})),n.d(e,"SurveyQuestionPanelDynamicProgressText",(function(){return Rr})),n.d(e,"SurveyNavigationButton",(function(){return Si})),n.d(e,"QuestionErrorComponent",(function(){return xi})),n.d(e,"MatrixRow",(function(){return lr})),n.d(e,"Skeleton",(function(){return ji})),n.d(e,"NotifierComponent",(function(){return Mn})),n.d(e,"ComponentsContainer",(function(){return An})),n.d(e,"CharacterCounterComponent",(function(){return mn})),n.d(e,"HeaderMobile",(function(){return Ti})),n.d(e,"HeaderCell",(function(){return Di})),n.d(e,"Header",(function(){return Bi})),n.d(e,"SurveyLocStringViewer",(function(){return Pi})),n.d(e,"SurveyLocStringEditor",(function(){return Li})),n.d(e,"LoadingIndicatorComponent",(function(){return Lo})),n.d(e,"SvgBundleComponent",(function(){return Un})),n.d(e,"SurveyModel",(function(){return Ne.SurveyModel})),n.d(e,"SurveyWindowModel",(function(){return Ne.SurveyWindowModel})),n.d(e,"settings",(function(){return Ne.settings})),n.d(e,"ISurveyEnvironment",(function(){return Ne.ISurveyEnvironment})),n.d(e,"surveyLocalization",(function(){return Ne.surveyLocalization})),n.d(e,"surveyStrings",(function(){return Ne.surveyStrings})),n.d(e,"Model",(function(){return Ne.SurveyModel}));var o={};n.r(o),n.d(o,"Component",(function(){return E})),n.d(o,"Fragment",(function(){return O})),n.d(o,"createContext",(function(){return K})),n.d(o,"createElement",(function(){return C})),n.d(o,"createRef",(function(){return w})),n.d(o,"useCallback",(function(){return mt})),n.d(o,"useContext",(function(){return yt})),n.d(o,"useDebugValue",(function(){return vt})),n.d(o,"useEffect",(function(){return ct})),n.d(o,"useErrorBoundary",(function(){return _t})),n.d(o,"useId",(function(){return gt})),n.d(o,"useImperativeHandle",(function(){return ht})),n.d(o,"useLayoutEffect",(function(){return pt})),n.d(o,"useMemo",(function(){return ft})),n.d(o,"useReducer",(function(){return lt})),n.d(o,"useRef",(function(){return dt})),n.d(o,"useState",(function(){return at})),n.d(o,"Children",(function(){return Dt})),n.d(o,"PureComponent",(function(){return Nt})),n.d(o,"StrictMode",(function(){return be})),n.d(o,"Suspense",(function(){return Lt})),n.d(o,"SuspenseList",(function(){return Ut})),n.d(o,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return le})),n.d(o,"cloneElement",(function(){return me})),n.d(o,"createFactory",(function(){return pe})),n.d(o,"createPortal",(function(){return Vt})),n.d(o,"default",(function(){return Pe})),n.d(o,"findDOMNode",(function(){return ve})),n.d(o,"flushSync",(function(){return ge})),n.d(o,"forwardRef",(function(){return kt})),n.d(o,"hydrate",(function(){return Xt})),n.d(o,"isElement",(function(){return Ee})),n.d(o,"isFragment",(function(){return he})),n.d(o,"isMemo",(function(){return fe})),n.d(o,"isValidElement",(function(){return de})),n.d(o,"lazy",(function(){return Ht})),n.d(o,"memo",(function(){return xt})),n.d(o,"render",(function(){return Zt})),n.d(o,"startTransition",(function(){return Ce})),n.d(o,"unmountComponentAtNode",(function(){return ye})),n.d(o,"unstable_batchedUpdates",(function(){return _e})),n.d(o,"useDeferredValue",(function(){return qe})),n.d(o,"useInsertionEffect",(function(){return Oe})),n.d(o,"useSyncExternalStore",(function(){return Se})),n.d(o,"useTransition",(function(){return we})),n.d(o,"version",(function(){return ce}));var r,i,s,u,a,l,c,p,d,h,f,m={},y=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function g(t,e){for(var n in e)t[n]=e[n];return t}function b(t){var e=t.parentNode;e&&e.removeChild(t)}function C(t,e,n){var o,i,s,u={};for(s in e)"key"==s?o=e[s]:"ref"==s?i=e[s]:u[s]=e[s];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===u[s]&&(u[s]=t.defaultProps[s]);return q(t,u,o,i,null)}function q(t,e,n,o,r){var u={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++s:r,__i:-1,__u:0};return null==r&&null!=i.vnode&&i.vnode(u),u}function w(){return{current:null}}function O(t){return t.children}function E(t,e){this.props=t,this.context=e}function S(t,e){if(null==e)return t.__?S(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?S(t):null}function I(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return I(t)}}function P(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!N.__r++||a!==i.debounceRendering)&&((a=i.debounceRendering)||l)(N)}function N(){var t,e,n,o,r,s,a,l;for(u.sort(c);t=u.shift();)t.__d&&(e=u.length,o=void 0,s=(r=(n=t).__v).__e,a=[],l=[],n.__P&&((o=g({},r)).__v=r.__v+1,i.vnode&&i.vnode(o),L(n.__P,o,r,n.__n,n.__P.namespaceURI,32&r.__u?[s]:null,a,null==s?S(r):s,!!(32&r.__u),l),o.__v=r.__v,o.__.__k[o.__i]=o,A(a,o,l),o.__e!=s&&I(o)),u.length>e&&u.sort(c));N.__r=0}function x(t,e,n,o,r,i,s,u,a,l,c){var p,d,h,f,v,_=o&&o.__k||y,g=e.length;for(n.__d=a,R(n,e,_),a=n.__d,p=0;p<g;p++)null!=(h=n.__k[p])&&"boolean"!=typeof h&&"function"!=typeof h&&(d=-1===h.__i?m:_[h.__i]||m,h.__i=p,L(t,h,d,r,i,s,u,a,l,c),f=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&U(d.ref,null,h),c.push(h.ref,h.__c||f,h)),null==v&&null!=f&&(v=f),65536&h.__u||d.__k===h.__k?a=j(h,a,t):"function"==typeof h.type&&void 0!==h.__d?a=h.__d:f&&(a=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=a,n.__e=v}function R(t,e,n){var o,r,i,s,u,a=e.length,l=n.length,c=l,p=0;for(t.__k=[],o=0;o<a;o++)s=o+p,null!=(r=t.__k[o]=null==(r=e[o])||"boolean"==typeof r||"function"==typeof r?null:"string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?q(null,r,null,null,null):_(r)?q(O,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?q(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)?(r.__=t,r.__b=t.__b+1,u=T(r,n,s,c),r.__i=u,i=null,-1!==u&&(c--,(i=n[u])&&(i.__u|=131072)),null==i||null===i.__v?(-1==u&&p--,"function"!=typeof r.type&&(r.__u|=65536)):u!==s&&(u==s-1?p=u-s:u==s+1?p++:u>s?c>a-s?p+=u-s:p--:u<s&&p++,u!==o+p&&(r.__u|=65536))):(i=n[s])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=S(i)),W(i,i,!1),n[s]=null,c--);if(c)for(o=0;o<l;o++)null!=(i=n[o])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=S(i)),W(i,i))}function j(t,e,n){var o,r;if("function"==typeof t.type){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=j(o[r],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=S(t)),n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function k(t,e){return e=e||[],null==t||"boolean"==typeof t||(_(t)?t.some((function(t){k(t,e)})):e.push(t)),e}function T(t,e,n,o){var r=t.key,i=t.type,s=n-1,u=n+1,a=e[n];if(null===a||a&&r==a.key&&i===a.type&&0==(131072&a.__u))return n;if(o>(null!=a&&0==(131072&a.__u)?1:0))for(;s>=0||u<e.length;){if(s>=0){if((a=e[s])&&0==(131072&a.__u)&&r==a.key&&i===a.type)return s;s--}if(u<e.length){if((a=e[u])&&0==(131072&a.__u)&&r==a.key&&i===a.type)return u;u++}}return-1}function D(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||v.test(e)?n:n+"px"}function B(t,e,n,o,r){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||D(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||D(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?o?n.u=o.u:(n.u=p,t.addEventListener(e,i?h:d,i)):t.removeEventListener(e,i?h:d,i);else{if("http://www.w3.org/2000/svg"==r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function M(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=p++;else if(e.t<n.u)return;return n(i.event?i.event(e):e)}}}function L(t,e,n,o,r,s,u,a,l,c){var p,d,h,f,m,y,v,b,C,q,w,S,I,P,N,R,j=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=e.__e=n.__e]),(p=i.__b)&&p(e);t:if("function"==typeof j)try{if(b=e.props,C="prototype"in j&&j.prototype.render,q=(p=j.contextType)&&o[p.__c],w=p?q?q.props.value:p.__:o,n.__c?v=(d=e.__c=n.__c).__=d.__E:(C?e.__c=d=new j(b,w):(e.__c=d=new E(b,w),d.constructor=j,d.render=F),q&&q.sub(d),d.props=b,d.state||(d.state={}),d.context=w,d.__n=o,h=d.__d=!0,d.__h=[],d._sb=[]),C&&null==d.__s&&(d.__s=d.state),C&&null!=j.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=g({},d.__s)),g(d.__s,j.getDerivedStateFromProps(b,d.__s))),f=d.props,m=d.state,d.__v=e,h)C&&null==j.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),C&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(C&&null==j.getDerivedStateFromProps&&b!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=b,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&u.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,w),C&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,m,y)}))}if(d.context=w,d.props=b,d.__P=t,d.__e=!1,I=i.__r,P=0,C){for(d.state=d.__s,d.__d=!1,I&&I(e),p=d.render(d.props,d.state,d.context),N=0;N<d._sb.length;N++)d.__h.push(d._sb[N]);d._sb=[]}else do{d.__d=!1,I&&I(e),p=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++P<25);d.state=d.__s,null!=d.getChildContext&&(o=g(g({},o),d.getChildContext())),C&&!h&&null!=d.getSnapshotBeforeUpdate&&(y=d.getSnapshotBeforeUpdate(f,m)),x(t,_(R=null!=p&&p.type===O&&null==p.key?p.props.children:p)?R:[R],e,n,o,r,s,u,a,l,c),d.base=e.__e,e.__u&=-161,d.__h.length&&u.push(d),v&&(d.__E=d.__=null)}catch(t){if(e.__v=null,l||null!=s){for(e.__u|=l?160:32;a&&8===a.nodeType&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,e.__e=a}else e.__e=n.__e,e.__k=n.__k;i.__e(t,e,n)}else null==s&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=H(n.__e,e,n,o,r,s,u,l,c);(p=i.diffed)&&p(e)}function A(t,e,n){e.__d=void 0;for(var o=0;o<n.length;o++)U(n[o],n[++o],n[++o]);i.__c&&i.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){i.__e(t,e.__v)}}))}function H(t,e,n,o,i,s,u,a,l){var c,p,d,h,f,y,v,g=n.props,C=e.props,q=e.type;if("svg"===q?i="http://www.w3.org/2000/svg":"math"===q?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=s)for(c=0;c<s.length;c++)if((f=s[c])&&"setAttribute"in f==!!q&&(q?f.localName===q:3===f.nodeType)){t=f,s[c]=null;break}if(null==t){if(null===q)return document.createTextNode(C);t=document.createElementNS(i,q,C.is&&C),s=null,a=!1}if(null===q)g===C||a&&t.data===C||(t.data=C);else{if(s=s&&r.call(t.childNodes),g=n.props||m,!a&&null!=s)for(g={},c=0;c<t.attributes.length;c++)g[(f=t.attributes[c]).name]=f.value;for(c in g)if(f=g[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=f;else if("key"!==c&&!(c in C)){if("value"==c&&"defaultValue"in C||"checked"==c&&"defaultChecked"in C)continue;B(t,c,null,f,i)}for(c in C)f=C[c],"children"==c?h=f:"dangerouslySetInnerHTML"==c?p=f:"value"==c?y=f:"checked"==c?v=f:"key"===c||a&&"function"!=typeof f||g[c]===f||B(t,c,f,g[c],i);if(p)a||d&&(p.__html===d.__html||p.__html===t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(d&&(t.innerHTML=""),x(t,_(h)?h:[h],e,n,o,"foreignObject"===q?"http://www.w3.org/1999/xhtml":i,s,u,s?s[0]:n.__k&&S(n,0),a,l),null!=s)for(c=s.length;c--;)null!=s[c]&&b(s[c]);a||(c="value",void 0!==y&&(y!==t[c]||"progress"===q&&!y||"option"===q&&y!==g[c])&&B(t,c,y,g[c],i),c="checked",void 0!==v&&v!==t[c]&&B(t,c,v,g[c],i))}return t}function U(t,e,n){try{if("function"==typeof t){var o="function"==typeof t.__u;o&&t.__u(),o&&null==e||(t.__u=t(e))}else t.current=e}catch(t){i.__e(t,n)}}function W(t,e,n){var o,r;if(i.unmount&&i.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||U(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){i.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&W(o[r],e,n||"function"!=typeof t.type);n||null==t.__e||b(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function F(t,e,n){return this.constructor(t,n)}function Q(t,e,n){var o,s,u,a;i.__&&i.__(t,e),s=(o="function"==typeof n)?null:n&&n.__k||e.__k,u=[],a=[],L(e,t=(!o&&n||e).__k=C(O,null,[t]),s||m,m,e.namespaceURI,!o&&n?[n]:s?null:e.firstChild?r.call(e.childNodes):null,u,!o&&n?n:s?s.__e:e.firstChild,o,a),A(u,t,a)}function V(t,e){Q(t,e,V)}function z(t,e,n){var o,i,s,u,a=g({},t.props);for(s in t.type&&t.type.defaultProps&&(u=t.type.defaultProps),e)"key"==s?o=e[s]:"ref"==s?i=e[s]:a[s]=void 0===e[s]&&void 0!==u?u[s]:e[s];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),q(t.type,a,o||t.key,i||t.ref,null)}function K(t,e){var n={__c:e="__cC"+f++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,o;return this.getChildContext||(n=[],(o={})[e]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,P(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=y.slice,i={__e:function(t,e,n,o){for(var r,i,s;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(t)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,o||{}),s=r.__d),s)return r.__E=r}catch(e){t=e}throw t}},s=0,E.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof t&&(t=t(g({},n),this.props)),t&&g(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),P(this))},E.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),P(this))},E.prototype.render=O,u=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(t,e){return t.__v.__b-e.__v.__b},N.__r=0,p=0,d=M(!1),h=M(!0),f=0;var J,$,G,Y,Z=0,X=[],tt=i,et=tt.__b,nt=tt.__r,ot=tt.diffed,rt=tt.__c,it=tt.unmount,st=tt.__;function ut(t,e){tt.__h&&tt.__h($,t,Z||e),Z=0;var n=$.__H||($.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function at(t){return Z=1,lt(St,t)}function lt(t,e,n){var o=ut(J++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):St(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=$,!$.u)){var r=function(t,e,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(t){return!!t.__c}));if(r.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var s=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}})),!(!s&&o.__c.props===t)&&(!i||i.call(this,t,e,n))};$.u=!0;var i=$.shouldComponentUpdate,s=$.componentWillUpdate;$.componentWillUpdate=function(t,e,n){if(this.__e){var o=i;i=void 0,r(t,e,n),i=o}s&&s.call(this,t,e,n)},$.shouldComponentUpdate=r}return o.__N||o.__}function ct(t,e){var n=ut(J++,3);!tt.__s&&Et(n.__H,e)&&(n.__=t,n.i=e,$.__H.__h.push(n))}function pt(t,e){var n=ut(J++,4);!tt.__s&&Et(n.__H,e)&&(n.__=t,n.i=e,$.__h.push(n))}function dt(t){return Z=5,ft((function(){return{current:t}}),[])}function ht(t,e,n){Z=6,pt((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function ft(t,e){var n=ut(J++,7);return Et(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function mt(t,e){return Z=8,ft((function(){return t}),e)}function yt(t){var e=$.context[t.__c],n=ut(J++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub($)),e.props.value):t.__}function vt(t,e){tt.useDebugValue&&tt.useDebugValue(e?e(t):t)}function _t(t){var e=ut(J++,10),n=at();return e.__=t,$.componentDidCatch||($.componentDidCatch=function(t,o){e.__&&e.__(t,o),n[1](t)}),[n[0],function(){n[1](void 0)}]}function gt(){var t=ut(J++,11);if(!t.__){for(var e=$.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function bt(){for(var t;t=X.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(wt),t.__H.__h.forEach(Ot),t.__H.__h=[]}catch(e){t.__H.__h=[],tt.__e(e,t.__v)}}tt.__b=function(t){$=null,et&&et(t)},tt.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),st&&st(t,e)},tt.__r=function(t){nt&&nt(t),J=0;var e=($=t.__c).__H;e&&(G===$?(e.__h=[],$.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0}))):(e.__h.forEach(wt),e.__h.forEach(Ot),e.__h=[],J=0)),G=$},tt.diffed=function(t){ot&&ot(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==X.push(e)&&Y===tt.requestAnimationFrame||((Y=tt.requestAnimationFrame)||qt)(bt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.i=void 0}))),G=$=null},tt.__c=function(t,e){e.some((function(t){try{t.__h.forEach(wt),t.__h=t.__h.filter((function(t){return!t.__||Ot(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],tt.__e(n,t.__v)}})),rt&&rt(t,e)},tt.unmount=function(t){it&&it(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{wt(t)}catch(t){e=t}})),n.__H=void 0,e&&tt.__e(e,n.__v))};var Ct="function"==typeof requestAnimationFrame;function qt(t){var e,n=function(){clearTimeout(o),Ct&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);Ct&&(e=requestAnimationFrame(n))}function wt(t){var e=$,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),$=e}function Ot(t){var e=$;t.__c=t.__(),$=e}function Et(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function St(t,e){return"function"==typeof e?e(t):e}function It(t,e){for(var n in e)t[n]=e[n];return t}function Pt(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var o in e)if("__source"!==o&&t[o]!==e[o])return!0;return!1}function Nt(t,e){this.props=t,this.context=e}function xt(t,e){function n(t){var n=this.props.ref,o=n==t.ref;return!o&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!o:Pt(this.props,t)}function o(e){return this.shouldComponentUpdate=n,C(t,e)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(Nt.prototype=new E).isPureReactComponent=!0,Nt.prototype.shouldComponentUpdate=function(t,e){return Pt(this.props,t)||Pt(this.state,e)};var Rt=i.__b;i.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Rt&&Rt(t)};var jt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function kt(t){function e(e){var n=It({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=jt,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Tt=function(t,e){return null==t?null:k(k(t).map(e))},Dt={map:Tt,forEach:Tt,count:function(t){return t?k(t).length:0},only:function(t){var e=k(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:k},Bt=i.__e;i.__e=function(t,e,n,o){if(t.then)for(var r,i=e;i=i.__;)if((r=i.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);Bt(t,e,n,o)};var Mt=i.unmount;function Lt(){this.__u=0,this.t=null,this.__b=null}function At(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Ht(t){var e,n,o;function r(r){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){o=t})),o)throw o;if(!n)throw e;return C(n,r)}return r.displayName="Lazy",r.__f=!0,r}function Ut(){this.u=null,this.o=null}i.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Mt&&Mt(t)},(Lt.prototype=new E).__c=function(t,e){var n=e.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=At(o.__v),i=!1,s=function(){i||(i=!0,n.__R=null,r?r(u):u())};n.__R=s;var u=function(){if(!--o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=function t(e,n,o){return e&&o&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,o)})),e.__c&&e.__c.__P===n&&(e.__e&&o.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=o)),e}(t,t.__c.__P,t.__c.__O)}var e;for(o.setState({__a:o.__b=null});e=o.t.pop();)e.forceUpdate()}};o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(s,s)},Lt.prototype.componentWillUnmount=function(){this.t=[]},Lt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=It({},e)).__c&&(e.__c.__P===o&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,o)}))),e}(this.__b,n,o.__O=o.__P)}this.__b=null}var r=e.__a&&C(O,null,t.fallback);return r&&(r.__u&=-33),[C(O,null,e.__a?null:t.children),r]};var Wt=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Ft(t){return this.getChildContext=function(){return t.context},t.children}function Qt(t){var e=this,n=t.i;e.componentWillUnmount=function(){Q(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),Q(C(Ft,{context:e.context},t.__v),e.l)}function Vt(t,e){var n=C(Qt,{__v:t,i:e});return n.containerInfo=e,n}(Ut.prototype=new E).__a=function(t){var e=this,n=At(e.__v),o=e.o.get(t);return o[0]++,function(r){var i=function(){e.props.revealOrder?(o.push(r),Wt(e,t,o)):r()};n?n(i):i()}},Ut.prototype.render=function(t){this.u=null,this.o=new Map;var e=k(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Ut.prototype.componentDidUpdate=Ut.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){Wt(t,n,e)}))};var zt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Kt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Jt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,$t=/[A-Z0-9]/g,Gt="undefined"!=typeof document,Yt=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};function Zt(t,e,n){return null==e.__k&&(e.textContent=""),Q(t,e),"function"==typeof n&&n(),t?t.__c:null}function Xt(t,e,n){return V(t,e),"function"==typeof n&&n(),t?t.__c:null}E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(E.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var te=i.event;function ee(){}function ne(){return this.cancelBubble}function oe(){return this.defaultPrevented}i.event=function(t){return te&&(t=te(t)),t.persist=ee,t.isPropagationStopped=ne,t.isDefaultPrevented=oe,t.nativeEvent=t};var re,ie={enumerable:!1,configurable:!0,get:function(){return this.class}},se=i.vnode;i.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,o={};for(var r in e){var i=e[r];if(!("value"===r&&"defaultValue"in e&&null==i||Gt&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var s=r.toLowerCase();"defaultValue"===r&&"value"in e&&null==e.value?r="value":"download"===r&&!0===i?i="":"translate"===s&&"no"===i?i=!1:"ondoubleclick"===s?r="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||Yt(e.type)?"onfocus"===s?r="onfocusin":"onblur"===s?r="onfocusout":Jt.test(r)?r=s:-1===n.indexOf("-")&&Kt.test(r)?r=r.replace($t,"-$&").toLowerCase():null===i&&(i=void 0):s=r="oninput","oninput"===s&&o[r=s]&&(r="oninputCapture"),o[r]=i}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=k(e.children).forEach((function(t){t.props.selected=-1!=o.value.indexOf(t.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=k(e.children).forEach((function(t){t.props.selected=o.multiple?-1!=o.defaultValue.indexOf(t.props.value):o.defaultValue==t.props.value}))),e.class&&!e.className?(o.class=e.class,Object.defineProperty(o,"className",ie)):(e.className&&!e.class||e.class&&e.className)&&(o.class=o.className=e.className),t.props=o}(t),t.$$typeof=zt,se&&se(t)};var ue=i.__r;i.__r=function(t){ue&&ue(t),re=t.__c};var ae=i.diffed;i.diffed=function(t){ae&&ae(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value),re=null};var le={ReactCurrentDispatcher:{current:{readContext:function(t){return re.__n[t.__c].props.value},useCallback:mt,useContext:yt,useDebugValue:vt,useDeferredValue:qe,useEffect:ct,useId:gt,useImperativeHandle:ht,useInsertionEffect:Oe,useLayoutEffect:pt,useMemo:ft,useReducer:lt,useRef:dt,useState:at,useSyncExternalStore:Se,useTransition:we}}},ce="17.0.2";function pe(t){return C.bind(null,t)}function de(t){return!!t&&t.$$typeof===zt}function he(t){return de(t)&&t.type===O}function fe(t){return!!t&&!!t.displayName&&("string"==typeof t.displayName||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function me(t){return de(t)?z.apply(null,arguments):t}function ye(t){return!!t.__k&&(Q(null,t),!0)}function ve(t){return t&&(t.base||1===t.nodeType&&t)||null}var _e=function(t,e){return t(e)},ge=function(t,e){return t(e)},be=O;function Ce(t){t()}function qe(t){return t}function we(){return[!1,Ce]}var Oe=pt,Ee=de;function Se(t,e){var n=e(),o=at({h:{__:n,v:e}}),r=o[0].h,i=o[1];return pt((function(){r.__=n,r.v=e,Ie(r)&&i({h:r})}),[t,n,e]),ct((function(){return Ie(r)&&i({h:r}),t((function(){Ie(r)&&i({h:r})}))}),[t]),n}function Ie(t){var e,n,o=t.v,r=t.__;try{var i=o();return!((e=r)===(n=i)&&(0!==e||1/e==1/n)||e!=e&&n!=n)}catch(t){return!0}}var Pe={useState:at,useId:gt,useReducer:lt,useEffect:ct,useLayoutEffect:pt,useInsertionEffect:Oe,useTransition:we,useDeferredValue:qe,useSyncExternalStore:Se,startTransition:Ce,useRef:dt,useImperativeHandle:ht,useMemo:ft,useCallback:mt,useContext:yt,useDebugValue:vt,version:"17.0.2",Children:Dt,render:Zt,hydrate:Xt,unmountComponentAtNode:ye,createPortal:Vt,createElement:C,createContext:K,createFactory:pe,cloneElement:me,createRef:w,Fragment:O,isValidElement:de,isElement:Ee,isFragment:he,isMemo:fe,findDOMNode:ve,Component:E,PureComponent:Nt,memo:xt,forwardRef:kt,flushSync:ge,unstable_batchedUpdates:_e,StrictMode:be,Suspense:Lt,SuspenseList:Ut,lazy:Ht,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:le},Ne=n(0),xe=function(){function t(){this.creatorHash={}}return t.prototype.registerElement=function(t,e){this.creatorHash[t]=e},t.prototype.getAllTypes=function(){var t=new Array;for(var e in this.creatorHash)t.push(e);return t.sort()},t.prototype.isElementRegistered=function(t){return!!this.creatorHash[t]},t.prototype.createElement=function(t,e){var n=this.creatorHash[t];return null==n?null:n(e)},t.Instance=new t,t}(),Re=function(){function t(){}return t.wrapRow=function(t,e,n){var o=t.getRowWrapperComponentName(n),r=t.getRowWrapperComponentData(n);return xe.Instance.createElement(o,{element:e,row:n,componentData:r})},t.wrapElement=function(t,e,n){var o=t.getElementWrapperComponentName(n),r=t.getElementWrapperComponentData(n);return xe.Instance.createElement(o,{element:e,question:n,componentData:r})},t.wrapQuestionContent=function(t,e,n){var o=t.getQuestionContentWrapperComponentName(n),r=t.getElementWrapperComponentData(n);return xe.Instance.createElement(o,{element:e,question:n,componentData:r})},t.wrapItemValue=function(t,e,n,o){var r=t.getItemValueWrapperComponentName(o,n),i=t.getItemValueWrapperComponentData(o,n);return xe.Instance.createElement(r,{key:null==e?void 0:e.key,element:e,question:n,item:o,componentData:i})},t.wrapMatrixCell=function(t,e,n,o){void 0===o&&(o="cell");var r=t.getElementWrapperComponentName(n,o),i=t.getElementWrapperComponentData(n,o);return xe.Instance.createElement(r,{element:e,cell:n,componentData:i})},t}();Ne.SurveyModel.platform="react";var je,ke=(je=function(t,e){return(je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}je(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Te=function(t){function e(e){var n=t.call(this,e)||this;return n._allowComponentUpdate=!0,n}return ke(e,t),e.renderLocString=function(t,e,n){return void 0===e&&(e=null),xe.Instance.createElement(t.renderAs,{locStr:t.renderAsData,style:e,key:n})},e.renderQuestionDescription=function(t){var n=e.renderLocString(t.locDescription);return C("div",{style:t.hasDescription?void 0:{display:"none"},id:t.ariaDescriptionId,className:t.cssDescription},n)},e.prototype.componentDidMount=function(){this.makeBaseElementsReact()},e.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact()},e.prototype.componentDidUpdate=function(t,e){this.makeBaseElementsReact(),this.getStateElements().forEach((function(t){t.afterRerender()}))},e.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},e.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},e.prototype.shouldComponentUpdate=function(t,e){return this._allowComponentUpdate&&this.unMakeBaseElementsReact(),this._allowComponentUpdate},e.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var t=this.renderElement();return this.startEndRendering(-1),t&&(t=this.wrapElement(t)),this.changedStatePropNameValue=void 0,t},e.prototype.wrapElement=function(t){return t},Object.defineProperty(e.prototype,"isRendering",{get:function(){for(var t=0,e=this.getRenderedElements();t<e.length;t++){if(e[t].reactRendering>0)return!0}return!1},enumerable:!1,configurable:!0}),e.prototype.getRenderedElements=function(){return this.getStateElements()},e.prototype.startEndRendering=function(t){for(var e=0,n=this.getRenderedElements();e<n.length;e++){var o=n[e];o.reactRendering||(o.reactRendering=0),o.reactRendering+=t}},e.prototype.canRender=function(){return!0},e.prototype.renderElement=function(){return null},Object.defineProperty(e.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),e.prototype.makeBaseElementsReact=function(){for(var t=this.getStateElements(),e=0;e<t.length;e++)t[e].enableOnElementRenderedEvent(),this.makeBaseElementReact(t[e])},e.prototype.unMakeBaseElementsReact=function(){for(var t=this.getStateElements(),e=0;e<t.length;e++)t[e].disableOnElementRenderedEvent(),this.unMakeBaseElementReact(t[e])},e.prototype.getStateElements=function(){var t=this.getStateElement();return t?[t]:[]},e.prototype.getStateElement=function(){return null},Object.defineProperty(e.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),e.prototype.renderLocString=function(t,n,o){return void 0===n&&(n=null),e.renderLocString(t,n,o)},e.prototype.canMakeReact=function(t){return!!t&&!!t.iteratePropertiesHash},e.prototype.makeBaseElementReact=function(t){var e=this;this.canMakeReact(t)&&(t.iteratePropertiesHash((function(t,n){if(e.canUsePropInState(n)){var o=t[n];if(Array.isArray(o))(o=o).onArrayChanged=function(t){e.isRendering||(e.changedStatePropNameValue=n,e.setState((function(t){var e={};return e[n]=o,e})))}}})),t.setPropertyValueCoreHandler=function(t,n,o){if(t[n]!==o){if(t[n]=o,!e.canUsePropInState(n))return;if(e.isRendering)return;e.changedStatePropNameValue=n,e.setState((function(t){var e={};return e[n]=o,e}))}})},e.prototype.canUsePropInState=function(t){return!0},e.prototype.unMakeBaseElementReact=function(t){this.canMakeReact(t)&&(t.setPropertyValueCoreHandler=void 0,t.iteratePropertiesHash((function(t,e){var n=t[e];Array.isArray(n)&&((n=n).onArrayChanged=function(){})})))},e}(E),De=function(t){function e(e){return t.call(this,e)||this}return ke(e,t),Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),e}(Te),Be=function(t){function e(e){return t.call(this,e)||this}return ke(e,t),e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.updateDomElement()},e.prototype.componentWillUnmount=function(){if(t.prototype.componentWillUnmount.call(this),this.questionBase){var e=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(e),e&&e.removeAttribute("data-rendered")}},e.prototype.updateDomElement=function(){var t=this.content||this.control;t&&"r"!==t.getAttribute("data-rendered")&&(t.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(t))},Object.defineProperty(e.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&!(this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(e.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),e.prototype.wrapCell=function(t,e,n){if(!n)return e;var o=this.questionBase.survey,r=null;return o&&(r=Re.wrapMatrixCell(o,e,t,n)),null!=r?r:e},e.prototype.setControl=function(t){t&&(this.control=t)},e.prototype.setContent=function(t){t&&(this.content=t)},e}(Te),Me=function(t){function e(e){var n=t.call(this,e)||this;return n.updateValueOnEvent=function(t){Ne.Helpers.isTwoValueEquals(n.questionBase.value,t.target.value,!1,!0,!1)||n.setValueCore(t.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return ke(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.setValueCore=function(t){this.questionBase.value=t},e.prototype.getValueCore=function(){return this.questionBase.value},e.prototype.updateDomElement=function(){if(this.control){var e=this.control,n=this.getValueCore();Ne.Helpers.isTwoValueEquals(n,e.value,!1,!0,!1)||(e.value=this.getValue(n))}t.prototype.updateDomElement.call(this)},e.prototype.getValue=function(t){return Ne.Helpers.isValueEmpty(t)?"":t},e}(Be),Le=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ae=function(t){function e(e){var n=t.call(this,e)||this;return n.element.cssClasses,n.rootRef={current:null},n}return Le(e,t),e.prototype.getStateElement=function(){return this.element},Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(e.element!==this.element&&(e.element&&e.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0)},e.prototype.renderElement=function(){var t=this.element,e=this.createElement(t,this.index);return C("div",{className:t.cssClassesValue.questionWrapper,style:t.rootStyle,"data-key":e.key,key:e.key,onFocus:function(){var e=t;e&&e.isQuestion&&e.focusIn()},ref:this.rootRef},this.row.isNeedRender?e:xe.Instance.createElement(t.skeletonComponentName,{element:t,css:this.css}))},e.prototype.createElement=function(t,e){var n=e?"-"+e:0,o=t.getType();return xe.Instance.isElementRegistered(o)||(o="question"),xe.Instance.createElement(o,{key:t.name+n,element:t,creator:this.creator,survey:this.survey,css:this.css})},e}(Te),He=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ue=function(t){function e(e){var n=t.call(this,e)||this;return n.rootRef={current:null},n.recalculateCss(),n}return He(e,t),e.prototype.recalculateCss=function(){this.row.visibleElements.map((function(t){return t.cssClasses}))},e.prototype.getStateElement=function(){return this.row},Object.defineProperty(e.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},e.prototype.renderElementContent=function(){var t=this,e=this.row.visibleElements.map((function(e,n){var o=n?"-"+n:0,r=e.name+o;return C(Ae,{element:e,index:n,row:t.row,survey:t.survey,creator:t.creator,css:t.css,key:r})}));return C("div",{ref:this.rootRef,className:this.row.getRowCss()},e)},e.prototype.renderElement=function(){var t=this.survey,e=this.renderElementContent();return Re.wrapRow(t,e,this.row)||e},e.prototype.componentDidMount=function(){var e=this;t.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),n&&!this.row.isNeedRender){var o=n;setTimeout((function(){e.row.startLazyRendering(o)}),10)}},e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(e.row!==this.row&&(e.row.isNeedRender=this.row.isNeedRender,e.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0)},e.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},e.prototype.createElement=function(t,e){var n=e?"-"+e:0,o=t.getType();return xe.Instance.isElementRegistered(o)||(o="question"),xe.Instance.createElement(o,{key:t.name+n,element:t,creator:this.creator,survey:this.survey,css:this.css})},e}(Te),We=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fe=function(t){function e(e){var n=t.call(this,e)||this;return n.rootRef={current:null},n}return We(e,t),e.prototype.getStateElement=function(){return this.panelBase},e.prototype.canUsePropInState=function(e){return"elements"!==e&&t.prototype.canUsePropInState.call(this,e)},Object.defineProperty(e.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),e.prototype.getPanelBase=function(){return this.props.element||this.props.question},e.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},e.prototype.getCss=function(){return this.props.css},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.doAfterRender()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this);var e=this.rootRef.current;e&&e.removeAttribute("data-rendered")},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),e.page&&this.survey&&this.survey.activePage&&e.page.id===this.survey.activePage.id||this.doAfterRender()},e.prototype.doAfterRender=function(){var t=this.rootRef.current;t&&this.survey&&(this.panelBase.isPanel?this.survey.afterRenderPanel(this.panelBase,t):this.survey.afterRenderPage(t))},e.prototype.getIsVisible=function(){return this.panelBase.isVisible},e.prototype.canRender=function(){return t.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},e.prototype.renderRows=function(t){var e=this;return this.panelBase.visibleRows.map((function(n){return e.createRow(n,t)}))},e.prototype.createRow=function(t,e){return C(Ue,{key:t.id,row:t,survey:this.survey,creator:this.creator,css:e})},e}(Te),Qe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ve=function(t){function e(e){var n=t.call(this,e)||this;return n.svgIconRef=Pe.createRef(),n}return Qe(e,t),e.prototype.updateSvg=function(){this.props.iconName&&Object(Ne.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},e.prototype.componentDidUpdate=function(){this.updateSvg()},e.prototype.render=function(){var t="sv-svg-icon";return this.props.className&&(t+=" "+this.props.className),this.props.iconName?Pe.createElement("svg",{className:t,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},Pe.createElement("use",null)):null},e.prototype.componentDidMount=function(){this.updateSvg()},e}(Pe.Component);xe.Instance.registerElement("sv-svg-icon",(function(t){return Pe.createElement(Ve,t)}));var ze=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ke=function(t){function e(e){return t.call(this,e)||this}return ze(e,t),e.prototype.render=function(){var t="sv-action-bar-separator "+this.props.cssClasses;return Pe.createElement("div",{className:t})},e}(Pe.Component);xe.Instance.registerElement("sv-action-bar-separator",(function(t){return Pe.createElement(Ke,t)}));var Je=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Je(e,t),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.renderElement=function(){var t=this.item.getActionRootCss(),e=this.item.needSeparator?Pe.createElement(Ke,null):null,n=xe.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return Pe.createElement("div",{className:t,id:this.item.id},Pe.createElement("div",{className:"sv-action__content"},e,n))},e}(Te),Ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Je(e,t),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.renderElement=function(){return Pe.createElement(Pe.Fragment,null,this.renderInnerButton())},e.prototype.renderText=function(){if(!this.item.hasTitle)return null;var t=this.item.getActionBarItemTitleCss();return Pe.createElement("span",{className:t},this.item.title)},e.prototype.renderButtonContent=function(){var t=this.renderText(),e=this.item.iconName?Pe.createElement(Ve,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return Pe.createElement(Pe.Fragment,null,e,t)},e.prototype.renderInnerButton=function(){var t=this,e=this.item.getActionBarItemCss(),n=this.item.tooltip||this.item.title,o=this.renderButtonContent(),r=this.item.disableTabStop?-1:void 0;return Vn(Pe.createElement("button",{className:e,type:"button",disabled:this.item.disabled,onMouseDown:function(){return t.item.doMouseDown()},onFocus:function(e){return t.item.doFocus(e)},onClick:function(e){return t.item.doAction(e)},title:n,tabIndex:r,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},o),this.item,{processEsc:!1})},e}(Te);xe.Instance.registerElement("sv-action-bar-item",(function(t){return Pe.createElement(Ge,t)}));var Ye=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ze=function(t){function e(e){var n=t.call(this,e)||this;return n.containerRef=Pe.createRef(),n.createModel(),n}return Ye(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.model},e.prototype.createModel=function(){this.popup=Object(Ne.createPopupViewModel)(this.props.model,void 0)},e.prototype.setTargetElement=function(){var t=this.containerRef.current;this.popup.setComponentElement(t,this.props.getTarget?this.props.getTarget(t):void 0,this.props.getArea?this.props.getArea(t):void 0)},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.setTargetElement()},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.setTargetElement()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},e.prototype.shouldComponentUpdate=function(e,n){var o;if(!t.prototype.shouldComponentUpdate.call(this,e,n))return!1;var r=e.model!==this.popup.model;return r&&(null===(o=this.popup)||void 0===o||o.dispose(),this.createModel()),r},e.prototype.render=function(){var t;return this.popup.model=this.model,t=this.model.isModal?Pe.createElement(Xe,{model:this.popup}):Pe.createElement(tn,{model:this.popup}),Pe.createElement("div",{ref:this.containerRef},t)},e}(Te);xe.Instance.registerElement("sv-popup",(function(t){return Pe.createElement(Ze,t)}));var Xe=function(t){function e(e){var n=t.call(this,e)||this;return n.handleKeydown=function(t){n.model.onKeyDown(t)},n.clickInside=function(t){t.stopPropagation()},n}return Ye(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.model},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},e.prototype.renderContainer=function(t){var e=this,n=t.showHeader?this.renderHeaderPopup(t):null,o=t.title?this.renderHeaderContent():null,r=this.renderContent(),i=t.showFooter?this.renderFooter(this.model):null;return Pe.createElement("div",{className:"sv-popup__container",style:{left:t.left,top:t.top,height:t.height,width:t.width,minWidth:t.minWidth},onClick:function(t){e.clickInside(t)}},Pe.createElement("div",{className:"sv-popup__shadow"},n,Pe.createElement("div",{className:"sv-popup__body-content"},o,Pe.createElement("div",{className:"sv-popup__scrolling-content"},r),i)))},e.prototype.renderHeaderContent=function(){return Pe.createElement("div",{className:"sv-popup__body-header"},this.model.title)},e.prototype.renderContent=function(){var t=xe.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return Pe.createElement("div",{className:"sv-popup__content"},t)},e.prototype.renderHeaderPopup=function(t){return null},e.prototype.renderFooter=function(t){return Pe.createElement("div",{className:"sv-popup__body-footer"},Pe.createElement(sn,{model:t.footerToolbar}))},e.prototype.render=function(){var t=this,e=this.renderContainer(this.model),n=(new Ne.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),o={display:this.model.isVisible?"":"none"};return Pe.createElement("div",{tabIndex:-1,className:n,style:o,onClick:function(e){t.model.clickOutside(e)},onKeyDown:this.handleKeydown},e)},e}(Te),tn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ye(e,t),e.prototype.renderHeaderPopup=function(t){var e=t;return e?Pe.createElement("span",{style:{left:e.pointerTarget.left,top:e.pointerTarget.top},className:"sv-popup__pointer"}):null},e}(Xe);function en(t,e){var n=Object(Ne.createPopupModalViewModel)(t,e);return n.onVisibilityChanged.add((function(t,e){e.isVisible||(Pe.unmountComponentAtNode(n.container),n.dispose())})),Pe.render(Pe.createElement(Xe,{model:n}),n.container),n.model.isVisible=!0,n}Ne.settings.showModal=function(t,e,n,o,r,i,s){return void 0===s&&(s="popup"),en(Object(Ne.createDialogOptions)(t,e,n,o,void 0,void 0,r,i,s))},Ne.settings.showDialog=en;var nn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),on=function(t){function e(e){var n=t.call(this,e)||this;return n.viewModel=new Ne.ActionDropdownViewModel(n.item),n}return nn(e,t),e.prototype.renderInnerButton=function(){var e=t.prototype.renderInnerButton.call(this);return Pe.createElement(Pe.Fragment,null,e,Pe.createElement(Ze,{model:this.item.popupModel,getTarget:Ne.getActionDropdownButtonTarget}))},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},e}(Ge);xe.Instance.registerElement("sv-action-bar-item-dropdown",(function(t){return Pe.createElement(on,t)}));var rn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sn=function(t){function e(e){var n=t.call(this,e)||this;return n.rootRef=Pe.createRef(),n}return rn(e,t),Object.defineProperty(e.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){if(t.prototype.componentDidMount.call(this),this.model.hasActions){var e=this.rootRef.current;e&&this.model.initResponsivityManager(e,(function(t){setTimeout(t)}))}},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.model.hasActions&&this.model.resetResponsivityManager()},e.prototype.componentDidUpdate=function(e,n){if(t.prototype.componentDidUpdate.call(this,e,n),e.model!=this.props.model&&this.model.hasActions){this.model.resetResponsivityManager();var o=this.rootRef.current;o&&this.model.initResponsivityManager(o,(function(t){setTimeout(t)}))}},e.prototype.getStateElement=function(){return this.model},e.prototype.renderElement=function(){if(!this.model.hasActions)return null;var t=this.renderItems();return Pe.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(t){t.stopPropagation()}:void 0},t)},e.prototype.renderItems=function(){return this.model.renderedActions.map((function(t,e){return Pe.createElement($e,{item:t,key:"item"+e})}))},e}(Te);xe.Instance.registerElement("sv-action-bar",(function(t){return Pe.createElement(sn,t)}));var un=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),an=function(t){function e(e){return t.call(this,e)||this}return un(e,t),Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),e.prototype.render=function(){if(this.element.isTitleRenderedAsString)return Te.renderLocString(this.element.locTitle);var t=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return Pe.createElement(Pe.Fragment,null,t)},e.prototype.renderTitleSpans=function(t,e){var n=function(t){return Pe.createElement("span",{"data-key":t,key:t}," ")},o=[];t.isRequireTextOnStart&&(o.push(this.renderRequireText(t,e)),o.push(n("req-sp")));var r=t.no;if(r){var i=e.panel?e.panel.number:void 0;o.push(Pe.createElement("span",{"data-key":"q_num",key:"q_num",className:e.number||i,style:{position:"static"},"aria-hidden":!0},r)),o.push(n("num-sp"))}return t.isRequireTextBeforeTitle&&(o.push(this.renderRequireText(t,e)),o.push(n("req-sp"))),o.push(Te.renderLocString(t.locTitle,null,"q_title")),t.isRequireTextAfterTitle&&(o.push(n("req-sp")),o.push(this.renderRequireText(t,e))),o},e.prototype.renderRequireText=function(t,e){return Pe.createElement("span",{"data-key":"req-text",key:"req-text",className:e.requiredText||e.panel.requiredText,"aria-hidden":!0},t.requiredText)},e}(Pe.Component),ln=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ln(e,t),Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=Pe.createElement(an,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?Pe.createElement("div",{className:"sv-title-actions"},Pe.createElement("span",{className:"sv-title-actions__title"},t),Pe.createElement(sn,{model:this.element.getTitleToolbar()})):t},e}(Pe.Component);Ne.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),xe.Instance.registerElement("sv-title-actions",(function(t){return Pe.createElement(cn,t)}));var pn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dn=function(t){function e(e){return t.call(this,e)||this}return pn(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this.element;if(!t||!t.hasTitle)return null;var e=t.titleAriaLabel||void 0,n=Pe.createElement(cn,{element:t,cssClasses:t.cssClasses}),o=void 0;t.hasTitleEvents&&(o=function(t){Object(Ne.doKey2ClickUp)(t.nativeEvent)});var r=t.titleTagName;return Pe.createElement(r,{className:t.cssTitle,id:t.ariaTitleId,"aria-label":e,tabIndex:t.titleTabIndex,"aria-expanded":t.titleAriaExpanded,role:t.titleAriaRole,onClick:void 0,onKeyUp:o},n)},e}(Pe.Component),hn=function(){function t(){this.creatorHash={}}return t.prototype.registerQuestion=function(t,e){this.creatorHash[t]=e},t.prototype.getAllTypes=function(){var t=new Array;for(var e in this.creatorHash)t.push(e);return t.sort()},t.prototype.createQuestion=function(t,e){var n=this.creatorHash[t];return null==n?null:n(e)},t.Instance=new t,t}(),fn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fn(e,t),e.prototype.getStateElement=function(){return this.props.counter},e.prototype.renderElement=function(){return Pe.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},e}(Te);xe.Instance.registerElement("sv-character-counter",(function(t){return Pe.createElement(mn,t)}));var yn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vn=function(t){function e(e){return t.call(this,e)||this}return yn(e,t),e.prototype.renderElement=function(){var t=this,e=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return C("div",null,this.question.value);var n=this.question.getMaxLength()?C(mn,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return C(O,null,C("textarea",{id:this.question.inputId,className:this.question.className,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,ref:function(e){return t.setControl(e)},maxLength:this.question.getMaxLength(),placeholder:e,onFocus:function(e){t.question.onFocus(e)},onBlur:function(e){t.question.isInputTextUpdate||t.updateValueOnEvent(e),t.question.onBlur(e)},onInput:function(e){t.question.isInputTextUpdate?t.updateValueOnEvent(e):t.question.updateElement();var n=e.target.value;t.question.updateRemainingCharacterCounter(n)},onKeyDown:function(e){t.question.onKeyDown(e)},cols:this.question.cols,rows:this.question.rows,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage,style:{resize:this.question.resizeStyle}}),n)},e}(Me),_n=function(t){function e(e){var n=t.call(this,e)||this;return n.state={comment:n.getComment()||""},n}return yn(e,t),e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.updateDomElement()},e.prototype.updateDomElement=function(){if(this.control){var t=this.control,e=this.getComment()||"";Ne.Helpers.isTwoValueEquals(e,t.value,!1,!0,!1)||(t.value=e)}},e.prototype.setControl=function(t){t&&(this.control=t)},e.prototype.canRender=function(){return!!this.props.question},e.prototype.onCommentChange=function(t){this.props.question.onCommentChange(t)},e.prototype.onCommentInput=function(t){this.props.question.onCommentInput(t)},e.prototype.getComment=function(){return this.props.question.comment},e.prototype.setComment=function(t){this.props.question.comment=t},e.prototype.getId=function(){return this.props.question.commentId},e.prototype.getPlaceholder=function(){return this.props.question.renderedCommentPlaceholder},e.prototype.renderElement=function(){var t=this,e=this.props.question,n=this.props.otherCss||this.cssClasses.comment;return e.isReadOnlyRenderDiv()?C("div",null,this.getComment()||""):C("textarea",{id:this.getId(),className:n,ref:function(e){return t.setControl(e)},disabled:this.isDisplayMode,maxLength:e.getOthersMaxLength(),rows:e.commentAreaRows,placeholder:this.getPlaceholder(),onBlur:function(e){t.onCommentChange(e)},onInput:function(e){return t.onCommentInput(e)},"aria-required":e.isRequired||e.a11y_input_ariaRequired,"aria-label":e.ariaLabel||e.a11y_input_ariaLabel,style:{resize:e.resizeStyle}})},e}(De),gn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yn(e,t),e.prototype.onCommentChange=function(t){this.props.question.onOtherValueChange(t)},e.prototype.onCommentInput=function(t){this.props.question.onOtherValueInput(t)},e.prototype.getComment=function(){return this.props.question.otherValue},e.prototype.setComment=function(t){this.props.question.otherValue=t},e.prototype.getId=function(){return this.props.question.otherId},e.prototype.getPlaceholder=function(){return this.props.question.otherPlaceholder},e}(_n);hn.Instance.registerQuestion("comment",(function(t){return C(vn,t)}));var bn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cn=function(t){function e(e){var n=t.call(this,e)||this;return n.widgetRef={current:null},n}return bn(e,t),e.prototype._afterRender=function(){if(this.questionBase.customWidget){var t=this.widgetRef.current;t&&(this.questionBase.customWidget.afterRender(this.questionBase,t),this.questionBase.customWidgetData.isNeedRender=!1)}},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n);var o=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!o&&this._afterRender()},e.prototype.componentWillUnmount=function(){if(t.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var e=this.widgetRef.current;e&&this.questionBase.customWidget.willUnmount(this.questionBase,e)}},e.prototype.canRender=function(){return t.prototype.canRender.call(this)&&this.questionBase.visible},e.prototype.renderElement=function(){var t=this.questionBase.customWidget;if(t.isDefaultRender)return C("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var e=null;if(t.widgetJson.render)e=t.widgetJson.render(this.questionBase);else if(t.htmlTemplate){var n={__html:t.htmlTemplate};return C("div",{ref:this.widgetRef,dangerouslySetInnerHTML:n})}return C("div",{ref:this.widgetRef},e)},e}(Be),qn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qn(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this.element,e=t.hasTitle?Pe.createElement(dn,{element:t}):null,n=t.hasDescriptionUnderTitle?Te.renderQuestionDescription(this.element):null,o=t.hasAdditionalTitleToolbar?Pe.createElement(sn,{model:t.additionalTitleToolbar}):null,r={width:void 0};return t instanceof Ne.Question&&(r.width=t.titleWidth),Pe.createElement("div",{className:t.cssHeader,onClick:function(e){return t.clickTitleFunction&&t.clickTitleFunction(e.nativeEvent)},style:r},e,n,o)},e}(Pe.Component),On=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),En=function(t){function e(e){var n=t.call(this,e)||this;return n.isNeedFocus=!1,n.rootRef={current:null},n}return On(e,t),e.renderQuestionBody=function(t,e){return e.customWidget?C(Cn,{creator:t,question:e}):t.createQuestionElement(e)},e.prototype.getStateElement=function(){return this.question},Object.defineProperty(e.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var e=this.rootRef.current;e&&e.removeAttribute("data-rendered")},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.doAfterRender()},e.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var t=this.rootRef.current;t&&"r"!==t.getAttribute("data-rendered")&&(t.setAttribute("data-rendered","r"),t.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(t))}},e.prototype.canRender=function(){return t.prototype.canRender.call(this)&&!!this.question&&!!this.creator},e.prototype.renderQuestionContent=function(){var t=this.question,e={display:this.question.renderedIsExpanded?"":"none"},n=t.cssClasses,o=this.renderQuestion(),r=this.question.showErrorOnTop?this.renderErrors(n,"top"):null,i=this.question.showErrorOnBottom?this.renderErrors(n,"bottom"):null,s=t&&t.hasComment?this.renderComment(n):null,u=t.hasDescriptionUnderInput?this.renderDescription():null;return C("div",{className:t.cssContent||void 0,style:e,role:"presentation"},r,o,s,i,u)},e.prototype.renderElement=function(){var t=this.question,e=t.cssClasses,n=this.renderHeader(t),o=t.hasTitleOnLeftTop?n:null,r=t.hasTitleOnBottom?n:null,i=this.question.showErrorsAboveQuestion?this.renderErrors(e,""):null,s=this.question.showErrorsBelowQuestion?this.renderErrors(e,""):null,u=t.getRootStyle(),a=this.wrapQuestionContent(this.renderQuestionContent());return C(O,null,C("div",{ref:this.rootRef,id:t.id,className:t.getRootCss(),style:u,role:t.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy,"aria-expanded":t.ariaExpanded},i,o,a,r,s))},e.prototype.wrapElement=function(t){var e=this.question.survey,n=null;return e&&(n=Re.wrapElement(e,t,this.question)),null!=n?n:t},e.prototype.wrapQuestionContent=function(t){var e=this.question.survey,n=null;return e&&(n=Re.wrapQuestionContent(e,t,this.question)),null!=n?n:t},e.prototype.renderQuestion=function(){return e.renderQuestionBody(this.creator,this.question)},e.prototype.renderDescription=function(){return Te.renderQuestionDescription(this.question)},e.prototype.renderComment=function(t){var e=Te.renderLocString(this.question.locCommentText);return C("div",{className:this.question.getCommentAreaCss()},C("div",null,e),C(_n,{question:this.question,cssClasses:t,otherCss:t.other,isDisplayMode:this.question.isInputReadOnly}))},e.prototype.renderHeader=function(t){return C(wn,{element:t})},e.prototype.renderErrors=function(t,e){return C(Sn,{element:this.question,cssClasses:t,creator:this.creator,location:e,id:this.question.id+"_errors"})},e}(Te);xe.Instance.registerElement("question",(function(t){return C(En,t)}));var Sn=function(t){function e(e){var n=t.call(this,e)||this;return n.state=n.getState(),n}return On(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),e.prototype.getState=function(t){return void 0===t&&(t=null),t?{error:t.error+1}:{error:0}},e.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},e.prototype.componentWillUnmount=function(){},e.prototype.renderElement=function(){for(var t=[],e=0;e<this.element.errors.length;e++){var n="error"+e;t.push(this.creator.renderError(n,this.element.errors[e],this.cssClasses,this.element))}return C("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},t)},e}(De),In=function(t){function e(e){return t.call(this,e)||this}return On(e,t),e.prototype.getStateElement=function(){return this.question},Object.defineProperty(e.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),e.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(e.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.doAfterRender()},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.doAfterRender()},e.prototype.doAfterRender=function(){},e.prototype.canRender=function(){return!!this.question},e.prototype.renderContent=function(){return C(O,null,this.renderQuestion())},e.prototype.getShowErrors=function(){return this.question.isVisible},e.prototype.renderQuestion=function(){return En.renderQuestionBody(this.creator,this.question)},e}(De),Pn=function(t){function e(e){var n=t.call(this,e)||this;return n.cellRef={current:null},n}return On(e,t),e.prototype.componentWillUnmount=function(){if(t.prototype.componentWillUnmount.call(this),this.question){var e=this.cellRef.current;e&&e.removeAttribute("data-rendered")}},e.prototype.renderCellContent=function(){return C("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},e.prototype.renderElement=function(){var t=this.getCellStyle(),e=this.props.cell;return C("td",{ref:this.cellRef,className:this.itemCss,colSpan:e.colSpans,title:e.getTitle(),style:t,onFocus:function(){e.focusIn()}},this.wrapCell(this.props.cell,this.renderCellContent()))},e.prototype.getCellStyle=function(){return null},e.prototype.getHeaderText=function(){return""},e.prototype.wrapCell=function(t,e){if(!t)return e;var n=this.question.survey,o=null;return n&&(o=Re.wrapMatrixCell(n,e,t,this.props.reason)),null!=o?o:e},e}(In),Nn=function(t){function e(e){var n=t.call(this,e)||this;return n.state={changed:0},n.question&&n.registerCallback(n.question),n}return On(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.update=function(){this.setState({changed:this.state.changed+1})},e.prototype.registerCallback=function(t){var e=this;t.registerFunctionOnPropertyValueChanged("errors",(function(){e.update()}),"__reactSubscription")},e.prototype.unRegisterCallback=function(t){t.unRegisterFunctionOnPropertyValueChanged("errors","__reactSubscription")},e.prototype.componentDidUpdate=function(t){t.question&&t.question!==this.question&&this.unRegisterCallback(t.cell),this.question&&this.registerCallback(this.question)},e.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},e.prototype.render=function(){return C(Sn,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},e}(E),xn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rn=function(t){function e(e){return t.call(this,e)||this}return xn(e,t),e.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(e.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this.renderTitle(),e=this.renderDescription(),n=this.renderRows(this.panelBase.cssClasses),o=C(Sn,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return C("div",{ref:this.rootRef,className:this.page.cssRoot},t,e,o,n)},e.prototype.renderTitle=function(){return C(dn,{element:this.page})},e.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var t=Te.renderLocString(this.page.locDescription);return C("div",{className:this.panelBase.cssClasses.page.description},t)},e}(Fe),jn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kn=function(t){function e(e){var n=t.call(this,e)||this;return n.state={changed:0},n.rootRef=Pe.createRef(),n}return jn(e,t),Object.defineProperty(e.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var t=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){t.setState({changed:t.state.changed+1})}},e.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},e.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var t=Te.renderLocString(this.survey.locDescription);return Pe.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},Pe.createElement(dn,{element:this.survey}),this.survey.renderedHasDescription?Pe.createElement("div",{className:this.css.description},t):null)},e.prototype.renderLogoImage=function(t){if(!t)return null;var e=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),n=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return xe.Instance.createElement(e,{data:n})},e.prototype.render=function(){return this.survey.renderedHasHeader?Pe.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),Pe.createElement("div",{className:this.css.headerClose})):null},e}(Pe.Component);xe.Instance.registerElement("survey-header",(function(t){return Pe.createElement(kn,t)}));var Tn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Dn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Tn(e,t),e.prototype.render=function(){return Pe.createElement("div",{className:"sv-brand-info"},Pe.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},Pe.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),Pe.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",Pe.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),Pe.createElement("div",{className:"sv-brand-info__terms"},Pe.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},e}(Pe.Component),Bn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bn(e,t),Object.defineProperty(e.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.notifier},e.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var t={visibility:this.notifier.active?"visible":"hidden"};return Pe.createElement("div",{className:this.notifier.css,style:t,role:"alert","aria-live":"polite"},Pe.createElement("span",null,this.notifier.message),Pe.createElement(sn,{model:this.notifier.actionBar}))},e}(Te);xe.Instance.registerElement("sv-notifier",(function(t){return Pe.createElement(Mn,t)}));var Ln=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),An=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ln(e,t),e.prototype.render=function(){var t=this,e=this.props.survey.getContainerContent(this.props.container),n=!1!==this.props.needRenderWrapper;return 0==e.length?null:n?Pe.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},e.map((function(e){return xe.Instance.createElement(e.component,{survey:t.props.survey,model:e.data,container:t.props.container,key:e.id})}))):Pe.createElement(Pe.Fragment,null,e.map((function(e){return xe.Instance.createElement(e.component,{survey:t.props.survey,model:e.data,container:t.props.container,key:e.id})})))},e}(Pe.Component);xe.Instance.registerElement("sv-components-container",(function(t){return Pe.createElement(An,t)}));var Hn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Un=function(t){function e(e){var n=t.call(this,e)||this;return n.containerRef=Pe.createRef(),n}return Hn(e,t),e.prototype.componentDidMount=function(){this.containerRef.current&&(this.containerRef.current.innerHTML=Ne.SvgRegistry.iconsRenderedHtml())},e.prototype.render=function(){return Pe.createElement("svg",{style:{display:"none"},id:"sv-icon-holder-global-container",ref:this.containerRef})},e}(Pe.Component),Wn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fn=function(){return(Fn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Qn=function(t){function e(e){var n=t.call(this,e)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(e),n.updateSurvey(e,{}),n.rootRef={current:null},n.rootNodeId=e.id||null,n.rootNodeClassName=e.className||"",n}return Wn(e,t),Object.defineProperty(e,"cssType",{get:function(){return Ne.surveyCss.currentType},set:function(t){Ne.StylesManager.applyTheme(t)},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.survey},e.prototype.onSurveyUpdated=function(){if(this.survey){var t=this.rootRef.current;t&&this.survey.afterRenderSurvey(t),this.survey.startTimerFromUI()}},e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(this.isModelJSONChanged(e)&&(this.destroySurvey(),this.createSurvey(e),this.updateSurvey(e,{}),this.isSurveyUpdated=!0),!0)},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.updateSurvey(this.props,e),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.onSurveyUpdated()},e.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.destroySurvey()},e.prototype.doRender=function(){var t;t="completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():"empty"==this.survey.state?this.renderEmptySurvey():this.renderSurvey();var e=this.survey.backgroundImage?C("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,n="basic"===this.survey.headerView?C(kn,{survey:this.survey}):null,o=C("div",{className:"sv_custom_header"});this.survey.hasLogo&&(o=null);var r=this.survey.getRootCss(),i=this.rootNodeClassName?this.rootNodeClassName+" "+r:r;return C("div",{id:this.rootNodeId,ref:this.rootRef,className:i,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?C(Un,null):null,C("div",{className:this.survey.wrapperFormCss},e,C("form",{onSubmit:function(t){t.preventDefault()}},o,C("div",{className:this.css.container},n,C(An,{survey:this.survey,container:"header",needRenderWrapper:!1}),t,C(An,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),this.survey.showBrandInfo?C(Dn,null):null,C(Mn,{notifier:this.survey.notifier})))},e.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(e.prototype,"css",{get:function(){return this.survey.css},set:function(t){this.survey.css=t},enumerable:!1,configurable:!0}),e.prototype.renderCompleted=function(){return this.survey.showCompletedPage?C(O,null,C("div",{dangerouslySetInnerHTML:{__html:this.survey.processedCompletedHtml},className:this.survey.completedCss}),C(An,{survey:this.survey,container:"completePage",needRenderWrapper:!1})):null},e.prototype.renderCompletedBefore=function(){return C("div",{dangerouslySetInnerHTML:{__html:this.survey.processedCompletedBeforeHtml},className:this.survey.completedBeforeCss})},e.prototype.renderLoading=function(){return C("div",{dangerouslySetInnerHTML:{__html:this.survey.processedLoadingHtml},className:this.survey.loadingBodyCss})},e.prototype.renderSurvey=function(){var t=this.survey.activePage?this.renderPage(this.survey.activePage):null,e=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),n=this.survey.bodyCss,o={};return this.survey.renderedWidth&&(o.maxWidth=this.survey.renderedWidth),C("div",{className:this.survey.bodyContainerCss},C(An,{survey:this.survey,container:"left"}),C("div",{className:"sv-components-column sv-components-column--expandable"},C(An,{survey:this.survey,container:"center"}),C("div",{id:e,className:n,style:o},C(An,{survey:this.survey,container:"contentTop"}),t,C(An,{survey:this.survey,container:"contentBottom"}))),C(An,{survey:this.survey,container:"right"}))},e.prototype.renderPage=function(t){return C(Rn,{survey:this.survey,page:t,css:this.css,creator:this})},e.prototype.renderEmptySurvey=function(){return C("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},e.prototype.createSurvey=function(t){t||(t={}),this.previousJSON={},t?t.model?this.survey=t.model:t.json&&(this.previousJSON=t.json,this.survey=new Ne.SurveyModel(t.json)):this.survey=new Ne.SurveyModel,t.css&&(this.survey.css=this.css),this.setSurveyEvents()},e.prototype.isModelJSONChanged=function(t){return t.model?this.survey!==t.model:!!t.json&&!Ne.Helpers.isTwoValueEquals(t.json,this.previousJSON)},e.prototype.updateSurvey=function(t,e){if(t)for(var n in e=e||{},t)"model"!=n&&"children"!=n&&"json"!=n&&("css"!=n?t[n]!==e[n]&&(0==n.indexOf("on")&&this.survey[n]&&this.survey[n].add?(e[n]&&this.survey[n].remove(e[n]),this.survey[n].add(t[n])):this.survey[n]=t[n]):(this.survey.mergeValues(t.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},e.prototype.setSurveyEvents=function(){var t=this;this.survey.renderCallback=function(){var e=t.state&&t.state.modelChanged?t.state.modelChanged:0;t.setState({modelChanged:e+1})},this.survey.onPartialSend.add((function(e){t.state&&t.setState(t.state)}))},e.prototype.createQuestionElement=function(t){return hn.Instance.createQuestion(t.isDefaultRendering()?t.getTemplate():t.getComponentName(),{question:t,isDisplayMode:t.isInputReadOnly,creator:this})},e.prototype.renderError=function(t,e,n,o){return xe.Instance.createElement(this.survey.questionErrorComponent,{key:t,error:e,cssClasses:n,element:o})},e.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},e.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},e}(Te);function Vn(t,e,n){return void 0===n&&(n={processEsc:!0,disableTabStop:!1}),e&&e.disableTabStop||n&&n.disableTabStop?me(t,{tabIndex:-1}):(n=Fn({},n),me(t,{tabIndex:0,onKeyUp:function(t){return t.preventDefault(),t.stopPropagation(),Object(Ne.doKey2ClickUp)(t,n),!1},onKeyDown:function(t){return Object(Ne.doKey2ClickDown)(t,n)},onBlur:function(t){return Object(Ne.doKey2ClickBlur)(t)}}))}xe.Instance.registerElement("survey",(function(t){return C(Qn,t)}));var zn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kn=function(t){function e(e){var n=t.call(this,e)||this;return n.updateStateFunction=null,n.state={update:0},n}return zn(e,t),Object.defineProperty(e.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){if(this.survey){var t=this;this.updateStateFunction=function(){t.setState({update:t.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},e.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},e}(E),Jn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$n=function(t){function e(e){var n=t.call(this,e)||this;return n.circleLength=440,n}return Jn(e,t),e.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(e.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),e.prototype.render=function(){if(!this.timerModel.isRunning)return null;var t=C("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var e={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},n=this.timerModel.showProgress?C(Ve,{className:this.timerModel.getProgressCss(),style:e,iconName:"icon-timercircle",size:"auto"}):null;t=C("div",{className:this.timerModel.rootCss},n,C("div",{className:this.timerModel.textContainerCss},C("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?C("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return t},e}(De);xe.Instance.registerElement("sv-timerpanel",(function(t){return C($n,t)}));var Gn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yn=function(t){function e(e){var n=t.call(this,e)||this;return n.hasBeenExpanded=!1,n}return Gn(e,t),Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.renderHeader(),n=C(Sn,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),o={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},r=null;if(this.panel.renderedIsExpanded){var i=this.renderRows(this.panelBase.cssClasses),s=this.panelBase.cssClasses.panel.content;r=this.renderContent(o,i,s)}return C("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){t.panelBase&&t.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?n:null,e,this.panel.showErrorsAbovePanel?null:n,r)},e.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?C(wn,{element:this.panel}):null},e.prototype.wrapElement=function(t){var e=this.panel.survey,n=null;return e&&(n=Re.wrapElement(e,t,this.panel)),null!=n?n:t},e.prototype.renderContent=function(t,e,n){var o=this.renderBottom();return C("div",{style:t,className:n,id:this.panel.contentId},e,o)},e.prototype.renderTitle=function(){return this.panelBase.title?C(dn,{element:this.panelBase}):null},e.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var t=Te.renderLocString(this.panelBase.locDescription);return C("div",{className:this.panel.cssClasses.panel.description},t)},e.prototype.renderBottom=function(){var t=this.panel.getFooterToolbar();return t.hasActions?C(sn,{model:t}):null},e.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},e}(Fe);xe.Instance.registerElement("panel",(function(t){return C(Yn,t)}));var Zn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xn=function(t){function e(e){return t.call(this,e)||this}return Zn(e,t),Object.defineProperty(e.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},e.prototype.getQuestion=function(t){return this.flowPanel.getQuestionByName(t)},e.prototype.renderQuestion=function(t){return"<question>"+t.name+"</question>"},e.prototype.renderRows=function(){var t=this.renderHtml();return t?[t]:[]},e.prototype.getNodeIndex=function(){return this.renderedIndex++},e.prototype.renderHtml=function(){if(!this.flowPanel)return null;var t="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser)return C("div",{dangerouslySetInnerHTML:{__html:t}});var e=(new DOMParser).parseFromString(t,"text/xml");return this.renderedIndex=0,this.renderParentNode(e)},e.prototype.renderNodes=function(t){for(var e=[],n=0;n<t.length;n++){var o=this.renderNode(t[n]);o&&e.push(o)}return e},e.prototype.getStyle=function(t){var e={};return"b"===t.toLowerCase()&&(e.fontWeight="bold"),"i"===t.toLowerCase()&&(e.fontStyle="italic"),"u"===t.toLowerCase()&&(e.textDecoration="underline"),e},e.prototype.renderParentNode=function(t){var e=t.nodeName.toLowerCase(),n=this.renderNodes(this.getChildDomNodes(t));return"div"===e?C("div",{key:this.getNodeIndex()},n):C("span",{key:this.getNodeIndex(),style:this.getStyle(e)},n)},e.prototype.renderNode=function(t){if(!this.hasTextChildNodesOnly(t))return this.renderParentNode(t);var e=t.nodeName.toLowerCase();if("question"===e){var n=this.flowPanel.getQuestionByName(t.textContent);if(!n)return null;var o=C(En,{key:n.name,element:n,creator:this.creator,css:this.css});return C("span",{key:this.getNodeIndex()},o)}return"div"===e?C("div",{key:this.getNodeIndex()},t.textContent):C("span",{key:this.getNodeIndex(),style:this.getStyle(e)},t.textContent)},e.prototype.getChildDomNodes=function(t){for(var e=[],n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e},e.prototype.hasTextChildNodesOnly=function(t){for(var e=t.childNodes,n=0;n<e.length;n++)if("#text"!==e[n].nodeName.toLowerCase())return!1;return!0},e.prototype.renderContent=function(t,e){return C("f-panel",{style:t},e)},e}(Yn);xe.Instance.registerElement("flowpanel",(function(t){return C(Xn,t)}));var to=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),eo=function(t){function e(e){return t.call(this,e)||this}return to(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses;return C("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(e){return t.setControl(e)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},C("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(e):this.getBody(e),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},e.prototype.getHeader=function(){var t=this;if(this.question.hasHeadItems)return this.question.headItems.map((function(e,n){return t.renderItem("item_h"+n,e,!1,t.question.cssClasses)}))},e.prototype.getFooter=function(){var t=this;if(this.question.hasFootItems)return this.question.footItems.map((function(e,n){return t.renderItem("item_f"+n,e,!1,t.question.cssClasses)}))},e.prototype.getColumnedBody=function(t){return C("div",{className:t.rootMultiColumn},this.getColumns(t))},e.prototype.getColumns=function(t){var e=this;return this.question.columns.map((function(n,o){var r=n.map((function(n,r){return e.renderItem("item"+r,n,0===o&&0===r,t,""+o+r)}));return C("div",{key:"column"+o+e.question.getItemsColumnKey(n),className:e.question.getColumnClass(),role:"presentation"},r)}))},e.prototype.getBody=function(t){return this.question.blockedRow?C("div",{className:t.rootRow},this.getItems(t,this.question.dataChoices)):C(O,null,this.getItems(t,this.question.bodyItems))},e.prototype.getItems=function(t,e){for(var n=[],o=0;o<e.length;o++){var r=e[o],i="item"+o,s=this.renderItem(i,r,0==o,t,""+o);s&&n.push(s)}return n},Object.defineProperty(e.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.renderOther=function(){var t=this.question.cssClasses;return C("div",{className:this.question.getCommentAreaCss(!0)},C(gn,{question:this.question,otherCss:t.other,cssClasses:t,isDisplayMode:this.isDisplayMode}))},e.prototype.renderItem=function(t,e,n,o,r){var i=xe.Instance.createElement(this.question.itemComponent,{key:t,question:this.question,cssClasses:o,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:r,isFirst:n}),s=this.question.survey,u=null;return s&&i&&(u=Re.wrapItemValue(s,i,this.question,e)),null!=u?u:i},e}(Be),no=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnChange=function(t){n.question.clickItemHandler(n.item,t.target.checked)},n}return to(e,t),e.prototype.getStateElement=function(){return this.item},Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(!!this.question&&!(this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render))},e.prototype.canRender=function(){return!!this.item&&!!this.question},e.prototype.renderElement=function(){var t=this.question.isItemSelected(this.item);return this.renderCheckbox(t,null)},Object.defineProperty(e.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.renderCheckbox=function(t,e){var n=this.question.getItemId(this.item),o=this.question.getItemClass(this.item),r=this.question.getLabelClass(this.item),i=this.hideCaption?null:C("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return C("div",{className:o,role:"presentation"},C("label",{className:r},C("input",{className:this.cssClasses.itemControl,type:"checkbox",name:this.question.name+this.item.id,value:this.item.value,id:n,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,checked:t,onChange:this.handleOnChange,required:this.question.hasRequiredError()}),this.cssClasses.materialDecorator?C("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?C("svg",{className:this.cssClasses.itemDecorator},C("use",{xlinkHref:this.question.itemSvgIcon})):null):null,i),e)},e}(De);xe.Instance.registerElement("survey-checkbox-item",(function(t){return C(no,t)})),hn.Instance.registerQuestion("checkbox",(function(t){return C(eo,t)}));var oo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ro=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this;if(this.question.selectToRankEnabled){return C("div",{className:this.question.rootClass,ref:function(e){return t.setControl(e)}},C("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,!0),0===this.question.renderedUnRankingChoices.length?C("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),C("div",{className:this.question.cssClasses.containersDivider}),C("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),0===this.question.renderedRankingChoices.length?C("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null))}return C("div",{className:this.question.rootClass,ref:function(e){return t.setControl(e)}},this.getItems())},e.prototype.getItems=function(t,e){var n=this;void 0===t&&(t=this.question.renderedRankingChoices);for(var o=[],r=function(r){var s=t[r];o.push(i.renderItem(s,r,(function(t){n.question.handleKeydown.call(n.question,t,s)}),(function(t){t.persist(),n.question.handlePointerDown.call(n.question,t,s,t.currentTarget)}),(function(t){t.persist(),n.question.handlePointerUp.call(n.question,t,s,t.currentTarget)}),i.question.cssClasses,i.question.getItemClass(s),i.question,e))},i=this,s=0;s<t.length;s++)r(s);return o},e.prototype.renderItem=function(t,e,n,o,r,i,s,u,a){t.renderedId;var l=this.renderLocString(t.locText),c=e,p=this.question.getNumberByIndex(c),d=this.question.getItemTabIndex(t),h=C(io,{key:t.value,text:l,index:c,indexText:p,itemTabIndex:d,handleKeydown:n,handlePointerDown:o,handlePointerUp:r,cssClasses:i,itemClass:s,question:u,unrankedItem:a,item:t}),f=this.question.survey,m=null;return f&&(m=Re.wrapItemValue(f,h,this.question,t)),null!=m?m:h},e}(Be),io=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oo(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.renderEmptyIcon=function(){return C("svg",null,C("use",{xlinkHref:this.question.dashSvgIcon}))},e.prototype.renderElement=function(){var t=xe.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return C("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},C("div",{tabIndex:-1,style:{outline:"none"}},C("div",{className:this.cssClasses.itemGhostNode}),C("div",{className:this.cssClasses.itemContent},C("div",{className:this.cssClasses.itemIconContainer},C("svg",{className:this.question.getIconHoverCss()},C("use",{xlinkHref:this.question.dragDropSvgIcon})),C("svg",{className:this.question.getIconFocusCss()},C("use",{xlinkHref:this.question.arrowsSvgIcon}))),C("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),t)))},e}(De),so=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oo(e,t),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){return C("div",{className:this.cssClasses.controlLabel},Te.renderLocString(this.item.locText))},e}(De);xe.Instance.registerElement("sv-ranking-item",(function(t){return C(so,t)})),hn.Instance.registerQuestion("ranking",(function(t){return C(ro,t)}));var uo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ao=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return uo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.handleOnMouseDown=function(t){this.question.onMouseDown()},e}(Te),lo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uo(e,t),e.prototype.render=function(){var t=this.renderLocString(this.item.locText);return Pe.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},Pe.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),Pe.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},t))},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this)},e}(ao);xe.Instance.registerElement("sv-rating-item",(function(t){return Pe.createElement(lo,t)}));var co=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),po=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return co(e,t),e.prototype.render=function(){var t=this;return Pe.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(e){return t.question.onItemMouseIn(t.item)},onMouseOut:function(e){return t.question.onItemMouseOut(t.item)}},Pe.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),Pe.createElement(Ve,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),Pe.createElement(Ve,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},e}(ao);xe.Instance.registerElement("sv-rating-item-star",(function(t){return Pe.createElement(po,t)}));var ho=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ho(e,t),e.prototype.render=function(){var t=this;return Pe.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(e){return t.question.onItemMouseIn(t.item)},onMouseOut:function(e){return t.question.onItemMouseOut(t.item)}},Pe.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),Pe.createElement(Ve,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},e}(ao);xe.Instance.registerElement("sv-rating-item-smiley",(function(t){return Pe.createElement(fo,t)}));var mo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mo(e,t),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.render=function(){if(!this.item)return null;var t=this.props.item,e=this.renderDescription(t);return Pe.createElement("div",{className:"sd-rating-dropdown-item"},Pe.createElement("span",{className:"sd-rating-dropdown-item_text"},t.title),e)},e.prototype.renderDescription=function(t){return t.description?Pe.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(t.description,void 0,"locString")):null},e}(Te);xe.Instance.registerElement("sv-rating-dropdown-item",(function(t){return Pe.createElement(yo,t)}));var vo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_o=function(t){function e(e){return t.call(this,e)||this}return vo(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.updateDomElement()},e.prototype.updateDomElement=function(){if(this.inputElement){var t=this.inputElement,e=this.model.inputStringRendered;Ne.Helpers.isTwoValueEquals(e,t.value,!1,!0,!1)||(t.value=this.model.inputStringRendered)}},e.prototype.onChange=function(t){var e=Ne.settings.environment.root;t.target===e.activeElement&&(this.model.inputStringRendered=t.target.value)},e.prototype.keyhandler=function(t){this.model.inputKeyHandler(t)},e.prototype.onBlur=function(t){this.model.onBlur(t)},e.prototype.onFocus=function(t){this.model.onFocus(t)},e.prototype.getStateElement=function(){return this.model},e.prototype.render=function(){var t=this;return C("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?C("div",{className:this.question.cssClasses.hintPrefix},C("span",null,this.model.hintStringPrefix)):null,C("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?C("div",{className:this.question.cssClasses.hintSuffix},C("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),C("span",null,this.model.hintStringSuffix)):null,C("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:!!this.model.filterReadOnly||void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(e){t.keyhandler(e)},onChange:function(e){t.onChange(e)},onBlur:function(e){t.onBlur(e)},onFocus:function(e){t.onFocus(e)}})))},e}(Te);hn.Instance.registerQuestion("sv-tagbox-filter",(function(t){return C(_o,t)}));var go=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bo=function(t){function e(e){var n=t.call(this,e)||this;return n.state={changed:0},n.setupModel(),n}return go(e,t),e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.setupModel()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},e.prototype.setupModel=function(){if(this.item.locText){var t=this;this.item.locText.onChanged=function(){t.setState({changed:t.state.changed+1})}}},e.prototype.getStateElement=function(){return this.item},Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return!!this.item},e.prototype.renderElement=function(){return C("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},e}(De),Co=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.click=function(t){var n;null===(n=e.question.dropdownListModel)||void 0===n||n.onClick(t)},e.chevronPointerDown=function(t){var n;null===(n=e.question.dropdownListModel)||void 0===n||n.chevronPointerDown(t)},e.clear=function(t){var n;null===(n=e.question.dropdownListModel)||void 0===n||n.onClear(t)},e.keyhandler=function(t){var n;null===(n=e.question.dropdownListModel)||void 0===n||n.keyHandler(t)},e.blur=function(t){e.updateInputDomElement(),e.question.onBlur(t)},e.focus=function(t){e.question.onFocus(t)},e}return Co(e,t),e.prototype.getStateElement=function(){return this.question.dropdownListModel},e.prototype.setValueCore=function(t){this.questionBase.renderedValue=t},e.prototype.getValueCore=function(){return this.questionBase.renderedValue},e.prototype.renderReadOnlyElement=function(){return C("div",null,this.question.readOnlyText)},e.prototype.renderSelect=function(t){var e,n,o=null;if(this.question.isReadOnly){var r=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";o=C("div",{id:this.question.inputId,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,tabIndex:this.question.isDisabledAttr?void 0:0,className:this.question.getControlClass()},r,this.renderReadOnlyElement())}else o=C(O,null,this.renderInput(this.question.dropdownListModel),C(Ze,{model:null===(n=null===(e=this.question)||void 0===e?void 0:e.dropdownListModel)||void 0===n?void 0:n.popupModel}));return C("div",{className:t.selectWrapper,onClick:this.click},o,this.createChevronButton())},e.prototype.renderValueElement=function(t){return this.question.showInputFieldComponent?xe.Instance.createElement(this.question.inputFieldComponentName,{item:t.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},e.prototype.renderInput=function(t){var e=this,n=this.renderValueElement(t),o=Ne.settings.environment.root;return C("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:t.noTabIndex?void 0:0,disabled:this.question.isDisabledAttr,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,onFocus:this.focus,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":t.listElementId,"aria-activedescendant":t.ariaActivedescendant},t.showHintPrefix?C("div",{className:this.question.cssClasses.hintPrefix},C("span",null,t.hintStringPrefix)):null,C("div",{className:this.question.cssClasses.controlValue},t.showHintString?C("div",{className:this.question.cssClasses.hintSuffix},C("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},t.inputStringRendered),C("span",null,t.hintStringSuffix)):null,n,C("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(t){return e.inputElement=t},className:this.question.cssClasses.filterStringInput,role:t.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":t.listElementId,"aria-activedescendant":t.ariaActivedescendant,placeholder:t.placeholderRendered,readOnly:!!t.filterReadOnly||void 0,tabIndex:t.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:t.inputMode,onChange:function(e){!function(e){e.target===o.activeElement&&(t.inputStringRendered=e.target.value)}(e)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},e.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var t={display:this.question.showClearButton?"":"none"};return C("div",{className:this.question.cssClasses.cleanButton,style:t,onClick:this.clear,"aria-hidden":"true"},C(Ve,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},e.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?C("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},C(Ve,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},e.prototype.renderOther=function(t){return C("div",{className:this.question.getCommentAreaCss(!0)},C(gn,{question:this.question,otherCss:t.other,cssClasses:t,isDisplayMode:this.isDisplayMode,isOther:!0}))},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.updateInputDomElement()},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.updateInputDomElement()},e.prototype.updateInputDomElement=function(){if(this.inputElement){var t=this.inputElement,e=this.question.dropdownListModel.inputStringRendered;Ne.Helpers.isTwoValueEquals(e,t.value,!1,!0,!1)||(t.value=this.question.dropdownListModel.inputStringRendered)}},e}(Me),wo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oo=function(t){function e(e){return t.call(this,e)||this}return wo(e,t),e.prototype.renderElement=function(){var t=this.question.cssClasses,e=this.question.isOtherSelected?this.renderOther(t):null,n=this.renderSelect(t);return C("div",{className:this.question.renderCssRoot},n,e)},e}(qo);hn.Instance.registerQuestion("dropdown",(function(t){return C(Oo,t)}));var Eo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),So=function(t){function e(e){return t.call(this,e)||this}return Eo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return!!this.item&&!!this.question},e.prototype.renderElement=function(){var t=this;return C("div",{className:"sv-tagbox__item"},C("div",{className:"sv-tagbox__item-text"},this.renderLocString(this.item.locText)),C("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(e){t.question.dropdownListModel.deselectItem(t.item.value),e.stopPropagation()}},C(Ve,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},e}(De),Io=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Po=function(t){function e(e){return t.call(this,e)||this}return Io(e,t),e.prototype.renderItem=function(t,e){return C(So,{key:t,question:this.question,item:e})},e.prototype.renderInput=function(t){var e=this,n=t,o=this.question.selectedChoices.map((function(t,n){return e.renderItem("item"+n,t)}));return C("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:t.noTabIndex?void 0:0,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":t.listElementId,"aria-activedescendant":t.ariaActivedescendant},C("div",{className:this.question.cssClasses.controlValue},o,C(_o,{model:n,question:this.question})),this.createClearButton())},e.prototype.renderElement=function(){var t=this.question.cssClasses,e=this.question.isOtherSelected?this.renderOther(t):null,n=this.renderSelect(t);return C("div",{className:this.question.renderCssRoot},n,e)},e.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},e}(qo);hn.Instance.registerQuestion("tagbox",(function(t){return C(Po,t)}));var No=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xo=function(t){function e(e){return t.call(this,e)||this}return No(e,t),e.prototype.renderSelect=function(t){var e=this,n=this.isDisplayMode?C("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):C("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(t){return e.setControl(t)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(t){e.question.onClick(t)},onKeyUp:function(t){e.question.onKeyUp(t)},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,required:this.question.isRequired},this.question.allowClear?C("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map((function(t,e){return C(bo,{key:"item"+e,item:t})})));return C("div",{className:t.selectWrapper},n,this.createChevronButton())},e}(Oo);hn.Instance.registerQuestion("sv-dropdown-select",(function(t){return C(xo,t)})),Ne.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var Ro=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jo=function(t){function e(e){var n=t.call(this,e)||this;return n.state={rowsChanged:0},n}return Ro(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){if(t.prototype.componentDidMount.call(this),this.question){var e=this;this.question.visibleRowsChangedCallback=function(){e.setState({rowsChanged:e.state.rowsChanged+1})}}},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},e.prototype.renderElement=function(){for(var t=this,e=this.question.cssClasses,n=this.question.hasRows?C("td",null):null,o=[],r=0;r<this.question.visibleColumns.length;r++){var i=this.question.visibleColumns[r],s="column"+r,u=this.renderLocString(i.locText),a={};this.question.columnMinWidth&&(a.minWidth=this.question.columnMinWidth,a.width=this.question.columnMinWidth),o.push(C("th",{className:this.question.cssClasses.headerCell,style:a,key:s},this.wrapCell({column:i},u,"column-header")))}var l=[],c=this.question.visibleRows;for(r=0;r<c.length;r++){var p=c[r];s="row-"+p.name+"-"+r;l.push(C(ko,{key:s,question:this.question,cssClasses:e,row:p,isFirst:0==r}))}var d=this.question.showHeader?C("thead",null,C("tr",null,n,o)):null;return C("div",{className:e.tableWrapper,ref:function(e){return t.setControl(e)}},C("fieldset",null,C("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),C("table",{className:this.question.getTableCss()},d,C("tbody",null,l))))},e}(Be),ko=function(t){function e(e){return t.call(this,e)||this}return Ro(e,t),e.prototype.getStateElement=function(){return this.row?this.row.item:t.prototype.getStateElement.call(this)},Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),e.prototype.wrapCell=function(t,e,n){if(!n)return e;var o=this.question.survey,r=null;return o&&(r=Re.wrapMatrixCell(o,e,t,n)),null!=r?r:e},e.prototype.canRender=function(){return!!this.row},e.prototype.renderElement=function(){var t=null;if(this.question.hasRows){var e=this.renderLocString(this.row.locText),n={};this.question.rowTitleWidth&&(n.minWidth=this.question.rowTitleWidth,n.width=this.question.rowTitleWidth),t=C("td",{style:n,className:this.row.rowTextClasses},this.wrapCell({row:this.row},e,"row-header"))}var o=this.generateTds();return C("tr",{className:this.row.rowClasses||void 0},t,o)},e.prototype.generateTds=function(){for(var t=this,e=[],n=this.row,o=this.question.cellComponent,r=function(){var r=null,u=i.question.visibleColumns[s],a="value"+s,l=i.question.getItemClass(n,u);if(i.question.hasCellText){var c=function(e){return function(){return t.cellClick(n,e)}};r=C("td",{key:a,className:l,onClick:c?c(u):function(){}},i.renderLocString(i.question.getCellDisplayLocText(n.name,u)))}else{var p=xe.Instance.createElement(o,{question:i.question,row:i.row,column:u,columnIndex:s,cssClasses:i.cssClasses,cellChanged:function(){t.cellClick(t.row,u)}});r=C("td",{key:a,"data-responsive-title":u.locText.renderedHtml,className:i.question.cssClasses.cell},p)}e.push(r)},i=this,s=0;s<this.question.visibleColumns.length;s++)r();return e},e.prototype.cellClick=function(t,e){t.value=e.value,this.setState({value:this.row.value})},e}(De),To=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n.handleOnChange=n.handleOnChange.bind(n),n}return Ro(e,t),e.prototype.handleOnChange=function(t){this.props.cellChanged&&this.props.cellChanged()},e.prototype.handleOnMouseDown=function(t){this.question.onMouseDown()},Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return!!this.question&&!!this.row},e.prototype.renderElement=function(){var t=this.row.value==this.column.value,e=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,n=this.question.getItemClass(this.row,this.column),o=this.question.isMobile?C("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return C("label",{onMouseDown:this.handleOnMouseDown,className:n},this.renderInput(e,t),C("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?C("svg",{className:this.cssClasses.itemDecorator},C("use",{xlinkHref:this.question.itemSvgIcon})):null),o)},e.prototype.renderInput=function(t,e){return C("input",{id:t,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:e,onChange:this.handleOnChange,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.getCellAriaLabel(this.row.locText.renderedHtml,this.column.locText.renderedHtml),"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage})},e}(De);xe.Instance.registerElement("survey-matrix-cell",(function(t){return C(To,t)})),hn.Instance.registerQuestion("matrix",(function(t){return C(jo,t)}));var Do=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bo=function(t){function e(e){return t.call(this,e)||this}return Do(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.reactOnStrChanged()},e.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},e.prototype.componentDidUpdate=function(t,e){this.reactOnStrChanged()},e.prototype.reactOnStrChanged=function(){var t=this;this.question.locHtml.onChanged=function(){t.setState({changed:t.state&&t.state.changed?t.state.changed+1:1})}},e.prototype.canRender=function(){return t.prototype.canRender.call(this)&&!!this.question.html},e.prototype.renderElement=function(){var t={__html:this.question.locHtml.renderedHtml};return C("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:t})},e}(Be);hn.Instance.registerQuestion("html",(function(t){return C(Bo,t)}));var Mo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mo(e,t),e.prototype.render=function(){return C("div",{className:"sd-loading-indicator"},C(Ve,{iconName:"icon-loading",size:"auto"}))},e}(E),Ao=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ho=function(t){function e(e){return t.call(this,e)||this}return Ao(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this;return Vn(Pe.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(e){return t.question.chooseFile(e.nativeEvent)}},this.question.cssClasses.chooseFileIconId?Pe.createElement(Ve,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,Pe.createElement("span",null,this.question.chooseButtonText)))},e}(De);xe.Instance.registerElement("sv-file-choose-btn",(function(t){return Pe.createElement(Ho,t)}));var Uo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wo=function(t){function e(e){return t.call(this,e)||this}return Uo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t,e=this,n=this.question.allowShowPreview?this.renderPreview():null,o=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,r=this.question.isPlayingVideo?this.renderVideo():null,i=this.question.showFileDecorator?this.renderFileDecorator():null,s=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,u=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,a=this.question.fileNavigatorVisible?C(sn,{model:this.question.fileNavigator}):null;return t=this.question.isReadOnlyAttr?C("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(t){return e.setControl(t)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?C("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(t){return e.setControl(t)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?C("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(t){return e.setControl(t)},style:this.isDisplayMode?{color:"transparent"}:{},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes,capture:this.question.renderCapture}):null,C("div",{className:this.question.fileRootCss,ref:function(t){return e.setContent(t)}},t,C("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},i,o,r,s,n,u,a))},e.prototype.renderFileDecorator=function(){var t=this.question.showChooseButton?this.renderChooseButton():null,e=this.question.actionsContainerVisible?C(sn,{model:this.question.actionsContainer}):null,n=this.question.isEmpty()?C("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return C("div",{className:this.question.getFileDecoratorCss()},C("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),C("div",{className:this.question.cssClasses.wrapper},t,e,n))},e.prototype.renderChooseButton=function(){return C(Ho,{data:{question:this.question}})},e.prototype.renderClearButton=function(t){return this.question.isUploading?null:C("button",{type:"button",onClick:this.question.doClean,className:t},C("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?C(Ve,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},e.prototype.renderPreview=function(){return xe.Instance.createElement("sv-file-preview",{question:this.question})},e.prototype.renderLoadingIndicator=function(){return C("div",{className:this.question.cssClasses.loadingIndicator},C(Lo,null))},e.prototype.renderVideo=function(){return C("div",{className:this.question.cssClasses.videoContainer},C($e,{item:this.question.changeCameraAction}),C($e,{item:this.question.closeCameraAction}),C("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),C($e,{item:this.question.takePictureAction}))},e}(Be);hn.Instance.registerQuestion("file",(function(t){return C(Wo,t)}));var Fo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.renderFileSign=function(t,e){var n=this;return t&&e.name?Pe.createElement("div",{className:t},Pe.createElement("a",{href:e.content,onClick:function(t){n.question.doDownloadFile(t,e)},title:e.name,download:e.name,style:{width:this.question.imageWidth}},e.name)):null},e.prototype.renderElement=function(){var t=this,e=this.question.previewValue.map((function(e,n){return e?Pe.createElement("span",{key:t.question.inputId+"_"+n,className:t.question.cssClasses.previewItem,onClick:function(e){return t.question.doDownloadFileFromContainer(e)},style:{display:t.question.isPreviewVisible(n)?void 0:"none"}},t.renderFileSign(t.question.cssClasses.fileSign,e),Pe.createElement("div",{className:t.question.getImageWrapperCss(e)},t.question.canPreviewImage(e)?Pe.createElement("img",{src:e.content,style:{height:t.question.imageHeight,width:t.question.imageWidth},alt:"File preview"}):t.question.cssClasses.defaultImage?Pe.createElement(Ve,{iconName:t.question.cssClasses.defaultImageIconId,size:"auto",className:t.question.cssClasses.defaultImage}):null,e.name&&!t.question.isReadOnly?Pe.createElement("div",{className:t.question.getRemoveButtonCss(),onClick:function(n){return t.question.doRemoveFile(e,n)}},Pe.createElement("span",{className:t.question.cssClasses.removeFile},t.question.removeFileCaption),t.question.cssClasses.removeFileSvgIconId?Pe.createElement(Ve,{title:t.question.removeFileCaption,iconName:t.question.cssClasses.removeFileSvgIconId,size:"auto",className:t.question.cssClasses.removeFileSvg}):null):null),t.renderFileSign(t.question.cssClasses.fileSignBottom,e)):null}));return Pe.createElement("div",{className:this.question.cssClasses.fileList||void 0},e)},e.prototype.canRender=function(){return this.question.showPreviewContainer},e}(Te);xe.Instance.registerElement("sv-file-preview",(function(t){return Pe.createElement(Qo,t)}));var Vo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zo=function(t){function e(e){return t.call(this,e)||this}return Vo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){for(var t=this.question.cssClasses,e=this.question.getRows(),n=[],o=0;o<e.length;o++)e[o].isVisible&&n.push(this.renderRow(o,e[o].cells,t));return C("table",{className:this.question.getQuestionRootCss()},C("tbody",null,n))},e.prototype.renderCell=function(t,e,n){var o;return o=t.isErrorsCell?C(Nn,{question:t.item.editor,creator:this.creator}):C(Ko,{question:this.question,item:t.item,creator:this.creator,cssClasses:e}),C("td",{key:"item"+n,className:t.className,onFocus:function(){t.item.focusIn()}},o)},e.prototype.renderRow=function(t,e,n){for(var o="item"+t,r=[],i=0;i<e.length;i++){var s=e[i];r.push(this.renderCell(s,n,i))}return C("tr",{key:o,className:n.row},r)},e}(Be),Ko=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this.item,e=this.cssClasses,n={};return this.question.itemTitleWidth&&(n.minWidth=this.question.itemTitleWidth,n.width=this.question.itemTitleWidth),C("label",{className:this.question.getItemLabelCss(t)},C("span",{className:e.itemTitle,style:n},C(an,{element:t.editor,cssClasses:t.editor.cssClasses})),C(Jo,{cssClasses:e,itemCss:this.question.getItemCss(),question:t.editor,creator:this.creator}))},e}(De),Jo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vo(e,t),e.prototype.renderElement=function(){return C("div",{className:this.itemCss},this.renderContent())},e}(In);hn.Instance.registerQuestion("multipletext",(function(t){return C(zo,t)}));var $o=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Go=function(t){function e(e){return t.call(this,e)||this}return $o(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses,n=null;return this.question.showClearButtonInContent&&(n=C("div",null,C("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return t.question.clearValue(!0)},value:this.question.clearButtonCaption}))),C("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(e){return t.setControl(e)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},this.question.hasColumns?this.getColumnedBody(e):this.getBody(e),this.getFooter(),this.question.isOtherSelected?this.renderOther(e):null,n)},e.prototype.getFooter=function(){var t=this;if(this.question.hasFootItems)return this.question.footItems.map((function(e,n){return t.renderItem("item_f"+n,e,!1,t.question.cssClasses)}))},e.prototype.getColumnedBody=function(t){return C("div",{className:t.rootMultiColumn},this.getColumns(t))},e.prototype.getColumns=function(t){var e=this,n=this.getStateValue();return this.question.columns.map((function(o,r){var i=o.map((function(o,i){return e.renderItem("item"+r+i,o,n,t,""+r+i)}));return C("div",{key:"column"+r+e.question.getItemsColumnKey(o),className:e.question.getColumnClass(),role:"presentation"},i)}))},e.prototype.getBody=function(t){return this.question.blockedRow?C("div",{className:t.rootRow},this.getItems(t,this.question.dataChoices)):C(O,null,this.getItems(t,this.question.bodyItems))},e.prototype.getItems=function(t,e){for(var n=[],o=this.getStateValue(),r=0;r<e.length;r++){var i=e[r],s=this.renderItem("item"+r,i,o,t,""+r);n.push(s)}return n},Object.defineProperty(e.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.renderOther=function(t){return C("div",{className:this.question.getCommentAreaCss(!0)},C(gn,{question:this.question,otherCss:t.other,cssClasses:t,isDisplayMode:this.isDisplayMode}))},e.prototype.renderItem=function(t,e,n,o,r){var i=xe.Instance.createElement(this.question.itemComponent,{key:t,question:this.question,cssClasses:o,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:r,isChecked:n===e.value}),s=this.question.survey,u=null;return s&&(u=Re.wrapItemValue(s,i,this.question,e)),null!=u?u:i},e.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},e}(Be),Yo=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return $o(e,t),e.prototype.getStateElement=function(){return this.item},Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(!!this.question&&!(this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render))},e.prototype.handleOnChange=function(t){this.question.clickItemHandler(this.item)},e.prototype.handleOnMouseDown=function(t){this.question.onMouseDown()},e.prototype.canRender=function(){return!!this.question&&!!this.item},e.prototype.renderElement=function(){var t=this.question.getItemClass(this.item),e=this.question.getLabelClass(this.item),n=this.question.getControlLabelClass(this.item),o=this.hideCaption?null:C("span",{className:n},this.renderLocString(this.item.locText,this.textStyle));return C("div",{className:t,role:"presentation"},C("label",{onMouseDown:this.handleOnMouseDown,className:e},C("input",{"aria-errormessage":this.question.ariaErrormessage,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange}),this.cssClasses.materialDecorator?C("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?C("svg",{className:this.cssClasses.itemDecorator},C("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o))},e}(De);xe.Instance.registerElement("survey-radiogroup-item",(function(t){return C(Yo,t)})),hn.Instance.registerQuestion("radiogroup",(function(t){return C(Go,t)}));var Zo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xo=function(t){function e(e){return t.call(this,e)||this}return Zo(e,t),e.prototype.renderInput=function(){var t=this,e=this.question.getControlClass(),n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return C("div",null,this.question.inputValue);var o=this.question.getMaxLength()?C(mn,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return C(O,null,C("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:e,type:this.question.inputType,ref:function(e){return t.setControl(e)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:n,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:function(e){t.question.onBlur(e)},onFocus:function(e){t.question.onFocus(e)},onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(e){return t.question.onCompositionUpdate(e.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),o)},e.prototype.renderElement=function(){return this.question.dataListId?C("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},e.prototype.setValueCore=function(t){this.question.inputValue=t},e.prototype.getValueCore=function(){return this.question.inputValue},e.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var t=this.question.dataList;if(0==t.length)return null;for(var e=[],n=0;n<t.length;n++)e.push(C("option",{key:"item"+n,value:t[n]}));return C("datalist",{id:this.question.dataListId},e)},e}(Me);hn.Instance.registerQuestion("text",(function(t){return C(Xo,t)}));var tr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),er=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnClick=n.handleOnClick.bind(n),n.handleOnLabelClick=n.handleOnLabelClick.bind(n),n.handleOnSwitchClick=n.handleOnSwitchClick.bind(n),n.handleOnKeyDown=n.handleOnKeyDown.bind(n),n.checkRef={current:null},n}return tr(e,t),e.prototype.getStateElement=function(){return this.question},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.doCheck=function(t){this.question.booleanValue=t},e.prototype.handleOnChange=function(t){this.doCheck(t.target.checked)},e.prototype.handleOnClick=function(t){this.question.onLabelClick(t,!0)},e.prototype.handleOnSwitchClick=function(t){this.question.onSwitchClickModel(t.nativeEvent)},e.prototype.handleOnLabelClick=function(t,e){this.question.onLabelClick(t,e)},e.prototype.handleOnKeyDown=function(t){this.question.onKeyDownCore(t)},e.prototype.updateDomElement=function(){if(this.question){var e=this.checkRef.current;e&&(e.indeterminate=this.question.isIndeterminate),this.setControl(e),t.prototype.updateDomElement.call(this)}},e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses,n=this.question.getItemCss();return C("div",{className:e.root,onKeyDown:this.handleOnKeyDown},C("label",{className:n,onClick:this.handleOnClick},C("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.control,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),C("div",{className:e.sliderGhost,onClick:function(e){return t.handleOnLabelClick(e,t.question.swapOrder)}},C("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),C("div",{className:e.switch,onClick:this.handleOnSwitchClick},C("span",{className:e.slider},this.question.isDeterminated&&e.sliderText?C("span",{className:e.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),C("div",{className:e.sliderGhost,onClick:function(e){return t.handleOnLabelClick(e,!t.question.swapOrder)}},C("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},e}(Be);hn.Instance.registerQuestion("boolean",(function(t){return C(er,t)}));var nr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),or=function(t){function e(e){return t.call(this,e)||this}return nr(e,t),e.prototype.renderElement=function(){var t=this.question.cssClasses,e=this.question.getCheckboxItemCss(),n=this.question.canRenderLabelDescription?Te.renderQuestionDescription(this.question):null;return C("div",{className:t.rootCheckbox},C("div",{className:e},C("label",{className:t.checkboxLabel},C("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.controlCheckbox,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),C("span",{className:t.checkboxMaterialDecorator},this.question.svgIcon?C("svg",{className:t.checkboxItemDecorator},C("use",{xlinkHref:this.question.svgIcon})):null,C("span",{className:"check"})),this.question.isLabelRendered&&C("span",{className:t.checkboxControlLabel,id:this.question.labelRenderedAriaID},C(cn,{element:this.question,cssClasses:this.question.cssClasses}))),n))},e}(er);hn.Instance.registerQuestion("sv-boolean-checkbox",(function(t){return C(or,t)})),Ne.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var rr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ir=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnChange=function(t){n.question.booleanValue="true"==t.nativeEvent.target.value},n}return rr(e,t),e.prototype.renderRadioItem=function(t,e){var n=this.question.cssClasses;return C("div",{role:"presentation",className:this.question.getRadioItemClass(n,t)},C("label",{className:n.radioLabel},C("input",{type:"radio",name:this.question.name,value:t,"aria-errormessage":this.question.ariaErrormessage,checked:t===this.question.booleanValueRendered,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:n.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?C("span",{className:n.materialRadioDecorator},this.question.itemSvgIcon?C("svg",{className:n.itemRadioDecorator},C("use",{xlinkHref:this.question.itemSvgIcon})):null):null,C("span",{className:n.radioControlLabel},this.renderLocString(e))))},e.prototype.renderElement=function(){var t=this.question.cssClasses;return C("div",{className:t.rootRadio},C("fieldset",{role:"presentation",className:t.radioFieldset},this.question.swapOrder?C(O,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):C(O,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},e}(er);hn.Instance.registerQuestion("sv-boolean-radio",(function(t){return C(ir,t)})),Ne.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var sr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ur=function(t){function e(e){var n=t.call(this,e)||this;return n.state={value:n.question.value},n}return sr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){return C("div",null)},e}(Be);hn.Instance.registerQuestion("empty",(function(t){return C(ur,t)}));var ar=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lr=function(t){function e(e){var n=t.call(this,e)||this;return n.root=Pe.createRef(),n.onPointerDownHandler=function(t){n.parentMatrix.onPointerDown(t.nativeEvent,n.model.row)},n}return ar(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.model},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(e.model!==this.model&&(e.element&&e.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0)},e.prototype.render=function(){var t=this,e=this.model;return e.visible?Pe.createElement("tr",{ref:this.root,className:e.className,"data-sv-drop-target-matrix-row":e.row&&e.row.id,onPointerDown:function(e){return t.onPointerDownHandler(e)}},this.props.children):null},e}(Te);xe.Instance.registerElement("sv-matrix-row",(function(t){return Pe.createElement(lr,t)}));var cr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){return this.question.iconDragElement?Pe.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},Pe.createElement("use",{xlinkHref:this.question.iconDragElement})):Pe.createElement("span",{className:this.question.cssClasses.iconDrag})},e}(De);xe.Instance.registerElement("sv-matrix-drag-drop-icon",(function(t){return Pe.createElement(pr,t)}));var dr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.table},e.prototype.wrapCell=function(t,e,n){return this.props.wrapCell(t,e,n)},e.prototype.renderHeader=function(){var t=this.question.renderedTable;if(!t.showHeader)return null;for(var e=[],n=t.headerRow.cells,o=0;o<n.length;o++){var r=n[o],i="column"+o,s={};r.width&&(s.width=r.width),r.minWidth&&(s.minWidth=r.minWidth);var u=this.renderCellContent(r,"column-header",{}),a=r.hasTitle?C("th",{className:r.className,key:i,style:s}," ",u," "):C("td",{className:r.className,key:i,style:s});e.push(a)}return C("thead",null,C("tr",null,e))},e.prototype.renderFooter=function(){var t=this.question.renderedTable;return t.showFooter?C("tfoot",null,this.renderRow("footer",t.footerRow,this.question.cssClasses,"row-footer")):null},e.prototype.renderRows=function(){for(var t=this.question.cssClasses,e=[],n=this.question.renderedTable.renderedRows,o=0;o<n.length;o++)e.push(this.renderRow(n[o].id,n[o],t));return C("tbody",null,e)},e.prototype.renderRow=function(t,e,n,o){for(var r=[],i=e.cells,s=0;s<i.length;s++)r.push(this.renderCell(i[s],s,n,o));return C(O,{key:"row"+t},"row-footer"==o?C("tr",null,r):C(lr,{model:e,parentMatrix:this.question},r))},e.prototype.renderCell=function(t,e,n,o){var r="cell"+e;if(t.hasQuestion)return C(vr,{key:r,cssClasses:n,cell:t,creator:this.creator,reason:o});var i=o;i||(i=t.hasTitle?"row-header":"");var s=this.renderCellContent(t,i,n),u=null;return(t.width||t.minWidth)&&(u={},t.width&&(u.width=t.width),t.minWidth&&(u.minWidth=t.minWidth)),C("td",{className:t.className,key:r,style:u,colSpan:t.colSpans,title:t.getTitle()},s)},e.prototype.renderCellContent=function(t,e,n){var o=null,r=null;if((t.width||t.minWidth)&&(r={},t.width&&(r.width=t.width),t.minWidth&&(r.minWidth=t.minWidth)),t.hasTitle){e="row-header";var i=this.renderLocString(t.locTitle),s=t.column?C(yr,{column:t.column,question:this.question}):null;o=C(O,null,i,s)}if(t.isDragHandlerCell&&(o=C(O,null,C(pr,{item:{data:{row:t.row,question:this.question}}}))),t.isActionsCell&&(o=xe.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:n,cell:t,model:t.item.getData()})),t.hasPanel&&(o=C(Yn,{key:t.panel.id,element:t.panel,survey:this.question.survey,cssClasses:n,isDisplayMode:this.isDisplayMode,creator:this.creator})),t.isErrorsCell&&t.isErrorsCell)return C(Nn,{question:t.question,creator:this.creator});if(!o)return null;var u=C(O,null,o);return this.wrapCell(t,u,e)},e.prototype.renderElement=function(){var t=this.renderHeader(),e=this.renderFooter(),n=this.renderRows();return C("table",{className:this.question.getTableCss()},t,n,e)},e}(Te),fr=function(t){function e(e){var n=t.call(this,e)||this;n.question.renderedTable;return n.state=n.getState(),n}return dr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.getState=function(t){return void 0===t&&(t=null),{rowCounter:t?t.rowCounter+1:0}},e.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},e.prototype.componentDidMount=function(){var e=this;t.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){e.updateStateOnCallback()}},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},e.prototype.renderElement=function(){return this.renderTableDiv()},e.prototype.renderTableDiv=function(){var t=this;return C("div",{style:this.question.showHorizontalScroll?{overflowX:"scroll"}:{},className:this.question.cssClasses.tableWrapper,ref:function(e){return t.setControl(e)}},C(hr,{question:this.question,creator:this.creator,wrapCell:function(e,n,o){return t.wrapCell(e,n,o)}}))},e}(Be),mr=function(t){function e(e){return t.call(this,e)||this}return dr(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){return C(sn,{model:this.model,handleClick:!1})},e}(De);xe.Instance.registerElement("sv-matrixdynamic-actions-cell",(function(t){return C(mr,t)}));var yr=function(t){function e(e){return t.call(this,e)||this}return dr(e,t),Object.defineProperty(e.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.column},e.prototype.renderElement=function(){return this.column.isRenderedRequired?C(O,null,C("span",null," "),C("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},e}(De),vr=function(t){function e(e){return t.call(this,e)||this}return dr(e,t),Object.defineProperty(e.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),e.prototype.getQuestion=function(){var e=t.prototype.getQuestion.call(this);return e||(this.cell?this.cell.question:null)},e.prototype.doAfterRender=function(){var t=this.cellRef.current;if(t&&this.cell&&this.question&&this.question.survey&&"r"!==t.getAttribute("data-rendered")){t.setAttribute("data-rendered","r");var e={cell:this.cell,cellQuestion:this.question,htmlElement:t,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,e),this.question.afterRenderCore(t)}},e.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},e.prototype.getCellStyle=function(){var e=t.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(e||(e={}),this.cell.width&&(e.width=this.cell.width),this.cell.minWidth&&(e.minWidth=this.cell.minWidth)),e},e.prototype.getHeaderText=function(){return this.cell.headers},e.prototype.renderCellContent=function(){var e=t.prototype.renderCellContent.call(this),n=this.cell.showResponsiveTitle?C("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle)):null;return C(O,null,n,e)},e.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():En.renderQuestionBody(this.creator,this.question):C(O,null)},e.prototype.renderOtherComment=function(){var t=this.cell.question,e=t.cssClasses||{};return C(gn,{question:t,cssClasses:e,otherCss:e.other,isDisplayMode:t.isInputReadOnly})},e.prototype.renderCellCheckboxButton=function(){var t=this.cell.question.id+"item"+this.cell.choiceIndex;return C(no,{key:t,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},e.prototype.renderCellRadiogroupButton=function(){var t=this.cell.question.id+"item"+this.cell.choiceIndex;return C(Yo,{key:t,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},e}(Pn),_r=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gr=function(t){function e(e){return t.call(this,e)||this}return _r(e,t),e}(fr);hn.Instance.registerQuestion("matrixdropdown",(function(t){return C(gr,t)}));var br=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cr=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return br(e,t),Object.defineProperty(e.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.handleOnRowAddClick=function(t){this.matrix.addRowUI()},e.prototype.renderElement=function(){var t=this.question.cssClasses,e=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(t);return C("div",null,this.renderAddRowButtonOnTop(t),e,this.renderAddRowButtonOnBottom(t))},e.prototype.renderAddRowButtonOnTop=function(t){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(t):null},e.prototype.renderAddRowButtonOnBottom=function(t){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(t):null},e.prototype.renderNoRowsContent=function(t){var e=this.renderLocString(this.matrix.locEmptyRowsText),n=C("div",{className:t.emptyRowsText},e),o=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(t,!0):void 0;return C("div",{className:t.emptyRowsSection},n,o)},e.prototype.renderAddRowButton=function(t,e){return void 0===e&&(e=!1),xe.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:t,isEmptySection:e})},e}(fr);hn.Instance.registerQuestion("matrixdynamic",(function(t){return C(Cr,t)}));var qr=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return br(e,t),Object.defineProperty(e.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.handleOnRowAddClick=function(t){this.matrix.addRowUI()},e.prototype.renderElement=function(){var t=this.renderLocString(this.matrix.locAddRowText),e=C("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},t,C("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?e:C("div",{className:this.props.cssClasses.footer},e)},e}(De);xe.Instance.registerElement("sv-matrixdynamic-add-btn",(function(t){return C(qr,t)}));var wr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Or=function(t){function e(e){return t.call(this,e)||this}return wr(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),e}(De),Er=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleClick=function(t){e.question.addPanelUI()},e}return wr(e,t),e.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var t=this.renderLocString(this.question.locPanelAddText);return Pe.createElement("button",{type:"button",className:this.question.getAddButtonCss(),onClick:this.handleClick},Pe.createElement("span",{className:this.question.cssClasses.buttonAddText},t))},e}(Or);xe.Instance.registerElement("sv-paneldynamic-add-btn",(function(t){return Pe.createElement(Er,t)}));var Sr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ir=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleClick=function(t){e.question.goToNextPanel()},e}return Sr(e,t),e.prototype.renderElement=function(){return Pe.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},Pe.createElement(Ve,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},e}(Or);xe.Instance.registerElement("sv-paneldynamic-next-btn",(function(t){return Pe.createElement(Ir,t)}));var Pr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Nr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleClick=function(t){e.question.goToPrevPanel()},e}return Pr(e,t),e.prototype.renderElement=function(){return Pe.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},Pe.createElement(Ve,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},e}(Or);xe.Instance.registerElement("sv-paneldynamic-prev-btn",(function(t){return Pe.createElement(Nr,t)}));var xr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xr(e,t),e.prototype.renderElement=function(){return Pe.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},e}(Or);xe.Instance.registerElement("sv-paneldynamic-progress-text",(function(t){return Pe.createElement(Rr,t)}));var jr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kr=function(t){function e(e){return t.call(this,e)||this}return jr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var e=this;this.question.panelCountChangedCallback=function(){e.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){e.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){e.updateQuestionRendering()}},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},e.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},e.prototype.renderElement=function(){var t=this,e=[];this.question.renderedPanels.forEach((function(n,o){e.push(C(Tr,{key:n.id,element:n,question:t.question,index:o,cssClasses:t.question.cssClasses,isDisplayMode:t.isDisplayMode,creator:t.creator}))}));var n=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,o=this.question.isProgressTopShowing?this.renderNavigator():null,r=this.question.isProgressBottomShowing?this.renderNavigator():null,i=this.renderNavigatorV2(),s=this.renderPlaceholder();return C("div",{className:this.question.cssClasses.root},s,o,C("div",{className:this.question.cssClasses.panelsContainer},e),r,n,i)},e.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var t=this.question.isRangeShowing?this.renderRange():null,e=this.rendrerPrevButton(),n=this.rendrerNextButton(),o=this.renderAddRowButton();return C("div",{className:this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom},C("div",{style:{clear:"both"}},C("div",{className:this.question.cssClasses.progressContainer},e,t,n),o,this.renderProgressText()))},e.prototype.renderProgressText=function(){return C(Rr,{data:{question:this.question}})},e.prototype.rendrerPrevButton=function(){return C(Nr,{data:{question:this.question}})},e.prototype.rendrerNextButton=function(){return C(Ir,{data:{question:this.question}})},e.prototype.renderRange=function(){return C("div",{className:this.question.cssClasses.progress},C("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},e.prototype.renderAddRowButton=function(){return xe.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},e.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var t=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return C("div",{className:this.question.cssClasses.footer},C("hr",{className:this.question.cssClasses.separator}),t,this.question.footerToolbar.visibleActions.length?C("div",{className:this.question.cssClasses.footerButtonsContainer},C(sn,{model:this.question.footerToolbar})):null)},e.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?C("div",{className:this.question.cssClasses.noEntriesPlaceholder},C("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},e}(Be),Tr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),e.prototype.getSurvey=function(){return this.question?this.question.survey:null},e.prototype.getCss=function(){var t=this.getSurvey();return t?t.getCss():{}},e.prototype.render=function(){var e=t.prototype.render.call(this),n=this.renderButton(),o=this.question.showSeparator(this.index)?C("hr",{className:this.question.cssClasses.separator}):null;return C(O,null,C("div",{className:this.question.getPanelWrapperCss(this.panel)},e,n),o)},e.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:xe.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},e}(Yn);hn.Instance.registerQuestion("paneldynamic",(function(t){return C(kr,t)}));var Dr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Br=function(t){function e(e){return t.call(this,e)||this}return Dr(e,t),Object.defineProperty(e.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t={width:this.progress+"%"};return C("div",{className:this.survey.getProgressCssClasses(this.props.container)},C("div",{style:t,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},C("span",{className:Ne.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),C("span",{className:Ne.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},e}(Kn);xe.Instance.registerElement("sv-progress-pages",(function(t){return C(Br,t)})),xe.Instance.registerElement("sv-progress-questions",(function(t){return C(Br,t)})),xe.Instance.registerElement("sv-progress-correctquestions",(function(t){return C(Br,t)})),xe.Instance.registerElement("sv-progress-requiredquestions",(function(t){return C(Br,t)}));var Mr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lr=function(t){function e(e){var n=t.call(this,e)||this;return n.listContainerRef={current:null},n}return Mr(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),e.prototype.onResize=function(t){this.setState({canShowItemTitles:t}),this.setState({canShowHeader:!t})},e.prototype.onUpdateScroller=function(t){this.setState({hasScroller:t})},e.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},e.prototype.render=function(){var t=this;return C("div",{className:this.model.getRootCss(this.props.container),style:{maxWidth:this.model.progressWidth},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},this.state.canShowHeader?C("div",{className:this.css.progressButtonsHeader},C("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,C("div",{className:this.css.progressButtonsContainer},C("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return t.clickScrollButton(t.listContainerRef.current,!0)}}),C("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},C("ul",{className:this.css.progressButtonsList},this.getListElements())),C("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return t.clickScrollButton(t.listContainerRef.current,!1)}})),this.state.canShowFooter?C("div",{className:this.css.progressButtonsFooter},C("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},e.prototype.getListElements=function(){var t=this,e=[];return this.survey.visiblePages.forEach((function(n,o){e.push(t.renderListElement(n,o))})),e},e.prototype.renderListElement=function(t,e){var n=this,o=Te.renderLocString(t.locNavigationTitle);return C("li",{key:"listelement"+e,className:this.model.getListElementCss(e),onClick:this.model.isListElementClickable(e)?function(){return n.model.clickListElement(t)}:void 0,"data-page-number":this.model.getItemNumber(t)},C("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?C(O,null,C("div",{className:this.css.progressButtonsPageTitle,title:t.renderedNavigationTitle},o),C("div",{className:this.css.progressButtonsPageDescription,title:t.navigationDescription},t.navigationDescription)):null,C("div",{className:this.css.progressButtonsButton},C("div",{className:this.css.progressButtonsButtonBackground}),C("div",{className:this.css.progressButtonsButtonContent}),C("span",null,this.model.getItemNumber(t))))},e.prototype.clickScrollButton=function(t,e){t&&(t.scrollLeft+=70*(e?-1:1))},e.prototype.componentDidMount=function(){var e=this;t.prototype.componentDidMount.call(this),setTimeout((function(){e.respManager=new Ne.ProgressButtonsResponsivityManager(e.model,e.listContainerRef.current,e)}),10)},e.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),t.prototype.componentWillUnmount.call(this)},e}(Kn);xe.Instance.registerElement("sv-progress-buttons",(function(t){return C(Lr,t)}));var Ar=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Hr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleKeydown=function(t){e.model.onKeyDown(t)},e}return Ar(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.render=function(){var t=this;if(!this.item)return null;var e={paddingInlineStart:this.model.getItemIndent(this.item)},n=this.model.getItemClass(this.item),o=this.item.component||"sv-list-item-content",r=xe.Instance.createElement(o,{item:this.item,key:this.item.id,model:this.model}),i=Pe.createElement("div",{style:e,className:this.model.cssClasses.itemBody,title:this.item.locTitle.calculatedText,onMouseOver:function(e){t.model.onItemHover(t.item)},onMouseLeave:function(e){t.model.onItemLeave(t.item)}},r),s=this.item.needSeparator?Pe.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,u={display:this.model.isItemVisible(this.item)?null:"none"};return Vn(Pe.createElement("li",{className:n,role:"option",style:u,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(e){t.model.onItemClick(t.item),e.stopPropagation()},onPointerDown:function(e){return t.model.onPointerDown(e,t.item)}},s,i),this.item)},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},e}(Te);xe.Instance.registerElement("sv-list-item",(function(t){return Pe.createElement(Hr,t)}));var Ur=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wr=function(t){function e(e){var n=t.call(this,e)||this;return n.handleKeydown=function(t){n.model.onKeyDown(t)},n.handleMouseMove=function(t){n.model.onMouseMove(t)},n.state={filterString:n.model.filterString||""},n.listContainerRef=Pe.createRef(),n}return Ur(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.model},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},e.prototype.componentDidUpdate=function(e,n){var o;t.prototype.componentDidUpdate.call(this,e,n),this.model!==e.model&&(this.model&&(null===(o=this.listContainerRef)||void 0===o?void 0:o.current)&&this.model.initListContainerHtmlElement(this.listContainerRef.current),e.model&&e.model.initListContainerHtmlElement(void 0))},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},e.prototype.renderElement=function(){return Pe.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},e.prototype.renderList=function(){if(!this.model.renderElements)return null;var t=this.renderItems(),e={display:this.model.isEmpty?"none":null};return Pe.createElement("ul",{className:this.model.getListClass(),style:e,role:"listbox",id:this.model.elementId,onMouseDown:function(t){t.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},t)},e.prototype.renderItems=function(){var t=this;if(!this.model)return null;var e=this.model.renderedActions;return e?e.map((function(e,n){return Pe.createElement(Hr,{model:t.model,item:e,key:"item"+n})})):null},e.prototype.searchElementContent=function(){var t=this;if(this.model.showFilter){var e=this.model.showSearchClearButton&&this.model.filterString?Pe.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(e){t.model.onClickSearchClearButton(e)}},Pe.createElement(Ve,{iconName:"icon-searchclear",size:"auto"})):null;return Pe.createElement("div",{className:this.model.cssClasses.filter},Pe.createElement("div",{className:this.model.cssClasses.filterIcon},Pe.createElement(Ve,{iconName:"icon-search",size:"auto"})),Pe.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(e){t.model.goToItems(e)},onChange:function(e){var n=Ne.settings.environment.root;e.target===n.activeElement&&(t.model.filterString=e.target.value)}}),e)}return null},e.prototype.emptyContent=function(){var t={display:this.model.isEmpty?null:"none"};return Pe.createElement("div",{className:this.model.cssClasses.emptyContainer,style:t},Pe.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},e}(Te);xe.Instance.registerElement("sv-list",(function(t){return Pe.createElement(Wr,t)}));var Fr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fr(e,t),e.prototype.render=function(){var t,e=this.props.model;return t=e.isMobile?C("div",{onClick:e.togglePopup},C(Ve,{iconName:e.icon,size:24}),C(Ze,{model:e.popupModel})):C(Wr,{model:e.listModel}),C("div",{className:e.containerCss},t)},e}(Kn);xe.Instance.registerElement("sv-navigation-toc",(function(t){return C(Qr,t)}));var Vr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zr=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return Vr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.handleOnClick=function(t){this.question.setValueFromClick(t.target.value),this.setState({value:this.question.value})},e.prototype.renderItem=function(t,e){return xe.Instance.createElement(this.question.itemComponent,{question:this.question,item:t,index:e,key:"value"+e,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses,n=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,o=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return C("div",{className:this.question.ratingRootCss,ref:function(e){return t.setControl(e)}},C("fieldset",{role:"radiogroup"},C("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?C("span",{className:e.minText},n):null,this.question.renderedRateItems.map((function(e,n){return t.renderItem(e,n)})),this.question.hasMaxLabel?C("span",{className:e.maxText},o):null))},e}(Be);hn.Instance.registerQuestion("rating",(function(t){return C(zr,t)}));var Kr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Jr=function(t){function e(e){return t.call(this,e)||this}return Kr(e,t),e.prototype.renderElement=function(){var t=this.question.cssClasses,e=this.renderSelect(t);return C("div",{className:this.question.cssClasses.rootDropdown},e)},e}(qo);hn.Instance.registerQuestion("sv-rating-dropdown",(function(t){return C(Jr,t)})),Ne.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var $r=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Gr=function(t){function e(e){return t.call(this,e)||this}return $r(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses;return C("div",{id:this.question.inputId,className:e.root,ref:function(e){return t.setControl(e)}},this.question.formatedValue)},e}(Be);hn.Instance.registerQuestion("expression",(function(t){return C(Gr,t)}));var Yr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Zr=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return Yr(e,t),e.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},e.prototype.handleOnExpanded=function(t){this.popup.changeExpandCollapse()},e.prototype.canRender=function(){return t.prototype.canRender.call(this)&&this.popup.isShowing},e.prototype.renderElement=function(){var t=this,e=this.renderWindowHeader(),n=this.renderBody(),o={};return this.popup.renderedWidth&&(o.width=this.popup.renderedWidth,o.maxWidth=this.popup.renderedWidth),C("div",{className:this.popup.cssRoot,style:o,onScroll:function(){return t.popup.onScroll()}},C("div",{className:this.popup.cssRootContent},e,n))},e.prototype.renderWindowHeader=function(){var t,e=this.popup,n=(e.cssHeaderRoot,null),o=null,r=null;return e.isCollapsed?(" "+e.cssRootCollapsedMod,n=this.renderTitleCollapsed(e),t=this.renderExpandIcon()):t=this.renderCollapseIcon(),e.allowClose&&(o=this.renderCloseButton(this.popup)),e.allowFullScreen&&(r=this.renderAllowFullScreenButon(this.popup)),C("div",{className:e.cssHeaderRoot},n,C("div",{className:e.cssHeaderButtonsContainer},r,C("div",{className:e.cssHeaderCollapseButton,onClick:this.handleOnExpanded},t),o))},e.prototype.renderTitleCollapsed=function(t){return t.locTitle?C("div",{className:t.cssHeaderTitleCollapsed},t.locTitle.renderedHtml):null},e.prototype.renderExpandIcon=function(){return C(Ve,{iconName:"icon-restore_16x16",size:16})},e.prototype.renderCollapseIcon=function(){return C(Ve,{iconName:"icon-minimize_16x16",size:16})},e.prototype.renderCloseButton=function(t){return C("div",{className:t.cssHeaderCloseButton,onClick:function(){t.hide()}},C(Ve,{iconName:"icon-close_16x16",size:16}))},e.prototype.renderAllowFullScreenButon=function(t){var e;return e=t.isFullScreen?C(Ve,{iconName:"icon-back-to-panel_16x16",size:16}):C(Ve,{iconName:"icon-full-screen_16x16",size:16}),C("div",{className:t.cssHeaderFullScreenButton,onClick:function(){t.toggleFullScreen()}},e)},e.prototype.renderBody=function(){return C("div",{className:this.popup.cssBody},this.doRender())},e.prototype.createSurvey=function(e){e||(e={}),t.prototype.createSurvey.call(this,e),this.popup=new Ne.PopupSurveyModel(null,this.survey),e.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=e.closeOnCompleteTimeout),this.popup.allowClose=e.allowClose,this.popup.allowFullScreen=e.allowFullScreen,this.popup.isShowing=!0,this.popup.isExpanded||!e.expanded&&!e.isExpanded||this.popup.expand()},e}(Qn),Xr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Yr(e,t),e}(Zr),ti=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ei=function(t){function e(e){return t.call(this,e)||this}return ti(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this.question.cssClasses;return C("fieldset",{className:this.question.getSelectBaseRootCss()},C("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(t):this.getItems(t))},e.prototype.getColumns=function(t){var e=this;return this.question.columns.map((function(n,o){var r=n.map((function(n,o){return e.renderItem("item"+o,n,t)}));return C("div",{key:"column"+o+e.question.getItemsColumnKey(n),className:e.question.getColumnClass(),role:"presentation"},r)}))},e.prototype.getItems=function(t){for(var e=[],n=0;n<this.question.visibleChoices.length;n++){var o=this.question.visibleChoices[n],r="item"+n;e.push(this.renderItem(r,o,t))}return e},Object.defineProperty(e.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),e.prototype.renderItem=function(t,e,n){var o=C(ni,{key:t,question:this.question,item:e,cssClasses:n}),r=this.question.survey,i=null;return r&&(i=Re.wrapItemValue(r,o,this.question,e)),null!=i?i:o},e}(Be),ni=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return ti(e,t),e.prototype.getStateElement=function(){return this.item},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.reactOnStrChanged()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.reactOnStrChanged()},e.prototype.reactOnStrChanged=function(){var t=this;this.item.locImageLink.onChanged=function(){t.setState({locImageLinkchanged:t.state&&t.state.locImageLink?t.state.locImageLink+1:1})}},Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.handleOnChange=function(t){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect)if(t.target.checked)this.question.value=this.question.value.concat(t.target.value);else{var e=this.question.value;e.splice(this.question.value.indexOf(t.target.value),1),this.question.value=e}else this.question.value=t.target.value;this.setState({value:this.question.value})}},e.prototype.renderElement=function(){var t=this,e=this.item,n=this.question,o=this.cssClasses,r=n.isItemSelected(e),i=n.getItemClass(e),s=null;n.showLabel&&(s=C("span",{className:n.cssClasses.itemText},e.text?Te.renderLocString(e.locText):e.value));var u={objectFit:this.question.imageFit},a=null;if(e.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(a=C("img",{className:o.image,src:e.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:e.locText.renderedHtml,style:u,onLoad:function(n){t.question.onContentLoaded(e,n.nativeEvent)},onError:function(t){e.onErrorHandler(e,t.nativeEvent)}})),e.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(a=C("video",{controls:!0,className:o.image,src:e.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:u,onLoadedMetadata:function(n){t.question.onContentLoaded(e,n.nativeEvent)},onError:function(t){e.onErrorHandler(e,t.nativeEvent)}})),!e.locImageLink.renderedHtml||e.contentNotLoaded){var l={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};a=C("div",{className:o.itemNoImage,style:l},o.itemNoImageSvgIcon?C(Ve,{className:o.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return C("div",{className:i},C("label",{className:o.label},C("input",{className:o.itemControl,id:this.question.getItemId(e),type:this.question.inputType,name:this.question.questionName,checked:r,value:e.value,disabled:!this.question.getItemEnabled(e),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),C("div",{className:this.question.cssClasses.itemDecorator},C("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?C("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?C(Ve,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,a),s)))},e}(De);hn.Instance.registerQuestion("imagepicker",(function(t){return C(ei,t)}));var oi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ri=function(t){function e(e){return t.call(this,e)||this}return oi(e,t),e.prototype.componentDidMount=function(){var e=this;t.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){e.forceUpdate()}},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.question.getImageCss(),n={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};this.question.imageLink&&!this.question.contentNotLoaded||(n.display="none");var o=null;"image"===this.question.renderedMode&&(o=C("img",{className:e,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoad:function(e){t.question.onLoadHandler()},onError:function(e){t.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(o=C("video",{controls:!0,className:e,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoadedMetadata:function(e){t.question.onLoadHandler()},onError:function(e){t.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(o=C("iframe",{className:e,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n}));var r=null;return this.question.imageLink&&!this.question.contentNotLoaded||(r=C("div",{className:this.question.cssClasses.noImage},C(Ve,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),C("div",{className:this.question.cssClasses.root},o,r)},e}(Be);hn.Instance.registerQuestion("image",(function(t){return C(ri,t)}));var ii=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),si=function(t){function e(e){var n=t.call(this,e)||this;return n.state={value:n.question.value},n}return ii(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses,n=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,o=this.renderCleanButton();return C("div",{className:e.root,ref:function(e){return t.setControl(e)},style:{width:this.question.renderedCanvasWidth}},C("div",{className:e.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),C("div",null,this.renderBackgroundImage(),C("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(e){t.question.onBlur(e)}})),o,n)},e.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?C("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},e.prototype.renderLoadingIndicator=function(){return C("div",{className:this.question.cssClasses.loadingIndicator},C(Lo,null))},e.prototype.renderCleanButton=function(){var t=this;if(!this.question.canShowClearButton)return null;var e=this.question.cssClasses;return C("div",{className:e.controls},C("button",{type:"button",className:e.clearButton,title:this.question.clearButtonCaption,onClick:function(){return t.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?C(Ve,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):C("span",null,"✖")))},e}(Be);hn.Instance.registerQuestion("signaturepad",(function(t){return C(si,t)}));var ui=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ai=function(t){function e(e){return t.call(this,e)||this}return ui(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.question},e.prototype.renderElement=function(){var t=this.renderItems();return Pe.createElement("div",{className:this.question.cssClasses.root},t)},e.prototype.renderItems=function(){var t=this;return this.question.visibleChoices.map((function(e,n){return Pe.createElement(li,{key:t.question.inputId+"_"+n,item:e,question:t.question,index:n})}))},e}(Be),li=function(t){function e(e){return t.call(this,e)||this}return ui(e,t),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.renderElement=function(){this.model=new Ne.ButtonGroupItemModel(this.question,this.item,this.index);var t=this.renderIcon(),e=this.renderInput(),n=this.renderCaption();return Pe.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},e,Pe.createElement("div",{className:this.model.css.decorator},t,n))},e.prototype.renderIcon=function(){return this.model.iconName?Pe.createElement(Ve,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},e.prototype.renderInput=function(){var t=this;return Pe.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){t.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-errormessage":this.model.describedBy,role:"radio"})},e.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var t=this.renderLocString(this.model.caption);return Pe.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},t)},e}(Te),ci=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pi=function(t){function e(e){return t.call(this,e)||this}return ci(e,t),e.prototype.getStateElements=function(){var e=t.prototype.getStateElements.call(this);return this.question.contentQuestion&&e.push(this.question.contentQuestion),e},e.prototype.renderElement=function(){return En.renderQuestionBody(this.creator,this.question.contentQuestion)},e}(Me),di=function(t){function e(e){return t.call(this,e)||this}return ci(e,t),e.prototype.canRender=function(){return!!this.question.contentPanel},e.prototype.renderElement=function(){return C(Yn,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},e}(Me);hn.Instance.registerQuestion("custom",(function(t){return C(pi,t)})),hn.Instance.registerQuestion("composite",(function(t){return C(di,t)}));var hi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return hi(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.render=function(){if(!this.item)return null;var t=[],e=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var n=Pe.createElement(Ve,{key:"icon",className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title});t.push(n),t.push(Pe.createElement("span",{key:"text"},e))}else t.push(e);if(this.item.markerIconName){n=Pe.createElement(Ve,{key:"marker",className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:this.item.markerIconSize});t.push(n)}return Pe.createElement(Pe.Fragment,null,t)},e}(Te);xe.Instance.registerElement("sv-list-item-content",(function(t){return Pe.createElement(fi,t)}));var mi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mi(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.render=function(){var t;if(!this.item)return null;var e=xe.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return Pe.createElement(Pe.Fragment,null,e,Pe.createElement(Ze,{model:null===(t=this.item)||void 0===t?void 0:t.popupModel}))},e}(Te);xe.Instance.registerElement("sv-list-item-group",(function(t){return Pe.createElement(yi,t)}));var vi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_i=function(t){function e(e){return t.call(this,e)||this}return vi(e,t),Object.defineProperty(e.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=[];return t.push(Pe.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},Pe.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),Pe.createElement(Pe.Fragment,null,t)},e}(Pe.Component);xe.Instance.registerElement("sv-logo-image",(function(t){return Pe.createElement(_i,t)}));var gi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bi=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return gi(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),e.prototype.handleOnRowRemoveClick=function(t){this.question.removeRowUI(this.row)},e.prototype.renderElement=function(){var t=this.renderLocString(this.question.locRemoveRowText);return Pe.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},t,Pe.createElement("span",{className:this.question.cssClasses.iconRemove}))},e}(De);xe.Instance.registerElement("sv-matrix-remove-button",(function(t){return Pe.createElement(bi,t)}));var Ci=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qi=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return Ci(e,t),e.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),e.prototype.handleOnShowHideClick=function(t){this.row.showHideDetailPanelClick()},e.prototype.renderElement=function(){var t=this.row.isDetailPanelShowing,e=t,n=t?this.row.detailPanelId:void 0;return Pe.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":e,"aria-controls":n},Pe.createElement(Ve,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},e}(De);xe.Instance.registerElement("sv-matrix-detail-button",(function(t){return Pe.createElement(qi,t)}));var wi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oi=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleClick=function(t){e.question.removePanelUI(e.data.panel)},e}return wi(e,t),e.prototype.renderElement=function(){var t=this.renderLocString(this.question.locPanelRemoveText);return Pe.createElement("button",{className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},Pe.createElement("span",{className:this.question.cssClasses.buttonRemoveText},t),Pe.createElement("span",{className:this.question.cssClasses.iconRemove}))},e}(Or);xe.Instance.registerElement("sv-paneldynamic-remove-btn",(function(t){return Pe.createElement(Oi,t)}));var Ei=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Si=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ei(e,t),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return this.item.isVisible},e.prototype.renderElement=function(){return Pe.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},e}(De);xe.Instance.registerElement("sv-nav-btn",(function(t){return Pe.createElement(Si,t)}));var Ii=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pi=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangedHandler=function(t,e){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=Pe.createRef(),n}return Ii(e,t),Object.defineProperty(e.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.reactOnStrChanged()},e.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},e.prototype.componentDidUpdate=function(t,e){t.locStr&&t.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},e.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},e.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var t=this.renderString();return this.isRendering=!1,t},e.prototype.renderString=function(){var t=this.locStr.allowLineBreaks?"sv-string-viewer sv-string-viewer--multiline":"sv-string-viewer";if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return Pe.createElement("span",{ref:this.rootRef,className:t,style:this.style,dangerouslySetInnerHTML:e})}return Pe.createElement("span",{ref:this.rootRef,className:t,style:this.style},this.locStr.renderedHtml)},e}(Pe.Component);xe.Instance.registerElement(Ne.LocalizableString.defaultRenderer,(function(t){return Pe.createElement(Pi,t)}));var Ni=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ni(e,t),e.prototype.render=function(){return Pe.createElement("div",null,Pe.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),Pe.createElement("span",{className:this.props.cssClasses.error.item||void 0},Pe.createElement(Pi,{locStr:this.props.error.locText})))},e}(Pe.Component);xe.Instance.registerElement("sv-question-error",(function(t){return Pe.createElement(xi,t)}));var Ri=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ji=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ri(e,t),e.prototype.render=function(){var t;return Pe.createElement("div",{className:"sv-skeleton-element",id:null===(t=this.props.element)||void 0===t?void 0:t.id})},e}(Pe.Component);xe.Instance.registerElement("sv-skeleton",(function(t){return Pe.createElement(ji,t)}));var ki=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ti=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ki(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.renderLogoImage=function(){var t=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),e=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return xe.Instance.createElement(t,{data:e})},e.prototype.render=function(){return Pe.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?Pe.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?Pe.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},Pe.createElement(dn,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?Pe.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},Pe.createElement("div",{className:this.model.survey.css.description},Te.renderLocString(this.model.survey.locDescription))):null)},e}(Pe.Component),Di=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ki(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.renderLogoImage=function(){var t=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),e=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return xe.Instance.createElement(t,{data:e})},e.prototype.render=function(){return Pe.createElement("div",{className:this.model.css,style:this.model.style},Pe.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?Pe.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?Pe.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},Pe.createElement(dn,{element:this.model.survey})):null,this.model.showDescription?Pe.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},Pe.createElement("div",{className:this.model.survey.css.description},Te.renderLocString(this.model.survey.locDescription))):null))},e}(Pe.Component),Bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ki(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.model},e.prototype.renderElement=function(){if(this.model.survey=this.props.survey,"advanced"!==this.props.survey.headerView)return null;var t=null;return t=this.props.survey.isMobile?Pe.createElement(Ti,{model:this.model}):Pe.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map((function(t,e){return Pe.createElement(Di,{key:e,model:t})}))),Pe.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?Pe.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,t)},e}(Te);xe.Instance.registerElement("sv-header",(function(t){return Pe.createElement(Bi,t)}));var Mi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Li=function(t){function e(e){var n=t.call(this,e)||this;return n.onInput=function(t){n.locStr.text=t.target.innerText},n.onClick=function(t){t.preventDefault(),t.stopPropagation()},n.state={changed:0},n}return Mi(e,t),Object.defineProperty(e.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){if(this.locStr){var t=this;this.locStr.onChanged=function(){t.setState({changed:t.state.changed+1})}}},e.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},e.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var t={__html:this.locStr.renderedHtml};return Pe.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:t,onBlur:this.onInput,onClick:this.onClick})}return Pe.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},e}(Pe.Component);xe.Instance.registerElement(Ne.LocalizableString.editableRenderer,(function(t){return Pe.createElement(Li,t)}));var Ai=function(){return(Ai=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Hi=window.jQuery||window.$;function Ui(t,e,n){void 0===n&&(n={}),Zt(C(Qn,Ai({model:t},n)),e)}function Wi(t,e,n){void 0===n&&(n={}),Zt(C(Zr,Ai({model:t},n)),e)}function Fi(t){return this.each((function(){Wi(t.model,this,t)}))}Hi&&Hi.fn.extend({Survey:function(t){return this.each((function(){Ui(t.model,this,t)}))},PopupSurvey:Fi,SurveyWindow:Fi}),Ne.SurveyModel.platform="js-ui",Ne.SurveyModel.prototype.render=function(t){void 0===t&&(t=null),this.renderCallback?this.renderCallback():Ui(this,t)};var Qi=o;Object(Ne.checkLibraryVersion)("1.11.11","survey-js-ui")}])}));
6
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("survey-core"),function(){try{return require("jquery")}catch(t){}}()):"function"==typeof define&&define.amd?define("survey-js-ui",["survey-core","jquery"],e):"object"==typeof exports?exports["survey-js-ui"]=e(require("survey-core"),function(){try{return require("jquery")}catch(t){}}()):t.SurveyUI=e(t.Survey,t.jQuery)}(this,(function(t,e){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(e,n){e.exports=t},function(t,n){if(void 0===e){var o=new Error("Cannot find module 'undefined'");throw o.code="MODULE_NOT_FOUND",o}t.exports=e},function(t,e,n){"use strict";n.r(e),n.d(e,"useState",(function(){return at})),n.d(e,"useId",(function(){return gt})),n.d(e,"useReducer",(function(){return lt})),n.d(e,"useEffect",(function(){return ct})),n.d(e,"useLayoutEffect",(function(){return pt})),n.d(e,"useInsertionEffect",(function(){return Oe})),n.d(e,"useTransition",(function(){return we})),n.d(e,"useDeferredValue",(function(){return qe})),n.d(e,"useSyncExternalStore",(function(){return Se})),n.d(e,"startTransition",(function(){return Ce})),n.d(e,"useRef",(function(){return dt})),n.d(e,"useImperativeHandle",(function(){return ht})),n.d(e,"useMemo",(function(){return ft})),n.d(e,"useCallback",(function(){return mt})),n.d(e,"useContext",(function(){return yt})),n.d(e,"useDebugValue",(function(){return vt})),n.d(e,"version",(function(){return ce})),n.d(e,"Children",(function(){return Dt})),n.d(e,"render",(function(){return Zt})),n.d(e,"hydrate",(function(){return Xt})),n.d(e,"unmountComponentAtNode",(function(){return ye})),n.d(e,"createPortal",(function(){return Vt})),n.d(e,"createElement",(function(){return C})),n.d(e,"createContext",(function(){return K})),n.d(e,"createFactory",(function(){return pe})),n.d(e,"cloneElement",(function(){return me})),n.d(e,"createRef",(function(){return w})),n.d(e,"Fragment",(function(){return O})),n.d(e,"isValidElement",(function(){return de})),n.d(e,"isFragment",(function(){return he})),n.d(e,"isMemo",(function(){return fe})),n.d(e,"findDOMNode",(function(){return ve})),n.d(e,"Component",(function(){return E})),n.d(e,"PureComponent",(function(){return Nt})),n.d(e,"memo",(function(){return xt})),n.d(e,"forwardRef",(function(){return kt})),n.d(e,"flushSync",(function(){return ge})),n.d(e,"unstable_batchedUpdates",(function(){return _e})),n.d(e,"StrictMode",(function(){return be})),n.d(e,"Suspense",(function(){return Lt})),n.d(e,"SuspenseList",(function(){return Ut})),n.d(e,"lazy",(function(){return Ht})),n.d(e,"renderSurvey",(function(){return Ui})),n.d(e,"renderPopupSurvey",(function(){return Wi})),n.d(e,"preact",(function(){return zi})),n.d(e,"Survey",(function(){return Qn})),n.d(e,"attachKey2click",(function(){return Vn})),n.d(e,"ReactSurveyElementsWrapper",(function(){return Re})),n.d(e,"SurveyNavigationBase",(function(){return Kn})),n.d(e,"SurveyTimerPanel",(function(){return $n})),n.d(e,"SurveyPage",(function(){return Rn})),n.d(e,"SurveyRow",(function(){return Ue})),n.d(e,"SurveyPanel",(function(){return Yn})),n.d(e,"SurveyFlowPanel",(function(){return Xn})),n.d(e,"SurveyQuestion",(function(){return En})),n.d(e,"SurveyElementErrors",(function(){return Sn})),n.d(e,"SurveyQuestionAndErrorsCell",(function(){return Pn})),n.d(e,"ReactSurveyElement",(function(){return De})),n.d(e,"SurveyElementBase",(function(){return Te})),n.d(e,"SurveyQuestionElementBase",(function(){return Be})),n.d(e,"SurveyQuestionCommentItem",(function(){return _n})),n.d(e,"SurveyQuestionComment",(function(){return vn})),n.d(e,"SurveyQuestionCheckbox",(function(){return eo})),n.d(e,"SurveyQuestionCheckboxItem",(function(){return no})),n.d(e,"SurveyQuestionRanking",(function(){return ro})),n.d(e,"SurveyQuestionRankingItem",(function(){return io})),n.d(e,"SurveyQuestionRankingItemContent",(function(){return so})),n.d(e,"RatingItem",(function(){return lo})),n.d(e,"RatingItemStar",(function(){return po})),n.d(e,"RatingItemSmiley",(function(){return fo})),n.d(e,"RatingDropdownItem",(function(){return yo})),n.d(e,"TagboxFilterString",(function(){return _o})),n.d(e,"SurveyQuestionOptionItem",(function(){return bo})),n.d(e,"SurveyQuestionDropdownBase",(function(){return qo})),n.d(e,"SurveyQuestionDropdown",(function(){return Oo})),n.d(e,"SurveyQuestionTagboxItem",(function(){return So})),n.d(e,"SurveyQuestionTagbox",(function(){return Po})),n.d(e,"SurveyQuestionDropdownSelect",(function(){return xo})),n.d(e,"SurveyQuestionMatrix",(function(){return jo})),n.d(e,"SurveyQuestionMatrixRow",(function(){return ko})),n.d(e,"SurveyQuestionMatrixCell",(function(){return To})),n.d(e,"SurveyQuestionHtml",(function(){return Bo})),n.d(e,"SurveyQuestionFile",(function(){return Wo})),n.d(e,"SurveyFileChooseButton",(function(){return Ho})),n.d(e,"SurveyFilePreview",(function(){return Qo})),n.d(e,"SurveyQuestionMultipleText",(function(){return zo})),n.d(e,"SurveyQuestionRadiogroup",(function(){return Go})),n.d(e,"SurveyQuestionRadioItem",(function(){return Yo})),n.d(e,"SurveyQuestionText",(function(){return Xo})),n.d(e,"SurveyQuestionBoolean",(function(){return er})),n.d(e,"SurveyQuestionBooleanCheckbox",(function(){return or})),n.d(e,"SurveyQuestionBooleanRadio",(function(){return ir})),n.d(e,"SurveyQuestionEmpty",(function(){return ur})),n.d(e,"SurveyQuestionMatrixDropdownCell",(function(){return _r})),n.d(e,"SurveyQuestionMatrixDropdownBase",(function(){return fr})),n.d(e,"SurveyQuestionMatrixDropdown",(function(){return br})),n.d(e,"SurveyQuestionMatrixDynamic",(function(){return qr})),n.d(e,"SurveyQuestionMatrixDynamicAddButton",(function(){return wr})),n.d(e,"SurveyQuestionPanelDynamic",(function(){return Tr})),n.d(e,"SurveyProgress",(function(){return Mr})),n.d(e,"SurveyProgressButtons",(function(){return Ar})),n.d(e,"SurveyProgressToc",(function(){return Vr})),n.d(e,"SurveyQuestionRating",(function(){return Kr})),n.d(e,"SurveyQuestionRatingDropdown",(function(){return $r})),n.d(e,"SurveyQuestionExpression",(function(){return Yr})),n.d(e,"PopupSurvey",(function(){return Xr})),n.d(e,"SurveyWindow",(function(){return ti})),n.d(e,"ReactQuestionFactory",(function(){return hn})),n.d(e,"ReactElementFactory",(function(){return xe})),n.d(e,"SurveyQuestionImagePicker",(function(){return ni})),n.d(e,"SurveyQuestionImage",(function(){return ii})),n.d(e,"SurveyQuestionSignaturePad",(function(){return ui})),n.d(e,"SurveyQuestionButtonGroup",(function(){return li})),n.d(e,"SurveyQuestionCustom",(function(){return di})),n.d(e,"SurveyQuestionComposite",(function(){return hi})),n.d(e,"Popup",(function(){return Ze})),n.d(e,"ListItemContent",(function(){return mi})),n.d(e,"ListItemGroup",(function(){return vi})),n.d(e,"List",(function(){return Fr})),n.d(e,"TitleActions",(function(){return cn})),n.d(e,"TitleElement",(function(){return dn})),n.d(e,"SurveyActionBar",(function(){return sn})),n.d(e,"LogoImage",(function(){return gi})),n.d(e,"SurveyHeader",(function(){return kn})),n.d(e,"SvgIcon",(function(){return Ve})),n.d(e,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return Ci})),n.d(e,"SurveyQuestionMatrixDetailButton",(function(){return wi})),n.d(e,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return pr})),n.d(e,"SurveyQuestionPanelDynamicAddButton",(function(){return Sr})),n.d(e,"SurveyQuestionPanelDynamicRemoveButton",(function(){return Ei})),n.d(e,"SurveyQuestionPanelDynamicPrevButton",(function(){return xr})),n.d(e,"SurveyQuestionPanelDynamicNextButton",(function(){return Pr})),n.d(e,"SurveyQuestionPanelDynamicProgressText",(function(){return jr})),n.d(e,"SurveyNavigationButton",(function(){return Ii})),n.d(e,"QuestionErrorComponent",(function(){return Ri})),n.d(e,"MatrixRow",(function(){return lr})),n.d(e,"Skeleton",(function(){return ki})),n.d(e,"NotifierComponent",(function(){return Mn})),n.d(e,"ComponentsContainer",(function(){return An})),n.d(e,"CharacterCounterComponent",(function(){return mn})),n.d(e,"HeaderMobile",(function(){return Di})),n.d(e,"HeaderCell",(function(){return Bi})),n.d(e,"Header",(function(){return Mi})),n.d(e,"SurveyLocStringViewer",(function(){return Ni})),n.d(e,"SurveyLocStringEditor",(function(){return Ai})),n.d(e,"LoadingIndicatorComponent",(function(){return Lo})),n.d(e,"SvgBundleComponent",(function(){return Un})),n.d(e,"SurveyModel",(function(){return Ne.SurveyModel})),n.d(e,"SurveyWindowModel",(function(){return Ne.SurveyWindowModel})),n.d(e,"settings",(function(){return Ne.settings})),n.d(e,"ISurveyEnvironment",(function(){return Ne.ISurveyEnvironment})),n.d(e,"surveyLocalization",(function(){return Ne.surveyLocalization})),n.d(e,"surveyStrings",(function(){return Ne.surveyStrings})),n.d(e,"Model",(function(){return Ne.SurveyModel}));var o={};n.r(o),n.d(o,"Component",(function(){return E})),n.d(o,"Fragment",(function(){return O})),n.d(o,"createContext",(function(){return K})),n.d(o,"createElement",(function(){return C})),n.d(o,"createRef",(function(){return w})),n.d(o,"useCallback",(function(){return mt})),n.d(o,"useContext",(function(){return yt})),n.d(o,"useDebugValue",(function(){return vt})),n.d(o,"useEffect",(function(){return ct})),n.d(o,"useErrorBoundary",(function(){return _t})),n.d(o,"useId",(function(){return gt})),n.d(o,"useImperativeHandle",(function(){return ht})),n.d(o,"useLayoutEffect",(function(){return pt})),n.d(o,"useMemo",(function(){return ft})),n.d(o,"useReducer",(function(){return lt})),n.d(o,"useRef",(function(){return dt})),n.d(o,"useState",(function(){return at})),n.d(o,"Children",(function(){return Dt})),n.d(o,"PureComponent",(function(){return Nt})),n.d(o,"StrictMode",(function(){return be})),n.d(o,"Suspense",(function(){return Lt})),n.d(o,"SuspenseList",(function(){return Ut})),n.d(o,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return le})),n.d(o,"cloneElement",(function(){return me})),n.d(o,"createFactory",(function(){return pe})),n.d(o,"createPortal",(function(){return Vt})),n.d(o,"default",(function(){return Pe})),n.d(o,"findDOMNode",(function(){return ve})),n.d(o,"flushSync",(function(){return ge})),n.d(o,"forwardRef",(function(){return kt})),n.d(o,"hydrate",(function(){return Xt})),n.d(o,"isElement",(function(){return Ee})),n.d(o,"isFragment",(function(){return he})),n.d(o,"isMemo",(function(){return fe})),n.d(o,"isValidElement",(function(){return de})),n.d(o,"lazy",(function(){return Ht})),n.d(o,"memo",(function(){return xt})),n.d(o,"render",(function(){return Zt})),n.d(o,"startTransition",(function(){return Ce})),n.d(o,"unmountComponentAtNode",(function(){return ye})),n.d(o,"unstable_batchedUpdates",(function(){return _e})),n.d(o,"useDeferredValue",(function(){return qe})),n.d(o,"useInsertionEffect",(function(){return Oe})),n.d(o,"useSyncExternalStore",(function(){return Se})),n.d(o,"useTransition",(function(){return we})),n.d(o,"version",(function(){return ce}));var r,i,s,u,a,l,c,p,d,h,f,m={},y=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=Array.isArray;function g(t,e){for(var n in e)t[n]=e[n];return t}function b(t){var e=t.parentNode;e&&e.removeChild(t)}function C(t,e,n){var o,i,s,u={};for(s in e)"key"==s?o=e[s]:"ref"==s?i=e[s]:u[s]=e[s];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(s in t.defaultProps)void 0===u[s]&&(u[s]=t.defaultProps[s]);return q(t,u,o,i,null)}function q(t,e,n,o,r){var u={type:t,props:e,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++s:r,__i:-1,__u:0};return null==r&&null!=i.vnode&&i.vnode(u),u}function w(){return{current:null}}function O(t){return t.children}function E(t,e){this.props=t,this.context=e}function S(t,e){if(null==e)return t.__?S(t.__,t.__i+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?S(t):null}function I(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return I(t)}}function P(t){(!t.__d&&(t.__d=!0)&&u.push(t)&&!N.__r++||a!==i.debounceRendering)&&((a=i.debounceRendering)||l)(N)}function N(){var t,e,n,o,r,s,a,l;for(u.sort(c);t=u.shift();)t.__d&&(e=u.length,o=void 0,s=(r=(n=t).__v).__e,a=[],l=[],n.__P&&((o=g({},r)).__v=r.__v+1,i.vnode&&i.vnode(o),L(n.__P,o,r,n.__n,n.__P.namespaceURI,32&r.__u?[s]:null,a,null==s?S(r):s,!!(32&r.__u),l),o.__v=r.__v,o.__.__k[o.__i]=o,A(a,o,l),o.__e!=s&&I(o)),u.length>e&&u.sort(c));N.__r=0}function x(t,e,n,o,r,i,s,u,a,l,c){var p,d,h,f,v,_=o&&o.__k||y,g=e.length;for(n.__d=a,R(n,e,_),a=n.__d,p=0;p<g;p++)null!=(h=n.__k[p])&&"boolean"!=typeof h&&"function"!=typeof h&&(d=-1===h.__i?m:_[h.__i]||m,h.__i=p,L(t,h,d,r,i,s,u,a,l,c),f=h.__e,h.ref&&d.ref!=h.ref&&(d.ref&&U(d.ref,null,h),c.push(h.ref,h.__c||f,h)),null==v&&null!=f&&(v=f),65536&h.__u||d.__k===h.__k?a=j(h,a,t):"function"==typeof h.type&&void 0!==h.__d?a=h.__d:f&&(a=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=a,n.__e=v}function R(t,e,n){var o,r,i,s,u,a=e.length,l=n.length,c=l,p=0;for(t.__k=[],o=0;o<a;o++)s=o+p,null!=(r=t.__k[o]=null==(r=e[o])||"boolean"==typeof r||"function"==typeof r?null:"string"==typeof r||"number"==typeof r||"bigint"==typeof r||r.constructor==String?q(null,r,null,null,null):_(r)?q(O,{children:r},null,null,null):void 0===r.constructor&&r.__b>0?q(r.type,r.props,r.key,r.ref?r.ref:null,r.__v):r)?(r.__=t,r.__b=t.__b+1,u=T(r,n,s,c),r.__i=u,i=null,-1!==u&&(c--,(i=n[u])&&(i.__u|=131072)),null==i||null===i.__v?(-1==u&&p--,"function"!=typeof r.type&&(r.__u|=65536)):u!==s&&(u==s-1?p--:u==s+1?p++:u>s?c>a-s?p+=u-s:p--:u<s&&(u==s-p?p-=u-s:p++),u!==o+p&&(r.__u|=65536))):(i=n[s])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=S(i)),W(i,i,!1),n[s]=null,c--);if(c)for(o=0;o<l;o++)null!=(i=n[o])&&0==(131072&i.__u)&&(i.__e==t.__d&&(t.__d=S(i)),W(i,i))}function j(t,e,n){var o,r;if("function"==typeof t.type){for(o=t.__k,r=0;o&&r<o.length;r++)o[r]&&(o[r].__=t,e=j(o[r],e,n));return e}t.__e!=e&&(e&&t.type&&!n.contains(e)&&(e=S(t)),n.insertBefore(t.__e,e||null),e=t.__e);do{e=e&&e.nextSibling}while(null!=e&&8===e.nodeType);return e}function k(t,e){return e=e||[],null==t||"boolean"==typeof t||(_(t)?t.some((function(t){k(t,e)})):e.push(t)),e}function T(t,e,n,o){var r=t.key,i=t.type,s=n-1,u=n+1,a=e[n];if(null===a||a&&r==a.key&&i===a.type&&0==(131072&a.__u))return n;if(o>(null!=a&&0==(131072&a.__u)?1:0))for(;s>=0||u<e.length;){if(s>=0){if((a=e[s])&&0==(131072&a.__u)&&r==a.key&&i===a.type)return s;s--}if(u<e.length){if((a=e[u])&&0==(131072&a.__u)&&r==a.key&&i===a.type)return u;u++}}return-1}function D(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||v.test(e)?n:n+"px"}function B(t,e,n,o,r){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof o&&(t.style.cssText=o=""),o)for(e in o)n&&e in n||D(t.style,e,"");if(n)for(e in n)o&&n[e]===o[e]||D(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/(PointerCapture)$|Capture$/i,"$1")),e=e.toLowerCase()in t||"onFocusOut"===e||"onFocusIn"===e?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?o?n.u=o.u:(n.u=p,t.addEventListener(e,i?h:d,i)):t.removeEventListener(e,i?h:d,i);else{if("http://www.w3.org/2000/svg"==r)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=e&&"height"!=e&&"href"!=e&&"list"!=e&&"form"!=e&&"tabIndex"!=e&&"download"!=e&&"rowSpan"!=e&&"colSpan"!=e&&"role"!=e&&"popover"!=e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&"-"!==e[4]?t.removeAttribute(e):t.setAttribute(e,"popover"==e&&1==n?"":n))}}function M(t){return function(e){if(this.l){var n=this.l[e.type+t];if(null==e.t)e.t=p++;else if(e.t<n.u)return;return n(i.event?i.event(e):e)}}}function L(t,e,n,o,r,s,u,a,l,c){var p,d,h,f,m,y,v,b,C,q,w,S,I,P,N,R,j=e.type;if(void 0!==e.constructor)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=e.__e=n.__e]),(p=i.__b)&&p(e);t:if("function"==typeof j)try{if(b=e.props,C="prototype"in j&&j.prototype.render,q=(p=j.contextType)&&o[p.__c],w=p?q?q.props.value:p.__:o,n.__c?v=(d=e.__c=n.__c).__=d.__E:(C?e.__c=d=new j(b,w):(e.__c=d=new E(b,w),d.constructor=j,d.render=F),q&&q.sub(d),d.props=b,d.state||(d.state={}),d.context=w,d.__n=o,h=d.__d=!0,d.__h=[],d._sb=[]),C&&null==d.__s&&(d.__s=d.state),C&&null!=j.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=g({},d.__s)),g(d.__s,j.getDerivedStateFromProps(b,d.__s))),f=d.props,m=d.state,d.__v=e,h)C&&null==j.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),C&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(C&&null==j.getDerivedStateFromProps&&b!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,w)||e.__v===n.__v)){for(e.__v!==n.__v&&(d.props=b,d.state=d.__s,d.__d=!1),e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[],d.__h.length&&u.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,w),C&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,m,y)}))}if(d.context=w,d.props=b,d.__P=t,d.__e=!1,I=i.__r,P=0,C){for(d.state=d.__s,d.__d=!1,I&&I(e),p=d.render(d.props,d.state,d.context),N=0;N<d._sb.length;N++)d.__h.push(d._sb[N]);d._sb=[]}else do{d.__d=!1,I&&I(e),p=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++P<25);d.state=d.__s,null!=d.getChildContext&&(o=g(g({},o),d.getChildContext())),C&&!h&&null!=d.getSnapshotBeforeUpdate&&(y=d.getSnapshotBeforeUpdate(f,m)),x(t,_(R=null!=p&&p.type===O&&null==p.key?p.props.children:p)?R:[R],e,n,o,r,s,u,a,l,c),d.base=e.__e,e.__u&=-161,d.__h.length&&u.push(d),v&&(d.__E=d.__=null)}catch(t){if(e.__v=null,l||null!=s){for(e.__u|=l?160:32;a&&8===a.nodeType&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,e.__e=a}else e.__e=n.__e,e.__k=n.__k;i.__e(t,e,n)}else null==s&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=H(n.__e,e,n,o,r,s,u,l,c);(p=i.diffed)&&p(e)}function A(t,e,n){e.__d=void 0;for(var o=0;o<n.length;o++)U(n[o],n[++o],n[++o]);i.__c&&i.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){i.__e(t,e.__v)}}))}function H(t,e,n,o,i,s,u,a,l){var c,p,d,h,f,y,v,g=n.props,C=e.props,q=e.type;if("svg"===q?i="http://www.w3.org/2000/svg":"math"===q?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=s)for(c=0;c<s.length;c++)if((f=s[c])&&"setAttribute"in f==!!q&&(q?f.localName===q:3===f.nodeType)){t=f,s[c]=null;break}if(null==t){if(null===q)return document.createTextNode(C);t=document.createElementNS(i,q,C.is&&C),s=null,a=!1}if(null===q)g===C||a&&t.data===C||(t.data=C);else{if(s=s&&r.call(t.childNodes),g=n.props||m,!a&&null!=s)for(g={},c=0;c<t.attributes.length;c++)g[(f=t.attributes[c]).name]=f.value;for(c in g)if(f=g[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=f;else if("key"!==c&&!(c in C)){if("value"==c&&"defaultValue"in C||"checked"==c&&"defaultChecked"in C)continue;B(t,c,null,f,i)}for(c in C)f=C[c],"children"==c?h=f:"dangerouslySetInnerHTML"==c?p=f:"value"==c?y=f:"checked"==c?v=f:"key"===c||a&&"function"!=typeof f||g[c]===f||B(t,c,f,g[c],i);if(p)a||d&&(p.__html===d.__html||p.__html===t.innerHTML)||(t.innerHTML=p.__html),e.__k=[];else if(d&&(t.innerHTML=""),x(t,_(h)?h:[h],e,n,o,"foreignObject"===q?"http://www.w3.org/1999/xhtml":i,s,u,s?s[0]:n.__k&&S(n,0),a,l),null!=s)for(c=s.length;c--;)null!=s[c]&&b(s[c]);a||(c="value",void 0!==y&&(y!==t[c]||"progress"===q&&!y||"option"===q&&y!==g[c])&&B(t,c,y,g[c],i),c="checked",void 0!==v&&v!==t[c]&&B(t,c,v,g[c],i))}return t}function U(t,e,n){try{if("function"==typeof t){var o="function"==typeof t.__u;o&&t.__u(),o&&null==e||(t.__u=t(e))}else t.current=e}catch(t){i.__e(t,n)}}function W(t,e,n){var o,r;if(i.unmount&&i.unmount(t),(o=t.ref)&&(o.current&&o.current!==t.__e||U(o,null,e)),null!=(o=t.__c)){if(o.componentWillUnmount)try{o.componentWillUnmount()}catch(t){i.__e(t,e)}o.base=o.__P=null}if(o=t.__k)for(r=0;r<o.length;r++)o[r]&&W(o[r],e,n||"function"!=typeof t.type);n||null==t.__e||b(t.__e),t.__c=t.__=t.__e=t.__d=void 0}function F(t,e,n){return this.constructor(t,n)}function Q(t,e,n){var o,s,u,a;i.__&&i.__(t,e),s=(o="function"==typeof n)?null:n&&n.__k||e.__k,u=[],a=[],L(e,t=(!o&&n||e).__k=C(O,null,[t]),s||m,m,e.namespaceURI,!o&&n?[n]:s?null:e.firstChild?r.call(e.childNodes):null,u,!o&&n?n:s?s.__e:e.firstChild,o,a),A(u,t,a)}function V(t,e){Q(t,e,V)}function z(t,e,n){var o,i,s,u,a=g({},t.props);for(s in t.type&&t.type.defaultProps&&(u=t.type.defaultProps),e)"key"==s?o=e[s]:"ref"==s?i=e[s]:a[s]=void 0===e[s]&&void 0!==u?u[s]:e[s];return arguments.length>2&&(a.children=arguments.length>3?r.call(arguments,2):n),q(t.type,a,o||t.key,i||t.ref,null)}function K(t,e){var n={__c:e="__cC"+f++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,o;return this.getChildContext||(n=[],(o={})[e]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,P(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n&&n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=y.slice,i={__e:function(t,e,n,o){for(var r,i,s;e=e.__;)if((r=e.__c)&&!r.__)try{if((i=r.constructor)&&null!=i.getDerivedStateFromError&&(r.setState(i.getDerivedStateFromError(t)),s=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(t,o||{}),s=r.__d),s)return r.__E=r}catch(e){t=e}throw t}},s=0,E.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof t&&(t=t(g({},n),this.props)),t&&g(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),P(this))},E.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),P(this))},E.prototype.render=O,u=[],l="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,c=function(t,e){return t.__v.__b-e.__v.__b},N.__r=0,p=0,d=M(!1),h=M(!0),f=0;var J,$,G,Y,Z=0,X=[],tt=i,et=tt.__b,nt=tt.__r,ot=tt.diffed,rt=tt.__c,it=tt.unmount,st=tt.__;function ut(t,e){tt.__h&&tt.__h($,t,Z||e),Z=0;var n=$.__H||($.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function at(t){return Z=1,lt(St,t)}function lt(t,e,n){var o=ut(J++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):St(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=$,!$.u)){var r=function(t,e,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(t){return!!t.__c}));if(r.every((function(t){return!t.__N})))return!i||i.call(this,t,e,n);var s=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(s=!0)}})),!(!s&&o.__c.props===t)&&(!i||i.call(this,t,e,n))};$.u=!0;var i=$.shouldComponentUpdate,s=$.componentWillUpdate;$.componentWillUpdate=function(t,e,n){if(this.__e){var o=i;i=void 0,r(t,e,n),i=o}s&&s.call(this,t,e,n)},$.shouldComponentUpdate=r}return o.__N||o.__}function ct(t,e){var n=ut(J++,3);!tt.__s&&Et(n.__H,e)&&(n.__=t,n.i=e,$.__H.__h.push(n))}function pt(t,e){var n=ut(J++,4);!tt.__s&&Et(n.__H,e)&&(n.__=t,n.i=e,$.__h.push(n))}function dt(t){return Z=5,ft((function(){return{current:t}}),[])}function ht(t,e,n){Z=6,pt((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function ft(t,e){var n=ut(J++,7);return Et(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function mt(t,e){return Z=8,ft((function(){return t}),e)}function yt(t){var e=$.context[t.__c],n=ut(J++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub($)),e.props.value):t.__}function vt(t,e){tt.useDebugValue&&tt.useDebugValue(e?e(t):t)}function _t(t){var e=ut(J++,10),n=at();return e.__=t,$.componentDidCatch||($.componentDidCatch=function(t,o){e.__&&e.__(t,o),n[1](t)}),[n[0],function(){n[1](void 0)}]}function gt(){var t=ut(J++,11);if(!t.__){for(var e=$.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function bt(){for(var t;t=X.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(wt),t.__H.__h.forEach(Ot),t.__H.__h=[]}catch(e){t.__H.__h=[],tt.__e(e,t.__v)}}tt.__b=function(t){$=null,et&&et(t)},tt.__=function(t,e){t&&e.__k&&e.__k.__m&&(t.__m=e.__k.__m),st&&st(t,e)},tt.__r=function(t){nt&&nt(t),J=0;var e=($=t.__c).__H;e&&(G===$?(e.__h=[],$.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.i=t.__N=void 0}))):(e.__h.forEach(wt),e.__h.forEach(Ot),e.__h=[],J=0)),G=$},tt.diffed=function(t){ot&&ot(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==X.push(e)&&Y===tt.requestAnimationFrame||((Y=tt.requestAnimationFrame)||qt)(bt)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.i=void 0}))),G=$=null},tt.__c=function(t,e){e.some((function(t){try{t.__h.forEach(wt),t.__h=t.__h.filter((function(t){return!t.__||Ot(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],tt.__e(n,t.__v)}})),rt&&rt(t,e)},tt.unmount=function(t){it&&it(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{wt(t)}catch(t){e=t}})),n.__H=void 0,e&&tt.__e(e,n.__v))};var Ct="function"==typeof requestAnimationFrame;function qt(t){var e,n=function(){clearTimeout(o),Ct&&cancelAnimationFrame(e),setTimeout(t)},o=setTimeout(n,100);Ct&&(e=requestAnimationFrame(n))}function wt(t){var e=$,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),$=e}function Ot(t){var e=$;t.__c=t.__(),$=e}function Et(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function St(t,e){return"function"==typeof e?e(t):e}function It(t,e){for(var n in e)t[n]=e[n];return t}function Pt(t,e){for(var n in t)if("__source"!==n&&!(n in e))return!0;for(var o in e)if("__source"!==o&&t[o]!==e[o])return!0;return!1}function Nt(t,e){this.props=t,this.context=e}function xt(t,e){function n(t){var n=this.props.ref,o=n==t.ref;return!o&&n&&(n.call?n(null):n.current=null),e?!e(this.props,t)||!o:Pt(this.props,t)}function o(e){return this.shouldComponentUpdate=n,C(t,e)}return o.displayName="Memo("+(t.displayName||t.name)+")",o.prototype.isReactComponent=!0,o.__f=!0,o}(Nt.prototype=new E).isPureReactComponent=!0,Nt.prototype.shouldComponentUpdate=function(t,e){return Pt(this.props,t)||Pt(this.state,e)};var Rt=i.__b;i.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),Rt&&Rt(t)};var jt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function kt(t){function e(e){var n=It({},e);return delete n.ref,t(n,e.ref||null)}return e.$$typeof=jt,e.render=e,e.prototype.isReactComponent=e.__f=!0,e.displayName="ForwardRef("+(t.displayName||t.name)+")",e}var Tt=function(t,e){return null==t?null:k(k(t).map(e))},Dt={map:Tt,forEach:Tt,count:function(t){return t?k(t).length:0},only:function(t){var e=k(t);if(1!==e.length)throw"Children.only";return e[0]},toArray:k},Bt=i.__e;i.__e=function(t,e,n,o){if(t.then)for(var r,i=e;i=i.__;)if((r=i.__c)&&r.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),r.__c(t,e);Bt(t,e,n,o)};var Mt=i.unmount;function Lt(){this.__u=0,this.t=null,this.__b=null}function At(t){var e=t.__.__c;return e&&e.__a&&e.__a(t)}function Ht(t){var e,n,o;function r(r){if(e||(e=t()).then((function(t){n=t.default||t}),(function(t){o=t})),o)throw o;if(!n)throw e;return C(n,r)}return r.displayName="Lazy",r.__f=!0,r}function Ut(){this.u=null,this.o=null}i.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&32&t.__u&&(t.type=null),Mt&&Mt(t)},(Lt.prototype=new E).__c=function(t,e){var n=e.__c,o=this;null==o.t&&(o.t=[]),o.t.push(n);var r=At(o.__v),i=!1,s=function(){i||(i=!0,n.__R=null,r?r(u):u())};n.__R=s;var u=function(){if(!--o.__u){if(o.state.__a){var t=o.state.__a;o.__v.__k[0]=function t(e,n,o){return e&&o&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return t(e,n,o)})),e.__c&&e.__c.__P===n&&(e.__e&&o.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=o)),e}(t,t.__c.__P,t.__c.__O)}var e;for(o.setState({__a:o.__b=null});e=o.t.pop();)e.forceUpdate()}};o.__u++||32&e.__u||o.setState({__a:o.__b=o.__v.__k[0]}),t.then(s,s)},Lt.prototype.componentWillUnmount=function(){this.t=[]},Lt.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=function t(e,n,o){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(t){"function"==typeof t.__c&&t.__c()})),e.__c.__H=null),null!=(e=It({},e)).__c&&(e.__c.__P===o&&(e.__c.__P=n),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return t(e,n,o)}))),e}(this.__b,n,o.__O=o.__P)}this.__b=null}var r=e.__a&&C(O,null,t.fallback);return r&&(r.__u&=-33),[C(O,null,e.__a?null:t.children),r]};var Wt=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;t.u=n=n[2]}};function Ft(t){return this.getChildContext=function(){return t.context},t.children}function Qt(t){var e=this,n=t.i;e.componentWillUnmount=function(){Q(null,e.l),e.l=null,e.i=null},e.i&&e.i!==n&&e.componentWillUnmount(),e.l||(e.i=n,e.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(t){this.childNodes.push(t),e.i.appendChild(t)},insertBefore:function(t,n){this.childNodes.push(t),e.i.appendChild(t)},removeChild:function(t){this.childNodes.splice(this.childNodes.indexOf(t)>>>1,1),e.i.removeChild(t)}}),Q(C(Ft,{context:e.context},t.__v),e.l)}function Vt(t,e){var n=C(Qt,{__v:t,i:e});return n.containerInfo=e,n}(Ut.prototype=new E).__a=function(t){var e=this,n=At(e.__v),o=e.o.get(t);return o[0]++,function(r){var i=function(){e.props.revealOrder?(o.push(r),Wt(e,t,o)):r()};n?n(i):i()}},Ut.prototype.render=function(t){this.u=null,this.o=new Map;var e=k(t.children);t.revealOrder&&"b"===t.revealOrder[0]&&e.reverse();for(var n=e.length;n--;)this.o.set(e[n],this.u=[1,0,this.u]);return t.children},Ut.prototype.componentDidUpdate=Ut.prototype.componentDidMount=function(){var t=this;this.o.forEach((function(e,n){Wt(t,n,e)}))};var zt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Kt=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,Jt=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,$t=/[A-Z0-9]/g,Gt="undefined"!=typeof document,Yt=function(t){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(t)};function Zt(t,e,n){return null==e.__k&&(e.textContent=""),Q(t,e),"function"==typeof n&&n(),t?t.__c:null}function Xt(t,e,n){return V(t,e),"function"==typeof n&&n(),t?t.__c:null}E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(t){Object.defineProperty(E.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(e){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:e})}})}));var te=i.event;function ee(){}function ne(){return this.cancelBubble}function oe(){return this.defaultPrevented}i.event=function(t){return te&&(t=te(t)),t.persist=ee,t.isPropagationStopped=ne,t.isDefaultPrevented=oe,t.nativeEvent=t};var re,ie={enumerable:!1,configurable:!0,get:function(){return this.class}},se=i.vnode;i.vnode=function(t){"string"==typeof t.type&&function(t){var e=t.props,n=t.type,o={},r=-1===n.indexOf("-");for(var i in e){var s=e[i];if(!("value"===i&&"defaultValue"in e&&null==s||Gt&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var u=i.toLowerCase();"defaultValue"===i&&"value"in e&&null==e.value?i="value":"download"===i&&!0===s?s="":"translate"===u&&"no"===s?s=!1:"o"===u[0]&&"n"===u[1]?"ondoubleclick"===u?i="ondblclick":"onchange"!==u||"input"!==n&&"textarea"!==n||Yt(e.type)?"onfocus"===u?i="onfocusin":"onblur"===u?i="onfocusout":Jt.test(i)&&(i=u):u=i="oninput":r&&Kt.test(i)?i=i.replace($t,"-$&").toLowerCase():null===s&&(s=void 0),"oninput"===u&&o[i=u]&&(i="oninputCapture"),o[i]=s}}"select"==n&&o.multiple&&Array.isArray(o.value)&&(o.value=k(e.children).forEach((function(t){t.props.selected=-1!=o.value.indexOf(t.props.value)}))),"select"==n&&null!=o.defaultValue&&(o.value=k(e.children).forEach((function(t){t.props.selected=o.multiple?-1!=o.defaultValue.indexOf(t.props.value):o.defaultValue==t.props.value}))),e.class&&!e.className?(o.class=e.class,Object.defineProperty(o,"className",ie)):(e.className&&!e.class||e.class&&e.className)&&(o.class=o.className=e.className),t.props=o}(t),t.$$typeof=zt,se&&se(t)};var ue=i.__r;i.__r=function(t){ue&&ue(t),re=t.__c};var ae=i.diffed;i.diffed=function(t){ae&&ae(t);var e=t.props,n=t.__e;null!=n&&"textarea"===t.type&&"value"in e&&e.value!==n.value&&(n.value=null==e.value?"":e.value),re=null};var le={ReactCurrentDispatcher:{current:{readContext:function(t){return re.__n[t.__c].props.value},useCallback:mt,useContext:yt,useDebugValue:vt,useDeferredValue:qe,useEffect:ct,useId:gt,useImperativeHandle:ht,useInsertionEffect:Oe,useLayoutEffect:pt,useMemo:ft,useReducer:lt,useRef:dt,useState:at,useSyncExternalStore:Se,useTransition:we}}},ce="17.0.2";function pe(t){return C.bind(null,t)}function de(t){return!!t&&t.$$typeof===zt}function he(t){return de(t)&&t.type===O}function fe(t){return!!t&&!!t.displayName&&("string"==typeof t.displayName||t.displayName instanceof String)&&t.displayName.startsWith("Memo(")}function me(t){return de(t)?z.apply(null,arguments):t}function ye(t){return!!t.__k&&(Q(null,t),!0)}function ve(t){return t&&(t.base||1===t.nodeType&&t)||null}var _e=function(t,e){return t(e)},ge=function(t,e){return t(e)},be=O;function Ce(t){t()}function qe(t){return t}function we(){return[!1,Ce]}var Oe=pt,Ee=de;function Se(t,e){var n=e(),o=at({h:{__:n,v:e}}),r=o[0].h,i=o[1];return pt((function(){r.__=n,r.v=e,Ie(r)&&i({h:r})}),[t,n,e]),ct((function(){return Ie(r)&&i({h:r}),t((function(){Ie(r)&&i({h:r})}))}),[t]),n}function Ie(t){var e,n,o=t.v,r=t.__;try{var i=o();return!((e=r)===(n=i)&&(0!==e||1/e==1/n)||e!=e&&n!=n)}catch(t){return!0}}var Pe={useState:at,useId:gt,useReducer:lt,useEffect:ct,useLayoutEffect:pt,useInsertionEffect:Oe,useTransition:we,useDeferredValue:qe,useSyncExternalStore:Se,startTransition:Ce,useRef:dt,useImperativeHandle:ht,useMemo:ft,useCallback:mt,useContext:yt,useDebugValue:vt,version:"17.0.2",Children:Dt,render:Zt,hydrate:Xt,unmountComponentAtNode:ye,createPortal:Vt,createElement:C,createContext:K,createFactory:pe,cloneElement:me,createRef:w,Fragment:O,isValidElement:de,isElement:Ee,isFragment:he,isMemo:fe,findDOMNode:ve,Component:E,PureComponent:Nt,memo:xt,forwardRef:kt,flushSync:ge,unstable_batchedUpdates:_e,StrictMode:be,Suspense:Lt,SuspenseList:Ut,lazy:Ht,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:le},Ne=n(0),xe=function(){function t(){this.creatorHash={}}return t.prototype.registerElement=function(t,e){this.creatorHash[t]=e},t.prototype.getAllTypes=function(){var t=new Array;for(var e in this.creatorHash)t.push(e);return t.sort()},t.prototype.isElementRegistered=function(t){return!!this.creatorHash[t]},t.prototype.createElement=function(t,e){var n=this.creatorHash[t];return null==n?null:n(e)},t.Instance=new t,t}(),Re=function(){function t(){}return t.wrapRow=function(t,e,n){var o=t.getRowWrapperComponentName(n),r=t.getRowWrapperComponentData(n);return xe.Instance.createElement(o,{element:e,row:n,componentData:r})},t.wrapElement=function(t,e,n){var o=t.getElementWrapperComponentName(n),r=t.getElementWrapperComponentData(n);return xe.Instance.createElement(o,{element:e,question:n,componentData:r})},t.wrapQuestionContent=function(t,e,n){var o=t.getQuestionContentWrapperComponentName(n),r=t.getElementWrapperComponentData(n);return xe.Instance.createElement(o,{element:e,question:n,componentData:r})},t.wrapItemValue=function(t,e,n,o){var r=t.getItemValueWrapperComponentName(o,n),i=t.getItemValueWrapperComponentData(o,n);return xe.Instance.createElement(r,{key:null==e?void 0:e.key,element:e,question:n,item:o,componentData:i})},t.wrapMatrixCell=function(t,e,n,o){void 0===o&&(o="cell");var r=t.getElementWrapperComponentName(n,o),i=t.getElementWrapperComponentData(n,o);return xe.Instance.createElement(r,{element:e,cell:n,componentData:i})},t}();Ne.SurveyModel.platform="react";var je,ke=(je=function(t,e){return(je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}je(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),Te=function(t){function e(e){var n=t.call(this,e)||this;return n._allowComponentUpdate=!0,n}return ke(e,t),e.renderLocString=function(t,e,n){return void 0===e&&(e=null),xe.Instance.createElement(t.renderAs,{locStr:t.renderAsData,style:e,key:n})},e.renderQuestionDescription=function(t){var n=e.renderLocString(t.locDescription);return C("div",{style:t.hasDescription?void 0:{display:"none"},id:t.ariaDescriptionId,className:t.cssDescription},n)},e.prototype.componentDidMount=function(){this.makeBaseElementsReact()},e.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact()},e.prototype.componentDidUpdate=function(t,e){this.makeBaseElementsReact(),this.getStateElements().forEach((function(t){t.afterRerender()}))},e.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},e.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},e.prototype.shouldComponentUpdate=function(t,e){return this._allowComponentUpdate&&this.unMakeBaseElementsReact(),this._allowComponentUpdate},e.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var t=this.renderElement();return this.startEndRendering(-1),t&&(t=this.wrapElement(t)),this.changedStatePropNameValue=void 0,t},e.prototype.wrapElement=function(t){return t},Object.defineProperty(e.prototype,"isRendering",{get:function(){for(var t=0,e=this.getRenderedElements();t<e.length;t++){if(e[t].reactRendering>0)return!0}return!1},enumerable:!1,configurable:!0}),e.prototype.getRenderedElements=function(){return this.getStateElements()},e.prototype.startEndRendering=function(t){for(var e=0,n=this.getRenderedElements();e<n.length;e++){var o=n[e];o.reactRendering||(o.reactRendering=0),o.reactRendering+=t}},e.prototype.canRender=function(){return!0},e.prototype.renderElement=function(){return null},Object.defineProperty(e.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),e.prototype.makeBaseElementsReact=function(){for(var t=this.getStateElements(),e=0;e<t.length;e++)t[e].enableOnElementRenderedEvent(),this.makeBaseElementReact(t[e])},e.prototype.unMakeBaseElementsReact=function(){for(var t=this.getStateElements(),e=0;e<t.length;e++)t[e].disableOnElementRenderedEvent(),this.unMakeBaseElementReact(t[e])},e.prototype.getStateElements=function(){var t=this.getStateElement();return t?[t]:[]},e.prototype.getStateElement=function(){return null},Object.defineProperty(e.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),e.prototype.renderLocString=function(t,n,o){return void 0===n&&(n=null),e.renderLocString(t,n,o)},e.prototype.canMakeReact=function(t){return!!t&&!!t.iteratePropertiesHash},e.prototype.makeBaseElementReact=function(t){var e=this;this.canMakeReact(t)&&(t.iteratePropertiesHash((function(t,n){if(e.canUsePropInState(n)){var o=t[n];if(Array.isArray(o))(o=o).onArrayChanged=function(t){e.isRendering||(e.changedStatePropNameValue=n,e.setState((function(t){var e={};return e[n]=o,e})))}}})),t.setPropertyValueCoreHandler=function(t,n,o){if(t[n]!==o){if(t[n]=o,!e.canUsePropInState(n))return;if(e.isRendering)return;e.changedStatePropNameValue=n,e.setState((function(t){var e={};return e[n]=o,e}))}})},e.prototype.canUsePropInState=function(t){return!0},e.prototype.unMakeBaseElementReact=function(t){this.canMakeReact(t)&&(t.setPropertyValueCoreHandler=void 0,t.iteratePropertiesHash((function(t,e){var n=t[e];Array.isArray(n)&&((n=n).onArrayChanged=function(){})})))},e}(E),De=function(t){function e(e){return t.call(this,e)||this}return ke(e,t),Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),e}(Te),Be=function(t){function e(e){return t.call(this,e)||this}return ke(e,t),e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.updateDomElement()},e.prototype.componentWillUnmount=function(){if(t.prototype.componentWillUnmount.call(this),this.questionBase){var e=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(e),e&&e.removeAttribute("data-rendered")}},e.prototype.updateDomElement=function(){var t=this.content||this.control;t&&"r"!==t.getAttribute("data-rendered")&&(t.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(t))},Object.defineProperty(e.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&!(this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(e.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),e.prototype.wrapCell=function(t,e,n){if(!n)return e;var o=this.questionBase.survey,r=null;return o&&(r=Re.wrapMatrixCell(o,e,t,n)),null!=r?r:e},e.prototype.setControl=function(t){t&&(this.control=t)},e.prototype.setContent=function(t){t&&(this.content=t)},e}(Te),Me=function(t){function e(e){var n=t.call(this,e)||this;return n.updateValueOnEvent=function(t){Ne.Helpers.isTwoValueEquals(n.questionBase.value,t.target.value,!1,!0,!1)||n.setValueCore(t.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return ke(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.setValueCore=function(t){this.questionBase.value=t},e.prototype.getValueCore=function(){return this.questionBase.value},e.prototype.updateDomElement=function(){if(this.control){var e=this.control,n=this.getValueCore();Ne.Helpers.isTwoValueEquals(n,e.value,!1,!0,!1)||(e.value=this.getValue(n))}t.prototype.updateDomElement.call(this)},e.prototype.getValue=function(t){return Ne.Helpers.isValueEmpty(t)?"":t},e}(Be),Le=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ae=function(t){function e(e){var n=t.call(this,e)||this;return n.element.cssClasses,n.rootRef={current:null},n}return Le(e,t),e.prototype.getStateElement=function(){return this.element},Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(e.element!==this.element&&(e.element&&e.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0)},e.prototype.renderElement=function(){var t=this.element,e=this.createElement(t,this.index);return C("div",{className:t.cssClassesValue.questionWrapper,style:t.rootStyle,"data-key":e.key,key:e.key,onFocus:function(){var e=t;e&&e.isQuestion&&e.focusIn()},ref:this.rootRef},this.row.isNeedRender?e:xe.Instance.createElement(t.skeletonComponentName,{element:t,css:this.css}))},e.prototype.createElement=function(t,e){var n=e?"-"+e:0,o=t.getType();return xe.Instance.isElementRegistered(o)||(o="question"),xe.Instance.createElement(o,{key:t.name+n,element:t,creator:this.creator,survey:this.survey,css:this.css})},e}(Te),He=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ue=function(t){function e(e){var n=t.call(this,e)||this;return n.rootRef={current:null},n.recalculateCss(),n}return He(e,t),e.prototype.recalculateCss=function(){this.row.visibleElements.map((function(t){return t.cssClasses}))},e.prototype.getStateElement=function(){return this.row},Object.defineProperty(e.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},e.prototype.renderElementContent=function(){var t=this,e=this.row.visibleElements.map((function(e,n){var o=n?"-"+n:0,r=e.name+o;return C(Ae,{element:e,index:n,row:t.row,survey:t.survey,creator:t.creator,css:t.css,key:r})}));return C("div",{ref:this.rootRef,className:this.row.getRowCss()},e)},e.prototype.renderElement=function(){var t=this.survey,e=this.renderElementContent();return Re.wrapRow(t,e,this.row)||e},e.prototype.componentDidMount=function(){var e=this;t.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),n&&!this.row.isNeedRender){var o=n;setTimeout((function(){e.row.startLazyRendering(o)}),10)}},e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(e.row!==this.row&&(e.row.isNeedRender=this.row.isNeedRender,e.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0)},e.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},e.prototype.createElement=function(t,e){var n=e?"-"+e:0,o=t.getType();return xe.Instance.isElementRegistered(o)||(o="question"),xe.Instance.createElement(o,{key:t.name+n,element:t,creator:this.creator,survey:this.survey,css:this.css})},e}(Te),We=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fe=function(t){function e(e){var n=t.call(this,e)||this;return n.rootRef={current:null},n}return We(e,t),e.prototype.getStateElement=function(){return this.panelBase},e.prototype.canUsePropInState=function(e){return"elements"!==e&&t.prototype.canUsePropInState.call(this,e)},Object.defineProperty(e.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),e.prototype.getPanelBase=function(){return this.props.element||this.props.question},e.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},e.prototype.getCss=function(){return this.props.css},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.doAfterRender()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this);var e=this.rootRef.current;e&&e.removeAttribute("data-rendered")},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),e.page&&this.survey&&this.survey.activePage&&e.page.id===this.survey.activePage.id||this.doAfterRender()},e.prototype.doAfterRender=function(){var t=this.rootRef.current;t&&this.survey&&(this.panelBase.isPanel?this.survey.afterRenderPanel(this.panelBase,t):this.survey.afterRenderPage(t))},e.prototype.getIsVisible=function(){return this.panelBase.isVisible},e.prototype.canRender=function(){return t.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},e.prototype.renderRows=function(t){var e=this;return this.panelBase.visibleRows.map((function(n){return e.createRow(n,t)}))},e.prototype.createRow=function(t,e){return C(Ue,{key:t.id,row:t,survey:this.survey,creator:this.creator,css:e})},e}(Te),Qe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ve=function(t){function e(e){var n=t.call(this,e)||this;return n.svgIconRef=Pe.createRef(),n}return Qe(e,t),e.prototype.updateSvg=function(){this.props.iconName&&Object(Ne.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},e.prototype.componentDidUpdate=function(){this.updateSvg()},e.prototype.render=function(){var t="sv-svg-icon";return this.props.className&&(t+=" "+this.props.className),this.props.iconName?Pe.createElement("svg",{className:t,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},Pe.createElement("use",null)):null},e.prototype.componentDidMount=function(){this.updateSvg()},e}(Pe.Component);xe.Instance.registerElement("sv-svg-icon",(function(t){return Pe.createElement(Ve,t)}));var ze=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ke=function(t){function e(e){return t.call(this,e)||this}return ze(e,t),e.prototype.render=function(){var t="sv-action-bar-separator "+this.props.cssClasses;return Pe.createElement("div",{className:t})},e}(Pe.Component);xe.Instance.registerElement("sv-action-bar-separator",(function(t){return Pe.createElement(Ke,t)}));var Je=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Je(e,t),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.renderElement=function(){var t=this.item.getActionRootCss(),e=this.item.needSeparator?Pe.createElement(Ke,null):null,n=xe.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return Pe.createElement("div",{className:t,id:this.item.id},Pe.createElement("div",{className:"sv-action__content"},e,n))},e}(Te),Ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Je(e,t),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.renderElement=function(){return Pe.createElement(Pe.Fragment,null,this.renderInnerButton())},e.prototype.renderText=function(){if(!this.item.hasTitle)return null;var t=this.item.getActionBarItemTitleCss();return Pe.createElement("span",{className:t},this.item.title)},e.prototype.renderButtonContent=function(){var t=this.renderText(),e=this.item.iconName?Pe.createElement(Ve,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return Pe.createElement(Pe.Fragment,null,e,t)},e.prototype.renderInnerButton=function(){var t=this,e=this.item.getActionBarItemCss(),n=this.item.tooltip||this.item.title,o=this.renderButtonContent(),r=this.item.disableTabStop?-1:void 0;return Vn(Pe.createElement("button",{className:e,type:"button",disabled:this.item.disabled,onMouseDown:function(){return t.item.doMouseDown()},onFocus:function(e){return t.item.doFocus(e)},onClick:function(e){return t.item.doAction(e)},title:n,tabIndex:r,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},o),this.item,{processEsc:!1})},e}(Te);xe.Instance.registerElement("sv-action-bar-item",(function(t){return Pe.createElement(Ge,t)}));var Ye=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ze=function(t){function e(e){var n=t.call(this,e)||this;return n.containerRef=Pe.createRef(),n.createModel(),n}return Ye(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.model},e.prototype.createModel=function(){this.popup=Object(Ne.createPopupViewModel)(this.props.model,void 0)},e.prototype.setTargetElement=function(){var t=this.containerRef.current;this.popup.setComponentElement(t,this.props.getTarget?this.props.getTarget(t):void 0,this.props.getArea?this.props.getArea(t):void 0)},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.setTargetElement()},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.setTargetElement()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},e.prototype.shouldComponentUpdate=function(e,n){var o;if(!t.prototype.shouldComponentUpdate.call(this,e,n))return!1;var r=e.model!==this.popup.model;return r&&(null===(o=this.popup)||void 0===o||o.dispose(),this.createModel()),r},e.prototype.render=function(){var t;return this.popup.model=this.model,t=this.model.isModal?Pe.createElement(Xe,{model:this.popup}):Pe.createElement(tn,{model:this.popup}),Pe.createElement("div",{ref:this.containerRef},t)},e}(Te);xe.Instance.registerElement("sv-popup",(function(t){return Pe.createElement(Ze,t)}));var Xe=function(t){function e(e){var n=t.call(this,e)||this;return n.handleKeydown=function(t){n.model.onKeyDown(t)},n.clickInside=function(t){t.stopPropagation()},n}return Ye(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.model},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},e.prototype.renderContainer=function(t){var e=this,n=t.showHeader?this.renderHeaderPopup(t):null,o=t.title?this.renderHeaderContent():null,r=this.renderContent(),i=t.showFooter?this.renderFooter(this.model):null;return Pe.createElement("div",{className:"sv-popup__container",style:{left:t.left,top:t.top,height:t.height,width:t.width,minWidth:t.minWidth},onClick:function(t){e.clickInside(t)}},Pe.createElement("div",{className:"sv-popup__shadow"},n,Pe.createElement("div",{className:"sv-popup__body-content"},o,Pe.createElement("div",{className:"sv-popup__scrolling-content"},r),i)))},e.prototype.renderHeaderContent=function(){return Pe.createElement("div",{className:"sv-popup__body-header"},this.model.title)},e.prototype.renderContent=function(){var t=xe.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return Pe.createElement("div",{className:"sv-popup__content"},t)},e.prototype.renderHeaderPopup=function(t){return null},e.prototype.renderFooter=function(t){return Pe.createElement("div",{className:"sv-popup__body-footer"},Pe.createElement(sn,{model:t.footerToolbar}))},e.prototype.render=function(){var t=this,e=this.renderContainer(this.model),n=(new Ne.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),o={display:this.model.isVisible?"":"none"};return Pe.createElement("div",{tabIndex:-1,className:n,style:o,onClick:function(e){t.model.clickOutside(e)},onKeyDown:this.handleKeydown},e)},e}(Te),tn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ye(e,t),e.prototype.renderHeaderPopup=function(t){var e=t;return e?Pe.createElement("span",{style:{left:e.pointerTarget.left,top:e.pointerTarget.top},className:"sv-popup__pointer"}):null},e}(Xe);function en(t,e){var n=Object(Ne.createPopupModalViewModel)(t,e);return n.onVisibilityChanged.add((function(t,e){e.isVisible||(Pe.unmountComponentAtNode(n.container),n.dispose())})),Pe.render(Pe.createElement(Xe,{model:n}),n.container),n.model.isVisible=!0,n}Ne.settings.showModal=function(t,e,n,o,r,i,s){return void 0===s&&(s="popup"),en(Object(Ne.createDialogOptions)(t,e,n,o,void 0,void 0,r,i,s))},Ne.settings.showDialog=en;var nn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),on=function(t){function e(e){var n=t.call(this,e)||this;return n.viewModel=new Ne.ActionDropdownViewModel(n.item),n}return nn(e,t),e.prototype.renderInnerButton=function(){var e=t.prototype.renderInnerButton.call(this);return Pe.createElement(Pe.Fragment,null,e,Pe.createElement(Ze,{model:this.item.popupModel,getTarget:Ne.getActionDropdownButtonTarget}))},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},e}(Ge);xe.Instance.registerElement("sv-action-bar-item-dropdown",(function(t){return Pe.createElement(on,t)}));var rn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),sn=function(t){function e(e){var n=t.call(this,e)||this;return n.rootRef=Pe.createRef(),n}return rn(e,t),Object.defineProperty(e.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){if(t.prototype.componentDidMount.call(this),this.model.hasActions){var e=this.rootRef.current;e&&this.model.initResponsivityManager(e,(function(t){setTimeout(t)}))}},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.model.hasActions&&this.model.resetResponsivityManager()},e.prototype.componentDidUpdate=function(e,n){if(t.prototype.componentDidUpdate.call(this,e,n),e.model!=this.props.model&&this.model.hasActions){this.model.resetResponsivityManager();var o=this.rootRef.current;o&&this.model.initResponsivityManager(o,(function(t){setTimeout(t)}))}},e.prototype.getStateElement=function(){return this.model},e.prototype.renderElement=function(){if(!this.model.hasActions)return null;var t=this.renderItems();return Pe.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(t){t.stopPropagation()}:void 0},t)},e.prototype.renderItems=function(){return this.model.renderedActions.map((function(t,e){return Pe.createElement($e,{item:t,key:"item"+e})}))},e}(Te);xe.Instance.registerElement("sv-action-bar",(function(t){return Pe.createElement(sn,t)}));var un=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),an=function(t){function e(e){return t.call(this,e)||this}return un(e,t),Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),e.prototype.render=function(){if(this.element.isTitleRenderedAsString)return Te.renderLocString(this.element.locTitle);var t=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return Pe.createElement(Pe.Fragment,null,t)},e.prototype.renderTitleSpans=function(t,e){var n=function(t){return Pe.createElement("span",{"data-key":t,key:t}," ")},o=[];t.isRequireTextOnStart&&(o.push(this.renderRequireText(t,e)),o.push(n("req-sp")));var r=t.no;if(r){var i=e.panel?e.panel.number:void 0;o.push(Pe.createElement("span",{"data-key":"q_num",key:"q_num",className:e.number||i,style:{position:"static"},"aria-hidden":!0},r)),o.push(n("num-sp"))}return t.isRequireTextBeforeTitle&&(o.push(this.renderRequireText(t,e)),o.push(n("req-sp"))),o.push(Te.renderLocString(t.locTitle,null,"q_title")),t.isRequireTextAfterTitle&&(o.push(n("req-sp")),o.push(this.renderRequireText(t,e))),o},e.prototype.renderRequireText=function(t,e){return Pe.createElement("span",{"data-key":"req-text",key:"req-text",className:e.requiredText||e.panel.requiredText,"aria-hidden":!0},t.requiredText)},e}(Pe.Component),ln=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),cn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ln(e,t),Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=Pe.createElement(an,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?Pe.createElement("div",{className:"sv-title-actions"},Pe.createElement("span",{className:"sv-title-actions__title"},t),Pe.createElement(sn,{model:this.element.getTitleToolbar()})):t},e}(Pe.Component);Ne.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),xe.Instance.registerElement("sv-title-actions",(function(t){return Pe.createElement(cn,t)}));var pn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),dn=function(t){function e(e){return t.call(this,e)||this}return pn(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this.element;if(!t||!t.hasTitle)return null;var e=t.titleAriaLabel||void 0,n=Pe.createElement(cn,{element:t,cssClasses:t.cssClasses}),o=void 0;t.hasTitleEvents&&(o=function(t){Object(Ne.doKey2ClickUp)(t.nativeEvent)});var r=t.titleTagName;return Pe.createElement(r,{className:t.cssTitle,id:t.ariaTitleId,"aria-label":e,tabIndex:t.titleTabIndex,"aria-expanded":t.titleAriaExpanded,role:t.titleAriaRole,onClick:void 0,onKeyUp:o},n)},e}(Pe.Component),hn=function(){function t(){this.creatorHash={}}return t.prototype.registerQuestion=function(t,e){this.creatorHash[t]=e},t.prototype.getAllTypes=function(){var t=new Array;for(var e in this.creatorHash)t.push(e);return t.sort()},t.prototype.createQuestion=function(t,e){var n=this.creatorHash[t];return null==n?null:n(e)},t.Instance=new t,t}(),fn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fn(e,t),e.prototype.getStateElement=function(){return this.props.counter},e.prototype.renderElement=function(){return Pe.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},e}(Te);xe.Instance.registerElement("sv-character-counter",(function(t){return Pe.createElement(mn,t)}));var yn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vn=function(t){function e(e){return t.call(this,e)||this}return yn(e,t),e.prototype.renderElement=function(){var t=this,e=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return C("div",null,this.question.value);var n=this.question.getMaxLength()?C(mn,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return C(O,null,C("textarea",{id:this.question.inputId,className:this.question.className,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,ref:function(e){return t.setControl(e)},maxLength:this.question.getMaxLength(),placeholder:e,onFocus:function(e){t.question.onFocus(e)},onBlur:function(e){t.question.isInputTextUpdate||t.updateValueOnEvent(e),t.question.onBlur(e)},onInput:function(e){t.question.isInputTextUpdate?t.updateValueOnEvent(e):t.question.updateElement();var n=e.target.value;t.question.updateRemainingCharacterCounter(n)},onKeyDown:function(e){t.question.onKeyDown(e)},cols:this.question.cols,rows:this.question.rows,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage,style:{resize:this.question.resizeStyle}}),n)},e}(Me),_n=function(t){function e(e){var n=t.call(this,e)||this;return n.state={comment:n.getComment()||""},n}return yn(e,t),e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.updateDomElement()},e.prototype.updateDomElement=function(){if(this.control){var t=this.control,e=this.getComment()||"";Ne.Helpers.isTwoValueEquals(e,t.value,!1,!0,!1)||(t.value=e)}},e.prototype.setControl=function(t){t&&(this.control=t)},e.prototype.canRender=function(){return!!this.props.question},e.prototype.onCommentChange=function(t){this.props.question.onCommentChange(t)},e.prototype.onCommentInput=function(t){this.props.question.onCommentInput(t)},e.prototype.getComment=function(){return this.props.question.comment},e.prototype.setComment=function(t){this.props.question.comment=t},e.prototype.getId=function(){return this.props.question.commentId},e.prototype.getPlaceholder=function(){return this.props.question.renderedCommentPlaceholder},e.prototype.renderElement=function(){var t=this,e=this.props.question,n=this.props.otherCss||this.cssClasses.comment;return e.isReadOnlyRenderDiv()?C("div",null,this.getComment()||""):C("textarea",{id:this.getId(),className:n,ref:function(e){return t.setControl(e)},disabled:this.isDisplayMode,maxLength:e.getOthersMaxLength(),rows:e.commentAreaRows,placeholder:this.getPlaceholder(),onBlur:function(e){t.onCommentChange(e)},onInput:function(e){return t.onCommentInput(e)},"aria-required":e.isRequired||e.a11y_input_ariaRequired,"aria-label":e.ariaLabel||e.a11y_input_ariaLabel,style:{resize:e.resizeStyle}})},e}(De),gn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yn(e,t),e.prototype.onCommentChange=function(t){this.props.question.onOtherValueChange(t)},e.prototype.onCommentInput=function(t){this.props.question.onOtherValueInput(t)},e.prototype.getComment=function(){return this.props.question.otherValue},e.prototype.setComment=function(t){this.props.question.otherValue=t},e.prototype.getId=function(){return this.props.question.otherId},e.prototype.getPlaceholder=function(){return this.props.question.otherPlaceholder},e}(_n);hn.Instance.registerQuestion("comment",(function(t){return C(vn,t)}));var bn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Cn=function(t){function e(e){var n=t.call(this,e)||this;return n.widgetRef={current:null},n}return bn(e,t),e.prototype._afterRender=function(){if(this.questionBase.customWidget){var t=this.widgetRef.current;t&&(this.questionBase.customWidget.afterRender(this.questionBase,t),this.questionBase.customWidgetData.isNeedRender=!1)}},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n);var o=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!o&&this._afterRender()},e.prototype.componentWillUnmount=function(){if(t.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var e=this.widgetRef.current;e&&this.questionBase.customWidget.willUnmount(this.questionBase,e)}},e.prototype.canRender=function(){return t.prototype.canRender.call(this)&&this.questionBase.visible},e.prototype.renderElement=function(){var t=this.questionBase.customWidget;if(t.isDefaultRender)return C("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var e=null;if(t.widgetJson.render)e=t.widgetJson.render(this.questionBase);else if(t.htmlTemplate){var n={__html:t.htmlTemplate};return C("div",{ref:this.widgetRef,dangerouslySetInnerHTML:n})}return C("div",{ref:this.widgetRef},e)},e}(Be),qn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qn(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this.element,e=t.hasTitle?Pe.createElement(dn,{element:t}):null,n=t.hasDescriptionUnderTitle?Te.renderQuestionDescription(this.element):null,o=t.hasAdditionalTitleToolbar?Pe.createElement(sn,{model:t.additionalTitleToolbar}):null,r={width:void 0};return t instanceof Ne.Question&&(r.width=t.titleWidth),Pe.createElement("div",{className:t.cssHeader,onClick:function(e){return t.clickTitleFunction&&t.clickTitleFunction(e.nativeEvent)},style:r},e,n,o)},e}(Pe.Component),On=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),En=function(t){function e(e){var n=t.call(this,e)||this;return n.isNeedFocus=!1,n.rootRef={current:null},n}return On(e,t),e.renderQuestionBody=function(t,e){return e.customWidget?C(Cn,{creator:t,question:e}):t.createQuestionElement(e)},e.prototype.getStateElement=function(){return this.question},Object.defineProperty(e.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var e=this.rootRef.current;e&&e.removeAttribute("data-rendered")},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.doAfterRender()},e.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var t=this.rootRef.current;t&&"r"!==t.getAttribute("data-rendered")&&(t.setAttribute("data-rendered","r"),t.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(t))}},e.prototype.canRender=function(){return t.prototype.canRender.call(this)&&!!this.question&&!!this.creator},e.prototype.renderQuestionContent=function(){var t=this.question,e={display:this.question.renderedIsExpanded?"":"none"},n=t.cssClasses,o=this.renderQuestion(),r=this.question.showErrorOnTop?this.renderErrors(n,"top"):null,i=this.question.showErrorOnBottom?this.renderErrors(n,"bottom"):null,s=t&&t.hasComment?this.renderComment(n):null,u=t.hasDescriptionUnderInput?this.renderDescription():null;return C("div",{className:t.cssContent||void 0,style:e,role:"presentation"},r,o,s,i,u)},e.prototype.renderElement=function(){var t=this.question,e=t.cssClasses,n=this.renderHeader(t),o=t.hasTitleOnLeftTop?n:null,r=t.hasTitleOnBottom?n:null,i=this.question.showErrorsAboveQuestion?this.renderErrors(e,""):null,s=this.question.showErrorsBelowQuestion?this.renderErrors(e,""):null,u=t.getRootStyle(),a=this.wrapQuestionContent(this.renderQuestionContent());return C(O,null,C("div",{ref:this.rootRef,id:t.id,className:t.getRootCss(),style:u,role:t.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":t.ariaLabelledBy,"aria-describedby":t.ariaDescribedBy,"aria-expanded":t.ariaExpanded},i,o,a,r,s))},e.prototype.wrapElement=function(t){var e=this.question.survey,n=null;return e&&(n=Re.wrapElement(e,t,this.question)),null!=n?n:t},e.prototype.wrapQuestionContent=function(t){var e=this.question.survey,n=null;return e&&(n=Re.wrapQuestionContent(e,t,this.question)),null!=n?n:t},e.prototype.renderQuestion=function(){return e.renderQuestionBody(this.creator,this.question)},e.prototype.renderDescription=function(){return Te.renderQuestionDescription(this.question)},e.prototype.renderComment=function(t){var e=Te.renderLocString(this.question.locCommentText);return C("div",{className:this.question.getCommentAreaCss()},C("div",null,e),C(_n,{question:this.question,cssClasses:t,otherCss:t.other,isDisplayMode:this.question.isInputReadOnly}))},e.prototype.renderHeader=function(t){return C(wn,{element:t})},e.prototype.renderErrors=function(t,e){return C(Sn,{element:this.question,cssClasses:t,creator:this.creator,location:e,id:this.question.id+"_errors"})},e}(Te);xe.Instance.registerElement("question",(function(t){return C(En,t)}));var Sn=function(t){function e(e){var n=t.call(this,e)||this;return n.state=n.getState(),n}return On(e,t),Object.defineProperty(e.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),e.prototype.getState=function(t){return void 0===t&&(t=null),t?{error:t.error+1}:{error:0}},e.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},e.prototype.componentWillUnmount=function(){},e.prototype.renderElement=function(){for(var t=[],e=0;e<this.element.errors.length;e++){var n="error"+e;t.push(this.creator.renderError(n,this.element.errors[e],this.cssClasses,this.element))}return C("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},t)},e}(De),In=function(t){function e(e){return t.call(this,e)||this}return On(e,t),e.prototype.getStateElement=function(){return this.question},Object.defineProperty(e.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),e.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(e.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.doAfterRender()},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.doAfterRender()},e.prototype.doAfterRender=function(){},e.prototype.canRender=function(){return!!this.question},e.prototype.renderContent=function(){return C(O,null,this.renderQuestion())},e.prototype.getShowErrors=function(){return this.question.isVisible},e.prototype.renderQuestion=function(){return En.renderQuestionBody(this.creator,this.question)},e}(De),Pn=function(t){function e(e){var n=t.call(this,e)||this;return n.cellRef={current:null},n}return On(e,t),e.prototype.componentWillUnmount=function(){if(t.prototype.componentWillUnmount.call(this),this.question){var e=this.cellRef.current;e&&e.removeAttribute("data-rendered")}},e.prototype.renderCellContent=function(){return C("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},e.prototype.renderElement=function(){var t=this.getCellStyle(),e=this.props.cell;return C("td",{ref:this.cellRef,className:this.itemCss,colSpan:e.colSpans,title:e.getTitle(),style:t,onFocus:function(){e.focusIn()}},this.wrapCell(this.props.cell,this.renderCellContent()))},e.prototype.getCellStyle=function(){return null},e.prototype.getHeaderText=function(){return""},e.prototype.wrapCell=function(t,e){if(!t)return e;var n=this.question.survey,o=null;return n&&(o=Re.wrapMatrixCell(n,e,t,this.props.reason)),null!=o?o:e},e}(In),Nn=function(t){function e(e){var n=t.call(this,e)||this;return n.state={changed:0},n.question&&n.registerCallback(n.question),n}return On(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.update=function(){this.setState({changed:this.state.changed+1})},e.prototype.getQuestionPropertiesToTrack=function(){return["errors"]},e.prototype.registerCallback=function(t){var e=this;t.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),(function(){e.update()}),"__reactSubscription")},e.prototype.unRegisterCallback=function(t){t.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),"__reactSubscription")},e.prototype.componentDidUpdate=function(t){t.question&&t.question!==this.question&&this.unRegisterCallback(t.cell),this.question&&this.registerCallback(this.question)},e.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},e.prototype.render=function(){return C(Sn,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},e}(E),xn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Rn=function(t){function e(e){return t.call(this,e)||this}return xn(e,t),e.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(e.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this.renderTitle(),e=this.renderDescription(),n=this.renderRows(this.panelBase.cssClasses),o=C(Sn,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return C("div",{ref:this.rootRef,className:this.page.cssRoot},t,e,o,n)},e.prototype.renderTitle=function(){return C(dn,{element:this.page})},e.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var t=Te.renderLocString(this.page.locDescription);return C("div",{className:this.panelBase.cssClasses.page.description},t)},e}(Fe),jn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),kn=function(t){function e(e){var n=t.call(this,e)||this;return n.state={changed:0},n.rootRef=Pe.createRef(),n}return jn(e,t),Object.defineProperty(e.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){var t=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){t.setState({changed:t.state.changed+1})}},e.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},e.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var t=Te.renderLocString(this.survey.locDescription);return Pe.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},Pe.createElement(dn,{element:this.survey}),this.survey.renderedHasDescription?Pe.createElement("div",{className:this.css.description},t):null)},e.prototype.renderLogoImage=function(t){if(!t)return null;var e=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),n=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return xe.Instance.createElement(e,{data:n})},e.prototype.render=function(){return this.survey.renderedHasHeader?Pe.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),Pe.createElement("div",{className:this.css.headerClose})):null},e}(Pe.Component);xe.Instance.registerElement("survey-header",(function(t){return Pe.createElement(kn,t)}));var Tn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Dn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Tn(e,t),e.prototype.render=function(){return Pe.createElement("div",{className:"sv-brand-info"},Pe.createElement("a",{className:"sv-brand-info__logo",href:"https://surveyjs.io/?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=landing_page"},Pe.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),Pe.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",Pe.createElement("a",{href:"https://surveyjs.io/create-survey?utm_source=built-in_links&utm_medium=online_survey_tool&utm_campaign=create_survey"},"create a survey")),Pe.createElement("div",{className:"sv-brand-info__terms"},Pe.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},e}(Pe.Component),Bn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Bn(e,t),Object.defineProperty(e.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.notifier},e.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var t={visibility:this.notifier.active?"visible":"hidden"};return Pe.createElement("div",{className:this.notifier.css,style:t,role:"alert","aria-live":"polite"},Pe.createElement("span",null,this.notifier.message),Pe.createElement(sn,{model:this.notifier.actionBar}))},e}(Te);xe.Instance.registerElement("sv-notifier",(function(t){return Pe.createElement(Mn,t)}));var Ln=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),An=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ln(e,t),e.prototype.render=function(){var t=this,e=this.props.survey.getContainerContent(this.props.container),n=!1!==this.props.needRenderWrapper;return 0==e.length?null:n?Pe.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},e.map((function(e){return xe.Instance.createElement(e.component,{survey:t.props.survey,model:e.data,container:t.props.container,key:e.id})}))):Pe.createElement(Pe.Fragment,null,e.map((function(e){return xe.Instance.createElement(e.component,{survey:t.props.survey,model:e.data,container:t.props.container,key:e.id})})))},e}(Pe.Component);xe.Instance.registerElement("sv-components-container",(function(t){return Pe.createElement(An,t)}));var Hn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Un=function(t){function e(e){var n=t.call(this,e)||this;return n.containerRef=Pe.createRef(),n}return Hn(e,t),e.prototype.componentDidMount=function(){this.containerRef.current&&(this.containerRef.current.innerHTML=Ne.SvgRegistry.iconsRenderedHtml())},e.prototype.render=function(){return Pe.createElement("svg",{style:{display:"none"},id:"sv-icon-holder-global-container",ref:this.containerRef})},e}(Pe.Component),Wn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fn=function(){return(Fn=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},Qn=function(t){function e(e){var n=t.call(this,e)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(e),n.updateSurvey(e,{}),n.rootRef={current:null},n.rootNodeId=e.id||null,n.rootNodeClassName=e.className||"",n}return Wn(e,t),Object.defineProperty(e,"cssType",{get:function(){return Ne.surveyCss.currentType},set:function(t){Ne.StylesManager.applyTheme(t)},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.survey},e.prototype.onSurveyUpdated=function(){if(this.survey){var t=this.rootRef.current;t&&this.survey.afterRenderSurvey(t),this.survey.startTimerFromUI()}},e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(this.isModelJSONChanged(e)&&(this.destroySurvey(),this.createSurvey(e),this.updateSurvey(e,{}),this.isSurveyUpdated=!0),!0)},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.updateSurvey(this.props,e),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.onSurveyUpdated()},e.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.destroySurvey()},e.prototype.doRender=function(){var t;t="completed"==this.survey.state?this.renderCompleted():"completedbefore"==this.survey.state?this.renderCompletedBefore():"loading"==this.survey.state?this.renderLoading():"empty"==this.survey.state?this.renderEmptySurvey():this.renderSurvey();var e=this.survey.backgroundImage?C("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,n="basic"===this.survey.headerView?C(kn,{survey:this.survey}):null,o=C("div",{className:"sv_custom_header"});this.survey.hasLogo&&(o=null);var r=this.survey.getRootCss(),i=this.rootNodeClassName?this.rootNodeClassName+" "+r:r;return C("div",{id:this.rootNodeId,ref:this.rootRef,className:i,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?C(Un,null):null,C("div",{className:this.survey.wrapperFormCss},e,C("form",{onSubmit:function(t){t.preventDefault()}},o,C("div",{className:this.css.container},n,C(An,{survey:this.survey,container:"header",needRenderWrapper:!1}),t,C(An,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),C(Mn,{notifier:this.survey.notifier})))},e.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(e.prototype,"css",{get:function(){return this.survey.css},set:function(t){this.survey.css=t},enumerable:!1,configurable:!0}),e.prototype.renderCompleted=function(){return this.survey.showCompletedPage?C(O,null,C("div",{dangerouslySetInnerHTML:{__html:this.survey.processedCompletedHtml},className:this.survey.completedCss}),C(An,{survey:this.survey,container:"completePage",needRenderWrapper:!1})):null},e.prototype.renderCompletedBefore=function(){return C("div",{dangerouslySetInnerHTML:{__html:this.survey.processedCompletedBeforeHtml},className:this.survey.completedBeforeCss})},e.prototype.renderLoading=function(){return C("div",{dangerouslySetInnerHTML:{__html:this.survey.processedLoadingHtml},className:this.survey.loadingBodyCss})},e.prototype.renderSurvey=function(){var t=this.survey.activePage?this.renderPage(this.survey.activePage):null,e=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),n=this.survey.bodyCss,o={};return this.survey.renderedWidth&&(o.maxWidth=this.survey.renderedWidth),C("div",{className:this.survey.bodyContainerCss},C(An,{survey:this.survey,container:"left"}),C("div",{className:"sv-components-column sv-components-column--expandable"},C(An,{survey:this.survey,container:"center"}),C("div",{id:e,className:n,style:o},C(An,{survey:this.survey,container:"contentTop"}),t,C(An,{survey:this.survey,container:"contentBottom"}),this.survey.showBrandInfo?C(Dn,null):null)),C(An,{survey:this.survey,container:"right"}))},e.prototype.renderPage=function(t){return C(Rn,{survey:this.survey,page:t,css:this.css,creator:this})},e.prototype.renderEmptySurvey=function(){return C("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},e.prototype.createSurvey=function(t){t||(t={}),this.previousJSON={},t?t.model?this.survey=t.model:t.json&&(this.previousJSON=t.json,this.survey=new Ne.SurveyModel(t.json)):this.survey=new Ne.SurveyModel,t.css&&(this.survey.css=this.css),this.setSurveyEvents()},e.prototype.isModelJSONChanged=function(t){return t.model?this.survey!==t.model:!!t.json&&!Ne.Helpers.isTwoValueEquals(t.json,this.previousJSON)},e.prototype.updateSurvey=function(t,e){if(t)for(var n in e=e||{},t)"model"!=n&&"children"!=n&&"json"!=n&&("css"!=n?t[n]!==e[n]&&(0==n.indexOf("on")&&this.survey[n]&&this.survey[n].add?(e[n]&&this.survey[n].remove(e[n]),this.survey[n].add(t[n])):this.survey[n]=t[n]):(this.survey.mergeValues(t.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},e.prototype.setSurveyEvents=function(){var t=this;this.survey.renderCallback=function(){var e=t.state&&t.state.modelChanged?t.state.modelChanged:0;t.setState({modelChanged:e+1})},this.survey.onPartialSend.add((function(e){t.state&&t.setState(t.state)}))},e.prototype.createQuestionElement=function(t){return hn.Instance.createQuestion(t.isDefaultRendering()?t.getTemplate():t.getComponentName(),{question:t,isDisplayMode:t.isInputReadOnly,creator:this})},e.prototype.renderError=function(t,e,n,o){return xe.Instance.createElement(this.survey.questionErrorComponent,{key:t,error:e,cssClasses:n,element:o})},e.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},e.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},e}(Te);function Vn(t,e,n){return void 0===n&&(n={processEsc:!0,disableTabStop:!1}),e&&e.disableTabStop||n&&n.disableTabStop?me(t,{tabIndex:-1}):(n=Fn({},n),me(t,{tabIndex:0,onKeyUp:function(t){return t.preventDefault(),t.stopPropagation(),Object(Ne.doKey2ClickUp)(t,n),!1},onKeyDown:function(t){return Object(Ne.doKey2ClickDown)(t,n)},onBlur:function(t){return Object(Ne.doKey2ClickBlur)(t)}}))}xe.Instance.registerElement("survey",(function(t){return C(Qn,t)}));var zn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kn=function(t){function e(e){var n=t.call(this,e)||this;return n.updateStateFunction=null,n.state={update:0},n}return zn(e,t),Object.defineProperty(e.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){if(this.survey){var t=this;this.updateStateFunction=function(){t.setState({update:t.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},e.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},e}(E),Jn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$n=function(t){function e(e){var n=t.call(this,e)||this;return n.circleLength=440,n}return Jn(e,t),e.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(e.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),e.prototype.render=function(){if(!this.timerModel.isRunning)return null;var t=C("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var e={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},n=this.timerModel.showProgress?C(Ve,{className:this.timerModel.getProgressCss(),style:e,iconName:"icon-timercircle",size:"auto"}):null;t=C("div",{className:this.timerModel.rootCss},n,C("div",{className:this.timerModel.textContainerCss},C("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?C("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return t},e}(De);xe.Instance.registerElement("sv-timerpanel",(function(t){return C($n,t)}));var Gn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yn=function(t){function e(e){var n=t.call(this,e)||this;return n.hasBeenExpanded=!1,n}return Gn(e,t),Object.defineProperty(e.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.renderHeader(),n=C(Sn,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),o={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},r=null;if(this.panel.renderedIsExpanded){var i=this.renderRows(this.panelBase.cssClasses),s=this.panelBase.cssClasses.panel.content;r=this.renderContent(o,i,s)}return C("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){t.panelBase&&t.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?n:null,e,this.panel.showErrorsAbovePanel?null:n,r)},e.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?C(wn,{element:this.panel}):null},e.prototype.wrapElement=function(t){var e=this.panel.survey,n=null;return e&&(n=Re.wrapElement(e,t,this.panel)),null!=n?n:t},e.prototype.renderContent=function(t,e,n){var o=this.renderBottom();return C("div",{style:t,className:n,id:this.panel.contentId},e,o)},e.prototype.renderTitle=function(){return this.panelBase.title?C(dn,{element:this.panelBase}):null},e.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var t=Te.renderLocString(this.panelBase.locDescription);return C("div",{className:this.panel.cssClasses.panel.description},t)},e.prototype.renderBottom=function(){var t=this.panel.getFooterToolbar();return t.hasActions?C(sn,{model:t}):null},e.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},e}(Fe);xe.Instance.registerElement("panel",(function(t){return C(Yn,t)}));var Zn=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xn=function(t){function e(e){return t.call(this,e)||this}return Zn(e,t),Object.defineProperty(e.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},e.prototype.getQuestion=function(t){return this.flowPanel.getQuestionByName(t)},e.prototype.renderQuestion=function(t){return"<question>"+t.name+"</question>"},e.prototype.renderRows=function(){var t=this.renderHtml();return t?[t]:[]},e.prototype.getNodeIndex=function(){return this.renderedIndex++},e.prototype.renderHtml=function(){if(!this.flowPanel)return null;var t="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser)return C("div",{dangerouslySetInnerHTML:{__html:t}});var e=(new DOMParser).parseFromString(t,"text/xml");return this.renderedIndex=0,this.renderParentNode(e)},e.prototype.renderNodes=function(t){for(var e=[],n=0;n<t.length;n++){var o=this.renderNode(t[n]);o&&e.push(o)}return e},e.prototype.getStyle=function(t){var e={};return"b"===t.toLowerCase()&&(e.fontWeight="bold"),"i"===t.toLowerCase()&&(e.fontStyle="italic"),"u"===t.toLowerCase()&&(e.textDecoration="underline"),e},e.prototype.renderParentNode=function(t){var e=t.nodeName.toLowerCase(),n=this.renderNodes(this.getChildDomNodes(t));return"div"===e?C("div",{key:this.getNodeIndex()},n):C("span",{key:this.getNodeIndex(),style:this.getStyle(e)},n)},e.prototype.renderNode=function(t){if(!this.hasTextChildNodesOnly(t))return this.renderParentNode(t);var e=t.nodeName.toLowerCase();if("question"===e){var n=this.flowPanel.getQuestionByName(t.textContent);if(!n)return null;var o=C(En,{key:n.name,element:n,creator:this.creator,css:this.css});return C("span",{key:this.getNodeIndex()},o)}return"div"===e?C("div",{key:this.getNodeIndex()},t.textContent):C("span",{key:this.getNodeIndex(),style:this.getStyle(e)},t.textContent)},e.prototype.getChildDomNodes=function(t){for(var e=[],n=0;n<t.childNodes.length;n++)e.push(t.childNodes[n]);return e},e.prototype.hasTextChildNodesOnly=function(t){for(var e=t.childNodes,n=0;n<e.length;n++)if("#text"!==e[n].nodeName.toLowerCase())return!1;return!0},e.prototype.renderContent=function(t,e){return C("f-panel",{style:t},e)},e}(Yn);xe.Instance.registerElement("flowpanel",(function(t){return C(Xn,t)}));var to=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),eo=function(t){function e(e){return t.call(this,e)||this}return to(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses;return C("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(e){return t.setControl(e)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},C("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(e):this.getBody(e),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},e.prototype.getHeader=function(){var t=this;if(this.question.hasHeadItems)return this.question.headItems.map((function(e,n){return t.renderItem("item_h"+n,e,!1,t.question.cssClasses)}))},e.prototype.getFooter=function(){var t=this;if(this.question.hasFootItems)return this.question.footItems.map((function(e,n){return t.renderItem("item_f"+n,e,!1,t.question.cssClasses)}))},e.prototype.getColumnedBody=function(t){return C("div",{className:t.rootMultiColumn},this.getColumns(t))},e.prototype.getColumns=function(t){var e=this;return this.question.columns.map((function(n,o){var r=n.map((function(n,r){return e.renderItem("item"+r,n,0===o&&0===r,t,""+o+r)}));return C("div",{key:"column"+o+e.question.getItemsColumnKey(n),className:e.question.getColumnClass(),role:"presentation"},r)}))},e.prototype.getBody=function(t){return this.question.blockedRow?C("div",{className:t.rootRow},this.getItems(t,this.question.dataChoices)):C(O,null,this.getItems(t,this.question.bodyItems))},e.prototype.getItems=function(t,e){for(var n=[],o=0;o<e.length;o++){var r=e[o],i="item"+o,s=this.renderItem(i,r,0==o,t,""+o);s&&n.push(s)}return n},Object.defineProperty(e.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.renderOther=function(){var t=this.question.cssClasses;return C("div",{className:this.question.getCommentAreaCss(!0)},C(gn,{question:this.question,otherCss:t.other,cssClasses:t,isDisplayMode:this.isDisplayMode}))},e.prototype.renderItem=function(t,e,n,o,r){var i=xe.Instance.createElement(this.question.itemComponent,{key:t,question:this.question,cssClasses:o,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:r,isFirst:n}),s=this.question.survey,u=null;return s&&i&&(u=Re.wrapItemValue(s,i,this.question,e)),null!=u?u:i},e}(Be),no=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnChange=function(t){n.question.clickItemHandler(n.item,t.target.checked)},n}return to(e,t),e.prototype.getStateElement=function(){return this.item},Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(!!this.question&&!(this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render))},e.prototype.canRender=function(){return!!this.item&&!!this.question},e.prototype.renderElement=function(){var t=this.question.isItemSelected(this.item);return this.renderCheckbox(t,null)},Object.defineProperty(e.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.renderCheckbox=function(t,e){var n=this.question.getItemId(this.item),o=this.question.getItemClass(this.item),r=this.question.getLabelClass(this.item),i=this.hideCaption?null:C("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return C("div",{className:o,role:"presentation"},C("label",{className:r},C("input",{className:this.cssClasses.itemControl,type:"checkbox",name:this.question.name+this.item.id,value:this.item.value,id:n,style:this.inputStyle,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,checked:t,onChange:this.handleOnChange,required:this.question.hasRequiredError()}),this.cssClasses.materialDecorator?C("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?C("svg",{className:this.cssClasses.itemDecorator},C("use",{xlinkHref:this.question.itemSvgIcon})):null):null,i),e)},e}(De);xe.Instance.registerElement("survey-checkbox-item",(function(t){return C(no,t)})),hn.Instance.registerQuestion("checkbox",(function(t){return C(eo,t)}));var oo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ro=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this;if(this.question.selectToRankEnabled){return C("div",{className:this.question.rootClass,ref:function(e){return t.setControl(e)}},C("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,!0),0===this.question.renderedUnRankingChoices.length?C("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),C("div",{className:this.question.cssClasses.containersDivider}),C("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),0===this.question.renderedRankingChoices.length?C("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null))}return C("div",{className:this.question.rootClass,ref:function(e){return t.setControl(e)}},this.getItems())},e.prototype.getItems=function(t,e){var n=this;void 0===t&&(t=this.question.renderedRankingChoices);for(var o=[],r=function(r){var s=t[r];o.push(i.renderItem(s,r,(function(t){n.question.handleKeydown.call(n.question,t,s)}),(function(t){t.persist(),n.question.handlePointerDown.call(n.question,t,s,t.currentTarget)}),(function(t){t.persist(),n.question.handlePointerUp.call(n.question,t,s,t.currentTarget)}),i.question.cssClasses,i.question.getItemClass(s),i.question,e))},i=this,s=0;s<t.length;s++)r(s);return o},e.prototype.renderItem=function(t,e,n,o,r,i,s,u,a){t.renderedId;var l=this.renderLocString(t.locText),c=e,p=this.question.getNumberByIndex(c),d=this.question.getItemTabIndex(t),h=C(io,{key:t.value,text:l,index:c,indexText:p,itemTabIndex:d,handleKeydown:n,handlePointerDown:o,handlePointerUp:r,cssClasses:i,itemClass:s,question:u,unrankedItem:a,item:t}),f=this.question.survey,m=null;return f&&(m=Re.wrapItemValue(f,h,this.question,t)),null!=m?m:h},e}(Be),io=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oo(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.renderEmptyIcon=function(){return C("svg",null,C("use",{xlinkHref:this.question.dashSvgIcon}))},e.prototype.renderElement=function(){var t=xe.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return C("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},C("div",{tabIndex:-1,style:{outline:"none"}},C("div",{className:this.cssClasses.itemGhostNode}),C("div",{className:this.cssClasses.itemContent},C("div",{className:this.cssClasses.itemIconContainer},C("svg",{className:this.question.getIconHoverCss()},C("use",{xlinkHref:this.question.dragDropSvgIcon})),C("svg",{className:this.question.getIconFocusCss()},C("use",{xlinkHref:this.question.arrowsSvgIcon}))),C("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),t)))},e}(De),so=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return oo(e,t),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){return C("div",{className:this.cssClasses.controlLabel},Te.renderLocString(this.item.locText))},e}(De);xe.Instance.registerElement("sv-ranking-item",(function(t){return C(so,t)})),hn.Instance.registerQuestion("ranking",(function(t){return C(ro,t)}));var uo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ao=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return uo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.handleOnMouseDown=function(t){this.question.onMouseDown()},e}(Te),lo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return uo(e,t),e.prototype.render=function(){var t=this.renderLocString(this.item.locText);return Pe.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},Pe.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),Pe.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},t))},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this)},e}(ao);xe.Instance.registerElement("sv-rating-item",(function(t){return Pe.createElement(lo,t)}));var co=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),po=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return co(e,t),e.prototype.render=function(){var t=this;return Pe.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(e){return t.question.onItemMouseIn(t.item)},onMouseOut:function(e){return t.question.onItemMouseOut(t.item)}},Pe.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),Pe.createElement(Ve,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),Pe.createElement(Ve,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},e}(ao);xe.Instance.registerElement("sv-rating-item-star",(function(t){return Pe.createElement(po,t)}));var ho=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),fo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ho(e,t),e.prototype.render=function(){var t=this;return Pe.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(e){return t.question.onItemMouseIn(t.item)},onMouseOut:function(e){return t.question.onItemMouseOut(t.item)}},Pe.createElement("input",{type:"radio",className:"sv-visuallyhidden",name:this.question.questionName,id:this.question.getInputId(this.index),value:this.item.value,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.value==this.item.value,onClick:this.props.handleOnClick,onChange:function(){},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),Pe.createElement(Ve,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},e}(ao);xe.Instance.registerElement("sv-rating-item-smiley",(function(t){return Pe.createElement(fo,t)}));var mo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),yo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return mo(e,t),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.render=function(){if(!this.item)return null;var t=this.props.item,e=this.renderDescription(t);return Pe.createElement("div",{className:"sd-rating-dropdown-item"},Pe.createElement("span",{className:"sd-rating-dropdown-item_text"},t.title),e)},e.prototype.renderDescription=function(t){return t.description?Pe.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(t.description,void 0,"locString")):null},e}(Te);xe.Instance.registerElement("sv-rating-dropdown-item",(function(t){return Pe.createElement(yo,t)}));var vo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),_o=function(t){function e(e){return t.call(this,e)||this}return vo(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.updateDomElement()},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.updateDomElement()},e.prototype.updateDomElement=function(){if(this.inputElement){var t=this.inputElement,e=this.model.inputStringRendered;Ne.Helpers.isTwoValueEquals(e,t.value,!1,!0,!1)||(t.value=this.model.inputStringRendered)}},e.prototype.onChange=function(t){var e=Ne.settings.environment.root;t.target===e.activeElement&&(this.model.inputStringRendered=t.target.value)},e.prototype.keyhandler=function(t){this.model.inputKeyHandler(t)},e.prototype.onBlur=function(t){this.model.onBlur(t)},e.prototype.onFocus=function(t){this.model.onFocus(t)},e.prototype.getStateElement=function(){return this.model},e.prototype.render=function(){var t=this;return C("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?C("div",{className:this.question.cssClasses.hintPrefix},C("span",null,this.model.hintStringPrefix)):null,C("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?C("div",{className:this.question.cssClasses.hintSuffix},C("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),C("span",null,this.model.hintStringSuffix)):null,C("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,disabled:this.question.isInputReadOnly,readOnly:!!this.model.filterReadOnly||void 0,size:this.model.inputStringRendered?void 0:1,role:this.model.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":this.model.listElementId,"aria-activedescendant":this.model.ariaActivedescendant,placeholder:this.model.filterStringPlaceholder,onKeyDown:function(e){t.keyhandler(e)},onChange:function(e){t.onChange(e)},onBlur:function(e){t.onBlur(e)},onFocus:function(e){t.onFocus(e)}})))},e}(Te);hn.Instance.registerQuestion("sv-tagbox-filter",(function(t){return C(_o,t)}));var go=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),bo=function(t){function e(e){var n=t.call(this,e)||this;return n.state={changed:0},n.setupModel(),n}return go(e,t),e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.setupModel()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},e.prototype.setupModel=function(){if(this.item.locText){var t=this;this.item.locText.onChanged=function(){t.setState({changed:t.state.changed+1})}}},e.prototype.getStateElement=function(){return this.item},Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return!!this.item},e.prototype.renderElement=function(){return C("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},e}(De),Co=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.click=function(t){var n;null===(n=e.question.dropdownListModel)||void 0===n||n.onClick(t)},e.chevronPointerDown=function(t){var n;null===(n=e.question.dropdownListModel)||void 0===n||n.chevronPointerDown(t)},e.clear=function(t){var n;null===(n=e.question.dropdownListModel)||void 0===n||n.onClear(t)},e.keyhandler=function(t){var n;null===(n=e.question.dropdownListModel)||void 0===n||n.keyHandler(t)},e.blur=function(t){e.updateInputDomElement(),e.question.onBlur(t)},e.focus=function(t){e.question.onFocus(t)},e}return Co(e,t),e.prototype.getStateElement=function(){return this.question.dropdownListModel},e.prototype.setValueCore=function(t){this.questionBase.renderedValue=t},e.prototype.getValueCore=function(){return this.questionBase.renderedValue},e.prototype.renderReadOnlyElement=function(){return C("div",null,this.question.readOnlyText)},e.prototype.renderSelect=function(t){var e,n,o=null;if(this.question.isReadOnly){var r=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";o=C("div",{id:this.question.inputId,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,tabIndex:this.question.isDisabledAttr?void 0:0,className:this.question.getControlClass()},r,this.renderReadOnlyElement())}else o=C(O,null,this.renderInput(this.question.dropdownListModel),C(Ze,{model:null===(n=null===(e=this.question)||void 0===e?void 0:e.dropdownListModel)||void 0===n?void 0:n.popupModel}));return C("div",{className:t.selectWrapper,onClick:this.click},o,this.createChevronButton())},e.prototype.renderValueElement=function(t){return this.question.showInputFieldComponent?xe.Instance.createElement(this.question.inputFieldComponentName,{item:t.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},e.prototype.renderInput=function(t){var e=this,n=this.renderValueElement(t),o=Ne.settings.environment.root;return C("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:t.noTabIndex?void 0:0,disabled:this.question.isDisabledAttr,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,onFocus:this.focus,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":t.listElementId,"aria-activedescendant":t.ariaActivedescendant},t.showHintPrefix?C("div",{className:this.question.cssClasses.hintPrefix},C("span",null,t.hintStringPrefix)):null,C("div",{className:this.question.cssClasses.controlValue},t.showHintString?C("div",{className:this.question.cssClasses.hintSuffix},C("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},t.inputStringRendered),C("span",null,t.hintStringSuffix)):null,n,C("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(t){return e.inputElement=t},className:this.question.cssClasses.filterStringInput,role:t.filterStringEnabled?this.question.ariaRole:void 0,"aria-expanded":this.question.ariaExpanded,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-controls":t.listElementId,"aria-activedescendant":t.ariaActivedescendant,placeholder:t.placeholderRendered,readOnly:!!t.filterReadOnly||void 0,tabIndex:t.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:t.inputMode,onChange:function(e){!function(e){e.target===o.activeElement&&(t.inputStringRendered=e.target.value)}(e)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},e.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var t={display:this.question.showClearButton?"":"none"};return C("div",{className:this.question.cssClasses.cleanButton,style:t,onClick:this.clear,"aria-hidden":"true"},C(Ve,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},e.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?C("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},C(Ve,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},e.prototype.renderOther=function(t){return C("div",{className:this.question.getCommentAreaCss(!0)},C(gn,{question:this.question,otherCss:t.other,cssClasses:t,isDisplayMode:this.isDisplayMode,isOther:!0}))},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.updateInputDomElement()},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.updateInputDomElement()},e.prototype.updateInputDomElement=function(){if(this.inputElement){var t=this.inputElement,e=this.question.dropdownListModel.inputStringRendered;Ne.Helpers.isTwoValueEquals(e,t.value,!1,!0,!1)||(t.value=this.question.dropdownListModel.inputStringRendered)}},e}(Me),wo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Oo=function(t){function e(e){return t.call(this,e)||this}return wo(e,t),e.prototype.renderElement=function(){var t=this.question.cssClasses,e=this.question.isOtherSelected?this.renderOther(t):null,n=this.renderSelect(t);return C("div",{className:this.question.renderCssRoot},n,e)},e}(qo);hn.Instance.registerQuestion("dropdown",(function(t){return C(Oo,t)}));var Eo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),So=function(t){function e(e){return t.call(this,e)||this}return Eo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return!!this.item&&!!this.question},e.prototype.renderElement=function(){var t=this;return C("div",{className:"sv-tagbox__item"},C("div",{className:"sv-tagbox__item-text"},this.renderLocString(this.item.locText)),C("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(e){t.question.dropdownListModel.deselectItem(t.item.value),e.stopPropagation()}},C(Ve,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},e}(De),Io=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Po=function(t){function e(e){return t.call(this,e)||this}return Io(e,t),e.prototype.renderItem=function(t,e){return C(So,{key:t,question:this.question,item:e})},e.prototype.renderInput=function(t){var e=this,n=t,o=this.question.selectedChoices.map((function(t,n){return e.renderItem("item"+n,t)}));return C("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:t.noTabIndex?void 0:0,disabled:this.question.isInputReadOnly,required:this.question.isRequired,onKeyDown:this.keyhandler,onBlur:this.blur,role:this.question.ariaRole,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,"aria-expanded":this.question.ariaExpanded,"aria-controls":t.listElementId,"aria-activedescendant":t.ariaActivedescendant},C("div",{className:this.question.cssClasses.controlValue},o,C(_o,{model:n,question:this.question})),this.createClearButton())},e.prototype.renderElement=function(){var t=this.question.cssClasses,e=this.question.isOtherSelected?this.renderOther(t):null,n=this.renderSelect(t);return C("div",{className:this.question.renderCssRoot},n,e)},e.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},e}(qo);hn.Instance.registerQuestion("tagbox",(function(t){return C(Po,t)}));var No=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xo=function(t){function e(e){return t.call(this,e)||this}return No(e,t),e.prototype.renderSelect=function(t){var e=this,n=this.isDisplayMode?C("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):C("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(t){return e.setControl(t)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(t){e.question.onClick(t)},onKeyUp:function(t){e.question.onKeyUp(t)},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,required:this.question.isRequired},this.question.allowClear?C("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map((function(t,e){return C(bo,{key:"item"+e,item:t})})));return C("div",{className:t.selectWrapper},n,this.createChevronButton())},e}(Oo);hn.Instance.registerQuestion("sv-dropdown-select",(function(t){return C(xo,t)})),Ne.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var Ro=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jo=function(t){function e(e){var n=t.call(this,e)||this;return n.state={rowsChanged:0},n}return Ro(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){if(t.prototype.componentDidMount.call(this),this.question){var e=this;this.question.visibleRowsChangedCallback=function(){e.setState({rowsChanged:e.state.rowsChanged+1})}}},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},e.prototype.renderElement=function(){for(var t=this,e=this.question.cssClasses,n=this.question.hasRows?C("td",null):null,o=[],r=0;r<this.question.visibleColumns.length;r++){var i=this.question.visibleColumns[r],s="column"+r,u=this.renderLocString(i.locText),a={};this.question.columnMinWidth&&(a.minWidth=this.question.columnMinWidth,a.width=this.question.columnMinWidth),o.push(C("th",{className:this.question.cssClasses.headerCell,style:a,key:s},this.wrapCell({column:i},u,"column-header")))}var l=[],c=this.question.visibleRows;for(r=0;r<c.length;r++){var p=c[r];s="row-"+p.name+"-"+r;l.push(C(ko,{key:s,question:this.question,cssClasses:e,row:p,isFirst:0==r}))}var d=this.question.showHeader?C("thead",null,C("tr",null,n,o)):null;return C("div",{className:e.tableWrapper,ref:function(e){return t.setControl(e)}},C("fieldset",null,C("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),C("table",{className:this.question.getTableCss()},d,C("tbody",null,l))))},e}(Be),ko=function(t){function e(e){return t.call(this,e)||this}return Ro(e,t),e.prototype.getStateElement=function(){return this.row?this.row.item:t.prototype.getStateElement.call(this)},Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),e.prototype.wrapCell=function(t,e,n){if(!n)return e;var o=this.question.survey,r=null;return o&&(r=Re.wrapMatrixCell(o,e,t,n)),null!=r?r:e},e.prototype.canRender=function(){return!!this.row},e.prototype.renderElement=function(){var t=null;if(this.question.hasRows){var e=this.renderLocString(this.row.locText),n={};this.question.rowTitleWidth&&(n.minWidth=this.question.rowTitleWidth,n.width=this.question.rowTitleWidth),t=C("td",{style:n,className:this.row.rowTextClasses},this.wrapCell({row:this.row},e,"row-header"))}var o=this.generateTds();return C("tr",{className:this.row.rowClasses||void 0},t,o)},e.prototype.generateTds=function(){for(var t=this,e=[],n=this.row,o=this.question.cellComponent,r=function(){var r=null,u=i.question.visibleColumns[s],a="value"+s,l=i.question.getItemClass(n,u);if(i.question.hasCellText){var c=function(e){return function(){return t.cellClick(n,e)}};r=C("td",{key:a,className:l,onClick:c?c(u):function(){}},i.renderLocString(i.question.getCellDisplayLocText(n.name,u)))}else{var p=xe.Instance.createElement(o,{question:i.question,row:i.row,column:u,columnIndex:s,cssClasses:i.cssClasses,cellChanged:function(){t.cellClick(t.row,u)}});r=C("td",{key:a,"data-responsive-title":u.locText.renderedHtml,className:i.question.cssClasses.cell},p)}e.push(r)},i=this,s=0;s<this.question.visibleColumns.length;s++)r();return e},e.prototype.cellClick=function(t,e){t.value=e.value,this.setState({value:this.row.value})},e}(De),To=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n.handleOnChange=n.handleOnChange.bind(n),n}return Ro(e,t),e.prototype.handleOnChange=function(t){this.props.cellChanged&&this.props.cellChanged()},e.prototype.handleOnMouseDown=function(t){this.question.onMouseDown()},Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return!!this.question&&!!this.row},e.prototype.renderElement=function(){var t=this.row.value==this.column.value,e=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,n=this.question.getItemClass(this.row,this.column),o=this.question.isMobile?C("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return C("label",{onMouseDown:this.handleOnMouseDown,className:n},this.renderInput(e,t),C("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?C("svg",{className:this.cssClasses.itemDecorator},C("use",{xlinkHref:this.question.itemSvgIcon})):null),o)},e.prototype.renderInput=function(t,e){return C("input",{id:t,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:e,onChange:this.handleOnChange,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.getCellAriaLabel(this.row.locText.renderedHtml,this.column.locText.renderedHtml),"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage})},e}(De);xe.Instance.registerElement("survey-matrix-cell",(function(t){return C(To,t)})),hn.Instance.registerQuestion("matrix",(function(t){return C(jo,t)}));var Do=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Bo=function(t){function e(e){return t.call(this,e)||this}return Do(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.reactOnStrChanged()},e.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},e.prototype.componentDidUpdate=function(t,e){this.reactOnStrChanged()},e.prototype.reactOnStrChanged=function(){var t=this;this.question.locHtml.onChanged=function(){t.setState({changed:t.state&&t.state.changed?t.state.changed+1:1})}},e.prototype.canRender=function(){return t.prototype.canRender.call(this)&&!!this.question.html},e.prototype.renderElement=function(){var t={__html:this.question.locHtml.renderedHtml};return C("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:t})},e}(Be);hn.Instance.registerQuestion("html",(function(t){return C(Bo,t)}));var Mo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Lo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Mo(e,t),e.prototype.render=function(){return C("div",{className:"sd-loading-indicator"},C(Ve,{iconName:"icon-loading",size:"auto"}))},e}(E),Ao=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ho=function(t){function e(e){return t.call(this,e)||this}return Ao(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=this;return Vn(Pe.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(e){return t.question.chooseFile(e.nativeEvent)}},this.question.cssClasses.chooseFileIconId?Pe.createElement(Ve,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,Pe.createElement("span",null,this.question.chooseButtonText)))},e}(De);xe.Instance.registerElement("sv-file-choose-btn",(function(t){return Pe.createElement(Ho,t)}));var Uo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Wo=function(t){function e(e){return t.call(this,e)||this}return Uo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t,e=this,n=this.question.allowShowPreview?this.renderPreview():null,o=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,r=this.question.isPlayingVideo?this.renderVideo():null,i=this.question.showFileDecorator?this.renderFileDecorator():null,s=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,u=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,a=this.question.fileNavigatorVisible?C(sn,{model:this.question.fileNavigator}):null;return t=this.question.isReadOnlyAttr?C("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(t){return e.setControl(t)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?C("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(t){return e.setControl(t)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?C("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(t){return e.setControl(t)},style:this.isDisplayMode?{color:"transparent"}:{},"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage,multiple:this.question.allowMultiple,title:this.question.inputTitle,accept:this.question.acceptedTypes,capture:this.question.renderCapture}):null,C("div",{className:this.question.fileRootCss,ref:function(t){return e.setContent(t)}},t,C("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},i,o,r,s,n,u,a))},e.prototype.renderFileDecorator=function(){var t=this.question.showChooseButton?this.renderChooseButton():null,e=this.question.actionsContainerVisible?C(sn,{model:this.question.actionsContainer}):null,n=this.question.isEmpty()?C("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return C("div",{className:this.question.getFileDecoratorCss()},C("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),C("div",{className:this.question.cssClasses.wrapper},t,e,n))},e.prototype.renderChooseButton=function(){return C(Ho,{data:{question:this.question}})},e.prototype.renderClearButton=function(t){return this.question.isUploading?null:C("button",{type:"button",onClick:this.question.doClean,className:t},C("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?C(Ve,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},e.prototype.renderPreview=function(){return xe.Instance.createElement("sv-file-preview",{question:this.question})},e.prototype.renderLoadingIndicator=function(){return C("div",{className:this.question.cssClasses.loadingIndicator},C(Lo,null))},e.prototype.renderVideo=function(){return C("div",{className:this.question.cssClasses.videoContainer},C($e,{item:this.question.changeCameraAction}),C($e,{item:this.question.closeCameraAction}),C("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),C($e,{item:this.question.takePictureAction}))},e}(Be);hn.Instance.registerQuestion("file",(function(t){return C(Wo,t)}));var Fo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Qo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Fo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.renderFileSign=function(t,e){var n=this;return t&&e.name?Pe.createElement("div",{className:t},Pe.createElement("a",{href:e.content,onClick:function(t){n.question.doDownloadFile(t,e)},title:e.name,download:e.name,style:{width:this.question.imageWidth}},e.name)):null},e.prototype.renderElement=function(){var t=this,e=this.question.previewValue.map((function(e,n){return e?Pe.createElement("span",{key:t.question.inputId+"_"+n,className:t.question.cssClasses.previewItem,onClick:function(e){return t.question.doDownloadFileFromContainer(e)},style:{display:t.question.isPreviewVisible(n)?void 0:"none"}},t.renderFileSign(t.question.cssClasses.fileSign,e),Pe.createElement("div",{className:t.question.getImageWrapperCss(e)},t.question.canPreviewImage(e)?Pe.createElement("img",{src:e.content,style:{height:t.question.imageHeight,width:t.question.imageWidth},alt:"File preview"}):t.question.cssClasses.defaultImage?Pe.createElement(Ve,{iconName:t.question.cssClasses.defaultImageIconId,size:"auto",className:t.question.cssClasses.defaultImage}):null,e.name&&!t.question.isReadOnly?Pe.createElement("div",{className:t.question.getRemoveButtonCss(),onClick:function(n){return t.question.doRemoveFile(e,n)}},Pe.createElement("span",{className:t.question.cssClasses.removeFile},t.question.removeFileCaption),t.question.cssClasses.removeFileSvgIconId?Pe.createElement(Ve,{title:t.question.removeFileCaption,iconName:t.question.cssClasses.removeFileSvgIconId,size:"auto",className:t.question.cssClasses.removeFileSvg}):null):null),t.renderFileSign(t.question.cssClasses.fileSignBottom,e)):null}));return Pe.createElement("div",{className:this.question.cssClasses.fileList||void 0},e)},e.prototype.canRender=function(){return this.question.showPreviewContainer},e}(Te);xe.Instance.registerElement("sv-file-preview",(function(t){return Pe.createElement(Qo,t)}));var Vo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),zo=function(t){function e(e){return t.call(this,e)||this}return Vo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){for(var t=this.question.cssClasses,e=this.question.getRows(),n=[],o=0;o<e.length;o++)e[o].isVisible&&n.push(this.renderRow(o,e[o].cells,t));return C("table",{className:this.question.getQuestionRootCss()},C("tbody",null,n))},e.prototype.renderCell=function(t,e,n){var o;return o=t.isErrorsCell?C(Nn,{question:t.item.editor,creator:this.creator}):C(Ko,{question:this.question,item:t.item,creator:this.creator,cssClasses:e}),C("td",{key:"item"+n,className:t.className,onFocus:function(){t.item.focusIn()}},o)},e.prototype.renderRow=function(t,e,n){for(var o="item"+t,r=[],i=0;i<e.length;i++){var s=e[i];r.push(this.renderCell(s,n,i))}return C("tr",{key:o,className:n.row},r)},e}(Be),Ko=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vo(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this.item,e=this.cssClasses,n={};return this.question.itemTitleWidth&&(n.minWidth=this.question.itemTitleWidth,n.width=this.question.itemTitleWidth),C("label",{className:this.question.getItemLabelCss(t)},C("span",{className:e.itemTitle,style:n},C(an,{element:t.editor,cssClasses:t.editor.cssClasses})),C(Jo,{cssClasses:e,itemCss:this.question.getItemCss(),question:t.editor,creator:this.creator}))},e}(De),Jo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Vo(e,t),e.prototype.renderElement=function(){return C("div",{className:this.itemCss},this.renderContent())},e}(In);hn.Instance.registerQuestion("multipletext",(function(t){return C(zo,t)}));var $o=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Go=function(t){function e(e){return t.call(this,e)||this}return $o(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses,n=null;return this.question.showClearButtonInContent&&(n=C("div",null,C("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return t.question.clearValue(!0)},value:this.question.clearButtonCaption}))),C("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(e){return t.setControl(e)},role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage},this.question.hasColumns?this.getColumnedBody(e):this.getBody(e),this.getFooter(),this.question.isOtherSelected?this.renderOther(e):null,n)},e.prototype.getFooter=function(){var t=this;if(this.question.hasFootItems)return this.question.footItems.map((function(e,n){return t.renderItem("item_f"+n,e,!1,t.question.cssClasses)}))},e.prototype.getColumnedBody=function(t){return C("div",{className:t.rootMultiColumn},this.getColumns(t))},e.prototype.getColumns=function(t){var e=this,n=this.getStateValue();return this.question.columns.map((function(o,r){var i=o.map((function(o,i){return e.renderItem("item"+r+i,o,n,t,""+r+i)}));return C("div",{key:"column"+r+e.question.getItemsColumnKey(o),className:e.question.getColumnClass(),role:"presentation"},i)}))},e.prototype.getBody=function(t){return this.question.blockedRow?C("div",{className:t.rootRow},this.getItems(t,this.question.dataChoices)):C(O,null,this.getItems(t,this.question.bodyItems))},e.prototype.getItems=function(t,e){for(var n=[],o=this.getStateValue(),r=0;r<e.length;r++){var i=e[r],s=this.renderItem("item"+r,i,o,t,""+r);n.push(s)}return n},Object.defineProperty(e.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),e.prototype.renderOther=function(t){return C("div",{className:this.question.getCommentAreaCss(!0)},C(gn,{question:this.question,otherCss:t.other,cssClasses:t,isDisplayMode:this.isDisplayMode}))},e.prototype.renderItem=function(t,e,n,o,r){var i=xe.Instance.createElement(this.question.itemComponent,{key:t,question:this.question,cssClasses:o,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:r,isChecked:n===e.value}),s=this.question.survey,u=null;return s&&(u=Re.wrapItemValue(s,i,this.question,e)),null!=u?u:i},e.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},e}(Be),Yo=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return $o(e,t),e.prototype.getStateElement=function(){return this.item},Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(!!this.question&&!(this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render))},e.prototype.handleOnChange=function(t){this.question.clickItemHandler(this.item)},e.prototype.handleOnMouseDown=function(t){this.question.onMouseDown()},e.prototype.canRender=function(){return!!this.question&&!!this.item},e.prototype.renderElement=function(){var t=this.question.getItemClass(this.item),e=this.question.getLabelClass(this.item),n=this.question.getControlLabelClass(this.item),o=this.hideCaption?null:C("span",{className:n},this.renderLocString(this.item.locText,this.textStyle));return C("div",{className:t,role:"presentation"},C("label",{onMouseDown:this.handleOnMouseDown,className:e},C("input",{"aria-errormessage":this.question.ariaErrormessage,className:this.cssClasses.itemControl,id:this.question.getItemId(this.item),type:"radio",name:this.question.questionName,checked:this.isChecked,value:this.item.value,disabled:!this.question.getItemEnabled(this.item),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange}),this.cssClasses.materialDecorator?C("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?C("svg",{className:this.cssClasses.itemDecorator},C("use",{xlinkHref:this.question.itemSvgIcon})):null):null,o))},e}(De);xe.Instance.registerElement("survey-radiogroup-item",(function(t){return C(Yo,t)})),hn.Instance.registerQuestion("radiogroup",(function(t){return C(Go,t)}));var Zo=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xo=function(t){function e(e){return t.call(this,e)||this}return Zo(e,t),e.prototype.renderInput=function(){var t=this,e=this.question.getControlClass(),n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return C("div",null,this.question.inputValue);var o=this.question.getMaxLength()?C(mn,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return C(O,null,C("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:e,type:this.question.inputType,ref:function(e){return t.setControl(e)},style:this.question.inputStyle,maxLength:this.question.getMaxLength(),min:this.question.renderedMin,max:this.question.renderedMax,step:this.question.renderedStep,size:this.question.inputSize,placeholder:n,list:this.question.dataListId,autoComplete:this.question.autocomplete,onBlur:function(e){t.question.onBlur(e)},onFocus:function(e){t.question.onFocus(e)},onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(e){return t.question.onCompositionUpdate(e.nativeEvent)},"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),o)},e.prototype.renderElement=function(){return this.question.dataListId?C("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},e.prototype.setValueCore=function(t){this.question.inputValue=t},e.prototype.getValueCore=function(){return this.question.inputValue},e.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var t=this.question.dataList;if(0==t.length)return null;for(var e=[],n=0;n<t.length;n++)e.push(C("option",{key:"item"+n,value:t[n]}));return C("datalist",{id:this.question.dataListId},e)},e}(Me);hn.Instance.registerQuestion("text",(function(t){return C(Xo,t)}));var tr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),er=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnChange=n.handleOnChange.bind(n),n.handleOnClick=n.handleOnClick.bind(n),n.handleOnLabelClick=n.handleOnLabelClick.bind(n),n.handleOnSwitchClick=n.handleOnSwitchClick.bind(n),n.handleOnKeyDown=n.handleOnKeyDown.bind(n),n.checkRef={current:null},n}return tr(e,t),e.prototype.getStateElement=function(){return this.question},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.doCheck=function(t){this.question.booleanValue=t},e.prototype.handleOnChange=function(t){this.doCheck(t.target.checked)},e.prototype.handleOnClick=function(t){this.question.onLabelClick(t,!0)},e.prototype.handleOnSwitchClick=function(t){this.question.onSwitchClickModel(t.nativeEvent)},e.prototype.handleOnLabelClick=function(t,e){this.question.onLabelClick(t,e)},e.prototype.handleOnKeyDown=function(t){this.question.onKeyDownCore(t)},e.prototype.updateDomElement=function(){if(this.question){var e=this.checkRef.current;e&&(e.indeterminate=this.question.isIndeterminate),this.setControl(e),t.prototype.updateDomElement.call(this)}},e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses,n=this.question.getItemCss();return C("div",{className:e.root,onKeyDown:this.handleOnKeyDown},C("label",{className:n,onClick:this.handleOnClick},C("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.control,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,role:this.question.a11y_input_ariaRole,"aria-required":this.question.a11y_input_ariaRequired,"aria-label":this.question.a11y_input_ariaLabel,"aria-labelledby":this.question.a11y_input_ariaLabelledBy,"aria-describedby":this.question.a11y_input_ariaDescribedBy,"aria-invalid":this.question.a11y_input_ariaInvalid,"aria-errormessage":this.question.a11y_input_ariaErrormessage}),C("div",{className:e.sliderGhost,onClick:function(e){return t.handleOnLabelClick(e,t.question.swapOrder)}},C("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),C("div",{className:e.switch,onClick:this.handleOnSwitchClick},C("span",{className:e.slider},this.question.isDeterminated&&e.sliderText?C("span",{className:e.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),C("div",{className:e.sliderGhost,onClick:function(e){return t.handleOnLabelClick(e,!t.question.swapOrder)}},C("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},e}(Be);hn.Instance.registerQuestion("boolean",(function(t){return C(er,t)}));var nr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),or=function(t){function e(e){return t.call(this,e)||this}return nr(e,t),e.prototype.renderElement=function(){var t=this.question.cssClasses,e=this.question.getCheckboxItemCss(),n=this.question.canRenderLabelDescription?Te.renderQuestionDescription(this.question):null;return C("div",{className:t.rootCheckbox},C("div",{className:e},C("label",{className:t.checkboxLabel},C("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.controlCheckbox,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,checked:this.question.booleanValue||!1,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),C("span",{className:t.checkboxMaterialDecorator},this.question.svgIcon?C("svg",{className:t.checkboxItemDecorator},C("use",{xlinkHref:this.question.svgIcon})):null,C("span",{className:"check"})),this.question.isLabelRendered&&C("span",{className:t.checkboxControlLabel,id:this.question.labelRenderedAriaID},C(cn,{element:this.question,cssClasses:this.question.cssClasses}))),n))},e}(er);hn.Instance.registerQuestion("sv-boolean-checkbox",(function(t){return C(or,t)})),Ne.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var rr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ir=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnChange=function(t){n.question.booleanValue="true"==t.nativeEvent.target.value},n}return rr(e,t),e.prototype.renderRadioItem=function(t,e){var n=this.question.cssClasses;return C("div",{role:"presentation",className:this.question.getRadioItemClass(n,t)},C("label",{className:n.radioLabel},C("input",{type:"radio",name:this.question.name,value:t,"aria-errormessage":this.question.ariaErrormessage,checked:t===this.question.booleanValueRendered,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:n.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?C("span",{className:n.materialRadioDecorator},this.question.itemSvgIcon?C("svg",{className:n.itemRadioDecorator},C("use",{xlinkHref:this.question.itemSvgIcon})):null):null,C("span",{className:n.radioControlLabel},this.renderLocString(e))))},e.prototype.renderElement=function(){var t=this.question.cssClasses;return C("div",{className:t.rootRadio},C("fieldset",{role:"presentation",className:t.radioFieldset},this.question.swapOrder?C(O,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):C(O,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},e}(er);hn.Instance.registerQuestion("sv-boolean-radio",(function(t){return C(ir,t)})),Ne.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var sr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ur=function(t){function e(e){var n=t.call(this,e)||this;return n.state={value:n.question.value},n}return sr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){return C("div",null)},e}(Be);hn.Instance.registerQuestion("empty",(function(t){return C(ur,t)}));var ar=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),lr=function(t){function e(e){var n=t.call(this,e)||this;return n.root=Pe.createRef(),n.onPointerDownHandler=function(t){n.parentMatrix.onPointerDown(t.nativeEvent,n.model.row)},n}return ar(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.model},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},e.prototype.shouldComponentUpdate=function(e,n){return!!t.prototype.shouldComponentUpdate.call(this,e,n)&&(e.model!==this.model&&(e.element&&e.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0)},e.prototype.render=function(){var t=this,e=this.model;return e.visible?Pe.createElement("tr",{ref:this.root,className:e.className,"data-sv-drop-target-matrix-row":e.row&&e.row.id,onPointerDown:function(e){return t.onPointerDownHandler(e)}},this.props.children):null},e}(Te);xe.Instance.registerElement("sv-matrix-row",(function(t){return Pe.createElement(lr,t)}));var cr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),pr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return cr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){return this.question.iconDragElement?Pe.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},Pe.createElement("use",{xlinkHref:this.question.iconDragElement})):Pe.createElement("span",{className:this.question.cssClasses.iconDrag})},e}(De);xe.Instance.registerElement("sv-matrix-drag-drop-icon",(function(t){return Pe.createElement(pr,t)}));var dr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),hr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return dr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.table},e.prototype.wrapCell=function(t,e,n){return this.props.wrapCell(t,e,n)},e.prototype.renderHeader=function(){var t=this.question.renderedTable;if(!t.showHeader)return null;for(var e=[],n=t.headerRow.cells,o=0;o<n.length;o++){var r=n[o],i="column"+o,s={};r.width&&(s.width=r.width),r.minWidth&&(s.minWidth=r.minWidth);var u=this.renderCellContent(r,"column-header",{}),a=r.hasTitle?C("th",{className:r.className,key:i,style:s}," ",u," "):C("td",{className:r.className,key:i,style:s});e.push(a)}return C("thead",null,C("tr",null,e))},e.prototype.renderFooter=function(){var t=this.question.renderedTable;return t.showFooter?C("tfoot",null,this.renderRow("footer",t.footerRow,this.question.cssClasses,"row-footer")):null},e.prototype.renderRows=function(){for(var t=this.question.cssClasses,e=[],n=this.question.renderedTable.renderedRows,o=0;o<n.length;o++)e.push(this.renderRow(n[o].id,n[o],t));return C("tbody",null,e)},e.prototype.renderRow=function(t,e,n,o){for(var r=[],i=e.cells,s=0;s<i.length;s++)r.push(this.renderCell(i[s],s,n,o));return C(O,{key:"row"+t},"row-footer"==o?C("tr",null,r):C(lr,{model:e,parentMatrix:this.question},r))},e.prototype.renderCell=function(t,e,n,o){var r="cell"+e;if(t.hasQuestion)return C(_r,{key:r,cssClasses:n,cell:t,creator:this.creator,reason:o});if(t.isErrorsCell&&t.isErrorsCell)return C(yr,{cell:t,key:r,keyValue:r,question:t.question,creator:this.creator});var i=o;i||(i=t.hasTitle?"row-header":"");var s=this.renderCellContent(t,i,n),u=null;return(t.width||t.minWidth)&&(u={},t.width&&(u.width=t.width),t.minWidth&&(u.minWidth=t.minWidth)),C("td",{className:t.className,key:r,style:u,colSpan:t.colSpans,title:t.getTitle()},s)},e.prototype.renderCellContent=function(t,e,n){var o=null,r=null;if((t.width||t.minWidth)&&(r={},t.width&&(r.width=t.width),t.minWidth&&(r.minWidth=t.minWidth)),t.hasTitle){e="row-header";var i=this.renderLocString(t.locTitle),s=t.column?C(vr,{column:t.column,question:this.question}):null;o=C(O,null,i,s)}if(t.isDragHandlerCell&&(o=C(O,null,C(pr,{item:{data:{row:t.row,question:this.question}}}))),t.isActionsCell&&(o=xe.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:n,cell:t,model:t.item.getData()})),t.hasPanel&&(o=C(Yn,{key:t.panel.id,element:t.panel,survey:this.question.survey,cssClasses:n,isDisplayMode:this.isDisplayMode,creator:this.creator})),!o)return null;var u=C(O,null,o);return this.wrapCell(t,u,e)},e.prototype.renderElement=function(){var t=this.renderHeader(),e=this.renderFooter(),n=this.renderRows();return C("table",{className:this.question.getTableCss()},t,n,e)},e}(Te),fr=function(t){function e(e){var n=t.call(this,e)||this;n.question.renderedTable;return n.state=n.getState(),n}return dr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.getState=function(t){return void 0===t&&(t=null),{rowCounter:t?t.rowCounter+1:0}},e.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},e.prototype.componentDidMount=function(){var e=this;t.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){e.updateStateOnCallback()}},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},e.prototype.renderElement=function(){return this.renderTableDiv()},e.prototype.renderTableDiv=function(){var t=this;return C("div",{style:this.question.showHorizontalScroll?{overflowX:"scroll"}:{},className:this.question.cssClasses.tableWrapper,ref:function(e){return t.setControl(e)}},C(hr,{question:this.question,creator:this.creator,wrapCell:function(e,n,o){return t.wrapCell(e,n,o)}}))},e}(Be),mr=function(t){function e(e){return t.call(this,e)||this}return dr(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){return C(sn,{model:this.model,handleClick:!1})},e}(De),yr=function(t){function e(e){return t.call(this,e)||this}return dr(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return this.props.keyValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),e.prototype.render=function(){return this.cell.isVisible?C("td",{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},t.prototype.render.call(this)):null},e.prototype.getQuestionPropertiesToTrack=function(){return t.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"])},e}(Nn);xe.Instance.registerElement("sv-matrixdynamic-actions-cell",(function(t){return C(mr,t)}));var vr=function(t){function e(e){return t.call(this,e)||this}return dr(e,t),Object.defineProperty(e.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.column},e.prototype.renderElement=function(){return this.column.isRenderedRequired?C(O,null,C("span",null," "),C("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},e}(De),_r=function(t){function e(e){return t.call(this,e)||this}return dr(e,t),Object.defineProperty(e.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),e.prototype.getQuestion=function(){var e=t.prototype.getQuestion.call(this);return e||(this.cell?this.cell.question:null)},e.prototype.doAfterRender=function(){var t=this.cellRef.current;if(t&&this.cell&&this.question&&this.question.survey&&"r"!==t.getAttribute("data-rendered")){t.setAttribute("data-rendered","r");var e={cell:this.cell,cellQuestion:this.question,htmlElement:t,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,e),this.question.afterRenderCore(t)}},e.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},e.prototype.getCellStyle=function(){var e=t.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(e||(e={}),this.cell.width&&(e.width=this.cell.width),this.cell.minWidth&&(e.minWidth=this.cell.minWidth)),e},e.prototype.getHeaderText=function(){return this.cell.headers},e.prototype.renderElement=function(){return this.cell.isVisible?t.prototype.renderElement.call(this):null},e.prototype.renderCellContent=function(){var e=t.prototype.renderCellContent.call(this),n=this.cell.showResponsiveTitle?C("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle)):null;return C(O,null,n,e)},e.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():En.renderQuestionBody(this.creator,this.question):C(O,null)},e.prototype.renderOtherComment=function(){var t=this.cell.question,e=t.cssClasses||{};return C(gn,{question:t,cssClasses:e,otherCss:e.other,isDisplayMode:t.isInputReadOnly})},e.prototype.renderCellCheckboxButton=function(){var t=this.cell.question.id+"item"+this.cell.choiceIndex;return C(no,{key:t,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,isFirst:this.cell.isFirstChoice,index:this.cell.choiceIndex.toString(),hideCaption:!0})},e.prototype.renderCellRadiogroupButton=function(){var t=this.cell.question.id+"item"+this.cell.choiceIndex;return C(Yo,{key:t,question:this.cell.question,cssClasses:this.cell.question.cssClasses,isDisplayMode:this.cell.question.isInputReadOnly,item:this.cell.item,index:this.cell.choiceIndex.toString(),isChecked:this.cell.question.value===this.cell.item.value,isDisabled:this.cell.question.isReadOnly||!this.cell.item.isEnabled,hideCaption:!0})},e}(Pn),gr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),br=function(t){function e(e){return t.call(this,e)||this}return gr(e,t),e}(fr);hn.Instance.registerQuestion("matrixdropdown",(function(t){return C(br,t)}));var Cr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),qr=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return Cr(e,t),Object.defineProperty(e.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.handleOnRowAddClick=function(t){this.matrix.addRowUI()},e.prototype.renderElement=function(){var t=this.question.cssClasses,e=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(t);return C("div",null,this.renderAddRowButtonOnTop(t),e,this.renderAddRowButtonOnBottom(t))},e.prototype.renderAddRowButtonOnTop=function(t){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(t):null},e.prototype.renderAddRowButtonOnBottom=function(t){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(t):null},e.prototype.renderNoRowsContent=function(t){var e=this.renderLocString(this.matrix.locEmptyRowsText),n=C("div",{className:t.emptyRowsText},e),o=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(t,!0):void 0;return C("div",{className:t.emptyRowsSection},n,o)},e.prototype.renderAddRowButton=function(t,e){return void 0===e&&(e=!1),xe.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:t,isEmptySection:e})},e}(fr);hn.Instance.registerQuestion("matrixdynamic",(function(t){return C(qr,t)}));var wr=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return Cr(e,t),Object.defineProperty(e.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.handleOnRowAddClick=function(t){this.matrix.addRowUI()},e.prototype.renderElement=function(){var t=this.renderLocString(this.matrix.locAddRowText),e=C("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},t,C("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?e:C("div",{className:this.props.cssClasses.footer},e)},e}(De);xe.Instance.registerElement("sv-matrixdynamic-add-btn",(function(t){return C(wr,t)}));var Or=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Er=function(t){function e(e){return t.call(this,e)||this}return Or(e,t),Object.defineProperty(e.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),e}(De),Sr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleClick=function(t){e.question.addPanelUI()},e}return Or(e,t),e.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var t=this.renderLocString(this.question.locPanelAddText);return Pe.createElement("button",{type:"button",className:this.question.getAddButtonCss(),onClick:this.handleClick},Pe.createElement("span",{className:this.question.cssClasses.buttonAddText},t))},e}(Er);xe.Instance.registerElement("sv-paneldynamic-add-btn",(function(t){return Pe.createElement(Sr,t)}));var Ir=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Pr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleClick=function(t){e.question.goToNextPanel()},e}return Ir(e,t),e.prototype.renderElement=function(){return Pe.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},Pe.createElement(Ve,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},e}(Er);xe.Instance.registerElement("sv-paneldynamic-next-btn",(function(t){return Pe.createElement(Pr,t)}));var Nr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),xr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleClick=function(t){e.question.goToPrevPanel()},e}return Nr(e,t),e.prototype.renderElement=function(){return Pe.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},Pe.createElement(Ve,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},e}(Er);xe.Instance.registerElement("sv-paneldynamic-prev-btn",(function(t){return Pe.createElement(xr,t)}));var Rr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),jr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.renderElement=function(){return Pe.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},e}(Er);xe.Instance.registerElement("sv-paneldynamic-progress-text",(function(t){return Pe.createElement(jr,t)}));var kr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Tr=function(t){function e(e){return t.call(this,e)||this}return kr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var e=this;this.question.panelCountChangedCallback=function(){e.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){e.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){e.updateQuestionRendering()}},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},e.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},e.prototype.renderElement=function(){var t=this,e=[];this.question.renderedPanels.forEach((function(n,o){e.push(C(Dr,{key:n.id,element:n,question:t.question,index:o,cssClasses:t.question.cssClasses,isDisplayMode:t.isDisplayMode,creator:t.creator}))}));var n=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,o=this.question.isProgressTopShowing?this.renderNavigator():null,r=this.question.isProgressBottomShowing?this.renderNavigator():null,i=this.renderNavigatorV2(),s=this.renderPlaceholder();return C("div",{className:this.question.cssClasses.root},s,o,C("div",{className:this.question.cssClasses.panelsContainer},e),r,n,i)},e.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var t=this.question.isRangeShowing?this.renderRange():null,e=this.rendrerPrevButton(),n=this.rendrerNextButton(),o=this.renderAddRowButton();return C("div",{className:this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom},C("div",{style:{clear:"both"}},C("div",{className:this.question.cssClasses.progressContainer},e,t,n),o,this.renderProgressText()))},e.prototype.renderProgressText=function(){return C(jr,{data:{question:this.question}})},e.prototype.rendrerPrevButton=function(){return C(xr,{data:{question:this.question}})},e.prototype.rendrerNextButton=function(){return C(Pr,{data:{question:this.question}})},e.prototype.renderRange=function(){return C("div",{className:this.question.cssClasses.progress},C("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},e.prototype.renderAddRowButton=function(){return xe.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},e.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var t=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return C("div",{className:this.question.cssClasses.footer},C("hr",{className:this.question.cssClasses.separator}),t,this.question.footerToolbar.visibleActions.length?C("div",{className:this.question.cssClasses.footerButtonsContainer},C(sn,{model:this.question.footerToolbar})):null)},e.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?C("div",{className:this.question.cssClasses.noEntriesPlaceholder},C("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},e}(Be),Dr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return kr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),e.prototype.getSurvey=function(){return this.question?this.question.survey:null},e.prototype.getCss=function(){var t=this.getSurvey();return t?t.getCss():{}},e.prototype.render=function(){var e=t.prototype.render.call(this),n=this.renderButton(),o=this.question.showSeparator(this.index)?C("hr",{className:this.question.cssClasses.separator}):null;return C(O,null,C("div",{className:this.question.getPanelWrapperCss(this.panel)},e,n),o)},e.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:xe.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},e}(Yn);hn.Instance.registerQuestion("paneldynamic",(function(t){return C(Tr,t)}));var Br=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Mr=function(t){function e(e){return t.call(this,e)||this}return Br(e,t),Object.defineProperty(e.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t={width:this.progress+"%"};return C("div",{className:this.survey.getProgressCssClasses(this.props.container)},C("div",{style:t,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},C("span",{className:Ne.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),C("span",{className:Ne.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},e}(Kn);xe.Instance.registerElement("sv-progress-pages",(function(t){return C(Mr,t)})),xe.Instance.registerElement("sv-progress-questions",(function(t){return C(Mr,t)})),xe.Instance.registerElement("sv-progress-correctquestions",(function(t){return C(Mr,t)})),xe.Instance.registerElement("sv-progress-requiredquestions",(function(t){return C(Mr,t)}));var Lr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ar=function(t){function e(e){var n=t.call(this,e)||this;return n.listContainerRef={current:null},n}return Lr(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),e.prototype.onResize=function(t){this.setState({canShowItemTitles:t}),this.setState({canShowHeader:!t})},e.prototype.onUpdateScroller=function(t){this.setState({hasScroller:t})},e.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},e.prototype.render=function(){var t=this;return C("div",{className:this.model.getRootCss(this.props.container),style:{maxWidth:this.model.progressWidth},role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},this.state.canShowHeader?C("div",{className:this.css.progressButtonsHeader},C("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,C("div",{className:this.css.progressButtonsContainer},C("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return t.clickScrollButton(t.listContainerRef.current,!0)}}),C("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},C("ul",{className:this.css.progressButtonsList},this.getListElements())),C("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return t.clickScrollButton(t.listContainerRef.current,!1)}})),this.state.canShowFooter?C("div",{className:this.css.progressButtonsFooter},C("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},e.prototype.getListElements=function(){var t=this,e=[];return this.survey.visiblePages.forEach((function(n,o){e.push(t.renderListElement(n,o))})),e},e.prototype.renderListElement=function(t,e){var n=this,o=Te.renderLocString(t.locNavigationTitle);return C("li",{key:"listelement"+e,className:this.model.getListElementCss(e),onClick:this.model.isListElementClickable(e)?function(){return n.model.clickListElement(t)}:void 0,"data-page-number":this.model.getItemNumber(t)},C("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?C(O,null,C("div",{className:this.css.progressButtonsPageTitle,title:t.renderedNavigationTitle},o),C("div",{className:this.css.progressButtonsPageDescription,title:t.navigationDescription},t.navigationDescription)):null,C("div",{className:this.css.progressButtonsButton},C("div",{className:this.css.progressButtonsButtonBackground}),C("div",{className:this.css.progressButtonsButtonContent}),C("span",null,this.model.getItemNumber(t))))},e.prototype.clickScrollButton=function(t,e){t&&(t.scrollLeft+=70*(e?-1:1))},e.prototype.componentDidMount=function(){var e=this;t.prototype.componentDidMount.call(this),setTimeout((function(){e.respManager=new Ne.ProgressButtonsResponsivityManager(e.model,e.listContainerRef.current,e)}),10)},e.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),t.prototype.componentWillUnmount.call(this)},e}(Kn);xe.Instance.registerElement("sv-progress-buttons",(function(t){return C(Ar,t)}));var Hr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ur=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleKeydown=function(t){e.model.onKeyDown(t)},e}return Hr(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.render=function(){var t=this;if(!this.item)return null;var e={paddingInlineStart:this.model.getItemIndent(this.item)},n=this.model.getItemClass(this.item),o=this.item.component||"sv-list-item-content",r=xe.Instance.createElement(o,{item:this.item,key:this.item.id,model:this.model}),i=Pe.createElement("div",{style:e,className:this.model.cssClasses.itemBody,title:this.item.locTitle.calculatedText,onMouseOver:function(e){t.model.onItemHover(t.item)},onMouseLeave:function(e){t.model.onItemLeave(t.item)}},r),s=this.item.needSeparator?Pe.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,u={display:this.model.isItemVisible(this.item)?null:"none"};return Vn(Pe.createElement("li",{className:n,role:"option",style:u,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(e){t.model.onItemClick(t.item),e.stopPropagation()},onPointerDown:function(e){return t.model.onPointerDown(e,t.item)}},s,i),this.item)},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},e}(Te);xe.Instance.registerElement("sv-list-item",(function(t){return Pe.createElement(Ur,t)}));var Wr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Fr=function(t){function e(e){var n=t.call(this,e)||this;return n.handleKeydown=function(t){n.model.onKeyDown(t)},n.handleMouseMove=function(t){n.model.onMouseMove(t)},n.state={filterString:n.model.filterString||""},n.listContainerRef=Pe.createRef(),n}return Wr(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.model},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},e.prototype.componentDidUpdate=function(e,n){var o;t.prototype.componentDidUpdate.call(this,e,n),this.model!==e.model&&(this.model&&(null===(o=this.listContainerRef)||void 0===o?void 0:o.current)&&this.model.initListContainerHtmlElement(this.listContainerRef.current),e.model&&e.model.initListContainerHtmlElement(void 0))},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},e.prototype.renderElement=function(){return Pe.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},e.prototype.renderList=function(){if(!this.model.renderElements)return null;var t=this.renderItems(),e={display:this.model.isEmpty?"none":null};return Pe.createElement("ul",{className:this.model.getListClass(),style:e,role:"listbox",id:this.model.elementId,onMouseDown:function(t){t.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},t)},e.prototype.renderItems=function(){var t=this;if(!this.model)return null;var e=this.model.renderedActions;return e?e.map((function(e,n){return Pe.createElement(Ur,{model:t.model,item:e,key:"item"+n})})):null},e.prototype.searchElementContent=function(){var t=this;if(this.model.showFilter){var e=this.model.showSearchClearButton&&this.model.filterString?Pe.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(e){t.model.onClickSearchClearButton(e)}},Pe.createElement(Ve,{iconName:"icon-searchclear",size:"auto"})):null;return Pe.createElement("div",{className:this.model.cssClasses.filter},Pe.createElement("div",{className:this.model.cssClasses.filterIcon},Pe.createElement(Ve,{iconName:"icon-search",size:"auto"})),Pe.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(e){t.model.goToItems(e)},onChange:function(e){var n=Ne.settings.environment.root;e.target===n.activeElement&&(t.model.filterString=e.target.value)}}),e)}return null},e.prototype.emptyContent=function(){var t={display:this.model.isEmpty?null:"none"};return Pe.createElement("div",{className:this.model.cssClasses.emptyContainer,style:t},Pe.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},e}(Te);xe.Instance.registerElement("sv-list",(function(t){return Pe.createElement(Fr,t)}));var Qr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Vr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qr(e,t),e.prototype.render=function(){var t,e=this.props.model;return t=e.isMobile?C("div",{onClick:e.togglePopup},C(Ve,{iconName:e.icon,size:24}),C(Ze,{model:e.popupModel})):C(Fr,{model:e.listModel}),C("div",{className:e.containerCss},t)},e}(Kn);xe.Instance.registerElement("sv-navigation-toc",(function(t){return C(Vr,t)}));var zr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Kr=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return zr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.handleOnClick=function(t){this.question.setValueFromClick(t.target.value),this.setState({value:this.question.value})},e.prototype.renderItem=function(t,e){return xe.Instance.createElement(this.question.itemComponent,{question:this.question,item:t,index:e,key:"value"+e,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses,n=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,o=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return C("div",{className:this.question.ratingRootCss,ref:function(e){return t.setControl(e)}},C("fieldset",{role:"radiogroup"},C("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?C("span",{className:e.minText},n):null,this.question.renderedRateItems.map((function(e,n){return t.renderItem(e,n)})),this.question.hasMaxLabel?C("span",{className:e.maxText},o):null))},e}(Be);hn.Instance.registerQuestion("rating",(function(t){return C(Kr,t)}));var Jr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),$r=function(t){function e(e){return t.call(this,e)||this}return Jr(e,t),e.prototype.renderElement=function(){var t=this.question.cssClasses,e=this.renderSelect(t);return C("div",{className:this.question.cssClasses.rootDropdown},e)},e}(qo);hn.Instance.registerQuestion("sv-rating-dropdown",(function(t){return C($r,t)})),Ne.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var Gr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Yr=function(t){function e(e){return t.call(this,e)||this}return Gr(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses;return C("div",{id:this.question.inputId,className:e.root,ref:function(e){return t.setControl(e)}},this.question.formatedValue)},e}(Be);hn.Instance.registerQuestion("expression",(function(t){return C(Yr,t)}));var Zr=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Xr=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return Zr(e,t),e.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},e.prototype.handleOnExpanded=function(t){this.popup.changeExpandCollapse()},e.prototype.canRender=function(){return t.prototype.canRender.call(this)&&this.popup.isShowing},e.prototype.renderElement=function(){var t=this,e=this.renderWindowHeader(),n=this.renderBody(),o={};return this.popup.renderedWidth&&(o.width=this.popup.renderedWidth,o.maxWidth=this.popup.renderedWidth),C("div",{className:this.popup.cssRoot,style:o,onScroll:function(){return t.popup.onScroll()}},C("div",{className:this.popup.cssRootContent},e,n))},e.prototype.renderWindowHeader=function(){var t,e=this.popup,n=(e.cssHeaderRoot,null),o=null,r=null;return e.isCollapsed?(" "+e.cssRootCollapsedMod,n=this.renderTitleCollapsed(e),t=this.renderExpandIcon()):t=this.renderCollapseIcon(),e.allowClose&&(o=this.renderCloseButton(this.popup)),e.allowFullScreen&&(r=this.renderAllowFullScreenButon(this.popup)),C("div",{className:e.cssHeaderRoot},n,C("div",{className:e.cssHeaderButtonsContainer},r,C("div",{className:e.cssHeaderCollapseButton,onClick:this.handleOnExpanded},t),o))},e.prototype.renderTitleCollapsed=function(t){return t.locTitle?C("div",{className:t.cssHeaderTitleCollapsed},t.locTitle.renderedHtml):null},e.prototype.renderExpandIcon=function(){return C(Ve,{iconName:"icon-restore_16x16",size:16})},e.prototype.renderCollapseIcon=function(){return C(Ve,{iconName:"icon-minimize_16x16",size:16})},e.prototype.renderCloseButton=function(t){var e=this;return C("div",{className:t.cssHeaderCloseButton,onClick:function(){t.hide(),"function"==typeof e.props.onClose&&e.props.onClose()}},C(Ve,{iconName:"icon-close_16x16",size:16}))},e.prototype.renderAllowFullScreenButon=function(t){var e;return e=t.isFullScreen?C(Ve,{iconName:"icon-back-to-panel_16x16",size:16}):C(Ve,{iconName:"icon-full-screen_16x16",size:16}),C("div",{className:t.cssHeaderFullScreenButton,onClick:function(){t.toggleFullScreen()}},e)},e.prototype.renderBody=function(){return C("div",{className:this.popup.cssBody},this.doRender())},e.prototype.createSurvey=function(e){e||(e={}),t.prototype.createSurvey.call(this,e),this.popup=new Ne.PopupSurveyModel(null,this.survey),e.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=e.closeOnCompleteTimeout),this.popup.allowClose=e.allowClose,this.popup.allowFullScreen=e.allowFullScreen,this.popup.isShowing=!0,this.popup.isExpanded||!e.expanded&&!e.isExpanded||this.popup.expand()},e}(Qn),ti=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zr(e,t),e}(Xr),ei=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ni=function(t){function e(e){return t.call(this,e)||this}return ei(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this.question.cssClasses;return C("fieldset",{className:this.question.getSelectBaseRootCss()},C("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(t):this.getItems(t))},e.prototype.getColumns=function(t){var e=this;return this.question.columns.map((function(n,o){var r=n.map((function(n,o){return e.renderItem("item"+o,n,t)}));return C("div",{key:"column"+o+e.question.getItemsColumnKey(n),className:e.question.getColumnClass(),role:"presentation"},r)}))},e.prototype.getItems=function(t){for(var e=[],n=0;n<this.question.visibleChoices.length;n++){var o=this.question.visibleChoices[n],r="item"+n;e.push(this.renderItem(r,o,t))}return e},Object.defineProperty(e.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),e.prototype.renderItem=function(t,e,n){var o=C(oi,{key:t,question:this.question,item:e,cssClasses:n}),r=this.question.survey,i=null;return r&&(i=Re.wrapItemValue(r,o,this.question,e)),null!=i?i:o},e}(Be),oi=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return ei(e,t),e.prototype.getStateElement=function(){return this.item},e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this.reactOnStrChanged()},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},e.prototype.componentDidUpdate=function(e,n){t.prototype.componentDidUpdate.call(this,e,n),this.reactOnStrChanged()},e.prototype.reactOnStrChanged=function(){var t=this;this.item.locImageLink.onChanged=function(){t.setState({locImageLinkchanged:t.state&&t.state.locImageLink?t.state.locImageLink+1:1})}},Object.defineProperty(e.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),e.prototype.handleOnChange=function(t){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect)if(t.target.checked)this.question.value=this.question.value.concat(t.target.value);else{var e=this.question.value;e.splice(this.question.value.indexOf(t.target.value),1),this.question.value=e}else this.question.value=t.target.value;this.setState({value:this.question.value})}},e.prototype.renderElement=function(){var t=this,e=this.item,n=this.question,o=this.cssClasses,r=n.isItemSelected(e),i=n.getItemClass(e),s=null;n.showLabel&&(s=C("span",{className:n.cssClasses.itemText},e.text?Te.renderLocString(e.locText):e.value));var u={objectFit:this.question.imageFit},a=null;if(e.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(a=C("img",{className:o.image,src:e.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:e.locText.renderedHtml,style:u,onLoad:function(n){t.question.onContentLoaded(e,n.nativeEvent)},onError:function(t){e.onErrorHandler(e,t.nativeEvent)}})),e.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(a=C("video",{controls:!0,className:o.image,src:e.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:u,onLoadedMetadata:function(n){t.question.onContentLoaded(e,n.nativeEvent)},onError:function(t){e.onErrorHandler(e,t.nativeEvent)}})),!e.locImageLink.renderedHtml||e.contentNotLoaded){var l={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};a=C("div",{className:o.itemNoImage,style:l},o.itemNoImageSvgIcon?C(Ve,{className:o.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return C("div",{className:i},C("label",{className:o.label},C("input",{className:o.itemControl,id:this.question.getItemId(e),type:this.question.inputType,name:this.question.questionName,checked:r,value:e.value,disabled:!this.question.getItemEnabled(e),readOnly:this.question.isReadOnlyAttr,onChange:this.handleOnChange,"aria-required":this.question.ariaRequired,"aria-label":this.question.ariaLabel,"aria-invalid":this.question.ariaInvalid,"aria-errormessage":this.question.ariaErrormessage}),C("div",{className:this.question.cssClasses.itemDecorator},C("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?C("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?C(Ve,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,a),s)))},e}(De);hn.Instance.registerQuestion("imagepicker",(function(t){return C(ni,t)}));var ri=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ii=function(t){function e(e){return t.call(this,e)||this}return ri(e,t),e.prototype.componentDidMount=function(){var e=this;t.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){e.forceUpdate()}},e.prototype.componentWillUnmount=function(){t.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.question.getImageCss(),n={objectFit:this.question.imageFit,width:this.question.renderedStyleWidth,height:this.question.renderedStyleHeight};this.question.imageLink&&!this.question.contentNotLoaded||(n.display="none");var o=null;"image"===this.question.renderedMode&&(o=C("img",{className:e,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoad:function(e){t.question.onLoadHandler()},onError:function(e){t.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(o=C("video",{controls:!0,className:e,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoadedMetadata:function(e){t.question.onLoadHandler()},onError:function(e){t.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(o=C("iframe",{className:e,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n}));var r=null;return this.question.imageLink&&!this.question.contentNotLoaded||(r=C("div",{className:this.question.cssClasses.noImage},C(Ve,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),C("div",{className:this.question.cssClasses.root},o,r)},e}(Be);hn.Instance.registerQuestion("image",(function(t){return C(ii,t)}));var si=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ui=function(t){function e(e){var n=t.call(this,e)||this;return n.state={value:n.question.value},n}return si(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.renderElement=function(){var t=this,e=this.question.cssClasses,n=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,o=this.renderCleanButton();return C("div",{className:e.root,ref:function(e){return t.setControl(e)},style:{width:this.question.renderedCanvasWidth}},C("div",{className:e.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),C("div",null,this.renderBackgroundImage(),C("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(e){t.question.onBlur(e)}})),o,n)},e.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?C("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},e.prototype.renderLoadingIndicator=function(){return C("div",{className:this.question.cssClasses.loadingIndicator},C(Lo,null))},e.prototype.renderCleanButton=function(){var t=this;if(!this.question.canShowClearButton)return null;var e=this.question.cssClasses;return C("div",{className:e.controls},C("button",{type:"button",className:e.clearButton,title:this.question.clearButtonCaption,onClick:function(){return t.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?C(Ve,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):C("span",null,"✖")))},e}(Be);hn.Instance.registerQuestion("signaturepad",(function(t){return C(ui,t)}));var ai=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),li=function(t){function e(e){return t.call(this,e)||this}return ai(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.question},e.prototype.renderElement=function(){var t=this.renderItems();return Pe.createElement("div",{className:this.question.cssClasses.root},t)},e.prototype.renderItems=function(){var t=this;return this.question.visibleChoices.map((function(e,n){return Pe.createElement(ci,{key:t.question.inputId+"_"+n,item:e,question:t.question,index:n})}))},e}(Be),ci=function(t){function e(e){return t.call(this,e)||this}return ai(e,t),Object.defineProperty(e.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.renderElement=function(){this.model=new Ne.ButtonGroupItemModel(this.question,this.item,this.index);var t=this.renderIcon(),e=this.renderInput(),n=this.renderCaption();return Pe.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},e,Pe.createElement("div",{className:this.model.css.decorator},t,n))},e.prototype.renderIcon=function(){return this.model.iconName?Pe.createElement(Ve,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},e.prototype.renderInput=function(){var t=this;return Pe.createElement("input",{className:this.model.css.control,id:this.model.id,type:"radio",name:this.model.name,checked:this.model.selected,value:this.model.value,disabled:this.model.readOnly,onChange:function(){t.model.onChange()},"aria-required":this.model.isRequired,"aria-label":this.model.caption.renderedHtml,"aria-invalid":this.model.hasErrors,"aria-errormessage":this.model.describedBy,role:"radio"})},e.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var t=this.renderLocString(this.model.caption);return Pe.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},t)},e}(Te),pi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),di=function(t){function e(e){return t.call(this,e)||this}return pi(e,t),e.prototype.getStateElements=function(){var e=t.prototype.getStateElements.call(this);return this.question.contentQuestion&&e.push(this.question.contentQuestion),e},e.prototype.renderElement=function(){return En.renderQuestionBody(this.creator,this.question.contentQuestion)},e}(Me),hi=function(t){function e(e){return t.call(this,e)||this}return pi(e,t),e.prototype.canRender=function(){return!!this.question.contentPanel},e.prototype.renderElement=function(){return C(Yn,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},e}(Me);hn.Instance.registerQuestion("custom",(function(t){return C(di,t)})),hn.Instance.registerQuestion("composite",(function(t){return C(hi,t)}));var fi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),mi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fi(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.render=function(){if(!this.item)return null;var t=[],e=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var n=Pe.createElement(Ve,{key:"icon",className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title});t.push(n),t.push(Pe.createElement("span",{key:"text"},e))}else t.push(e);if(this.item.markerIconName){n=Pe.createElement(Ve,{key:"marker",className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:this.item.markerIconSize});t.push(n)}return Pe.createElement(Pe.Fragment,null,t)},e}(Te);xe.Instance.registerElement("sv-list-item-content",(function(t){return Pe.createElement(mi,t)}));var yi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),vi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yi(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.item},e.prototype.render=function(){var t;if(!this.item)return null;var e=xe.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return Pe.createElement(Pe.Fragment,null,e,Pe.createElement(Ze,{model:null===(t=this.item)||void 0===t?void 0:t.popupModel}))},e}(Te);xe.Instance.registerElement("sv-list-item-group",(function(t){return Pe.createElement(vi,t)}));var _i=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),gi=function(t){function e(e){return t.call(this,e)||this}return _i(e,t),Object.defineProperty(e.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),e.prototype.render=function(){var t=[];return t.push(Pe.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},Pe.createElement("img",{className:this.survey.css.logoImage,src:this.survey.locLogo.renderedHtml,alt:this.survey.locTitle.renderedHtml,width:this.survey.renderedLogoWidth,height:this.survey.renderedLogoHeight,style:{objectFit:this.survey.logoFit,width:this.survey.renderedStyleLogoWidth,height:this.survey.renderedStyleLogoHeight}}))),Pe.createElement(Pe.Fragment,null,t)},e}(Pe.Component);xe.Instance.registerElement("sv-logo-image",(function(t){return Pe.createElement(gi,t)}));var bi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ci=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return bi(e,t),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),e.prototype.handleOnRowRemoveClick=function(t){this.question.removeRowUI(this.row)},e.prototype.renderElement=function(){var t=this.renderLocString(this.question.locRemoveRowText);return Pe.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},t,Pe.createElement("span",{className:this.question.cssClasses.iconRemove}))},e}(De);xe.Instance.registerElement("sv-matrix-remove-button",(function(t){return Pe.createElement(Ci,t)}));var qi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),wi=function(t){function e(e){var n=t.call(this,e)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return qi(e,t),e.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),e.prototype.handleOnShowHideClick=function(t){this.row.showHideDetailPanelClick()},e.prototype.renderElement=function(){var t=this.row.isDetailPanelShowing,e=t,n=t?this.row.detailPanelId:void 0;return Pe.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":e,"aria-controls":n},Pe.createElement(Ve,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},e}(De);xe.Instance.registerElement("sv-matrix-detail-button",(function(t){return Pe.createElement(wi,t)}));var Oi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ei=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handleClick=function(t){e.question.removePanelUI(e.data.panel)},e}return Oi(e,t),e.prototype.renderElement=function(){var t=this.renderLocString(this.question.locPanelRemoveText);return Pe.createElement("button",{className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},Pe.createElement("span",{className:this.question.cssClasses.buttonRemoveText},t),Pe.createElement("span",{className:this.question.cssClasses.iconRemove}))},e}(Er);xe.Instance.registerElement("sv-paneldynamic-remove-btn",(function(t){return Pe.createElement(Ei,t)}));var Si=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ii=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Si(e,t),Object.defineProperty(e.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),e.prototype.canRender=function(){return this.item.isVisible},e.prototype.renderElement=function(){return Pe.createElement("input",{className:this.item.innerCss,type:"button",disabled:this.item.disabled,onMouseDown:this.item.data&&this.item.data.mouseDown,onClick:this.item.action,title:this.item.getTooltip(),value:this.item.title})},e}(De);xe.Instance.registerElement("sv-nav-btn",(function(t){return Pe.createElement(Ii,t)}));var Pi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ni=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangedHandler=function(t,e){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=Pe.createRef(),n}return Pi(e,t),Object.defineProperty(e.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){this.reactOnStrChanged()},e.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},e.prototype.componentDidUpdate=function(t,e){t.locStr&&t.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},e.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},e.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var t=this.renderString();return this.isRendering=!1,t},e.prototype.renderString=function(){var t=this.locStr.allowLineBreaks?"sv-string-viewer sv-string-viewer--multiline":"sv-string-viewer";if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return Pe.createElement("span",{ref:this.rootRef,className:t,style:this.style,dangerouslySetInnerHTML:e})}return Pe.createElement("span",{ref:this.rootRef,className:t,style:this.style},this.locStr.renderedHtml)},e}(Pe.Component);xe.Instance.registerElement(Ne.LocalizableString.defaultRenderer,(function(t){return Pe.createElement(Ni,t)}));var xi=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ri=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return xi(e,t),e.prototype.render=function(){return Pe.createElement("div",null,Pe.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),Pe.createElement("span",{className:this.props.cssClasses.error.item||void 0},Pe.createElement(Ni,{locStr:this.props.error.locText})))},e}(Pe.Component);xe.Instance.registerElement("sv-question-error",(function(t){return Pe.createElement(Ri,t)}));var ji=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),ki=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ji(e,t),e.prototype.render=function(){var t;return Pe.createElement("div",{className:"sv-skeleton-element",id:null===(t=this.props.element)||void 0===t?void 0:t.id})},e}(Pe.Component);xe.Instance.registerElement("sv-skeleton",(function(t){return Pe.createElement(ki,t)}));var Ti=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Di=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ti(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.renderLogoImage=function(){var t=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),e=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return xe.Instance.createElement(t,{data:e})},e.prototype.render=function(){return Pe.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?Pe.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?Pe.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},Pe.createElement(dn,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?Pe.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},Pe.createElement("div",{className:this.model.survey.css.description},Te.renderLocString(this.model.survey.locDescription))):null)},e}(Pe.Component),Bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ti(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.renderLogoImage=function(){var t=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),e=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return xe.Instance.createElement(t,{data:e})},e.prototype.render=function(){return Pe.createElement("div",{className:this.model.css,style:this.model.style},Pe.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?Pe.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?Pe.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},Pe.createElement(dn,{element:this.model.survey})):null,this.model.showDescription?Pe.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},Pe.createElement("div",{className:this.model.survey.css.description},Te.renderLocString(this.model.survey.locDescription))):null))},e}(Pe.Component),Mi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Ti(e,t),Object.defineProperty(e.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),e.prototype.getStateElement=function(){return this.model},e.prototype.renderElement=function(){if(this.model.survey=this.props.survey,"advanced"!==this.props.survey.headerView)return null;var t=null;return t=this.props.survey.isMobile?Pe.createElement(Di,{model:this.model}):Pe.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map((function(t,e){return Pe.createElement(Bi,{key:e,model:t})}))),Pe.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?Pe.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,t)},e}(Te);xe.Instance.registerElement("sv-header",(function(t){return Pe.createElement(Mi,t)}));var Li=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}}(),Ai=function(t){function e(e){var n=t.call(this,e)||this;return n.onInput=function(t){n.locStr.text=t.target.innerText},n.onClick=function(t){t.preventDefault(),t.stopPropagation()},n.state={changed:0},n}return Li(e,t),Object.defineProperty(e.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),e.prototype.componentDidMount=function(){if(this.locStr){var t=this;this.locStr.onChanged=function(){t.setState({changed:t.state.changed+1})}}},e.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},e.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var t={__html:this.locStr.renderedHtml};return Pe.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:t,onBlur:this.onInput,onClick:this.onClick})}return Pe.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},e}(Pe.Component);xe.Instance.registerElement(Ne.LocalizableString.editableRenderer,(function(t){return Pe.createElement(Ai,t)}));var Hi=function(){return(Hi=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)};function Ui(t,e,n){void 0===n&&(n={}),Zt(C(Qn,Hi({model:t},n)),e)}function Wi(t,e,n){void 0===n&&(n={}),Zt(C(Xr,Hi({model:t},n)),e)}function Fi(t){return this.each((function(){Wi(t.model,this,t)}))}var Qi=window.jQuery||window.$;if(void 0!==Qi)Vi(Qi);else try{Vi(Qi=n(1))}catch(t){}function Vi(t){t.fn.extend({Survey:function(t){return this.each((function(){Ui(t.model,this,t)}))},PopupSurvey:Fi,SurveyWindow:Fi})}Ne.SurveyModel.platform="js-ui",Ne.SurveyModel.prototype.render=function(t){void 0===t&&(t=null),this.renderCallback?this.renderCallback():Ui(this,t)};var zi=o;Object(Ne.checkLibraryVersion)("1.11.13","survey-js-ui")}])}));