@hellobetterdigitalnz/betterui 0.0.3-200 → 0.0.3-202

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