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