intelicoreact 1.6.45 → 1.6.47

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.
@@ -1 +1 @@
1
- function e(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,l=Array(n);t<n;t++)l[t]=e[t];return l}function n(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function t(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{},r=Object.keys(l);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(l).filter(function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable}))),r.forEach(function(t){n(e,t,l[t])})}return e}function l(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t.push.apply(t,l)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function r(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,l,r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(o.push(t.value),!n||o.length!==n);i=!0);}catch(e){u=!0,l=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw l}}return o}}(e,n)||u(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(n){return function(n){if(Array.isArray(n))return e(n)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||u(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(n,t){if(n){if("string"==typeof n)return e(n,t);var l=Object.prototype.toString.call(n).slice(8,-1);if("Object"===l&&n.constructor&&(l=n.constructor.name),"Map"===l||"Set"===l)return Array.from(l);if("Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return e(n,t)}}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return j}});var c=require("react/jsx-runtime"),a=w(require("classnames")),s=function(e,n){if(e&&e.__esModule)return e;if(null===e||(void 0===e?"undefined":i(e))!=="object"&&"function"!=typeof e)return{default:e};var t=_(n);if(t&&t.has(e))return t.get(e);var l={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(l,o,u):l[o]=e[o]}return l.default=e,t&&t.set(e,l),l}(require("react")),d=require("react-dom"),v=require("react-feather"),f=require("../../../Functions/fieldValueFormatters"),p=w(require("../../../Functions/useIsMobile/useIsMobile")),m=require("../../../Functions/utils"),h=w(require("../Input/Input")),g=w(require("../RadioInput/RadioInput")),b=w(require("./components/DropdownLoader"));function w(e){return e&&e.__esModule?e:{default:e}}function _(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(_=function(e){return e?t:n})(e)}require("./Dropdown.scss");var y="dropdown",j=function(e){var u,w,_,j,x,S,C,E,N,O,L,I,k,P,A,M=e.label,D=e.options,q=e.value,H=e.error,R=e.disabled,T=e.onChange,B=e.placeholder,F=e.className,K=e.isSearchable,W=e.entity,U=e.scrollReactionObj,z=e.isListTop,$=e.isNotValidateASCII,V=void 0!==$&&$,X=e.testId,G=void 0===X?"dropdown":X,J=e.sortAlphabetical,Q=void 0===J||J,Y=e.fieldKey,Z=e.id,ee=e.noOptionsText,en=void 0===ee?"No options available":ee,et=e.attributesOfNativeInput,el=e.isDoNotPullOutListOfMainContainer,er=e.withMobileLogic,eo=e.withActions,ei=e.minItemsForShowMobileSearch,eu=e.customTrigger,ec=e.tabIndex,ea=e.onActionConfirmClick,es=e.onActionCancelClick,ed=e.isDefaultOpened,ev=(0,p.default)().isMobile,ef=ev&&er&&window.screen.width<=768,ep=r((0,s.useState)((Z||Y||Math.random().toString(16).slice(2)).toString()),1)[0],em=r((0,s.useState)(!1),2),eh=em[0],eg=em[1],eb=r((0,s.useState)(),2),ew=eb[0],e_=eb[1],ey=(0,s.useRef)(null),ej=(0,s.useRef)(null),ex=(0,s.useRef)(null),eS=(0,s.useRef)(null),eC=(0,s.useRef)(null),eE=r((0,s.useState)(null),2),eN=eE[0],eO=eE[1],eL=r((0,s.useState)(!1),2),eI=eL[0],ek=eL[1],eP=r((0,s.useState)(!1),2),eA=eP[0],eM=eP[1],eD=r((0,s.useState)(!1),2),eq=eD[0],eH=eD[1],eR=r((0,s.useState)(!1),2),eT=eR[0],eB=eR[1],eF=r((0,s.useState)(0),2),eK=eF[0],eW=eF[1],eU=r((0,s.useState)(1),2),ez=eU[0],e$=eU[1],eV=r((0,s.useState)(0),2),eX=eV[0],eG=eV[1],eJ=(0,s.useCallback)(function(){var e;return null!=(e=null==D?void 0:D.reduce(function(e,n){if((null==n?void 0:n.list)||(null==n?void 0:n.items)){var t,l;e+=(null==n||null==(t=n.list)?void 0:t.length)||(null==n||null==(l=n.items)?void 0:l.length)||0}else++e;return e},0))?e:0},[D]);ef&&(K=eJ()>((void 0===ei?10:ei)||10));var eQ=function(e){var n=null==e?void 0:e.findIndex(function(e){return(null==e?void 0:e.value)==="other"});if(n>-1){var t=null==e?void 0:e.splice(n,1);e.push.apply(e,o(t))}return e},eY=eQ(null!=D?D:[]);null==D||D.map(function(e){return e.items?e.items=eQ(e.items):e});var eZ=eY.map(function(e){var n;return l(t({},e),{items:K&&eI?null==(n=e.items)?void 0:n.slice().filter(function(e){var n;return(null==e||null==(n=e.label)?void 0:n.toLowerCase().includes((null==ew?void 0:ew.toLowerCase())||""))||!(null==e?void 0:e.value)||(null==e?void 0:e.value)===""}):null==e?void 0:e.items})}).filter(function(e){var n,t;return(null!=(t=null==(n=e.items)?void 0:n.length)?t:0)>0}),e0=eY.filter(function(e){var n;return!(null==(n=e.items)?void 0:n.length)}).filter(function(e){var n;return!K||!eI||(null==e||null==(n=e.label)?void 0:n.toLowerCase().includes((null==ew?void 0:ew.toLowerCase())||""))||!(null==e?void 0:e.value)||(null==e?void 0:e.value)===""}),e1=o(e0).concat(o(eZ)),e2=function(e){eg(!1),null==T||T(e.value)},e3=function(e){return!![9,13].includes(e.keyCode)&&(eg(!1),!0)},e6=function(e){return!![9,13].includes(e.keyCode)&&(eg(!0),!0)},e8=function(){return document.getElementById(ep)},e9=function(e){var n;(null==(n=e8())?void 0:n.contains(null==e?void 0:e.target))||(null==ey?void 0:ey.current)===null||(null==ey?void 0:ey.current.contains(null==e?void 0:e.target))||eg(!1)},e4=function(e){var n=e;V||(n=(0,f.formatToOnlyASCIICodeText)(n)),ek(!0),e_(n)},e7=function(e){e.target===(null==eC?void 0:eC.current)&&(e.stopPropagation(),e.preventDefault(),eg(!1))},e5=function(e,n,t){return e=null==e?void 0:e.replace(/["&<>]/g,function(e){var n;return null!=(n=({'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"})[e])?n:""}),(K&&ew?null==e?void 0:e.replace(RegExp(null==ew?void 0:ew.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),"i"),function(e){return'<span class="bg--yellow">'.concat(e,"</span>")}):e)+(n?'<span class="dropdown__list-item-postfix">'.concat(n,"</span>"):"")+(t?'<span class="dropdown__list-item-description">'.concat(t,"</span>"):"")},ne=(j=W&&""!==W&&"string"==typeof W,x=function(e){"open_modal"===e.value?null==T||T("open_modal"):e2(e)},S=[{label:"New ".concat(W),value:"open_modal",className:"dropdown__list-item--modal"}].concat(o(null!=e1?e1:[])),{onChange:function(e){return j?x(e):e2(e)},options:j?S:D}),nn=function(e,t,l){var r,o,i,u;return(0,c.jsxs)("button",{type:"button","data-testid":"".concat(G,"-").concat(l,"-option"),onMouseDown:function(){return ne.onChange(e)},className:(0,a.default)("".concat(y,"__list-item"),(n(u={},"".concat(y,"__list-item_active"),e.value===q),n(u,"".concat(y,"__list-item_disabled"),e.disabled),u),e.className),value:null==e?void 0:e.value,children:[!ef&&(0,c.jsx)("span",{className:(0,a.default)("".concat(y,"__active-icon"),n({},"".concat(y,"__active-icon_active"),e.value===q)),children:(0,c.jsx)(v.Check,{})}),(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__list-item-label"),e.labelClassName||""),dangerouslySetInnerHTML:{__html:e5(e.label,e.postfix,e.description)}}),(null==e?void 0:e.icon)||"",ef?null!=(i=null==e?void 0:e.customMobileIcon)?i:(0,c.jsx)(g.default,{value:e.value,checked:null==q?void 0:q.toString()}):""]},null==(o=e.value)||null==(r=o.toString())?void 0:r.replace(/ /g,"_"))},nt=function(e){var n,t,l,r,o,i;return(null!=(i=null==(n=e.items)?void 0:n.length)?i:0)>0?(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"-group"),e.className),children:[(0,c.jsx)("div",{className:"".concat(y,"-group__name"),children:e.label}),null==(t=e.items)?void 0:t.map(function(e,n){var t;return nn(e,n,null==(t=(null==e?void 0:e.testId)||n)?void 0:t.toString())})]},null==(o=e.label)||null==(r=o.toString())?void 0:r.replace(/ /g,"_").concat(null==(l=Date.now())?void 0:l.toString())):null},nl=null!=(k=null==D||null==(E=D.find(function(e){return e.value===q}))?void 0:E.label)?k:null==D?void 0:D.reduce(function(e,n){var t,l,r;return(null==e?void 0:e.length)?e:null!=(r=null==(l=n.items)||null==(t=l.find(function(e){return e.value===q}))?void 0:t.label)?r:""},""),nr=(0,s.useCallback)(function(e){var n=U||{},t=n.callback,l=n.isWithAnyScrolling,r=n.scrollingInaccuracy,o=null==e?void 0:e.target;t&&"function"==typeof t&&(l?t(e):Math.round(o.clientHeight+o.scrollTop+(void 0===r?0:r))>=o.scrollHeight&&t(e))},[e1]),no=function(){var e,n;return el?ey.current:null!=(n=null!=(e=document.querySelector("div#root"))?e:document.querySelector("div#app"))?n:document.querySelector("div#storybook-root")},ni=function(){var e=document.createElement("div");e.setAttribute("id",ep),e.classList.add("dropdown__container"),ef&&e.addEventListener("click",function(e){(null==e?void 0:e.target).id===ep&&eg(!1)});try{null==(n=e8())||n.remove()}finally{if(ef){try{null==(r=document.getElementById("mlw-".concat(ep)))||r.remove()}catch(e){}var n,t,l,r,o=document.createElement("div");o.classList.add("dropdown-mobile"),o.setAttribute("id","mlw-".concat(ep)),null==o||o.append(e),null==(l=no())||l.append(o)}else null==(t=no())||t.append(e)}},nu=function(){var e,n,t,l,r,o,i,u,c,a,s,d,v,f,p,m,h=e8();if(!h||!eh)return!1;var g=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,b=null!=(v=null==ey||null==(e=ey.current)?void 0:e.getBoundingClientRect())?v:{},w=b.width,_=b.height,y=void 0===_?0:_,j=b.left,x=b.top,S=void 0===x?0:x,C=h.getElementsByClassName("dropdown__list")[0],E=null==ex||null==(n=ex.current)?void 0:n.getElementsByClassName("dropdown__list-header")[0],N=Number.parseInt(null!=(f=null==(l=getComputedStyle(null==ex?void 0:ex.current))||null==(t=l.marginTop)?void 0:t.replace("px",""))?f:"0",10),O=null!=eN?eN:Number.parseInt(null!=(p=null==(o=getComputedStyle(C))||null==(r=o.maxHeight)?void 0:r.replace("px",""))?p:"0",10);null===eN&&eO(O);var L=S-N,I=g-S-y-2*N,k=null==C||null==(i=C.getBoundingClientRect())?void 0:i.height,P=ef?(null==ex||null==(c=ex.current)||null==(u=c.getBoundingClientRect())?void 0:u.height)-(null==E||null==(a=E.getBoundingClientRect())?void 0:a.height):L>=O||I>=O?O-3*N:L>I?L-3*N:I-4*N;return h.style.minWidth="".concat(w,"px"),h.style.left="".concat(j,"px"),h.style.top="".concat("bottom"==(L<I||I>=k?"bottom":"top")?S+y:S-3*N-Number.parseInt(null!=(m=null==(d=getComputedStyle(null==ex?void 0:ex.current))||null==(s=d.height)?void 0:s.replace("px",""))?m:"0",10),"px"),eX!==P&&eG(P),C.style.maxHeight="".concat(P,"px"),!0},nc=function(e){var n=o(e);if(Q){var t=n.filter(function(e){return"open_modal"===e.value}),l=n.filter(function(e){return""===e.value}),r=n.filter(function(e){var n=e.value;return"open_modal"!==n&&""!==n}).sort(m.compareAlphabetical);n=o(t).concat(o(l),o(r)).map(function(e){return(null==e?void 0:e.items)&&(e.items=o(e.items).sort(m.compareAlphabetical)),e})}return n},na=eh?e9:function(){};(0,s.useEffect)(function(){(!el||ey.current)&&(ni(),ed&&!ev&&eg(!0))},[el,ey.current]),(0,s.useLayoutEffect)(function(){var e;return ef?(window.removeEventListener("resize",nu),window.removeEventListener("mousewheel",na),window.removeEventListener("scroll",na),window.removeEventListener("touchmove",na)):(window.addEventListener("resize",nu),window.addEventListener("mousewheel",na),window.addEventListener("scroll",na),window.addEventListener("touchmove",na)),null==(e=e8())||e.addEventListener("click",na),function(){var e;window.removeEventListener("resize",nu),window.removeEventListener("mousewheel",na),window.removeEventListener("scroll",na),window.removeEventListener("touchmove",na),null==(e=e8())||e.removeEventListener("click",na)}},[e8]),(0,s.useLayoutEffect)(function(){nu()},[eX,eh,ew,ef,D]),(0,s.useEffect)(function(){return document.addEventListener("click",e9,!0),function(){return document.removeEventListener("click",e9,!0)}},[]),(0,s.useEffect)(function(){return eh||(ek(!1),eG(0)),U&&(void 0===U?"undefined":i(U))==="object"&&eh&&ej&&ej.current&&ej.current.addEventListener("scroll",nr),function(){U&&(void 0===U?"undefined":i(U))==="object"&&removeEventListener("scroll",nr)}},[eh,ej]),(0,s.useEffect)(function(){var e;return ew||!eA||ef||(e_(nl),e=setTimeout(function(){return eS.current.select()},1)),eA||eh||e_(null),function(){clearTimeout(e)}},[eA]),(0,s.useEffect)(function(){if(eh&&!eA&&(null==eS?void 0:eS.current)&&!ef&&(null==(e=eS.current)||e.focus()),eh?null==(n=e8())||n.classList.add("dropdown__container--opened"):(null==(t=eS.current)||t.blur(),null==(l=e8())||l.classList.remove("dropdown__container--opened")),eh&&ef){var e,n,t,l,r,o,i,u,c=null==ej||null==(r=ej.current)?void 0:r.querySelector("button[value='".concat(q,"']"));c&&(null==ej||null==(u=ej.current)||u.scrollTo(0,(null==c||null==(o=c.getBoundingClientRect())?void 0:o.y)-(null==ej||null==(i=ej.current)?void 0:i.getBoundingClientRect().y)-16))}!eh&&ef&&e_(null)},[eh]),(0,s.useEffect)(function(){if(eh&&ef&&(null==ej?void 0:ej.current)&&!ew){var e,n,t,l;eH((null==ej||null==(e=ej.current)?void 0:e.scrollHeight)>(null==ej||null==(n=ej.current)?void 0:n.clientHeight)),eB(eq||(null==ej||null==(t=ej.current)?void 0:t.scrollHeight)>(null==ej||null==(l=ej.current)?void 0:l.clientHeight))}},[eh,ef,eq,null==ej?void 0:ej.current,null==ej||null==(N=ej.current)?void 0:N.scrollHeight,null==ej||null==(O=ej.current)?void 0:O.clientHeight]),(0,s.useEffect)(function(){var e,n=function(e){var n,t;eW(Number.parseInt(null==e||null==(t=e.target)||null==(n=t.scrollTop)?void 0:n.toString(),10))};return eh&&ef&&(null==ej?void 0:ej.current)&&(null==ej||null==(e=ej.current)||e.addEventListener("scroll",n)),function(){if((null==ej?void 0:ej.current)!==null){var e;null==ej||null==(e=ej.current)||e.removeEventListener("scroll",n)}}},[eh,ef,null==ej?void 0:ej.current]),(0,s.useEffect)(function(){if(null==ej?void 0:ej.current){var e,n;e$(Number.parseInt(((null==ej||null==(e=ej.current)?void 0:e.scrollHeight)-(null==ej||null==(n=ej.current)?void 0:n.clientHeight)).toString(),10))}},[eK,null==ej?void 0:ej.current]),(0,s.useEffect)(function(){return function(){var e,n;null==(e=e8())||e.remove(),null==(n=document.getElementById("mlw-".concat(ep)))||n.remove()}},[]);var ns=nl&&(null==(L=e1.find(function(e){return e.value===q}))?void 0:L.postfix)||null;if(!D)return null;return(0,c.jsxs)("div",{className:(0,a.default)(y,F,(n(P={disabled:R},"".concat(y,"-mobile"),ef),n(P,"".concat(y,"--focused"),eh&&!ef),n(P,"".concat(y,"--with-custom-trigger"),!!eu),P)),ref:ey,onKeyDown:e3,onKeyUp:e6,children:[(0,c.jsx)("button",{type:"button","data-testid":G,className:(0,a.default)("".concat(y,"__trigger"),"input__wrap",(n(A={},"".concat(y,"__trigger--with-actions"),eo),n(A,"placeholder",!q),n(A,"error",H),A)),onClick:function(){return eg(!0)},onKeyDown:e3,onKeyUp:e6,tabIndex:ec,children:eu||(0,c.jsxs)(c.Fragment,{children:[K&&!ef?(0,c.jsx)("input",l(t({ref:eS,className:"".concat(y,"__input"),value:null==(I=eh?null!=ew?ew:"":null!=nl?nl:"")?void 0:I.toString(),onChange:function(e){return e4(e.target.value)},placeholder:B,onFocus:function(){return eM(!0)},onBlur:function(){return eM(!1)},onMouseDown:function(){eh||eM(!0)}},et),{tabIndex:-1})):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text",children:nl||B||""}),ns&&(0,c.jsx)("span",{className:"dropdown__list-item-postfix",children:ns})]}),(0,c.jsx)("span",{className:(0,a.default)("".concat(y,"__arrow"),n({},"".concat(y,"__arrow_active"),eh)),onClick:function(e){null==e||e.stopPropagation(),eg(function(e){return!e})},children:ef?(0,c.jsx)(v.Code,{className:"mobile-icon"}):eh?(0,c.jsx)(v.ChevronUp,{}):(0,c.jsx)(v.ChevronDown,{})})]})}),eo&&(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"__actions")),children:[(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__actions-item")),onClick:ea,children:(0,c.jsx)(v.Check,{})}),(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__actions-item")),onClick:es,children:(0,c.jsx)(v.X,{})})]}),eh&&((C=e8())?(0,d.createPortal)((0,c.jsx)("div",{"data-testid":"".concat(G,"-container-wrapper"),className:(0,a.default)("".concat(y,"__container-wrapper")),ref:eC,onClick:ef?e7:function(){},children:(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"__list-wrapper"),(n(w={},"".concat(y,"__list-wrapper--fixed-height"),eT),n(w,"".concat(y,"__list-wrapper--with-bottom-shadow"),eq&&ef),n(w,"".concat(y,"__list-wrapper--with-bottom-shadow-hidden"),eK===ez),w)),ref:ex,children:[ef&&(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"__list-header"),(n(_={},"".concat(y,"__list-header-with-shadow"),eq&&ef),n(_,"".concat(y,"__list-header-with-shadow-hidden"),0===eK),_)),children:[(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"__list-header-row")),children:[(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__list-label")),children:M}),(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__list-close-icon")),onClick:function(){return eg(!1)},children:(0,c.jsx)(v.X,{onClick:function(){return eg(!1)}})})]}),K&&(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__list-header-row")),children:(0,c.jsx)(h.default,t({ref:eS,className:"".concat(y,"__input"),value:ew,onChange:e4,placeholder:B||"Search",withDelete:!0,onFocus:function(){return eM(!0)},onBlur:function(){return eM(!1)},onMouseDown:function(){eh||eM(!0)}},et))})]}),(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"__list"),n({},"".concat(y,"__list-top"),z)),ref:ej,children:[ne.options&&(null==(u=nc(ne.options))?void 0:u.map(function(e,n){if(null==e||null==(o=e.items)?void 0:o.length)if(!K||!eI)return nt(e);else{var r,o,i,u,c=null==(u=e.items)?void 0:u.slice().filter(function(e){var n;return(null==e||null==(n=e.label)?void 0:n.toLowerCase().includes((null==ew?void 0:ew.toLowerCase())||""))||!(null==e?void 0:e.value)||(null==e?void 0:e.value)===""});if(null==c?void 0:c.length)return nt(l(t({},e),{items:c}))}else if(!K||!eI||(null==e||null==(i=e.label)?void 0:i.toLowerCase().includes((null==ew?void 0:ew.toLowerCase())||""))||!(null==e?void 0:e.value)||(null==e?void 0:e.value)==="")return nn(e,n,null==(r=(null==e?void 0:e.testId)||n)?void 0:r.toString());return null})),!e0.length&&!eZ.length&&(0,c.jsx)("div",{className:"".concat(y,"__list-item ").concat(y,"__list-item--no-options"),children:en}),R&&eh&&(0,c.jsx)(b.default,{})]})]})}),C):null)]})};
1
+ function e(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,l=Array(n);t<n;t++)l[t]=e[t];return l}function n(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function t(e){for(var t=1;t<arguments.length;t++){var l=null!=arguments[t]?arguments[t]:{},r=Object.keys(l);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(l).filter(function(e){return Object.getOwnPropertyDescriptor(l,e).enumerable}))),r.forEach(function(t){n(e,t,l[t])})}return e}function l(e,n){return n=null!=n?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);t.push.apply(t,l)}return t})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e}function r(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t,l,r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o=[],i=!0,u=!1;try{for(r=r.call(e);!(i=(t=r.next()).done)&&(o.push(t.value),!n||o.length!==n);i=!0);}catch(e){u=!0,l=e}finally{try{i||null==r.return||r.return()}finally{if(u)throw l}}return o}}(e,n)||u(e,n)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(n){return function(n){if(Array.isArray(n))return e(n)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||u(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}function u(n,t){if(n){if("string"==typeof n)return e(n,t);var l=Object.prototype.toString.call(n).slice(8,-1);if("Object"===l&&n.constructor&&(l=n.constructor.name),"Map"===l||"Set"===l)return Array.from(l);if("Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l))return e(n,t)}}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return j}});var c=require("react/jsx-runtime"),a=w(require("classnames")),s=function(e,n){if(e&&e.__esModule)return e;if(null===e||(void 0===e?"undefined":i(e))!=="object"&&"function"!=typeof e)return{default:e};var t=_(n);if(t&&t.has(e))return t.get(e);var l={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(l,o,u):l[o]=e[o]}return l.default=e,t&&t.set(e,l),l}(require("react")),d=require("react-dom"),v=require("react-feather"),f=require("../../../Functions/fieldValueFormatters"),p=w(require("../../../Functions/useIsMobile/useIsMobile")),m=require("../../../Functions/utils"),h=w(require("../Input/Input")),g=w(require("../RadioInput/RadioInput")),b=w(require("./components/DropdownLoader"));function w(e){return e&&e.__esModule?e:{default:e}}function _(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,t=new WeakMap;return(_=function(e){return e?t:n})(e)}require("./Dropdown.scss");var y="dropdown",j=function(e){var u,w,_,j,x,S,C,E,N,O,L,I,k,P,A,M=e.label,D=e.options,q=e.value,H=e.error,R=e.disabled,T=e.onChange,B=e.placeholder,F=e.className,K=e.isSearchable,W=e.entity,U=e.scrollReactionObj,z=e.isListTop,$=e.isNotValidateASCII,V=void 0!==$&&$,X=e.testId,G=void 0===X?"dropdown":X,J=e.sortAlphabetical,Q=void 0===J||J,Y=e.fieldKey,Z=e.id,ee=e.noOptionsText,en=void 0===ee?"No options available":ee,et=e.attributesOfNativeInput,el=e.isDoNotPullOutListOfMainContainer,er=e.withMobileLogic,eo=e.withActions,ei=e.minItemsForShowMobileSearch,eu=e.customTrigger,ec=e.tabIndex,ea=e.onActionConfirmClick,es=e.onActionCancelClick,ed=e.isDefaultOpened,ev=(0,p.default)().isMobile,ef=ev&&er&&window.screen.width<=768,ep=r((0,s.useState)((Z||Y||Math.random().toString(16).slice(2)).toString()),1)[0],em=r((0,s.useState)(!1),2),eh=em[0],eg=em[1],eb=r((0,s.useState)(),2),ew=eb[0],e_=eb[1],ey=(0,s.useRef)(null),ej=(0,s.useRef)(null),ex=(0,s.useRef)(null),eS=(0,s.useRef)(null),eC=(0,s.useRef)(null),eE=r((0,s.useState)(null),2),eN=eE[0],eO=eE[1],eL=r((0,s.useState)(!1),2),eI=eL[0],ek=eL[1],eP=r((0,s.useState)(!1),2),eA=eP[0],eM=eP[1],eD=r((0,s.useState)(!1),2),eq=eD[0],eH=eD[1],eR=r((0,s.useState)(!1),2),eT=eR[0],eB=eR[1],eF=r((0,s.useState)(0),2),eK=eF[0],eW=eF[1],eU=r((0,s.useState)(1),2),ez=eU[0],e$=eU[1],eV=r((0,s.useState)(0),2),eX=eV[0],eG=eV[1],eJ=(0,s.useCallback)(function(){var e;return null!=(e=null==D?void 0:D.reduce(function(e,n){if((null==n?void 0:n.list)||(null==n?void 0:n.items)){var t,l;e+=(null==n||null==(t=n.list)?void 0:t.length)||(null==n||null==(l=n.items)?void 0:l.length)||0}else++e;return e},0))?e:0},[D]);ef&&(K=eJ()>((void 0===ei?10:ei)||10));var eQ=function(e){var n=null==e?void 0:e.findIndex(function(e){return(null==e?void 0:e.value)==="other"});if(n>-1){var t=null==e?void 0:e.splice(n,1);e.push.apply(e,o(t))}return e},eY=eQ(null!=D?D:[]);null==D||D.map(function(e){return e.items?e.items=eQ(e.items):e});var eZ=eY.map(function(e){var n;return l(t({},e),{items:K&&eI?null==(n=e.items)?void 0:n.slice().filter(function(e){var n;return(null==e||null==(n=e.label)?void 0:n.toLowerCase().includes((null==ew?void 0:ew.toLowerCase())||""))||!(null==e?void 0:e.value)||(null==e?void 0:e.value)===""}):null==e?void 0:e.items})}).filter(function(e){var n,t;return(null!=(t=null==(n=e.items)?void 0:n.length)?t:0)>0}),e0=eY.filter(function(e){var n;return!(null==(n=e.items)?void 0:n.length)}).filter(function(e){var n;return!K||!eI||(null==e||null==(n=e.label)?void 0:n.toLowerCase().includes((null==ew?void 0:ew.toLowerCase())||""))||!(null==e?void 0:e.value)||(null==e?void 0:e.value)===""}),e1=o(e0).concat(o(eZ)),e2=function(e){eg(!1),null==T||T(e.value)},e3=function(e){return!![9,13].includes(e.keyCode)&&(eg(!1),!0)},e6=function(e){return!![9,13].includes(e.keyCode)&&(eg(!0),!0)},e8=function(){return document.getElementById(ep)},e9=function(e){var n;(null==(n=e8())?void 0:n.contains(null==e?void 0:e.target))||(null==ey?void 0:ey.current)===null||(null==ey?void 0:ey.current.contains(null==e?void 0:e.target))||eg(!1)},e4=function(e){var n=e;V||(n=(0,f.formatToOnlyASCIICodeText)(n)),ek(!0),e_(n)},e7=function(e){e.target===(null==eC?void 0:eC.current)&&(e.stopPropagation(),e.preventDefault(),eg(!1))},e5=function(e,n,t){return e=null==e?void 0:e.replace(/["&<>]/g,function(e){var n;return null!=(n=({'"':"&quot;","&":"&amp;","<":"&lt;",">":"&gt;"})[e])?n:""}),(K&&ew?null==e?void 0:e.replace(RegExp(null==ew?void 0:ew.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&"),"i"),function(e){return'<span class="bg--yellow">'.concat(e,"</span>")}):e)+(n?'<span class="dropdown__list-item-postfix">'.concat(n,"</span>"):"")+(t?'<span class="dropdown__list-item-description">'.concat(t,"</span>"):"")},ne=(j=W&&""!==W&&"string"==typeof W,x=function(e){"open_modal"===e.value?null==T||T("open_modal"):e2(e)},S=[{label:"New ".concat(W),value:"open_modal",className:"dropdown__list-item--modal"}].concat(o(null!=e1?e1:[])),{onChange:function(e){return j?x(e):e2(e)},options:j?S:D}),nn=function(e,t,l){var r,o,i,u;return(0,c.jsxs)("button",{type:"button","data-testid":"".concat(G,"-").concat(l,"-option"),onMouseDown:function(){return ne.onChange(e)},className:(0,a.default)("".concat(y,"__list-item"),(n(u={},"".concat(y,"__list-item_active"),e.value===q),n(u,"".concat(y,"__list-item_disabled"),e.disabled),u),e.className),value:null==e?void 0:e.value,children:[!ef&&(0,c.jsx)("span",{className:(0,a.default)("".concat(y,"__active-icon"),n({},"".concat(y,"__active-icon_active"),e.value===q)),children:(0,c.jsx)(v.Check,{})}),(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__list-item-label"),e.labelClassName||""),dangerouslySetInnerHTML:{__html:e5(e.label,e.postfix,e.description)}}),(null==e?void 0:e.icon)||"",ef?null!=(i=null==e?void 0:e.customMobileIcon)?i:(0,c.jsx)(g.default,{value:e.value,checked:null==q?void 0:q.toString()}):""]},null==(o=e.value)||null==(r=o.toString())?void 0:r.replace(/ /g,"_"))},nt=function(e){var n,t,l,r,o,i;return(null!=(i=null==(n=e.items)?void 0:n.length)?i:0)>0?(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"-group"),e.className),children:[(0,c.jsx)("div",{className:"".concat(y,"-group__name"),children:e.label}),null==(t=e.items)?void 0:t.map(function(e,n){var t;return nn(e,n,null==(t=(null==e?void 0:e.testId)||n)?void 0:t.toString())})]},null==(o=e.label)||null==(r=o.toString())?void 0:r.replace(/ /g,"_").concat(null==(l=Date.now())?void 0:l.toString())):null},nl=null!=(k=null==D||null==(E=D.find(function(e){return e.value===q}))?void 0:E.label)?k:null==D?void 0:D.reduce(function(e,n){var t,l,r;return(null==e?void 0:e.length)?e:null!=(r=null==(l=n.items)||null==(t=l.find(function(e){return e.value===q}))?void 0:t.label)?r:""},""),nr=(0,s.useCallback)(function(e){var n=U||{},t=n.callback,l=n.isWithAnyScrolling,r=n.scrollingInaccuracy,o=null==e?void 0:e.target;t&&"function"==typeof t&&(l?t(e):Math.round(o.clientHeight+o.scrollTop+(void 0===r?0:r))>=o.scrollHeight&&t(e))},[e1]),no=function(){var e,n;return el?ey.current:null!=(n=null!=(e=document.querySelector("div#root"))?e:document.querySelector("div#app"))?n:document.querySelector("div#storybook-root")},ni=function(){var e=document.createElement("div");e.setAttribute("id",ep),e.classList.add("dropdown__container"),ef&&e.addEventListener("click",function(e){(null==e?void 0:e.target).id===ep&&eg(!1)});try{null==(n=e8())||n.remove()}finally{if(ef){try{null==(r=document.getElementById("mlw-".concat(ep)))||r.remove()}catch(e){}var n,t,l,r,o=document.createElement("div");o.classList.add("dropdown-mobile"),o.setAttribute("id","mlw-".concat(ep)),null==o||o.append(e),null==(l=no())||l.append(o)}else null==(t=no())||t.append(e)}},nu=function(){var e,n,t,l,r,o,i,u,c,a,s,d,v,f,p,m,h=e8();if(!h||!eh)return!1;var g=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,b=null!=(v=null==ey||null==(e=ey.current)?void 0:e.getBoundingClientRect())?v:{},w=b.width,_=b.height,y=void 0===_?0:_,j=b.left,x=b.top,S=void 0===x?0:x,C=h.getElementsByClassName("dropdown__list")[0],E=null==ex||null==(n=ex.current)?void 0:n.getElementsByClassName("dropdown__list-header")[0],N=Number.parseInt(null!=(f=null==(l=getComputedStyle(null==ex?void 0:ex.current))||null==(t=l.marginTop)?void 0:t.replace("px",""))?f:"0",10),O=null!=eN?eN:Number.parseInt(null!=(p=null==(o=getComputedStyle(C))||null==(r=o.maxHeight)?void 0:r.replace("px",""))?p:"0",10);null===eN&&eO(O);var L=S-N,I=g-S-y-2*N,k=null==C||null==(i=C.getBoundingClientRect())?void 0:i.height,P=ef?(null==ex||null==(c=ex.current)||null==(u=c.getBoundingClientRect())?void 0:u.height)-(null==E||null==(a=E.getBoundingClientRect())?void 0:a.height):L>=O||I>=O?O-3*N:L>I?L-3*N:I-4*N;return h.style.minWidth="".concat(w,"px"),h.style.left="".concat(j,"px"),h.style.top="".concat("bottom"==(L<I||I>=k?"bottom":"top")?S+y:S-3*N-Number.parseInt(null!=(m=null==(d=getComputedStyle(null==ex?void 0:ex.current))||null==(s=d.height)?void 0:s.replace("px",""))?m:"0",10),"px"),eX===P||ef||eG(P),C.style.maxHeight="".concat(P,"px"),!0},nc=function(e){var n=o(e);if(Q){var t=n.filter(function(e){return"open_modal"===e.value}),l=n.filter(function(e){return""===e.value}),r=n.filter(function(e){var n=e.value;return"open_modal"!==n&&""!==n}).sort(m.compareAlphabetical);n=o(t).concat(o(l),o(r)).map(function(e){return(null==e?void 0:e.items)&&(e.items=o(e.items).sort(m.compareAlphabetical)),e})}return n},na=eh?e9:function(){};(0,s.useEffect)(function(){(!el||ey.current)&&(ni(),ed&&!ev&&eg(!0))},[el,ey.current]),(0,s.useLayoutEffect)(function(){var e;return ef?(window.removeEventListener("resize",nu),window.removeEventListener("mousewheel",na),window.removeEventListener("scroll",na),window.removeEventListener("touchmove",na)):(window.addEventListener("resize",nu),window.addEventListener("mousewheel",na),window.addEventListener("scroll",na),window.addEventListener("touchmove",na)),null==(e=e8())||e.addEventListener("click",na),function(){var e;window.removeEventListener("resize",nu),window.removeEventListener("mousewheel",na),window.removeEventListener("scroll",na),window.removeEventListener("touchmove",na),null==(e=e8())||e.removeEventListener("click",na)}},[e8]),(0,s.useLayoutEffect)(function(){nu()},[eX,eh,ew,ef,D]),(0,s.useEffect)(function(){return document.addEventListener("click",e9,!0),function(){return document.removeEventListener("click",e9,!0)}},[]),(0,s.useEffect)(function(){return!eh&&(ek(!1),ef||eG(0)),U&&(void 0===U?"undefined":i(U))==="object"&&eh&&ej&&ej.current&&ej.current.addEventListener("scroll",nr),function(){U&&(void 0===U?"undefined":i(U))==="object"&&removeEventListener("scroll",nr)}},[eh,ej]),(0,s.useEffect)(function(){var e;return ew||!eA||ef||(e_(nl),e=setTimeout(function(){return eS.current.select()},1)),eA||eh||e_(null),function(){clearTimeout(e)}},[eA]),(0,s.useEffect)(function(){if(eh&&!eA&&(null==eS?void 0:eS.current)&&!ef&&(null==(e=eS.current)||e.focus()),eh?null==(n=e8())||n.classList.add("dropdown__container--opened"):(null==(t=eS.current)||t.blur(),null==(l=e8())||l.classList.remove("dropdown__container--opened")),eh&&ef){var e,n,t,l,r,o,i,u,c=null==ej||null==(r=ej.current)?void 0:r.querySelector("button[value='".concat(q,"']"));c&&(null==ej||null==(u=ej.current)||u.scrollTo(0,(null==c||null==(o=c.getBoundingClientRect())?void 0:o.y)-(null==ej||null==(i=ej.current)?void 0:i.getBoundingClientRect().y)-16))}!eh&&ef&&e_(null)},[eh]),(0,s.useEffect)(function(){if(eh&&ef&&(null==ej?void 0:ej.current)&&!ew){var e,n,t,l;eH((null==ej||null==(e=ej.current)?void 0:e.scrollHeight)>(null==ej||null==(n=ej.current)?void 0:n.clientHeight)),eB(eq||(null==ej||null==(t=ej.current)?void 0:t.scrollHeight)>(null==ej||null==(l=ej.current)?void 0:l.clientHeight))}},[eh,ef,eq,null==ej?void 0:ej.current,null==ej||null==(N=ej.current)?void 0:N.scrollHeight,null==ej||null==(O=ej.current)?void 0:O.clientHeight]),(0,s.useEffect)(function(){var e,n=function(e){var n,t;eW(Number.parseInt(null==e||null==(t=e.target)||null==(n=t.scrollTop)?void 0:n.toString(),10))};return eh&&ef&&(null==ej?void 0:ej.current)&&(null==ej||null==(e=ej.current)||e.addEventListener("scroll",n)),function(){if((null==ej?void 0:ej.current)!==null){var e;null==ej||null==(e=ej.current)||e.removeEventListener("scroll",n)}}},[eh,ef,null==ej?void 0:ej.current]),(0,s.useEffect)(function(){if(null==ej?void 0:ej.current){var e,n;e$(Number.parseInt(((null==ej||null==(e=ej.current)?void 0:e.scrollHeight)-(null==ej||null==(n=ej.current)?void 0:n.clientHeight)).toString(),10))}},[eK,null==ej?void 0:ej.current]),(0,s.useEffect)(function(){return function(){var e,n;null==(e=e8())||e.remove(),null==(n=document.getElementById("mlw-".concat(ep)))||n.remove()}},[]);var ns=nl&&(null==(L=e1.find(function(e){return e.value===q}))?void 0:L.postfix)||null;if(!D)return null;return(0,c.jsxs)("div",{className:(0,a.default)(y,F,(n(P={disabled:R},"".concat(y,"-mobile"),ef),n(P,"".concat(y,"--focused"),eh&&!ef),n(P,"".concat(y,"--with-custom-trigger"),!!eu),P)),ref:ey,onKeyDown:e3,onKeyUp:e6,children:[(0,c.jsx)("button",{type:"button","data-testid":G,className:(0,a.default)("".concat(y,"__trigger"),"input__wrap",(n(A={},"".concat(y,"__trigger--with-actions"),eo),n(A,"placeholder",!q),n(A,"error",H),A)),onClick:function(){return eg(!0)},onKeyDown:e3,onKeyUp:e6,tabIndex:ec,children:eu||(0,c.jsxs)(c.Fragment,{children:[K&&!ef?(0,c.jsx)("input",l(t({ref:eS,className:"".concat(y,"__input"),value:null==(I=eh?null!=ew?ew:"":null!=nl?nl:"")?void 0:I.toString(),onChange:function(e){return e4(e.target.value)},placeholder:B,onFocus:function(){return eM(!0)},onBlur:function(){return eM(!1)},onMouseDown:function(){eh||eM(!0)}},et),{tabIndex:-1})):(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("span",{className:"text",children:nl||B||""}),ns&&(0,c.jsx)("span",{className:"dropdown__list-item-postfix",children:ns})]}),(0,c.jsx)("span",{className:(0,a.default)("".concat(y,"__arrow"),n({},"".concat(y,"__arrow_active"),eh)),onClick:function(e){null==e||e.stopPropagation(),eg(function(e){return!e})},children:ef?(0,c.jsx)(v.Code,{className:"mobile-icon"}):eh?(0,c.jsx)(v.ChevronUp,{}):(0,c.jsx)(v.ChevronDown,{})})]})}),eo&&(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"__actions")),children:[(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__actions-item")),onClick:ea,children:(0,c.jsx)(v.Check,{})}),(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__actions-item")),onClick:es,children:(0,c.jsx)(v.X,{})})]}),eh&&((C=e8())?(0,d.createPortal)((0,c.jsx)("div",{"data-testid":"".concat(G,"-container-wrapper"),className:(0,a.default)("".concat(y,"__container-wrapper")),ref:eC,onClick:ef?e7:function(){},children:(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"__list-wrapper"),(n(w={},"".concat(y,"__list-wrapper--fixed-height"),eT),n(w,"".concat(y,"__list-wrapper--with-bottom-shadow"),eq&&ef),n(w,"".concat(y,"__list-wrapper--with-bottom-shadow-hidden"),eK===ez),w)),ref:ex,children:[ef&&(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"__list-header"),(n(_={},"".concat(y,"__list-header-with-shadow"),eq&&ef),n(_,"".concat(y,"__list-header-with-shadow-hidden"),0===eK),_)),children:[(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"__list-header-row")),children:[(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__list-label")),children:M}),(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__list-close-icon")),onClick:function(){return eg(!1)},children:(0,c.jsx)(v.X,{onClick:function(){return eg(!1)}})})]}),K&&(0,c.jsx)("div",{className:(0,a.default)("".concat(y,"__list-header-row")),children:(0,c.jsx)(h.default,t({ref:eS,className:"".concat(y,"__input"),value:ew,onChange:e4,placeholder:B||"Search",withDelete:!0,onFocus:function(){return eM(!0)},onBlur:function(){return eM(!1)},onMouseDown:function(){eh||eM(!0)}},et))})]}),(0,c.jsxs)("div",{className:(0,a.default)("".concat(y,"__list"),n({},"".concat(y,"__list-top"),z)),ref:ej,children:[ne.options&&(null==(u=nc(ne.options))?void 0:u.map(function(e,n){if(null==e||null==(o=e.items)?void 0:o.length)if(!K||!eI)return nt(e);else{var r,o,i,u,c=null==(u=e.items)?void 0:u.slice().filter(function(e){var n;return(null==e||null==(n=e.label)?void 0:n.toLowerCase().includes((null==ew?void 0:ew.toLowerCase())||""))||!(null==e?void 0:e.value)||(null==e?void 0:e.value)===""});if(null==c?void 0:c.length)return nt(l(t({},e),{items:c}))}else if(!K||!eI||(null==e||null==(i=e.label)?void 0:i.toLowerCase().includes((null==ew?void 0:ew.toLowerCase())||""))||!(null==e?void 0:e.value)||(null==e?void 0:e.value)==="")return nn(e,n,null==(r=(null==e?void 0:e.testId)||n)?void 0:r.toString());return null})),!e0.length&&!eZ.length&&(0,c.jsx)("div",{className:"".concat(y,"__list-item ").concat(y,"__list-item--no-options"),children:en}),R&&eh&&(0,c.jsx)(b.default,{})]})]})}),C):null)]})};
@@ -28,7 +28,6 @@ export interface IAccordionItemProps extends IUniProps {
28
28
  isOpen: boolean;
29
29
  children?: React.ReactNode;
30
30
  noChevron?: boolean;
31
- defaultTitle?: string | React.ReactNode;
32
31
  }
33
32
 
34
33
  export interface IAccordionProps extends IUniProps {
@@ -1 +1 @@
1
- function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return s}});var t=require("react/jsx-runtime"),r=c(require("classnames")),n=u(require("react")),a=u(require("react-feather")),i=require("react-router-dom"),o=c(require("../Status"));function c(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}require("./Accordion.scss");var s=function(c){var l,u,s,d=c.item,f=c.onClick,v=c.isOpen,p=c.className,m=c.children,y=c.noChevron,h=c.testId,b=c.defaultTitle,j=a[d.icon],x=(l=(0,n.useState)(0),function(e){if(Array.isArray(e))return e}(l)||function(e,t){var r,n,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,c=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),i.length!==t);o=!0);}catch(e){c=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(c)throw n}}return i}}(l,2)||function(t,r){if(t){if("string"==typeof t)return e(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}}(l,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),g=x[0],N=x[1],O=(0,n.useRef)(null),_=function(){var e,t=0;return null==(e=O.current)||e.childNodes.forEach(function(e){t+=e.offsetHeight}),t+20};(0,n.useEffect)(function(){N(v?_():0)},[v]);var w=function(){var e;return null==d||null==(e=d.rows)?void 0:e.reduce(function(e,t){var r=t.cols.reduce(function(e,t){return{active:e.active+ +("active"===t.status),pause:e.pause+ +("pause"===t.status)}},{active:0,pause:0});return{active:e.active+r.active,pause:e.pause+r.pause}},{active:0,pause:0})};return(0,t.jsxs)("div",{"data-testid":void 0===h?"accordion-item":h,className:(0,r.default)("accordion--item",p),role:"region","aria-labelledby":"accordion-title-".concat(d.title),children:[(0,t.jsxs)("div",{className:(0,r.default)("accordion--title-box",{"accordion--title-open":v}),onClick:function(){return f(!v)},id:"accordion-title-".concat(d.title),role:"button","aria-expanded":v,"aria-controls":"accordion-content-".concat(d.title),tabIndex:0,children:[(0,t.jsxs)("div",{className:"j4 no-wrap",children:[(null==d?void 0:d.icon)&&(0,t.jsx)(j,{className:(0,r.default)("mr5",null==d?void 0:d.className),"aria-hidden":"true"}),(0,t.jsx)("span",{className:"accordion--title",children:d.title||(void 0===b?"":b)})]}),(0,t.jsxs)("div",{className:"j6 accordion-title__right-box",children:[d.status&&(0,t.jsx)("div",{className:"mr5",children:(0,t.jsx)(o.default,{type:null==d?void 0:d.status.type,value:null==d?void 0:d.status.value,status:null==d?void 0:d.status.status,active:null==(u=w())?void 0:u.active,pause:null==(s=w())?void 0:s.pause})}),!y&&(0,t.jsx)(a.ChevronRight,{"aria-hidden":"true",className:(0,r.default)("accordion--title-chevron",{"accordion--title-chevron-open":v})})]})]}),(0,t.jsx)("div",{ref:O,style:{maxHeight:g},className:(0,r.default)("accordion--content",{"accordion--content-is-open":v}),id:"accordion-content-".concat(d.title),role:"region","aria-labelledby":"accordion-title-".concat(d.title),children:d.children?d.children.map(function(e){return(0,t.jsx)(i.NavLink,{to:e.link,className:"accordion--content-item accordion--menu-link",children:(null==e?void 0:e.title)||"Menu item"},e.id)}):m})]})};
1
+ function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return s}});var t=require("react/jsx-runtime"),r=c(require("classnames")),n=u(require("react")),a=u(require("react-feather")),i=require("react-router-dom"),o=c(require("../Status"));function c(e){return e&&e.__esModule?e:{default:e}}function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}function u(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||(void 0===e?"undefined":e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)!="object"&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}require("./Accordion.scss");var s=function(c){var l,u,s,d=c.item,f=c.onClick,v=c.isOpen,p=c.className,m=c.children,y=c.noChevron,h=c.testId,b=a[d.icon],j=(l=(0,n.useState)(0),function(e){if(Array.isArray(e))return e}(l)||function(e,t){var r,n,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var i=[],o=!0,c=!1;try{for(a=a.call(e);!(o=(r=a.next()).done)&&(i.push(r.value),i.length!==t);o=!0);}catch(e){c=!0,n=e}finally{try{o||null==a.return||a.return()}finally{if(c)throw n}}return i}}(l,2)||function(t,r){if(t){if("string"==typeof t)return e(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e(t,r)}}(l,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),x=j[0],g=j[1],N=(0,n.useRef)(null),O=function(){var e,t=0;return null==(e=N.current)||e.childNodes.forEach(function(e){t+=e.offsetHeight}),t+20};(0,n.useEffect)(function(){g(v?O():0)},[v]);var _=function(){var e;return null==d||null==(e=d.rows)?void 0:e.reduce(function(e,t){var r=t.cols.reduce(function(e,t){return{active:e.active+ +("active"===t.status),pause:e.pause+ +("pause"===t.status)}},{active:0,pause:0});return{active:e.active+r.active,pause:e.pause+r.pause}},{active:0,pause:0})};return(0,t.jsxs)("div",{"data-testid":void 0===h?"accordion-item":h,className:(0,r.default)("accordion--item",p),role:"region","aria-labelledby":"accordion-title-".concat(d.title),children:[(0,t.jsxs)("div",{className:(0,r.default)("accordion--title-box",{"accordion--title-open":v}),onClick:function(){return f(!v)},id:"accordion-title-".concat(d.title),role:"button","aria-expanded":v,"aria-controls":"accordion-content-".concat(d.title),tabIndex:0,children:[(0,t.jsxs)("div",{className:"j4 no-wrap",children:[(null==d?void 0:d.icon)&&(0,t.jsx)(b,{className:(0,r.default)("mr5",null==d?void 0:d.className),"aria-hidden":"true"}),(0,t.jsx)("span",{className:"accordion--title",children:d.title||"Menu Chapter"})]}),(0,t.jsxs)("div",{className:"j6 accordion-title__right-box",children:[d.status&&(0,t.jsx)("div",{className:"mr5",children:(0,t.jsx)(o.default,{type:null==d?void 0:d.status.type,value:null==d?void 0:d.status.value,status:null==d?void 0:d.status.status,active:null==(u=_())?void 0:u.active,pause:null==(s=_())?void 0:s.pause})}),!y&&(0,t.jsx)(a.ChevronRight,{"aria-hidden":"true",className:(0,r.default)("accordion--title-chevron",{"accordion--title-chevron-open":v})})]})]}),(0,t.jsx)("div",{ref:N,style:{maxHeight:x},className:(0,r.default)("accordion--content",{"accordion--content-is-open":v}),id:"accordion-content-".concat(d.title),role:"region","aria-labelledby":"accordion-title-".concat(d.title),children:d.children?d.children.map(function(e){return(0,t.jsx)(i.NavLink,{to:e.link,className:"accordion--content-item accordion--menu-link",children:(null==e?void 0:e.title)||"Menu item"},e.id)}):m})]})};
@@ -0,0 +1,16 @@
1
+ interface UseIsMobileProps {
2
+ isWithoutWidthCheck?: boolean;
3
+ }
4
+ interface UseIsMobileProps {
5
+ isWithoutWidthCheck?: boolean;
6
+ }
7
+ /**
8
+ * Hook to detect if the current device is a mobile device
9
+ * @param props - Configuration options
10
+ * @param props.isWithoutWidthCheck - If true, only checks user agent without width verification
11
+ * @returns Object containing isMobile flag
12
+ */
13
+ declare function useIsMobile({ isWithoutWidthCheck }?: UseIsMobileProps): {
14
+ isMobile: boolean;
15
+ };
16
+ export default useIsMobile;
@@ -1 +1 @@
1
- function t(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return e}});var r=require("react"),e=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.isWithoutWidthCheck,i=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Macintosh/i.test(navigator.userAgent)},a=(e=(0,r.useState)(i()),function(t){if(Array.isArray(t))return t}(e)||function(t,r){var e,n,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(t);!(a=(e=o.next()).done)&&(i.push(e.value),i.length!==r);a=!0);}catch(t){u=!0,n=t}finally{try{a||null==o.return||o.return()}finally{if(u)throw n}}return i}}(e,2)||function(r,e){if(r){if("string"==typeof r)return t(r,2);var n=Object.prototype.toString.call(r).slice(8,-1);if("Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(r,e)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),u=a[0],l=a[1];return(0,r.useEffect)(function(){i()&&l(!0)},[navigator.userAgent]),{isMobile:u&&(void 0!==o&&o||window.screen.width<=768)}};
1
+ function t(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,n=Array(r);e<r;e++)n[e]=t[e];return n}Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"default",{enumerable:!0,get:function(){return e}});var r=require("react"),e=function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=n.isWithoutWidthCheck,i=function(){var t=navigator.userAgent||navigator.vendor||window.opera,r=/Macintosh/.test(t),e=navigator.maxTouchPoints&&navigator.maxTouchPoints>2;return r&&!!e},a=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)||i()},u=(e=(0,r.useState)(a()),function(t){if(Array.isArray(t))return t}(e)||function(t,r){var e,n,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,u=!1;try{for(o=o.call(t);!(a=(e=o.next()).done)&&(i.push(e.value),i.length!==r);a=!0);}catch(t){u=!0,n=t}finally{try{a||null==o.return||o.return()}finally{if(u)throw n}}return i}}(e,2)||function(r,e){if(r){if("string"==typeof r)return t(r,2);var n=Object.prototype.toString.call(r).slice(8,-1);if("Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(r,e)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=u[0],c=u[1];return(0,r.useEffect)(function(){a()&&c(!0)},[navigator.userAgent]),{isMobile:l&&(void 0!==o&&o||window.screen.width<=768)}};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useIsMobile.js","sourceRoot":"","sources":["../../../src/Functions/useIsMobile/useIsMobile.ts"],"names":[],"mappings":";;AAAA,iCAA4C;AAS5C;;;;;GAKG;AACH,SAAS,WAAW,CAAC,EAAE,mBAAmB,GAAG,KAAK,KAAuB,EAAE;IACzE,MAAM,MAAM,GAAG,GAAY,EAAE;QAC3B,MAAM,EAAE,GAAG,SAAS,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,IAAK,MAAc,CAAC,KAAK,CAAC;QAE5E,qDAAqD;QACrD,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,SAAS,CAAC,cAAc,IAAI,SAAS,CAAC,cAAc,GAAG,CAAC,CAAC;QAE1E,OAAO,KAAK,IAAI,CAAC,CAAC,QAAQ,CAAC;IAC7B,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAY,EAAE;QAChC,OAAO,gEAAgE,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAAI,MAAM,EAAE,CAAC;IAChH,CAAC,CAAC;IAEF,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,IAAA,gBAAQ,EAAU,WAAW,EAAE,CAAC,CAAC;IAEjE,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,WAAW,EAAE,EAAE,CAAC;YAClB,WAAW,CAAC,IAAI,CAAC,CAAC;QACpB,CAAC;IACH,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IAE1B,OAAO;QACL,QAAQ,EAAE,QAAQ,IAAI,CAAC,mBAAmB,IAAI,MAAM,CAAC,MAAM,CAAC,KAAK,IAAI,GAAG,CAAC;KAC1E,CAAC;AACJ,CAAC;AAED,kBAAe,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intelicoreact",
3
- "version": "1.6.45",
3
+ "version": "1.6.47",
4
4
  "description": "",
5
5
  "author": "Andrey Isakov",
6
6
  "license": "ISC",
@@ -1,2 +0,0 @@
1
- export default MainMenu;
2
- declare function MainMenu(props: any): JSX.Element;
@@ -1,5 +0,0 @@
1
- import type { IAccordionProps } from './Accordion.interface';
2
- import React from 'react';
3
- import './Accordion.scss';
4
- declare const Accordion: React.FC<IAccordionProps>;
5
- export default Accordion;
@@ -1,57 +0,0 @@
1
- import type React from 'react';
2
- import type { IUniProps } from '../../../types/base.interface';
3
- export interface IAccordionItemProps extends IUniProps {
4
- item: {
5
- icon: string;
6
- title?: string;
7
- link?: string;
8
- className?: string;
9
- status?: {
10
- type: string;
11
- value: string;
12
- status: string;
13
- };
14
- rows?: Array<{
15
- cols: Array<{
16
- status: string;
17
- }>;
18
- }>;
19
- children?: Array<{
20
- link: string;
21
- id: string;
22
- title?: string;
23
- }>;
24
- };
25
- onClick: (isOpen: boolean) => void;
26
- isOpen: boolean;
27
- children?: React.ReactNode;
28
- noChevron?: boolean;
29
- defaultTitle?: string | React.ReactNode;
30
- }
31
- export interface IAccordionProps extends IUniProps {
32
- items: Array<{
33
- icon: string;
34
- title?: string;
35
- link?: string;
36
- className?: string;
37
- isOpen?: boolean;
38
- status?: {
39
- type: string;
40
- value: string;
41
- status: string;
42
- };
43
- rows?: Array<{
44
- cols: Array<{
45
- status: string;
46
- }>;
47
- }>;
48
- children?: Array<{
49
- link: string;
50
- id: string;
51
- title?: string;
52
- }>;
53
- }>;
54
- itemClassName?: string;
55
- isMenuHovered?: boolean;
56
- isOpen?: boolean;
57
- }
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,"__esModule",{value:!0});
@@ -1 +0,0 @@
1
- {"version":3,"file":"Accordion.interface.js","sourceRoot":"","sources":["../../../../src/Atomic/UI/Accordion/Accordion.interface.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import type { IAccordionItemProps } from './Accordion.interface';
2
- import React from 'react';
3
- import './Accordion.scss';
4
- declare const AccordionItem: React.FC<IAccordionItemProps>;
5
- export default AccordionItem;
@@ -1 +0,0 @@
1
- {"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../../src/Atomic/UI/Accordion/AccordionItem.tsx"],"names":[],"mappings":"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"}
@@ -1,3 +0,0 @@
1
- import Accordion from './Accordion';
2
- export default Accordion;
3
- export type { IAccordionItemProps, IAccordionProps } from './Accordion.interface';
@@ -1,13 +0,0 @@
1
- export default TdCell;
2
- declare function TdCell({ type, item, rowIndex, onChange, cardLength, changePriority, getAdviceWeight, onActionClick, rowItem, isDeleted, }: {
3
- type: any;
4
- item: any;
5
- rowIndex: any;
6
- onChange: any;
7
- cardLength: any;
8
- changePriority: any;
9
- getAdviceWeight: any;
10
- onActionClick: any;
11
- rowItem: any;
12
- isDeleted: any;
13
- }): any;
@@ -1,17 +0,0 @@
1
- export default TdRow;
2
- declare function TdRow({ item, onChange, rowIndex, cardStatus, range, type, rowSpan, colSpan, cardLength, changePriority, getAdviceWeight, onActionClick, isDeleted, testId, }: {
3
- item: any;
4
- onChange: any;
5
- rowIndex: any;
6
- cardStatus: any;
7
- range: any;
8
- type: any;
9
- rowSpan: any;
10
- colSpan: any;
11
- cardLength: any;
12
- changePriority: any;
13
- getAdviceWeight: any;
14
- onActionClick: any;
15
- isDeleted: any;
16
- testId?: string | undefined;
17
- }): JSX.Element;
@@ -1,9 +0,0 @@
1
- export default Table;
2
- declare function Table({ rows, onChange, className, header, onActionClick, testId, }: {
3
- rows: any;
4
- onChange: any;
5
- className: any;
6
- header: any;
7
- onActionClick: any;
8
- testId?: string | undefined;
9
- }): JSX.Element;