@hellobetterdigitalnz/betterui 0.0.3-150 → 0.0.3-151
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/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -21,5 +21,5 @@ object-assign
|
|
|
21
21
|
(c) Sindre Sorhus
|
|
22
22
|
@license MIT
|
|
23
23
|
*/var $2,l1;function P6(){if(l1)return $2;l1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(o==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}function l(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de",Object.getOwnPropertyNames(o)[0]==="5")return!1;for(var i={},s=0;s<10;s++)i["_"+String.fromCharCode(s)]=s;var a=Object.getOwnPropertyNames(i).map(function(h){return i[h]});if(a.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(h){c[h]=h}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $2=l()?Object.assign:function(o,i){for(var s,a=n(o),c,h=1;h<arguments.length;h++){s=Object(arguments[h]);for(var d in s)t.call(s,d)&&(a[d]=s[d]);if(e){c=e(s);for(var w=0;w<c.length;w++)r.call(s,c[w])&&(a[c[w]]=s[c[w]])}}return a},$2}var T2,o1;function C1(){if(o1)return T2;o1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return T2=e,T2}var E2,s1;function P1(){return s1||(s1=1,E2=Function.call.bind(Object.prototype.hasOwnProperty)),E2}var k2,a1;function O6(){if(a1)return k2;a1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=C1(),r={},n=P1();e=function(o){var i="Warning: "+o;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function l(o,i,s,a,c){if(process.env.NODE_ENV!=="production"){for(var h in o)if(n(o,h)){var d;try{if(typeof o[h]!="function"){var w=Error((a||"React class")+": "+s+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}d=o[h](i,h,a,s,null,t)}catch(L){d=L}if(d&&!(d instanceof Error)&&e((a||"React class")+": type specification of "+s+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in r)){r[d.message]=!0;var u=c?c():"";e("Failed "+s+" type: "+d.message+(u??""))}}}}return l.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},k2=l,k2}var P2,c1;function R6(){if(c1)return P2;c1=1;var e=k1(),t=P6(),r=C1(),n=P1(),l=O6(),o=function(){};process.env.NODE_ENV!=="production"&&(o=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}});function i(){return null}return P2=function(s,a){var c=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function d(v){var Z=v&&(c&&v[c]||v[h]);if(typeof Z=="function")return Z}var w="<<anonymous>>",u={array:j("array"),bigint:j("bigint"),bool:j("boolean"),func:j("function"),number:j("number"),object:j("object"),string:j("string"),symbol:j("symbol"),any:m(),arrayOf:b,element:_(),elementType:f(),instanceOf:y,node:S(),objectOf:B,oneOf:N,oneOfType:$,shape:M,exact:A};function L(v,Z){return v===Z?v!==0||1/v===1/Z:v!==v&&Z!==Z}function H(v,Z){this.message=v,this.data=Z&&typeof Z=="object"?Z:{},this.stack=""}H.prototype=Error.prototype;function p(v){if(process.env.NODE_ENV!=="production")var Z={},O=0;function k(F,E,P,D,K,q,l2){if(D=D||w,q=q||P,l2!==r){if(a){var V=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw V.name="Invariant Violation",V}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var c2=D+":"+P;!Z[c2]&&O<3&&(o("You are manually calling a React.PropTypes validation function for the `"+q+"` prop on `"+D+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),Z[c2]=!0,O++)}}return E[P]==null?F?E[P]===null?new H("The "+K+" `"+q+"` is marked as required "+("in `"+D+"`, but its value is `null`.")):new H("The "+K+" `"+q+"` is marked as required in "+("`"+D+"`, but its value is `undefined`.")):null:v(E,P,D,K,q)}var T=k.bind(null,!1);return T.isRequired=k.bind(null,!0),T}function j(v){function Z(O,k,T,F,E,P){var D=O[k],K=I(D);if(K!==v){var q=C2(D);return new H("Invalid "+F+" `"+E+"` of type "+("`"+q+"` supplied to `"+T+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return p(Z)}function m(){return p(i)}function b(v){function Z(O,k,T,F,E){if(typeof v!="function")return new H("Property `"+E+"` of component `"+T+"` has invalid PropType notation inside arrayOf.");var P=O[k];if(!Array.isArray(P)){var D=I(P);return new H("Invalid "+F+" `"+E+"` of type "+("`"+D+"` supplied to `"+T+"`, expected an array."))}for(var K=0;K<P.length;K++){var q=v(P,K,T,F,E+"["+K+"]",r);if(q instanceof Error)return q}return null}return p(Z)}function _(){function v(Z,O,k,T,F){var E=Z[O];if(!s(E)){var P=I(E);return new H("Invalid "+T+" `"+F+"` of type "+("`"+P+"` supplied to `"+k+"`, expected a single ReactElement."))}return null}return p(v)}function f(){function v(Z,O,k,T,F){var E=Z[O];if(!e.isValidElementType(E)){var P=I(E);return new H("Invalid "+T+" `"+F+"` of type "+("`"+P+"` supplied to `"+k+"`, expected a single ReactElement type."))}return null}return p(v)}function y(v){function Z(O,k,T,F,E){if(!(O[k]instanceof v)){var P=v.name||w,D=I2(O[k]);return new H("Invalid "+F+" `"+E+"` of type "+("`"+D+"` supplied to `"+T+"`, expected ")+("instance of `"+P+"`."))}return null}return p(Z)}function N(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function Z(O,k,T,F,E){for(var P=O[k],D=0;D<v.length;D++)if(L(P,v[D]))return null;var K=JSON.stringify(v,function(l2,V){var c2=C2(V);return c2==="symbol"?String(V):V});return new H("Invalid "+F+" `"+E+"` of value `"+String(P)+"` "+("supplied to `"+T+"`, expected one of "+K+"."))}return p(Z)}function B(v){function Z(O,k,T,F,E){if(typeof v!="function")return new H("Property `"+E+"` of component `"+T+"` has invalid PropType notation inside objectOf.");var P=O[k],D=I(P);if(D!=="object")return new H("Invalid "+F+" `"+E+"` of type "+("`"+D+"` supplied to `"+T+"`, expected an object."));for(var K in P)if(n(P,K)){var q=v(P,K,T,F,E+"."+K,r);if(q instanceof Error)return q}return null}return p(Z)}function $(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var Z=0;Z<v.length;Z++){var O=v[Z];if(typeof O!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+v2(O)+" at index "+Z+"."),i}function k(T,F,E,P,D){for(var K=[],q=0;q<v.length;q++){var l2=v[q],V=l2(T,F,E,P,D,r);if(V==null)return null;V.data&&n(V.data,"expectedType")&&K.push(V.data.expectedType)}var c2=K.length>0?", expected one of type ["+K.join(", ")+"]":"";return new H("Invalid "+P+" `"+D+"` supplied to "+("`"+E+"`"+c2+"."))}return p(k)}function S(){function v(Z,O,k,T,F){return X(Z[O])?null:new H("Invalid "+T+" `"+F+"` supplied to "+("`"+k+"`, expected a ReactNode."))}return p(v)}function J(v,Z,O,k,T){return new H((v||"React class")+": "+Z+" type `"+O+"."+k+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+T+"`.")}function M(v){function Z(O,k,T,F,E){var P=O[k],D=I(P);if(D!=="object")return new H("Invalid "+F+" `"+E+"` of type `"+D+"` "+("supplied to `"+T+"`, expected `object`."));for(var K in v){var q=v[K];if(typeof q!="function")return J(T,F,E,K,C2(q));var l2=q(P,K,T,F,E+"."+K,r);if(l2)return l2}return null}return p(Z)}function A(v){function Z(O,k,T,F,E){var P=O[k],D=I(P);if(D!=="object")return new H("Invalid "+F+" `"+E+"` of type `"+D+"` "+("supplied to `"+T+"`, expected `object`."));var K=t({},O[k],v);for(var q in K){var l2=v[q];if(n(v,q)&&typeof l2!="function")return J(T,F,E,q,C2(l2));if(!l2)return new H("Invalid "+F+" `"+E+"` key `"+q+"` supplied to `"+T+"`.\nBad object: "+JSON.stringify(O[k],null," ")+`
|
|
24
|
-
Valid keys: `+JSON.stringify(Object.keys(v),null," "));var V=l2(P,q,T,F,E+"."+q,r);if(V)return V}return null}return p(Z)}function X(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(X);if(v===null||s(v))return!0;var Z=d(v);if(Z){var O=Z.call(v),k;if(Z!==v.entries){for(;!(k=O.next()).done;)if(!X(k.value))return!1}else for(;!(k=O.next()).done;){var T=k.value;if(T&&!X(T[1]))return!1}}else return!1;return!0;default:return!1}}function d2(v,Z){return v==="symbol"?!0:Z?Z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Z instanceof Symbol:!1}function I(v){var Z=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":d2(Z,v)?"symbol":Z}function C2(v){if(typeof v>"u"||v===null)return""+v;var Z=I(v);if(Z==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return Z}function v2(v){var Z=C2(v);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function I2(v){return!v.constructor||!v.constructor.name?w:v.constructor.name}return u.checkPropTypes=l,u.resetWarningCache=l.resetWarningCache,u.PropTypes=u,u},P2}var O2,d1;function A6(){if(d1)return O2;d1=1;var e=C1();function t(){}function r(){}return r.resetWarningCache=t,O2=function(){function n(i,s,a,c,h,d){if(d!==e){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}n.isRequired=n;function l(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:l,element:n,elementType:n,instanceOf:l,node:n,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},O2}if(process.env.NODE_ENV!=="production"){var F6=k1(),D6=!0;U2.exports=R6()(F6.isElement,D6)}else U2.exports=A6()();var g=U2.exports,Y2=globalThis&&globalThis.__assign||function(){return Y2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},Y2.apply(this,arguments)},O1={onActivate:g.func,onAddUndo:g.func,onBeforeAddUndo:g.func,onBeforeExecCommand:g.func,onBeforeGetContent:g.func,onBeforeRenderUI:g.func,onBeforeSetContent:g.func,onBeforePaste:g.func,onBlur:g.func,onChange:g.func,onClearUndos:g.func,onClick:g.func,onContextMenu:g.func,onCommentChange:g.func,onCopy:g.func,onCut:g.func,onDblclick:g.func,onDeactivate:g.func,onDirty:g.func,onDrag:g.func,onDragDrop:g.func,onDragEnd:g.func,onDragGesture:g.func,onDragOver:g.func,onDrop:g.func,onExecCommand:g.func,onFocus:g.func,onFocusIn:g.func,onFocusOut:g.func,onGetContent:g.func,onHide:g.func,onInit:g.func,onKeyDown:g.func,onKeyPress:g.func,onKeyUp:g.func,onLoadContent:g.func,onMouseDown:g.func,onMouseEnter:g.func,onMouseLeave:g.func,onMouseMove:g.func,onMouseOut:g.func,onMouseOver:g.func,onMouseUp:g.func,onNodeChange:g.func,onObjectResizeStart:g.func,onObjectResized:g.func,onObjectSelected:g.func,onPaste:g.func,onPostProcess:g.func,onPostRender:g.func,onPreProcess:g.func,onProgressState:g.func,onRedo:g.func,onRemove:g.func,onReset:g.func,onSaveContent:g.func,onSelectionChange:g.func,onSetAttrib:g.func,onSetContent:g.func,onShow:g.func,onSubmit:g.func,onUndo:g.func,onVisualAid:g.func,onSkinLoadError:g.func,onThemeLoadError:g.func,onModelLoadError:g.func,onPluginLoadError:g.func,onIconsLoadError:g.func,onLanguageLoadError:g.func,onScriptsLoad:g.func,onScriptsLoadError:g.func},q6=Y2({apiKey:g.string,id:g.string,inline:g.bool,init:g.object,initialValue:g.string,onEditorChange:g.func,value:g.string,tagName:g.string,cloudChannel:g.string,plugins:g.oneOfType([g.string,g.array]),toolbar:g.oneOfType([g.string,g.array]),disabled:g.bool,textareaName:g.string,tinymceScriptSrc:g.oneOfType([g.string,g.arrayOf(g.string),g.arrayOf(g.shape({src:g.string,async:g.bool,defer:g.bool}))]),rollback:g.oneOfType([g.number,g.oneOf([!1])]),scriptLoading:g.shape({async:g.bool,defer:g.bool,delay:g.number})},O1),R2=function(e){return typeof e=="function"},h1=function(e){return e in O1},w1=function(e){return e.substr(2)},W6=function(e,t,r,n,l,o,i){var s=Object.keys(l).filter(h1),a=Object.keys(o).filter(h1),c=s.filter(function(d){return o[d]===void 0}),h=a.filter(function(d){return l[d]===void 0});c.forEach(function(d){var w=w1(d),u=i[w];r(w,u),delete i[w]}),h.forEach(function(d){var w=n(e,d),u=w1(d);i[u]=w,t(u,w)})},z6=function(e,t,r,n,l){return W6(l,e.on.bind(e),e.off.bind(e),function(o,i){return function(s){var a;return(a=o(i))===null||a===void 0?void 0:a(s,e)}},t,r,n)},u1=0,R1=function(e){var t=Date.now(),r=Math.floor(Math.random()*1e9);return u1++,e+"_"+r+u1+String(t)},f1=function(e){return e!==null&&(e.tagName.toLowerCase()==="textarea"||e.tagName.toLowerCase()==="input")},g1=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},U6=function(e,t){return g1(e).concat(g1(t))},Y6=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},G6=function(e){if(!("isConnected"in Node.prototype)){for(var t=e,r=e.parentNode;r!=null;)t=r,r=t.parentNode;return t===e.ownerDocument}return e.isConnected},x1=function(e,t){e!==void 0&&(e.mode!=null&&typeof e.mode=="object"&&typeof e.mode.set=="function"?e.mode.set(t):e.setMode(t))},G2=globalThis&&globalThis.__assign||function(){return G2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},G2.apply(this,arguments)},K6=function(e,t,r){var n,l,o=e.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=t.id,o.src=t.src,o.async=(n=t.async)!==null&&n!==void 0?n:!1,o.defer=(l=t.defer)!==null&&l!==void 0?l:!1;var i=function(){o.removeEventListener("load",i),o.removeEventListener("error",s),r(t.src)},s=function(a){o.removeEventListener("load",i),o.removeEventListener("error",s),r(t.src,a)};o.addEventListener("load",i),o.addEventListener("error",s),e.head&&e.head.appendChild(o)},J6=function(e){var t={},r=function(i,s){var a=t[i];a.done=!0,a.error=s;for(var c=0,h=a.handlers;c<h.length;c++){var d=h[c];d(i,s)}a.handlers=[]},n=function(i,s,a){var c=function(m){return a!==void 0?a(m):console.error(m)};if(i.length===0){c(new Error("At least one script must be provided"));return}for(var h=0,d=!1,w=function(m,b){d||(b?(d=!0,c(b)):++h===i.length&&s())},u=0,L=i;u<L.length;u++){var H=L[u],p=t[H.src];if(p)p.done?w(H.src,p.error):p.handlers.push(w);else{var j=R1("tiny-");t[H.src]={id:j,src:H.src,done:!1,error:null,handlers:[w]},K6(e,G2({id:j},H),r)}}},l=function(){for(var i,s=0,a=Object.values(t);s<a.length;s++){var c=a[s],h=e.getElementById(c.id);h!=null&&h.tagName==="SCRIPT"&&((i=h.parentNode)===null||i===void 0||i.removeChild(h))}t={}},o=function(){return e};return{loadScripts:n,deleteScripts:l,getDocument:o}},X6=function(){var e=[],t=function(l){var o=e.find(function(i){return i.getDocument()===l});return o===void 0&&(o=J6(l),e.push(o)),o},r=function(l,o,i,s,a){var c=function(){return t(l).loadScripts(o,s,a)};i>0?setTimeout(c,i):c()},n=function(){for(var l=e.pop();l!=null;l=e.pop())l.deleteScripts()};return{loadList:r,reinitialize:n}},Q6=X6(),A2=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},C0=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(n[o]=l[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),y2=globalThis&&globalThis.__assign||function(){return y2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},y2.apply(this,arguments)},e0=function(e){C0(t,e);function t(r){var n,l,o,i=e.call(this,r)||this;return i.rollbackTimer=void 0,i.valueCursor=void 0,i.rollbackChange=function(){var s=i.editor,a=i.props.value;s&&a&&a!==i.currentContent&&s.undoManager.ignore(function(){if(s.setContent(a),i.valueCursor&&(!i.inline||s.hasFocus()))try{s.selection.moveToBookmark(i.valueCursor)}catch{}}),i.rollbackTimer=void 0},i.handleBeforeInput=function(s){if(i.props.value!==void 0&&i.props.value===i.currentContent&&i.editor&&(!i.inline||i.editor.hasFocus()))try{i.valueCursor=i.editor.selection.getBookmark(3)}catch{}},i.handleBeforeInputSpecial=function(s){(s.key==="Enter"||s.key==="Backspace"||s.key==="Delete")&&i.handleBeforeInput(s)},i.handleEditorChange=function(s){var a=i.editor;if(a&&a.initialized){var c=a.getContent();i.props.value!==void 0&&i.props.value!==c&&i.props.rollback!==!1&&(i.rollbackTimer||(i.rollbackTimer=window.setTimeout(i.rollbackChange,typeof i.props.rollback=="number"?i.props.rollback:200))),c!==i.currentContent&&(i.currentContent=c,R2(i.props.onEditorChange)&&i.props.onEditorChange(c,a))}},i.handleEditorChangeSpecial=function(s){(s.key==="Backspace"||s.key==="Delete")&&i.handleEditorChange(s)},i.initialise=function(s){var a,c,h;s===void 0&&(s=0);var d=i.elementRef.current;if(d){if(!G6(d)){if(s===0)setTimeout(function(){return i.initialise(1)},1);else if(s<100)setTimeout(function(){return i.initialise(s+1)},100);else throw new Error("tinymce can only be initialised when in a document");return}var w=A2(i.view);if(!w)throw new Error("tinymce should have been loaded into global scope");var u=y2(y2({},i.props.init),{selector:void 0,target:d,readonly:i.props.disabled,inline:i.inline,plugins:U6((a=i.props.init)===null||a===void 0?void 0:a.plugins,i.props.plugins),toolbar:(c=i.props.toolbar)!==null&&c!==void 0?c:(h=i.props.init)===null||h===void 0?void 0:h.toolbar,setup:function(L){i.editor=L,i.bindHandlers({}),i.inline&&!f1(d)&&L.once("PostRender",function(H){L.setContent(i.getInitialValue(),{no_events:!0})}),i.props.init&&R2(i.props.init.setup)&&i.props.init.setup(L)},init_instance_callback:function(L){var H,p,j=i.getInitialValue();i.currentContent=(H=i.currentContent)!==null&&H!==void 0?H:L.getContent(),i.currentContent!==j&&(i.currentContent=j,L.setContent(j),L.undoManager.clear(),L.undoManager.add(),L.setDirty(!1));var m=(p=i.props.disabled)!==null&&p!==void 0?p:!1;x1(i.editor,m?"readonly":"design"),i.props.init&&R2(i.props.init.init_instance_callback)&&i.props.init.init_instance_callback(L)}});i.inline||(d.style.visibility=""),f1(d)&&(d.value=i.getInitialValue()),w.init(u)}},i.id=i.props.id||R1("tiny-react"),i.elementRef=_2.createRef(),i.inline=(o=(n=i.props.inline)!==null&&n!==void 0?n:(l=i.props.init)===null||l===void 0?void 0:l.inline)!==null&&o!==void 0?o:!1,i.boundHandlers={},i}return Object.defineProperty(t.prototype,"view",{get:function(){var r,n;return(n=(r=this.elementRef.current)===null||r===void 0?void 0:r.ownerDocument.defaultView)!==null&&n!==void 0?n:window},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(r){var n=this,l,o;if(this.rollbackTimer&&(clearTimeout(this.rollbackTimer),this.rollbackTimer=void 0),this.editor&&(this.bindHandlers(r),this.editor.initialized)){if(this.currentContent=(l=this.currentContent)!==null&&l!==void 0?l:this.editor.getContent(),typeof this.props.initialValue=="string"&&this.props.initialValue!==r.initialValue)this.editor.setContent(this.props.initialValue),this.editor.undoManager.clear(),this.editor.undoManager.add(),this.editor.setDirty(!1);else if(typeof this.props.value=="string"&&this.props.value!==this.currentContent){var i=this.editor;i.undoManager.transact(function(){var a;if(!n.inline||i.hasFocus())try{a=i.selection.getBookmark(3)}catch{}var c=n.valueCursor;if(i.setContent(n.props.value),!n.inline||i.hasFocus())for(var h=0,d=[a,c];h<d.length;h++){var w=d[h];if(w)try{i.selection.moveToBookmark(w),n.valueCursor=w;break}catch{}}})}if(this.props.disabled!==r.disabled){var s=(o=this.props.disabled)!==null&&o!==void 0?o:!1;x1(this.editor,s?"readonly":"design")}}},t.prototype.componentDidMount=function(){var r=this,n,l,o,i,s;if(A2(this.view)!==null)this.initialise();else if(Array.isArray(this.props.tinymceScriptSrc)&&this.props.tinymceScriptSrc.length===0)(l=(n=this.props).onScriptsLoadError)===null||l===void 0||l.call(n,new Error("No `tinymce` global is present but the `tinymceScriptSrc` prop was an empty array."));else if(!((o=this.elementRef.current)===null||o===void 0)&&o.ownerDocument){var a=function(){var h,d;(d=(h=r.props).onScriptsLoad)===null||d===void 0||d.call(h),r.initialise()},c=function(h){var d,w;(w=(d=r.props).onScriptsLoadError)===null||w===void 0||w.call(d,h)};Q6.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),(s=(i=this.props.scriptLoading)===null||i===void 0?void 0:i.delay)!==null&&s!==void 0?s:0,a,c)}},t.prototype.componentWillUnmount=function(){var r=this,n=this.editor;n&&(n.off(this.changeEvents(),this.handleEditorChange),n.off(this.beforeInputEvent(),this.handleBeforeInput),n.off("keypress",this.handleEditorChangeSpecial),n.off("keydown",this.handleBeforeInputSpecial),n.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach(function(l){n.off(l,r.boundHandlers[l])}),this.boundHandlers={},n.remove(),this.editor=void 0)},t.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},t.prototype.changeEvents=function(){var r,n,l,o=(l=(n=(r=A2(this.view))===null||r===void 0?void 0:r.Env)===null||n===void 0?void 0:n.browser)===null||l===void 0?void 0:l.isIE();return o?"change keyup compositionend setcontent CommentChange":"change input compositionend setcontent CommentChange"},t.prototype.beforeInputEvent=function(){return Y6()?"beforeinput SelectionChange":"SelectionChange"},t.prototype.renderInline=function(){var r=this.props.tagName,n=r===void 0?"div":r;return _2.createElement(n,{ref:this.elementRef,id:this.id})},t.prototype.renderIframe=function(){return _2.createElement("textarea",{ref:this.elementRef,style:{visibility:"hidden"},name:this.props.textareaName,id:this.id})},t.prototype.getScriptSources=function(){var r,n,l=(r=this.props.scriptLoading)===null||r===void 0?void 0:r.async,o=(n=this.props.scriptLoading)===null||n===void 0?void 0:n.defer;if(this.props.tinymceScriptSrc!==void 0)return typeof this.props.tinymceScriptSrc=="string"?[{src:this.props.tinymceScriptSrc,async:l,defer:o}]:this.props.tinymceScriptSrc.map(function(c){return typeof c=="string"?{src:c,async:l,defer:o}:c});var i=this.props.cloudChannel,s=this.props.apiKey?this.props.apiKey:"no-api-key",a="https://cdn.tiny.cloud/1/".concat(s,"/tinymce/").concat(i,"/tinymce.min.js");return[{src:a,async:l,defer:o}]},t.prototype.getInitialValue=function(){return typeof this.props.initialValue=="string"?this.props.initialValue:typeof this.props.value=="string"?this.props.value:""},t.prototype.bindHandlers=function(r){var n=this;if(this.editor!==void 0){z6(this.editor,r,this.props,this.boundHandlers,function(s){return n.props[s]});var l=function(s){return s.onEditorChange!==void 0||s.value!==void 0},o=l(r),i=l(this.props);!o&&i?(this.editor.on(this.changeEvents(),this.handleEditorChange),this.editor.on(this.beforeInputEvent(),this.handleBeforeInput),this.editor.on("keydown",this.handleBeforeInputSpecial),this.editor.on("keyup",this.handleEditorChangeSpecial),this.editor.on("NewBlock",this.handleEditorChange)):o&&!i&&(this.editor.off(this.changeEvents(),this.handleEditorChange),this.editor.off(this.beforeInputEvent(),this.handleBeforeInput),this.editor.off("keydown",this.handleBeforeInputSpecial),this.editor.off("keyup",this.handleEditorChangeSpecial),this.editor.off("NewBlock",this.handleEditorChange))}},t.propTypes=q6,t.defaultProps={cloudChannel:"6"},t}(_2.Component);const t0=e=>{const{name:t,id:r,value:n,extraClass:l,placeholder:o,error:i,disabled:s,readonly:a,autoComplete:c,required:h,ariaLabel:d,ariaLabeledby:w,ariaDescribedby:u,rows:L,onClick:H,onChange:p,onFocus:j,onBlur:m,...b}=e,[_,f]=x.useState(n),y=[t1.holder];return l&&y.push(l),C.jsxs("div",{className:z(y),children:[C.jsx(e0,{textareaName:t,scriptLoading:{async:!0},tinymceScriptSrc:"/lib/tinymce/tinymce.min.js",id:r,disabled:s,value:n,init:{height:L?50*L:200,menubar:!1,branding:!1,plugins:["advlist","autolink","lists","link","image","charmap","preview","anchor","searchreplace","visualblocks","fullscreen","media","table"],toolbar:"blocks | formatselect | bold italic underline | bullist numlist | outdent indent | alignleft aligncenter | undo redo",content_style:":root { --body-font: Figtree, sans-serif; } body { font-family: var(--body-font); }"},onEditorChange:N=>{f(N),p&&p(N)},onClick:N=>{H&&H(N)},onBlur:N=>{m&&m(N)},onFocus:N=>{j&&j(N)}}),C.jsx("textarea",{className:t1.hidden,id:`editor-text-${r}`,name:`${t}__editor`,value:_,placeholder:o,disabled:s,readOnly:a,required:h,autoComplete:c?"on":"off","aria-label":d||t,"aria-required":h?"true":"false","aria-invalid":i?"true":"false","aria-disabled":s?"true":"false","aria-readonly":a?"true":"false","aria-autocomplete":c?"list":"none",...b})]})},r0="_textarea_1y8ok_1",n0="_error_1y8ok_29",i0="_length_1y8ok_38",F2={textarea:r0,error:n0,length:i0},l0=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,rows:w,displayChars:u,maxLength:L,onChange:H,...p}=e,[j,m]=x.useState(""),b=f=>{var y;m((y=f.target)==null?void 0:y.value),H&&H(f)},_=[F2.textarea];return s&&_.push(F2.error),o&&_.push(o),C.jsxs(C.Fragment,{children:[C.jsx("textarea",{className:z(_),id:r,name:t,value:n,placeholder:l,rows:w,onChange:b,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false","aria-autocomplete":d?"list":"none",...p}),!!u&&C.jsxs("p",{className:F2.length,children:[j.length," / ",L]})]})},o0=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,icon:w,...u}=e,L=[R.input];return s&&L.push(R.error),o&&L.push(o),C.jsxs("div",{className:`${w?R.textField:""}`,children:[C.jsx("input",{className:z(L),id:r,name:t,type:"text",value:n,placeholder:l,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false","aria-autocomplete":d?"list":"none",...u}),!!w&&C.jsx("div",{className:R.textFieldIcon,children:w})]})},s0=e=>{const{name:t,id:r,placeholder:n,extraClass:l,disabled:o,error:i,ariaLabel:s,required:a,readonly:c,autoComplete:h,numberValue:d,preventScrolling:w,formatter:u=!0,onChange:L,...H}=e,p=x.useRef(null),[j,m]=x.useState("");x.useEffect(()=>{if(u){if(d){const y=d.replace(/[^0-9.]/g,"");m(b(y))}}else m(d)},[d]);const b=y=>{if(u){const N=y.split(".");return N[0]=N[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),N.join(".")}},_=y=>{const{value:N}=y.target,B=N.replace(/[^0-9.]/g,""),$=B.split(".").length-1;let S=B;if($>1&&(S=B.slice(0,B.lastIndexOf("."))),m(b(S)),L){const J={...y,target:{...y.target,value:S}};L(J)}};x.useEffect(()=>{const y=B=>{w&&B.target===p.current&&B.preventDefault()},N=p.current;return N&&N.addEventListener("wheel",y),()=>{N&&N.removeEventListener("wheel",y)}},[w]);const f=[R.input];return i&&f.push(R.error),l&&f.push(l),C.jsx("input",{className:z(f),id:r,name:t,type:u?"text":"number",value:j,placeholder:n,disabled:o,readOnly:c,required:a,autoComplete:h?"on":"off","aria-label":s||t,"aria-required":a?"true":"false","aria-invalid":i?"true":"false","aria-disabled":o?"true":"false","aria-readonly":c?"true":"false","aria-autocomplete":h?"list":"none",ref:p,onChange:_,...H})},a0=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,unitText:w="ha",formatter:u=!0,onChange:L,...H}=e,[p,j]=x.useState(0),m=x.useRef(null),[b,_]=x.useState("");x.useEffect(()=>{if(u){if(n){const B=n.replace(/[^0-9.]/g,"");_(f(B))}}else _(n)},[n]);const f=B=>{if(u){const $=B.split(".");return $[0]=$[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),$.join(".")}},y=B=>{const{value:$}=B.target,S=$.replace(/[^0-9.]/g,""),J=S.split(".").length-1;let M=S;if(J>1&&(M=S.slice(0,S.lastIndexOf("."))),_(f(M)),L){const A={...B,target:{...B.target,value:M}};L(A)}};x.useEffect(()=>{var S;const B=document.getElementById(`unitTextWidth ${r}`),$=((S=m.current)==null?void 0:S.offsetWidth)||0;B&&j($+16)},[r,w]);const N=[R.input];return s&&N.push(R.error),o&&N.push(o),C.jsxs("div",{className:`${R.unitField}`,children:[C.jsx("input",{style:{paddingRight:`${p}px`},className:z(N),id:`unitTextWidth ${r}`,name:t,type:u?"text":"number",value:b,placeholder:l,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false","aria-autocomplete":d?"list":"none",onChange:y,...H}),C.jsx("div",{className:R.unitText,ref:m,children:w})]})},c0=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,...w}=e,u=[R.input];return s&&u.push(R.error),o&&u.push(o),C.jsxs("div",{className:R.time,children:[C.jsx("input",{className:z(u),id:r,name:t,type:"time",value:n,placeholder:l,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false",pattern:"[0-2][0-9]:[0-5][0-9]",...w}),C.jsx("div",{className:R.clockIcon,children:C.jsx($1,{type:"light"})})]})},d0=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,...w}=e,u=[R.input];return s&&u.push(R.error),o&&u.push(o),C.jsx("input",{className:z(u),id:r,name:t,type:"tel",value:n,placeholder:l,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false","aria-autocomplete":d?"list":"none",...w})},h0="_error_tatej_7",w0="_slider_tatej_7",u0="_circle_tatej_10",f0="_round_tatej_64",V2={switch:"_switch_tatej_1",error:h0,slider:w0,circle:u0,round:f0},g0=e=>{const{name:t,checked:r,id:n,value:l,placeholder:o,extraClass:i,disabled:s,error:a,ariaLabel:c,required:h,readonly:d,onChange:w,...u}=e,[L,H]=x.useState(!1),p=["switch",V2.switch];i&&p.push(i),a&&p.push(V2.error),x.useEffect(()=>{H(r||!1)},[r]);const j=m=>{H(!L),w&&w(m,L)};return C.jsxs("div",{className:z(p),children:[C.jsx("input",{id:n,name:t,checked:L,type:"checkbox",value:l,placeholder:o,disabled:s,readOnly:d,required:h,"aria-label":c||t,"aria-required":h?"true":"false","aria-invalid":a?"true":"false","aria-disabled":s?"true":"false","aria-readonly":d?"true":"false",onClick:j,...u}),C.jsx("span",{className:`${V2.slider} ${V2.round}`,children:C.jsx("span",{className:`${V2.circle}`,children:C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",children:C.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.5458 1.47502C11.7411 1.67029 11.7411 1.98687 11.5458 2.18213L5.18186 8.54609C4.9866 8.74135 4.67002 8.74135 4.47476 8.54609L0.939224 5.01056C0.743962 4.8153 0.743962 4.49871 0.939224 4.30345L1.64633 3.59635C1.84159 3.40108 2.15818 3.40108 2.35344 3.59635L4.82831 6.07122L10.1316 0.767918C10.3269 0.572656 10.6435 0.572656 10.8387 0.767918L11.5458 1.47502Z",fill:"currentColor"})})})})]})},x0=e=>{const{title:t,btnTitle:r,description:n,image:l,btnType:o,btnScheme:i,btnSize:s,btnStyle:a,extraClass:c="",cardOnClick:h,btnOnClick:d}=e,w=typeof l;return C.jsx("div",{className:`pathway-card ${c}`,onClick:u=>{h&&h(u)},children:C.jsxs("div",{className:"pathway-card__wrapper",children:[w==="string"&&C.jsx("div",{className:"pathway-card__picture",style:{backgroundImage:l?`url(${l})`:""}}),w!=="string"&&C.jsx("div",{className:"pathway-card__picture",children:l}),C.jsxs("div",{className:"pathway-card__inner",children:[C.jsxs("div",{className:"pathway-card__content",children:[!!t&&C.jsx("h3",{className:"pathway-card__title",children:t}),!!n&&C.jsx("p",{className:"pathway-card__desc",children:n})]}),C.jsx(Q2,{label:r,type:o,style:a,size:s,scheme:i,onClick:d})]})]})})},v0="_mediaImage_1k8jm_1",v1={mediaImage:v0},p0=e=>{const{type:t,videoSrc:r,imageSrc:n}=e,l=typeof n=="string";return C.jsxs(C.Fragment,{children:[t==="image"&&C.jsx(C.Fragment,{children:l?C.jsx("img",{src:n,alt:"media image",className:v1.mediaImage}):C.jsx("div",{className:v1.mediaImage,children:n})}),t==="video"&&C.jsxs("div",{className:"video-container",children:[C.jsx("div",{className:"custom-play-button",children:C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64",children:C.jsx("path",{fill:"#fff",d:"M32 2C16.536 2 4 14.536 4 30s12.536 28 28 28 28-12.536 28-28S47.464 2 32 2zm13.898 32.111L20 50V14l25.898 15.889z"})})}),C.jsxs("video",{controls:!0,className:"custom-video",children:[C.jsx("source",{src:r,type:"video/mp4"}),"Your browser does not support the video tag."]})]})]})},L0="_holder_x3ny8_1",H0="_modal_x3ny8_26",M0="_wrapper_x3ny8_37",V0="_modalHeader_x3ny8_43",Z0="_modalHeaderWrapper_x3ny8_47",m0="_heading_x3ny8_53",j0="_icon_x3ny8_58",_0="_modalBody_x3ny8_68",b0="_modalBodyWrapper_x3ny8_86",y0="_modalAction_x3ny8_90",B0="_modalActionRight_x3ny8_98",N0="_modalActionLeft_x3ny8_98",S0="_curtain_x3ny8_107",n2={holder:L0,modal:H0,wrapper:M0,modalHeader:V0,modalHeaderWrapper:Z0,heading:m0,icon:j0,modalBody:_0,modalBodyWrapper:b0,modalAction:y0,modalActionRight:B0,modalActionLeft:N0,curtain:S0},I0=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${n2.holder} ${r} modalHolder`,children:C.jsx("div",{className:`${n2.modal} modal`,children:C.jsx("div",{className:`${n2.wrapper} modalWrapper`,children:t})})})},$0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalAction} ${r}`,children:t})},T0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalActionLeft} ${r}`,children:t})},E0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalActionRight} ${r}`,children:t})},k0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalBody} ${r} modalBody`,children:C.jsx("div",{className:`${n2.modalBodyWrapper} modalBodyWrapper`,children:t})})},P0=()=>C.jsx("div",{className:n2.curtain}),O0=e=>{const{canGoBack:t,canClose:r,title:n,extraClass:l=""}=e,o=x.useContext(J2),i=()=>{r&&o.closeModal()};return C.jsx("div",{className:`${n2.modalHeader} ${l}`,children:C.jsxs("div",{className:n2.modalHeaderWrapper,children:[!!t&&C.jsx("div",{className:`${n2.caretLeft} ${n2.icon}`,children:C.jsx(N2,{type:"bold"})}),C.jsx("div",{className:`${n2.heading} modalHeading`,children:!!n&&C.jsx("h4",{children:n})}),!!r&&C.jsx("span",{className:`${n2.close} ${n2.icon}`,onClick:i,children:C.jsx(M2,{type:"bold"})})]})})},R0="_notification_18pig_1",A0="_notificationIcon_18pig_4",F0="_pip_18pig_14",D0="_notiActive_18pig_30",q0="_notificationDropdown_18pig_33",Z2={notification:R0,notificationIcon:A0,pip:F0,notiActive:D0,notificationDropdown:q0},W0=e=>{const{children:t,extraClass:r,active:n}=e,[l,o]=x.useState(!1),i=x.useRef(null),s=a=>{i.current&&!i.current.contains(a.target)&&o(!1)};return x.useEffect(()=>(l?document.addEventListener("mousedown",s):document.removeEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}),[l]),C.jsxs("div",{className:`${Z2.notification} ${r}`,onClick:()=>o(!l),ref:i,children:[C.jsxs("div",{className:`${Z2.notificationIcon} ${l?Z2.notiActive:""}`,children:[n&&C.jsx("span",{className:Z2.pip}),C.jsx(S1,{})]}),t&&l&&C.jsx("div",{className:Z2.notificationDropdown,children:t})]})},z0="_notificationPanel_1y2of_1",U0="_notificationheader_1y2of_10",Y0="_notificationHeaderWrapper_1y2of_13",G0="_notificationMarkAllAction_1y2of_24",K0="_notificationGrouplistHolder_1y2of_35",J0="_spacing_1y2of_39",X0="_notificationGrouplist_1y2of_35",Q0="_notificationGroup_1y2of_35",C4="_notificationNone_1y2of_72",e4="_notificationList_1y2of_86",t4="_notificationListPip_1y2of_94",r4="_notificationListCloseIcon_1y2of_97",n4="_notificationListWrapper_1y2of_100",i4="_notificationListIcon_1y2of_126",l4="_notificationListContent_1y2of_135",o4="_notificationListInitial_1y2of_140",s4="_notificationListInitialWrapper_1y2of_152",a4="_notificationListDesc_1y2of_158",c4="_boldText_1y2of_163",d4="_summaryText_1y2of_166",e2={notificationPanel:z0,notificationheader:U0,notificationHeaderWrapper:Y0,notificationMarkAllAction:G0,notificationGrouplistHolder:K0,spacing:J0,notificationGrouplist:X0,notificationGroup:Q0,notificationNone:C4,notificationList:e4,notificationListPip:t4,notificationListCloseIcon:r4,notificationListWrapper:n4,notificationListIcon:i4,notificationListContent:l4,notificationListInitial:o4,notificationListInitialWrapper:s4,notificationListDesc:a4,boldText:c4,summaryText:d4},h4=e=>{const{notificationInitials:t,boldText:r,summaryText:n,notificationItemOnClick:l,regularText:o,extraClass:i,closeOnClick:s}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{onClick:l,className:`${e2.notificationList} ${i}`,children:C.jsxs("div",{className:e2.notificationListWrapper,children:[C.jsxs("div",{className:e2.notificationListIcon,children:[C.jsx("div",{className:e2.notificationListPip}),C.jsx("div",{onClick:s,className:e2.notificationListCloseIcon,children:C.jsx(M2,{})})]}),C.jsxs("div",{className:e2.notificationListContent,children:[t&&C.jsx("div",{className:e2.notificationListInitial,children:C.jsx("div",{className:e2.notificationListInitialWrapper,children:t})}),C.jsx("div",{className:e2.notificationListDesc,children:C.jsxs("p",{children:[r&&C.jsxs("span",{className:e2.boldText,children:[" ",r]}),o&&C.jsxs("span",{className:e2.regularText,children:[" ",o]}),n&&C.jsxs("span",{className:e2.summaryText,children:[" ",n]})]})})]})]})})})},w4=({children:e,title:t})=>C.jsxs(C.Fragment,{children:[t&&C.jsx("div",{className:e2.notificationGroup,children:C.jsx("h6",{children:t})}),C.jsx("div",{children:e})]}),u4=e=>{const{children:t}=e,[r,n]=x.useState(!1);return x.useEffect(()=>{const l=document.getElementById("listContainer");if(l){const o=()=>{const i=l.scrollHeight>l.clientHeight;n(i)};return window.addEventListener("resize",o),o(),()=>{window.removeEventListener("resize",o)}}},[]),C.jsx("div",{id:"listContainer",className:`${e2.notificationGrouplistHolder} ${r?e2.spacing:""}`,children:C.jsx("div",{className:`${e2.notificationGrouplist}`,children:t})})},f4=({children:e})=>C.jsx("div",{className:e2.notificationPanel,children:e}),g4=e=>{const{extraClass:t,markAllAsReadOnClick:r,showMarkAllAsRead:n}=e;return C.jsx("div",{className:`${e2.notificationheader} ${t}`,children:C.jsxs("div",{className:e2.notificationHeaderWrapper,children:[C.jsx("div",{children:C.jsx("h5",{children:"Notifications"})}),C.jsx("div",{children:n&&C.jsx("div",{onClick:r,className:e2.notificationMarkAllAction,children:C.jsx("h6",{children:"Mark all as Read"})})})]})})},x4=()=>C.jsx("li",{className:e2.notificationNone,children:C.jsx("h6",{children:"No notifications."})}),S2=x.createContext({currentIndex:0,setCurrentIndex:Function}),v4="_tab_4osvo_1",p4="_tabNav_4osvo_4",L4="_tabNavItem_4osvo_9",H4="_active_4osvo_22",M4="_item_4osvo_26",V4="_bilingualTitle_4osvo_32",g2={tab:v4,tabNav:p4,tabNavItem:L4,active:H4,item:M4,bilingualTitle:V4},Z4=({children:e,extraClass:t})=>{const[r,n]=x.useState(0);return C.jsx(S2.Provider,{value:{currentIndex:r,setCurrentIndex:n},children:C.jsx("div",{className:`${g2.tab} ${t}`,children:e})})},m4=({children:e,extraClass:t})=>C.jsx("div",{className:`${g2.tabBody} ${t}`,children:e}),j4=e=>{const t=x.useContext(S2),{children:r,tabIndex:n,extraClass:l}=e;return n===t.currentIndex?C.jsx("div",{className:`${l}`,children:r}):C.jsx(C.Fragment,{})},_4=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${g2.tabNav} ${r}`,children:t})},b4=e=>{const{title:t,bilingualTitle:r,tabIndex:n,onBeforeOpen:l=null,onAfterOpened:o=null,extraClass:i}=e,s=x.useContext(S2);let a=` ${g2.tabNavItem} ${i}`;s.currentIndex===n&&(a+=` ${g2.active}`);const c=h=>{let d=!0;if(l){const w=l();typeof w=="boolean"&&(d=w)}d&&(s.setCurrentIndex(h),o&&o())};return C.jsx(C.Fragment,{children:C.jsxs("div",{className:a,onClick:()=>{c(n)},children:[C.jsxs("span",{className:`${g2.item} item`,children:[" ",t]}),r&&C.jsxs("span",{className:`${g2.bilingualTitle} bilingualTitle`,children:[" ",r]})]})})},y4="_table_10sge_1",B4="_tableBody_10sge_6",N4="_tableHead_10sge_6",S4="_tableFooter_10sge_6",I4="_tableRow_10sge_10",$4="_tableCellHeading_10sge_22",T4="_tableCell_10sge_22",E4="_tableCellAlignLeft_10sge_44",k4="_tableCellAlignCenter_10sge_47",P4="_tableCellAlignRight_10sge_50",O4="_tableCellActions_10sge_54",R4="_smallDesc_10sge_87",A4="_cellWithPicture_10sge_94",F4="_cellImage_10sge_99",Q={table:y4,tableBody:B4,tableHead:N4,tableFooter:S4,tableRow:I4,tableCellHeading:$4,tableCell:T4,tableCellAlignLeft:E4,tableCellAlignCenter:k4,tableCellAlignRight:P4,tableCellActions:O4,smallDesc:R4,cellWithPicture:A4,cellImage:F4},D4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Q.table} ${r} table`,children:C.jsx("div",{className:"tableContainer",children:t})})},q4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Q.tableBody} ${r} `,children:t})})},W4=e=>{const{children:t,extraClass:r,align:n}=e,l=typeof t;let o=` ${Q.tableCellAlignLeft}`;n==="center"&&(o=Q.tableCellAlignCenter),n==="right"&&(o=Q.tableCellAlignRight);const i=z(o,r);return C.jsx("div",{className:`${Q.tableCell} ${i}`,children:C.jsxs(C.Fragment,{children:[l==="string"&&C.jsx("p",{children:t}),l!=="string"&&C.jsx(C.Fragment,{children:t})]})})},z4=e=>{const{children:t,extraClass:r,align:n}=e;let l=` ${Q.tableCellAlignLeft}`;return n==="center"&&(l=Q.tableCellAlignCenter),n==="right"&&(l=Q.tableCellAlignRight),C.jsx("div",{className:`${Q.tableCell} ${r} ${Q.tableCellActions} ${l}`,children:C.jsx("div",{children:t})})},U4=e=>{const{heading:t,description:r,extraClass:n}=e;return C.jsx("div",{className:`${Q.tableCell} ${n}`,children:C.jsxs("div",{children:[!!t&&C.jsx("p",{className:Q.descTitle,children:t}),!!r&&C.jsx("p",{className:Q.smallDesc,children:r})]})})},Y4=e=>{const{image:t,heading:r,description:n,extraClass:l}=e,o=typeof t;return C.jsx("div",{className:`${Q.tableCell} ${l}`,children:C.jsxs("div",{className:`${Q.cellWithPicture}`,children:[o==="string"&&C.jsx("div",{className:`${Q.cellImage} cellImage`,children:C.jsx("img",{src:t?`${t}`:"",alt:t})}),o!=="string"&&C.jsx("div",{className:`${Q.cellImage} cellImage`,children:t}),C.jsxs("div",{children:[!!r&&C.jsx("p",{className:`${Q.descTitle} descTitle`,children:r}),!!n&&C.jsx("p",{className:`${Q.smallDesc} smallDesc`,children:C.jsx("small",{children:n})})]})]})})},G4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Q.tableFooter} ${r} `,children:t})})},K4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Q.tableHead} ${r}`,children:t})},J4=e=>{const{children:t,extraClass:r,onClick:n}=e;return C.jsx("div",{className:`${Q.tableCellHeading} ${r}`,onClick:()=>{n&&n()},children:t})},X4=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${Q.tableRow} ${r}`,children:t})},Q4="_calloutPopupActionHolder_cpqb7_1",C3="_calloutPopup_cpqb7_1",e3="_calloutPopupWrapper_cpqb7_11",K2={calloutPopupActionHolder:Q4,calloutPopup:C3,calloutPopupWrapper:e3},A1=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${K2.calloutPopup} ${r}`,children:C.jsx("div",{className:`${K2.calloutPopupWrapper} calloutPopupWrapper`,children:t})})},t3=e=>{const{id:t,children:r,extraClassActionHolder:n,extraClassPopup:l,actionHolder:o}=e,[i,s]=x.useState({}),a=x.useRef(null);x.useEffect(()=>{const d=w=>{a.current&&!a.current.contains(w.target)&&s(u=>({...u,[`${t}`]:!1}))};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[t]);const c=()=>{s(d=>({...d,[`${t}`]:!d[`${t}`]}))},h=()=>{s(d=>({...d,[`${t}`]:!1}))};return C.jsxs("div",{ref:a,className:`${K2.calloutPopupActionHolder} ${n}`,children:[C.jsx("div",{onClick:c,children:o}),i[`${t}`]&&C.jsx("div",{onClick:h,children:C.jsx(A1,{extraClass:l,children:r})})]})},r3="_header_y9i8j_1",n3="_headerLeft_y9i8j_10",i3="_layoutLogo_y9i8j_14",l3="_layoutLogoSmall_y9i8j_17",o3="_hamburgerBtn_y9i8j_20",s3="_headerRight_y9i8j_33",a3="_searchFieldWrap_y9i8j_39",x2={header:r3,headerLeft:n3,layoutLogo:i3,layoutLogoSmall:l3,hamburgerBtn:o3,headerRight:s3,searchFieldWrap:a3},c3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("header",{className:`${x2.header} ${r}`,children:t})},d3=e=>{const{logo:t,logoSmall:r,hamburgerOnclick:n,hamburgerState:l}=e,o=i=>{n&&n(i)};return C.jsxs("div",{className:x2.headerLeft,children:[C.jsx("div",{className:`${x2.layoutLogo} layoutLogo`,children:t}),C.jsx("div",{className:`${x2.layoutLogoSmall} layoutLogoSmall`,children:r}),C.jsx("div",{onClick:o,className:`${x2.hamburgerBtn} hamburgerBtn`,children:l?C.jsx(M2,{}):C.jsx(N1,{})})]})},h3=e=>{const{children:t,extraClass:r,fieldExtraClass:n,searchField:l,searchFieldShow:o}=e;return C.jsx("div",{className:`${x2.headerRight} ${r}`,children:C.jsxs("ul",{children:[o&&l&&C.jsx("li",{children:C.jsx("div",{className:`${x2.searchFieldWrap} ${n}`,children:l})}),t]})})},w3=()=>{},u3=()=>{},f3=()=>{},g3=()=>{},x3=()=>{},v3=()=>{},p3="_profile_1hjop_1",L3="_profileHolder_1hjop_5",H3="_profileInner_1hjop_9",M3="_avatar_1hjop_20",V3="_dropdown_1hjop_31",m2={profile:p3,profileHolder:L3,profileInner:H3,avatar:M3,dropdown:V3},Z3=e=>{const{initials:t,children:r,extraClass:n,onClick:l}=e;return C.jsxs("div",{className:`${m2.profileHolder}`,children:[C.jsx("div",{className:`${m2.profile} ${n}`,onClick:o=>{l&&l(o)},children:C.jsx("div",{className:`${m2.profileInner}`,children:!!t&&C.jsx("span",{className:`${m2.avatar}`,children:C.jsx("h3",{children:t})})})}),r&&C.jsx("div",{className:`${m2.dropdown}`,children:r})]})},m3="_profileDropdown_1apu2_1",j3="_profileHeader_1apu2_8",_3="_profileHeaderWrapper_1apu2_14",b3="_profileSwitchUserWrapper_1apu2_15",y3="_avatar_1apu2_19",B3="_content_1apu2_39",N3="_name_1apu2_39",S3="_role_1apu2_45",I3="_profileSwitchUserContent_1apu2_54",$3="_profileNavigationItem_1apu2_67",T3="_profileNavigationItemWrapper_1apu2_77",E3="_profileNavigationItemLeft_1apu2_84",k3="_profileNavigationItemIcon_1apu2_88",P3="_profileNavigationItemContent_1apu2_98",O3="_profileNavigationItemRight_1apu2_104",R3="_profileLinks_1apu2_113",A3="_profileLinksList_1apu2_116",F3="_profileLink_1apu2_113",D3="_profileSwitchPanel_1apu2_135",q3="_usersHolder_1apu2_141",W3="_spacing_1apu2_146",z3="_profileSwitchPanelHeader_1apu2_163",U3="_caretLeft_1apu2_170",Y3="_closeIcon_1apu2_171",G3="_headerTitle_1apu2_182",K3="_initialsTile_1apu2_183",J3="_fieldWrapper_1apu2_189",X3="_profileSwitchUser_1apu2_15",Q3="_profileSwitchUserAvatar_1apu2_203",U={profileDropdown:m3,profileHeader:j3,profileHeaderWrapper:_3,profileSwitchUserWrapper:b3,avatar:y3,content:B3,name:N3,role:S3,profileSwitchUserContent:I3,profileNavigationItem:$3,profileNavigationItemWrapper:T3,profileNavigationItemLeft:E3,profileNavigationItemIcon:k3,profileNavigationItemContent:P3,profileNavigationItemRight:O3,profileLinks:R3,profileLinksList:A3,profileLink:F3,profileSwitchPanel:D3,usersHolder:q3,spacing:W3,profileSwitchPanelHeader:z3,caretLeft:U3,closeIcon:Y3,headerTitle:G3,initialsTile:K3,fieldWrapper:J3,profileSwitchUser:X3,profileSwitchUserAvatar:Q3},C8=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${U.profileDropdown} ${r}`,children:t})},e8=e=>{const{initials:t,username:r,role:n,extraClass:l}=e;return C.jsx("div",{className:`${U.profileHeader} ${l}`,children:C.jsxs("div",{className:`${U.profileHeaderWrapper}`,children:[!!t&&C.jsx("span",{className:`${U.avatar}`,children:C.jsx("h3",{children:t})}),C.jsxs("div",{className:`${U.content}`,children:[C.jsx("h5",{className:`${U.name}`,children:r}),!!n&&C.jsx("p",{className:`${U.role}`,children:n})]})]})})},t8=e=>{const{children:t}=e;return C.jsx("div",{className:U.profileLink,children:t})},r8=e=>{const{children:t}=e;return C.jsx("div",{className:`${U.profileLinks}`,children:C.jsx("div",{className:`${U.profileLinksList}`,children:t})})},n8=e=>{const{icon:t,openSubDropdown:r,title:n,onClick:l}=e;return C.jsx("div",{className:`${U.profileNavigationItem}`,onClick:o=>{l&&l(o)},children:C.jsxs("div",{className:`${U.profileNavigationItemWrapper}`,children:[C.jsxs("div",{className:`${U.profileNavigationItemLeft}`,children:[!!t&&C.jsx("div",{className:`${U.profileNavigationItemIcon}`,children:t}),C.jsx("div",{className:U.profileNavigationItemContent,children:C.jsx("h5",{children:n})})]}),!!r&&C.jsx("div",{className:`${U.profileNavigationItemRight}`,children:C.jsx(B2,{})})]})})},i8=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,children:w,goBackOnClick:u,closeOnClick:L,...H}=e,[p,j]=x.useState(!1);x.useEffect(()=>{const b=document.getElementById("listContainer");if(b){const _=()=>{const f=b.scrollHeight>b.clientHeight;j(f)};return window.addEventListener("resize",_),_(),()=>{window.removeEventListener("resize",_)}}},[]);const m=[R.input];return s&&m.push(R.error),o&&m.push(o),C.jsxs("div",{className:U.profileSwitchPanel,children:[C.jsxs("div",{className:U.profileSwitchPanelHeader,children:[C.jsx("div",{onClick:u,className:U.caretLeft,children:C.jsx(N2,{type:"bold"})}),C.jsx("div",{children:C.jsx("h5",{className:U.headerTitle,children:"Switch user"})}),C.jsx("div",{onClick:L,className:U.closeIcon,children:C.jsx(M2,{type:"bold"})})]}),C.jsx("div",{className:U.fieldWrapper,children:C.jsxs("div",{className:R.textField,children:[C.jsx("input",{className:z(m),id:r,name:t,type:"text",value:n,placeholder:l,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false",...H}),C.jsx("div",{className:R.textFieldIcon,children:C.jsx(I1,{})})]})}),C.jsx("div",{id:"listContainer",className:`${U.usersHolder} ${p?R.spacing:""} `,children:w})]})},l8=e=>{const{initials:t,userName:r,role:n}=e;return C.jsx("div",{className:U.profileSwitchUser,children:C.jsxs("div",{className:U.profileSwitchUserWrapper,children:[C.jsx("div",{className:`${U.profileSwitchUserAvatar} ${U.avatar}`,children:C.jsx("h5",{className:U.initialsTile,children:t})}),C.jsxs("div",{className:U.profileSwitchUserContent,children:[C.jsx("h5",{className:U.name,children:r}),C.jsx("p",{className:U.role,children:n})]})]})})},o8="_sidebar_1gyrz_1",s8="_sidebarNavigation_1gyrz_9",a8="_navigationItemLarge_1gyrz_12",c8="_subNavigationHolder_1gyrz_16",d8="_navigationSubItemLarge_1gyrz_19",h8="_navigationItemHolder_1gyrz_23",w8="_subNavigationItemHolder_1gyrz_23",u8="_navigationItem_1gyrz_12",f8="_subNavigationItem_1gyrz_23",g8="_active_1gyrz_38",x8="_bilingualTitle_1gyrz_42",v8="_navigationIcon_1gyrz_53",p8="_subNavigationIcon_1gyrz_53",L8="_navigationItemBody_1gyrz_64",H8="_subNavigationItemBody_1gyrz_64",M8="_navigationItemSmall_1gyrz_68",V8="_childIndicator_1gyrz_72",Z8="_navigationSubItemSmall_1gyrz_85",m8="_sidebarTitle_1gyrz_88",j8="_sidebarChevron_1gyrz_117",_8="_sidebarChevronBtn_1gyrz_138",W={sidebar:o8,sidebarNavigation:s8,navigationItemLarge:a8,subNavigationHolder:c8,navigationSubItemLarge:d8,navigationItemHolder:h8,subNavigationItemHolder:w8,navigationItem:u8,subNavigationItem:f8,active:g8,bilingualTitle:x8,navigationIcon:v8,subNavigationIcon:p8,navigationItemBody:L8,subNavigationItemBody:H8,navigationItemSmall:M8,childIndicator:V8,navigationSubItemSmall:Z8,sidebarTitle:m8,sidebarChevron:j8,sidebarChevronBtn:_8},b8=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${W.sidebar} ${r}`,children:t})},F1=e=>{const{onClick:t,icon:r}=e;return C.jsx("div",{className:W.sidebarChevronBtn,onClick:n=>{t&&t(n)},children:C.jsx("button",{children:r})})},y8=e=>{const{children:t,extraClass:r="",subNavActive:n}=e;return C.jsx("div",{className:`${W.sidebarNavigation} sidebarNavigation ${r} ${n?`${W.navigationItemSmall} navigationItemSmall`:`${W.navigationItemLarge} navigationItemLarge`}`,children:t})},B8=e=>{const{icon:t,contents:r,children:n,extraClass:l,onClick:o,activeState:i,bilingualTitle:s}=e;return n?C.jsxs("div",{className:`${W.navigationItemHolder} navigationItemHolder`,children:[C.jsxs("div",{className:`navigationItem ${W.navigationItem} ${l} ${i?W.active:""}`,onClick:a=>{o&&o(a)},children:[!!t&&C.jsx("div",{className:`${W.navigationIcon} navigationIcon`,children:t}),C.jsxs("div",{className:`${W.navigationItemBody} navigationItemBody`,children:[C.jsx("div",{className:"navigationItemBodyText",children:r}),!!s&&C.jsx("span",{className:W.bilingualTitle,children:s})]}),C.jsx("div",{className:`${W.navigationIcon} ${W.childIndicator}`,children:C.jsx(B2,{})})]}),!!n&&C.jsx("div",{className:`${W.subNavigation} subNavigation`,children:n})]}):C.jsx("div",{className:`${W.navigationItemHolder} navigationItemHolder`,children:C.jsxs("div",{className:`${W.navigationItem} ${l} navigationItem ${i?W.active:""}`,onClick:a=>{o&&o(a)},children:[!!t&&C.jsx("div",{className:`${W.navigationIcon} navigationIcon`,children:t}),C.jsxs("div",{children:[C.jsx("div",{className:`${W.navigationItemBody} navigationItemBody`,children:r}),!!s&&C.jsx("span",{className:W.bilingualTitle,children:s})]})]})})},N8=e=>{const{extraClass:t,children:r,title:n,onClick:l,getBackOnClick:o,subNavToggle:i,bilingualTitle:s="kk"}=e;return C.jsxs("div",{className:`${W.subNavigationHolder} ${t} subNavigationHolder ${i?W.navigationSubItemSmall:W.navigationSubItemLarge}`,children:[C.jsx("div",{className:W.sidebarChevron,children:C.jsx(F1,{icon:i?C.jsx(B2,{type:"bold"}):C.jsx(N2,{type:"bold"}),onClick:l})}),C.jsxs("div",{onClick:o,className:W.sidebarTitle,children:[C.jsx(b1,{}),C.jsxs("div",{children:[C.jsx("h5",{children:n}),!!s&&C.jsx("span",{className:W.bilingualTitle,children:s})]})]}),r]})},S8=e=>{const{icon:t,contents:r,extraClass:n,activeState:l,bilingualTitle:o}=e;return C.jsx("div",{className:`${W.subNavigationItemHolder} subNavigationItemHolder`,children:C.jsxs("div",{className:`${W.subNavigationItem} ${n} subNavigationItem ${l?W.active:""}`,children:[!!t&&C.jsx("div",{className:`${W.subNavigationIcon} subNavigationIcon`,children:t}),C.jsxs("div",{children:[C.jsx("div",{className:`${W.subNavigationItemBody} subNavigationItemBody`,children:r}),!!o&&C.jsx("span",{className:W.bilingualTitle,children:o})]})]})})};exports.Accordion=W1;exports.AccordionContext=X2;exports.AccordionItem=X1;exports.AccordionProvider=p1;exports.AddressBook=G9;exports.ArrowLeft=b1;exports.ArrowsDownUp=z9;exports.ArrowsOutCardinal=U9;exports.Asterisk=K9;exports.At=J9;exports.Badge=s5;exports.BannerCard=M5;exports.Barbell=q7;exports.Bell=S1;exports.BetterUIContext=J2;exports.BetterUIProvider=q1;exports.BookOpenText=s7;exports.Broadcast=X9;exports.Button=Q2;exports.CalendarBank=M1;exports.CalloutPopup=A1;exports.CalloutPopupActionHolder=t3;exports.Campfire=U7;exports.CaretDown=H2;exports.CaretLeft=N2;exports.CaretRight=B2;exports.CaretUp=L2;exports.CaretUpDown=W9;exports.ChartBar=v7;exports.ChartBarHorizontal=H7;exports.ChartLine=p7;exports.ChartPie=L7;exports.Chat=Q9;exports.Check=D7;exports.CheckSquare=k7;exports.Checkbox=_5;exports.CheckboxSelect=$5;exports.CheckboxSelectItem=T5;exports.CheckboxSet=S5;exports.CheckboxSetItem=I5;exports.Clock=$1;exports.CurrencyDollarSimple=H1;exports.CurrencyField=J5;exports.DateField=X5;exports.DotsSixVertical=T7;exports.DotsThreeVertical=E7;exports.DownloadSimple=R7;exports.DropHalfBottom=o7;exports.DropdownBadge=f9;exports.DropdownBadgeItem=Z1;exports.DropdownBadgeSelector=V1;exports.DropdownField=j9;exports.DropdownFieldItem=q2;exports.DropdownFieldSelector=j1;exports.EmailField=_9;exports.EnvelopeSimple=t7;exports.ErrorMessage=b9;exports.Export=r7;exports.Eye=y1;exports.EyeSlash=B1;exports.Folder=m7;exports.FormFieldHolder=E9;exports.Gear=O7;exports.Globe=a7;exports.Header=c3;exports.HeaderLeft=d3;exports.HeaderRight=h3;exports.HouseSimple=c7;exports.IconButton=q9;exports.List=N1;exports.ListBullets=j7;exports.LockKeyOpen=I7;exports.LockSimple=m1;exports.MagnifyingGlass=I1;exports.Media=p0;exports.Minus=g7;exports.Modal=I0;exports.ModalActions=$0;exports.ModalActionsLeft=T0;exports.ModalActionsRight=E0;exports.ModalBody=k0;exports.ModalCurtain=P0;exports.ModalHeader=O0;exports.Mountains=W7;exports.MultiSelectField=s6;exports.MultiSelectFieldItem=E1;exports.MultiSelectFieldTag=T1;exports.Notification=h4;exports.NotificationsBell=W0;exports.NotificationsGroup=w4;exports.NotificationsGroups=u4;exports.NotificationsHeader=g4;exports.NotificationsNone=x4;exports.NotificationsPanel=f4;exports.NumberField=s0;exports.NumberSquareThree=x7;exports.Pagination=w3;exports.PaginationFirst=u3;exports.PaginationLast=f3;exports.PaginationNext=g3;exports.PaginationNumber=x3;exports.PaginationPrevious=v3;exports.PasswordField=Z6;exports.Path=d7;exports.PathwayCard=x0;exports.PencilLine=n7;exports.PencilSimple=i7;exports.PersonSimpleBike=S7;exports.PersonSimpleWalk=N7;exports.Phone=e7;exports.PhoneField=d0;exports.Plus=f7;exports.Printer=_7;exports.ProfileAvatar=Z3;exports.ProfileDropdown=C8;exports.ProfileHeader=e8;exports.ProfileLink=t8;exports.ProfileLinks=r8;exports.ProfileNavigationItem=n8;exports.ProfileSwitchPanel=i8;exports.ProfileSwitchUser=l8;exports.Question=$7;exports.RadioButton=S6;exports.RadioButtonIcon=P7;exports.RadioButtons=I6;exports.RichTextEditor=t0;exports.RoadHorizon=w7;exports.Ruler=l7;exports.Sidebar=b8;exports.SidebarChevron=F1;exports.SidebarNavigation=y8;exports.SidebarNavigationItem=B8;exports.SidebarSubNavigation=N8;exports.SidebarSubNavigationItem=S8;exports.SignIn=F7;exports.SignOut=A7;exports.SildersHorizontal=M7;exports.SwimmingPool=u7;exports.Tab=Z4;exports.TabBody=m4;exports.TabBodyContent=j4;exports.TabContext=S2;exports.TabNav=_4;exports.TabNavItem=b4;exports.Table=D4;exports.TableBody=q4;exports.TableCell=W4;exports.TableCellAction=z4;exports.TableCellWithDesc=U4;exports.TableCellWithImage=Y4;exports.TableFooter=G4;exports.TableHead=K4;exports.TableHeaderCell=J4;exports.TableRow=X4;exports.TextAa=V7;exports.TextColumns=Z7;exports.TextField=o0;exports.Textarea=l0;exports.TimeField=c0;exports.ToggleSwitch=g0;exports.Tram=h7;exports.Translate=C7;exports.Tree=z7;exports.TypableDropdownField=V6;exports.TypableDropdownFieldItem=z2;exports.TypableDropdownFieldSelector=W2;exports.UnitField=a0;exports.User=b7;exports.UserCircle=y7;exports.UserSwitch=B7;exports.WarningCircle=_1;exports.WindowsLogo=Y9;exports.XIcon=M2;
|
|
24
|
+
Valid keys: `+JSON.stringify(Object.keys(v),null," "));var V=l2(P,q,T,F,E+"."+q,r);if(V)return V}return null}return p(Z)}function X(v){switch(typeof v){case"number":case"string":case"undefined":return!0;case"boolean":return!v;case"object":if(Array.isArray(v))return v.every(X);if(v===null||s(v))return!0;var Z=d(v);if(Z){var O=Z.call(v),k;if(Z!==v.entries){for(;!(k=O.next()).done;)if(!X(k.value))return!1}else for(;!(k=O.next()).done;){var T=k.value;if(T&&!X(T[1]))return!1}}else return!1;return!0;default:return!1}}function d2(v,Z){return v==="symbol"?!0:Z?Z["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Z instanceof Symbol:!1}function I(v){var Z=typeof v;return Array.isArray(v)?"array":v instanceof RegExp?"object":d2(Z,v)?"symbol":Z}function C2(v){if(typeof v>"u"||v===null)return""+v;var Z=I(v);if(Z==="object"){if(v instanceof Date)return"date";if(v instanceof RegExp)return"regexp"}return Z}function v2(v){var Z=C2(v);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function I2(v){return!v.constructor||!v.constructor.name?w:v.constructor.name}return u.checkPropTypes=l,u.resetWarningCache=l.resetWarningCache,u.PropTypes=u,u},P2}var O2,d1;function A6(){if(d1)return O2;d1=1;var e=C1();function t(){}function r(){}return r.resetWarningCache=t,O2=function(){function n(i,s,a,c,h,d){if(d!==e){var w=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw w.name="Invariant Violation",w}}n.isRequired=n;function l(){return n}var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:l,element:n,elementType:n,instanceOf:l,node:n,objectOf:l,oneOf:l,oneOfType:l,shape:l,exact:l,checkPropTypes:r,resetWarningCache:t};return o.PropTypes=o,o},O2}if(process.env.NODE_ENV!=="production"){var F6=k1(),D6=!0;U2.exports=R6()(F6.isElement,D6)}else U2.exports=A6()();var g=U2.exports,Y2=globalThis&&globalThis.__assign||function(){return Y2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},Y2.apply(this,arguments)},O1={onActivate:g.func,onAddUndo:g.func,onBeforeAddUndo:g.func,onBeforeExecCommand:g.func,onBeforeGetContent:g.func,onBeforeRenderUI:g.func,onBeforeSetContent:g.func,onBeforePaste:g.func,onBlur:g.func,onChange:g.func,onClearUndos:g.func,onClick:g.func,onContextMenu:g.func,onCommentChange:g.func,onCopy:g.func,onCut:g.func,onDblclick:g.func,onDeactivate:g.func,onDirty:g.func,onDrag:g.func,onDragDrop:g.func,onDragEnd:g.func,onDragGesture:g.func,onDragOver:g.func,onDrop:g.func,onExecCommand:g.func,onFocus:g.func,onFocusIn:g.func,onFocusOut:g.func,onGetContent:g.func,onHide:g.func,onInit:g.func,onKeyDown:g.func,onKeyPress:g.func,onKeyUp:g.func,onLoadContent:g.func,onMouseDown:g.func,onMouseEnter:g.func,onMouseLeave:g.func,onMouseMove:g.func,onMouseOut:g.func,onMouseOver:g.func,onMouseUp:g.func,onNodeChange:g.func,onObjectResizeStart:g.func,onObjectResized:g.func,onObjectSelected:g.func,onPaste:g.func,onPostProcess:g.func,onPostRender:g.func,onPreProcess:g.func,onProgressState:g.func,onRedo:g.func,onRemove:g.func,onReset:g.func,onSaveContent:g.func,onSelectionChange:g.func,onSetAttrib:g.func,onSetContent:g.func,onShow:g.func,onSubmit:g.func,onUndo:g.func,onVisualAid:g.func,onSkinLoadError:g.func,onThemeLoadError:g.func,onModelLoadError:g.func,onPluginLoadError:g.func,onIconsLoadError:g.func,onLanguageLoadError:g.func,onScriptsLoad:g.func,onScriptsLoadError:g.func},q6=Y2({apiKey:g.string,id:g.string,inline:g.bool,init:g.object,initialValue:g.string,onEditorChange:g.func,value:g.string,tagName:g.string,cloudChannel:g.string,plugins:g.oneOfType([g.string,g.array]),toolbar:g.oneOfType([g.string,g.array]),disabled:g.bool,textareaName:g.string,tinymceScriptSrc:g.oneOfType([g.string,g.arrayOf(g.string),g.arrayOf(g.shape({src:g.string,async:g.bool,defer:g.bool}))]),rollback:g.oneOfType([g.number,g.oneOf([!1])]),scriptLoading:g.shape({async:g.bool,defer:g.bool,delay:g.number})},O1),R2=function(e){return typeof e=="function"},h1=function(e){return e in O1},w1=function(e){return e.substr(2)},W6=function(e,t,r,n,l,o,i){var s=Object.keys(l).filter(h1),a=Object.keys(o).filter(h1),c=s.filter(function(d){return o[d]===void 0}),h=a.filter(function(d){return l[d]===void 0});c.forEach(function(d){var w=w1(d),u=i[w];r(w,u),delete i[w]}),h.forEach(function(d){var w=n(e,d),u=w1(d);i[u]=w,t(u,w)})},z6=function(e,t,r,n,l){return W6(l,e.on.bind(e),e.off.bind(e),function(o,i){return function(s){var a;return(a=o(i))===null||a===void 0?void 0:a(s,e)}},t,r,n)},u1=0,R1=function(e){var t=Date.now(),r=Math.floor(Math.random()*1e9);return u1++,e+"_"+r+u1+String(t)},f1=function(e){return e!==null&&(e.tagName.toLowerCase()==="textarea"||e.tagName.toLowerCase()==="input")},g1=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},U6=function(e,t){return g1(e).concat(g1(t))},Y6=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},G6=function(e){if(!("isConnected"in Node.prototype)){for(var t=e,r=e.parentNode;r!=null;)t=r,r=t.parentNode;return t===e.ownerDocument}return e.isConnected},x1=function(e,t){e!==void 0&&(e.mode!=null&&typeof e.mode=="object"&&typeof e.mode.set=="function"?e.mode.set(t):e.setMode(t))},G2=globalThis&&globalThis.__assign||function(){return G2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},G2.apply(this,arguments)},K6=function(e,t,r){var n,l,o=e.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=t.id,o.src=t.src,o.async=(n=t.async)!==null&&n!==void 0?n:!1,o.defer=(l=t.defer)!==null&&l!==void 0?l:!1;var i=function(){o.removeEventListener("load",i),o.removeEventListener("error",s),r(t.src)},s=function(a){o.removeEventListener("load",i),o.removeEventListener("error",s),r(t.src,a)};o.addEventListener("load",i),o.addEventListener("error",s),e.head&&e.head.appendChild(o)},J6=function(e){var t={},r=function(i,s){var a=t[i];a.done=!0,a.error=s;for(var c=0,h=a.handlers;c<h.length;c++){var d=h[c];d(i,s)}a.handlers=[]},n=function(i,s,a){var c=function(m){return a!==void 0?a(m):console.error(m)};if(i.length===0){c(new Error("At least one script must be provided"));return}for(var h=0,d=!1,w=function(m,b){d||(b?(d=!0,c(b)):++h===i.length&&s())},u=0,L=i;u<L.length;u++){var H=L[u],p=t[H.src];if(p)p.done?w(H.src,p.error):p.handlers.push(w);else{var j=R1("tiny-");t[H.src]={id:j,src:H.src,done:!1,error:null,handlers:[w]},K6(e,G2({id:j},H),r)}}},l=function(){for(var i,s=0,a=Object.values(t);s<a.length;s++){var c=a[s],h=e.getElementById(c.id);h!=null&&h.tagName==="SCRIPT"&&((i=h.parentNode)===null||i===void 0||i.removeChild(h))}t={}},o=function(){return e};return{loadScripts:n,deleteScripts:l,getDocument:o}},X6=function(){var e=[],t=function(l){var o=e.find(function(i){return i.getDocument()===l});return o===void 0&&(o=J6(l),e.push(o)),o},r=function(l,o,i,s,a){var c=function(){return t(l).loadScripts(o,s,a)};i>0?setTimeout(c,i):c()},n=function(){for(var l=e.pop();l!=null;l=e.pop())l.deleteScripts()};return{loadList:r,reinitialize:n}},Q6=X6(),A2=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},C0=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(n[o]=l[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),y2=globalThis&&globalThis.__assign||function(){return y2=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},y2.apply(this,arguments)},e0=function(e){C0(t,e);function t(r){var n,l,o,i=e.call(this,r)||this;return i.rollbackTimer=void 0,i.valueCursor=void 0,i.rollbackChange=function(){var s=i.editor,a=i.props.value;s&&a&&a!==i.currentContent&&s.undoManager.ignore(function(){if(s.setContent(a),i.valueCursor&&(!i.inline||s.hasFocus()))try{s.selection.moveToBookmark(i.valueCursor)}catch{}}),i.rollbackTimer=void 0},i.handleBeforeInput=function(s){if(i.props.value!==void 0&&i.props.value===i.currentContent&&i.editor&&(!i.inline||i.editor.hasFocus()))try{i.valueCursor=i.editor.selection.getBookmark(3)}catch{}},i.handleBeforeInputSpecial=function(s){(s.key==="Enter"||s.key==="Backspace"||s.key==="Delete")&&i.handleBeforeInput(s)},i.handleEditorChange=function(s){var a=i.editor;if(a&&a.initialized){var c=a.getContent();i.props.value!==void 0&&i.props.value!==c&&i.props.rollback!==!1&&(i.rollbackTimer||(i.rollbackTimer=window.setTimeout(i.rollbackChange,typeof i.props.rollback=="number"?i.props.rollback:200))),c!==i.currentContent&&(i.currentContent=c,R2(i.props.onEditorChange)&&i.props.onEditorChange(c,a))}},i.handleEditorChangeSpecial=function(s){(s.key==="Backspace"||s.key==="Delete")&&i.handleEditorChange(s)},i.initialise=function(s){var a,c,h;s===void 0&&(s=0);var d=i.elementRef.current;if(d){if(!G6(d)){if(s===0)setTimeout(function(){return i.initialise(1)},1);else if(s<100)setTimeout(function(){return i.initialise(s+1)},100);else throw new Error("tinymce can only be initialised when in a document");return}var w=A2(i.view);if(!w)throw new Error("tinymce should have been loaded into global scope");var u=y2(y2({},i.props.init),{selector:void 0,target:d,readonly:i.props.disabled,inline:i.inline,plugins:U6((a=i.props.init)===null||a===void 0?void 0:a.plugins,i.props.plugins),toolbar:(c=i.props.toolbar)!==null&&c!==void 0?c:(h=i.props.init)===null||h===void 0?void 0:h.toolbar,setup:function(L){i.editor=L,i.bindHandlers({}),i.inline&&!f1(d)&&L.once("PostRender",function(H){L.setContent(i.getInitialValue(),{no_events:!0})}),i.props.init&&R2(i.props.init.setup)&&i.props.init.setup(L)},init_instance_callback:function(L){var H,p,j=i.getInitialValue();i.currentContent=(H=i.currentContent)!==null&&H!==void 0?H:L.getContent(),i.currentContent!==j&&(i.currentContent=j,L.setContent(j),L.undoManager.clear(),L.undoManager.add(),L.setDirty(!1));var m=(p=i.props.disabled)!==null&&p!==void 0?p:!1;x1(i.editor,m?"readonly":"design"),i.props.init&&R2(i.props.init.init_instance_callback)&&i.props.init.init_instance_callback(L)}});i.inline||(d.style.visibility=""),f1(d)&&(d.value=i.getInitialValue()),w.init(u)}},i.id=i.props.id||R1("tiny-react"),i.elementRef=_2.createRef(),i.inline=(o=(n=i.props.inline)!==null&&n!==void 0?n:(l=i.props.init)===null||l===void 0?void 0:l.inline)!==null&&o!==void 0?o:!1,i.boundHandlers={},i}return Object.defineProperty(t.prototype,"view",{get:function(){var r,n;return(n=(r=this.elementRef.current)===null||r===void 0?void 0:r.ownerDocument.defaultView)!==null&&n!==void 0?n:window},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(r){var n=this,l,o;if(this.rollbackTimer&&(clearTimeout(this.rollbackTimer),this.rollbackTimer=void 0),this.editor&&(this.bindHandlers(r),this.editor.initialized)){if(this.currentContent=(l=this.currentContent)!==null&&l!==void 0?l:this.editor.getContent(),typeof this.props.initialValue=="string"&&this.props.initialValue!==r.initialValue)this.editor.setContent(this.props.initialValue),this.editor.undoManager.clear(),this.editor.undoManager.add(),this.editor.setDirty(!1);else if(typeof this.props.value=="string"&&this.props.value!==this.currentContent){var i=this.editor;i.undoManager.transact(function(){var a;if(!n.inline||i.hasFocus())try{a=i.selection.getBookmark(3)}catch{}var c=n.valueCursor;if(i.setContent(n.props.value),!n.inline||i.hasFocus())for(var h=0,d=[a,c];h<d.length;h++){var w=d[h];if(w)try{i.selection.moveToBookmark(w),n.valueCursor=w;break}catch{}}})}if(this.props.disabled!==r.disabled){var s=(o=this.props.disabled)!==null&&o!==void 0?o:!1;x1(this.editor,s?"readonly":"design")}}},t.prototype.componentDidMount=function(){var r=this,n,l,o,i,s;if(A2(this.view)!==null)this.initialise();else if(Array.isArray(this.props.tinymceScriptSrc)&&this.props.tinymceScriptSrc.length===0)(l=(n=this.props).onScriptsLoadError)===null||l===void 0||l.call(n,new Error("No `tinymce` global is present but the `tinymceScriptSrc` prop was an empty array."));else if(!((o=this.elementRef.current)===null||o===void 0)&&o.ownerDocument){var a=function(){var h,d;(d=(h=r.props).onScriptsLoad)===null||d===void 0||d.call(h),r.initialise()},c=function(h){var d,w;(w=(d=r.props).onScriptsLoadError)===null||w===void 0||w.call(d,h)};Q6.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),(s=(i=this.props.scriptLoading)===null||i===void 0?void 0:i.delay)!==null&&s!==void 0?s:0,a,c)}},t.prototype.componentWillUnmount=function(){var r=this,n=this.editor;n&&(n.off(this.changeEvents(),this.handleEditorChange),n.off(this.beforeInputEvent(),this.handleBeforeInput),n.off("keypress",this.handleEditorChangeSpecial),n.off("keydown",this.handleBeforeInputSpecial),n.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach(function(l){n.off(l,r.boundHandlers[l])}),this.boundHandlers={},n.remove(),this.editor=void 0)},t.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},t.prototype.changeEvents=function(){var r,n,l,o=(l=(n=(r=A2(this.view))===null||r===void 0?void 0:r.Env)===null||n===void 0?void 0:n.browser)===null||l===void 0?void 0:l.isIE();return o?"change keyup compositionend setcontent CommentChange":"change input compositionend setcontent CommentChange"},t.prototype.beforeInputEvent=function(){return Y6()?"beforeinput SelectionChange":"SelectionChange"},t.prototype.renderInline=function(){var r=this.props.tagName,n=r===void 0?"div":r;return _2.createElement(n,{ref:this.elementRef,id:this.id})},t.prototype.renderIframe=function(){return _2.createElement("textarea",{ref:this.elementRef,style:{visibility:"hidden"},name:this.props.textareaName,id:this.id})},t.prototype.getScriptSources=function(){var r,n,l=(r=this.props.scriptLoading)===null||r===void 0?void 0:r.async,o=(n=this.props.scriptLoading)===null||n===void 0?void 0:n.defer;if(this.props.tinymceScriptSrc!==void 0)return typeof this.props.tinymceScriptSrc=="string"?[{src:this.props.tinymceScriptSrc,async:l,defer:o}]:this.props.tinymceScriptSrc.map(function(c){return typeof c=="string"?{src:c,async:l,defer:o}:c});var i=this.props.cloudChannel,s=this.props.apiKey?this.props.apiKey:"no-api-key",a="https://cdn.tiny.cloud/1/".concat(s,"/tinymce/").concat(i,"/tinymce.min.js");return[{src:a,async:l,defer:o}]},t.prototype.getInitialValue=function(){return typeof this.props.initialValue=="string"?this.props.initialValue:typeof this.props.value=="string"?this.props.value:""},t.prototype.bindHandlers=function(r){var n=this;if(this.editor!==void 0){z6(this.editor,r,this.props,this.boundHandlers,function(s){return n.props[s]});var l=function(s){return s.onEditorChange!==void 0||s.value!==void 0},o=l(r),i=l(this.props);!o&&i?(this.editor.on(this.changeEvents(),this.handleEditorChange),this.editor.on(this.beforeInputEvent(),this.handleBeforeInput),this.editor.on("keydown",this.handleBeforeInputSpecial),this.editor.on("keyup",this.handleEditorChangeSpecial),this.editor.on("NewBlock",this.handleEditorChange)):o&&!i&&(this.editor.off(this.changeEvents(),this.handleEditorChange),this.editor.off(this.beforeInputEvent(),this.handleBeforeInput),this.editor.off("keydown",this.handleBeforeInputSpecial),this.editor.off("keyup",this.handleEditorChangeSpecial),this.editor.off("NewBlock",this.handleEditorChange))}},t.propTypes=q6,t.defaultProps={cloudChannel:"6"},t}(_2.Component);const t0=e=>{const{name:t,id:r,value:n,extraClass:l,placeholder:o,error:i,disabled:s,readonly:a,autoComplete:c,required:h,ariaLabel:d,ariaLabeledby:w,ariaDescribedby:u,rows:L,onClick:H,onChange:p,onFocus:j,onBlur:m,...b}=e,[_,f]=x.useState(n),y=[t1.holder];return l&&y.push(l),C.jsxs("div",{className:z(y),children:[C.jsx(e0,{textareaName:t,scriptLoading:{async:!0},tinymceScriptSrc:"/lib/tinymce/tinymce.min.js",id:r,disabled:s,value:n,init:{height:L?50*L:200,menubar:!1,branding:!1,plugins:["advlist","autolink","lists","link","image","charmap","preview","anchor","searchreplace","visualblocks","fullscreen","media","table"],toolbar:"blocks | formatselect | bold italic underline | bullist numlist | outdent indent | alignleft aligncenter | undo redo",content_style:":root { --body-font: Figtree, sans-serif; } body { font-family: var(--body-font); }"},onEditorChange:N=>{f(N),p&&p(N)},onClick:N=>{H&&H(N)},onBlur:N=>{m&&m(N)},onFocus:N=>{j&&j(N)}}),C.jsx("textarea",{className:t1.hidden,id:`editor-text-${r}`,name:`${t}__editor`,value:_,placeholder:o,disabled:s,readOnly:a,required:h,autoComplete:c?"on":"off","aria-label":d||t,"aria-required":h?"true":"false","aria-invalid":i?"true":"false","aria-disabled":s?"true":"false","aria-readonly":a?"true":"false","aria-autocomplete":c?"list":"none",...b})]})},r0="_textarea_1y8ok_1",n0="_error_1y8ok_29",i0="_length_1y8ok_38",F2={textarea:r0,error:n0,length:i0},l0=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,rows:w,displayChars:u,maxLength:L,onChange:H,...p}=e,[j,m]=x.useState(""),b=f=>{var y;m((y=f.target)==null?void 0:y.value),H&&H(f)},_=[F2.textarea];return s&&_.push(F2.error),o&&_.push(o),C.jsxs(C.Fragment,{children:[C.jsx("textarea",{className:z(_),id:r,name:t,value:n,placeholder:l,rows:w,onChange:b,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false","aria-autocomplete":d?"list":"none",...p}),!!u&&C.jsxs("p",{className:F2.length,children:[j.length," / ",L]})]})},o0=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,icon:w,...u}=e,L=[R.input];return s&&L.push(R.error),o&&L.push(o),C.jsxs("div",{className:`${w?R.textField:""}`,children:[C.jsx("input",{className:z(L),id:r,name:t,type:"text",value:n,placeholder:l,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false","aria-autocomplete":d?"list":"none",...u}),!!w&&C.jsx("div",{className:R.textFieldIcon,children:w})]})},s0=e=>{const{name:t,id:r,placeholder:n,extraClass:l,disabled:o,error:i,ariaLabel:s,required:a,readonly:c,autoComplete:h,numberValue:d,preventScrolling:w,formatter:u=!0,onChange:L,...H}=e,p=x.useRef(null),[j,m]=x.useState("");x.useEffect(()=>{if(u){if(d){const y=d.replace(/[^0-9.]/g,"");m(b(y))}}else m(d)},[d]);const b=y=>{if(u){const N=y.split(".");return N[0]=N[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),N.join(".")}},_=y=>{const{value:N}=y.target,B=N.replace(/[^0-9.]/g,""),$=B.split(".").length-1;let S=B;if($>1&&(S=B.slice(0,B.lastIndexOf("."))),m(b(S)),L){const J={...y,target:{...y.target,value:S}};L(J)}};x.useEffect(()=>{const y=B=>{w&&B.target===p.current&&B.preventDefault()},N=p.current;return N&&N.addEventListener("wheel",y),()=>{N&&N.removeEventListener("wheel",y)}},[w]);const f=[R.input];return i&&f.push(R.error),l&&f.push(l),C.jsx("input",{className:z(f),id:r,name:t,type:u?"text":"number",value:j,placeholder:n,disabled:o,readOnly:c,required:a,autoComplete:h?"on":"off","aria-label":s||t,"aria-required":a?"true":"false","aria-invalid":i?"true":"false","aria-disabled":o?"true":"false","aria-readonly":c?"true":"false","aria-autocomplete":h?"list":"none",ref:p,onChange:_,...H})},a0=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,unitText:w="ha",formatter:u=!0,onChange:L,...H}=e,[p,j]=x.useState(0),m=x.useRef(null),[b,_]=x.useState("");x.useEffect(()=>{if(u){if(n){const B=n.replace(/[^0-9.]/g,"");_(f(B))}}else _(n)},[n]);const f=B=>{if(u){const $=B.split(".");return $[0]=$[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),$.join(".")}},y=B=>{const{value:$}=B.target,S=$.replace(/[^0-9.]/g,""),J=S.split(".").length-1;let M=S;if(J>1&&(M=S.slice(0,S.lastIndexOf("."))),_(f(M)),L){const A={...B,target:{...B.target,value:M}};L(A)}};x.useEffect(()=>{var S;const B=document.getElementById(`unitTextWidth ${r}`),$=((S=m.current)==null?void 0:S.offsetWidth)||0;B&&j($+16)},[r,w]);const N=[R.input];return s&&N.push(R.error),o&&N.push(o),C.jsxs("div",{className:`${R.unitField}`,children:[C.jsx("input",{style:{paddingRight:`${p}px`},className:z(N),id:`unitTextWidth ${r}`,name:t,type:u?"text":"number",value:b,placeholder:l,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false","aria-autocomplete":d?"list":"none",onChange:y,...H}),C.jsx("div",{className:R.unitText,ref:m,children:w})]})},c0=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,...w}=e,u=[R.input];return s&&u.push(R.error),o&&u.push(o),C.jsxs("div",{className:R.time,children:[C.jsx("input",{className:z(u),id:r,name:t,type:"time",value:n,placeholder:l,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false",pattern:"[0-2][0-9]:[0-5][0-9]",...w}),C.jsx("div",{className:R.clockIcon,children:C.jsx($1,{type:"light"})})]})},d0=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,...w}=e,u=[R.input];return s&&u.push(R.error),o&&u.push(o),C.jsx("input",{className:z(u),id:r,name:t,type:"tel",value:n,placeholder:l,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false","aria-autocomplete":d?"list":"none",...w})},h0="_error_tatej_7",w0="_slider_tatej_7",u0="_circle_tatej_10",f0="_round_tatej_64",V2={switch:"_switch_tatej_1",error:h0,slider:w0,circle:u0,round:f0},g0=e=>{const{name:t,checked:r,id:n,value:l,placeholder:o,extraClass:i,disabled:s,error:a,ariaLabel:c,required:h,readonly:d,onChange:w,...u}=e,[L,H]=x.useState(!1),p=["switch",V2.switch];i&&p.push(i),a&&p.push(V2.error),x.useEffect(()=>{H(r||!1)},[r]);const j=m=>{H(!L),w&&w(m,L)};return C.jsxs("div",{className:z(p),children:[C.jsx("input",{id:n,name:t,checked:L,type:"checkbox",value:l,placeholder:o,disabled:s,readOnly:d,required:h,"aria-label":c||t,"aria-required":h?"true":"false","aria-invalid":a?"true":"false","aria-disabled":s?"true":"false","aria-readonly":d?"true":"false",onClick:j,...u}),C.jsx("span",{className:`${V2.slider} ${V2.round}`,children:C.jsx("span",{className:`${V2.circle}`,children:C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"9",viewBox:"0 0 12 9",fill:"none",children:C.jsx("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.5458 1.47502C11.7411 1.67029 11.7411 1.98687 11.5458 2.18213L5.18186 8.54609C4.9866 8.74135 4.67002 8.74135 4.47476 8.54609L0.939224 5.01056C0.743962 4.8153 0.743962 4.49871 0.939224 4.30345L1.64633 3.59635C1.84159 3.40108 2.15818 3.40108 2.35344 3.59635L4.82831 6.07122L10.1316 0.767918C10.3269 0.572656 10.6435 0.572656 10.8387 0.767918L11.5458 1.47502Z",fill:"currentColor"})})})})]})},x0=e=>{const{title:t,btnTitle:r,description:n,image:l,btnType:o,btnScheme:i,btnSize:s,btnStyle:a,extraClass:c="",cardOnClick:h,btnOnClick:d}=e,w=typeof l;return C.jsx("div",{className:`pathway-card ${c}`,onClick:u=>{h&&h(u)},children:C.jsxs("div",{className:"pathway-card__wrapper",children:[w==="string"&&C.jsx("div",{className:"pathway-card__picture",style:{backgroundImage:l?`url(${l})`:""}}),w!=="string"&&C.jsx("div",{className:"pathway-card__picture",children:l}),C.jsxs("div",{className:"pathway-card__inner",children:[C.jsxs("div",{className:"pathway-card__content",children:[!!t&&C.jsx("h3",{className:"pathway-card__title",children:t}),!!n&&C.jsx("p",{className:"pathway-card__desc",children:n})]}),C.jsx(Q2,{label:r,type:o,style:a,size:s,scheme:i,onClick:d})]})]})})},v0="_mediaImage_1k8jm_1",v1={mediaImage:v0},p0=e=>{const{type:t,videoSrc:r,imageSrc:n}=e,l=typeof n=="string";return C.jsxs(C.Fragment,{children:[t==="image"&&C.jsx(C.Fragment,{children:l?C.jsx("img",{src:n,alt:"media image",className:v1.mediaImage}):C.jsx("div",{className:v1.mediaImage,children:n})}),t==="video"&&C.jsxs("div",{className:"video-container",children:[C.jsx("div",{className:"custom-play-button",children:C.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 64 64",children:C.jsx("path",{fill:"#fff",d:"M32 2C16.536 2 4 14.536 4 30s12.536 28 28 28 28-12.536 28-28S47.464 2 32 2zm13.898 32.111L20 50V14l25.898 15.889z"})})}),C.jsxs("video",{controls:!0,className:"custom-video",children:[C.jsx("source",{src:r,type:"video/mp4"}),"Your browser does not support the video tag."]})]})]})},L0="_holder_x3ny8_1",H0="_modal_x3ny8_26",M0="_wrapper_x3ny8_37",V0="_modalHeader_x3ny8_43",Z0="_modalHeaderWrapper_x3ny8_47",m0="_heading_x3ny8_53",j0="_icon_x3ny8_58",_0="_modalBody_x3ny8_68",b0="_modalBodyWrapper_x3ny8_86",y0="_modalAction_x3ny8_90",B0="_modalActionRight_x3ny8_98",N0="_modalActionLeft_x3ny8_98",S0="_curtain_x3ny8_107",n2={holder:L0,modal:H0,wrapper:M0,modalHeader:V0,modalHeaderWrapper:Z0,heading:m0,icon:j0,modalBody:_0,modalBodyWrapper:b0,modalAction:y0,modalActionRight:B0,modalActionLeft:N0,curtain:S0},I0=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${n2.holder} ${r} modalHolder`,children:C.jsx("div",{className:`${n2.modal} modal`,children:C.jsx("div",{className:`${n2.wrapper} modalWrapper`,children:t})})})},$0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalAction} ${r}`,children:t})},T0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalActionLeft} ${r}`,children:t})},E0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalActionRight} ${r}`,children:t})},k0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalBody} ${r} modalBody`,children:C.jsx("div",{className:`${n2.modalBodyWrapper} modalBodyWrapper`,children:t})})},P0=()=>C.jsx("div",{className:n2.curtain}),O0=e=>{const{canGoBack:t,canClose:r,title:n,extraClass:l=""}=e,o=x.useContext(J2),i=()=>{r&&o.closeModal()};return C.jsx("div",{className:`${n2.modalHeader} ${l}`,children:C.jsxs("div",{className:n2.modalHeaderWrapper,children:[!!t&&C.jsx("div",{className:`${n2.caretLeft} ${n2.icon}`,children:C.jsx(N2,{type:"bold"})}),C.jsx("div",{className:`${n2.heading} modalHeading`,children:!!n&&C.jsx("h4",{children:n})}),!!r&&C.jsx("span",{className:`${n2.close} ${n2.icon}`,onClick:i,children:C.jsx(M2,{type:"bold"})})]})})},R0="_notification_18pig_1",A0="_notificationIcon_18pig_4",F0="_pip_18pig_14",D0="_notiActive_18pig_30",q0="_notificationDropdown_18pig_33",Z2={notification:R0,notificationIcon:A0,pip:F0,notiActive:D0,notificationDropdown:q0},W0=e=>{const{children:t,extraClass:r,active:n}=e,[l,o]=x.useState(!1),i=x.useRef(null),s=a=>{i.current&&!i.current.contains(a.target)&&o(!1)};return x.useEffect(()=>(l?document.addEventListener("mousedown",s):document.removeEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}),[l]),C.jsxs("div",{className:`${Z2.notification} ${r}`,onClick:()=>o(!l),ref:i,children:[C.jsxs("div",{className:`${Z2.notificationIcon} ${l?Z2.notiActive:""}`,children:[n&&C.jsx("span",{className:Z2.pip}),C.jsx(S1,{})]}),t&&l&&C.jsx("div",{className:Z2.notificationDropdown,children:t})]})},z0="_notificationPanel_1y2of_1",U0="_notificationheader_1y2of_10",Y0="_notificationHeaderWrapper_1y2of_13",G0="_notificationMarkAllAction_1y2of_24",K0="_notificationGrouplistHolder_1y2of_35",J0="_spacing_1y2of_39",X0="_notificationGrouplist_1y2of_35",Q0="_notificationGroup_1y2of_35",C4="_notificationNone_1y2of_72",e4="_notificationList_1y2of_86",t4="_notificationListPip_1y2of_94",r4="_notificationListCloseIcon_1y2of_97",n4="_notificationListWrapper_1y2of_100",i4="_notificationListIcon_1y2of_126",l4="_notificationListContent_1y2of_135",o4="_notificationListInitial_1y2of_140",s4="_notificationListInitialWrapper_1y2of_152",a4="_notificationListDesc_1y2of_158",c4="_boldText_1y2of_163",d4="_summaryText_1y2of_166",e2={notificationPanel:z0,notificationheader:U0,notificationHeaderWrapper:Y0,notificationMarkAllAction:G0,notificationGrouplistHolder:K0,spacing:J0,notificationGrouplist:X0,notificationGroup:Q0,notificationNone:C4,notificationList:e4,notificationListPip:t4,notificationListCloseIcon:r4,notificationListWrapper:n4,notificationListIcon:i4,notificationListContent:l4,notificationListInitial:o4,notificationListInitialWrapper:s4,notificationListDesc:a4,boldText:c4,summaryText:d4},h4=e=>{const{notificationInitials:t,boldText:r,summaryText:n,notificationItemOnClick:l,regularText:o,extraClass:i,closeOnClick:s}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{onClick:l,className:`${e2.notificationList} ${i}`,children:C.jsxs("div",{className:e2.notificationListWrapper,children:[C.jsxs("div",{className:e2.notificationListIcon,children:[C.jsx("div",{className:e2.notificationListPip}),C.jsx("div",{onClick:s,className:e2.notificationListCloseIcon,children:C.jsx(M2,{})})]}),C.jsxs("div",{className:e2.notificationListContent,children:[t&&C.jsx("div",{className:e2.notificationListInitial,children:C.jsx("div",{className:e2.notificationListInitialWrapper,children:t})}),C.jsx("div",{className:e2.notificationListDesc,children:C.jsxs("p",{children:[r&&C.jsxs("span",{className:e2.boldText,children:[" ",r]}),o&&C.jsxs("span",{className:e2.regularText,children:[" ",o]}),n&&C.jsxs("span",{className:e2.summaryText,children:[" ",n]})]})})]})]})})})},w4=({children:e,title:t})=>C.jsxs(C.Fragment,{children:[t&&C.jsx("div",{className:e2.notificationGroup,children:C.jsx("h6",{children:t})}),C.jsx("div",{children:e})]}),u4=e=>{const{children:t}=e,[r,n]=x.useState(!1);return x.useEffect(()=>{const l=document.getElementById("listContainer");if(l){const o=()=>{const i=l.scrollHeight>l.clientHeight;n(i)};return window.addEventListener("resize",o),o(),()=>{window.removeEventListener("resize",o)}}},[]),C.jsx("div",{id:"listContainer",className:`${e2.notificationGrouplistHolder} ${r?e2.spacing:""}`,children:C.jsx("div",{className:`${e2.notificationGrouplist}`,children:t})})},f4=({children:e})=>C.jsx("div",{className:e2.notificationPanel,children:e}),g4=e=>{const{extraClass:t,markAllAsReadOnClick:r,showMarkAllAsRead:n}=e;return C.jsx("div",{className:`${e2.notificationheader} ${t}`,children:C.jsxs("div",{className:e2.notificationHeaderWrapper,children:[C.jsx("div",{children:C.jsx("h5",{children:"Notifications"})}),C.jsx("div",{children:n&&C.jsx("div",{onClick:r,className:e2.notificationMarkAllAction,children:C.jsx("h6",{children:"Mark all as Read"})})})]})})},x4=()=>C.jsx("li",{className:e2.notificationNone,children:C.jsx("h6",{children:"No notifications."})}),S2=x.createContext({currentIndex:0,setCurrentIndex:Function}),v4="_tab_1sliy_1",p4="_tabNav_1sliy_4",L4="_tabNavItem_1sliy_22",H4="_active_1sliy_37",M4="_item_1sliy_41",V4="_bilingualTitle_1sliy_48",g2={tab:v4,tabNav:p4,tabNavItem:L4,active:H4,item:M4,bilingualTitle:V4},Z4=({children:e,extraClass:t})=>{const[r,n]=x.useState(0);return C.jsx(S2.Provider,{value:{currentIndex:r,setCurrentIndex:n},children:C.jsx("div",{className:`${g2.tab} ${t}`,children:e})})},m4=({children:e,extraClass:t})=>C.jsx("div",{className:`${g2.tabBody} ${t}`,children:e}),j4=e=>{const t=x.useContext(S2),{children:r,tabIndex:n,extraClass:l}=e;return n===t.currentIndex?C.jsx("div",{className:`${l}`,children:r}):C.jsx(C.Fragment,{})},_4=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${g2.tabNav} ${r}`,children:t})},b4=e=>{const{title:t,bilingualTitle:r,tabIndex:n,onBeforeOpen:l=null,onAfterOpened:o=null,extraClass:i}=e,s=x.useContext(S2);let a=` ${g2.tabNavItem} ${i}`;s.currentIndex===n&&(a+=` ${g2.active}`);const c=h=>{let d=!0;if(l){const w=l();typeof w=="boolean"&&(d=w)}d&&(s.setCurrentIndex(h),o&&o())};return C.jsx(C.Fragment,{children:C.jsxs("div",{className:a,onClick:()=>{c(n)},children:[C.jsxs("span",{className:`${g2.item} item`,children:[" ",t]}),r&&C.jsxs("span",{className:`${g2.bilingualTitle} bilingualTitle`,children:[" ",r]})]})})},y4="_table_10sge_1",B4="_tableBody_10sge_6",N4="_tableHead_10sge_6",S4="_tableFooter_10sge_6",I4="_tableRow_10sge_10",$4="_tableCellHeading_10sge_22",T4="_tableCell_10sge_22",E4="_tableCellAlignLeft_10sge_44",k4="_tableCellAlignCenter_10sge_47",P4="_tableCellAlignRight_10sge_50",O4="_tableCellActions_10sge_54",R4="_smallDesc_10sge_87",A4="_cellWithPicture_10sge_94",F4="_cellImage_10sge_99",Q={table:y4,tableBody:B4,tableHead:N4,tableFooter:S4,tableRow:I4,tableCellHeading:$4,tableCell:T4,tableCellAlignLeft:E4,tableCellAlignCenter:k4,tableCellAlignRight:P4,tableCellActions:O4,smallDesc:R4,cellWithPicture:A4,cellImage:F4},D4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Q.table} ${r} table`,children:C.jsx("div",{className:"tableContainer",children:t})})},q4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Q.tableBody} ${r} `,children:t})})},W4=e=>{const{children:t,extraClass:r,align:n}=e,l=typeof t;let o=` ${Q.tableCellAlignLeft}`;n==="center"&&(o=Q.tableCellAlignCenter),n==="right"&&(o=Q.tableCellAlignRight);const i=z(o,r);return C.jsx("div",{className:`${Q.tableCell} ${i}`,children:C.jsxs(C.Fragment,{children:[l==="string"&&C.jsx("p",{children:t}),l!=="string"&&C.jsx(C.Fragment,{children:t})]})})},z4=e=>{const{children:t,extraClass:r,align:n}=e;let l=` ${Q.tableCellAlignLeft}`;return n==="center"&&(l=Q.tableCellAlignCenter),n==="right"&&(l=Q.tableCellAlignRight),C.jsx("div",{className:`${Q.tableCell} ${r} ${Q.tableCellActions} ${l}`,children:C.jsx("div",{children:t})})},U4=e=>{const{heading:t,description:r,extraClass:n}=e;return C.jsx("div",{className:`${Q.tableCell} ${n}`,children:C.jsxs("div",{children:[!!t&&C.jsx("p",{className:Q.descTitle,children:t}),!!r&&C.jsx("p",{className:Q.smallDesc,children:r})]})})},Y4=e=>{const{image:t,heading:r,description:n,extraClass:l}=e,o=typeof t;return C.jsx("div",{className:`${Q.tableCell} ${l}`,children:C.jsxs("div",{className:`${Q.cellWithPicture}`,children:[o==="string"&&C.jsx("div",{className:`${Q.cellImage} cellImage`,children:C.jsx("img",{src:t?`${t}`:"",alt:t})}),o!=="string"&&C.jsx("div",{className:`${Q.cellImage} cellImage`,children:t}),C.jsxs("div",{children:[!!r&&C.jsx("p",{className:`${Q.descTitle} descTitle`,children:r}),!!n&&C.jsx("p",{className:`${Q.smallDesc} smallDesc`,children:C.jsx("small",{children:n})})]})]})})},G4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Q.tableFooter} ${r} `,children:t})})},K4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Q.tableHead} ${r}`,children:t})},J4=e=>{const{children:t,extraClass:r,onClick:n}=e;return C.jsx("div",{className:`${Q.tableCellHeading} ${r}`,onClick:()=>{n&&n()},children:t})},X4=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${Q.tableRow} ${r}`,children:t})},Q4="_calloutPopupActionHolder_cpqb7_1",C3="_calloutPopup_cpqb7_1",e3="_calloutPopupWrapper_cpqb7_11",K2={calloutPopupActionHolder:Q4,calloutPopup:C3,calloutPopupWrapper:e3},A1=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${K2.calloutPopup} ${r}`,children:C.jsx("div",{className:`${K2.calloutPopupWrapper} calloutPopupWrapper`,children:t})})},t3=e=>{const{id:t,children:r,extraClassActionHolder:n,extraClassPopup:l,actionHolder:o}=e,[i,s]=x.useState({}),a=x.useRef(null);x.useEffect(()=>{const d=w=>{a.current&&!a.current.contains(w.target)&&s(u=>({...u,[`${t}`]:!1}))};return document.addEventListener("mousedown",d),()=>{document.removeEventListener("mousedown",d)}},[t]);const c=()=>{s(d=>({...d,[`${t}`]:!d[`${t}`]}))},h=()=>{s(d=>({...d,[`${t}`]:!1}))};return C.jsxs("div",{ref:a,className:`${K2.calloutPopupActionHolder} ${n}`,children:[C.jsx("div",{onClick:c,children:o}),i[`${t}`]&&C.jsx("div",{onClick:h,children:C.jsx(A1,{extraClass:l,children:r})})]})},r3="_header_y9i8j_1",n3="_headerLeft_y9i8j_10",i3="_layoutLogo_y9i8j_14",l3="_layoutLogoSmall_y9i8j_17",o3="_hamburgerBtn_y9i8j_20",s3="_headerRight_y9i8j_33",a3="_searchFieldWrap_y9i8j_39",x2={header:r3,headerLeft:n3,layoutLogo:i3,layoutLogoSmall:l3,hamburgerBtn:o3,headerRight:s3,searchFieldWrap:a3},c3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("header",{className:`${x2.header} ${r}`,children:t})},d3=e=>{const{logo:t,logoSmall:r,hamburgerOnclick:n,hamburgerState:l}=e,o=i=>{n&&n(i)};return C.jsxs("div",{className:x2.headerLeft,children:[C.jsx("div",{className:`${x2.layoutLogo} layoutLogo`,children:t}),C.jsx("div",{className:`${x2.layoutLogoSmall} layoutLogoSmall`,children:r}),C.jsx("div",{onClick:o,className:`${x2.hamburgerBtn} hamburgerBtn`,children:l?C.jsx(M2,{}):C.jsx(N1,{})})]})},h3=e=>{const{children:t,extraClass:r,fieldExtraClass:n,searchField:l,searchFieldShow:o}=e;return C.jsx("div",{className:`${x2.headerRight} ${r}`,children:C.jsxs("ul",{children:[o&&l&&C.jsx("li",{children:C.jsx("div",{className:`${x2.searchFieldWrap} ${n}`,children:l})}),t]})})},w3=()=>{},u3=()=>{},f3=()=>{},g3=()=>{},x3=()=>{},v3=()=>{},p3="_profile_1hjop_1",L3="_profileHolder_1hjop_5",H3="_profileInner_1hjop_9",M3="_avatar_1hjop_20",V3="_dropdown_1hjop_31",m2={profile:p3,profileHolder:L3,profileInner:H3,avatar:M3,dropdown:V3},Z3=e=>{const{initials:t,children:r,extraClass:n,onClick:l}=e;return C.jsxs("div",{className:`${m2.profileHolder}`,children:[C.jsx("div",{className:`${m2.profile} ${n}`,onClick:o=>{l&&l(o)},children:C.jsx("div",{className:`${m2.profileInner}`,children:!!t&&C.jsx("span",{className:`${m2.avatar}`,children:C.jsx("h3",{children:t})})})}),r&&C.jsx("div",{className:`${m2.dropdown}`,children:r})]})},m3="_profileDropdown_1apu2_1",j3="_profileHeader_1apu2_8",_3="_profileHeaderWrapper_1apu2_14",b3="_profileSwitchUserWrapper_1apu2_15",y3="_avatar_1apu2_19",B3="_content_1apu2_39",N3="_name_1apu2_39",S3="_role_1apu2_45",I3="_profileSwitchUserContent_1apu2_54",$3="_profileNavigationItem_1apu2_67",T3="_profileNavigationItemWrapper_1apu2_77",E3="_profileNavigationItemLeft_1apu2_84",k3="_profileNavigationItemIcon_1apu2_88",P3="_profileNavigationItemContent_1apu2_98",O3="_profileNavigationItemRight_1apu2_104",R3="_profileLinks_1apu2_113",A3="_profileLinksList_1apu2_116",F3="_profileLink_1apu2_113",D3="_profileSwitchPanel_1apu2_135",q3="_usersHolder_1apu2_141",W3="_spacing_1apu2_146",z3="_profileSwitchPanelHeader_1apu2_163",U3="_caretLeft_1apu2_170",Y3="_closeIcon_1apu2_171",G3="_headerTitle_1apu2_182",K3="_initialsTile_1apu2_183",J3="_fieldWrapper_1apu2_189",X3="_profileSwitchUser_1apu2_15",Q3="_profileSwitchUserAvatar_1apu2_203",U={profileDropdown:m3,profileHeader:j3,profileHeaderWrapper:_3,profileSwitchUserWrapper:b3,avatar:y3,content:B3,name:N3,role:S3,profileSwitchUserContent:I3,profileNavigationItem:$3,profileNavigationItemWrapper:T3,profileNavigationItemLeft:E3,profileNavigationItemIcon:k3,profileNavigationItemContent:P3,profileNavigationItemRight:O3,profileLinks:R3,profileLinksList:A3,profileLink:F3,profileSwitchPanel:D3,usersHolder:q3,spacing:W3,profileSwitchPanelHeader:z3,caretLeft:U3,closeIcon:Y3,headerTitle:G3,initialsTile:K3,fieldWrapper:J3,profileSwitchUser:X3,profileSwitchUserAvatar:Q3},C8=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${U.profileDropdown} ${r}`,children:t})},e8=e=>{const{initials:t,username:r,role:n,extraClass:l}=e;return C.jsx("div",{className:`${U.profileHeader} ${l}`,children:C.jsxs("div",{className:`${U.profileHeaderWrapper}`,children:[!!t&&C.jsx("span",{className:`${U.avatar}`,children:C.jsx("h3",{children:t})}),C.jsxs("div",{className:`${U.content}`,children:[C.jsx("h5",{className:`${U.name}`,children:r}),!!n&&C.jsx("p",{className:`${U.role}`,children:n})]})]})})},t8=e=>{const{children:t}=e;return C.jsx("div",{className:U.profileLink,children:t})},r8=e=>{const{children:t}=e;return C.jsx("div",{className:`${U.profileLinks}`,children:C.jsx("div",{className:`${U.profileLinksList}`,children:t})})},n8=e=>{const{icon:t,openSubDropdown:r,title:n,onClick:l}=e;return C.jsx("div",{className:`${U.profileNavigationItem}`,onClick:o=>{l&&l(o)},children:C.jsxs("div",{className:`${U.profileNavigationItemWrapper}`,children:[C.jsxs("div",{className:`${U.profileNavigationItemLeft}`,children:[!!t&&C.jsx("div",{className:`${U.profileNavigationItemIcon}`,children:t}),C.jsx("div",{className:U.profileNavigationItemContent,children:C.jsx("h5",{children:n})})]}),!!r&&C.jsx("div",{className:`${U.profileNavigationItemRight}`,children:C.jsx(B2,{})})]})})},i8=e=>{const{name:t,id:r,value:n,placeholder:l,extraClass:o,disabled:i,error:s,ariaLabel:a,required:c,readonly:h,autoComplete:d,children:w,goBackOnClick:u,closeOnClick:L,...H}=e,[p,j]=x.useState(!1);x.useEffect(()=>{const b=document.getElementById("listContainer");if(b){const _=()=>{const f=b.scrollHeight>b.clientHeight;j(f)};return window.addEventListener("resize",_),_(),()=>{window.removeEventListener("resize",_)}}},[]);const m=[R.input];return s&&m.push(R.error),o&&m.push(o),C.jsxs("div",{className:U.profileSwitchPanel,children:[C.jsxs("div",{className:U.profileSwitchPanelHeader,children:[C.jsx("div",{onClick:u,className:U.caretLeft,children:C.jsx(N2,{type:"bold"})}),C.jsx("div",{children:C.jsx("h5",{className:U.headerTitle,children:"Switch user"})}),C.jsx("div",{onClick:L,className:U.closeIcon,children:C.jsx(M2,{type:"bold"})})]}),C.jsx("div",{className:U.fieldWrapper,children:C.jsxs("div",{className:R.textField,children:[C.jsx("input",{className:z(m),id:r,name:t,type:"text",value:n,placeholder:l,disabled:i,readOnly:h,required:c,autoComplete:d?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":i?"true":"false","aria-readonly":h?"true":"false",...H}),C.jsx("div",{className:R.textFieldIcon,children:C.jsx(I1,{})})]})}),C.jsx("div",{id:"listContainer",className:`${U.usersHolder} ${p?R.spacing:""} `,children:w})]})},l8=e=>{const{initials:t,userName:r,role:n}=e;return C.jsx("div",{className:U.profileSwitchUser,children:C.jsxs("div",{className:U.profileSwitchUserWrapper,children:[C.jsx("div",{className:`${U.profileSwitchUserAvatar} ${U.avatar}`,children:C.jsx("h5",{className:U.initialsTile,children:t})}),C.jsxs("div",{className:U.profileSwitchUserContent,children:[C.jsx("h5",{className:U.name,children:r}),C.jsx("p",{className:U.role,children:n})]})]})})},o8="_sidebar_1gyrz_1",s8="_sidebarNavigation_1gyrz_9",a8="_navigationItemLarge_1gyrz_12",c8="_subNavigationHolder_1gyrz_16",d8="_navigationSubItemLarge_1gyrz_19",h8="_navigationItemHolder_1gyrz_23",w8="_subNavigationItemHolder_1gyrz_23",u8="_navigationItem_1gyrz_12",f8="_subNavigationItem_1gyrz_23",g8="_active_1gyrz_38",x8="_bilingualTitle_1gyrz_42",v8="_navigationIcon_1gyrz_53",p8="_subNavigationIcon_1gyrz_53",L8="_navigationItemBody_1gyrz_64",H8="_subNavigationItemBody_1gyrz_64",M8="_navigationItemSmall_1gyrz_68",V8="_childIndicator_1gyrz_72",Z8="_navigationSubItemSmall_1gyrz_85",m8="_sidebarTitle_1gyrz_88",j8="_sidebarChevron_1gyrz_117",_8="_sidebarChevronBtn_1gyrz_138",W={sidebar:o8,sidebarNavigation:s8,navigationItemLarge:a8,subNavigationHolder:c8,navigationSubItemLarge:d8,navigationItemHolder:h8,subNavigationItemHolder:w8,navigationItem:u8,subNavigationItem:f8,active:g8,bilingualTitle:x8,navigationIcon:v8,subNavigationIcon:p8,navigationItemBody:L8,subNavigationItemBody:H8,navigationItemSmall:M8,childIndicator:V8,navigationSubItemSmall:Z8,sidebarTitle:m8,sidebarChevron:j8,sidebarChevronBtn:_8},b8=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${W.sidebar} ${r}`,children:t})},F1=e=>{const{onClick:t,icon:r}=e;return C.jsx("div",{className:W.sidebarChevronBtn,onClick:n=>{t&&t(n)},children:C.jsx("button",{children:r})})},y8=e=>{const{children:t,extraClass:r="",subNavActive:n}=e;return C.jsx("div",{className:`${W.sidebarNavigation} sidebarNavigation ${r} ${n?`${W.navigationItemSmall} navigationItemSmall`:`${W.navigationItemLarge} navigationItemLarge`}`,children:t})},B8=e=>{const{icon:t,contents:r,children:n,extraClass:l,onClick:o,activeState:i,bilingualTitle:s}=e;return n?C.jsxs("div",{className:`${W.navigationItemHolder} navigationItemHolder`,children:[C.jsxs("div",{className:`navigationItem ${W.navigationItem} ${l} ${i?W.active:""}`,onClick:a=>{o&&o(a)},children:[!!t&&C.jsx("div",{className:`${W.navigationIcon} navigationIcon`,children:t}),C.jsxs("div",{className:`${W.navigationItemBody} navigationItemBody`,children:[C.jsx("div",{className:"navigationItemBodyText",children:r}),!!s&&C.jsx("span",{className:W.bilingualTitle,children:s})]}),C.jsx("div",{className:`${W.navigationIcon} ${W.childIndicator}`,children:C.jsx(B2,{})})]}),!!n&&C.jsx("div",{className:`${W.subNavigation} subNavigation`,children:n})]}):C.jsx("div",{className:`${W.navigationItemHolder} navigationItemHolder`,children:C.jsxs("div",{className:`${W.navigationItem} ${l} navigationItem ${i?W.active:""}`,onClick:a=>{o&&o(a)},children:[!!t&&C.jsx("div",{className:`${W.navigationIcon} navigationIcon`,children:t}),C.jsxs("div",{children:[C.jsx("div",{className:`${W.navigationItemBody} navigationItemBody`,children:r}),!!s&&C.jsx("span",{className:W.bilingualTitle,children:s})]})]})})},N8=e=>{const{extraClass:t,children:r,title:n,onClick:l,getBackOnClick:o,subNavToggle:i,bilingualTitle:s="kk"}=e;return C.jsxs("div",{className:`${W.subNavigationHolder} ${t} subNavigationHolder ${i?W.navigationSubItemSmall:W.navigationSubItemLarge}`,children:[C.jsx("div",{className:W.sidebarChevron,children:C.jsx(F1,{icon:i?C.jsx(B2,{type:"bold"}):C.jsx(N2,{type:"bold"}),onClick:l})}),C.jsxs("div",{onClick:o,className:W.sidebarTitle,children:[C.jsx(b1,{}),C.jsxs("div",{children:[C.jsx("h5",{children:n}),!!s&&C.jsx("span",{className:W.bilingualTitle,children:s})]})]}),r]})},S8=e=>{const{icon:t,contents:r,extraClass:n,activeState:l,bilingualTitle:o}=e;return C.jsx("div",{className:`${W.subNavigationItemHolder} subNavigationItemHolder`,children:C.jsxs("div",{className:`${W.subNavigationItem} ${n} subNavigationItem ${l?W.active:""}`,children:[!!t&&C.jsx("div",{className:`${W.subNavigationIcon} subNavigationIcon`,children:t}),C.jsxs("div",{children:[C.jsx("div",{className:`${W.subNavigationItemBody} subNavigationItemBody`,children:r}),!!o&&C.jsx("span",{className:W.bilingualTitle,children:o})]})]})})};exports.Accordion=W1;exports.AccordionContext=X2;exports.AccordionItem=X1;exports.AccordionProvider=p1;exports.AddressBook=G9;exports.ArrowLeft=b1;exports.ArrowsDownUp=z9;exports.ArrowsOutCardinal=U9;exports.Asterisk=K9;exports.At=J9;exports.Badge=s5;exports.BannerCard=M5;exports.Barbell=q7;exports.Bell=S1;exports.BetterUIContext=J2;exports.BetterUIProvider=q1;exports.BookOpenText=s7;exports.Broadcast=X9;exports.Button=Q2;exports.CalendarBank=M1;exports.CalloutPopup=A1;exports.CalloutPopupActionHolder=t3;exports.Campfire=U7;exports.CaretDown=H2;exports.CaretLeft=N2;exports.CaretRight=B2;exports.CaretUp=L2;exports.CaretUpDown=W9;exports.ChartBar=v7;exports.ChartBarHorizontal=H7;exports.ChartLine=p7;exports.ChartPie=L7;exports.Chat=Q9;exports.Check=D7;exports.CheckSquare=k7;exports.Checkbox=_5;exports.CheckboxSelect=$5;exports.CheckboxSelectItem=T5;exports.CheckboxSet=S5;exports.CheckboxSetItem=I5;exports.Clock=$1;exports.CurrencyDollarSimple=H1;exports.CurrencyField=J5;exports.DateField=X5;exports.DotsSixVertical=T7;exports.DotsThreeVertical=E7;exports.DownloadSimple=R7;exports.DropHalfBottom=o7;exports.DropdownBadge=f9;exports.DropdownBadgeItem=Z1;exports.DropdownBadgeSelector=V1;exports.DropdownField=j9;exports.DropdownFieldItem=q2;exports.DropdownFieldSelector=j1;exports.EmailField=_9;exports.EnvelopeSimple=t7;exports.ErrorMessage=b9;exports.Export=r7;exports.Eye=y1;exports.EyeSlash=B1;exports.Folder=m7;exports.FormFieldHolder=E9;exports.Gear=O7;exports.Globe=a7;exports.Header=c3;exports.HeaderLeft=d3;exports.HeaderRight=h3;exports.HouseSimple=c7;exports.IconButton=q9;exports.List=N1;exports.ListBullets=j7;exports.LockKeyOpen=I7;exports.LockSimple=m1;exports.MagnifyingGlass=I1;exports.Media=p0;exports.Minus=g7;exports.Modal=I0;exports.ModalActions=$0;exports.ModalActionsLeft=T0;exports.ModalActionsRight=E0;exports.ModalBody=k0;exports.ModalCurtain=P0;exports.ModalHeader=O0;exports.Mountains=W7;exports.MultiSelectField=s6;exports.MultiSelectFieldItem=E1;exports.MultiSelectFieldTag=T1;exports.Notification=h4;exports.NotificationsBell=W0;exports.NotificationsGroup=w4;exports.NotificationsGroups=u4;exports.NotificationsHeader=g4;exports.NotificationsNone=x4;exports.NotificationsPanel=f4;exports.NumberField=s0;exports.NumberSquareThree=x7;exports.Pagination=w3;exports.PaginationFirst=u3;exports.PaginationLast=f3;exports.PaginationNext=g3;exports.PaginationNumber=x3;exports.PaginationPrevious=v3;exports.PasswordField=Z6;exports.Path=d7;exports.PathwayCard=x0;exports.PencilLine=n7;exports.PencilSimple=i7;exports.PersonSimpleBike=S7;exports.PersonSimpleWalk=N7;exports.Phone=e7;exports.PhoneField=d0;exports.Plus=f7;exports.Printer=_7;exports.ProfileAvatar=Z3;exports.ProfileDropdown=C8;exports.ProfileHeader=e8;exports.ProfileLink=t8;exports.ProfileLinks=r8;exports.ProfileNavigationItem=n8;exports.ProfileSwitchPanel=i8;exports.ProfileSwitchUser=l8;exports.Question=$7;exports.RadioButton=S6;exports.RadioButtonIcon=P7;exports.RadioButtons=I6;exports.RichTextEditor=t0;exports.RoadHorizon=w7;exports.Ruler=l7;exports.Sidebar=b8;exports.SidebarChevron=F1;exports.SidebarNavigation=y8;exports.SidebarNavigationItem=B8;exports.SidebarSubNavigation=N8;exports.SidebarSubNavigationItem=S8;exports.SignIn=F7;exports.SignOut=A7;exports.SildersHorizontal=M7;exports.SwimmingPool=u7;exports.Tab=Z4;exports.TabBody=m4;exports.TabBodyContent=j4;exports.TabContext=S2;exports.TabNav=_4;exports.TabNavItem=b4;exports.Table=D4;exports.TableBody=q4;exports.TableCell=W4;exports.TableCellAction=z4;exports.TableCellWithDesc=U4;exports.TableCellWithImage=Y4;exports.TableFooter=G4;exports.TableHead=K4;exports.TableHeaderCell=J4;exports.TableRow=X4;exports.TextAa=V7;exports.TextColumns=Z7;exports.TextField=o0;exports.Textarea=l0;exports.TimeField=c0;exports.ToggleSwitch=g0;exports.Tram=h7;exports.Translate=C7;exports.Tree=z7;exports.TypableDropdownField=V6;exports.TypableDropdownFieldItem=z2;exports.TypableDropdownFieldSelector=W2;exports.UnitField=a0;exports.User=b7;exports.UserCircle=y7;exports.UserSwitch=B7;exports.WarningCircle=_1;exports.WindowsLogo=Y9;exports.XIcon=M2;
|
|
25
25
|
//# sourceMappingURL=index.cjs.js.map
|