@zealicsolutions/web-ui 1.0.140-beta.58 → 1.0.140-beta.59

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/cjs/index.js CHANGED
@@ -799,7 +799,7 @@
799
799
  right: ${e["4XL"]}px;
800
800
  cursor: pointer;
801
801
  `};
802
- `,l7e="webpageId",c7e="applicationId",u7e="viewApplicationId",d7e="selected-webpage-id",p7e="selectedWebpageId",h7e=(e,t)=>{if(!t||"string"!=typeof t)return"";const r=t.match(new RegExp(`[?&]${e}=([^&]*)`));return r?decodeURIComponent(r[1]):""},f7e=(e,t)=>{const r=t||window.location.href,o=h7e("rwoContext",r);if(o)try{const t=vGe(o),r=t?.[e];if(r&&"object"==typeof r&&"rwoRecordId"in r)return r.rwoRecordId}catch(n){}return h7e("rwoRecordId",r)||void 0},m7e=(e,t,r=!1)=>{if(!t)return e;const o=h7e(l7e,t),n=h7e(c7e,t);if(!o||!n)return e;const a=new URLSearchParams(e.toString());return r?(e.has(u7e)&&a.set(u7e,n),e.has(d7e)&&a.set(d7e,o)):(e.has(p7e)&&a.set(p7e,o),a.set(p7e,o)),a},y7e=async(e="",t="Downloaded file")=>{try{const r=await fetch(e),o=await r.blob(),n=URL.createObjectURL(o),a=document.createElement("a");a.href=n,a.download=t,a.click(),URL.revokeObjectURL(n)}catch(r){r6e({message:`Failed to download the file: ${r}`,type:"error"})}},g7e=e=>{if(!e)return;if("object"==typeof e&&"type"in e){const t=e;if(x7e(t))return;return v7e(t.externalLink)}return v7e(e)},v7e=e=>{if(!e||"string"!=typeof e)return;if(mKe.test(e))try{const t=window.open(e,"_blank","noopener,noreferrer");if(t){[20,120,300,600].forEach(e=>{setTimeout(()=>{try{t.blur()}catch(e){}try{window.focus()}catch(e){}},e)})}}catch(t){}else try{console.error("navigateToExternalLink: invalid external URL",{url:e})}catch(t){}},x7e=e=>{if(!e)return!1;const t=e?.type||e?.linkType;return"internal_link"===t||"internalLink"===t},b7e=e=>!!e&&("data_driven_link"===e.type||"dataDrivenLink"===e.type),w7e=(e,t)=>{if(!e)return;const r=new URL(window.location.href),o=m7e(r.searchParams,e,t);return r.search=o.toString(),r.toString()},k7e=(e,t)=>{if(e)return x7e(e)?w7e(e?.internalLink,t):e?.externalLink},_7e=e=>{if(!e)return null;try{const t=e.startsWith("http")?e:new URL(e,window.location.origin).toString();return new URL(t)}catch(t){return null}},C7e=e=>{const t=_7e(e);if(!t)return;const r=t.searchParams,o=r.get(l7e)||r.get(p7e)||r.get(d7e);if(o)return o;const n=(t.pathname||"").split("/").map(e=>e.trim()).filter(e=>e.length>0);for(const a of n){const[e,t]=a.split("=");if(e&&null!=t&&(e===l7e||e===p7e||e===d7e))return decodeURIComponent(t)}};var M7e={},S7e={},D7e={},O7e={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}}(O7e);var P7e=/^\s+|\s+$/g,E7e=/^[-+]0x[0-9a-f]+$/i,j7e=/^0b[01]+$/i,T7e=/^0o[0-7]+$/i,N7e=parseInt,R7e="object"==typeof Q&&Q&&Q.Object===Object&&Q,F7e="object"==typeof self&&self&&self.Object===Object&&self,z7e=R7e||F7e||Function("return this")(),I7e=Object.prototype.toString,A7e=Math.max,L7e=Math.min,B7e=function(){return z7e.Date.now()};function V7e(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $7e(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==I7e.call(e)}(e))return NaN;if(V7e(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=V7e(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(P7e,"");var r=j7e.test(e);return r||T7e.test(e)?N7e(e.slice(2),r?2:8):E7e.test(e)?NaN:+e}var H7e=function(e,t,r){var o,n,a,i,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=o,a=n;return o=n=void 0,c=t,i=e.apply(a,r)}function f(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-c>=a}function m(){var e=B7e();if(f(e))return y(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?L7e(r,a-(e-c)):r}(e))}function y(e){return s=void 0,p&&o?h(e):(o=n=void 0,i)}function g(){var e=B7e(),r=f(e);if(o=arguments,n=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?h(e):i}(l);if(d)return s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),i}return t=$7e(t)||0,V7e(r)&&(u=!!r.leading,a=(d="maxWait"in r)?A7e($7e(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=n=s=void 0},g.flush=function(){return void 0===s?i:y(B7e())},g},q7e={},W7e={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,r=(t=l.default)&&t.__esModule?t:{default:t};var o={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};e.default=o}(W7e),Object.defineProperty(q7e,"__esModule",{value:!0}),q7e.checkSpecKeys=q7e.checkNavigable=q7e.changeSlide=q7e.canUseDOM=q7e.canGoNext=void 0,q7e.clamp=J7e,q7e.extractObject=void 0,q7e.filterSettings=function(e){return _9e.reduce(function(t,r){return e.hasOwnProperty(r)&&(t[r]=e[r]),t},{})},q7e.validSettings=q7e.swipeStart=q7e.swipeMove=q7e.swipeEnd=q7e.slidesOnRight=q7e.slidesOnLeft=q7e.slideHandler=q7e.siblingDirection=q7e.safePreventDefault=q7e.lazyStartIndex=q7e.lazySlidesOnRight=q7e.lazySlidesOnLeft=q7e.lazyEndIndex=q7e.keyHandler=q7e.initializedState=q7e.getWidth=q7e.getTrackLeft=q7e.getTrackCSS=q7e.getTrackAnimateCSS=q7e.getTotalSlides=q7e.getSwipeDirection=q7e.getSlideCount=q7e.getRequiredLazySlides=q7e.getPreClones=q7e.getPostClones=q7e.getOnDemandLazySlides=q7e.getNavigableIndexes=q7e.getHeight=void 0;var U7e=K7e(l.default),G7e=K7e(W7e);function K7e(e){return e&&e.__esModule?e:{default:e}}function Y7e(e){return Y7e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y7e(e)}function Z7e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function X7e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z7e(Object(r),!0).forEach(function(t){Q7e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z7e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Q7e(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Y7e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=Y7e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y7e(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J7e(e,t,r){return Math.max(t,Math.min(e,r))}var e9e=q7e.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},t9e=q7e.getOnDemandLazySlides=function(e){for(var t=[],r=r9e(e),o=o9e(e),n=r;n<o;n++)e.lazyLoadedList.indexOf(n)<0&&t.push(n);return t};q7e.getRequiredLazySlides=function(e){for(var t=[],r=r9e(e),o=o9e(e),n=r;n<o;n++)t.push(n);return t};var r9e=q7e.lazyStartIndex=function(e){return e.currentSlide-n9e(e)},o9e=q7e.lazyEndIndex=function(e){return e.currentSlide+a9e(e)},n9e=q7e.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},a9e=q7e.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},i9e=q7e.getWidth=function(e){return e&&e.offsetWidth||0},s9e=q7e.getHeight=function(e){return e&&e.offsetHeight||0},l9e=q7e.getSwipeDirection=function(e){var t,r,o,n,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,r=e.startY-e.curY,o=Math.atan2(r,t),(n=Math.round(180*o/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":!0===a?n>=35&&n<=135?"up":"down":"vertical"},c9e=q7e.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};q7e.extractObject=function(e,t){var r={};return t.forEach(function(t){return r[t]=e[t]}),r},q7e.initializedState=function(e){var t,r=U7e.default.Children.count(e.children),o=e.listRef,n=Math.ceil(i9e(o)),a=e.trackRef&&e.trackRef.node,i=Math.ceil(i9e(a));if(e.vertical)t=n;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=n/100),t=Math.ceil((n-s)/e.slidesToShow)}var l=o&&s9e(o.querySelector('[data-index="0"]')),c=l*e.slidesToShow,u=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(u=r-1-e.initialSlide);var d=e.lazyLoadedList||[],p=t9e(X7e(X7e({},e),{},{currentSlide:u,lazyLoadedList:d})),h={slideCount:r,slideWidth:t,listWidth:n,trackWidth:i,currentSlide:u,slideHeight:l,listHeight:c,lazyLoadedList:d=d.concat(p)};return null===e.autoplaying&&e.autoplay&&(h.autoplaying="playing"),h},q7e.slideHandler=function(e){var t=e.waitForAnimate,r=e.animating,o=e.fade,n=e.infinite,a=e.index,i=e.slideCount,s=e.lazyLoad,l=e.currentSlide,c=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,p=e.useCSS,h=e.lazyLoadedList;if(t&&r)return{};var f,m,y,g=a,v={},x={},b=n?a:J7e(a,0,i-1);if(o){if(!n&&(a<0||a>=i))return{};a<0?g=a+i:a>=i&&(g=a-i),s&&h.indexOf(g)<0&&(h=h.concat(g)),v={animating:!0,currentSlide:g,lazyLoadedList:h,targetSlide:g},x={animating:!1,targetSlide:g}}else f=g,g<0?(f=g+i,n?i%u!==0&&(f=i-i%u):f=0):!c9e(e)&&g>l?g=f=l:c&&g>=i?(g=n?i:i-1,f=n?0:i-1):g>=i&&(f=g-i,n?i%u!==0&&(f=0):f=i-d),!n&&g+d>=i&&(f=i-d),m=y9e(X7e(X7e({},e),{},{slideIndex:g})),y=y9e(X7e(X7e({},e),{},{slideIndex:f})),n||(m===y&&(g=f),m=y),s&&(h=h.concat(t9e(X7e(X7e({},e),{},{currentSlide:g})))),p?(v={animating:!0,currentSlide:f,trackStyle:m9e(X7e(X7e({},e),{},{left:m})),lazyLoadedList:h,targetSlide:b},x={animating:!1,currentSlide:f,trackStyle:f9e(X7e(X7e({},e),{},{left:y})),swipeLeft:null,targetSlide:b}):v={currentSlide:f,trackStyle:f9e(X7e(X7e({},e),{},{left:y})),lazyLoadedList:h,targetSlide:b};return{state:v,nextState:x}},q7e.changeSlide=function(e,t){var r,o,n,a,i=e.slidesToScroll,s=e.slidesToShow,l=e.slideCount,c=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,p=e.infinite;if(r=l%i!==0?0:(l-c)%i,"previous"===t.message)a=c-(n=0===r?i:s-r),d&&!p&&(a=-1===(o=c-n)?l-1:o),p||(a=u-i);else if("next"===t.message)a=c+(n=0===r?i:r),d&&!p&&(a=(c+i)%l+r),p||(a=u+i);else if("dots"===t.message)a=t.index*t.slidesToScroll;else if("children"===t.message){if(a=t.index,p){var h=b9e(X7e(X7e({},e),{},{targetSlide:a}));a>t.currentSlide&&"left"===h?a-=l:a<t.currentSlide&&"right"===h&&(a+=l)}}else"index"===t.message&&(a=Number(t.index));return a},q7e.keyHandler=function(e,t,r){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?r?"next":"previous":39===e.keyCode?r?"previous":"next":""},q7e.swipeStart=function(e,t,r){return"IMG"===e.target.tagName&&e9e(e),!t||!r&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},q7e.swipeMove=function(e,t){var r=t.scrolling,o=t.animating,n=t.vertical,a=t.swipeToSlide,i=t.verticalSwiping,s=t.rtl,l=t.currentSlide,c=t.edgeFriction,u=t.edgeDragged,d=t.onEdge,p=t.swiped,h=t.swiping,f=t.slideCount,m=t.slidesToScroll,y=t.infinite,g=t.touchObject,v=t.swipeEvent,x=t.listHeight,b=t.listWidth;if(!r){if(o)return e9e(e);n&&a&&i&&e9e(e);var w,k={},_=y9e(t);g.curX=e.touches?e.touches[0].pageX:e.clientX,g.curY=e.touches?e.touches[0].pageY:e.clientY,g.swipeLength=Math.round(Math.sqrt(Math.pow(g.curX-g.startX,2)));var C=Math.round(Math.sqrt(Math.pow(g.curY-g.startY,2)));if(!i&&!h&&C>10)return{scrolling:!0};i&&(g.swipeLength=C);var M=(s?-1:1)*(g.curX>g.startX?1:-1);i&&(M=g.curY>g.startY?1:-1);var S=Math.ceil(f/m),D=l9e(t.touchObject,i),O=g.swipeLength;return y||(0===l&&("right"===D||"down"===D)||l+1>=S&&("left"===D||"up"===D)||!c9e(t)&&("left"===D||"up"===D))&&(O=g.swipeLength*c,!1===u&&d&&(d(D),k.edgeDragged=!0)),!p&&v&&(v(D),k.swiped=!0),w=n?_+O*(x/b)*M:s?_-O*M:_+O*M,i&&(w=_+O*M),k=X7e(X7e({},k),{},{touchObject:g,swipeLeft:w,trackStyle:f9e(X7e(X7e({},t),{},{left:w}))}),Math.abs(g.curX-g.startX)<.8*Math.abs(g.curY-g.startY)?k:(g.swipeLength>10&&(k.swiping=!0,e9e(e)),k)}},q7e.swipeEnd=function(e,t){var r=t.dragging,o=t.swipe,n=t.touchObject,a=t.listWidth,i=t.touchThreshold,s=t.verticalSwiping,l=t.listHeight,c=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,p=t.targetSlide,h=t.currentSlide,f=t.infinite;if(!r)return o&&e9e(e),{};var m=s?l/i:a/i,y=l9e(n,s),g={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return g;if(!n.swipeLength)return g;if(n.swipeLength>m){var v,x;e9e(e),d&&d(y);var b=f?h:p;switch(y){case"left":case"up":x=b+p9e(t),v=c?d9e(t,x):x,g.currentDirection=0;break;case"right":case"down":x=b-p9e(t),v=c?d9e(t,x):x,g.currentDirection=1;break;default:v=b}g.triggerSlideHandler=v}else{var w=y9e(t);g.trackStyle=m9e(X7e(X7e({},t),{},{left:w}))}return g};var u9e=q7e.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,r=e.infinite?-1*e.slidesToShow:0,o=e.infinite?-1*e.slidesToShow:0,n=[];r<t;)n.push(r),r=o+e.slidesToScroll,o+=Math.min(e.slidesToScroll,e.slidesToShow);return n},d9e=q7e.checkNavigable=function(e,t){var r=u9e(e),o=0;if(t>r[r.length-1])t=r[r.length-1];else for(var n in r){if(t<r[n]){t=o;break}o=r[n]}return t},p9e=q7e.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var r,o=e.listRef,n=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(n).every(function(o){if(e.vertical){if(o.offsetTop+s9e(o)/2>-1*e.swipeLeft)return r=o,!1}else if(o.offsetLeft-t+i9e(o)/2>-1*e.swipeLeft)return r=o,!1;return!0}),!r)return 0;var a=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(r.dataset.index-a)||1}return e.slidesToScroll},h9e=q7e.checkSpecKeys=function(e,t){return t.reduce(function(t,r){return t&&e.hasOwnProperty(r)},!0)?null:console.error("Keys Missing:",e)},f9e=q7e.getTrackCSS=function(e){var t,r;h9e(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var o=e.slideCount+2*e.slidesToShow;e.vertical?r=o*e.slideHeight:t=x9e(e)*e.slideWidth;var n={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";n=X7e(X7e({},n),{},{WebkitTransform:a,transform:i,msTransform:s})}else e.vertical?n.top=e.left:n.left=e.left;return e.fade&&(n={opacity:1}),t&&(n.width=t),r&&(n.height=r),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?n.marginTop=e.left+"px":n.marginLeft=e.left+"px"),n},m9e=q7e.getTrackAnimateCSS=function(e){h9e(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=f9e(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},y9e=q7e.getTrackLeft=function(e){if(e.unslick)return 0;h9e(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,r,o=e.slideIndex,n=e.trackRef,a=e.infinite,i=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,p=e.variableWidth,h=e.slideHeight,f=e.fade,m=e.vertical;if(f||1===e.slideCount)return 0;var y=0;if(a?(y=-g9e(e),s%c!==0&&o+c>s&&(y=-(o>s?l-(o-s):s%c)),i&&(y+=parseInt(l/2))):(s%c!==0&&o+c>s&&(y=l-s%c),i&&(y=parseInt(l/2))),t=m?o*h*-1+y*h:o*u*-1+y*u,!0===p){var g,v=n&&n.node;if(g=o+g9e(e),t=(r=v&&v.childNodes[g])?-1*r.offsetLeft:0,!0===i){g=a?o+g9e(e):o,r=v&&v.children[g],t=0;for(var x=0;x<g;x++)t-=v&&v.children[x]&&v.children[x].offsetWidth;t-=parseInt(e.centerPadding),t+=r&&(d-r.offsetWidth)/2}}return t},g9e=q7e.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},v9e=q7e.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},x9e=q7e.getTotalSlides=function(e){return 1===e.slideCount?1:g9e(e)+e.slideCount+v9e(e)},b9e=q7e.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+w9e(e)?"left":"right":e.targetSlide<e.currentSlide-k9e(e)?"right":"left"},w9e=q7e.slidesOnRight=function(e){var t=e.slidesToShow,r=e.centerMode,o=e.rtl,n=e.centerPadding;if(r){var a=(t-1)/2+1;return parseInt(n)>0&&(a+=1),o&&t%2==0&&(a+=1),a}return o?0:t-1},k9e=q7e.slidesOnLeft=function(e){var t=e.slidesToShow,r=e.centerMode,o=e.rtl,n=e.centerPadding;if(r){var a=(t-1)/2+1;return parseInt(n)>0&&(a+=1),o||t%2!=0||(a+=1),a}return o?t-1:0};q7e.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};var _9e=q7e.validSettings=Object.keys(G7e.default);var C9e={};Object.defineProperty(C9e,"__esModule",{value:!0}),C9e.Track=void 0;var M9e=O9e(l.default),S9e=O9e(h5e.exports),D9e=q7e;function O9e(e){return e&&e.__esModule?e:{default:e}}function P9e(e){return P9e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P9e(e)}function E9e(){return E9e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},E9e.apply(this,arguments)}function j9e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,B9e(o.key),o)}}function T9e(e,t){return T9e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T9e(e,t)}function N9e(e){var t=F9e();return function(){var r,o=z9e(e);if(t){var n=z9e(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===P9e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return R9e(e)}(this,r)}}function R9e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(F9e=function(){return!!e})()}function z9e(e){return z9e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z9e(e)}function I9e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function A9e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I9e(Object(r),!0).forEach(function(t){L9e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I9e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function L9e(e,t,r){return(t=B9e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B9e(e){var t=function(e,t){if("object"!=P9e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=P9e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P9e(t)?t:String(t)}var V9e=function(e){var t,r,o,n,a;return o=(a=e.rtl?e.slideCount-1-e.index:e.index)<0||a>=e.slideCount,e.centerMode?(n=Math.floor(e.slidesToShow/2),r=(a-e.currentSlide)%e.slideCount===0,a>e.currentSlide-n-1&&a<=e.currentSlide+n&&(t=!0)):t=e.currentSlide<=a&&a<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":r,"slick-cloned":o,"slick-current":a===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},$9e=function(e,t){return e.key||t},H9e=function(e){var t,r=[],o=[],n=[],a=M9e.default.Children.count(e.children),i=(0,D9e.lazyStartIndex)(e),s=(0,D9e.lazyEndIndex)(e);return M9e.default.Children.forEach(e.children,function(l,c){var u,d={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};u=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?l:M9e.default.createElement("div",null);var p=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(A9e(A9e({},e),{},{index:c})),h=u.props.className||"",f=V9e(A9e(A9e({},e),{},{index:c}));if(r.push(M9e.default.cloneElement(u,{key:"original"+$9e(u,c),"data-index":c,className:(0,S9e.default)(f,h),tabIndex:"-1","aria-hidden":!f["slick-active"],style:A9e(A9e({outline:"none"},u.props.style||{}),p),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}})),e.infinite&&!1===e.fade){var m=a-c;m<=(0,D9e.getPreClones)(e)&&((t=-m)>=i&&(u=l),f=V9e(A9e(A9e({},e),{},{index:t})),o.push(M9e.default.cloneElement(u,{key:"precloned"+$9e(u,t),"data-index":t,tabIndex:"-1",className:(0,S9e.default)(f,h),"aria-hidden":!f["slick-active"],style:A9e(A9e({},u.props.style||{}),p),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}}))),(t=a+c)<s&&(u=l),f=V9e(A9e(A9e({},e),{},{index:t})),n.push(M9e.default.cloneElement(u,{key:"postcloned"+$9e(u,t),"data-index":t,tabIndex:"-1",className:(0,S9e.default)(f,h),"aria-hidden":!f["slick-active"],style:A9e(A9e({},u.props.style||{}),p),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}}))}}),e.rtl?o.concat(r,n).reverse():o.concat(r,n)};C9e.Track=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T9e(e,t)}(n,M9e["default"].PureComponent);var e,t,r,o=N9e(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return L9e(R9e(e=o.call.apply(o,[this].concat(r))),"node",null),L9e(R9e(e),"handleRef",function(t){e.node=t}),e}return e=n,(t=[{key:"render",value:function(){var e=H9e(this.props),t=this.props,r={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return M9e.default.createElement("div",E9e({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},r),e)}}])&&j9e(e.prototype,t),r&&j9e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var q9e={};function W9e(e){return W9e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W9e(e)}Object.defineProperty(q9e,"__esModule",{value:!0}),q9e.Dots=void 0;var U9e=Y9e(l.default),G9e=Y9e(h5e.exports),K9e=q7e;function Y9e(e){return e&&e.__esModule?e:{default:e}}function Z9e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function X9e(e,t,r){return(t=J9e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q9e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,J9e(o.key),o)}}function J9e(e){var t=function(e,t){if("object"!=W9e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=W9e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==W9e(t)?t:String(t)}function eet(e,t){return eet=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eet(e,t)}function tet(e){var t=ret();return function(){var r,o=oet(e);if(t){var n=oet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===W9e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function ret(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ret=function(){return!!e})()}function oet(e){return oet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oet(e)}q9e.Dots=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eet(e,t)}(n,U9e["default"].PureComponent);var e,t,r,o=tet(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),o.apply(this,arguments)}return e=n,t=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,r=t.onMouseEnter,o=t.onMouseOver,n=t.onMouseLeave,a=t.infinite,i=t.slidesToScroll,s=t.slidesToShow,l=t.slideCount,c=t.currentSlide,u=(e={slideCount:l,slidesToScroll:i,slidesToShow:s,infinite:a}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,d={onMouseEnter:r,onMouseOver:o,onMouseLeave:n},p=[],h=0;h<u;h++){var f=(h+1)*i-1,m=a?f:(0,K9e.clamp)(f,0,l-1),y=m-(i-1),g=a?y:(0,K9e.clamp)(y,0,l-1),v=(0,G9e.default)({"slick-active":a?c>=g&&c<=m:c===g}),x={message:"dots",index:h,slidesToScroll:i,currentSlide:c},b=this.clickHandler.bind(this,x);p=p.concat(U9e.default.createElement("li",{key:h,className:v},U9e.default.cloneElement(this.props.customPaging(h),{onClick:b})))}return U9e.default.cloneElement(this.props.appendDots(p),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z9e(Object(r),!0).forEach(function(t){X9e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z9e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:this.props.dotsClass},d))}}],t&&Q9e(e.prototype,t),r&&Q9e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var net={};function aet(e){return aet="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aet(e)}Object.defineProperty(net,"__esModule",{value:!0}),net.PrevArrow=net.NextArrow=void 0;var iet=uet(l.default),set=uet(h5e.exports),cet=q7e;function uet(e){return e&&e.__esModule?e:{default:e}}function det(){return det=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},det.apply(this,arguments)}function pet(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function het(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pet(Object(r),!0).forEach(function(t){fet(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pet(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fet(e,t,r){return(t=vet(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function met(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yet(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,vet(o.key),o)}}function get(e,t,r){return t&&yet(e.prototype,t),r&&yet(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vet(e){var t=function(e,t){if("object"!=aet(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=aet(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aet(t)?t:String(t)}function xet(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bet(e,t)}function bet(e,t){return bet=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bet(e,t)}function wet(e){var t=ket();return function(){var r,o=_et(e);if(t){var n=_et(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===aet(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function ket(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ket=function(){return!!e})()}function _et(e){return _et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_et(e)}net.PrevArrow=function(){xet(t,iet["default"].PureComponent);var e=wet(t);function t(){return met(this,t),e.apply(this,arguments)}return get(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var r={key:"0","data-role":"none",className:(0,set.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?iet.default.cloneElement(this.props.prevArrow,het(het({},r),o)):iet.default.createElement("button",det({key:"0",type:"button"},r)," ","Previous")}}]),t}(),net.NextArrow=function(){xet(t,iet["default"].PureComponent);var e=wet(t);function t(){return met(this,t),e.apply(this,arguments)}return get(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,cet.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var r={key:"1","data-role":"none",className:(0,set.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?iet.default.cloneElement(this.props.nextArrow,het(het({},r),o)):iet.default.createElement("button",det({key:"1",type:"button"},r)," ","Next")}}]),t}();var Cet=ee(N8e);Object.defineProperty(D7e,"__esModule",{value:!0}),D7e.InnerSlider=void 0;var Met=Fet(l.default),Det=Fet(O7e),Oet=Fet(H7e),Pet=Fet(h5e.exports),Eet=q7e,jet=C9e,Tet=q9e,Net=net,Ret=Fet(Cet);function Fet(e){return e&&e.__esModule?e:{default:e}}function zet(e){return zet="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zet(e)}function Iet(){return Iet=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Iet.apply(this,arguments)}function Aet(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Let(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function Bet(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Let(Object(r),!0).forEach(function(t){Get(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Let(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Vet(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ket(o.key),o)}}function $et(e,t){return $et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$et(e,t)}function Het(e){var t=Wet();return function(){var r,o=Uet(e);if(t){var n=Uet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===zet(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qet(e)}(this,r)}}function qet(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wet=function(){return!!e})()}function Uet(e){return Uet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uet(e)}function Get(e,t,r){return(t=Ket(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ket(e){var t=function(e,t){if("object"!=zet(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=zet(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zet(t)?t:String(t)}D7e.InnerSlider=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$et(e,t)}(n,Met["default"].Component);var e,t,r,o=Het(n);function n(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Get(qet(t=o.call(this,e)),"listRefHandler",function(e){return t.list=e}),Get(qet(t),"trackRefHandler",function(e){return t.track=e}),Get(qet(t),"adaptHeight",function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,Eet.getHeight)(e)+"px"}}),Get(qet(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,Eet.getOnDemandLazySlides)(Bet(Bet({},t.props),t.state));e.length>0&&(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var r=Bet({listRef:t.list,trackRef:t.track},t.props);t.updateState(r,!0,function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")}),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new Ret.default(function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout(function(){return t.onWindowResized()},t.props.speed))):t.onWindowResized()}),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)}),Get(qet(t),"componentWillUnmount",function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach(function(e){return clearTimeout(e)}),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()}),Get(qet(t),"componentDidUpdate",function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var r=(0,Eet.getOnDemandLazySlides)(Bet(Bet({},t.props),t.state));r.length>0&&(t.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(r)}}),t.props.onLazyLoad&&t.props.onLazyLoad(r))}t.adaptHeight();var o=Bet(Bet({listRef:t.list,trackRef:t.track},t.props),t.state),n=t.didPropsChange(e);n&&t.updateState(o,n,function(){t.state.currentSlide>=Met.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:Met.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),Get(qet(t),"onWindowResized",function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,Oet.default)(function(){return t.resizeWindow(e)},50),t.debouncedResize()}),Get(qet(t),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var r=Bet(Bet({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(r,e,function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")}),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}}),Get(qet(t),"updateState",function(e,r,o){var n=(0,Eet.initializedState)(e);e=Bet(Bet(Bet({},e),n),{},{slideIndex:n.currentSlide});var a=(0,Eet.getTrackLeft)(e);e=Bet(Bet({},e),{},{left:a});var i=(0,Eet.getTrackCSS)(e);(r||Met.default.Children.count(t.props.children)!==Met.default.Children.count(e.children))&&(n.trackStyle=i),t.setState(n,o)}),Get(qet(t),"ssrInit",function(){if(t.props.variableWidth){var e=0,r=0,o=[],n=(0,Eet.getPreClones)(Bet(Bet(Bet({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,Eet.getPostClones)(Bet(Bet(Bet({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach(function(t){o.push(t.props.style.width),e+=t.props.style.width});for(var i=0;i<n;i++)r+=o[o.length-1-i],e+=o[o.length-1-i];for(var s=0;s<a;s++)e+=o[s];for(var l=0;l<t.state.currentSlide;l++)r+=o[l];var c={width:e+"px",left:-r+"px"};if(t.props.centerMode){var u="".concat(o[t.state.currentSlide],"px");c.left="calc(".concat(c.left," + (100% - ").concat(u,") / 2 ) ")}return{trackStyle:c}}var d=Met.default.Children.count(t.props.children),p=Bet(Bet(Bet({},t.props),t.state),{},{slideCount:d}),h=(0,Eet.getPreClones)(p)+(0,Eet.getPostClones)(p)+d,f=100/t.props.slidesToShow*h,m=100/h,y=-m*((0,Eet.getPreClones)(p)+t.state.currentSlide)*f/100;return t.props.centerMode&&(y+=(100-m*f/100)/2),{slideWidth:m+"%",trackStyle:{width:f+"%",left:y+"%"}}}),Get(qet(t),"checkImagesLoad",function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],r=e.length,o=0;Array.prototype.forEach.call(e,function(e){var n=function(){return++o&&o>=r&&t.onWindowResized()};if(e.onclick){var a=e.onclick;e.onclick=function(t){a(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=n,e.onerror=function(){n(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))})}),Get(qet(t),"progressiveLazyLoad",function(){for(var e=[],r=Bet(Bet({},t.props),t.state),o=t.state.currentSlide;o<t.state.slideCount+(0,Eet.getPostClones)(r);o++)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}for(var n=t.state.currentSlide-1;n>=-(0,Eet.getPreClones)(r);n--)if(t.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)}),Get(qet(t),"slideHandler",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=t.props,n=o.asNavFor,a=o.beforeChange,i=o.onLazyLoad,s=o.speed,l=o.afterChange,c=t.state.currentSlide,u=(0,Eet.slideHandler)(Bet(Bet(Bet({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!r})),d=u.state,p=u.nextState;if(d){a&&a(c,d.currentSlide);var h=d.lazyLoadedList.filter(function(e){return t.state.lazyLoadedList.indexOf(e)<0});i&&h.length>0&&i(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),l&&l(c),delete t.animationEndCallback),t.setState(d,function(){n&&t.asNavForIndex!==e&&(t.asNavForIndex=e,n.innerSlider.slideHandler(e)),p&&(t.animationEndCallback=setTimeout(function(){var e=p.animating,r=Aet(p,["animating"]);t.setState(r,function(){t.callbackTimers.push(setTimeout(function(){return t.setState({animating:e})},10)),l&&l(d.currentSlide),delete t.animationEndCallback})},s))})}}),Get(qet(t),"changeSlide",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Bet(Bet({},t.props),t.state),n=(0,Eet.changeSlide)(o,e);if((0===n||n)&&(!0===r?t.slideHandler(n,r):t.slideHandler(n),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var a=t.list.querySelectorAll(".slick-current");a[0]&&a[0].focus()}}),Get(qet(t),"clickHandler",function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0}),Get(qet(t),"keyHandler",function(e){var r=(0,Eet.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==r&&t.changeSlide({message:r})}),Get(qet(t),"selectHandler",function(e){t.changeSlide(e)}),Get(qet(t),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),Get(qet(t),"enableBodyScroll",function(){window.ontouchmove=null}),Get(qet(t),"swipeStart",function(e){t.props.verticalSwiping&&t.disableBodyScroll();var r=(0,Eet.swipeStart)(e,t.props.swipe,t.props.draggable);""!==r&&t.setState(r)}),Get(qet(t),"swipeMove",function(e){var r=(0,Eet.swipeMove)(e,Bet(Bet(Bet({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));r&&(r.swiping&&(t.clickable=!1),t.setState(r))}),Get(qet(t),"swipeEnd",function(e){var r=(0,Eet.swipeEnd)(e,Bet(Bet(Bet({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(r){var o=r.triggerSlideHandler;delete r.triggerSlideHandler,t.setState(r),void 0!==o&&(t.slideHandler(o),t.props.verticalSwiping&&t.enableBodyScroll())}}),Get(qet(t),"touchEnd",function(e){t.swipeEnd(e),t.clickable=!0}),Get(qet(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),Get(qet(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),Get(qet(t),"slickGoTo",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},r)},0))}),Get(qet(t),"play",function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,Eet.canGoNext)(Bet(Bet({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)}),Get(qet(t),"autoPlay",function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var r=t.state.autoplaying;if("update"===e){if("hovered"===r||"focused"===r||"paused"===r)return}else if("leave"===e){if("paused"===r||"focused"===r)return}else if("blur"===e&&("paused"===r||"hovered"===r))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})}),Get(qet(t),"pause",function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var r=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==r&&"playing"!==r||t.setState({autoplaying:"focused"}):"playing"===r&&t.setState({autoplaying:"hovered"})}),Get(qet(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),Get(qet(t),"onDotsLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),Get(qet(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),Get(qet(t),"onTrackLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),Get(qet(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),Get(qet(t),"onSlideBlur",function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")}),Get(qet(t),"render",function(){var e,r,o,n=(0,Pet.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),a=Bet(Bet({},t.props),t.state),i=(0,Eet.extractObject)(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),s=t.props.pauseOnHover;if(i=Bet(Bet({},i),{},{onMouseEnter:s?t.onTrackOver:null,onMouseLeave:s?t.onTrackLeave:null,onMouseOver:s?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var l=(0,Eet.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),c=t.props.pauseOnDotsHover;l=Bet(Bet({},l),{},{clickHandler:t.changeSlide,onMouseEnter:c?t.onDotsLeave:null,onMouseOver:c?t.onDotsOver:null,onMouseLeave:c?t.onDotsLeave:null}),e=Met.default.createElement(Tet.Dots,l)}var u=(0,Eet.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);u.clickHandler=t.changeSlide,t.props.arrows&&(r=Met.default.createElement(Net.PrevArrow,u),o=Met.default.createElement(Net.NextArrow,u));var d=null;t.props.vertical&&(d={height:t.state.listHeight});var p=null;!1===t.props.vertical?!0===t.props.centerMode&&(p={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(p={padding:t.props.centerPadding+" 0px"});var h=Bet(Bet({},d),p),f=t.props.touchMove,m={className:"slick-list",style:h,onClick:t.clickHandler,onMouseDown:f?t.swipeStart:null,onMouseMove:t.state.dragging&&f?t.swipeMove:null,onMouseUp:f?t.swipeEnd:null,onMouseLeave:t.state.dragging&&f?t.swipeEnd:null,onTouchStart:f?t.swipeStart:null,onTouchMove:t.state.dragging&&f?t.swipeMove:null,onTouchEnd:f?t.touchEnd:null,onTouchCancel:t.state.dragging&&f?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},y={className:n,dir:"ltr",style:t.props.style};return t.props.unslick&&(m={className:"slick-list"},y={className:n}),Met.default.createElement("div",y,t.props.unslick?"":r,Met.default.createElement("div",Iet({ref:t.listRefHandler},m),Met.default.createElement(jet.Track,Iet({ref:t.trackRefHandler},i),t.props.children)),t.props.unslick?"":o,t.props.unslick?"":e)}),t.list=null,t.track=null,t.state=Bet(Bet({},Det.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:Met.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var r=t.ssrInit();return t.state=Bet(Bet({},t.state),r),t}return e=n,t=[{key:"didPropsChange",value:function(e){for(var t=!1,r=0,o=Object.keys(this.props);r<o.length;r++){var n=o[r];if(!e.hasOwnProperty(n)){t=!0;break}if("object"!==zet(e[n])&&"function"!=typeof e[n]&&!isNaN(e[n])&&e[n]!==this.props[n]){t=!0;break}}return t||Met.default.Children.count(this.props.children)!==Met.default.Children.count(e.children)}}],t&&Vet(e.prototype,t),r&&Vet(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var Yet,Zet,Xet,Qet,Jet,ett,ttt,rtt,ott,ntt,att=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()},itt=att,stt=function(e){var t="",r=Object.keys(e);return r.forEach(function(o,n){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=itt(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",n<r.length-1&&(t+=" and ")}),t},ltt=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(r,o){t+=stt(r),o<e.length-1&&(t+=", ")}),t):stt(e)};function ctt(){if(Qet)return Xet;return Qet=1,Xet={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var r=0,o=e.length;r<o&&!1!==t(e[r],r);r++);}},Xet}function utt(){if(ett)return Jet;ett=1;var e=function(){if(Zet)return Yet;function e(e){this.options=e,!e.deferSetup&&this.setup()}return Zet=1,e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},Yet=e}(),t=ctt().each;function r(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var r=this;this.listener=function(e){r.mql=e.currentTarget||e,r.assess()},this.mql.addListener(this.listener)}return r.prototype={constuctor:r,addHandler:function(t){var r=new e(t);this.handlers.push(r),this.matches()&&r.on()},removeHandler:function(e){var r=this.handlers;t(r,function(t,o){if(t.equals(e))return t.destroy(),!r.splice(o,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";t(this.handlers,function(t){t[e]()})}},Jet=r}function dtt(){if(ntt)return ott;ntt=1;var e=function(){if(rtt)return ttt;rtt=1;var e=utt(),t=ctt(),r=t.each,o=t.isFunction,n=t.isArray;function a(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return a.prototype={constructor:a,register:function(t,a,i){var s=this.queries,l=i&&this.browserIsIncapable;return s[t]||(s[t]=new e(t,l)),o(a)&&(a={match:a}),n(a)||(a=[a]),r(a,function(e){o(e)&&(e={match:e}),s[t].addHandler(e)}),this},unregister:function(e,t){var r=this.queries[e];return r&&(t?r.removeHandler(t):(r.clear(),delete this.queries[e])),this}},ttt=a}();return ott=new e}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(l.default),r=D7e,o=i(ltt),n=i(W7e),a=q7e;function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},c.apply(this,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,x(o.key),o)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function f(e){var t=y();return function(){var r,o=g(e);if(t){var n=g(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}(this,r)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e,t,r){return(t=x(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:String(t)}var b=(0,a.canUseDOM)()&&dtt();e.default=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(y,e);var i,s,l,u=f(y);function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),v(m(t=u.call(this,e)),"innerSliderRefHandler",function(e){return t.innerSlider=e}),v(m(t),"slickPrev",function(){return t.innerSlider.slickPrev()}),v(m(t),"slickNext",function(){return t.innerSlider.slickNext()}),v(m(t),"slickGoTo",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,r)}),v(m(t),"slickPause",function(){return t.innerSlider.pause("paused")}),v(m(t),"slickPlay",function(){return t.innerSlider.autoPlay("play")}),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return i=y,s=[{key:"media",value:function(e,t){b.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(r,n){var i;i=0===n?(0,o.default)({minWidth:0,maxWidth:r}):(0,o.default)({minWidth:t[n-1]+1,maxWidth:r}),(0,a.canUseDOM)()&&e.media(i,function(){e.setState({breakpoint:r})})});var r=(0,o.default)({minWidth:t.slice(-1)[0]});(0,a.canUseDOM)()&&this.media(r,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){b.unregister(e.query,e.handler)})}},{key:"render",value:function(){var e,o,i=this;(e=this.state.breakpoint?"unslick"===(o=this.props.responsive.filter(function(e){return e.breakpoint===i.state.breakpoint}))[0].settings?"unslick":d(d(d({},n.default),this.props),o[0].settings):d(d({},n.default),this.props)).centerMode&&(e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&"slidesToScroll should be equal to 1 in centerMode, you are using ".concat(e.slidesToScroll),e.slidesToScroll=1),e.fade&&(e.slidesToShow>1&&"production"!==process.env.NODE_ENV&&"slidesToShow should be equal to 1 when fade is true, you're using ".concat(e.slidesToShow),e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&"slidesToScroll should be equal to 1 when fade is true, you're using ".concat(e.slidesToScroll),e.slidesToShow=1,e.slidesToScroll=1);var s=t.default.Children.toArray(this.props.children);s=s.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(e.variableWidth=!1);for(var l=[],u=null,p=0;p<s.length;p+=e.rows*e.slidesPerRow){for(var h=[],f=p;f<p+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var m=[],y=f;y<f+e.slidesPerRow&&(e.variableWidth&&s[y].props.style&&(u=s[y].props.style.width),!(y>=s.length));y+=1)m.push(t.default.cloneElement(s[y],{key:100*p+10*f+y,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));h.push(t.default.createElement("div",{key:10*p+f},m))}e.variableWidth?l.push(t.default.createElement("div",{key:p,style:{width:u}},h)):l.push(t.default.createElement("div",{key:p},h))}if("unslick"===e){var g="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:g},s)}return l.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),t.default.createElement(r.InnerSlider,c({style:this.props.style,ref:this.innerSliderRefHandler},(0,a.filterSettings)(e)),l)}}],s&&p(i.prototype,s),l&&p(i,l),Object.defineProperty(i,"prototype",{writable:!1}),y}(t.default.Component)}(S7e),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,r=(t=S7e)&&t.__esModule?t:{default:t};e.default=r.default}(M7e);var ptt=J(M7e);const htt=(e,t)=>{Object.values(e).forEach(e=>{const r=e,o=r&&r._f;o?t(o):r&&"object"==typeof r&&htt(r,t)})},ftt=({mode:t="onChange",state:r,children:o})=>{const n=function(e={}){const t=l.default.useRef(void 0),r=l.default.useRef(void 0),[o,n]=l.default.useState({isDirty:!1,isValidating:!1,isLoading:sr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:sr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:o},e.defaultValues&&!sr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...n}=Ar(e);t.current={...n,formState:o}}const a=t.current.control;return a._options=e,Yt(()=>{const e=a._subscribe({formState:a._proxyFormState,callback:()=>n({...a._formState}),reRenderRoot:!0});return n(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),l.default.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),l.default.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),l.default.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),l.default.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),l.default.useEffect(()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==o.isDirty&&a._subjects.state.next({isDirty:e})}},[a,o.isDirty]),l.default.useEffect(()=>{e.values&&!nr(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),r.current=e.values,n(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),l.default.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Kt(o,a),t.current}({mode:t,defaultValues:{}}),{onStateChange:a}=OC(),{formId:i="",routing:s,prefillData:c,loadRecordData:u}=_C(),d=e.useRef(!1),p=e.useRef(null);return e.useEffect(()=>{if(r){if("default"===r)return n.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),void n.clearErrors();if("required_error"===r)return n.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),void n.trigger();if("validation_error"===r){const e=setTimeout(async()=>{n.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),htt(n.control._fields,({name:e,pattern:t})=>{t?.value instanceof RegExp&&".+"===t.value.source&&""===t.value.flags||n.setError(e,{type:"required",message:"object"==typeof t&&t?.message||"Invalid value"})})},0);return()=>clearTimeout(e)}}},[r]),e.useEffect(()=>{n.formState.isDirty&&a({id:i,type:"started"})},[n.formState.isDirty]),e.useEffect(()=>{if(d.current)return;if(!i)return;if(!(!s?.organismIdFromUrl||s.organismIdFromUrl===i))return;d.current=!0;const e=s?.rwoRecordIdFromUrl;e&&"function"==typeof u&&(async()=>{try{const t=await u({rwoRecordId:e});n.reset(t,{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1})}catch{}})()},[i,s?.organismIdFromUrl,s?.rwoRecordIdFromUrl,u]),e.useEffect(()=>{if(!i)return;if((!s?.organismIdFromUrl||s.organismIdFromUrl===i)&&c&&Object.keys(c).length>0){const e=JSON.stringify(c);p.current!==e&&(n.reset(c,{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),p.current=e)}},[c,i,s?.organismIdFromUrl]),ot(Gt,{...n,children:ot(Br,{children:o})})},mtt=(e,t)=>e&&t[e]?`${t[e]}px`:e,ytt=(e,t)=>{if(e&&t)return co`
802
+ `,l7e="webpageId",c7e="applicationId",u7e="viewApplicationId",d7e="selected-webpage-id",p7e="selectedWebpageId",h7e=(e,t)=>{if(!t||"string"!=typeof t)return"";const r=t.match(new RegExp(`[?&]${e}=([^&]*)`));return r?decodeURIComponent(r[1]):""},f7e=(e,t)=>{const r=t||window.location.href,o=h7e("rwoContext",r);if(o)try{const t=vGe(o),r=t?.[e];if(r&&"object"==typeof r&&"rwoRecordId"in r)return r.rwoRecordId}catch(n){}return h7e("rwoRecordId",r)||void 0},m7e=(e,t,r=!1)=>{if(!t)return e;const o=h7e(l7e,t),n=h7e(c7e,t);if(!o||!n)return e;const a=new URLSearchParams(e.toString());return r?(e.has(u7e)&&a.set(u7e,n),e.has(d7e)&&a.set(d7e,o)):(e.has(p7e)&&a.set(p7e,o),a.set(p7e,o)),a},y7e=async(e="",t="Downloaded file")=>{try{const r=await fetch(e),o=await r.blob(),n=URL.createObjectURL(o),a=document.createElement("a");a.href=n,a.download=t,a.click(),URL.revokeObjectURL(n)}catch(r){r6e({message:`Failed to download the file: ${r}`,type:"error"})}},g7e=e=>{if(!e)return;if("object"==typeof e&&"type"in e){const t=e;if(x7e(t))return;return v7e(t.externalLink)}return v7e(e)},v7e=e=>{if(!e||"string"!=typeof e)return;if(mKe.test(e))try{const t=window.open(e,"_blank","noopener,noreferrer");if(t){[20,120,300,600].forEach(e=>{setTimeout(()=>{try{t.blur()}catch(e){}try{window.focus()}catch(e){}},e)})}}catch(t){}else try{console.error("navigateToExternalLink: invalid external URL",{url:e})}catch(t){}},x7e=e=>{if(!e)return!1;const t=e?.type||e?.linkType;return"internal_link"===t||"internalLink"===t},b7e=e=>!!e&&("data_driven_link"===e.type||"dataDrivenLink"===e.type),w7e=(e,t)=>{if(!e)return;const r=new URL(window.location.href),o=m7e(r.searchParams,e,t);return r.search=o.toString(),r.toString()},k7e=(e,t)=>{if(e)return x7e(e)?w7e(e?.internalLink,t):e?.externalLink},_7e=e=>{if(!e)return null;try{const t=e.startsWith("http")?e:new URL(e,window.location.origin).toString();return new URL(t)}catch(t){return null}},C7e=e=>{console.log("[getSelectedWebpageIdFromInternalLink] Input:",e);const t=_7e(e);if(console.log("[getSelectedWebpageIdFromInternalLink] Parsed URL:",t?.toString()),!t)return;const r=t.searchParams,o=r.get(l7e)||r.get(p7e)||r.get(d7e);if(console.log("[getSelectedWebpageIdFromInternalLink] Query params found:",{[l7e]:r.get(l7e),[p7e]:r.get(p7e),[d7e]:r.get(d7e),fromQuery:o}),o)return o;const n=(t.pathname||"").split("/").map(e=>e.trim()).filter(e=>e.length>0);for(const a of n){const[e,t]=a.split("=");if(e&&null!=t&&(e===l7e||e===p7e||e===d7e))return decodeURIComponent(t)}};var M7e={},S7e={},D7e={},O7e={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0}}(O7e);var P7e=/^\s+|\s+$/g,E7e=/^[-+]0x[0-9a-f]+$/i,j7e=/^0b[01]+$/i,T7e=/^0o[0-7]+$/i,N7e=parseInt,R7e="object"==typeof Q&&Q&&Q.Object===Object&&Q,F7e="object"==typeof self&&self&&self.Object===Object&&self,z7e=R7e||F7e||Function("return this")(),I7e=Object.prototype.toString,A7e=Math.max,L7e=Math.min,B7e=function(){return z7e.Date.now()};function V7e(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function $7e(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==I7e.call(e)}(e))return NaN;if(V7e(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=V7e(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(P7e,"");var r=j7e.test(e);return r||T7e.test(e)?N7e(e.slice(2),r?2:8):E7e.test(e)?NaN:+e}var H7e=function(e,t,r){var o,n,a,i,s,l,c=0,u=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function h(t){var r=o,a=n;return o=n=void 0,c=t,i=e.apply(a,r)}function f(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-c>=a}function m(){var e=B7e();if(f(e))return y(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?L7e(r,a-(e-c)):r}(e))}function y(e){return s=void 0,p&&o?h(e):(o=n=void 0,i)}function g(){var e=B7e(),r=f(e);if(o=arguments,n=this,l=e,r){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?h(e):i}(l);if(d)return s=setTimeout(m,t),h(l)}return void 0===s&&(s=setTimeout(m,t)),i}return t=$7e(t)||0,V7e(r)&&(u=!!r.leading,a=(d="maxWait"in r)?A7e($7e(r.maxWait)||0,t):a,p="trailing"in r?!!r.trailing:p),g.cancel=function(){void 0!==s&&clearTimeout(s),c=0,o=l=n=s=void 0},g.flush=function(){return void 0===s?i:y(B7e())},g},q7e={},W7e={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,r=(t=l.default)&&t.__esModule?t:{default:t};var o={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(e){return r.default.createElement("ul",{style:{display:"block"}},e)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(e){return r.default.createElement("button",null,e+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};e.default=o}(W7e),Object.defineProperty(q7e,"__esModule",{value:!0}),q7e.checkSpecKeys=q7e.checkNavigable=q7e.changeSlide=q7e.canUseDOM=q7e.canGoNext=void 0,q7e.clamp=J7e,q7e.extractObject=void 0,q7e.filterSettings=function(e){return _9e.reduce(function(t,r){return e.hasOwnProperty(r)&&(t[r]=e[r]),t},{})},q7e.validSettings=q7e.swipeStart=q7e.swipeMove=q7e.swipeEnd=q7e.slidesOnRight=q7e.slidesOnLeft=q7e.slideHandler=q7e.siblingDirection=q7e.safePreventDefault=q7e.lazyStartIndex=q7e.lazySlidesOnRight=q7e.lazySlidesOnLeft=q7e.lazyEndIndex=q7e.keyHandler=q7e.initializedState=q7e.getWidth=q7e.getTrackLeft=q7e.getTrackCSS=q7e.getTrackAnimateCSS=q7e.getTotalSlides=q7e.getSwipeDirection=q7e.getSlideCount=q7e.getRequiredLazySlides=q7e.getPreClones=q7e.getPostClones=q7e.getOnDemandLazySlides=q7e.getNavigableIndexes=q7e.getHeight=void 0;var U7e=K7e(l.default),G7e=K7e(W7e);function K7e(e){return e&&e.__esModule?e:{default:e}}function Y7e(e){return Y7e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Y7e(e)}function Z7e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function X7e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z7e(Object(r),!0).forEach(function(t){Q7e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z7e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Q7e(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Y7e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=Y7e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Y7e(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J7e(e,t,r){return Math.max(t,Math.min(e,r))}var e9e=q7e.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},t9e=q7e.getOnDemandLazySlides=function(e){for(var t=[],r=r9e(e),o=o9e(e),n=r;n<o;n++)e.lazyLoadedList.indexOf(n)<0&&t.push(n);return t};q7e.getRequiredLazySlides=function(e){for(var t=[],r=r9e(e),o=o9e(e),n=r;n<o;n++)t.push(n);return t};var r9e=q7e.lazyStartIndex=function(e){return e.currentSlide-n9e(e)},o9e=q7e.lazyEndIndex=function(e){return e.currentSlide+a9e(e)},n9e=q7e.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},a9e=q7e.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},i9e=q7e.getWidth=function(e){return e&&e.offsetWidth||0},s9e=q7e.getHeight=function(e){return e&&e.offsetHeight||0},l9e=q7e.getSwipeDirection=function(e){var t,r,o,n,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t=e.startX-e.curX,r=e.startY-e.curY,o=Math.atan2(r,t),(n=Math.round(180*o/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?"left":n>=135&&n<=225?"right":!0===a?n>=35&&n<=135?"up":"down":"vertical"},c9e=q7e.canGoNext=function(e){var t=!0;return e.infinite||(e.centerMode&&e.currentSlide>=e.slideCount-1||e.slideCount<=e.slidesToShow||e.currentSlide>=e.slideCount-e.slidesToShow)&&(t=!1),t};q7e.extractObject=function(e,t){var r={};return t.forEach(function(t){return r[t]=e[t]}),r},q7e.initializedState=function(e){var t,r=U7e.default.Children.count(e.children),o=e.listRef,n=Math.ceil(i9e(o)),a=e.trackRef&&e.trackRef.node,i=Math.ceil(i9e(a));if(e.vertical)t=n;else{var s=e.centerMode&&2*parseInt(e.centerPadding);"string"==typeof e.centerPadding&&"%"===e.centerPadding.slice(-1)&&(s*=n/100),t=Math.ceil((n-s)/e.slidesToShow)}var l=o&&s9e(o.querySelector('[data-index="0"]')),c=l*e.slidesToShow,u=void 0===e.currentSlide?e.initialSlide:e.currentSlide;e.rtl&&void 0===e.currentSlide&&(u=r-1-e.initialSlide);var d=e.lazyLoadedList||[],p=t9e(X7e(X7e({},e),{},{currentSlide:u,lazyLoadedList:d})),h={slideCount:r,slideWidth:t,listWidth:n,trackWidth:i,currentSlide:u,slideHeight:l,listHeight:c,lazyLoadedList:d=d.concat(p)};return null===e.autoplaying&&e.autoplay&&(h.autoplaying="playing"),h},q7e.slideHandler=function(e){var t=e.waitForAnimate,r=e.animating,o=e.fade,n=e.infinite,a=e.index,i=e.slideCount,s=e.lazyLoad,l=e.currentSlide,c=e.centerMode,u=e.slidesToScroll,d=e.slidesToShow,p=e.useCSS,h=e.lazyLoadedList;if(t&&r)return{};var f,m,y,g=a,v={},x={},b=n?a:J7e(a,0,i-1);if(o){if(!n&&(a<0||a>=i))return{};a<0?g=a+i:a>=i&&(g=a-i),s&&h.indexOf(g)<0&&(h=h.concat(g)),v={animating:!0,currentSlide:g,lazyLoadedList:h,targetSlide:g},x={animating:!1,targetSlide:g}}else f=g,g<0?(f=g+i,n?i%u!==0&&(f=i-i%u):f=0):!c9e(e)&&g>l?g=f=l:c&&g>=i?(g=n?i:i-1,f=n?0:i-1):g>=i&&(f=g-i,n?i%u!==0&&(f=0):f=i-d),!n&&g+d>=i&&(f=i-d),m=y9e(X7e(X7e({},e),{},{slideIndex:g})),y=y9e(X7e(X7e({},e),{},{slideIndex:f})),n||(m===y&&(g=f),m=y),s&&(h=h.concat(t9e(X7e(X7e({},e),{},{currentSlide:g})))),p?(v={animating:!0,currentSlide:f,trackStyle:m9e(X7e(X7e({},e),{},{left:m})),lazyLoadedList:h,targetSlide:b},x={animating:!1,currentSlide:f,trackStyle:f9e(X7e(X7e({},e),{},{left:y})),swipeLeft:null,targetSlide:b}):v={currentSlide:f,trackStyle:f9e(X7e(X7e({},e),{},{left:y})),lazyLoadedList:h,targetSlide:b};return{state:v,nextState:x}},q7e.changeSlide=function(e,t){var r,o,n,a,i=e.slidesToScroll,s=e.slidesToShow,l=e.slideCount,c=e.currentSlide,u=e.targetSlide,d=e.lazyLoad,p=e.infinite;if(r=l%i!==0?0:(l-c)%i,"previous"===t.message)a=c-(n=0===r?i:s-r),d&&!p&&(a=-1===(o=c-n)?l-1:o),p||(a=u-i);else if("next"===t.message)a=c+(n=0===r?i:r),d&&!p&&(a=(c+i)%l+r),p||(a=u+i);else if("dots"===t.message)a=t.index*t.slidesToScroll;else if("children"===t.message){if(a=t.index,p){var h=b9e(X7e(X7e({},e),{},{targetSlide:a}));a>t.currentSlide&&"left"===h?a-=l:a<t.currentSlide&&"right"===h&&(a+=l)}}else"index"===t.message&&(a=Number(t.index));return a},q7e.keyHandler=function(e,t,r){return e.target.tagName.match("TEXTAREA|INPUT|SELECT")||!t?"":37===e.keyCode?r?"next":"previous":39===e.keyCode?r?"previous":"next":""},q7e.swipeStart=function(e,t,r){return"IMG"===e.target.tagName&&e9e(e),!t||!r&&-1!==e.type.indexOf("mouse")?"":{dragging:!0,touchObject:{startX:e.touches?e.touches[0].pageX:e.clientX,startY:e.touches?e.touches[0].pageY:e.clientY,curX:e.touches?e.touches[0].pageX:e.clientX,curY:e.touches?e.touches[0].pageY:e.clientY}}},q7e.swipeMove=function(e,t){var r=t.scrolling,o=t.animating,n=t.vertical,a=t.swipeToSlide,i=t.verticalSwiping,s=t.rtl,l=t.currentSlide,c=t.edgeFriction,u=t.edgeDragged,d=t.onEdge,p=t.swiped,h=t.swiping,f=t.slideCount,m=t.slidesToScroll,y=t.infinite,g=t.touchObject,v=t.swipeEvent,x=t.listHeight,b=t.listWidth;if(!r){if(o)return e9e(e);n&&a&&i&&e9e(e);var w,k={},_=y9e(t);g.curX=e.touches?e.touches[0].pageX:e.clientX,g.curY=e.touches?e.touches[0].pageY:e.clientY,g.swipeLength=Math.round(Math.sqrt(Math.pow(g.curX-g.startX,2)));var C=Math.round(Math.sqrt(Math.pow(g.curY-g.startY,2)));if(!i&&!h&&C>10)return{scrolling:!0};i&&(g.swipeLength=C);var M=(s?-1:1)*(g.curX>g.startX?1:-1);i&&(M=g.curY>g.startY?1:-1);var S=Math.ceil(f/m),D=l9e(t.touchObject,i),O=g.swipeLength;return y||(0===l&&("right"===D||"down"===D)||l+1>=S&&("left"===D||"up"===D)||!c9e(t)&&("left"===D||"up"===D))&&(O=g.swipeLength*c,!1===u&&d&&(d(D),k.edgeDragged=!0)),!p&&v&&(v(D),k.swiped=!0),w=n?_+O*(x/b)*M:s?_-O*M:_+O*M,i&&(w=_+O*M),k=X7e(X7e({},k),{},{touchObject:g,swipeLeft:w,trackStyle:f9e(X7e(X7e({},t),{},{left:w}))}),Math.abs(g.curX-g.startX)<.8*Math.abs(g.curY-g.startY)?k:(g.swipeLength>10&&(k.swiping=!0,e9e(e)),k)}},q7e.swipeEnd=function(e,t){var r=t.dragging,o=t.swipe,n=t.touchObject,a=t.listWidth,i=t.touchThreshold,s=t.verticalSwiping,l=t.listHeight,c=t.swipeToSlide,u=t.scrolling,d=t.onSwipe,p=t.targetSlide,h=t.currentSlide,f=t.infinite;if(!r)return o&&e9e(e),{};var m=s?l/i:a/i,y=l9e(n,s),g={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(u)return g;if(!n.swipeLength)return g;if(n.swipeLength>m){var v,x;e9e(e),d&&d(y);var b=f?h:p;switch(y){case"left":case"up":x=b+p9e(t),v=c?d9e(t,x):x,g.currentDirection=0;break;case"right":case"down":x=b-p9e(t),v=c?d9e(t,x):x,g.currentDirection=1;break;default:v=b}g.triggerSlideHandler=v}else{var w=y9e(t);g.trackStyle=m9e(X7e(X7e({},t),{},{left:w}))}return g};var u9e=q7e.getNavigableIndexes=function(e){for(var t=e.infinite?2*e.slideCount:e.slideCount,r=e.infinite?-1*e.slidesToShow:0,o=e.infinite?-1*e.slidesToShow:0,n=[];r<t;)n.push(r),r=o+e.slidesToScroll,o+=Math.min(e.slidesToScroll,e.slidesToShow);return n},d9e=q7e.checkNavigable=function(e,t){var r=u9e(e),o=0;if(t>r[r.length-1])t=r[r.length-1];else for(var n in r){if(t<r[n]){t=o;break}o=r[n]}return t},p9e=q7e.getSlideCount=function(e){var t=e.centerMode?e.slideWidth*Math.floor(e.slidesToShow/2):0;if(e.swipeToSlide){var r,o=e.listRef,n=o.querySelectorAll&&o.querySelectorAll(".slick-slide")||[];if(Array.from(n).every(function(o){if(e.vertical){if(o.offsetTop+s9e(o)/2>-1*e.swipeLeft)return r=o,!1}else if(o.offsetLeft-t+i9e(o)/2>-1*e.swipeLeft)return r=o,!1;return!0}),!r)return 0;var a=!0===e.rtl?e.slideCount-e.currentSlide:e.currentSlide;return Math.abs(r.dataset.index-a)||1}return e.slidesToScroll},h9e=q7e.checkSpecKeys=function(e,t){return t.reduce(function(t,r){return t&&e.hasOwnProperty(r)},!0)?null:console.error("Keys Missing:",e)},f9e=q7e.getTrackCSS=function(e){var t,r;h9e(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var o=e.slideCount+2*e.slidesToShow;e.vertical?r=o*e.slideHeight:t=x9e(e)*e.slideWidth;var n={opacity:1,transition:"",WebkitTransition:""};if(e.useTransform){var a=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",i=e.vertical?"translate3d(0px, "+e.left+"px, 0px)":"translate3d("+e.left+"px, 0px, 0px)",s=e.vertical?"translateY("+e.left+"px)":"translateX("+e.left+"px)";n=X7e(X7e({},n),{},{WebkitTransform:a,transform:i,msTransform:s})}else e.vertical?n.top=e.left:n.left=e.left;return e.fade&&(n={opacity:1}),t&&(n.width=t),r&&(n.height=r),window&&!window.addEventListener&&window.attachEvent&&(e.vertical?n.marginTop=e.left+"px":n.marginLeft=e.left+"px"),n},m9e=q7e.getTrackAnimateCSS=function(e){h9e(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=f9e(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},y9e=q7e.getTrackLeft=function(e){if(e.unslick)return 0;h9e(e,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var t,r,o=e.slideIndex,n=e.trackRef,a=e.infinite,i=e.centerMode,s=e.slideCount,l=e.slidesToShow,c=e.slidesToScroll,u=e.slideWidth,d=e.listWidth,p=e.variableWidth,h=e.slideHeight,f=e.fade,m=e.vertical;if(f||1===e.slideCount)return 0;var y=0;if(a?(y=-g9e(e),s%c!==0&&o+c>s&&(y=-(o>s?l-(o-s):s%c)),i&&(y+=parseInt(l/2))):(s%c!==0&&o+c>s&&(y=l-s%c),i&&(y=parseInt(l/2))),t=m?o*h*-1+y*h:o*u*-1+y*u,!0===p){var g,v=n&&n.node;if(g=o+g9e(e),t=(r=v&&v.childNodes[g])?-1*r.offsetLeft:0,!0===i){g=a?o+g9e(e):o,r=v&&v.children[g],t=0;for(var x=0;x<g;x++)t-=v&&v.children[x]&&v.children[x].offsetWidth;t-=parseInt(e.centerPadding),t+=r&&(d-r.offsetWidth)/2}}return t},g9e=q7e.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},v9e=q7e.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},x9e=q7e.getTotalSlides=function(e){return 1===e.slideCount?1:g9e(e)+e.slideCount+v9e(e)},b9e=q7e.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+w9e(e)?"left":"right":e.targetSlide<e.currentSlide-k9e(e)?"right":"left"},w9e=q7e.slidesOnRight=function(e){var t=e.slidesToShow,r=e.centerMode,o=e.rtl,n=e.centerPadding;if(r){var a=(t-1)/2+1;return parseInt(n)>0&&(a+=1),o&&t%2==0&&(a+=1),a}return o?0:t-1},k9e=q7e.slidesOnLeft=function(e){var t=e.slidesToShow,r=e.centerMode,o=e.rtl,n=e.centerPadding;if(r){var a=(t-1)/2+1;return parseInt(n)>0&&(a+=1),o||t%2!=0||(a+=1),a}return o?t-1:0};q7e.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};var _9e=q7e.validSettings=Object.keys(G7e.default);var C9e={};Object.defineProperty(C9e,"__esModule",{value:!0}),C9e.Track=void 0;var M9e=O9e(l.default),S9e=O9e(h5e.exports),D9e=q7e;function O9e(e){return e&&e.__esModule?e:{default:e}}function P9e(e){return P9e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P9e(e)}function E9e(){return E9e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},E9e.apply(this,arguments)}function j9e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,B9e(o.key),o)}}function T9e(e,t){return T9e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T9e(e,t)}function N9e(e){var t=F9e();return function(){var r,o=z9e(e);if(t){var n=z9e(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===P9e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return R9e(e)}(this,r)}}function R9e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(F9e=function(){return!!e})()}function z9e(e){return z9e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},z9e(e)}function I9e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function A9e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?I9e(Object(r),!0).forEach(function(t){L9e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I9e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function L9e(e,t,r){return(t=B9e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B9e(e){var t=function(e,t){if("object"!=P9e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=P9e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==P9e(t)?t:String(t)}var V9e=function(e){var t,r,o,n,a;return o=(a=e.rtl?e.slideCount-1-e.index:e.index)<0||a>=e.slideCount,e.centerMode?(n=Math.floor(e.slidesToShow/2),r=(a-e.currentSlide)%e.slideCount===0,a>e.currentSlide-n-1&&a<=e.currentSlide+n&&(t=!0)):t=e.currentSlide<=a&&a<e.currentSlide+e.slidesToShow,{"slick-slide":!0,"slick-active":t,"slick-center":r,"slick-cloned":o,"slick-current":a===(e.targetSlide<0?e.targetSlide+e.slideCount:e.targetSlide>=e.slideCount?e.targetSlide-e.slideCount:e.targetSlide)}},$9e=function(e,t){return e.key||t},H9e=function(e){var t,r=[],o=[],n=[],a=M9e.default.Children.count(e.children),i=(0,D9e.lazyStartIndex)(e),s=(0,D9e.lazyEndIndex)(e);return M9e.default.Children.forEach(e.children,function(l,c){var u,d={message:"children",index:c,slidesToScroll:e.slidesToScroll,currentSlide:e.currentSlide};u=!e.lazyLoad||e.lazyLoad&&e.lazyLoadedList.indexOf(c)>=0?l:M9e.default.createElement("div",null);var p=function(e){var t={};return void 0!==e.variableWidth&&!1!==e.variableWidth||(t.width=e.slideWidth),e.fade&&(t.position="relative",e.vertical?t.top=-e.index*parseInt(e.slideHeight):t.left=-e.index*parseInt(e.slideWidth),t.opacity=e.currentSlide===e.index?1:0,t.zIndex=e.currentSlide===e.index?999:998,e.useCSS&&(t.transition="opacity "+e.speed+"ms "+e.cssEase+", visibility "+e.speed+"ms "+e.cssEase)),t}(A9e(A9e({},e),{},{index:c})),h=u.props.className||"",f=V9e(A9e(A9e({},e),{},{index:c}));if(r.push(M9e.default.cloneElement(u,{key:"original"+$9e(u,c),"data-index":c,className:(0,S9e.default)(f,h),tabIndex:"-1","aria-hidden":!f["slick-active"],style:A9e(A9e({outline:"none"},u.props.style||{}),p),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}})),e.infinite&&!1===e.fade){var m=a-c;m<=(0,D9e.getPreClones)(e)&&((t=-m)>=i&&(u=l),f=V9e(A9e(A9e({},e),{},{index:t})),o.push(M9e.default.cloneElement(u,{key:"precloned"+$9e(u,t),"data-index":t,tabIndex:"-1",className:(0,S9e.default)(f,h),"aria-hidden":!f["slick-active"],style:A9e(A9e({},u.props.style||{}),p),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}}))),(t=a+c)<s&&(u=l),f=V9e(A9e(A9e({},e),{},{index:t})),n.push(M9e.default.cloneElement(u,{key:"postcloned"+$9e(u,t),"data-index":t,tabIndex:"-1",className:(0,S9e.default)(f,h),"aria-hidden":!f["slick-active"],style:A9e(A9e({},u.props.style||{}),p),onClick:function(t){u.props&&u.props.onClick&&u.props.onClick(t),e.focusOnSelect&&e.focusOnSelect(d)}}))}}),e.rtl?o.concat(r,n).reverse():o.concat(r,n)};C9e.Track=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T9e(e,t)}(n,M9e["default"].PureComponent);var e,t,r,o=N9e(n);function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return L9e(R9e(e=o.call.apply(o,[this].concat(r))),"node",null),L9e(R9e(e),"handleRef",function(t){e.node=t}),e}return e=n,(t=[{key:"render",value:function(){var e=H9e(this.props),t=this.props,r={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return M9e.default.createElement("div",E9e({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},r),e)}}])&&j9e(e.prototype,t),r&&j9e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var q9e={};function W9e(e){return W9e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},W9e(e)}Object.defineProperty(q9e,"__esModule",{value:!0}),q9e.Dots=void 0;var U9e=Y9e(l.default),G9e=Y9e(h5e.exports),K9e=q7e;function Y9e(e){return e&&e.__esModule?e:{default:e}}function Z9e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function X9e(e,t,r){return(t=J9e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q9e(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,J9e(o.key),o)}}function J9e(e){var t=function(e,t){if("object"!=W9e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=W9e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==W9e(t)?t:String(t)}function eet(e,t){return eet=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eet(e,t)}function tet(e){var t=ret();return function(){var r,o=oet(e);if(t){var n=oet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===W9e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function ret(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ret=function(){return!!e})()}function oet(e){return oet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oet(e)}q9e.Dots=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eet(e,t)}(n,U9e["default"].PureComponent);var e,t,r,o=tet(n);function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),o.apply(this,arguments)}return e=n,t=[{key:"clickHandler",value:function(e,t){t.preventDefault(),this.props.clickHandler(e)}},{key:"render",value:function(){for(var e,t=this.props,r=t.onMouseEnter,o=t.onMouseOver,n=t.onMouseLeave,a=t.infinite,i=t.slidesToScroll,s=t.slidesToShow,l=t.slideCount,c=t.currentSlide,u=(e={slideCount:l,slidesToScroll:i,slidesToShow:s,infinite:a}).infinite?Math.ceil(e.slideCount/e.slidesToScroll):Math.ceil((e.slideCount-e.slidesToShow)/e.slidesToScroll)+1,d={onMouseEnter:r,onMouseOver:o,onMouseLeave:n},p=[],h=0;h<u;h++){var f=(h+1)*i-1,m=a?f:(0,K9e.clamp)(f,0,l-1),y=m-(i-1),g=a?y:(0,K9e.clamp)(y,0,l-1),v=(0,G9e.default)({"slick-active":a?c>=g&&c<=m:c===g}),x={message:"dots",index:h,slidesToScroll:i,currentSlide:c},b=this.clickHandler.bind(this,x);p=p.concat(U9e.default.createElement("li",{key:h,className:v},U9e.default.cloneElement(this.props.customPaging(h),{onClick:b})))}return U9e.default.cloneElement(this.props.appendDots(p),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Z9e(Object(r),!0).forEach(function(t){X9e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Z9e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:this.props.dotsClass},d))}}],t&&Q9e(e.prototype,t),r&&Q9e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var net={};function aet(e){return aet="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aet(e)}Object.defineProperty(net,"__esModule",{value:!0}),net.PrevArrow=net.NextArrow=void 0;var iet=uet(l.default),set=uet(h5e.exports),cet=q7e;function uet(e){return e&&e.__esModule?e:{default:e}}function det(){return det=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},det.apply(this,arguments)}function pet(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function het(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pet(Object(r),!0).forEach(function(t){fet(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pet(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function fet(e,t,r){return(t=vet(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function met(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yet(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,vet(o.key),o)}}function get(e,t,r){return t&&yet(e.prototype,t),r&&yet(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function vet(e){var t=function(e,t){if("object"!=aet(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=aet(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==aet(t)?t:String(t)}function xet(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bet(e,t)}function bet(e,t){return bet=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bet(e,t)}function wet(e){var t=ket();return function(){var r,o=_et(e);if(t){var n=_et(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===aet(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}function ket(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ket=function(){return!!e})()}function _et(e){return _et=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_et(e)}net.PrevArrow=function(){xet(t,iet["default"].PureComponent);var e=wet(t);function t(){return met(this,t),e.apply(this,arguments)}return get(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-prev":!0},t=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(0===this.props.currentSlide||this.props.slideCount<=this.props.slidesToShow)&&(e["slick-disabled"]=!0,t=null);var r={key:"0","data-role":"none",className:(0,set.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?iet.default.cloneElement(this.props.prevArrow,het(het({},r),o)):iet.default.createElement("button",det({key:"0",type:"button"},r)," ","Previous")}}]),t}(),net.NextArrow=function(){xet(t,iet["default"].PureComponent);var e=wet(t);function t(){return met(this,t),e.apply(this,arguments)}return get(t,[{key:"clickHandler",value:function(e,t){t&&t.preventDefault(),this.props.clickHandler(e,t)}},{key:"render",value:function(){var e={"slick-arrow":!0,"slick-next":!0},t=this.clickHandler.bind(this,{message:"next"});(0,cet.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var r={key:"1","data-role":"none",className:(0,set.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?iet.default.cloneElement(this.props.nextArrow,het(het({},r),o)):iet.default.createElement("button",det({key:"1",type:"button"},r)," ","Next")}}]),t}();var Cet=ee(N8e);Object.defineProperty(D7e,"__esModule",{value:!0}),D7e.InnerSlider=void 0;var Met=Fet(l.default),Det=Fet(O7e),Oet=Fet(H7e),Pet=Fet(h5e.exports),Eet=q7e,jet=C9e,Tet=q9e,Net=net,Ret=Fet(Cet);function Fet(e){return e&&e.__esModule?e:{default:e}}function zet(e){return zet="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},zet(e)}function Iet(){return Iet=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Iet.apply(this,arguments)}function Aet(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Let(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function Bet(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Let(Object(r),!0).forEach(function(t){Get(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Let(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Vet(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ket(o.key),o)}}function $et(e,t){return $et=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$et(e,t)}function Het(e){var t=Wet();return function(){var r,o=Uet(e);if(t){var n=Uet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===zet(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qet(e)}(this,r)}}function qet(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Wet=function(){return!!e})()}function Uet(e){return Uet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Uet(e)}function Get(e,t,r){return(t=Ket(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ket(e){var t=function(e,t){if("object"!=zet(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=zet(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zet(t)?t:String(t)}D7e.InnerSlider=function(){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$et(e,t)}(n,Met["default"].Component);var e,t,r,o=Het(n);function n(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),Get(qet(t=o.call(this,e)),"listRefHandler",function(e){return t.list=e}),Get(qet(t),"trackRefHandler",function(e){return t.track=e}),Get(qet(t),"adaptHeight",function(){if(t.props.adaptiveHeight&&t.list){var e=t.list.querySelector('[data-index="'.concat(t.state.currentSlide,'"]'));t.list.style.height=(0,Eet.getHeight)(e)+"px"}}),Get(qet(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,Eet.getOnDemandLazySlides)(Bet(Bet({},t.props),t.state));e.length>0&&(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e))}var r=Bet({listRef:t.list,trackRef:t.track},t.props);t.updateState(r,!0,function(){t.adaptHeight(),t.props.autoplay&&t.autoPlay("update")}),"progressive"===t.props.lazyLoad&&(t.lazyLoadTimer=setInterval(t.progressiveLazyLoad,1e3)),t.ro=new Ret.default(function(){t.state.animating?(t.onWindowResized(!1),t.callbackTimers.push(setTimeout(function(){return t.onWindowResized()},t.props.speed))):t.onWindowResized()}),t.ro.observe(t.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(e){e.onfocus=t.props.pauseOnFocus?t.onSlideFocus:null,e.onblur=t.props.pauseOnFocus?t.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",t.onWindowResized):window.attachEvent("onresize",t.onWindowResized)}),Get(qet(t),"componentWillUnmount",function(){t.animationEndCallback&&clearTimeout(t.animationEndCallback),t.lazyLoadTimer&&clearInterval(t.lazyLoadTimer),t.callbackTimers.length&&(t.callbackTimers.forEach(function(e){return clearTimeout(e)}),t.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",t.onWindowResized):window.detachEvent("onresize",t.onWindowResized),t.autoplayTimer&&clearInterval(t.autoplayTimer),t.ro.disconnect()}),Get(qet(t),"componentDidUpdate",function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var r=(0,Eet.getOnDemandLazySlides)(Bet(Bet({},t.props),t.state));r.length>0&&(t.setState(function(e){return{lazyLoadedList:e.lazyLoadedList.concat(r)}}),t.props.onLazyLoad&&t.props.onLazyLoad(r))}t.adaptHeight();var o=Bet(Bet({listRef:t.list,trackRef:t.track},t.props),t.state),n=t.didPropsChange(e);n&&t.updateState(o,n,function(){t.state.currentSlide>=Met.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:Met.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),Get(qet(t),"onWindowResized",function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,Oet.default)(function(){return t.resizeWindow(e)},50),t.debouncedResize()}),Get(qet(t),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var r=Bet(Bet({listRef:t.list,trackRef:t.track},t.props),t.state);t.updateState(r,e,function(){t.props.autoplay?t.autoPlay("update"):t.pause("paused")}),t.setState({animating:!1}),clearTimeout(t.animationEndCallback),delete t.animationEndCallback}}),Get(qet(t),"updateState",function(e,r,o){var n=(0,Eet.initializedState)(e);e=Bet(Bet(Bet({},e),n),{},{slideIndex:n.currentSlide});var a=(0,Eet.getTrackLeft)(e);e=Bet(Bet({},e),{},{left:a});var i=(0,Eet.getTrackCSS)(e);(r||Met.default.Children.count(t.props.children)!==Met.default.Children.count(e.children))&&(n.trackStyle=i),t.setState(n,o)}),Get(qet(t),"ssrInit",function(){if(t.props.variableWidth){var e=0,r=0,o=[],n=(0,Eet.getPreClones)(Bet(Bet(Bet({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,Eet.getPostClones)(Bet(Bet(Bet({},t.props),t.state),{},{slideCount:t.props.children.length}));t.props.children.forEach(function(t){o.push(t.props.style.width),e+=t.props.style.width});for(var i=0;i<n;i++)r+=o[o.length-1-i],e+=o[o.length-1-i];for(var s=0;s<a;s++)e+=o[s];for(var l=0;l<t.state.currentSlide;l++)r+=o[l];var c={width:e+"px",left:-r+"px"};if(t.props.centerMode){var u="".concat(o[t.state.currentSlide],"px");c.left="calc(".concat(c.left," + (100% - ").concat(u,") / 2 ) ")}return{trackStyle:c}}var d=Met.default.Children.count(t.props.children),p=Bet(Bet(Bet({},t.props),t.state),{},{slideCount:d}),h=(0,Eet.getPreClones)(p)+(0,Eet.getPostClones)(p)+d,f=100/t.props.slidesToShow*h,m=100/h,y=-m*((0,Eet.getPreClones)(p)+t.state.currentSlide)*f/100;return t.props.centerMode&&(y+=(100-m*f/100)/2),{slideWidth:m+"%",trackStyle:{width:f+"%",left:y+"%"}}}),Get(qet(t),"checkImagesLoad",function(){var e=t.list&&t.list.querySelectorAll&&t.list.querySelectorAll(".slick-slide img")||[],r=e.length,o=0;Array.prototype.forEach.call(e,function(e){var n=function(){return++o&&o>=r&&t.onWindowResized()};if(e.onclick){var a=e.onclick;e.onclick=function(t){a(t),e.parentNode.focus()}}else e.onclick=function(){return e.parentNode.focus()};e.onload||(t.props.lazyLoad?e.onload=function(){t.adaptHeight(),t.callbackTimers.push(setTimeout(t.onWindowResized,t.props.speed))}:(e.onload=n,e.onerror=function(){n(),t.props.onLazyLoadError&&t.props.onLazyLoadError()}))})}),Get(qet(t),"progressiveLazyLoad",function(){for(var e=[],r=Bet(Bet({},t.props),t.state),o=t.state.currentSlide;o<t.state.slideCount+(0,Eet.getPostClones)(r);o++)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}for(var n=t.state.currentSlide-1;n>=-(0,Eet.getPreClones)(r);n--)if(t.state.lazyLoadedList.indexOf(n)<0){e.push(n);break}e.length>0?(t.setState(function(t){return{lazyLoadedList:t.lazyLoadedList.concat(e)}}),t.props.onLazyLoad&&t.props.onLazyLoad(e)):t.lazyLoadTimer&&(clearInterval(t.lazyLoadTimer),delete t.lazyLoadTimer)}),Get(qet(t),"slideHandler",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=t.props,n=o.asNavFor,a=o.beforeChange,i=o.onLazyLoad,s=o.speed,l=o.afterChange,c=t.state.currentSlide,u=(0,Eet.slideHandler)(Bet(Bet(Bet({index:e},t.props),t.state),{},{trackRef:t.track,useCSS:t.props.useCSS&&!r})),d=u.state,p=u.nextState;if(d){a&&a(c,d.currentSlide);var h=d.lazyLoadedList.filter(function(e){return t.state.lazyLoadedList.indexOf(e)<0});i&&h.length>0&&i(h),!t.props.waitForAnimate&&t.animationEndCallback&&(clearTimeout(t.animationEndCallback),l&&l(c),delete t.animationEndCallback),t.setState(d,function(){n&&t.asNavForIndex!==e&&(t.asNavForIndex=e,n.innerSlider.slideHandler(e)),p&&(t.animationEndCallback=setTimeout(function(){var e=p.animating,r=Aet(p,["animating"]);t.setState(r,function(){t.callbackTimers.push(setTimeout(function(){return t.setState({animating:e})},10)),l&&l(d.currentSlide),delete t.animationEndCallback})},s))})}}),Get(qet(t),"changeSlide",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Bet(Bet({},t.props),t.state),n=(0,Eet.changeSlide)(o,e);if((0===n||n)&&(!0===r?t.slideHandler(n,r):t.slideHandler(n),t.props.autoplay&&t.autoPlay("update"),t.props.focusOnSelect)){var a=t.list.querySelectorAll(".slick-current");a[0]&&a[0].focus()}}),Get(qet(t),"clickHandler",function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0}),Get(qet(t),"keyHandler",function(e){var r=(0,Eet.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==r&&t.changeSlide({message:r})}),Get(qet(t),"selectHandler",function(e){t.changeSlide(e)}),Get(qet(t),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),Get(qet(t),"enableBodyScroll",function(){window.ontouchmove=null}),Get(qet(t),"swipeStart",function(e){t.props.verticalSwiping&&t.disableBodyScroll();var r=(0,Eet.swipeStart)(e,t.props.swipe,t.props.draggable);""!==r&&t.setState(r)}),Get(qet(t),"swipeMove",function(e){var r=(0,Eet.swipeMove)(e,Bet(Bet(Bet({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));r&&(r.swiping&&(t.clickable=!1),t.setState(r))}),Get(qet(t),"swipeEnd",function(e){var r=(0,Eet.swipeEnd)(e,Bet(Bet(Bet({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));if(r){var o=r.triggerSlideHandler;delete r.triggerSlideHandler,t.setState(r),void 0!==o&&(t.slideHandler(o),t.props.verticalSwiping&&t.enableBodyScroll())}}),Get(qet(t),"touchEnd",function(e){t.swipeEnd(e),t.clickable=!0}),Get(qet(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),Get(qet(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),Get(qet(t),"slickGoTo",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=Number(e),isNaN(e))return"";t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"index",index:e,currentSlide:t.state.currentSlide},r)},0))}),Get(qet(t),"play",function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,Eet.canGoNext)(Bet(Bet({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)}),Get(qet(t),"autoPlay",function(e){t.autoplayTimer&&clearInterval(t.autoplayTimer);var r=t.state.autoplaying;if("update"===e){if("hovered"===r||"focused"===r||"paused"===r)return}else if("leave"===e){if("paused"===r||"focused"===r)return}else if("blur"===e&&("paused"===r||"hovered"===r))return;t.autoplayTimer=setInterval(t.play,t.props.autoplaySpeed+50),t.setState({autoplaying:"playing"})}),Get(qet(t),"pause",function(e){t.autoplayTimer&&(clearInterval(t.autoplayTimer),t.autoplayTimer=null);var r=t.state.autoplaying;"paused"===e?t.setState({autoplaying:"paused"}):"focused"===e?"hovered"!==r&&"playing"!==r||t.setState({autoplaying:"focused"}):"playing"===r&&t.setState({autoplaying:"hovered"})}),Get(qet(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),Get(qet(t),"onDotsLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),Get(qet(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),Get(qet(t),"onTrackLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),Get(qet(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),Get(qet(t),"onSlideBlur",function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")}),Get(qet(t),"render",function(){var e,r,o,n=(0,Pet.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),a=Bet(Bet({},t.props),t.state),i=(0,Eet.extractObject)(a,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),s=t.props.pauseOnHover;if(i=Bet(Bet({},i),{},{onMouseEnter:s?t.onTrackOver:null,onMouseLeave:s?t.onTrackLeave:null,onMouseOver:s?t.onTrackOver:null,focusOnSelect:t.props.focusOnSelect&&t.clickable?t.selectHandler:null}),!0===t.props.dots&&t.state.slideCount>=t.props.slidesToShow){var l=(0,Eet.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),c=t.props.pauseOnDotsHover;l=Bet(Bet({},l),{},{clickHandler:t.changeSlide,onMouseEnter:c?t.onDotsLeave:null,onMouseOver:c?t.onDotsOver:null,onMouseLeave:c?t.onDotsLeave:null}),e=Met.default.createElement(Tet.Dots,l)}var u=(0,Eet.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);u.clickHandler=t.changeSlide,t.props.arrows&&(r=Met.default.createElement(Net.PrevArrow,u),o=Met.default.createElement(Net.NextArrow,u));var d=null;t.props.vertical&&(d={height:t.state.listHeight});var p=null;!1===t.props.vertical?!0===t.props.centerMode&&(p={padding:"0px "+t.props.centerPadding}):!0===t.props.centerMode&&(p={padding:t.props.centerPadding+" 0px"});var h=Bet(Bet({},d),p),f=t.props.touchMove,m={className:"slick-list",style:h,onClick:t.clickHandler,onMouseDown:f?t.swipeStart:null,onMouseMove:t.state.dragging&&f?t.swipeMove:null,onMouseUp:f?t.swipeEnd:null,onMouseLeave:t.state.dragging&&f?t.swipeEnd:null,onTouchStart:f?t.swipeStart:null,onTouchMove:t.state.dragging&&f?t.swipeMove:null,onTouchEnd:f?t.touchEnd:null,onTouchCancel:t.state.dragging&&f?t.swipeEnd:null,onKeyDown:t.props.accessibility?t.keyHandler:null},y={className:n,dir:"ltr",style:t.props.style};return t.props.unslick&&(m={className:"slick-list"},y={className:n}),Met.default.createElement("div",y,t.props.unslick?"":r,Met.default.createElement("div",Iet({ref:t.listRefHandler},m),Met.default.createElement(jet.Track,Iet({ref:t.trackRefHandler},i),t.props.children)),t.props.unslick?"":o,t.props.unslick?"":e)}),t.list=null,t.track=null,t.state=Bet(Bet({},Det.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:Met.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var r=t.ssrInit();return t.state=Bet(Bet({},t.state),r),t}return e=n,t=[{key:"didPropsChange",value:function(e){for(var t=!1,r=0,o=Object.keys(this.props);r<o.length;r++){var n=o[r];if(!e.hasOwnProperty(n)){t=!0;break}if("object"!==zet(e[n])&&"function"!=typeof e[n]&&!isNaN(e[n])&&e[n]!==this.props[n]){t=!0;break}}return t||Met.default.Children.count(this.props.children)!==Met.default.Children.count(e.children)}}],t&&Vet(e.prototype,t),r&&Vet(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var Yet,Zet,Xet,Qet,Jet,ett,ttt,rtt,ott,ntt,att=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()},itt=att,stt=function(e){var t="",r=Object.keys(e);return r.forEach(function(o,n){var a=e[o];(function(e){return/[height|width]$/.test(e)})(o=itt(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",n<r.length-1&&(t+=" and ")}),t},ltt=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(r,o){t+=stt(r),o<e.length-1&&(t+=", ")}),t):stt(e)};function ctt(){if(Qet)return Xet;return Qet=1,Xet={isFunction:function(e){return"function"==typeof e},isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},each:function(e,t){for(var r=0,o=e.length;r<o&&!1!==t(e[r],r);r++);}},Xet}function utt(){if(ett)return Jet;ett=1;var e=function(){if(Zet)return Yet;function e(e){this.options=e,!e.deferSetup&&this.setup()}return Zet=1,e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},Yet=e}(),t=ctt().each;function r(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var r=this;this.listener=function(e){r.mql=e.currentTarget||e,r.assess()},this.mql.addListener(this.listener)}return r.prototype={constuctor:r,addHandler:function(t){var r=new e(t);this.handlers.push(r),this.matches()&&r.on()},removeHandler:function(e){var r=this.handlers;t(r,function(t,o){if(t.equals(e))return t.destroy(),!r.splice(o,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){t(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";t(this.handlers,function(t){t[e]()})}},Jet=r}function dtt(){if(ntt)return ott;ntt=1;var e=function(){if(rtt)return ttt;rtt=1;var e=utt(),t=ctt(),r=t.each,o=t.isFunction,n=t.isArray;function a(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return a.prototype={constructor:a,register:function(t,a,i){var s=this.queries,l=i&&this.browserIsIncapable;return s[t]||(s[t]=new e(t,l)),o(a)&&(a={match:a}),n(a)||(a=[a]),r(a,function(e){o(e)&&(e={match:e}),s[t].addHandler(e)}),this},unregister:function(e,t){var r=this.queries[e];return r&&(t?r.removeHandler(t):(r.clear(),delete this.queries[e])),this}},ttt=a}();return ott=new e}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(l.default),r=D7e,o=i(ltt),n=i(W7e),a=q7e;function i(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},c.apply(this,arguments)}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,o)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,x(o.key),o)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function f(e){var t=y();return function(){var r,o=g(e);if(t){var n=g(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}(this,r)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function v(e,t,r){return(t=x(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function x(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==s(t)?t:String(t)}var b=(0,a.canUseDOM)()&&dtt();e.default=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(y,e);var i,s,l,u=f(y);function y(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),v(m(t=u.call(this,e)),"innerSliderRefHandler",function(e){return t.innerSlider=e}),v(m(t),"slickPrev",function(){return t.innerSlider.slickPrev()}),v(m(t),"slickNext",function(){return t.innerSlider.slickNext()}),v(m(t),"slickGoTo",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t.innerSlider.slickGoTo(e,r)}),v(m(t),"slickPause",function(){return t.innerSlider.pause("paused")}),v(m(t),"slickPlay",function(){return t.innerSlider.autoPlay("play")}),t.state={breakpoint:null},t._responsiveMediaHandlers=[],t}return i=y,s=[{key:"media",value:function(e,t){b.register(e,t),this._responsiveMediaHandlers.push({query:e,handler:t})}},{key:"componentDidMount",value:function(){var e=this;if(this.props.responsive){var t=this.props.responsive.map(function(e){return e.breakpoint});t.sort(function(e,t){return e-t}),t.forEach(function(r,n){var i;i=0===n?(0,o.default)({minWidth:0,maxWidth:r}):(0,o.default)({minWidth:t[n-1]+1,maxWidth:r}),(0,a.canUseDOM)()&&e.media(i,function(){e.setState({breakpoint:r})})});var r=(0,o.default)({minWidth:t.slice(-1)[0]});(0,a.canUseDOM)()&&this.media(r,function(){e.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(e){b.unregister(e.query,e.handler)})}},{key:"render",value:function(){var e,o,i=this;(e=this.state.breakpoint?"unslick"===(o=this.props.responsive.filter(function(e){return e.breakpoint===i.state.breakpoint}))[0].settings?"unslick":d(d(d({},n.default),this.props),o[0].settings):d(d({},n.default),this.props)).centerMode&&(e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&"slidesToScroll should be equal to 1 in centerMode, you are using ".concat(e.slidesToScroll),e.slidesToScroll=1),e.fade&&(e.slidesToShow>1&&"production"!==process.env.NODE_ENV&&"slidesToShow should be equal to 1 when fade is true, you're using ".concat(e.slidesToShow),e.slidesToScroll>1&&"production"!==process.env.NODE_ENV&&"slidesToScroll should be equal to 1 when fade is true, you're using ".concat(e.slidesToScroll),e.slidesToShow=1,e.slidesToScroll=1);var s=t.default.Children.toArray(this.props.children);s=s.filter(function(e){return"string"==typeof e?!!e.trim():!!e}),e.variableWidth&&(e.rows>1||e.slidesPerRow>1)&&(e.variableWidth=!1);for(var l=[],u=null,p=0;p<s.length;p+=e.rows*e.slidesPerRow){for(var h=[],f=p;f<p+e.rows*e.slidesPerRow;f+=e.slidesPerRow){for(var m=[],y=f;y<f+e.slidesPerRow&&(e.variableWidth&&s[y].props.style&&(u=s[y].props.style.width),!(y>=s.length));y+=1)m.push(t.default.cloneElement(s[y],{key:100*p+10*f+y,tabIndex:-1,style:{width:"".concat(100/e.slidesPerRow,"%"),display:"inline-block"}}));h.push(t.default.createElement("div",{key:10*p+f},m))}e.variableWidth?l.push(t.default.createElement("div",{key:p,style:{width:u}},h)):l.push(t.default.createElement("div",{key:p},h))}if("unslick"===e){var g="regular slider "+(this.props.className||"");return t.default.createElement("div",{className:g},s)}return l.length<=e.slidesToShow&&!e.infinite&&(e.unslick=!0),t.default.createElement(r.InnerSlider,c({style:this.props.style,ref:this.innerSliderRefHandler},(0,a.filterSettings)(e)),l)}}],s&&p(i.prototype,s),l&&p(i,l),Object.defineProperty(i,"prototype",{writable:!1}),y}(t.default.Component)}(S7e),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,r=(t=S7e)&&t.__esModule?t:{default:t};e.default=r.default}(M7e);var ptt=J(M7e);const htt=(e,t)=>{Object.values(e).forEach(e=>{const r=e,o=r&&r._f;o?t(o):r&&"object"==typeof r&&htt(r,t)})},ftt=({mode:t="onChange",state:r,children:o})=>{const n=function(e={}){const t=l.default.useRef(void 0),r=l.default.useRef(void 0),[o,n]=l.default.useState({isDirty:!1,isValidating:!1,isLoading:sr(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:sr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:o},e.defaultValues&&!sr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:r,...n}=Ar(e);t.current={...n,formState:o}}const a=t.current.control;return a._options=e,Yt(()=>{const e=a._subscribe({formState:a._proxyFormState,callback:()=>n({...a._formState}),reRenderRoot:!0});return n(e=>({...e,isReady:!0})),a._formState.isReady=!0,e},[a]),l.default.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),l.default.useEffect(()=>{e.mode&&(a._options.mode=e.mode),e.reValidateMode&&(a._options.reValidateMode=e.reValidateMode)},[a,e.mode,e.reValidateMode]),l.default.useEffect(()=>{e.errors&&(a._setErrors(e.errors),a._focusError())},[a,e.errors]),l.default.useEffect(()=>{e.shouldUnregister&&a._subjects.state.next({values:a._getWatch()})},[a,e.shouldUnregister]),l.default.useEffect(()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==o.isDirty&&a._subjects.state.next({isDirty:e})}},[a,o.isDirty]),l.default.useEffect(()=>{e.values&&!nr(e.values,r.current)?(a._reset(e.values,{keepFieldsRef:!0,...a._options.resetOptions}),r.current=e.values,n(e=>({...e}))):a._resetDefaultValues()},[a,e.values]),l.default.useEffect(()=>{a._state.mount||(a._setValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),t.current.formState=Kt(o,a),t.current}({mode:t,defaultValues:{}}),{onStateChange:a}=OC(),{formId:i="",routing:s,prefillData:c,loadRecordData:u}=_C(),d=e.useRef(!1),p=e.useRef(null);return e.useEffect(()=>{if(r){if("default"===r)return n.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),void n.clearErrors();if("required_error"===r)return n.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),void n.trigger();if("validation_error"===r){const e=setTimeout(async()=>{n.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),htt(n.control._fields,({name:e,pattern:t})=>{t?.value instanceof RegExp&&".+"===t.value.source&&""===t.value.flags||n.setError(e,{type:"required",message:"object"==typeof t&&t?.message||"Invalid value"})})},0);return()=>clearTimeout(e)}}},[r]),e.useEffect(()=>{n.formState.isDirty&&a({id:i,type:"started"})},[n.formState.isDirty]),e.useEffect(()=>{if(d.current)return;if(!i)return;if(!(!s?.organismIdFromUrl||s.organismIdFromUrl===i))return;d.current=!0;const e=s?.rwoRecordIdFromUrl;e&&"function"==typeof u&&(async()=>{try{const t=await u({rwoRecordId:e});n.reset(t,{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1})}catch{}})()},[i,s?.organismIdFromUrl,s?.rwoRecordIdFromUrl,u]),e.useEffect(()=>{if(!i)return;if((!s?.organismIdFromUrl||s.organismIdFromUrl===i)&&c&&Object.keys(c).length>0){const e=JSON.stringify(c);p.current!==e&&(n.reset(c,{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),p.current=e)}},[c,i,s?.organismIdFromUrl]),ot(Gt,{...n,children:ot(Br,{children:o})})},mtt=(e,t)=>e&&t[e]?`${t[e]}px`:e,ytt=(e,t)=>{if(e&&t)return co`
803
803
  background: url(${t}) center / cover no-repeat;
804
804
  `},gtt=["slider","form"],vtt=xo.div`
805
805
  ${({type:e="default",containerProps:t,properties:r,theme:{sizes:o,colors:n}})=>{const{border:a="",alignItems:i="stretch",position:s="static",gap:l=0,cornerRadius:c=0,paddingTop:u=0,paddingBottom:d=0,paddingLeft:p=0,paddingRight:h=0,scrollBehaviour:f,styles:m}=t||{},{enableBackgroundImage:y,backgroundImage:g}=r||{},[v,x,b=n.gray3]=a.split(" "),w=n[b]||b,k=[u,d,p,h].some(Boolean)?((e,t)=>"string"==typeof e?t[e]?`${t[e]}px`:e:["top","right","bottom","left"].map(r=>mtt(e[r]||0,t)).join(" "))({top:u,bottom:d,left:p,right:h},o):"0px";return co`
@@ -1022,7 +1022,7 @@
1022
1022
  flex: 1;
1023
1023
  position: relative;
1024
1024
  gap: ${({gap:e})=>e?"number"==typeof e?`${e}px`:e:"0"};
1025
- `,Adt=({anchor:t="left",variant:r="persistent",open:o=!1,onClose:n,items:a=[],paddingTop:i,paddingRight:s,paddingBottom:l,paddingLeft:c,height:u,width:d,mobileWidth:p,backgroundColor:h="#fff",gap:f="8px",marginTop:m="0px",marginRight:y="0px",marginBottom:g="0px",marginLeft:v="0px",withButton:x=!0,buttonText:b="",buttonVariant:w="contained",buttonTextColor:k,buttonFontSize:_,buttonFontWeight:C,buttonFontFamily:M,buttonDisabled:S=!1,buttonGap:D=0,buttonStartIcon:O,buttonEndIcon:P,buttonBorderRadius:E="0px",buttonPaddingTop:j="0px",buttonPaddingRight:T="0px",buttonPaddingBottom:N="0px",buttonPaddingLeft:R="0px",buttonMarginTop:F="0px",buttonMarginRight:z="0px",buttonMarginBottom:I="0px",buttonMarginLeft:A="0px",buttonIconOnly:L,buttonElevation:B,buttonFillColor:V,buttonFillColorDisabled:$,buttonFillColorHover:H,buttonFillColorPressed:q,buttonBorderColor:W,buttonBorderColorDisabled:U,buttonBorderColorHover:G,buttonBorderColorPressed:K,buttonTextColorDisabled:Y,buttonTextColorHover:Z,buttonTextColorPressed:X,buttonColor:Q="#1976d2",buttonDisabledColor:J,withCloseIcon:ee=!0,closeIconColor:te=Kr.colors.gray2,closeIconName:re="x",closeIconSize:oe=18,closeIconBackgroundColor:ne="rgba(255, 255, 255, 0.9)",closeIconVisible:ae=!1,closeIconTop:ie="16px",closeIconLeft:se="16px",closeIconBorderRadius:le="50%",closeIconElevation:ce=2,moleculeId:ue,configurationItemInfo:de,sx:pe})=>{const he=Ge(),{isConfigurationMode:fe,selectedConfigurationItemId:me,onConfigurationItemClicked:ye,onInternalNavigation:ge}=_C(),{updateDrawer:ve,drawerContainerRef:xe,headerHeight:be,isMobile:we}=gC(),[ke,_e]=e.useState(o);e.useEffect(()=>{_e(o)},[o]);const Ce=Boolean(fe&&(me===ue||a.some(e=>e.id===me))),Me=()=>"permanent"===r||(fe?Ce:x?ke:o);e.useEffect(()=>{const e=Me(),o="left"===t||"right"===t,n=we&&void 0!==p?p:d;let a=0;if(void 0!==n)if("number"==typeof n)a=n;else if("string"==typeof n){const e=parseFloat(n);Number.isNaN(e)||(a=e)}let i=0;if(o&&!we)switch(r){case"permanent":i=a;break;case"persistent":default:i=e?a:0;break;case"temporary":i=0}return ve({isOpen:e,position:t,width:i}),()=>{ve({isOpen:!1,width:0})}},[ke,o,Ce,fe,x,t,d,p,we,r,ve]);const Se=()=>{"permanent"!==r&&_e(!0)},De=(e,t)=>{"permanent"!==r&&(_e(!1),n?.(e,t))},Oe=we&&void 0!==p?p:d,Pe=ot(Tdt,{anchor:t,variant:r,open:Me(),onClose:De,paddingTop:i,paddingRight:s,paddingBottom:l,paddingLeft:c,height:u,width:Oe,backgroundColor:h,marginTop:`calc(${be} + ${m})`,marginRight:y,marginBottom:g,marginLeft:v,container:xe,sx:pe,children:nt(Fdt,{...de&&Object.keys(de).length?{...de,"data-testid":"drawer-content-config","aria-label":"drawer-content"}:{},children:[(Me()||"permanent"===r)&&a.length>0?ot(Idt,{gap:f,children:a.map(e=>{const t=me===e.id,r={entityId:e.id,entity:"molecule_item",entityType:e.type},o=fe?{onClick:e=>{e.stopPropagation(),ye?.(r,!1)},onDoubleClick:e=>{e.stopPropagation(),ye?.(r,!0)},"data-organism-id":e.id,css:xtt({theme:he,selected:t})}:{};switch(e.type){case"menu_item":{const t=e;return nt(ix,{sx:{backgroundColor:t.backgroundColor||"transparent",paddingTop:t.paddingTop||"8px",paddingRight:t.paddingRight||"16px",paddingBottom:t.paddingBottom||"8px",paddingLeft:t.paddingLeft||"16px",opacity:t.disabled?.6:1,pointerEvents:t.disabled?"none":"auto","&:hover":{backgroundColor:t.disabled?t.backgroundColor||"transparent":"rgba(0, 0, 0, 0.08)"}},onClick:()=>{if(t?.link){x7e(t.link)?ge?.({link:t.link?.internalLink||""}):g7e(t.link?.externalLink)}},disabled:t.disabled,...o,children:[t.startIcon&&ot(uGe,{iconName:t.startIcon,color:t.textColor}),ot(yd,{sx:{ml:t.startIcon?1:0,mr:t.endIcon?1:0,color:t.textColor||"inherit",fontSize:t.fontSize||"inherit",fontWeight:t.fontWeight||"normal",fontFamily:t.fontFamily||"inherit",whiteSpace:t.wrap?"normal":"nowrap",width:"100%",textAlign:t.textAlign||"left"},children:t.text}),t.endIcon&&ot(uGe,{iconName:t.endIcon,color:t.textColor})]},t.id)}case"divider_item":{const t=e;return ot(Sdt,{moleculeId:t.id,variant:t.variant,lineWeight:t.lineWeight,orientation:t.orientation,borderColor:t.borderColor,borderRadius:t.borderRadius,marginTop:t.marginTop,marginRight:t.marginRight,marginBottom:t.marginBottom,marginLeft:t.marginLeft,configurationItemInfo:o},t.id)}case"text_item":{const t=e;return ot(Edt,{id:t.id,text:t.text,align:t.align,color:t.color,wrap:t.wrap,variant:"string"==typeof t.variant&&["inherit","body1","body2","caption","button","overline","subtitle1","subtitle2","h1","h2","h3","h4","h5","h6"].includes(t.variant)?t.variant:void 0,fontSize:t.fontSize??"",fontWeight:["normal","bold"].includes(t.fontWeight)?t.fontWeight:void 0,fontFamily:t.fontFamily??"",marginTop:t.marginTop||"",marginRight:t.marginRight||"",marginBottom:t.marginBottom||"",marginLeft:t.marginLeft||"",paddingTop:t.paddingTop||"",paddingRight:t.paddingRight||"",paddingBottom:t.paddingBottom||"",paddingLeft:t.paddingLeft||"",configurationsItemInfo:o},t.id)}case"rich_text_item":{const t=e;return ot(Pdt,{htmlElementId:t.id,text:t.text,isRichText:!0,marginTop:t.marginTop||"",marginRight:t.marginRight||"",marginBottom:t.marginBottom||"",marginLeft:t.marginLeft||"",paddingTop:t.paddingTop||"",paddingRight:t.paddingRight||"",paddingBottom:t.paddingBottom||"",paddingLeft:t.paddingLeft||"",configurationItemInfo:o},t.id)}case"image_item":{const t=e;return ot(Ddt,{src:t.src,alt:t.alt||"Drawer image",height:t.height,width:t.width,raised:t.raised,borderRadius:t.borderRadius||"0",marginTop:t.marginTop||"0",marginRight:t.marginRight||"0",marginBottom:t.marginBottom||"0",marginLeft:t.marginLeft||"0",paddingTop:t.paddingTop||"0",paddingRight:t.paddingRight||"0",paddingBottom:t.paddingBottom||"0",paddingLeft:t.paddingLeft||"0",onClick:()=>{if(t?.link){x7e(t.link)?ge?.({link:t.link?.internalLink||""}):g7e(t.link?.externalLink)}},moleculeId:t.id,configurationItemInfo:o},t.id)}default:return null}})}):null,!!ee&&(!!ae||Me())&&ot(zdt,{top:ie,left:se,borderRadius:le,elevation:ce,backgroundColor:ne,onClick:e=>{e.stopPropagation();Me()?De(e,"closeIconClicked"):Se()},"data-testid":"close-icon",children:ot(uGe,{"data-testid":"icon-renderer",iconName:re,size:oe,color:te})})]})});return x&&"permanent"!==r?nt(rt,{children:[ot(wGe,{moleculeId:ue,gap:D,text:b,variant:w,textColor:k,fontSize:_,fontWeight:["normal","bold"].includes(C)?C:void 0,fontFamily:M,disabled:S,startIcon:O,endIcon:P,marginTop:F,marginRight:z,marginBottom:I,marginLeft:A,paddingTop:j,paddingRight:T,paddingBottom:N,paddingLeft:R,borderRadius:E,iconOnly:L,elevation:B,fillColor:V||Q,fillColorDisabled:$||J,fillColorHover:H,fillColorPressed:q,borderColor:W,borderColorDisabled:U,borderColorHover:G,borderColorPressed:K,textColorDisabled:Y,textColorHover:Z,textColorPressed:X,externalOnClick:e=>ke?De(e,"buttonClicked"):Se(),configurationItemInfo:de}),ot(Rdt,{children:Pe})]}):ot(Rdt,{children:Pe})},Ldt=e.forwardRef((e,t)=>{const{inputRef:r,...o}=e;return ot(hKe,{...o,ref:e=>{"function"==typeof r&&r(e?e.inputElement:null)},mask:MKe,guide:!0,placeholderChar:" "})}),Bdt=({masked:e,errorMsg:t,inputSx:r,labelSx:o,sx:n,...a})=>{const i=e?{inputComponent:Ldt}:{};return ot(G_,{...a,variant:"outlined",error:!!t,helperText:t||null,type:"text",sx:{...n},slotProps:{input:{sx:{...r,...n},...i},inputLabel:{sx:{...o,...n}}}})},Vdt=({isDisplayOnly:t=!1,required:r=!1,requiredErrorText:o="Email is required",validationErrorText:n="Invalid email address",text:a,placeholderText:i,masked:s=!1,multiLine:l=!1,backgroundColor:c,borderColor:u,color:d="inherit",fontSize:p="16px",fontFamily:h="inherit",fontWeight:f="normal",textAlign:m="left",marginLeft:y="0",marginTop:g="0",marginRight:v="0",marginBottom:x="0",paddingLeft:b="0",paddingTop:w="0",paddingRight:k="0",paddingBottom:_="0",width:C,height:M,minHeight:S,maxHeight:D,minWidth:O,maxWidth:P,sx:E,name:j,sourceDataModelField:T,configurationItemInfo:N})=>{const R=Ut(),F=R?.control,z=!(!F||!j),{localStateObject:I}=_C(),{stateConfig:A}=DC(),L=dt(),B=I||A,V=T?B?.[T]?.value:void 0,$=T?L?.getDmfValue(T):void 0;e.useState("");const[H,q]=e.useState(""),W={required:!!r&&o,pattern:{value:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@(([^<>()[\]\\.,;:\s@"]+\.)+[^<>()[\]\\.,;:\s@"]{2,})$/,message:n}};if(t){let e="";e=void 0!==$?String($??""):z?R.watch(j)||"":V||"";const t=e||i||"-";return nt("div",{style:{display:"inline-flex",flexDirection:"column",marginLeft:y,marginTop:g,marginRight:v,marginBottom:x,...C&&{width:C},...M&&{height:M},minHeight:S,maxHeight:D,minWidth:O,maxWidth:P},...N,children:[a&&ot(lg,{sx:{fontSize:p,fontFamily:h,fontWeight:f,color:d,marginLeft:0,marginBottom:"4px",...E},children:a}),ot(yd,{sx:{fontSize:p,fontFamily:h,fontWeight:f,color:d,paddingLeft:b,paddingTop:w,paddingRight:k,paddingBottom:_,backgroundColor:c,border:`1px solid ${u||"#ccc"}`,borderRadius:"4px",minWidth:"120px",textAlign:m,...E},children:t})]})}const U={backgroundColor:c,color:d,fontSize:p,fontFamily:h,fontWeight:f,...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D},"& .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled:hover .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"& .MuiOutlinedInput-input":{textAlign:m,paddingLeft:b,paddingTop:w,paddingRight:k,paddingBottom:_}},G={color:d,"&.Mui-focused":{color:d}},K=l?3:1,Y={...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D}};return ot("div",z?{style:{marginLeft:y,marginTop:g,marginRight:v,marginBottom:x,...C&&{width:C},...M&&{height:M},minHeight:S,maxHeight:D,minWidth:O,maxWidth:P},sx:{"& .MuiTextField-root":{width:C||"100%",height:M,minHeight:S,maxHeight:D,minWidth:O,maxWidth:P},...E},children:ot(Jt,{name:j,rules:W,control:F,defaultValue:"",render:({field:e,fieldState:t})=>ot(Bdt,{masked:s,required:r,errorMsg:t.error?.message,inputSx:U,labelSx:G,sx:{...Y,...E},label:a,placeholder:i,multiline:l,minRows:K,value:e.value||"",onChange:e.onChange,...N||{}})})}:{style:{marginLeft:y,marginTop:g,marginRight:v,marginBottom:x,...C&&{width:C},...M&&{height:M},minHeight:S,maxHeight:D,minWidth:O,maxWidth:P},sx:{"& .MuiTextField-root":{width:C||"100%",height:M,minHeight:S,maxHeight:D,minWidth:O,maxWidth:P},...E},children:ot(Bdt,{masked:s,required:r,errorMsg:void 0,inputSx:U,labelSx:G,sx:{...Y,...E},label:a,placeholder:i,multiline:l,minRows:K,value:H,onChange:e=>q(e.target.value),...N||{}})})},$dt=({src:t,text:r,type:o,link:n,sourceDataModelField:a,color:i=Kr.colors.deepBlue,disabled:s=!1,disabledColor:l,underline:c="hover",variant:u="body2",margin:d="0",padding:p="0",moleculeId:h,configurationItemInfo:f,marginTop:m="0",marginRight:y="0",marginBottom:g="0",marginLeft:v="0",paddingTop:x="0",paddingRight:b="0",paddingBottom:w="0",paddingLeft:k="0",fontFamily:_,fontWeight:C,fontSize:M,align:S,target:D,sx:O,borderColor:P,borderWidth:E,borderStyle:j,borderRadius:T,iconOnly:N,ariaLabel:R,iconName:F,iconSize:z,validationErrorText:I})=>{const{onStateChange:A}=OC(),{onInternalNavigation:L,isConfigurationMode:B,localStateObject:V}=_C(),{stateConfig:$}=DC(),H=dt(),q=V||$,W=e.useMemo(()=>{if(!a)return;const e=H?.getDmfValue(a);return null!=e?e:q?.[a]?.value},[H,a,q]),U=Boolean(a),G=e.useMemo(()=>{if(U)return W?String(W):void 0;const e=n?x7e(n):"internalLink"===o||"internal_link"===o,r=n?e?n.internalLink:n.externalLink:void 0;return t??r??void 0},[U,W,n,o,t]),K=!U&&!!n&&x7e(n),Y=U?D||"_blank":D||(K?"_self":"_blank"),Z=!!U&&!(e=>{if(!e)return!1;try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}})(G),X=Z?"#d32f2f":s?l||Wr(i):i,Q=B||s||Z?void 0:G,J=Boolean(F),ee="regular"===C?"normal":C,te=N?ot(uGe,{iconName:F||"external-link",size:z??16}):nt(rt,{children:[ot("span",{children:r}),J&&ot(uGe,{iconName:F,size:z??16})]}),{onClick:re,onDoubleClick:oe,...ne}=f||{},ae=ot(rv,{href:Q,component:"a",target:Y,onClick:e=>{A({id:h,type:"clicked"}),s||B||Z?e.preventDefault():U&&G?(e.preventDefault(),g7e(G)):K&&G?(e.preventDefault(),L?.({link:G})):!K&&G&&(e.preventDefault(),g7e(G))},onClickCapture:re||void 0,onDoubleClickCapture:oe||void 0,"aria-label":N?R||r||"link":void 0,sx:{color:X,textDecorationColor:X,margin:d,padding:p,marginTop:m,marginRight:y,marginBottom:g,marginLeft:v,paddingTop:x,paddingRight:b,paddingBottom:w,paddingLeft:k,fontFamily:_,fontWeight:ee,fontSize:M,textAlign:S,alignItems:"center",cursor:s?"not-allowed":"pointer",borderColor:P,borderWidth:E,borderStyle:j,borderRadius:T,display:N||J?"inline-flex":void 0,gap:J&&!N?"4px":void 0,"& .MuiLink-root":{color:"inherit",textDecorationColor:"inherit"},"&:hover":{color:s?X:Wr(X,.8),textDecorationColor:s?X:Wr(X,.8)},"&:active":{color:s?X:Wr(X,.6),textDecorationColor:s?X:Wr(X,.6)},"&.Mui-disabled":{color:l||Wr(i),textDecorationColor:l||Wr(i),cursor:"not-allowed"},...O},align:S,variant:u,underline:c,...ne,children:te});return Z?ot(Sw,{title:I||"Invalid link URL",arrow:!0,children:ot("span",{children:ae})}):ae};var Hdt;function qdt(e){var t=e.pathname,r=void 0===t?"/":t,o=e.search,n=void 0===o?"":o,a=e.hash,i=void 0===a?"":a;return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function Wdt(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Hdt||(Hdt={})),process.env.NODE_ENV;const Udt=e.createContext(null);"production"!==process.env.NODE_ENV&&(Udt.displayName="Navigation");const Gdt=e.createContext(null);"production"!==process.env.NODE_ENV&&(Gdt.displayName="Location");const Kdt=e.createContext({outlet:null,matches:[]});function Ydt(e,t){if(!e)throw new Error(t)}function Zdt(e,t,r){let o,n="string"==typeof e?Wdt(e):e,a=""===e||""===n.pathname?"/":n.pathname;if(null==a)o=r;else{let e=t.length-1;if(a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}o=e>=0?t[e]:"/"}let i=function(e,t){void 0===t&&(t="/");let{pathname:r,search:o="",hash:n=""}="string"==typeof e?Wdt(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:Qdt(o),hash:Jdt(n)}}(n,o);return a&&"/"!==a&&a.endsWith("/")&&!i.pathname.endsWith("/")&&(i.pathname+="/"),i}"production"!==process.env.NODE_ENV&&(Kdt.displayName="Route");const Xdt=e=>e.join("/").replace(/\/\/+/g,"/"),Qdt=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Jdt=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function ept(t){tpt()||("production"!==process.env.NODE_ENV?Ydt(!1,"useHref() may be used only in the context of a <Router> component."):Ydt(!1));let{basename:r,navigator:o}=e.useContext(Udt),{hash:n,pathname:a,search:i}=npt(t),s=a;if("/"!==r){let e=function(e){return""===e||""===e.pathname?"/":"string"==typeof e?Wdt(e).pathname:e.pathname}(t),o=null!=e&&e.endsWith("/");s="/"===a?r+(o?"/":""):Xdt([r,a])}return o.createHref({pathname:s,search:i,hash:n})}function tpt(){return null!=e.useContext(Gdt)}function rpt(){return tpt()||("production"!==process.env.NODE_ENV?Ydt(!1,"useLocation() may be used only in the context of a <Router> component."):Ydt(!1)),e.useContext(Gdt).location}function opt(){tpt()||("production"!==process.env.NODE_ENV?Ydt(!1,"useNavigate() may be used only in the context of a <Router> component."):Ydt(!1));let{basename:t,navigator:r}=e.useContext(Udt),{matches:o}=e.useContext(Kdt),{pathname:n}=rpt(),a=JSON.stringify(o.map(e=>e.pathnameBase)),i=e.useRef(!1);e.useEffect(()=>{i.current=!0});let s=e.useCallback(function(e,o){if(void 0===o&&(o={}),"production"!==process.env.NODE_ENV&&function(e,t){if(!e)try{throw new Error(t)}catch(HQe){}}(i.current,"You should call navigate() in a React.useEffect(), not when your component is first rendered."),!i.current)return;if("number"==typeof e)return void r.go(e);let s=Zdt(e,JSON.parse(a),n);"/"!==t&&(s.pathname=Xdt([t,s.pathname])),(o.replace?r.replace:r.push)(s,o.state)},[t,r,a,n]);return s}function npt(t){let{matches:r}=e.useContext(Kdt),{pathname:o}=rpt(),n=JSON.stringify(r.map(e=>e.pathnameBase));return e.useMemo(()=>Zdt(t,JSON.parse(n),o),[t,n,o])}function apt(){return apt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},apt.apply(this,arguments)}function ipt(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}const spt=["onClick","reloadDocument","replace","state","target","to"],lpt=["aria-current","caseSensitive","className","end","style","to","children"];process.env.NODE_ENV;const cpt=e.forwardRef(function(t,r){let{onClick:o,reloadDocument:n,replace:a=!1,state:i,target:s,to:l}=t,c=ipt(t,spt),u=ept(l),d=function(t,r){let{target:o,replace:n,state:a}=void 0===r?{}:r,i=opt(),s=rpt(),l=npt(t);return e.useCallback(e=>{if(!(0!==e.button||o&&"_self"!==o||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))){e.preventDefault();let r=!!n||qdt(s)===qdt(l);i(t,{replace:r,state:a})}},[s,i,l,n,a,o,t])}(l,{replace:a,state:i,target:s});return e.createElement("a",apt({},c,{href:u,onClick:function(e){o&&o(e),e.defaultPrevented||n||d(e)},ref:r,target:s}))});"production"!==process.env.NODE_ENV&&(cpt.displayName="Link");const upt=e.forwardRef(function(t,r){let{"aria-current":o="page",caseSensitive:n=!1,className:a="",end:i=!1,style:s,to:l,children:c}=t,u=ipt(t,lpt),d=rpt(),p=npt(l),h=d.pathname,f=p.pathname;n||(h=h.toLowerCase(),f=f.toLowerCase());let m,y=h===f||!i&&h.startsWith(f)&&"/"===h.charAt(f.length),g=y?o:void 0;m="function"==typeof a?a({isActive:y}):[a,y?"active":null].filter(Boolean).join(" ");let v="function"==typeof s?s({isActive:y}):s;return e.createElement(cpt,apt({},u,{"aria-current":g,className:m,ref:r,style:v,to:l}),"function"==typeof c?c({isActive:y}):c)});function dpt(t){"production"!==process.env.NODE_ENV&&function(e,t){if(!e)try{throw new Error(t)}catch(HQe){}}("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params\n\nIf you're unsure how to load polyfills, we recommend you check out https://polyfill.io/v3/ which provides some recommendations about how to load polyfills only for users that need them, instead of for every user.");let r=e.useRef(ppt(t)),o=rpt(),n=e.useMemo(()=>{let e=ppt(o.search);for(let t of r.current.keys())e.has(t)||r.current.getAll(t).forEach(r=>{e.append(t,r)});return e},[o.search]),a=opt();return[n,e.useCallback((e,t)=>{a("?"+ppt(e),t)},[a])]}function ppt(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let o=e[r];return t.concat(Array.isArray(o)?o.map(e=>[r,e]):[[r,o]])},[]))}"production"!==process.env.NODE_ENV&&(upt.displayName="NavLink");const hpt=e=>({justifyContent:e.textAlign||"flex-start",backgroundColor:e.backgroundColor,paddingTop:e.paddingTop,paddingRight:e.paddingRight,paddingBottom:e.paddingBottom,paddingLeft:e.paddingLeft}),fpt=({popover:t=!0,items:r,marginTop:o="0",marginRight:n="0",marginBottom:a="0",marginLeft:i="0",paddingTop:s="0",paddingRight:l="0",paddingBottom:c="0",paddingLeft:u="0",cornerRadius:d="4px",backgroundColor:p="#fff",width:h="100%",height:f="auto",borderColor:m="#ccc",borderWeight:y="1px",buttonText:g="Open Menu",buttonVariant:v="contained",buttonTextColor:x,buttonFontSize:b,buttonFontWeight:w,buttonFontFamily:k,buttonDisabled:_=!1,buttonGap:C=0,buttonStartIcon:M,buttonEndIcon:S,buttonCornerRadius:D="0",buttonMarginTop:O="0",buttonMarginRight:P="0",buttonMarginBottom:E="0",buttonMarginLeft:j="0",buttonPaddingTop:T="0",buttonPaddingRight:N="0",buttonPaddingBottom:R="0",buttonPaddingLeft:F="0",buttonIconOnly:z,buttonElevation:I,buttonFillColor:A,buttonFillColorDisabled:L,buttonFillColorHover:B,buttonFillColorPressed:V,buttonBorderColor:$,buttonBorderColorDisabled:H,buttonBorderColorHover:q,buttonBorderColorPressed:W,buttonTextColorDisabled:U,buttonTextColorHover:G,buttonTextColorPressed:K,buttonColor:Y="#1976d2",anchorOriginVertical:Z="bottom",anchorOriginHorizontal:X="left",transformOriginVertical:Q="top",transformOriginHorizontal:J="left",elevation:ee=3,sx:te,moleculeId:re,configurationItemInfo:oe})=>{const ne=Ge(),{isConfigurationMode:ae,selectedConfigurationItemId:ie,onConfigurationItemClicked:se,onInternalNavigation:le}=_C(),[ce,ue]=e.useState(null),[de,pe]=e.useState(!1),[he]=dpt(),fe=e.useMemo(()=>he.get(p7e)||he.get(d7e)||"",[he]),me=e=>{const t=e?.link;if(!t||!t.internalLink)return!1;const r=C7e(t.internalLink)||"";return!(!r||!fe)&&r===fe},ye=Boolean(ae&&(ie===re||r.some(e=>e.id===ie))),ge=()=>pe(!0),ve=()=>pe(!1),xe={marginTop:o,marginRight:n,marginBottom:a,marginLeft:i,paddingTop:s,paddingRight:l,paddingBottom:c,paddingLeft:u,"& .MuiMenu-paper":{backgroundColor:p,border:`${y} solid ${m}`,borderRadius:d,boxShadow:0===ee?"none":ne?.shadows?.[ee]||ne?.shadows?.[3]},"& .MuiMenu-list":{padding:0,width:h,height:f,overflow:"hidden"},"& .MuiMenuItem-root":{minHeight:"auto",paddingTop:"8px",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"16px"},"& .MuiListItemButton-root":{paddingTop:"8px",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"16px"},"& .MuiListItemText-primary":{fontSize:"14px",fontFamily:"inherit"},"& .MuiTypography-root":{fontSize:"14px",fontFamily:"inherit"},...t?{display:"inline-block",zIndex:ne?.zIndex?.drawer}:{width:h,height:f,backgroundColor:p,display:"block",overflow:"hidden",border:`${y} solid ${m}`,borderRadius:d},...te};return t?nt(If,{children:[ot(wGe,{ref:ue,text:g,variant:v,moleculeId:re,textColor:x,fontSize:b,fontWeight:w,fontFamily:k,disabled:_,gap:C,startIcon:M,endIcon:S,onClick:ge,marginTop:O,marginRight:P,marginBottom:E,marginLeft:j,paddingTop:T,paddingRight:N,paddingBottom:R,paddingLeft:F,borderRadius:D,iconOnly:z,elevation:I,fillColor:A||Y,fillColorDisabled:L,fillColorHover:B,fillColorPressed:V,borderColor:$,borderColorDisabled:H,borderColorHover:q,borderColorPressed:W,textColorDisabled:U,textColorHover:G,textColorPressed:K,configurationItemInfo:oe}),ot(tx,{open:ae?ye:de,variant:"menu",anchorEl:ce,disablePortal:!0,disableScrollLock:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,onClose:ve,anchorOrigin:{vertical:Z,horizontal:X},transformOrigin:{vertical:Q,horizontal:J},elevation:ee,slotProps:{paper:{sx:{backgroundColor:p,border:`${y} solid ${m}`,borderRadius:d,boxShadow:0===ee?"none":ne?.shadows?.[ee]||ne?.shadows?.[3],"& .MuiMenu-list":xe["& .MuiMenu-list"],"& .MuiMenuItem-root":xe["& .MuiMenuItem-root"],"& .MuiListItemText-primary":xe["& .MuiListItemText-primary"],"& .MuiTypography-root":xe["& .MuiTypography-root"]}}},sx:{...xe,"& .MuiMenu-paper":xe["& .MuiMenu-paper"]},children:r.map(e=>{const t=ie===e.id,r=!ae&&me(e),o={entityId:e.id,entity:"molecule_item",entityType:"menu_item"},n=ae?e=>{e.stopPropagation(),se?.(o,!1)}:void 0,a=ae?e=>{e.stopPropagation(),se?.(o,!0)}:void 0,i=ae?{onClick:n,onDoubleClick:a,"data-organism-id":e.id,css:xtt({theme:ne,selected:t})}:{};return nt(ix,{sx:hpt(e),selected:r,onClick:()=>{e?.link&&(x7e(e.link)?le?.({link:e.link?.internalLink||""}):g7e(e.link?.externalLink)),ve()},disabled:e.disabled,...i,children:[e.startIcon&&ot(uGe,{iconName:e.startIcon,color:e.textColor}),ot(yd,{sx:{ml:e.startIcon?1:0,mr:e.endIcon?1:0,color:e.textColor||"inherit",fontSize:e.fontSize||"inherit",fontWeight:e.fontWeight||"normal",fontFamily:e.fontFamily||"inherit",whiteSpace:e.wrap?"normal":"nowrap",width:"100%",textAlign:e.textAlign||"left"},children:e.text}),e.endIcon&&ot(uGe,{iconName:e.endIcon,color:e.textColor})]},e.id)})})]}):ot($c,{id:re,sx:{...xe,backgroundColor:p,border:`${y} solid ${m}`,borderRadius:d,boxShadow:0===ee?"none":ne?.shadows?.[ee]||ne?.shadows?.[3]},elevation:ee,...oe,children:ot(lv,{disablePadding:!0,children:r.map(e=>{const t=ie===e.id,r=!ae&&me(e),o={entityId:e.id,entity:"molecule_item",entityType:"menu_item"},n=ae?e=>{e.stopPropagation(),se?.(o,!1)}:void 0,a=ae?e=>{e.stopPropagation(),se?.(o,!0)}:void 0,i=ae?{onClick:n,onDoubleClick:a,"data-organism-id":e.id,css:xtt({theme:ne,selected:t})}:{};return nt(fv,{disabled:e.disabled,sx:hpt(e),selected:r,onClick:()=>{e?.link&&(x7e(e.link)?le?.({link:e.link?.internalLink||""}):g7e(e.link?.externalLink))},...i,children:[e.startIcon&&ot(uGe,{iconName:e.startIcon,color:e.textColor}),ot(Tv,{primary:ot(yd,{sx:{ml:e.startIcon?1:0,mr:e.endIcon?1:0,color:e.textColor||"inherit",fontSize:e.fontSize||"inherit",fontWeight:e.fontWeight||"normal",fontFamily:e.fontFamily||"inherit",whiteSpace:e.wrap?"normal":"nowrap",textAlign:e.textAlign||"left"},children:e.text})}),e.endIcon&&ot(uGe,{iconName:e.endIcon,color:e.textColor})]},e.id)})})})};const mpt=({errorMsg:e,stepValue:t,minValue:r,allowNegative:o,inputSx:n,labelSx:a,...i})=>ot(G_,{...i,variant:"outlined",type:"number",error:!!e,helperText:e||null,inputProps:{step:t,min:o?void 0:r},slotProps:{input:{sx:n},inputLabel:{sx:a}}}),ypt=({isDisplayOnly:t=!1,required:r=!1,requiredErrorText:o="This field is required",validationErrorText:n="Invalid numeric value",text:a,placeholderText:i,backgroundColor:s,borderColor:l,textColor:c="#000",fontSize:u,fontFamily:d,fontWeight:p,allowNegative:h=!1,numericPrecision:f="1",name:m,sourceDataModelField:y,marginLeft:g="0",marginTop:v="0",marginRight:x="0",marginBottom:b="0",paddingLeft:w="0",paddingTop:k="0",paddingRight:_="0",paddingBottom:C="0",width:M,height:S,configurationItemInfo:D,textAlign:O,minHeight:P,maxHeight:E,minWidth:j,maxWidth:T,sx:N})=>{const R=Ut(),F=R?.control,z=!(!F||!m),{localStateObject:I}=_C(),{stateConfig:A}=DC(),L=dt(),B=I||A,V=y?B?.[y]?.value:void 0,$=y?L?.getDmfValue(y):void 0,[H,q]=e.useState(""),W=parseFloat(f),U=h?void 0:0,G={required:!!r&&o,pattern:{value:h?/^-?\d*(\.\d+)?$/:/^\d*(\.\d+)?$/,message:n}};if(h||(G.min={value:0,message:"Value cannot be less than zero"}),t){let e="";e=void 0!==$?String($??""):z?R.watch(m)||"":V;const t=e?function(e,t,r){if(!e)return"";const o=parseFloat(e);if(Number.isNaN(o))return e;if(!r&&o<0)return"0";if(t){const e=(t.split(".")[1]||"").length;if(e>0)return o.toFixed(e)}return e}(e,f,h):i||"-";return nt("div",{style:{display:"inline-flex",flexDirection:"column",marginLeft:g,marginTop:v,marginRight:x,marginBottom:b,...M&&{width:M},...S&&{height:S},...j&&{minWidth:j},...T&&{maxWidth:T},...P&&{minHeight:P},...E&&{maxHeight:E}},sx:N,...D,children:[a&&ot(lg,{sx:{fontSize:u,fontFamily:d,fontWeight:p,color:c,marginBottom:"4px"},children:a}),ot(yd,{sx:{fontSize:u,fontFamily:d,fontWeight:p,color:c,paddingLeft:w,paddingTop:k,paddingRight:_,paddingBottom:C,backgroundColor:s,border:`1px solid ${l||"#ccc"}`,borderRadius:"4px",minWidth:"60px"},children:t})]})}const K={backgroundColor:s,color:c,fontSize:u,fontFamily:d,fontWeight:p,...M&&{width:M},...S&&{height:S},...j&&{minWidth:j},...T&&{maxWidth:T},...P&&{minHeight:P},...E&&{maxHeight:E},"& .MuiOutlinedInput-notchedOutline":{borderColor:l||"inherit"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:l||"inherit"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:l||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:l||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled:hover .MuiOutlinedInput-notchedOutline":{borderColor:l||"inherit"}},Y={color:c,"&.Mui-focused":{color:c}},Z={...M&&{width:M},...S&&{height:S},...j&&{minWidth:j},...T&&{maxWidth:T},...P&&{minHeight:P},...E&&{maxHeight:E}};return ot(Uy,z?{required:r,sx:{marginLeft:g,marginTop:v,marginRight:x,marginBottom:b,width:"fit-content",...M&&{width:M},...S&&{height:S},...j&&{minWidth:j},...T&&{maxWidth:T},...P&&{minHeight:P},...E&&{maxHeight:E},...N},...D,children:ot(Jt,{name:m,rules:G,control:F,defaultValue:"",render:({field:e,fieldState:t})=>ot(mpt,{errorMsg:t.error?.message,label:a,placeholder:i,stepValue:W,minValue:U,allowNegative:h,inputSx:K,labelSx:Y,sx:Z,value:e.value||"",onChange:t=>e.onChange(t.target.value)})})}:{required:r,sx:{marginLeft:g,marginTop:v,marginRight:x,marginBottom:b,width:"fit-content",...M&&{width:M},...S&&{height:S},...j&&{minWidth:j},...T&&{maxWidth:T},...P&&{minHeight:P},...E&&{maxHeight:E},...N},...D,children:ot(mpt,{errorMsg:void 0,label:a,placeholder:i,stepValue:W,minValue:U,allowNegative:h,inputSx:K,labelSx:Y,sx:Z,value:H,onChange:e=>q(e.target.value)})})},gpt=e=>{const t={text:e.label,validate:()=>!0},{rule:r}=e,o=vpt(r);if(o||xpt(r)){const e=((e,t)=>(r=0)=>e?r<=t:r>=t)(o,o?r.MAX:r.MIN);switch(r.type){case"COUNT":t.validate=t=>e(t?.length);break;case"NUMBER_COUNT":t.validate=t=>e(t?.replace(/\D/g,"").length);break;case"CAPITAL_COUNT":t.validate=t=>e((t?.match(/[A-Z]/g)||[]).length);break;case"SPECIAL_CHARACTERS_COUNT":t.validate=t=>e(t?.replace(/[a-z]|\d|\s/gi,"").length);break;case"LOWER_CASE_COUNT":t.validate=t=>e((t?.match(/[a-z]/g)||[]).length)}}return t},vpt=e=>!!e?.MAX,xpt=e=>!!e?.MIN,bpt=({gap:t="0",inputProps:r,validations:o,htmlElementId:n,validationState:a,overridesProperties:i,configurationItemInfo:s,width:l,height:c,minWidth:u,maxWidth:d,minHeight:p,maxHeight:h,marginLeft:f="0",marginTop:m="0",marginRight:y="0",marginBottom:g="0",sx:v,...x})=>{const{watch:b,formState:w,setError:k}=Ut()||{},{text:_,subText:C,placeholderText:M,subPlaceholderText:S,validationText:D}=i,O=o.map(gpt),P="password",E=`reEnter${P}`,j=b?.(P),T=b?.(E);return e.useEffect(()=>{j!==T&&k(E,{type:"manual",message:"Passwords do not match"})},[j,T,k,E]),nt(If,{id:n,sx:{width:"100%",display:"flex",flexDirection:"column",gap:t,marginLeft:f,marginTop:m,marginRight:y,marginBottom:g,...l&&{width:l},...c&&{height:c},...u&&{minWidth:u},...d&&{maxWidth:d},...p&&{minHeight:p},...h&&{maxHeight:h},...v},...s,...x,children:[ot(Stt,{...r,inputType:"password",text:_?.text,name:P,placeholderText:M?.text}),ot(Stt,{...r,inputType:"password",text:C?.text,name:E,placeholderText:S?.text}),ot(aKe,{rules:O,value:j,label:D?.text,isSubmitted:w?.isDirty,validationState:a})]})},wpt=["+"," ","(",/[0-9]/,/[0-9]/,/[0-9]/,")"," ",/[0-9]/,/[0-9]/,/[0-9]/,"-",/[0-9]/,/[0-9]/,/[0-9]/,/[0-9]/],kpt=e.forwardRef((e,t)=>{const{inputRef:r,...o}=e;return ot(hKe,{...o,ref:e=>{"function"==typeof r&&r(e?e.inputElement:null)},mask:wpt,guide:!0,placeholderChar:" "})});function _pt(e){const t=(e??"").replace(/\D+/g,"");if(!t)return"";let r="",o=0;return wKe.forEach(e=>{"string"==typeof e?r+=e:o<t.length?(r+=t[o],o+=1):r+="_"}),r}const Cpt=({masked:e,errorMsg:t,inputSx:r,labelSx:o,...n})=>ot(G_,{...n,variant:"outlined",error:!!t,helperText:t||null,slotProps:{input:{sx:r,...e?{inputComponent:kpt}:{}},inputLabel:{sx:o}}}),Mpt=({isDisplayOnly:t=!1,required:r=!1,requiredErrorText:o="Phone is required",validationErrorText:n="Invalid phone number",text:a,placeholderText:i,masked:s=!0,multiLine:l=!1,backgroundColor:c,borderColor:u,textColor:d="#000",fontSize:p,fontFamily:h,fontWeight:f,textAlign:m,marginLeft:y="0",marginTop:g="0",marginRight:v="0",marginBottom:x="0",paddingLeft:b="0",paddingTop:w="0",paddingRight:k="0",paddingBottom:_="0",width:C,height:M,minHeight:S,maxHeight:D,minWidth:O,maxWidth:P,name:E,sourceDataModelField:j,configurationItemInfo:T,sx:N})=>{const R=Ut(),F=R?.control,z=!(!F||!E),{localStateObject:I}=_C(),{stateConfig:A}=DC(),L=dt(),B=I||A,V=j?B?.[j]?.value:void 0,$=j?L?.getDmfValue(j):void 0,[H,q]=e.useState(""),W={required:!!r&&o,pattern:{value:/^\d{10}$/,message:n}};if(t){let e="";e=void 0!==$?String($??""):z?R.watch(E)||"":String(V??"");const t=(s?_pt(e):e)||i||"-";return nt("div",{style:{display:"inline-flex",flexDirection:"column",marginLeft:y,marginTop:g,marginRight:v,marginBottom:x,...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D}},...T,children:[a&&ot(lg,{sx:{fontSize:p,fontFamily:h,fontWeight:f,color:d,marginLeft:0,marginBottom:"4px",...N},children:a}),ot(yd,{sx:{fontSize:p,fontFamily:h,fontWeight:f,color:d,paddingLeft:b,paddingTop:w,paddingRight:k,paddingBottom:_,backgroundColor:c,border:`1px solid ${u||"#ccc"}`,borderRadius:"4px",minWidth:"120px",...N},children:t})]})}const U={backgroundColor:c,color:d,fontSize:p,fontFamily:h,fontWeight:f,...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D},"& .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled:hover .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"}},G={color:d,"&.Mui-focused":{color:d}},K={marginLeft:y,marginTop:g,marginRight:v,marginBottom:x,width:"fit-content",...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D}};return ot(Uy,z?{required:r,sx:{...K,...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D},...N},...T,children:ot(Jt,{name:E,rules:W,control:F,defaultValue:"",render:({field:e,fieldState:t})=>ot(Cpt,{masked:s,errorMsg:t.error?.message,inputSx:U,labelSx:G,label:a,placeholder:i,value:e.value||"",onChange:t=>{const r=(t?.target?.value??"").toString().replace(/\D+/g,"");e.onChange(r)}})})}:{required:r,sx:{...K,...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D},...N},...T,children:ot(Cpt,{masked:s,errorMsg:void 0,inputSx:U,labelSx:G,label:a,placeholder:i,value:H,onChange:e=>{const t=(e?.target?.value??"").toString();q(t.replace(/\D+/g,""))}})})},Spt=({text:t,name:r,isDisplayOnly:o=!1,required:n=!1,requiredErrorText:a="This field is required",validationErrorText:i="Invalid rating",placeholderText:s="",hoverFeedback:l=!1,sourceDataModelField:c,textAlign:u="left",color:d="black",textColor:p,selectColor:h,fontSize:f=14,fontFamily:m="Arial, sans-serif",fontWeight:y="normal",marginLeft:g="0",marginTop:v="0",marginRight:x="0",marginBottom:b="0",paddingLeft:w="0",paddingTop:k="0",paddingRight:_="0",paddingBottom:C="0",width:M,height:S,minHeight:D,maxHeight:O,minWidth:P,maxWidth:E,placement:j="right",configurationItemInfo:T={},disabled:N=!1,maxValue:R=5,ratingPrecision:F=.5,sx:z,...I})=>{const A=Ut(),L=A?.control,B=!!A&&!!L&&!!r,{localStateObject:V}=_C(),{stateConfig:$}=DC(),H=dt(),q=V||$,W=c?q?.[c]?.value:void 0;!B||A.formState.errors;const[U,G]=e.useState(null),[K,Y]=e.useState(-1),Z=l&&-1!==K;if(o){const e=c?H?.getDmfValue(c):void 0;let r=null;const o=e=>"number"!=typeof e||Number.isNaN(e)?"string"!=typeof e||Number.isNaN(Number(e))?null:Number(e):e;if(void 0!==e)r=o(e);else if(c&&q?.[c]){const e=q?.[c]?.value;r=o(e)}return nt(Uy,{required:n,sx:{marginLeft:g,marginTop:v,marginRight:x,marginBottom:b,paddingLeft:w,paddingTop:k,paddingRight:_,paddingBottom:C,display:"inline-flex",...M&&{width:M},...S&&{height:S},...D&&{minHeight:D},...O&&{maxHeight:O},...P&&{minWidth:P},...E&&{maxWidth:E},...z},...T,children:[t&&ot(yd,{variant:"subtitle1",sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,marginBottom:"4px"},children:t}),ot(ib,{value:r,max:R,precision:F,readOnly:!0,sx:{"& .MuiRating-iconEmpty":{color:d},"& .MuiRating-iconFilled":{color:h||d},...z},...I})]})}const X={required:!!n&&a,validate:e=>!n||null!==e&&0!==e||a};return nt(Uy,{required:n,sx:{marginLeft:g,marginTop:v,marginRight:x,marginBottom:b,paddingLeft:w,paddingTop:k,paddingRight:_,paddingBottom:C,display:"inline-flex",...M&&{width:M},...S&&{height:S},...D&&{minHeight:D},...O&&{maxHeight:O},...P&&{minWidth:P},...E&&{maxWidth:E},...z},...T,children:[t&&ot(yd,{variant:"subtitle1",sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,marginBottom:"4px"},children:t}),nt(If,{sx:{display:"flex",alignItems:"center"},children:["left"===j&&ot(yd,{sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,minWidth:"2em"},children:Z?K:B?A.getValues(r)??W??"":U??W??""}),ot(Jt,{name:r,control:L,defaultValue:"number"==typeof W?W:null,rules:X,render:({field:e,fieldState:{error:t}})=>nt(rt,{children:[ot(ib,{value:e.value??W??0,max:R,precision:F,disabled:N,onChange:(t,r)=>e.onChange(r),onChangeActive:l?(e,t)=>Y(t??-1):void 0,sx:{"& .MuiRating-iconEmpty":{color:d},"& .MuiRating-iconFilled":{color:h||d},marginX:l?1:0,...z},...I}),t&&ot(lg,{error:!0,sx:{marginTop:"4px"},children:"required"===t.type?a:i})]})}),"right"===j&&ot(yd,{sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,minWidth:"2em"},children:Z?K:B?A.getValues(r)??W??"":U??W??""})]})]})},Dpt=({open:t,text:o,disabled:n,sx:a,placeholderText:i,required:s=!1,requiredErrorText:c="This field is required",validationErrorText:u="Invalid format",isDisplayOnly:d=!1,displayText:p,visible:h=!0,fontSize:f,fontFamily:m,fontWeight:y,textColor:g,textAlign:v,borderColor:x,color:b,backgroundColor:w,marginLeft:k="0",marginTop:_="0",marginRight:C="0",marginBottom:M="0",paddingLeft:S="12px",paddingTop:D="14px",paddingRight:O="12px",paddingBottom:P="14px",width:E,height:j,minHeight:T,maxHeight:N,minWidth:R,maxWidth:F,configurationItemInfo:z={},name:I,sourceDataModelField:A,predefinedValue:L,...B})=>{const V=d?void 0:A,{dataModelFieldOptions:$,isLoading:H}=(e=>{const{pickList:t}=ct(),{data:o=[],refetch:n,isLoading:a}=r.useQuery({queryKey:[dGe,e],queryFn:()=>t.get(e),select:e=>{const t=e?.data;return Array.isArray(t)?t:t&&Array.isArray(t.data)?t.data:[]},enabled:Boolean(e)});return{dataModelFieldOptions:o,refetch:n,isLoading:a}})(V),q=Ut(),W=q?.control,U=!!q&&!!W&&!!I,{formState:G}=q||{},{localStateObject:K,localState:Y,setLocalStateValue:Z,isConfigurationMode:X,selectedConfigurationItemId:Q}=_C(),{stateConfig:J}=DC(),{isMLR:ee}=gC(),te=dt(),re=K||J,oe=A?re?.[A]:void 0,ne=oe?.value||("string"==typeof oe||"number"==typeof oe?oe:void 0),ae=A?te?.getDmfValue(A):void 0,ie="string"==typeof ae||"number"==typeof ae?ae:ae&&"object"==typeof ae?ae.value??ae.label??ae.id:void 0,[se,le]=e.useState(""),[ce,ue]=e.useState(!1),[de,pe]=e.useState(!1),he=e.useRef(null),fe=e.useRef(null),me=l.default.useCallback(e=>{fe.current=e,pe(null!==e)},[]),ye=X&&Q===z?.["data-configuration-id"];e.useEffect(()=>{X&&ue(!!ye)},[ye,X]);const ge=e.useMemo(()=>!(Boolean(n)||null!=L&&""!==L)&&(X?!!ye&&ce:ee?t||!1:void 0),[X,ye,ce,ee,t,n,L]),ve=e.useMemo(()=>null!=L&&""!==L,[L]),xe=e.useMemo(()=>Boolean(n)||ve,[n,ve]);e.useEffect(()=>{ve&&null!=L&&(U?q?.setValue(I,L):le(L))},[ve,L,U,q,I]);const be=e.useMemo(()=>({required:!!s&&c,validate:()=>!0}),[s,c]),we=e.useMemo(()=>($||[]).map(e=>"string"==typeof e?{id:e,label:e}:e),[$]),ke=!xe&&(X&&ye||ee&&t),_e=ke&&de&&null!==fe.current,Ce=e.useMemo(()=>{const e=(()=>{switch(v){case"center":return"center";case"right":return"flex-end";case"justify":return"space-between";default:return"flex-start"}})(),t=g||b||"rgba(0, 0, 0, 0.87)",r=g?`${g}50`:"rgba(0, 0, 0, 0.6)",o=g?`${g}30`:"rgba(0, 0, 0, 0.26)";return{typography:{fontSize:f||"1rem",fontFamily:"string"==typeof m?m:"inherit",color:t},menuItem:{fontSize:f||"1rem",fontFamily:"string"==typeof m?m:"inherit",color:t,minHeight:"48px",padding:"6px 16px",transition:"background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&:hover":{backgroundColor:"rgba(127, 127, 127, 0.08)"},"&.Mui-selected":{backgroundColor:"rgba(25, 118, 210, 0.12)","&:hover":{backgroundColor:"rgba(25, 118, 210, 0.2)"}},"&.Mui-disabled":{color:o,backgroundColor:"rgba(127, 127, 127, 0.06)"}},inputSx:{fontSize:f,fontFamily:m,fontWeight:y,color:b,minHeight:"56px","& .MuiOutlinedInput-notchedOutline":{borderColor:x||"inherit"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:x||"inherit"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:x||"inherit"},"& .MuiSelect-select":{display:"flex",alignItems:"center",justifyContent:e,backgroundColor:w,textAlign:v,boxSizing:"border-box",paddingLeft:S,paddingTop:D,paddingRight:O,paddingBottom:P,minHeight:"1.4375em",lineHeight:"1.4375em"}},formControlSx:{marginLeft:k,marginTop:_,marginRight:C,marginBottom:M,...E&&{width:E},...j&&{height:j},...F&&{maxWidth:F},...T&&{minHeight:T},...N&&{maxHeight:N},...R?{minWidth:R}:E?{}:{minWidth:"240px"},...a},placeholderTypography:{fontSize:f||"1rem",fontFamily:"string"==typeof m?m:"inherit",color:r},placeholderColor:r}},[v,f,m,b,g,y,x,w,S,D,O,P,k,_,C,M,E,j,F,R,T,N]),Me=()=>ot(ix,{disabled:!0,value:"",sx:{...Ce.menuItem,backgroundColor:"rgba(0, 0, 0, 0.06) !important","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.06) !important"}},children:ot("em",{style:{fontStyle:"italic",...Ce.placeholderTypography},children:i||"Select an option"})});e.useEffect(()=>{if(!d||!U)return;const e=null!=ie?String(ie):void 0,t=null!=ne?String(ne):void 0,r=("string"==typeof p&&""!==p?p:void 0)??e??t;void 0!==r&&q?.setValue(I,r)},[d,U,p,ie,ne,q,I]);const Se=(e,t)=>H?nt(ix,{disabled:!0,value:"loading",sx:Ce.menuItem,children:[ot(qu,{size:20,sx:{mr:1}}),"Loading..."]}):we.map(r=>ot(ix,{value:r.id,selected:e===r.id,onClick:t?()=>t(r.id):void 0,sx:Ce.menuItem,children:r.label},r.id));if(d){const e=!E||"auto"===E,t=("string"==typeof p&&""!==p?p:void 0)??(null!=ie?String(ie):void 0)??(null!=ne?String(ne):void 0)??(i||"-");return nt("div",{style:{display:"inline-flex",flexDirection:"column",marginTop:_,marginRight:C,marginBottom:M,marginLeft:k,...E?{width:E}:{width:"fit-content"},...j&&{height:j},...T&&{minHeight:T},...N&&{maxHeight:N},...R&&{minWidth:R},...F&&{maxWidth:F}},...z,children:[o&&ot("div",{style:{marginBottom:4},children:ot(lg,{sx:{fontSize:f,fontFamily:m,fontWeight:y,color:g||"#000",marginLeft:0,textAlign:v},children:o})}),ot(yd,{sx:{fontSize:f,fontFamily:m,fontWeight:y,color:g,textAlign:v,paddingLeft:S,paddingTop:D,paddingRight:O,paddingBottom:P,backgroundColor:w,border:`1px solid ${x||"#ccc"}`,borderRadius:"4px",...e?{width:"fit-content"}:{}},children:t})]})}const De={slotProps:{paper:{elevation:3,sx:{borderRadius:"4px",backgroundColor:w||"background.paper",boxShadow:"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",...Ce.typography,..._e?{display:"none !important",visibility:"hidden !important",opacity:"0 !important",pointerEvents:"none !important",position:"absolute !important",top:"-9999px !important",left:"-9999px !important",zIndex:"-9999 !important"}:{}}}},MenuListProps:{sx:{padding:"8px 0",...w&&{backgroundColor:w},"& .MuiMenuItem-root":Ce.menuItem}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},..._e?{disableScrollLock:!0,disablePortal:!0,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,hideBackdrop:!0}:{}},Oe=(e,t)=>{t?.onChange?t.onChange(e):(le(e),A&&Z&&Z(A,{id:e}))},Pe=e=>{if(!e||""===e)return ot("em",{style:{color:Ce.placeholderColor,fontStyle:"italic"},children:i||"Select an option"});const t=we.find(t=>t.id===e);return t?t.label:e},Ee=(e,t)=>nt(kb,{...e||{},...B,...X?{open:ge}:{},...ee?{open:ge}:{},...ke?{open:!1,onClose:()=>{},onOpen:()=>{}}:{},error:t,disabled:xe,value:e?.value??se,onChange:t=>{_e||Oe(t.target.value,e)},labelId:`select-label-${I}`,input:ot(_x,{label:o}),displayEmpty:!0,renderValue:Pe,MenuProps:De,sx:{...Ce.inputSx,...E&&{width:E},...j&&{height:j},...R&&{minWidth:R},...F&&{maxWidth:F},...T&&{minHeight:T},...N&&{maxHeight:N}},inputProps:{"aria-label":o},children:[Me(),Se()]}),je=e=>{if(!_e||xe)return null;const t=e?.value??se;return ot(nh,{open:!0,anchorEl:fe.current,placement:"bottom-start",disablePortal:!0,transition:!0,sx:{zIndex:1300},children:({TransitionProps:r})=>ot(wg,{...r,timeout:150,style:{transformOrigin:"top left"},children:ot($c,{elevation:3,sx:{borderRadius:"4px",backgroundColor:w||"background.paper",minWidth:fe.current?.offsetWidth||240,width:fe.current?.offsetWidth||240,maxHeight:300,overflowY:"auto",overflowX:"hidden",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0},boxShadow:"rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px",...Ce.typography},children:nt(Av,{sx:{padding:"8px 0",...w&&{backgroundColor:w},"& .MuiMenuItem-root":Ce.menuItem},children:[Me(),Se(t,t=>Oe(t,e))]})})})})};return h?ot("div",{ref:he,style:{position:"relative",...E&&{width:E},...j&&{height:j},...R&&{minWidth:R},...F&&{maxWidth:F},...T&&{minHeight:T},...N&&{maxHeight:N}},...z,onClick:e=>{if(X&&z&&"onClick"in z){e.stopPropagation();z.onClick()}},children:nt(Uy,{ref:me,variant:"outlined",sx:Ce.formControlSx,error:!!G?.errors?.[I],disabled:xe,required:s,children:[ot(Fg,{id:`select-label-${I}`,shrink:!0,sx:{color:g||"rgba(0, 0, 0, 0.6)",fontSize:f,fontFamily:m,fontWeight:y,"&.Mui-focused":{color:g||"rgba(0, 0, 0, 0.6)"}},children:o}),U?ot(Jt,{name:I,control:W,rules:be,render:({field:e,fieldState:{error:t}})=>nt(rt,{children:[Ee(e,!!t),je(e)]})}):nt(rt,{children:[Ee(void 0,!1),je(void 0)]}),G?.errors?.[I]&&ot(lg,{error:!0,children:G?.errors?.[I]?.message||("required"===G?.errors?.[I]?.type?c:u)})]})}):null};const Opt=({text:e,name:t,isDisplayOnly:r=!1,required:o=!1,requiredErrorText:n="This field is required",validationErrorText:a="Invalid value",placeholderText:i="",startIcon:s,endIcon:l,borderColor:c,selectLineColor:u,lineWeight:d=1,orientation:p="horizontal",textColor:h,fontSize:f,fontFamily:m,fontWeight:y,valueFormat:g,valueDisplay:v="auto",iconSize:x,selectColor:b,iconColor:w,minValue:k=0,maxValue:_=100,step:C,labelPlacement:M="top",marginLeft:S="0",marginTop:D="0",marginRight:O="0",marginBottom:P="0",paddingLeft:E="0",paddingTop:j="0",paddingRight:T="0",paddingBottom:N="0",width:R,height:F,minHeight:z,maxHeight:I,minWidth:A,maxWidth:L,sx:B,configurationItemInfo:V,sourceDataModelField:$,disabled:H=!1,...q})=>{const W=Ut(),U=W?.control,{localStateObject:G}=_C(),{stateConfig:K}=DC(),Y=dt(),Z=G||K,X=$?Z?.[$]?.value:void 0,Q=$?Y?.getDmfValue($):void 0,J={required:!!o&&n,validate:e=>!o||null!=e||n},ee=e=>function(e,t){if(null==e)return"";switch(t){case"$0.00":return`$${e.toFixed(2)}`;case"$123":return`$${e}`;case"%0.00":return`${e.toFixed(2)}%`;case"%123":return`${e}%`;case"0.0":return e.toFixed(1);case"0.00":return e.toFixed(2);default:return e.toString()}}(e,g),te={width:"100%","& .MuiSlider-root":{width:"100%"},"& .MuiSlider-rail":{backgroundColor:c||"#ccc",..."vertical"===p?{width:`${d}px`}:{height:`${d}px`}},"& .MuiSlider-track":{backgroundColor:u||"#2196f3",border:`1px solid ${u||"#2196f3"}`,..."vertical"===p?{width:`${d}px`}:{height:`${d}px`}},"& .MuiSlider-thumb":{backgroundColor:b||"#2196f3",width:x||"16px",height:x||"16px",boxShadow:"none","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"none"}},"& .MuiSlider-valueLabel":{backgroundColor:b||"#2196f3",color:"#ffffff",borderRadius:"4px",fontSize:"12px",fontWeight:500},"& .MuiSlider-mark":{backgroundColor:c||"#ccc",width:"2px",height:"2px",borderRadius:"50%"},"& .MuiSlider-markActive":{backgroundColor:b||"#2196f3"},...B};if(r){let t=null;const r=e=>"number"!=typeof e||Number.isNaN(e)?"string"!=typeof e||Number.isNaN(Number(e))?null:Number(e):e;if(void 0!==Q)t=r(Q);else if($&&Z?.[$]){const e=Z?.[$]?.value;t=r(e)}return nt(Uy,{required:o,sx:{marginLeft:S,marginTop:D,marginRight:O,marginBottom:P,paddingLeft:E,paddingTop:j,paddingRight:T,paddingBottom:N,display:"inline-flex",...R&&{width:R},...F&&{height:F},...z&&{minHeight:z},...I&&{maxHeight:I},...A&&{minWidth:A},...L&&{maxWidth:L},...B},...V,children:[e&&ot(fg,{children:e}),nt(If,{display:"flex",flexDirection:"top"===M?"column":"row",alignItems:"center",mt:"top"===M?1:0,children:[s&&ot(If,{mr:"horizontal"===p?1:0,mb:"vertical"===p?1:0,children:ot(uGe,{iconName:s,color:w})}),ot(nw,{value:t??void 0,min:k,max:_,step:C,orientation:p,valueLabelDisplay:v,valueLabelFormat:ee,sx:te,disabled:!0,...q}),l&&ot(If,{ml:"horizontal"===p?1:0,mt:"vertical"===p?1:0,children:ot(uGe,{iconName:l,color:w})}),ot(yd,{sx:{ml:1,fontSize:f,fontFamily:m,fontWeight:y,color:h},children:t})]})]})}return nt(Uy,{required:o,sx:{marginLeft:S,marginTop:D,marginRight:O,marginBottom:P,paddingLeft:E,paddingTop:j,paddingRight:T,paddingBottom:N,display:"inline-flex",...R&&{width:R},...F&&{height:F},...z&&{minHeight:z},...I&&{maxHeight:I},...A&&{minWidth:A},...L&&{maxWidth:L},...B},...V,children:[e&&ot(fg,{children:e}),ot(Jt,{name:t||"",control:U,defaultValue:"number"==typeof X?X:k,rules:J,render:({field:e,fieldState:t})=>nt(rt,{children:[ot(nw,{...e,min:k,max:_,step:C,orientation:p,valueLabelDisplay:v,valueLabelFormat:ee,sx:te,onChange:(t,r)=>e.onChange(r),...q}),t.error&&ot(lg,{error:!0,sx:{mt:1},children:"required"===t.error.type?n:a})]})})]})},Ppt=({direction:t="up",size:r="medium",ariaLabel:o="Speed Dial",openIconName:n="plus",closeIconName:a="x",openIconColor:i="#fff",closeIconColor:s="#fff",backgroundColor:l="#1976d2",items:c=[],configurationItemInfo:u={},tooltipOpen:d=!1,tooltipPlacement:p,showBackdrop:h=!1,openOnHover:f=!1,paddingTop:m,paddingRight:y,paddingBottom:g,paddingLeft:v,marginTop:x,marginRight:b,marginBottom:w,marginLeft:k,moleculeId:_,gap:C,sx:M,...S})=>{const D=Ge(),[O,P]=e.useState(!1),{isConfigurationMode:E,onConfigurationItemClicked:j,selectedConfigurationItemId:T,onInternalNavigation:N}=_C();e.useEffect(()=>{if(!O)return;const e=e=>{"Escape"!==e.key||E||P(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[O,E]);const R=()=>P(!0),F=()=>P(!1);let z={};z=f&&!h?{onMouseEnter:R,onMouseLeave:F,onFocus:R,onBlur:F}:{onClick:e=>{P(e=>!e)}};const I={bgcolor:l,paddingTop:m,paddingRight:y,paddingBottom:g,paddingLeft:v,marginTop:x,marginRight:b,marginBottom:w,marginLeft:k},A=O||E&&(T===_||c.some(e=>e.id===T));return nt("div",{role:"presentation",children:[h&&ot(Sf,{open:O}),ot(mw,{ariaLabel:o,direction:t,icon:ot(Lw,{icon:ot(uGe,{iconName:n,color:i,size:24}),openIcon:ot(uGe,{iconName:a,color:s,size:24})}),open:A,onOpen:f&&!h?R:void 0,onClose:f&&!h?F:void 0,FabProps:{color:"primary",sx:I,size:r,gap:C},slotProps:{fab:{"data-testid":"speed-dial-fab","aria-label":o}},sx:{"& .MuiSpeedDial-fab":{backgroundColor:l,...I},"& .MuiSpeedDial-actions":{gap:C||8},"& .MuiSpeedDialIcon-icon":{fontSize:"small"===r?"18px":"large"===r?"24px":"20px",color:"inherit"},"& .MuiSpeedDialIcon-openIcon":{fontSize:"small"===r?"18px":"large"===r?"24px":"20px",color:"inherit"},"& .MuiSpeedDialAction-fab":{backgroundColor:"#fff",color:"#757575","&:hover":{backgroundColor:"#f5f5f5"}},"& .MuiSpeedDialAction-staticTooltip":{backgroundColor:"rgba(97, 97, 97, 0.9)",color:"#fff",fontSize:"12px",padding:"4px 8px",borderRadius:"4px"},"& .MuiSpeedDialAction-staticTooltipLabel":{fontSize:"12px",fontWeight:500},...M},...z,...u,...S,children:c.map(e=>{const{text:t,link:o}=e.properties??{},{iconName:n="plus",disabled:a=!1,iconColor:i="#757575",tooltipText:s,backgroundColor:l="#fff"}=e.config?.props??{},c=String(t?.text||s||"Action"),u=E&&T===e.id,h={entityId:e.id,entity:"molecule_item",entityType:"speed_dial_action_item"},f=E?{onClick:e=>{e.stopPropagation(),j?.(h,!1)},onDoubleClick:e=>{e.stopPropagation(),j?.(h,!0)},"data-organism-id":e.id,css:xtt({theme:D,selected:u})}:{};return ot(Nw,{icon:ot(uGe,{iconName:n,color:i,size:24}),tooltipOpen:d,tooltipTitle:c,tooltipPlacement:p,FabProps:{sx:{color:i,backgroundColor:l},size:r,disabled:a,"aria-label":c,onClick:e=>{e.stopPropagation(),o?(x7e(o)?N?.({link:o.internalLink??""}):g7e(o.externalLink),P(!1)):P(!1)},...f}},e.id)})})]})},Ept=({items:e,gap:t,stepGap:r,isMobile:o=!1,iconSize:n="24px",orientation:a="horizontal",activeStep:i=0,lineColor:s,lineWidth:l,lineRadius:c,marginTop:u="0",marginRight:d="0",marginBottom:p="0",marginLeft:h="0",paddingTop:f="0",paddingRight:m="0",paddingBottom:y="0",paddingLeft:g="0",borderRadius:v="0",configurationItemInfo:x,backgroundColor:b="transparent",sx:w,...k})=>{const _=Ge(),C=o?"vertical":a,{isConfigurationMode:M,onConfigurationItemClicked:S,selectedConfigurationItemId:D}=_C();return ot(Ok,{sx:{gap:t,width:"100%",overflow:"hidden",marginTop:u,marginRight:d,marginBottom:p,marginLeft:h,paddingTop:f,paddingRight:m,paddingBottom:y,paddingLeft:g,borderRadius:v,backgroundColor:b,"& .MuiStep-root":{padding:"8px"},"& .MuiStepLabel-root":{gap:r,alignItems:"flex-start"},"& .MuiStepLabel-label":{fontSize:"inherit",fontWeight:"inherit",fontFamily:"inherit",color:"inherit"},"& .MuiStepConnector-root":{flex:"1 1 auto"},"& .MuiStepConnector-line":{borderColor:s,borderWidth:l,borderRadius:c},"& .MuiStepConnector-vertical":{width:n||"24px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"4px"},"& .MuiStepConnector-horizontal":{marginLeft:"8px",marginRight:"8px"},"& .MuiStepContent-root":{margin:0,padding:0,marginTop:"4px",borderLeft:"none"},"& .MuiTypography-root":{fontSize:"inherit",fontWeight:"inherit",fontFamily:"inherit",color:"inherit"},...w},activeStep:i,orientation:C,connector:ot(vk,{sx:{[`&.${fk.vertical}`]:{width:n||"24px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"4px"},[`&.${fk.vertical} .${fk.line}`]:{borderColor:s,borderWidth:l,borderRadius:c},[`&.${fk.horizontal} .${fk.line}`]:{borderColor:s,borderWidth:l,borderRadius:c}}}),...x,...k,children:e.map((e,t)=>{const o=D===e.id,a=t===i,s={entityId:e.id,entity:"molecule_item",entityType:"stepper_item"},l=M?{onClick:e=>{M&&(e.stopPropagation(),S?.(s,!1))},onDoubleClick:e=>{M&&(e.stopPropagation(),S?.(s,!0))},"data-organism-id":e.id,css:xtt({theme:_,selected:o})}:{},c=e.color||(a?"#000":"#555");return ot(Yw,{...l,children:nt(pk,{sx:{gap:r,"& .MuiStepLabel-iconContainer":{marginRight:"8px",display:"flex",alignItems:"center",justifyContent:"center"},"& .MuiStepLabel-labelContainer":{display:"flex",flexDirection:"column",alignItems:"flex-start"}},icon:e?.iconName?ot(uGe,{size:n,color:e.iconColor||"#000",iconName:e.iconName,borderRadius:e?.iconBorderRadius||0,backgroundColor:e.iconBackgroundColor||"transparent"}):void 0,children:[ot(yd,{variant:"body1",sx:{padding:"4px",fontSize:e.fontSize||"inherit",fontWeight:e.fontWeight||"normal",fontFamily:e.fontFamily||"inherit",color:c,borderRadius:e.borderRadius||"0",display:"inline-block","&.MuiTypography-body1":{fontSize:"inherit",fontWeight:"inherit",fontFamily:"inherit",color:"inherit"}},children:e.title}),e.subText&&ot(_k,{sx:{margin:0,padding:0,marginTop:"4px",borderLeft:"none","& .MuiStepContent-root":{margin:0,padding:0,marginTop:"4px",borderLeft:"none"}},transitionDuration:{enter:400,exit:400},children:ot(yd,{variant:"body2",sx:{padding:"4px",fontSize:e.subTextFontSize||"inherit",fontWeight:e.subTextFontWeight||"normal",fontFamily:e.subTextFontFamily||"inherit",color:e.subTextColor||"#666",borderRadius:e.borderRadius||"0",display:"inline-block",..."horizontal"===C&&{maxWidth:"300px"},"&.MuiTypography-body2":{fontSize:"inherit",fontWeight:"inherit",fontFamily:"inherit",color:"inherit"}},children:e.subText})})]})},e.id)})})},jpt=nl(zk)(({thumbColor:e="#ff0000",thumbCheckedColor:t="#00ff00",trackColor:r="#0000ff",disabledThumbColor:o="#9e9e9e",sx:n})=>({"& .MuiSwitch-thumb":{backgroundColor:e,width:20,height:20},"& .MuiSwitch-switchBase.Mui-checked .MuiSwitch-thumb":{backgroundColor:t},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:r,opacity:1,backgroundImage:"none"},"& .MuiSwitch-track":{backgroundColor:r,opacity:1,backgroundImage:"none"},"&.Mui-disabled .MuiSwitch-thumb":{backgroundColor:o},"&.Mui-disabled .MuiSwitch-track":{backgroundColor:r,opacity:1,backgroundImage:"none"},"& .MuiSwitch-switchBase":{padding:"9px","&.Mui-checked":{transform:"translateX(16px)"}},"& .MuiSwitch-colorPrimary":{"&.Mui-checked":{color:t}},"& .MuiSwitch-colorSecondary":{"&.Mui-checked":{color:t}},...n})),Tpt=({isDisplayOnly:t=!1,required:r=!1,requiredErrorText:o="This field is required",validationErrorText:n="Invalid value",text:a="",thumbColor:i,thumbCheckedColor:s,trackColor:l,disabledThumbColor:c,labelPlacement:u="top",marginLeft:d="0",marginTop:p="0",marginRight:h="0",marginBottom:f="0",paddingLeft:m="0",paddingTop:y="0",paddingRight:g="0",paddingBottom:v="0",width:x,height:b,minHeight:w,maxHeight:k,minWidth:_,maxWidth:C,name:M,sourceDataModelField:S,disabled:D=!1,sx:O,configurationItemInfo:P,...E})=>{const j=Ut(),T=j?.control,N=!!T&&!!M,R={required:!!r&&o,validate:e=>!(r&&!e)||o},{localStateObject:F}=_C(),{stateConfig:z}=DC(),I=dt(),A=F||z,L=S?A?.[S]?.value:void 0,[B,V]=e.useState(!1);if(t){const e=S?I?.getDmfValue(S):void 0;let t=!1;return t=void 0!==e?"true"===String(e).toLowerCase()||!0===e:N?!!j.watch(M):!!L,nt(Uy,{required:r,sx:{marginLeft:d,marginTop:p,marginRight:h,marginBottom:f,paddingLeft:m,paddingTop:y,paddingRight:g,paddingBottom:v,display:"inline-flex",...x&&{width:x},...b&&{height:b},...w&&{minHeight:w},...k&&{maxHeight:k},..._&&{minWidth:_},...C&&{maxWidth:C},"& .MuiFormLabel-root":{fontSize:"14px",fontWeight:500,color:"#333",marginBottom:"8px"},"& .MuiSwitch-root":{marginTop:"8px"},"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-thumb":{width:"18px",height:"18px",borderRadius:"9px"},"& .MuiSwitch-track":{borderRadius:"9px",height:"14px"},"& .MuiTypography-root":{marginLeft:"8px",fontSize:"14px",fontWeight:500,color:"#333"},...O},...P,children:[a&&ot(fg,{component:"legend",children:a}),nt(If,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:[ot(jpt,{disabled:!0,checked:t,thumbColor:i,thumbCheckedColor:s,trackColor:l,disabledThumbColor:c,sx:{"& .MuiSwitch-switchBase":{pointerEvents:"none"}},...E}),ot(yd,{sx:{ml:1},children:t?"ON":"OFF"})]})]})}return nt(Uy,{required:r,sx:{marginLeft:d,marginTop:p,marginRight:h,marginBottom:f,paddingLeft:m,paddingTop:y,paddingRight:g,paddingBottom:v,display:"inline-flex",...x&&{width:x},...b&&{height:b},...w&&{minHeight:w},...k&&{maxHeight:k},..._&&{minWidth:_},...C&&{maxWidth:C},"& .MuiFormLabel-root":{fontSize:"14px",fontWeight:500,color:"#333",marginBottom:"8px"},"& .MuiSwitch-root":{marginTop:"8px"},"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-thumb":{width:"18px",height:"18px",borderRadius:"9px"},"& .MuiSwitch-track":{borderRadius:"9px",height:"14px"},"& .MuiFormHelperText-root":{marginTop:"4px",fontSize:"12px",color:"#d32f2f"},...O},...P,children:[a&&ot(fg,{component:"legend",children:a}),N?ot(Jt,{name:M,rules:R,control:T,defaultValue:!1,render:({field:e,fieldState:t})=>nt(rt,{children:[ot(If,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:ot(jpt,{checked:!!e.value,disabled:D,onChange:(t,r)=>e.onChange(r),thumbColor:i,thumbCheckedColor:s,trackColor:l,disabledThumbColor:c,sx:{"& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"rgba(25, 118, 210, 0.04)"}}},...E})}),t.error&&ot(lg,{error:!0,sx:{marginTop:"4px"},children:"required"===t.error.type?o:n})]})}):ot(If,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:ot(jpt,{checked:B,disabled:D,onChange:(e,t)=>{V(t)},thumbColor:i,thumbCheckedColor:s,trackColor:l,disabledThumbColor:c,sx:{"& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"rgba(25, 118, 210, 0.04)"}}},...E})})]})},Npt=({items:t,onTabChange:r,activeTabKey:o,isMobile:n=!1,marginTop:a,marginRight:i,marginBottom:s,marginLeft:l,paddingTop:c,paddingRight:u,paddingBottom:d,paddingLeft:p,buttonPaddingTop:h,buttonPaddingRight:f,buttonPaddingBottom:m,buttonPaddingLeft:y,width:g,height:v,backgroundColor:x,borderRadius:b,elevation:w=1,gap:k,indicatorVisible:_=!0,indicatorColor:C,lineWidth:M="2px",orientation:S="horizontal",activeTextColor:D="#1976d2",inactiveTextColor:O="#000",fontSize:P,fontWeight:E,fontFamily:j,wrapText:T,textAlign:N,iconName:R,iconColor:F,iconSize:z,iconPlacement:I="left",hoverTextColor:A,itemBorder:L,itemBorderRadius:B,itemBackgroundColor:V,itemSelectedBackgroundColor:$,itemHoverBackgroundColor:H,selectedItemElevation:q=0,itemDisableRipple:W,configurationItemInfo:U,sx:G})=>{const K=Ge(),{isConfigurationMode:Y,onConfigurationItemClicked:Z,selectedConfigurationItemId:X}=_C(),[Q,J]=e.useState(null),ee=e=>J(e.currentTarget),te=()=>J(null),re={marginTop:a,marginRight:i,marginBottom:s,marginLeft:l,paddingTop:c,paddingRight:u,paddingBottom:d,paddingLeft:p,width:g,height:v,backgroundColor:x,borderRadius:b,display:"flex",overflow:"visible !important"},oe=e=>{const t=e?D:O,r=e&&$||V;return{color:t,fontSize:P,fontWeight:E,fontFamily:j,textAlign:N,whiteSpace:T?"normal":"nowrap",border:L,borderRadius:B,backgroundColor:r,boxShadow:e?K.shadows[q]:void 0,paddingTop:h,paddingRight:f,paddingBottom:m,paddingLeft:y,"&:hover":{color:A||t,backgroundColor:H||r}}},ne=e=>{r?.({newTabKey:e.tabKey,link:e.link})},ae=e=>{if(!Y)return{};const t=e.id===X,r={entityId:e.id,entity:"molecule_item",entityType:"tabs_item"};return{onClick:e=>{e.stopPropagation(),Z?.(r,!1)},onDoubleClick:e=>{e.stopPropagation(),Z?.(r,!0)},"data-organism-id":e.id,css:xtt({theme:K,selected:t})}},ie=e=>{const t=e.tabKey===o,r=oe(t);return nt(ix,{onClick:()=>{ne(e),te()},sx:{...r,display:"flex",alignItems:"center"},...ae(e),children:[e.iconName&&ot(uGe,{iconName:e.iconName,sx:{fontSize:P,color:t?D:O,mr:1}}),ot(If,{component:"span",children:e.label})]},e.id)};if(n)return nt($c,{elevation:w,style:re,sx:G,...U,children:[ot(Zu,{onClick:ee,children:ot(uGe,{size:z,color:F,iconName:R})}),ot(tx,{anchorEl:Q,open:Boolean(Q),onClose:te,children:t.map(ie)})]});const se=t.findIndex(e=>e.tabKey===o);return ot($c,{elevation:w,style:re,sx:G,...U,children:ot($_,{value:se<0?0:se,onChange:(e,r)=>Y?null:ne(t[r]),orientation:S,sx:{overflow:"visible","& .MuiTabs-flexContainer":{gap:k}},TabIndicatorProps:{style:_?{height:M,borderRadius:b,backgroundColor:C||D}:{display:"none"}},children:t.map(e=>{const t=e.tabKey===o,r={...oe(t),"&.Mui-selected":{color:t?D:O}};return ot(Vk,{label:e.label,disableRipple:W,sx:{...r,textTransform:"none"},onClick:()=>ne(e),iconPosition:"right"===I?"end":"start",icon:e.iconName?ot(uGe,{iconName:e.iconName,sx:{fontSize:P,color:t?D:O}}):void 0,...ae(e)},e.id)})})})},Rpt=e=>{if(!e)return null;if(e instanceof Date)return Rrt(e)?e:null;if("object"==typeof e&&null!==e&&"function"==typeof e.toDate){const t=e.toDate();return t instanceof Date&&Rrt(t)?t:null}if("string"==typeof e){const t=e.trim();if(!t)return null;const r=t.match(/(\d{1,2}:\d{2}(?::\d{2})?)/),o=r?r[1]:t,n=new Date,a=["HH:mm:ss","H:mm:ss","HH:mm","H:mm","hh:mm a","h:mm a","hh a","h a","HHmm","Hmm","HH","H"];for(const e of a){const t=Bot(o,e,n);if(Rrt(t))return t}return null}return null},Fpt=({name:t,text:r,isDisplayOnly:o=!1,sourceDataModelField:n,configurationItemInfo:a={},placeholderText:i,displayFormat:s="HH:mm",required:l=!1,requiredErrorText:c="This field is required",validationErrorText:u,sx:d,width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g,...v})=>{const x=Ut(),b=x?.control,w=!!b&&!!t,{localStateObject:k}=_C(),{stateConfig:_}=DC(),C=dt(),M=k||_,S=n?M?.[n]?.value:void 0,D=Rpt(S);e.useRef();const[O,P]=e.useState(D);if(o){const e=n?C?.getDmfValue(n):void 0,o=void 0!==e?e:w?x.watch(t):S,l=Rpt(o),c=l&&Rrt(l)?Brt(l,s):"";return nt(If,{...a,sx:{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g,"& .MuiFormHelperText-root":{marginBottom:"4px"},"& .MuiTypography-root":{border:"1px solid #ced4da",borderRadius:"4px",padding:"8px",minWidth:"100px"},...d},children:[r&&ot(lg,{children:r}),ot(yd,{children:c||i||"-"})]})}return ot(If,w?{...a,sx:{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g,"& .MuiTimePicker-root":{width:"100%"},"& .MuiTextField-root":{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g},"& .MuiInputBase-root":{fontSize:"14px"},"& .MuiInputLabel-root":{fontSize:"14px"},"& .MuiFormHelperText-root":{fontSize:"12px"},"& .MuiSvgIcon-root":{fontSize:"20px"},...d},children:ot(Jt,{name:t,control:b,defaultValue:D??null,rules:{required:!!l&&(c||"This field is required"),validate:e=>{if(null==e||""===e)return!0;const t=Rpt(e);return t&&Rrt(t)||u||"Invalid time"}},render:({field:{onChange:e,value:t},fieldState:o})=>ot(ddt,{...v,enableAccessibleFieldDOMStructure:!1,value:Rpt(t),onChange:t=>{const r=Rpt(t);e(r?Brt(r,"HH:mm"):null)},slots:{textField:G_},slotProps:{textField:{label:r,placeholder:i,error:!!o.error,helperText:o.error?.message,onMouseDown:e=>e.stopPropagation(),sx:{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g}}}})})}:{...a,sx:{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g,"& .MuiTimePicker-root":{width:"100%"},"& .MuiTextField-root":{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g},"& .MuiInputBase-root":{fontSize:"14px"},"& .MuiInputLabel-root":{fontSize:"14px"},"& .MuiFormHelperText-root":{fontSize:"12px"},"& .MuiSvgIcon-root":{fontSize:"20px"},...d},children:ot(ddt,{...v,enableAccessibleFieldDOMStructure:!1,value:O,onChange:e=>P(Rpt(e)),slots:{textField:G_},slotProps:{textField:{label:r,placeholder:i,onMouseDown:e=>e.stopPropagation(),sx:{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g}}}})})},zpt=({src:t,poster:r,controls:o=!1,loop:n=!1,autoplay:a=!1,raised:i=!1,alt:s="",height:l="100%",width:c="100%",borderRadius:u="0",margin:d=0,padding:p=0,moleculeId:h,enableCoverImage:f,configurationItemInfo:m,marginTop:y="0px",marginRight:g="0px",marginBottom:v="0px",marginLeft:x="0px",paddingTop:b="0px",paddingRight:w="0px",paddingBottom:k="0px",paddingLeft:_="0px",sx:C})=>{const[M,S]=e.useState(!1),{onStateChange:D}=OC(),O=()=>{D({id:h,type:"started"})};return ot(Ipt,{id:h,raised:i,onClick:O,sx:{borderRadius:`${u}px`,margin:d,padding:p,marginTop:y,marginRight:g,marginBottom:v,marginLeft:x,paddingTop:b,paddingRight:w,paddingBottom:k,paddingLeft:_,"& .MuiCard-root":{display:"inline-block",overflow:"hidden"},"& .MuiCardMedia-root":{height:l,width:c,objectFit:"cover"},"& .MuiCardMedia-media":{height:"100%",width:"100%",objectFit:"cover"},...C},...m,children:M?ot(yd,{component:"div",sx:{height:l,width:c,display:"flex",justifyContent:"center",alignItems:"center",fontSize:"16px",color:"gray",textAlign:"center"},children:s||"Video unavailable"}):ot(sm,{component:"video",src:t,poster:f?r:void 0,controls:o,loop:n,autoPlay:a,muted:a,"aria-label":s,sx:{height:l,width:c,objectFit:"cover","& .MuiCardMedia-media":{height:"100%",width:"100%",objectFit:"cover"}},onPlay:O,onEnded:()=>{D({id:h,type:"completed"})},onError:()=>{S(!0)}})})},Ipt=xo(tm)`
1025
+ `,Adt=({anchor:t="left",variant:r="persistent",open:o=!1,onClose:n,items:a=[],paddingTop:i,paddingRight:s,paddingBottom:l,paddingLeft:c,height:u,width:d,mobileWidth:p,backgroundColor:h="#fff",gap:f="8px",marginTop:m="0px",marginRight:y="0px",marginBottom:g="0px",marginLeft:v="0px",withButton:x=!0,buttonText:b="",buttonVariant:w="contained",buttonTextColor:k,buttonFontSize:_,buttonFontWeight:C,buttonFontFamily:M,buttonDisabled:S=!1,buttonGap:D=0,buttonStartIcon:O,buttonEndIcon:P,buttonBorderRadius:E="0px",buttonPaddingTop:j="0px",buttonPaddingRight:T="0px",buttonPaddingBottom:N="0px",buttonPaddingLeft:R="0px",buttonMarginTop:F="0px",buttonMarginRight:z="0px",buttonMarginBottom:I="0px",buttonMarginLeft:A="0px",buttonIconOnly:L,buttonElevation:B,buttonFillColor:V,buttonFillColorDisabled:$,buttonFillColorHover:H,buttonFillColorPressed:q,buttonBorderColor:W,buttonBorderColorDisabled:U,buttonBorderColorHover:G,buttonBorderColorPressed:K,buttonTextColorDisabled:Y,buttonTextColorHover:Z,buttonTextColorPressed:X,buttonColor:Q="#1976d2",buttonDisabledColor:J,withCloseIcon:ee=!0,closeIconColor:te=Kr.colors.gray2,closeIconName:re="x",closeIconSize:oe=18,closeIconBackgroundColor:ne="rgba(255, 255, 255, 0.9)",closeIconVisible:ae=!1,closeIconTop:ie="16px",closeIconLeft:se="16px",closeIconBorderRadius:le="50%",closeIconElevation:ce=2,moleculeId:ue,configurationItemInfo:de,sx:pe})=>{const he=Ge(),{isConfigurationMode:fe,selectedConfigurationItemId:me,onConfigurationItemClicked:ye,onInternalNavigation:ge}=_C(),{updateDrawer:ve,drawerContainerRef:xe,headerHeight:be,isMobile:we}=gC(),[ke,_e]=e.useState(o);e.useEffect(()=>{_e(o)},[o]);const Ce=Boolean(fe&&(me===ue||a.some(e=>e.id===me))),Me=()=>"permanent"===r||(fe?Ce:x?ke:o);e.useEffect(()=>{const e=Me(),o="left"===t||"right"===t,n=we&&void 0!==p?p:d;let a=0;if(void 0!==n)if("number"==typeof n)a=n;else if("string"==typeof n){const e=parseFloat(n);Number.isNaN(e)||(a=e)}let i=0;if(o&&!we)switch(r){case"permanent":i=a;break;case"persistent":default:i=e?a:0;break;case"temporary":i=0}return ve({isOpen:e,position:t,width:i}),()=>{ve({isOpen:!1,width:0})}},[ke,o,Ce,fe,x,t,d,p,we,r,ve]);const Se=()=>{"permanent"!==r&&_e(!0)},De=(e,t)=>{"permanent"!==r&&(_e(!1),n?.(e,t))},Oe=we&&void 0!==p?p:d,Pe=ot(Tdt,{anchor:t,variant:r,open:Me(),onClose:De,paddingTop:i,paddingRight:s,paddingBottom:l,paddingLeft:c,height:u,width:Oe,backgroundColor:h,marginTop:`calc(${be} + ${m})`,marginRight:y,marginBottom:g,marginLeft:v,container:xe,sx:pe,children:nt(Fdt,{...de&&Object.keys(de).length?{...de,"data-testid":"drawer-content-config","aria-label":"drawer-content"}:{},children:[(Me()||"permanent"===r)&&a.length>0?ot(Idt,{gap:f,children:a.map(e=>{const t=me===e.id,r={entityId:e.id,entity:"molecule_item",entityType:e.type},o=fe?{onClick:e=>{e.stopPropagation(),ye?.(r,!1)},onDoubleClick:e=>{e.stopPropagation(),ye?.(r,!0)},"data-organism-id":e.id,css:xtt({theme:he,selected:t})}:{};switch(e.type){case"menu_item":{const t=e;return nt(ix,{sx:{backgroundColor:t.backgroundColor||"transparent",paddingTop:t.paddingTop||"8px",paddingRight:t.paddingRight||"16px",paddingBottom:t.paddingBottom||"8px",paddingLeft:t.paddingLeft||"16px",opacity:t.disabled?.6:1,pointerEvents:t.disabled?"none":"auto","&:hover":{backgroundColor:t.disabled?t.backgroundColor||"transparent":"rgba(0, 0, 0, 0.08)"}},onClick:()=>{if(t?.link){x7e(t.link)?ge?.({link:t.link?.internalLink||""}):g7e(t.link?.externalLink)}},disabled:t.disabled,...o,children:[t.startIcon&&ot(uGe,{iconName:t.startIcon,color:t.textColor}),ot(yd,{sx:{ml:t.startIcon?1:0,mr:t.endIcon?1:0,color:t.textColor||"inherit",fontSize:t.fontSize||"inherit",fontWeight:t.fontWeight||"normal",fontFamily:t.fontFamily||"inherit",whiteSpace:t.wrap?"normal":"nowrap",width:"100%",textAlign:t.textAlign||"left"},children:t.text}),t.endIcon&&ot(uGe,{iconName:t.endIcon,color:t.textColor})]},t.id)}case"divider_item":{const t=e;return ot(Sdt,{moleculeId:t.id,variant:t.variant,lineWeight:t.lineWeight,orientation:t.orientation,borderColor:t.borderColor,borderRadius:t.borderRadius,marginTop:t.marginTop,marginRight:t.marginRight,marginBottom:t.marginBottom,marginLeft:t.marginLeft,configurationItemInfo:o},t.id)}case"text_item":{const t=e;return ot(Edt,{id:t.id,text:t.text,align:t.align,color:t.color,wrap:t.wrap,variant:"string"==typeof t.variant&&["inherit","body1","body2","caption","button","overline","subtitle1","subtitle2","h1","h2","h3","h4","h5","h6"].includes(t.variant)?t.variant:void 0,fontSize:t.fontSize??"",fontWeight:["normal","bold"].includes(t.fontWeight)?t.fontWeight:void 0,fontFamily:t.fontFamily??"",marginTop:t.marginTop||"",marginRight:t.marginRight||"",marginBottom:t.marginBottom||"",marginLeft:t.marginLeft||"",paddingTop:t.paddingTop||"",paddingRight:t.paddingRight||"",paddingBottom:t.paddingBottom||"",paddingLeft:t.paddingLeft||"",configurationsItemInfo:o},t.id)}case"rich_text_item":{const t=e;return ot(Pdt,{htmlElementId:t.id,text:t.text,isRichText:!0,marginTop:t.marginTop||"",marginRight:t.marginRight||"",marginBottom:t.marginBottom||"",marginLeft:t.marginLeft||"",paddingTop:t.paddingTop||"",paddingRight:t.paddingRight||"",paddingBottom:t.paddingBottom||"",paddingLeft:t.paddingLeft||"",configurationItemInfo:o},t.id)}case"image_item":{const t=e;return ot(Ddt,{src:t.src,alt:t.alt||"Drawer image",height:t.height,width:t.width,raised:t.raised,borderRadius:t.borderRadius||"0",marginTop:t.marginTop||"0",marginRight:t.marginRight||"0",marginBottom:t.marginBottom||"0",marginLeft:t.marginLeft||"0",paddingTop:t.paddingTop||"0",paddingRight:t.paddingRight||"0",paddingBottom:t.paddingBottom||"0",paddingLeft:t.paddingLeft||"0",onClick:()=>{if(t?.link){x7e(t.link)?ge?.({link:t.link?.internalLink||""}):g7e(t.link?.externalLink)}},moleculeId:t.id,configurationItemInfo:o},t.id)}default:return null}})}):null,!!ee&&(!!ae||Me())&&ot(zdt,{top:ie,left:se,borderRadius:le,elevation:ce,backgroundColor:ne,onClick:e=>{e.stopPropagation();Me()?De(e,"closeIconClicked"):Se()},"data-testid":"close-icon",children:ot(uGe,{"data-testid":"icon-renderer",iconName:re,size:oe,color:te})})]})});return x&&"permanent"!==r?nt(rt,{children:[ot(wGe,{moleculeId:ue,gap:D,text:b,variant:w,textColor:k,fontSize:_,fontWeight:["normal","bold"].includes(C)?C:void 0,fontFamily:M,disabled:S,startIcon:O,endIcon:P,marginTop:F,marginRight:z,marginBottom:I,marginLeft:A,paddingTop:j,paddingRight:T,paddingBottom:N,paddingLeft:R,borderRadius:E,iconOnly:L,elevation:B,fillColor:V||Q,fillColorDisabled:$||J,fillColorHover:H,fillColorPressed:q,borderColor:W,borderColorDisabled:U,borderColorHover:G,borderColorPressed:K,textColorDisabled:Y,textColorHover:Z,textColorPressed:X,externalOnClick:e=>ke?De(e,"buttonClicked"):Se(),configurationItemInfo:de}),ot(Rdt,{children:Pe})]}):ot(Rdt,{children:Pe})},Ldt=e.forwardRef((e,t)=>{const{inputRef:r,...o}=e;return ot(hKe,{...o,ref:e=>{"function"==typeof r&&r(e?e.inputElement:null)},mask:MKe,guide:!0,placeholderChar:" "})}),Bdt=({masked:e,errorMsg:t,inputSx:r,labelSx:o,sx:n,...a})=>{const i=e?{inputComponent:Ldt}:{};return ot(G_,{...a,variant:"outlined",error:!!t,helperText:t||null,type:"text",sx:{...n},slotProps:{input:{sx:{...r,...n},...i},inputLabel:{sx:{...o,...n}}}})},Vdt=({isDisplayOnly:t=!1,required:r=!1,requiredErrorText:o="Email is required",validationErrorText:n="Invalid email address",text:a,placeholderText:i,masked:s=!1,multiLine:l=!1,backgroundColor:c,borderColor:u,color:d="inherit",fontSize:p="16px",fontFamily:h="inherit",fontWeight:f="normal",textAlign:m="left",marginLeft:y="0",marginTop:g="0",marginRight:v="0",marginBottom:x="0",paddingLeft:b="0",paddingTop:w="0",paddingRight:k="0",paddingBottom:_="0",width:C,height:M,minHeight:S,maxHeight:D,minWidth:O,maxWidth:P,sx:E,name:j,sourceDataModelField:T,configurationItemInfo:N})=>{const R=Ut(),F=R?.control,z=!(!F||!j),{localStateObject:I}=_C(),{stateConfig:A}=DC(),L=dt(),B=I||A,V=T?B?.[T]?.value:void 0,$=T?L?.getDmfValue(T):void 0;e.useState("");const[H,q]=e.useState(""),W={required:!!r&&o,pattern:{value:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@(([^<>()[\]\\.,;:\s@"]+\.)+[^<>()[\]\\.,;:\s@"]{2,})$/,message:n}};if(t){let e="";e=void 0!==$?String($??""):z?R.watch(j)||"":V||"";const t=e||i||"-";return nt("div",{style:{display:"inline-flex",flexDirection:"column",marginLeft:y,marginTop:g,marginRight:v,marginBottom:x,...C&&{width:C},...M&&{height:M},minHeight:S,maxHeight:D,minWidth:O,maxWidth:P},...N,children:[a&&ot(lg,{sx:{fontSize:p,fontFamily:h,fontWeight:f,color:d,marginLeft:0,marginBottom:"4px",...E},children:a}),ot(yd,{sx:{fontSize:p,fontFamily:h,fontWeight:f,color:d,paddingLeft:b,paddingTop:w,paddingRight:k,paddingBottom:_,backgroundColor:c,border:`1px solid ${u||"#ccc"}`,borderRadius:"4px",minWidth:"120px",textAlign:m,...E},children:t})]})}const U={backgroundColor:c,color:d,fontSize:p,fontFamily:h,fontWeight:f,...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D},"& .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled:hover .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"& .MuiOutlinedInput-input":{textAlign:m,paddingLeft:b,paddingTop:w,paddingRight:k,paddingBottom:_}},G={color:d,"&.Mui-focused":{color:d}},K=l?3:1,Y={...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D}};return ot("div",z?{style:{marginLeft:y,marginTop:g,marginRight:v,marginBottom:x,...C&&{width:C},...M&&{height:M},minHeight:S,maxHeight:D,minWidth:O,maxWidth:P},sx:{"& .MuiTextField-root":{width:C||"100%",height:M,minHeight:S,maxHeight:D,minWidth:O,maxWidth:P},...E},children:ot(Jt,{name:j,rules:W,control:F,defaultValue:"",render:({field:e,fieldState:t})=>ot(Bdt,{masked:s,required:r,errorMsg:t.error?.message,inputSx:U,labelSx:G,sx:{...Y,...E},label:a,placeholder:i,multiline:l,minRows:K,value:e.value||"",onChange:e.onChange,...N||{}})})}:{style:{marginLeft:y,marginTop:g,marginRight:v,marginBottom:x,...C&&{width:C},...M&&{height:M},minHeight:S,maxHeight:D,minWidth:O,maxWidth:P},sx:{"& .MuiTextField-root":{width:C||"100%",height:M,minHeight:S,maxHeight:D,minWidth:O,maxWidth:P},...E},children:ot(Bdt,{masked:s,required:r,errorMsg:void 0,inputSx:U,labelSx:G,sx:{...Y,...E},label:a,placeholder:i,multiline:l,minRows:K,value:H,onChange:e=>q(e.target.value),...N||{}})})},$dt=({src:t,text:r,type:o,link:n,sourceDataModelField:a,color:i=Kr.colors.deepBlue,disabled:s=!1,disabledColor:l,underline:c="hover",variant:u="body2",margin:d="0",padding:p="0",moleculeId:h,configurationItemInfo:f,marginTop:m="0",marginRight:y="0",marginBottom:g="0",marginLeft:v="0",paddingTop:x="0",paddingRight:b="0",paddingBottom:w="0",paddingLeft:k="0",fontFamily:_,fontWeight:C,fontSize:M,align:S,target:D,sx:O,borderColor:P,borderWidth:E,borderStyle:j,borderRadius:T,iconOnly:N,ariaLabel:R,iconName:F,iconSize:z,validationErrorText:I})=>{const{onStateChange:A}=OC(),{onInternalNavigation:L,isConfigurationMode:B,localStateObject:V}=_C(),{stateConfig:$}=DC(),H=dt(),q=V||$,W=e.useMemo(()=>{if(!a)return;const e=H?.getDmfValue(a);return null!=e?e:q?.[a]?.value},[H,a,q]),U=Boolean(a),G=e.useMemo(()=>{if(U)return W?String(W):void 0;const e=n?x7e(n):"internalLink"===o||"internal_link"===o,r=n?e?n.internalLink:n.externalLink:void 0;return t??r??void 0},[U,W,n,o,t]),K=!U&&!!n&&x7e(n),Y=U?D||"_blank":D||(K?"_self":"_blank"),Z=!!U&&!(e=>{if(!e)return!1;try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}})(G),X=Z?"#d32f2f":s?l||Wr(i):i,Q=B||s||Z?void 0:G,J=Boolean(F),ee="regular"===C?"normal":C,te=N?ot(uGe,{iconName:F||"external-link",size:z??16}):nt(rt,{children:[ot("span",{children:r}),J&&ot(uGe,{iconName:F,size:z??16})]}),{onClick:re,onDoubleClick:oe,...ne}=f||{},ae=ot(rv,{href:Q,component:"a",target:Y,onClick:e=>{A({id:h,type:"clicked"}),s||B||Z?e.preventDefault():U&&G?(e.preventDefault(),g7e(G)):K&&G?(e.preventDefault(),L?.({link:G})):!K&&G&&(e.preventDefault(),g7e(G))},onClickCapture:re||void 0,onDoubleClickCapture:oe||void 0,"aria-label":N?R||r||"link":void 0,sx:{color:X,textDecorationColor:X,margin:d,padding:p,marginTop:m,marginRight:y,marginBottom:g,marginLeft:v,paddingTop:x,paddingRight:b,paddingBottom:w,paddingLeft:k,fontFamily:_,fontWeight:ee,fontSize:M,textAlign:S,alignItems:"center",cursor:s?"not-allowed":"pointer",borderColor:P,borderWidth:E,borderStyle:j,borderRadius:T,display:N||J?"inline-flex":void 0,gap:J&&!N?"4px":void 0,"& .MuiLink-root":{color:"inherit",textDecorationColor:"inherit"},"&:hover":{color:s?X:Wr(X,.8),textDecorationColor:s?X:Wr(X,.8)},"&:active":{color:s?X:Wr(X,.6),textDecorationColor:s?X:Wr(X,.6)},"&.Mui-disabled":{color:l||Wr(i),textDecorationColor:l||Wr(i),cursor:"not-allowed"},...O},align:S,variant:u,underline:c,...ne,children:te});return Z?ot(Sw,{title:I||"Invalid link URL",arrow:!0,children:ot("span",{children:ae})}):ae};var Hdt;function qdt(e){var t=e.pathname,r=void 0===t?"/":t,o=e.search,n=void 0===o?"":o,a=e.hash,i=void 0===a?"":a;return n&&"?"!==n&&(r+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(r+="#"===i.charAt(0)?i:"#"+i),r}function Wdt(e){var t={};if(e){var r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));var o=e.indexOf("?");o>=0&&(t.search=e.substr(o),e=e.substr(0,o)),e&&(t.pathname=e)}return t}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(Hdt||(Hdt={})),process.env.NODE_ENV;const Udt=e.createContext(null);"production"!==process.env.NODE_ENV&&(Udt.displayName="Navigation");const Gdt=e.createContext(null);"production"!==process.env.NODE_ENV&&(Gdt.displayName="Location");const Kdt=e.createContext({outlet:null,matches:[]});function Ydt(e,t){if(!e)throw new Error(t)}function Zdt(e,t,r){let o,n="string"==typeof e?Wdt(e):e,a=""===e||""===n.pathname?"/":n.pathname;if(null==a)o=r;else{let e=t.length-1;if(a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;n.pathname=t.join("/")}o=e>=0?t[e]:"/"}let i=function(e,t){void 0===t&&(t="/");let{pathname:r,search:o="",hash:n=""}="string"==typeof e?Wdt(e):e,a=r?r.startsWith("/")?r:function(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}(r,t):t;return{pathname:a,search:Qdt(o),hash:Jdt(n)}}(n,o);return a&&"/"!==a&&a.endsWith("/")&&!i.pathname.endsWith("/")&&(i.pathname+="/"),i}"production"!==process.env.NODE_ENV&&(Kdt.displayName="Route");const Xdt=e=>e.join("/").replace(/\/\/+/g,"/"),Qdt=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Jdt=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function ept(t){tpt()||("production"!==process.env.NODE_ENV?Ydt(!1,"useHref() may be used only in the context of a <Router> component."):Ydt(!1));let{basename:r,navigator:o}=e.useContext(Udt),{hash:n,pathname:a,search:i}=npt(t),s=a;if("/"!==r){let e=function(e){return""===e||""===e.pathname?"/":"string"==typeof e?Wdt(e).pathname:e.pathname}(t),o=null!=e&&e.endsWith("/");s="/"===a?r+(o?"/":""):Xdt([r,a])}return o.createHref({pathname:s,search:i,hash:n})}function tpt(){return null!=e.useContext(Gdt)}function rpt(){return tpt()||("production"!==process.env.NODE_ENV?Ydt(!1,"useLocation() may be used only in the context of a <Router> component."):Ydt(!1)),e.useContext(Gdt).location}function opt(){tpt()||("production"!==process.env.NODE_ENV?Ydt(!1,"useNavigate() may be used only in the context of a <Router> component."):Ydt(!1));let{basename:t,navigator:r}=e.useContext(Udt),{matches:o}=e.useContext(Kdt),{pathname:n}=rpt(),a=JSON.stringify(o.map(e=>e.pathnameBase)),i=e.useRef(!1);e.useEffect(()=>{i.current=!0});let s=e.useCallback(function(e,o){if(void 0===o&&(o={}),"production"!==process.env.NODE_ENV&&function(e,t){if(!e)try{throw new Error(t)}catch(HQe){}}(i.current,"You should call navigate() in a React.useEffect(), not when your component is first rendered."),!i.current)return;if("number"==typeof e)return void r.go(e);let s=Zdt(e,JSON.parse(a),n);"/"!==t&&(s.pathname=Xdt([t,s.pathname])),(o.replace?r.replace:r.push)(s,o.state)},[t,r,a,n]);return s}function npt(t){let{matches:r}=e.useContext(Kdt),{pathname:o}=rpt(),n=JSON.stringify(r.map(e=>e.pathnameBase));return e.useMemo(()=>Zdt(t,JSON.parse(n),o),[t,n,o])}function apt(){return apt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},apt.apply(this,arguments)}function ipt(e,t){if(null==e)return{};var r,o,n={},a=Object.keys(e);for(o=0;o<a.length;o++)r=a[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}const spt=["onClick","reloadDocument","replace","state","target","to"],lpt=["aria-current","caseSensitive","className","end","style","to","children"];process.env.NODE_ENV;const cpt=e.forwardRef(function(t,r){let{onClick:o,reloadDocument:n,replace:a=!1,state:i,target:s,to:l}=t,c=ipt(t,spt),u=ept(l),d=function(t,r){let{target:o,replace:n,state:a}=void 0===r?{}:r,i=opt(),s=rpt(),l=npt(t);return e.useCallback(e=>{if(!(0!==e.button||o&&"_self"!==o||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))){e.preventDefault();let r=!!n||qdt(s)===qdt(l);i(t,{replace:r,state:a})}},[s,i,l,n,a,o,t])}(l,{replace:a,state:i,target:s});return e.createElement("a",apt({},c,{href:u,onClick:function(e){o&&o(e),e.defaultPrevented||n||d(e)},ref:r,target:s}))});"production"!==process.env.NODE_ENV&&(cpt.displayName="Link");const upt=e.forwardRef(function(t,r){let{"aria-current":o="page",caseSensitive:n=!1,className:a="",end:i=!1,style:s,to:l,children:c}=t,u=ipt(t,lpt),d=rpt(),p=npt(l),h=d.pathname,f=p.pathname;n||(h=h.toLowerCase(),f=f.toLowerCase());let m,y=h===f||!i&&h.startsWith(f)&&"/"===h.charAt(f.length),g=y?o:void 0;m="function"==typeof a?a({isActive:y}):[a,y?"active":null].filter(Boolean).join(" ");let v="function"==typeof s?s({isActive:y}):s;return e.createElement(cpt,apt({},u,{"aria-current":g,className:m,ref:r,style:v,to:l}),"function"==typeof c?c({isActive:y}):c)});function dpt(t){"production"!==process.env.NODE_ENV&&function(e,t){if(!e)try{throw new Error(t)}catch(HQe){}}("undefined"!=typeof URLSearchParams,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params\n\nIf you're unsure how to load polyfills, we recommend you check out https://polyfill.io/v3/ which provides some recommendations about how to load polyfills only for users that need them, instead of for every user.");let r=e.useRef(ppt(t)),o=rpt(),n=e.useMemo(()=>{let e=ppt(o.search);for(let t of r.current.keys())e.has(t)||r.current.getAll(t).forEach(r=>{e.append(t,r)});return e},[o.search]),a=opt();return[n,e.useCallback((e,t)=>{a("?"+ppt(e),t)},[a])]}function ppt(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let o=e[r];return t.concat(Array.isArray(o)?o.map(e=>[r,e]):[[r,o]])},[]))}"production"!==process.env.NODE_ENV&&(upt.displayName="NavLink");const hpt=e=>({justifyContent:e.textAlign||"flex-start",backgroundColor:e.backgroundColor,paddingTop:e.paddingTop,paddingRight:e.paddingRight,paddingBottom:e.paddingBottom,paddingLeft:e.paddingLeft}),fpt=({popover:t=!0,items:r,marginTop:o="0",marginRight:n="0",marginBottom:a="0",marginLeft:i="0",paddingTop:s="0",paddingRight:l="0",paddingBottom:c="0",paddingLeft:u="0",cornerRadius:d="4px",backgroundColor:p="#fff",width:h="100%",height:f="auto",borderColor:m="#ccc",borderWeight:y="1px",buttonText:g="Open Menu",buttonVariant:v="contained",buttonTextColor:x,buttonFontSize:b,buttonFontWeight:w,buttonFontFamily:k,buttonDisabled:_=!1,buttonGap:C=0,buttonStartIcon:M,buttonEndIcon:S,buttonCornerRadius:D="0",buttonMarginTop:O="0",buttonMarginRight:P="0",buttonMarginBottom:E="0",buttonMarginLeft:j="0",buttonPaddingTop:T="0",buttonPaddingRight:N="0",buttonPaddingBottom:R="0",buttonPaddingLeft:F="0",buttonIconOnly:z,buttonElevation:I,buttonFillColor:A,buttonFillColorDisabled:L,buttonFillColorHover:B,buttonFillColorPressed:V,buttonBorderColor:$,buttonBorderColorDisabled:H,buttonBorderColorHover:q,buttonBorderColorPressed:W,buttonTextColorDisabled:U,buttonTextColorHover:G,buttonTextColorPressed:K,buttonColor:Y="#1976d2",anchorOriginVertical:Z="bottom",anchorOriginHorizontal:X="left",transformOriginVertical:Q="top",transformOriginHorizontal:J="left",elevation:ee=3,sx:te,moleculeId:re,configurationItemInfo:oe})=>{const ne=Ge(),{isConfigurationMode:ae,selectedConfigurationItemId:ie,onConfigurationItemClicked:se,onInternalNavigation:le}=_C(),[ce,ue]=e.useState(null),[de,pe]=e.useState(!1),[he]=dpt(),fe=e.useMemo(()=>he.get(p7e)||he.get(d7e)||"",[he]),me=e=>{console.log("[Menu] Checking item for selection:",e?.id,e?.text);const t=e?.link;if(console.log("[Menu] Item link:",t),!t||!t.internalLink)return console.log("[Menu] No link or internalLink, returning false"),!1;const r=C7e(t.internalLink);if(console.log("[Menu] Extracted linkWebpageId:",r,"currentSelectedWebpageId:",fe),!r||!fe)return console.log("[Menu] Missing IDs, returning false"),!1;const o=r===fe;return console.log("[Menu] Selection match?",o),o},ye=Boolean(ae&&(ie===re||r.some(e=>e.id===ie))),ge=()=>pe(!0),ve=()=>pe(!1),xe={marginTop:o,marginRight:n,marginBottom:a,marginLeft:i,paddingTop:s,paddingRight:l,paddingBottom:c,paddingLeft:u,"& .MuiMenu-paper":{backgroundColor:p,border:`${y} solid ${m}`,borderRadius:d,boxShadow:0===ee?"none":ne?.shadows?.[ee]||ne?.shadows?.[3]},"& .MuiMenu-list":{padding:0,width:h,height:f,overflow:"hidden"},"& .MuiMenuItem-root":{minHeight:"auto",paddingTop:"8px",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"16px"},"& .MuiListItemButton-root":{paddingTop:"8px",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"16px"},"& .MuiListItemText-primary":{fontSize:"14px",fontFamily:"inherit"},"& .MuiTypography-root":{fontSize:"14px",fontFamily:"inherit"},...t?{display:"inline-block",zIndex:ne?.zIndex?.drawer}:{width:h,height:f,backgroundColor:p,display:"block",overflow:"hidden",border:`${y} solid ${m}`,borderRadius:d},...te};return t?nt(If,{children:[ot(wGe,{ref:ue,text:g,variant:v,moleculeId:re,textColor:x,fontSize:b,fontWeight:w,fontFamily:k,disabled:_,gap:C,startIcon:M,endIcon:S,onClick:ge,marginTop:O,marginRight:P,marginBottom:E,marginLeft:j,paddingTop:T,paddingRight:N,paddingBottom:R,paddingLeft:F,borderRadius:D,iconOnly:z,elevation:I,fillColor:A||Y,fillColorDisabled:L,fillColorHover:B,fillColorPressed:V,borderColor:$,borderColorDisabled:H,borderColorHover:q,borderColorPressed:W,textColorDisabled:U,textColorHover:G,textColorPressed:K,configurationItemInfo:oe}),ot(tx,{open:ae?ye:de,variant:"menu",anchorEl:ce,disablePortal:!0,disableScrollLock:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,onClose:ve,anchorOrigin:{vertical:Z,horizontal:X},transformOrigin:{vertical:Q,horizontal:J},elevation:ee,slotProps:{paper:{sx:{backgroundColor:p,border:`${y} solid ${m}`,borderRadius:d,boxShadow:0===ee?"none":ne?.shadows?.[ee]||ne?.shadows?.[3],"& .MuiMenu-list":xe["& .MuiMenu-list"],"& .MuiMenuItem-root":xe["& .MuiMenuItem-root"],"& .MuiListItemText-primary":xe["& .MuiListItemText-primary"],"& .MuiTypography-root":xe["& .MuiTypography-root"]}}},sx:{...xe,"& .MuiMenu-paper":xe["& .MuiMenu-paper"]},children:r.map(e=>{const t=ie===e.id,r=!ae&&me(e),o={entityId:e.id,entity:"molecule_item",entityType:"menu_item"},n=ae?e=>{e.stopPropagation(),se?.(o,!1)}:void 0,a=ae?e=>{e.stopPropagation(),se?.(o,!0)}:void 0,i=ae?{onClick:n,onDoubleClick:a,"data-organism-id":e.id,css:xtt({theme:ne,selected:t})}:{};return nt(ix,{sx:hpt(e),selected:r,onClick:()=>{e?.link&&(x7e(e.link)?le?.({link:e.link?.internalLink||""}):g7e(e.link?.externalLink)),ve()},disabled:e.disabled,...i,children:[e.startIcon&&ot(uGe,{iconName:e.startIcon,color:e.textColor}),ot(yd,{sx:{ml:e.startIcon?1:0,mr:e.endIcon?1:0,color:e.textColor||"inherit",fontSize:e.fontSize||"inherit",fontWeight:e.fontWeight||"normal",fontFamily:e.fontFamily||"inherit",whiteSpace:e.wrap?"normal":"nowrap",width:"100%",textAlign:e.textAlign||"left"},children:e.text}),e.endIcon&&ot(uGe,{iconName:e.endIcon,color:e.textColor})]},e.id)})})]}):ot($c,{id:re,sx:{...xe,backgroundColor:p,border:`${y} solid ${m}`,borderRadius:d,boxShadow:0===ee?"none":ne?.shadows?.[ee]||ne?.shadows?.[3]},elevation:ee,...oe,children:ot(lv,{disablePadding:!0,children:r.map(e=>{const t=ie===e.id,r=!ae&&me(e),o={entityId:e.id,entity:"molecule_item",entityType:"menu_item"},n=ae?e=>{e.stopPropagation(),se?.(o,!1)}:void 0,a=ae?e=>{e.stopPropagation(),se?.(o,!0)}:void 0,i=ae?{onClick:n,onDoubleClick:a,"data-organism-id":e.id,css:xtt({theme:ne,selected:t})}:{};return nt(fv,{disabled:e.disabled,sx:hpt(e),selected:r,onClick:()=>{e?.link&&(x7e(e.link)?le?.({link:e.link?.internalLink||""}):g7e(e.link?.externalLink))},...i,children:[e.startIcon&&ot(uGe,{iconName:e.startIcon,color:e.textColor}),ot(Tv,{primary:ot(yd,{sx:{ml:e.startIcon?1:0,mr:e.endIcon?1:0,color:e.textColor||"inherit",fontSize:e.fontSize||"inherit",fontWeight:e.fontWeight||"normal",fontFamily:e.fontFamily||"inherit",whiteSpace:e.wrap?"normal":"nowrap",textAlign:e.textAlign||"left"},children:e.text})}),e.endIcon&&ot(uGe,{iconName:e.endIcon,color:e.textColor})]},e.id)})})})};const mpt=({errorMsg:e,stepValue:t,minValue:r,allowNegative:o,inputSx:n,labelSx:a,...i})=>ot(G_,{...i,variant:"outlined",type:"number",error:!!e,helperText:e||null,inputProps:{step:t,min:o?void 0:r},slotProps:{input:{sx:n},inputLabel:{sx:a}}}),ypt=({isDisplayOnly:t=!1,required:r=!1,requiredErrorText:o="This field is required",validationErrorText:n="Invalid numeric value",text:a,placeholderText:i,backgroundColor:s,borderColor:l,textColor:c="#000",fontSize:u,fontFamily:d,fontWeight:p,allowNegative:h=!1,numericPrecision:f="1",name:m,sourceDataModelField:y,marginLeft:g="0",marginTop:v="0",marginRight:x="0",marginBottom:b="0",paddingLeft:w="0",paddingTop:k="0",paddingRight:_="0",paddingBottom:C="0",width:M,height:S,configurationItemInfo:D,textAlign:O,minHeight:P,maxHeight:E,minWidth:j,maxWidth:T,sx:N})=>{const R=Ut(),F=R?.control,z=!(!F||!m),{localStateObject:I}=_C(),{stateConfig:A}=DC(),L=dt(),B=I||A,V=y?B?.[y]?.value:void 0,$=y?L?.getDmfValue(y):void 0,[H,q]=e.useState(""),W=parseFloat(f),U=h?void 0:0,G={required:!!r&&o,pattern:{value:h?/^-?\d*(\.\d+)?$/:/^\d*(\.\d+)?$/,message:n}};if(h||(G.min={value:0,message:"Value cannot be less than zero"}),t){let e="";e=void 0!==$?String($??""):z?R.watch(m)||"":V;const t=e?function(e,t,r){if(!e)return"";const o=parseFloat(e);if(Number.isNaN(o))return e;if(!r&&o<0)return"0";if(t){const e=(t.split(".")[1]||"").length;if(e>0)return o.toFixed(e)}return e}(e,f,h):i||"-";return nt("div",{style:{display:"inline-flex",flexDirection:"column",marginLeft:g,marginTop:v,marginRight:x,marginBottom:b,...M&&{width:M},...S&&{height:S},...j&&{minWidth:j},...T&&{maxWidth:T},...P&&{minHeight:P},...E&&{maxHeight:E}},sx:N,...D,children:[a&&ot(lg,{sx:{fontSize:u,fontFamily:d,fontWeight:p,color:c,marginBottom:"4px"},children:a}),ot(yd,{sx:{fontSize:u,fontFamily:d,fontWeight:p,color:c,paddingLeft:w,paddingTop:k,paddingRight:_,paddingBottom:C,backgroundColor:s,border:`1px solid ${l||"#ccc"}`,borderRadius:"4px",minWidth:"60px"},children:t})]})}const K={backgroundColor:s,color:c,fontSize:u,fontFamily:d,fontWeight:p,...M&&{width:M},...S&&{height:S},...j&&{minWidth:j},...T&&{maxWidth:T},...P&&{minHeight:P},...E&&{maxHeight:E},"& .MuiOutlinedInput-notchedOutline":{borderColor:l||"inherit"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:l||"inherit"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:l||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:l||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled:hover .MuiOutlinedInput-notchedOutline":{borderColor:l||"inherit"}},Y={color:c,"&.Mui-focused":{color:c}},Z={...M&&{width:M},...S&&{height:S},...j&&{minWidth:j},...T&&{maxWidth:T},...P&&{minHeight:P},...E&&{maxHeight:E}};return ot(Uy,z?{required:r,sx:{marginLeft:g,marginTop:v,marginRight:x,marginBottom:b,width:"fit-content",...M&&{width:M},...S&&{height:S},...j&&{minWidth:j},...T&&{maxWidth:T},...P&&{minHeight:P},...E&&{maxHeight:E},...N},...D,children:ot(Jt,{name:m,rules:G,control:F,defaultValue:"",render:({field:e,fieldState:t})=>ot(mpt,{errorMsg:t.error?.message,label:a,placeholder:i,stepValue:W,minValue:U,allowNegative:h,inputSx:K,labelSx:Y,sx:Z,value:e.value||"",onChange:t=>e.onChange(t.target.value)})})}:{required:r,sx:{marginLeft:g,marginTop:v,marginRight:x,marginBottom:b,width:"fit-content",...M&&{width:M},...S&&{height:S},...j&&{minWidth:j},...T&&{maxWidth:T},...P&&{minHeight:P},...E&&{maxHeight:E},...N},...D,children:ot(mpt,{errorMsg:void 0,label:a,placeholder:i,stepValue:W,minValue:U,allowNegative:h,inputSx:K,labelSx:Y,sx:Z,value:H,onChange:e=>q(e.target.value)})})},gpt=e=>{const t={text:e.label,validate:()=>!0},{rule:r}=e,o=vpt(r);if(o||xpt(r)){const e=((e,t)=>(r=0)=>e?r<=t:r>=t)(o,o?r.MAX:r.MIN);switch(r.type){case"COUNT":t.validate=t=>e(t?.length);break;case"NUMBER_COUNT":t.validate=t=>e(t?.replace(/\D/g,"").length);break;case"CAPITAL_COUNT":t.validate=t=>e((t?.match(/[A-Z]/g)||[]).length);break;case"SPECIAL_CHARACTERS_COUNT":t.validate=t=>e(t?.replace(/[a-z]|\d|\s/gi,"").length);break;case"LOWER_CASE_COUNT":t.validate=t=>e((t?.match(/[a-z]/g)||[]).length)}}return t},vpt=e=>!!e?.MAX,xpt=e=>!!e?.MIN,bpt=({gap:t="0",inputProps:r,validations:o,htmlElementId:n,validationState:a,overridesProperties:i,configurationItemInfo:s,width:l,height:c,minWidth:u,maxWidth:d,minHeight:p,maxHeight:h,marginLeft:f="0",marginTop:m="0",marginRight:y="0",marginBottom:g="0",sx:v,...x})=>{const{watch:b,formState:w,setError:k}=Ut()||{},{text:_,subText:C,placeholderText:M,subPlaceholderText:S,validationText:D}=i,O=o.map(gpt),P="password",E=`reEnter${P}`,j=b?.(P),T=b?.(E);return e.useEffect(()=>{j!==T&&k(E,{type:"manual",message:"Passwords do not match"})},[j,T,k,E]),nt(If,{id:n,sx:{width:"100%",display:"flex",flexDirection:"column",gap:t,marginLeft:f,marginTop:m,marginRight:y,marginBottom:g,...l&&{width:l},...c&&{height:c},...u&&{minWidth:u},...d&&{maxWidth:d},...p&&{minHeight:p},...h&&{maxHeight:h},...v},...s,...x,children:[ot(Stt,{...r,inputType:"password",text:_?.text,name:P,placeholderText:M?.text}),ot(Stt,{...r,inputType:"password",text:C?.text,name:E,placeholderText:S?.text}),ot(aKe,{rules:O,value:j,label:D?.text,isSubmitted:w?.isDirty,validationState:a})]})},wpt=["+"," ","(",/[0-9]/,/[0-9]/,/[0-9]/,")"," ",/[0-9]/,/[0-9]/,/[0-9]/,"-",/[0-9]/,/[0-9]/,/[0-9]/,/[0-9]/],kpt=e.forwardRef((e,t)=>{const{inputRef:r,...o}=e;return ot(hKe,{...o,ref:e=>{"function"==typeof r&&r(e?e.inputElement:null)},mask:wpt,guide:!0,placeholderChar:" "})});function _pt(e){const t=(e??"").replace(/\D+/g,"");if(!t)return"";let r="",o=0;return wKe.forEach(e=>{"string"==typeof e?r+=e:o<t.length?(r+=t[o],o+=1):r+="_"}),r}const Cpt=({masked:e,errorMsg:t,inputSx:r,labelSx:o,...n})=>ot(G_,{...n,variant:"outlined",error:!!t,helperText:t||null,slotProps:{input:{sx:r,...e?{inputComponent:kpt}:{}},inputLabel:{sx:o}}}),Mpt=({isDisplayOnly:t=!1,required:r=!1,requiredErrorText:o="Phone is required",validationErrorText:n="Invalid phone number",text:a,placeholderText:i,masked:s=!0,multiLine:l=!1,backgroundColor:c,borderColor:u,textColor:d="#000",fontSize:p,fontFamily:h,fontWeight:f,textAlign:m,marginLeft:y="0",marginTop:g="0",marginRight:v="0",marginBottom:x="0",paddingLeft:b="0",paddingTop:w="0",paddingRight:k="0",paddingBottom:_="0",width:C,height:M,minHeight:S,maxHeight:D,minWidth:O,maxWidth:P,name:E,sourceDataModelField:j,configurationItemInfo:T,sx:N})=>{const R=Ut(),F=R?.control,z=!(!F||!E),{localStateObject:I}=_C(),{stateConfig:A}=DC(),L=dt(),B=I||A,V=j?B?.[j]?.value:void 0,$=j?L?.getDmfValue(j):void 0,[H,q]=e.useState(""),W={required:!!r&&o,pattern:{value:/^\d{10}$/,message:n}};if(t){let e="";e=void 0!==$?String($??""):z?R.watch(E)||"":String(V??"");const t=(s?_pt(e):e)||i||"-";return nt("div",{style:{display:"inline-flex",flexDirection:"column",marginLeft:y,marginTop:g,marginRight:v,marginBottom:x,...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D}},...T,children:[a&&ot(lg,{sx:{fontSize:p,fontFamily:h,fontWeight:f,color:d,marginLeft:0,marginBottom:"4px",...N},children:a}),ot(yd,{sx:{fontSize:p,fontFamily:h,fontWeight:f,color:d,paddingLeft:b,paddingTop:w,paddingRight:k,paddingBottom:_,backgroundColor:c,border:`1px solid ${u||"#ccc"}`,borderRadius:"4px",minWidth:"120px",...N},children:t})]})}const U={backgroundColor:c,color:d,fontSize:p,fontFamily:h,fontWeight:f,...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D},"& .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"},"& .MuiOutlinedInput-root.Mui-disabled:hover .MuiOutlinedInput-notchedOutline":{borderColor:u||"inherit"}},G={color:d,"&.Mui-focused":{color:d}},K={marginLeft:y,marginTop:g,marginRight:v,marginBottom:x,width:"fit-content",...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D}};return ot(Uy,z?{required:r,sx:{...K,...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D},...N},...T,children:ot(Jt,{name:E,rules:W,control:F,defaultValue:"",render:({field:e,fieldState:t})=>ot(Cpt,{masked:s,errorMsg:t.error?.message,inputSx:U,labelSx:G,label:a,placeholder:i,value:e.value||"",onChange:t=>{const r=(t?.target?.value??"").toString().replace(/\D+/g,"");e.onChange(r)}})})}:{required:r,sx:{...K,...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D},...N},...T,children:ot(Cpt,{masked:s,errorMsg:void 0,inputSx:U,labelSx:G,label:a,placeholder:i,value:H,onChange:e=>{const t=(e?.target?.value??"").toString();q(t.replace(/\D+/g,""))}})})},Spt=({text:t,name:r,isDisplayOnly:o=!1,required:n=!1,requiredErrorText:a="This field is required",validationErrorText:i="Invalid rating",placeholderText:s="",hoverFeedback:l=!1,sourceDataModelField:c,textAlign:u="left",color:d="black",textColor:p,selectColor:h,fontSize:f=14,fontFamily:m="Arial, sans-serif",fontWeight:y="normal",marginLeft:g="0",marginTop:v="0",marginRight:x="0",marginBottom:b="0",paddingLeft:w="0",paddingTop:k="0",paddingRight:_="0",paddingBottom:C="0",width:M,height:S,minHeight:D,maxHeight:O,minWidth:P,maxWidth:E,placement:j="right",configurationItemInfo:T={},disabled:N=!1,maxValue:R=5,ratingPrecision:F=.5,sx:z,...I})=>{const A=Ut(),L=A?.control,B=!!A&&!!L&&!!r,{localStateObject:V}=_C(),{stateConfig:$}=DC(),H=dt(),q=V||$,W=c?q?.[c]?.value:void 0;!B||A.formState.errors;const[U,G]=e.useState(null),[K,Y]=e.useState(-1),Z=l&&-1!==K;if(o){const e=c?H?.getDmfValue(c):void 0;let r=null;const o=e=>"number"!=typeof e||Number.isNaN(e)?"string"!=typeof e||Number.isNaN(Number(e))?null:Number(e):e;if(void 0!==e)r=o(e);else if(c&&q?.[c]){const e=q?.[c]?.value;r=o(e)}return nt(Uy,{required:n,sx:{marginLeft:g,marginTop:v,marginRight:x,marginBottom:b,paddingLeft:w,paddingTop:k,paddingRight:_,paddingBottom:C,display:"inline-flex",...M&&{width:M},...S&&{height:S},...D&&{minHeight:D},...O&&{maxHeight:O},...P&&{minWidth:P},...E&&{maxWidth:E},...z},...T,children:[t&&ot(yd,{variant:"subtitle1",sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,marginBottom:"4px"},children:t}),ot(ib,{value:r,max:R,precision:F,readOnly:!0,sx:{"& .MuiRating-iconEmpty":{color:d},"& .MuiRating-iconFilled":{color:h||d},...z},...I})]})}const X={required:!!n&&a,validate:e=>!n||null!==e&&0!==e||a};return nt(Uy,{required:n,sx:{marginLeft:g,marginTop:v,marginRight:x,marginBottom:b,paddingLeft:w,paddingTop:k,paddingRight:_,paddingBottom:C,display:"inline-flex",...M&&{width:M},...S&&{height:S},...D&&{minHeight:D},...O&&{maxHeight:O},...P&&{minWidth:P},...E&&{maxWidth:E},...z},...T,children:[t&&ot(yd,{variant:"subtitle1",sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,marginBottom:"4px"},children:t}),nt(If,{sx:{display:"flex",alignItems:"center"},children:["left"===j&&ot(yd,{sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,minWidth:"2em"},children:Z?K:B?A.getValues(r)??W??"":U??W??""}),ot(Jt,{name:r,control:L,defaultValue:"number"==typeof W?W:null,rules:X,render:({field:e,fieldState:{error:t}})=>nt(rt,{children:[ot(ib,{value:e.value??W??0,max:R,precision:F,disabled:N,onChange:(t,r)=>e.onChange(r),onChangeActive:l?(e,t)=>Y(t??-1):void 0,sx:{"& .MuiRating-iconEmpty":{color:d},"& .MuiRating-iconFilled":{color:h||d},marginX:l?1:0,...z},...I}),t&&ot(lg,{error:!0,sx:{marginTop:"4px"},children:"required"===t.type?a:i})]})}),"right"===j&&ot(yd,{sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,minWidth:"2em"},children:Z?K:B?A.getValues(r)??W??"":U??W??""})]})]})},Dpt=({open:t,text:o,disabled:n,sx:a,placeholderText:i,required:s=!1,requiredErrorText:c="This field is required",validationErrorText:u="Invalid format",isDisplayOnly:d=!1,displayText:p,visible:h=!0,fontSize:f,fontFamily:m,fontWeight:y,textColor:g,textAlign:v,borderColor:x,color:b,backgroundColor:w,marginLeft:k="0",marginTop:_="0",marginRight:C="0",marginBottom:M="0",paddingLeft:S="12px",paddingTop:D="14px",paddingRight:O="12px",paddingBottom:P="14px",width:E,height:j,minHeight:T,maxHeight:N,minWidth:R,maxWidth:F,configurationItemInfo:z={},name:I,sourceDataModelField:A,predefinedValue:L,...B})=>{const V=d?void 0:A,{dataModelFieldOptions:$,isLoading:H}=(e=>{const{pickList:t}=ct(),{data:o=[],refetch:n,isLoading:a}=r.useQuery({queryKey:[dGe,e],queryFn:()=>t.get(e),select:e=>{const t=e?.data;return Array.isArray(t)?t:t&&Array.isArray(t.data)?t.data:[]},enabled:Boolean(e)});return{dataModelFieldOptions:o,refetch:n,isLoading:a}})(V),q=Ut(),W=q?.control,U=!!q&&!!W&&!!I,{formState:G}=q||{},{localStateObject:K,localState:Y,setLocalStateValue:Z,isConfigurationMode:X,selectedConfigurationItemId:Q}=_C(),{stateConfig:J}=DC(),{isMLR:ee}=gC(),te=dt(),re=K||J,oe=A?re?.[A]:void 0,ne=oe?.value||("string"==typeof oe||"number"==typeof oe?oe:void 0),ae=A?te?.getDmfValue(A):void 0,ie="string"==typeof ae||"number"==typeof ae?ae:ae&&"object"==typeof ae?ae.value??ae.label??ae.id:void 0,[se,le]=e.useState(""),[ce,ue]=e.useState(!1),[de,pe]=e.useState(!1),he=e.useRef(null),fe=e.useRef(null),me=l.default.useCallback(e=>{fe.current=e,pe(null!==e)},[]),ye=X&&Q===z?.["data-configuration-id"];e.useEffect(()=>{X&&ue(!!ye)},[ye,X]);const ge=e.useMemo(()=>!(Boolean(n)||null!=L&&""!==L)&&(X?!!ye&&ce:ee?t||!1:void 0),[X,ye,ce,ee,t,n,L]),ve=e.useMemo(()=>null!=L&&""!==L,[L]),xe=e.useMemo(()=>Boolean(n)||ve,[n,ve]);e.useEffect(()=>{ve&&null!=L&&(U?q?.setValue(I,L):le(L))},[ve,L,U,q,I]);const be=e.useMemo(()=>({required:!!s&&c,validate:()=>!0}),[s,c]),we=e.useMemo(()=>($||[]).map(e=>"string"==typeof e?{id:e,label:e}:e),[$]),ke=!xe&&(X&&ye||ee&&t),_e=ke&&de&&null!==fe.current,Ce=e.useMemo(()=>{const e=(()=>{switch(v){case"center":return"center";case"right":return"flex-end";case"justify":return"space-between";default:return"flex-start"}})(),t=g||b||"rgba(0, 0, 0, 0.87)",r=g?`${g}50`:"rgba(0, 0, 0, 0.6)",o=g?`${g}30`:"rgba(0, 0, 0, 0.26)";return{typography:{fontSize:f||"1rem",fontFamily:"string"==typeof m?m:"inherit",color:t},menuItem:{fontSize:f||"1rem",fontFamily:"string"==typeof m?m:"inherit",color:t,minHeight:"48px",padding:"6px 16px",transition:"background-color 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms","&:hover":{backgroundColor:"rgba(127, 127, 127, 0.08)"},"&.Mui-selected":{backgroundColor:"rgba(25, 118, 210, 0.12)","&:hover":{backgroundColor:"rgba(25, 118, 210, 0.2)"}},"&.Mui-disabled":{color:o,backgroundColor:"rgba(127, 127, 127, 0.06)"}},inputSx:{fontSize:f,fontFamily:m,fontWeight:y,color:b,minHeight:"56px","& .MuiOutlinedInput-notchedOutline":{borderColor:x||"inherit"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:x||"inherit"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:x||"inherit"},"& .MuiSelect-select":{display:"flex",alignItems:"center",justifyContent:e,backgroundColor:w,textAlign:v,boxSizing:"border-box",paddingLeft:S,paddingTop:D,paddingRight:O,paddingBottom:P,minHeight:"1.4375em",lineHeight:"1.4375em"}},formControlSx:{marginLeft:k,marginTop:_,marginRight:C,marginBottom:M,...E&&{width:E},...j&&{height:j},...F&&{maxWidth:F},...T&&{minHeight:T},...N&&{maxHeight:N},...R?{minWidth:R}:E?{}:{minWidth:"240px"},...a},placeholderTypography:{fontSize:f||"1rem",fontFamily:"string"==typeof m?m:"inherit",color:r},placeholderColor:r}},[v,f,m,b,g,y,x,w,S,D,O,P,k,_,C,M,E,j,F,R,T,N]),Me=()=>ot(ix,{disabled:!0,value:"",sx:{...Ce.menuItem,backgroundColor:"rgba(0, 0, 0, 0.06) !important","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.06) !important"}},children:ot("em",{style:{fontStyle:"italic",...Ce.placeholderTypography},children:i||"Select an option"})});e.useEffect(()=>{if(!d||!U)return;const e=null!=ie?String(ie):void 0,t=null!=ne?String(ne):void 0,r=("string"==typeof p&&""!==p?p:void 0)??e??t;void 0!==r&&q?.setValue(I,r)},[d,U,p,ie,ne,q,I]);const Se=(e,t)=>H?nt(ix,{disabled:!0,value:"loading",sx:Ce.menuItem,children:[ot(qu,{size:20,sx:{mr:1}}),"Loading..."]}):we.map(r=>ot(ix,{value:r.id,selected:e===r.id,onClick:t?()=>t(r.id):void 0,sx:Ce.menuItem,children:r.label},r.id));if(d){const e=!E||"auto"===E,t=("string"==typeof p&&""!==p?p:void 0)??(null!=ie?String(ie):void 0)??(null!=ne?String(ne):void 0)??(i||"-");return nt("div",{style:{display:"inline-flex",flexDirection:"column",marginTop:_,marginRight:C,marginBottom:M,marginLeft:k,...E?{width:E}:{width:"fit-content"},...j&&{height:j},...T&&{minHeight:T},...N&&{maxHeight:N},...R&&{minWidth:R},...F&&{maxWidth:F}},...z,children:[o&&ot("div",{style:{marginBottom:4},children:ot(lg,{sx:{fontSize:f,fontFamily:m,fontWeight:y,color:g||"#000",marginLeft:0,textAlign:v},children:o})}),ot(yd,{sx:{fontSize:f,fontFamily:m,fontWeight:y,color:g,textAlign:v,paddingLeft:S,paddingTop:D,paddingRight:O,paddingBottom:P,backgroundColor:w,border:`1px solid ${x||"#ccc"}`,borderRadius:"4px",...e?{width:"fit-content"}:{}},children:t})]})}const De={slotProps:{paper:{elevation:3,sx:{borderRadius:"4px",backgroundColor:w||"background.paper",boxShadow:"0px 5px 5px -3px rgba(0,0,0,0.2), 0px 8px 10px 1px rgba(0,0,0,0.14), 0px 3px 14px 2px rgba(0,0,0,0.12)",...Ce.typography,..._e?{display:"none !important",visibility:"hidden !important",opacity:"0 !important",pointerEvents:"none !important",position:"absolute !important",top:"-9999px !important",left:"-9999px !important",zIndex:"-9999 !important"}:{}}}},MenuListProps:{sx:{padding:"8px 0",...w&&{backgroundColor:w},"& .MuiMenuItem-root":Ce.menuItem}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},..._e?{disableScrollLock:!0,disablePortal:!0,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,hideBackdrop:!0}:{}},Oe=(e,t)=>{t?.onChange?t.onChange(e):(le(e),A&&Z&&Z(A,{id:e}))},Pe=e=>{if(!e||""===e)return ot("em",{style:{color:Ce.placeholderColor,fontStyle:"italic"},children:i||"Select an option"});const t=we.find(t=>t.id===e);return t?t.label:e},Ee=(e,t)=>nt(kb,{...e||{},...B,...X?{open:ge}:{},...ee?{open:ge}:{},...ke?{open:!1,onClose:()=>{},onOpen:()=>{}}:{},error:t,disabled:xe,value:e?.value??se,onChange:t=>{_e||Oe(t.target.value,e)},labelId:`select-label-${I}`,input:ot(_x,{label:o}),displayEmpty:!0,renderValue:Pe,MenuProps:De,sx:{...Ce.inputSx,...E&&{width:E},...j&&{height:j},...R&&{minWidth:R},...F&&{maxWidth:F},...T&&{minHeight:T},...N&&{maxHeight:N}},inputProps:{"aria-label":o},children:[Me(),Se()]}),je=e=>{if(!_e||xe)return null;const t=e?.value??se;return ot(nh,{open:!0,anchorEl:fe.current,placement:"bottom-start",disablePortal:!0,transition:!0,sx:{zIndex:1300},children:({TransitionProps:r})=>ot(wg,{...r,timeout:150,style:{transformOrigin:"top left"},children:ot($c,{elevation:3,sx:{borderRadius:"4px",backgroundColor:w||"background.paper",minWidth:fe.current?.offsetWidth||240,width:fe.current?.offsetWidth||240,maxHeight:300,overflowY:"auto",overflowX:"hidden",scrollbarWidth:"none",msOverflowStyle:"none","&::-webkit-scrollbar":{display:"none",width:0,height:0},boxShadow:"rgba(0, 0, 0, 0.2) 0px 5px 5px -3px, rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px",...Ce.typography},children:nt(Av,{sx:{padding:"8px 0",...w&&{backgroundColor:w},"& .MuiMenuItem-root":Ce.menuItem},children:[Me(),Se(t,t=>Oe(t,e))]})})})})};return h?ot("div",{ref:he,style:{position:"relative",...E&&{width:E},...j&&{height:j},...R&&{minWidth:R},...F&&{maxWidth:F},...T&&{minHeight:T},...N&&{maxHeight:N}},...z,onClick:e=>{if(X&&z&&"onClick"in z){e.stopPropagation();z.onClick()}},children:nt(Uy,{ref:me,variant:"outlined",sx:Ce.formControlSx,error:!!G?.errors?.[I],disabled:xe,required:s,children:[ot(Fg,{id:`select-label-${I}`,shrink:!0,sx:{color:g||"rgba(0, 0, 0, 0.6)",fontSize:f,fontFamily:m,fontWeight:y,"&.Mui-focused":{color:g||"rgba(0, 0, 0, 0.6)"}},children:o}),U?ot(Jt,{name:I,control:W,rules:be,render:({field:e,fieldState:{error:t}})=>nt(rt,{children:[Ee(e,!!t),je(e)]})}):nt(rt,{children:[Ee(void 0,!1),je(void 0)]}),G?.errors?.[I]&&ot(lg,{error:!0,children:G?.errors?.[I]?.message||("required"===G?.errors?.[I]?.type?c:u)})]})}):null};const Opt=({text:e,name:t,isDisplayOnly:r=!1,required:o=!1,requiredErrorText:n="This field is required",validationErrorText:a="Invalid value",placeholderText:i="",startIcon:s,endIcon:l,borderColor:c,selectLineColor:u,lineWeight:d=1,orientation:p="horizontal",textColor:h,fontSize:f,fontFamily:m,fontWeight:y,valueFormat:g,valueDisplay:v="auto",iconSize:x,selectColor:b,iconColor:w,minValue:k=0,maxValue:_=100,step:C,labelPlacement:M="top",marginLeft:S="0",marginTop:D="0",marginRight:O="0",marginBottom:P="0",paddingLeft:E="0",paddingTop:j="0",paddingRight:T="0",paddingBottom:N="0",width:R,height:F,minHeight:z,maxHeight:I,minWidth:A,maxWidth:L,sx:B,configurationItemInfo:V,sourceDataModelField:$,disabled:H=!1,...q})=>{const W=Ut(),U=W?.control,{localStateObject:G}=_C(),{stateConfig:K}=DC(),Y=dt(),Z=G||K,X=$?Z?.[$]?.value:void 0,Q=$?Y?.getDmfValue($):void 0,J={required:!!o&&n,validate:e=>!o||null!=e||n},ee=e=>function(e,t){if(null==e)return"";switch(t){case"$0.00":return`$${e.toFixed(2)}`;case"$123":return`$${e}`;case"%0.00":return`${e.toFixed(2)}%`;case"%123":return`${e}%`;case"0.0":return e.toFixed(1);case"0.00":return e.toFixed(2);default:return e.toString()}}(e,g),te={width:"100%","& .MuiSlider-root":{width:"100%"},"& .MuiSlider-rail":{backgroundColor:c||"#ccc",..."vertical"===p?{width:`${d}px`}:{height:`${d}px`}},"& .MuiSlider-track":{backgroundColor:u||"#2196f3",border:`1px solid ${u||"#2196f3"}`,..."vertical"===p?{width:`${d}px`}:{height:`${d}px`}},"& .MuiSlider-thumb":{backgroundColor:b||"#2196f3",width:x||"16px",height:x||"16px",boxShadow:"none","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"none"}},"& .MuiSlider-valueLabel":{backgroundColor:b||"#2196f3",color:"#ffffff",borderRadius:"4px",fontSize:"12px",fontWeight:500},"& .MuiSlider-mark":{backgroundColor:c||"#ccc",width:"2px",height:"2px",borderRadius:"50%"},"& .MuiSlider-markActive":{backgroundColor:b||"#2196f3"},...B};if(r){let t=null;const r=e=>"number"!=typeof e||Number.isNaN(e)?"string"!=typeof e||Number.isNaN(Number(e))?null:Number(e):e;if(void 0!==Q)t=r(Q);else if($&&Z?.[$]){const e=Z?.[$]?.value;t=r(e)}return nt(Uy,{required:o,sx:{marginLeft:S,marginTop:D,marginRight:O,marginBottom:P,paddingLeft:E,paddingTop:j,paddingRight:T,paddingBottom:N,display:"inline-flex",...R&&{width:R},...F&&{height:F},...z&&{minHeight:z},...I&&{maxHeight:I},...A&&{minWidth:A},...L&&{maxWidth:L},...B},...V,children:[e&&ot(fg,{children:e}),nt(If,{display:"flex",flexDirection:"top"===M?"column":"row",alignItems:"center",mt:"top"===M?1:0,children:[s&&ot(If,{mr:"horizontal"===p?1:0,mb:"vertical"===p?1:0,children:ot(uGe,{iconName:s,color:w})}),ot(nw,{value:t??void 0,min:k,max:_,step:C,orientation:p,valueLabelDisplay:v,valueLabelFormat:ee,sx:te,disabled:!0,...q}),l&&ot(If,{ml:"horizontal"===p?1:0,mt:"vertical"===p?1:0,children:ot(uGe,{iconName:l,color:w})}),ot(yd,{sx:{ml:1,fontSize:f,fontFamily:m,fontWeight:y,color:h},children:t})]})]})}return nt(Uy,{required:o,sx:{marginLeft:S,marginTop:D,marginRight:O,marginBottom:P,paddingLeft:E,paddingTop:j,paddingRight:T,paddingBottom:N,display:"inline-flex",...R&&{width:R},...F&&{height:F},...z&&{minHeight:z},...I&&{maxHeight:I},...A&&{minWidth:A},...L&&{maxWidth:L},...B},...V,children:[e&&ot(fg,{children:e}),ot(Jt,{name:t||"",control:U,defaultValue:"number"==typeof X?X:k,rules:J,render:({field:e,fieldState:t})=>nt(rt,{children:[ot(nw,{...e,min:k,max:_,step:C,orientation:p,valueLabelDisplay:v,valueLabelFormat:ee,sx:te,onChange:(t,r)=>e.onChange(r),...q}),t.error&&ot(lg,{error:!0,sx:{mt:1},children:"required"===t.error.type?n:a})]})})]})},Ppt=({direction:t="up",size:r="medium",ariaLabel:o="Speed Dial",openIconName:n="plus",closeIconName:a="x",openIconColor:i="#fff",closeIconColor:s="#fff",backgroundColor:l="#1976d2",items:c=[],configurationItemInfo:u={},tooltipOpen:d=!1,tooltipPlacement:p,showBackdrop:h=!1,openOnHover:f=!1,paddingTop:m,paddingRight:y,paddingBottom:g,paddingLeft:v,marginTop:x,marginRight:b,marginBottom:w,marginLeft:k,moleculeId:_,gap:C,sx:M,...S})=>{const D=Ge(),[O,P]=e.useState(!1),{isConfigurationMode:E,onConfigurationItemClicked:j,selectedConfigurationItemId:T,onInternalNavigation:N}=_C();e.useEffect(()=>{if(!O)return;const e=e=>{"Escape"!==e.key||E||P(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[O,E]);const R=()=>P(!0),F=()=>P(!1);let z={};z=f&&!h?{onMouseEnter:R,onMouseLeave:F,onFocus:R,onBlur:F}:{onClick:e=>{P(e=>!e)}};const I={bgcolor:l,paddingTop:m,paddingRight:y,paddingBottom:g,paddingLeft:v,marginTop:x,marginRight:b,marginBottom:w,marginLeft:k},A=O||E&&(T===_||c.some(e=>e.id===T));return nt("div",{role:"presentation",children:[h&&ot(Sf,{open:O}),ot(mw,{ariaLabel:o,direction:t,icon:ot(Lw,{icon:ot(uGe,{iconName:n,color:i,size:24}),openIcon:ot(uGe,{iconName:a,color:s,size:24})}),open:A,onOpen:f&&!h?R:void 0,onClose:f&&!h?F:void 0,FabProps:{color:"primary",sx:I,size:r,gap:C},slotProps:{fab:{"data-testid":"speed-dial-fab","aria-label":o}},sx:{"& .MuiSpeedDial-fab":{backgroundColor:l,...I},"& .MuiSpeedDial-actions":{gap:C||8},"& .MuiSpeedDialIcon-icon":{fontSize:"small"===r?"18px":"large"===r?"24px":"20px",color:"inherit"},"& .MuiSpeedDialIcon-openIcon":{fontSize:"small"===r?"18px":"large"===r?"24px":"20px",color:"inherit"},"& .MuiSpeedDialAction-fab":{backgroundColor:"#fff",color:"#757575","&:hover":{backgroundColor:"#f5f5f5"}},"& .MuiSpeedDialAction-staticTooltip":{backgroundColor:"rgba(97, 97, 97, 0.9)",color:"#fff",fontSize:"12px",padding:"4px 8px",borderRadius:"4px"},"& .MuiSpeedDialAction-staticTooltipLabel":{fontSize:"12px",fontWeight:500},...M},...z,...u,...S,children:c.map(e=>{const{text:t,link:o}=e.properties??{},{iconName:n="plus",disabled:a=!1,iconColor:i="#757575",tooltipText:s,backgroundColor:l="#fff"}=e.config?.props??{},c=String(t?.text||s||"Action"),u=E&&T===e.id,h={entityId:e.id,entity:"molecule_item",entityType:"speed_dial_action_item"},f=E?{onClick:e=>{e.stopPropagation(),j?.(h,!1)},onDoubleClick:e=>{e.stopPropagation(),j?.(h,!0)},"data-organism-id":e.id,css:xtt({theme:D,selected:u})}:{};return ot(Nw,{icon:ot(uGe,{iconName:n,color:i,size:24}),tooltipOpen:d,tooltipTitle:c,tooltipPlacement:p,FabProps:{sx:{color:i,backgroundColor:l},size:r,disabled:a,"aria-label":c,onClick:e=>{e.stopPropagation(),o?(x7e(o)?N?.({link:o.internalLink??""}):g7e(o.externalLink),P(!1)):P(!1)},...f}},e.id)})})]})},Ept=({items:e,gap:t,stepGap:r,isMobile:o=!1,iconSize:n="24px",orientation:a="horizontal",activeStep:i=0,lineColor:s,lineWidth:l,lineRadius:c,marginTop:u="0",marginRight:d="0",marginBottom:p="0",marginLeft:h="0",paddingTop:f="0",paddingRight:m="0",paddingBottom:y="0",paddingLeft:g="0",borderRadius:v="0",configurationItemInfo:x,backgroundColor:b="transparent",sx:w,...k})=>{const _=Ge(),C=o?"vertical":a,{isConfigurationMode:M,onConfigurationItemClicked:S,selectedConfigurationItemId:D}=_C();return ot(Ok,{sx:{gap:t,width:"100%",overflow:"hidden",marginTop:u,marginRight:d,marginBottom:p,marginLeft:h,paddingTop:f,paddingRight:m,paddingBottom:y,paddingLeft:g,borderRadius:v,backgroundColor:b,"& .MuiStep-root":{padding:"8px"},"& .MuiStepLabel-root":{gap:r,alignItems:"flex-start"},"& .MuiStepLabel-label":{fontSize:"inherit",fontWeight:"inherit",fontFamily:"inherit",color:"inherit"},"& .MuiStepConnector-root":{flex:"1 1 auto"},"& .MuiStepConnector-line":{borderColor:s,borderWidth:l,borderRadius:c},"& .MuiStepConnector-vertical":{width:n||"24px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"4px"},"& .MuiStepConnector-horizontal":{marginLeft:"8px",marginRight:"8px"},"& .MuiStepContent-root":{margin:0,padding:0,marginTop:"4px",borderLeft:"none"},"& .MuiTypography-root":{fontSize:"inherit",fontWeight:"inherit",fontFamily:"inherit",color:"inherit"},...w},activeStep:i,orientation:C,connector:ot(vk,{sx:{[`&.${fk.vertical}`]:{width:n||"24px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"4px"},[`&.${fk.vertical} .${fk.line}`]:{borderColor:s,borderWidth:l,borderRadius:c},[`&.${fk.horizontal} .${fk.line}`]:{borderColor:s,borderWidth:l,borderRadius:c}}}),...x,...k,children:e.map((e,t)=>{const o=D===e.id,a=t===i,s={entityId:e.id,entity:"molecule_item",entityType:"stepper_item"},l=M?{onClick:e=>{M&&(e.stopPropagation(),S?.(s,!1))},onDoubleClick:e=>{M&&(e.stopPropagation(),S?.(s,!0))},"data-organism-id":e.id,css:xtt({theme:_,selected:o})}:{},c=e.color||(a?"#000":"#555");return ot(Yw,{...l,children:nt(pk,{sx:{gap:r,"& .MuiStepLabel-iconContainer":{marginRight:"8px",display:"flex",alignItems:"center",justifyContent:"center"},"& .MuiStepLabel-labelContainer":{display:"flex",flexDirection:"column",alignItems:"flex-start"}},icon:e?.iconName?ot(uGe,{size:n,color:e.iconColor||"#000",iconName:e.iconName,borderRadius:e?.iconBorderRadius||0,backgroundColor:e.iconBackgroundColor||"transparent"}):void 0,children:[ot(yd,{variant:"body1",sx:{padding:"4px",fontSize:e.fontSize||"inherit",fontWeight:e.fontWeight||"normal",fontFamily:e.fontFamily||"inherit",color:c,borderRadius:e.borderRadius||"0",display:"inline-block","&.MuiTypography-body1":{fontSize:"inherit",fontWeight:"inherit",fontFamily:"inherit",color:"inherit"}},children:e.title}),e.subText&&ot(_k,{sx:{margin:0,padding:0,marginTop:"4px",borderLeft:"none","& .MuiStepContent-root":{margin:0,padding:0,marginTop:"4px",borderLeft:"none"}},transitionDuration:{enter:400,exit:400},children:ot(yd,{variant:"body2",sx:{padding:"4px",fontSize:e.subTextFontSize||"inherit",fontWeight:e.subTextFontWeight||"normal",fontFamily:e.subTextFontFamily||"inherit",color:e.subTextColor||"#666",borderRadius:e.borderRadius||"0",display:"inline-block",..."horizontal"===C&&{maxWidth:"300px"},"&.MuiTypography-body2":{fontSize:"inherit",fontWeight:"inherit",fontFamily:"inherit",color:"inherit"}},children:e.subText})})]})},e.id)})})},jpt=nl(zk)(({thumbColor:e="#ff0000",thumbCheckedColor:t="#00ff00",trackColor:r="#0000ff",disabledThumbColor:o="#9e9e9e",sx:n})=>({"& .MuiSwitch-thumb":{backgroundColor:e,width:20,height:20},"& .MuiSwitch-switchBase.Mui-checked .MuiSwitch-thumb":{backgroundColor:t},"& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track":{backgroundColor:r,opacity:1,backgroundImage:"none"},"& .MuiSwitch-track":{backgroundColor:r,opacity:1,backgroundImage:"none"},"&.Mui-disabled .MuiSwitch-thumb":{backgroundColor:o},"&.Mui-disabled .MuiSwitch-track":{backgroundColor:r,opacity:1,backgroundImage:"none"},"& .MuiSwitch-switchBase":{padding:"9px","&.Mui-checked":{transform:"translateX(16px)"}},"& .MuiSwitch-colorPrimary":{"&.Mui-checked":{color:t}},"& .MuiSwitch-colorSecondary":{"&.Mui-checked":{color:t}},...n})),Tpt=({isDisplayOnly:t=!1,required:r=!1,requiredErrorText:o="This field is required",validationErrorText:n="Invalid value",text:a="",thumbColor:i,thumbCheckedColor:s,trackColor:l,disabledThumbColor:c,labelPlacement:u="top",marginLeft:d="0",marginTop:p="0",marginRight:h="0",marginBottom:f="0",paddingLeft:m="0",paddingTop:y="0",paddingRight:g="0",paddingBottom:v="0",width:x,height:b,minHeight:w,maxHeight:k,minWidth:_,maxWidth:C,name:M,sourceDataModelField:S,disabled:D=!1,sx:O,configurationItemInfo:P,...E})=>{const j=Ut(),T=j?.control,N=!!T&&!!M,R={required:!!r&&o,validate:e=>!(r&&!e)||o},{localStateObject:F}=_C(),{stateConfig:z}=DC(),I=dt(),A=F||z,L=S?A?.[S]?.value:void 0,[B,V]=e.useState(!1);if(t){const e=S?I?.getDmfValue(S):void 0;let t=!1;return t=void 0!==e?"true"===String(e).toLowerCase()||!0===e:N?!!j.watch(M):!!L,nt(Uy,{required:r,sx:{marginLeft:d,marginTop:p,marginRight:h,marginBottom:f,paddingLeft:m,paddingTop:y,paddingRight:g,paddingBottom:v,display:"inline-flex",...x&&{width:x},...b&&{height:b},...w&&{minHeight:w},...k&&{maxHeight:k},..._&&{minWidth:_},...C&&{maxWidth:C},"& .MuiFormLabel-root":{fontSize:"14px",fontWeight:500,color:"#333",marginBottom:"8px"},"& .MuiSwitch-root":{marginTop:"8px"},"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-thumb":{width:"18px",height:"18px",borderRadius:"9px"},"& .MuiSwitch-track":{borderRadius:"9px",height:"14px"},"& .MuiTypography-root":{marginLeft:"8px",fontSize:"14px",fontWeight:500,color:"#333"},...O},...P,children:[a&&ot(fg,{component:"legend",children:a}),nt(If,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:[ot(jpt,{disabled:!0,checked:t,thumbColor:i,thumbCheckedColor:s,trackColor:l,disabledThumbColor:c,sx:{"& .MuiSwitch-switchBase":{pointerEvents:"none"}},...E}),ot(yd,{sx:{ml:1},children:t?"ON":"OFF"})]})]})}return nt(Uy,{required:r,sx:{marginLeft:d,marginTop:p,marginRight:h,marginBottom:f,paddingLeft:m,paddingTop:y,paddingRight:g,paddingBottom:v,display:"inline-flex",...x&&{width:x},...b&&{height:b},...w&&{minHeight:w},...k&&{maxHeight:k},..._&&{minWidth:_},...C&&{maxWidth:C},"& .MuiFormLabel-root":{fontSize:"14px",fontWeight:500,color:"#333",marginBottom:"8px"},"& .MuiSwitch-root":{marginTop:"8px"},"& .MuiSwitch-switchBase":{padding:"9px"},"& .MuiSwitch-thumb":{width:"18px",height:"18px",borderRadius:"9px"},"& .MuiSwitch-track":{borderRadius:"9px",height:"14px"},"& .MuiFormHelperText-root":{marginTop:"4px",fontSize:"12px",color:"#d32f2f"},...O},...P,children:[a&&ot(fg,{component:"legend",children:a}),N?ot(Jt,{name:M,rules:R,control:T,defaultValue:!1,render:({field:e,fieldState:t})=>nt(rt,{children:[ot(If,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:ot(jpt,{checked:!!e.value,disabled:D,onChange:(t,r)=>e.onChange(r),thumbColor:i,thumbCheckedColor:s,trackColor:l,disabledThumbColor:c,sx:{"& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"rgba(25, 118, 210, 0.04)"}}},...E})}),t.error&&ot(lg,{error:!0,sx:{marginTop:"4px"},children:"required"===t.error.type?o:n})]})}):ot(If,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:ot(jpt,{checked:B,disabled:D,onChange:(e,t)=>{V(t)},thumbColor:i,thumbCheckedColor:s,trackColor:l,disabledThumbColor:c,sx:{"& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"rgba(25, 118, 210, 0.04)"}}},...E})})]})},Npt=({items:t,onTabChange:r,activeTabKey:o,isMobile:n=!1,marginTop:a,marginRight:i,marginBottom:s,marginLeft:l,paddingTop:c,paddingRight:u,paddingBottom:d,paddingLeft:p,buttonPaddingTop:h,buttonPaddingRight:f,buttonPaddingBottom:m,buttonPaddingLeft:y,width:g,height:v,backgroundColor:x,borderRadius:b,elevation:w=1,gap:k,indicatorVisible:_=!0,indicatorColor:C,lineWidth:M="2px",orientation:S="horizontal",activeTextColor:D="#1976d2",inactiveTextColor:O="#000",fontSize:P,fontWeight:E,fontFamily:j,wrapText:T,textAlign:N,iconName:R,iconColor:F,iconSize:z,iconPlacement:I="left",hoverTextColor:A,itemBorder:L,itemBorderRadius:B,itemBackgroundColor:V,itemSelectedBackgroundColor:$,itemHoverBackgroundColor:H,selectedItemElevation:q=0,itemDisableRipple:W,configurationItemInfo:U,sx:G})=>{const K=Ge(),{isConfigurationMode:Y,onConfigurationItemClicked:Z,selectedConfigurationItemId:X}=_C(),[Q,J]=e.useState(null),ee=e=>J(e.currentTarget),te=()=>J(null),re={marginTop:a,marginRight:i,marginBottom:s,marginLeft:l,paddingTop:c,paddingRight:u,paddingBottom:d,paddingLeft:p,width:g,height:v,backgroundColor:x,borderRadius:b,display:"flex",overflow:"visible !important"},oe=e=>{const t=e?D:O,r=e&&$||V;return{color:t,fontSize:P,fontWeight:E,fontFamily:j,textAlign:N,whiteSpace:T?"normal":"nowrap",border:L,borderRadius:B,backgroundColor:r,boxShadow:e?K.shadows[q]:void 0,paddingTop:h,paddingRight:f,paddingBottom:m,paddingLeft:y,"&:hover":{color:A||t,backgroundColor:H||r}}},ne=e=>{r?.({newTabKey:e.tabKey,link:e.link})},ae=e=>{if(!Y)return{};const t=e.id===X,r={entityId:e.id,entity:"molecule_item",entityType:"tabs_item"};return{onClick:e=>{e.stopPropagation(),Z?.(r,!1)},onDoubleClick:e=>{e.stopPropagation(),Z?.(r,!0)},"data-organism-id":e.id,css:xtt({theme:K,selected:t})}},ie=e=>{const t=e.tabKey===o,r=oe(t);return nt(ix,{onClick:()=>{ne(e),te()},sx:{...r,display:"flex",alignItems:"center"},...ae(e),children:[e.iconName&&ot(uGe,{iconName:e.iconName,sx:{fontSize:P,color:t?D:O,mr:1}}),ot(If,{component:"span",children:e.label})]},e.id)};if(n)return nt($c,{elevation:w,style:re,sx:G,...U,children:[ot(Zu,{onClick:ee,children:ot(uGe,{size:z,color:F,iconName:R})}),ot(tx,{anchorEl:Q,open:Boolean(Q),onClose:te,children:t.map(ie)})]});const se=t.findIndex(e=>e.tabKey===o);return ot($c,{elevation:w,style:re,sx:G,...U,children:ot($_,{value:se<0?0:se,onChange:(e,r)=>Y?null:ne(t[r]),orientation:S,sx:{overflow:"visible","& .MuiTabs-flexContainer":{gap:k}},TabIndicatorProps:{style:_?{height:M,borderRadius:b,backgroundColor:C||D}:{display:"none"}},children:t.map(e=>{const t=e.tabKey===o,r={...oe(t),"&.Mui-selected":{color:t?D:O}};return ot(Vk,{label:e.label,disableRipple:W,sx:{...r,textTransform:"none"},onClick:()=>ne(e),iconPosition:"right"===I?"end":"start",icon:e.iconName?ot(uGe,{iconName:e.iconName,sx:{fontSize:P,color:t?D:O}}):void 0,...ae(e)},e.id)})})})},Rpt=e=>{if(!e)return null;if(e instanceof Date)return Rrt(e)?e:null;if("object"==typeof e&&null!==e&&"function"==typeof e.toDate){const t=e.toDate();return t instanceof Date&&Rrt(t)?t:null}if("string"==typeof e){const t=e.trim();if(!t)return null;const r=t.match(/(\d{1,2}:\d{2}(?::\d{2})?)/),o=r?r[1]:t,n=new Date,a=["HH:mm:ss","H:mm:ss","HH:mm","H:mm","hh:mm a","h:mm a","hh a","h a","HHmm","Hmm","HH","H"];for(const e of a){const t=Bot(o,e,n);if(Rrt(t))return t}return null}return null},Fpt=({name:t,text:r,isDisplayOnly:o=!1,sourceDataModelField:n,configurationItemInfo:a={},placeholderText:i,displayFormat:s="HH:mm",required:l=!1,requiredErrorText:c="This field is required",validationErrorText:u,sx:d,width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g,...v})=>{const x=Ut(),b=x?.control,w=!!b&&!!t,{localStateObject:k}=_C(),{stateConfig:_}=DC(),C=dt(),M=k||_,S=n?M?.[n]?.value:void 0,D=Rpt(S);e.useRef();const[O,P]=e.useState(D);if(o){const e=n?C?.getDmfValue(n):void 0,o=void 0!==e?e:w?x.watch(t):S,l=Rpt(o),c=l&&Rrt(l)?Brt(l,s):"";return nt(If,{...a,sx:{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g,"& .MuiFormHelperText-root":{marginBottom:"4px"},"& .MuiTypography-root":{border:"1px solid #ced4da",borderRadius:"4px",padding:"8px",minWidth:"100px"},...d},children:[r&&ot(lg,{children:r}),ot(yd,{children:c||i||"-"})]})}return ot(If,w?{...a,sx:{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g,"& .MuiTimePicker-root":{width:"100%"},"& .MuiTextField-root":{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g},"& .MuiInputBase-root":{fontSize:"14px"},"& .MuiInputLabel-root":{fontSize:"14px"},"& .MuiFormHelperText-root":{fontSize:"12px"},"& .MuiSvgIcon-root":{fontSize:"20px"},...d},children:ot(Jt,{name:t,control:b,defaultValue:D??null,rules:{required:!!l&&(c||"This field is required"),validate:e=>{if(null==e||""===e)return!0;const t=Rpt(e);return t&&Rrt(t)||u||"Invalid time"}},render:({field:{onChange:e,value:t},fieldState:o})=>ot(ddt,{...v,enableAccessibleFieldDOMStructure:!1,value:Rpt(t),onChange:t=>{const r=Rpt(t);e(r?Brt(r,"HH:mm"):null)},slots:{textField:G_},slotProps:{textField:{label:r,placeholder:i,error:!!o.error,helperText:o.error?.message,onMouseDown:e=>e.stopPropagation(),sx:{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g}}}})})}:{...a,sx:{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g,"& .MuiTimePicker-root":{width:"100%"},"& .MuiTextField-root":{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g},"& .MuiInputBase-root":{fontSize:"14px"},"& .MuiInputLabel-root":{fontSize:"14px"},"& .MuiFormHelperText-root":{fontSize:"12px"},"& .MuiSvgIcon-root":{fontSize:"20px"},...d},children:ot(ddt,{...v,enableAccessibleFieldDOMStructure:!1,value:O,onChange:e=>P(Rpt(e)),slots:{textField:G_},slotProps:{textField:{label:r,placeholder:i,onMouseDown:e=>e.stopPropagation(),sx:{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g}}}})})},zpt=({src:t,poster:r,controls:o=!1,loop:n=!1,autoplay:a=!1,raised:i=!1,alt:s="",height:l="100%",width:c="100%",borderRadius:u="0",margin:d=0,padding:p=0,moleculeId:h,enableCoverImage:f,configurationItemInfo:m,marginTop:y="0px",marginRight:g="0px",marginBottom:v="0px",marginLeft:x="0px",paddingTop:b="0px",paddingRight:w="0px",paddingBottom:k="0px",paddingLeft:_="0px",sx:C})=>{const[M,S]=e.useState(!1),{onStateChange:D}=OC(),O=()=>{D({id:h,type:"started"})};return ot(Ipt,{id:h,raised:i,onClick:O,sx:{borderRadius:`${u}px`,margin:d,padding:p,marginTop:y,marginRight:g,marginBottom:v,marginLeft:x,paddingTop:b,paddingRight:w,paddingBottom:k,paddingLeft:_,"& .MuiCard-root":{display:"inline-block",overflow:"hidden"},"& .MuiCardMedia-root":{height:l,width:c,objectFit:"cover"},"& .MuiCardMedia-media":{height:"100%",width:"100%",objectFit:"cover"},...C},...m,children:M?ot(yd,{component:"div",sx:{height:l,width:c,display:"flex",justifyContent:"center",alignItems:"center",fontSize:"16px",color:"gray",textAlign:"center"},children:s||"Video unavailable"}):ot(sm,{component:"video",src:t,poster:f?r:void 0,controls:o,loop:n,autoPlay:a,muted:a,"aria-label":s,sx:{height:l,width:c,objectFit:"cover","& .MuiCardMedia-media":{height:"100%",width:"100%",objectFit:"cover"}},onPlay:O,onEnded:()=>{D({id:h,type:"completed"})},onError:()=>{S(!0)}})})},Ipt=xo(tm)`
1026
1026
  display: inline-block;
1027
1027
  overflow: hidden;
1028
1028
  `,Apt=({children:e,additionalInfo:t})=>{try{return ot(rt,{children:e})}catch(r){return console.error(`Render error in SafeRender - ${t} :`,r),ot("div",{style:{color:"red",padding:24},children:"Render Error"})}};function Lpt(e,t,r,o){const n={...e};return 0===r.length?{...e,...t}:(t&&o&&r.forEach(e=>{void 0!==t[e]&&(n[e]=t[e])}),n)}function Bpt(e,t,r=!1){return t&&r?an(e,t):e}const Vpt=({id:t,type:r,name:o,form:n,config:a,formData:i,isMobile:s,children:l,tabsProps:c,properties:u,moleculeLibraryId:d,organismLibraryMoleculeId:p})=>{const h=Ge(),f=yC("xs"),m=s||f,{formId:y,isPreview:g=!1,validations:v,submitHandler:x,isConfigurationMode:b,onConfigurationItemClicked:w,selectedConfigurationItemId:k,currentStyleProperties:_,currentContentProperties:C,onInternalNavigation:M,organismMetadata:S,organismInfo:D,localState:O}=_C(),{stateConfig:P}=DC(),E=P,j=a?.props?.dataCaptureName||u?.dataCapture?.dataCaptureName||t,T=u?.dataCapture?.sourceDataModelFieldId,N=u?.dataCapture?.predefinedValue,R=k===t,{isStateDisabled:F,isStateVisible:z}=(({stateListenerId:e})=>{const{localStateObject:t}=_C(),{stateConfig:r}=DC(),o=t||r;let n=!0,a=!1;if(!e)return{isStateDisabled:a,isStateVisible:n};const i=o?.[e]||{},{visible:s=!0,disabled:l=!1}=i||{};return e in o&&(n=Boolean(s),a=Boolean(l)),{isStateDisabled:a,isStateVisible:n,stateValue:i}})({stateListenerId:t}),I=e.useMemo(()=>({entityType:r,entity:"molecule",entityName:o,entityId:t,organismLibraryMoleculeId:p,libraryEntityId:d}),[r,o,t,p,d]),A=e.useCallback(e=>{e?.stopPropagation(),w(I,!1)},[w,I]),L=e.useCallback(e=>{e?.stopPropagation(),w(I,!0)},[w,I]),B=b?{onClick:A,onDoubleClick:L,"data-configuration-id":t,css:xtt({theme:h,selected:R})}:{},V=b||F;if(!z)return null;return(()=>{switch(r){case"simple_text":{const e={text:u?.text},r=["text"],{text:o}=Lpt(e,C,r,R),n=Bpt(a?.props,_,R);return ot(Edt,{...n,text:o?.text||"",htmlElementId:t,configurationsItemInfo:B})}case"text":{const e={text:u?.text},r=Object.keys(e),{text:o}=Lpt(e,C,r,R),n=Bpt(a?.props,_,R);return ot(Pdt,{...o,...n,htmlElementId:t,configurationItemInfo:B})}case"consent":{const e=Lpt(u,C,[],R),r=Bpt(a?.props,_,R)||{};return ot(jtt,{...r,htmlElementId:t,properties:e,configurationItemInfo:B})}case"signup_password_fields":{const e={text:u?.text,subText:u?.subText,placeholderText:u?.placeholderText,subPlaceholderText:u?.subPlaceholderText,validationText:u?.validationText},r=Object.keys(e),o=Lpt(e,C,r,R),{state:n,gap:i,...s}=Bpt(a?.props,_,R);return ot(bpt,{gap:i,inputProps:s,validations:v||[],htmlElementId:t,validationState:n,overridesProperties:o,configurationItemInfo:B})}case"stepper":{const e=Bpt(a?.props,_,R),r=l?.map(e=>{const t=k===e.id,{properties:r,config:o,...n}=e||{},a={title:r?.title,subText:r?.subText},i=Object.keys(a),{title:s,subText:l}=Lpt(a,C,i,t);return{...n,...Bpt(o?.props,_,t),title:s?.text||"",subText:l?.text||""}});return ot(Ept,{...e,items:r||[],isMobile:m,moleculeId:t,configurationItemInfo:B})}case"checklist":{const e=Bpt(a?.props,_,R)||{},r=l?.map(e=>{const t=k===e.id,{properties:r,config:o,...n}=e||{};switch(e.type){case"checklist_item":{const a={label:r?.label,objectState:r?.objectState},i=Object.keys(a),s=Lpt(a,C,i,t),l=Bpt(o?.props,_,t)||{},c=s.label?.text||"",u=!!s.objectState?.pmiObjectId;return{...n,...l,type:"checklist_item",label:c,textColor:l.textColor||"#000",fontSize:l.fontSize||"14px",fontFamily:l.fontFamily||"inherit",fontWeight:l.fontWeight||"normal",textAlign:l.textAlign||"left",isSystemDriven:u,disabled:u,interacted:E?.[e.id]?.interacted||"unchecked"}}case"divider_item":{const e=Bpt(o?.props,_,t)||{};return{...n,...e,type:"divider_item"}}case"text_item":{const e={text:r?.text},a=Object.keys(e),i=Lpt(e,C,a,t),s=Bpt(o?.props,_,t)||{},l=i.text?.text||"";return{...n,...s,type:"text_item",text:l}}case"rich_text_item":{const e={text:r?.text},a=Object.keys(e),i=Lpt(e,C,a,t),s=Bpt(o?.props,_,t)||{},l=i.text?.text||k4e;return{...n,...s,type:"rich_text_item",text:l}}default:return{...n,type:e.type}}});return ot(Ptt,{...e,items:r||[],moleculeId:t,configurationItemInfo:B})}case"accordion":{const e=Bpt(a?.props,_,R),r=l?.map(e=>{const t=k===e.id,{properties:r,config:o,...n}=e||{},a={text:r?.text,subText:r?.subText,bodyText:r?.bodyText},i=Object.keys(a),{text:s,subText:l,bodyText:c}=Lpt(a,C,i,t);return{...n,...Bpt(o?.props,_,t),text:s?.text||"",subText:l?.text||"",bodyText:c?.text||""}});return ot(wtt,{...e,items:r||[],moleculeId:t,configurationItemInfo:B})}case"menu":{const e={text:u?.text,disabled:u?.disabled},r=Object.keys(e),{text:o,disabled:n}=Lpt(e,C,r,R),i=Bpt(a?.props,_,R),s=l?.map(e=>{const t=k===e.id,{properties:r,config:o,...n}=e||{},a={disabled:r&&"disabled"in r?r.disabled:void 0,text:r&&"text"in r?r.text:void 0,link:r&&"link"in r?r.link:void 0},i=Object.keys(a),{text:s,disabled:l,link:c}=Lpt(a,C,i,t),u=Bpt(o?.props,_,t);return{...n,...u,disabled:E?.[e.id]?E?.[e.id]?.disabled:l?.value||u?.disabled||!1,text:s?.text||"Menu Item",link:c}});return ot(fpt,{...i,items:s||[],moleculeId:t,buttonText:o?.text||"Open Menu",configurationItemInfo:B,buttonDisabled:E?.[t]?E?.[t]?.disabled:n?.value||i?.disabled||!1})}case"tabs":{const e=Bpt(a?.props,_,R),r=l?.map(e=>{const t=k===e.id,{properties:r,config:o}=e||{},n={label:r?.label,link:r?.link},a=Object.keys(n),{label:i,link:s}=Lpt(n,C,a,t);return{...Bpt(o?.props,_,t),id:e.id,tabKey:x7e(s)?h7e(l7e,s?.internalLink):void 0,label:i?.text||"",link:s}}),o=c?.tabs.map(e=>{const{text:t,...r}=e;return{...r,label:t||""}}),n=Boolean(e?.isTabsSystemDerived),i=n?o:r,s=c?.activeTabKey||i?.[0]?.tabKey||"";return ot(Npt,{...e,items:i||[],isMobile:m,moleculeId:t,activeTabKey:s,configurationItemInfo:B,onTabChange:b?void 0:({newTabKey:e,link:t})=>{n?c?.onTabChange?.(e):x7e(t)?M?.({link:t?.internalLink||""}):g7e(t?.externalLink)}})}case"divider":{const e=Bpt(a?.props,_,R);return ot(Sdt,{moleculeId:t,configurationItemInfo:B,...e})}case"link":{const e={text:u?.text,link:u?.link},r=Object.keys(e),{text:o,link:n}=Lpt(e,C,r,R),i=n,s=Bpt(a?.props,_,R);return ot($dt,{moleculeId:t,...s,link:i,type:i?.type,src:V?void 0:k7e(i,g)||"",text:o?.text||"",disabled:s?.disabled||F,configurationItemInfo:B})}case"data_driven_link":{const e={text:u?.text},r=Object.keys(e),{text:o}=Lpt(e,C,r,R),n=Bpt(a?.props,_,R);return ot($dt,{moleculeId:t,...n,text:o?.text||"",sourceDataModelField:T,disabled:n?.disabled||F,configurationItemInfo:B})}case"video":{const e={video:u?.video,coverImage:u?.coverImage},r=Object.keys(e),{video:o,coverImage:n}=Lpt(e,C,r,R),i=Bpt(a?.props,_,R);return ot(zpt,{...i,moleculeId:t,poster:n?.imageFile?.url,src:o?.videoSource??o?.videoFile?.url??"",configurationItemInfo:B})}case"badge":{const e=Bpt(a?.props,_,R);return ot(Ctt,{...e,configurationItemInfo:B})}case"alert":{const e={text:u?.text,subText:u?.subText},t=Object.keys(e),{text:r,subText:o}=Lpt(e,C,t,R),n=Bpt(a?.props,_,R);return ot(ktt,{text:r?.text||"",subText:o?.text||"",...n,configurationItemInfo:B})}case"chip":{const e={text:u?.text},t=Object.keys(e),{text:r}=Lpt(e,C,t,R),o=Bpt(a?.props,_,R);return ot(Ett,{text:r?.text||"",...o,configurationItemInfo:B})}case"email_display_field":case"email_input_field":{const e={text:u?.text,placeholderText:u?.placeholderText,required:u?.required,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},t=Object.keys(e),{text:o,placeholderText:n,required:i,requiredErrorText:s,validationErrorText:l}=Lpt(e,C,t,R),c=Bpt(a?.props,_,R);return ot(Vdt,{name:j,text:o?.text||"",placeholderText:n?.text||"",sourceDataModelField:T,required:i?.value,isDisplayOnly:"email_display_field"===r,requiredErrorText:s?.text,validationErrorText:l?.text,...c,configurationItemInfo:B})}case"phone_number_display_field":case"phone_number_input_field":{const e={text:u?.text,placeholderText:u?.placeholderText,required:u?.required,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},t=Object.keys(e),{text:o,placeholderText:n,required:i,requiredErrorText:s,validationErrorText:l}=Lpt(e,C,t,R),c=Bpt(a?.props,_,R);return ot(Mpt,{name:j,text:o?.text||"",required:i?.value,requiredErrorText:s?.text,validationErrorText:l?.text,placeholderText:n?.text||"",sourceDataModelField:T,isDisplayOnly:"phone_number_display_field"===r,...c,configurationItemInfo:B})}case"numeric_display_field":case"numeric_input_field":{const e={text:u?.text,placeholderText:u?.placeholderText,required:u?.required,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},t=Object.keys(e),{text:o,placeholderText:n,required:i,requiredErrorText:s,validationErrorText:l}=Lpt(e,C,t,R),c=Bpt(a?.props,_,R);return ot(ypt,{name:j,text:o?.text||"",required:i?.value,isDisplayOnly:"numeric_display_field"===r,requiredErrorText:s?.text,validationErrorText:l?.text,placeholderText:n?.text||"",sourceDataModelField:T,...c,configurationItemInfo:B})}case"currency_display_field":case"currency_input_field":{const e={text:u?.text,placeholderText:u?.placeholderText,required:u?.required,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},t=Object.keys(e),{text:o,placeholderText:n,required:i,requiredErrorText:s,validationErrorText:l}=Lpt(e,C,t,R),c=Bpt(a?.props,_,R);return ot(Rtt,{name:j,text:o?.text||"",required:i?.value,isDisplayOnly:"currency_display_field"===r,requiredErrorText:s?.text,validationErrorText:l?.text,placeholderText:n?.text||"",sourceDataModelField:T,...c,configurationItemInfo:B})}case"basic_text_display_field":case"basic_text_field":{const e={text:u?.text,placeholderText:u?.placeholderText,required:u?.required,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},t=Object.keys(e),{text:o,placeholderText:n,required:i,requiredErrorText:s,validationErrorText:l}=Lpt(e,C,t,R),c=Bpt(a?.props,_,R);return ot(Stt,{name:j,text:o?.text||"",required:i?.value,isDisplayOnly:"basic_text_display_field"===r,requiredErrorText:s?.text,validationErrorText:l?.text,placeholderText:n?.text||"",sourceDataModelField:T,...c,configurationItemInfo:B})}case"rating_display_field":case"rating":{const e={text:u?.text,dataCapture:u?.dataCapture,required:u?.required,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},t=Object.keys(e),{text:o,required:n,requiredErrorText:i,validationErrorText:s}=Lpt(e,C,t,R),l=Bpt(a?.props,_,R);return ot(Spt,{name:j,text:o?.text||"",required:n?.value,requiredErrorText:i?.text,validationErrorText:s?.text,sourceDataModelField:T,isDisplayOnly:"rating_display_field"===r,...l,configurationItemInfo:B})}case"switch_display_field":case"switch":{const e={text:u?.text,required:u?.required,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},o=Object.keys(e),{text:n,required:i,requiredErrorText:s,validationErrorText:l}=Lpt(e,C,o,R),c=Bpt(a?.props,_,R);return ot(Tpt,{name:j,moleculeId:t,text:n?.text||"",required:i?.value,isDisplayOnly:"switch_display_field"===r,requiredErrorText:s?.text,validationErrorText:l?.text,sourceDataModelField:T,...c,configurationItemInfo:B})}case"slider_display_field":case"slider":{const e={text:u?.text,required:u?.required,placeholderText:u?.placeholderText,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},t=Object.keys(e),{text:o,required:n,requiredErrorText:i,validationErrorText:s,placeholderText:l}=Lpt(e,C,t,R),c=Bpt(a?.props,_,R);return ot(Opt,{name:j,text:o?.text||"",required:n?.value,isDisplayOnly:"slider_display_field"===r,requiredErrorText:i?.text,validationErrorText:s?.text,placeholderText:l?.text,sourceDataModelField:T,...c,configurationItemInfo:B})}case"date_display_field":case"date_picker":{const e={text:u?.text,required:u?.required,placeholderText:u?.placeholderText,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},o=Object.keys(e),{text:n,required:i,placeholderText:s,requiredErrorText:l,validationErrorText:c}=Lpt(e,C,o,R),d=Bpt(a?.props,_,R);return ot(Knt,{dateAdapter:Got,children:ot(Mdt,{moleculeId:t,name:j,text:n?.text||"",required:i?.value,placeholderText:s?.text||"",isDisplayOnly:"date_display_field"===r,requiredErrorText:l?.text,validationErrorText:c?.text,sourceDataModelField:T,...d,configurationItemInfo:B})})}case"time_picker_display":case"time_picker":{const e={text:u?.text,placeholderText:u?.placeholderText,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText,required:u?.required},t=Object.keys(e),{text:o,placeholderText:n,requiredErrorText:i,validationErrorText:s,required:l}=Lpt(e,C,t,R),c=Bpt(a?.props,_,R);return ot(Knt,{dateAdapter:Got,children:ot(Fpt,{...c,name:j,text:o?.text||"",placeholderText:n?.text||"",required:l?.value,requiredErrorText:i?.text,validationErrorText:s?.text,isDisplayOnly:"time_picker_display"===r,sourceDataModelField:T,configurationItemInfo:B})})}case"select_display_field":case"select":{const e={text:u?.text,required:u?.required,placeholderText:u?.placeholderText,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},t=Object.keys(e),{text:o,required:n,placeholderText:i,requiredErrorText:s,validationErrorText:l}=Lpt(e,C,t,R),c=Bpt(a?.props,_,R),d="select_display_field"===r;return ot(Dpt,{name:j,text:o?.text||"",required:n?.value,isDisplayOnly:d,predefinedValue:N,placeholderText:i?.text||"",requiredErrorText:s?.text,validationErrorText:l?.text,sourceDataModelField:T,...c,configurationItemInfo:B})}case"image":{const e={image:u?.image,link:u?.link},r=Object.keys(e),{image:o,link:n}=Lpt(e,C,r,R),i=Bpt(a?.props,_,R);return ot(Ddt,{...i,src:o?.imageSource||o?.imageFile?.url||o?.imageFile?.id||"",onClick:n?()=>x7e(n)?M?.({link:n?.internalLink||""}):g7e(n?.externalLink):void 0,moleculeId:t,configurationItemInfo:B,properties:{image:o,link:n}})}case"button":{const e={text:u?.text,action:u?.action},r=Object.keys(e),{text:o,action:n}=Lpt(e,C,r,R),i=Bpt(a?.props,_,R);return ot(wGe,{moleculeId:t,text:o?.text||"",...i,disabled:i?.disabled||F,configurationItemInfo:B,properties:{text:o,action:n}})}case"avatar":{const e=Bpt(a?.props,_,R);return ot(_tt,{...e,sourceDataModelField:T,configurationItemInfo:B})}case"drawer":{const e={text:u?.text,disabled:u?.disabled},r=Object.keys(e),{text:o,disabled:n}=Lpt(e,C,r,R),i=Bpt(a?.props,_,R),s=l?.map(e=>{const t=k===e.id,{properties:r,config:o,...n}=e||{};let a={},i=[];switch(e.type){case"menu_item":{const e=r;a={disabled:e?.disabled,text:e?.text,link:e?.link},i=Object.keys(a);break}case"text_item":{const e=r;a={text:e?.text},i=Object.keys(a);break}case"rich_text_item":{const e=r;a={text:e?.text},i=Object.keys(a);break}case"image_item":{const e=r;a={image:e?.image,alt:e?.alt,link:e?.link},i=Object.keys(a);break}default:a={},i=[]}const s=Lpt(a,C,i,t),l=Bpt(o?.props,_,t),c={...n,...l};switch(e.type){case"menu_item":return{...c,disabled:E?.[e.id]?E?.[e.id]?.disabled:s?.disabled?.value||l?.disabled||!1,text:s?.text?.text||"Menu Item",link:s?.link};case"text_item":return{...c,text:s?.text?.text||""};case"rich_text_item":return{...c,text:s?.text?.text||k4e};case"image_item":{const e=s?.image?.imageSource||s?.image?.imageFile?.url||"";return{...c,src:e,alt:s?.alt?.text||"Drawer image",link:s?.link}}default:return c}});return ot(Adt,{...i,items:s||[],moleculeId:t,buttonText:o?.text||i?.buttonText,buttonDisabled:E?.[t]?E?.[t]?.disabled:n?.value||i?.disabled||!1,configurationItemInfo:B})}case"speed_dial":{const e=Bpt(a?.props,_,R),r=l?.map(e=>{const t=k===e.id,{properties:r,config:o,...n}=e||{},a={link:r?.link,text:r?.text},i=Object.keys(a),s=Lpt(a,C,i,t),l=Bpt(o?.props,_,t);return{...n,config:{props:{...o?.props,...l,tooltipText:l?.tooltipText||""}},properties:{link:s?.link||r?.link,text:s?.text||r?.text}}});return ot(Ppt,{...e,items:r||[],moleculeId:t,configurationItemInfo:B})}case"checkbox":case"checkbox_display":{const e={label:u?.label,required:u?.required,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},o=Object.keys(e),{label:n,required:i,requiredErrorText:s,validationErrorText:l}=Lpt(e,C,o,R),c=Bpt(a?.props,_,R);return ot(Ott,{name:j,moleculeId:t,label:n?.text||"",required:i?.value,requiredErrorText:s?.text,validationErrorText:l?.text,sourceDataModelField:T,isDisplayOnly:"checkbox_display"===r,...c,configurationItemInfo:B})}case"binary_radio_buttons":case"binary_radio_buttons_display":{const e={confirmText:u?.confirmText,rejectText:u?.rejectText,required:u?.required,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},o=Object.keys(e),{confirmText:n,rejectText:i,required:s,requiredErrorText:l,validationErrorText:c}=Lpt(e,C,o,R),d=Bpt(a?.props,_,R);return ot(Dtt,{name:j,moleculeId:t,confirmText:n?.text||"Yes",rejectText:i?.text||"No",required:s?.value,requiredErrorText:l?.text,validationErrorText:c?.text,sourceDataModelField:T,isDisplayOnly:"binary_radio_buttons_display"===r,...d,configurationItemInfo:B})}case"date_calendar":case"date_calendar_display":{const e={required:u?.required,requiredErrorText:u?.requiredErrorText,validationErrorText:u?.validationErrorText},t=Object.keys(e),{required:o,requiredErrorText:n,validationErrorText:i}=Lpt(e,C,t,R),s=Bpt(a?.props,_,R);return ot(ast,{...s,name:j,required:o?.value,requiredErrorText:n?.text,validationErrorText:i?.text,isDisplayOnly:"date_calendar_display"===r,sourceDataModelField:T,configurationItemInfo:B})}default:return ot(rt,{children:"There is no such type of molecule yet."})}})()},$pt=e.memo(({item:t,tabsProps:r,formData:o,setFormData:n,isMobile:a,parentId:i,nestedPathSegments:s=[]})=>{const l=Ut(),{stateConfig:c}=DC(),{organismMetadata:u,localStateObject:d}=_C(),p=d||c,h="items"in t?t.items:void 0,f=e.useMemo(()=>(h||[]).filter(e=>{const t=e.config?.props?.visible??!0,r=p?.[e.id]?.visible??!0;return t&&r}),[h,p]);if("molecule"===t.instance)return ot(Apt,{additionalInfo:`molecule: ${t.id}`,children:ot(Vpt,{...t,form:l,isMobile:a,formData:o,parentId:i,tabsProps:r,setFormData:n,metadata:{...t.metadata,stateListenerId:u?.stateListenerId||t.id}})});const m=!(!h||!h.length),y="form"===t.type&&t.config.props?.activeChildrenIds||[];return m?y.length?ot(Apt,{additionalInfo:`form: ${t.id}`,children:ot(Zpt,{item:t,activeChildrenIds:y,formData:o,setFormData:n,isMobile:a})}):ot(Apt,{additionalInfo:`container: ${t.id}`,children:ot(Kpt,{...t,isMobile:a,nestedPathSegments:s,config:t.config?{...t.config,props:t.config.props||{},wide:t.config.wide||{},compact:t.config.compact||{}}:{props:{},wide:{},compact:{}},children:f?.map(e=>ot($pt,{item:e,parentId:e.id,formData:o,setFormData:n,isMobile:a,tabsProps:r,nestedPathSegments:s},e.id))})}):null}),Hpt=({order:t=0,id:r,formStepStyles:o,containerProps:n={hasOwnButton:!1}})=>{const a=Ut(),[i,s]=e.useState({}),{formId:l,submitHandler:c,isFormInEditMode:u,organismMetadata:d}=_C(),{groupStepItemsByStepContainer:p}=_C();Object.keys(d?.popupPayload??{})[0];const{currentStep:h,canGoToNextStep:f,canGoToPrevStep:m,goToNextStep:y,goToPrevStep:g,reset:v,setStep:x}=Vr(),b=p(),{submitForm:w}=mGe(),{forms:k}=ct(),_=t+1,C=b.get(r)||[];return h!==_?null:ot("div",{style:o,children:nt(rt,{children:[C.map(e=>ot($pt,{item:e,setFormData:s,formData:i},e.id)),(!n?.hasOwnButton||d?.isFormInsidePopUp)&&u&&nt("div",{style:{display:"flex",gap:"16px"},children:[ot(wGe,{text:m?"Back":"Cancel",variant:"outlined",onClick:()=>{m?g():(v(),x(1))}}),ot(wGe,{text:f?"Next":"Submit",variant:"contained",onClick:async()=>{const e=await a.trigger();if(!e)return void r6e({message:"Please fill all required fields",type:"error"});if(f)return void y();const t=a.getValues();e&&l&&(c?await c({formId:l,data:t}):k?.submit&&await w({formId:l,data:t}))}})]})]})})},qpt=e=>e&&"object"==typeof e&&"value"in e&&!Array.isArray(e)?e.value:e,Wpt=e=>{const t={};for(const[r,o]of Object.entries(e))t[r]=qpt(o);return t},Upt=e.memo(({replicatorFieldId:e,nestedPathSegments:t=[],children:r,renderWrapper:o})=>{const{localStateObject:n}=_C(),a=dt(),i=n||{},s=a?.itemDataByDmfId?a.itemDataByDmfId:((e,t)=>{if(!e)return null;let r=e;for(const o of t){if(!r||"object"!=typeof r)return null;const{dmfId:e,index:t}=o;if(r=r[e],void 0===r)return null;if(void 0!==t){if(!Array.isArray(r))return null;if(r=r[t],void 0===r)return null}}return r&&"object"==typeof r?r:null})(i,t),l=e?s?.[e]:s;if(!l||"object"!=typeof l){const n=e?[...t,{dmfId:e}]:t;return ot(pt,{value:{containerId:`replicator-${e||"default"}`,nestedPathSegments:n,itemDataByDmfId:{}},children:o?o(void 0,r):r})}if(Array.isArray(l))return ot(rt,{children:l.map((n,a)=>{const i=e?[...t,{dmfId:e,index:a}]:[...t,{index:a}],s={containerId:`replicator-${e||"default"}-${a}`,nestedPathSegments:i,itemIndex:a,itemDataByDmfId:Wpt(n)};return ot(pt,{value:s,children:o?o(a,r):r},`${e||"default"}-${a}`)})});const c=e?[...t,{dmfId:e}]:t,u={containerId:`replicator-${e||"default"}`,nestedPathSegments:c,itemDataByDmfId:Wpt(l)};return ot(pt,{value:u,children:o?o(void 0,r):r})}),Gpt={dots:!0,infinite:!1,autoplay:!1,autoplaySpeed:5e3,arrows:!0,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,swipeToSlide:!0},Kpt=e.memo(({id:t,type:r,name:o,config:n,children:a,metadata:i,isMobile:s,properties:l,nestedPathSegments:c=[],replicatorFieldId:u})=>{const d=Ge(),{props:p,wide:h,compact:f}=n||{},m=u||p?.replicatorFieldId,{isConfigurationMode:y,onConfigurationItemClicked:g,selectedConfigurationItemId:v,currentStyleProperties:x,currentContentProperties:b}=_C(),w=v===t,k=w?{backgroundImage:b?.backgroundImage??l?.backgroundImage??{imageFile:{url:""}}}:l,{containerProps:_={},containerStyle:C={}}=h||{};let M={...C};const{containerProps:S={},containerStyle:D={}}=f||{};let O={...D};x&&w&&(O={...D,...x},M={...C,...x});const P=yC("xs"),E=s??P,j=E?O:M,T=E?S:_,N={...p,...T,enableBackgroundImage:j?.enableBackgroundImage},R=e.useMemo(()=>({entityId:t,entityType:r,entityName:o,entity:"container",libraryEntityId:i?.containerLibraryId||void 0}),[r,o,t,i]),F=y?{onClick:e=>{e&&e.stopPropagation(),g(R,!1)},onDoubleClick:e=>{e?.stopPropagation(),g(R,!0)}}:{},z=`${t}.${E?"mobile":"desktop"}`,I=co`