@hellobetterdigitalnz/betterui 0.0.3-118 → 0.0.3-119
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/index.es.js.map +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,n1;function R7(){if(n1)return $2;n1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(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 n={},s=0;s<10;s++)n["_"+String.fromCharCode(s)]=s;var a=Object.getOwnPropertyNames(n).map(function(d){return n[d]});if(a.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $2=l()?Object.assign:function(o,n){for(var s,a=i(o),c,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var h in s)t.call(s,h)&&(a[h]=s[h]);if(e){c=e(s);for(var u=0;u<c.length;u++)r.call(s,c[u])&&(a[c[u]]=s[c[u]])}}return a},$2}var T2,i1;function X2(){if(i1)return T2;i1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return T2=e,T2}var k2,l1;function O1(){return l1||(l1=1,k2=Function.call.bind(Object.prototype.hasOwnProperty)),k2}var E2,o1;function F7(){if(o1)return E2;o1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=X2(),r={},i=O1();e=function(o){var n="Warning: "+o;typeof console<"u"&&console.error(n);try{throw new Error(n)}catch{}}}function l(o,n,s,a,c){if(process.env.NODE_ENV!=="production"){for(var d in o)if(i(o,d)){var h;try{if(typeof o[d]!="function"){var u=Error((a||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}h=o[d](n,d,a,s,null,t)}catch(v){h=v}if(h&&!(h instanceof Error)&&e((a||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var w=c?c():"";e("Failed "+s+" type: "+h.message+(w??""))}}}}return l.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},E2=l,E2}var P2,s1;function D7(){if(s1)return P2;s1=1;var e=P1(),t=R7(),r=X2(),i=O1(),l=F7(),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 n(){return null}return P2=function(s,a){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function h(x){var V=x&&(c&&x[c]||x[d]);if(typeof V=="function")return V}var u="<<anonymous>>",w={array:b("array"),bigint:b("bigint"),bool:b("boolean"),func:b("function"),number:b("number"),object:b("object"),string:b("string"),symbol:b("symbol"),any:_(),arrayOf:j,element:y(),elementType:g(),instanceOf:m,node:e2(),objectOf:Z,oneOf:B,oneOfType:E,shape:L2,exact:z};function v(x,V){return x===V?x!==0||1/x===1/V:x!==x&&V!==V}function L(x,V){this.message=x,this.data=V&&typeof V=="object"?V:{},this.stack=""}L.prototype=Error.prototype;function M(x){if(process.env.NODE_ENV!=="production")var V={},T=0;function I(P,S,$,O,U,A,t2){if(O=O||u,A=A||$,t2!==r){if(a){var H=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 H.name="Invariant Violation",H}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var l2=O+":"+$;!V[l2]&&T<3&&(o("You are manually calling a React.PropTypes validation function for the `"+A+"` prop on `"+O+"`. 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."),V[l2]=!0,T++)}}return S[$]==null?P?S[$]===null?new L("The "+U+" `"+A+"` is marked as required "+("in `"+O+"`, but its value is `null`.")):new L("The "+U+" `"+A+"` is marked as required in "+("`"+O+"`, but its value is `undefined`.")):null:x(S,$,O,U,A)}var N=I.bind(null,!1);return N.isRequired=I.bind(null,!0),N}function b(x){function V(T,I,N,P,S,$){var O=T[I],U=i2(O);if(U!==x){var A=c2(O);return new L("Invalid "+P+" `"+S+"` of type "+("`"+A+"` supplied to `"+N+"`, expected ")+("`"+x+"`."),{expectedType:x})}return null}return M(V)}function _(){return M(n)}function j(x){function V(T,I,N,P,S){if(typeof x!="function")return new L("Property `"+S+"` of component `"+N+"` has invalid PropType notation inside arrayOf.");var $=T[I];if(!Array.isArray($)){var O=i2($);return new L("Invalid "+P+" `"+S+"` of type "+("`"+O+"` supplied to `"+N+"`, expected an array."))}for(var U=0;U<$.length;U++){var A=x($,U,N,P,S+"["+U+"]",r);if(A instanceof Error)return A}return null}return M(V)}function y(){function x(V,T,I,N,P){var S=V[T];if(!s(S)){var $=i2(S);return new L("Invalid "+N+" `"+P+"` of type "+("`"+$+"` supplied to `"+I+"`, expected a single ReactElement."))}return null}return M(x)}function g(){function x(V,T,I,N,P){var S=V[T];if(!e.isValidElementType(S)){var $=i2(S);return new L("Invalid "+N+" `"+P+"` of type "+("`"+$+"` supplied to `"+I+"`, expected a single ReactElement type."))}return null}return M(x)}function m(x){function V(T,I,N,P,S){if(!(T[I]instanceof x)){var $=x.name||u,O=I2(T[I]);return new L("Invalid "+P+" `"+S+"` of type "+("`"+O+"` supplied to `"+N+"`, expected ")+("instance of `"+$+"`."))}return null}return M(V)}function B(x){if(!Array.isArray(x))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.")),n;function V(T,I,N,P,S){for(var $=T[I],O=0;O<x.length;O++)if(v($,x[O]))return null;var U=JSON.stringify(x,function(t2,H){var l2=c2(H);return l2==="symbol"?String(H):H});return new L("Invalid "+P+" `"+S+"` of value `"+String($)+"` "+("supplied to `"+N+"`, expected one of "+U+"."))}return M(V)}function Z(x){function V(T,I,N,P,S){if(typeof x!="function")return new L("Property `"+S+"` of component `"+N+"` has invalid PropType notation inside objectOf.");var $=T[I],O=i2($);if(O!=="object")return new L("Invalid "+P+" `"+S+"` of type "+("`"+O+"` supplied to `"+N+"`, expected an object."));for(var U in $)if(i($,U)){var A=x($,U,N,P,S+"."+U,r);if(A instanceof Error)return A}return null}return M(V)}function E(x){if(!Array.isArray(x))return process.env.NODE_ENV!=="production"&&o("Invalid argument supplied to oneOfType, expected an instance of array."),n;for(var V=0;V<x.length;V++){var T=x[V];if(typeof T!="function")return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Z2(T)+" at index "+V+"."),n}function I(N,P,S,$,O){for(var U=[],A=0;A<x.length;A++){var t2=x[A],H=t2(N,P,S,$,O,r);if(H==null)return null;H.data&&i(H.data,"expectedType")&&U.push(H.data.expectedType)}var l2=U.length>0?", expected one of type ["+U.join(", ")+"]":"";return new L("Invalid "+$+" `"+O+"` supplied to "+("`"+S+"`"+l2+"."))}return M(I)}function e2(){function x(V,T,I,N,P){return X(V[T])?null:new L("Invalid "+N+" `"+P+"` supplied to "+("`"+I+"`, expected a ReactNode."))}return M(x)}function Q(x,V,T,I,N){return new L((x||"React class")+": "+V+" type `"+T+"."+I+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+N+"`.")}function L2(x){function V(T,I,N,P,S){var $=T[I],O=i2($);if(O!=="object")return new L("Invalid "+P+" `"+S+"` of type `"+O+"` "+("supplied to `"+N+"`, expected `object`."));for(var U in x){var A=x[U];if(typeof A!="function")return Q(N,P,S,U,c2(A));var t2=A($,U,N,P,S+"."+U,r);if(t2)return t2}return null}return M(V)}function z(x){function V(T,I,N,P,S){var $=T[I],O=i2($);if(O!=="object")return new L("Invalid "+P+" `"+S+"` of type `"+O+"` "+("supplied to `"+N+"`, expected `object`."));var U=t({},T[I],x);for(var A in U){var t2=x[A];if(i(x,A)&&typeof t2!="function")return Q(N,P,S,A,c2(t2));if(!t2)return new L("Invalid "+P+" `"+S+"` key `"+A+"` supplied to `"+N+"`.\nBad object: "+JSON.stringify(T[I],null," ")+`
|
|
24
|
-
Valid keys: `+JSON.stringify(Object.keys(x),null," "));var H=t2($,A,N,P,S+"."+A,r);if(H)return H}return null}return M(V)}function X(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(X);if(x===null||s(x))return!0;var V=h(x);if(V){var T=V.call(x),I;if(V!==x.entries){for(;!(I=T.next()).done;)if(!X(I.value))return!1}else for(;!(I=T.next()).done;){var N=I.value;if(N&&!X(N[1]))return!1}}else return!1;return!0;default:return!1}}function H2(x,V){return x==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function i2(x){var V=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":H2(V,x)?"symbol":V}function c2(x){if(typeof x>"u"||x===null)return""+x;var V=i2(x);if(V==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return V}function Z2(x){var V=c2(x);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function I2(x){return!x.constructor||!x.constructor.name?u:x.constructor.name}return w.checkPropTypes=l,w.resetWarningCache=l.resetWarningCache,w.PropTypes=w,w},P2}var O2,a1;function q7(){if(a1)return O2;a1=1;var e=X2();function t(){}function r(){}return r.resetWarningCache=t,O2=function(){function i(n,s,a,c,d,h){if(h!==e){var u=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 u.name="Invariant Violation",u}}i.isRequired=i;function l(){return i}var o={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:l,element:i,elementType:i,instanceOf:l,node:i,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 W7=P1(),z7=!0;W2.exports=D7()(W7.isElement,z7)}else W2.exports=q7()();var f=W2.exports,z2=globalThis&&globalThis.__assign||function(){return z2=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},z2.apply(this,arguments)},A1={onActivate:f.func,onAddUndo:f.func,onBeforeAddUndo:f.func,onBeforeExecCommand:f.func,onBeforeGetContent:f.func,onBeforeRenderUI:f.func,onBeforeSetContent:f.func,onBeforePaste:f.func,onBlur:f.func,onChange:f.func,onClearUndos:f.func,onClick:f.func,onContextMenu:f.func,onCommentChange:f.func,onCopy:f.func,onCut:f.func,onDblclick:f.func,onDeactivate:f.func,onDirty:f.func,onDrag:f.func,onDragDrop:f.func,onDragEnd:f.func,onDragGesture:f.func,onDragOver:f.func,onDrop:f.func,onExecCommand:f.func,onFocus:f.func,onFocusIn:f.func,onFocusOut:f.func,onGetContent:f.func,onHide:f.func,onInit:f.func,onKeyDown:f.func,onKeyPress:f.func,onKeyUp:f.func,onLoadContent:f.func,onMouseDown:f.func,onMouseEnter:f.func,onMouseLeave:f.func,onMouseMove:f.func,onMouseOut:f.func,onMouseOver:f.func,onMouseUp:f.func,onNodeChange:f.func,onObjectResizeStart:f.func,onObjectResized:f.func,onObjectSelected:f.func,onPaste:f.func,onPostProcess:f.func,onPostRender:f.func,onPreProcess:f.func,onProgressState:f.func,onRedo:f.func,onRemove:f.func,onReset:f.func,onSaveContent:f.func,onSelectionChange:f.func,onSetAttrib:f.func,onSetContent:f.func,onShow:f.func,onSubmit:f.func,onUndo:f.func,onVisualAid:f.func,onSkinLoadError:f.func,onThemeLoadError:f.func,onModelLoadError:f.func,onPluginLoadError:f.func,onIconsLoadError:f.func,onLanguageLoadError:f.func,onScriptsLoad:f.func,onScriptsLoadError:f.func},U7=z2({apiKey:f.string,id:f.string,inline:f.bool,init:f.object,initialValue:f.string,onEditorChange:f.func,value:f.string,tagName:f.string,cloudChannel:f.string,plugins:f.oneOfType([f.string,f.array]),toolbar:f.oneOfType([f.string,f.array]),disabled:f.bool,textareaName:f.string,tinymceScriptSrc:f.oneOfType([f.string,f.arrayOf(f.string),f.arrayOf(f.shape({src:f.string,async:f.bool,defer:f.bool}))]),rollback:f.oneOfType([f.number,f.oneOf([!1])]),scriptLoading:f.shape({async:f.bool,defer:f.bool,delay:f.number})},A1),A2=function(e){return typeof e=="function"},c1=function(e){return e in A1},d1=function(e){return e.substr(2)},Y7=function(e,t,r,i,l,o,n){var s=Object.keys(l).filter(c1),a=Object.keys(o).filter(c1),c=s.filter(function(h){return o[h]===void 0}),d=a.filter(function(h){return l[h]===void 0});c.forEach(function(h){var u=d1(h),w=n[u];r(u,w),delete n[u]}),d.forEach(function(h){var u=i(e,h),w=d1(h);n[w]=u,t(w,u)})},G7=function(e,t,r,i,l){return Y7(l,e.on.bind(e),e.off.bind(e),function(o,n){return function(s){var a;return(a=o(n))===null||a===void 0?void 0:a(s,e)}},t,r,i)},h1=0,R1=function(e){var t=Date.now(),r=Math.floor(Math.random()*1e9);return h1++,e+"_"+r+h1+String(t)},u1=function(e){return e!==null&&(e.tagName.toLowerCase()==="textarea"||e.tagName.toLowerCase()==="input")},f1=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},K7=function(e,t){return f1(e).concat(f1(t))},J7=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},X7=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},w1=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))},U2=globalThis&&globalThis.__assign||function(){return U2=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},U2.apply(this,arguments)},Q7=function(e,t,r){var i,l,o=e.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=t.id,o.src=t.src,o.async=(i=t.async)!==null&&i!==void 0?i:!1,o.defer=(l=t.defer)!==null&&l!==void 0?l:!1;var n=function(){o.removeEventListener("load",n),o.removeEventListener("error",s),r(t.src)},s=function(a){o.removeEventListener("load",n),o.removeEventListener("error",s),r(t.src,a)};o.addEventListener("load",n),o.addEventListener("error",s),e.head&&e.head.appendChild(o)},C0=function(e){var t={},r=function(n,s){var a=t[n];a.done=!0,a.error=s;for(var c=0,d=a.handlers;c<d.length;c++){var h=d[c];h(n,s)}a.handlers=[]},i=function(n,s,a){var c=function(_){return a!==void 0?a(_):console.error(_)};if(n.length===0){c(new Error("At least one script must be provided"));return}for(var d=0,h=!1,u=function(_,j){h||(j?(h=!0,c(j)):++d===n.length&&s())},w=0,v=n;w<v.length;w++){var L=v[w],M=t[L.src];if(M)M.done?u(L.src,M.error):M.handlers.push(u);else{var b=R1("tiny-");t[L.src]={id:b,src:L.src,done:!1,error:null,handlers:[u]},Q7(e,U2({id:b},L),r)}}},l=function(){for(var n,s=0,a=Object.values(t);s<a.length;s++){var c=a[s],d=e.getElementById(c.id);d!=null&&d.tagName==="SCRIPT"&&((n=d.parentNode)===null||n===void 0||n.removeChild(d))}t={}},o=function(){return e};return{loadScripts:i,deleteScripts:l,getDocument:o}},e0=function(){var e=[],t=function(l){var o=e.find(function(n){return n.getDocument()===l});return o===void 0&&(o=C0(l),e.push(o)),o},r=function(l,o,n,s,a){var c=function(){return t(l).loadScripts(o,s,a)};n>0?setTimeout(c,n):c()},i=function(){for(var l=e.pop();l!=null;l=e.pop())l.deleteScripts()};return{loadList:r,reinitialize:i}},t0=e0(),R2=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},r0=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(i[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 i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),y2=globalThis&&globalThis.__assign||function(){return y2=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;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)},n0=function(e){r0(t,e);function t(r){var i,l,o,n=e.call(this,r)||this;return n.rollbackTimer=void 0,n.valueCursor=void 0,n.rollbackChange=function(){var s=n.editor,a=n.props.value;s&&a&&a!==n.currentContent&&s.undoManager.ignore(function(){if(s.setContent(a),n.valueCursor&&(!n.inline||s.hasFocus()))try{s.selection.moveToBookmark(n.valueCursor)}catch{}}),n.rollbackTimer=void 0},n.handleBeforeInput=function(s){if(n.props.value!==void 0&&n.props.value===n.currentContent&&n.editor&&(!n.inline||n.editor.hasFocus()))try{n.valueCursor=n.editor.selection.getBookmark(3)}catch{}},n.handleBeforeInputSpecial=function(s){(s.key==="Enter"||s.key==="Backspace"||s.key==="Delete")&&n.handleBeforeInput(s)},n.handleEditorChange=function(s){var a=n.editor;if(a&&a.initialized){var c=a.getContent();n.props.value!==void 0&&n.props.value!==c&&n.props.rollback!==!1&&(n.rollbackTimer||(n.rollbackTimer=window.setTimeout(n.rollbackChange,typeof n.props.rollback=="number"?n.props.rollback:200))),c!==n.currentContent&&(n.currentContent=c,A2(n.props.onEditorChange)&&n.props.onEditorChange(c,a))}},n.handleEditorChangeSpecial=function(s){(s.key==="Backspace"||s.key==="Delete")&&n.handleEditorChange(s)},n.initialise=function(s){var a,c,d;s===void 0&&(s=0);var h=n.elementRef.current;if(h){if(!X7(h)){if(s===0)setTimeout(function(){return n.initialise(1)},1);else if(s<100)setTimeout(function(){return n.initialise(s+1)},100);else throw new Error("tinymce can only be initialised when in a document");return}var u=R2(n.view);if(!u)throw new Error("tinymce should have been loaded into global scope");var w=y2(y2({},n.props.init),{selector:void 0,target:h,readonly:n.props.disabled,inline:n.inline,plugins:K7((a=n.props.init)===null||a===void 0?void 0:a.plugins,n.props.plugins),toolbar:(c=n.props.toolbar)!==null&&c!==void 0?c:(d=n.props.init)===null||d===void 0?void 0:d.toolbar,setup:function(v){n.editor=v,n.bindHandlers({}),n.inline&&!u1(h)&&v.once("PostRender",function(L){v.setContent(n.getInitialValue(),{no_events:!0})}),n.props.init&&A2(n.props.init.setup)&&n.props.init.setup(v)},init_instance_callback:function(v){var L,M,b=n.getInitialValue();n.currentContent=(L=n.currentContent)!==null&&L!==void 0?L:v.getContent(),n.currentContent!==b&&(n.currentContent=b,v.setContent(b),v.undoManager.clear(),v.undoManager.add(),v.setDirty(!1));var _=(M=n.props.disabled)!==null&&M!==void 0?M:!1;w1(n.editor,_?"readonly":"design"),n.props.init&&A2(n.props.init.init_instance_callback)&&n.props.init.init_instance_callback(v)}});n.inline||(h.style.visibility=""),u1(h)&&(h.value=n.getInitialValue()),u.init(w)}},n.id=n.props.id||R1("tiny-react"),n.elementRef=_2.createRef(),n.inline=(o=(i=n.props.inline)!==null&&i!==void 0?i:(l=n.props.init)===null||l===void 0?void 0:l.inline)!==null&&o!==void 0?o:!1,n.boundHandlers={},n}return Object.defineProperty(t.prototype,"view",{get:function(){var r,i;return(i=(r=this.elementRef.current)===null||r===void 0?void 0:r.ownerDocument.defaultView)!==null&&i!==void 0?i:window},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(r){var i=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 n=this.editor;n.undoManager.transact(function(){var a;if(!i.inline||n.hasFocus())try{a=n.selection.getBookmark(3)}catch{}var c=i.valueCursor;if(n.setContent(i.props.value),!i.inline||n.hasFocus())for(var d=0,h=[a,c];d<h.length;d++){var u=h[d];if(u)try{n.selection.moveToBookmark(u),i.valueCursor=u;break}catch{}}})}if(this.props.disabled!==r.disabled){var s=(o=this.props.disabled)!==null&&o!==void 0?o:!1;w1(this.editor,s?"readonly":"design")}}},t.prototype.componentDidMount=function(){var r=this,i,l,o,n,s;if(R2(this.view)!==null)this.initialise();else if(Array.isArray(this.props.tinymceScriptSrc)&&this.props.tinymceScriptSrc.length===0)(l=(i=this.props).onScriptsLoadError)===null||l===void 0||l.call(i,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 d,h;(h=(d=r.props).onScriptsLoad)===null||h===void 0||h.call(d),r.initialise()},c=function(d){var h,u;(u=(h=r.props).onScriptsLoadError)===null||u===void 0||u.call(h,d)};t0.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),(s=(n=this.props.scriptLoading)===null||n===void 0?void 0:n.delay)!==null&&s!==void 0?s:0,a,c)}},t.prototype.componentWillUnmount=function(){var r=this,i=this.editor;i&&(i.off(this.changeEvents(),this.handleEditorChange),i.off(this.beforeInputEvent(),this.handleBeforeInput),i.off("keypress",this.handleEditorChangeSpecial),i.off("keydown",this.handleBeforeInputSpecial),i.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach(function(l){i.off(l,r.boundHandlers[l])}),this.boundHandlers={},i.remove(),this.editor=void 0)},t.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},t.prototype.changeEvents=function(){var r,i,l,o=(l=(i=(r=R2(this.view))===null||r===void 0?void 0:r.Env)===null||i===void 0?void 0:i.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 J7()?"beforeinput SelectionChange":"SelectionChange"},t.prototype.renderInline=function(){var r=this.props.tagName,i=r===void 0?"div":r;return _2.createElement(i,{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,i,l=(r=this.props.scriptLoading)===null||r===void 0?void 0:r.async,o=(i=this.props.scriptLoading)===null||i===void 0?void 0:i.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 n=this.props.cloudChannel,s=this.props.apiKey?this.props.apiKey:"no-api-key",a="https://cdn.tiny.cloud/1/".concat(s,"/tinymce/").concat(n,"/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 i=this;if(this.editor!==void 0){G7(this.editor,r,this.props,this.boundHandlers,function(s){return i.props[s]});var l=function(s){return s.onEditorChange!==void 0||s.value!==void 0},o=l(r),n=l(this.props);!o&&n?(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&&!n&&(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=U7,t.defaultProps={cloudChannel:"6"},t}(_2.Component);const i0=e=>{const{name:t,id:r,value:i,extraClass:l,placeholder:o,error:n,disabled:s,readonly:a,autoComplete:c,required:d,ariaLabel:h,ariaLabeledby:u,ariaDescribedby:w,rows:v,onClick:L,onChange:M,onFocus:b,onBlur:_,...j}=e,[y,g]=p.useState(i),m=[C1.holder];return l&&m.push(l),C.jsxs("div",{className:F(m),children:[C.jsx(n0,{textareaName:t,scriptLoading:{async:!0},tinymceScriptSrc:"/lib/tinymce/tinymce.min.js",id:r,disabled:s,value:i,init:{height:v?50*v: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:B=>{g(B),M&&M(B)},onClick:B=>{L&&L(B)},onBlur:B=>{_&&_(B)},onFocus:B=>{b&&b(B)}}),C.jsx("textarea",{className:C1.hidden,id:`editor-text-${r}`,name:`${t}__editor`,value:y,placeholder:o,disabled:s,readOnly:a,required:d,autoComplete:c?"on":"off","aria-label":h||t,"aria-required":d?"true":"false","aria-invalid":n?"true":"false","aria-disabled":s?"true":"false","aria-readonly":a?"true":"false","aria-autocomplete":c?"list":"none",...j})]})},l0="_textarea_1y8ok_1",o0="_error_1y8ok_29",s0="_length_1y8ok_38",F2={textarea:l0,error:o0,length:s0},a0=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,rows:u,displayChars:w,maxLength:v,onChange:L,...M}=e,[b,_]=p.useState(""),j=g=>{var m;_((m=g.target)==null?void 0:m.value),L&&L(g)},y=[F2.textarea];return s&&y.push(F2.error),o&&y.push(o),C.jsxs(C.Fragment,{children:[C.jsx("textarea",{className:F(y),id:r,name:t,value:i,placeholder:l,rows:u,onChange:j,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false","aria-autocomplete":h?"list":"none",...M}),!!w&&C.jsxs("p",{className:F2.length,children:[b.length," / ",v]})]})},c0=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,icon:u,...w}=e,v=[k.input];return s&&v.push(k.error),o&&v.push(o),C.jsxs("div",{className:`${u?k.textField:""}`,children:[C.jsx("input",{className:F(v),id:r,name:t,type:"text",value:i,placeholder:l,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false","aria-autocomplete":h?"list":"none",...w}),!!u&&C.jsx("div",{className:k.textFieldIcon,children:u})]})},d0=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,numberValue:u,...w}=e,v=[k.input];return s&&v.push(k.error),o&&v.push(o),C.jsx("input",{className:F(v),id:r,name:t,type:"number",value:u,placeholder:l,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false","aria-autocomplete":h?"list":"none",...w})},h0=e=>{const{name:t,id:r,type:i,value:l,placeholder:o,extraClass:n,disabled:s,error:a,ariaLabel:c,required:d,readonly:h,autoComplete:u,unitText:w="ha",...v}=e,[L,M]=p.useState(0),b=p.useRef(null);p.useEffect(()=>{var g;const j=document.getElementById(`unitTextWidth ${r}`),y=((g=b.current)==null?void 0:g.offsetWidth)||0;j&&M(y+16)},[r,w]);const _=[k.input];return a&&_.push(k.error),n&&_.push(n),C.jsxs("div",{className:`${k.unitField}`,children:[C.jsx("input",{style:{paddingRight:`${L}px`},className:F(_),id:`unitTextWidth ${r}`,name:t,type:i,value:l,placeholder:o,disabled:s,readOnly:h,required:d,autoComplete:u?"on":"off","aria-label":c||t,"aria-required":d?"true":"false","aria-invalid":a?"true":"false","aria-disabled":s?"true":"false","aria-readonly":h?"true":"false","aria-autocomplete":u?"list":"none",...v}),C.jsx("div",{className:k.unitText,ref:b,children:w})]})},u0=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,...u}=e,w=[k.input];return s&&w.push(k.error),o&&w.push(o),C.jsxs("div",{className:k.time,children:[C.jsx("input",{className:F(w),id:r,name:t,type:"time",value:i,placeholder:l,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false",pattern:"[0-2][0-9]:[0-5][0-9]",...u}),C.jsx("div",{className:k.clockIcon,children:C.jsx(I1,{type:"light"})})]})},f0=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,...u}=e,w=[k.input];return s&&w.push(k.error),o&&w.push(o),C.jsx("input",{className:F(w),id:r,name:t,type:"tel",value:i,placeholder:l,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false","aria-autocomplete":h?"list":"none",...u})},w0="_error_tatej_7",g0="_slider_tatej_7",x0="_circle_tatej_10",v0="_round_tatej_64",M2={switch:"_switch_tatej_1",error:w0,slider:g0,circle:x0,round:v0},p0=e=>{const{name:t,checked:r,id:i,value:l,placeholder:o,extraClass:n,disabled:s,error:a,ariaLabel:c,required:d,readonly:h,onChange:u,...w}=e,[v,L]=p.useState(!1),M=["switch",M2.switch];n&&M.push(n),a&&M.push(M2.error),p.useEffect(()=>{L(r||!1)},[r]);const b=_=>{L(!v),u&&u(_,v)};return C.jsxs("div",{className:F(M),children:[C.jsx("input",{id:i,name:t,checked:v,type:"checkbox",value:l,placeholder:o,disabled:s,readOnly:h,required:d,"aria-label":c||t,"aria-required":d?"true":"false","aria-invalid":a?"true":"false","aria-disabled":s?"true":"false","aria-readonly":h?"true":"false",onClick:b,...w}),C.jsx("span",{className:`${M2.slider} ${M2.round}`,children:C.jsx("span",{className:`${M2.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"})})})})]})},L0=e=>{const{title:t,btnTitle:r,description:i,image:l,btnType:o,btnScheme:n,btnSize:s,btnStyle:a,extraClass:c="",cardOnClick:d,btnOnClick:h}=e,u=typeof l;return C.jsx("div",{className:`pathway-card ${c}`,onClick:w=>{d&&d(w)},children:C.jsxs("div",{className:"pathway-card__wrapper",children:[u==="string"&&C.jsx("div",{className:"pathway-card__picture",style:{backgroundImage:l?`url(${l})`:""}}),u!=="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}),!!i&&C.jsx("p",{className:"pathway-card__desc",children:i})]}),C.jsx(J2,{label:r,type:o,style:a,size:s,scheme:n,onClick:h})]})]})})},H0="_mediaImage_1k8jm_1",g1={mediaImage:H0},M0=e=>{const{type:t,videoSrc:r,imageSrc:i}=e,l=typeof i=="string";return C.jsxs(C.Fragment,{children:[t==="image"&&C.jsx(C.Fragment,{children:l?C.jsx("img",{src:i,alt:"media image",className:g1.mediaImage}):C.jsx("div",{className:g1.mediaImage,children:i})}),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."]})]})]})},V0=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${C2.holder} ${r} modalHolder`,children:C.jsx("div",{className:`${C2.modal} modal`,children:C.jsx("div",{className:`${C2.wrapper} modalWrapper`,children:t})})})},m0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${C2.modalAction} ${r}`,children:t})},Z0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${C2.modalActionLeft} ${r}`,children:t})},j0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${C2.modalActionRight} ${r}`,children:t})},_0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${C2.modalBody} ${r} modalBody`,children:C.jsx("div",{className:`${C2.modalBodyWrapper} modalBodyWrapper`,children:t})})},b0=e=>{const{canGoBack:t,canClose:r,title:i,extraClass:l=""}=e,o=p.useContext(G2),n=()=>{r&&o.closeModal()};return C.jsx("div",{className:`${C2.modalHeader} ${l}`,children:C.jsxs("div",{className:C2.modalHeaderWrapper,children:[!!t&&C.jsx("div",{className:`${C2.caretLeft} ${C2.icon}`,children:C.jsx(N2,{type:"bold"})}),C.jsx("div",{className:`${C2.heading} modalHeading`,children:!!i&&C.jsx("h4",{children:i})}),!!r&&C.jsx("span",{className:`${C2.close} ${C2.icon}`,onClick:n,children:C.jsx(p2,{type:"bold"})})]})})},y0="_notification_18pig_1",B0="_notificationIcon_18pig_4",N0="_pip_18pig_14",S0="_notiActive_18pig_30",I0="_notificationDropdown_18pig_33",V2={notification:y0,notificationIcon:B0,pip:N0,notiActive:S0,notificationDropdown:I0},$0=e=>{const{children:t,extraClass:r,active:i}=e,[l,o]=p.useState(!1),n=p.useRef(null),s=a=>{n.current&&!n.current.contains(a.target)&&o(!1)};return p.useEffect(()=>(l?document.addEventListener("mousedown",s):document.removeEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}),[l]),C.jsxs("div",{className:`${V2.notification} ${r}`,onClick:()=>o(!l),ref:n,children:[C.jsxs("div",{className:`${V2.notificationIcon} ${l?V2.notiActive:""}`,children:[i&&C.jsx("span",{className:V2.pip}),C.jsx(N1,{})]}),t&&l&&C.jsx("div",{className:V2.notificationDropdown,children:t})]})},T0="_notificationPanel_1y2of_1",k0="_notificationheader_1y2of_10",E0="_notificationHeaderWrapper_1y2of_13",P0="_notificationMarkAllAction_1y2of_24",O0="_notificationGrouplistHolder_1y2of_35",A0="_spacing_1y2of_39",R0="_notificationGrouplist_1y2of_35",F0="_notificationGroup_1y2of_35",D0="_notificationNone_1y2of_72",q0="_notificationList_1y2of_86",W0="_notificationListPip_1y2of_94",z0="_notificationListCloseIcon_1y2of_97",U0="_notificationListWrapper_1y2of_100",Y0="_notificationListIcon_1y2of_126",G0="_notificationListContent_1y2of_135",K0="_notificationListInitial_1y2of_140",J0="_notificationListInitialWrapper_1y2of_152",X0="_notificationListDesc_1y2of_158",Q0="_boldText_1y2of_163",C4="_summaryText_1y2of_166",G={notificationPanel:T0,notificationheader:k0,notificationHeaderWrapper:E0,notificationMarkAllAction:P0,notificationGrouplistHolder:O0,spacing:A0,notificationGrouplist:R0,notificationGroup:F0,notificationNone:D0,notificationList:q0,notificationListPip:W0,notificationListCloseIcon:z0,notificationListWrapper:U0,notificationListIcon:Y0,notificationListContent:G0,notificationListInitial:K0,notificationListInitialWrapper:J0,notificationListDesc:X0,boldText:Q0,summaryText:C4},e4=e=>{const{notificationInitials:t,boldText:r,summaryText:i,notificationItemOnClick:l,regularText:o,extraClass:n,closeOnClick:s}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{onClick:l,className:`${G.notificationList} ${n}`,children:C.jsxs("div",{className:G.notificationListWrapper,children:[C.jsxs("div",{className:G.notificationListIcon,children:[C.jsx("div",{className:G.notificationListPip}),C.jsx("div",{onClick:s,className:G.notificationListCloseIcon,children:C.jsx(p2,{})})]}),C.jsxs("div",{className:G.notificationListContent,children:[t&&C.jsx("div",{className:G.notificationListInitial,children:C.jsx("div",{className:G.notificationListInitialWrapper,children:t})}),C.jsx("div",{className:G.notificationListDesc,children:C.jsxs("p",{children:[r&&C.jsxs("span",{className:G.boldText,children:[" ",r]}),o&&C.jsxs("span",{className:G.regularText,children:[" ",o]}),i&&C.jsxs("span",{className:G.summaryText,children:[" ",i]})]})})]})]})})})},t4=({children:e,title:t})=>C.jsxs(C.Fragment,{children:[t&&C.jsx("div",{className:G.notificationGroup,children:C.jsx("h6",{children:t})}),C.jsx("div",{children:e})]}),r4=e=>{const{children:t}=e,[r,i]=p.useState(!1);return p.useEffect(()=>{const l=document.getElementById("listContainer");if(l){const o=()=>{const n=l.scrollHeight>l.clientHeight;i(n)};return window.addEventListener("resize",o),o(),()=>{window.removeEventListener("resize",o)}}},[]),C.jsx("div",{id:"listContainer",className:`${G.notificationGrouplistHolder} ${r?G.spacing:""}`,children:C.jsx("div",{className:`${G.notificationGrouplist}`,children:t})})},n4=({children:e})=>C.jsx("div",{className:G.notificationPanel,children:e}),i4=e=>{const{extraClass:t,markAllAsReadOnClick:r,showMarkAllAsRead:i}=e;return C.jsx("div",{className:`${G.notificationheader} ${t}`,children:C.jsxs("div",{className:G.notificationHeaderWrapper,children:[C.jsx("div",{children:C.jsx("h5",{children:"Notifications"})}),C.jsx("div",{children:i&&C.jsx("div",{onClick:r,className:G.notificationMarkAllAction,children:C.jsx("h6",{children:"Mark all as Read"})})})]})})},l4=()=>C.jsx("li",{className:G.notificationNone,children:C.jsx("h6",{children:"No notifications."})}),S2=p.createContext({currentIndex:0,setCurrentIndex:Function}),o4="_tab_4osvo_1",s4="_tabNav_4osvo_4",a4="_tabNavItem_4osvo_9",c4="_active_4osvo_22",d4="_item_4osvo_26",h4="_bilingualTitle_4osvo_32",f2={tab:o4,tabNav:s4,tabNavItem:a4,active:c4,item:d4,bilingualTitle:h4},u4=({children:e,extraClass:t})=>{const[r,i]=p.useState(0);return C.jsx(S2.Provider,{value:{currentIndex:r,setCurrentIndex:i},children:C.jsx("div",{className:`${f2.tab} ${t}`,children:e})})},f4=({children:e,extraClass:t})=>C.jsx("div",{className:`${f2.tabBody} ${t}`,children:e}),w4=e=>{const t=p.useContext(S2),{children:r,tabIndex:i,extraClass:l}=e;return i===t.currentIndex?C.jsx("div",{className:`${l}`,children:r}):C.jsx(C.Fragment,{})},g4=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${f2.tabNav} ${r}`,children:t})},x4=e=>{const{title:t,bilingualTitle:r,tabIndex:i,onBeforeOpen:l=null,onAfterOpened:o=null,extraClass:n}=e,s=p.useContext(S2);let a=` ${f2.tabNavItem} ${n}`;s.currentIndex===i&&(a+=` ${f2.active}`);const c=d=>{let h=!0;if(l){const u=l();typeof u=="boolean"&&(h=u)}h&&(s.setCurrentIndex(d),o&&o())};return C.jsx(C.Fragment,{children:C.jsxs("div",{className:a,onClick:()=>{c(i)},children:[C.jsxs("span",{className:`${f2.item} item`,children:[" ",t]}),r&&C.jsxs("span",{className:`${f2.bilingualTitle} bilingualTitle`,children:[" ",r]})]})})},v4="_table_10sge_1",p4="_tableBody_10sge_6",L4="_tableHead_10sge_6",H4="_tableFooter_10sge_6",M4="_tableRow_10sge_10",V4="_tableCellHeading_10sge_22",m4="_tableCell_10sge_22",Z4="_tableCellAlignLeft_10sge_44",j4="_tableCellAlignCenter_10sge_47",_4="_tableCellAlignRight_10sge_50",b4="_tableCellActions_10sge_54",y4="_smallDesc_10sge_87",B4="_cellWithPicture_10sge_94",N4="_cellImage_10sge_99",Y={table:v4,tableBody:p4,tableHead:L4,tableFooter:H4,tableRow:M4,tableCellHeading:V4,tableCell:m4,tableCellAlignLeft:Z4,tableCellAlignCenter:j4,tableCellAlignRight:_4,tableCellActions:b4,smallDesc:y4,cellWithPicture:B4,cellImage:N4},S4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Y.table} ${r} table`,children:C.jsx("div",{className:"tableContainer",children:t})})},I4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Y.tableBody} ${r} `,children:t})})},$4=e=>{const{children:t,extraClass:r,align:i}=e,l=typeof t;let o=` ${Y.tableCellAlignLeft}`;i==="center"&&(o=Y.tableCellAlignCenter),i==="right"&&(o=Y.tableCellAlignRight);const n=F(o,r);return C.jsx("div",{className:`${Y.tableCell} ${n}`,children:C.jsxs(C.Fragment,{children:[l==="string"&&C.jsx("p",{children:t}),l!=="string"&&C.jsx(C.Fragment,{children:t})]})})},T4=e=>{const{children:t,extraClass:r,align:i}=e;let l=` ${Y.tableCellAlignLeft}`;return i==="center"&&(l=Y.tableCellAlignCenter),i==="right"&&(l=Y.tableCellAlignRight),C.jsx("div",{className:`${Y.tableCell} ${r} ${Y.tableCellActions} ${l}`,children:C.jsx("div",{children:t})})},k4=e=>{const{heading:t,description:r,extraClass:i}=e;return C.jsx("div",{className:`${Y.tableCell} ${i}`,children:C.jsxs("div",{children:[!!t&&C.jsx("p",{className:Y.descTitle,children:t}),!!r&&C.jsx("p",{className:Y.smallDesc,children:r})]})})},E4=e=>{const{image:t,heading:r,description:i,extraClass:l}=e,o=typeof t;return C.jsx("div",{className:`${Y.tableCell} ${l}`,children:C.jsxs("div",{className:`${Y.cellWithPicture}`,children:[o==="string"&&C.jsx("div",{className:`${Y.cellImage} cellImage`,children:C.jsx("img",{src:t?`${t}`:"",alt:t})}),o!=="string"&&C.jsx("div",{className:`${Y.cellImage} cellImage`,children:t}),C.jsxs("div",{children:[!!r&&C.jsx("p",{className:`${Y.descTitle} descTitle`,children:r}),!!i&&C.jsx("p",{className:`${Y.smallDesc} smallDesc`,children:C.jsx("small",{children:i})})]})]})})},P4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Y.tableFooter} ${r} `,children:t})})},O4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Y.tableHead} ${r}`,children:t})},A4=e=>{const{children:t,extraClass:r,onClick:i}=e;return C.jsx("div",{className:`${Y.tableCellHeading} ${r}`,onClick:()=>{i&&i()},children:t})},R4=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${Y.tableRow} ${r}`,children:t})},F4="_calloutPopupActionHolder_cpqb7_1",D4="_calloutPopup_cpqb7_1",q4="_calloutPopupWrapper_cpqb7_11",Y2={calloutPopupActionHolder:F4,calloutPopup:D4,calloutPopupWrapper:q4},F1=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${Y2.calloutPopup} ${r}`,children:C.jsx("div",{className:`${Y2.calloutPopupWrapper} calloutPopupWrapper`,children:t})})},W4=e=>{const{id:t,children:r,extraClassActionHolder:i,extraClassPopup:l,actionHolder:o}=e,[n,s]=p.useState({}),a=p.useRef(null);p.useEffect(()=>{const h=u=>{a.current&&!a.current.contains(u.target)&&s(w=>({...w,[`${t}`]:!1}))};return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[t]);const c=()=>{s(h=>({...h,[`${t}`]:!h[`${t}`]}))},d=()=>{s(h=>({...h,[`${t}`]:!1}))};return C.jsxs("div",{ref:a,className:`${Y2.calloutPopupActionHolder} ${i}`,children:[C.jsx("div",{onClick:c,children:o}),n[`${t}`]&&C.jsx("div",{onClick:d,children:C.jsx(F1,{extraClass:l,children:r})})]})},z4="_header_y9i8j_1",U4="_headerLeft_y9i8j_10",Y4="_layoutLogo_y9i8j_14",G4="_layoutLogoSmall_y9i8j_17",K4="_hamburgerBtn_y9i8j_20",J4="_headerRight_y9i8j_33",X4="_searchFieldWrap_y9i8j_39",w2={header:z4,headerLeft:U4,layoutLogo:Y4,layoutLogoSmall:G4,hamburgerBtn:K4,headerRight:J4,searchFieldWrap:X4},Q4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("header",{className:`${w2.header} ${r}`,children:t})},C3=e=>{const{logo:t,logoSmall:r,hamburgerOnclick:i}=e,[l,o]=p.useState(!1),n=s=>{o(!l),i&&i(s)};return C.jsxs("div",{className:w2.headerLeft,children:[C.jsx("div",{className:`${w2.layoutLogo} layoutLogo`,children:t}),C.jsx("div",{className:`${w2.layoutLogoSmall} layoutLogoSmall`,children:r}),C.jsx("div",{onClick:n,className:`${w2.hamburgerBtn} hamburgerBtn`,children:l?C.jsx(p2,{}):C.jsx(B1,{})})]})},e3=e=>{const{children:t,extraClass:r,fieldExtraClass:i,searchField:l,searchFieldShow:o}=e;return C.jsx("div",{className:`${w2.headerRight} ${r}`,children:C.jsxs("ul",{children:[o&&l&&C.jsx("li",{children:C.jsx("div",{className:`${w2.searchFieldWrap} ${i}`,children:l})}),t]})})},t3=()=>{},r3=()=>{},n3=()=>{},i3=()=>{},l3=()=>{},o3=()=>{},s3="_profile_1hjop_1",a3="_profileHolder_1hjop_5",c3="_profileInner_1hjop_9",d3="_avatar_1hjop_20",h3="_dropdown_1hjop_31",m2={profile:s3,profileHolder:a3,profileInner:c3,avatar:d3,dropdown:h3},u3=e=>{const{initials:t,children:r,extraClass:i,onClick:l}=e;return C.jsxs("div",{className:`${m2.profileHolder}`,children:[C.jsx("div",{className:`${m2.profile} ${i}`,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})]})},f3="_profileDropdown_1apu2_1",w3="_profileHeader_1apu2_8",g3="_profileHeaderWrapper_1apu2_14",x3="_profileSwitchUserWrapper_1apu2_15",v3="_avatar_1apu2_19",p3="_content_1apu2_39",L3="_name_1apu2_39",H3="_role_1apu2_45",M3="_profileSwitchUserContent_1apu2_54",V3="_profileNavigationItem_1apu2_67",m3="_profileNavigationItemWrapper_1apu2_77",Z3="_profileNavigationItemLeft_1apu2_84",j3="_profileNavigationItemIcon_1apu2_88",_3="_profileNavigationItemContent_1apu2_98",b3="_profileNavigationItemRight_1apu2_104",y3="_profileLinks_1apu2_113",B3="_profileLinksList_1apu2_116",N3="_profileLink_1apu2_113",S3="_profileSwitchPanel_1apu2_135",I3="_usersHolder_1apu2_141",$3="_spacing_1apu2_146",T3="_profileSwitchPanelHeader_1apu2_163",k3="_caretLeft_1apu2_170",E3="_closeIcon_1apu2_171",P3="_headerTitle_1apu2_182",O3="_initialsTile_1apu2_183",A3="_fieldWrapper_1apu2_189",R3="_profileSwitchUser_1apu2_15",F3="_profileSwitchUserAvatar_1apu2_203",D={profileDropdown:f3,profileHeader:w3,profileHeaderWrapper:g3,profileSwitchUserWrapper:x3,avatar:v3,content:p3,name:L3,role:H3,profileSwitchUserContent:M3,profileNavigationItem:V3,profileNavigationItemWrapper:m3,profileNavigationItemLeft:Z3,profileNavigationItemIcon:j3,profileNavigationItemContent:_3,profileNavigationItemRight:b3,profileLinks:y3,profileLinksList:B3,profileLink:N3,profileSwitchPanel:S3,usersHolder:I3,spacing:$3,profileSwitchPanelHeader:T3,caretLeft:k3,closeIcon:E3,headerTitle:P3,initialsTile:O3,fieldWrapper:A3,profileSwitchUser:R3,profileSwitchUserAvatar:F3},D3=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${D.profileDropdown} ${r}`,children:t})},q3=e=>{const{initials:t,username:r,role:i,extraClass:l}=e;return C.jsx("div",{className:`${D.profileHeader} ${l}`,children:C.jsxs("div",{className:`${D.profileHeaderWrapper}`,children:[!!t&&C.jsx("span",{className:`${D.avatar}`,children:C.jsx("h3",{children:t})}),C.jsxs("div",{className:`${D.content}`,children:[C.jsx("h5",{className:`${D.name}`,children:r}),!!i&&C.jsx("p",{className:`${D.role}`,children:i})]})]})})},W3=e=>{const{children:t}=e;return C.jsx("div",{className:D.profileLink,children:t})},z3=e=>{const{children:t}=e;return C.jsx("div",{className:`${D.profileLinks}`,children:C.jsx("div",{className:`${D.profileLinksList}`,children:t})})},U3=e=>{const{icon:t,openSubDropdown:r,title:i,onClick:l}=e;return C.jsx("div",{className:`${D.profileNavigationItem}`,onClick:o=>{l&&l(o)},children:C.jsxs("div",{className:`${D.profileNavigationItemWrapper}`,children:[C.jsxs("div",{className:`${D.profileNavigationItemLeft}`,children:[!!t&&C.jsx("div",{className:`${D.profileNavigationItemIcon}`,children:t}),C.jsx("div",{className:D.profileNavigationItemContent,children:C.jsx("h5",{children:i})})]}),!!r&&C.jsx("div",{className:`${D.profileNavigationItemRight}`,children:C.jsx(B2,{})})]})})},Y3=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,children:u,goBackOnClick:w,closeOnClick:v,...L}=e,[M,b]=p.useState(!1);p.useEffect(()=>{const j=document.getElementById("listContainer");if(j){const y=()=>{const g=j.scrollHeight>j.clientHeight;b(g)};return window.addEventListener("resize",y),y(),()=>{window.removeEventListener("resize",y)}}},[]);const _=[k.input];return s&&_.push(k.error),o&&_.push(o),C.jsxs("div",{className:D.profileSwitchPanel,children:[C.jsxs("div",{className:D.profileSwitchPanelHeader,children:[C.jsx("div",{onClick:w,className:D.caretLeft,children:C.jsx(N2,{type:"bold"})}),C.jsx("div",{children:C.jsx("h5",{className:D.headerTitle,children:"Switch user"})}),C.jsx("div",{className:D.closeIcon,children:C.jsx(p2,{type:"bold"})})]}),C.jsx("div",{className:D.fieldWrapper,children:C.jsxs("div",{className:k.textField,children:[C.jsx("input",{className:F(_),id:r,name:t,type:"text",value:i,placeholder:l,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false",...L}),C.jsx("div",{className:k.textFieldIcon,children:C.jsx(S1,{})})]})}),C.jsx("div",{id:"listContainer",className:`${D.usersHolder} ${M?k.spacing:""} `,children:u})]})},G3=e=>{const{initials:t,userName:r,role:i}=e;return C.jsx("div",{className:D.profileSwitchUser,children:C.jsxs("div",{className:D.profileSwitchUserWrapper,children:[C.jsx("div",{className:`${D.profileSwitchUserAvatar} ${D.avatar}`,children:C.jsx("h5",{className:D.initialsTile,children:t})}),C.jsxs("div",{className:D.profileSwitchUserContent,children:[C.jsx("h5",{className:D.name,children:r}),C.jsx("p",{className:D.role,children:i})]})]})})},K3="_sidebar_1gyrz_1",J3="_sidebarNavigation_1gyrz_9",X3="_navigationItemLarge_1gyrz_12",Q3="_subNavigationHolder_1gyrz_16",C8="_navigationSubItemLarge_1gyrz_19",e8="_navigationItemHolder_1gyrz_23",t8="_subNavigationItemHolder_1gyrz_23",r8="_navigationItem_1gyrz_12",n8="_subNavigationItem_1gyrz_23",i8="_active_1gyrz_38",l8="_bilingualTitle_1gyrz_42",o8="_navigationIcon_1gyrz_53",s8="_subNavigationIcon_1gyrz_53",a8="_navigationItemBody_1gyrz_64",c8="_subNavigationItemBody_1gyrz_64",d8="_navigationItemSmall_1gyrz_68",h8="_childIndicator_1gyrz_72",u8="_navigationSubItemSmall_1gyrz_85",f8="_sidebarTitle_1gyrz_88",w8="_sidebarChevron_1gyrz_117",g8="_sidebarChevronBtn_1gyrz_138",R={sidebar:K3,sidebarNavigation:J3,navigationItemLarge:X3,subNavigationHolder:Q3,navigationSubItemLarge:C8,navigationItemHolder:e8,subNavigationItemHolder:t8,navigationItem:r8,subNavigationItem:n8,active:i8,bilingualTitle:l8,navigationIcon:o8,subNavigationIcon:s8,navigationItemBody:a8,subNavigationItemBody:c8,navigationItemSmall:d8,childIndicator:h8,navigationSubItemSmall:u8,sidebarTitle:f8,sidebarChevron:w8,sidebarChevronBtn:g8},x8=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${R.sidebar} ${r}`,children:t})},D1=e=>{const{onClick:t,icon:r}=e;return C.jsx("div",{className:R.sidebarChevronBtn,onClick:i=>{t&&t(i)},children:C.jsx("button",{children:r})})},v8=e=>{const{children:t,extraClass:r="",subNavActive:i}=e;return C.jsx("div",{className:`${R.sidebarNavigation} sidebarNavigation ${r} ${i?`${R.navigationItemSmall} navigationItemSmall`:`${R.navigationItemLarge} navigationItemLarge`}`,children:t})},p8=e=>{const{icon:t,contents:r,children:i,extraClass:l,onClick:o,activeState:n,bilingualTitle:s}=e;return i?C.jsxs("div",{className:`${R.navigationItemHolder} navigationItemHolder`,children:[C.jsxs("div",{className:`navigationItem ${R.navigationItem} ${l} ${n?R.active:""}`,onClick:a=>{o&&o(a)},children:[!!t&&C.jsx("div",{className:`${R.navigationIcon} navigationIcon`,children:t}),C.jsxs("div",{className:`${R.navigationItemBody} navigationItemBody`,children:[C.jsx("div",{className:"navigationItemBodyText",children:r}),!!s&&C.jsx("span",{className:R.bilingualTitle,children:s})]}),C.jsx("div",{className:`${R.navigationIcon} ${R.childIndicator}`,children:C.jsx(B2,{})})]}),!!i&&C.jsx("div",{className:`${R.subNavigation} subNavigation`,children:i})]}):C.jsx("div",{className:`${R.navigationItemHolder} navigationItemHolder`,children:C.jsxs("div",{className:`${R.navigationItem} ${l} navigationItem ${n?R.active:""}`,onClick:a=>{o&&o(a)},children:[!!t&&C.jsx("div",{className:`${R.navigationIcon} navigationIcon`,children:t}),C.jsxs("div",{children:[C.jsx("div",{className:`${R.navigationItemBody} navigationItemBody`,children:r}),!!s&&C.jsx("span",{className:R.bilingualTitle,children:s})]})]})})},L8=e=>{const{extraClass:t,children:r,title:i,onClick:l,getBackOnClick:o,subNavToggle:n,bilingualTitle:s="kk"}=e;return C.jsxs("div",{className:`${R.subNavigationHolder} ${t} subNavigationHolder ${n?R.navigationSubItemSmall:R.navigationSubItemLarge}`,children:[C.jsx("div",{className:R.sidebarChevron,children:C.jsx(D1,{icon:n?C.jsx(B2,{type:"bold"}):C.jsx(N2,{type:"bold"}),onClick:l})}),C.jsxs("div",{onClick:o,className:R.sidebarTitle,children:[C.jsx(_1,{}),C.jsxs("div",{children:[C.jsx("h5",{children:i}),!!s&&C.jsx("span",{className:R.bilingualTitle,children:s})]})]}),r]})},H8=e=>{const{icon:t,contents:r,extraClass:i,activeState:l,bilingualTitle:o}=e;return C.jsx("div",{className:`${R.subNavigationItemHolder} subNavigationItemHolder`,children:C.jsxs("div",{className:`${R.subNavigationItem} ${i} subNavigationItem ${l?R.active:""}`,children:[!!t&&C.jsx("div",{className:`${R.subNavigationIcon} subNavigationIcon`,children:t}),C.jsxs("div",{children:[C.jsx("div",{className:`${R.subNavigationItemBody} subNavigationItemBody`,children:r}),!!o&&C.jsx("span",{className:R.bilingualTitle,children:o})]})]})})};exports.Accordion=i5;exports.AccordionContext=K2;exports.AccordionItem=h5;exports.AccordionProvider=v1;exports.AddressBook=o6;exports.ArrowLeft=_1;exports.ArrowsDownUp=n6;exports.ArrowsOutCardinal=i6;exports.Asterisk=s6;exports.At=a6;exports.Badge=M5;exports.BannerCard=k5;exports.Barbell=X6;exports.Bell=N1;exports.BetterUIContext=G2;exports.BetterUIProvider=n5;exports.BookOpenText=p6;exports.Broadcast=c6;exports.Button=J2;exports.CalendarBank=H1;exports.CalloutPopup=F1;exports.CalloutPopupActionHolder=W4;exports.CaretDown=v2;exports.CaretLeft=N2;exports.CaretRight=B2;exports.CaretUp=x2;exports.CaretUpDown=r6;exports.ChartBar=j6;exports.ChartBarHorizontal=y6;exports.ChartLine=_6;exports.ChartPie=b6;exports.Chat=d6;exports.Check=J6;exports.CheckSquare=W6;exports.Checkbox=R5;exports.CheckboxSelect=Y5;exports.CheckboxSelectItem=G5;exports.CheckboxSet=z5;exports.CheckboxSetItem=U5;exports.Clock=I1;exports.CurrencyDollarSimple=L1;exports.CurrencyField=d9;exports.DateField=h9;exports.DotsSixVertical=D6;exports.DotsThreeVertical=q6;exports.DownloadSimple=Y6;exports.DropdownBadge=b9;exports.DropdownBadgeItem=V1;exports.DropdownBadgeSelector=M1;exports.DropdownField=P9;exports.DropdownFieldItem=q2;exports.DropdownFieldSelector=Z1;exports.EmailField=O9;exports.EnvelopeSimple=f6;exports.ErrorMessage=A9;exports.Export=w6;exports.Eye=b1;exports.EyeSlash=y1;exports.Folder=I6;exports.FormFieldHolder=Y9;exports.Gear=U6;exports.Globe=L6;exports.Header=Q4;exports.HeaderLeft=C3;exports.HeaderRight=e3;exports.HouseSimple=H6;exports.IconButton=t6;exports.List=B1;exports.ListBullets=$6;exports.LockKeyOpen=R6;exports.LockSimple=m1;exports.MagnifyingGlass=S1;exports.Media=M0;exports.Modal=V0;exports.ModalActions=m0;exports.ModalActionsLeft=Z0;exports.ModalActionsRight=j0;exports.ModalBody=_0;exports.ModalCurtain=x1;exports.ModalHeader=b0;exports.Mountains=Q6;exports.MultiSelectField=w7;exports.MultiSelectFieldItem=T1;exports.MultiSelectFieldTag=$1;exports.Notification=e4;exports.NotificationsBell=$0;exports.NotificationsGroup=t4;exports.NotificationsGroups=r4;exports.NotificationsHeader=i4;exports.NotificationsNone=l4;exports.NotificationsPanel=n4;exports.NumberField=d0;exports.NumberSquareThree=Z6;exports.Pagination=t3;exports.PaginationFirst=r3;exports.PaginationLast=n3;exports.PaginationNext=i3;exports.PaginationNumber=l3;exports.PaginationPrevious=o3;exports.PasswordField=_7;exports.Path=M6;exports.PathwayCard=L0;exports.PencilLine=g6;exports.PencilSimple=x6;exports.PersonSimpleBike=A6;exports.PersonSimpleWalk=O6;exports.Phone=u6;exports.PhoneField=f0;exports.Plus=m6;exports.Printer=T6;exports.ProfileAvatar=u3;exports.ProfileDropdown=D3;exports.ProfileHeader=q3;exports.ProfileLink=W3;exports.ProfileLinks=z3;exports.ProfileNavigationItem=U3;exports.ProfileSwitchPanel=Y3;exports.ProfileSwitchUser=G3;exports.Question=F6;exports.RadioButton=T7;exports.RadioButtonIcon=z6;exports.RadioButtons=k7;exports.RichTextEditor=i0;exports.Ruler=v6;exports.Sidebar=x8;exports.SidebarChevron=D1;exports.SidebarNavigation=v8;exports.SidebarNavigationItem=p8;exports.SidebarSubNavigation=L8;exports.SidebarSubNavigationItem=H8;exports.SignIn=K6;exports.SignOut=G6;exports.SildersHorizontal=B6;exports.Tab=u4;exports.TabBody=f4;exports.TabBodyContent=w4;exports.TabContext=S2;exports.TabNav=g4;exports.TabNavItem=x4;exports.Table=S4;exports.TableBody=I4;exports.TableCell=$4;exports.TableCellAction=T4;exports.TableCellWithDesc=k4;exports.TableCellWithImage=E4;exports.TableFooter=P4;exports.TableHead=O4;exports.TableHeaderCell=A4;exports.TableRow=R4;exports.TextAa=N6;exports.TextColumns=S6;exports.TextField=c0;exports.Textarea=a0;exports.TimeField=u0;exports.ToggleSwitch=p0;exports.Tram=V6;exports.Translate=h6;exports.Tree=C7;exports.TypableDropdownField=j7;exports.TypableDropdownFieldItem=E1;exports.TypableDropdownFieldSelector=k1;exports.UnitField=h0;exports.User=k6;exports.UserCircle=E6;exports.UserSwitch=P6;exports.WarningCircle=j1;exports.WindowsLogo=l6;exports.XIcon=p2;
|
|
24
|
+
Valid keys: `+JSON.stringify(Object.keys(x),null," "));var H=t2($,A,N,P,S+"."+A,r);if(H)return H}return null}return M(V)}function X(x){switch(typeof x){case"number":case"string":case"undefined":return!0;case"boolean":return!x;case"object":if(Array.isArray(x))return x.every(X);if(x===null||s(x))return!0;var V=h(x);if(V){var T=V.call(x),I;if(V!==x.entries){for(;!(I=T.next()).done;)if(!X(I.value))return!1}else for(;!(I=T.next()).done;){var N=I.value;if(N&&!X(N[1]))return!1}}else return!1;return!0;default:return!1}}function H2(x,V){return x==="symbol"?!0:V?V["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&V instanceof Symbol:!1}function i2(x){var V=typeof x;return Array.isArray(x)?"array":x instanceof RegExp?"object":H2(V,x)?"symbol":V}function c2(x){if(typeof x>"u"||x===null)return""+x;var V=i2(x);if(V==="object"){if(x instanceof Date)return"date";if(x instanceof RegExp)return"regexp"}return V}function Z2(x){var V=c2(x);switch(V){case"array":case"object":return"an "+V;case"boolean":case"date":case"regexp":return"a "+V;default:return V}}function I2(x){return!x.constructor||!x.constructor.name?u:x.constructor.name}return w.checkPropTypes=l,w.resetWarningCache=l.resetWarningCache,w.PropTypes=w,w},P2}var O2,a1;function q7(){if(a1)return O2;a1=1;var e=X2();function t(){}function r(){}return r.resetWarningCache=t,O2=function(){function i(n,s,a,c,d,h){if(h!==e){var u=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 u.name="Invariant Violation",u}}i.isRequired=i;function l(){return i}var o={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:l,element:i,elementType:i,instanceOf:l,node:i,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 W7=P1(),z7=!0;W2.exports=D7()(W7.isElement,z7)}else W2.exports=q7()();var f=W2.exports,z2=globalThis&&globalThis.__assign||function(){return z2=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},z2.apply(this,arguments)},A1={onActivate:f.func,onAddUndo:f.func,onBeforeAddUndo:f.func,onBeforeExecCommand:f.func,onBeforeGetContent:f.func,onBeforeRenderUI:f.func,onBeforeSetContent:f.func,onBeforePaste:f.func,onBlur:f.func,onChange:f.func,onClearUndos:f.func,onClick:f.func,onContextMenu:f.func,onCommentChange:f.func,onCopy:f.func,onCut:f.func,onDblclick:f.func,onDeactivate:f.func,onDirty:f.func,onDrag:f.func,onDragDrop:f.func,onDragEnd:f.func,onDragGesture:f.func,onDragOver:f.func,onDrop:f.func,onExecCommand:f.func,onFocus:f.func,onFocusIn:f.func,onFocusOut:f.func,onGetContent:f.func,onHide:f.func,onInit:f.func,onKeyDown:f.func,onKeyPress:f.func,onKeyUp:f.func,onLoadContent:f.func,onMouseDown:f.func,onMouseEnter:f.func,onMouseLeave:f.func,onMouseMove:f.func,onMouseOut:f.func,onMouseOver:f.func,onMouseUp:f.func,onNodeChange:f.func,onObjectResizeStart:f.func,onObjectResized:f.func,onObjectSelected:f.func,onPaste:f.func,onPostProcess:f.func,onPostRender:f.func,onPreProcess:f.func,onProgressState:f.func,onRedo:f.func,onRemove:f.func,onReset:f.func,onSaveContent:f.func,onSelectionChange:f.func,onSetAttrib:f.func,onSetContent:f.func,onShow:f.func,onSubmit:f.func,onUndo:f.func,onVisualAid:f.func,onSkinLoadError:f.func,onThemeLoadError:f.func,onModelLoadError:f.func,onPluginLoadError:f.func,onIconsLoadError:f.func,onLanguageLoadError:f.func,onScriptsLoad:f.func,onScriptsLoadError:f.func},U7=z2({apiKey:f.string,id:f.string,inline:f.bool,init:f.object,initialValue:f.string,onEditorChange:f.func,value:f.string,tagName:f.string,cloudChannel:f.string,plugins:f.oneOfType([f.string,f.array]),toolbar:f.oneOfType([f.string,f.array]),disabled:f.bool,textareaName:f.string,tinymceScriptSrc:f.oneOfType([f.string,f.arrayOf(f.string),f.arrayOf(f.shape({src:f.string,async:f.bool,defer:f.bool}))]),rollback:f.oneOfType([f.number,f.oneOf([!1])]),scriptLoading:f.shape({async:f.bool,defer:f.bool,delay:f.number})},A1),A2=function(e){return typeof e=="function"},c1=function(e){return e in A1},d1=function(e){return e.substr(2)},Y7=function(e,t,r,i,l,o,n){var s=Object.keys(l).filter(c1),a=Object.keys(o).filter(c1),c=s.filter(function(h){return o[h]===void 0}),d=a.filter(function(h){return l[h]===void 0});c.forEach(function(h){var u=d1(h),w=n[u];r(u,w),delete n[u]}),d.forEach(function(h){var u=i(e,h),w=d1(h);n[w]=u,t(w,u)})},G7=function(e,t,r,i,l){return Y7(l,e.on.bind(e),e.off.bind(e),function(o,n){return function(s){var a;return(a=o(n))===null||a===void 0?void 0:a(s,e)}},t,r,i)},h1=0,R1=function(e){var t=Date.now(),r=Math.floor(Math.random()*1e9);return h1++,e+"_"+r+h1+String(t)},u1=function(e){return e!==null&&(e.tagName.toLowerCase()==="textarea"||e.tagName.toLowerCase()==="input")},f1=function(e){return typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" ")},K7=function(e,t){return f1(e).concat(f1(t))},J7=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},X7=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},w1=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))},U2=globalThis&&globalThis.__assign||function(){return U2=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;r++){t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},U2.apply(this,arguments)},Q7=function(e,t,r){var i,l,o=e.createElement("script");o.referrerPolicy="origin",o.type="application/javascript",o.id=t.id,o.src=t.src,o.async=(i=t.async)!==null&&i!==void 0?i:!1,o.defer=(l=t.defer)!==null&&l!==void 0?l:!1;var n=function(){o.removeEventListener("load",n),o.removeEventListener("error",s),r(t.src)},s=function(a){o.removeEventListener("load",n),o.removeEventListener("error",s),r(t.src,a)};o.addEventListener("load",n),o.addEventListener("error",s),e.head&&e.head.appendChild(o)},C0=function(e){var t={},r=function(n,s){var a=t[n];a.done=!0,a.error=s;for(var c=0,d=a.handlers;c<d.length;c++){var h=d[c];h(n,s)}a.handlers=[]},i=function(n,s,a){var c=function(_){return a!==void 0?a(_):console.error(_)};if(n.length===0){c(new Error("At least one script must be provided"));return}for(var d=0,h=!1,u=function(_,j){h||(j?(h=!0,c(j)):++d===n.length&&s())},w=0,v=n;w<v.length;w++){var L=v[w],M=t[L.src];if(M)M.done?u(L.src,M.error):M.handlers.push(u);else{var b=R1("tiny-");t[L.src]={id:b,src:L.src,done:!1,error:null,handlers:[u]},Q7(e,U2({id:b},L),r)}}},l=function(){for(var n,s=0,a=Object.values(t);s<a.length;s++){var c=a[s],d=e.getElementById(c.id);d!=null&&d.tagName==="SCRIPT"&&((n=d.parentNode)===null||n===void 0||n.removeChild(d))}t={}},o=function(){return e};return{loadScripts:i,deleteScripts:l,getDocument:o}},e0=function(){var e=[],t=function(l){var o=e.find(function(n){return n.getDocument()===l});return o===void 0&&(o=C0(l),e.push(o)),o},r=function(l,o,n,s,a){var c=function(){return t(l).loadScripts(o,s,a)};n>0?setTimeout(c,n):c()},i=function(){for(var l=e.pop();l!=null;l=e.pop())l.deleteScripts()};return{loadList:r,reinitialize:i}},t0=e0(),R2=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},r0=globalThis&&globalThis.__extends||function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,l){i.__proto__=l}||function(i,l){for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(i[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 i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}(),y2=globalThis&&globalThis.__assign||function(){return y2=Object.assign||function(e){for(var t,r=1,i=arguments.length;r<i;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)},n0=function(e){r0(t,e);function t(r){var i,l,o,n=e.call(this,r)||this;return n.rollbackTimer=void 0,n.valueCursor=void 0,n.rollbackChange=function(){var s=n.editor,a=n.props.value;s&&a&&a!==n.currentContent&&s.undoManager.ignore(function(){if(s.setContent(a),n.valueCursor&&(!n.inline||s.hasFocus()))try{s.selection.moveToBookmark(n.valueCursor)}catch{}}),n.rollbackTimer=void 0},n.handleBeforeInput=function(s){if(n.props.value!==void 0&&n.props.value===n.currentContent&&n.editor&&(!n.inline||n.editor.hasFocus()))try{n.valueCursor=n.editor.selection.getBookmark(3)}catch{}},n.handleBeforeInputSpecial=function(s){(s.key==="Enter"||s.key==="Backspace"||s.key==="Delete")&&n.handleBeforeInput(s)},n.handleEditorChange=function(s){var a=n.editor;if(a&&a.initialized){var c=a.getContent();n.props.value!==void 0&&n.props.value!==c&&n.props.rollback!==!1&&(n.rollbackTimer||(n.rollbackTimer=window.setTimeout(n.rollbackChange,typeof n.props.rollback=="number"?n.props.rollback:200))),c!==n.currentContent&&(n.currentContent=c,A2(n.props.onEditorChange)&&n.props.onEditorChange(c,a))}},n.handleEditorChangeSpecial=function(s){(s.key==="Backspace"||s.key==="Delete")&&n.handleEditorChange(s)},n.initialise=function(s){var a,c,d;s===void 0&&(s=0);var h=n.elementRef.current;if(h){if(!X7(h)){if(s===0)setTimeout(function(){return n.initialise(1)},1);else if(s<100)setTimeout(function(){return n.initialise(s+1)},100);else throw new Error("tinymce can only be initialised when in a document");return}var u=R2(n.view);if(!u)throw new Error("tinymce should have been loaded into global scope");var w=y2(y2({},n.props.init),{selector:void 0,target:h,readonly:n.props.disabled,inline:n.inline,plugins:K7((a=n.props.init)===null||a===void 0?void 0:a.plugins,n.props.plugins),toolbar:(c=n.props.toolbar)!==null&&c!==void 0?c:(d=n.props.init)===null||d===void 0?void 0:d.toolbar,setup:function(v){n.editor=v,n.bindHandlers({}),n.inline&&!u1(h)&&v.once("PostRender",function(L){v.setContent(n.getInitialValue(),{no_events:!0})}),n.props.init&&A2(n.props.init.setup)&&n.props.init.setup(v)},init_instance_callback:function(v){var L,M,b=n.getInitialValue();n.currentContent=(L=n.currentContent)!==null&&L!==void 0?L:v.getContent(),n.currentContent!==b&&(n.currentContent=b,v.setContent(b),v.undoManager.clear(),v.undoManager.add(),v.setDirty(!1));var _=(M=n.props.disabled)!==null&&M!==void 0?M:!1;w1(n.editor,_?"readonly":"design"),n.props.init&&A2(n.props.init.init_instance_callback)&&n.props.init.init_instance_callback(v)}});n.inline||(h.style.visibility=""),u1(h)&&(h.value=n.getInitialValue()),u.init(w)}},n.id=n.props.id||R1("tiny-react"),n.elementRef=_2.createRef(),n.inline=(o=(i=n.props.inline)!==null&&i!==void 0?i:(l=n.props.init)===null||l===void 0?void 0:l.inline)!==null&&o!==void 0?o:!1,n.boundHandlers={},n}return Object.defineProperty(t.prototype,"view",{get:function(){var r,i;return(i=(r=this.elementRef.current)===null||r===void 0?void 0:r.ownerDocument.defaultView)!==null&&i!==void 0?i:window},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(r){var i=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 n=this.editor;n.undoManager.transact(function(){var a;if(!i.inline||n.hasFocus())try{a=n.selection.getBookmark(3)}catch{}var c=i.valueCursor;if(n.setContent(i.props.value),!i.inline||n.hasFocus())for(var d=0,h=[a,c];d<h.length;d++){var u=h[d];if(u)try{n.selection.moveToBookmark(u),i.valueCursor=u;break}catch{}}})}if(this.props.disabled!==r.disabled){var s=(o=this.props.disabled)!==null&&o!==void 0?o:!1;w1(this.editor,s?"readonly":"design")}}},t.prototype.componentDidMount=function(){var r=this,i,l,o,n,s;if(R2(this.view)!==null)this.initialise();else if(Array.isArray(this.props.tinymceScriptSrc)&&this.props.tinymceScriptSrc.length===0)(l=(i=this.props).onScriptsLoadError)===null||l===void 0||l.call(i,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 d,h;(h=(d=r.props).onScriptsLoad)===null||h===void 0||h.call(d),r.initialise()},c=function(d){var h,u;(u=(h=r.props).onScriptsLoadError)===null||u===void 0||u.call(h,d)};t0.loadList(this.elementRef.current.ownerDocument,this.getScriptSources(),(s=(n=this.props.scriptLoading)===null||n===void 0?void 0:n.delay)!==null&&s!==void 0?s:0,a,c)}},t.prototype.componentWillUnmount=function(){var r=this,i=this.editor;i&&(i.off(this.changeEvents(),this.handleEditorChange),i.off(this.beforeInputEvent(),this.handleBeforeInput),i.off("keypress",this.handleEditorChangeSpecial),i.off("keydown",this.handleBeforeInputSpecial),i.off("NewBlock",this.handleEditorChange),Object.keys(this.boundHandlers).forEach(function(l){i.off(l,r.boundHandlers[l])}),this.boundHandlers={},i.remove(),this.editor=void 0)},t.prototype.render=function(){return this.inline?this.renderInline():this.renderIframe()},t.prototype.changeEvents=function(){var r,i,l,o=(l=(i=(r=R2(this.view))===null||r===void 0?void 0:r.Env)===null||i===void 0?void 0:i.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 J7()?"beforeinput SelectionChange":"SelectionChange"},t.prototype.renderInline=function(){var r=this.props.tagName,i=r===void 0?"div":r;return _2.createElement(i,{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,i,l=(r=this.props.scriptLoading)===null||r===void 0?void 0:r.async,o=(i=this.props.scriptLoading)===null||i===void 0?void 0:i.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 n=this.props.cloudChannel,s=this.props.apiKey?this.props.apiKey:"no-api-key",a="https://cdn.tiny.cloud/1/".concat(s,"/tinymce/").concat(n,"/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 i=this;if(this.editor!==void 0){G7(this.editor,r,this.props,this.boundHandlers,function(s){return i.props[s]});var l=function(s){return s.onEditorChange!==void 0||s.value!==void 0},o=l(r),n=l(this.props);!o&&n?(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&&!n&&(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=U7,t.defaultProps={cloudChannel:"6"},t}(_2.Component);const i0=e=>{const{name:t,id:r,value:i,extraClass:l,placeholder:o,error:n,disabled:s,readonly:a,autoComplete:c,required:d,ariaLabel:h,ariaLabeledby:u,ariaDescribedby:w,rows:v,onClick:L,onChange:M,onFocus:b,onBlur:_,...j}=e,[y,g]=p.useState(i),m=[C1.holder];return l&&m.push(l),C.jsxs("div",{className:F(m),children:[C.jsx(n0,{textareaName:t,scriptLoading:{async:!0},tinymceScriptSrc:"/lib/tinymce/tinymce.min.js",id:r,disabled:s,value:i,init:{height:v?50*v: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:B=>{g(B),M&&M(B)},onClick:B=>{L&&L(B)},onBlur:B=>{_&&_(B)},onFocus:B=>{b&&b(B)}}),C.jsx("textarea",{className:C1.hidden,id:`editor-text-${r}`,name:`${t}__editor`,value:y,placeholder:o,disabled:s,readOnly:a,required:d,autoComplete:c?"on":"off","aria-label":h||t,"aria-required":d?"true":"false","aria-invalid":n?"true":"false","aria-disabled":s?"true":"false","aria-readonly":a?"true":"false","aria-autocomplete":c?"list":"none",...j})]})},l0="_textarea_1y8ok_1",o0="_error_1y8ok_29",s0="_length_1y8ok_38",F2={textarea:l0,error:o0,length:s0},a0=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,rows:u,displayChars:w,maxLength:v,onChange:L,...M}=e,[b,_]=p.useState(""),j=g=>{var m;_((m=g.target)==null?void 0:m.value),L&&L(g)},y=[F2.textarea];return s&&y.push(F2.error),o&&y.push(o),C.jsxs(C.Fragment,{children:[C.jsx("textarea",{className:F(y),id:r,name:t,value:i,placeholder:l,rows:u,onChange:j,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false","aria-autocomplete":h?"list":"none",...M}),!!w&&C.jsxs("p",{className:F2.length,children:[b.length," / ",v]})]})},c0=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,icon:u,...w}=e,v=[k.input];return s&&v.push(k.error),o&&v.push(o),C.jsxs("div",{className:`${u?k.textField:""}`,children:[C.jsx("input",{className:F(v),id:r,name:t,type:"text",value:i,placeholder:l,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false","aria-autocomplete":h?"list":"none",...w}),!!u&&C.jsx("div",{className:k.textFieldIcon,children:u})]})},d0=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,numberValue:u,...w}=e,v=[k.input];return s&&v.push(k.error),o&&v.push(o),C.jsx("input",{className:F(v),id:r,name:t,type:"number",value:u,placeholder:l,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false","aria-autocomplete":h?"list":"none",...w})},h0=e=>{const{name:t,id:r,type:i,value:l,placeholder:o,extraClass:n,disabled:s,error:a,ariaLabel:c,required:d,readonly:h,autoComplete:u,unitText:w="ha",...v}=e,[L,M]=p.useState(0),b=p.useRef(null);p.useEffect(()=>{var g;const j=document.getElementById(`unitTextWidth ${r}`),y=((g=b.current)==null?void 0:g.offsetWidth)||0;j&&M(y+16)},[r,w]);const _=[k.input];return a&&_.push(k.error),n&&_.push(n),C.jsxs("div",{className:`${k.unitField}`,children:[C.jsx("input",{style:{paddingRight:`${L}px`},className:F(_),id:`unitTextWidth ${r}`,name:t,type:i,value:l,placeholder:o,disabled:s,readOnly:h,required:d,autoComplete:u?"on":"off","aria-label":c||t,"aria-required":d?"true":"false","aria-invalid":a?"true":"false","aria-disabled":s?"true":"false","aria-readonly":h?"true":"false","aria-autocomplete":u?"list":"none",...v}),C.jsx("div",{className:k.unitText,ref:b,children:w})]})},u0=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,...u}=e,w=[k.input];return s&&w.push(k.error),o&&w.push(o),C.jsxs("div",{className:k.time,children:[C.jsx("input",{className:F(w),id:r,name:t,type:"time",value:i,placeholder:l,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false",pattern:"[0-2][0-9]:[0-5][0-9]",...u}),C.jsx("div",{className:k.clockIcon,children:C.jsx(I1,{type:"light"})})]})},f0=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,...u}=e,w=[k.input];return s&&w.push(k.error),o&&w.push(o),C.jsx("input",{className:F(w),id:r,name:t,type:"tel",value:i,placeholder:l,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false","aria-autocomplete":h?"list":"none",...u})},w0="_error_tatej_7",g0="_slider_tatej_7",x0="_circle_tatej_10",v0="_round_tatej_64",M2={switch:"_switch_tatej_1",error:w0,slider:g0,circle:x0,round:v0},p0=e=>{const{name:t,checked:r,id:i,value:l,placeholder:o,extraClass:n,disabled:s,error:a,ariaLabel:c,required:d,readonly:h,onChange:u,...w}=e,[v,L]=p.useState(!1),M=["switch",M2.switch];n&&M.push(n),a&&M.push(M2.error),p.useEffect(()=>{L(r||!1)},[r]);const b=_=>{L(!v),u&&u(_,v)};return C.jsxs("div",{className:F(M),children:[C.jsx("input",{id:i,name:t,checked:v,type:"checkbox",value:l,placeholder:o,disabled:s,readOnly:h,required:d,"aria-label":c||t,"aria-required":d?"true":"false","aria-invalid":a?"true":"false","aria-disabled":s?"true":"false","aria-readonly":h?"true":"false",onClick:b,...w}),C.jsx("span",{className:`${M2.slider} ${M2.round}`,children:C.jsx("span",{className:`${M2.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"})})})})]})},L0=e=>{const{title:t,btnTitle:r,description:i,image:l,btnType:o,btnScheme:n,btnSize:s,btnStyle:a,extraClass:c="",cardOnClick:d,btnOnClick:h}=e,u=typeof l;return C.jsx("div",{className:`pathway-card ${c}`,onClick:w=>{d&&d(w)},children:C.jsxs("div",{className:"pathway-card__wrapper",children:[u==="string"&&C.jsx("div",{className:"pathway-card__picture",style:{backgroundImage:l?`url(${l})`:""}}),u!=="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}),!!i&&C.jsx("p",{className:"pathway-card__desc",children:i})]}),C.jsx(J2,{label:r,type:o,style:a,size:s,scheme:n,onClick:h})]})]})})},H0="_mediaImage_1k8jm_1",g1={mediaImage:H0},M0=e=>{const{type:t,videoSrc:r,imageSrc:i}=e,l=typeof i=="string";return C.jsxs(C.Fragment,{children:[t==="image"&&C.jsx(C.Fragment,{children:l?C.jsx("img",{src:i,alt:"media image",className:g1.mediaImage}):C.jsx("div",{className:g1.mediaImage,children:i})}),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."]})]})]})},V0=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${C2.holder} ${r} modalHolder`,children:C.jsx("div",{className:`${C2.modal} modal`,children:C.jsx("div",{className:`${C2.wrapper} modalWrapper`,children:t})})})},m0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${C2.modalAction} ${r}`,children:t})},Z0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${C2.modalActionLeft} ${r}`,children:t})},j0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${C2.modalActionRight} ${r}`,children:t})},_0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${C2.modalBody} ${r} modalBody`,children:C.jsx("div",{className:`${C2.modalBodyWrapper} modalBodyWrapper`,children:t})})},b0=e=>{const{canGoBack:t,canClose:r,title:i,extraClass:l=""}=e,o=p.useContext(G2),n=()=>{r&&o.closeModal()};return C.jsx("div",{className:`${C2.modalHeader} ${l}`,children:C.jsxs("div",{className:C2.modalHeaderWrapper,children:[!!t&&C.jsx("div",{className:`${C2.caretLeft} ${C2.icon}`,children:C.jsx(N2,{type:"bold"})}),C.jsx("div",{className:`${C2.heading} modalHeading`,children:!!i&&C.jsx("h4",{children:i})}),!!r&&C.jsx("span",{className:`${C2.close} ${C2.icon}`,onClick:n,children:C.jsx(p2,{type:"bold"})})]})})},y0="_notification_18pig_1",B0="_notificationIcon_18pig_4",N0="_pip_18pig_14",S0="_notiActive_18pig_30",I0="_notificationDropdown_18pig_33",V2={notification:y0,notificationIcon:B0,pip:N0,notiActive:S0,notificationDropdown:I0},$0=e=>{const{children:t,extraClass:r,active:i}=e,[l,o]=p.useState(!1),n=p.useRef(null),s=a=>{n.current&&!n.current.contains(a.target)&&o(!1)};return p.useEffect(()=>(l?document.addEventListener("mousedown",s):document.removeEventListener("mousedown",s),()=>{document.removeEventListener("mousedown",s)}),[l]),C.jsxs("div",{className:`${V2.notification} ${r}`,onClick:()=>o(!l),ref:n,children:[C.jsxs("div",{className:`${V2.notificationIcon} ${l?V2.notiActive:""}`,children:[i&&C.jsx("span",{className:V2.pip}),C.jsx(N1,{})]}),t&&l&&C.jsx("div",{className:V2.notificationDropdown,children:t})]})},T0="_notificationPanel_1y2of_1",k0="_notificationheader_1y2of_10",E0="_notificationHeaderWrapper_1y2of_13",P0="_notificationMarkAllAction_1y2of_24",O0="_notificationGrouplistHolder_1y2of_35",A0="_spacing_1y2of_39",R0="_notificationGrouplist_1y2of_35",F0="_notificationGroup_1y2of_35",D0="_notificationNone_1y2of_72",q0="_notificationList_1y2of_86",W0="_notificationListPip_1y2of_94",z0="_notificationListCloseIcon_1y2of_97",U0="_notificationListWrapper_1y2of_100",Y0="_notificationListIcon_1y2of_126",G0="_notificationListContent_1y2of_135",K0="_notificationListInitial_1y2of_140",J0="_notificationListInitialWrapper_1y2of_152",X0="_notificationListDesc_1y2of_158",Q0="_boldText_1y2of_163",C4="_summaryText_1y2of_166",G={notificationPanel:T0,notificationheader:k0,notificationHeaderWrapper:E0,notificationMarkAllAction:P0,notificationGrouplistHolder:O0,spacing:A0,notificationGrouplist:R0,notificationGroup:F0,notificationNone:D0,notificationList:q0,notificationListPip:W0,notificationListCloseIcon:z0,notificationListWrapper:U0,notificationListIcon:Y0,notificationListContent:G0,notificationListInitial:K0,notificationListInitialWrapper:J0,notificationListDesc:X0,boldText:Q0,summaryText:C4},e4=e=>{const{notificationInitials:t,boldText:r,summaryText:i,notificationItemOnClick:l,regularText:o,extraClass:n,closeOnClick:s}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{onClick:l,className:`${G.notificationList} ${n}`,children:C.jsxs("div",{className:G.notificationListWrapper,children:[C.jsxs("div",{className:G.notificationListIcon,children:[C.jsx("div",{className:G.notificationListPip}),C.jsx("div",{onClick:s,className:G.notificationListCloseIcon,children:C.jsx(p2,{})})]}),C.jsxs("div",{className:G.notificationListContent,children:[t&&C.jsx("div",{className:G.notificationListInitial,children:C.jsx("div",{className:G.notificationListInitialWrapper,children:t})}),C.jsx("div",{className:G.notificationListDesc,children:C.jsxs("p",{children:[r&&C.jsxs("span",{className:G.boldText,children:[" ",r]}),o&&C.jsxs("span",{className:G.regularText,children:[" ",o]}),i&&C.jsxs("span",{className:G.summaryText,children:[" ",i]})]})})]})]})})})},t4=({children:e,title:t})=>C.jsxs(C.Fragment,{children:[t&&C.jsx("div",{className:G.notificationGroup,children:C.jsx("h6",{children:t})}),C.jsx("div",{children:e})]}),r4=e=>{const{children:t}=e,[r,i]=p.useState(!1);return p.useEffect(()=>{const l=document.getElementById("listContainer");if(l){const o=()=>{const n=l.scrollHeight>l.clientHeight;i(n)};return window.addEventListener("resize",o),o(),()=>{window.removeEventListener("resize",o)}}},[]),C.jsx("div",{id:"listContainer",className:`${G.notificationGrouplistHolder} ${r?G.spacing:""}`,children:C.jsx("div",{className:`${G.notificationGrouplist}`,children:t})})},n4=({children:e})=>C.jsx("div",{className:G.notificationPanel,children:e}),i4=e=>{const{extraClass:t,markAllAsReadOnClick:r,showMarkAllAsRead:i}=e;return C.jsx("div",{className:`${G.notificationheader} ${t}`,children:C.jsxs("div",{className:G.notificationHeaderWrapper,children:[C.jsx("div",{children:C.jsx("h5",{children:"Notifications"})}),C.jsx("div",{children:i&&C.jsx("div",{onClick:r,className:G.notificationMarkAllAction,children:C.jsx("h6",{children:"Mark all as Read"})})})]})})},l4=()=>C.jsx("li",{className:G.notificationNone,children:C.jsx("h6",{children:"No notifications."})}),S2=p.createContext({currentIndex:0,setCurrentIndex:Function}),o4="_tab_4osvo_1",s4="_tabNav_4osvo_4",a4="_tabNavItem_4osvo_9",c4="_active_4osvo_22",d4="_item_4osvo_26",h4="_bilingualTitle_4osvo_32",f2={tab:o4,tabNav:s4,tabNavItem:a4,active:c4,item:d4,bilingualTitle:h4},u4=({children:e,extraClass:t})=>{const[r,i]=p.useState(0);return C.jsx(S2.Provider,{value:{currentIndex:r,setCurrentIndex:i},children:C.jsx("div",{className:`${f2.tab} ${t}`,children:e})})},f4=({children:e,extraClass:t})=>C.jsx("div",{className:`${f2.tabBody} ${t}`,children:e}),w4=e=>{const t=p.useContext(S2),{children:r,tabIndex:i,extraClass:l}=e;return i===t.currentIndex?C.jsx("div",{className:`${l}`,children:r}):C.jsx(C.Fragment,{})},g4=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${f2.tabNav} ${r}`,children:t})},x4=e=>{const{title:t,bilingualTitle:r,tabIndex:i,onBeforeOpen:l=null,onAfterOpened:o=null,extraClass:n}=e,s=p.useContext(S2);let a=` ${f2.tabNavItem} ${n}`;s.currentIndex===i&&(a+=` ${f2.active}`);const c=d=>{let h=!0;if(l){const u=l();typeof u=="boolean"&&(h=u)}h&&(s.setCurrentIndex(d),o&&o())};return C.jsx(C.Fragment,{children:C.jsxs("div",{className:a,onClick:()=>{c(i)},children:[C.jsxs("span",{className:`${f2.item} item`,children:[" ",t]}),r&&C.jsxs("span",{className:`${f2.bilingualTitle} bilingualTitle`,children:[" ",r]})]})})},v4="_table_10sge_1",p4="_tableBody_10sge_6",L4="_tableHead_10sge_6",H4="_tableFooter_10sge_6",M4="_tableRow_10sge_10",V4="_tableCellHeading_10sge_22",m4="_tableCell_10sge_22",Z4="_tableCellAlignLeft_10sge_44",j4="_tableCellAlignCenter_10sge_47",_4="_tableCellAlignRight_10sge_50",b4="_tableCellActions_10sge_54",y4="_smallDesc_10sge_87",B4="_cellWithPicture_10sge_94",N4="_cellImage_10sge_99",Y={table:v4,tableBody:p4,tableHead:L4,tableFooter:H4,tableRow:M4,tableCellHeading:V4,tableCell:m4,tableCellAlignLeft:Z4,tableCellAlignCenter:j4,tableCellAlignRight:_4,tableCellActions:b4,smallDesc:y4,cellWithPicture:B4,cellImage:N4},S4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Y.table} ${r} table`,children:C.jsx("div",{className:"tableContainer",children:t})})},I4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Y.tableBody} ${r} `,children:t})})},$4=e=>{const{children:t,extraClass:r,align:i}=e,l=typeof t;let o=` ${Y.tableCellAlignLeft}`;i==="center"&&(o=Y.tableCellAlignCenter),i==="right"&&(o=Y.tableCellAlignRight);const n=F(o,r);return C.jsx("div",{className:`${Y.tableCell} ${n}`,children:C.jsxs(C.Fragment,{children:[l==="string"&&C.jsx("p",{children:t}),l!=="string"&&C.jsx(C.Fragment,{children:t})]})})},T4=e=>{const{children:t,extraClass:r,align:i}=e;let l=` ${Y.tableCellAlignLeft}`;return i==="center"&&(l=Y.tableCellAlignCenter),i==="right"&&(l=Y.tableCellAlignRight),C.jsx("div",{className:`${Y.tableCell} ${r} ${Y.tableCellActions} ${l}`,children:C.jsx("div",{children:t})})},k4=e=>{const{heading:t,description:r,extraClass:i}=e;return C.jsx("div",{className:`${Y.tableCell} ${i}`,children:C.jsxs("div",{children:[!!t&&C.jsx("p",{className:Y.descTitle,children:t}),!!r&&C.jsx("p",{className:Y.smallDesc,children:r})]})})},E4=e=>{const{image:t,heading:r,description:i,extraClass:l}=e,o=typeof t;return C.jsx("div",{className:`${Y.tableCell} ${l}`,children:C.jsxs("div",{className:`${Y.cellWithPicture}`,children:[o==="string"&&C.jsx("div",{className:`${Y.cellImage} cellImage`,children:C.jsx("img",{src:t?`${t}`:"",alt:t})}),o!=="string"&&C.jsx("div",{className:`${Y.cellImage} cellImage`,children:t}),C.jsxs("div",{children:[!!r&&C.jsx("p",{className:`${Y.descTitle} descTitle`,children:r}),!!i&&C.jsx("p",{className:`${Y.smallDesc} smallDesc`,children:C.jsx("small",{children:i})})]})]})})},P4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Y.tableFooter} ${r} `,children:t})})},O4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Y.tableHead} ${r}`,children:t})},A4=e=>{const{children:t,extraClass:r,onClick:i}=e;return C.jsx("div",{className:`${Y.tableCellHeading} ${r}`,onClick:()=>{i&&i()},children:t})},R4=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${Y.tableRow} ${r}`,children:t})},F4="_calloutPopupActionHolder_cpqb7_1",D4="_calloutPopup_cpqb7_1",q4="_calloutPopupWrapper_cpqb7_11",Y2={calloutPopupActionHolder:F4,calloutPopup:D4,calloutPopupWrapper:q4},F1=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${Y2.calloutPopup} ${r}`,children:C.jsx("div",{className:`${Y2.calloutPopupWrapper} calloutPopupWrapper`,children:t})})},W4=e=>{const{id:t,children:r,extraClassActionHolder:i,extraClassPopup:l,actionHolder:o}=e,[n,s]=p.useState({}),a=p.useRef(null);p.useEffect(()=>{const h=u=>{a.current&&!a.current.contains(u.target)&&s(w=>({...w,[`${t}`]:!1}))};return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[t]);const c=()=>{s(h=>({...h,[`${t}`]:!h[`${t}`]}))},d=()=>{s(h=>({...h,[`${t}`]:!1}))};return C.jsxs("div",{ref:a,className:`${Y2.calloutPopupActionHolder} ${i}`,children:[C.jsx("div",{onClick:c,children:o}),n[`${t}`]&&C.jsx("div",{onClick:d,children:C.jsx(F1,{extraClass:l,children:r})})]})},z4="_header_y9i8j_1",U4="_headerLeft_y9i8j_10",Y4="_layoutLogo_y9i8j_14",G4="_layoutLogoSmall_y9i8j_17",K4="_hamburgerBtn_y9i8j_20",J4="_headerRight_y9i8j_33",X4="_searchFieldWrap_y9i8j_39",w2={header:z4,headerLeft:U4,layoutLogo:Y4,layoutLogoSmall:G4,hamburgerBtn:K4,headerRight:J4,searchFieldWrap:X4},Q4=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("header",{className:`${w2.header} ${r}`,children:t})},C3=e=>{const{logo:t,logoSmall:r,hamburgerOnclick:i}=e,[l,o]=p.useState(!1),n=s=>{o(!l),i&&i(s)};return C.jsxs("div",{className:w2.headerLeft,children:[C.jsx("div",{className:`${w2.layoutLogo} layoutLogo`,children:t}),C.jsx("div",{className:`${w2.layoutLogoSmall} layoutLogoSmall`,children:r}),C.jsx("div",{onClick:n,className:`${w2.hamburgerBtn} hamburgerBtn`,children:l?C.jsx(p2,{}):C.jsx(B1,{})})]})},e3=e=>{const{children:t,extraClass:r,fieldExtraClass:i,searchField:l,searchFieldShow:o}=e;return C.jsx("div",{className:`${w2.headerRight} ${r}`,children:C.jsxs("ul",{children:[o&&l&&C.jsx("li",{children:C.jsx("div",{className:`${w2.searchFieldWrap} ${i}`,children:l})}),t]})})},t3=()=>{},r3=()=>{},n3=()=>{},i3=()=>{},l3=()=>{},o3=()=>{},s3="_profile_1hjop_1",a3="_profileHolder_1hjop_5",c3="_profileInner_1hjop_9",d3="_avatar_1hjop_20",h3="_dropdown_1hjop_31",m2={profile:s3,profileHolder:a3,profileInner:c3,avatar:d3,dropdown:h3},u3=e=>{const{initials:t,children:r,extraClass:i,onClick:l}=e;return C.jsxs("div",{className:`${m2.profileHolder}`,children:[C.jsx("div",{className:`${m2.profile} ${i}`,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})]})},f3="_profileDropdown_1apu2_1",w3="_profileHeader_1apu2_8",g3="_profileHeaderWrapper_1apu2_14",x3="_profileSwitchUserWrapper_1apu2_15",v3="_avatar_1apu2_19",p3="_content_1apu2_39",L3="_name_1apu2_39",H3="_role_1apu2_45",M3="_profileSwitchUserContent_1apu2_54",V3="_profileNavigationItem_1apu2_67",m3="_profileNavigationItemWrapper_1apu2_77",Z3="_profileNavigationItemLeft_1apu2_84",j3="_profileNavigationItemIcon_1apu2_88",_3="_profileNavigationItemContent_1apu2_98",b3="_profileNavigationItemRight_1apu2_104",y3="_profileLinks_1apu2_113",B3="_profileLinksList_1apu2_116",N3="_profileLink_1apu2_113",S3="_profileSwitchPanel_1apu2_135",I3="_usersHolder_1apu2_141",$3="_spacing_1apu2_146",T3="_profileSwitchPanelHeader_1apu2_163",k3="_caretLeft_1apu2_170",E3="_closeIcon_1apu2_171",P3="_headerTitle_1apu2_182",O3="_initialsTile_1apu2_183",A3="_fieldWrapper_1apu2_189",R3="_profileSwitchUser_1apu2_15",F3="_profileSwitchUserAvatar_1apu2_203",D={profileDropdown:f3,profileHeader:w3,profileHeaderWrapper:g3,profileSwitchUserWrapper:x3,avatar:v3,content:p3,name:L3,role:H3,profileSwitchUserContent:M3,profileNavigationItem:V3,profileNavigationItemWrapper:m3,profileNavigationItemLeft:Z3,profileNavigationItemIcon:j3,profileNavigationItemContent:_3,profileNavigationItemRight:b3,profileLinks:y3,profileLinksList:B3,profileLink:N3,profileSwitchPanel:S3,usersHolder:I3,spacing:$3,profileSwitchPanelHeader:T3,caretLeft:k3,closeIcon:E3,headerTitle:P3,initialsTile:O3,fieldWrapper:A3,profileSwitchUser:R3,profileSwitchUserAvatar:F3},D3=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${D.profileDropdown} ${r}`,children:t})},q3=e=>{const{initials:t,username:r,role:i,extraClass:l}=e;return C.jsx("div",{className:`${D.profileHeader} ${l}`,children:C.jsxs("div",{className:`${D.profileHeaderWrapper}`,children:[!!t&&C.jsx("span",{className:`${D.avatar}`,children:C.jsx("h3",{children:t})}),C.jsxs("div",{className:`${D.content}`,children:[C.jsx("h5",{className:`${D.name}`,children:r}),!!i&&C.jsx("p",{className:`${D.role}`,children:i})]})]})})},W3=e=>{const{children:t}=e;return C.jsx("div",{className:D.profileLink,children:t})},z3=e=>{const{children:t}=e;return C.jsx("div",{className:`${D.profileLinks}`,children:C.jsx("div",{className:`${D.profileLinksList}`,children:t})})},U3=e=>{const{icon:t,openSubDropdown:r,title:i,onClick:l}=e;return C.jsx("div",{className:`${D.profileNavigationItem}`,onClick:o=>{l&&l(o)},children:C.jsxs("div",{className:`${D.profileNavigationItemWrapper}`,children:[C.jsxs("div",{className:`${D.profileNavigationItemLeft}`,children:[!!t&&C.jsx("div",{className:`${D.profileNavigationItemIcon}`,children:t}),C.jsx("div",{className:D.profileNavigationItemContent,children:C.jsx("h5",{children:i})})]}),!!r&&C.jsx("div",{className:`${D.profileNavigationItemRight}`,children:C.jsx(B2,{})})]})})},Y3=e=>{const{name:t,id:r,value:i,placeholder:l,extraClass:o,disabled:n,error:s,ariaLabel:a,required:c,readonly:d,autoComplete:h,children:u,goBackOnClick:w,closeOnClick:v,...L}=e,[M,b]=p.useState(!1);p.useEffect(()=>{const j=document.getElementById("listContainer");if(j){const y=()=>{const g=j.scrollHeight>j.clientHeight;b(g)};return window.addEventListener("resize",y),y(),()=>{window.removeEventListener("resize",y)}}},[]);const _=[k.input];return s&&_.push(k.error),o&&_.push(o),C.jsxs("div",{className:D.profileSwitchPanel,children:[C.jsxs("div",{className:D.profileSwitchPanelHeader,children:[C.jsx("div",{onClick:w,className:D.caretLeft,children:C.jsx(N2,{type:"bold"})}),C.jsx("div",{children:C.jsx("h5",{className:D.headerTitle,children:"Switch user"})}),C.jsx("div",{onClick:v,className:D.closeIcon,children:C.jsx(p2,{type:"bold"})})]}),C.jsx("div",{className:D.fieldWrapper,children:C.jsxs("div",{className:k.textField,children:[C.jsx("input",{className:F(_),id:r,name:t,type:"text",value:i,placeholder:l,disabled:n,readOnly:d,required:c,autoComplete:h?"on":"off","aria-label":a||t,"aria-required":c?"true":"false","aria-invalid":s?"true":"false","aria-disabled":n?"true":"false","aria-readonly":d?"true":"false",...L}),C.jsx("div",{className:k.textFieldIcon,children:C.jsx(S1,{})})]})}),C.jsx("div",{id:"listContainer",className:`${D.usersHolder} ${M?k.spacing:""} `,children:u})]})},G3=e=>{const{initials:t,userName:r,role:i}=e;return C.jsx("div",{className:D.profileSwitchUser,children:C.jsxs("div",{className:D.profileSwitchUserWrapper,children:[C.jsx("div",{className:`${D.profileSwitchUserAvatar} ${D.avatar}`,children:C.jsx("h5",{className:D.initialsTile,children:t})}),C.jsxs("div",{className:D.profileSwitchUserContent,children:[C.jsx("h5",{className:D.name,children:r}),C.jsx("p",{className:D.role,children:i})]})]})})},K3="_sidebar_1gyrz_1",J3="_sidebarNavigation_1gyrz_9",X3="_navigationItemLarge_1gyrz_12",Q3="_subNavigationHolder_1gyrz_16",C8="_navigationSubItemLarge_1gyrz_19",e8="_navigationItemHolder_1gyrz_23",t8="_subNavigationItemHolder_1gyrz_23",r8="_navigationItem_1gyrz_12",n8="_subNavigationItem_1gyrz_23",i8="_active_1gyrz_38",l8="_bilingualTitle_1gyrz_42",o8="_navigationIcon_1gyrz_53",s8="_subNavigationIcon_1gyrz_53",a8="_navigationItemBody_1gyrz_64",c8="_subNavigationItemBody_1gyrz_64",d8="_navigationItemSmall_1gyrz_68",h8="_childIndicator_1gyrz_72",u8="_navigationSubItemSmall_1gyrz_85",f8="_sidebarTitle_1gyrz_88",w8="_sidebarChevron_1gyrz_117",g8="_sidebarChevronBtn_1gyrz_138",R={sidebar:K3,sidebarNavigation:J3,navigationItemLarge:X3,subNavigationHolder:Q3,navigationSubItemLarge:C8,navigationItemHolder:e8,subNavigationItemHolder:t8,navigationItem:r8,subNavigationItem:n8,active:i8,bilingualTitle:l8,navigationIcon:o8,subNavigationIcon:s8,navigationItemBody:a8,subNavigationItemBody:c8,navigationItemSmall:d8,childIndicator:h8,navigationSubItemSmall:u8,sidebarTitle:f8,sidebarChevron:w8,sidebarChevronBtn:g8},x8=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${R.sidebar} ${r}`,children:t})},D1=e=>{const{onClick:t,icon:r}=e;return C.jsx("div",{className:R.sidebarChevronBtn,onClick:i=>{t&&t(i)},children:C.jsx("button",{children:r})})},v8=e=>{const{children:t,extraClass:r="",subNavActive:i}=e;return C.jsx("div",{className:`${R.sidebarNavigation} sidebarNavigation ${r} ${i?`${R.navigationItemSmall} navigationItemSmall`:`${R.navigationItemLarge} navigationItemLarge`}`,children:t})},p8=e=>{const{icon:t,contents:r,children:i,extraClass:l,onClick:o,activeState:n,bilingualTitle:s}=e;return i?C.jsxs("div",{className:`${R.navigationItemHolder} navigationItemHolder`,children:[C.jsxs("div",{className:`navigationItem ${R.navigationItem} ${l} ${n?R.active:""}`,onClick:a=>{o&&o(a)},children:[!!t&&C.jsx("div",{className:`${R.navigationIcon} navigationIcon`,children:t}),C.jsxs("div",{className:`${R.navigationItemBody} navigationItemBody`,children:[C.jsx("div",{className:"navigationItemBodyText",children:r}),!!s&&C.jsx("span",{className:R.bilingualTitle,children:s})]}),C.jsx("div",{className:`${R.navigationIcon} ${R.childIndicator}`,children:C.jsx(B2,{})})]}),!!i&&C.jsx("div",{className:`${R.subNavigation} subNavigation`,children:i})]}):C.jsx("div",{className:`${R.navigationItemHolder} navigationItemHolder`,children:C.jsxs("div",{className:`${R.navigationItem} ${l} navigationItem ${n?R.active:""}`,onClick:a=>{o&&o(a)},children:[!!t&&C.jsx("div",{className:`${R.navigationIcon} navigationIcon`,children:t}),C.jsxs("div",{children:[C.jsx("div",{className:`${R.navigationItemBody} navigationItemBody`,children:r}),!!s&&C.jsx("span",{className:R.bilingualTitle,children:s})]})]})})},L8=e=>{const{extraClass:t,children:r,title:i,onClick:l,getBackOnClick:o,subNavToggle:n,bilingualTitle:s="kk"}=e;return C.jsxs("div",{className:`${R.subNavigationHolder} ${t} subNavigationHolder ${n?R.navigationSubItemSmall:R.navigationSubItemLarge}`,children:[C.jsx("div",{className:R.sidebarChevron,children:C.jsx(D1,{icon:n?C.jsx(B2,{type:"bold"}):C.jsx(N2,{type:"bold"}),onClick:l})}),C.jsxs("div",{onClick:o,className:R.sidebarTitle,children:[C.jsx(_1,{}),C.jsxs("div",{children:[C.jsx("h5",{children:i}),!!s&&C.jsx("span",{className:R.bilingualTitle,children:s})]})]}),r]})},H8=e=>{const{icon:t,contents:r,extraClass:i,activeState:l,bilingualTitle:o}=e;return C.jsx("div",{className:`${R.subNavigationItemHolder} subNavigationItemHolder`,children:C.jsxs("div",{className:`${R.subNavigationItem} ${i} subNavigationItem ${l?R.active:""}`,children:[!!t&&C.jsx("div",{className:`${R.subNavigationIcon} subNavigationIcon`,children:t}),C.jsxs("div",{children:[C.jsx("div",{className:`${R.subNavigationItemBody} subNavigationItemBody`,children:r}),!!o&&C.jsx("span",{className:R.bilingualTitle,children:o})]})]})})};exports.Accordion=i5;exports.AccordionContext=K2;exports.AccordionItem=h5;exports.AccordionProvider=v1;exports.AddressBook=o6;exports.ArrowLeft=_1;exports.ArrowsDownUp=n6;exports.ArrowsOutCardinal=i6;exports.Asterisk=s6;exports.At=a6;exports.Badge=M5;exports.BannerCard=k5;exports.Barbell=X6;exports.Bell=N1;exports.BetterUIContext=G2;exports.BetterUIProvider=n5;exports.BookOpenText=p6;exports.Broadcast=c6;exports.Button=J2;exports.CalendarBank=H1;exports.CalloutPopup=F1;exports.CalloutPopupActionHolder=W4;exports.CaretDown=v2;exports.CaretLeft=N2;exports.CaretRight=B2;exports.CaretUp=x2;exports.CaretUpDown=r6;exports.ChartBar=j6;exports.ChartBarHorizontal=y6;exports.ChartLine=_6;exports.ChartPie=b6;exports.Chat=d6;exports.Check=J6;exports.CheckSquare=W6;exports.Checkbox=R5;exports.CheckboxSelect=Y5;exports.CheckboxSelectItem=G5;exports.CheckboxSet=z5;exports.CheckboxSetItem=U5;exports.Clock=I1;exports.CurrencyDollarSimple=L1;exports.CurrencyField=d9;exports.DateField=h9;exports.DotsSixVertical=D6;exports.DotsThreeVertical=q6;exports.DownloadSimple=Y6;exports.DropdownBadge=b9;exports.DropdownBadgeItem=V1;exports.DropdownBadgeSelector=M1;exports.DropdownField=P9;exports.DropdownFieldItem=q2;exports.DropdownFieldSelector=Z1;exports.EmailField=O9;exports.EnvelopeSimple=f6;exports.ErrorMessage=A9;exports.Export=w6;exports.Eye=b1;exports.EyeSlash=y1;exports.Folder=I6;exports.FormFieldHolder=Y9;exports.Gear=U6;exports.Globe=L6;exports.Header=Q4;exports.HeaderLeft=C3;exports.HeaderRight=e3;exports.HouseSimple=H6;exports.IconButton=t6;exports.List=B1;exports.ListBullets=$6;exports.LockKeyOpen=R6;exports.LockSimple=m1;exports.MagnifyingGlass=S1;exports.Media=M0;exports.Modal=V0;exports.ModalActions=m0;exports.ModalActionsLeft=Z0;exports.ModalActionsRight=j0;exports.ModalBody=_0;exports.ModalCurtain=x1;exports.ModalHeader=b0;exports.Mountains=Q6;exports.MultiSelectField=w7;exports.MultiSelectFieldItem=T1;exports.MultiSelectFieldTag=$1;exports.Notification=e4;exports.NotificationsBell=$0;exports.NotificationsGroup=t4;exports.NotificationsGroups=r4;exports.NotificationsHeader=i4;exports.NotificationsNone=l4;exports.NotificationsPanel=n4;exports.NumberField=d0;exports.NumberSquareThree=Z6;exports.Pagination=t3;exports.PaginationFirst=r3;exports.PaginationLast=n3;exports.PaginationNext=i3;exports.PaginationNumber=l3;exports.PaginationPrevious=o3;exports.PasswordField=_7;exports.Path=M6;exports.PathwayCard=L0;exports.PencilLine=g6;exports.PencilSimple=x6;exports.PersonSimpleBike=A6;exports.PersonSimpleWalk=O6;exports.Phone=u6;exports.PhoneField=f0;exports.Plus=m6;exports.Printer=T6;exports.ProfileAvatar=u3;exports.ProfileDropdown=D3;exports.ProfileHeader=q3;exports.ProfileLink=W3;exports.ProfileLinks=z3;exports.ProfileNavigationItem=U3;exports.ProfileSwitchPanel=Y3;exports.ProfileSwitchUser=G3;exports.Question=F6;exports.RadioButton=T7;exports.RadioButtonIcon=z6;exports.RadioButtons=k7;exports.RichTextEditor=i0;exports.Ruler=v6;exports.Sidebar=x8;exports.SidebarChevron=D1;exports.SidebarNavigation=v8;exports.SidebarNavigationItem=p8;exports.SidebarSubNavigation=L8;exports.SidebarSubNavigationItem=H8;exports.SignIn=K6;exports.SignOut=G6;exports.SildersHorizontal=B6;exports.Tab=u4;exports.TabBody=f4;exports.TabBodyContent=w4;exports.TabContext=S2;exports.TabNav=g4;exports.TabNavItem=x4;exports.Table=S4;exports.TableBody=I4;exports.TableCell=$4;exports.TableCellAction=T4;exports.TableCellWithDesc=k4;exports.TableCellWithImage=E4;exports.TableFooter=P4;exports.TableHead=O4;exports.TableHeaderCell=A4;exports.TableRow=R4;exports.TextAa=N6;exports.TextColumns=S6;exports.TextField=c0;exports.Textarea=a0;exports.TimeField=u0;exports.ToggleSwitch=p0;exports.Tram=V6;exports.Translate=h6;exports.Tree=C7;exports.TypableDropdownField=j7;exports.TypableDropdownFieldItem=E1;exports.TypableDropdownFieldSelector=k1;exports.UnitField=h0;exports.User=k6;exports.UserCircle=E6;exports.UserSwitch=P6;exports.WarningCircle=j1;exports.WindowsLogo=l6;exports.XIcon=p2;
|
|
25
25
|
//# sourceMappingURL=index.cjs.js.map
|