survey-js-ui 1.12.5 → 1.12.7
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/package.json +2 -2
- package/survey-js-ui.js +328 -302
- package/survey-js-ui.js.map +1 -1
- package/survey-js-ui.min.js +2 -2
- package/typings/packages/survey-react-ui/src/components/action-bar/action-bar-item-dropdown.d.ts +1 -0
- package/typings/packages/survey-react-ui/src/components/popup/popup.d.ts +1 -0
- package/typings/packages/survey-react-ui/src/components/text-area.d.ts +0 -1
- package/typings/packages/survey-react-ui/src/dropdown-item.d.ts +1 -0
package/survey-js-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.12.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.12.7
|
|
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
|
*/
|
|
@@ -119,43 +119,43 @@ __webpack_require__.d(__webpack_exports__, "useId", function() { return /* reexp
|
|
|
119
119
|
__webpack_require__.d(__webpack_exports__, "useReducer", function() { return /* reexport */ hooks_module_p; });
|
|
120
120
|
__webpack_require__.d(__webpack_exports__, "useEffect", function() { return /* reexport */ hooks_module_y; });
|
|
121
121
|
__webpack_require__.d(__webpack_exports__, "useLayoutEffect", function() { return /* reexport */ hooks_module_; });
|
|
122
|
-
__webpack_require__.d(__webpack_exports__, "useInsertionEffect", function() { return /* reexport */
|
|
123
|
-
__webpack_require__.d(__webpack_exports__, "useTransition", function() { return /* reexport */
|
|
124
|
-
__webpack_require__.d(__webpack_exports__, "useDeferredValue", function() { return /* reexport */
|
|
125
|
-
__webpack_require__.d(__webpack_exports__, "useSyncExternalStore", function() { return /* reexport */
|
|
126
|
-
__webpack_require__.d(__webpack_exports__, "startTransition", function() { return /* reexport */
|
|
122
|
+
__webpack_require__.d(__webpack_exports__, "useInsertionEffect", function() { return /* reexport */ Sn; });
|
|
123
|
+
__webpack_require__.d(__webpack_exports__, "useTransition", function() { return /* reexport */ bn; });
|
|
124
|
+
__webpack_require__.d(__webpack_exports__, "useDeferredValue", function() { return /* reexport */ _n; });
|
|
125
|
+
__webpack_require__.d(__webpack_exports__, "useSyncExternalStore", function() { return /* reexport */ En; });
|
|
126
|
+
__webpack_require__.d(__webpack_exports__, "startTransition", function() { return /* reexport */ yn; });
|
|
127
127
|
__webpack_require__.d(__webpack_exports__, "useRef", function() { return /* reexport */ hooks_module_A; });
|
|
128
128
|
__webpack_require__.d(__webpack_exports__, "useImperativeHandle", function() { return /* reexport */ hooks_module_F; });
|
|
129
129
|
__webpack_require__.d(__webpack_exports__, "useMemo", function() { return /* reexport */ hooks_module_T; });
|
|
130
130
|
__webpack_require__.d(__webpack_exports__, "useCallback", function() { return /* reexport */ hooks_module_q; });
|
|
131
131
|
__webpack_require__.d(__webpack_exports__, "useContext", function() { return /* reexport */ hooks_module_x; });
|
|
132
132
|
__webpack_require__.d(__webpack_exports__, "useDebugValue", function() { return /* reexport */ hooks_module_P; });
|
|
133
|
-
__webpack_require__.d(__webpack_exports__, "version", function() { return /* reexport */
|
|
134
|
-
__webpack_require__.d(__webpack_exports__, "Children", function() { return /* reexport */
|
|
135
|
-
__webpack_require__.d(__webpack_exports__, "render", function() { return /* reexport */
|
|
136
|
-
__webpack_require__.d(__webpack_exports__, "hydrate", function() { return /* reexport */
|
|
137
|
-
__webpack_require__.d(__webpack_exports__, "unmountComponentAtNode", function() { return /* reexport */
|
|
138
|
-
__webpack_require__.d(__webpack_exports__, "createPortal", function() { return /* reexport */
|
|
133
|
+
__webpack_require__.d(__webpack_exports__, "version", function() { return /* reexport */ on; });
|
|
134
|
+
__webpack_require__.d(__webpack_exports__, "Children", function() { return /* reexport */ compat_module_I; });
|
|
135
|
+
__webpack_require__.d(__webpack_exports__, "render", function() { return /* reexport */ compat_module_$; });
|
|
136
|
+
__webpack_require__.d(__webpack_exports__, "hydrate", function() { return /* reexport */ compat_module_q; });
|
|
137
|
+
__webpack_require__.d(__webpack_exports__, "unmountComponentAtNode", function() { return /* reexport */ hn; });
|
|
138
|
+
__webpack_require__.d(__webpack_exports__, "createPortal", function() { return /* reexport */ compat_module_P; });
|
|
139
139
|
__webpack_require__.d(__webpack_exports__, "createElement", function() { return /* reexport */ preact_module_; });
|
|
140
140
|
__webpack_require__.d(__webpack_exports__, "createContext", function() { return /* reexport */ G; });
|
|
141
|
-
__webpack_require__.d(__webpack_exports__, "createFactory", function() { return /* reexport */
|
|
142
|
-
__webpack_require__.d(__webpack_exports__, "cloneElement", function() { return /* reexport */
|
|
141
|
+
__webpack_require__.d(__webpack_exports__, "createFactory", function() { return /* reexport */ cn; });
|
|
142
|
+
__webpack_require__.d(__webpack_exports__, "cloneElement", function() { return /* reexport */ sn; });
|
|
143
143
|
__webpack_require__.d(__webpack_exports__, "createRef", function() { return /* reexport */ m; });
|
|
144
144
|
__webpack_require__.d(__webpack_exports__, "Fragment", function() { return /* reexport */ b; });
|
|
145
145
|
__webpack_require__.d(__webpack_exports__, "isValidElement", function() { return /* reexport */ fn; });
|
|
146
|
-
__webpack_require__.d(__webpack_exports__, "isFragment", function() { return /* reexport */
|
|
147
|
-
__webpack_require__.d(__webpack_exports__, "isMemo", function() { return /* reexport */
|
|
148
|
-
__webpack_require__.d(__webpack_exports__, "findDOMNode", function() { return /* reexport */
|
|
146
|
+
__webpack_require__.d(__webpack_exports__, "isFragment", function() { return /* reexport */ ln; });
|
|
147
|
+
__webpack_require__.d(__webpack_exports__, "isMemo", function() { return /* reexport */ an; });
|
|
148
|
+
__webpack_require__.d(__webpack_exports__, "findDOMNode", function() { return /* reexport */ vn; });
|
|
149
149
|
__webpack_require__.d(__webpack_exports__, "Component", function() { return /* reexport */ k; });
|
|
150
|
-
__webpack_require__.d(__webpack_exports__, "PureComponent", function() { return /* reexport */
|
|
151
|
-
__webpack_require__.d(__webpack_exports__, "memo", function() { return /* reexport */
|
|
152
|
-
__webpack_require__.d(__webpack_exports__, "forwardRef", function() { return /* reexport */
|
|
153
|
-
__webpack_require__.d(__webpack_exports__, "flushSync", function() { return /* reexport */
|
|
154
|
-
__webpack_require__.d(__webpack_exports__, "unstable_batchedUpdates", function() { return /* reexport */
|
|
155
|
-
__webpack_require__.d(__webpack_exports__, "StrictMode", function() { return /* reexport */
|
|
156
|
-
__webpack_require__.d(__webpack_exports__, "Suspense", function() { return /* reexport */
|
|
157
|
-
__webpack_require__.d(__webpack_exports__, "SuspenseList", function() { return /* reexport */
|
|
158
|
-
__webpack_require__.d(__webpack_exports__, "lazy", function() { return /* reexport */
|
|
150
|
+
__webpack_require__.d(__webpack_exports__, "PureComponent", function() { return /* reexport */ compat_module_E; });
|
|
151
|
+
__webpack_require__.d(__webpack_exports__, "memo", function() { return /* reexport */ compat_module_C; });
|
|
152
|
+
__webpack_require__.d(__webpack_exports__, "forwardRef", function() { return /* reexport */ compat_module_w; });
|
|
153
|
+
__webpack_require__.d(__webpack_exports__, "flushSync", function() { return /* reexport */ pn; });
|
|
154
|
+
__webpack_require__.d(__webpack_exports__, "unstable_batchedUpdates", function() { return /* reexport */ dn; });
|
|
155
|
+
__webpack_require__.d(__webpack_exports__, "StrictMode", function() { return /* reexport */ mn; });
|
|
156
|
+
__webpack_require__.d(__webpack_exports__, "Suspense", function() { return /* reexport */ compat_module_D; });
|
|
157
|
+
__webpack_require__.d(__webpack_exports__, "SuspenseList", function() { return /* reexport */ compat_module_F; });
|
|
158
|
+
__webpack_require__.d(__webpack_exports__, "lazy", function() { return /* reexport */ compat_module_O; });
|
|
159
159
|
__webpack_require__.d(__webpack_exports__, "renderSurvey", function() { return /* binding */ renderSurvey; });
|
|
160
160
|
__webpack_require__.d(__webpack_exports__, "renderPopupSurvey", function() { return /* binding */ renderPopupSurvey; });
|
|
161
161
|
__webpack_require__.d(__webpack_exports__, "preact", function() { return /* binding */ preact; });
|
|
@@ -288,46 +288,46 @@ __webpack_require__.d(compat_module_namespaceObject, "useMemo", function() { ret
|
|
|
288
288
|
__webpack_require__.d(compat_module_namespaceObject, "useReducer", function() { return hooks_module_p; });
|
|
289
289
|
__webpack_require__.d(compat_module_namespaceObject, "useRef", function() { return hooks_module_A; });
|
|
290
290
|
__webpack_require__.d(compat_module_namespaceObject, "useState", function() { return hooks_module_h; });
|
|
291
|
-
__webpack_require__.d(compat_module_namespaceObject, "Children", function() { return
|
|
292
|
-
__webpack_require__.d(compat_module_namespaceObject, "PureComponent", function() { return
|
|
293
|
-
__webpack_require__.d(compat_module_namespaceObject, "StrictMode", function() { return
|
|
294
|
-
__webpack_require__.d(compat_module_namespaceObject, "Suspense", function() { return
|
|
295
|
-
__webpack_require__.d(compat_module_namespaceObject, "SuspenseList", function() { return
|
|
296
|
-
__webpack_require__.d(compat_module_namespaceObject, "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED", function() { return
|
|
297
|
-
__webpack_require__.d(compat_module_namespaceObject, "cloneElement", function() { return
|
|
298
|
-
__webpack_require__.d(compat_module_namespaceObject, "createFactory", function() { return
|
|
299
|
-
__webpack_require__.d(compat_module_namespaceObject, "createPortal", function() { return
|
|
300
|
-
__webpack_require__.d(compat_module_namespaceObject, "default", function() { return
|
|
301
|
-
__webpack_require__.d(compat_module_namespaceObject, "findDOMNode", function() { return
|
|
302
|
-
__webpack_require__.d(compat_module_namespaceObject, "flushSync", function() { return
|
|
303
|
-
__webpack_require__.d(compat_module_namespaceObject, "forwardRef", function() { return
|
|
304
|
-
__webpack_require__.d(compat_module_namespaceObject, "hydrate", function() { return
|
|
305
|
-
__webpack_require__.d(compat_module_namespaceObject, "isElement", function() { return
|
|
306
|
-
__webpack_require__.d(compat_module_namespaceObject, "isFragment", function() { return
|
|
307
|
-
__webpack_require__.d(compat_module_namespaceObject, "isMemo", function() { return
|
|
291
|
+
__webpack_require__.d(compat_module_namespaceObject, "Children", function() { return compat_module_I; });
|
|
292
|
+
__webpack_require__.d(compat_module_namespaceObject, "PureComponent", function() { return compat_module_E; });
|
|
293
|
+
__webpack_require__.d(compat_module_namespaceObject, "StrictMode", function() { return mn; });
|
|
294
|
+
__webpack_require__.d(compat_module_namespaceObject, "Suspense", function() { return compat_module_D; });
|
|
295
|
+
__webpack_require__.d(compat_module_namespaceObject, "SuspenseList", function() { return compat_module_F; });
|
|
296
|
+
__webpack_require__.d(compat_module_namespaceObject, "__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED", function() { return un; });
|
|
297
|
+
__webpack_require__.d(compat_module_namespaceObject, "cloneElement", function() { return sn; });
|
|
298
|
+
__webpack_require__.d(compat_module_namespaceObject, "createFactory", function() { return cn; });
|
|
299
|
+
__webpack_require__.d(compat_module_namespaceObject, "createPortal", function() { return compat_module_P; });
|
|
300
|
+
__webpack_require__.d(compat_module_namespaceObject, "default", function() { return xn; });
|
|
301
|
+
__webpack_require__.d(compat_module_namespaceObject, "findDOMNode", function() { return vn; });
|
|
302
|
+
__webpack_require__.d(compat_module_namespaceObject, "flushSync", function() { return pn; });
|
|
303
|
+
__webpack_require__.d(compat_module_namespaceObject, "forwardRef", function() { return compat_module_w; });
|
|
304
|
+
__webpack_require__.d(compat_module_namespaceObject, "hydrate", function() { return compat_module_q; });
|
|
305
|
+
__webpack_require__.d(compat_module_namespaceObject, "isElement", function() { return gn; });
|
|
306
|
+
__webpack_require__.d(compat_module_namespaceObject, "isFragment", function() { return ln; });
|
|
307
|
+
__webpack_require__.d(compat_module_namespaceObject, "isMemo", function() { return an; });
|
|
308
308
|
__webpack_require__.d(compat_module_namespaceObject, "isValidElement", function() { return fn; });
|
|
309
|
-
__webpack_require__.d(compat_module_namespaceObject, "lazy", function() { return
|
|
310
|
-
__webpack_require__.d(compat_module_namespaceObject, "memo", function() { return
|
|
311
|
-
__webpack_require__.d(compat_module_namespaceObject, "render", function() { return
|
|
312
|
-
__webpack_require__.d(compat_module_namespaceObject, "startTransition", function() { return
|
|
313
|
-
__webpack_require__.d(compat_module_namespaceObject, "unmountComponentAtNode", function() { return
|
|
314
|
-
__webpack_require__.d(compat_module_namespaceObject, "unstable_batchedUpdates", function() { return
|
|
315
|
-
__webpack_require__.d(compat_module_namespaceObject, "useDeferredValue", function() { return
|
|
316
|
-
__webpack_require__.d(compat_module_namespaceObject, "useInsertionEffect", function() { return
|
|
317
|
-
__webpack_require__.d(compat_module_namespaceObject, "useSyncExternalStore", function() { return
|
|
318
|
-
__webpack_require__.d(compat_module_namespaceObject, "useTransition", function() { return
|
|
319
|
-
__webpack_require__.d(compat_module_namespaceObject, "version", function() { return
|
|
309
|
+
__webpack_require__.d(compat_module_namespaceObject, "lazy", function() { return compat_module_O; });
|
|
310
|
+
__webpack_require__.d(compat_module_namespaceObject, "memo", function() { return compat_module_C; });
|
|
311
|
+
__webpack_require__.d(compat_module_namespaceObject, "render", function() { return compat_module_$; });
|
|
312
|
+
__webpack_require__.d(compat_module_namespaceObject, "startTransition", function() { return yn; });
|
|
313
|
+
__webpack_require__.d(compat_module_namespaceObject, "unmountComponentAtNode", function() { return hn; });
|
|
314
|
+
__webpack_require__.d(compat_module_namespaceObject, "unstable_batchedUpdates", function() { return dn; });
|
|
315
|
+
__webpack_require__.d(compat_module_namespaceObject, "useDeferredValue", function() { return _n; });
|
|
316
|
+
__webpack_require__.d(compat_module_namespaceObject, "useInsertionEffect", function() { return Sn; });
|
|
317
|
+
__webpack_require__.d(compat_module_namespaceObject, "useSyncExternalStore", function() { return En; });
|
|
318
|
+
__webpack_require__.d(compat_module_namespaceObject, "useTransition", function() { return bn; });
|
|
319
|
+
__webpack_require__.d(compat_module_namespaceObject, "version", function() { return on; });
|
|
320
320
|
|
|
321
321
|
// CONCATENATED MODULE: ./node_modules/preact/dist/preact.module.js
|
|
322
|
-
var preact_module_n,preact_module_l,preact_module_u,preact_module_t,preact_module_i,preact_module_o,preact_module_r,f,preact_module_e,preact_module_c,s,a,h={},v=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function w(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function preact_module_(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?preact_module_n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++preact_module_u:r,__i:-1,__u:0};return null==r&&null!=preact_module_l.vnode&&preact_module_l.vnode(f),f}function m(){return{current:null}}function b(n){return n.children}function k(n,l){this.props=n,this.context=l}function x(n,l){if(null==l)return n.__?x(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?x(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function M(n){(!n.__d&&(n.__d=!0)&&preact_module_i.push(n)&&!P.__r++||preact_module_o!==preact_module_l.debounceRendering)&&((preact_module_o=preact_module_l.debounceRendering)||preact_module_r)(P)}function P(){var n,u,t,o,r,e,c,s;for(preact_module_i.sort(f);n=preact_module_i.shift();)n.__d&&(u=preact_module_i.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d({},r)).__v=r.__v+1,preact_module_l.vnode&&preact_module_l.vnode(o),O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j(c,o,s),o.__e!=e&&C(o)),preact_module_i.length>u&&preact_module_i.sort(f));P.__r=0}function S(n,l,u,t,i,o,r,f,e,c,s){var a,p,y,d,w,_=t&&t.__k||v,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&(p=-1===y.__i?h:_[y.__i]||h,y.__i=a,O(n,y,p,i,o,r,f,e,c,s),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&N(p.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||p.__k===y.__k?e=I(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)null!=(i=l[t])&&"boolean"!=typeof i&&"function"!=typeof i?(r=t+a,(i=n.__k[t]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g(null,i,null,null,null):y(i)?g(b,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=n,i.__b=n.__b+1,o=null,-1!==(f=i.__i=L(i,u,r,s))&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f==r-1?a--:f==r+1?a++:(f>r?a--:a++,i.__u|=65536))):i=n.__k[t]=null;if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o))}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=x(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(y(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++}}return-1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||p.test(l)?u:u+"px"}function A(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=preact_module_e,n.addEventListener(l,o?s:preact_module_c,o)):n.removeEventListener(l,o?s:preact_module_c,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=preact_module_e++;else if(u.t<t.u)return;return t(preact_module_l.event?preact_module_l.event(u):u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,v,p,w,_,g,m,x,C,M,P,$,I,H,L,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=preact_module_l.__b)&&a(u);n:if("function"==typeof T)try{if(m=u.props,x="prototype"in T&&T.prototype.render,C=(a=T.contextType)&&i[a.__c],M=a?C?C.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(m,M):(u.__c=h=new k(m,M),h.constructor=T,h.render=q),C&&C.sub(h),h.props=m,h.state||(h.state={}),h.context=M,h.__n=i,v=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,T.getDerivedStateFromProps(m,h.__s))),p=h.props,w=h.state,h.__v=u,v)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(x&&null==T.getDerivedStateFromProps&&m!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,M),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,M)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),P=0;P<h._sb.length;P++)h.__h.push(h._sb[P]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,M),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(p,w,_)})}if(h.context=M,h.props=m,h.__P=n,h.__e=!1,$=preact_module_l.__r,I=0,x){for(h.state=h.__s,h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),x&&!v&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(p,w)),S(n,y(L=null!=a&&a.type===b&&null==a.key?a.props.children:a)?L:[L],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r){for(u.__u|=c?160:32;e&&8===e.nodeType&&e.nextSibling;)e=e.nextSibling;r[r.indexOf(e)]=null,u.__e=e}else u.__e=t.__e,u.__k=t.__k;preact_module_l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,r,f,c,s);(a=preact_module_l.diffed)&&a(u)}function j(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);preact_module_l.__c&&preact_module_l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){preact_module_l.__e(n,u.__v)}})}function z(u,t,i,o,r,f,e,c,s){var a,v,p,d,_,g,m,b=i.props,k=t.props,C=t.type;if("svg"===C?r="http://www.w3.org/2000/svg":"math"===C?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=f)for(a=0;a<f.length;a++)if((_=f[a])&&"setAttribute"in _==!!C&&(C?_.localName===C:3===_.nodeType)){u=_,f[a]=null;break}if(null==u){if(null===C)return document.createTextNode(k);u=document.createElementNS(r,C,k.is&&k),c&&(preact_module_l.__m&&preact_module_l.__m(t,f),c=!1),f=null}if(null===C)b===k||c&&u.data===k||(u.data=k);else{if(f=f&&preact_module_n.call(u.childNodes),b=i.props||h,!c&&null!=f)for(b={},a=0;a<u.attributes.length;a++)b[(_=u.attributes[a]).name]=_.value;for(a in b)if(_=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=_;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;A(u,a,null,_,r)}for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?m=_:c&&"function"!=typeof _||b[a]===_||A(u,a,_,b[a],r);if(v)c||p&&(v.__html===p.__html||v.__html===u.innerHTML)||(u.innerHTML=v.__html),t.__k=[];else if(p&&(u.innerHTML=""),S(u,y(d)?d:[d],t,i,o,"foreignObject"===C?"http://www.w3.org/1999/xhtml":r,f,e,f?f[0]:i.__k&&x(i,0),c,s),null!=f)for(a=f.length;a--;)w(f[a]);c||(a="value","progress"===C&&null==g?u.removeAttribute("value"):void 0!==g&&(g!==u[a]||"progress"===C&&!g||"option"===C&&g!==b[a])&&A(u,a,g,b[a],r),a="checked",void 0!==m&&m!==u[a]&&A(u,a,m,b[a],r))}return u}function N(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){preact_module_l.__e(n,t)}}function V(n,u,t){var i,o;if(preact_module_l.unmount&&preact_module_l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){preact_module_l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V(i[o],u,t||"function"!=typeof n.type);t||w(n.__e),n.__c=n.__=n.__e=n.__d=void 0}function q(n,l,u){return this.constructor(n,u)}function B(u,t,i){var o,r,f,e;preact_module_l.__&&preact_module_l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=preact_module_(b,null,[u]),r||h,h,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?preact_module_n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j(f,u,e)}function D(n,l){B(n,l,D)}function E(l,u,t){var i,o,r,f,e=d({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?preact_module_n.call(arguments,2):t),g(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l="__cC"+a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=[],(t={})[l]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.some(function(n){n.__e=!0,M(n)})},this.sub=function(n){u.push(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.splice(u.indexOf(n),1),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}preact_module_n=v.slice,preact_module_l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},preact_module_u=0,preact_module_t=function(n){return null!=n&&null==n.constructor},k.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),M(this))},k.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),M(this))},k.prototype.render=b,preact_module_i=[],preact_module_r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(n,l){return n.__v.__b-l.__v.__b},P.__r=0,preact_module_e=0,preact_module_c=F(!1),s=F(!0),a=0;
|
|
322
|
+
var preact_module_n,l,preact_module_u,preact_module_t,preact_module_i,preact_module_o,preact_module_r,preact_module_f,preact_module_e,preact_module_c,s,a,h={},v=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function d(n,l){for(var u in l)n[u]=l[u];return n}function w(n){n&&n.parentNode&&n.parentNode.removeChild(n)}function preact_module_(l,u,t){var i,o,r,f={};for(r in u)"key"==r?i=u[r]:"ref"==r?o=u[r]:f[r]=u[r];if(arguments.length>2&&(f.children=arguments.length>3?preact_module_n.call(arguments,2):t),"function"==typeof l&&null!=l.defaultProps)for(r in l.defaultProps)void 0===f[r]&&(f[r]=l.defaultProps[r]);return g(l,f,i,o,null)}function g(n,t,i,o,r){var f={type:n,props:t,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==r?++preact_module_u:r,__i:-1,__u:0};return null==r&&null!=l.vnode&&l.vnode(f),f}function m(){return{current:null}}function b(n){return n.children}function k(n,l){this.props=n,this.context=l}function x(n,l){if(null==l)return n.__?x(n.__,n.__i+1):null;for(var u;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e)return u.__e;return"function"==typeof n.type?x(n):null}function C(n){var l,u;if(null!=(n=n.__)&&null!=n.__c){for(n.__e=n.__c.base=null,l=0;l<n.__k.length;l++)if(null!=(u=n.__k[l])&&null!=u.__e){n.__e=n.__c.base=u.__e;break}return C(n)}}function S(n){(!n.__d&&(n.__d=!0)&&preact_module_i.push(n)&&!M.__r++||preact_module_o!==l.debounceRendering)&&((preact_module_o=l.debounceRendering)||preact_module_r)(M)}function M(){var n,u,t,o,r,e,c,s;for(preact_module_i.sort(preact_module_f);n=preact_module_i.shift();)n.__d&&(u=preact_module_i.length,o=void 0,e=(r=(t=n).__v).__e,c=[],s=[],t.__P&&((o=d({},r)).__v=r.__v+1,l.vnode&&l.vnode(o),O(t.__P,o,r,t.__n,t.__P.namespaceURI,32&r.__u?[e]:null,c,null==e?x(r):e,!!(32&r.__u),s),o.__v=r.__v,o.__.__k[o.__i]=o,j(c,o,s),o.__e!=e&&C(o)),preact_module_i.length>u&&preact_module_i.sort(preact_module_f));M.__r=0}function P(n,l,u,t,i,o,r,f,e,c,s){var a,p,y,d,w,_=t&&t.__k||v,g=l.length;for(u.__d=e,$(u,l,_),e=u.__d,a=0;a<g;a++)null!=(y=u.__k[a])&&(p=-1===y.__i?h:_[y.__i]||h,y.__i=a,O(n,y,p,i,o,r,f,e,c,s),d=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&N(p.ref,null,y),s.push(y.ref,y.__c||d,y)),null==w&&null!=d&&(w=d),65536&y.__u||p.__k===y.__k?e=I(y,e,n):"function"==typeof y.type&&void 0!==y.__d?e=y.__d:d&&(e=d.nextSibling),y.__d=void 0,y.__u&=-196609);u.__d=e,u.__e=w}function $(n,l,u){var t,i,o,r,f,e=l.length,c=u.length,s=c,a=0;for(n.__k=[],t=0;t<e;t++)null!=(i=l[t])&&"boolean"!=typeof i&&"function"!=typeof i?(r=t+a,(i=n.__k[t]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?g(null,i,null,null,null):y(i)?g(b,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?g(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=n,i.__b=n.__b+1,o=null,-1!==(f=i.__i=L(i,u,r,s))&&(s--,(o=u[f])&&(o.__u|=131072)),null==o||null===o.__v?(-1==f&&a--,"function"!=typeof i.type&&(i.__u|=65536)):f!==r&&(f==r-1?a--:f==r+1?a++:(f>r?a--:a++,i.__u|=65536))):i=n.__k[t]=null;if(s)for(t=0;t<c;t++)null!=(o=u[t])&&0==(131072&o.__u)&&(o.__e==n.__d&&(n.__d=x(o)),V(o,o))}function I(n,l,u){var t,i;if("function"==typeof n.type){for(t=n.__k,i=0;t&&i<t.length;i++)t[i]&&(t[i].__=n,l=I(t[i],l,u));return l}n.__e!=l&&(l&&n.type&&!u.contains(l)&&(l=x(n)),u.insertBefore(n.__e,l||null),l=n.__e);do{l=l&&l.nextSibling}while(null!=l&&8===l.nodeType);return l}function H(n,l){return l=l||[],null==n||"boolean"==typeof n||(y(n)?n.some(function(n){H(n,l)}):l.push(n)),l}function L(n,l,u,t){var i=n.key,o=n.type,r=u-1,f=u+1,e=l[u];if(null===e||e&&i==e.key&&o===e.type&&0==(131072&e.__u))return u;if(t>(null!=e&&0==(131072&e.__u)?1:0))for(;r>=0||f<l.length;){if(r>=0){if((e=l[r])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return r;r--}if(f<l.length){if((e=l[f])&&0==(131072&e.__u)&&i==e.key&&o===e.type)return f;f++}}return-1}function T(n,l,u){"-"===l[0]?n.setProperty(l,null==u?"":u):n[l]=null==u?"":"number"!=typeof u||p.test(l)?u:u+"px"}function A(n,l,u,t,i){var o;n:if("style"===l)if("string"==typeof u)n.style.cssText=u;else{if("string"==typeof t&&(n.style.cssText=t=""),t)for(l in t)u&&l in u||T(n.style,l,"");if(u)for(l in u)t&&u[l]===t[l]||T(n.style,l,u[l])}else if("o"===l[0]&&"n"===l[1])o=l!==(l=l.replace(/(PointerCapture)$|Capture$/i,"$1")),l=l.toLowerCase()in n||"onFocusOut"===l||"onFocusIn"===l?l.toLowerCase().slice(2):l.slice(2),n.l||(n.l={}),n.l[l+o]=u,u?t?u.u=t.u:(u.u=preact_module_e,n.addEventListener(l,o?s:preact_module_c,o)):n.removeEventListener(l,o?s:preact_module_c,o);else{if("http://www.w3.org/2000/svg"==i)l=l.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=l&&"height"!=l&&"href"!=l&&"list"!=l&&"form"!=l&&"tabIndex"!=l&&"download"!=l&&"rowSpan"!=l&&"colSpan"!=l&&"role"!=l&&"popover"!=l&&l in n)try{n[l]=null==u?"":u;break n}catch(n){}"function"==typeof u||(null==u||!1===u&&"-"!==l[4]?n.removeAttribute(l):n.setAttribute(l,"popover"==l&&1==u?"":u))}}function F(n){return function(u){if(this.l){var t=this.l[u.type+n];if(null==u.t)u.t=preact_module_e++;else if(u.t<t.u)return;return t(l.event?l.event(u):u)}}}function O(n,u,t,i,o,r,f,e,c,s){var a,h,v,p,w,_,g,m,x,C,S,M,$,I,H,L,T=u.type;if(void 0!==u.constructor)return null;128&t.__u&&(c=!!(32&t.__u),r=[e=u.__e=t.__e]),(a=l.__b)&&a(u);n:if("function"==typeof T)try{if(m=u.props,x="prototype"in T&&T.prototype.render,C=(a=T.contextType)&&i[a.__c],S=a?C?C.props.value:a.__:i,t.__c?g=(h=u.__c=t.__c).__=h.__E:(x?u.__c=h=new T(m,S):(u.__c=h=new k(m,S),h.constructor=T,h.render=q),C&&C.sub(h),h.props=m,h.state||(h.state={}),h.context=S,h.__n=i,v=h.__d=!0,h.__h=[],h._sb=[]),x&&null==h.__s&&(h.__s=h.state),x&&null!=T.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=d({},h.__s)),d(h.__s,T.getDerivedStateFromProps(m,h.__s))),p=h.props,w=h.state,h.__v=u,v)x&&null==T.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),x&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(x&&null==T.getDerivedStateFromProps&&m!==p&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(m,S),!h.__e&&(null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(m,h.__s,S)||u.__v===t.__v)){for(u.__v!==t.__v&&(h.props=m,h.state=h.__s,h.__d=!1),u.__e=t.__e,u.__k=t.__k,u.__k.some(function(n){n&&(n.__=u)}),M=0;M<h._sb.length;M++)h.__h.push(h._sb[M]);h._sb=[],h.__h.length&&f.push(h);break n}null!=h.componentWillUpdate&&h.componentWillUpdate(m,h.__s,S),x&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(p,w,_)})}if(h.context=S,h.props=m,h.__P=n,h.__e=!1,$=l.__r,I=0,x){for(h.state=h.__s,h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),H=0;H<h._sb.length;H++)h.__h.push(h._sb[H]);h._sb=[]}else do{h.__d=!1,$&&$(u),a=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++I<25);h.state=h.__s,null!=h.getChildContext&&(i=d(d({},i),h.getChildContext())),x&&!v&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(p,w)),P(n,y(L=null!=a&&a.type===b&&null==a.key?a.props.children:a)?L:[L],u,t,i,o,r,f,e,c,s),h.base=u.__e,u.__u&=-161,h.__h.length&&f.push(h),g&&(h.__E=h.__=null)}catch(n){if(u.__v=null,c||null!=r){for(u.__u|=c?160:128;e&&8===e.nodeType&&e.nextSibling;)e=e.nextSibling;r[r.indexOf(e)]=null,u.__e=e}else u.__e=t.__e,u.__k=t.__k;l.__e(n,u,t)}else null==r&&u.__v===t.__v?(u.__k=t.__k,u.__e=t.__e):u.__e=z(t.__e,u,t,i,o,r,f,c,s);(a=l.diffed)&&a(u)}function j(n,u,t){u.__d=void 0;for(var i=0;i<t.length;i++)N(t[i],t[++i],t[++i]);l.__c&&l.__c(u,n),n.some(function(u){try{n=u.__h,u.__h=[],n.some(function(n){n.call(u)})}catch(n){l.__e(n,u.__v)}})}function z(u,t,i,o,r,f,e,c,s){var a,v,p,d,_,g,m,b=i.props,k=t.props,C=t.type;if("svg"===C?r="http://www.w3.org/2000/svg":"math"===C?r="http://www.w3.org/1998/Math/MathML":r||(r="http://www.w3.org/1999/xhtml"),null!=f)for(a=0;a<f.length;a++)if((_=f[a])&&"setAttribute"in _==!!C&&(C?_.localName===C:3===_.nodeType)){u=_,f[a]=null;break}if(null==u){if(null===C)return document.createTextNode(k);u=document.createElementNS(r,C,k.is&&k),c&&(l.__m&&l.__m(t,f),c=!1),f=null}if(null===C)b===k||c&&u.data===k||(u.data=k);else{if(f=f&&preact_module_n.call(u.childNodes),b=i.props||h,!c&&null!=f)for(b={},a=0;a<u.attributes.length;a++)b[(_=u.attributes[a]).name]=_.value;for(a in b)if(_=b[a],"children"==a);else if("dangerouslySetInnerHTML"==a)p=_;else if(!(a in k)){if("value"==a&&"defaultValue"in k||"checked"==a&&"defaultChecked"in k)continue;A(u,a,null,_,r)}for(a in k)_=k[a],"children"==a?d=_:"dangerouslySetInnerHTML"==a?v=_:"value"==a?g=_:"checked"==a?m=_:c&&"function"!=typeof _||b[a]===_||A(u,a,_,b[a],r);if(v)c||p&&(v.__html===p.__html||v.__html===u.innerHTML)||(u.innerHTML=v.__html),t.__k=[];else if(p&&(u.innerHTML=""),P(u,y(d)?d:[d],t,i,o,"foreignObject"===C?"http://www.w3.org/1999/xhtml":r,f,e,f?f[0]:i.__k&&x(i,0),c,s),null!=f)for(a=f.length;a--;)w(f[a]);c||(a="value","progress"===C&&null==g?u.removeAttribute("value"):void 0!==g&&(g!==u[a]||"progress"===C&&!g||"option"===C&&g!==b[a])&&A(u,a,g,b[a],r),a="checked",void 0!==m&&m!==u[a]&&A(u,a,m,b[a],r))}return u}function N(n,u,t){try{if("function"==typeof n){var i="function"==typeof n.__u;i&&n.__u(),i&&null==u||(n.__u=n(u))}else n.current=u}catch(n){l.__e(n,t)}}function V(n,u,t){var i,o;if(l.unmount&&l.unmount(n),(i=n.ref)&&(i.current&&i.current!==n.__e||N(i,null,u)),null!=(i=n.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(n){l.__e(n,u)}i.base=i.__P=null}if(i=n.__k)for(o=0;o<i.length;o++)i[o]&&V(i[o],u,t||"function"!=typeof n.type);t||w(n.__e),n.__c=n.__=n.__e=n.__d=void 0}function q(n,l,u){return this.constructor(n,u)}function B(u,t,i){var o,r,f,e;l.__&&l.__(u,t),r=(o="function"==typeof i)?null:i&&i.__k||t.__k,f=[],e=[],O(t,u=(!o&&i||t).__k=preact_module_(b,null,[u]),r||h,h,t.namespaceURI,!o&&i?[i]:r?null:t.firstChild?preact_module_n.call(t.childNodes):null,f,!o&&i?i:r?r.__e:t.firstChild,o,e),j(f,u,e)}function D(n,l){B(n,l,D)}function E(l,u,t){var i,o,r,f,e=d({},l.props);for(r in l.type&&l.type.defaultProps&&(f=l.type.defaultProps),u)"key"==r?i=u[r]:"ref"==r?o=u[r]:e[r]=void 0===u[r]&&void 0!==f?f[r]:u[r];return arguments.length>2&&(e.children=arguments.length>3?preact_module_n.call(arguments,2):t),g(l.type,e,i||l.key,o||l.ref,null)}function G(n,l){var u={__c:l="__cC"+a++,__:n,Consumer:function(n,l){return n.children(l)},Provider:function(n){var u,t;return this.getChildContext||(u=new Set,(t={})[l]=this,this.getChildContext=function(){return t},this.componentWillUnmount=function(){u=null},this.shouldComponentUpdate=function(n){this.props.value!==n.value&&u.forEach(function(n){n.__e=!0,S(n)})},this.sub=function(n){u.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){u&&u.delete(n),l&&l.call(n)}}),n.children}};return u.Provider.__=u.Consumer.contextType=u}preact_module_n=v.slice,l={__e:function(n,l,u,t){for(var i,o,r;l=l.__;)if((i=l.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(n)),r=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(n,t||{}),r=i.__d),r)return i.__E=i}catch(l){n=l}throw n}},preact_module_u=0,preact_module_t=function(n){return null!=n&&null==n.constructor},k.prototype.setState=function(n,l){var u;u=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=d({},this.state),"function"==typeof n&&(n=n(d({},u),this.props)),n&&d(u,n),null!=n&&this.__v&&(l&&this._sb.push(l),S(this))},k.prototype.forceUpdate=function(n){this.__v&&(this.__e=!0,n&&this.__h.push(n),S(this))},k.prototype.render=b,preact_module_i=[],preact_module_r="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,preact_module_f=function(n,l){return n.__v.__b-l.__v.__b},M.__r=0,preact_module_e=0,preact_module_c=F(!1),s=F(!0),a=0;
|
|
323
323
|
//# sourceMappingURL=preact.module.js.map
|
|
324
324
|
|
|
325
325
|
// CONCATENATED MODULE: ./node_modules/preact/hooks/dist/hooks.module.js
|
|
326
|
-
var hooks_module_t,hooks_module_r,hooks_module_u,hooks_module_i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=
|
|
326
|
+
var hooks_module_t,hooks_module_r,hooks_module_u,hooks_module_i,hooks_module_o=0,hooks_module_f=[],hooks_module_c=l,hooks_module_e=hooks_module_c.__b,hooks_module_a=hooks_module_c.__r,hooks_module_v=hooks_module_c.diffed,hooks_module_l=hooks_module_c.__c,hooks_module_m=hooks_module_c.unmount,hooks_module_s=hooks_module_c.__;function hooks_module_d(n,t){hooks_module_c.__h&&hooks_module_c.__h(hooks_module_r,n,hooks_module_o||t),hooks_module_o=0;var u=hooks_module_r.__H||(hooks_module_r.__H={__:[],__h:[]});return n>=u.__.length&&u.__.push({}),u.__[n]}function hooks_module_h(n){return hooks_module_o=1,hooks_module_p(hooks_module_D,n)}function hooks_module_p(n,u,i){var o=hooks_module_d(hooks_module_t++,2);if(o.t=n,!o.__c&&(o.__=[i?i(u):hooks_module_D(void 0,u),function(n){var t=o.__N?o.__N[0]:o.__[0],r=o.t(t,n);t!==r&&(o.__N=[r,o.__[1]],o.__c.setState({}))}],o.__c=hooks_module_r,!hooks_module_r.u)){var f=function(n,t,r){if(!o.__c.__H)return!0;var u=o.__c.__H.__.filter(function(n){return!!n.__c});if(u.every(function(n){return!n.__N}))return!c||c.call(this,n,t,r);var i=!1;return u.forEach(function(n){if(n.__N){var t=n.__[0];n.__=n.__N,n.__N=void 0,t!==n.__[0]&&(i=!0)}}),!(!i&&o.__c.props===n)&&(!c||c.call(this,n,t,r))};hooks_module_r.u=!0;var c=hooks_module_r.shouldComponentUpdate,e=hooks_module_r.componentWillUpdate;hooks_module_r.componentWillUpdate=function(n,t,r){if(this.__e){var u=c;c=void 0,f(n,t,r),c=u}e&&e.call(this,n,t,r)},hooks_module_r.shouldComponentUpdate=f}return o.__N||o.__}function hooks_module_y(n,u){var i=hooks_module_d(hooks_module_t++,3);!hooks_module_c.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__H.__h.push(i))}function hooks_module_(n,u){var i=hooks_module_d(hooks_module_t++,4);!hooks_module_c.__s&&hooks_module_C(i.__H,u)&&(i.__=n,i.i=u,hooks_module_r.__h.push(i))}function hooks_module_A(n){return hooks_module_o=5,hooks_module_T(function(){return{current:n}},[])}function hooks_module_F(n,t,r){hooks_module_o=6,hooks_module_(function(){return"function"==typeof n?(n(t()),function(){return n(null)}):n?(n.current=t(),function(){return n.current=null}):void 0},null==r?r:r.concat(n))}function hooks_module_T(n,r){var u=hooks_module_d(hooks_module_t++,7);return hooks_module_C(u.__H,r)&&(u.__=n(),u.__H=r,u.__h=n),u.__}function hooks_module_q(n,t){return hooks_module_o=8,hooks_module_T(function(){return n},t)}function hooks_module_x(n){var u=hooks_module_r.context[n.__c],i=hooks_module_d(hooks_module_t++,9);return i.c=n,u?(null==i.__&&(i.__=!0,u.sub(hooks_module_r)),u.props.value):n.__}function hooks_module_P(n,t){hooks_module_c.useDebugValue&&hooks_module_c.useDebugValue(t?t(n):n)}function hooks_module_b(n){var u=hooks_module_d(hooks_module_t++,10),i=hooks_module_h();return u.__=n,hooks_module_r.componentDidCatch||(hooks_module_r.componentDidCatch=function(n,t){u.__&&u.__(n,t),i[1](n)}),[i[0],function(){i[1](void 0)}]}function hooks_module_g(){var n=hooks_module_d(hooks_module_t++,11);if(!n.__){for(var u=hooks_module_r.__v;null!==u&&!u.__m&&null!==u.__;)u=u.__;var i=u.__m||(u.__m=[0,0]);n.__="P"+i[0]+"-"+i[1]++}return n.__}function hooks_module_j(){for(var n;n=hooks_module_f.shift();)if(n.__P&&n.__H)try{n.__H.__h.forEach(hooks_module_z),n.__H.__h.forEach(hooks_module_B),n.__H.__h=[]}catch(t){n.__H.__h=[],hooks_module_c.__e(t,n.__v)}}hooks_module_c.__b=function(n){hooks_module_r=null,hooks_module_e&&hooks_module_e(n)},hooks_module_c.__=function(n,t){n&&t.__k&&t.__k.__m&&(n.__m=t.__k.__m),hooks_module_s&&hooks_module_s(n,t)},hooks_module_c.__r=function(n){hooks_module_a&&hooks_module_a(n),hooks_module_t=0;var i=(hooks_module_r=n.__c).__H;i&&(hooks_module_u===hooks_module_r?(i.__h=[],hooks_module_r.__h=[],i.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(i.__h.forEach(hooks_module_z),i.__h.forEach(hooks_module_B),i.__h=[],hooks_module_t=0)),hooks_module_u=hooks_module_r},hooks_module_c.diffed=function(n){hooks_module_v&&hooks_module_v(n);var t=n.__c;t&&t.__H&&(t.__H.__h.length&&(1!==hooks_module_f.push(t)&&hooks_module_i===hooks_module_c.requestAnimationFrame||((hooks_module_i=hooks_module_c.requestAnimationFrame)||hooks_module_w)(hooks_module_j)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),hooks_module_u=hooks_module_r=null},hooks_module_c.__c=function(n,t){t.some(function(n){try{n.__h.forEach(hooks_module_z),n.__h=n.__h.filter(function(n){return!n.__||hooks_module_B(n)})}catch(r){t.some(function(n){n.__h&&(n.__h=[])}),t=[],hooks_module_c.__e(r,n.__v)}}),hooks_module_l&&hooks_module_l(n,t)},hooks_module_c.unmount=function(n){hooks_module_m&&hooks_module_m(n);var t,r=n.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{hooks_module_z(n)}catch(n){t=n}}),r.__H=void 0,t&&hooks_module_c.__e(t,r.__v))};var hooks_module_k="function"==typeof requestAnimationFrame;function hooks_module_w(n){var t,r=function(){clearTimeout(u),hooks_module_k&&cancelAnimationFrame(t),setTimeout(n)},u=setTimeout(r,100);hooks_module_k&&(t=requestAnimationFrame(r))}function hooks_module_z(n){var t=hooks_module_r,u=n.__c;"function"==typeof u&&(n.__c=void 0,u()),hooks_module_r=t}function hooks_module_B(n){var t=hooks_module_r;n.__c=n.__(),hooks_module_r=t}function hooks_module_C(n,t){return!n||n.length!==t.length||t.some(function(t,r){return t!==n[r]})}function hooks_module_D(n,t){return"function"==typeof t?t(n):t}
|
|
327
327
|
//# sourceMappingURL=hooks.module.js.map
|
|
328
328
|
|
|
329
329
|
// CONCATENATED MODULE: ./node_modules/preact/compat/dist/compat.module.js
|
|
330
|
-
function compat_module_g(n,t){for(var e in t)n[e]=t[e];return n}function compat_module_E(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function compat_module_C(n,t){this.props=n,this.context=t}function compat_module_x(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:compat_module_E(this.props,n)}function u(e){return this.shouldComponentUpdate=r,preact_module_(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(compat_module_C.prototype=new k).isPureReactComponent=!0,compat_module_C.prototype.shouldComponentUpdate=function(n,t){return compat_module_E(this.props,n)||compat_module_E(this.state,t)};var R=preact_module_l.__b;preact_module_l.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),R&&R(n)};var compat_module_w="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function compat_module_k(n){function t(t){var e=compat_module_g({},t);return delete e.ref,n(e,t.ref||null)}return t.$$typeof=compat_module_w,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var compat_module_I=function(n,t){return null==n?null:H(H(n).map(t))},compat_module_N={map:compat_module_I,forEach:compat_module_I,count:function(n){return n?H(n).length:0},only:function(n){var t=H(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:H},compat_module_M=preact_module_l.__e;preact_module_l.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);compat_module_M(n,t,e,r)};var compat_module_T=preact_module_l.unmount;function compat_module_A(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=compat_module_g({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return compat_module_A(n,t,e)})),n}function compat_module_D(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return compat_module_D(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function compat_module_L(){this.__u=0,this.t=null,this.__b=null}function compat_module_O(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function compat_module_F(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return preact_module_(r,o)}return o.displayName="Lazy",o.__f=!0,o}function U(){this.u=null,this.o=null}preact_module_l.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),compat_module_T&&compat_module_T(n)},(compat_module_L.prototype=new k).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=compat_module_O(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(c):c())};e.__R=i;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=compat_module_D(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},compat_module_L.prototype.componentWillUnmount=function(){this.t=[]},compat_module_L.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=compat_module_A(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&preact_module_(b,null,n.fallback);return i&&(i.__u&=-33),[preact_module_(b,null,e.__a?null:n.children),i]};var compat_module_V=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};function W(n){return this.getChildContext=function(){return n.context},n.children}function compat_module_P(n){var e=this,r=n.i;e.componentWillUnmount=function(){B(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),B(preact_module_(W,{context:e.context},n.__v),e.l)}function compat_module_j(n,e){var r=preact_module_(compat_module_P,{__v:n,i:e});return r.containerInfo=e,r}(U.prototype=new k).__a=function(n){var t=this,e=compat_module_O(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),compat_module_V(t,n,r)):u()};e?e(o):o()}},U.prototype.render=function(n){this.u=null,this.o=new Map;var t=H(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},U.prototype.componentDidUpdate=U.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){compat_module_V(n,e,t)})};var compat_module_z="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,compat_module_B=/^(?: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]/,compat_module_H=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Z=/[A-Z0-9]/g,Y="undefined"!=typeof document,compat_module_$=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function compat_module_q(n,t,e){return null==t.__k&&(t.textContent=""),B(n,t),"function"==typeof e&&e(),n?n.__c:null}function compat_module_G(n,t,e){return D(n,t),"function"==typeof e&&e(),n?n.__c:null}k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(k.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var J=preact_module_l.event;function K(){}function Q(){return this.cancelBubble}function X(){return this.defaultPrevented}preact_module_l.event=function(n){return J&&(n=J(n)),n.persist=K,n.isPropagationStopped=Q,n.isDefaultPrevented=X,n.nativeEvent=n};var nn,tn={enumerable:!1,configurable:!0,get:function(){return this.class}},en=preact_module_l.vnode;preact_module_l.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1===e.indexOf("-");for(var i in t){var c=t[i];if(!("value"===i&&"defaultValue"in t&&null==c||Y&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var l=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===c?c="":"translate"===l&&"no"===c?c=!1:"o"===l[0]&&"n"===l[1]?"ondoubleclick"===l?i="ondblclick":"onchange"!==l||"input"!==e&&"textarea"!==e||compat_module_$(t.type)?"onfocus"===l?i="onfocusin":"onblur"===l?i="onfocusout":compat_module_H.test(i)&&(i=l):l=i="oninput":o&&compat_module_B.test(i)?i=i.replace(Z,"-$&").toLowerCase():null===c&&(c=void 0),"oninput"===l&&u[i=l]&&(i="oninputCapture"),u[i]=c}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=H(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==e&&null!=u.defaultValue&&(u.value=H(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",tn)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=compat_module_z,en&&en(n)};var rn=preact_module_l.__r;preact_module_l.__r=function(n){rn&&rn(n),nn=n.__c};var un=preact_module_l.diffed;preact_module_l.diffed=function(n){un&&un(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),nn=null};var on={ReactCurrentDispatcher:{current:{readContext:function(n){return nn.__n[n.__c].props.value},useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,useDeferredValue:bn,useEffect:hooks_module_y,useId:hooks_module_g,useImperativeHandle:hooks_module_F,useInsertionEffect:gn,useLayoutEffect:hooks_module_,useMemo:hooks_module_T,useReducer:hooks_module_p,useRef:hooks_module_A,useState:hooks_module_h,useSyncExternalStore:Cn,useTransition:Sn}}},cn="18.3.1";function ln(n){return preact_module_.bind(null,n)}function fn(n){return!!n&&n.$$typeof===compat_module_z}function an(n){return fn(n)&&n.type===b}function sn(n){return!!n&&!!n.displayName&&("string"==typeof n.displayName||n.displayName instanceof String)&&n.displayName.startsWith("Memo(")}function hn(n){return fn(n)?E.apply(null,arguments):n}function vn(n){return!!n.__k&&(B(null,n),!0)}function dn(n){return n&&(n.base||1===n.nodeType&&n)||null}var pn=function(n,t){return n(t)},mn=function(n,t){return n(t)},yn=b;function _n(n){n()}function bn(n){return n}function Sn(){return[!1,_n]}var gn=hooks_module_,En=fn;function Cn(n,t){var e=t(),r=hooks_module_h({h:{__:e,v:t}}),u=r[0].h,o=r[1];return hooks_module_(function(){u.__=e,u.v=t,xn(u)&&o({h:u})},[n,e,t]),hooks_module_y(function(){return xn(u)&&o({h:u}),n(function(){xn(u)&&o({h:u})})},[n]),e}function xn(n){var t,e,r=n.v,u=n.__;try{var o=r();return!((t=u)===(e=o)&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return!0}}var Rn={useState:hooks_module_h,useId:hooks_module_g,useReducer:hooks_module_p,useEffect:hooks_module_y,useLayoutEffect:hooks_module_,useInsertionEffect:gn,useTransition:Sn,useDeferredValue:bn,useSyncExternalStore:Cn,startTransition:_n,useRef:hooks_module_A,useImperativeHandle:hooks_module_F,useMemo:hooks_module_T,useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,version:"18.3.1",Children:compat_module_N,render:compat_module_q,hydrate:compat_module_G,unmountComponentAtNode:vn,createPortal:compat_module_j,createElement:preact_module_,createContext:G,createFactory:ln,cloneElement:hn,createRef:m,Fragment:b,isValidElement:fn,isElement:En,isFragment:an,isMemo:sn,findDOMNode:dn,Component:k,PureComponent:compat_module_C,memo:compat_module_x,forwardRef:compat_module_k,flushSync:mn,unstable_batchedUpdates:pn,StrictMode:yn,Suspense:compat_module_L,SuspenseList:U,lazy:compat_module_F,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:on};
|
|
330
|
+
function compat_module_g(n,t){for(var e in n)if("__source"!==e&&!(e in t))return!0;for(var r in t)if("__source"!==r&&n[r]!==t[r])return!0;return!1}function compat_module_E(n,t){this.props=n,this.context=t}function compat_module_C(n,e){function r(n){var t=this.props.ref,r=t==n.ref;return!r&&t&&(t.call?t(null):t.current=null),e?!e(this.props,n)||!r:compat_module_g(this.props,n)}function u(e){return this.shouldComponentUpdate=r,preact_module_(n,e)}return u.displayName="Memo("+(n.displayName||n.name)+")",u.prototype.isReactComponent=!0,u.__f=!0,u}(compat_module_E.prototype=new k).isPureReactComponent=!0,compat_module_E.prototype.shouldComponentUpdate=function(n,t){return compat_module_g(this.props,n)||compat_module_g(this.state,t)};var compat_module_x=l.__b;l.__b=function(n){n.type&&n.type.__f&&n.ref&&(n.props.ref=n.ref,n.ref=null),compat_module_x&&compat_module_x(n)};var R="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function compat_module_w(n){function t(t){if(!("ref"in t))return n(t,null);var e=t.ref;delete t.ref;var r=n(t,e);return t.ref=e,r}return t.$$typeof=R,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(n.displayName||n.name)+")",t}var compat_module_k=function(n,t){return null==n?null:H(H(n).map(t))},compat_module_I={map:compat_module_k,forEach:compat_module_k,count:function(n){return n?H(n).length:0},only:function(n){var t=H(n);if(1!==t.length)throw"Children.only";return t[0]},toArray:H},compat_module_N=l.__e;l.__e=function(n,t,e,r){if(n.then)for(var u,o=t;o=o.__;)if((u=o.__c)&&u.__c)return null==t.__e&&(t.__e=e.__e,t.__k=e.__k),u.__c(n,t);compat_module_N(n,t,e,r)};var compat_module_M=l.unmount;function compat_module_T(n,t,e){return n&&(n.__c&&n.__c.__H&&(n.__c.__H.__.forEach(function(n){"function"==typeof n.__c&&n.__c()}),n.__c.__H=null),null!=(n=function(n,t){for(var e in t)n[e]=t[e];return n}({},n)).__c&&(n.__c.__P===e&&(n.__c.__P=t),n.__c=null),n.__k=n.__k&&n.__k.map(function(n){return compat_module_T(n,t,e)})),n}function compat_module_A(n,t,e){return n&&e&&(n.__v=null,n.__k=n.__k&&n.__k.map(function(n){return compat_module_A(n,t,e)}),n.__c&&n.__c.__P===t&&(n.__e&&e.appendChild(n.__e),n.__c.__e=!0,n.__c.__P=e)),n}function compat_module_D(){this.__u=0,this.t=null,this.__b=null}function compat_module_L(n){var t=n.__.__c;return t&&t.__a&&t.__a(n)}function compat_module_O(n){var e,r,u;function o(o){if(e||(e=n()).then(function(n){r=n.default||n},function(n){u=n}),u)throw u;if(!r)throw e;return preact_module_(r,o)}return o.displayName="Lazy",o.__f=!0,o}function compat_module_F(){this.u=null,this.o=null}l.unmount=function(n){var t=n.__c;t&&t.__R&&t.__R(),t&&32&n.__u&&(n.type=null),compat_module_M&&compat_module_M(n)},(compat_module_D.prototype=new k).__c=function(n,t){var e=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(e);var u=compat_module_L(r.__v),o=!1,i=function(){o||(o=!0,e.__R=null,u?u(c):c())};e.__R=i;var c=function(){if(!--r.__u){if(r.state.__a){var n=r.state.__a;r.__v.__k[0]=compat_module_A(n,n.__c.__P,n.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),n.then(i,i)},compat_module_D.prototype.componentWillUnmount=function(){this.t=[]},compat_module_D.prototype.render=function(n,e){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=compat_module_T(this.__b,r,o.__O=o.__P)}this.__b=null}var i=e.__a&&preact_module_(b,null,n.fallback);return i&&(i.__u&=-33),[preact_module_(b,null,e.__a?null:n.children),i]};var U=function(n,t,e){if(++e[1]===e[0]&&n.o.delete(t),n.props.revealOrder&&("t"!==n.props.revealOrder[0]||!n.o.size))for(e=n.u;e;){for(;e.length>3;)e.pop()();if(e[1]<e[0])break;n.u=e=e[2]}};function compat_module_V(n){return this.getChildContext=function(){return n.context},n.children}function W(n){var e=this,r=n.i;e.componentWillUnmount=function(){B(null,e.l),e.l=null,e.i=null},e.i&&e.i!==r&&e.componentWillUnmount(),e.l||(e.i=r,e.l={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(n){this.childNodes.push(n),e.i.appendChild(n)},insertBefore:function(n,t){this.childNodes.push(n),e.i.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),e.i.removeChild(n)}}),B(preact_module_(compat_module_V,{context:e.context},n.__v),e.l)}function compat_module_P(n,e){var r=preact_module_(W,{__v:n,i:e});return r.containerInfo=e,r}(compat_module_F.prototype=new k).__a=function(n){var t=this,e=compat_module_L(t.__v),r=t.o.get(n);return r[0]++,function(u){var o=function(){t.props.revealOrder?(r.push(u),U(t,n,r)):u()};e?e(o):o()}},compat_module_F.prototype.render=function(n){this.u=null,this.o=new Map;var t=H(n.children);n.revealOrder&&"b"===n.revealOrder[0]&&t.reverse();for(var e=t.length;e--;)this.o.set(t[e],this.u=[1,0,this.u]);return n.children},compat_module_F.prototype.componentDidUpdate=compat_module_F.prototype.componentDidMount=function(){var n=this;this.o.forEach(function(t,e){U(n,e,t)})};var compat_module_j="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,compat_module_z=/^(?: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]/,compat_module_B=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,compat_module_H=/[A-Z0-9]/g,Z="undefined"!=typeof document,Y=function(n){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(n)};function compat_module_$(n,t,e){return null==t.__k&&(t.textContent=""),B(n,t),"function"==typeof e&&e(),n?n.__c:null}function compat_module_q(n,t,e){return D(n,t),"function"==typeof e&&e(),n?n.__c:null}k.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(t){Object.defineProperty(k.prototype,t,{configurable:!0,get:function(){return this["UNSAFE_"+t]},set:function(n){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:n})}})});var compat_module_G=l.event;function J(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}l.event=function(n){return compat_module_G&&(n=compat_module_G(n)),n.persist=J,n.isPropagationStopped=K,n.isDefaultPrevented=Q,n.nativeEvent=n};var X,nn={enumerable:!1,configurable:!0,get:function(){return this.class}},tn=l.vnode;l.vnode=function(n){"string"==typeof n.type&&function(n){var t=n.props,e=n.type,u={},o=-1===e.indexOf("-");for(var i in t){var c=t[i];if(!("value"===i&&"defaultValue"in t&&null==c||Z&&"children"===i&&"noscript"===e||"class"===i||"className"===i)){var f=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===c?c="":"translate"===f&&"no"===c?c=!1:"o"===f[0]&&"n"===f[1]?"ondoubleclick"===f?i="ondblclick":"onchange"!==f||"input"!==e&&"textarea"!==e||Y(t.type)?"onfocus"===f?i="onfocusin":"onblur"===f?i="onfocusout":compat_module_B.test(i)&&(i=f):f=i="oninput":o&&compat_module_z.test(i)?i=i.replace(compat_module_H,"-$&").toLowerCase():null===c&&(c=void 0),"oninput"===f&&u[i=f]&&(i="oninputCapture"),u[i]=c}}"select"==e&&u.multiple&&Array.isArray(u.value)&&(u.value=H(t.children).forEach(function(n){n.props.selected=-1!=u.value.indexOf(n.props.value)})),"select"==e&&null!=u.defaultValue&&(u.value=H(t.children).forEach(function(n){n.props.selected=u.multiple?-1!=u.defaultValue.indexOf(n.props.value):u.defaultValue==n.props.value})),t.class&&!t.className?(u.class=t.class,Object.defineProperty(u,"className",nn)):(t.className&&!t.class||t.class&&t.className)&&(u.class=u.className=t.className),n.props=u}(n),n.$$typeof=compat_module_j,tn&&tn(n)};var en=l.__r;l.__r=function(n){en&&en(n),X=n.__c};var rn=l.diffed;l.diffed=function(n){rn&&rn(n);var t=n.props,e=n.__e;null!=e&&"textarea"===n.type&&"value"in t&&t.value!==e.value&&(e.value=null==t.value?"":t.value),X=null};var un={ReactCurrentDispatcher:{current:{readContext:function(n){return X.__n[n.__c].props.value},useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,useDeferredValue:_n,useEffect:hooks_module_y,useId:hooks_module_g,useImperativeHandle:hooks_module_F,useInsertionEffect:Sn,useLayoutEffect:hooks_module_,useMemo:hooks_module_T,useReducer:hooks_module_p,useRef:hooks_module_A,useState:hooks_module_h,useSyncExternalStore:En,useTransition:bn}}},on="18.3.1";function cn(n){return preact_module_.bind(null,n)}function fn(n){return!!n&&n.$$typeof===compat_module_j}function ln(n){return fn(n)&&n.type===b}function an(n){return!!n&&!!n.displayName&&("string"==typeof n.displayName||n.displayName instanceof String)&&n.displayName.startsWith("Memo(")}function sn(n){return fn(n)?E.apply(null,arguments):n}function hn(n){return!!n.__k&&(B(null,n),!0)}function vn(n){return n&&(n.base||1===n.nodeType&&n)||null}var dn=function(n,t){return n(t)},pn=function(n,t){return n(t)},mn=b;function yn(n){n()}function _n(n){return n}function bn(){return[!1,yn]}var Sn=hooks_module_,gn=fn;function En(n,t){var e=t(),r=hooks_module_h({h:{__:e,v:t}}),u=r[0].h,o=r[1];return hooks_module_(function(){u.__=e,u.v=t,Cn(u)&&o({h:u})},[n,e,t]),hooks_module_y(function(){return Cn(u)&&o({h:u}),n(function(){Cn(u)&&o({h:u})})},[n]),e}function Cn(n){var t,e,r=n.v,u=n.__;try{var o=r();return!((t=u)===(e=o)&&(0!==t||1/t==1/e)||t!=t&&e!=e)}catch(n){return!0}}var xn={useState:hooks_module_h,useId:hooks_module_g,useReducer:hooks_module_p,useEffect:hooks_module_y,useLayoutEffect:hooks_module_,useInsertionEffect:Sn,useTransition:bn,useDeferredValue:_n,useSyncExternalStore:En,startTransition:yn,useRef:hooks_module_A,useImperativeHandle:hooks_module_F,useMemo:hooks_module_T,useCallback:hooks_module_q,useContext:hooks_module_x,useDebugValue:hooks_module_P,version:"18.3.1",Children:compat_module_I,render:compat_module_$,hydrate:compat_module_q,unmountComponentAtNode:hn,createPortal:compat_module_P,createElement:preact_module_,createContext:G,createFactory:cn,cloneElement:sn,createRef:m,Fragment:b,isValidElement:fn,isElement:gn,isFragment:ln,isMemo:an,findDOMNode:vn,Component:k,PureComponent:compat_module_E,memo:compat_module_C,forwardRef:compat_module_w,flushSync:pn,unstable_batchedUpdates:dn,StrictMode:mn,Suspense:compat_module_D,SuspenseList:compat_module_F,lazy:compat_module_O,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:un};
|
|
331
331
|
//# sourceMappingURL=compat.module.js.map
|
|
332
332
|
|
|
333
333
|
// EXTERNAL MODULE: external {"root":"Survey","commonjs2":"survey-core","commonjs":"survey-core","amd":"survey-core"}
|
|
@@ -1195,7 +1195,7 @@ var svg_icon_SvgIcon = /** @class */ (function (_super) {
|
|
|
1195
1195
|
svg_icon_extends(SvgIcon, _super);
|
|
1196
1196
|
function SvgIcon(props) {
|
|
1197
1197
|
var _this = _super.call(this, props) || this;
|
|
1198
|
-
_this.svgIconRef =
|
|
1198
|
+
_this.svgIconRef = xn.createRef();
|
|
1199
1199
|
return _this;
|
|
1200
1200
|
}
|
|
1201
1201
|
SvgIcon.prototype.updateSvg = function () {
|
|
@@ -1211,18 +1211,18 @@ var svg_icon_SvgIcon = /** @class */ (function (_super) {
|
|
|
1211
1211
|
className += " " + this.props.className;
|
|
1212
1212
|
}
|
|
1213
1213
|
return (this.props.iconName ?
|
|
1214
|
-
|
|
1215
|
-
|
|
1214
|
+
xn.createElement("svg", { className: className, style: this.props.style, onClick: this.props.onClick, ref: this.svgIconRef, role: "img" },
|
|
1215
|
+
xn.createElement("use", null))
|
|
1216
1216
|
: null);
|
|
1217
1217
|
};
|
|
1218
1218
|
SvgIcon.prototype.componentDidMount = function () {
|
|
1219
1219
|
this.updateSvg();
|
|
1220
1220
|
};
|
|
1221
1221
|
return SvgIcon;
|
|
1222
|
-
}(
|
|
1222
|
+
}(xn.Component));
|
|
1223
1223
|
|
|
1224
1224
|
ReactElementFactory.Instance.registerElement("sv-svg-icon", function (props) {
|
|
1225
|
-
return
|
|
1225
|
+
return xn.createElement(svg_icon_SvgIcon, props);
|
|
1226
1226
|
});
|
|
1227
1227
|
|
|
1228
1228
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/action-bar/action-bar-separator.tsx
|
|
@@ -1250,13 +1250,13 @@ var action_bar_separator_SurveyActionBarSeparator = /** @class */ (function (_su
|
|
|
1250
1250
|
}
|
|
1251
1251
|
SurveyActionBarSeparator.prototype.render = function () {
|
|
1252
1252
|
var className = "sv-action-bar-separator " + this.props.cssClasses;
|
|
1253
|
-
return
|
|
1253
|
+
return xn.createElement("div", { className: className });
|
|
1254
1254
|
};
|
|
1255
1255
|
return SurveyActionBarSeparator;
|
|
1256
|
-
}(
|
|
1256
|
+
}(xn.Component));
|
|
1257
1257
|
|
|
1258
1258
|
ReactElementFactory.Instance.registerElement("sv-action-bar-separator", function (props) {
|
|
1259
|
-
return
|
|
1259
|
+
return xn.createElement(action_bar_separator_SurveyActionBarSeparator, props);
|
|
1260
1260
|
});
|
|
1261
1261
|
|
|
1262
1262
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/action-bar/action-bar-item.tsx
|
|
@@ -1299,12 +1299,12 @@ var action_bar_item_SurveyAction = /** @class */ (function (_super) {
|
|
|
1299
1299
|
SurveyAction.prototype.renderElement = function () {
|
|
1300
1300
|
//refactor
|
|
1301
1301
|
var itemClass = this.item.getActionRootCss();
|
|
1302
|
-
var separator = this.item.needSeparator ? (
|
|
1302
|
+
var separator = this.item.needSeparator ? (xn.createElement(action_bar_separator_SurveyActionBarSeparator, null)) : null;
|
|
1303
1303
|
var itemComponent = ReactElementFactory.Instance.createElement(this.item.component || "sv-action-bar-item", {
|
|
1304
1304
|
item: this.item,
|
|
1305
1305
|
});
|
|
1306
|
-
return (
|
|
1307
|
-
|
|
1306
|
+
return (xn.createElement("div", { className: itemClass, id: this.item.id },
|
|
1307
|
+
xn.createElement("div", { className: "sv-action__content" },
|
|
1308
1308
|
separator,
|
|
1309
1309
|
itemComponent)));
|
|
1310
1310
|
};
|
|
@@ -1327,18 +1327,18 @@ var action_bar_item_SurveyActionBarItem = /** @class */ (function (_super) {
|
|
|
1327
1327
|
return this.item;
|
|
1328
1328
|
};
|
|
1329
1329
|
SurveyActionBarItem.prototype.renderElement = function () {
|
|
1330
|
-
return
|
|
1330
|
+
return xn.createElement(xn.Fragment, null, this.renderInnerButton());
|
|
1331
1331
|
};
|
|
1332
1332
|
SurveyActionBarItem.prototype.renderText = function () {
|
|
1333
1333
|
if (!this.item.hasTitle)
|
|
1334
1334
|
return null;
|
|
1335
1335
|
var titleClass = this.item.getActionBarItemTitleCss();
|
|
1336
|
-
return
|
|
1336
|
+
return xn.createElement("span", { className: titleClass }, this.item.title);
|
|
1337
1337
|
};
|
|
1338
1338
|
SurveyActionBarItem.prototype.renderButtonContent = function () {
|
|
1339
1339
|
var text = this.renderText();
|
|
1340
|
-
var svgIcon = !!this.item.iconName ? (
|
|
1341
|
-
return (
|
|
1340
|
+
var svgIcon = !!this.item.iconName ? (xn.createElement(svg_icon_SvgIcon, { className: this.item.cssClasses.itemIcon, size: this.item.iconSize, iconName: this.item.iconName, title: this.item.tooltip || this.item.title })) : null;
|
|
1341
|
+
return (xn.createElement(xn.Fragment, null,
|
|
1342
1342
|
svgIcon,
|
|
1343
1343
|
text));
|
|
1344
1344
|
};
|
|
@@ -1348,14 +1348,14 @@ var action_bar_item_SurveyActionBarItem = /** @class */ (function (_super) {
|
|
|
1348
1348
|
var title = this.item.tooltip || this.item.title;
|
|
1349
1349
|
var buttonContent = this.renderButtonContent();
|
|
1350
1350
|
var tabIndex = this.item.disableTabStop ? -1 : undefined;
|
|
1351
|
-
var button = attachKey2click(
|
|
1351
|
+
var button = attachKey2click(xn.createElement("button", { className: className, type: "button", disabled: this.item.disabled, onMouseDown: function (args) { return _this.item.doMouseDown(args); }, onFocus: function (args) { return _this.item.doFocus(args); }, onClick: function (args) { return _this.item.doAction(args); }, title: title, tabIndex: tabIndex, "aria-checked": this.item.ariaChecked, "aria-expanded": this.item.ariaExpanded, role: this.item.ariaRole }, buttonContent), this.item, { processEsc: false });
|
|
1352
1352
|
return button;
|
|
1353
1353
|
};
|
|
1354
1354
|
return SurveyActionBarItem;
|
|
1355
1355
|
}(reactquestion_element_SurveyElementBase));
|
|
1356
1356
|
|
|
1357
1357
|
ReactElementFactory.Instance.registerElement("sv-action-bar-item", function (props) {
|
|
1358
|
-
return
|
|
1358
|
+
return xn.createElement(action_bar_item_SurveyActionBarItem, props);
|
|
1359
1359
|
});
|
|
1360
1360
|
|
|
1361
1361
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/popup/popup.tsx
|
|
@@ -1384,7 +1384,7 @@ var popup_Popup = /** @class */ (function (_super) {
|
|
|
1384
1384
|
popup_extends(Popup, _super);
|
|
1385
1385
|
function Popup(props) {
|
|
1386
1386
|
var _this = _super.call(this, props) || this;
|
|
1387
|
-
_this.containerRef =
|
|
1387
|
+
_this.containerRef = xn.createRef();
|
|
1388
1388
|
_this.createModel();
|
|
1389
1389
|
return _this;
|
|
1390
1390
|
}
|
|
@@ -1432,18 +1432,18 @@ var popup_Popup = /** @class */ (function (_super) {
|
|
|
1432
1432
|
this.popup.model = this.model;
|
|
1433
1433
|
var popupContainer;
|
|
1434
1434
|
if (this.model.isModal) {
|
|
1435
|
-
popupContainer =
|
|
1435
|
+
popupContainer = xn.createElement(popup_PopupContainer, { model: this.popup });
|
|
1436
1436
|
}
|
|
1437
1437
|
else {
|
|
1438
|
-
popupContainer =
|
|
1438
|
+
popupContainer = xn.createElement(popup_PopupDropdownContainer, { model: this.popup });
|
|
1439
1439
|
}
|
|
1440
|
-
return
|
|
1440
|
+
return xn.createElement("div", { ref: this.containerRef }, popupContainer);
|
|
1441
1441
|
};
|
|
1442
1442
|
return Popup;
|
|
1443
1443
|
}(reactquestion_element_SurveyElementBase));
|
|
1444
1444
|
|
|
1445
1445
|
ReactElementFactory.Instance.registerElement("sv-popup", function (props) {
|
|
1446
|
-
return
|
|
1446
|
+
return xn.createElement(popup_Popup, props);
|
|
1447
1447
|
});
|
|
1448
1448
|
var popup_PopupContainer = /** @class */ (function (_super) {
|
|
1449
1449
|
popup_extends(PopupContainer, _super);
|
|
@@ -1479,7 +1479,7 @@ var popup_PopupContainer = /** @class */ (function (_super) {
|
|
|
1479
1479
|
var headerContent = !!popupBaseViewModel.title ? this.renderHeaderContent() : null;
|
|
1480
1480
|
var content = this.renderContent();
|
|
1481
1481
|
var footerContent = popupBaseViewModel.showFooter ? this.renderFooter(this.model) : null;
|
|
1482
|
-
return (
|
|
1482
|
+
return (xn.createElement("div", { className: "sv-popup__container", style: {
|
|
1483
1483
|
left: popupBaseViewModel.left,
|
|
1484
1484
|
top: popupBaseViewModel.top,
|
|
1485
1485
|
height: popupBaseViewModel.height,
|
|
@@ -1489,24 +1489,24 @@ var popup_PopupContainer = /** @class */ (function (_super) {
|
|
|
1489
1489
|
_this.clickInside(ev);
|
|
1490
1490
|
} },
|
|
1491
1491
|
headerPopup,
|
|
1492
|
-
|
|
1492
|
+
xn.createElement("div", { className: "sv-popup__body-content" },
|
|
1493
1493
|
headerContent,
|
|
1494
|
-
|
|
1494
|
+
xn.createElement("div", { className: "sv-popup__scrolling-content" }, content),
|
|
1495
1495
|
footerContent)));
|
|
1496
1496
|
};
|
|
1497
1497
|
PopupContainer.prototype.renderHeaderContent = function () {
|
|
1498
|
-
return
|
|
1498
|
+
return xn.createElement("div", { className: "sv-popup__body-header" }, this.model.title);
|
|
1499
1499
|
};
|
|
1500
1500
|
PopupContainer.prototype.renderContent = function () {
|
|
1501
1501
|
var contentComponent = ReactElementFactory.Instance.createElement(this.model.contentComponentName, this.model.contentComponentData);
|
|
1502
|
-
return
|
|
1502
|
+
return xn.createElement("div", { className: "sv-popup__content" }, contentComponent);
|
|
1503
1503
|
};
|
|
1504
1504
|
PopupContainer.prototype.renderHeaderPopup = function (popupModel) {
|
|
1505
1505
|
return null;
|
|
1506
1506
|
};
|
|
1507
1507
|
PopupContainer.prototype.renderFooter = function (popuModel) {
|
|
1508
|
-
return (
|
|
1509
|
-
|
|
1508
|
+
return (xn.createElement("div", { className: "sv-popup__body-footer" },
|
|
1509
|
+
xn.createElement(action_bar_SurveyActionBar, { model: popuModel.footerToolbar })));
|
|
1510
1510
|
};
|
|
1511
1511
|
PopupContainer.prototype.render = function () {
|
|
1512
1512
|
var _this = this;
|
|
@@ -1516,10 +1516,16 @@ var popup_PopupContainer = /** @class */ (function (_super) {
|
|
|
1516
1516
|
.append(this.model.styleClass)
|
|
1517
1517
|
.toString();
|
|
1518
1518
|
var style = { display: this.model.isVisible ? "" : "none", };
|
|
1519
|
-
return (
|
|
1519
|
+
return (xn.createElement("div", { tabIndex: -1, className: className, style: style, onClick: function (e) {
|
|
1520
1520
|
_this.model.clickOutside(e);
|
|
1521
1521
|
}, onKeyDown: this.handleKeydown }, container));
|
|
1522
1522
|
};
|
|
1523
|
+
PopupContainer.prototype.componentDidMount = function () {
|
|
1524
|
+
_super.prototype.componentDidMount.call(this);
|
|
1525
|
+
if (this.model.isVisible) {
|
|
1526
|
+
this.model.updateOnShowing();
|
|
1527
|
+
}
|
|
1528
|
+
};
|
|
1523
1529
|
return PopupContainer;
|
|
1524
1530
|
}(reactquestion_element_SurveyElementBase));
|
|
1525
1531
|
|
|
@@ -1532,7 +1538,7 @@ var popup_PopupDropdownContainer = /** @class */ (function (_super) {
|
|
|
1532
1538
|
var popupDropdownModel = popupModel;
|
|
1533
1539
|
if (!popupDropdownModel)
|
|
1534
1540
|
return null;
|
|
1535
|
-
return (
|
|
1541
|
+
return (xn.createElement("span", { style: {
|
|
1536
1542
|
left: popupDropdownModel.pointerTarget.left,
|
|
1537
1543
|
top: popupDropdownModel.pointerTarget.top,
|
|
1538
1544
|
}, className: "sv-popup__pointer" }));
|
|
@@ -1550,12 +1556,26 @@ function showDialog(dialogOptions, rootElement) {
|
|
|
1550
1556
|
var popupViewModel = Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["createPopupModalViewModel"])(dialogOptions, rootElement);
|
|
1551
1557
|
var onVisibilityChangedCallback = function (_, options) {
|
|
1552
1558
|
if (!options.isVisible) {
|
|
1553
|
-
|
|
1559
|
+
if (typeof xn.createRoot == "function") {
|
|
1560
|
+
if (!!root) {
|
|
1561
|
+
root.unmount();
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
else {
|
|
1565
|
+
xn.unmountComponentAtNode(popupViewModel.container);
|
|
1566
|
+
}
|
|
1554
1567
|
popupViewModel.dispose();
|
|
1555
1568
|
}
|
|
1556
1569
|
};
|
|
1557
1570
|
popupViewModel.onVisibilityChanged.add(onVisibilityChangedCallback);
|
|
1558
|
-
|
|
1571
|
+
var root;
|
|
1572
|
+
if (typeof xn.createRoot == "function") {
|
|
1573
|
+
root = xn.createRoot(popupViewModel.container);
|
|
1574
|
+
root.render(xn.createElement(popup_PopupContainer, { model: popupViewModel }));
|
|
1575
|
+
}
|
|
1576
|
+
else {
|
|
1577
|
+
xn.render(xn.createElement(popup_PopupContainer, { model: popupViewModel }), popupViewModel.container);
|
|
1578
|
+
}
|
|
1559
1579
|
popupViewModel.model.isVisible = true;
|
|
1560
1580
|
return popupViewModel;
|
|
1561
1581
|
}
|
|
@@ -1586,15 +1606,16 @@ var action_bar_item_dropdown_extends = (undefined && undefined.__extends) || (fu
|
|
|
1586
1606
|
var action_bar_item_dropdown_SurveyActionBarItemDropdown = /** @class */ (function (_super) {
|
|
1587
1607
|
action_bar_item_dropdown_extends(SurveyActionBarItemDropdown, _super);
|
|
1588
1608
|
function SurveyActionBarItemDropdown(props) {
|
|
1589
|
-
|
|
1590
|
-
_this.viewModel = new external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["ActionDropdownViewModel"](_this.item);
|
|
1591
|
-
return _this;
|
|
1609
|
+
return _super.call(this, props) || this;
|
|
1592
1610
|
}
|
|
1593
1611
|
SurveyActionBarItemDropdown.prototype.renderInnerButton = function () {
|
|
1594
1612
|
var button = _super.prototype.renderInnerButton.call(this);
|
|
1595
|
-
return (
|
|
1613
|
+
return (xn.createElement(xn.Fragment, null,
|
|
1596
1614
|
button,
|
|
1597
|
-
|
|
1615
|
+
xn.createElement(popup_Popup, { model: this.item.popupModel, getTarget: external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["getActionDropdownButtonTarget"] })));
|
|
1616
|
+
};
|
|
1617
|
+
SurveyActionBarItemDropdown.prototype.componentDidMount = function () {
|
|
1618
|
+
this.viewModel = new external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["ActionDropdownViewModel"](this.item);
|
|
1598
1619
|
};
|
|
1599
1620
|
SurveyActionBarItemDropdown.prototype.componentWillUnmount = function () {
|
|
1600
1621
|
_super.prototype.componentWillUnmount.call(this);
|
|
@@ -1604,7 +1625,7 @@ var action_bar_item_dropdown_SurveyActionBarItemDropdown = /** @class */ (functi
|
|
|
1604
1625
|
}(action_bar_item_SurveyActionBarItem));
|
|
1605
1626
|
|
|
1606
1627
|
ReactElementFactory.Instance.registerElement("sv-action-bar-item-dropdown", function (props) {
|
|
1607
|
-
return
|
|
1628
|
+
return xn.createElement(action_bar_item_dropdown_SurveyActionBarItemDropdown, props);
|
|
1608
1629
|
});
|
|
1609
1630
|
|
|
1610
1631
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/action-bar/action-bar.tsx
|
|
@@ -1633,7 +1654,7 @@ var action_bar_SurveyActionBar = /** @class */ (function (_super) {
|
|
|
1633
1654
|
action_bar_extends(SurveyActionBar, _super);
|
|
1634
1655
|
function SurveyActionBar(props) {
|
|
1635
1656
|
var _this = _super.call(this, props) || this;
|
|
1636
|
-
_this.rootRef =
|
|
1657
|
+
_this.rootRef = xn.createRef();
|
|
1637
1658
|
return _this;
|
|
1638
1659
|
}
|
|
1639
1660
|
Object.defineProperty(SurveyActionBar.prototype, "handleClick", {
|
|
@@ -1685,20 +1706,20 @@ var action_bar_SurveyActionBar = /** @class */ (function (_super) {
|
|
|
1685
1706
|
if (!this.model.hasActions)
|
|
1686
1707
|
return null;
|
|
1687
1708
|
var items = this.renderItems();
|
|
1688
|
-
return (
|
|
1709
|
+
return (xn.createElement("div", { ref: this.rootRef, className: this.model.getRootCss(), onClick: this.handleClick ? function (event) {
|
|
1689
1710
|
event.stopPropagation();
|
|
1690
1711
|
} : undefined }, items));
|
|
1691
1712
|
};
|
|
1692
1713
|
SurveyActionBar.prototype.renderItems = function () {
|
|
1693
1714
|
return this.model.renderedActions.map(function (item, itemIndex) {
|
|
1694
|
-
return (
|
|
1715
|
+
return (xn.createElement(action_bar_item_SurveyAction, { item: item, key: "item" + itemIndex }));
|
|
1695
1716
|
});
|
|
1696
1717
|
};
|
|
1697
1718
|
return SurveyActionBar;
|
|
1698
1719
|
}(reactquestion_element_SurveyElementBase));
|
|
1699
1720
|
|
|
1700
1721
|
ReactElementFactory.Instance.registerElement("sv-action-bar", function (props) {
|
|
1701
|
-
return
|
|
1722
|
+
return xn.createElement(action_bar_SurveyActionBar, props);
|
|
1702
1723
|
});
|
|
1703
1724
|
|
|
1704
1725
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/title/title-content.tsx
|
|
@@ -1742,11 +1763,11 @@ var title_content_TitleContent = /** @class */ (function (_super) {
|
|
|
1742
1763
|
if (this.element.isTitleRenderedAsString)
|
|
1743
1764
|
return reactquestion_element_SurveyElementBase.renderLocString(this.element.locTitle);
|
|
1744
1765
|
var spans = this.renderTitleSpans(this.element.getTitleOwner(), this.cssClasses);
|
|
1745
|
-
return
|
|
1766
|
+
return xn.createElement(xn.Fragment, null, spans);
|
|
1746
1767
|
};
|
|
1747
1768
|
TitleContent.prototype.renderTitleSpans = function (element, cssClasses) {
|
|
1748
1769
|
var getSpaceSpan = function (key) {
|
|
1749
|
-
return (
|
|
1770
|
+
return (xn.createElement("span", { "data-key": key, key: key }, "\u00A0"));
|
|
1750
1771
|
};
|
|
1751
1772
|
var spans = [];
|
|
1752
1773
|
if (element.isRequireTextOnStart) {
|
|
@@ -1755,7 +1776,7 @@ var title_content_TitleContent = /** @class */ (function (_super) {
|
|
|
1755
1776
|
}
|
|
1756
1777
|
var questionNumber = element.no;
|
|
1757
1778
|
if (questionNumber) {
|
|
1758
|
-
spans.push(
|
|
1779
|
+
spans.push(xn.createElement("span", { "data-key": "q_num", key: "q_num", className: element.cssTitleNumber, style: { position: "static" }, "aria-hidden": true }, questionNumber));
|
|
1759
1780
|
spans.push(getSpaceSpan("num-sp"));
|
|
1760
1781
|
}
|
|
1761
1782
|
if (element.isRequireTextBeforeTitle) {
|
|
@@ -1770,10 +1791,10 @@ var title_content_TitleContent = /** @class */ (function (_super) {
|
|
|
1770
1791
|
return spans;
|
|
1771
1792
|
};
|
|
1772
1793
|
TitleContent.prototype.renderRequireText = function (element) {
|
|
1773
|
-
return (
|
|
1794
|
+
return (xn.createElement("span", { "data-key": "req-text", key: "req-text", className: element.cssRequiredText, "aria-hidden": true }, element.requiredText));
|
|
1774
1795
|
};
|
|
1775
1796
|
return TitleContent;
|
|
1776
|
-
}(
|
|
1797
|
+
}(xn.Component));
|
|
1777
1798
|
|
|
1778
1799
|
|
|
1779
1800
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/title/title-actions.tsx
|
|
@@ -1817,19 +1838,19 @@ var title_actions_TitleActions = /** @class */ (function (_super) {
|
|
|
1817
1838
|
configurable: true
|
|
1818
1839
|
});
|
|
1819
1840
|
TitleActions.prototype.render = function () {
|
|
1820
|
-
var titleContent =
|
|
1841
|
+
var titleContent = xn.createElement(title_content_TitleContent, { element: this.element, cssClasses: this.cssClasses });
|
|
1821
1842
|
if (!this.element.hasTitleActions)
|
|
1822
1843
|
return titleContent;
|
|
1823
|
-
return (
|
|
1824
|
-
|
|
1825
|
-
|
|
1844
|
+
return (xn.createElement("div", { className: "sv-title-actions" },
|
|
1845
|
+
xn.createElement("span", { className: "sv-title-actions__title" }, titleContent),
|
|
1846
|
+
xn.createElement(action_bar_SurveyActionBar, { model: this.element.getTitleToolbar() })));
|
|
1826
1847
|
};
|
|
1827
1848
|
return TitleActions;
|
|
1828
|
-
}(
|
|
1849
|
+
}(xn.Component));
|
|
1829
1850
|
|
|
1830
1851
|
external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["RendererFactory"].Instance.registerRenderer("element", "title-actions", "sv-title-actions");
|
|
1831
1852
|
ReactElementFactory.Instance.registerElement("sv-title-actions", function (props) {
|
|
1832
|
-
return
|
|
1853
|
+
return xn.createElement(title_actions_TitleActions, props);
|
|
1833
1854
|
});
|
|
1834
1855
|
|
|
1835
1856
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/title/title-element.tsx
|
|
@@ -1868,7 +1889,7 @@ var title_element_TitleElement = /** @class */ (function (_super) {
|
|
|
1868
1889
|
if (!element || !element.hasTitle)
|
|
1869
1890
|
return null;
|
|
1870
1891
|
var ariaLabel = element.titleAriaLabel || undefined;
|
|
1871
|
-
var titleContent = (
|
|
1892
|
+
var titleContent = (xn.createElement(title_actions_TitleActions, { element: element, cssClasses: element.cssClasses }));
|
|
1872
1893
|
var onClick = undefined;
|
|
1873
1894
|
var onKeyUp = undefined;
|
|
1874
1895
|
if (element.hasTitleEvents) {
|
|
@@ -1877,10 +1898,10 @@ var title_element_TitleElement = /** @class */ (function (_super) {
|
|
|
1877
1898
|
};
|
|
1878
1899
|
}
|
|
1879
1900
|
var CustomTag = element.titleTagName;
|
|
1880
|
-
return (
|
|
1901
|
+
return (xn.createElement(CustomTag, { className: element.cssTitle, id: element.ariaTitleId, "aria-label": ariaLabel, tabIndex: element.titleTabIndex, "aria-expanded": element.titleAriaExpanded, role: element.titleAriaRole, onClick: onClick, onKeyUp: onKeyUp }, titleContent));
|
|
1881
1902
|
};
|
|
1882
1903
|
return TitleElement;
|
|
1883
|
-
}(
|
|
1904
|
+
}(xn.Component));
|
|
1884
1905
|
|
|
1885
1906
|
|
|
1886
1907
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_factory.tsx
|
|
@@ -1937,13 +1958,13 @@ var character_counter_CharacterCounterComponent = /** @class */ (function (_supe
|
|
|
1937
1958
|
return this.props.counter;
|
|
1938
1959
|
};
|
|
1939
1960
|
CharacterCounterComponent.prototype.renderElement = function () {
|
|
1940
|
-
return (
|
|
1961
|
+
return (xn.createElement("div", { className: this.props.remainingCharacterCounter }, this.props.counter.remainingCharacterCounter));
|
|
1941
1962
|
};
|
|
1942
1963
|
return CharacterCounterComponent;
|
|
1943
1964
|
}(reactquestion_element_SurveyElementBase));
|
|
1944
1965
|
|
|
1945
1966
|
ReactElementFactory.Instance.registerElement("sv-character-counter", function (props) {
|
|
1946
|
-
return
|
|
1967
|
+
return xn.createElement(character_counter_CharacterCounterComponent, props);
|
|
1947
1968
|
});
|
|
1948
1969
|
|
|
1949
1970
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/text-area.tsx
|
|
@@ -1984,16 +2005,13 @@ var text_area_TextAreaComponent = /** @class */ (function (_super) {
|
|
|
1984
2005
|
};
|
|
1985
2006
|
TextAreaComponent.prototype.renderElement = function () {
|
|
1986
2007
|
var _this = this;
|
|
1987
|
-
return (
|
|
1988
|
-
};
|
|
1989
|
-
TextAreaComponent.prototype.componentWillUnmount = function () {
|
|
1990
|
-
this.viewModel.dispose();
|
|
2008
|
+
return (xn.createElement("textarea", { id: this.viewModel.id, className: this.viewModel.className, ref: function (textarea) { return (_this.viewModel.setElement(textarea)); }, 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 (event) { _this.viewModel.onTextAreaInput(event); }, onFocus: function (event) { _this.viewModel.onTextAreaFocus(event); }, onBlur: function (event) { _this.viewModel.onTextAreaBlur(event); }, onKeyDown: function (event) { _this.viewModel.onTextAreaKeyDown(event); }, "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 } }));
|
|
1991
2009
|
};
|
|
1992
2010
|
return TextAreaComponent;
|
|
1993
2011
|
}(reactquestion_element_SurveyElementBase));
|
|
1994
2012
|
|
|
1995
2013
|
ReactElementFactory.Instance.registerElement("sv-text-area", function (props) {
|
|
1996
|
-
return
|
|
2014
|
+
return xn.createElement(text_area_TextAreaComponent, props);
|
|
1997
2015
|
});
|
|
1998
2016
|
|
|
1999
2017
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_comment.tsx
|
|
@@ -2197,22 +2215,22 @@ var element_header_SurveyElementHeader = /** @class */ (function (_super) {
|
|
|
2197
2215
|
});
|
|
2198
2216
|
SurveyElementHeader.prototype.render = function () {
|
|
2199
2217
|
var element = this.element;
|
|
2200
|
-
var title = element.hasTitle ? (
|
|
2218
|
+
var title = element.hasTitle ? (xn.createElement(title_element_TitleElement, { element: element })) : null;
|
|
2201
2219
|
var description = element.hasDescriptionUnderTitle
|
|
2202
2220
|
? reactquestion_element_SurveyElementBase.renderQuestionDescription(this.element)
|
|
2203
2221
|
: null;
|
|
2204
|
-
var additionalTitleToolbarElement = element.hasAdditionalTitleToolbar ?
|
|
2222
|
+
var additionalTitleToolbarElement = element.hasAdditionalTitleToolbar ? xn.createElement(action_bar_SurveyActionBar, { model: element.additionalTitleToolbar }) : null;
|
|
2205
2223
|
var headerStyle = { width: undefined };
|
|
2206
2224
|
if (element instanceof external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["Question"]) {
|
|
2207
2225
|
headerStyle.width = element.titleWidth;
|
|
2208
2226
|
}
|
|
2209
|
-
return (
|
|
2227
|
+
return (xn.createElement("div", { className: element.cssHeader, onClick: function (e) { return element.clickTitleFunction && element.clickTitleFunction(e.nativeEvent); }, style: headerStyle },
|
|
2210
2228
|
title,
|
|
2211
2229
|
description,
|
|
2212
2230
|
additionalTitleToolbarElement));
|
|
2213
2231
|
};
|
|
2214
2232
|
return SurveyElementHeader;
|
|
2215
|
-
}(
|
|
2233
|
+
}(xn.Component));
|
|
2216
2234
|
|
|
2217
2235
|
|
|
2218
2236
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion.tsx
|
|
@@ -2701,7 +2719,7 @@ var survey_header_SurveyHeader = /** @class */ (function (_super) {
|
|
|
2701
2719
|
function SurveyHeader(props) {
|
|
2702
2720
|
var _this = _super.call(this, props) || this;
|
|
2703
2721
|
_this.state = { changed: 0 };
|
|
2704
|
-
_this.rootRef =
|
|
2722
|
+
_this.rootRef = xn.createRef();
|
|
2705
2723
|
return _this;
|
|
2706
2724
|
}
|
|
2707
2725
|
Object.defineProperty(SurveyHeader.prototype, "survey", {
|
|
@@ -2732,9 +2750,9 @@ var survey_header_SurveyHeader = /** @class */ (function (_super) {
|
|
|
2732
2750
|
if (!this.survey.renderedHasTitle)
|
|
2733
2751
|
return null;
|
|
2734
2752
|
var description = reactquestion_element_SurveyElementBase.renderLocString(this.survey.locDescription);
|
|
2735
|
-
return (
|
|
2736
|
-
|
|
2737
|
-
this.survey.renderedHasDescription ?
|
|
2753
|
+
return (xn.createElement("div", { className: this.css.headerText, style: { maxWidth: this.survey.titleMaxWidth } },
|
|
2754
|
+
xn.createElement(title_element_TitleElement, { element: this.survey }),
|
|
2755
|
+
this.survey.renderedHasDescription ? xn.createElement("div", { className: this.css.description }, description) : null));
|
|
2738
2756
|
};
|
|
2739
2757
|
SurveyHeader.prototype.renderLogoImage = function (isRender) {
|
|
2740
2758
|
if (!isRender)
|
|
@@ -2748,17 +2766,17 @@ var survey_header_SurveyHeader = /** @class */ (function (_super) {
|
|
|
2748
2766
|
SurveyHeader.prototype.render = function () {
|
|
2749
2767
|
if (!this.survey.renderedHasHeader)
|
|
2750
2768
|
return null;
|
|
2751
|
-
return (
|
|
2769
|
+
return (xn.createElement("div", { className: this.css.header, ref: this.rootRef },
|
|
2752
2770
|
this.renderLogoImage(this.survey.isLogoBefore),
|
|
2753
2771
|
this.renderTitle(),
|
|
2754
2772
|
this.renderLogoImage(this.survey.isLogoAfter),
|
|
2755
|
-
|
|
2773
|
+
xn.createElement("div", { className: this.css.headerClose })));
|
|
2756
2774
|
};
|
|
2757
2775
|
return SurveyHeader;
|
|
2758
|
-
}(
|
|
2776
|
+
}(xn.Component));
|
|
2759
2777
|
|
|
2760
2778
|
ReactElementFactory.Instance.registerElement("survey-header", function (props) {
|
|
2761
|
-
return
|
|
2779
|
+
return xn.createElement(survey_header_SurveyHeader, props);
|
|
2762
2780
|
});
|
|
2763
2781
|
|
|
2764
2782
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/brand-info.tsx
|
|
@@ -2784,17 +2802,17 @@ var brand_info_BrandInfo = /** @class */ (function (_super) {
|
|
|
2784
2802
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2785
2803
|
}
|
|
2786
2804
|
BrandInfo.prototype.render = function () {
|
|
2787
|
-
return (
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2805
|
+
return (xn.createElement("div", { className: "sv-brand-info" },
|
|
2806
|
+
xn.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" },
|
|
2807
|
+
xn.createElement("img", { src: "https://surveyjs.io/Content/Images/poweredby.svg" })),
|
|
2808
|
+
xn.createElement("div", { className: "sv-brand-info__text" },
|
|
2791
2809
|
"Try and see how easy it is to ",
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2810
|
+
xn.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")),
|
|
2811
|
+
xn.createElement("div", { className: "sv-brand-info__terms" },
|
|
2812
|
+
xn.createElement("a", { href: "https://surveyjs.io/TermsOfUse" }, "Terms of Use & Privacy Statement"))));
|
|
2795
2813
|
};
|
|
2796
2814
|
return BrandInfo;
|
|
2797
|
-
}(
|
|
2815
|
+
}(xn.Component));
|
|
2798
2816
|
|
|
2799
2817
|
|
|
2800
2818
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/notifier.tsx
|
|
@@ -2836,15 +2854,15 @@ var notifier_NotifierComponent = /** @class */ (function (_super) {
|
|
|
2836
2854
|
if (!this.notifier.isDisplayed)
|
|
2837
2855
|
return null;
|
|
2838
2856
|
var style = { visibility: this.notifier.active ? "visible" : "hidden" };
|
|
2839
|
-
return (
|
|
2840
|
-
|
|
2841
|
-
|
|
2857
|
+
return (xn.createElement("div", { className: this.notifier.css, style: style, role: "alert", "aria-live": "polite" },
|
|
2858
|
+
xn.createElement("span", null, this.notifier.message),
|
|
2859
|
+
xn.createElement(action_bar_SurveyActionBar, { model: this.notifier.actionBar })));
|
|
2842
2860
|
};
|
|
2843
2861
|
return NotifierComponent;
|
|
2844
2862
|
}(reactquestion_element_SurveyElementBase));
|
|
2845
2863
|
|
|
2846
2864
|
ReactElementFactory.Instance.registerElement("sv-notifier", function (props) {
|
|
2847
|
-
return
|
|
2865
|
+
return xn.createElement(notifier_NotifierComponent, props);
|
|
2848
2866
|
});
|
|
2849
2867
|
|
|
2850
2868
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/components-container.tsx
|
|
@@ -2878,19 +2896,19 @@ var components_container_ComponentsContainer = /** @class */ (function (_super)
|
|
|
2878
2896
|
return null;
|
|
2879
2897
|
}
|
|
2880
2898
|
if (!needRenderWrapper) {
|
|
2881
|
-
return
|
|
2899
|
+
return xn.createElement(xn.Fragment, null, components.map(function (component) {
|
|
2882
2900
|
return ReactElementFactory.Instance.createElement(component.component, { survey: _this.props.survey, model: component.data, container: _this.props.container, key: component.id });
|
|
2883
2901
|
}));
|
|
2884
2902
|
}
|
|
2885
|
-
return
|
|
2903
|
+
return xn.createElement("div", { className: "sv-components-column" + " sv-components-container-" + this.props.container }, components.map(function (component) {
|
|
2886
2904
|
return ReactElementFactory.Instance.createElement(component.component, { survey: _this.props.survey, model: component.data, container: _this.props.container, key: component.id });
|
|
2887
2905
|
}));
|
|
2888
2906
|
};
|
|
2889
2907
|
return ComponentsContainer;
|
|
2890
|
-
}(
|
|
2908
|
+
}(xn.Component));
|
|
2891
2909
|
|
|
2892
2910
|
ReactElementFactory.Instance.registerElement("sv-components-container", function (props) {
|
|
2893
|
-
return
|
|
2911
|
+
return xn.createElement(components_container_ComponentsContainer, props);
|
|
2894
2912
|
});
|
|
2895
2913
|
|
|
2896
2914
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/svgbundle.tsx
|
|
@@ -2915,7 +2933,7 @@ var svgbundle_SvgBundleComponent = /** @class */ (function (_super) {
|
|
|
2915
2933
|
svgbundle_extends(SvgBundleComponent, _super);
|
|
2916
2934
|
function SvgBundleComponent(props) {
|
|
2917
2935
|
var _this = _super.call(this, props) || this;
|
|
2918
|
-
_this.containerRef =
|
|
2936
|
+
_this.containerRef = xn.createRef();
|
|
2919
2937
|
return _this;
|
|
2920
2938
|
}
|
|
2921
2939
|
SvgBundleComponent.prototype.componentDidMount = function () {
|
|
@@ -2927,10 +2945,10 @@ var svgbundle_SvgBundleComponent = /** @class */ (function (_super) {
|
|
|
2927
2945
|
var svgStyle = {
|
|
2928
2946
|
display: "none"
|
|
2929
2947
|
};
|
|
2930
|
-
return
|
|
2948
|
+
return xn.createElement("svg", { style: svgStyle, id: "sv-icon-holder-global-container", ref: this.containerRef });
|
|
2931
2949
|
};
|
|
2932
2950
|
return SvgBundleComponent;
|
|
2933
|
-
}(
|
|
2951
|
+
}(xn.Component));
|
|
2934
2952
|
|
|
2935
2953
|
|
|
2936
2954
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactSurvey.tsx
|
|
@@ -3003,6 +3021,7 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
3003
3021
|
if (!!el)
|
|
3004
3022
|
this.survey.afterRenderSurvey(el);
|
|
3005
3023
|
this.survey.startTimerFromUI();
|
|
3024
|
+
this.setSurveyEvents();
|
|
3006
3025
|
}
|
|
3007
3026
|
};
|
|
3008
3027
|
Survey.prototype.shouldComponentUpdate = function (nextProps, nextState) {
|
|
@@ -3159,7 +3178,6 @@ var reactSurvey_Survey = /** @class */ (function (_super) {
|
|
|
3159
3178
|
if (!!newProps.css) {
|
|
3160
3179
|
this.survey.css = this.css;
|
|
3161
3180
|
}
|
|
3162
|
-
this.setSurveyEvents();
|
|
3163
3181
|
};
|
|
3164
3182
|
Survey.prototype.isModelJSONChanged = function (newProps) {
|
|
3165
3183
|
if (!!newProps["model"]) {
|
|
@@ -3235,10 +3253,10 @@ ReactElementFactory.Instance.registerElement("survey", function (props) {
|
|
|
3235
3253
|
function attachKey2click(element, viewModel, options) {
|
|
3236
3254
|
if (options === void 0) { options = { processEsc: true, disableTabStop: false }; }
|
|
3237
3255
|
if ((!!viewModel && viewModel.disableTabStop) || (!!options && options.disableTabStop)) {
|
|
3238
|
-
return
|
|
3256
|
+
return sn(element, { tabIndex: -1 });
|
|
3239
3257
|
}
|
|
3240
3258
|
options = __assign({}, options);
|
|
3241
|
-
return
|
|
3259
|
+
return sn(element, {
|
|
3242
3260
|
tabIndex: 0,
|
|
3243
3261
|
onKeyUp: function (evt) {
|
|
3244
3262
|
evt.preventDefault();
|
|
@@ -4193,9 +4211,9 @@ var rating_item_RatingItem = /** @class */ (function (_super) {
|
|
|
4193
4211
|
}
|
|
4194
4212
|
RatingItem.prototype.render = function () {
|
|
4195
4213
|
var itemText = this.renderLocString(this.item.locText);
|
|
4196
|
-
return (
|
|
4197
|
-
|
|
4198
|
-
|
|
4214
|
+
return (xn.createElement("label", { onMouseDown: this.handleOnMouseDown, className: this.question.getItemClassByText(this.item.itemValue, this.item.text) },
|
|
4215
|
+
xn.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 }),
|
|
4216
|
+
xn.createElement("span", { className: this.question.cssClasses.itemText, "data-text": this.item.text }, itemText)));
|
|
4199
4217
|
};
|
|
4200
4218
|
RatingItem.prototype.componentDidMount = function () {
|
|
4201
4219
|
_super.prototype.componentDidMount.call(this);
|
|
@@ -4204,7 +4222,7 @@ var rating_item_RatingItem = /** @class */ (function (_super) {
|
|
|
4204
4222
|
}(RatingItemBase));
|
|
4205
4223
|
|
|
4206
4224
|
ReactElementFactory.Instance.registerElement("sv-rating-item", function (props) {
|
|
4207
|
-
return
|
|
4225
|
+
return xn.createElement(rating_item_RatingItem, props);
|
|
4208
4226
|
});
|
|
4209
4227
|
|
|
4210
4228
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/rating/rating-item-star.tsx
|
|
@@ -4234,16 +4252,16 @@ var rating_item_star_RatingItemStar = /** @class */ (function (_super) {
|
|
|
4234
4252
|
}
|
|
4235
4253
|
RatingItemStar.prototype.render = function () {
|
|
4236
4254
|
var _this = this;
|
|
4237
|
-
return (
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4255
|
+
return (xn.createElement("label", { onMouseDown: this.handleOnMouseDown, className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); } },
|
|
4256
|
+
xn.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 }),
|
|
4257
|
+
xn.createElement(svg_icon_SvgIcon, { className: "sv-star", size: "auto", iconName: this.question.itemStarIcon, title: this.item.text }),
|
|
4258
|
+
xn.createElement(svg_icon_SvgIcon, { className: "sv-star-2", size: "auto", iconName: this.question.itemStarIconAlt, title: this.item.text })));
|
|
4241
4259
|
};
|
|
4242
4260
|
return RatingItemStar;
|
|
4243
4261
|
}(RatingItemBase));
|
|
4244
4262
|
|
|
4245
4263
|
ReactElementFactory.Instance.registerElement("sv-rating-item-star", function (props) {
|
|
4246
|
-
return
|
|
4264
|
+
return xn.createElement(rating_item_star_RatingItemStar, props);
|
|
4247
4265
|
});
|
|
4248
4266
|
|
|
4249
4267
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/rating/rating-item-smiley.tsx
|
|
@@ -4273,15 +4291,15 @@ var rating_item_smiley_RatingItemSmiley = /** @class */ (function (_super) {
|
|
|
4273
4291
|
}
|
|
4274
4292
|
RatingItemSmiley.prototype.render = function () {
|
|
4275
4293
|
var _this = this;
|
|
4276
|
-
return (
|
|
4277
|
-
|
|
4278
|
-
|
|
4294
|
+
return (xn.createElement("label", { onMouseDown: this.handleOnMouseDown, style: this.question.getItemStyle(this.item.itemValue, this.item.highlight), className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); } },
|
|
4295
|
+
xn.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 }),
|
|
4296
|
+
xn.createElement(svg_icon_SvgIcon, { size: "auto", iconName: this.question.getItemSmileyIconName(this.item.itemValue), title: this.item.text })));
|
|
4279
4297
|
};
|
|
4280
4298
|
return RatingItemSmiley;
|
|
4281
4299
|
}(RatingItemBase));
|
|
4282
4300
|
|
|
4283
4301
|
ReactElementFactory.Instance.registerElement("sv-rating-item-smiley", function (props) {
|
|
4284
|
-
return
|
|
4302
|
+
return xn.createElement(rating_item_smiley_RatingItemSmiley, props);
|
|
4285
4303
|
});
|
|
4286
4304
|
|
|
4287
4305
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/rating/rating-dropdown-item.tsx
|
|
@@ -4323,20 +4341,20 @@ var rating_dropdown_item_RatingDropdownItem = /** @class */ (function (_super) {
|
|
|
4323
4341
|
return null;
|
|
4324
4342
|
var item = this.props.item;
|
|
4325
4343
|
var description = this.renderDescription(item);
|
|
4326
|
-
return (
|
|
4327
|
-
|
|
4344
|
+
return (xn.createElement("div", { className: "sd-rating-dropdown-item" },
|
|
4345
|
+
xn.createElement("span", { className: "sd-rating-dropdown-item_text" }, item.title),
|
|
4328
4346
|
description));
|
|
4329
4347
|
};
|
|
4330
4348
|
RatingDropdownItem.prototype.renderDescription = function (item) {
|
|
4331
4349
|
if (!item.description)
|
|
4332
4350
|
return null;
|
|
4333
|
-
return (
|
|
4351
|
+
return (xn.createElement("div", { className: "sd-rating-dropdown-item_description" }, this.renderLocString(item.description, undefined, "locString")));
|
|
4334
4352
|
};
|
|
4335
4353
|
return RatingDropdownItem;
|
|
4336
4354
|
}(reactquestion_element_SurveyElementBase));
|
|
4337
4355
|
|
|
4338
4356
|
ReactElementFactory.Instance.registerElement("sv-rating-dropdown-item", function (props) {
|
|
4339
|
-
return
|
|
4357
|
+
return xn.createElement(rating_dropdown_item_RatingDropdownItem, props);
|
|
4340
4358
|
});
|
|
4341
4359
|
|
|
4342
4360
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/tagbox-filter.tsx
|
|
@@ -4463,6 +4481,10 @@ var dropdown_item_SurveyQuestionOptionItem = /** @class */ (function (_super) {
|
|
|
4463
4481
|
_super.prototype.componentDidUpdate.call(this, prevProps, prevState);
|
|
4464
4482
|
this.setupModel();
|
|
4465
4483
|
};
|
|
4484
|
+
SurveyQuestionOptionItem.prototype.componentDidMount = function () {
|
|
4485
|
+
_super.prototype.componentDidMount.call(this);
|
|
4486
|
+
this.setupModel();
|
|
4487
|
+
};
|
|
4466
4488
|
SurveyQuestionOptionItem.prototype.componentWillUnmount = function () {
|
|
4467
4489
|
_super.prototype.componentWillUnmount.call(this);
|
|
4468
4490
|
if (!!this.item) {
|
|
@@ -5250,15 +5272,15 @@ var file_choose_button_SurveyFileChooseButton = /** @class */ (function (_super)
|
|
|
5250
5272
|
});
|
|
5251
5273
|
SurveyFileChooseButton.prototype.render = function () {
|
|
5252
5274
|
var _this = this;
|
|
5253
|
-
return attachKey2click(
|
|
5254
|
-
(!!this.question.cssClasses.chooseFileIconId) ?
|
|
5255
|
-
|
|
5275
|
+
return attachKey2click(xn.createElement("label", { tabIndex: 0, className: this.question.getChooseFileCss(), htmlFor: this.question.inputId, "aria-label": this.question.chooseButtonText, onClick: function (e) { return _this.question.chooseFile(e.nativeEvent); } },
|
|
5276
|
+
(!!this.question.cssClasses.chooseFileIconId) ? xn.createElement(svg_icon_SvgIcon, { title: this.question.chooseButtonText, iconName: this.question.cssClasses.chooseFileIconId, size: "auto" }) : null,
|
|
5277
|
+
xn.createElement("span", null, this.question.chooseButtonText)));
|
|
5256
5278
|
};
|
|
5257
5279
|
return SurveyFileChooseButton;
|
|
5258
5280
|
}(ReactSurveyElement));
|
|
5259
5281
|
|
|
5260
5282
|
ReactElementFactory.Instance.registerElement("sv-file-choose-btn", function (props) {
|
|
5261
|
-
return
|
|
5283
|
+
return xn.createElement(file_choose_button_SurveyFileChooseButton, props);
|
|
5262
5284
|
});
|
|
5263
5285
|
|
|
5264
5286
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_file.tsx
|
|
@@ -5414,22 +5436,22 @@ var file_item_SurveyFileItem = /** @class */ (function (_super) {
|
|
|
5414
5436
|
var _this = this;
|
|
5415
5437
|
if (!className || !val.name)
|
|
5416
5438
|
return null;
|
|
5417
|
-
return (
|
|
5418
|
-
|
|
5439
|
+
return (xn.createElement("div", { className: className },
|
|
5440
|
+
xn.createElement("a", { href: val.content, onClick: function (event) {
|
|
5419
5441
|
_this.question.doDownloadFile(event, val);
|
|
5420
5442
|
}, title: val.name, download: val.name, style: { width: this.question.imageWidth } }, val.name)));
|
|
5421
5443
|
};
|
|
5422
5444
|
SurveyFileItem.prototype.renderElement = function () {
|
|
5423
5445
|
var _this = this;
|
|
5424
5446
|
var val = this.item;
|
|
5425
|
-
return (
|
|
5447
|
+
return (xn.createElement("span", { className: this.question.cssClasses.previewItem, onClick: function (event) { return _this.question.doDownloadFileFromContainer(event); } },
|
|
5426
5448
|
this.renderFileSign(this.question.cssClasses.fileSign, val),
|
|
5427
|
-
|
|
5428
|
-
this.question.canPreviewImage(val) ? (
|
|
5429
|
-
val.name && !this.question.isReadOnly ? (
|
|
5430
|
-
|
|
5449
|
+
xn.createElement("div", { className: this.question.getImageWrapperCss(val) },
|
|
5450
|
+
this.question.canPreviewImage(val) ? (xn.createElement("img", { src: val.content, style: { height: this.question.imageHeight, width: this.question.imageWidth }, alt: "File preview" })) : (this.question.cssClasses.defaultImage ? (xn.createElement(svg_icon_SvgIcon, { iconName: this.question.cssClasses.defaultImageIconId, size: "auto", className: this.question.cssClasses.defaultImage })) : null),
|
|
5451
|
+
val.name && !this.question.isReadOnly ? (xn.createElement("div", { className: this.question.getRemoveButtonCss(), onClick: function (event) { return _this.question.doRemoveFile(val, event); } },
|
|
5452
|
+
xn.createElement("span", { className: this.question.cssClasses.removeFile }, this.question.removeFileCaption),
|
|
5431
5453
|
(this.question.cssClasses.removeFileSvgIconId) ?
|
|
5432
|
-
(
|
|
5454
|
+
(xn.createElement(svg_icon_SvgIcon, { title: this.question.removeFileCaption, iconName: this.question.cssClasses.removeFileSvgIconId, size: "auto", className: this.question.cssClasses.removeFileSvg })) : null)) : null),
|
|
5433
5455
|
this.renderFileSign(this.question.cssClasses.fileSignBottom, val)));
|
|
5434
5456
|
};
|
|
5435
5457
|
SurveyFileItem.prototype.canRender = function () {
|
|
@@ -5479,8 +5501,8 @@ var file_page_SurveyFilePage = /** @class */ (function (_super) {
|
|
|
5479
5501
|
});
|
|
5480
5502
|
SurveyFilePage.prototype.renderElement = function () {
|
|
5481
5503
|
var _this = this;
|
|
5482
|
-
var items = this.page.items.map(function (item, index) { return (
|
|
5483
|
-
return (
|
|
5504
|
+
var items = this.page.items.map(function (item, index) { return (xn.createElement(file_item_SurveyFileItem, { item: item, question: _this.question, key: index })); });
|
|
5505
|
+
return (xn.createElement("div", { className: this.page.css, id: this.page.id }, items));
|
|
5484
5506
|
};
|
|
5485
5507
|
return SurveyFilePage;
|
|
5486
5508
|
}(reactquestion_element_SurveyElementBase));
|
|
@@ -5523,16 +5545,16 @@ var file_preview_SurveyFilePreview = /** @class */ (function (_super) {
|
|
|
5523
5545
|
var _this = this;
|
|
5524
5546
|
if (!className || !val.name)
|
|
5525
5547
|
return null;
|
|
5526
|
-
return (
|
|
5527
|
-
|
|
5548
|
+
return (xn.createElement("div", { className: className },
|
|
5549
|
+
xn.createElement("a", { href: val.content, onClick: function (event) {
|
|
5528
5550
|
_this.question.doDownloadFile(event, val);
|
|
5529
5551
|
}, title: val.name, download: val.name, style: { width: this.question.imageWidth } }, val.name)));
|
|
5530
5552
|
};
|
|
5531
5553
|
SurveyFilePreview.prototype.renderElement = function () {
|
|
5532
5554
|
var _this = this;
|
|
5533
|
-
var content = this.question.supportFileNavigator ? this.question.renderedPages.map(function (page, index) { return (
|
|
5534
|
-
: this.question.previewValue.map(function (item, index) { return (
|
|
5535
|
-
return
|
|
5555
|
+
var content = this.question.supportFileNavigator ? this.question.renderedPages.map(function (page, index) { return (xn.createElement(file_page_SurveyFilePage, { page: page, question: _this.question, key: page.id })); })
|
|
5556
|
+
: this.question.previewValue.map(function (item, index) { return (xn.createElement(file_item_SurveyFileItem, { item: item, question: _this.question, key: index })); });
|
|
5557
|
+
return xn.createElement("div", { className: this.question.cssClasses.fileList || undefined }, content);
|
|
5536
5558
|
};
|
|
5537
5559
|
SurveyFilePreview.prototype.canRender = function () {
|
|
5538
5560
|
return this.question.showPreviewContainer;
|
|
@@ -5541,7 +5563,7 @@ var file_preview_SurveyFilePreview = /** @class */ (function (_super) {
|
|
|
5541
5563
|
}(reactquestion_element_SurveyElementBase));
|
|
5542
5564
|
|
|
5543
5565
|
ReactElementFactory.Instance.registerElement("sv-file-preview", function (props) {
|
|
5544
|
-
return
|
|
5566
|
+
return xn.createElement(file_preview_SurveyFilePreview, props);
|
|
5545
5567
|
});
|
|
5546
5568
|
|
|
5547
5569
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_multipletext.tsx
|
|
@@ -6273,7 +6295,7 @@ var row_MatrixRow = /** @class */ (function (_super) {
|
|
|
6273
6295
|
matrix_row_extends(MatrixRow, _super);
|
|
6274
6296
|
function MatrixRow(props) {
|
|
6275
6297
|
var _this = _super.call(this, props) || this;
|
|
6276
|
-
_this.root =
|
|
6298
|
+
_this.root = xn.createRef();
|
|
6277
6299
|
_this.onPointerDownHandler = function (event) {
|
|
6278
6300
|
_this.parentMatrix.onPointerDown(event.nativeEvent, _this.model.row);
|
|
6279
6301
|
};
|
|
@@ -6324,13 +6346,13 @@ var row_MatrixRow = /** @class */ (function (_super) {
|
|
|
6324
6346
|
var model = this.model;
|
|
6325
6347
|
if (!model.visible)
|
|
6326
6348
|
return null;
|
|
6327
|
-
return (
|
|
6349
|
+
return (xn.createElement("tr", { ref: this.root, className: model.className, "data-sv-drop-target-matrix-row": model.row && model.row.id, onPointerDown: function (event) { return _this.onPointerDownHandler(event); } }, this.props.children));
|
|
6328
6350
|
};
|
|
6329
6351
|
return MatrixRow;
|
|
6330
6352
|
}(reactquestion_element_SurveyElementBase));
|
|
6331
6353
|
|
|
6332
6354
|
ReactElementFactory.Instance.registerElement("sv-matrix-row", function (props) {
|
|
6333
|
-
return
|
|
6355
|
+
return xn.createElement(row_MatrixRow, props);
|
|
6334
6356
|
});
|
|
6335
6357
|
|
|
6336
6358
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx
|
|
@@ -6365,22 +6387,22 @@ var drag_drop_icon_SurveyQuestionMatrixDynamicDragDropIcon = /** @class */ (func
|
|
|
6365
6387
|
configurable: true
|
|
6366
6388
|
});
|
|
6367
6389
|
SurveyQuestionMatrixDynamicDragDropIcon.prototype.renderElement = function () {
|
|
6368
|
-
return
|
|
6390
|
+
return xn.createElement("div", null, this.renderIcon());
|
|
6369
6391
|
};
|
|
6370
6392
|
SurveyQuestionMatrixDynamicDragDropIcon.prototype.renderIcon = function () {
|
|
6371
6393
|
if (this.question.iconDragElement) {
|
|
6372
|
-
return (
|
|
6373
|
-
|
|
6394
|
+
return (xn.createElement("svg", { className: this.question.cssClasses.dragElementDecorator },
|
|
6395
|
+
xn.createElement("use", { xlinkHref: this.question.iconDragElement })));
|
|
6374
6396
|
}
|
|
6375
6397
|
else {
|
|
6376
|
-
return (
|
|
6398
|
+
return (xn.createElement("span", { className: this.question.cssClasses.iconDrag }));
|
|
6377
6399
|
}
|
|
6378
6400
|
};
|
|
6379
6401
|
return SurveyQuestionMatrixDynamicDragDropIcon;
|
|
6380
6402
|
}(ReactSurveyElement));
|
|
6381
6403
|
|
|
6382
6404
|
ReactElementFactory.Instance.registerElement("sv-matrix-drag-drop-icon", function (props) {
|
|
6383
|
-
return
|
|
6405
|
+
return xn.createElement(drag_drop_icon_SurveyQuestionMatrixDynamicDragDropIcon, props);
|
|
6384
6406
|
});
|
|
6385
6407
|
|
|
6386
6408
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_matrixdropdownbase.tsx
|
|
@@ -6998,14 +7020,14 @@ var paneldynamic_add_btn_SurveyQuestionPanelDynamicAddButton = /** @class */ (fu
|
|
|
6998
7020
|
if (!this.question.canAddPanel)
|
|
6999
7021
|
return null;
|
|
7000
7022
|
var btnText = this.renderLocString(this.question.locPanelAddText);
|
|
7001
|
-
return (
|
|
7002
|
-
|
|
7023
|
+
return (xn.createElement("button", { type: "button", id: this.question.addButtonId, className: this.question.getAddButtonCss(), onClick: this.handleClick },
|
|
7024
|
+
xn.createElement("span", { className: this.question.cssClasses.buttonAddText }, btnText)));
|
|
7003
7025
|
};
|
|
7004
7026
|
return SurveyQuestionPanelDynamicAddButton;
|
|
7005
7027
|
}(SurveyQuestionPanelDynamicAction));
|
|
7006
7028
|
|
|
7007
7029
|
ReactElementFactory.Instance.registerElement("sv-paneldynamic-add-btn", function (props) {
|
|
7008
|
-
return
|
|
7030
|
+
return xn.createElement(paneldynamic_add_btn_SurveyQuestionPanelDynamicAddButton, props);
|
|
7009
7031
|
});
|
|
7010
7032
|
|
|
7011
7033
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-next-btn.tsx
|
|
@@ -7038,14 +7060,14 @@ var paneldynamic_next_btn_SurveyQuestionPanelDynamicNextButton = /** @class */ (
|
|
|
7038
7060
|
return _this;
|
|
7039
7061
|
}
|
|
7040
7062
|
SurveyQuestionPanelDynamicNextButton.prototype.renderElement = function () {
|
|
7041
|
-
return (
|
|
7042
|
-
|
|
7063
|
+
return (xn.createElement("div", { title: this.question.panelNextText, onClick: this.handleClick, className: this.question.getNextButtonCss() },
|
|
7064
|
+
xn.createElement(svg_icon_SvgIcon, { iconName: this.question.cssClasses.progressBtnIcon, size: "auto" })));
|
|
7043
7065
|
};
|
|
7044
7066
|
return SurveyQuestionPanelDynamicNextButton;
|
|
7045
7067
|
}(SurveyQuestionPanelDynamicAction));
|
|
7046
7068
|
|
|
7047
7069
|
ReactElementFactory.Instance.registerElement("sv-paneldynamic-next-btn", function (props) {
|
|
7048
|
-
return
|
|
7070
|
+
return xn.createElement(paneldynamic_next_btn_SurveyQuestionPanelDynamicNextButton, props);
|
|
7049
7071
|
});
|
|
7050
7072
|
|
|
7051
7073
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-prev-btn.tsx
|
|
@@ -7078,14 +7100,14 @@ var paneldynamic_prev_btn_SurveyQuestionPanelDynamicPrevButton = /** @class */ (
|
|
|
7078
7100
|
return _this;
|
|
7079
7101
|
}
|
|
7080
7102
|
SurveyQuestionPanelDynamicPrevButton.prototype.renderElement = function () {
|
|
7081
|
-
return (
|
|
7082
|
-
|
|
7103
|
+
return (xn.createElement("div", { title: this.question.panelPrevText, onClick: this.handleClick, className: this.question.getPrevButtonCss() },
|
|
7104
|
+
xn.createElement(svg_icon_SvgIcon, { iconName: this.question.cssClasses.progressBtnIcon, size: "auto" })));
|
|
7083
7105
|
};
|
|
7084
7106
|
return SurveyQuestionPanelDynamicPrevButton;
|
|
7085
7107
|
}(SurveyQuestionPanelDynamicAction));
|
|
7086
7108
|
|
|
7087
7109
|
ReactElementFactory.Instance.registerElement("sv-paneldynamic-prev-btn", function (props) {
|
|
7088
|
-
return
|
|
7110
|
+
return xn.createElement(paneldynamic_prev_btn_SurveyQuestionPanelDynamicPrevButton, props);
|
|
7089
7111
|
});
|
|
7090
7112
|
|
|
7091
7113
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-progress-text.tsx
|
|
@@ -7113,13 +7135,13 @@ var paneldynamic_progress_text_SurveyQuestionPanelDynamicProgressText = /** @cla
|
|
|
7113
7135
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7114
7136
|
}
|
|
7115
7137
|
SurveyQuestionPanelDynamicProgressText.prototype.renderElement = function () {
|
|
7116
|
-
return (
|
|
7138
|
+
return (xn.createElement("div", { className: this.question.cssClasses.progressText }, this.question.progressText));
|
|
7117
7139
|
};
|
|
7118
7140
|
return SurveyQuestionPanelDynamicProgressText;
|
|
7119
7141
|
}(SurveyQuestionPanelDynamicAction));
|
|
7120
7142
|
|
|
7121
7143
|
ReactElementFactory.Instance.registerElement("sv-paneldynamic-progress-text", function (props) {
|
|
7122
|
-
return
|
|
7144
|
+
return xn.createElement(paneldynamic_progress_text_SurveyQuestionPanelDynamicProgressText, props);
|
|
7123
7145
|
});
|
|
7124
7146
|
|
|
7125
7147
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/reactquestion_paneldynamic.tsx
|
|
@@ -7572,13 +7594,13 @@ var list_item_ListItem = /** @class */ (function (_super) {
|
|
|
7572
7594
|
var className = this.model.getItemClass(this.item);
|
|
7573
7595
|
var itemContent = this.item.component || this.model.itemComponent;
|
|
7574
7596
|
var newElement = ReactElementFactory.Instance.createElement(itemContent, { item: this.item, key: this.item.id, model: this.model });
|
|
7575
|
-
var contentWrap =
|
|
7576
|
-
var separator = this.item.needSeparator ?
|
|
7597
|
+
var contentWrap = xn.createElement("div", { style: contentWrapStyle, className: this.model.cssClasses.itemBody, title: this.item.locTitle.calculatedText, onMouseOver: function (event) { _this.model.onItemHover(_this.item); }, onMouseLeave: function (event) { _this.model.onItemLeave(_this.item); } }, newElement);
|
|
7598
|
+
var separator = this.item.needSeparator ? xn.createElement("div", { className: this.model.cssClasses.itemSeparator }) : null;
|
|
7577
7599
|
var isVisible = this.model.isItemVisible(this.item);
|
|
7578
7600
|
var style = {
|
|
7579
7601
|
display: isVisible ? null : "none"
|
|
7580
7602
|
};
|
|
7581
|
-
return attachKey2click(
|
|
7603
|
+
return attachKey2click(xn.createElement("li", { className: className, role: "option", style: style, id: this.item.elementId, "aria-selected": this.model.isItemSelected(this.item), onClick: function (event) {
|
|
7582
7604
|
_this.model.onItemClick(_this.item);
|
|
7583
7605
|
event.stopPropagation();
|
|
7584
7606
|
}, onPointerDown: function (event) { return _this.model.onPointerDown(event, _this.item); } },
|
|
@@ -7593,7 +7615,7 @@ var list_item_ListItem = /** @class */ (function (_super) {
|
|
|
7593
7615
|
}(reactquestion_element_SurveyElementBase));
|
|
7594
7616
|
|
|
7595
7617
|
ReactElementFactory.Instance.registerElement("sv-list-item", function (props) {
|
|
7596
|
-
return
|
|
7618
|
+
return xn.createElement(list_item_ListItem, props);
|
|
7597
7619
|
});
|
|
7598
7620
|
|
|
7599
7621
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/list/list.tsx
|
|
@@ -7631,7 +7653,7 @@ var list_List = /** @class */ (function (_super) {
|
|
|
7631
7653
|
_this.state = {
|
|
7632
7654
|
filterString: _this.model.filterString || ""
|
|
7633
7655
|
};
|
|
7634
|
-
_this.listContainerRef =
|
|
7656
|
+
_this.listContainerRef = xn.createRef();
|
|
7635
7657
|
return _this;
|
|
7636
7658
|
}
|
|
7637
7659
|
Object.defineProperty(List.prototype, "model", {
|
|
@@ -7669,7 +7691,7 @@ var list_List = /** @class */ (function (_super) {
|
|
|
7669
7691
|
}
|
|
7670
7692
|
};
|
|
7671
7693
|
List.prototype.renderElement = function () {
|
|
7672
|
-
return (
|
|
7694
|
+
return (xn.createElement("div", { className: this.model.cssClasses.root, ref: this.listContainerRef },
|
|
7673
7695
|
this.searchElementContent(),
|
|
7674
7696
|
this.emptyContent(),
|
|
7675
7697
|
this.renderList()));
|
|
@@ -7679,7 +7701,7 @@ var list_List = /** @class */ (function (_super) {
|
|
|
7679
7701
|
return null;
|
|
7680
7702
|
var items = this.renderItems();
|
|
7681
7703
|
var ulStyle = { display: this.model.isEmpty ? "none" : null };
|
|
7682
|
-
return (
|
|
7704
|
+
return (xn.createElement("ul", { className: this.model.getListClass(), style: ulStyle, role: "listbox", id: this.model.elementId, onMouseDown: function (e) {
|
|
7683
7705
|
e.preventDefault();
|
|
7684
7706
|
}, onKeyDown: this.handleKeydown, onMouseMove: this.handleMouseMove }, items));
|
|
7685
7707
|
};
|
|
@@ -7693,7 +7715,7 @@ var list_List = /** @class */ (function (_super) {
|
|
|
7693
7715
|
return null;
|
|
7694
7716
|
}
|
|
7695
7717
|
return items.map(function (item, itemIndex) {
|
|
7696
|
-
return (
|
|
7718
|
+
return (xn.createElement(list_item_ListItem, { model: _this.model, item: item, key: "item" + itemIndex }));
|
|
7697
7719
|
});
|
|
7698
7720
|
};
|
|
7699
7721
|
List.prototype.searchElementContent = function () {
|
|
@@ -7711,25 +7733,25 @@ var list_List = /** @class */ (function (_super) {
|
|
|
7711
7733
|
_this.model.goToItems(e);
|
|
7712
7734
|
};
|
|
7713
7735
|
var clearButton = this.model.showSearchClearButton && !!this.model.filterString ?
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
return (
|
|
7717
|
-
|
|
7718
|
-
|
|
7719
|
-
|
|
7736
|
+
xn.createElement("button", { className: this.model.cssClasses.searchClearButtonIcon, onClick: function (event) { _this.model.onClickSearchClearButton(event); } },
|
|
7737
|
+
xn.createElement(svg_icon_SvgIcon, { iconName: "icon-searchclear", size: "auto" })) : null;
|
|
7738
|
+
return (xn.createElement("div", { className: this.model.cssClasses.filter },
|
|
7739
|
+
xn.createElement("div", { className: this.model.cssClasses.filterIcon },
|
|
7740
|
+
xn.createElement(svg_icon_SvgIcon, { iconName: "icon-search", size: "auto" })),
|
|
7741
|
+
xn.createElement("input", { type: "text", className: this.model.cssClasses.filterInput, "aria-label": this.model.filterStringPlaceholder, placeholder: this.model.filterStringPlaceholder, value: this.state.filterString, onKeyUp: onKeyUp, onChange: onChange }),
|
|
7720
7742
|
clearButton));
|
|
7721
7743
|
}
|
|
7722
7744
|
};
|
|
7723
7745
|
List.prototype.emptyContent = function () {
|
|
7724
7746
|
var style = { display: this.model.isEmpty ? null : "none" };
|
|
7725
|
-
return (
|
|
7726
|
-
|
|
7747
|
+
return (xn.createElement("div", { className: this.model.cssClasses.emptyContainer, style: style },
|
|
7748
|
+
xn.createElement("div", { className: this.model.cssClasses.emptyText, "aria-label": this.model.emptyMessage }, this.model.emptyMessage)));
|
|
7727
7749
|
};
|
|
7728
7750
|
return List;
|
|
7729
7751
|
}(reactquestion_element_SurveyElementBase));
|
|
7730
7752
|
|
|
7731
7753
|
ReactElementFactory.Instance.registerElement("sv-list", function (props) {
|
|
7732
|
-
return
|
|
7754
|
+
return xn.createElement(list_List, props);
|
|
7733
7755
|
});
|
|
7734
7756
|
|
|
7735
7757
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/progressToc.tsx
|
|
@@ -8452,12 +8474,12 @@ var reactquestion_buttongroup_SurveyQuestionButtonGroup = /** @class */ (functio
|
|
|
8452
8474
|
};
|
|
8453
8475
|
SurveyQuestionButtonGroup.prototype.renderElement = function () {
|
|
8454
8476
|
var items = this.renderItems();
|
|
8455
|
-
return
|
|
8477
|
+
return xn.createElement("div", { className: this.question.cssClasses.root }, items);
|
|
8456
8478
|
};
|
|
8457
8479
|
SurveyQuestionButtonGroup.prototype.renderItems = function () {
|
|
8458
8480
|
var _this = this;
|
|
8459
8481
|
return this.question.visibleChoices.map(function (item, index) {
|
|
8460
|
-
return (
|
|
8482
|
+
return (xn.createElement(reactquestion_buttongroup_SurveyButtonGroupItem, { key: _this.question.inputId + "_" + index, item: item, question: _this.question, index: index }));
|
|
8461
8483
|
});
|
|
8462
8484
|
};
|
|
8463
8485
|
return SurveyQuestionButtonGroup;
|
|
@@ -8497,21 +8519,21 @@ var reactquestion_buttongroup_SurveyButtonGroupItem = /** @class */ (function (_
|
|
|
8497
8519
|
var icon = this.renderIcon();
|
|
8498
8520
|
var input = this.renderInput();
|
|
8499
8521
|
var caption = this.renderCaption();
|
|
8500
|
-
return (
|
|
8522
|
+
return (xn.createElement("label", { role: "radio", className: this.model.css.label, title: this.model.caption.renderedHtml },
|
|
8501
8523
|
input,
|
|
8502
|
-
|
|
8524
|
+
xn.createElement("div", { className: this.model.css.decorator },
|
|
8503
8525
|
icon,
|
|
8504
8526
|
caption)));
|
|
8505
8527
|
};
|
|
8506
8528
|
SurveyButtonGroupItem.prototype.renderIcon = function () {
|
|
8507
8529
|
if (!!this.model.iconName) {
|
|
8508
|
-
return (
|
|
8530
|
+
return (xn.createElement(svg_icon_SvgIcon, { className: this.model.css.icon, iconName: this.model.iconName, size: this.model.iconSize || 24 }));
|
|
8509
8531
|
}
|
|
8510
8532
|
return null;
|
|
8511
8533
|
};
|
|
8512
8534
|
SurveyButtonGroupItem.prototype.renderInput = function () {
|
|
8513
8535
|
var _this = this;
|
|
8514
|
-
return (
|
|
8536
|
+
return (xn.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 () {
|
|
8515
8537
|
_this.model.onChange();
|
|
8516
8538
|
}, "aria-required": this.model.isRequired, "aria-label": this.model.caption.renderedHtml, "aria-invalid": this.model.hasErrors, "aria-errormessage": this.model.describedBy, role: "radio" }));
|
|
8517
8539
|
};
|
|
@@ -8519,7 +8541,7 @@ var reactquestion_buttongroup_SurveyButtonGroupItem = /** @class */ (function (_
|
|
|
8519
8541
|
if (!this.model.showCaption)
|
|
8520
8542
|
return null;
|
|
8521
8543
|
var caption = this.renderLocString(this.model.caption);
|
|
8522
|
-
return (
|
|
8544
|
+
return (xn.createElement("span", { className: this.model.css.caption, title: this.model.caption.renderedHtml }, caption));
|
|
8523
8545
|
};
|
|
8524
8546
|
return SurveyButtonGroupItem;
|
|
8525
8547
|
}(reactquestion_element_SurveyElementBase));
|
|
@@ -8636,24 +8658,24 @@ var list_item_content_ListItemContent = /** @class */ (function (_super) {
|
|
|
8636
8658
|
var content = [];
|
|
8637
8659
|
var text = this.renderLocString(this.item.locTitle, undefined, "locString");
|
|
8638
8660
|
if (this.item.iconName) {
|
|
8639
|
-
var icon =
|
|
8661
|
+
var icon = xn.createElement(svg_icon_SvgIcon, { key: "icon", className: this.model.cssClasses.itemIcon, iconName: this.item.iconName, size: this.item.iconSize, "aria-label": this.item.title });
|
|
8640
8662
|
content.push(icon);
|
|
8641
|
-
content.push(
|
|
8663
|
+
content.push(xn.createElement("span", { key: "text" }, text));
|
|
8642
8664
|
}
|
|
8643
8665
|
else {
|
|
8644
8666
|
content.push(text);
|
|
8645
8667
|
}
|
|
8646
8668
|
if (this.item.markerIconName) {
|
|
8647
|
-
var icon =
|
|
8669
|
+
var icon = xn.createElement(svg_icon_SvgIcon, { key: "marker", className: this.item.cssClasses.itemMarkerIcon, iconName: this.item.markerIconName, size: this.item.markerIconSize });
|
|
8648
8670
|
content.push(icon);
|
|
8649
8671
|
}
|
|
8650
|
-
return
|
|
8672
|
+
return xn.createElement(xn.Fragment, null, content);
|
|
8651
8673
|
};
|
|
8652
8674
|
return ListItemContent;
|
|
8653
8675
|
}(reactquestion_element_SurveyElementBase));
|
|
8654
8676
|
|
|
8655
8677
|
ReactElementFactory.Instance.registerElement("sv-list-item-content", function (props) {
|
|
8656
|
-
return
|
|
8678
|
+
return xn.createElement(list_item_content_ListItemContent, props);
|
|
8657
8679
|
});
|
|
8658
8680
|
|
|
8659
8681
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/list/list-item-group.tsx
|
|
@@ -8703,15 +8725,15 @@ var list_item_group_ListItemGroup = /** @class */ (function (_super) {
|
|
|
8703
8725
|
if (!this.item)
|
|
8704
8726
|
return null;
|
|
8705
8727
|
var newElement = ReactElementFactory.Instance.createElement("sv-list-item-content", { item: this.item, key: "content" + this.item.id, model: this.model });
|
|
8706
|
-
return
|
|
8728
|
+
return xn.createElement(xn.Fragment, null,
|
|
8707
8729
|
newElement,
|
|
8708
|
-
|
|
8730
|
+
xn.createElement(popup_Popup, { model: (_a = this.item) === null || _a === void 0 ? void 0 : _a.popupModel }));
|
|
8709
8731
|
};
|
|
8710
8732
|
return ListItemGroup;
|
|
8711
8733
|
}(reactquestion_element_SurveyElementBase));
|
|
8712
8734
|
|
|
8713
8735
|
ReactElementFactory.Instance.registerElement("sv-list-item-group", function (props) {
|
|
8714
|
-
return
|
|
8736
|
+
return xn.createElement(list_item_group_ListItemGroup, props);
|
|
8715
8737
|
});
|
|
8716
8738
|
|
|
8717
8739
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/survey-header/logo-image.tsx
|
|
@@ -8746,15 +8768,15 @@ var logo_image_LogoImage = /** @class */ (function (_super) {
|
|
|
8746
8768
|
});
|
|
8747
8769
|
LogoImage.prototype.render = function () {
|
|
8748
8770
|
var content = [];
|
|
8749
|
-
content.push(
|
|
8750
|
-
|
|
8751
|
-
return
|
|
8771
|
+
content.push(xn.createElement("div", { key: "logo-image", className: this.survey.logoClassNames },
|
|
8772
|
+
xn.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 } })));
|
|
8773
|
+
return xn.createElement(xn.Fragment, null, content);
|
|
8752
8774
|
};
|
|
8753
8775
|
return LogoImage;
|
|
8754
|
-
}(
|
|
8776
|
+
}(xn.Component));
|
|
8755
8777
|
|
|
8756
8778
|
ReactElementFactory.Instance.registerElement("sv-logo-image", function (props) {
|
|
8757
|
-
return
|
|
8779
|
+
return xn.createElement(logo_image_LogoImage, props);
|
|
8758
8780
|
});
|
|
8759
8781
|
|
|
8760
8782
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/matrix-actions/remove-button/remove-button.tsx
|
|
@@ -8802,15 +8824,15 @@ var remove_button_SurveyQuestionMatrixDynamicRemoveButton = /** @class */ (funct
|
|
|
8802
8824
|
};
|
|
8803
8825
|
SurveyQuestionMatrixDynamicRemoveButton.prototype.renderElement = function () {
|
|
8804
8826
|
var removeRowText = this.renderLocString(this.question.locRemoveRowText);
|
|
8805
|
-
return (
|
|
8827
|
+
return (xn.createElement("button", { className: this.question.getRemoveRowButtonCss(), type: "button", onClick: this.handleOnRowRemoveClick, disabled: this.question.isInputReadOnly },
|
|
8806
8828
|
removeRowText,
|
|
8807
|
-
|
|
8829
|
+
xn.createElement("span", { className: this.question.cssClasses.iconRemove })));
|
|
8808
8830
|
};
|
|
8809
8831
|
return SurveyQuestionMatrixDynamicRemoveButton;
|
|
8810
8832
|
}(ReactSurveyElement));
|
|
8811
8833
|
|
|
8812
8834
|
ReactElementFactory.Instance.registerElement("sv-matrix-remove-button", function (props) {
|
|
8813
|
-
return
|
|
8835
|
+
return xn.createElement(remove_button_SurveyQuestionMatrixDynamicRemoveButton, props);
|
|
8814
8836
|
});
|
|
8815
8837
|
|
|
8816
8838
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/matrix-actions/detail-button/detail-button.tsx
|
|
@@ -8871,14 +8893,14 @@ var detail_button_SurveyQuestionMatrixDetailButton = /** @class */ (function (_s
|
|
|
8871
8893
|
var isExpanded = this.row.isDetailPanelShowing;
|
|
8872
8894
|
var ariaExpanded = isExpanded;
|
|
8873
8895
|
var ariaControls = isExpanded ? this.row.detailPanelId : undefined;
|
|
8874
|
-
return (
|
|
8875
|
-
|
|
8896
|
+
return (xn.createElement("button", { type: "button", onClick: this.handleOnShowHideClick, className: this.question.getDetailPanelButtonCss(this.row), "aria-expanded": ariaExpanded, "aria-controls": ariaControls },
|
|
8897
|
+
xn.createElement(svg_icon_SvgIcon, { className: this.question.getDetailPanelIconCss(this.row), iconName: this.question.getDetailPanelIconId(this.row), size: "auto" })));
|
|
8876
8898
|
};
|
|
8877
8899
|
return SurveyQuestionMatrixDetailButton;
|
|
8878
8900
|
}(ReactSurveyElement));
|
|
8879
8901
|
|
|
8880
8902
|
ReactElementFactory.Instance.registerElement("sv-matrix-detail-button", function (props) {
|
|
8881
|
-
return
|
|
8903
|
+
return xn.createElement(detail_button_SurveyQuestionMatrixDetailButton, props);
|
|
8882
8904
|
});
|
|
8883
8905
|
|
|
8884
8906
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/paneldynamic-actions/paneldynamic-remove-btn.tsx
|
|
@@ -8911,15 +8933,16 @@ var paneldynamic_remove_btn_SurveyQuestionPanelDynamicRemoveButton = /** @class
|
|
|
8911
8933
|
}
|
|
8912
8934
|
SurveyQuestionPanelDynamicRemoveButton.prototype.renderElement = function () {
|
|
8913
8935
|
var btnText = this.renderLocString(this.question.locPanelRemoveText);
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8936
|
+
var id = this.question.getPanelRemoveButtonId(this.data.panel);
|
|
8937
|
+
return (xn.createElement("button", { id: id, className: this.question.getPanelRemoveButtonCss(), onClick: this.handleClick, type: "button" },
|
|
8938
|
+
xn.createElement("span", { className: this.question.cssClasses.buttonRemoveText }, btnText),
|
|
8939
|
+
xn.createElement("span", { className: this.question.cssClasses.iconRemove })));
|
|
8917
8940
|
};
|
|
8918
8941
|
return SurveyQuestionPanelDynamicRemoveButton;
|
|
8919
8942
|
}(SurveyQuestionPanelDynamicAction));
|
|
8920
8943
|
|
|
8921
8944
|
ReactElementFactory.Instance.registerElement("sv-paneldynamic-remove-btn", function (props) {
|
|
8922
|
-
return
|
|
8945
|
+
return xn.createElement(paneldynamic_remove_btn_SurveyQuestionPanelDynamicRemoveButton, props);
|
|
8923
8946
|
});
|
|
8924
8947
|
|
|
8925
8948
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/survey-actions/survey-nav-button.tsx
|
|
@@ -8957,13 +8980,13 @@ var survey_nav_button_SurveyNavigationButton = /** @class */ (function (_super)
|
|
|
8957
8980
|
return this.item.isVisible;
|
|
8958
8981
|
};
|
|
8959
8982
|
SurveyNavigationButton.prototype.renderElement = function () {
|
|
8960
|
-
return (
|
|
8983
|
+
return (xn.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 }));
|
|
8961
8984
|
};
|
|
8962
8985
|
return SurveyNavigationButton;
|
|
8963
8986
|
}(ReactSurveyElement));
|
|
8964
8987
|
|
|
8965
8988
|
ReactElementFactory.Instance.registerElement("sv-nav-btn", function (props) {
|
|
8966
|
-
return
|
|
8989
|
+
return xn.createElement(survey_nav_button_SurveyNavigationButton, props);
|
|
8967
8990
|
});
|
|
8968
8991
|
|
|
8969
8992
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/string-viewer.tsx
|
|
@@ -8994,7 +9017,7 @@ var string_viewer_SurveyLocStringViewer = /** @class */ (function (_super) {
|
|
|
8994
9017
|
return;
|
|
8995
9018
|
_this.setState({ changed: !!_this.state && _this.state.changed ? _this.state.changed + 1 : 1 });
|
|
8996
9019
|
};
|
|
8997
|
-
_this.rootRef =
|
|
9020
|
+
_this.rootRef = xn.createRef();
|
|
8998
9021
|
return _this;
|
|
8999
9022
|
}
|
|
9000
9023
|
Object.defineProperty(SurveyLocStringViewer.prototype, "locStr", {
|
|
@@ -9042,15 +9065,15 @@ var string_viewer_SurveyLocStringViewer = /** @class */ (function (_super) {
|
|
|
9042
9065
|
var className = this.locStr.allowLineBreaks ? "sv-string-viewer sv-string-viewer--multiline" : "sv-string-viewer";
|
|
9043
9066
|
if (this.locStr.hasHtml) {
|
|
9044
9067
|
var htmlValue = { __html: this.locStr.renderedHtml };
|
|
9045
|
-
return
|
|
9068
|
+
return xn.createElement("span", { ref: this.rootRef, className: className, style: this.style, dangerouslySetInnerHTML: htmlValue });
|
|
9046
9069
|
}
|
|
9047
|
-
return
|
|
9070
|
+
return xn.createElement("span", { ref: this.rootRef, className: className, style: this.style }, this.locStr.renderedHtml);
|
|
9048
9071
|
};
|
|
9049
9072
|
return SurveyLocStringViewer;
|
|
9050
|
-
}(
|
|
9073
|
+
}(xn.Component));
|
|
9051
9074
|
|
|
9052
9075
|
ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["LocalizableString"].defaultRenderer, function (props) {
|
|
9053
|
-
return
|
|
9076
|
+
return xn.createElement(string_viewer_SurveyLocStringViewer, props);
|
|
9054
9077
|
});
|
|
9055
9078
|
|
|
9056
9079
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/question-error.tsx
|
|
@@ -9078,16 +9101,16 @@ var question_error_QuestionErrorComponent = /** @class */ (function (_super) {
|
|
|
9078
9101
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
9079
9102
|
}
|
|
9080
9103
|
QuestionErrorComponent.prototype.render = function () {
|
|
9081
|
-
return (
|
|
9082
|
-
|
|
9083
|
-
|
|
9084
|
-
|
|
9104
|
+
return (xn.createElement("div", null,
|
|
9105
|
+
xn.createElement("span", { className: this.props.cssClasses.error.icon || undefined, "aria-hidden": "true" }),
|
|
9106
|
+
xn.createElement("span", { className: this.props.cssClasses.error.item || undefined },
|
|
9107
|
+
xn.createElement(string_viewer_SurveyLocStringViewer, { locStr: this.props.error.locText }))));
|
|
9085
9108
|
};
|
|
9086
9109
|
return QuestionErrorComponent;
|
|
9087
|
-
}(
|
|
9110
|
+
}(xn.Component));
|
|
9088
9111
|
|
|
9089
9112
|
ReactElementFactory.Instance.registerElement("sv-question-error", function (props) {
|
|
9090
|
-
return
|
|
9113
|
+
return xn.createElement(question_error_QuestionErrorComponent, props);
|
|
9091
9114
|
});
|
|
9092
9115
|
|
|
9093
9116
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/skeleton.tsx
|
|
@@ -9115,13 +9138,13 @@ var skeleton_Skeleton = /** @class */ (function (_super) {
|
|
|
9115
9138
|
}
|
|
9116
9139
|
Skeleton.prototype.render = function () {
|
|
9117
9140
|
var _a, _b;
|
|
9118
|
-
return (
|
|
9141
|
+
return (xn.createElement("div", { className: "sv-skeleton-element", id: (_a = this.props.element) === null || _a === void 0 ? void 0 : _a.id, style: { height: (_b = this.props.element) === null || _b === void 0 ? void 0 : _b.skeletonHeight } }));
|
|
9119
9142
|
};
|
|
9120
9143
|
return Skeleton;
|
|
9121
|
-
}(
|
|
9144
|
+
}(xn.Component));
|
|
9122
9145
|
|
|
9123
9146
|
ReactElementFactory.Instance.registerElement("sv-skeleton", function (props) {
|
|
9124
|
-
return
|
|
9147
|
+
return xn.createElement(skeleton_Skeleton, props);
|
|
9125
9148
|
});
|
|
9126
9149
|
|
|
9127
9150
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/components/header.tsx
|
|
@@ -9164,15 +9187,15 @@ var header_HeaderMobile = /** @class */ (function (_super) {
|
|
|
9164
9187
|
});
|
|
9165
9188
|
};
|
|
9166
9189
|
HeaderMobile.prototype.render = function () {
|
|
9167
|
-
return (
|
|
9168
|
-
this.model.survey.hasLogo ? (
|
|
9169
|
-
this.model.survey.hasTitle ? (
|
|
9170
|
-
|
|
9171
|
-
this.model.survey.renderedHasDescription ? (
|
|
9172
|
-
|
|
9190
|
+
return (xn.createElement("div", { className: "sv-header--mobile" },
|
|
9191
|
+
this.model.survey.hasLogo ? (xn.createElement("div", { className: "sv-header__logo" }, this.renderLogoImage())) : null,
|
|
9192
|
+
this.model.survey.hasTitle ? (xn.createElement("div", { className: "sv-header__title", style: { maxWidth: this.model.textAreaWidth } },
|
|
9193
|
+
xn.createElement(title_element_TitleElement, { element: this.model.survey }))) : null,
|
|
9194
|
+
this.model.survey.renderedHasDescription ? (xn.createElement("div", { className: "sv-header__description", style: { maxWidth: this.model.textAreaWidth } },
|
|
9195
|
+
xn.createElement("div", { className: this.model.survey.css.description }, reactquestion_element_SurveyElementBase.renderLocString(this.model.survey.locDescription)))) : null));
|
|
9173
9196
|
};
|
|
9174
9197
|
return HeaderMobile;
|
|
9175
|
-
}(
|
|
9198
|
+
}(xn.Component));
|
|
9176
9199
|
|
|
9177
9200
|
var header_HeaderCell = /** @class */ (function (_super) {
|
|
9178
9201
|
header_extends(HeaderCell, _super);
|
|
@@ -9194,16 +9217,16 @@ var header_HeaderCell = /** @class */ (function (_super) {
|
|
|
9194
9217
|
});
|
|
9195
9218
|
};
|
|
9196
9219
|
HeaderCell.prototype.render = function () {
|
|
9197
|
-
return (
|
|
9198
|
-
|
|
9199
|
-
this.model.showLogo ? (
|
|
9200
|
-
this.model.showTitle ? (
|
|
9201
|
-
|
|
9202
|
-
this.model.showDescription ? (
|
|
9203
|
-
|
|
9220
|
+
return (xn.createElement("div", { className: this.model.css, style: this.model.style },
|
|
9221
|
+
xn.createElement("div", { className: "sv-header__cell-content", style: this.model.contentStyle },
|
|
9222
|
+
this.model.showLogo ? (xn.createElement("div", { className: "sv-header__logo" }, this.renderLogoImage())) : null,
|
|
9223
|
+
this.model.showTitle ? (xn.createElement("div", { className: "sv-header__title", style: { maxWidth: this.model.textAreaWidth } },
|
|
9224
|
+
xn.createElement(title_element_TitleElement, { element: this.model.survey }))) : null,
|
|
9225
|
+
this.model.showDescription ? (xn.createElement("div", { className: "sv-header__description", style: { maxWidth: this.model.textAreaWidth } },
|
|
9226
|
+
xn.createElement("div", { className: this.model.survey.css.description }, reactquestion_element_SurveyElementBase.renderLocString(this.model.survey.locDescription)))) : null)));
|
|
9204
9227
|
};
|
|
9205
9228
|
return HeaderCell;
|
|
9206
|
-
}(
|
|
9229
|
+
}(xn.Component));
|
|
9207
9230
|
|
|
9208
9231
|
var header_Header = /** @class */ (function (_super) {
|
|
9209
9232
|
header_extends(Header, _super);
|
|
@@ -9227,20 +9250,20 @@ var header_Header = /** @class */ (function (_super) {
|
|
|
9227
9250
|
}
|
|
9228
9251
|
var headerContent = null;
|
|
9229
9252
|
if (this.props.survey.isMobile) {
|
|
9230
|
-
headerContent =
|
|
9253
|
+
headerContent = xn.createElement(header_HeaderMobile, { model: this.model });
|
|
9231
9254
|
}
|
|
9232
9255
|
else {
|
|
9233
|
-
headerContent = (
|
|
9256
|
+
headerContent = (xn.createElement("div", { className: this.model.contentClasses, style: { maxWidth: this.model.maxWidth } }, this.model.cells.map(function (cell, index) { return xn.createElement(header_HeaderCell, { key: index, model: cell }); })));
|
|
9234
9257
|
}
|
|
9235
|
-
return (
|
|
9236
|
-
this.model.backgroundImage ?
|
|
9258
|
+
return (xn.createElement("div", { className: this.model.headerClasses, style: { height: this.model.renderedHeight } },
|
|
9259
|
+
this.model.backgroundImage ? xn.createElement("div", { style: this.model.backgroundImageStyle, className: this.model.backgroundImageClasses }) : null,
|
|
9237
9260
|
headerContent));
|
|
9238
9261
|
};
|
|
9239
9262
|
return Header;
|
|
9240
9263
|
}(reactquestion_element_SurveyElementBase));
|
|
9241
9264
|
|
|
9242
9265
|
ReactElementFactory.Instance.registerElement("sv-header", function (props) {
|
|
9243
|
-
return
|
|
9266
|
+
return xn.createElement(header_Header, props);
|
|
9244
9267
|
});
|
|
9245
9268
|
|
|
9246
9269
|
// CONCATENATED MODULE: ./packages/survey-react-ui/src/string-editor.tsx
|
|
@@ -9309,15 +9332,15 @@ var string_editor_SurveyLocStringEditor = /** @class */ (function (_super) {
|
|
|
9309
9332
|
}
|
|
9310
9333
|
if (this.locStr.hasHtml) {
|
|
9311
9334
|
var htmlValue = { __html: this.locStr.renderedHtml };
|
|
9312
|
-
return (
|
|
9335
|
+
return (xn.createElement("span", { className: "sv-string-editor", contentEditable: "true", suppressContentEditableWarning: true, style: this.style, dangerouslySetInnerHTML: htmlValue, onBlur: this.onInput, onClick: this.onClick }));
|
|
9313
9336
|
}
|
|
9314
|
-
return (
|
|
9337
|
+
return (xn.createElement("span", { className: "sv-string-editor", contentEditable: "true", suppressContentEditableWarning: true, style: this.style, onBlur: this.onInput, onClick: this.onClick }, this.locStr.renderedHtml));
|
|
9315
9338
|
};
|
|
9316
9339
|
return SurveyLocStringEditor;
|
|
9317
|
-
}(
|
|
9340
|
+
}(xn.Component));
|
|
9318
9341
|
|
|
9319
9342
|
ReactElementFactory.Instance.registerElement(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["LocalizableString"].editableRenderer, function (props) {
|
|
9320
|
-
return
|
|
9343
|
+
return xn.createElement(string_editor_SurveyLocStringEditor, props);
|
|
9321
9344
|
});
|
|
9322
9345
|
|
|
9323
9346
|
// CONCATENATED MODULE: ./packages/survey-react-ui/entries/react-ui-model.ts
|
|
@@ -9435,19 +9458,22 @@ var js_ui_assign = (undefined && undefined.__assign) || function () {
|
|
|
9435
9458
|
function renderSurvey(model, element, props) {
|
|
9436
9459
|
if (props === void 0) { props = {}; }
|
|
9437
9460
|
var survey = preact_module_(reactSurvey_Survey, js_ui_assign({ model: model }, props));
|
|
9438
|
-
|
|
9461
|
+
compat_module_$(survey, element);
|
|
9439
9462
|
}
|
|
9440
9463
|
function renderPopupSurvey(model, element, props) {
|
|
9441
9464
|
if (props === void 0) { props = {}; }
|
|
9442
9465
|
var survey = preact_module_(react_popup_survey_PopupSurvey, js_ui_assign({ model: model }, props));
|
|
9443
|
-
|
|
9466
|
+
compat_module_$(survey, element);
|
|
9444
9467
|
}
|
|
9445
9468
|
function doPopupSurvey(props) {
|
|
9446
9469
|
return this.each(function () {
|
|
9447
9470
|
renderPopupSurvey(props.model, this, props);
|
|
9448
9471
|
});
|
|
9449
9472
|
}
|
|
9450
|
-
var
|
|
9473
|
+
var gcontext = globalThis;
|
|
9474
|
+
if (typeof globalThis === "undefined")
|
|
9475
|
+
gcontext = window;
|
|
9476
|
+
var jQueryInst = gcontext["jQuery"] || gcontext["$"];
|
|
9451
9477
|
if (typeof jQueryInst !== "undefined") {
|
|
9452
9478
|
initJquery(jQueryInst);
|
|
9453
9479
|
}
|
|
@@ -9485,7 +9511,7 @@ var preact = compat_module_namespaceObject;
|
|
|
9485
9511
|
|
|
9486
9512
|
|
|
9487
9513
|
|
|
9488
|
-
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.
|
|
9514
|
+
Object(external_root_Survey_commonjs2_survey_core_commonjs_survey_core_amd_survey_core_["checkLibraryVersion"])("" + "1.12.7", "survey-js-ui");
|
|
9489
9515
|
|
|
9490
9516
|
|
|
9491
9517
|
/***/ }),
|