survey-js-ui 1.12.12 → 1.12.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.
package/survey-js-ui.min.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.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
6
|
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("survey-core"),function(){try{return require("jquery")}catch(e){}}()):"function"==typeof define&&define.amd?define("survey-js-ui",["survey-core","jquery"],t):"object"==typeof exports?exports["survey-js-ui"]=t(require("survey-core"),function(){try{return require("jquery")}catch(e){}}()):e.SurveyUI=t(e.Survey,e.jQuery)}(this,(function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(t,n){t.exports=e},function(e,t,n){
|
|
7
7
|
/*!
|
|
8
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
8
|
+
* surveyjs - Survey JavaScript library v1.12.13
|
|
9
9
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
10
10
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
11
11
|
*/
|
|
@@ -316,7 +316,7 @@ var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r]
|
|
|
316
316
|
/*! no static exports found */
|
|
317
317
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})},e.exports=r()},function(e,t,n){
|
|
318
318
|
/*!
|
|
319
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
319
|
+
* surveyjs - Survey JavaScript library v1.12.13
|
|
320
320
|
* Copyright (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
321
321
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
322
322
|
*/
|
|
@@ -625,4 +625,4 @@ var r;r=function(){return function(e){var t={};function n(r){if(t[r])return t[r]
|
|
|
625
625
|
!*** ./packages/survey-core/src/images-v2/smiley-rate9-24x24.svg ***!
|
|
626
626
|
\*******************************************************************/
|
|
627
627
|
/*! no static exports found */
|
|
628
|
-
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})},e.exports=r()},function(e,n){if(void 0===t){var r=new Error("Cannot find module 'undefined'");throw r.code="MODULE_NOT_FOUND",r}e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"useState",(function(){return ue})),n.d(t,"useId",(function(){return Ce})),n.d(t,"useReducer",(function(){return ce})),n.d(t,"useEffect",(function(){return le})),n.d(t,"useLayoutEffect",(function(){return pe})),n.d(t,"useInsertionEffect",(function(){return Ne})),n.d(t,"useTransition",(function(){return Pe})),n.d(t,"useDeferredValue",(function(){return Ie})),n.d(t,"useSyncExternalStore",(function(){return ke})),n.d(t,"startTransition",(function(){return Me})),n.d(t,"useRef",(function(){return he})),n.d(t,"useImperativeHandle",(function(){return de})),n.d(t,"useMemo",(function(){return fe})),n.d(t,"useCallback",(function(){return me})),n.d(t,"useContext",(function(){return ve})),n.d(t,"useDebugValue",(function(){return ye})),n.d(t,"version",(function(){return mt})),n.d(t,"Children",(function(){return Ve})),n.d(t,"render",(function(){return rt})),n.d(t,"hydrate",(function(){return ot})),n.d(t,"unmountComponentAtNode",(function(){return wt})),n.d(t,"createPortal",(function(){return Je})),n.d(t,"createElement",(function(){return w})),n.d(t,"createContext",(function(){return z})),n.d(t,"createFactory",(function(){return vt})),n.d(t,"cloneElement",(function(){return _t})),n.d(t,"createRef",(function(){return x})),n.d(t,"Fragment",(function(){return q})),n.d(t,"isValidElement",(function(){return yt})),n.d(t,"isFragment",(function(){return gt})),n.d(t,"isMemo",(function(){return Ct})),n.d(t,"findDOMNode",(function(){return bt})),n.d(t,"Component",(function(){return O})),n.d(t,"PureComponent",(function(){return Re})),n.d(t,"memo",(function(){return je})),n.d(t,"forwardRef",(function(){return Te})),n.d(t,"flushSync",(function(){return qt})),n.d(t,"unstable_batchedUpdates",(function(){return xt})),n.d(t,"StrictMode",(function(){return Ot})),n.d(t,"Suspense",(function(){return Ue})),n.d(t,"SuspenseList",(function(){return Qe})),n.d(t,"lazy",(function(){return Fe})),n.d(t,"renderSurvey",(function(){return $s})),n.d(t,"renderPopupSurvey",(function(){return Js})),n.d(t,"preact",(function(){return ti})),n.d(t,"Survey",(function(){return Kn})),n.d(t,"attachKey2click",(function(){return $n})),n.d(t,"ReactSurveyElementsWrapper",(function(){return Mt})),n.d(t,"SurveyNavigationBase",(function(){return Gn})),n.d(t,"SurveyTimerPanel",(function(){return Xn})),n.d(t,"SurveyPage",(function(){return In})),n.d(t,"SurveyRow",(function(){return Vt})),n.d(t,"SurveyPanel",(function(){return tr})),n.d(t,"SurveyFlowPanel",(function(){return rr})),n.d(t,"SurveyQuestion",(function(){return On})),n.d(t,"SurveyElementErrors",(function(){return En})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return kn})),n.d(t,"ReactSurveyElement",(function(){return Rt})),n.d(t,"SurveyElementBase",(function(){return Nt})),n.d(t,"SurveyQuestionElementBase",(function(){return jt})),n.d(t,"SurveyQuestionCommentItem",(function(){return gn})),n.d(t,"SurveyQuestionComment",(function(){return yn})),n.d(t,"SurveyQuestionCheckbox",(function(){return sr})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return ir})),n.d(t,"SurveyQuestionRanking",(function(){return ur})),n.d(t,"SurveyQuestionRankingItem",(function(){return cr})),n.d(t,"SurveyQuestionRankingItemContent",(function(){return lr})),n.d(t,"RatingItem",(function(){return dr})),n.d(t,"RatingItemStar",(function(){return mr})),n.d(t,"RatingItemSmiley",(function(){return yr})),n.d(t,"RatingDropdownItem",(function(){return Cr})),n.d(t,"TagboxFilterString",(function(){return wr})),n.d(t,"SurveyQuestionOptionItem",(function(){return xr})),n.d(t,"SurveyQuestionDropdownBase",(function(){return Or})),n.d(t,"SurveyQuestionDropdown",(function(){return Lr})),n.d(t,"SurveyQuestionTagboxItem",(function(){return Sr})),n.d(t,"SurveyQuestionTagbox",(function(){return Ir})),n.d(t,"SurveyQuestionDropdownSelect",(function(){return Nr})),n.d(t,"SurveyQuestionMatrix",(function(){return jr})),n.d(t,"SurveyQuestionMatrixRow",(function(){return Hr})),n.d(t,"SurveyQuestionMatrixCell",(function(){return Br})),n.d(t,"SurveyQuestionHtml",(function(){return Dr})),n.d(t,"SurveyQuestionFile",(function(){return Fr})),n.d(t,"SurveyFileChooseButton",(function(){return Ur})),n.d(t,"SurveyFilePreview",(function(){return Gr})),n.d(t,"SurveyQuestionMultipleText",(function(){return Xr})),n.d(t,"SurveyQuestionRadiogroup",(function(){return ro})),n.d(t,"SurveyQuestionRadioItem",(function(){return oo})),n.d(t,"SurveyQuestionText",(function(){return io})),n.d(t,"SurveyQuestionBoolean",(function(){return uo})),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return lo})),n.d(t,"SurveyQuestionBooleanRadio",(function(){return ho})),n.d(t,"SurveyQuestionEmpty",(function(){return mo})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return Eo})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return bo})),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return ko})),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return Mo})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return Io})),n.d(t,"SurveyQuestionPanelDynamic",(function(){return Ao})),n.d(t,"SurveyProgress",(function(){return Fo})),n.d(t,"SurveyProgressButtons",(function(){return zo})),n.d(t,"SurveyProgressToc",(function(){return Xo})),n.d(t,"SurveyQuestionRating",(function(){return ts})),n.d(t,"SurveyQuestionRatingDropdown",(function(){return rs})),n.d(t,"SurveyQuestionExpression",(function(){return ss})),n.d(t,"PopupSurvey",(function(){return as})),n.d(t,"SurveyWindow",(function(){return us})),n.d(t,"ReactQuestionFactory",(function(){return pn})),n.d(t,"ReactElementFactory",(function(){return St})),n.d(t,"SurveyQuestionImagePicker",(function(){return ls})),n.d(t,"SurveyQuestionImage",(function(){return ds})),n.d(t,"SurveyQuestionSignaturePad",(function(){return ms})),n.d(t,"SurveyQuestionButtonGroup",(function(){return ys})),n.d(t,"SurveyQuestionCustom",(function(){return _s})),n.d(t,"SurveyQuestionComposite",(function(){return ws})),n.d(t,"Popup",(function(){return Gt})),n.d(t,"ListItemContent",(function(){return xs})),n.d(t,"ListItemGroup",(function(){return Os})),n.d(t,"List",(function(){return Go})),n.d(t,"TitleActions",(function(){return un})),n.d(t,"TitleElement",(function(){return ln})),n.d(t,"SurveyActionBar",(function(){return rn})),n.d(t,"LogoImage",(function(){return Ls})),n.d(t,"SurveyHeader",(function(){return Nn})),n.d(t,"SvgIcon",(function(){return Wt})),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return Ss})),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return Is})),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return Co})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return Ro})),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return Ns})),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return To})),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return Ho})),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return Vo})),n.d(t,"SurveyNavigationButton",(function(){return js})),n.d(t,"QuestionErrorComponent",(function(){return Ds})),n.d(t,"MatrixRow",(function(){return yo})),n.d(t,"Skeleton",(function(){return Zs})),n.d(t,"NotifierComponent",(function(){return Bn})),n.d(t,"ComponentsContainer",(function(){return Dn})),n.d(t,"CharacterCounterComponent",(function(){return dn})),n.d(t,"HeaderMobile",(function(){return Us})),n.d(t,"HeaderCell",(function(){return Ws})),n.d(t,"Header",(function(){return Fs})),n.d(t,"SurveyLocStringViewer",(function(){return Bs})),n.d(t,"SurveyLocStringEditor",(function(){return zs})),n.d(t,"LoadingIndicatorComponent",(function(){return Zr})),n.d(t,"SvgBundleComponent",(function(){return Zn})),n.d(t,"PopupModal",(function(){return Un})),n.d(t,"SurveyModel",(function(){return kt.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return kt.SurveyWindowModel})),n.d(t,"settings",(function(){return kt.settings})),n.d(t,"ISurveyEnvironment",(function(){return kt.ISurveyEnvironment})),n.d(t,"surveyLocalization",(function(){return kt.surveyLocalization})),n.d(t,"surveyStrings",(function(){return kt.surveyStrings})),n.d(t,"Model",(function(){return kt.SurveyModel}));var r={};n.r(r),n.d(r,"Component",(function(){return O})),n.d(r,"Fragment",(function(){return q})),n.d(r,"createContext",(function(){return z})),n.d(r,"createElement",(function(){return w})),n.d(r,"createRef",(function(){return x})),n.d(r,"useCallback",(function(){return me})),n.d(r,"useContext",(function(){return ve})),n.d(r,"useDebugValue",(function(){return ye})),n.d(r,"useEffect",(function(){return le})),n.d(r,"useErrorBoundary",(function(){return ge})),n.d(r,"useId",(function(){return Ce})),n.d(r,"useImperativeHandle",(function(){return de})),n.d(r,"useLayoutEffect",(function(){return pe})),n.d(r,"useMemo",(function(){return fe})),n.d(r,"useReducer",(function(){return ce})),n.d(r,"useRef",(function(){return he})),n.d(r,"useState",(function(){return ue})),n.d(r,"Children",(function(){return Ve})),n.d(r,"PureComponent",(function(){return Re})),n.d(r,"StrictMode",(function(){return Ot})),n.d(r,"Suspense",(function(){return Ue})),n.d(r,"SuspenseList",(function(){return Qe})),n.d(r,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return ft})),n.d(r,"cloneElement",(function(){return _t})),n.d(r,"createFactory",(function(){return vt})),n.d(r,"createPortal",(function(){return Je})),n.d(r,"default",(function(){return Lt})),n.d(r,"findDOMNode",(function(){return bt})),n.d(r,"flushSync",(function(){return qt})),n.d(r,"forwardRef",(function(){return Te})),n.d(r,"hydrate",(function(){return ot})),n.d(r,"isElement",(function(){return Et})),n.d(r,"isFragment",(function(){return gt})),n.d(r,"isMemo",(function(){return Ct})),n.d(r,"isValidElement",(function(){return yt})),n.d(r,"lazy",(function(){return Fe})),n.d(r,"memo",(function(){return je})),n.d(r,"render",(function(){return rt})),n.d(r,"startTransition",(function(){return Me})),n.d(r,"unmountComponentAtNode",(function(){return wt})),n.d(r,"unstable_batchedUpdates",(function(){return xt})),n.d(r,"useDeferredValue",(function(){return Ie})),n.d(r,"useInsertionEffect",(function(){return Ne})),n.d(r,"useSyncExternalStore",(function(){return ke})),n.d(r,"useTransition",(function(){return Pe})),n.d(r,"version",(function(){return mt}));var o,s,i,a,u,c,l,p,h,d,f,m={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function C(e,t){for(var n in t)e[n]=t[n];return e}function _(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function w(e,t,n){var r,s,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?s=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return b(e,a,r,s,null)}function b(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++i:o,__i:-1,__u:0};return null==o&&null!=s.vnode&&s.vnode(a),a}function x(){return{current:null}}function q(e){return e.children}function O(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?E(e):null}function L(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return L(e)}}function k(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!S.__r++||u!==s.debounceRendering)&&((u=s.debounceRendering)||c)(S)}function S(){var e,t,n,r,o,i,u,c;for(a.sort(l);e=a.shift();)e.__d&&(t=a.length,r=void 0,i=(o=(n=e).__v).__e,u=[],c=[],n.__P&&((r=C({},o)).__v=o.__v+1,s.vnode&&s.vnode(r),T(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,u,null==i?E(o):i,!!(32&o.__u),c),r.__v=o.__v,r.__.__k[r.__i]=r,D(u,r,c),r.__e!=i&&L(r)),a.length>t&&a.sort(l));S.__r=0}function M(e,t,n,r,o,s,i,a,u,c,l){var p,h,d,f,y,g=r&&r.__k||v,C=t.length;for(n.__d=u,I(n,t,g),u=n.__d,p=0;p<C;p++)null!=(d=n.__k[p])&&(h=-1===d.__i?m:g[d.__i]||m,d.__i=p,T(e,d,h,o,s,i,a,u,c,l),f=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&Z(h.ref,null,d),l.push(d.ref,d.__c||f,d)),null==y&&null!=f&&(y=f),65536&d.__u||h.__k===d.__k?u=P(d,u,e):"function"==typeof d.type&&void 0!==d.__d?u=d.__d:f&&(u=f.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=u,n.__e=y}function I(e,t,n){var r,o,s,i,a,u=t.length,c=n.length,l=c,p=0;for(e.__k=[],r=0;r<u;r++)null!=(o=t[r])&&"boolean"!=typeof o&&"function"!=typeof o?(i=r+p,(o=e.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?b(null,o,null,null,null):g(o)?b(q,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?b(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,-1!==(a=o.__i=R(o,n,i,l))&&(l--,(s=n[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&p--,"function"!=typeof o.type&&(o.__u|=65536)):a!==i&&(a==i-1?p--:a==i+1?p++:(a>i?p--:p++,o.__u|=65536))):o=e.__k[r]=null;if(l)for(r=0;r<c;r++)null!=(s=n[r])&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=E(s)),A(s,s))}function P(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=P(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=E(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function N(e,t){return t=t||[],null==e||"boolean"==typeof e||(g(e)?e.some((function(e){N(e,t)})):t.push(e)),t}function R(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,u=t[n];if(null===u||u&&o==u.key&&s===u.type&&0==(131072&u.__u))return n;if(("function"!=typeof s||s===q||o)&&r>(null!=u&&0==(131072&u.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((u=t[i])&&0==(131072&u.__u)&&o==u.key&&s===u.type)return i;i--}if(a<t.length){if((u=t[a])&&0==(131072&u.__u)&&o==u.key&&s===u.type)return a;a++}}return-1}function j(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||y.test(t)?n:n+"px"}function H(e,t,n,r,o){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||j(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||j(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=p,e.addEventListener(t,s?d:h,s)):e.removeEventListener(t,s?d:h,s);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function B(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=p++;else if(t.t<n.u)return;return s.event&&(t=s.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function T(e,t,n,r,o,i,a,u,c,l){var p,h,d,f,m,v,y,_,w,b,x,E,L,k,S,I,P=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[u=t.__e=n.__e]),(p=s.__b)&&p(t);e:if("function"==typeof P)try{if(_=t.props,w="prototype"in P&&P.prototype.render,b=(p=P.contextType)&&r[p.__c],x=p?b?b.props.value:p.__:r,n.__c?y=(h=t.__c=n.__c).__=h.__E:(w?t.__c=h=new P(_,x):(t.__c=h=new O(_,x),h.constructor=P,h.render=U),b&&b.sub(h),h.props=_,h.state||(h.state={}),h.context=x,h.__n=r,d=h.__d=!0,h.__h=[],h._sb=[]),w&&null==h.__s&&(h.__s=h.state),w&&null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=C({},h.__s)),C(h.__s,P.getDerivedStateFromProps(_,h.__s))),f=h.props,m=h.state,h.__v=t,d)w&&null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),w&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(w&&null==P.getDerivedStateFromProps&&_!==f&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(_,x),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(_,h.__s,x)||t.__v===n.__v)){for(t.__v!==n.__v&&(h.props=_,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[],h.__h.length&&a.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(_,h.__s,x),w&&null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(f,m,v)}))}if(h.context=x,h.props=_,h.__P=e,h.__e=!1,L=s.__r,k=0,w){for(h.state=h.__s,h.__d=!1,L&&L(t),p=h.render(h.props,h.state,h.context),S=0;S<h._sb.length;S++)h.__h.push(h._sb[S]);h._sb=[]}else do{h.__d=!1,L&&L(t),p=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++k<25);h.state=h.__s,null!=h.getChildContext&&(r=C(C({},r),h.getChildContext())),w&&!d&&null!=h.getSnapshotBeforeUpdate&&(v=h.getSnapshotBeforeUpdate(f,m)),M(e,g(I=null!=p&&p.type===q&&null==p.key?p.props.children:p)?I:[I],t,n,r,o,i,a,u,c,l),h.base=t.__e,t.__u&=-161,h.__h.length&&a.push(h),y&&(h.__E=h.__=null)}catch(e){if(t.__v=null,c||null!=i){for(t.__u|=c?160:128;u&&8===u.nodeType&&u.nextSibling;)u=u.nextSibling;i[i.indexOf(u)]=null,t.__e=u}else t.__e=n.__e,t.__k=n.__k;s.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=V(n.__e,t,n,r,o,i,a,c,l);(p=s.diffed)&&p(t)}function D(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Z(n[r],n[++r],n[++r]);s.__c&&s.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){s.__e(e,t.__v)}}))}function V(e,t,n,r,i,a,u,c,l){var p,h,d,f,v,y,C,w=n.props,b=t.props,x=t.type;if("svg"===x?i="http://www.w3.org/2000/svg":"math"===x?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(p=0;p<a.length;p++)if((v=a[p])&&"setAttribute"in v==!!x&&(x?v.localName===x:3===v.nodeType)){e=v,a[p]=null;break}if(null==e){if(null===x)return document.createTextNode(b);e=document.createElementNS(i,x,b.is&&b),c&&(s.__m&&s.__m(t,a),c=!1),a=null}if(null===x)w===b||c&&e.data===b||(e.data=b);else{if(a=a&&o.call(e.childNodes),w=n.props||m,!c&&null!=a)for(w={},p=0;p<e.attributes.length;p++)w[(v=e.attributes[p]).name]=v.value;for(p in w)if(v=w[p],"children"==p);else if("dangerouslySetInnerHTML"==p)d=v;else if(!(p in b)){if("value"==p&&"defaultValue"in b||"checked"==p&&"defaultChecked"in b)continue;H(e,p,null,v,i)}for(p in b)v=b[p],"children"==p?f=v:"dangerouslySetInnerHTML"==p?h=v:"value"==p?y=v:"checked"==p?C=v:c&&"function"!=typeof v||w[p]===v||H(e,p,v,w[p],i);if(h)c||d&&(h.__html===d.__html||h.__html===e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(d&&(e.innerHTML=""),M(e,g(f)?f:[f],t,n,r,"foreignObject"===x?"http://www.w3.org/1999/xhtml":i,a,u,a?a[0]:n.__k&&E(n,0),c,l),null!=a)for(p=a.length;p--;)_(a[p]);c||(p="value","progress"===x&&null==y?e.removeAttribute("value"):void 0!==y&&(y!==e[p]||"progress"===x&&!y||"option"===x&&y!==w[p])&&H(e,p,y,w[p],i),p="checked",void 0!==C&&C!==e[p]&&H(e,p,C,w[p],i))}return e}function Z(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){s.__e(e,n)}}function A(e,t,n){var r,o;if(s.unmount&&s.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Z(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){s.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&A(r[o],t,n||"function"!=typeof e.type);n||_(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function W(e,t,n){var r,i,a,u;s.__&&s.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,a=[],u=[],T(t,e=(!r&&n||t).__k=w(q,null,[e]),i||m,m,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?o.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r,u),D(a,e,u)}function F(e,t){W(e,t,F)}function Q(e,t,n){var r,s,i,a,u=C({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?s=t[i]:u[i]=void 0===t[i]&&void 0!==a?a[i]:t[i];return arguments.length>2&&(u.children=arguments.length>3?o.call(arguments,2):n),b(e.type,u,r||e.key,s||e.ref,null)}function z(e,t){var n={__c:t="__cC"+f++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,k(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}o=v.slice,s={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&null!=s.getDerivedStateFromError&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},i=0,O.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=C({},this.state),"function"==typeof e&&(e=e(C({},n),this.props)),e&&C(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},O.prototype.render=q,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,p=0,h=B(!1),d=B(!0),f=0;var K,$,J,G,Y=0,X=[],ee=s,te=ee.__b,ne=ee.__r,re=ee.diffed,oe=ee.__c,se=ee.unmount,ie=ee.__;function ae(e,t){ee.__h&&ee.__h($,e,Y||t),Y=0;var n=$.__H||($.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ue(e){return Y=1,ce(Ee,e)}function ce(e,t,n){var r=ae(K++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ee(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=$,!$.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var i=r.__c.props!==e;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),s&&s.call(this,e,t,n)||i};$.u=!0;var s=$.shouldComponentUpdate,i=$.componentWillUpdate;$.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,o(e,t,n),s=r}i&&i.call(this,e,t,n)},$.shouldComponentUpdate=o}return r.__N||r.__}function le(e,t){var n=ae(K++,3);!ee.__s&&Oe(n.__H,t)&&(n.__=e,n.i=t,$.__H.__h.push(n))}function pe(e,t){var n=ae(K++,4);!ee.__s&&Oe(n.__H,t)&&(n.__=e,n.i=t,$.__h.push(n))}function he(e){return Y=5,fe((function(){return{current:e}}),[])}function de(e,t,n){Y=6,pe((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function fe(e,t){var n=ae(K++,7);return Oe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function me(e,t){return Y=8,fe((function(){return e}),t)}function ve(e){var t=$.context[e.__c],n=ae(K++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub($)),t.props.value):e.__}function ye(e,t){ee.useDebugValue&&ee.useDebugValue(t?t(e):e)}function ge(e){var t=ae(K++,10),n=ue();return t.__=e,$.componentDidCatch||($.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function Ce(){var e=ae(K++,11);if(!e.__){for(var t=$.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function _e(){for(var e;e=X.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(xe),e.__H.__h.forEach(qe),e.__H.__h=[]}catch(t){e.__H.__h=[],ee.__e(t,e.__v)}}ee.__b=function(e){$=null,te&&te(e)},ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ie&&ie(e,t)},ee.__r=function(e){ne&&ne(e),K=0;var t=($=e.__c).__H;t&&(J===$?(t.__h=[],$.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(xe),t.__h.forEach(qe),t.__h=[],K=0)),J=$},ee.diffed=function(e){re&&re(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==X.push(t)&&G===ee.requestAnimationFrame||((G=ee.requestAnimationFrame)||be)(_e)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),J=$=null},ee.__c=function(e,t){t.some((function(e){try{e.__h.forEach(xe),e.__h=e.__h.filter((function(e){return!e.__||qe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ee.__e(n,e.__v)}})),oe&&oe(e,t)},ee.unmount=function(e){se&&se(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{xe(e)}catch(e){t=e}})),n.__H=void 0,t&&ee.__e(t,n.__v))};var we="function"==typeof requestAnimationFrame;function be(e){var t,n=function(){clearTimeout(r),we&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);we&&(t=requestAnimationFrame(n))}function xe(e){var t=$,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),$=t}function qe(e){var t=$;e.__c=e.__(),$=t}function Oe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ee(e,t){return"function"==typeof t?t(e):t}function Le(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ke(e,t){var n=t(),r=ue({t:{__:n,u:t}}),o=r[0].t,s=r[1];return pe((function(){o.__=n,o.u=t,Se(o)&&s({t:o})}),[e,n,t]),le((function(){return Se(o)&&s({t:o}),e((function(){Se(o)&&s({t:o})}))}),[e]),n}function Se(e){var t,n,r=e.u,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function Me(e){e()}function Ie(e){return e}function Pe(){return[!1,Me]}var Ne=pe;function Re(e,t){this.props=e,this.context=t}function je(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Le(this.props,e)}function r(t){return this.shouldComponentUpdate=n,w(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Re.prototype=new O).isPureReactComponent=!0,Re.prototype.shouldComponentUpdate=function(e,t){return Le(this.props,e)||Le(this.state,t)};var He=s.__b;s.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),He&&He(e)};var Be="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Te(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var r=e(t,n);return t.ref=n,r}return t.$$typeof=Be,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var De=function(e,t){return null==e?null:N(N(e).map(t))},Ve={map:De,forEach:De,count:function(e){return e?N(e).length:0},only:function(e){var t=N(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:N},Ze=s.__e;s.__e=function(e,t,n,r){if(e.then)for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ze(e,t,n,r)};var Ae=s.unmount;function Ue(){this.__u=0,this.o=null,this.__b=null}function We(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Fe(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return w(n,o)}return o.displayName="Lazy",o.__f=!0,o}function Qe(){this.i=null,this.l=null}s.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ae&&Ae(e)},(Ue.prototype=new O).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=We(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},Ue.prototype.componentWillUnmount=function(){this.o=[]},Ue.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&w(q,null,e.fallback);return o&&(o.__u&=-33),[w(q,null,t.__a?null:e.children),o]};var ze=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Ke(e){return this.getChildContext=function(){return e.context},e.children}function $e(e){var t=this,n=e.h;t.componentWillUnmount=function(){W(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),W(w(Ke,{context:t.context},e.__v),t.v)}function Je(e,t){var n=w($e,{__v:e,h:t});return n.containerInfo=t,n}(Qe.prototype=new O).__a=function(e){var t=this,n=We(t.__v),r=t.l.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),ze(t,e,r)):o()};n?n(s):s()}},Qe.prototype.render=function(e){this.i=null,this.l=new Map;var t=N(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Qe.prototype.componentDidUpdate=Qe.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){ze(e,n,t)}))};var Ge="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ye=/^(?: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]/,Xe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,et=/[A-Z0-9]/g,tt="undefined"!=typeof document,nt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function rt(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function ot(e,t,n){return F(e,t),"function"==typeof n&&n(),e?e.__c:null}O.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(O.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var st=s.event;function it(){}function at(){return this.cancelBubble}function ut(){return this.defaultPrevented}s.event=function(e){return st&&(e=st(e)),e.persist=it,e.isPropagationStopped=at,e.isDefaultPrevented=ut,e.nativeEvent=e};var ct,lt={enumerable:!1,configurable:!0,get:function(){return this.class}},pt=s.vnode;s.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var s in t){var i=t[s];if(!("value"===s&&"defaultValue"in t&&null==i||tt&&"children"===s&&"noscript"===n||"class"===s||"className"===s)){var a=s.toLowerCase();"defaultValue"===s&&"value"in t&&null==t.value?s="value":"download"===s&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?s="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||nt(t.type)?"onfocus"===a?s="onfocusin":"onblur"===a?s="onfocusout":Xe.test(s)&&(s=a):a=s="oninput":o&&Ye.test(s)?s=s.replace(et,"-$&").toLowerCase():null===i&&(i=void 0),"oninput"===a&&r[s=a]&&(s="oninputCapture"),r[s]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=N(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=N(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",lt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Ge,pt&&pt(e)};var ht=s.__r;s.__r=function(e){ht&&ht(e),ct=e.__c};var dt=s.diffed;s.diffed=function(e){dt&&dt(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ct=null};var ft={ReactCurrentDispatcher:{current:{readContext:function(e){return ct.__n[e.__c].props.value},useCallback:me,useContext:ve,useDebugValue:ye,useDeferredValue:Ie,useEffect:le,useId:Ce,useImperativeHandle:de,useInsertionEffect:Ne,useLayoutEffect:pe,useMemo:fe,useReducer:ce,useRef:he,useState:ue,useSyncExternalStore:ke,useTransition:Pe}}},mt="18.3.1";function vt(e){return w.bind(null,e)}function yt(e){return!!e&&e.$$typeof===Ge}function gt(e){return yt(e)&&e.type===q}function Ct(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function _t(e){return yt(e)?Q.apply(null,arguments):e}function wt(e){return!!e.__k&&(W(null,e),!0)}function bt(e){return e&&(e.base||1===e.nodeType&&e)||null}var xt=function(e,t){return e(t)},qt=function(e,t){return e(t)},Ot=q,Et=yt,Lt={useState:ue,useId:Ce,useReducer:ce,useEffect:le,useLayoutEffect:pe,useInsertionEffect:Ne,useTransition:Pe,useDeferredValue:Ie,useSyncExternalStore:ke,startTransition:Me,useRef:he,useImperativeHandle:de,useMemo:fe,useCallback:me,useContext:ve,useDebugValue:ye,version:"18.3.1",Children:Ve,render:rt,hydrate:ot,unmountComponentAtNode:wt,createPortal:Je,createElement:w,createContext:z,createFactory:vt,cloneElement:_t,createRef:x,Fragment:q,isValidElement:yt,isElement:Et,isFragment:gt,isMemo:Ct,findDOMNode:bt,Component:O,PureComponent:Re,memo:je,forwardRef:Te,flushSync:qt,unstable_batchedUpdates:xt,StrictMode:Ot,Suspense:Ue,SuspenseList:Qe,lazy:Fe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ft},kt=n(0),St=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.isElementRegistered=function(e){return!!this.creatorHash[e]},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}(),Mt=function(){function e(){}return e.wrapRow=function(e,t,n){var r=e.getRowWrapperComponentName(n),o=e.getRowWrapperComponentData(n);return St.Instance.createElement(r,{element:t,row:n,componentData:o})},e.wrapElement=function(e,t,n){var r=e.getElementWrapperComponentName(n),o=e.getElementWrapperComponentData(n);return St.Instance.createElement(r,{element:t,question:n,componentData:o})},e.wrapQuestionContent=function(e,t,n){var r=e.getQuestionContentWrapperComponentName(n),o=e.getElementWrapperComponentData(n);return St.Instance.createElement(r,{element:t,question:n,componentData:o})},e.wrapItemValue=function(e,t,n,r){var o=e.getItemValueWrapperComponentName(r,n),s=e.getItemValueWrapperComponentData(r,n);return St.Instance.createElement(o,{key:null==t?void 0:t.key,element:t,question:n,item:r,componentData:s})},e.wrapMatrixCell=function(e,t,n,r){void 0===r&&(r="cell");var o=e.getElementWrapperComponentName(n,r),s=e.getElementWrapperComponentData(n,r);return St.Instance.createElement(o,{element:t,cell:n,componentData:s})},e}();kt.SurveyModel.platform="react";var It,Pt=(It=function(e,t){return(It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}It(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Nt=function(e){function t(t){var n=e.call(this,t)||this;return n._allowComponentUpdate=!0,n.prevStateElements=[],n}return Pt(t,e),t.renderLocString=function(e,t,n){return void 0===t&&(t=null),St.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:t,key:n})},t.renderQuestionDescription=function(e){var n=t.renderLocString(e.locDescription);return w("div",{style:e.hasDescription?void 0:{display:"none"},id:e.ariaDescriptionId,className:e.cssDescription},n)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact(),this.disableStateElementsRerenderEvent(this.getStateElements())},t.prototype.componentDidUpdate=function(e,t){var n;this.makeBaseElementsReact();var r=this.getStateElements();this.disableStateElementsRerenderEvent((null!==(n=this.prevStateElements)&&void 0!==n?n:[]).filter((function(e){return!r.includes(e)}))),this.prevStateElements=[],this.getStateElements().forEach((function(e){e.afterRerender()}))},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,t){return this._allowComponentUpdate&&(this.unMakeBaseElementsReact(),this.prevStateElements=this.getStateElements()),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=0,t=this.getRenderedElements();e<t.length;e++){if(t[e].reactRendering>0)return!0}return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var t=0,n=this.getRenderedElements();t<n.length;t++){var r=n[t];r.reactRendering||(r.reactRendering=0),r.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)e[t].enableOnElementRerenderedEvent(),this.makeBaseElementReact(e[t])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.unMakeBaseElementReact(e[t])},t.prototype.disableStateElementsRerenderEvent=function(e){e.forEach((function(e){e.disableOnElementRerenderedEvent()}))},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,n,r){return void 0===n&&(n=null),t.renderLocString(e,n,r)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var t=this;this.canMakeReact(e)&&(e.iteratePropertiesHash((function(e,n){if(t.canUsePropInState(n)){var r=e[n];if(Array.isArray(r))(r=r).onArrayChanged=function(e){t.isRendering||(t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t})))}}})),e.setPropertyValueCoreHandler=function(e,n,r){if(e[n]!==r){if(e[n]=r,!t.canUsePropInState(n))return;if(t.isRendering)return;t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t}))}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash((function(e,t){var n=e[t];Array.isArray(n)&&((n=n).onArrayChanged=function(){})})))},t}(O),Rt=function(e){function t(t){return e.call(this,t)||this}return Pt(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(Nt),jt=function(e){function t(t){return e.call(this,t)||this}return Pt(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase){var t=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(t),t&&t.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.content||this.control;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&!(this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.questionBase.survey,o=null;return r&&(o=Mt.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.setControl=function(e){e&&(this.control=e)},t.prototype.setContent=function(e){e&&(this.content=e)},t}(Nt),Ht=function(e){function t(t){var n=e.call(this,t)||this;return n.updateValueOnEvent=function(e){kt.Helpers.isTwoValueEquals(n.questionBase.value,e.target.value,!1,!0,!1)||n.setValueCore(e.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return Pt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var t=this.control,n=this.getValueCore();kt.Helpers.isTwoValueEquals(n,t.value,!1,!0,!1)||(t.value=this.getValue(n))}e.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return kt.Helpers.isValueEmpty(e)?"":e},t}(jt),Bt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tt=function(e){function t(t){var n=e.call(this,t)||this;return n.element.cssClasses,n.rootRef={current:null},n}return Bt(t,e),t.prototype.getStateElement=function(){return this.element},Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.element!==this.element&&(t.element&&t.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0)},t.prototype.renderElement=function(){var e=this.element,t=this.createElement(e,this.index);return w("div",{className:e.cssClassesValue.questionWrapper,style:e.rootStyle,"data-key":t.key,key:t.key,onFocus:function(){var t=e;t&&t.isQuestion&&t.focusIn()},ref:this.rootRef},t)},t.prototype.createElement=function(e,t){var n=t?"-"+t:0;if(!this.row.isNeedRender)return St.Instance.createElement(e.skeletonComponentName,{key:e.name+n,element:e,css:this.css});var r=e.getType();return St.Instance.isElementRegistered(r)||(r="question"),St.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(Nt),Dt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vt=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef={current:null},n.recalculateCss(),n}return Dt(t,e),t.prototype.recalculateCss=function(){this.row.visibleElements.map((function(e){return e.cssClasses}))},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},t.prototype.renderElementContent=function(){var e=this,t=this.row.visibleElements.map((function(t,n){var r=n?"-"+n:0,o=t.name+r;return w(Tt,{element:t,index:n,row:e.row,survey:e.survey,creator:e.creator,css:e.css,key:o})}));return w("div",{ref:this.rootRef,className:this.row.getRowCss()},t)},t.prototype.renderElement=function(){var e=this.survey,t=this.renderElementContent();return Mt.wrapRow(e,t,this.row)||t},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),n&&!this.row.isNeedRender){var r=n;setTimeout((function(){t.row.startLazyRendering(r)}),10)}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.row!==this.row&&(t.row.isNeedRender=this.row.isNeedRender,t.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0)},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},t.prototype.createElement=function(e,t){var n=t?"-"+t:0,r=e.getType();return St.Instance.isElementRegistered(r)||(r="question"),St.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(Nt),Zt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),At=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef={current:null},n}return Zt(t,e),t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(t){return"elements"!==t&&e.prototype.canUsePropInState.call(this,t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.page&&this.survey&&this.survey.activePage&&t.page.id===this.survey.activePage.id||this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.panelBase.afterRender(e):this.survey.afterRenderPage(e))},t.prototype.getIsVisible=function(){return this.panelBase.isVisible},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},t.prototype.renderRows=function(e){var t=this;return this.panelBase.visibleRows.map((function(n){return t.createRow(n,e)}))},t.prototype.createRow=function(e,t){return w(Vt,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})},t}(Nt),Ut=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wt=function(e){function t(t){var n=e.call(this,t)||this;return n.svgIconRef=Lt.createRef(),n}return Ut(t,e),t.prototype.updateSvg=function(){this.props.iconName&&Object(kt.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?Lt.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},Lt.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(Lt.Component);St.Instance.registerElement("sv-svg-icon",(function(e){return Lt.createElement(Wt,e)}));var Ft=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qt=function(e){function t(t){return e.call(this,t)||this}return Ft(t,e),t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return Lt.createElement("div",{className:e})},t}(Lt.Component);St.Instance.registerElement("sv-action-bar-separator",(function(e){return Lt.createElement(Qt,e)}));var zt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),t=this.item.needSeparator?Lt.createElement(Qt,null):null,n=St.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return Lt.createElement("div",{className:e,id:this.item.id},Lt.createElement("div",{className:"sv-action__content"},t,n))},t}(Nt),$t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return Lt.createElement(Lt.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return Lt.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),t=this.item.iconName?Lt.createElement(Wt,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return Lt.createElement(Lt.Fragment,null,t,e)},t.prototype.renderInnerButton=function(){var e=this,t=this.item.getActionBarItemCss(),n=this.item.tooltip||this.item.title,r=this.renderButtonContent(),o=this.item.disableTabStop?-1:void 0;return $n(Lt.createElement("button",{className:t,type:"button",disabled:this.item.disabled,onMouseDown:function(t){return e.item.doMouseDown(t)},onFocus:function(t){return e.item.doFocus(t)},onClick:function(t){return e.item.doAction(t)},title:n,tabIndex:o,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},r),this.item,{processEsc:!1})},t}(Nt);St.Instance.registerElement("sv-action-bar-item",(function(e){return Lt.createElement($t,e)}));var Jt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gt=function(e){function t(t){var n=e.call(this,t)||this;return n.containerRef=Lt.createRef(),n.createModel(),n}return Jt(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(kt.createPopupViewModel)(this.props.model)},t.prototype.setTargetElement=function(){var e=this.containerRef.current;this.popup.setComponentElement(e)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setTargetElement()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setTargetElement()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},t.prototype.shouldComponentUpdate=function(t,n){var r;if(!e.prototype.shouldComponentUpdate.call(this,t,n))return!1;var o=t.model!==this.popup.model;return o&&(null===(r=this.popup)||void 0===r||r.dispose(),this.createModel()),o},t.prototype.render=function(){var e;return this.popup.model=this.model,e=this.model.isModal?Lt.createElement(Yt,{model:this.popup}):Lt.createElement(Xt,{model:this.popup}),Lt.createElement("div",{ref:this.containerRef},e)},t}(Nt);St.Instance.registerElement("sv-popup",(function(e){return Lt.createElement(Gt,e)}));var Yt=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.clickInside=function(e){e.stopPropagation()},n}return Jt(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},t.prototype.renderContainer=function(e){var t=this,n=e.showHeader?this.renderHeaderPopup(e):null,r=e.title?this.renderHeaderContent():null,o=this.renderContent(),s=e.showFooter?this.renderFooter(this.model):null;return Lt.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(e){t.clickInside(e)}},n,Lt.createElement("div",{className:"sv-popup__body-content"},r,Lt.createElement("div",{className:"sv-popup__scrolling-content"},o),s))},t.prototype.renderHeaderContent=function(){return Lt.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=St.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return Lt.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return Lt.createElement("div",{className:"sv-popup__body-footer"},Lt.createElement(rn,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,t=this.renderContainer(this.model),n=(new kt.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),r={display:this.model.isVisible?"":"none"};return Lt.createElement("div",{tabIndex:-1,className:n,style:r,onClick:function(t){e.model.clickOutside(t)},onKeyDown:this.handleKeydown},t)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.isVisible&&this.model.updateOnShowing()},t}(Nt),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jt(t,e),t.prototype.renderHeaderPopup=function(e){var t=e;return t?Lt.createElement("span",{style:{left:t.pointerTarget.left,top:t.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(Yt),en=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tn=function(e){function t(t){return e.call(this,t)||this}return en(t,e),t.prototype.renderInnerButton=function(){var t=e.prototype.renderInnerButton.call(this);return Lt.createElement(Lt.Fragment,null,t,Lt.createElement(Gt,{model:this.item.popupModel}))},t.prototype.componentDidMount=function(){this.viewModel=new kt.ActionDropdownViewModel(this.item)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}($t);St.Instance.registerElement("sv-action-bar-item-dropdown",(function(e){return Lt.createElement(tn,e)}));var nn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rn=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=Lt.createRef(),n}return nn(t,e),Object.defineProperty(t.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.model.hasActions){var t=this.rootRef.current;t&&this.model.initResponsivityManager(t,(function(e){setTimeout(e)}))}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.resetResponsivityManager()},t.prototype.componentDidUpdate=function(t,n){if(e.prototype.componentDidUpdate.call(this,t,n),t.model!=this.props.model&&t.model.resetResponsivityManager(),this.model.hasActions){var r=this.rootRef.current;r&&this.model.initResponsivityManager(r,(function(e){setTimeout(e)}))}},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return Lt.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map((function(e,t){return Lt.createElement(Kt,{item:e,key:"item"+t})}))},t}(Nt);St.Instance.registerElement("sv-action-bar",(function(e){return Lt.createElement(rn,e)}));var on=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sn=function(e){function t(t){return e.call(this,t)||this}return on(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return Nt.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return Lt.createElement(Lt.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,t){var n=function(e){return Lt.createElement("span",{"data-key":e,key:e}," ")},r=[];e.isRequireTextOnStart&&(r.push(this.renderRequireText(e)),r.push(n("req-sp")));var o=e.no;return o&&(r.push(Lt.createElement("span",{"data-key":"q_num",key:"q_num",className:e.cssTitleNumber,style:{position:"static"},"aria-hidden":!0},o)),r.push(n("num-sp"))),e.isRequireTextBeforeTitle&&(r.push(this.renderRequireText(e)),r.push(n("req-sp"))),r.push(Nt.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(r.push(n("req-sp")),r.push(this.renderRequireText(e))),r},t.prototype.renderRequireText=function(e){return Lt.createElement("span",{"data-key":"req-text",key:"req-text",className:e.cssRequiredText,"aria-hidden":!0},e.requiredText)},t}(Lt.Component),an=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return an(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=Lt.createElement(sn,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?Lt.createElement("div",{className:"sv-title-actions"},Lt.createElement("span",{className:"sv-title-actions__title"},e),Lt.createElement(rn,{model:this.element.getTitleToolbar()})):e},t}(Lt.Component);kt.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),St.Instance.registerElement("sv-title-actions",(function(e){return Lt.createElement(un,e)}));var cn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ln=function(e){function t(t){return e.call(this,t)||this}return cn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.renderTitleExpandableSvg=function(){if(!this.element.getCssTitleExpandableSvg())return null;var e=this.element.isExpanded?"icon-collapse-16x16":"icon-expand-16x16";return Lt.createElement(Wt,{className:this.element.getCssTitleExpandableSvg(),iconName:e,size:16})},t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var t=e.titleAriaLabel||void 0,n=this.renderTitleExpandableSvg(),r=Lt.createElement(un,{element:e,cssClasses:e.cssClasses}),o=void 0;e.hasTitleEvents&&(o=function(e){Object(kt.doKey2ClickUp)(e.nativeEvent)});var s=e.titleTagName;return Lt.createElement(s,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:void 0,onKeyUp:o},n,r)},t}(Lt.Component),pn=function(){function e(){this.creatorHash={}}return e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}(),hn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hn(t,e),t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return Lt.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(Nt);St.Instance.registerElement("sv-character-counter",(function(e){return Lt.createElement(dn,e)}));var fn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mn=function(e){function t(t){var n=e.call(this,t)||this;return n.initialValue=n.viewModel.getTextValue()||"",n}return fn(t,e),Object.defineProperty(t.prototype,"viewModel",{get:function(){return this.props.viewModel},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.viewModel.question},t.prototype.renderElement=function(){var e=this;return Lt.createElement("textarea",{id:this.viewModel.id,className:this.viewModel.className,ref:function(t){return e.viewModel.setElement(t)},disabled:this.viewModel.isDisabledAttr,readOnly:this.viewModel.isReadOnlyAttr,rows:this.viewModel.rows,cols:this.viewModel.cols,placeholder:this.viewModel.placeholder,maxLength:this.viewModel.maxLength,defaultValue:this.initialValue,onChange:function(t){e.viewModel.onTextAreaInput(t)},onFocus:function(t){e.viewModel.onTextAreaFocus(t)},onBlur:function(t){e.viewModel.onTextAreaBlur(t)},onKeyDown:function(t){e.viewModel.onTextAreaKeyDown(t)},"aria-required":this.viewModel.ariaRequired,"aria-label":this.viewModel.ariaLabel,"aria-labelledby":this.viewModel.ariaLabelledBy,"aria-describedby":this.viewModel.ariaDescribedBy,"aria-invalid":this.viewModel.ariaInvalid,"aria-errormessage":this.viewModel.ariaErrormessage,style:{resize:this.viewModel.question.resizeStyle}})},t}(Nt);St.Instance.registerElement("sv-text-area",(function(e){return Lt.createElement(mn,e)}));var vn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yn=function(e){function t(t){return e.call(this,t)||this}return vn(t,e),t.prototype.renderCharacterCounter=function(){var e=null;return this.question.getMaxLength()&&(e=w(dn,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter})),e},t.prototype.renderElement=function(){if(this.question.isReadOnlyRenderDiv())return w("div",null,this.question.value);var e=this.renderCharacterCounter(),t=this.props.question.textAreaModel;return w(q,null,w(mn,{viewModel:t}),e)},t}(Ht),gn=function(e){function t(t){var n=e.call(this,t)||this;return n.textAreaModel=n.getTextAreaModel(),n}return vn(t,e),t.prototype.canRender=function(){return!!this.props.question},t.prototype.getTextAreaModel=function(){return this.props.question.commentTextAreaModel},t.prototype.renderElement=function(){return this.props.question.isReadOnlyRenderDiv()?w("div",null,this.textAreaModel.getTextValue()||""):w(mn,{viewModel:this.textAreaModel})},t}(Rt),Cn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vn(t,e),t.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},t}(gn);pn.Instance.registerQuestion("comment",(function(e){return w(yn,e)}));var _n=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wn=function(e){function t(t){var n=e.call(this,t)||this;return n.widgetRef={current:null},n}return _n(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n);var r=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!r&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var t=this.widgetRef.current;t&&this.questionBase.customWidget.willUnmount(this.questionBase,t)}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return w("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var n={__html:e.htmlTemplate};return w("div",{ref:this.widgetRef,dangerouslySetInnerHTML:n})}return w("div",{ref:this.widgetRef},t)},t}(jt),bn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,t=e.hasTitle?Lt.createElement(ln,{element:e}):null,n=e.hasDescriptionUnderTitle?Nt.renderQuestionDescription(this.element):null,r=e.hasAdditionalTitleToolbar?Lt.createElement(rn,{model:e.additionalTitleToolbar}):null,o={width:void 0};return e instanceof kt.Question&&(o.width=e.titleWidth),Lt.createElement("div",{className:e.cssHeader,onClick:function(t){return e.clickTitleFunction&&e.clickTitleFunction(t.nativeEvent)},style:o},t,n,r)},t}(Lt.Component),qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),On=function(e){function t(t){var n=e.call(this,t)||this;return n.isNeedFocus=!1,n.rootRef={current:null},n}return qn(t,e),t.renderQuestionBody=function(e,t){return t.customWidget?w(wn,{creator:e,question:t}):e.createQuestionElement(t)},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question&&!!this.creator},t.prototype.renderQuestionContent=function(){var e=this.question,t={display:this.question.renderedIsExpanded?"":"none"},n=e.cssClasses,r=this.renderQuestion(),o=this.question.showErrorOnTop?this.renderErrors(n,"top"):null,s=this.question.showErrorOnBottom?this.renderErrors(n,"bottom"):null,i=e&&e.hasComment?this.renderComment(n):null,a=e.hasDescriptionUnderInput?this.renderDescription():null;return w("div",{className:e.cssContent||void 0,style:t,role:"presentation"},o,r,i,s,a)},t.prototype.renderElement=function(){var e=this.question,t=e.cssClasses,n=this.renderHeader(e),r=e.hasTitleOnLeftTop?n:null,o=e.hasTitleOnBottom?n:null,s=this.question.showErrorsAboveQuestion?this.renderErrors(t,""):null,i=this.question.showErrorsBelowQuestion?this.renderErrors(t,""):null,a=e.getRootStyle(),u=this.wrapQuestionContent(this.renderQuestionContent());return w(q,null,w("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:a,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,"aria-expanded":e.ariaExpanded},s,r,u,o,i))},t.prototype.wrapElement=function(e){var t=this.question.survey,n=null;return t&&(n=Mt.wrapElement(t,e,this.question)),null!=n?n:e},t.prototype.wrapQuestionContent=function(e){var t=this.question.survey,n=null;return t&&(n=Mt.wrapQuestionContent(t,e,this.question)),null!=n?n:e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return Nt.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var t=Nt.renderLocString(this.question.locCommentText);return w("div",{className:this.question.getCommentAreaCss()},w("div",null,t),w(gn,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return w(xn,{element:e})},t.prototype.renderErrors=function(e,t){return w(En,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+"_errors"})},t}(Nt);St.Instance.registerElement("question",(function(e){return w(On,e)}));var En=function(e){function t(t){var n=e.call(this,t)||this;return n.state=n.getState(),n}return qn(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentWillUnmount=function(){},t.prototype.renderElement=function(){for(var e=[],t=0;t<this.element.errors.length;t++){var n="error"+t;e.push(this.creator.renderError(n,this.element.errors[t],this.cssClasses,this.element))}return w("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},e)},t}(Rt),Ln=function(e){function t(t){return e.call(this,t)||this}return qn(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderContent=function(){return w(q,null,this.renderQuestion())},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return On.renderQuestionBody(this.creator,this.question)},t}(Rt),kn=function(e){function t(t){var n=e.call(this,t)||this;return n.cellRef={current:null},n}return qn(t,e),t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.question){var t=this.cellRef.current;t&&t.removeAttribute("data-rendered")}},t.prototype.renderCellContent=function(){return w("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},t.prototype.renderElement=function(){var e=this.getCellStyle(),t=this.props.cell;return w("td",{ref:this.cellRef,className:this.itemCss,colSpan:t.colSpans,title:t.getTitle(),style:e,onFocus:function(){t.focusIn()}},this.wrapCell(this.props.cell,this.renderCellContent()))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,t){if(!e)return t;var n=this.question.survey,r=null;return n&&(r=Mt.wrapMatrixCell(n,t,e,this.props.reason)),null!=r?r:t},t}(Ln),Sn=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.question&&n.registerCallback(n.question),n}return qn(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.setState({changed:this.state.changed+1})},t.prototype.getQuestionPropertiesToTrack=function(){return["errors"]},t.prototype.registerCallback=function(e){var t=this;e.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),(function(){t.update()}),"__reactSubscription")},t.prototype.unRegisterCallback=function(e){e.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),"__reactSubscription")},t.prototype.componentDidUpdate=function(e){e.question&&e.question!==this.question&&this.unRegisterCallback(e.cell),this.question&&this.registerCallback(this.question)},t.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},t.prototype.render=function(){return w(En,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},t}(O),Mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),In=function(e){function t(t){return e.call(this,t)||this}return Mn(t,e),t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),t=this.renderDescription(),n=this.renderRows(this.panelBase.cssClasses),r=w(En,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return w("div",{ref:this.rootRef,className:this.page.cssRoot},e,t,r,n)},t.prototype.renderTitle=function(){return w(ln,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=Nt.renderLocString(this.page.locDescription);return w("div",{className:this.panelBase.cssClasses.page.description},e)},t}(At),Pn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nn=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.rootRef=Lt.createRef(),n}return Pn(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=Nt.renderLocString(this.survey.locDescription);return Lt.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},Lt.createElement(ln,{element:this.survey}),this.survey.renderedHasDescription?Lt.createElement("div",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var t=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),n=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return St.Instance.createElement(t,{data:n})},t.prototype.render=function(){return this.survey.renderedHasHeader?Lt.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),Lt.createElement("div",{className:this.css.headerClose})):null},t}(Lt.Component);St.Instance.registerElement("survey-header",(function(e){return Lt.createElement(Nn,e)}));var Rn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rn(t,e),t.prototype.render=function(){return Lt.createElement("div",{className:"sv-brand-info"},Lt.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"},Lt.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),Lt.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",Lt.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")),Lt.createElement("div",{className:"sv-brand-info__terms"},Lt.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(Lt.Component),Hn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hn(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var e={visibility:this.notifier.active?"visible":"hidden"};return Lt.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},Lt.createElement("span",null,this.notifier.message),Lt.createElement(rn,{model:this.notifier.actionBar}))},t}(Nt);St.Instance.registerElement("sv-notifier",(function(e){return Lt.createElement(Bn,e)}));var Tn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tn(t,e),t.prototype.render=function(){var e=this,t=this.props.survey.getContainerContent(this.props.container),n=!1!==this.props.needRenderWrapper;return 0==t.length?null:n?Lt.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},t.map((function(t){return St.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,container:e.props.container,key:t.id})}))):Lt.createElement(Lt.Fragment,null,t.map((function(t){return St.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,container:e.props.container,key:t.id})})))},t}(Lt.Component);St.Instance.registerElement("sv-components-container",(function(e){return Lt.createElement(Dn,e)}));var Vn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zn=function(e){function t(t){var n=e.call(this,t)||this;return n.onIconsChanged=function(){n.containerRef.current&&(n.containerRef.current.innerHTML=kt.SvgRegistry.iconsRenderedHtml())},n.containerRef=Lt.createRef(),n}return Vn(t,e),t.prototype.componentDidMount=function(){this.onIconsChanged(),kt.SvgRegistry.onIconsChanged.add(this.onIconsChanged)},t.prototype.componentWillUnmount=function(){kt.SvgRegistry.onIconsChanged.remove(this.onIconsChanged)},t.prototype.render=function(){return Lt.createElement("svg",{style:{display:"none"},id:"sv-icon-holder-global-container",ref:this.containerRef})},t}(Lt.Component),An=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Un=function(e){function t(t){var n=e.call(this,t)||this;return n.isInitialized=!1,n.init=function(){n.isInitialized||(kt.settings.showModal=function(e,t,r,o,s,i,a){void 0===a&&(a="popup");var u=Object(kt.createDialogOptions)(e,t,r,o,void 0,void 0,s,i,a);return n.showDialog(u)},kt.settings.showDialog=function(e,t){return n.showDialog(e,t)},n.isInitialized=!0)},n.clean=function(){n.isInitialized&&(kt.settings.showModal=void 0,kt.settings.showDialog=void 0,n.isInitialized=!1)},n.state={changed:0},n.descriptor={init:n.init,clean:n.clean},n}return An(t,e),t.addModalDescriptor=function(e){kt.settings.showModal||e.init(),this.modalDescriptors.push(e)},t.removeModalDescriptor=function(e){e.clean(),this.modalDescriptors.splice(this.modalDescriptors.indexOf(e),1),!kt.settings.showModal&&this.modalDescriptors[0]&&this.modalDescriptors[0].init()},t.prototype.renderElement=function(){return this.model?Je(Lt.createElement(Yt,{model:this.model}),this.model.container):null},t.prototype.showDialog=function(e,t){var n=this;this.model=Object(kt.createPopupModalViewModel)(e,t);return this.model.onVisibilityChanged.add((function(e,t){t.isVisible||(n.model.dispose(),n.model=void 0,n.setState({changed:n.state.changed+1}))})),this.model.model.isVisible=!0,this.setState({changed:this.state.changed+1}),this.model},t.prototype.componentDidMount=function(){t.addModalDescriptor(this.descriptor)},t.prototype.componentWillUnmount=function(){this.model&&(this.model.dispose(),this.model=void 0),t.removeModalDescriptor(this.descriptor)},t.modalDescriptors=[],t}(Nt),Wn=n(1),Fn=n(2),Qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zn=function(){return(zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object(kt.addIconsToThemeSet)("v1",Wn.icons),Object(kt.addIconsToThemeSet)("v2",Fn.icons),kt.SvgRegistry.registerIcons(Wn.icons);var Kn=function(e){function t(t){var n=e.call(this,t)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(t),n.updateSurvey(t,{}),n.rootRef={current:null},n.rootNodeId=t.id||null,n.rootNodeClassName=t.className||"",n}return Qn(t,e),Object.defineProperty(t,"cssType",{get:function(){return kt.surveyCss.currentType},set:function(e){kt.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.onSurveyUpdated=function(){if(this.survey){var e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI(),this.setSurveyEvents()}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(this.isModelJSONChanged(t)&&(this.destroySurvey(),this.createSurvey(t),this.updateSurvey(t,{}),this.isSurveyUpdated=!0),!0)},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateSurvey(this.props,t),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.onSurveyUpdated()},t.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;e="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 t=this.survey.backgroundImage?w("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,n="basic"===this.survey.headerView?w(Nn,{survey:this.survey}):null,r=w("div",{className:"sv_custom_header"});this.survey.hasLogo&&(r=null);var o=this.survey.getRootCss(),s=this.rootNodeClassName?this.rootNodeClassName+" "+o:o;return w("div",{id:this.rootNodeId,ref:this.rootRef,className:s,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?w(Zn,null):null,w(Un,null),w("div",{className:this.survey.wrapperFormCss},t,w("form",{onSubmit:function(e){e.preventDefault()}},r,w("div",{className:this.css.container},n,w(Dn,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,w(Dn,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),w(Bn,{notifier:this.survey.notifier})))},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,configurable:!0}),t.prototype.renderCompleted=function(){return this.survey.showCompletedPage?w(q,null,w("div",{dangerouslySetInnerHTML:{__html:this.survey.processedCompletedHtml},className:this.survey.completedCss}),w(Dn,{survey:this.survey,container:"completePage",needRenderWrapper:!1})):null},t.prototype.renderCompletedBefore=function(){return w("div",{dangerouslySetInnerHTML:{__html:this.survey.processedCompletedBeforeHtml},className:this.survey.completedBeforeCss})},t.prototype.renderLoading=function(){return w("div",{dangerouslySetInnerHTML:{__html:this.survey.processedLoadingHtml},className:this.survey.loadingBodyCss})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null,t=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),n=this.survey.bodyCss,r={};return this.survey.renderedWidth&&(r.maxWidth=this.survey.renderedWidth),w("div",{className:this.survey.bodyContainerCss},w(Dn,{survey:this.survey,container:"left"}),w("div",{className:"sv-components-column sv-components-column--expandable"},w(Dn,{survey:this.survey,container:"center"}),w("div",{id:t,className:n,style:r},w(Dn,{survey:this.survey,container:"contentTop"}),e,w(Dn,{survey:this.survey,container:"contentBottom"}),this.survey.showBrandInfo?w(jn,null):null)),w(Dn,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return w(In,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return w("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new kt.SurveyModel(e.json)):this.survey=new kt.SurveyModel,e.css&&(this.survey.css=this.css)},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:!!e.json&&!kt.Helpers.isTwoValueEquals(e.json,this.previousJSON)},t.prototype.updateSurvey=function(e,t){if(e)for(var n in t=t||{},e)"model"!=n&&"children"!=n&&"json"!=n&&("css"!=n?e[n]!==t[n]&&(0==n.indexOf("on")&&this.survey[n]&&this.survey[n].add?(t[n]&&this.survey[n].remove(t[n]),this.survey[n].add(e[n])):this.survey[n]=e[n]):(this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add((function(t){e.state&&e.setState(e.state)}))},t.prototype.createQuestionElement=function(e){return pn.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,t,n,r){return St.Instance.createElement(this.survey.questionErrorComponent,{key:e,error:t,cssClasses:n,element:r})},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(Nt);function $n(e,t,n){return void 0===n&&(n={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||n&&n.disableTabStop?_t(e,{tabIndex:-1}):(n=zn({},n),_t(e,{tabIndex:0,onKeyUp:function(e){return e.preventDefault(),e.stopPropagation(),Object(kt.doKey2ClickUp)(e,n),!1},onKeyDown:function(e){return Object(kt.doKey2ClickDown)(e,n)},onBlur:function(e){return Object(kt.doKey2ClickBlur)(e)}}))}St.Instance.registerElement("survey",(function(e){return w(Kn,e)}));var Jn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gn=function(e){function t(t){var n=e.call(this,t)||this;return n.updateStateFunction=null,n.state={update:0},n}return Jn(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(O),Yn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xn=function(e){function t(t){var n=e.call(this,t)||this;return n.circleLength=440,n}return Yn(t,e),t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.timerModel.isRunning)return null;var e=w("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},n=this.timerModel.showProgress?w(Wt,{className:this.timerModel.getProgressCss(),style:t,iconName:"icon-timercircle",size:"auto"}):null;e=w("div",{className:this.timerModel.rootCss},n,w("div",{className:this.timerModel.textContainerCss},w("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?w("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(Rt);St.Instance.registerElement("sv-timerpanel",(function(e){return w(Xn,e)}));var er=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tr=function(e){function t(t){var n=e.call(this,t)||this;return n.hasBeenExpanded=!1,n}return er(t,e),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.renderHeader(),n=w(En,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),r={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},o=null;if(this.panel.renderedIsExpanded){var s=this.renderRows(this.panelBase.cssClasses),i=this.panelBase.cssClasses.panel.content;o=this.renderContent(r,s,i)}return w("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){e.panelBase&&e.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?n:null,t,this.panel.showErrorsAbovePanel?null:n,o)},t.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?w(xn,{element:this.panel}):null},t.prototype.wrapElement=function(e){var t=this.panel.survey,n=null;return t&&(n=Mt.wrapElement(t,e,this.panel)),null!=n?n:e},t.prototype.renderContent=function(e,t,n){var r=this.renderBottom();return w("div",{style:e,className:n,id:this.panel.contentId},t,r)},t.prototype.renderTitle=function(){return this.panelBase.title?w(ln,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=Nt.renderLocString(this.panelBase.locDescription);return w("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?w(rn,{model:e}):null},t.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},t}(At);St.Instance.registerElement("panel",(function(e){return w(tr,e)}));var nr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rr=function(e){function t(t){return e.call(this,t)||this}return nr(t,e),Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser)return w("div",{dangerouslySetInnerHTML:{__html:e}});var t=(new DOMParser).parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(t)},t.prototype.renderNodes=function(e){for(var t=[],n=0;n<e.length;n++){var r=this.renderNode(e[n]);r&&t.push(r)}return t},t.prototype.getStyle=function(e){var t={};return"b"===e.toLowerCase()&&(t.fontWeight="bold"),"i"===e.toLowerCase()&&(t.fontStyle="italic"),"u"===e.toLowerCase()&&(t.textDecoration="underline"),t},t.prototype.renderParentNode=function(e){var t=e.nodeName.toLowerCase(),n=this.renderNodes(this.getChildDomNodes(e));return"div"===t?w("div",{key:this.getNodeIndex()},n):w("span",{key:this.getNodeIndex(),style:this.getStyle(t)},n)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var t=e.nodeName.toLowerCase();if("question"===t){var n=this.flowPanel.getQuestionByName(e.textContent);if(!n)return null;var r=w(On,{key:n.name,element:n,creator:this.creator,css:this.css});return w("span",{key:this.getNodeIndex()},r)}return"div"===t?w("div",{key:this.getNodeIndex()},e.textContent):w("span",{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t},t.prototype.hasTextChildNodesOnly=function(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("#text"!==t[n].nodeName.toLowerCase())return!1;return!0},t.prototype.renderContent=function(e,t){return w("f-panel",{style:e},t)},t}(tr);St.Instance.registerElement("flowpanel",(function(e){return w(rr,e)}));var or=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sr=function(e){function t(t){return e.call(this,t)||this}return or(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return w("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)},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},w("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map((function(t,n){return e.renderItem(t,!1,e.question.cssClasses)}))},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem(t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return w("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var o=n.map((function(n,o){return t.renderItem(n,0===r&&0===o,e,""+r+o)}));return w("div",{key:"column"+r+t.question.getItemsColumnKey(n),className:t.question.getColumnClass(),role:"presentation"},o)}))},t.prototype.getBody=function(e){return this.question.blockedRow?w("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):w(q,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r],s=(o.value,this.renderItem(o,0==r,e,""+r));s&&n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return w("div",{className:this.question.getCommentAreaCss(!0)},w(Cn,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r){var o=St.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:r,isFirst:t}),s=this.question.survey,i=null;return s&&o&&(i=Mt.wrapItemValue(s,o,this.question,e)),null!=i?i:o},t}(jt),ir=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.clickItemHandler(n.item,e.target.checked)},n.rootRef={current:null},n}return or(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.item===this.props.item||this.question.isDesignMode||(this.props.item&&this.props.item.setRootElement(this.rootRef.current),t.item&&t.item.setRootElement(void 0))},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&!(this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var n=this.question.getItemId(this.item),r=this.question.getItemClass(this.item),o=this.question.getLabelClass(this.item),s=this.hideCaption?null:w("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return w("div",{className:r,role:"presentation",ref:this.rootRef},w("label",{className:o},w("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:e,onChange:this.handleOnChange,required:this.question.hasRequiredError()}),this.cssClasses.materialDecorator?w("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?w("svg",{className:this.cssClasses.itemDecorator},w("use",{xlinkHref:this.question.itemSvgIcon})):null):null,s),t)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(Rt);St.Instance.registerElement("survey-checkbox-item",(function(e){return w(ir,e)})),pn.Instance.registerQuestion("checkbox",(function(e){return w(sr,e)}));var ar=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ar(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;if(this.question.selectToRankEnabled){return w("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},w("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,!0),0===this.question.renderedUnRankingChoices.length?w("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),w("div",{className:this.question.cssClasses.containersDivider}),w("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),0===this.question.renderedRankingChoices.length?w("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null))}return w("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},this.getItems())},t.prototype.getItems=function(e,t){var n=this;void 0===e&&(e=this.question.renderedRankingChoices);for(var r=[],o=function(o){var i=e[o];r.push(s.renderItem(i,o,(function(e){n.question.handleKeydown.call(n.question,e,i)}),(function(e){e.persist(),n.question.handlePointerDown.call(n.question,e,i,e.currentTarget)}),(function(e){e.persist(),n.question.handlePointerUp.call(n.question,e,i,e.currentTarget)}),s.question.cssClasses,s.question.getItemClass(i),s.question,t))},s=this,i=0;i<e.length;i++)o(i);return r},t.prototype.renderItem=function(e,t,n,r,o,s,i,a,u){e.renderedId;var c=this.renderLocString(e.locText),l=t,p=this.question.getNumberByIndex(l),h=this.question.getItemTabIndex(e),d=w(cr,{key:e.value,text:c,index:l,indexText:p,itemTabIndex:h,handleKeydown:n,handlePointerDown:r,handlePointerUp:o,cssClasses:s,itemClass:i,question:a,unrankedItem:u,item:e}),f=this.question.survey,m=null;return f&&(m=Mt.wrapItemValue(f,d,this.question,e)),null!=m?m:d},t}(jt),cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ar(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.renderEmptyIcon=function(){return w("svg",null,w("use",{xlinkHref:this.question.dashSvgIcon}))},t.prototype.renderElement=function(){var e=St.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return w("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},w("div",{tabIndex:-1,style:{outline:"none"}},w("div",{className:this.cssClasses.itemGhostNode}),w("div",{className:this.cssClasses.itemContent},w("div",{className:this.cssClasses.itemIconContainer},w("svg",{className:this.question.getIconHoverCss()},w("use",{xlinkHref:this.question.dragDropSvgIcon})),w("svg",{className:this.question.getIconFocusCss()},w("use",{xlinkHref:this.question.arrowsSvgIcon}))),w("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),e)))},t}(Rt),lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ar(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return w("div",{className:this.cssClasses.controlLabel},Nt.renderLocString(this.item.locText))},t}(Rt);St.Instance.registerElement("sv-ranking-item",(function(e){return w(lr,e)})),pn.Instance.registerQuestion("ranking",(function(e){return w(ur,e)}));var pr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hr=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return pr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t}(Nt),dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pr(t,e),t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return Lt.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},Lt.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}),Lt.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},e))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t}(hr);St.Instance.registerElement("sv-rating-item",(function(e){return Lt.createElement(dr,e)}));var fr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fr(t,e),t.prototype.render=function(){var e=this;return Lt.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},Lt.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}),Lt.createElement(Wt,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),Lt.createElement(Wt,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(hr);St.Instance.registerElement("sv-rating-item-star",(function(e){return Lt.createElement(mr,e)}));var vr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vr(t,e),t.prototype.render=function(){var e=this;return Lt.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},Lt.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}),Lt.createElement(Wt,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(hr);St.Instance.registerElement("sv-rating-item-smiley",(function(e){return Lt.createElement(yr,e)}));var gr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gr(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=this.props.item,t=this.renderDescription(e);return Lt.createElement("div",{className:"sd-rating-dropdown-item"},Lt.createElement("span",{className:"sd-rating-dropdown-item_text"},e.title),t)},t.prototype.renderDescription=function(e){return e.description?Lt.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(e.description,void 0,"locString")):null},t}(Nt);St.Instance.registerElement("sv-rating-dropdown-item",(function(e){return Lt.createElement(Cr,e)}));var _r=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wr=function(e){function t(t){return e.call(this,t)||this}return _r(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.model.inputStringRendered;kt.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var t=kt.settings.environment.root;e.target===t.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.question.onBlur(e)},t.prototype.onFocus=function(e){this.question.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return w("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?w("div",{className:this.question.cssClasses.hintPrefix},w("span",null,this.model.hintStringPrefix)):null,w("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?w("div",{className:this.question.cssClasses.hintSuffix},w("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),w("span",null,this.model.hintStringSuffix)):null,w("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(t){return e.inputElement=t},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(t){e.keyhandler(t)},onChange:function(t){e.onChange(t)},onBlur:function(t){e.onBlur(t)},onFocus:function(t){e.onFocus(t)}})))},t}(Nt);pn.Instance.registerQuestion("sv-tagbox-filter",(function(e){return w(wr,e)}));var br=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xr=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.setupModel(),n}return br(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setupModel()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setupModel()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return w("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(Rt),qr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Or=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.click=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClick(e)},t.chevronPointerDown=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.chevronPointerDown(e)},t.clear=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClear(e)},t.keyhandler=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.keyHandler(e)},t.blur=function(e){t.updateInputDomElement(),t.question.onBlur(e)},t.focus=function(e){t.question.onFocus(e)},t}return qr(t,e),t.prototype.getStateElement=function(){return this.question.dropdownListModel},t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderReadOnlyElement=function(){return w("div",null,this.question.readOnlyText)},t.prototype.renderSelect=function(e){var t,n,r=null;if(this.question.isReadOnly){var o=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";r=w("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()},o,this.renderReadOnlyElement())}else r=w(q,null,this.renderInput(this.question.dropdownListModel),w(Gt,{model:null===(n=null===(t=this.question)||void 0===t?void 0:t.dropdownListModel)||void 0===n?void 0:n.popupModel}));return w("div",{className:e.selectWrapper,onClick:this.click},r,this.createChevronButton())},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?St.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var t=this,n=this.renderValueElement(e),r=kt.settings.environment.root;return w("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.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":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},e.showHintPrefix?w("div",{className:this.question.cssClasses.hintPrefix},w("span",null,e.hintStringPrefix)):null,w("div",{className:this.question.cssClasses.controlValue},e.showHintString?w("div",{className:this.question.cssClasses.hintSuffix},w("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),w("span",null,e.hintStringSuffix)):null,n,w("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,role:e.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":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,placeholder:e.placeholderRendered,readOnly:!!e.filterReadOnly||void 0,tabIndex:e.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:e.inputMode,onChange:function(t){!function(t){t.target===r.activeElement&&(e.inputStringRendered=t.target.value)}(t)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.showClearButton?"":"none"};return w("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear,"aria-hidden":"true"},w(Wt,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?w("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},w(Wt,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},t.prototype.renderOther=function(e){return w("div",{className:this.question.getCommentAreaCss(!0)},w(Cn,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateInputDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.dropdownListModel&&(this.question.dropdownListModel.focused=!1)},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.question.dropdownListModel.inputStringRendered;kt.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(Ht),Er=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lr=function(e){function t(t){return e.call(this,t)||this}return Er(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return w("div",{className:this.question.renderCssRoot},n,t)},t}(Or);pn.Instance.registerQuestion("dropdown",(function(e){return w(Lr,e)}));var kr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sr=function(e){function t(t){return e.call(this,t)||this}return kr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this;return w("div",{className:"sv-tagbox__item"},w("div",{className:"sv-tagbox__item-text"},this.renderLocString(this.item.locText)),w("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(t){e.question.dropdownListModel.deselectItem(e.item.value),t.stopPropagation()}},w(Wt,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(Rt),Mr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ir=function(e){function t(t){return e.call(this,t)||this}return Mr(t,e),t.prototype.renderItem=function(e,t){return w(Sr,{key:e,question:this.question,item:t})},t.prototype.renderInput=function(e){var t=this,n=e,r=this.question.selectedChoices.map((function(e,n){return t.renderItem("item"+n,e)}));return w("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.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":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},w("div",{className:this.question.cssClasses.controlValue},r,w(wr,{model:n,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return w("div",{className:this.question.renderCssRoot},n,t)},t.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},t}(Or);pn.Instance.registerQuestion("tagbox",(function(e){return w(Ir,e)}));var Pr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nr=function(e){function t(t){return e.call(this,t)||this}return Pr(t,e),t.prototype.renderSelect=function(e){var t=this,n=this.isDisplayMode?w("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):w("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(e){return t.setControl(e)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(e){t.question.onClick(e)},onKeyUp:function(e){t.question.onKeyUp(e)},"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?w("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map((function(e,t){return w(xr,{key:"item"+t,item:e})})));return w("div",{className:e.selectWrapper},n,this.createChevronButton())},t}(Lr);pn.Instance.registerQuestion("sv-dropdown-select",(function(e){return w(Nr,e)})),kt.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var Rr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jr=function(e){function t(t){var n=e.call(this,t)||this;return n.state={rowsChanged:0},n}return Rr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.question){var t=this;this.question.visibleRowsChangedCallback=function(){t.setState({rowsChanged:t.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,t=this.question.cssClasses,n=this.question.hasRows?w("td",null):null,r=[],o=0;o<this.question.visibleColumns.length;o++){var s=this.question.visibleColumns[o],i="column"+o,a=this.renderLocString(s.locText),u={};this.question.columnMinWidth&&(u.minWidth=this.question.columnMinWidth,u.width=this.question.columnMinWidth),r.push(w("th",{className:this.question.cssClasses.headerCell,style:u,key:i},this.wrapCell({column:s},a,"column-header")))}var c=[],l=this.question.visibleRows;for(o=0;o<l.length;o++){var p=l[o];i="row-"+p.name+"-"+o;c.push(w(Hr,{key:i,question:this.question,cssClasses:t,row:p,isFirst:0==o}))}var h=this.question.showHeader?w("thead",null,w("tr",null,n,r)):null;return w("div",{className:t.tableWrapper,ref:function(t){return e.setControl(t)}},w("fieldset",null,w("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),w("table",{className:this.question.getTableCss()},h,w("tbody",null,c))))},t}(jt),Hr=function(e){function t(t){return e.call(this,t)||this}return Rr(t,e),t.prototype.getStateElement=function(){return this.row?this.row.item:e.prototype.getStateElement.call(this)},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.question.survey,o=null;return r&&(o=Mt.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText),n={};this.question.rowTitleWidth&&(n.minWidth=this.question.rowTitleWidth,n.width=this.question.rowTitleWidth),e=w("td",{style:n,className:this.row.rowTextClasses},this.wrapCell({row:this.row},t,"row-header"))}var r=this.generateTds();return w("tr",{className:this.row.rowClasses||void 0},e,r)},t.prototype.generateTds=function(){for(var e=this,t=[],n=this.row,r=this.question.cellComponent,o=function(){var o=null,a=s.question.visibleColumns[i],u="value"+i,c=s.question.getItemClass(n,a);if(s.question.hasCellText){var l=function(t){return function(){return e.cellClick(n,t)}};o=w("td",{key:u,className:c,onClick:l?l(a):function(){}},s.renderLocString(s.question.getCellDisplayLocText(n.name,a)))}else{var p=St.Instance.createElement(r,{question:s.question,row:s.row,column:a,columnIndex:i,cssClasses:s.cssClasses,cellChanged:function(){e.cellClick(e.row,a)}});o=w("td",{key:u,"data-responsive-title":a.locText.renderedHtml,className:s.question.cssClasses.cell},p)}t.push(o)},s=this,i=0;i<this.question.visibleColumns.length;i++)o();return t},t.prototype.cellClick=function(e,t){e.value=t.value,this.setState({value:this.row.value})},t}(Rt),Br=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n.handleOnChange=n.handleOnChange.bind(n),n}return Rr(t,e),t.prototype.handleOnChange=function(e){this.props.cellChanged&&this.props.cellChanged()},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.question&&!!this.row},t.prototype.renderElement=function(){var e=this.row.value==this.column.value,t=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,n=this.question.getItemClass(this.row,this.column),r=this.question.isMobile?w("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return w("label",{onMouseDown:this.handleOnMouseDown,className:n},this.renderInput(t,e),w("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?w("svg",{className:this.cssClasses.itemDecorator},w("use",{xlinkHref:this.question.itemSvgIcon})):null),r)},t.prototype.renderInput=function(e,t){return w("input",{id:e,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:t,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})},t}(Rt);St.Instance.registerElement("survey-matrix-cell",(function(e){return w(Br,e)})),pn.Instance.registerQuestion("matrix",(function(e){return w(jr,e)}));var Tr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dr=function(e){function t(t){return e.call(this,t)||this}return Tr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,t){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return w("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(jt);pn.Instance.registerQuestion("html",(function(e){return w(Dr,e)}));var Vr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vr(t,e),t.prototype.render=function(){return w("div",{className:"sd-loading-indicator"},w(Wt,{iconName:"icon-loading",size:"auto"}))},t}(O),Ar=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ur=function(e){function t(t){return e.call(this,t)||this}return Ar(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return $n(Lt.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(t){return e.question.chooseFile(t.nativeEvent)}},this.question.cssClasses.chooseFileIconId?Lt.createElement(Wt,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,Lt.createElement("span",null,this.question.chooseButtonText)))},t}(Rt);St.Instance.registerElement("sv-file-choose-btn",(function(e){return Lt.createElement(Ur,e)}));var Wr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fr=function(e){function t(t){return e.call(this,t)||this}return Wr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e,t=this,n=this.question.allowShowPreview?this.renderPreview():null,r=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,o=this.question.isPlayingVideo?this.renderVideo():null,s=this.question.showFileDecorator?this.renderFileDecorator():null,i=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,a=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,u=this.question.fileNavigatorVisible?w(rn,{model:this.question.fileNavigator}):null;return e=this.question.isReadOnlyAttr?w("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?w("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?w("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},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,w("div",{className:this.question.fileRootCss,ref:function(e){return t.setContent(e)}},e,w("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},s,r,o,i,n,a,u))},t.prototype.renderFileDecorator=function(){var e=this.question.showChooseButton?this.renderChooseButton():null,t=this.question.actionsContainerVisible?w(rn,{model:this.question.actionsContainer}):null,n=this.question.isEmpty()?w("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return w("div",{className:this.question.getFileDecoratorCss()},w("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),w("div",{className:this.question.cssClasses.wrapper},e,t,n))},t.prototype.renderChooseButton=function(){return w(Ur,{data:{question:this.question}})},t.prototype.renderClearButton=function(e){return this.question.isUploading?null:w("button",{type:"button",onClick:this.question.doClean,className:e},w("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?w(Wt,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},t.prototype.renderPreview=function(){return St.Instance.createElement("sv-file-preview",{question:this.question})},t.prototype.renderLoadingIndicator=function(){return w("div",{className:this.question.cssClasses.loadingIndicator},w(Zr,null))},t.prototype.renderVideo=function(){return w("div",{className:this.question.cssClasses.videoContainer},w(Kt,{item:this.question.changeCameraAction}),w(Kt,{item:this.question.closeCameraAction}),w("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),w(Kt,{item:this.question.takePictureAction}))},t}(jt);pn.Instance.registerQuestion("file",(function(e){return w(Fr,e)}));var Qr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,t){var n=this;return e&&t.name?Lt.createElement("div",{className:e},Lt.createElement("a",{href:t.content,onClick:function(e){n.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderElement=function(){var e=this,t=this.item;return Lt.createElement("span",{className:this.question.cssClasses.previewItem,onClick:function(t){return e.question.doDownloadFileFromContainer(t)}},this.renderFileSign(this.question.cssClasses.fileSign,t),Lt.createElement("div",{className:this.question.getImageWrapperCss(t)},this.question.canPreviewImage(t)?Lt.createElement("img",{src:t.content,style:{height:this.question.imageHeight,width:this.question.imageWidth},alt:"File preview"}):this.question.cssClasses.defaultImage?Lt.createElement(Wt,{iconName:this.question.cssClasses.defaultImageIconId,size:"auto",className:this.question.cssClasses.defaultImage}):null,t.name&&!this.question.isReadOnly?Lt.createElement("div",{className:this.question.getRemoveButtonCss(),onClick:function(n){return e.question.doRemoveFile(t,n)}},Lt.createElement("span",{className:this.question.cssClasses.removeFile},this.question.removeFileCaption),this.question.cssClasses.removeFileSvgIconId?Lt.createElement(Wt,{title:this.question.removeFileCaption,iconName:this.question.cssClasses.removeFileSvgIconId,size:"auto",className:this.question.cssClasses.removeFileSvg}):null):null),this.renderFileSign(this.question.cssClasses.fileSignBottom,t))},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(Nt),Kr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.props.page},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.page.items.map((function(t,n){return Lt.createElement(zr,{item:t,question:e.question,key:n})}));return Lt.createElement("div",{className:this.page.css,id:this.page.id},t)},t}(Nt),Jr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,t){var n=this;return e&&t.name?Lt.createElement("div",{className:e},Lt.createElement("a",{href:t.content,onClick:function(e){n.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderElement=function(){var e=this,t=this.question.supportFileNavigator?this.question.renderedPages.map((function(t,n){return Lt.createElement($r,{page:t,question:e.question,key:t.id})})):this.question.previewValue.map((function(t,n){return Lt.createElement(zr,{item:t,question:e.question,key:n})}));return Lt.createElement("div",{className:this.question.cssClasses.fileList||void 0},t)},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(Nt);St.Instance.registerElement("sv-file-preview",(function(e){return Lt.createElement(Gr,e)}));var Yr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xr=function(e){function t(t){return e.call(this,t)||this}return Yr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,t=this.question.getRows(),n=[],r=0;r<t.length;r++)t[r].isVisible&&n.push(this.renderRow(r,t[r].cells,e));return w("table",{className:this.question.getQuestionRootCss()},w("tbody",null,n))},t.prototype.renderCell=function(e,t,n){var r;return r=e.isErrorsCell?w(Sn,{question:e.item.editor,creator:this.creator}):w(eo,{question:this.question,item:e.item,creator:this.creator,cssClasses:t}),w("td",{key:"item"+n,className:e.className,onFocus:function(){e.item.focusIn()}},r)},t.prototype.renderRow=function(e,t,n){for(var r="item"+e,o=[],s=0;s<t.length;s++){var i=t[s];o.push(this.renderCell(i,n,s))}return w("tr",{key:r,className:n.row},o)},t}(jt),eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,t=this.cssClasses,n={};return this.question.itemTitleWidth&&(n.minWidth=this.question.itemTitleWidth,n.width=this.question.itemTitleWidth),w("label",{className:this.question.getItemLabelCss(e)},w("span",{className:t.itemTitle,style:n},w(sn,{element:e.editor,cssClasses:e.editor.cssClasses})),w(to,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}))},t}(Rt),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yr(t,e),t.prototype.renderElement=function(){return w("div",{className:this.itemCss},this.renderContent())},t}(Ln);pn.Instance.registerQuestion("multipletext",(function(e){return w(Xr,e)}));var no=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ro=function(e){function t(t){return e.call(this,t)||this}return no(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=null;return this.question.showClearButtonInContent&&(n=w("div",null,w("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue(!0)},value:this.question.clearButtonCaption}))),w("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)},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(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther(t):null,n)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem(t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return w("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this,n=this.getStateValue();return this.question.columns.map((function(r,o){var s=r.map((function(r,s){return t.renderItem(r,n,e,""+o+s)}));return w("div",{key:"column"+o+t.question.getItemsColumnKey(r),className:t.question.getColumnClass(),role:"presentation"},s)}))},t.prototype.getBody=function(e){return this.question.blockedRow?w("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):w(q,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=this.getStateValue(),o=0;o<t.length;o++){var s=t[o],i=this.renderItem(s,r,e,""+o);n.push(i)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return w("div",{className:this.question.getCommentAreaCss(!0)},w(Cn,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r){var o=St.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:r,isChecked:t===e.value}),s=this.question.survey,i=null;return s&&(i=Mt.wrapItemValue(s,o,this.question,e)),null!=i?i:o},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(jt),oo=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef={current:null},n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return no(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(!!this.question&&!(this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render))},t.prototype.handleOnChange=function(e){this.question.clickItemHandler(this.item)},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.item===this.props.item||this.question.isDesignMode||(this.props.item&&this.props.item.setRootElement(this.rootRef.current),t.item&&t.item.setRootElement(void 0))},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),t=this.question.getLabelClass(this.item),n=this.question.getControlLabelClass(this.item),r=this.hideCaption?null:w("span",{className:n},this.renderLocString(this.item.locText,this.textStyle));return w("div",{className:e,role:"presentation",ref:this.rootRef},w("label",{onMouseDown:this.handleOnMouseDown,className:t},w("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?w("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?w("svg",{className:this.cssClasses.itemDecorator},w("use",{xlinkHref:this.question.itemSvgIcon})):null):null,r))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(Rt);St.Instance.registerElement("survey-radiogroup-item",(function(e){return w(oo,e)})),pn.Instance.registerQuestion("radiogroup",(function(e){return w(ro,e)}));var so=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),io=function(e){function t(t){return e.call(this,t)||this}return so(t,e),t.prototype.renderInput=function(){var e=this,t=this.question.getControlClass(),n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return w("div",null,this.question.inputValue);var r=this.question.getMaxLength()?w(dn,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return w(q,null,w("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:t,type:this.question.inputType,ref:function(t){return e.setControl(t)},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(t){e.question.onBlur(t)},onFocus:function(t){e.question.onFocus(t)},onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(t){return e.question.onCompositionUpdate(t.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}),r)},t.prototype.renderElement=function(){return this.question.dataListId?w("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.setValueCore=function(e){this.question.inputValue=e},t.prototype.getValueCore=function(){return this.question.inputValue},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(0==e.length)return null;for(var t=[],n=0;n<e.length;n++)t.push(w("option",{key:"item"+n,value:e[n]}));return w("datalist",{id:this.question.dataListId},t)},t}(Ht);pn.Instance.registerQuestion("text",(function(e){return w(io,e)}));var ao=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uo=function(e){function t(t){var n=e.call(this,t)||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 ao(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,t){this.question.onLabelClick(e,t)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var t=this.checkRef.current;t&&(t.indeterminate=this.question.isIndeterminate),this.setControl(t),e.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.getItemCss();return w("div",{className:t.root,onKeyDown:this.handleOnKeyDown},w("label",{className:n,onClick:this.handleOnClick},w("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.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}),w("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,e.question.swapOrder)}},w("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),w("div",{className:t.switch,onClick:this.handleOnSwitchClick},w("span",{className:t.slider},this.question.isDeterminated&&t.sliderText?w("span",{className:t.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),w("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!e.question.swapOrder)}},w("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},t}(jt);pn.Instance.registerQuestion("boolean",(function(e){return w(uo,e)}));var co=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lo=function(e){function t(t){return e.call(this,t)||this}return co(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),n=this.question.canRenderLabelDescription?Nt.renderQuestionDescription(this.question):null;return w("div",{className:e.rootCheckbox},w("div",{className:t},w("label",{className:e.checkboxLabel},w("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.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}),w("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?w("svg",{className:e.checkboxItemDecorator},w("use",{xlinkHref:this.question.svgIcon})):null,w("span",{className:"check"})),this.question.isLabelRendered&&w("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},w(un,{element:this.question,cssClasses:this.question.cssClasses}))),n))},t}(uo);pn.Instance.registerQuestion("sv-boolean-checkbox",(function(e){return w(lo,e)})),kt.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var po=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ho=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.booleanValue="true"==e.nativeEvent.target.value},n}return po(t,e),t.prototype.renderRadioItem=function(e,t){var n=this.question.cssClasses;return w("div",{role:"presentation",className:this.question.getRadioItemClass(n,e)},w("label",{className:n.radioLabel},w("input",{type:"radio",name:this.question.name,value:e,"aria-errormessage":this.question.ariaErrormessage,checked:e===this.question.booleanValueRendered,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:n.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?w("span",{className:n.materialRadioDecorator},this.question.itemSvgIcon?w("svg",{className:n.itemRadioDecorator},w("use",{xlinkHref:this.question.itemSvgIcon})):null):null,w("span",{className:n.radioControlLabel},this.renderLocString(t))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return w("div",{className:e.rootRadio},w("fieldset",{role:"presentation",className:e.radioFieldset},this.question.swapOrder?w(q,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):w(q,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},t}(uo);pn.Instance.registerQuestion("sv-boolean-radio",(function(e){return w(ho,e)})),kt.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var fo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mo=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return fo(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return w("div",null)},t}(jt);pn.Instance.registerQuestion("empty",(function(e){return w(mo,e)}));var vo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yo=function(e){function t(t){var n=e.call(this,t)||this;return n.root=Lt.createRef(),n.onPointerDownHandler=function(e){n.parentMatrix.onPointerDown(e.nativeEvent,n.model.row)},n}return vo(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.model!==this.model&&(t.element&&t.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0)},t.prototype.render=function(){var e=this,t=this.model;return t.visible?Lt.createElement("tr",{ref:this.root,className:t.className,"data-sv-drop-target-matrix-row":t.row&&t.row.id,onPointerDown:function(t){return e.onPointerDownHandler(t)}},this.props.children):null},t}(Nt);St.Instance.registerElement("sv-matrix-row",(function(e){return Lt.createElement(yo,e)}));var go=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Co=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return go(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return Lt.createElement("div",null,this.renderIcon())},t.prototype.renderIcon=function(){return this.question.iconDragElement?Lt.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},Lt.createElement("use",{xlinkHref:this.question.iconDragElement})):Lt.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(Rt);St.Instance.registerElement("sv-matrix-drag-drop-icon",(function(e){return Lt.createElement(Co,e)}));var _o=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _o(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.table},t.prototype.wrapCell=function(e,t,n){return this.props.wrapCell(e,t,n)},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var t=[],n=e.headerRow.cells,r=0;r<n.length;r++){var o=n[r],s="column"+r,i={};o.width&&(i.width=o.width),o.minWidth&&(i.minWidth=o.minWidth);var a=this.renderCellContent(o,"column-header",{}),u=o.hasTitle?w("th",{className:o.className,key:s,style:i}," ",a," "):w("td",{className:o.className,key:s,style:i});t.push(u)}return w("thead",null,w("tr",null,t))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;return e.showFooter?w("tfoot",null,this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer")):null},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],n=this.question.renderedTable.renderedRows,r=0;r<n.length;r++)t.push(this.renderRow(n[r].id,n[r],e));return w("tbody",null,t)},t.prototype.renderRow=function(e,t,n,r){for(var o=[],s=t.cells,i=0;i<s.length;i++)o.push(this.renderCell(s[i],i,n,r));return w(q,{key:"row"+e},"row-footer"==r?w("tr",null,o):w(yo,{model:t,parentMatrix:this.question},o))},t.prototype.renderCell=function(e,t,n,r){var o="cell"+t;if(e.hasQuestion)return w(Eo,{key:o,cssClasses:n,cell:e,creator:this.creator,reason:r});if(e.isErrorsCell&&e.isErrorsCell)return w(qo,{cell:e,key:o,keyValue:o,question:e.question,creator:this.creator});var s=r;s||(s=e.hasTitle?"row-header":"");var i=this.renderCellContent(e,s,n),a=null;return(e.width||e.minWidth)&&(a={},e.width&&(a.width=e.width),e.minWidth&&(a.minWidth=e.minWidth)),w("td",{className:e.className,key:o,style:a,colSpan:e.colSpans,title:e.getTitle()},i)},t.prototype.renderCellContent=function(e,t,n){var r=null,o=null;if((e.width||e.minWidth)&&(o={},e.width&&(o.width=e.width),e.minWidth&&(o.minWidth=e.minWidth)),e.hasTitle){t="row-header";var s=this.renderLocString(e.locTitle),i=e.column?w(Oo,{column:e.column,question:this.question}):null;r=w(q,null,s,i)}if(e.isDragHandlerCell&&(r=w(q,null,w(Co,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(r=St.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:n,cell:e,model:e.item.getData()})),e.hasPanel&&(r=w(tr,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:n,isDisplayMode:this.isDisplayMode,creator:this.creator})),!r)return null;var a=w(q,null,r);return this.wrapCell(e,a,t)},t.prototype.renderElement=function(){var e=this.renderHeader(),t=this.renderFooter(),n=this.renderRows();return w("table",{className:this.question.getTableCss()},e,n,t)},t}(Nt),bo=function(e){function t(t){var n=e.call(this,t)||this;n.question.renderedTable;return n.state=n.getState(),n}return _o(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){t.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this;return w("div",{style:this.question.showHorizontalScroll?{overflowX:"scroll"}:{},className:this.question.cssClasses.tableWrapper,ref:function(t){return e.setControl(t)}},w(wo,{question:this.question,creator:this.creator,wrapCell:function(t,n,r){return e.wrapCell(t,n,r)}}))},t}(jt),xo=function(e){function t(t){return e.call(this,t)||this}return _o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return w(rn,{model:this.model,handleClick:!1})},t}(Rt),qo=function(e){function t(t){return e.call(this,t)||this}return _o(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return this.props.keyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.cell.isVisible?w("td",{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},e.prototype.render.call(this)):null},t.prototype.getQuestionPropertiesToTrack=function(){return e.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"])},t}(Sn);St.Instance.registerElement("sv-matrixdynamic-actions-cell",(function(e){return w(xo,e)}));var Oo=function(e){function t(t){return e.call(this,t)||this}return _o(t,e),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?w(q,null,w("span",null," "),w("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(Rt),Eo=function(e){function t(t){return e.call(this,t)||this}return _o(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){var t=e.prototype.getQuestion.call(this);return t||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&"r"!==e.getAttribute("data-rendered")){e.setAttribute("data-rendered","r");var t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,t),this.question.afterRenderCore(e)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var t=e.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(t||(t={}),this.cell.width&&(t.width=this.cell.width),this.cell.minWidth&&(t.minWidth=this.cell.minWidth)),t},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderElement=function(){return this.cell.isVisible?e.prototype.renderElement.call(this):null},t.prototype.renderCellContent=function(){var t=e.prototype.renderCellContent.call(this),n=this.cell.showResponsiveTitle?w("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle)):null;return w(q,null,n,t)},t.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():On.renderQuestionBody(this.creator,this.question):w(q,null)},t.prototype.renderOtherComment=function(){var e=this.cell.question,t=e.cssClasses||{};return w(Cn,{question:e,cssClasses:t,otherCss:t.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return w(ir,{key:e,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})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return w(oo,{key:e,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})},t}(kn),Lo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ko=function(e){function t(t){return e.call(this,t)||this}return Lo(t,e),t}(bo);pn.Instance.registerQuestion("matrixdropdown",(function(e){return w(ko,e)}));var So=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mo=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return So(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return w("div",null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var t=this.renderLocString(this.matrix.locEmptyRowsText),n=w("div",{className:e.emptyRowsText},t),r=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(e,!0):void 0;return w("div",{className:e.emptyRowsSection},n,r)},t.prototype.renderAddRowButton=function(e,t){return void 0===t&&(t=!1),St.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:t})},t}(bo);pn.Instance.registerQuestion("matrixdynamic",(function(e){return w(Mo,e)}));var Io=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return So(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),t=w("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,w("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?t:w("div",{className:this.props.cssClasses.footer},t)},t}(Rt);St.Instance.registerElement("sv-matrixdynamic-add-btn",(function(e){return w(Io,e)}));var Po=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),No=function(e){function t(t){return e.call(this,t)||this}return Po(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(Rt),Ro=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.addPanelUI()},t}return Po(t,e),t.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var e=this.renderLocString(this.question.locPanelAddText);return Lt.createElement("button",{type:"button",id:this.question.addButtonId,className:this.question.getAddButtonCss(),onClick:this.handleClick},Lt.createElement("span",{className:this.question.cssClasses.buttonAddText},e))},t}(No);St.Instance.registerElement("sv-paneldynamic-add-btn",(function(e){return Lt.createElement(Ro,e)}));var jo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ho=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToNextPanel()},t}return jo(t,e),t.prototype.renderElement=function(){return Lt.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},Lt.createElement(Wt,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(No);St.Instance.registerElement("sv-paneldynamic-next-btn",(function(e){return Lt.createElement(Ho,e)}));var Bo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),To=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToPrevPanel()},t}return Bo(t,e),t.prototype.renderElement=function(){return Lt.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},Lt.createElement(Wt,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(No);St.Instance.registerElement("sv-paneldynamic-prev-btn",(function(e){return Lt.createElement(To,e)}));var Do=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Do(t,e),t.prototype.renderElement=function(){return Lt.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(No);St.Instance.registerElement("sv-paneldynamic-progress-text",(function(e){return Lt.createElement(Vo,e)}));var Zo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ao=function(e){function t(t){return e.call(this,t)||this}return Zo(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var t=this;this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=this,t=[];this.question.renderedPanels.forEach((function(n,r){t.push(w(Uo,{key:n.id,element:n,question:e.question,index:r,cssClasses:e.question.cssClasses,isDisplayMode:e.isDisplayMode,creator:e.creator}))}));var n=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,r=this.question.isProgressTopShowing?this.renderNavigator():null,o=this.question.isProgressBottomShowing?this.renderNavigator():null,s=this.renderNavigatorV2(),i=this.renderPlaceholder();return w("div",{className:this.question.cssClasses.root},i,r,w("div",{className:this.question.cssClasses.panelsContainer},t),o,n,s)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var e=this.question.isRangeShowing?this.renderRange():null,t=this.rendrerPrevButton(),n=this.rendrerNextButton(),r=this.renderAddRowButton();return w("div",{className:this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom},w("div",{style:{clear:"both"}},w("div",{className:this.question.cssClasses.progressContainer},t,e,n),r,this.renderProgressText()))},t.prototype.renderProgressText=function(){return w(Vo,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return w(To,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return w(Ho,{data:{question:this.question}})},t.prototype.renderRange=function(){return w("div",{className:this.question.cssClasses.progress},w("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return St.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return w("div",{className:this.question.cssClasses.footer},w("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?w("div",{className:this.question.cssClasses.footerButtonsContainer},w(rn,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?w("div",{className:this.question.cssClasses.noEntriesPlaceholder},w("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(jt),Uo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zo(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var t=e.prototype.render.call(this),n=this.renderButton(),r=this.question.showSeparator(this.index)?w("hr",{className:this.question.cssClasses.separator}):null;return w(q,null,w("div",{className:this.question.getPanelWrapperCss(this.panel)},t,n),r)},t.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:St.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(tr);pn.Instance.registerQuestion("paneldynamic",(function(e){return w(Ao,e)}));var Wo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fo=function(e){function t(t){return e.call(this,t)||this}return Wo(t,e),Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={width:this.progress+"%"};return w("div",{className:this.survey.getProgressCssClasses(this.props.container)},w("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},w("span",{className:kt.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),w("span",{className:kt.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(Gn);St.Instance.registerElement("sv-progress-pages",(function(e){return w(Fo,e)})),St.Instance.registerElement("sv-progress-questions",(function(e){return w(Fo,e)})),St.Instance.registerElement("sv-progress-correctquestions",(function(e){return w(Fo,e)})),St.Instance.registerElement("sv-progress-requiredquestions",(function(e){return w(Fo,e)}));var Qo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zo=function(e){function t(t){var n=e.call(this,t)||this;return n.listContainerRef={current:null},n}return Qo(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),t.prototype.onResize=function(e){this.setState({canShowItemTitles:e}),this.setState({canShowHeader:!e})},t.prototype.onUpdateScroller=function(e){this.setState({hasScroller:e})},t.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},t.prototype.render=function(){var e=this;return w("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?w("div",{className:this.css.progressButtonsHeader},w("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,w("div",{className:this.css.progressButtonsContainer},w("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),w("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},w("ul",{className:this.css.progressButtonsList},this.getListElements())),w("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})),this.state.canShowFooter?w("div",{className:this.css.progressButtonsFooter},w("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},t.prototype.getListElements=function(){var e=this,t=[];return this.survey.visiblePages.forEach((function(n,r){t.push(e.renderListElement(n,r))})),t},t.prototype.renderListElement=function(e,t){var n=this,r=Nt.renderLocString(e.locNavigationTitle);return w("li",{key:"listelement"+t,className:this.model.getListElementCss(t),onClick:this.model.isListElementClickable(t)?function(){return n.model.clickListElement(e)}:void 0,"data-page-number":this.model.getItemNumber(e)},w("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?w(q,null,w("div",{className:this.css.progressButtonsPageTitle,title:e.renderedNavigationTitle},r),w("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription)):null,w("div",{className:this.css.progressButtonsButton},w("div",{className:this.css.progressButtonsButtonBackground}),w("div",{className:this.css.progressButtonsButtonContent}),w("span",null,this.model.getItemNumber(e))))},t.prototype.clickScrollButton=function(e,t){e&&(e.scrollLeft+=70*(t?-1:1))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),setTimeout((function(){t.respManager=new kt.ProgressButtonsResponsivityManager(t.model,t.listContainerRef.current,t)}),10)},t.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),e.prototype.componentWillUnmount.call(this)},t}(Gn);St.Instance.registerElement("sv-progress-buttons",(function(e){return w(zo,e)}));var Ko=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleKeydown=function(e){t.model.onKeyDown(e)},t}return Ko(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var t={paddingInlineStart:this.model.getItemIndent(this.item)},n=this.model.getItemClass(this.item),r=this.item.component||this.model.itemComponent,o=St.Instance.createElement(r,{item:this.item,key:this.item.id,model:this.model}),s=Lt.createElement("div",{style:t,className:this.model.cssClasses.itemBody,title:this.item.locTitle.calculatedText,onMouseOver:function(t){e.model.onItemHover(e.item)},onMouseLeave:function(t){e.model.onItemLeave(e.item)}},o),i=this.item.needSeparator?Lt.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,a={display:this.model.isItemVisible(this.item)?null:"none"};return $n(Lt.createElement("li",{className:n,role:"option",style:a,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(t){e.model.onItemClick(e.item),t.stopPropagation()},onPointerDown:function(t){return e.model.onPointerDown(t,e.item)}},i,s),this.item)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(Nt);St.Instance.registerElement("sv-list-item",(function(e){return Lt.createElement($o,e)}));var Jo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Go=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.handleMouseMove=function(e){n.model.onMouseMove(e)},n.state={filterString:n.model.filterString||""},n.listContainerRef=Lt.createRef(),n}return Jo(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.componentDidUpdate=function(t,n){var r;e.prototype.componentDidUpdate.call(this,t,n),this.model!==t.model&&(this.model&&(null===(r=this.listContainerRef)||void 0===r?void 0:r.current)&&this.model.initListContainerHtmlElement(this.listContainerRef.current),t.model&&t.model.initListContainerHtmlElement(void 0))},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},t.prototype.renderElement=function(){return Lt.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},t.prototype.renderList=function(){if(!this.model.renderElements)return null;var e=this.renderItems(),t={display:this.model.isEmpty?"none":null};return Lt.createElement("ul",{className:this.model.getListClass(),style:t,role:"listbox",id:this.model.elementId,onMouseDown:function(e){e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var t=this.model.renderedActions;return t?t.map((function(t,n){return Lt.createElement($o,{model:e.model,item:t,key:"item"+n})})):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var t=this.model.showSearchClearButton&&this.model.filterString?Lt.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(t){e.model.onClickSearchClearButton(t)}},Lt.createElement(Wt,{iconName:"icon-searchclear",size:"auto"})):null;return Lt.createElement("div",{className:this.model.cssClasses.filter},Lt.createElement("div",{className:this.model.cssClasses.filterIcon},Lt.createElement(Wt,{iconName:"icon-search",size:"auto"})),Lt.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(t){e.model.goToItems(t)},onChange:function(t){var n=kt.settings.environment.root;t.target===n.activeElement&&(e.model.filterString=t.target.value)}}),t)}return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return Lt.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},Lt.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(Nt);St.Instance.registerElement("sv-list",(function(e){return Lt.createElement(Go,e)}));var Yo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yo(t,e),t.prototype.render=function(){var e,t=this.props.model;return e=t.isMobile?w("div",{onClick:t.togglePopup},w(Wt,{iconName:t.icon,size:24}),w(Gt,{model:t.popupModel})):w(Go,{model:t.listModel}),w("div",{className:t.containerCss},e)},t}(Gn);St.Instance.registerElement("sv-navigation-toc",(function(e){return w(Xo,e)}));var es=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ts=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return es(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderItem=function(e,t){return St.Instance.createElement(this.question.itemComponent,{question:this.question,item:e,index:t,key:"value"+t,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,r=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return w("div",{className:this.question.ratingRootCss,ref:function(t){return e.setControl(t)}},w("fieldset",{role:"radiogroup"},w("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?w("span",{className:t.minText},n):null,this.question.renderedRateItems.map((function(t,n){return e.renderItem(t,n)})),this.question.hasMaxLabel?w("span",{className:t.maxText},r):null))},t}(jt);pn.Instance.registerQuestion("rating",(function(e){return w(ts,e)}));var ns=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rs=function(e){function t(t){return e.call(this,t)||this}return ns(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.renderSelect(e);return w("div",{className:this.question.cssClasses.rootDropdown},t)},t}(Or);pn.Instance.registerQuestion("sv-rating-dropdown",(function(e){return w(rs,e)})),kt.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var os=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ss=function(e){function t(t){return e.call(this,t)||this}return os(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return w("div",{id:this.question.inputId,className:t.root,ref:function(t){return e.setControl(t)}},this.question.formatedValue)},t}(jt);pn.Instance.registerQuestion("expression",(function(e){return w(ss,e)}));var is=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),as=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return is(t,e),t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this,t=this.renderWindowHeader(),n=this.renderBody(),r={};return this.popup.renderedWidth&&(r.width=this.popup.renderedWidth,r.maxWidth=this.popup.renderedWidth),w("div",{className:this.popup.cssRoot,style:r,onScroll:function(){return e.popup.onScroll()}},w("div",{className:this.popup.cssRootContent},t,n))},t.prototype.renderWindowHeader=function(){var e,t=this.popup,n=(t.cssHeaderRoot,null),r=null,o=null;return t.isCollapsed?(" "+t.cssRootCollapsedMod,n=this.renderTitleCollapsed(t),e=this.renderExpandIcon()):e=this.renderCollapseIcon(),t.allowClose&&(r=this.renderCloseButton(this.popup)),t.allowFullScreen&&(o=this.renderAllowFullScreenButon(this.popup)),w("div",{className:t.cssHeaderRoot},n,w("div",{className:t.cssHeaderButtonsContainer},o,w("div",{className:t.cssHeaderCollapseButton,onClick:this.handleOnExpanded},e),r))},t.prototype.renderTitleCollapsed=function(e){return e.locTitle?w("div",{className:e.cssHeaderTitleCollapsed},e.locTitle.renderedHtml):null},t.prototype.renderExpandIcon=function(){return w(Wt,{iconName:"icon-restore_16x16",size:16})},t.prototype.renderCollapseIcon=function(){return w(Wt,{iconName:"icon-minimize_16x16",size:16})},t.prototype.renderCloseButton=function(e){var t=this;return w("div",{className:e.cssHeaderCloseButton,onClick:function(){e.hide(),"function"==typeof t.props.onClose&&t.props.onClose()}},w(Wt,{iconName:"icon-close_16x16",size:16}))},t.prototype.renderAllowFullScreenButon=function(e){var t;return t=e.isFullScreen?w(Wt,{iconName:"icon-back-to-panel_16x16",size:16}):w(Wt,{iconName:"icon-full-screen_16x16",size:16}),w("div",{className:e.cssHeaderFullScreenButton,onClick:function(){e.toggleFullScreen()}},t)},t.prototype.renderBody=function(){return w("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(t){t||(t={}),e.prototype.createSurvey.call(this,t),this.popup=new kt.PopupSurveyModel(null,this.survey),t.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=t.closeOnCompleteTimeout),this.popup.allowClose=t.allowClose,this.popup.allowFullScreen=t.allowFullScreen,this.popup.isShowing=!0,this.popup.isExpanded||!t.expanded&&!t.isExpanded||this.popup.expand()},t}(Kn),us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return is(t,e),t}(as),cs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ls=function(e){function t(t){return e.call(this,t)||this}return cs(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return w("fieldset",{className:this.question.getSelectBaseRootCss()},w("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var o=n.map((function(n,r){return t.renderItem("item"+r,n,e)}));return w("div",{key:"column"+r+t.question.getItemsColumnKey(n),className:t.question.getColumnClass(),role:"presentation"},o)}))},t.prototype.getItems=function(e){for(var t=[],n=0;n<this.question.visibleChoices.length;n++){var r=this.question.visibleChoices[n],o="item"+n;t.push(this.renderItem(o,r,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,t,n){var r=w(ps,{key:e,question:this.question,item:t,cssClasses:n}),o=this.question.survey,s=null;return o&&(s=Mt.wrapItemValue(o,r,this.question,t)),null!=s?s:r},t}(jt),ps=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return cs(t,e),t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}else this.question.value=e.target.value;this.setState({value:this.question.value})}},t.prototype.renderElement=function(){var e=this,t=this.item,n=this.question,r=this.cssClasses,o=n.isItemSelected(t),s=n.getItemClass(t),i=null;n.showLabel&&(i=w("span",{className:n.cssClasses.itemText},t.text?Nt.renderLocString(t.locText):t.value));var a={objectFit:this.question.imageFit},u=null;if(t.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(u=w("img",{className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:t.locText.renderedHtml,style:a,onLoad:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),t.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(u=w("video",{controls:!0,className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:a,onLoadedMetadata:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),!t.locImageLink.renderedHtml||t.contentNotLoaded){var c={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};u=w("div",{className:r.itemNoImage,style:c},r.itemNoImageSvgIcon?w(Wt,{className:r.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return w("div",{className:s},w("label",{className:r.label},w("input",{className:r.itemControl,id:this.question.getItemId(t),type:this.question.inputType,name:this.question.questionName,checked:o,value:t.value,disabled:!this.question.getItemEnabled(t),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}),w("div",{className:this.question.cssClasses.itemDecorator},w("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?w("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?w(Wt,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,u),i)))},t}(Rt);pn.Instance.registerQuestion("imagepicker",(function(e){return w(ls,e)}));var hs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ds=function(e){function t(t){return e.call(this,t)||this}return hs(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){t.forceUpdate()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=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 r=null;"image"===this.question.renderedMode&&(r=w("img",{className:t,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoad:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(r=w("video",{controls:!0,className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoadedMetadata:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(r=w("iframe",{className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n}));var o=null;return this.question.imageLink&&!this.question.contentNotLoaded||(o=w("div",{className:this.question.cssClasses.noImage},w(Wt,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),w("div",{className:this.question.cssClasses.root},r,o)},t}(jt);pn.Instance.registerQuestion("image",(function(e){return w(ds,e)}));var fs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ms=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return fs(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,r=this.renderCleanButton();return w("div",{className:t.root,ref:function(t){return e.setControl(t)},style:{width:this.question.renderedCanvasWidth}},w("div",{className:t.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),w("div",null,this.renderBackgroundImage(),w("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(t){e.question.onBlur(t)}})),r,n)},t.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?w("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},t.prototype.renderLoadingIndicator=function(){return w("div",{className:this.question.cssClasses.loadingIndicator},w(Zr,null))},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var t=this.question.cssClasses;return w("div",{className:t.controls},w("button",{type:"button",className:t.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?w(Wt,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):w("span",null,"✖")))},t}(jt);pn.Instance.registerQuestion("signaturepad",(function(e){return w(ms,e)}));var vs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ys=function(e){function t(t){return e.call(this,t)||this}return vs(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return Lt.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map((function(t,n){return Lt.createElement(gs,{key:e.question.inputId+"_"+n,item:t,question:e.question,index:n})}))},t}(jt),gs=function(e){function t(t){return e.call(this,t)||this}return vs(t,e),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new kt.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),t=this.renderInput(),n=this.renderCaption();return Lt.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},t,Lt.createElement("div",{className:this.model.css.decorator},e,n))},t.prototype.renderIcon=function(){return this.model.iconName?Lt.createElement(Wt,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return Lt.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(){e.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"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return Lt.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(Nt),Cs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_s=function(e){function t(t){return e.call(this,t)||this}return Cs(t,e),t.prototype.getStateElements=function(){var t=e.prototype.getStateElements.call(this);return this.question.contentQuestion&&t.push(this.question.contentQuestion),t},t.prototype.renderElement=function(){return On.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(Ht),ws=function(e){function t(t){return e.call(this,t)||this}return Cs(t,e),t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return w(tr,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(Ht);pn.Instance.registerQuestion("custom",(function(e){return w(_s,e)})),pn.Instance.registerQuestion("composite",(function(e){return w(ws,e)}));var bs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bs(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=[],t=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var n=Lt.createElement(Wt,{key:"icon",className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title});e.push(n),e.push(Lt.createElement("span",{key:"text"},t))}else e.push(t);if(this.item.markerIconName){n=Lt.createElement(Wt,{key:"marker",className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:this.item.markerIconSize});e.push(n)}return Lt.createElement(Lt.Fragment,null,e)},t}(Nt);St.Instance.registerElement("sv-list-item-content",(function(e){return Lt.createElement(xs,e)}));var qs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Os=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qs(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e;if(!this.item)return null;var t=St.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return Lt.createElement(Lt.Fragment,null,t,Lt.createElement(Gt,{model:null===(e=this.item)||void 0===e?void 0:e.popupModel}))},t}(Nt);St.Instance.registerElement("sv-list-item-group",(function(e){return Lt.createElement(Os,e)}));var Es=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ls=function(e){function t(t){return e.call(this,t)||this}return Es(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(Lt.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},Lt.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}}))),Lt.createElement(Lt.Fragment,null,e)},t}(Lt.Component);St.Instance.registerElement("sv-logo-image",(function(e){return Lt.createElement(Ls,e)}));var ks=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ss=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return ks(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return Lt.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,Lt.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(Rt);St.Instance.registerElement("sv-matrix-remove-button",(function(e){return Lt.createElement(Ss,e)}));var Ms=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Is=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return Ms(t,e),t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,t=e,n=e?this.row.detailPanelId:void 0;return Lt.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":t,"aria-controls":n},Lt.createElement(Wt,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(Rt);St.Instance.registerElement("sv-matrix-detail-button",(function(e){return Lt.createElement(Is,e)}));var Ps=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ns=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.removePanelUI(t.data.panel)},t}return Ps(t,e),t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locPanelRemoveText),t=this.question.getPanelRemoveButtonId(this.data.panel);return Lt.createElement("button",{id:t,className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},Lt.createElement("span",{className:this.question.cssClasses.buttonRemoveText},e),Lt.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(No);St.Instance.registerElement("sv-paneldynamic-remove-btn",(function(e){return Lt.createElement(Ns,e)}));var Rs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rs(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return Lt.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})},t}(Rt);St.Instance.registerElement("sv-nav-btn",(function(e){return Lt.createElement(js,e)}));var Hs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bs=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangedHandler=function(e,t){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=Lt.createRef(),n}return Hs(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,t){e.locStr&&e.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){var e=this.locStr.allowLineBreaks?"sv-string-viewer sv-string-viewer--multiline":"sv-string-viewer";if(this.locStr.hasHtml){var t={__html:this.locStr.renderedHtml};return Lt.createElement("span",{ref:this.rootRef,className:e,style:this.style,dangerouslySetInnerHTML:t})}return Lt.createElement("span",{ref:this.rootRef,className:e,style:this.style},this.locStr.renderedHtml)},t}(Lt.Component);St.Instance.registerElement(kt.LocalizableString.defaultRenderer,(function(e){return Lt.createElement(Bs,e)}));var Ts=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ds=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.render=function(){return Lt.createElement("div",null,Lt.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),Lt.createElement("span",{className:this.props.cssClasses.error.item||void 0},Lt.createElement(Bs,{locStr:this.props.error.locText})))},t}(Lt.Component);St.Instance.registerElement("sv-question-error",(function(e){return Lt.createElement(Ds,e)}));var Vs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vs(t,e),t.prototype.render=function(){var e,t;return Lt.createElement("div",{className:"sv-skeleton-element",id:null===(e=this.props.element)||void 0===e?void 0:e.id,style:{height:null===(t=this.props.element)||void 0===t?void 0:t.skeletonHeight}})},t}(Lt.Component);St.Instance.registerElement("sv-skeleton",(function(e){return Lt.createElement(Zs,e)}));var As=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return As(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),t=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return St.Instance.createElement(e,{data:t})},t.prototype.render=function(){return Lt.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?Lt.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?Lt.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},Lt.createElement(ln,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?Lt.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},Lt.createElement("div",{className:this.model.survey.css.description},Nt.renderLocString(this.model.survey.locDescription))):null)},t}(Lt.Component),Ws=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return As(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),t=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return St.Instance.createElement(e,{data:t})},t.prototype.render=function(){return Lt.createElement("div",{className:this.model.css,style:this.model.style},Lt.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?Lt.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?Lt.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},Lt.createElement(ln,{element:this.model.survey})):null,this.model.showDescription?Lt.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},Lt.createElement("div",{className:this.model.survey.css.description},Nt.renderLocString(this.model.survey.locDescription))):null))},t}(Lt.Component),Fs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return As(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(this.model.survey=this.props.survey,"advanced"!==this.props.survey.headerView)return null;var e=null;return e=this.props.survey.isMobile?Lt.createElement(Us,{model:this.model}):Lt.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map((function(e,t){return Lt.createElement(Ws,{key:t,model:e})}))),Lt.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?Lt.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,e)},t}(Nt);St.Instance.registerElement("sv-header",(function(e){return Lt.createElement(Fs,e)}));var Qs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zs=function(e){function t(t){var n=e.call(this,t)||this;return n.onInput=function(e){n.locStr.text=e.target.innerText},n.onClick=function(e){e.preventDefault(),e.stopPropagation()},n.state={changed:0},n}return Qs(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return Lt.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return Lt.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(Lt.Component);St.Instance.registerElement(kt.LocalizableString.editableRenderer,(function(e){return Lt.createElement(zs,e)}));var Ks=function(){return(Ks=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function $s(e,t,n){void 0===n&&(n={}),rt(w(Kn,Ks({model:e},n)),t)}function Js(e,t,n){void 0===n&&(n={}),rt(w(as,Ks({model:e},n)),t)}function Gs(e){return this.each((function(){Js(e.model,this,e)}))}var Ys=globalThis;"undefined"==typeof globalThis&&(Ys=window);var Xs=Ys.jQuery||Ys.$;if(void 0!==Xs)ei(Xs);else try{ei(Xs=n(3))}catch(e){}function ei(e){e.fn.extend({Survey:function(e){return this.each((function(){$s(e.model,this,e)}))},PopupSurvey:Gs,SurveyWindow:Gs})}kt.SurveyModel.platform="js-ui",kt.SurveyModel.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback?this.renderCallback():$s(this,e)};var ti=r;Object(kt.checkLibraryVersion)("1.12.12","survey-js-ui")}])}));
|
|
628
|
+
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z"></path></svg>'}})},e.exports=r()},function(e,n){if(void 0===t){var r=new Error("Cannot find module 'undefined'");throw r.code="MODULE_NOT_FOUND",r}e.exports=t},function(e,t,n){"use strict";n.r(t),n.d(t,"useState",(function(){return ue})),n.d(t,"useId",(function(){return Ce})),n.d(t,"useReducer",(function(){return ce})),n.d(t,"useEffect",(function(){return le})),n.d(t,"useLayoutEffect",(function(){return pe})),n.d(t,"useInsertionEffect",(function(){return Ne})),n.d(t,"useTransition",(function(){return Pe})),n.d(t,"useDeferredValue",(function(){return Ie})),n.d(t,"useSyncExternalStore",(function(){return ke})),n.d(t,"startTransition",(function(){return Me})),n.d(t,"useRef",(function(){return he})),n.d(t,"useImperativeHandle",(function(){return de})),n.d(t,"useMemo",(function(){return fe})),n.d(t,"useCallback",(function(){return me})),n.d(t,"useContext",(function(){return ve})),n.d(t,"useDebugValue",(function(){return ye})),n.d(t,"version",(function(){return mt})),n.d(t,"Children",(function(){return Ve})),n.d(t,"render",(function(){return rt})),n.d(t,"hydrate",(function(){return ot})),n.d(t,"unmountComponentAtNode",(function(){return wt})),n.d(t,"createPortal",(function(){return Je})),n.d(t,"createElement",(function(){return w})),n.d(t,"createContext",(function(){return z})),n.d(t,"createFactory",(function(){return vt})),n.d(t,"cloneElement",(function(){return _t})),n.d(t,"createRef",(function(){return x})),n.d(t,"Fragment",(function(){return q})),n.d(t,"isValidElement",(function(){return yt})),n.d(t,"isFragment",(function(){return gt})),n.d(t,"isMemo",(function(){return Ct})),n.d(t,"findDOMNode",(function(){return bt})),n.d(t,"Component",(function(){return O})),n.d(t,"PureComponent",(function(){return Re})),n.d(t,"memo",(function(){return je})),n.d(t,"forwardRef",(function(){return Te})),n.d(t,"flushSync",(function(){return qt})),n.d(t,"unstable_batchedUpdates",(function(){return xt})),n.d(t,"StrictMode",(function(){return Ot})),n.d(t,"Suspense",(function(){return Ue})),n.d(t,"SuspenseList",(function(){return Qe})),n.d(t,"lazy",(function(){return Fe})),n.d(t,"renderSurvey",(function(){return $s})),n.d(t,"renderPopupSurvey",(function(){return Js})),n.d(t,"preact",(function(){return ti})),n.d(t,"Survey",(function(){return Kn})),n.d(t,"attachKey2click",(function(){return $n})),n.d(t,"ReactSurveyElementsWrapper",(function(){return Mt})),n.d(t,"SurveyNavigationBase",(function(){return Gn})),n.d(t,"SurveyTimerPanel",(function(){return Xn})),n.d(t,"SurveyPage",(function(){return In})),n.d(t,"SurveyRow",(function(){return Vt})),n.d(t,"SurveyPanel",(function(){return tr})),n.d(t,"SurveyFlowPanel",(function(){return rr})),n.d(t,"SurveyQuestion",(function(){return On})),n.d(t,"SurveyElementErrors",(function(){return En})),n.d(t,"SurveyQuestionAndErrorsCell",(function(){return kn})),n.d(t,"ReactSurveyElement",(function(){return Rt})),n.d(t,"SurveyElementBase",(function(){return Nt})),n.d(t,"SurveyQuestionElementBase",(function(){return jt})),n.d(t,"SurveyQuestionCommentItem",(function(){return gn})),n.d(t,"SurveyQuestionComment",(function(){return yn})),n.d(t,"SurveyQuestionCheckbox",(function(){return sr})),n.d(t,"SurveyQuestionCheckboxItem",(function(){return ir})),n.d(t,"SurveyQuestionRanking",(function(){return ur})),n.d(t,"SurveyQuestionRankingItem",(function(){return cr})),n.d(t,"SurveyQuestionRankingItemContent",(function(){return lr})),n.d(t,"RatingItem",(function(){return dr})),n.d(t,"RatingItemStar",(function(){return mr})),n.d(t,"RatingItemSmiley",(function(){return yr})),n.d(t,"RatingDropdownItem",(function(){return Cr})),n.d(t,"TagboxFilterString",(function(){return wr})),n.d(t,"SurveyQuestionOptionItem",(function(){return xr})),n.d(t,"SurveyQuestionDropdownBase",(function(){return Or})),n.d(t,"SurveyQuestionDropdown",(function(){return Lr})),n.d(t,"SurveyQuestionTagboxItem",(function(){return Sr})),n.d(t,"SurveyQuestionTagbox",(function(){return Ir})),n.d(t,"SurveyQuestionDropdownSelect",(function(){return Nr})),n.d(t,"SurveyQuestionMatrix",(function(){return jr})),n.d(t,"SurveyQuestionMatrixRow",(function(){return Hr})),n.d(t,"SurveyQuestionMatrixCell",(function(){return Br})),n.d(t,"SurveyQuestionHtml",(function(){return Dr})),n.d(t,"SurveyQuestionFile",(function(){return Fr})),n.d(t,"SurveyFileChooseButton",(function(){return Ur})),n.d(t,"SurveyFilePreview",(function(){return Gr})),n.d(t,"SurveyQuestionMultipleText",(function(){return Xr})),n.d(t,"SurveyQuestionRadiogroup",(function(){return ro})),n.d(t,"SurveyQuestionRadioItem",(function(){return oo})),n.d(t,"SurveyQuestionText",(function(){return io})),n.d(t,"SurveyQuestionBoolean",(function(){return uo})),n.d(t,"SurveyQuestionBooleanCheckbox",(function(){return lo})),n.d(t,"SurveyQuestionBooleanRadio",(function(){return ho})),n.d(t,"SurveyQuestionEmpty",(function(){return mo})),n.d(t,"SurveyQuestionMatrixDropdownCell",(function(){return Eo})),n.d(t,"SurveyQuestionMatrixDropdownBase",(function(){return bo})),n.d(t,"SurveyQuestionMatrixDropdown",(function(){return ko})),n.d(t,"SurveyQuestionMatrixDynamic",(function(){return Mo})),n.d(t,"SurveyQuestionMatrixDynamicAddButton",(function(){return Io})),n.d(t,"SurveyQuestionPanelDynamic",(function(){return Ao})),n.d(t,"SurveyProgress",(function(){return Fo})),n.d(t,"SurveyProgressButtons",(function(){return zo})),n.d(t,"SurveyProgressToc",(function(){return Xo})),n.d(t,"SurveyQuestionRating",(function(){return ts})),n.d(t,"SurveyQuestionRatingDropdown",(function(){return rs})),n.d(t,"SurveyQuestionExpression",(function(){return ss})),n.d(t,"PopupSurvey",(function(){return as})),n.d(t,"SurveyWindow",(function(){return us})),n.d(t,"ReactQuestionFactory",(function(){return pn})),n.d(t,"ReactElementFactory",(function(){return St})),n.d(t,"SurveyQuestionImagePicker",(function(){return ls})),n.d(t,"SurveyQuestionImage",(function(){return ds})),n.d(t,"SurveyQuestionSignaturePad",(function(){return ms})),n.d(t,"SurveyQuestionButtonGroup",(function(){return ys})),n.d(t,"SurveyQuestionCustom",(function(){return _s})),n.d(t,"SurveyQuestionComposite",(function(){return ws})),n.d(t,"Popup",(function(){return Gt})),n.d(t,"ListItemContent",(function(){return xs})),n.d(t,"ListItemGroup",(function(){return Os})),n.d(t,"List",(function(){return Go})),n.d(t,"TitleActions",(function(){return un})),n.d(t,"TitleElement",(function(){return ln})),n.d(t,"SurveyActionBar",(function(){return rn})),n.d(t,"LogoImage",(function(){return Ls})),n.d(t,"SurveyHeader",(function(){return Nn})),n.d(t,"SvgIcon",(function(){return Wt})),n.d(t,"SurveyQuestionMatrixDynamicRemoveButton",(function(){return Ss})),n.d(t,"SurveyQuestionMatrixDetailButton",(function(){return Is})),n.d(t,"SurveyQuestionMatrixDynamicDragDropIcon",(function(){return Co})),n.d(t,"SurveyQuestionPanelDynamicAddButton",(function(){return Ro})),n.d(t,"SurveyQuestionPanelDynamicRemoveButton",(function(){return Ns})),n.d(t,"SurveyQuestionPanelDynamicPrevButton",(function(){return To})),n.d(t,"SurveyQuestionPanelDynamicNextButton",(function(){return Ho})),n.d(t,"SurveyQuestionPanelDynamicProgressText",(function(){return Vo})),n.d(t,"SurveyNavigationButton",(function(){return js})),n.d(t,"QuestionErrorComponent",(function(){return Ds})),n.d(t,"MatrixRow",(function(){return yo})),n.d(t,"Skeleton",(function(){return Zs})),n.d(t,"NotifierComponent",(function(){return Bn})),n.d(t,"ComponentsContainer",(function(){return Dn})),n.d(t,"CharacterCounterComponent",(function(){return dn})),n.d(t,"HeaderMobile",(function(){return Us})),n.d(t,"HeaderCell",(function(){return Ws})),n.d(t,"Header",(function(){return Fs})),n.d(t,"SurveyLocStringViewer",(function(){return Bs})),n.d(t,"SurveyLocStringEditor",(function(){return zs})),n.d(t,"LoadingIndicatorComponent",(function(){return Zr})),n.d(t,"SvgBundleComponent",(function(){return Zn})),n.d(t,"PopupModal",(function(){return Un})),n.d(t,"SurveyModel",(function(){return kt.SurveyModel})),n.d(t,"SurveyWindowModel",(function(){return kt.SurveyWindowModel})),n.d(t,"settings",(function(){return kt.settings})),n.d(t,"ISurveyEnvironment",(function(){return kt.ISurveyEnvironment})),n.d(t,"surveyLocalization",(function(){return kt.surveyLocalization})),n.d(t,"surveyStrings",(function(){return kt.surveyStrings})),n.d(t,"Model",(function(){return kt.SurveyModel}));var r={};n.r(r),n.d(r,"Component",(function(){return O})),n.d(r,"Fragment",(function(){return q})),n.d(r,"createContext",(function(){return z})),n.d(r,"createElement",(function(){return w})),n.d(r,"createRef",(function(){return x})),n.d(r,"useCallback",(function(){return me})),n.d(r,"useContext",(function(){return ve})),n.d(r,"useDebugValue",(function(){return ye})),n.d(r,"useEffect",(function(){return le})),n.d(r,"useErrorBoundary",(function(){return ge})),n.d(r,"useId",(function(){return Ce})),n.d(r,"useImperativeHandle",(function(){return de})),n.d(r,"useLayoutEffect",(function(){return pe})),n.d(r,"useMemo",(function(){return fe})),n.d(r,"useReducer",(function(){return ce})),n.d(r,"useRef",(function(){return he})),n.d(r,"useState",(function(){return ue})),n.d(r,"Children",(function(){return Ve})),n.d(r,"PureComponent",(function(){return Re})),n.d(r,"StrictMode",(function(){return Ot})),n.d(r,"Suspense",(function(){return Ue})),n.d(r,"SuspenseList",(function(){return Qe})),n.d(r,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",(function(){return ft})),n.d(r,"cloneElement",(function(){return _t})),n.d(r,"createFactory",(function(){return vt})),n.d(r,"createPortal",(function(){return Je})),n.d(r,"default",(function(){return Lt})),n.d(r,"findDOMNode",(function(){return bt})),n.d(r,"flushSync",(function(){return qt})),n.d(r,"forwardRef",(function(){return Te})),n.d(r,"hydrate",(function(){return ot})),n.d(r,"isElement",(function(){return Et})),n.d(r,"isFragment",(function(){return gt})),n.d(r,"isMemo",(function(){return Ct})),n.d(r,"isValidElement",(function(){return yt})),n.d(r,"lazy",(function(){return Fe})),n.d(r,"memo",(function(){return je})),n.d(r,"render",(function(){return rt})),n.d(r,"startTransition",(function(){return Me})),n.d(r,"unmountComponentAtNode",(function(){return wt})),n.d(r,"unstable_batchedUpdates",(function(){return xt})),n.d(r,"useDeferredValue",(function(){return Ie})),n.d(r,"useInsertionEffect",(function(){return Ne})),n.d(r,"useSyncExternalStore",(function(){return ke})),n.d(r,"useTransition",(function(){return Pe})),n.d(r,"version",(function(){return mt}));var o,s,i,a,u,c,l,p,h,d,f,m={},v=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,g=Array.isArray;function C(e,t){for(var n in t)e[n]=t[n];return e}function _(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function w(e,t,n){var r,s,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?s=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?o.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return b(e,a,r,s,null)}function b(e,t,n,r,o){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++i:o,__i:-1,__u:0};return null==o&&null!=s.vnode&&s.vnode(a),a}function x(){return{current:null}}function q(e){return e.children}function O(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?E(e):null}function L(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return L(e)}}function k(e){(!e.__d&&(e.__d=!0)&&a.push(e)&&!S.__r++||u!==s.debounceRendering)&&((u=s.debounceRendering)||c)(S)}function S(){var e,t,n,r,o,i,u,c;for(a.sort(l);e=a.shift();)e.__d&&(t=a.length,r=void 0,i=(o=(n=e).__v).__e,u=[],c=[],n.__P&&((r=C({},o)).__v=o.__v+1,s.vnode&&s.vnode(r),T(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,u,null==i?E(o):i,!!(32&o.__u),c),r.__v=o.__v,r.__.__k[r.__i]=r,D(u,r,c),r.__e!=i&&L(r)),a.length>t&&a.sort(l));S.__r=0}function M(e,t,n,r,o,s,i,a,u,c,l){var p,h,d,f,y,g=r&&r.__k||v,C=t.length;for(n.__d=u,I(n,t,g),u=n.__d,p=0;p<C;p++)null!=(d=n.__k[p])&&(h=-1===d.__i?m:g[d.__i]||m,d.__i=p,T(e,d,h,o,s,i,a,u,c,l),f=d.__e,d.ref&&h.ref!=d.ref&&(h.ref&&Z(h.ref,null,d),l.push(d.ref,d.__c||f,d)),null==y&&null!=f&&(y=f),65536&d.__u||h.__k===d.__k?u=P(d,u,e):"function"==typeof d.type&&void 0!==d.__d?u=d.__d:f&&(u=f.nextSibling),d.__d=void 0,d.__u&=-196609);n.__d=u,n.__e=y}function I(e,t,n){var r,o,s,i,a,u=t.length,c=n.length,l=c,p=0;for(e.__k=[],r=0;r<u;r++)null!=(o=t[r])&&"boolean"!=typeof o&&"function"!=typeof o?(i=r+p,(o=e.__k[r]="string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?b(null,o,null,null,null):g(o)?b(q,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?b(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,-1!==(a=o.__i=R(o,n,i,l))&&(l--,(s=n[a])&&(s.__u|=131072)),null==s||null===s.__v?(-1==a&&p--,"function"!=typeof o.type&&(o.__u|=65536)):a!==i&&(a==i-1?p--:a==i+1?p++:(a>i?p--:p++,o.__u|=65536))):o=e.__k[r]=null;if(l)for(r=0;r<c;r++)null!=(s=n[r])&&0==(131072&s.__u)&&(s.__e==e.__d&&(e.__d=E(s)),A(s,s))}function P(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=P(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=E(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function N(e,t){return t=t||[],null==e||"boolean"==typeof e||(g(e)?e.some((function(e){N(e,t)})):t.push(e)),t}function R(e,t,n,r){var o=e.key,s=e.type,i=n-1,a=n+1,u=t[n];if(null===u||u&&o==u.key&&s===u.type&&0==(131072&u.__u))return n;if(("function"!=typeof s||s===q||o)&&r>(null!=u&&0==(131072&u.__u)?1:0))for(;i>=0||a<t.length;){if(i>=0){if((u=t[i])&&0==(131072&u.__u)&&o==u.key&&s===u.type)return i;i--}if(a<t.length){if((u=t[a])&&0==(131072&u.__u)&&o==u.key&&s===u.type)return a;a++}}return-1}function j(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||y.test(t)?n:n+"px"}function H(e,t,n,r,o){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||j(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||j(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=p,e.addEventListener(t,s?d:h,s)):e.removeEventListener(t,s?d:h,s);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function B(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=p++;else if(t.t<n.u)return;return s.event&&(t=s.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function T(e,t,n,r,o,i,a,u,c,l){var p,h,d,f,m,v,y,_,w,b,x,E,L,k,S,I,P=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[u=t.__e=n.__e]),(p=s.__b)&&p(t);e:if("function"==typeof P)try{if(_=t.props,w="prototype"in P&&P.prototype.render,b=(p=P.contextType)&&r[p.__c],x=p?b?b.props.value:p.__:r,n.__c?y=(h=t.__c=n.__c).__=h.__E:(w?t.__c=h=new P(_,x):(t.__c=h=new O(_,x),h.constructor=P,h.render=U),b&&b.sub(h),h.props=_,h.state||(h.state={}),h.context=x,h.__n=r,d=h.__d=!0,h.__h=[],h._sb=[]),w&&null==h.__s&&(h.__s=h.state),w&&null!=P.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=C({},h.__s)),C(h.__s,P.getDerivedStateFromProps(_,h.__s))),f=h.props,m=h.state,h.__v=t,d)w&&null==P.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),w&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(w&&null==P.getDerivedStateFromProps&&_!==f&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(_,x),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(_,h.__s,x)||t.__v===n.__v)){for(t.__v!==n.__v&&(h.props=_,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),E=0;E<h._sb.length;E++)h.__h.push(h._sb[E]);h._sb=[],h.__h.length&&a.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(_,h.__s,x),w&&null!=h.componentDidUpdate&&h.__h.push((function(){h.componentDidUpdate(f,m,v)}))}if(h.context=x,h.props=_,h.__P=e,h.__e=!1,L=s.__r,k=0,w){for(h.state=h.__s,h.__d=!1,L&&L(t),p=h.render(h.props,h.state,h.context),S=0;S<h._sb.length;S++)h.__h.push(h._sb[S]);h._sb=[]}else do{h.__d=!1,L&&L(t),p=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++k<25);h.state=h.__s,null!=h.getChildContext&&(r=C(C({},r),h.getChildContext())),w&&!d&&null!=h.getSnapshotBeforeUpdate&&(v=h.getSnapshotBeforeUpdate(f,m)),M(e,g(I=null!=p&&p.type===q&&null==p.key?p.props.children:p)?I:[I],t,n,r,o,i,a,u,c,l),h.base=t.__e,t.__u&=-161,h.__h.length&&a.push(h),y&&(h.__E=h.__=null)}catch(e){if(t.__v=null,c||null!=i){for(t.__u|=c?160:128;u&&8===u.nodeType&&u.nextSibling;)u=u.nextSibling;i[i.indexOf(u)]=null,t.__e=u}else t.__e=n.__e,t.__k=n.__k;s.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=V(n.__e,t,n,r,o,i,a,c,l);(p=s.diffed)&&p(t)}function D(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)Z(n[r],n[++r],n[++r]);s.__c&&s.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){s.__e(e,t.__v)}}))}function V(e,t,n,r,i,a,u,c,l){var p,h,d,f,v,y,C,w=n.props,b=t.props,x=t.type;if("svg"===x?i="http://www.w3.org/2000/svg":"math"===x?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(p=0;p<a.length;p++)if((v=a[p])&&"setAttribute"in v==!!x&&(x?v.localName===x:3===v.nodeType)){e=v,a[p]=null;break}if(null==e){if(null===x)return document.createTextNode(b);e=document.createElementNS(i,x,b.is&&b),c&&(s.__m&&s.__m(t,a),c=!1),a=null}if(null===x)w===b||c&&e.data===b||(e.data=b);else{if(a=a&&o.call(e.childNodes),w=n.props||m,!c&&null!=a)for(w={},p=0;p<e.attributes.length;p++)w[(v=e.attributes[p]).name]=v.value;for(p in w)if(v=w[p],"children"==p);else if("dangerouslySetInnerHTML"==p)d=v;else if(!(p in b)){if("value"==p&&"defaultValue"in b||"checked"==p&&"defaultChecked"in b)continue;H(e,p,null,v,i)}for(p in b)v=b[p],"children"==p?f=v:"dangerouslySetInnerHTML"==p?h=v:"value"==p?y=v:"checked"==p?C=v:c&&"function"!=typeof v||w[p]===v||H(e,p,v,w[p],i);if(h)c||d&&(h.__html===d.__html||h.__html===e.innerHTML)||(e.innerHTML=h.__html),t.__k=[];else if(d&&(e.innerHTML=""),M(e,g(f)?f:[f],t,n,r,"foreignObject"===x?"http://www.w3.org/1999/xhtml":i,a,u,a?a[0]:n.__k&&E(n,0),c,l),null!=a)for(p=a.length;p--;)_(a[p]);c||(p="value","progress"===x&&null==y?e.removeAttribute("value"):void 0!==y&&(y!==e[p]||"progress"===x&&!y||"option"===x&&y!==w[p])&&H(e,p,y,w[p],i),p="checked",void 0!==C&&C!==e[p]&&H(e,p,C,w[p],i))}return e}function Z(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){s.__e(e,n)}}function A(e,t,n){var r,o;if(s.unmount&&s.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Z(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){s.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&A(r[o],t,n||"function"!=typeof e.type);n||_(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function U(e,t,n){return this.constructor(e,n)}function W(e,t,n){var r,i,a,u;s.__&&s.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,a=[],u=[],T(t,e=(!r&&n||t).__k=w(q,null,[e]),i||m,m,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?o.call(t.childNodes):null,a,!r&&n?n:i?i.__e:t.firstChild,r,u),D(a,e,u)}function F(e,t){W(e,t,F)}function Q(e,t,n){var r,s,i,a,u=C({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?s=t[i]:u[i]=void 0===t[i]&&void 0!==a?a[i]:t[i];return arguments.length>2&&(u.children=arguments.length>3?o.call(arguments,2):n),b(e.type,u,r||e.key,s||e.ref,null)}function z(e,t){var n={__c:t="__cC"+f++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,k(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}o=v.slice,s={__e:function(e,t,n,r){for(var o,s,i;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&null!=s.getDerivedStateFromError&&(o.setState(s.getDerivedStateFromError(e)),i=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),i=o.__d),i)return o.__E=o}catch(t){e=t}throw e}},i=0,O.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=C({},this.state),"function"==typeof e&&(e=e(C({},n),this.props)),e&&C(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),k(this))},O.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),k(this))},O.prototype.render=q,a=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},S.__r=0,p=0,h=B(!1),d=B(!0),f=0;var K,$,J,G,Y=0,X=[],ee=s,te=ee.__b,ne=ee.__r,re=ee.diffed,oe=ee.__c,se=ee.unmount,ie=ee.__;function ae(e,t){ee.__h&&ee.__h($,e,Y||t),Y=0;var n=$.__H||($.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ue(e){return Y=1,ce(Ee,e)}function ce(e,t,n){var r=ae(K++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ee(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=$,!$.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!s||s.call(this,e,t,n);var i=r.__c.props!==e;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}})),s&&s.call(this,e,t,n)||i};$.u=!0;var s=$.shouldComponentUpdate,i=$.componentWillUpdate;$.componentWillUpdate=function(e,t,n){if(this.__e){var r=s;s=void 0,o(e,t,n),s=r}i&&i.call(this,e,t,n)},$.shouldComponentUpdate=o}return r.__N||r.__}function le(e,t){var n=ae(K++,3);!ee.__s&&Oe(n.__H,t)&&(n.__=e,n.i=t,$.__H.__h.push(n))}function pe(e,t){var n=ae(K++,4);!ee.__s&&Oe(n.__H,t)&&(n.__=e,n.i=t,$.__h.push(n))}function he(e){return Y=5,fe((function(){return{current:e}}),[])}function de(e,t,n){Y=6,pe((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function fe(e,t){var n=ae(K++,7);return Oe(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function me(e,t){return Y=8,fe((function(){return e}),t)}function ve(e){var t=$.context[e.__c],n=ae(K++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub($)),t.props.value):e.__}function ye(e,t){ee.useDebugValue&&ee.useDebugValue(t?t(e):e)}function ge(e){var t=ae(K++,10),n=ue();return t.__=e,$.componentDidCatch||($.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function Ce(){var e=ae(K++,11);if(!e.__){for(var t=$.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function _e(){for(var e;e=X.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(xe),e.__H.__h.forEach(qe),e.__H.__h=[]}catch(t){e.__H.__h=[],ee.__e(t,e.__v)}}ee.__b=function(e){$=null,te&&te(e)},ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ie&&ie(e,t)},ee.__r=function(e){ne&&ne(e),K=0;var t=($=e.__c).__H;t&&(J===$?(t.__h=[],$.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(xe),t.__h.forEach(qe),t.__h=[],K=0)),J=$},ee.diffed=function(e){re&&re(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==X.push(t)&&G===ee.requestAnimationFrame||((G=ee.requestAnimationFrame)||be)(_e)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),J=$=null},ee.__c=function(e,t){t.some((function(e){try{e.__h.forEach(xe),e.__h=e.__h.filter((function(e){return!e.__||qe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ee.__e(n,e.__v)}})),oe&&oe(e,t)},ee.unmount=function(e){se&&se(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{xe(e)}catch(e){t=e}})),n.__H=void 0,t&&ee.__e(t,n.__v))};var we="function"==typeof requestAnimationFrame;function be(e){var t,n=function(){clearTimeout(r),we&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);we&&(t=requestAnimationFrame(n))}function xe(e){var t=$,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),$=t}function qe(e){var t=$;e.__c=e.__(),$=t}function Oe(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ee(e,t){return"function"==typeof t?t(e):t}function Le(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function ke(e,t){var n=t(),r=ue({t:{__:n,u:t}}),o=r[0].t,s=r[1];return pe((function(){o.__=n,o.u=t,Se(o)&&s({t:o})}),[e,n,t]),le((function(){return Se(o)&&s({t:o}),e((function(){Se(o)&&s({t:o})}))}),[e]),n}function Se(e){var t,n,r=e.u,o=e.__;try{var s=r();return!((t=o)===(n=s)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(e){return!0}}function Me(e){e()}function Ie(e){return e}function Pe(){return[!1,Me]}var Ne=pe;function Re(e,t){this.props=e,this.context=t}function je(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:Le(this.props,e)}function r(t){return this.shouldComponentUpdate=n,w(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Re.prototype=new O).isPureReactComponent=!0,Re.prototype.shouldComponentUpdate=function(e,t){return Le(this.props,e)||Le(this.state,t)};var He=s.__b;s.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),He&&He(e)};var Be="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Te(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var r=e(t,n);return t.ref=n,r}return t.$$typeof=Be,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var De=function(e,t){return null==e?null:N(N(e).map(t))},Ve={map:De,forEach:De,count:function(e){return e?N(e).length:0},only:function(e){var t=N(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:N},Ze=s.__e;s.__e=function(e,t,n,r){if(e.then)for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ze(e,t,n,r)};var Ae=s.unmount;function Ue(){this.__u=0,this.o=null,this.__b=null}function We(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Fe(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return w(n,o)}return o.displayName="Lazy",o.__f=!0,o}function Qe(){this.i=null,this.l=null}s.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ae&&Ae(e)},(Ue.prototype=new O).__c=function(e,t){var n=t.__c,r=this;null==r.o&&(r.o=[]),r.o.push(n);var o=We(r.__v),s=!1,i=function(){s||(s=!0,n.__R=null,o?o(a):a())};n.__R=i;var a=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=function e(t,n,r){return t&&r&&(t.__v=null,t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)})),t.__c&&t.__c.__P===n&&(t.__e&&r.appendChild(t.__e),t.__c.__e=!0,t.__c.__P=r)),t}(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(i,i)},Ue.prototype.componentWillUnmount=function(){this.o=[]},Ue.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=function e(t,n,r){return t&&(t.__c&&t.__c.__H&&(t.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),t.__c.__H=null),null!=(t=function(e,t){for(var n in t)e[n]=t[n];return e}({},t)).__c&&(t.__c.__P===r&&(t.__c.__P=n),t.__c=null),t.__k=t.__k&&t.__k.map((function(t){return e(t,n,r)}))),t}(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&w(q,null,e.fallback);return o&&(o.__u&=-33),[w(q,null,t.__a?null:e.children),o]};var ze=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function Ke(e){return this.getChildContext=function(){return e.context},e.children}function $e(e){var t=this,n=e.h;t.componentWillUnmount=function(){W(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.h.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.h.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}),W(w(Ke,{context:t.context},e.__v),t.v)}function Je(e,t){var n=w($e,{__v:e,h:t});return n.containerInfo=t,n}(Qe.prototype=new O).__a=function(e){var t=this,n=We(t.__v),r=t.l.get(e);return r[0]++,function(o){var s=function(){t.props.revealOrder?(r.push(o),ze(t,e,r)):o()};n?n(s):s()}},Qe.prototype.render=function(e){this.i=null,this.l=new Map;var t=N(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Qe.prototype.componentDidUpdate=Qe.prototype.componentDidMount=function(){var e=this;this.l.forEach((function(t,n){ze(e,n,t)}))};var Ge="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ye=/^(?: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]/,Xe=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,et=/[A-Z0-9]/g,tt="undefined"!=typeof document,nt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function rt(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function ot(e,t,n){return F(e,t),"function"==typeof n&&n(),e?e.__c:null}O.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(O.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var st=s.event;function it(){}function at(){return this.cancelBubble}function ut(){return this.defaultPrevented}s.event=function(e){return st&&(e=st(e)),e.persist=it,e.isPropagationStopped=at,e.isDefaultPrevented=ut,e.nativeEvent=e};var ct,lt={enumerable:!1,configurable:!0,get:function(){return this.class}},pt=s.vnode;s.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var s in t){var i=t[s];if(!("value"===s&&"defaultValue"in t&&null==i||tt&&"children"===s&&"noscript"===n||"class"===s||"className"===s)){var a=s.toLowerCase();"defaultValue"===s&&"value"in t&&null==t.value?s="value":"download"===s&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"o"===a[0]&&"n"===a[1]?"ondoubleclick"===a?s="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||nt(t.type)?"onfocus"===a?s="onfocusin":"onblur"===a?s="onfocusout":Xe.test(s)&&(s=a):a=s="oninput":o&&Ye.test(s)?s=s.replace(et,"-$&").toLowerCase():null===i&&(i=void 0),"oninput"===a&&r[s=a]&&(s="oninputCapture"),r[s]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=N(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=N(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",lt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Ge,pt&&pt(e)};var ht=s.__r;s.__r=function(e){ht&&ht(e),ct=e.__c};var dt=s.diffed;s.diffed=function(e){dt&&dt(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ct=null};var ft={ReactCurrentDispatcher:{current:{readContext:function(e){return ct.__n[e.__c].props.value},useCallback:me,useContext:ve,useDebugValue:ye,useDeferredValue:Ie,useEffect:le,useId:Ce,useImperativeHandle:de,useInsertionEffect:Ne,useLayoutEffect:pe,useMemo:fe,useReducer:ce,useRef:he,useState:ue,useSyncExternalStore:ke,useTransition:Pe}}},mt="18.3.1";function vt(e){return w.bind(null,e)}function yt(e){return!!e&&e.$$typeof===Ge}function gt(e){return yt(e)&&e.type===q}function Ct(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function _t(e){return yt(e)?Q.apply(null,arguments):e}function wt(e){return!!e.__k&&(W(null,e),!0)}function bt(e){return e&&(e.base||1===e.nodeType&&e)||null}var xt=function(e,t){return e(t)},qt=function(e,t){return e(t)},Ot=q,Et=yt,Lt={useState:ue,useId:Ce,useReducer:ce,useEffect:le,useLayoutEffect:pe,useInsertionEffect:Ne,useTransition:Pe,useDeferredValue:Ie,useSyncExternalStore:ke,startTransition:Me,useRef:he,useImperativeHandle:de,useMemo:fe,useCallback:me,useContext:ve,useDebugValue:ye,version:"18.3.1",Children:Ve,render:rt,hydrate:ot,unmountComponentAtNode:wt,createPortal:Je,createElement:w,createContext:z,createFactory:vt,cloneElement:_t,createRef:x,Fragment:q,isValidElement:yt,isElement:Et,isFragment:gt,isMemo:Ct,findDOMNode:bt,Component:O,PureComponent:Re,memo:je,forwardRef:Te,flushSync:qt,unstable_batchedUpdates:xt,StrictMode:Ot,Suspense:Ue,SuspenseList:Qe,lazy:Fe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ft},kt=n(0),St=function(){function e(){this.creatorHash={}}return e.prototype.registerElement=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.isElementRegistered=function(e){return!!this.creatorHash[e]},e.prototype.createElement=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}(),Mt=function(){function e(){}return e.wrapRow=function(e,t,n){var r=e.getRowWrapperComponentName(n),o=e.getRowWrapperComponentData(n);return St.Instance.createElement(r,{element:t,row:n,componentData:o})},e.wrapElement=function(e,t,n){var r=e.getElementWrapperComponentName(n),o=e.getElementWrapperComponentData(n);return St.Instance.createElement(r,{element:t,question:n,componentData:o})},e.wrapQuestionContent=function(e,t,n){var r=e.getQuestionContentWrapperComponentName(n),o=e.getElementWrapperComponentData(n);return St.Instance.createElement(r,{element:t,question:n,componentData:o})},e.wrapItemValue=function(e,t,n,r){var o=e.getItemValueWrapperComponentName(r,n),s=e.getItemValueWrapperComponentData(r,n);return St.Instance.createElement(o,{key:null==t?void 0:t.key,element:t,question:n,item:r,componentData:s})},e.wrapMatrixCell=function(e,t,n,r){void 0===r&&(r="cell");var o=e.getElementWrapperComponentName(n,r),s=e.getElementWrapperComponentData(n,r);return St.Instance.createElement(o,{element:t,cell:n,componentData:s})},e}();kt.SurveyModel.platform="react";var It,Pt=(It=function(e,t){return(It=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}It(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Nt=function(e){function t(t){var n=e.call(this,t)||this;return n._allowComponentUpdate=!0,n.prevStateElements=[],n}return Pt(t,e),t.renderLocString=function(e,t,n){return void 0===t&&(t=null),St.Instance.createElement(e.renderAs,{locStr:e.renderAsData,style:t,key:n})},t.renderQuestionDescription=function(e){var n=t.renderLocString(e.locDescription);return w("div",{style:e.hasDescription?void 0:{display:"none"},id:e.ariaDescriptionId,className:e.cssDescription},n)},t.prototype.componentDidMount=function(){this.makeBaseElementsReact()},t.prototype.componentWillUnmount=function(){this.unMakeBaseElementsReact(),this.disableStateElementsRerenderEvent(this.getStateElements())},t.prototype.componentDidUpdate=function(e,t){var n;this.makeBaseElementsReact();var r=this.getStateElements();this.disableStateElementsRerenderEvent((null!==(n=this.prevStateElements)&&void 0!==n?n:[]).filter((function(e){return!r.includes(e)}))),this.prevStateElements=[],this.getStateElements().forEach((function(e){e.afterRerender()}))},t.prototype.allowComponentUpdate=function(){this._allowComponentUpdate=!0,this.forceUpdate()},t.prototype.denyComponentUpdate=function(){this._allowComponentUpdate=!1},t.prototype.shouldComponentUpdate=function(e,t){return this._allowComponentUpdate&&(this.unMakeBaseElementsReact(),this.prevStateElements=this.getStateElements()),this._allowComponentUpdate},t.prototype.render=function(){if(!this.canRender())return null;this.startEndRendering(1);var e=this.renderElement();return this.startEndRendering(-1),e&&(e=this.wrapElement(e)),this.changedStatePropNameValue=void 0,e},t.prototype.wrapElement=function(e){return e},Object.defineProperty(t.prototype,"isRendering",{get:function(){for(var e=0,t=this.getRenderedElements();e<t.length;e++){if(t[e].reactRendering>0)return!0}return!1},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return this.getStateElements()},t.prototype.startEndRendering=function(e){for(var t=0,n=this.getRenderedElements();t<n.length;t++){var r=n[t];r.reactRendering||(r.reactRendering=0),r.reactRendering+=e}},t.prototype.canRender=function(){return!0},t.prototype.renderElement=function(){return null},Object.defineProperty(t.prototype,"changedStatePropName",{get:function(){return this.changedStatePropNameValue},enumerable:!1,configurable:!0}),t.prototype.makeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)e[t].enableOnElementRerenderedEvent(),this.makeBaseElementReact(e[t])},t.prototype.unMakeBaseElementsReact=function(){for(var e=this.getStateElements(),t=0;t<e.length;t++)this.unMakeBaseElementReact(e[t])},t.prototype.disableStateElementsRerenderEvent=function(e){e.forEach((function(e){e.disableOnElementRerenderedEvent()}))},t.prototype.getStateElements=function(){var e=this.getStateElement();return e?[e]:[]},t.prototype.getStateElement=function(){return null},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!1},enumerable:!1,configurable:!0}),t.prototype.renderLocString=function(e,n,r){return void 0===n&&(n=null),t.renderLocString(e,n,r)},t.prototype.canMakeReact=function(e){return!!e&&!!e.iteratePropertiesHash},t.prototype.makeBaseElementReact=function(e){var t=this;this.canMakeReact(e)&&(e.iteratePropertiesHash((function(e,n){if(t.canUsePropInState(n)){var r=e[n];if(Array.isArray(r))(r=r).onArrayChanged=function(e){t.isRendering||(t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t})))}}})),e.setPropertyValueCoreHandler=function(e,n,r){if(e[n]!==r){if(e[n]=r,!t.canUsePropInState(n))return;if(t.isRendering)return;t.changedStatePropNameValue=n,t.setState((function(e){var t={};return t[n]=r,t}))}})},t.prototype.canUsePropInState=function(e){return!0},t.prototype.unMakeBaseElementReact=function(e){this.canMakeReact(e)&&(e.setPropertyValueCoreHandler=void 0,e.iteratePropertiesHash((function(e,t){var n=e[t];Array.isArray(n)&&((n=n).onArrayChanged=function(){})})))},t}(O),Rt=function(e){function t(t){return e.call(this,t)||this}return Pt(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t}(Nt),jt=function(e){function t(t){return e.call(this,t)||this}return Pt(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase){var t=this.content||this.control;this.questionBase.beforeDestroyQuestionElement(t),t&&t.removeAttribute("data-rendered")}},t.prototype.updateDomElement=function(){var e=this.content||this.control;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),this.questionBase.afterRenderQuestionElement(e))},Object.defineProperty(t.prototype,"questionBase",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getRenderedElements=function(){return[this.questionBase]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.questionBase&&!!this.creator},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&!(this.questionBase.customWidget&&!this.questionBase.customWidgetData.isNeedRender&&!this.questionBase.customWidget.widgetJson.isDefaultRender&&!this.questionBase.customWidget.widgetJson.render)},Object.defineProperty(t.prototype,"isDisplayMode",{get:function(){return this.props.isDisplayMode||!!this.questionBase&&this.questionBase.isInputReadOnly||!1},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.questionBase.survey,o=null;return r&&(o=Mt.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.setControl=function(e){e&&(this.control=e)},t.prototype.setContent=function(e){e&&(this.content=e)},t}(Nt),Ht=function(e){function t(t){var n=e.call(this,t)||this;return n.updateValueOnEvent=function(e){kt.Helpers.isTwoValueEquals(n.questionBase.value,e.target.value,!1,!0,!1)||n.setValueCore(e.target.value)},n.updateValueOnEvent=n.updateValueOnEvent.bind(n),n}return Pt(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.setValueCore=function(e){this.questionBase.value=e},t.prototype.getValueCore=function(){return this.questionBase.value},t.prototype.updateDomElement=function(){if(this.control){var t=this.control,n=this.getValueCore();kt.Helpers.isTwoValueEquals(n,t.value,!1,!0,!1)||(t.value=this.getValue(n))}e.prototype.updateDomElement.call(this)},t.prototype.getValue=function(e){return kt.Helpers.isValueEmpty(e)?"":e},t}(jt),Bt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Tt=function(e){function t(t){var n=e.call(this,t)||this;return n.element.cssClasses,n.rootRef={current:null},n}return Bt(t,e),t.prototype.getStateElement=function(){return this.element},Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.rootRef.current&&this.element.setWrapperElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.element.setWrapperElement(void 0)},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.element!==this.element&&(t.element&&t.element.setWrapperElement(this.rootRef.current),this.element&&this.element.setWrapperElement(void 0)),this.element.cssClasses,!0)},t.prototype.renderElement=function(){var e=this.element,t=this.createElement(e,this.index);return w("div",{className:e.cssClassesValue.questionWrapper,style:e.rootStyle,"data-key":t.key,key:t.key,onFocus:function(){var t=e;t&&t.isQuestion&&t.focusIn()},ref:this.rootRef},t)},t.prototype.createElement=function(e,t){var n=t?"-"+t:0;if(!this.row.isNeedRender)return St.Instance.createElement(e.skeletonComponentName,{key:e.name+n,element:e,css:this.css});var r=e.getType();return St.Instance.isElementRegistered(r)||(r="question"),St.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(Nt),Dt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vt=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef={current:null},n.recalculateCss(),n}return Dt(t,e),t.prototype.recalculateCss=function(){this.row.visibleElements.map((function(e){return e.cssClasses}))},t.prototype.getStateElement=function(){return this.row},Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.row&&!!this.survey&&!!this.creator},t.prototype.renderElementContent=function(){var e=this,t=this.row.visibleElements.map((function(t,n){var r=n?"-"+n:0,o=t.name+r;return w(Tt,{element:t,index:n,row:e.row,survey:e.survey,creator:e.creator,css:e.css,key:o})}));return w("div",{ref:this.rootRef,className:this.row.getRowCss()},t)},t.prototype.renderElement=function(){var e=this.survey,t=this.renderElementContent();return Mt.wrapRow(e,t,this.row)||t},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this);var n=this.rootRef.current;if(this.rootRef.current&&this.row.setRootElement(this.rootRef.current),n&&!this.row.isNeedRender){var r=n;setTimeout((function(){t.row.startLazyRendering(r)}),10)}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.row!==this.row&&(t.row.isNeedRender=this.row.isNeedRender,t.row.setRootElement(this.rootRef.current),this.row.setRootElement(void 0),this.stopLazyRendering()),this.recalculateCss(),!0)},t.prototype.stopLazyRendering=function(){this.row.stopLazyRendering(),this.row.isNeedRender=!this.row.isLazyRendering()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.row.setRootElement(void 0),this.stopLazyRendering()},t.prototype.createElement=function(e,t){var n=t?"-"+t:0,r=e.getType();return St.Instance.isElementRegistered(r)||(r="question"),St.Instance.createElement(r,{key:e.name+n,element:e,creator:this.creator,survey:this.survey,css:this.css})},t}(Nt),Zt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),At=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef={current:null},n}return Zt(t,e),t.prototype.getStateElement=function(){return this.panelBase},t.prototype.canUsePropInState=function(t){return"elements"!==t&&e.prototype.canUsePropInState.call(this,t)},Object.defineProperty(t.prototype,"survey",{get:function(){return this.getSurvey()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.getCss()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"panelBase",{get:function(){return this.getPanelBase()},enumerable:!1,configurable:!0}),t.prototype.getPanelBase=function(){return this.props.element||this.props.question},t.prototype.getSurvey=function(){return this.props.survey||(this.panelBase?this.panelBase.survey:null)},t.prototype.getCss=function(){return this.props.css},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.page&&this.survey&&this.survey.activePage&&t.page.id===this.survey.activePage.id||this.doAfterRender()},t.prototype.doAfterRender=function(){var e=this.rootRef.current;e&&this.survey&&(this.panelBase.isPanel?this.panelBase.afterRender(e):this.survey.afterRenderPage(e))},t.prototype.getIsVisible=function(){return this.panelBase.isVisible},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.survey&&!!this.panelBase&&!!this.panelBase.survey&&this.getIsVisible()},t.prototype.renderRows=function(e){var t=this;return this.panelBase.visibleRows.map((function(n){return t.createRow(n,e)}))},t.prototype.createRow=function(e,t){return w(Vt,{key:e.id,row:e,survey:this.survey,creator:this.creator,css:t})},t}(Nt),Ut=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Wt=function(e){function t(t){var n=e.call(this,t)||this;return n.svgIconRef=Lt.createRef(),n}return Ut(t,e),t.prototype.updateSvg=function(){this.props.iconName&&Object(kt.createSvg)(this.props.size,this.props.width,this.props.height,this.props.iconName,this.svgIconRef.current,this.props.title)},t.prototype.componentDidUpdate=function(){this.updateSvg()},t.prototype.render=function(){var e="sv-svg-icon";return this.props.className&&(e+=" "+this.props.className),this.props.iconName?Lt.createElement("svg",{className:e,style:this.props.style,onClick:this.props.onClick,ref:this.svgIconRef,role:"img"},Lt.createElement("use",null)):null},t.prototype.componentDidMount=function(){this.updateSvg()},t}(Lt.Component);St.Instance.registerElement("sv-svg-icon",(function(e){return Lt.createElement(Wt,e)}));var Ft=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Qt=function(e){function t(t){return e.call(this,t)||this}return Ft(t,e),t.prototype.render=function(){var e="sv-action-bar-separator "+this.props.cssClasses;return Lt.createElement("div",{className:e})},t}(Lt.Component);St.Instance.registerElement("sv-action-bar-separator",(function(e){return Lt.createElement(Qt,e)}));var zt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Kt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){var e=this.item.getActionRootCss(),t=this.item.needSeparator?Lt.createElement(Qt,null):null,n=St.Instance.createElement(this.item.component||"sv-action-bar-item",{item:this.item});return Lt.createElement("div",{className:e,id:this.item.id},Lt.createElement("div",{className:"sv-action__content"},t,n))},t}(Nt),$t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){return Lt.createElement(Lt.Fragment,null,this.renderInnerButton())},t.prototype.renderText=function(){if(!this.item.hasTitle)return null;var e=this.item.getActionBarItemTitleCss();return Lt.createElement("span",{className:e},this.item.title)},t.prototype.renderButtonContent=function(){var e=this.renderText(),t=this.item.iconName?Lt.createElement(Wt,{className:this.item.cssClasses.itemIcon,size:this.item.iconSize,iconName:this.item.iconName,title:this.item.tooltip||this.item.title}):null;return Lt.createElement(Lt.Fragment,null,t,e)},t.prototype.renderInnerButton=function(){var e=this,t=this.item.getActionBarItemCss(),n=this.item.tooltip||this.item.title,r=this.renderButtonContent(),o=this.item.disableTabStop?-1:void 0;return $n(Lt.createElement("button",{className:t,type:"button",disabled:this.item.disabled,onMouseDown:function(t){return e.item.doMouseDown(t)},onFocus:function(t){return e.item.doFocus(t)},onClick:function(t){return e.item.doAction(t)},title:n,tabIndex:o,"aria-checked":this.item.ariaChecked,"aria-expanded":this.item.ariaExpanded,role:this.item.ariaRole},r),this.item,{processEsc:!1})},t}(Nt);St.Instance.registerElement("sv-action-bar-item",(function(e){return Lt.createElement($t,e)}));var Jt=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gt=function(e){function t(t){var n=e.call(this,t)||this;return n.containerRef=Lt.createRef(),n.createModel(),n}return Jt(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.createModel=function(){this.popup=Object(kt.createPopupViewModel)(this.props.model)},t.prototype.setTargetElement=function(){var e=this.containerRef.current;this.popup.setComponentElement(e)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setTargetElement()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setTargetElement()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.popup.resetComponentElement()},t.prototype.shouldComponentUpdate=function(t,n){var r;if(!e.prototype.shouldComponentUpdate.call(this,t,n))return!1;var o=t.model!==this.popup.model;return o&&(null===(r=this.popup)||void 0===r||r.dispose(),this.createModel()),o},t.prototype.render=function(){var e;return this.popup.model=this.model,e=this.model.isModal?Lt.createElement(Yt,{model:this.popup}):Lt.createElement(Xt,{model:this.popup}),Lt.createElement("div",{ref:this.containerRef},e)},t}(Nt);St.Instance.registerElement("sv-popup",(function(e){return Lt.createElement(Gt,e)}));var Yt=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.clickInside=function(e){e.stopPropagation()},n}return Jt(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),!this.model.isPositionSet&&this.model.isVisible&&this.model.updateOnShowing()},t.prototype.renderContainer=function(e){var t=this,n=e.showHeader?this.renderHeaderPopup(e):null,r=e.title?this.renderHeaderContent():null,o=this.renderContent(),s=e.showFooter?this.renderFooter(this.model):null;return Lt.createElement("div",{className:"sv-popup__container",style:{left:e.left,top:e.top,height:e.height,width:e.width,minWidth:e.minWidth},onClick:function(e){t.clickInside(e)}},n,Lt.createElement("div",{className:"sv-popup__body-content"},r,Lt.createElement("div",{className:"sv-popup__scrolling-content"},o),s))},t.prototype.renderHeaderContent=function(){return Lt.createElement("div",{className:"sv-popup__body-header"},this.model.title)},t.prototype.renderContent=function(){var e=St.Instance.createElement(this.model.contentComponentName,this.model.contentComponentData);return Lt.createElement("div",{className:"sv-popup__content"},e)},t.prototype.renderHeaderPopup=function(e){return null},t.prototype.renderFooter=function(e){return Lt.createElement("div",{className:"sv-popup__body-footer"},Lt.createElement(rn,{model:e.footerToolbar}))},t.prototype.render=function(){var e=this,t=this.renderContainer(this.model),n=(new kt.CssClassBuilder).append("sv-popup").append(this.model.styleClass).toString(),r={display:this.model.isVisible?"":"none"};return Lt.createElement("div",{tabIndex:-1,className:n,style:r,onClick:function(t){e.model.clickOutside(t)},onKeyDown:this.handleKeydown},t)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.isVisible&&this.model.updateOnShowing()},t}(Nt),Xt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jt(t,e),t.prototype.renderHeaderPopup=function(e){var t=e;return t?Lt.createElement("span",{style:{left:t.pointerTarget.left,top:t.pointerTarget.top},className:"sv-popup__pointer"}):null},t}(Yt),en=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tn=function(e){function t(t){return e.call(this,t)||this}return en(t,e),t.prototype.renderInnerButton=function(){var t=e.prototype.renderInnerButton.call(this);return Lt.createElement(Lt.Fragment,null,t,Lt.createElement(Gt,{model:this.item.popupModel}))},t.prototype.componentDidMount=function(){this.viewModel=new kt.ActionDropdownViewModel(this.item)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.dispose()},t}($t);St.Instance.registerElement("sv-action-bar-item-dropdown",(function(e){return Lt.createElement(tn,e)}));var nn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rn=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef=Lt.createRef(),n}return nn(t,e),Object.defineProperty(t.prototype,"handleClick",{get:function(){return void 0===this.props.handleClick||this.props.handleClick},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.model.hasActions){var t=this.rootRef.current;t&&this.model.initResponsivityManager(t,(function(e){setTimeout(e)}))}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.resetResponsivityManager()},t.prototype.componentDidUpdate=function(t,n){if(e.prototype.componentDidUpdate.call(this,t,n),t.model!=this.props.model&&t.model.resetResponsivityManager(),this.model.hasActions){var r=this.rootRef.current;r&&this.model.initResponsivityManager(r,(function(e){setTimeout(e)}))}},t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(!this.model.hasActions)return null;var e=this.renderItems();return Lt.createElement("div",{ref:this.rootRef,className:this.model.getRootCss(),onClick:this.handleClick?function(e){e.stopPropagation()}:void 0},e)},t.prototype.renderItems=function(){return this.model.renderedActions.map((function(e,t){return Lt.createElement(Kt,{item:e,key:"item"+t})}))},t}(Nt);St.Instance.registerElement("sv-action-bar",(function(e){return Lt.createElement(rn,e)}));var on=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sn=function(e){function t(t){return e.call(this,t)||this}return on(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(this.element.isTitleRenderedAsString)return Nt.renderLocString(this.element.locTitle);var e=this.renderTitleSpans(this.element.getTitleOwner(),this.cssClasses);return Lt.createElement(Lt.Fragment,null,e)},t.prototype.renderTitleSpans=function(e,t){var n=function(e){return Lt.createElement("span",{"data-key":e,key:e}," ")},r=[];e.isRequireTextOnStart&&(r.push(this.renderRequireText(e)),r.push(n("req-sp")));var o=e.no;return o&&(r.push(Lt.createElement("span",{"data-key":"q_num",key:"q_num",className:e.cssTitleNumber,style:{position:"static"},"aria-hidden":!0},o)),r.push(n("num-sp"))),e.isRequireTextBeforeTitle&&(r.push(this.renderRequireText(e)),r.push(n("req-sp"))),r.push(Nt.renderLocString(e.locTitle,null,"q_title")),e.isRequireTextAfterTitle&&(r.push(n("req-sp")),r.push(this.renderRequireText(e))),r},t.prototype.renderRequireText=function(e){return Lt.createElement("span",{"data-key":"req-text",key:"req-text",className:e.cssRequiredText,"aria-hidden":!0},e.requiredText)},t}(Lt.Component),an=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),un=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return an(t,e),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=Lt.createElement(sn,{element:this.element,cssClasses:this.cssClasses});return this.element.hasTitleActions?Lt.createElement("div",{className:"sv-title-actions"},Lt.createElement("span",{className:"sv-title-actions__title"},e),Lt.createElement(rn,{model:this.element.getTitleToolbar()})):e},t}(Lt.Component);kt.RendererFactory.Instance.registerRenderer("element","title-actions","sv-title-actions"),St.Instance.registerElement("sv-title-actions",(function(e){return Lt.createElement(un,e)}));var cn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ln=function(e){function t(t){return e.call(this,t)||this}return cn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.renderTitleExpandableSvg=function(){if(!this.element.getCssTitleExpandableSvg())return null;var e=this.element.isExpanded?"icon-collapse-16x16":"icon-expand-16x16";return Lt.createElement(Wt,{className:this.element.getCssTitleExpandableSvg(),iconName:e,size:"auto"})},t.prototype.render=function(){var e=this.element;if(!e||!e.hasTitle)return null;var t=e.titleAriaLabel||void 0,n=this.renderTitleExpandableSvg(),r=Lt.createElement(un,{element:e,cssClasses:e.cssClasses}),o=void 0;e.hasTitleEvents&&(o=function(e){Object(kt.doKey2ClickUp)(e.nativeEvent)});var s=e.titleTagName;return Lt.createElement(s,{className:e.cssTitle,id:e.ariaTitleId,"aria-label":t,tabIndex:e.titleTabIndex,"aria-expanded":e.titleAriaExpanded,role:e.titleAriaRole,onClick:void 0,onKeyUp:o},n,r)},t}(Lt.Component),pn=function(){function e(){this.creatorHash={}}return e.prototype.registerQuestion=function(e,t){this.creatorHash[e]=t},e.prototype.getAllTypes=function(){var e=new Array;for(var t in this.creatorHash)e.push(t);return e.sort()},e.prototype.createQuestion=function(e,t){var n=this.creatorHash[e];return null==n?null:n(t)},e.Instance=new e,e}(),hn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return hn(t,e),t.prototype.getStateElement=function(){return this.props.counter},t.prototype.renderElement=function(){return Lt.createElement("div",{className:this.props.remainingCharacterCounter},this.props.counter.remainingCharacterCounter)},t}(Nt);St.Instance.registerElement("sv-character-counter",(function(e){return Lt.createElement(dn,e)}));var fn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mn=function(e){function t(t){var n=e.call(this,t)||this;return n.initialValue=n.viewModel.getTextValue()||"",n.textareaRef=Lt.createRef(),n}return fn(t,e),Object.defineProperty(t.prototype,"viewModel",{get:function(){return this.props.viewModel},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.viewModel.question},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this);var t=this.textareaRef.current;t&&this.viewModel.setElement(t)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.viewModel.resetElement()},t.prototype.renderElement=function(){var e=this;return Lt.createElement("textarea",{id:this.viewModel.id,className:this.viewModel.className,ref:this.textareaRef,disabled:this.viewModel.isDisabledAttr,readOnly:this.viewModel.isReadOnlyAttr,rows:this.viewModel.rows,cols:this.viewModel.cols,placeholder:this.viewModel.placeholder,maxLength:this.viewModel.maxLength,defaultValue:this.initialValue,onChange:function(t){e.viewModel.onTextAreaInput(t)},onFocus:function(t){e.viewModel.onTextAreaFocus(t)},onBlur:function(t){e.viewModel.onTextAreaBlur(t)},onKeyDown:function(t){e.viewModel.onTextAreaKeyDown(t)},"aria-required":this.viewModel.ariaRequired,"aria-label":this.viewModel.ariaLabel,"aria-labelledby":this.viewModel.ariaLabelledBy,"aria-describedby":this.viewModel.ariaDescribedBy,"aria-invalid":this.viewModel.ariaInvalid,"aria-errormessage":this.viewModel.ariaErrormessage,style:{resize:this.viewModel.question.resizeStyle}})},t}(Nt);St.Instance.registerElement("sv-text-area",(function(e){return Lt.createElement(mn,e)}));var vn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yn=function(e){function t(t){return e.call(this,t)||this}return vn(t,e),t.prototype.renderCharacterCounter=function(){var e=null;return this.question.getMaxLength()&&(e=w(dn,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter})),e},t.prototype.renderElement=function(){if(this.question.isReadOnlyRenderDiv())return w("div",null,this.question.value);var e=this.renderCharacterCounter(),t=this.props.question.textAreaModel;return w(q,null,w(mn,{viewModel:t}),e)},t}(Ht),gn=function(e){function t(t){var n=e.call(this,t)||this;return n.textAreaModel=n.getTextAreaModel(),n}return vn(t,e),t.prototype.canRender=function(){return!!this.props.question},t.prototype.getTextAreaModel=function(){return this.props.question.commentTextAreaModel},t.prototype.renderElement=function(){return this.props.question.isReadOnlyRenderDiv()?w("div",null,this.textAreaModel.getTextValue()||""):w(mn,{viewModel:this.textAreaModel})},t}(Rt),Cn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vn(t,e),t.prototype.getTextAreaModel=function(){return this.props.question.otherTextAreaModel},t}(gn);pn.Instance.registerQuestion("comment",(function(e){return w(yn,e)}));var _n=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wn=function(e){function t(t){var n=e.call(this,t)||this;return n.widgetRef={current:null},n}return _n(t,e),t.prototype._afterRender=function(){if(this.questionBase.customWidget){var e=this.widgetRef.current;e&&(this.questionBase.customWidget.afterRender(this.questionBase,e),this.questionBase.customWidgetData.isNeedRender=!1)}},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.questionBase&&this._afterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n);var r=!!this.questionBase.customWidget&&this.questionBase.customWidget.isDefaultRender;this.questionBase&&!r&&this._afterRender()},t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.questionBase.customWidget){var t=this.widgetRef.current;t&&this.questionBase.customWidget.willUnmount(this.questionBase,t)}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.questionBase.visible},t.prototype.renderElement=function(){var e=this.questionBase.customWidget;if(e.isDefaultRender)return w("div",{ref:this.widgetRef},this.creator.createQuestionElement(this.questionBase));var t=null;if(e.widgetJson.render)t=e.widgetJson.render(this.questionBase);else if(e.htmlTemplate){var n={__html:e.htmlTemplate};return w("div",{ref:this.widgetRef,dangerouslySetInnerHTML:n})}return w("div",{ref:this.widgetRef},t)},t}(jt),bn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bn(t,e),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.element,t=e.hasTitle?Lt.createElement(ln,{element:e}):null,n=e.hasDescriptionUnderTitle?Nt.renderQuestionDescription(this.element):null,r=e.hasAdditionalTitleToolbar?Lt.createElement(rn,{model:e.additionalTitleToolbar}):null,o={width:void 0};return e instanceof kt.Question&&(o.width=e.titleWidth),Lt.createElement("div",{className:e.cssHeader,onClick:function(t){return e.clickTitleFunction&&e.clickTitleFunction(t.nativeEvent)},style:o},t,n,r)},t}(Lt.Component),qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),On=function(e){function t(t){var n=e.call(this,t)||this;return n.isNeedFocus=!1,n.rootRef={current:null},n}return qn(t,e),t.renderQuestionBody=function(e,t){return t.customWidget?w(wn,{creator:e,question:t}):e.createQuestionElement(t)},t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question&&(this.question.react=this),this.doAfterRender()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.react=null);var t=this.rootRef.current;t&&t.removeAttribute("data-rendered")},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){if(this.isNeedFocus&&(this.question.isCollapsed||this.question.clickTitleFunction(),this.isNeedFocus=!1),this.question){var e=this.rootRef.current;e&&"r"!==e.getAttribute("data-rendered")&&(e.setAttribute("data-rendered","r"),e.setAttribute("data-name",this.question.name),this.question.afterRender&&this.question.afterRender(e))}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question&&!!this.creator},t.prototype.renderQuestionContent=function(){var e=this.question,t={display:this.question.renderedIsExpanded?"":"none"},n=e.cssClasses,r=this.renderQuestion(),o=this.question.showErrorOnTop?this.renderErrors(n,"top"):null,s=this.question.showErrorOnBottom?this.renderErrors(n,"bottom"):null,i=e&&e.hasComment?this.renderComment(n):null,a=e.hasDescriptionUnderInput?this.renderDescription():null;return w("div",{className:e.cssContent||void 0,style:t,role:"presentation"},o,r,i,s,a)},t.prototype.renderElement=function(){var e=this.question,t=e.cssClasses,n=this.renderHeader(e),r=e.hasTitleOnLeftTop?n:null,o=e.hasTitleOnBottom?n:null,s=this.question.showErrorsAboveQuestion?this.renderErrors(t,""):null,i=this.question.showErrorsBelowQuestion?this.renderErrors(t,""):null,a=e.getRootStyle(),u=this.wrapQuestionContent(this.renderQuestionContent());return w(q,null,w("div",{ref:this.rootRef,id:e.id,className:e.getRootCss(),style:a,role:e.ariaRole,"aria-required":this.question.ariaRequired,"aria-invalid":this.question.ariaInvalid,"aria-labelledby":e.ariaLabelledBy,"aria-describedby":e.ariaDescribedBy,"aria-expanded":e.ariaExpanded},s,r,u,o,i))},t.prototype.wrapElement=function(e){var t=this.question.survey,n=null;return t&&(n=Mt.wrapElement(t,e,this.question)),null!=n?n:e},t.prototype.wrapQuestionContent=function(e){var t=this.question.survey,n=null;return t&&(n=Mt.wrapQuestionContent(t,e,this.question)),null!=n?n:e},t.prototype.renderQuestion=function(){return t.renderQuestionBody(this.creator,this.question)},t.prototype.renderDescription=function(){return Nt.renderQuestionDescription(this.question)},t.prototype.renderComment=function(e){var t=Nt.renderLocString(this.question.locCommentText);return w("div",{className:this.question.getCommentAreaCss()},w("div",null,t),w(gn,{question:this.question,cssClasses:e,otherCss:e.other,isDisplayMode:this.question.isInputReadOnly}))},t.prototype.renderHeader=function(e){return w(xn,{element:e})},t.prototype.renderErrors=function(e,t){return w(En,{element:this.question,cssClasses:e,creator:this.creator,location:t,id:this.question.id+"_errors"})},t}(Nt);St.Instance.registerElement("question",(function(e){return w(On,e)}));var En=function(e){function t(t){var n=e.call(this,t)||this;return n.state=n.getState(),n}return qn(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this.props.element.id+"_errors"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"element",{get:function(){return this.props.element},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"location",{get:function(){return this.props.location},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),e?{error:e.error+1}:{error:0}},t.prototype.canRender=function(){return!!this.element&&this.element.hasVisibleErrors},t.prototype.componentWillUnmount=function(){},t.prototype.renderElement=function(){for(var e=[],t=0;t<this.element.errors.length;t++){var n="error"+t;e.push(this.creator.renderError(n,this.element.errors[t],this.cssClasses,this.element))}return w("div",{role:"alert","aria-live":"polite",className:this.element.cssError,id:this.id},e)},t}(Rt),Ln=function(e){function t(t){return e.call(this,t)||this}return qn(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.getQuestion()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){return this.props.question},Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.props.itemCss},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.doAfterRender()},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.doAfterRender()},t.prototype.doAfterRender=function(){},t.prototype.canRender=function(){return!!this.question},t.prototype.renderContent=function(){return w(q,null,this.renderQuestion())},t.prototype.getShowErrors=function(){return this.question.isVisible},t.prototype.renderQuestion=function(){return On.renderQuestionBody(this.creator,this.question)},t}(Rt),kn=function(e){function t(t){var n=e.call(this,t)||this;return n.cellRef={current:null},n}return qn(t,e),t.prototype.componentWillUnmount=function(){if(e.prototype.componentWillUnmount.call(this),this.question){var t=this.cellRef.current;t&&t.removeAttribute("data-rendered")}},t.prototype.renderCellContent=function(){return w("div",{className:this.props.cell.cellQuestionWrapperClassName},this.renderQuestion())},t.prototype.renderElement=function(){var e=this.getCellStyle(),t=this.props.cell;return w("td",{ref:this.cellRef,className:this.itemCss,colSpan:t.colSpans,title:t.getTitle(),style:e,onFocus:function(){t.focusIn()}},this.wrapCell(this.props.cell,this.renderCellContent()))},t.prototype.getCellStyle=function(){return null},t.prototype.getHeaderText=function(){return""},t.prototype.wrapCell=function(e,t){if(!e)return t;var n=this.question.survey,r=null;return n&&(r=Mt.wrapMatrixCell(n,t,e,this.props.reason)),null!=r?r:t},t}(Ln),Sn=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.question&&n.registerCallback(n.question),n}return qn(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.update=function(){this.setState({changed:this.state.changed+1})},t.prototype.getQuestionPropertiesToTrack=function(){return["errors"]},t.prototype.registerCallback=function(e){var t=this;e.registerFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),(function(){t.update()}),"__reactSubscription")},t.prototype.unRegisterCallback=function(e){e.unRegisterFunctionOnPropertiesValueChanged(this.getQuestionPropertiesToTrack(),"__reactSubscription")},t.prototype.componentDidUpdate=function(e){e.question&&e.question!==this.question&&this.unRegisterCallback(e.cell),this.question&&this.registerCallback(this.question)},t.prototype.componentWillUnmount=function(){this.question&&this.unRegisterCallback(this.question)},t.prototype.render=function(){return w(En,{element:this.question,creator:this.props.creator,cssClasses:this.question.cssClasses})},t}(O),Mn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),In=function(e){function t(t){return e.call(this,t)||this}return Mn(t,e),t.prototype.getPanelBase=function(){return this.props.page},Object.defineProperty(t.prototype,"page",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.renderTitle(),t=this.renderDescription(),n=this.renderRows(this.panelBase.cssClasses),r=w(En,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator});return w("div",{ref:this.rootRef,className:this.page.cssRoot},e,t,r,n)},t.prototype.renderTitle=function(){return w(ln,{element:this.page})},t.prototype.renderDescription=function(){if(!this.page._showDescription)return null;var e=Nt.renderLocString(this.page.locDescription);return w("div",{className:this.panelBase.cssClasses.page.description},e)},t}(At),Pn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nn=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.rootRef=Lt.createRef(),n}return Pn(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this;this.survey.afterRenderHeader(this.rootRef.current),this.survey.locLogo.onChanged=function(){e.setState({changed:e.state.changed+1})}},t.prototype.componentWillUnmount=function(){this.survey.locLogo.onChanged=function(){}},t.prototype.renderTitle=function(){if(!this.survey.renderedHasTitle)return null;var e=Nt.renderLocString(this.survey.locDescription);return Lt.createElement("div",{className:this.css.headerText,style:{maxWidth:this.survey.titleMaxWidth}},Lt.createElement(ln,{element:this.survey}),this.survey.renderedHasDescription?Lt.createElement("div",{className:this.css.description},e):null)},t.prototype.renderLogoImage=function(e){if(!e)return null;var t=this.survey.getElementWrapperComponentName(this.survey,"logo-image"),n=this.survey.getElementWrapperComponentData(this.survey,"logo-image");return St.Instance.createElement(t,{data:n})},t.prototype.render=function(){return this.survey.renderedHasHeader?Lt.createElement("div",{className:this.css.header,ref:this.rootRef},this.renderLogoImage(this.survey.isLogoBefore),this.renderTitle(),this.renderLogoImage(this.survey.isLogoAfter),Lt.createElement("div",{className:this.css.headerClose})):null},t}(Lt.Component);St.Instance.registerElement("survey-header",(function(e){return Lt.createElement(Nn,e)}));var Rn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rn(t,e),t.prototype.render=function(){return Lt.createElement("div",{className:"sv-brand-info"},Lt.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"},Lt.createElement("img",{src:"https://surveyjs.io/Content/Images/poweredby.svg"})),Lt.createElement("div",{className:"sv-brand-info__text"},"Try and see how easy it is to ",Lt.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")),Lt.createElement("div",{className:"sv-brand-info__terms"},Lt.createElement("a",{href:"https://surveyjs.io/TermsOfUse"},"Terms of Use & Privacy Statement")))},t}(Lt.Component),Hn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Hn(t,e),Object.defineProperty(t.prototype,"notifier",{get:function(){return this.props.notifier},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.notifier},t.prototype.renderElement=function(){if(!this.notifier.isDisplayed)return null;var e={visibility:this.notifier.active?"visible":"hidden"};return Lt.createElement("div",{className:this.notifier.css,style:e,role:"alert","aria-live":"polite"},Lt.createElement("span",null,this.notifier.message),Lt.createElement(rn,{model:this.notifier.actionBar}))},t}(Nt);St.Instance.registerElement("sv-notifier",(function(e){return Lt.createElement(Bn,e)}));var Tn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Tn(t,e),t.prototype.render=function(){var e=this,t=this.props.survey.getContainerContent(this.props.container),n=!1!==this.props.needRenderWrapper;return 0==t.length?null:n?Lt.createElement("div",{className:"sv-components-column sv-components-container-"+this.props.container},t.map((function(t){return St.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,container:e.props.container,key:t.id})}))):Lt.createElement(Lt.Fragment,null,t.map((function(t){return St.Instance.createElement(t.component,{survey:e.props.survey,model:t.data,container:e.props.container,key:t.id})})))},t}(Lt.Component);St.Instance.registerElement("sv-components-container",(function(e){return Lt.createElement(Dn,e)}));var Vn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zn=function(e){function t(t){var n=e.call(this,t)||this;return n.onIconsChanged=function(){n.containerRef.current&&(n.containerRef.current.innerHTML=kt.SvgRegistry.iconsRenderedHtml())},n.containerRef=Lt.createRef(),n}return Vn(t,e),t.prototype.componentDidMount=function(){this.onIconsChanged(),kt.SvgRegistry.onIconsChanged.add(this.onIconsChanged)},t.prototype.componentWillUnmount=function(){kt.SvgRegistry.onIconsChanged.remove(this.onIconsChanged)},t.prototype.render=function(){return Lt.createElement("svg",{style:{display:"none"},id:"sv-icon-holder-global-container",ref:this.containerRef})},t}(Lt.Component),An=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Un=function(e){function t(t){var n=e.call(this,t)||this;return n.isInitialized=!1,n.init=function(){n.isInitialized||(kt.settings.showModal=function(e,t,r,o,s,i,a){void 0===a&&(a="popup");var u=Object(kt.createDialogOptions)(e,t,r,o,void 0,void 0,s,i,a);return n.showDialog(u)},kt.settings.showDialog=function(e,t){return n.showDialog(e,t)},n.isInitialized=!0)},n.clean=function(){n.isInitialized&&(kt.settings.showModal=void 0,kt.settings.showDialog=void 0,n.isInitialized=!1)},n.state={changed:0},n.descriptor={init:n.init,clean:n.clean},n}return An(t,e),t.addModalDescriptor=function(e){kt.settings.showModal||e.init(),this.modalDescriptors.push(e)},t.removeModalDescriptor=function(e){e.clean(),this.modalDescriptors.splice(this.modalDescriptors.indexOf(e),1),!kt.settings.showModal&&this.modalDescriptors[0]&&this.modalDescriptors[0].init()},t.prototype.renderElement=function(){return this.model?Je(Lt.createElement(Yt,{model:this.model}),this.model.container):null},t.prototype.showDialog=function(e,t){var n=this;this.model=Object(kt.createPopupModalViewModel)(e,t);return this.model.onVisibilityChanged.add((function(e,t){t.isVisible||(n.model.dispose(),n.model=void 0,n.setState({changed:n.state.changed+1}))})),this.model.model.isVisible=!0,this.setState({changed:this.state.changed+1}),this.model},t.prototype.componentDidMount=function(){t.addModalDescriptor(this.descriptor)},t.prototype.componentWillUnmount=function(){this.model&&(this.model.dispose(),this.model=void 0),t.removeModalDescriptor(this.descriptor)},t.modalDescriptors=[],t}(Nt),Wn=n(1),Fn=n(2),Qn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zn=function(){return(zn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object(kt.addIconsToThemeSet)("v1",Wn.icons),Object(kt.addIconsToThemeSet)("v2",Fn.icons),kt.SvgRegistry.registerIcons(Wn.icons);var Kn=function(e){function t(t){var n=e.call(this,t)||this;return n.previousJSON={},n.isSurveyUpdated=!1,n.createSurvey(t),n.updateSurvey(t,{}),n.rootRef={current:null},n.rootNodeId=t.id||null,n.rootNodeClassName=t.className||"",n}return Qn(t,e),Object.defineProperty(t,"cssType",{get:function(){return kt.surveyCss.currentType},set:function(e){kt.StylesManager.applyTheme(e)},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.survey},t.prototype.onSurveyUpdated=function(){if(this.survey){var e=this.rootRef.current;e&&this.survey.afterRenderSurvey(e),this.survey.startTimerFromUI(),this.setSurveyEvents()}},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(this.isModelJSONChanged(t)&&(this.destroySurvey(),this.createSurvey(t),this.updateSurvey(t,{}),this.isSurveyUpdated=!0),!0)},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateSurvey(this.props,t),this.isSurveyUpdated&&(this.onSurveyUpdated(),this.isSurveyUpdated=!1)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.onSurveyUpdated()},t.prototype.destroySurvey=function(){this.survey&&(this.survey.renderCallback=void 0,this.survey.onPartialSend.clear(),this.survey.stopTimer(),this.survey.destroyResizeObserver())},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.destroySurvey()},t.prototype.doRender=function(){var e;e="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 t=this.survey.backgroundImage?w("div",{className:this.css.rootBackgroundImage,style:this.survey.backgroundImageStyle}):null,n="basic"===this.survey.headerView?w(Nn,{survey:this.survey}):null,r=w("div",{className:"sv_custom_header"});this.survey.hasLogo&&(r=null);var o=this.survey.getRootCss(),s=this.rootNodeClassName?this.rootNodeClassName+" "+o:o;return w("div",{id:this.rootNodeId,ref:this.rootRef,className:s,style:this.survey.themeVariables,lang:this.survey.locale||"en",dir:this.survey.localeDir},this.survey.needRenderIcons?w(Zn,null):null,w(Un,null),w("div",{className:this.survey.wrapperFormCss},t,w("form",{onSubmit:function(e){e.preventDefault()}},r,w("div",{className:this.css.container},n,w(Dn,{survey:this.survey,container:"header",needRenderWrapper:!1}),e,w(Dn,{survey:this.survey,container:"footer",needRenderWrapper:!1}))),w(Bn,{notifier:this.survey.notifier})))},t.prototype.renderElement=function(){return this.doRender()},Object.defineProperty(t.prototype,"css",{get:function(){return this.survey.css},set:function(e){this.survey.css=e},enumerable:!1,configurable:!0}),t.prototype.renderCompleted=function(){return this.survey.showCompletedPage?w(q,null,w("div",{dangerouslySetInnerHTML:{__html:this.survey.processedCompletedHtml},className:this.survey.completedCss}),w(Dn,{survey:this.survey,container:"completePage",needRenderWrapper:!1})):null},t.prototype.renderCompletedBefore=function(){return w("div",{dangerouslySetInnerHTML:{__html:this.survey.processedCompletedBeforeHtml},className:this.survey.completedBeforeCss})},t.prototype.renderLoading=function(){return w("div",{dangerouslySetInnerHTML:{__html:this.survey.processedLoadingHtml},className:this.survey.loadingBodyCss})},t.prototype.renderSurvey=function(){var e=this.survey.activePage?this.renderPage(this.survey.activePage):null,t=(this.survey.isShowStartingPage,this.survey.activePage?this.survey.activePage.id:""),n=this.survey.bodyCss,r={};return this.survey.renderedWidth&&(r.maxWidth=this.survey.renderedWidth),w("div",{className:this.survey.bodyContainerCss},w(Dn,{survey:this.survey,container:"left"}),w("div",{className:"sv-components-column sv-components-column--expandable"},w(Dn,{survey:this.survey,container:"center"}),w("div",{id:t,className:n,style:r},w(Dn,{survey:this.survey,container:"contentTop"}),e,w(Dn,{survey:this.survey,container:"contentBottom"}),this.survey.showBrandInfo?w(jn,null):null)),w(Dn,{survey:this.survey,container:"right"}))},t.prototype.renderPage=function(e){return w(In,{survey:this.survey,page:e,css:this.css,creator:this})},t.prototype.renderEmptySurvey=function(){return w("div",{className:this.css.bodyEmpty},this.survey.emptySurveyText)},t.prototype.createSurvey=function(e){e||(e={}),this.previousJSON={},e?e.model?this.survey=e.model:e.json&&(this.previousJSON=e.json,this.survey=new kt.SurveyModel(e.json)):this.survey=new kt.SurveyModel,e.css&&(this.survey.css=this.css)},t.prototype.isModelJSONChanged=function(e){return e.model?this.survey!==e.model:!!e.json&&!kt.Helpers.isTwoValueEquals(e.json,this.previousJSON)},t.prototype.updateSurvey=function(e,t){if(e)for(var n in t=t||{},e)"model"!=n&&"children"!=n&&"json"!=n&&("css"!=n?e[n]!==t[n]&&(0==n.indexOf("on")&&this.survey[n]&&this.survey[n].add?(t[n]&&this.survey[n].remove(t[n]),this.survey[n].add(e[n])):this.survey[n]=e[n]):(this.survey.mergeValues(e.css,this.survey.getCss()),this.survey.updateNavigationCss(),this.survey.updateElementCss()))},t.prototype.setSurveyEvents=function(){var e=this;this.survey.renderCallback=function(){var t=e.state&&e.state.modelChanged?e.state.modelChanged:0;e.setState({modelChanged:t+1})},this.survey.onPartialSend.add((function(t){e.state&&e.setState(e.state)}))},t.prototype.createQuestionElement=function(e){return pn.Instance.createQuestion(e.isDefaultRendering()?e.getTemplate():e.getComponentName(),{question:e,isDisplayMode:e.isInputReadOnly,creator:this})},t.prototype.renderError=function(e,t,n,r){return St.Instance.createElement(this.survey.questionErrorComponent,{key:e,error:t,cssClasses:n,element:r})},t.prototype.questionTitleLocation=function(){return this.survey.questionTitleLocation},t.prototype.questionErrorLocation=function(){return this.survey.questionErrorLocation},t}(Nt);function $n(e,t,n){return void 0===n&&(n={processEsc:!0,disableTabStop:!1}),t&&t.disableTabStop||n&&n.disableTabStop?_t(e,{tabIndex:-1}):(n=zn({},n),_t(e,{tabIndex:0,onKeyUp:function(e){return e.preventDefault(),e.stopPropagation(),Object(kt.doKey2ClickUp)(e,n),!1},onKeyDown:function(e){return Object(kt.doKey2ClickDown)(e,n)},onBlur:function(e){return Object(kt.doKey2ClickBlur)(e)}}))}St.Instance.registerElement("survey",(function(e){return w(Kn,e)}));var Jn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gn=function(e){function t(t){var n=e.call(this,t)||this;return n.updateStateFunction=null,n.state={update:0},n}return Jn(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.survey},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"css",{get:function(){return this.props.css||this.survey.css},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.survey){var e=this;this.updateStateFunction=function(){e.setState({update:e.state.update+1})},this.survey.onPageVisibleChanged.add(this.updateStateFunction)}},t.prototype.componentWillUnmount=function(){this.survey&&this.updateStateFunction&&(this.survey.onPageVisibleChanged.remove(this.updateStateFunction),this.updateStateFunction=null)},t}(O),Yn=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xn=function(e){function t(t){var n=e.call(this,t)||this;return n.circleLength=440,n}return Yn(t,e),t.prototype.getStateElement=function(){return this.timerModel},Object.defineProperty(t.prototype,"timerModel",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return-this.timerModel.progress*this.circleLength},enumerable:!1,configurable:!0}),t.prototype.render=function(){if(!this.timerModel.isRunning)return null;var e=w("div",{className:this.timerModel.survey.getCss().timerRoot},this.timerModel.text);if(this.timerModel.showTimerAsClock){var t={strokeDasharray:this.circleLength,strokeDashoffset:this.progress},n=this.timerModel.showProgress?w(Wt,{className:this.timerModel.getProgressCss(),style:t,iconName:"icon-timercircle",size:"auto"}):null;e=w("div",{className:this.timerModel.rootCss},n,w("div",{className:this.timerModel.textContainerCss},w("span",{className:this.timerModel.majorTextCss},this.timerModel.clockMajorText),this.timerModel.clockMinorText?w("span",{className:this.timerModel.minorTextCss},this.timerModel.clockMinorText):null))}return e},t}(Rt);St.Instance.registerElement("sv-timerpanel",(function(e){return w(Xn,e)}));var er=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),tr=function(e){function t(t){var n=e.call(this,t)||this;return n.hasBeenExpanded=!1,n}return er(t,e),Object.defineProperty(t.prototype,"panel",{get:function(){return this.panelBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.renderHeader(),n=w(En,{element:this.panelBase,cssClasses:this.panelBase.cssClasses,creator:this.creator}),r={paddingLeft:this.panel.innerPaddingLeft,display:this.panel.renderedIsExpanded?void 0:"none"},o=null;if(this.panel.renderedIsExpanded){var s=this.renderRows(this.panelBase.cssClasses),i=this.panelBase.cssClasses.panel.content;o=this.renderContent(r,s,i)}return w("div",{ref:this.rootRef,className:this.panelBase.getContainerCss(),onFocus:function(){e.panelBase&&e.panelBase.focusIn()},id:this.panelBase.id},this.panel.showErrorsAbovePanel?n:null,t,this.panel.showErrorsAbovePanel?null:n,o)},t.prototype.renderHeader=function(){return this.panel.hasTitle||this.panel.hasDescription?w(xn,{element:this.panel}):null},t.prototype.wrapElement=function(e){var t=this.panel.survey,n=null;return t&&(n=Mt.wrapElement(t,e,this.panel)),null!=n?n:e},t.prototype.renderContent=function(e,t,n){var r=this.renderBottom();return w("div",{style:e,className:n,id:this.panel.contentId},t,r)},t.prototype.renderTitle=function(){return this.panelBase.title?w(ln,{element:this.panelBase}):null},t.prototype.renderDescription=function(){if(!this.panelBase.description)return null;var e=Nt.renderLocString(this.panelBase.locDescription);return w("div",{className:this.panel.cssClasses.panel.description},e)},t.prototype.renderBottom=function(){var e=this.panel.getFooterToolbar();return e.hasActions?w(rn,{model:e}):null},t.prototype.getIsVisible=function(){return this.panelBase.getIsContentVisible()},t}(At);St.Instance.registerElement("panel",(function(e){return w(tr,e)}));var nr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rr=function(e){function t(t){return e.call(this,t)||this}return nr(t,e),Object.defineProperty(t.prototype,"flowPanel",{get:function(){return this.panel},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=function(){return""},this.flowPanel.onGetHtmlForQuestion=this.renderQuestion)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.flowPanel&&(this.flowPanel.onCustomHtmlProducing=null,this.flowPanel.onGetHtmlForQuestion=null)},t.prototype.getQuestion=function(e){return this.flowPanel.getQuestionByName(e)},t.prototype.renderQuestion=function(e){return"<question>"+e.name+"</question>"},t.prototype.renderRows=function(){var e=this.renderHtml();return e?[e]:[]},t.prototype.getNodeIndex=function(){return this.renderedIndex++},t.prototype.renderHtml=function(){if(!this.flowPanel)return null;var e="<span>"+this.flowPanel.produceHtml()+"</span>";if(!DOMParser)return w("div",{dangerouslySetInnerHTML:{__html:e}});var t=(new DOMParser).parseFromString(e,"text/xml");return this.renderedIndex=0,this.renderParentNode(t)},t.prototype.renderNodes=function(e){for(var t=[],n=0;n<e.length;n++){var r=this.renderNode(e[n]);r&&t.push(r)}return t},t.prototype.getStyle=function(e){var t={};return"b"===e.toLowerCase()&&(t.fontWeight="bold"),"i"===e.toLowerCase()&&(t.fontStyle="italic"),"u"===e.toLowerCase()&&(t.textDecoration="underline"),t},t.prototype.renderParentNode=function(e){var t=e.nodeName.toLowerCase(),n=this.renderNodes(this.getChildDomNodes(e));return"div"===t?w("div",{key:this.getNodeIndex()},n):w("span",{key:this.getNodeIndex(),style:this.getStyle(t)},n)},t.prototype.renderNode=function(e){if(!this.hasTextChildNodesOnly(e))return this.renderParentNode(e);var t=e.nodeName.toLowerCase();if("question"===t){var n=this.flowPanel.getQuestionByName(e.textContent);if(!n)return null;var r=w(On,{key:n.name,element:n,creator:this.creator,css:this.css});return w("span",{key:this.getNodeIndex()},r)}return"div"===t?w("div",{key:this.getNodeIndex()},e.textContent):w("span",{key:this.getNodeIndex(),style:this.getStyle(t)},e.textContent)},t.prototype.getChildDomNodes=function(e){for(var t=[],n=0;n<e.childNodes.length;n++)t.push(e.childNodes[n]);return t},t.prototype.hasTextChildNodesOnly=function(e){for(var t=e.childNodes,n=0;n<t.length;n++)if("#text"!==t[n].nodeName.toLowerCase())return!1;return!0},t.prototype.renderContent=function(e,t){return w("f-panel",{style:e},t)},t}(tr);St.Instance.registerElement("flowpanel",(function(e){return w(rr,e)}));var or=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),sr=function(e){function t(t){return e.call(this,t)||this}return or(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return w("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)},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},w("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.getHeader(),this.question.hasColumns?this.getColumnedBody(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther():null)},t.prototype.getHeader=function(){var e=this;if(this.question.hasHeadItems)return this.question.headItems.map((function(t,n){return e.renderItem(t,!1,e.question.cssClasses)}))},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem(t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return w("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var o=n.map((function(n,o){return t.renderItem(n,0===r&&0===o,e,""+r+o)}));return w("div",{key:"column"+r+t.question.getItemsColumnKey(n),className:t.question.getColumnClass(),role:"presentation"},o)}))},t.prototype.getBody=function(e){return this.question.blockedRow?w("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):w(q,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=0;r<t.length;r++){var o=t[r],s=(o.value,this.renderItem(o,0==r,e,""+r));s&&n.push(s)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(){var e=this.question.cssClasses;return w("div",{className:this.question.getCommentAreaCss(!0)},w(Cn,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r){var o=St.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:r,isFirst:t}),s=this.question.survey,i=null;return s&&o&&(i=Mt.wrapItemValue(s,o,this.question,e)),null!=i?i:o},t}(jt),ir=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.clickItemHandler(n.item,e.target.checked)},n.rootRef={current:null},n}return or(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isFirst",{get:function(){return this.props.isFirst},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.item===this.props.item||this.question.isDesignMode||(this.props.item&&this.props.item.setRootElement(this.rootRef.current),t.item&&t.item.setRootElement(void 0))},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&!(this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render)},t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this.question.isItemSelected(this.item);return this.renderCheckbox(e,null)},Object.defineProperty(t.prototype,"inputStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderCheckbox=function(e,t){var n=this.question.getItemId(this.item),r=this.question.getItemClass(this.item),o=this.question.getLabelClass(this.item),s=this.hideCaption?null:w("span",{className:this.cssClasses.controlLabel},this.renderLocString(this.item.locText,this.textStyle));return w("div",{className:r,role:"presentation",ref:this.rootRef},w("label",{className:o},w("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:e,onChange:this.handleOnChange,required:this.question.hasRequiredError()}),this.cssClasses.materialDecorator?w("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?w("svg",{className:this.cssClasses.itemDecorator},w("use",{xlinkHref:this.question.itemSvgIcon})):null):null,s),t)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(Rt);St.Instance.registerElement("survey-checkbox-item",(function(e){return w(ir,e)})),pn.Instance.registerQuestion("checkbox",(function(e){return w(sr,e)}));var ar=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ar(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this;if(this.question.selectToRankEnabled){return w("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},w("div",{className:this.question.getContainerClasses("from"),"data-ranking":"from-container"},this.getItems(this.question.renderedUnRankingChoices,!0),0===this.question.renderedUnRankingChoices.length?w("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyRankedAreaText)," "):null),w("div",{className:this.question.cssClasses.containersDivider}),w("div",{className:this.question.getContainerClasses("to"),"data-ranking":"to-container"},this.getItems(),0===this.question.renderedRankingChoices.length?w("div",{className:this.question.cssClasses.containerPlaceholder}," ",this.renderLocString(this.question.locSelectToRankEmptyUnrankedAreaText)," "):null))}return w("div",{className:this.question.rootClass,ref:function(t){return e.setControl(t)}},this.getItems())},t.prototype.getItems=function(e,t){var n=this;void 0===e&&(e=this.question.renderedRankingChoices);for(var r=[],o=function(o){var i=e[o];r.push(s.renderItem(i,o,(function(e){n.question.handleKeydown.call(n.question,e,i)}),(function(e){e.persist(),n.question.handlePointerDown.call(n.question,e,i,e.currentTarget)}),(function(e){e.persist(),n.question.handlePointerUp.call(n.question,e,i,e.currentTarget)}),s.question.cssClasses,s.question.getItemClass(i),s.question,t))},s=this,i=0;i<e.length;i++)o(i);return r},t.prototype.renderItem=function(e,t,n,r,o,s,i,a,u){e.renderedId;var c=this.renderLocString(e.locText),l=t,p=this.question.getNumberByIndex(l),h=this.question.getItemTabIndex(e),d=w(cr,{key:e.value,text:c,index:l,indexText:p,itemTabIndex:h,handleKeydown:n,handlePointerDown:r,handlePointerUp:o,cssClasses:s,itemClass:i,question:a,unrankedItem:u,item:e}),f=this.question.survey,m=null;return f&&(m=Mt.wrapItemValue(f,d,this.question,e)),null!=m?m:d},t}(jt),cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ar(t,e),Object.defineProperty(t.prototype,"text",{get:function(){return this.props.text},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indexText",{get:function(){return this.props.indexText},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handleKeydown",{get:function(){return this.props.handleKeydown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerDown",{get:function(){return this.props.handlePointerDown},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"handlePointerUp",{get:function(){return this.props.handlePointerUp},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemClass",{get:function(){return this.props.itemClass},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemTabIndex",{get:function(){return this.props.itemTabIndex},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"unrankedItem",{get:function(){return this.props.unrankedItem},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.renderEmptyIcon=function(){return w("svg",null,w("use",{xlinkHref:this.question.dashSvgIcon}))},t.prototype.renderElement=function(){var e=St.Instance.createElement(this.question.itemComponent,{item:this.item,cssClasses:this.cssClasses});return w("div",{tabIndex:this.itemTabIndex,className:this.itemClass,onKeyDown:this.handleKeydown,onPointerDown:this.handlePointerDown,onPointerUp:this.handlePointerUp,"data-sv-drop-target-ranking-item":this.index},w("div",{tabIndex:-1,style:{outline:"none"}},w("div",{className:this.cssClasses.itemGhostNode}),w("div",{className:this.cssClasses.itemContent},w("div",{className:this.cssClasses.itemIconContainer},w("svg",{className:this.question.getIconHoverCss()},w("use",{xlinkHref:this.question.dragDropSvgIcon})),w("svg",{className:this.question.getIconFocusCss()},w("use",{xlinkHref:this.question.arrowsSvgIcon}))),w("div",{className:this.question.getItemIndexClasses(this.item)},!this.unrankedItem&&this.indexText?this.indexText:this.renderEmptyIcon()),e)))},t}(Rt),lr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return ar(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return w("div",{className:this.cssClasses.controlLabel},Nt.renderLocString(this.item.locText))},t}(Rt);St.Instance.registerElement("sv-ranking-item",(function(e){return w(lr,e)})),pn.Instance.registerQuestion("ranking",(function(e){return w(ur,e)}));var pr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),hr=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return pr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t}(Nt),dr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return pr(t,e),t.prototype.render=function(){var e=this.renderLocString(this.item.locText);return Lt.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClassByText(this.item.itemValue,this.item.text)},Lt.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}),Lt.createElement("span",{className:this.question.cssClasses.itemText,"data-text":this.item.text},e))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this)},t}(hr);St.Instance.registerElement("sv-rating-item",(function(e){return Lt.createElement(dr,e)}));var fr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return fr(t,e),t.prototype.render=function(){var e=this;return Lt.createElement("label",{onMouseDown:this.handleOnMouseDown,className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},Lt.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}),Lt.createElement(Wt,{className:"sv-star",size:"auto",iconName:this.question.itemStarIcon,title:this.item.text}),Lt.createElement(Wt,{className:"sv-star-2",size:"auto",iconName:this.question.itemStarIconAlt,title:this.item.text}))},t}(hr);St.Instance.registerElement("sv-rating-item-star",(function(e){return Lt.createElement(mr,e)}));var vr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return vr(t,e),t.prototype.render=function(){var e=this;return Lt.createElement("label",{onMouseDown:this.handleOnMouseDown,style:this.question.getItemStyle(this.item.itemValue,this.item.highlight),className:this.question.getItemClass(this.item.itemValue),onMouseOver:function(t){return e.question.onItemMouseIn(e.item)},onMouseOut:function(t){return e.question.onItemMouseOut(e.item)}},Lt.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}),Lt.createElement(Wt,{size:"auto",iconName:this.question.getItemSmileyIconName(this.item.itemValue),title:this.item.text}))},t}(hr);St.Instance.registerElement("sv-rating-item-smiley",(function(e){return Lt.createElement(yr,e)}));var gr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return gr(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=this.props.item,t=this.renderDescription(e);return Lt.createElement("div",{className:"sd-rating-dropdown-item"},Lt.createElement("span",{className:"sd-rating-dropdown-item_text"},e.title),t)},t.prototype.renderDescription=function(e){return e.description?Lt.createElement("div",{className:"sd-rating-dropdown-item_description"},this.renderLocString(e.description,void 0,"locString")):null},t}(Nt);St.Instance.registerElement("sv-rating-dropdown-item",(function(e){return Lt.createElement(Cr,e)}));var _r=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wr=function(e){function t(t){return e.call(this,t)||this}return _r(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateDomElement()},t.prototype.updateDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.model.inputStringRendered;kt.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.model.inputStringRendered)}},t.prototype.onChange=function(e){var t=kt.settings.environment.root;e.target===t.activeElement&&(this.model.inputStringRendered=e.target.value)},t.prototype.keyhandler=function(e){this.model.inputKeyHandler(e)},t.prototype.onBlur=function(e){this.question.onBlur(e)},t.prototype.onFocus=function(e){this.question.onFocus(e)},t.prototype.getStateElement=function(){return this.model},t.prototype.render=function(){var e=this;return w("div",{className:this.question.cssClasses.hint},this.model.showHintPrefix?w("div",{className:this.question.cssClasses.hintPrefix},w("span",null,this.model.hintStringPrefix)):null,w("div",{className:this.question.cssClasses.hintSuffixWrapper},this.model.showHintString?w("div",{className:this.question.cssClasses.hintSuffix},w("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},this.model.inputStringRendered),w("span",null,this.model.hintStringSuffix)):null,w("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),inputMode:this.model.inputMode,ref:function(t){return e.inputElement=t},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(t){e.keyhandler(t)},onChange:function(t){e.onChange(t)},onBlur:function(t){e.onBlur(t)},onFocus:function(t){e.onFocus(t)}})))},t}(Nt);pn.Instance.registerQuestion("sv-tagbox-filter",(function(e){return w(wr,e)}));var br=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xr=function(e){function t(t){var n=e.call(this,t)||this;return n.state={changed:0},n.setupModel(),n}return br(t,e),t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.setupModel()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setupModel()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item&&(this.item.locText.onChanged=function(){})},t.prototype.setupModel=function(){if(this.item.locText){var e=this;this.item.locText.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item},t.prototype.renderElement=function(){return w("option",{value:this.item.value,disabled:!this.item.isEnabled},this.item.text)},t}(Rt),qr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Or=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.click=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClick(e)},t.chevronPointerDown=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.chevronPointerDown(e)},t.clear=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.onClear(e)},t.keyhandler=function(e){var n;null===(n=t.question.dropdownListModel)||void 0===n||n.keyHandler(e)},t.blur=function(e){t.updateInputDomElement(),t.question.onBlur(e)},t.focus=function(e){t.question.onFocus(e)},t}return qr(t,e),t.prototype.getStateElement=function(){return this.question.dropdownListModel},t.prototype.setValueCore=function(e){this.questionBase.renderedValue=e},t.prototype.getValueCore=function(){return this.questionBase.renderedValue},t.prototype.renderReadOnlyElement=function(){return w("div",null,this.question.readOnlyText)},t.prototype.renderSelect=function(e){var t,n,r=null;if(this.question.isReadOnly){var o=this.question.selectedItemLocText?this.renderLocString(this.question.selectedItemLocText):"";r=w("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()},o,this.renderReadOnlyElement())}else r=w(q,null,this.renderInput(this.question.dropdownListModel),w(Gt,{model:null===(n=null===(t=this.question)||void 0===t?void 0:t.dropdownListModel)||void 0===n?void 0:n.popupModel}));return w("div",{className:e.selectWrapper,onClick:this.click},r,this.createChevronButton())},t.prototype.renderValueElement=function(e){return this.question.showInputFieldComponent?St.Instance.createElement(this.question.inputFieldComponentName,{item:e.getSelectedAction(),question:this.question}):this.question.showSelectedItemLocText?this.renderLocString(this.question.selectedItemLocText):null},t.prototype.renderInput=function(e){var t=this,n=this.renderValueElement(e),r=kt.settings.environment.root;return w("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.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":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},e.showHintPrefix?w("div",{className:this.question.cssClasses.hintPrefix},w("span",null,e.hintStringPrefix)):null,w("div",{className:this.question.cssClasses.controlValue},e.showHintString?w("div",{className:this.question.cssClasses.hintSuffix},w("span",{style:{visibility:"hidden"},"data-bind":"text: model.filterString"},e.inputStringRendered),w("span",null,e.hintStringSuffix)):null,n,w("input",{type:"text",autoComplete:"off",id:this.question.getInputId(),ref:function(e){return t.inputElement=e},className:this.question.cssClasses.filterStringInput,role:e.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":e.listElementId,"aria-activedescendant":e.ariaActivedescendant,placeholder:e.placeholderRendered,readOnly:!!e.filterReadOnly||void 0,tabIndex:e.noTabIndex?void 0:-1,disabled:this.question.isDisabledAttr,inputMode:e.inputMode,onChange:function(t){!function(t){t.target===r.activeElement&&(e.inputStringRendered=t.target.value)}(t)},onBlur:this.blur,onFocus:this.focus})),this.createClearButton())},t.prototype.createClearButton=function(){if(!this.question.allowClear||!this.question.cssClasses.cleanButtonIconId)return null;var e={display:this.question.showClearButton?"":"none"};return w("div",{className:this.question.cssClasses.cleanButton,style:e,onClick:this.clear,"aria-hidden":"true"},w(Wt,{className:this.question.cssClasses.cleanButtonSvg,iconName:this.question.cssClasses.cleanButtonIconId,title:this.question.clearCaption,size:"auto"}))},t.prototype.createChevronButton=function(){return this.question.cssClasses.chevronButtonIconId?w("div",{className:this.question.cssClasses.chevronButton,"aria-hidden":"true",onPointerDown:this.chevronPointerDown},w(Wt,{className:this.question.cssClasses.chevronButtonSvg,iconName:this.question.cssClasses.chevronButtonIconId,size:"auto"})):null},t.prototype.renderOther=function(e){return w("div",{className:this.question.getCommentAreaCss(!0)},w(Cn,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode,isOther:!0}))},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.updateInputDomElement()},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.updateInputDomElement()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.dropdownListModel&&(this.question.dropdownListModel.focused=!1)},t.prototype.updateInputDomElement=function(){if(this.inputElement){var e=this.inputElement,t=this.question.dropdownListModel.inputStringRendered;kt.Helpers.isTwoValueEquals(t,e.value,!1,!0,!1)||(e.value=this.question.dropdownListModel.inputStringRendered)}},t}(Ht),Er=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Lr=function(e){function t(t){return e.call(this,t)||this}return Er(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return w("div",{className:this.question.renderCssRoot},n,t)},t}(Or);pn.Instance.registerQuestion("dropdown",(function(e){return w(Lr,e)}));var kr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Sr=function(e){function t(t){return e.call(this,t)||this}return kr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.item&&!!this.question},t.prototype.renderElement=function(){var e=this;return w("div",{className:"sv-tagbox__item"},w("div",{className:"sv-tagbox__item-text"},this.renderLocString(this.item.locText)),w("div",{className:this.question.cssClasses.cleanItemButton,onClick:function(t){e.question.dropdownListModel.deselectItem(e.item.value),t.stopPropagation()}},w(Wt,{className:this.question.cssClasses.cleanItemButtonSvg,iconName:this.question.cssClasses.cleanItemButtonIconId,size:"auto"})))},t}(Rt),Mr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ir=function(e){function t(t){return e.call(this,t)||this}return Mr(t,e),t.prototype.renderItem=function(e,t){return w(Sr,{key:e,question:this.question,item:t})},t.prototype.renderInput=function(e){var t=this,n=e,r=this.question.selectedChoices.map((function(e,n){return t.renderItem("item"+n,e)}));return w("div",{id:this.question.inputId,className:this.question.getControlClass(),tabIndex:e.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":e.listElementId,"aria-activedescendant":e.ariaActivedescendant},w("div",{className:this.question.cssClasses.controlValue},r,w(wr,{model:n,question:this.question})),this.createClearButton())},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.isOtherSelected?this.renderOther(e):null,n=this.renderSelect(e);return w("div",{className:this.question.renderCssRoot},n,t)},t.prototype.renderReadOnlyElement=function(){return this.question.locReadOnlyText?this.renderLocString(this.question.locReadOnlyText):null},t}(Or);pn.Instance.registerQuestion("tagbox",(function(e){return w(Ir,e)}));var Pr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Nr=function(e){function t(t){return e.call(this,t)||this}return Pr(t,e),t.prototype.renderSelect=function(e){var t=this,n=this.isDisplayMode?w("div",{id:this.question.inputId,className:this.question.getControlClass(),disabled:!0},this.question.readOnlyText):w("select",{id:this.question.inputId,className:this.question.getControlClass(),ref:function(e){return t.setControl(e)},autoComplete:this.question.autocomplete,onChange:this.updateValueOnEvent,onInput:this.updateValueOnEvent,onClick:function(e){t.question.onClick(e)},onKeyUp:function(e){t.question.onKeyUp(e)},"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?w("option",{value:""},this.question.placeholder):null,this.question.visibleChoices.map((function(e,t){return w(xr,{key:"item"+t,item:e})})));return w("div",{className:e.selectWrapper},n,this.createChevronButton())},t}(Lr);pn.Instance.registerQuestion("sv-dropdown-select",(function(e){return w(Nr,e)})),kt.RendererFactory.Instance.registerRenderer("dropdown","select","sv-dropdown-select");var Rr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),jr=function(e){function t(t){var n=e.call(this,t)||this;return n.state={rowsChanged:0},n}return Rr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(e.prototype.componentDidMount.call(this),this.question){var t=this;this.question.visibleRowsChangedCallback=function(){t.setState({rowsChanged:t.state.rowsChanged+1})}}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question&&(this.question.visibleRowsChangedCallback=null)},t.prototype.renderElement=function(){for(var e=this,t=this.question.cssClasses,n=this.question.hasRows?w("td",null):null,r=[],o=0;o<this.question.visibleColumns.length;o++){var s=this.question.visibleColumns[o],i="column"+o,a=this.renderLocString(s.locText),u={};this.question.columnMinWidth&&(u.minWidth=this.question.columnMinWidth,u.width=this.question.columnMinWidth),r.push(w("th",{className:this.question.cssClasses.headerCell,style:u,key:i},this.wrapCell({column:s},a,"column-header")))}var c=[],l=this.question.visibleRows;for(o=0;o<l.length;o++){var p=l[o];i="row-"+p.name+"-"+o;c.push(w(Hr,{key:i,question:this.question,cssClasses:t,row:p,isFirst:0==o}))}var h=this.question.showHeader?w("thead",null,w("tr",null,n,r)):null;return w("div",{className:t.tableWrapper,ref:function(t){return e.setControl(t)}},w("fieldset",null,w("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),w("table",{className:this.question.getTableCss()},h,w("tbody",null,c))))},t}(jt),Hr=function(e){function t(t){return e.call(this,t)||this}return Rr(t,e),t.prototype.getStateElement=function(){return this.row?this.row.item:e.prototype.getStateElement.call(this)},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),t.prototype.wrapCell=function(e,t,n){if(!n)return t;var r=this.question.survey,o=null;return r&&(o=Mt.wrapMatrixCell(r,t,e,n)),null!=o?o:t},t.prototype.canRender=function(){return!!this.row},t.prototype.renderElement=function(){var e=null;if(this.question.hasRows){var t=this.renderLocString(this.row.locText),n={};this.question.rowTitleWidth&&(n.minWidth=this.question.rowTitleWidth,n.width=this.question.rowTitleWidth),e=w("td",{style:n,className:this.row.rowTextClasses},this.wrapCell({row:this.row},t,"row-header"))}var r=this.generateTds();return w("tr",{className:this.row.rowClasses||void 0},e,r)},t.prototype.generateTds=function(){for(var e=this,t=[],n=this.row,r=this.question.cellComponent,o=function(){var o=null,a=s.question.visibleColumns[i],u="value"+i,c=s.question.getItemClass(n,a);if(s.question.hasCellText){var l=function(t){return function(){return e.cellClick(n,t)}};o=w("td",{key:u,className:c,onClick:l?l(a):function(){}},s.renderLocString(s.question.getCellDisplayLocText(n.name,a)))}else{var p=St.Instance.createElement(r,{question:s.question,row:s.row,column:a,columnIndex:i,cssClasses:s.cssClasses,cellChanged:function(){e.cellClick(e.row,a)}});o=w("td",{key:u,"data-responsive-title":a.locText.renderedHtml,className:s.question.cssClasses.cell},p)}t.push(o)},s=this,i=0;i<this.question.visibleColumns.length;i++)o();return t},t.prototype.cellClick=function(e,t){e.value=t.value,this.setState({value:this.row.value})},t}(Rt),Br=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n.handleOnChange=n.handleOnChange.bind(n),n}return Rr(t,e),t.prototype.handleOnChange=function(e){this.props.cellChanged&&this.props.cellChanged()},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.row},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnIndex",{get:function(){return this.props.columnIndex},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return!!this.question&&!!this.row},t.prototype.renderElement=function(){var e=this.row.value==this.column.value,t=this.question.inputId+"_"+this.row.name+"_"+this.columnIndex,n=this.question.getItemClass(this.row,this.column),r=this.question.isMobile?w("span",{className:this.question.cssClasses.cellResponsiveTitle},this.renderLocString(this.column.locText)):void 0;return w("label",{onMouseDown:this.handleOnMouseDown,className:n},this.renderInput(t,e),w("span",{className:this.question.cssClasses.materialDecorator},this.question.itemSvgIcon?w("svg",{className:this.cssClasses.itemDecorator},w("use",{xlinkHref:this.question.itemSvgIcon})):null),r)},t.prototype.renderInput=function(e,t){return w("input",{id:e,type:"radio",className:this.cssClasses.itemValue,name:this.row.fullName,value:this.column.value,disabled:this.row.isDisabledAttr,readOnly:this.row.isReadOnlyAttr,checked:t,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})},t}(Rt);St.Instance.registerElement("survey-matrix-cell",(function(e){return w(Br,e)})),pn.Instance.registerQuestion("matrix",(function(e){return w(jr,e)}));var Tr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Dr=function(e){function t(t){return e.call(this,t)||this}return Tr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.question.locHtml.onChanged=function(){}},t.prototype.componentDidUpdate=function(e,t){this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.question.locHtml.onChanged=function(){e.setState({changed:e.state&&e.state.changed?e.state.changed+1:1})}},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&!!this.question.html},t.prototype.renderElement=function(){var e={__html:this.question.locHtml.renderedHtml};return w("div",{className:this.question.renderCssRoot,dangerouslySetInnerHTML:e})},t}(jt);pn.Instance.registerQuestion("html",(function(e){return w(Dr,e)}));var Vr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vr(t,e),t.prototype.render=function(){return w("div",{className:"sd-loading-indicator"},w(Wt,{iconName:"icon-loading",size:"auto"}))},t}(O),Ar=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ur=function(e){function t(t){return e.call(this,t)||this}return Ar(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this;return $n(Lt.createElement("label",{tabIndex:0,className:this.question.getChooseFileCss(),htmlFor:this.question.inputId,"aria-label":this.question.chooseButtonText,onClick:function(t){return e.question.chooseFile(t.nativeEvent)}},this.question.cssClasses.chooseFileIconId?Lt.createElement(Wt,{title:this.question.chooseButtonText,iconName:this.question.cssClasses.chooseFileIconId,size:"auto"}):null,Lt.createElement("span",null,this.question.chooseButtonText)))},t}(Rt);St.Instance.registerElement("sv-file-choose-btn",(function(e){return Lt.createElement(Ur,e)}));var Wr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fr=function(e){function t(t){return e.call(this,t)||this}return Wr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e,t=this,n=this.question.allowShowPreview?this.renderPreview():null,r=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,o=this.question.isPlayingVideo?this.renderVideo():null,s=this.question.showFileDecorator?this.renderFileDecorator():null,i=this.question.showRemoveButton?this.renderClearButton(this.question.cssClasses.removeButton):null,a=this.question.showRemoveButtonBottom?this.renderClearButton(this.question.cssClasses.removeButtonBottom):null,u=this.question.fileNavigatorVisible?w(rn,{model:this.question.fileNavigator}):null;return e=this.question.isReadOnlyAttr?w("input",{readOnly:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.isDisabledAttr?w("input",{disabled:!0,type:"file",className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},style:this.isDisplayMode?{color:"transparent"}:{},multiple:this.question.allowMultiple,placeholder:this.question.title,accept:this.question.acceptedTypes}):this.question.hasFileUI?w("input",{type:"file",disabled:this.isDisplayMode,tabIndex:-1,className:this.isDisplayMode?this.question.getReadOnlyFileCss():this.question.cssClasses.fileInput,id:this.question.inputId,ref:function(e){return t.setControl(e)},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,w("div",{className:this.question.fileRootCss,ref:function(e){return t.setContent(e)}},e,w("div",{className:this.question.cssClasses.dragArea,onDrop:this.question.onDrop,onDragOver:this.question.onDragOver,onDragLeave:this.question.onDragLeave,onDragEnter:this.question.onDragEnter},s,r,o,i,n,a,u))},t.prototype.renderFileDecorator=function(){var e=this.question.showChooseButton?this.renderChooseButton():null,t=this.question.actionsContainerVisible?w(rn,{model:this.question.actionsContainer}):null,n=this.question.isEmpty()?w("span",{className:this.question.cssClasses.noFileChosen},this.question.noFileChosenCaption):null;return w("div",{className:this.question.getFileDecoratorCss()},w("span",{className:this.question.cssClasses.dragAreaPlaceholder},this.renderLocString(this.question.locRenderedPlaceholder)),w("div",{className:this.question.cssClasses.wrapper},e,t,n))},t.prototype.renderChooseButton=function(){return w(Ur,{data:{question:this.question}})},t.prototype.renderClearButton=function(e){return this.question.isUploading?null:w("button",{type:"button",onClick:this.question.doClean,className:e},w("span",null,this.question.clearButtonCaption),this.question.cssClasses.removeButtonIconId?w(Wt,{iconName:this.question.cssClasses.removeButtonIconId,size:"auto",title:this.question.clearButtonCaption}):null)},t.prototype.renderPreview=function(){return St.Instance.createElement("sv-file-preview",{question:this.question})},t.prototype.renderLoadingIndicator=function(){return w("div",{className:this.question.cssClasses.loadingIndicator},w(Zr,null))},t.prototype.renderVideo=function(){return w("div",{className:this.question.cssClasses.videoContainer},w(Kt,{item:this.question.changeCameraAction}),w(Kt,{item:this.question.closeCameraAction}),w("video",{autoPlay:!0,playsInline:!0,id:this.question.videoId,className:this.question.cssClasses.video}),w(Kt,{item:this.question.takePictureAction}))},t}(jt);pn.Instance.registerQuestion("file",(function(e){return w(Fr,e)}));var Qr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Qr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,t){var n=this;return e&&t.name?Lt.createElement("div",{className:e},Lt.createElement("a",{href:t.content,onClick:function(e){n.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderElement=function(){var e=this,t=this.item;return Lt.createElement("span",{className:this.question.cssClasses.previewItem,onClick:function(t){return e.question.doDownloadFileFromContainer(t)}},this.renderFileSign(this.question.cssClasses.fileSign,t),Lt.createElement("div",{className:this.question.getImageWrapperCss(t)},this.question.canPreviewImage(t)?Lt.createElement("img",{src:t.content,style:{height:this.question.imageHeight,width:this.question.imageWidth},alt:"File preview"}):this.question.cssClasses.defaultImage?Lt.createElement(Wt,{iconName:this.question.cssClasses.defaultImageIconId,size:"auto",className:this.question.cssClasses.defaultImage}):null,t.name&&!this.question.isReadOnly?Lt.createElement("div",{className:this.question.getRemoveButtonCss(),onClick:function(n){return e.question.doRemoveFile(t,n)}},Lt.createElement("span",{className:this.question.cssClasses.removeFile},this.question.removeFileCaption),this.question.cssClasses.removeFileSvgIconId?Lt.createElement(Wt,{title:this.question.removeFileCaption,iconName:this.question.cssClasses.removeFileSvgIconId,size:"auto",className:this.question.cssClasses.removeFileSvg}):null):null),this.renderFileSign(this.question.cssClasses.fileSignBottom,t))},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(Nt),Kr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Kr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"page",{get:function(){return this.props.page},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.page.items.map((function(t,n){return Lt.createElement(zr,{item:t,question:e.question,key:n})}));return Lt.createElement("div",{className:this.page.css,id:this.page.id},t)},t}(Nt),Jr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Gr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Jr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.renderFileSign=function(e,t){var n=this;return e&&t.name?Lt.createElement("div",{className:e},Lt.createElement("a",{href:t.content,onClick:function(e){n.question.doDownloadFile(e,t)},title:t.name,download:t.name,style:{width:this.question.imageWidth}},t.name)):null},t.prototype.renderElement=function(){var e=this,t=this.question.supportFileNavigator?this.question.renderedPages.map((function(t,n){return Lt.createElement($r,{page:t,question:e.question,key:t.id})})):this.question.previewValue.map((function(t,n){return Lt.createElement(zr,{item:t,question:e.question,key:n})}));return Lt.createElement("div",{className:this.question.cssClasses.fileList||void 0},t)},t.prototype.canRender=function(){return this.question.showPreviewContainer},t}(Nt);St.Instance.registerElement("sv-file-preview",(function(e){return Lt.createElement(Gr,e)}));var Yr=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xr=function(e){function t(t){return e.call(this,t)||this}return Yr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){for(var e=this.question.cssClasses,t=this.question.getRows(),n=[],r=0;r<t.length;r++)t[r].isVisible&&n.push(this.renderRow(r,t[r].cells,e));return w("table",{className:this.question.getQuestionRootCss()},w("tbody",null,n))},t.prototype.renderCell=function(e,t,n){var r;return r=e.isErrorsCell?w(Sn,{question:e.item.editor,creator:this.creator}):w(eo,{question:this.question,item:e.item,creator:this.creator,cssClasses:t}),w("td",{key:"item"+n,className:e.className,onFocus:function(){e.item.focusIn()}},r)},t.prototype.renderRow=function(e,t,n){for(var r="item"+e,o=[],s=0;s<t.length;s++){var i=t[s];o.push(this.renderCell(i,n,s))}return w("tr",{key:r,className:n.row},o)},t}(jt),eo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yr(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElements=function(){return[this.item,this.item.editor]},Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.item,t=this.cssClasses,n={};return this.question.itemTitleWidth&&(n.minWidth=this.question.itemTitleWidth,n.width=this.question.itemTitleWidth),w("label",{className:this.question.getItemLabelCss(e)},w("span",{className:t.itemTitle,style:n},w(sn,{element:e.editor,cssClasses:e.editor.cssClasses})),w(to,{cssClasses:t,itemCss:this.question.getItemCss(),question:e.editor,creator:this.creator}))},t}(Rt),to=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yr(t,e),t.prototype.renderElement=function(){return w("div",{className:this.itemCss},this.renderContent())},t}(Ln);pn.Instance.registerQuestion("multipletext",(function(e){return w(Xr,e)}));var no=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ro=function(e){function t(t){return e.call(this,t)||this}return no(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=null;return this.question.showClearButtonInContent&&(n=w("div",null,w("input",{type:"button",className:this.question.cssClasses.clearButton,onClick:function(){return e.question.clearValue(!0)},value:this.question.clearButtonCaption}))),w("fieldset",{className:this.question.getSelectBaseRootCss(),ref:function(t){return e.setControl(t)},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(t):this.getBody(t),this.getFooter(),this.question.isOtherSelected?this.renderOther(t):null,n)},t.prototype.getFooter=function(){var e=this;if(this.question.hasFootItems)return this.question.footItems.map((function(t,n){return e.renderItem(t,!1,e.question.cssClasses)}))},t.prototype.getColumnedBody=function(e){return w("div",{className:e.rootMultiColumn},this.getColumns(e))},t.prototype.getColumns=function(e){var t=this,n=this.getStateValue();return this.question.columns.map((function(r,o){var s=r.map((function(r,s){return t.renderItem(r,n,e,""+o+s)}));return w("div",{key:"column"+o+t.question.getItemsColumnKey(r),className:t.question.getColumnClass(),role:"presentation"},s)}))},t.prototype.getBody=function(e){return this.question.blockedRow?w("div",{className:e.rootRow},this.getItems(e,this.question.dataChoices)):w(q,null,this.getItems(e,this.question.bodyItems))},t.prototype.getItems=function(e,t){for(var n=[],r=this.getStateValue(),o=0;o<t.length;o++){var s=t[o],i=this.renderItem(s,r,e,""+o);n.push(i)}return n},Object.defineProperty(t.prototype,"textStyle",{get:function(){return null},enumerable:!1,configurable:!0}),t.prototype.renderOther=function(e){return w("div",{className:this.question.getCommentAreaCss(!0)},w(Cn,{question:this.question,otherCss:e.other,cssClasses:e,isDisplayMode:this.isDisplayMode}))},t.prototype.renderItem=function(e,t,n,r){var o=St.Instance.createElement(this.question.itemComponent,{key:e.value,question:this.question,cssClasses:n,isDisplayMode:this.isDisplayMode,item:e,textStyle:this.textStyle,index:r,isChecked:t===e.value}),s=this.question.survey,i=null;return s&&(i=Mt.wrapItemValue(s,o,this.question,e)),null!=i?i:o},t.prototype.getStateValue=function(){return this.question.isEmpty()?"":this.question.renderedValue},t}(jt),oo=function(e){function t(t){var n=e.call(this,t)||this;return n.rootRef={current:null},n.handleOnChange=n.handleOnChange.bind(n),n.handleOnMouseDown=n.handleOnMouseDown.bind(n),n}return no(t,e),t.prototype.getStateElement=function(){return this.item},Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"textStyle",{get:function(){return this.props.textStyle},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isChecked",{get:function(){return this.props.isChecked},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hideCaption",{get:function(){return!0===this.props.hideCaption},enumerable:!1,configurable:!0}),t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(!!this.question&&!(this.question.customWidget&&!this.question.customWidgetData.isNeedRender&&!this.question.customWidget.widgetJson.isDefaultRender&&!this.question.customWidget.widgetJson.render))},t.prototype.handleOnChange=function(e){this.question.clickItemHandler(this.item)},t.prototype.handleOnMouseDown=function(e){this.question.onMouseDown()},t.prototype.canRender=function(){return!!this.question&&!!this.item},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),t.item===this.props.item||this.question.isDesignMode||(this.props.item&&this.props.item.setRootElement(this.rootRef.current),t.item&&t.item.setRootElement(void 0))},t.prototype.renderElement=function(){var e=this.question.getItemClass(this.item),t=this.question.getLabelClass(this.item),n=this.question.getControlLabelClass(this.item),r=this.hideCaption?null:w("span",{className:n},this.renderLocString(this.item.locText,this.textStyle));return w("div",{className:e,role:"presentation",ref:this.rootRef},w("label",{onMouseDown:this.handleOnMouseDown,className:t},w("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?w("span",{className:this.cssClasses.materialDecorator},this.question.itemSvgIcon?w("svg",{className:this.cssClasses.itemDecorator},w("use",{xlinkHref:this.question.itemSvgIcon})):null):null,r))},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.question.isDesignMode||this.item.setRootElement(this.rootRef.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.isDesignMode||this.item.setRootElement(void 0)},t}(Rt);St.Instance.registerElement("survey-radiogroup-item",(function(e){return w(oo,e)})),pn.Instance.registerQuestion("radiogroup",(function(e){return w(ro,e)}));var so=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),io=function(e){function t(t){return e.call(this,t)||this}return so(t,e),t.prototype.renderInput=function(){var e=this,t=this.question.getControlClass(),n=this.question.renderedPlaceholder;if(this.question.isReadOnlyRenderDiv())return w("div",null,this.question.inputValue);var r=this.question.getMaxLength()?w(dn,{counter:this.question.characterCounter,remainingCharacterCounter:this.question.cssClasses.remainingCharacterCounter}):null;return w(q,null,w("input",{id:this.question.inputId,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:t,type:this.question.inputType,ref:function(t){return e.setControl(t)},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(t){e.question.onBlur(t)},onFocus:function(t){e.question.onFocus(t)},onChange:this.question.onChange,onKeyUp:this.question.onKeyUp,onKeyDown:this.question.onKeyDown,onCompositionUpdate:function(t){return e.question.onCompositionUpdate(t.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}),r)},t.prototype.renderElement=function(){return this.question.dataListId?w("div",null,this.renderInput(),this.renderDataList()):this.renderInput()},t.prototype.setValueCore=function(e){this.question.inputValue=e},t.prototype.getValueCore=function(){return this.question.inputValue},t.prototype.renderDataList=function(){if(!this.question.dataListId)return null;var e=this.question.dataList;if(0==e.length)return null;for(var t=[],n=0;n<e.length;n++)t.push(w("option",{key:"item"+n,value:e[n]}));return w("datalist",{id:this.question.dataListId},t)},t}(Ht);pn.Instance.registerQuestion("text",(function(e){return w(io,e)}));var ao=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),uo=function(e){function t(t){var n=e.call(this,t)||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 ao(t,e),t.prototype.getStateElement=function(){return this.question},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.doCheck=function(e){this.question.booleanValue=e},t.prototype.handleOnChange=function(e){this.doCheck(e.target.checked)},t.prototype.handleOnClick=function(e){this.question.onLabelClick(e,!0)},t.prototype.handleOnSwitchClick=function(e){this.question.onSwitchClickModel(e.nativeEvent)},t.prototype.handleOnLabelClick=function(e,t){this.question.onLabelClick(e,t)},t.prototype.handleOnKeyDown=function(e){this.question.onKeyDownCore(e)},t.prototype.updateDomElement=function(){if(this.question){var t=this.checkRef.current;t&&(t.indeterminate=this.question.isIndeterminate),this.setControl(t),e.prototype.updateDomElement.call(this)}},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.getItemCss();return w("div",{className:t.root,onKeyDown:this.handleOnKeyDown},w("label",{className:n,onClick:this.handleOnClick},w("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:t.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}),w("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,e.question.swapOrder)}},w("span",{className:this.question.getLabelCss(this.question.swapOrder)},this.renderLocString(this.question.locLabelLeft))),w("div",{className:t.switch,onClick:this.handleOnSwitchClick},w("span",{className:t.slider},this.question.isDeterminated&&t.sliderText?w("span",{className:t.sliderText},this.renderLocString(this.question.getCheckedLabel())):null)),w("div",{className:t.sliderGhost,onClick:function(t){return e.handleOnLabelClick(t,!e.question.swapOrder)}},w("span",{className:this.question.getLabelCss(!this.question.swapOrder)},this.renderLocString(this.question.locLabelRight)))))},t}(jt);pn.Instance.registerQuestion("boolean",(function(e){return w(uo,e)}));var co=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),lo=function(e){function t(t){return e.call(this,t)||this}return co(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.getCheckboxItemCss(),n=this.question.canRenderLabelDescription?Nt.renderQuestionDescription(this.question):null;return w("div",{className:e.rootCheckbox},w("div",{className:t},w("label",{className:e.checkboxLabel},w("input",{ref:this.checkRef,type:"checkbox",name:this.question.name,value:null===this.question.booleanValue?"":this.question.booleanValue,id:this.question.inputId,className:e.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}),w("span",{className:e.checkboxMaterialDecorator},this.question.svgIcon?w("svg",{className:e.checkboxItemDecorator},w("use",{xlinkHref:this.question.svgIcon})):null,w("span",{className:"check"})),this.question.isLabelRendered&&w("span",{className:e.checkboxControlLabel,id:this.question.labelRenderedAriaID},w(un,{element:this.question,cssClasses:this.question.cssClasses}))),n))},t}(uo);pn.Instance.registerQuestion("sv-boolean-checkbox",(function(e){return w(lo,e)})),kt.RendererFactory.Instance.registerRenderer("boolean","checkbox","sv-boolean-checkbox");var po=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ho=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=function(e){n.question.booleanValue="true"==e.nativeEvent.target.value},n}return po(t,e),t.prototype.renderRadioItem=function(e,t){var n=this.question.cssClasses;return w("div",{role:"presentation",className:this.question.getRadioItemClass(n,e)},w("label",{className:n.radioLabel},w("input",{type:"radio",name:this.question.name,value:e,"aria-errormessage":this.question.ariaErrormessage,checked:e===this.question.booleanValueRendered,disabled:this.question.isDisabledAttr,readOnly:this.question.isReadOnlyAttr,className:n.itemRadioControl,onChange:this.handleOnChange}),this.question.cssClasses.materialRadioDecorator?w("span",{className:n.materialRadioDecorator},this.question.itemSvgIcon?w("svg",{className:n.itemRadioDecorator},w("use",{xlinkHref:this.question.itemSvgIcon})):null):null,w("span",{className:n.radioControlLabel},this.renderLocString(t))))},t.prototype.renderElement=function(){var e=this.question.cssClasses;return w("div",{className:e.rootRadio},w("fieldset",{role:"presentation",className:e.radioFieldset},this.question.swapOrder?w(q,null,this.renderRadioItem(!0,this.question.locLabelTrue),this.renderRadioItem(!1,this.question.locLabelFalse)):w(q,null,this.renderRadioItem(!1,this.question.locLabelFalse),this.renderRadioItem(!0,this.question.locLabelTrue))))},t}(uo);pn.Instance.registerQuestion("sv-boolean-radio",(function(e){return w(ho,e)})),kt.RendererFactory.Instance.registerRenderer("boolean","radio","sv-boolean-radio");var fo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),mo=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return fo(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return w("div",null)},t}(jt);pn.Instance.registerQuestion("empty",(function(e){return w(mo,e)}));var vo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),yo=function(e){function t(t){var n=e.call(this,t)||this;return n.root=Lt.createRef(),n.onPointerDownHandler=function(e){n.parentMatrix.onPointerDown(e.nativeEvent,n.model.row)},n}return vo(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"parentMatrix",{get:function(){return this.props.parentMatrix},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.root.current&&this.model.setRootElement(this.root.current)},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model.setRootElement(void 0)},t.prototype.shouldComponentUpdate=function(t,n){return!!e.prototype.shouldComponentUpdate.call(this,t,n)&&(t.model!==this.model&&(t.element&&t.element.setRootElement(this.root.current),this.model&&this.model.setRootElement(void 0)),!0)},t.prototype.render=function(){var e=this,t=this.model;return t.visible?Lt.createElement("tr",{ref:this.root,className:t.className,"data-sv-drop-target-matrix-row":t.row&&t.row.id,onPointerDown:function(t){return e.onPointerDownHandler(t)}},this.props.children):null},t}(Nt);St.Instance.registerElement("sv-matrix-row",(function(e){return Lt.createElement(yo,e)}));var go=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Co=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return go(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return Lt.createElement("div",null,this.renderIcon())},t.prototype.renderIcon=function(){return this.question.iconDragElement?Lt.createElement("svg",{className:this.question.cssClasses.dragElementDecorator},Lt.createElement("use",{xlinkHref:this.question.iconDragElement})):Lt.createElement("span",{className:this.question.cssClasses.iconDrag})},t}(Rt);St.Instance.registerElement("sv-matrix-drag-drop-icon",(function(e){return Lt.createElement(Co,e)}));var _o=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),wo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _o(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"creator",{get:function(){return this.props.creator},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"table",{get:function(){return this.question.renderedTable},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.table},t.prototype.wrapCell=function(e,t,n){return this.props.wrapCell(e,t,n)},t.prototype.renderHeader=function(){var e=this.question.renderedTable;if(!e.showHeader)return null;for(var t=[],n=e.headerRow.cells,r=0;r<n.length;r++){var o=n[r],s="column"+r,i={};o.width&&(i.width=o.width),o.minWidth&&(i.minWidth=o.minWidth);var a=this.renderCellContent(o,"column-header",{}),u=o.hasTitle?w("th",{className:o.className,key:s,style:i}," ",a," "):w("td",{className:o.className,key:s,style:i});t.push(u)}return w("thead",null,w("tr",null,t))},t.prototype.renderFooter=function(){var e=this.question.renderedTable;return e.showFooter?w("tfoot",null,this.renderRow("footer",e.footerRow,this.question.cssClasses,"row-footer")):null},t.prototype.renderRows=function(){for(var e=this.question.cssClasses,t=[],n=this.question.renderedTable.renderedRows,r=0;r<n.length;r++)t.push(this.renderRow(n[r].id,n[r],e));return w("tbody",null,t)},t.prototype.renderRow=function(e,t,n,r){for(var o=[],s=t.cells,i=0;i<s.length;i++)o.push(this.renderCell(s[i],i,n,r));return w(q,{key:"row"+e},"row-footer"==r?w("tr",null,o):w(yo,{model:t,parentMatrix:this.question},o))},t.prototype.renderCell=function(e,t,n,r){var o="cell"+t;if(e.hasQuestion)return w(Eo,{key:o,cssClasses:n,cell:e,creator:this.creator,reason:r});if(e.isErrorsCell&&e.isErrorsCell)return w(qo,{cell:e,key:o,keyValue:o,question:e.question,creator:this.creator});var s=r;s||(s=e.hasTitle?"row-header":"");var i=this.renderCellContent(e,s,n),a=null;return(e.width||e.minWidth)&&(a={},e.width&&(a.width=e.width),e.minWidth&&(a.minWidth=e.minWidth)),w("td",{className:e.className,key:o,style:a,colSpan:e.colSpans,title:e.getTitle()},i)},t.prototype.renderCellContent=function(e,t,n){var r=null,o=null;if((e.width||e.minWidth)&&(o={},e.width&&(o.width=e.width),e.minWidth&&(o.minWidth=e.minWidth)),e.hasTitle){t="row-header";var s=this.renderLocString(e.locTitle),i=e.column?w(Oo,{column:e.column,question:this.question}):null;r=w(q,null,s,i)}if(e.isDragHandlerCell&&(r=w(q,null,w(Co,{item:{data:{row:e.row,question:this.question}}}))),e.isActionsCell&&(r=St.Instance.createElement("sv-matrixdynamic-actions-cell",{question:this.question,cssClasses:n,cell:e,model:e.item.getData()})),e.hasPanel&&(r=w(tr,{key:e.panel.id,element:e.panel,survey:this.question.survey,cssClasses:n,isDisplayMode:this.isDisplayMode,creator:this.creator})),!r)return null;var a=w(q,null,r);return this.wrapCell(e,a,t)},t.prototype.renderElement=function(){var e=this.renderHeader(),t=this.renderFooter(),n=this.renderRows();return w("table",{className:this.question.getTableCss()},e,n,t)},t}(Nt),bo=function(e){function t(t){var n=e.call(this,t)||this;n.question.renderedTable;return n.state=n.getState(),n}return _o(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getState=function(e){return void 0===e&&(e=null),{rowCounter:e?e.rowCounter+1:0}},t.prototype.updateStateOnCallback=function(){this.isRendering||this.setState(this.getState(this.state))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.onRenderedTableResetCallback=function(){t.updateStateOnCallback()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.onRenderedTableResetCallback=function(){}},t.prototype.renderElement=function(){return this.renderTableDiv()},t.prototype.renderTableDiv=function(){var e=this;return w("div",{style:this.question.showHorizontalScroll?{overflowX:"scroll"}:{},className:this.question.cssClasses.tableWrapper,ref:function(t){return e.setControl(t)}},w(wo,{question:this.question,creator:this.creator,wrapCell:function(t,n,r){return e.wrapCell(t,n,r)}}))},t}(jt),xo=function(e){function t(t){return e.call(this,t)||this}return _o(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){return w(rn,{model:this.model,handleClick:!1})},t}(Rt),qo=function(e){function t(t){return e.call(this,t)||this}return _o(t,e),Object.defineProperty(t.prototype,"key",{get:function(){return this.props.keyValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.cell.isVisible?w("td",{className:this.cell.className,key:this.key,colSpan:this.cell.colSpans,title:this.cell.getTitle()},e.prototype.render.call(this)):null},t.prototype.getQuestionPropertiesToTrack=function(){return e.prototype.getQuestionPropertiesToTrack.call(this).concat(["visible"])},t}(Sn);St.Instance.registerElement("sv-matrixdynamic-actions-cell",(function(e){return w(xo,e)}));var Oo=function(e){function t(t){return e.call(this,t)||this}return _o(t,e),Object.defineProperty(t.prototype,"column",{get:function(){return this.props.column},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.column},t.prototype.renderElement=function(){return this.column.isRenderedRequired?w(q,null,w("span",null," "),w("span",{className:this.question.cssClasses.cellRequiredText},this.column.requiredText)):null},t}(Rt),Eo=function(e){function t(t){return e.call(this,t)||this}return _o(t,e),Object.defineProperty(t.prototype,"cell",{get:function(){return this.props.cell},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemCss",{get:function(){return this.cell?this.cell.className:""},enumerable:!1,configurable:!0}),t.prototype.getQuestion=function(){var t=e.prototype.getQuestion.call(this);return t||(this.cell?this.cell.question:null)},t.prototype.doAfterRender=function(){var e=this.cellRef.current;if(e&&this.cell&&this.question&&this.question.survey&&"r"!==e.getAttribute("data-rendered")){e.setAttribute("data-rendered","r");var t={cell:this.cell,cellQuestion:this.question,htmlElement:e,row:this.cell.row,column:this.cell.cell.column};this.question.survey.matrixAfterCellRender(this.question,t),this.question.afterRenderCore(e)}},t.prototype.getShowErrors=function(){return this.question.isVisible&&(!this.cell.isChoice||this.cell.isFirstChoice)},t.prototype.getCellStyle=function(){var t=e.prototype.getCellStyle.call(this);return(this.cell.width||this.cell.minWidth)&&(t||(t={}),this.cell.width&&(t.width=this.cell.width),this.cell.minWidth&&(t.minWidth=this.cell.minWidth)),t},t.prototype.getHeaderText=function(){return this.cell.headers},t.prototype.renderElement=function(){return this.cell.isVisible?e.prototype.renderElement.call(this):null},t.prototype.renderCellContent=function(){var t=e.prototype.renderCellContent.call(this),n=this.cell.showResponsiveTitle?w("span",{className:this.cell.responsiveTitleCss},this.renderLocString(this.cell.responsiveLocTitle)):null;return w(q,null,n,t)},t.prototype.renderQuestion=function(){return this.question.isVisible?this.cell.isChoice?this.cell.isOtherChoice?this.renderOtherComment():this.cell.isCheckbox?this.renderCellCheckboxButton():this.renderCellRadiogroupButton():On.renderQuestionBody(this.creator,this.question):w(q,null)},t.prototype.renderOtherComment=function(){var e=this.cell.question,t=e.cssClasses||{};return w(Cn,{question:e,cssClasses:t,otherCss:t.other,isDisplayMode:e.isInputReadOnly})},t.prototype.renderCellCheckboxButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return w(ir,{key:e,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})},t.prototype.renderCellRadiogroupButton=function(){var e=this.cell.question.id+"item"+this.cell.choiceIndex;return w(oo,{key:e,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})},t}(kn),Lo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ko=function(e){function t(t){return e.call(this,t)||this}return Lo(t,e),t}(bo);pn.Instance.registerQuestion("matrixdropdown",(function(e){return w(ko,e)}));var So=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Mo=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return So(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.question.renderedTable.showTable?this.renderTableDiv():this.renderNoRowsContent(e);return w("div",null,this.renderAddRowButtonOnTop(e),t,this.renderAddRowButtonOnBottom(e))},t.prototype.renderAddRowButtonOnTop=function(e){return this.matrix.renderedTable.showAddRowOnTop?this.renderAddRowButton(e):null},t.prototype.renderAddRowButtonOnBottom=function(e){return this.matrix.renderedTable.showAddRowOnBottom?this.renderAddRowButton(e):null},t.prototype.renderNoRowsContent=function(e){var t=this.renderLocString(this.matrix.locEmptyRowsText),n=w("div",{className:e.emptyRowsText},t),r=this.matrix.renderedTable.showAddRow?this.renderAddRowButton(e,!0):void 0;return w("div",{className:e.emptyRowsSection},n,r)},t.prototype.renderAddRowButton=function(e,t){return void 0===t&&(t=!1),St.Instance.createElement("sv-matrixdynamic-add-btn",{question:this.question,cssClasses:e,isEmptySection:t})},t}(bo);pn.Instance.registerQuestion("matrixdynamic",(function(e){return w(Mo,e)}));var Io=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowAddClick=n.handleOnRowAddClick.bind(n),n}return So(t,e),Object.defineProperty(t.prototype,"matrix",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnRowAddClick=function(e){this.matrix.addRowUI()},t.prototype.renderElement=function(){var e=this.renderLocString(this.matrix.locAddRowText),t=w("button",{className:this.matrix.getAddRowButtonCss(this.props.isEmptySection),type:"button",disabled:this.matrix.isInputReadOnly,onClick:this.matrix.isDesignMode?void 0:this.handleOnRowAddClick},e,w("span",{className:this.props.cssClasses.iconAdd}));return this.props.isEmptySection?t:w("div",{className:this.props.cssClasses.footer},t)},t}(Rt);St.Instance.registerElement("sv-matrixdynamic-add-btn",(function(e){return w(Io,e)}));var Po=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),No=function(e){function t(t){return e.call(this,t)||this}return Po(t,e),Object.defineProperty(t.prototype,"data",{get:function(){return this.props.item&&this.props.item.data||this.props.data},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item&&this.props.item.data.question||this.props.data.question},enumerable:!1,configurable:!0}),t}(Rt),Ro=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.addPanelUI()},t}return Po(t,e),t.prototype.renderElement=function(){if(!this.question.canAddPanel)return null;var e=this.renderLocString(this.question.locPanelAddText);return Lt.createElement("button",{type:"button",id:this.question.addButtonId,className:this.question.getAddButtonCss(),onClick:this.handleClick},Lt.createElement("span",{className:this.question.cssClasses.buttonAddText},e))},t}(No);St.Instance.registerElement("sv-paneldynamic-add-btn",(function(e){return Lt.createElement(Ro,e)}));var jo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ho=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToNextPanel()},t}return jo(t,e),t.prototype.renderElement=function(){return Lt.createElement("div",{title:this.question.panelNextText,onClick:this.handleClick,className:this.question.getNextButtonCss()},Lt.createElement(Wt,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(No);St.Instance.registerElement("sv-paneldynamic-next-btn",(function(e){return Lt.createElement(Ho,e)}));var Bo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),To=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.goToPrevPanel()},t}return Bo(t,e),t.prototype.renderElement=function(){return Lt.createElement("div",{title:this.question.panelPrevText,onClick:this.handleClick,className:this.question.getPrevButtonCss()},Lt.createElement(Wt,{iconName:this.question.cssClasses.progressBtnIcon,size:"auto"}))},t}(No);St.Instance.registerElement("sv-paneldynamic-prev-btn",(function(e){return Lt.createElement(To,e)}));var Do=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Vo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Do(t,e),t.prototype.renderElement=function(){return Lt.createElement("div",{className:this.question.cssClasses.progressText},this.question.progressText)},t}(No);St.Instance.registerElement("sv-paneldynamic-progress-text",(function(e){return Lt.createElement(Vo,e)}));var Zo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ao=function(e){function t(t){return e.call(this,t)||this}return Zo(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.setState({panelCounter:0});var t=this;this.question.panelCountChangedCallback=function(){t.updateQuestionRendering()},this.question.currentIndexChangedCallback=function(){t.updateQuestionRendering()},this.question.renderModeChangedCallback=function(){t.updateQuestionRendering()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.panelCountChangedCallback=function(){},this.question.currentIndexChangedCallback=function(){},this.question.renderModeChangedCallback=function(){}},t.prototype.updateQuestionRendering=function(){this.setState({panelCounter:this.state?this.state.panelCounter+1:1})},t.prototype.renderElement=function(){var e=this,t=[];this.question.renderedPanels.forEach((function(n,r){t.push(w(Uo,{key:n.id,element:n,question:e.question,index:r,cssClasses:e.question.cssClasses,isDisplayMode:e.isDisplayMode,creator:e.creator}))}));var n=this.question.isRenderModeList&&this.question.showLegacyNavigation?this.renderAddRowButton():null,r=this.question.isProgressTopShowing?this.renderNavigator():null,o=this.question.isProgressBottomShowing?this.renderNavigator():null,s=this.renderNavigatorV2(),i=this.renderPlaceholder();return w("div",{className:this.question.cssClasses.root},i,r,w("div",{className:this.question.cssClasses.panelsContainer},t),o,n,s)},t.prototype.renderNavigator=function(){if(!this.question.showLegacyNavigation)return this.question.isRangeShowing&&this.question.isProgressTopShowing?this.renderRange():null;var e=this.question.isRangeShowing?this.renderRange():null,t=this.rendrerPrevButton(),n=this.rendrerNextButton(),r=this.renderAddRowButton();return w("div",{className:this.question.isProgressTopShowing?this.question.cssClasses.progressTop:this.question.cssClasses.progressBottom},w("div",{style:{clear:"both"}},w("div",{className:this.question.cssClasses.progressContainer},t,e,n),r,this.renderProgressText()))},t.prototype.renderProgressText=function(){return w(Vo,{data:{question:this.question}})},t.prototype.rendrerPrevButton=function(){return w(To,{data:{question:this.question}})},t.prototype.rendrerNextButton=function(){return w(Ho,{data:{question:this.question}})},t.prototype.renderRange=function(){return w("div",{className:this.question.cssClasses.progress},w("div",{className:this.question.cssClasses.progressBar,style:{width:this.question.progress},role:"progressbar"}))},t.prototype.renderAddRowButton=function(){return St.Instance.createElement("sv-paneldynamic-add-btn",{data:{question:this.question}})},t.prototype.renderNavigatorV2=function(){if(!this.question.showNavigation)return null;var e=this.question.isRangeShowing&&this.question.isProgressBottomShowing?this.renderRange():null;return w("div",{className:this.question.cssClasses.footer},w("hr",{className:this.question.cssClasses.separator}),e,this.question.footerToolbar.visibleActions.length?w("div",{className:this.question.cssClasses.footerButtonsContainer},w(rn,{model:this.question.footerToolbar})):null)},t.prototype.renderPlaceholder=function(){return this.question.getShowNoEntriesPlaceholder()?w("div",{className:this.question.cssClasses.noEntriesPlaceholder},w("span",null,this.renderLocString(this.question.locNoEntriesText)),this.renderAddRowButton()):null},t}(jt),Uo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Zo(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),t.prototype.getSurvey=function(){return this.question?this.question.survey:null},t.prototype.getCss=function(){var e=this.getSurvey();return e?e.getCss():{}},t.prototype.render=function(){var t=e.prototype.render.call(this),n=this.renderButton(),r=this.question.showSeparator(this.index)?w("hr",{className:this.question.cssClasses.separator}):null;return w(q,null,w("div",{className:this.question.getPanelWrapperCss(this.panel)},t,n),r)},t.prototype.renderButton=function(){return"right"!==this.question.panelRemoveButtonLocation||!this.question.canRemovePanel||this.question.isRenderModeList&&this.panel.isCollapsed?null:St.Instance.createElement("sv-paneldynamic-remove-btn",{data:{question:this.question,panel:this.panel}})},t}(tr);pn.Instance.registerQuestion("paneldynamic",(function(e){return w(Ao,e)}));var Wo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fo=function(e){function t(t){return e.call(this,t)||this}return Wo(t,e),Object.defineProperty(t.prototype,"isTop",{get:function(){return this.props.isTop},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{get:function(){return this.survey.progressValue},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progressText",{get:function(){return this.survey.progressText},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e={width:this.progress+"%"};return w("div",{className:this.survey.getProgressCssClasses(this.props.container)},w("div",{style:e,className:this.css.progressBar,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-label":"progress"},w("span",{className:kt.SurveyProgressModel.getProgressTextInBarCss(this.css)},this.progressText)),w("span",{className:kt.SurveyProgressModel.getProgressTextUnderBarCss(this.css)},this.progressText))},t}(Gn);St.Instance.registerElement("sv-progress-pages",(function(e){return w(Fo,e)})),St.Instance.registerElement("sv-progress-questions",(function(e){return w(Fo,e)})),St.Instance.registerElement("sv-progress-correctquestions",(function(e){return w(Fo,e)})),St.Instance.registerElement("sv-progress-requiredquestions",(function(e){return w(Fo,e)}));var Qo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zo=function(e){function t(t){var n=e.call(this,t)||this;return n.listContainerRef={current:null},n}return Qo(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"container",{get:function(){return this.props.container},enumerable:!1,configurable:!0}),t.prototype.onResize=function(e){this.setState({canShowItemTitles:e}),this.setState({canShowHeader:!e})},t.prototype.onUpdateScroller=function(e){this.setState({hasScroller:e})},t.prototype.onUpdateSettings=function(){this.setState({canShowItemTitles:this.model.showItemTitles}),this.setState({canShowFooter:!this.model.showItemTitles})},t.prototype.render=function(){var e=this;return w("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?w("div",{className:this.css.progressButtonsHeader},w("div",{className:this.css.progressButtonsPageTitle,title:this.model.headerText},this.model.headerText)):null,w("div",{className:this.css.progressButtonsContainer},w("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!0),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!0)}}),w("div",{className:this.css.progressButtonsListContainer,ref:this.listContainerRef},w("ul",{className:this.css.progressButtonsList},this.getListElements())),w("div",{className:this.model.getScrollButtonCss(this.state.hasScroller,!1),role:"button",onClick:function(){return e.clickScrollButton(e.listContainerRef.current,!1)}})),this.state.canShowFooter?w("div",{className:this.css.progressButtonsFooter},w("div",{className:this.css.progressButtonsPageTitle,title:this.model.footerText},this.model.footerText)):null)},t.prototype.getListElements=function(){var e=this,t=[];return this.survey.visiblePages.forEach((function(n,r){t.push(e.renderListElement(n,r))})),t},t.prototype.renderListElement=function(e,t){var n=this,r=Nt.renderLocString(e.locNavigationTitle);return w("li",{key:"listelement"+t,className:this.model.getListElementCss(t),onClick:this.model.isListElementClickable(t)?function(){return n.model.clickListElement(e)}:void 0,"data-page-number":this.model.getItemNumber(e)},w("div",{className:this.css.progressButtonsConnector}),this.state.canShowItemTitles?w(q,null,w("div",{className:this.css.progressButtonsPageTitle,title:e.renderedNavigationTitle},r),w("div",{className:this.css.progressButtonsPageDescription,title:e.navigationDescription},e.navigationDescription)):null,w("div",{className:this.css.progressButtonsButton},w("div",{className:this.css.progressButtonsButtonBackground}),w("div",{className:this.css.progressButtonsButtonContent}),w("span",null,this.model.getItemNumber(e))))},t.prototype.clickScrollButton=function(e,t){e&&(e.scrollLeft+=70*(t?-1:1))},t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),setTimeout((function(){t.respManager=new kt.ProgressButtonsResponsivityManager(t.model,t.listContainerRef.current,t)}),10)},t.prototype.componentWillUnmount=function(){this.respManager&&this.respManager.dispose(),e.prototype.componentWillUnmount.call(this)},t}(Gn);St.Instance.registerElement("sv-progress-buttons",(function(e){return w(zo,e)}));var Ko=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleKeydown=function(e){t.model.onKeyDown(e)},t}return Ko(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e=this;if(!this.item)return null;var t={paddingInlineStart:this.model.getItemIndent(this.item)},n=this.model.getItemClass(this.item),r=this.item.component||this.model.itemComponent,o=St.Instance.createElement(r,{item:this.item,key:this.item.id,model:this.model}),s=Lt.createElement("div",{style:t,className:this.model.cssClasses.itemBody,title:this.item.locTitle.calculatedText,onMouseOver:function(t){e.model.onItemHover(e.item)},onMouseLeave:function(t){e.model.onItemLeave(e.item)}},o),i=this.item.needSeparator?Lt.createElement("div",{className:this.model.cssClasses.itemSeparator}):null,a={display:this.model.isItemVisible(this.item)?null:"none"};return $n(Lt.createElement("li",{className:n,role:"option",style:a,id:this.item.elementId,"aria-selected":this.model.isItemSelected(this.item),onClick:function(t){e.model.onItemClick(e.item),t.stopPropagation()},onPointerDown:function(t){return e.model.onPointerDown(t,e.item)}},i,s),this.item)},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.model.onLastItemRended(this.item)},t}(Nt);St.Instance.registerElement("sv-list-item",(function(e){return Lt.createElement($o,e)}));var Jo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Go=function(e){function t(t){var n=e.call(this,t)||this;return n.handleKeydown=function(e){n.model.onKeyDown(e)},n.handleMouseMove=function(e){n.model.onMouseMove(e)},n.state={filterString:n.model.filterString||""},n.listContainerRef=Lt.createRef(),n}return Jo(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.listContainerRef&&this.listContainerRef.current&&this.model.initListContainerHtmlElement(this.listContainerRef.current)},t.prototype.componentDidUpdate=function(t,n){var r;e.prototype.componentDidUpdate.call(this,t,n),this.model!==t.model&&(this.model&&(null===(r=this.listContainerRef)||void 0===r?void 0:r.current)&&this.model.initListContainerHtmlElement(this.listContainerRef.current),t.model&&t.model.initListContainerHtmlElement(void 0))},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.model&&this.model.initListContainerHtmlElement(void 0)},t.prototype.renderElement=function(){return Lt.createElement("div",{className:this.model.cssClasses.root,ref:this.listContainerRef},this.searchElementContent(),this.emptyContent(),this.renderList())},t.prototype.renderList=function(){if(!this.model.renderElements)return null;var e=this.renderItems(),t={display:this.model.isEmpty?"none":null};return Lt.createElement("ul",{className:this.model.getListClass(),style:t,role:"listbox",id:this.model.elementId,onMouseDown:function(e){e.preventDefault()},onKeyDown:this.handleKeydown,onMouseMove:this.handleMouseMove},e)},t.prototype.renderItems=function(){var e=this;if(!this.model)return null;var t=this.model.renderedActions;return t?t.map((function(t,n){return Lt.createElement($o,{model:e.model,item:t,key:"item"+n})})):null},t.prototype.searchElementContent=function(){var e=this;if(this.model.showFilter){var t=this.model.showSearchClearButton&&this.model.filterString?Lt.createElement("button",{className:this.model.cssClasses.searchClearButtonIcon,onClick:function(t){e.model.onClickSearchClearButton(t)}},Lt.createElement(Wt,{iconName:"icon-searchclear",size:"auto"})):null;return Lt.createElement("div",{className:this.model.cssClasses.filter},Lt.createElement("div",{className:this.model.cssClasses.filterIcon},Lt.createElement(Wt,{iconName:"icon-search",size:"auto"})),Lt.createElement("input",{type:"text",className:this.model.cssClasses.filterInput,"aria-label":this.model.filterStringPlaceholder,placeholder:this.model.filterStringPlaceholder,value:this.state.filterString,onKeyUp:function(t){e.model.goToItems(t)},onChange:function(t){var n=kt.settings.environment.root;t.target===n.activeElement&&(e.model.filterString=t.target.value)}}),t)}return null},t.prototype.emptyContent=function(){var e={display:this.model.isEmpty?null:"none"};return Lt.createElement("div",{className:this.model.cssClasses.emptyContainer,style:e},Lt.createElement("div",{className:this.model.cssClasses.emptyText,"aria-label":this.model.emptyMessage},this.model.emptyMessage))},t}(Nt);St.Instance.registerElement("sv-list",(function(e){return Lt.createElement(Go,e)}));var Yo=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Xo=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Yo(t,e),t.prototype.render=function(){var e,t=this.props.model;return e=t.isMobile?w("div",{onClick:t.togglePopup},w(Wt,{iconName:t.icon,size:24}),w(Gt,{model:t.popupModel})):w(Go,{model:t.listModel}),w("div",{className:t.containerCss},e)},t}(Gn);St.Instance.registerElement("sv-navigation-toc",(function(e){return w(Xo,e)}));var es=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ts=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnClick=n.handleOnClick.bind(n),n}return es(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.handleOnClick=function(e){this.question.setValueFromClick(e.target.value),this.setState({value:this.question.value})},t.prototype.renderItem=function(e,t){return St.Instance.createElement(this.question.itemComponent,{question:this.question,item:e,index:t,key:"value"+t,handleOnClick:this.handleOnClick,isDisplayMode:this.isDisplayMode})},t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.minRateDescription?this.renderLocString(this.question.locMinRateDescription):null,r=this.question.maxRateDescription?this.renderLocString(this.question.locMaxRateDescription):null;return w("div",{className:this.question.ratingRootCss,ref:function(t){return e.setControl(t)}},w("fieldset",{role:"radiogroup"},w("legend",{role:"presentation",className:"sv-hidden"}),this.question.hasMinLabel?w("span",{className:t.minText},n):null,this.question.renderedRateItems.map((function(t,n){return e.renderItem(t,n)})),this.question.hasMaxLabel?w("span",{className:t.maxText},r):null))},t}(jt);pn.Instance.registerQuestion("rating",(function(e){return w(ts,e)}));var ns=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),rs=function(e){function t(t){return e.call(this,t)||this}return ns(t,e),t.prototype.renderElement=function(){var e=this.question.cssClasses,t=this.renderSelect(e);return w("div",{className:this.question.cssClasses.rootDropdown},t)},t}(Or);pn.Instance.registerQuestion("sv-rating-dropdown",(function(e){return w(rs,e)})),kt.RendererFactory.Instance.registerRenderer("rating","dropdown","sv-rating-dropdown");var os=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ss=function(e){function t(t){return e.call(this,t)||this}return os(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses;return w("div",{id:this.question.inputId,className:t.root,ref:function(t){return e.setControl(t)}},this.question.formatedValue)},t}(jt);pn.Instance.registerQuestion("expression",(function(e){return w(ss,e)}));var is=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),as=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnExpanded=n.handleOnExpanded.bind(n),n}return is(t,e),t.prototype.getStateElements=function(){return[this.popup,this.popup.survey]},t.prototype.handleOnExpanded=function(e){this.popup.changeExpandCollapse()},t.prototype.canRender=function(){return e.prototype.canRender.call(this)&&this.popup.isShowing},t.prototype.renderElement=function(){var e=this,t=this.renderWindowHeader(),n=this.renderBody(),r={};return this.popup.renderedWidth&&(r.width=this.popup.renderedWidth,r.maxWidth=this.popup.renderedWidth),w("div",{className:this.popup.cssRoot,style:r,onScroll:function(){return e.popup.onScroll()}},w("div",{className:this.popup.cssRootContent},t,n))},t.prototype.renderWindowHeader=function(){var e,t=this.popup,n=(t.cssHeaderRoot,null),r=null,o=null;return t.isCollapsed?(" "+t.cssRootCollapsedMod,n=this.renderTitleCollapsed(t),e=this.renderExpandIcon()):e=this.renderCollapseIcon(),t.allowClose&&(r=this.renderCloseButton(this.popup)),t.allowFullScreen&&(o=this.renderAllowFullScreenButon(this.popup)),w("div",{className:t.cssHeaderRoot},n,w("div",{className:t.cssHeaderButtonsContainer},o,w("div",{className:t.cssHeaderCollapseButton,onClick:this.handleOnExpanded},e),r))},t.prototype.renderTitleCollapsed=function(e){return e.locTitle?w("div",{className:e.cssHeaderTitleCollapsed},e.locTitle.renderedHtml):null},t.prototype.renderExpandIcon=function(){return w(Wt,{iconName:"icon-restore_16x16",size:16})},t.prototype.renderCollapseIcon=function(){return w(Wt,{iconName:"icon-minimize_16x16",size:16})},t.prototype.renderCloseButton=function(e){var t=this;return w("div",{className:e.cssHeaderCloseButton,onClick:function(){e.hide(),"function"==typeof t.props.onClose&&t.props.onClose()}},w(Wt,{iconName:"icon-close_16x16",size:16}))},t.prototype.renderAllowFullScreenButon=function(e){var t;return t=e.isFullScreen?w(Wt,{iconName:"icon-back-to-panel_16x16",size:16}):w(Wt,{iconName:"icon-full-screen_16x16",size:16}),w("div",{className:e.cssHeaderFullScreenButton,onClick:function(){e.toggleFullScreen()}},t)},t.prototype.renderBody=function(){return w("div",{className:this.popup.cssBody},this.doRender())},t.prototype.createSurvey=function(t){t||(t={}),e.prototype.createSurvey.call(this,t),this.popup=new kt.PopupSurveyModel(null,this.survey),t.closeOnCompleteTimeout&&(this.popup.closeOnCompleteTimeout=t.closeOnCompleteTimeout),this.popup.allowClose=t.allowClose,this.popup.allowFullScreen=t.allowFullScreen,this.popup.isShowing=!0,this.popup.isExpanded||!t.expanded&&!t.isExpanded||this.popup.expand()},t}(Kn),us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return is(t,e),t}(as),cs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ls=function(e){function t(t){return e.call(this,t)||this}return cs(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this.question.cssClasses;return w("fieldset",{className:this.question.getSelectBaseRootCss()},w("legend",{className:"sv-hidden"},this.question.locTitle.renderedHtml),this.question.hasColumns?this.getColumns(e):this.getItems(e))},t.prototype.getColumns=function(e){var t=this;return this.question.columns.map((function(n,r){var o=n.map((function(n,r){return t.renderItem("item"+r,n,e)}));return w("div",{key:"column"+r+t.question.getItemsColumnKey(n),className:t.question.getColumnClass(),role:"presentation"},o)}))},t.prototype.getItems=function(e){for(var t=[],n=0;n<this.question.visibleChoices.length;n++){var r=this.question.visibleChoices[n],o="item"+n;t.push(this.renderItem(o,r,e))}return t},Object.defineProperty(t.prototype,"textStyle",{get:function(){return{marginLeft:"3px",display:"inline",position:"static"}},enumerable:!1,configurable:!0}),t.prototype.renderItem=function(e,t,n){var r=w(ps,{key:e,question:this.question,item:t,cssClasses:n}),o=this.question.survey,s=null;return o&&(s=Mt.wrapItemValue(o,r,this.question,t)),null!=s?s:r},t}(jt),ps=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnChange=n.handleOnChange.bind(n),n}return cs(t,e),t.prototype.getStateElement=function(){return this.item},t.prototype.componentDidMount=function(){e.prototype.componentDidMount.call(this),this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.item.locImageLink.onChanged=function(){}},t.prototype.componentDidUpdate=function(t,n){e.prototype.componentDidUpdate.call(this,t,n),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){var e=this;this.item.locImageLink.onChanged=function(){e.setState({locImageLinkchanged:e.state&&e.state.locImageLink?e.state.locImageLink+1:1})}},Object.defineProperty(t.prototype,"cssClasses",{get:function(){return this.props.cssClasses},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),t.prototype.handleOnChange=function(e){if(!this.question.isReadOnlyAttr){if(this.question.multiSelect)if(e.target.checked)this.question.value=this.question.value.concat(e.target.value);else{var t=this.question.value;t.splice(this.question.value.indexOf(e.target.value),1),this.question.value=t}else this.question.value=e.target.value;this.setState({value:this.question.value})}},t.prototype.renderElement=function(){var e=this,t=this.item,n=this.question,r=this.cssClasses,o=n.isItemSelected(t),s=n.getItemClass(t),i=null;n.showLabel&&(i=w("span",{className:n.cssClasses.itemText},t.text?Nt.renderLocString(t.locText):t.value));var a={objectFit:this.question.imageFit},u=null;if(t.locImageLink.renderedHtml&&"image"===this.question.contentMode&&(u=w("img",{className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,alt:t.locText.renderedHtml,style:a,onLoad:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),t.locImageLink.renderedHtml&&"video"===this.question.contentMode&&(u=w("video",{controls:!0,className:r.image,src:t.locImageLink.renderedHtml,width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,style:a,onLoadedMetadata:function(n){e.question.onContentLoaded(t,n.nativeEvent)},onError:function(e){t.onErrorHandler(t,e.nativeEvent)}})),!t.locImageLink.renderedHtml||t.contentNotLoaded){var c={width:this.question.renderedImageWidth,height:this.question.renderedImageHeight,objectFit:this.question.imageFit};u=w("div",{className:r.itemNoImage,style:c},r.itemNoImageSvgIcon?w(Wt,{className:r.itemNoImageSvgIcon,iconName:this.question.cssClasses.itemNoImageSvgIconId,size:48}):null)}return w("div",{className:s},w("label",{className:r.label},w("input",{className:r.itemControl,id:this.question.getItemId(t),type:this.question.inputType,name:this.question.questionName,checked:o,value:t.value,disabled:!this.question.getItemEnabled(t),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}),w("div",{className:this.question.cssClasses.itemDecorator},w("div",{className:this.question.cssClasses.imageContainer},this.question.cssClasses.checkedItemDecorator?w("span",{className:this.question.cssClasses.checkedItemDecorator},this.question.cssClasses.checkedItemSvgIconId?w(Wt,{size:"auto",className:this.question.cssClasses.checkedItemSvgIcon,iconName:this.question.cssClasses.checkedItemSvgIconId}):null):null,u),i)))},t}(Rt);pn.Instance.registerQuestion("imagepicker",(function(e){return w(ls,e)}));var hs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ds=function(e){function t(t){return e.call(this,t)||this}return hs(t,e),t.prototype.componentDidMount=function(){var t=this;e.prototype.componentDidMount.call(this),this.question.locImageLink.onChanged=function(){t.forceUpdate()}},t.prototype.componentWillUnmount=function(){e.prototype.componentWillUnmount.call(this),this.question.locImageLink.onChanged=function(){}},Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=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 r=null;"image"===this.question.renderedMode&&(r=w("img",{className:t,src:this.question.locImageLink.renderedHtml,alt:this.question.altText||this.question.title,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoad:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"video"===this.question.renderedMode&&(r=w("video",{controls:!0,className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n,onLoadedMetadata:function(t){e.question.onLoadHandler()},onError:function(t){e.question.onErrorHandler()}})),"youtube"===this.question.renderedMode&&(r=w("iframe",{className:t,src:this.question.locImageLink.renderedHtml,width:this.question.renderedWidth,height:this.question.renderedHeight,style:n}));var o=null;return this.question.imageLink&&!this.question.contentNotLoaded||(o=w("div",{className:this.question.cssClasses.noImage},w(Wt,{iconName:this.question.cssClasses.noImageSvgIconId,size:48}))),w("div",{className:this.question.cssClasses.root},r,o)},t}(jt);pn.Instance.registerQuestion("image",(function(e){return w(ds,e)}));var fs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ms=function(e){function t(t){var n=e.call(this,t)||this;return n.state={value:n.question.value},n}return fs(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.renderElement=function(){var e=this,t=this.question.cssClasses,n=this.question.showLoadingIndicator?this.renderLoadingIndicator():null,r=this.renderCleanButton();return w("div",{className:t.root,ref:function(t){return e.setControl(t)},style:{width:this.question.renderedCanvasWidth}},w("div",{className:t.placeholder,style:{display:this.question.needShowPlaceholder()?"":"none"}},this.renderLocString(this.question.locRenderedPlaceholder)),w("div",null,this.renderBackgroundImage(),w("canvas",{tabIndex:-1,className:this.question.cssClasses.canvas,onBlur:function(t){e.question.onBlur(t)}})),r,n)},t.prototype.renderBackgroundImage=function(){return this.question.backgroundImage?w("img",{className:this.question.cssClasses.backgroundImage,src:this.question.backgroundImage,style:{width:this.question.renderedCanvasWidth}}):null},t.prototype.renderLoadingIndicator=function(){return w("div",{className:this.question.cssClasses.loadingIndicator},w(Zr,null))},t.prototype.renderCleanButton=function(){var e=this;if(!this.question.canShowClearButton)return null;var t=this.question.cssClasses;return w("div",{className:t.controls},w("button",{type:"button",className:t.clearButton,title:this.question.clearButtonCaption,onClick:function(){return e.question.clearValue(!0)}},this.question.cssClasses.clearButtonIconId?w(Wt,{iconName:this.question.cssClasses.clearButtonIconId,size:"auto"}):w("span",null,"✖")))},t}(jt);pn.Instance.registerQuestion("signaturepad",(function(e){return w(ms,e)}));var vs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ys=function(e){function t(t){return e.call(this,t)||this}return vs(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.questionBase},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.question},t.prototype.renderElement=function(){var e=this.renderItems();return Lt.createElement("div",{className:this.question.cssClasses.root},e)},t.prototype.renderItems=function(){var e=this;return this.question.visibleChoices.map((function(t,n){return Lt.createElement(gs,{key:e.question.inputId+"_"+n,item:t,question:e.question,index:n})}))},t}(jt),gs=function(e){function t(t){return e.call(this,t)||this}return vs(t,e),Object.defineProperty(t.prototype,"index",{get:function(){return this.props.index},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.renderElement=function(){this.model=new kt.ButtonGroupItemModel(this.question,this.item,this.index);var e=this.renderIcon(),t=this.renderInput(),n=this.renderCaption();return Lt.createElement("label",{role:"radio",className:this.model.css.label,title:this.model.caption.renderedHtml},t,Lt.createElement("div",{className:this.model.css.decorator},e,n))},t.prototype.renderIcon=function(){return this.model.iconName?Lt.createElement(Wt,{className:this.model.css.icon,iconName:this.model.iconName,size:this.model.iconSize||24}):null},t.prototype.renderInput=function(){var e=this;return Lt.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(){e.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"})},t.prototype.renderCaption=function(){if(!this.model.showCaption)return null;var e=this.renderLocString(this.model.caption);return Lt.createElement("span",{className:this.model.css.caption,title:this.model.caption.renderedHtml},e)},t}(Nt),Cs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_s=function(e){function t(t){return e.call(this,t)||this}return Cs(t,e),t.prototype.getStateElements=function(){var t=e.prototype.getStateElements.call(this);return this.question.contentQuestion&&t.push(this.question.contentQuestion),t},t.prototype.renderElement=function(){return On.renderQuestionBody(this.creator,this.question.contentQuestion)},t}(Ht),ws=function(e){function t(t){return e.call(this,t)||this}return Cs(t,e),t.prototype.canRender=function(){return!!this.question.contentPanel},t.prototype.renderElement=function(){return w(tr,{element:this.question.contentPanel,creator:this.creator,survey:this.question.survey})},t}(Ht);pn.Instance.registerQuestion("custom",(function(e){return w(_s,e)})),pn.Instance.registerQuestion("composite",(function(e){return w(ws,e)}));var bs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return bs(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){if(!this.item)return null;var e=[],t=this.renderLocString(this.item.locTitle,void 0,"locString");if(this.item.iconName){var n=Lt.createElement(Wt,{key:"icon",className:this.model.cssClasses.itemIcon,iconName:this.item.iconName,size:this.item.iconSize,"aria-label":this.item.title});e.push(n),e.push(Lt.createElement("span",{key:"text"},t))}else e.push(t);if(this.item.markerIconName){n=Lt.createElement(Wt,{key:"marker",className:this.item.cssClasses.itemMarkerIcon,iconName:this.item.markerIconName,size:this.item.markerIconSize});e.push(n)}return Lt.createElement(Lt.Fragment,null,e)},t}(Nt);St.Instance.registerElement("sv-list-item-content",(function(e){return Lt.createElement(xs,e)}));var qs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Os=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return qs(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.item},t.prototype.render=function(){var e;if(!this.item)return null;var t=St.Instance.createElement("sv-list-item-content",{item:this.item,key:"content"+this.item.id,model:this.model});return Lt.createElement(Lt.Fragment,null,t,Lt.createElement(Gt,{model:null===(e=this.item)||void 0===e?void 0:e.popupModel}))},t}(Nt);St.Instance.registerElement("sv-list-item-group",(function(e){return Lt.createElement(Os,e)}));var Es=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ls=function(e){function t(t){return e.call(this,t)||this}return Es(t,e),Object.defineProperty(t.prototype,"survey",{get:function(){return this.props.data},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=[];return e.push(Lt.createElement("div",{key:"logo-image",className:this.survey.logoClassNames},Lt.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}}))),Lt.createElement(Lt.Fragment,null,e)},t}(Lt.Component);St.Instance.registerElement("sv-logo-image",(function(e){return Lt.createElement(Ls,e)}));var ks=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ss=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnRowRemoveClick=n.handleOnRowRemoveClick.bind(n),n}return ks(t,e),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnRowRemoveClick=function(e){this.question.removeRowUI(this.row)},t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locRemoveRowText);return Lt.createElement("button",{className:this.question.getRemoveRowButtonCss(),type:"button",onClick:this.handleOnRowRemoveClick,disabled:this.question.isInputReadOnly},e,Lt.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(Rt);St.Instance.registerElement("sv-matrix-remove-button",(function(e){return Lt.createElement(Ss,e)}));var Ms=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Is=function(e){function t(t){var n=e.call(this,t)||this;return n.handleOnShowHideClick=n.handleOnShowHideClick.bind(n),n}return Ms(t,e),t.prototype.getStateElement=function(){return this.props.item},Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"question",{get:function(){return this.props.item.data.question},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"row",{get:function(){return this.props.item.data.row},enumerable:!1,configurable:!0}),t.prototype.handleOnShowHideClick=function(e){this.row.showHideDetailPanelClick()},t.prototype.renderElement=function(){var e=this.row.isDetailPanelShowing,t=e,n=e?this.row.detailPanelId:void 0;return Lt.createElement("button",{type:"button",onClick:this.handleOnShowHideClick,className:this.question.getDetailPanelButtonCss(this.row),"aria-expanded":t,"aria-controls":n},Lt.createElement(Wt,{className:this.question.getDetailPanelIconCss(this.row),iconName:this.question.getDetailPanelIconId(this.row),size:"auto"}))},t}(Rt);St.Instance.registerElement("sv-matrix-detail-button",(function(e){return Lt.createElement(Is,e)}));var Ps=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ns=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleClick=function(e){t.question.removePanelUI(t.data.panel)},t}return Ps(t,e),t.prototype.renderElement=function(){var e=this.renderLocString(this.question.locPanelRemoveText),t=this.question.getPanelRemoveButtonId(this.data.panel);return Lt.createElement("button",{id:t,className:this.question.getPanelRemoveButtonCss(),onClick:this.handleClick,type:"button"},Lt.createElement("span",{className:this.question.cssClasses.buttonRemoveText},e),Lt.createElement("span",{className:this.question.cssClasses.iconRemove}))},t}(No);St.Instance.registerElement("sv-paneldynamic-remove-btn",(function(e){return Lt.createElement(Ns,e)}));var Rs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Rs(t,e),Object.defineProperty(t.prototype,"item",{get:function(){return this.props.item},enumerable:!1,configurable:!0}),t.prototype.canRender=function(){return this.item.isVisible},t.prototype.renderElement=function(){return Lt.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})},t}(Rt);St.Instance.registerElement("sv-nav-btn",(function(e){return Lt.createElement(js,e)}));var Hs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Bs=function(e){function t(t){var n=e.call(this,t)||this;return n.onChangedHandler=function(e,t){n.isRendering||n.setState({changed:n.state&&n.state.changed?n.state.changed+1:1})},n.rootRef=Lt.createRef(),n}return Hs(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.reactOnStrChanged()},t.prototype.componentWillUnmount=function(){this.locStr&&this.locStr.onStringChanged.remove(this.onChangedHandler)},t.prototype.componentDidUpdate=function(e,t){e.locStr&&e.locStr.onStringChanged.remove(this.onChangedHandler),this.reactOnStrChanged()},t.prototype.reactOnStrChanged=function(){this.locStr&&this.locStr.onStringChanged.add(this.onChangedHandler)},t.prototype.render=function(){if(!this.locStr)return null;this.isRendering=!0;var e=this.renderString();return this.isRendering=!1,e},t.prototype.renderString=function(){var e=this.locStr.allowLineBreaks?"sv-string-viewer sv-string-viewer--multiline":"sv-string-viewer";if(this.locStr.hasHtml){var t={__html:this.locStr.renderedHtml};return Lt.createElement("span",{ref:this.rootRef,className:e,style:this.style,dangerouslySetInnerHTML:t})}return Lt.createElement("span",{ref:this.rootRef,className:e,style:this.style},this.locStr.renderedHtml)},t}(Lt.Component);St.Instance.registerElement(kt.LocalizableString.defaultRenderer,(function(e){return Lt.createElement(Bs,e)}));var Ts=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ds=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Ts(t,e),t.prototype.render=function(){return Lt.createElement("div",null,Lt.createElement("span",{className:this.props.cssClasses.error.icon||void 0,"aria-hidden":"true"}),Lt.createElement("span",{className:this.props.cssClasses.error.item||void 0},Lt.createElement(Bs,{locStr:this.props.error.locText})))},t}(Lt.Component);St.Instance.registerElement("sv-question-error",(function(e){return Lt.createElement(Ds,e)}));var Vs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Zs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Vs(t,e),t.prototype.render=function(){var e,t;return Lt.createElement("div",{className:"sv-skeleton-element",id:null===(e=this.props.element)||void 0===e?void 0:e.id,style:{height:null===(t=this.props.element)||void 0===t?void 0:t.skeletonHeight}})},t}(Lt.Component);St.Instance.registerElement("sv-skeleton",(function(e){return Lt.createElement(Zs,e)}));var As=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return As(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),t=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return St.Instance.createElement(e,{data:t})},t.prototype.render=function(){return Lt.createElement("div",{className:"sv-header--mobile"},this.model.survey.hasLogo?Lt.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.survey.hasTitle?Lt.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},Lt.createElement(ln,{element:this.model.survey})):null,this.model.survey.renderedHasDescription?Lt.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},Lt.createElement("div",{className:this.model.survey.css.description},Nt.renderLocString(this.model.survey.locDescription))):null)},t}(Lt.Component),Ws=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return As(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.renderLogoImage=function(){var e=this.model.survey.getElementWrapperComponentName(this.model.survey,"logo-image"),t=this.model.survey.getElementWrapperComponentData(this.model.survey,"logo-image");return St.Instance.createElement(e,{data:t})},t.prototype.render=function(){return Lt.createElement("div",{className:this.model.css,style:this.model.style},Lt.createElement("div",{className:"sv-header__cell-content",style:this.model.contentStyle},this.model.showLogo?Lt.createElement("div",{className:"sv-header__logo"},this.renderLogoImage()):null,this.model.showTitle?Lt.createElement("div",{className:"sv-header__title",style:{maxWidth:this.model.textAreaWidth}},Lt.createElement(ln,{element:this.model.survey})):null,this.model.showDescription?Lt.createElement("div",{className:"sv-header__description",style:{maxWidth:this.model.textAreaWidth}},Lt.createElement("div",{className:this.model.survey.css.description},Nt.renderLocString(this.model.survey.locDescription))):null))},t}(Lt.Component),Fs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return As(t,e),Object.defineProperty(t.prototype,"model",{get:function(){return this.props.model},enumerable:!1,configurable:!0}),t.prototype.getStateElement=function(){return this.model},t.prototype.renderElement=function(){if(this.model.survey=this.props.survey,"advanced"!==this.props.survey.headerView)return null;var e=null;return e=this.props.survey.isMobile?Lt.createElement(Us,{model:this.model}):Lt.createElement("div",{className:this.model.contentClasses,style:{maxWidth:this.model.maxWidth}},this.model.cells.map((function(e,t){return Lt.createElement(Ws,{key:t,model:e})}))),Lt.createElement("div",{className:this.model.headerClasses,style:{height:this.model.renderedHeight}},this.model.backgroundImage?Lt.createElement("div",{style:this.model.backgroundImageStyle,className:this.model.backgroundImageClasses}):null,e)},t}(Nt);St.Instance.registerElement("sv-header",(function(e){return Lt.createElement(Fs,e)}));var Qs=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zs=function(e){function t(t){var n=e.call(this,t)||this;return n.onInput=function(e){n.locStr.text=e.target.innerText},n.onClick=function(e){e.preventDefault(),e.stopPropagation()},n.state={changed:0},n}return Qs(t,e),Object.defineProperty(t.prototype,"locStr",{get:function(){return this.props.locStr},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"style",{get:function(){return this.props.style},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){if(this.locStr){var e=this;this.locStr.onChanged=function(){e.setState({changed:e.state.changed+1})}}},t.prototype.componentWillUnmount=function(){this.locStr&&(this.locStr.onChanged=function(){})},t.prototype.render=function(){if(!this.locStr)return null;if(this.locStr.hasHtml){var e={__html:this.locStr.renderedHtml};return Lt.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,dangerouslySetInnerHTML:e,onBlur:this.onInput,onClick:this.onClick})}return Lt.createElement("span",{className:"sv-string-editor",contentEditable:"true",suppressContentEditableWarning:!0,style:this.style,onBlur:this.onInput,onClick:this.onClick},this.locStr.renderedHtml)},t}(Lt.Component);St.Instance.registerElement(kt.LocalizableString.editableRenderer,(function(e){return Lt.createElement(zs,e)}));var Ks=function(){return(Ks=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function $s(e,t,n){void 0===n&&(n={}),rt(w(Kn,Ks({model:e},n)),t)}function Js(e,t,n){void 0===n&&(n={}),rt(w(as,Ks({model:e},n)),t)}function Gs(e){return this.each((function(){Js(e.model,this,e)}))}var Ys=globalThis;"undefined"==typeof globalThis&&(Ys=window);var Xs=Ys.jQuery||Ys.$;if(void 0!==Xs)ei(Xs);else try{ei(Xs=n(3))}catch(e){}function ei(e){e.fn.extend({Survey:function(e){return this.each((function(){$s(e.model,this,e)}))},PopupSurvey:Gs,SurveyWindow:Gs})}kt.SurveyModel.platform="js-ui",kt.SurveyModel.prototype.render=function(e){void 0===e&&(e=null),this.renderCallback?this.renderCallback():$s(this,e)};var ti=r;Object(kt.checkLibraryVersion)("1.12.13","survey-js-ui")}])}));
|