@hellobetterdigitalnz/betterui 0.0.3-195 → 0.0.3-196

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.
@@ -3,7 +3,7 @@ interface ModalHeaderProps {
3
3
  extraClass?: string;
4
4
  canClose?: boolean;
5
5
  canGoBack?: boolean;
6
- closeOnclick?: () => void;
6
+ closeOnclick?: (e: any) => void;
7
7
  canGoBackOnclick?: () => void;
8
8
  }
9
9
  export default ModalHeaderProps;
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 i4(){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 l4(){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(L){h=L}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 g=c?c():"";e("Failed "+s+" type: "+h.message+(g??""))}}}}return l.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},k2=l,k2}var P2,h1;function o4(){if(h1)return P2;h1=1;var e=k1(),t=i4(),r=e1(),n=P1(),l=l4(),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>>",g={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 L(v,Z){return v===Z?v!==0||1/v===1/Z:v!==v&&Z!==Z}function H(v,Z){this.message=v,this.data=Z&&typeof Z=="object"?Z:{},this.stack=""}H.prototype=Error.prototype;function p(v){if(process.env.NODE_ENV!=="production")var Z={},A=0;function O(W,k,R,q,J,z,o2){if(q=q||w,z=z||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=q+":"+R;!Z[h2]&&A<3&&(o("You are manually calling a React.PropTypes validation function for the `"+z+"` prop on `"+q+"`. 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+" `"+z+"` is marked as required "+("in `"+q+"`, but its value is `null`.")):new H("The "+J+" `"+z+"` is marked as required in "+("`"+q+"`, but its value is `undefined`.")):null:v(k,R,q,J,z)}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 q=A[O],J=T(q);if(J!==v){var z=e2(q);return new H("Invalid "+W+" `"+k+"` of type "+("`"+z+"` supplied to `"+E+"`, expected ")+("`"+v+"`."),{expectedType:v})}return null}return p(Z)}function M(){return p(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 q=T(R);return new H("Invalid "+W+" `"+k+"` of type "+("`"+q+"` supplied to `"+E+"`, expected an array."))}for(var J=0;J<R.length;J++){var z=v(R,J,E,W,k+"["+J+"]",r);if(z instanceof Error)return z}return null}return p(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 p(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 p(v)}function _(v){function Z(A,O,E,W,k){if(!(A[O]instanceof v)){var R=v.name||w,q=I2(A[O]);return new H("Invalid "+W+" `"+k+"` of type "+("`"+q+"` supplied to `"+E+"`, expected ")+("instance of `"+R+"`."))}return null}return p(Z)}function N(v){if(!Array.isArray(v))return process.env.NODE_ENV!=="production"&&(arguments.length>1?o("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):o("Invalid argument supplied to oneOf, expected an array.")),i;function Z(A,O,E,W,k){for(var R=A[O],q=0;q<v.length;q++)if(L(R,v[q]))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 p(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],q=T(R);if(q!=="object")return new H("Invalid "+W+" `"+k+"` of type "+("`"+q+"` supplied to `"+E+"`, expected an object."));for(var J in R)if(n(R,J)){var z=v(R,J,E,W,k+"."+J,r);if(z instanceof Error)return z}return null}return p(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,q){for(var J=[],z=0;z<v.length;z++){var o2=v[z],V=o2(E,W,k,R,q,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+" `"+q+"` supplied to "+("`"+k+"`"+h2+"."))}return p(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 p(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],q=T(R);if(q!=="object")return new H("Invalid "+W+" `"+k+"` of type `"+q+"` "+("supplied to `"+E+"`, expected `object`."));for(var J in v){var z=v[J];if(typeof z!="function")return P(E,W,k,J,e2(z));var o2=z(R,J,E,W,k+"."+J,r);if(o2)return o2}return null}return p(Z)}function y(v){function Z(A,O,E,W,k){var R=A[O],q=T(R);if(q!=="object")return new H("Invalid "+W+" `"+k+"` of type `"+q+"` "+("supplied to `"+E+"`, expected `object`."));var J=t({},A[O],v);for(var z in J){var o2=v[z];if(n(v,z)&&typeof o2!="function")return P(E,W,k,z,e2(o2));if(!o2)return new H("Invalid "+W+" `"+k+"` key `"+z+"` supplied to `"+E+"`.\nBad object: "+JSON.stringify(A[O],null," ")+`
24
- Valid keys: `+JSON.stringify(Object.keys(v),null," "));var V=o2(R,z,E,W,k+"."+z,r);if(V)return V}return null}return p(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 g.checkPropTypes=l,g.resetWarningCache=l.resetWarningCache,g.PropTypes=g,g},P2}var O2,d1;function s4(){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 a4=k1(),c4=!0;Y2.exports=o4()(a4.isElement,c4)}else Y2.exports=s4()();var u=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:u.func,onAddUndo:u.func,onBeforeAddUndo:u.func,onBeforeExecCommand:u.func,onBeforeGetContent:u.func,onBeforeRenderUI:u.func,onBeforeSetContent:u.func,onBeforePaste:u.func,onBlur:u.func,onChange:u.func,onClearUndos:u.func,onClick:u.func,onContextMenu:u.func,onCommentChange:u.func,onCopy:u.func,onCut:u.func,onDblclick:u.func,onDeactivate:u.func,onDirty:u.func,onDrag:u.func,onDragDrop:u.func,onDragEnd:u.func,onDragGesture:u.func,onDragOver:u.func,onDrop:u.func,onExecCommand:u.func,onFocus:u.func,onFocusIn:u.func,onFocusOut:u.func,onGetContent:u.func,onHide:u.func,onInit:u.func,onKeyDown:u.func,onKeyPress:u.func,onKeyUp:u.func,onLoadContent:u.func,onMouseDown:u.func,onMouseEnter:u.func,onMouseLeave:u.func,onMouseMove:u.func,onMouseOut:u.func,onMouseOver:u.func,onMouseUp:u.func,onNodeChange:u.func,onObjectResizeStart:u.func,onObjectResized:u.func,onObjectSelected:u.func,onPaste:u.func,onPostProcess:u.func,onPostRender:u.func,onPreProcess:u.func,onProgressState:u.func,onRedo:u.func,onRemove:u.func,onReset:u.func,onSaveContent:u.func,onSelectionChange:u.func,onSetAttrib:u.func,onSetContent:u.func,onShow:u.func,onSubmit:u.func,onUndo:u.func,onVisualAid:u.func,onSkinLoadError:u.func,onThemeLoadError:u.func,onModelLoadError:u.func,onPluginLoadError:u.func,onIconsLoadError:u.func,onLanguageLoadError:u.func,onScriptsLoad:u.func,onScriptsLoadError:u.func},h4=G2({apiKey:u.string,id:u.string,inline:u.bool,init:u.object,initialValue:u.string,onEditorChange:u.func,value:u.string,tagName:u.string,cloudChannel:u.string,plugins:u.oneOfType([u.string,u.array]),toolbar:u.oneOfType([u.string,u.array]),disabled:u.bool,textareaName:u.string,tinymceScriptSrc:u.oneOfType([u.string,u.arrayOf(u.string),u.arrayOf(u.shape({src:u.string,async:u.bool,defer:u.bool}))]),rollback:u.oneOfType([u.number,u.oneOf([!1])]),scriptLoading:u.shape({async:u.bool,defer:u.bool,delay:u.number})},O1),R2=function(e){return typeof e=="function"},w1=function(e){return e in O1},f1=function(e){return e.substr(2)},d4=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),g=i[w];r(w,g),delete i[w]}),d.forEach(function(h){var w=n(e,h),g=f1(h);i[g]=w,t(g,w)})},w4=function(e,t,r,n,l){return d4(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(" ")},f4=function(e,t){return x1(e).concat(x1(t))},u4=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},g4=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)},x4=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)},v4=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())},g=0,L=i;g<L.length;g++){var H=L[g],p=t[H.src];if(p)p.done?w(H.src,p.error):p.handlers.push(w);else{var j=R1("tiny-");t[H.src]={id:j,src:H.src,done:!1,error:null,handlers:[w]},x4(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=v4(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}},L4=p4(),A2=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},H4=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)},V4=function(e){H4(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(!g4(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 g=B2(B2({},i.props.init),{selector:void 0,target:h,readonly:i.props.disabled,inline:i.inline,plugins:f4((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(L){i.editor=L,i.bindHandlers({}),i.inline&&!g1(h)&&L.once("PostRender",function(H){L.setContent(i.getInitialValue(),{no_events:!0})}),i.props.init&&R2(i.props.init.setup)&&i.props.init.setup(L)},init_instance_callback:function(L){var H,p,j=i.getInitialValue();i.currentContent=(H=i.currentContent)!==null&&H!==void 0?H:L.getContent(),i.currentContent!==j&&(i.currentContent=j,L.setContent(j),L.undoManager.clear(),L.undoManager.add(),L.setDirty(!1));var M=(p=i.props.disabled)!==null&&p!==void 0?p:!1;v1(i.editor,M?"readonly":"design"),i.props.init&&R2(i.props.init.init_instance_callback)&&i.props.init.init_instance_callback(L)}});i.inline||(h.style.visibility=""),g1(h)&&(h.value=i.getInitialValue()),w.init(g)}},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)};L4.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 u4()?"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){w4(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=h4,t.defaultProps={cloudChannel:"6"},t}(_2.Component);const M4=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:g,rows:L,onClick:H,onChange:p,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(V4,{textareaName:t,scriptLoading:{async:!0},tinymceScriptSrc:"/lib/tinymce/tinymce.min.js",id:r,disabled:s,value:n,init:{height:L?50*L:200,menubar:!1,branding:!1,plugins:["advlist","autolink","lists","link","image","charmap","preview","anchor","searchreplace","visualblocks","fullscreen","media","table"],toolbar:"blocks | formatselect | bold italic underline | bullist numlist | 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),p&&p(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})]})},Z4="_textarea_1y8ok_1",m4="_error_1y8ok_29",j4="_length_1y8ok_38",F2={textarea:Z4,error:m4,length:j4},_4=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:g,maxLength:L,onChange:H,...p}=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",...p}),!!g&&C.jsxs("p",{className:F2.length,children:[j.length," / ",L]})]})},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,...g}=e,L=[F.input];return s&&L.push(F.error),o&&L.push(o),C.jsxs("div",{className:`${w?F.textField:""}`,children:[C.jsx("input",{className:D(L),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",...g}),!!w&&C.jsx("div",{className:F.textFieldIcon,children:w})]})},B4=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:g=!0,onChange:L,...H}=e,p=x.useRef(null),[j,M]=x.useState("");x.useEffect(()=>{if(g){if(h){const _=h==null?void 0:h.toString().replace(/[^0-9.]/g,"");M(B(_))}}else M(h)},[h]);const B=_=>{if(g){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)),L){const I={..._,target:{..._.target,value:b}};L(I)}};x.useEffect(()=>{const _=b=>{w&&b.target===p.current&&b.preventDefault()},N=p.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:g?"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:p,onChange:m,...H})},y4=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:g=!0,onChange:L,...H}=e,[p,j]=x.useState(0),M=x.useRef(null),[B,m]=x.useState("");x.useEffect(()=>{if(g){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(g){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)),L){const P={...b,target:{...b.target,value:S}};L(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:`${p}px`},className:D(N),id:`unitTextWidth ${r}`,name:t,type:g?"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})]})},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,...w}=e,g=[F.input];return s&&g.push(F.error),o&&g.push(o),C.jsxs("div",{className:F.time,children:[C.jsx("input",{className:D(g),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"})})]})},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,g=[F.input];return s&&g.push(F.error),o&&g.push(o),C.jsx("input",{className:D(g),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})},I4="_error_tatej_7",$4="_slider_tatej_7",T4="_circle_tatej_10",E4="_round_tatej_64",M2={switch:"_switch_tatej_1",error:I4,slider:$4,circle:T4,round:E4},k4=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,...g}=e,[L,H]=x.useState(!1),p=["switch",M2.switch];i&&p.push(i),a&&p.push(M2.error),x.useEffect(()=>{H(r||!1)},[r]);const j=M=>{H(!L),w&&w(M,L)};return C.jsxs("div",{className:D(p),children:[C.jsx("input",{id:n,name:t,checked:L,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,...g}),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"})})})})]})},P4=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:g=>{d&&d(g)},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})]})]})})},O4="_mediaImage_1k8jm_1",p1={mediaImage:O4},R4=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:p1.mediaImage}):C.jsx("div",{className:p1.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."]})]})]})},A4="_holder_x3ny8_1",F4="_modal_x3ny8_26",D4="_wrapper_x3ny8_37",W4="_modalHeader_x3ny8_43",q4="_modalHeaderWrapper_x3ny8_47",z4="_heading_x3ny8_53",U4="_icon_x3ny8_58",Y4="_modalBody_x3ny8_68",G4="_modalBodyWrapper_x3ny8_86",K4="_modalAction_x3ny8_90",J4="_modalActionRight_x3ny8_98",X4="_modalActionLeft_x3ny8_98",Q4="_curtain_x3ny8_107",n2={holder:A4,modal:F4,wrapper:D4,modalHeader:W4,modalHeaderWrapper:q4,heading:z4,icon:U4,modalBody:Y4,modalBodyWrapper:G4,modalAction:K4,modalActionRight:J4,modalActionLeft:X4,curtain:Q4},C0=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})})})},e0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalAction} ${r}`,children:t})},t0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalActionLeft} ${r}`,children:t})},r0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalActionRight} ${r}`,children:t})},n0=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})})},i0=()=>C.jsx("div",{className:n2.curtain}),l0=e=>{const{closeOnclick:t,canGoBack:r,canClose:n,title:l,extraClass:o=""}=e,i=x.useContext(X2),s=()=>{(t||n)&&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"})})]})})},o0="_notification_18pig_1",s0="_notificationIcon_18pig_4",a0="_pip_18pig_14",c0="_notiActive_18pig_30",h0="_notificationDropdown_18pig_33",Z2={notification:o0,notificationIcon:s0,pip:a0,notiActive:c0,notificationDropdown:h0},d0=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})]})},w0="_notificationPanel_1y2of_1",f0="_notificationheader_1y2of_10",u0="_notificationHeaderWrapper_1y2of_13",g0="_notificationMarkAllAction_1y2of_24",x0="_notificationGrouplistHolder_1y2of_35",v0="_spacing_1y2of_39",p0="_notificationGrouplist_1y2of_35",L0="_notificationGroup_1y2of_35",H0="_notificationNone_1y2of_72",V0="_notificationList_1y2of_86",M0="_notificationListPip_1y2of_94",Z0="_notificationListCloseIcon_1y2of_97",m0="_notificationListWrapper_1y2of_100",j0="_notificationListIcon_1y2of_126",_0="_notificationListContent_1y2of_135",b0="_notificationListInitial_1y2of_140",B0="_notificationListInitialWrapper_1y2of_152",y0="_notificationListDesc_1y2of_158",S0="_boldText_1y2of_163",N0="_summaryText_1y2of_166",t2={notificationPanel:w0,notificationheader:f0,notificationHeaderWrapper:u0,notificationMarkAllAction:g0,notificationGrouplistHolder:x0,spacing:v0,notificationGrouplist:p0,notificationGroup:L0,notificationNone:H0,notificationList:V0,notificationListPip:M0,notificationListCloseIcon:Z0,notificationListWrapper:m0,notificationListIcon:j0,notificationListContent:_0,notificationListInitial:b0,notificationListInitialWrapper:B0,notificationListDesc:y0,boldText:S0,summaryText:N0},I0=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]})]})})]})]})})})},$0=({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})]}),T0=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})})},E0=({children:e})=>C.jsx("div",{className:t2.notificationPanel,children:e}),k0=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"})})})]})})},P0=()=>C.jsx("li",{className:t2.notificationNone,children:C.jsx("h6",{children:"No notifications."})}),N2=x.createContext({currentIndex:0,setCurrentIndex:Function}),O0="_tab_1sliy_1",R0="_tabNav_1sliy_4",A0="_tabNavItem_1sliy_22",F0="_active_1sliy_37",D0="_item_1sliy_41",W0="_bilingualTitle_1sliy_48",g2={tab:O0,tabNav:R0,tabNavItem:A0,active:F0,item:D0,bilingualTitle:W0},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})})},z0=({children:e,extraClass:t})=>C.jsx("div",{className:`${g2.tabBody} ${t}`,children:e}),U0=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,{})},Y0=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${g2.tabNav} ${r}`,children:t})},G0=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]})]})})},K0="_table_2pwiu_1",J0="_tableBody_2pwiu_6",X0="_tableHead_2pwiu_6",Q0="_tableFooter_2pwiu_6",C3="_tableRow_2pwiu_10",e3="_tableCellHeading_2pwiu_22",t3="_tableCell_2pwiu_22",r3="_tableCellAlignLeft_2pwiu_44",n3="_tableCellAlignCenter_2pwiu_47",i3="_tableCellAlignRight_2pwiu_50",l3="_tableCellActions_2pwiu_54",o3="_smallDesc_2pwiu_88",s3="_cellWithPicture_2pwiu_95",a3="_cellImage_2pwiu_100",Q={table:K0,tableBody:J0,tableHead:X0,tableFooter:Q0,tableRow:C3,tableCellHeading:e3,tableCell:t3,tableCellAlignLeft:r3,tableCellAlignCenter:n3,tableCellAlignRight:i3,tableCellActions:l3,smallDesc:o3,cellWithPicture:s3,cellImage:a3},c3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Q.table} ${r} table`,children:C.jsx("div",{className:"tableContainer",children:t})})},h3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Q.tableBody} ${r} `,children:t})})},d3=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})]})})},w3=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})})},f3=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})]})})},u3=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})})]})]})})},g3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Q.tableFooter} ${r} `,children:t})})},x3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Q.tableHead} tableHead ${r}`,children:t})},v3=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})},L3="_calloutPopupActionHolder_cpqb7_1",H3="_calloutPopup_cpqb7_1",V3="_calloutPopupWrapper_cpqb7_11",J2={calloutPopupActionHolder:L3,calloutPopup:H3,calloutPopupWrapper:V3},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})})},M3=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(g=>({...g,[`${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})})]})},Z3="_header_y9i8j_1",m3="_headerLeft_y9i8j_10",j3="_layoutLogo_y9i8j_14",_3="_layoutLogoSmall_y9i8j_17",b3="_hamburgerBtn_y9i8j_20",B3="_headerRight_y9i8j_33",y3="_searchFieldWrap_y9i8j_39",x2={header:Z3,headerLeft:m3,layoutLogo:j3,layoutLogoSmall:_3,hamburgerBtn:b3,headerRight:B3,searchFieldWrap:y3},S3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("header",{className:`${x2.header} ${r}`,children:t})},N3=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,{})})]})},I3=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]})})},$3=()=>{},T3=()=>{},E3=()=>{},k3=()=>{},P3=()=>{},O3=()=>{},R3="_profile_1hjop_1",A3="_profileHolder_1hjop_5",F3="_profileInner_1hjop_9",D3="_avatar_1hjop_20",W3="_dropdown_1hjop_31",m2={profile:R3,profileHolder:A3,profileInner:F3,avatar:D3,dropdown:W3},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})]})},z3="_profileDropdown_h2aof_1",U3="_profileHeader_h2aof_8",Y3="_profileHeaderWrapper_h2aof_14",G3="_profileSwitchUserWrapper_h2aof_15",K3="_avatar_h2aof_19",J3="_content_h2aof_39",X3="_name_h2aof_39",Q3="_role_h2aof_45",C8="_profileSwitchUserContent_h2aof_54",e8="_profileNavigationItem_h2aof_67",t8="_profileNavigationItemWrapper_h2aof_77",r8="_profileNavigationItemLeft_h2aof_84",n8="_profileNavigationItemIcon_h2aof_88",i8="_profileNavigationItemContent_h2aof_98",l8="_profileNavigationItemRight_h2aof_104",o8="_profileLinks_h2aof_113",s8="_profileLinksList_h2aof_116",a8="_profileLink_h2aof_113",c8="_profileSwitchPanel_h2aof_135",h8="_usersHolder_h2aof_141",d8="_spacing_h2aof_146",w8="_profileSwitchPanelHeader_h2aof_163",f8="_caretLeft_h2aof_170",u8="_closeIcon_h2aof_171",g8="_headerTitle_h2aof_182",x8="_initialsTile_h2aof_183",v8="_fieldWrapper_h2aof_189",p8="_profileSwitchUser_h2aof_15",L8="_profileSwitchUserAvatar_h2aof_204",Y={profileDropdown:z3,profileHeader:U3,profileHeaderWrapper:Y3,profileSwitchUserWrapper:G3,avatar:K3,content:J3,name:X3,role:Q3,profileSwitchUserContent:C8,profileNavigationItem:e8,profileNavigationItemWrapper:t8,profileNavigationItemLeft:r8,profileNavigationItemIcon:n8,profileNavigationItemContent:i8,profileNavigationItemRight:l8,profileLinks:o8,profileLinksList:s8,profileLink:a8,profileSwitchPanel:c8,usersHolder:h8,spacing:d8,profileSwitchPanelHeader:w8,caretLeft:f8,closeIcon:u8,headerTitle:g8,initialsTile:x8,fieldWrapper:v8,profileSwitchUser:p8,profileSwitchUserAvatar:L8},H8=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${Y.profileDropdown} ${r}`,children:t})},V8=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})]})]})})},M8=e=>{const{children:t}=e;return C.jsx("div",{className:Y.profileLink,children:t})},Z8=e=>{const{children:t}=e;return C.jsx("div",{className:`${Y.profileLinks}`,children:C.jsx("div",{className:`${Y.profileLinksList}`,children:t})})},m8=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,{})})]})})},j8=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:g,closeOnClick:L,...H}=e,[p,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:g,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:L,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} ${p?F.spacing:""} `,children:w})]})},_8=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",B8="_sidebarNavigation_1gyrz_9",y8="_navigationItemLarge_1gyrz_12",S8="_subNavigationHolder_1gyrz_16",N8="_navigationSubItemLarge_1gyrz_19",I8="_navigationItemHolder_1gyrz_23",$8="_subNavigationItemHolder_1gyrz_23",T8="_navigationItem_1gyrz_12",E8="_subNavigationItem_1gyrz_23",k8="_active_1gyrz_38",P8="_bilingualTitle_1gyrz_42",O8="_navigationIcon_1gyrz_53",R8="_subNavigationIcon_1gyrz_53",A8="_navigationItemBody_1gyrz_64",F8="_subNavigationItemBody_1gyrz_64",D8="_navigationItemSmall_1gyrz_68",W8="_childIndicator_1gyrz_72",q8="_navigationSubItemSmall_1gyrz_85",z8="_sidebarTitle_1gyrz_88",U8="_sidebarChevron_1gyrz_117",Y8="_sidebarChevronBtn_1gyrz_138",U={sidebar:b8,sidebarNavigation:B8,navigationItemLarge:y8,subNavigationHolder:S8,navigationSubItemLarge:N8,navigationItemHolder:I8,subNavigationItemHolder:$8,navigationItem:T8,subNavigationItem:E8,active:k8,bilingualTitle:P8,navigationIcon:O8,subNavigationIcon:R8,navigationItemBody:A8,subNavigationItemBody:F8,navigationItemSmall:D8,childIndicator:W8,navigationSubItemSmall:q8,sidebarTitle:z8,sidebarChevron:U8,sidebarChevronBtn:Y8},G8=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})})},K8=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})},J8=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})]})]})})},X8=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]})},Q8=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=q1;exports.AccordionContext=Q2;exports.AccordionItem=X1;exports.AccordionProvider=L1;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=M3;exports.Camera=k7;exports.Campfire=h6;exports.CaretDown=H2;exports.CaretLeft=S2;exports.CaretRight=y2;exports.CaretUp=L2;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=L9;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=p7;exports.Header=S3;exports.HeaderLeft=N3;exports.HeaderRight=I3;exports.HouseSimple=L7;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=R4;exports.Minus=_7;exports.Modal=C0;exports.ModalActions=e0;exports.ModalActionsLeft=t0;exports.ModalActionsRight=r0;exports.ModalBody=n0;exports.ModalCurtain=i0;exports.ModalHeader=l0;exports.Mountains=a6;exports.MultiSelectField=B6;exports.MultiSelectFieldItem=q2;exports.MultiSelectFieldTag=E1;exports.Notification=I0;exports.NotificationsBell=d0;exports.NotificationsGroup=$0;exports.NotificationsGroups=T0;exports.NotificationsHeader=k0;exports.NotificationsNone=P0;exports.NotificationsPanel=E0;exports.NumberField=B4;exports.NumberSquareThree=b7;exports.Pagination=$3;exports.PaginationFirst=T3;exports.PaginationLast=E3;exports.PaginationNext=k3;exports.PaginationNumber=P3;exports.PaginationPrevious=O3;exports.PasswordField=q6;exports.Path=H7;exports.PathwayCard=P4;exports.PencilLine=w7;exports.PencilSimple=f7;exports.PersonSimpleBike=G7;exports.PersonSimpleWalk=Y7;exports.Phone=c7;exports.PhoneField=N4;exports.PlayCircle=T7;exports.Plus=j7;exports.PlusCircle=I7;exports.Printer=F7;exports.ProfileAvatar=q3;exports.ProfileDropdown=H8;exports.ProfileHeader=V8;exports.ProfileLink=M8;exports.ProfileLinks=Z8;exports.ProfileNavigationItem=m8;exports.ProfileSwitchPanel=j8;exports.ProfileSwitchUser=_8;exports.Question=J7;exports.RadioButton=Q6;exports.RadioButtonIcon=t6;exports.RadioButtons=C4;exports.RichTextEditor=M4;exports.RoadHorizon=M7;exports.Ruler=u7;exports.Sidebar=G8;exports.SidebarChevron=F1;exports.SidebarNavigation=K8;exports.SidebarNavigationItem=J8;exports.SidebarSubNavigation=X8;exports.SidebarSubNavigationItem=Q8;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=z0;exports.TabBodyContent=U0;exports.TabContext=N2;exports.TabNav=Y0;exports.TabNavItem=G0;exports.Table=c3;exports.TableBody=h3;exports.TableCell=d3;exports.TableCellAction=w3;exports.TableCellWithDesc=f3;exports.TableCellWithImage=u3;exports.TableFooter=g3;exports.TableHead=x3;exports.TableHeaderCell=v3;exports.TableRow=p3;exports.TextAa=P7;exports.TextColumns=O7;exports.TextField=b4;exports.Textarea=_4;exports.TimeField=S4;exports.ToggleSwitch=k4;exports.Tram=V7;exports.Translate=a7;exports.Trash=D7;exports.Tree=c6;exports.TypableDropdownField=W6;exports.TypableDropdownFieldItem=U2;exports.TypableDropdownFieldSelector=z2;exports.UnitField=y4;exports.User=q7;exports.UserCircle=z7;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,z,E,W,k+"."+z,r);if(V)return V}return null}return p(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 g.checkPropTypes=l,g.resetWarningCache=l.resetWarningCache,g.PropTypes=g,g},P2}var O2,d1;function s4(){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 a4=k1(),c4=!0;Y2.exports=o4()(a4.isElement,c4)}else Y2.exports=s4()();var u=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:u.func,onAddUndo:u.func,onBeforeAddUndo:u.func,onBeforeExecCommand:u.func,onBeforeGetContent:u.func,onBeforeRenderUI:u.func,onBeforeSetContent:u.func,onBeforePaste:u.func,onBlur:u.func,onChange:u.func,onClearUndos:u.func,onClick:u.func,onContextMenu:u.func,onCommentChange:u.func,onCopy:u.func,onCut:u.func,onDblclick:u.func,onDeactivate:u.func,onDirty:u.func,onDrag:u.func,onDragDrop:u.func,onDragEnd:u.func,onDragGesture:u.func,onDragOver:u.func,onDrop:u.func,onExecCommand:u.func,onFocus:u.func,onFocusIn:u.func,onFocusOut:u.func,onGetContent:u.func,onHide:u.func,onInit:u.func,onKeyDown:u.func,onKeyPress:u.func,onKeyUp:u.func,onLoadContent:u.func,onMouseDown:u.func,onMouseEnter:u.func,onMouseLeave:u.func,onMouseMove:u.func,onMouseOut:u.func,onMouseOver:u.func,onMouseUp:u.func,onNodeChange:u.func,onObjectResizeStart:u.func,onObjectResized:u.func,onObjectSelected:u.func,onPaste:u.func,onPostProcess:u.func,onPostRender:u.func,onPreProcess:u.func,onProgressState:u.func,onRedo:u.func,onRemove:u.func,onReset:u.func,onSaveContent:u.func,onSelectionChange:u.func,onSetAttrib:u.func,onSetContent:u.func,onShow:u.func,onSubmit:u.func,onUndo:u.func,onVisualAid:u.func,onSkinLoadError:u.func,onThemeLoadError:u.func,onModelLoadError:u.func,onPluginLoadError:u.func,onIconsLoadError:u.func,onLanguageLoadError:u.func,onScriptsLoad:u.func,onScriptsLoadError:u.func},h4=G2({apiKey:u.string,id:u.string,inline:u.bool,init:u.object,initialValue:u.string,onEditorChange:u.func,value:u.string,tagName:u.string,cloudChannel:u.string,plugins:u.oneOfType([u.string,u.array]),toolbar:u.oneOfType([u.string,u.array]),disabled:u.bool,textareaName:u.string,tinymceScriptSrc:u.oneOfType([u.string,u.arrayOf(u.string),u.arrayOf(u.shape({src:u.string,async:u.bool,defer:u.bool}))]),rollback:u.oneOfType([u.number,u.oneOf([!1])]),scriptLoading:u.shape({async:u.bool,defer:u.bool,delay:u.number})},O1),R2=function(e){return typeof e=="function"},w1=function(e){return e in O1},f1=function(e){return e.substr(2)},d4=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),g=i[w];r(w,g),delete i[w]}),d.forEach(function(h){var w=n(e,h),g=f1(h);i[g]=w,t(g,w)})},w4=function(e,t,r,n,l){return d4(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(" ")},f4=function(e,t){return x1(e).concat(x1(t))},u4=function(){return window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"},g4=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)},x4=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)},v4=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())},g=0,L=i;g<L.length;g++){var H=L[g],p=t[H.src];if(p)p.done?w(H.src,p.error):p.handlers.push(w);else{var j=R1("tiny-");t[H.src]={id:j,src:H.src,done:!1,error:null,handlers:[w]},x4(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=v4(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}},L4=p4(),A2=function(e){var t=e;return t&&t.tinymce?t.tinymce:null},H4=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)},V4=function(e){H4(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(!g4(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 g=B2(B2({},i.props.init),{selector:void 0,target:h,readonly:i.props.disabled,inline:i.inline,plugins:f4((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(L){i.editor=L,i.bindHandlers({}),i.inline&&!g1(h)&&L.once("PostRender",function(H){L.setContent(i.getInitialValue(),{no_events:!0})}),i.props.init&&R2(i.props.init.setup)&&i.props.init.setup(L)},init_instance_callback:function(L){var H,p,j=i.getInitialValue();i.currentContent=(H=i.currentContent)!==null&&H!==void 0?H:L.getContent(),i.currentContent!==j&&(i.currentContent=j,L.setContent(j),L.undoManager.clear(),L.undoManager.add(),L.setDirty(!1));var M=(p=i.props.disabled)!==null&&p!==void 0?p:!1;v1(i.editor,M?"readonly":"design"),i.props.init&&R2(i.props.init.init_instance_callback)&&i.props.init.init_instance_callback(L)}});i.inline||(h.style.visibility=""),g1(h)&&(h.value=i.getInitialValue()),w.init(g)}},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)};L4.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 u4()?"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){w4(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=h4,t.defaultProps={cloudChannel:"6"},t}(_2.Component);const M4=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:g,rows:L,onClick:H,onChange:p,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(V4,{textareaName:t,scriptLoading:{async:!0},tinymceScriptSrc:"/lib/tinymce/tinymce.min.js",id:r,disabled:s,value:n,init:{height:L?50*L:200,menubar:!1,branding:!1,plugins:["advlist","autolink","lists","link","image","charmap","preview","anchor","searchreplace","visualblocks","fullscreen","media","table"],toolbar:"blocks | formatselect | bold italic underline | bullist numlist | 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),p&&p(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})]})},Z4="_textarea_1y8ok_1",m4="_error_1y8ok_29",j4="_length_1y8ok_38",F2={textarea:Z4,error:m4,length:j4},_4=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:g,maxLength:L,onChange:H,...p}=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",...p}),!!g&&C.jsxs("p",{className:F2.length,children:[j.length," / ",L]})]})},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,...g}=e,L=[F.input];return s&&L.push(F.error),o&&L.push(o),C.jsxs("div",{className:`${w?F.textField:""}`,children:[C.jsx("input",{className:D(L),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",...g}),!!w&&C.jsx("div",{className:F.textFieldIcon,children:w})]})},B4=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:g=!0,onChange:L,...H}=e,p=x.useRef(null),[j,M]=x.useState("");x.useEffect(()=>{if(g){if(h){const _=h==null?void 0:h.toString().replace(/[^0-9.]/g,"");M(B(_))}}else M(h)},[h]);const B=_=>{if(g){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)),L){const I={..._,target:{..._.target,value:b}};L(I)}};x.useEffect(()=>{const _=b=>{w&&b.target===p.current&&b.preventDefault()},N=p.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:g?"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:p,onChange:m,...H})},y4=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:g=!0,onChange:L,...H}=e,[p,j]=x.useState(0),M=x.useRef(null),[B,m]=x.useState("");x.useEffect(()=>{if(g){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(g){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)),L){const P={...b,target:{...b.target,value:S}};L(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:`${p}px`},className:D(N),id:`unitTextWidth ${r}`,name:t,type:g?"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})]})},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,...w}=e,g=[F.input];return s&&g.push(F.error),o&&g.push(o),C.jsxs("div",{className:F.time,children:[C.jsx("input",{className:D(g),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"})})]})},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,g=[F.input];return s&&g.push(F.error),o&&g.push(o),C.jsx("input",{className:D(g),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})},I4="_error_tatej_7",$4="_slider_tatej_7",T4="_circle_tatej_10",E4="_round_tatej_64",M2={switch:"_switch_tatej_1",error:I4,slider:$4,circle:T4,round:E4},k4=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,...g}=e,[L,H]=x.useState(!1),p=["switch",M2.switch];i&&p.push(i),a&&p.push(M2.error),x.useEffect(()=>{H(r||!1)},[r]);const j=M=>{H(!L),w&&w(M,L)};return C.jsxs("div",{className:D(p),children:[C.jsx("input",{id:n,name:t,checked:L,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,...g}),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"})})})})]})},P4=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:g=>{d&&d(g)},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})]})]})})},O4="_mediaImage_1k8jm_1",p1={mediaImage:O4},R4=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:p1.mediaImage}):C.jsx("div",{className:p1.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."]})]})]})},A4="_holder_x3ny8_1",F4="_modal_x3ny8_26",D4="_wrapper_x3ny8_37",W4="_modalHeader_x3ny8_43",q4="_modalHeaderWrapper_x3ny8_47",z4="_heading_x3ny8_53",U4="_icon_x3ny8_58",Y4="_modalBody_x3ny8_68",G4="_modalBodyWrapper_x3ny8_86",K4="_modalAction_x3ny8_90",J4="_modalActionRight_x3ny8_98",X4="_modalActionLeft_x3ny8_98",Q4="_curtain_x3ny8_107",n2={holder:A4,modal:F4,wrapper:D4,modalHeader:W4,modalHeaderWrapper:q4,heading:z4,icon:U4,modalBody:Y4,modalBodyWrapper:G4,modalAction:K4,modalActionRight:J4,modalActionLeft:X4,curtain:Q4},C0=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})})})},e0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalAction} ${r}`,children:t})},t0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalActionLeft} ${r}`,children:t})},r0=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${n2.modalActionRight} ${r}`,children:t})},n0=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})})},i0=()=>C.jsx("div",{className:n2.curtain}),l0=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"})})]})})},o0="_notification_18pig_1",s0="_notificationIcon_18pig_4",a0="_pip_18pig_14",c0="_notiActive_18pig_30",h0="_notificationDropdown_18pig_33",Z2={notification:o0,notificationIcon:s0,pip:a0,notiActive:c0,notificationDropdown:h0},d0=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})]})},w0="_notificationPanel_1y2of_1",f0="_notificationheader_1y2of_10",u0="_notificationHeaderWrapper_1y2of_13",g0="_notificationMarkAllAction_1y2of_24",x0="_notificationGrouplistHolder_1y2of_35",v0="_spacing_1y2of_39",p0="_notificationGrouplist_1y2of_35",L0="_notificationGroup_1y2of_35",H0="_notificationNone_1y2of_72",V0="_notificationList_1y2of_86",M0="_notificationListPip_1y2of_94",Z0="_notificationListCloseIcon_1y2of_97",m0="_notificationListWrapper_1y2of_100",j0="_notificationListIcon_1y2of_126",_0="_notificationListContent_1y2of_135",b0="_notificationListInitial_1y2of_140",B0="_notificationListInitialWrapper_1y2of_152",y0="_notificationListDesc_1y2of_158",S0="_boldText_1y2of_163",N0="_summaryText_1y2of_166",t2={notificationPanel:w0,notificationheader:f0,notificationHeaderWrapper:u0,notificationMarkAllAction:g0,notificationGrouplistHolder:x0,spacing:v0,notificationGrouplist:p0,notificationGroup:L0,notificationNone:H0,notificationList:V0,notificationListPip:M0,notificationListCloseIcon:Z0,notificationListWrapper:m0,notificationListIcon:j0,notificationListContent:_0,notificationListInitial:b0,notificationListInitialWrapper:B0,notificationListDesc:y0,boldText:S0,summaryText:N0},I0=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]})]})})]})]})})})},$0=({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})]}),T0=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})})},E0=({children:e})=>C.jsx("div",{className:t2.notificationPanel,children:e}),k0=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"})})})]})})},P0=()=>C.jsx("li",{className:t2.notificationNone,children:C.jsx("h6",{children:"No notifications."})}),N2=x.createContext({currentIndex:0,setCurrentIndex:Function}),O0="_tab_1sliy_1",R0="_tabNav_1sliy_4",A0="_tabNavItem_1sliy_22",F0="_active_1sliy_37",D0="_item_1sliy_41",W0="_bilingualTitle_1sliy_48",g2={tab:O0,tabNav:R0,tabNavItem:A0,active:F0,item:D0,bilingualTitle:W0},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})})},z0=({children:e,extraClass:t})=>C.jsx("div",{className:`${g2.tabBody} ${t}`,children:e}),U0=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,{})},Y0=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${g2.tabNav} ${r}`,children:t})},G0=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]})]})})},K0="_table_2pwiu_1",J0="_tableBody_2pwiu_6",X0="_tableHead_2pwiu_6",Q0="_tableFooter_2pwiu_6",C3="_tableRow_2pwiu_10",e3="_tableCellHeading_2pwiu_22",t3="_tableCell_2pwiu_22",r3="_tableCellAlignLeft_2pwiu_44",n3="_tableCellAlignCenter_2pwiu_47",i3="_tableCellAlignRight_2pwiu_50",l3="_tableCellActions_2pwiu_54",o3="_smallDesc_2pwiu_88",s3="_cellWithPicture_2pwiu_95",a3="_cellImage_2pwiu_100",Q={table:K0,tableBody:J0,tableHead:X0,tableFooter:Q0,tableRow:C3,tableCellHeading:e3,tableCell:t3,tableCellAlignLeft:r3,tableCellAlignCenter:n3,tableCellAlignRight:i3,tableCellActions:l3,smallDesc:o3,cellWithPicture:s3,cellImage:a3},c3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Q.table} ${r} table`,children:C.jsx("div",{className:"tableContainer",children:t})})},h3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Q.tableBody} ${r} `,children:t})})},d3=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})]})})},w3=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})})},f3=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})]})})},u3=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})})]})]})})},g3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx(C.Fragment,{children:C.jsx("div",{className:`${Q.tableFooter} ${r} `,children:t})})},x3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("div",{className:`${Q.tableHead} tableHead ${r}`,children:t})},v3=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})},L3="_calloutPopupActionHolder_cpqb7_1",H3="_calloutPopup_cpqb7_1",V3="_calloutPopupWrapper_cpqb7_11",J2={calloutPopupActionHolder:L3,calloutPopup:H3,calloutPopupWrapper:V3},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})})},M3=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(g=>({...g,[`${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})})]})},Z3="_header_y9i8j_1",m3="_headerLeft_y9i8j_10",j3="_layoutLogo_y9i8j_14",_3="_layoutLogoSmall_y9i8j_17",b3="_hamburgerBtn_y9i8j_20",B3="_headerRight_y9i8j_33",y3="_searchFieldWrap_y9i8j_39",x2={header:Z3,headerLeft:m3,layoutLogo:j3,layoutLogoSmall:_3,hamburgerBtn:b3,headerRight:B3,searchFieldWrap:y3},S3=e=>{const{children:t,extraClass:r=""}=e;return C.jsx("header",{className:`${x2.header} ${r}`,children:t})},N3=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,{})})]})},I3=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]})})},$3=()=>{},T3=()=>{},E3=()=>{},k3=()=>{},P3=()=>{},O3=()=>{},R3="_profile_1hjop_1",A3="_profileHolder_1hjop_5",F3="_profileInner_1hjop_9",D3="_avatar_1hjop_20",W3="_dropdown_1hjop_31",m2={profile:R3,profileHolder:A3,profileInner:F3,avatar:D3,dropdown:W3},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})]})},z3="_profileDropdown_h2aof_1",U3="_profileHeader_h2aof_8",Y3="_profileHeaderWrapper_h2aof_14",G3="_profileSwitchUserWrapper_h2aof_15",K3="_avatar_h2aof_19",J3="_content_h2aof_39",X3="_name_h2aof_39",Q3="_role_h2aof_45",C8="_profileSwitchUserContent_h2aof_54",e8="_profileNavigationItem_h2aof_67",t8="_profileNavigationItemWrapper_h2aof_77",r8="_profileNavigationItemLeft_h2aof_84",n8="_profileNavigationItemIcon_h2aof_88",i8="_profileNavigationItemContent_h2aof_98",l8="_profileNavigationItemRight_h2aof_104",o8="_profileLinks_h2aof_113",s8="_profileLinksList_h2aof_116",a8="_profileLink_h2aof_113",c8="_profileSwitchPanel_h2aof_135",h8="_usersHolder_h2aof_141",d8="_spacing_h2aof_146",w8="_profileSwitchPanelHeader_h2aof_163",f8="_caretLeft_h2aof_170",u8="_closeIcon_h2aof_171",g8="_headerTitle_h2aof_182",x8="_initialsTile_h2aof_183",v8="_fieldWrapper_h2aof_189",p8="_profileSwitchUser_h2aof_15",L8="_profileSwitchUserAvatar_h2aof_204",Y={profileDropdown:z3,profileHeader:U3,profileHeaderWrapper:Y3,profileSwitchUserWrapper:G3,avatar:K3,content:J3,name:X3,role:Q3,profileSwitchUserContent:C8,profileNavigationItem:e8,profileNavigationItemWrapper:t8,profileNavigationItemLeft:r8,profileNavigationItemIcon:n8,profileNavigationItemContent:i8,profileNavigationItemRight:l8,profileLinks:o8,profileLinksList:s8,profileLink:a8,profileSwitchPanel:c8,usersHolder:h8,spacing:d8,profileSwitchPanelHeader:w8,caretLeft:f8,closeIcon:u8,headerTitle:g8,initialsTile:x8,fieldWrapper:v8,profileSwitchUser:p8,profileSwitchUserAvatar:L8},H8=e=>{const{children:t,extraClass:r}=e;return C.jsx("div",{className:`${Y.profileDropdown} ${r}`,children:t})},V8=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})]})]})})},M8=e=>{const{children:t}=e;return C.jsx("div",{className:Y.profileLink,children:t})},Z8=e=>{const{children:t}=e;return C.jsx("div",{className:`${Y.profileLinks}`,children:C.jsx("div",{className:`${Y.profileLinksList}`,children:t})})},m8=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,{})})]})})},j8=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:g,closeOnClick:L,...H}=e,[p,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:g,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:L,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} ${p?F.spacing:""} `,children:w})]})},_8=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",B8="_sidebarNavigation_1gyrz_9",y8="_navigationItemLarge_1gyrz_12",S8="_subNavigationHolder_1gyrz_16",N8="_navigationSubItemLarge_1gyrz_19",I8="_navigationItemHolder_1gyrz_23",$8="_subNavigationItemHolder_1gyrz_23",T8="_navigationItem_1gyrz_12",E8="_subNavigationItem_1gyrz_23",k8="_active_1gyrz_38",P8="_bilingualTitle_1gyrz_42",O8="_navigationIcon_1gyrz_53",R8="_subNavigationIcon_1gyrz_53",A8="_navigationItemBody_1gyrz_64",F8="_subNavigationItemBody_1gyrz_64",D8="_navigationItemSmall_1gyrz_68",W8="_childIndicator_1gyrz_72",q8="_navigationSubItemSmall_1gyrz_85",z8="_sidebarTitle_1gyrz_88",U8="_sidebarChevron_1gyrz_117",Y8="_sidebarChevronBtn_1gyrz_138",U={sidebar:b8,sidebarNavigation:B8,navigationItemLarge:y8,subNavigationHolder:S8,navigationSubItemLarge:N8,navigationItemHolder:I8,subNavigationItemHolder:$8,navigationItem:T8,subNavigationItem:E8,active:k8,bilingualTitle:P8,navigationIcon:O8,subNavigationIcon:R8,navigationItemBody:A8,subNavigationItemBody:F8,navigationItemSmall:D8,childIndicator:W8,navigationSubItemSmall:q8,sidebarTitle:z8,sidebarChevron:U8,sidebarChevronBtn:Y8},G8=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})})},K8=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})},J8=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})]})]})})},X8=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]})},Q8=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=q1;exports.AccordionContext=Q2;exports.AccordionItem=X1;exports.AccordionProvider=L1;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=M3;exports.Camera=k7;exports.Campfire=h6;exports.CaretDown=H2;exports.CaretLeft=S2;exports.CaretRight=y2;exports.CaretUp=L2;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=L9;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=p7;exports.Header=S3;exports.HeaderLeft=N3;exports.HeaderRight=I3;exports.HouseSimple=L7;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=R4;exports.Minus=_7;exports.Modal=C0;exports.ModalActions=e0;exports.ModalActionsLeft=t0;exports.ModalActionsRight=r0;exports.ModalBody=n0;exports.ModalCurtain=i0;exports.ModalHeader=l0;exports.Mountains=a6;exports.MultiSelectField=B6;exports.MultiSelectFieldItem=q2;exports.MultiSelectFieldTag=E1;exports.Notification=I0;exports.NotificationsBell=d0;exports.NotificationsGroup=$0;exports.NotificationsGroups=T0;exports.NotificationsHeader=k0;exports.NotificationsNone=P0;exports.NotificationsPanel=E0;exports.NumberField=B4;exports.NumberSquareThree=b7;exports.Pagination=$3;exports.PaginationFirst=T3;exports.PaginationLast=E3;exports.PaginationNext=k3;exports.PaginationNumber=P3;exports.PaginationPrevious=O3;exports.PasswordField=q6;exports.Path=H7;exports.PathwayCard=P4;exports.PencilLine=w7;exports.PencilSimple=f7;exports.PersonSimpleBike=G7;exports.PersonSimpleWalk=Y7;exports.Phone=c7;exports.PhoneField=N4;exports.PlayCircle=T7;exports.Plus=j7;exports.PlusCircle=I7;exports.Printer=F7;exports.ProfileAvatar=q3;exports.ProfileDropdown=H8;exports.ProfileHeader=V8;exports.ProfileLink=M8;exports.ProfileLinks=Z8;exports.ProfileNavigationItem=m8;exports.ProfileSwitchPanel=j8;exports.ProfileSwitchUser=_8;exports.Question=J7;exports.RadioButton=Q6;exports.RadioButtonIcon=t6;exports.RadioButtons=C4;exports.RichTextEditor=M4;exports.RoadHorizon=M7;exports.Ruler=u7;exports.Sidebar=G8;exports.SidebarChevron=F1;exports.SidebarNavigation=K8;exports.SidebarNavigationItem=J8;exports.SidebarSubNavigation=X8;exports.SidebarSubNavigationItem=Q8;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=z0;exports.TabBodyContent=U0;exports.TabContext=N2;exports.TabNav=Y0;exports.TabNavItem=G0;exports.Table=c3;exports.TableBody=h3;exports.TableCell=d3;exports.TableCellAction=w3;exports.TableCellWithDesc=f3;exports.TableCellWithImage=u3;exports.TableFooter=g3;exports.TableHead=x3;exports.TableHeaderCell=v3;exports.TableRow=p3;exports.TextAa=P7;exports.TextColumns=O7;exports.TextField=b4;exports.Textarea=_4;exports.TimeField=S4;exports.ToggleSwitch=k4;exports.Tram=V7;exports.Translate=a7;exports.Trash=D7;exports.Tree=c6;exports.TypableDropdownField=W6;exports.TypableDropdownFieldItem=U2;exports.TypableDropdownFieldSelector=z2;exports.UnitField=y4;exports.User=q7;exports.UserCircle=z7;exports.UserSwitch=U7;exports.WarningCircle=b1;exports.WindowsLogo=r7;exports.XIcon=V2;
25
25
  //# sourceMappingURL=index.cjs.js.map