@zealicsolutions/web-ui 1.0.140-beta.24 → 1.0.140-beta.26
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 +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Link/Link.d.ts +7 -0
- package/dist/esm/helpers/utils.js +1 -1
- package/dist/esm/helpers/utils.js.map +1 -1
- package/dist/esm/molecules/BaseMolecule.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/molecules/Link/Link.d.ts +7 -0
- package/dist/esm/molecules/Link/Link.js +1 -1
- package/dist/esm/molecules/Link/Link.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Tooltip/Tooltip.js +1 -1
- package/package.json +1 -1
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");t&&setTimeout(()=>{try{t.blur()}catch{}try{window.focus()}catch{}},120)}catch(t){console.error("Failed to open URL:",t)}else console.error("Invalid URL format:",e)},x7e=e=>!!e&&("internal_link"===e?.type||"internalLink"===e?.type),b7e=(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()},w7e=(e,t)=>{if(e)return x7e(e)?b7e(e?.internalLink,t):e?.externalLink};var k7e={},_7e={},C7e={},M7e={};!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}}(M7e);var S7e=/^\s+|\s+$/g,D7e=/^[-+]0x[0-9a-f]+$/i,O7e=/^0b[01]+$/i,P7e=/^0o[0-7]+$/i,E7e=parseInt,j7e="object"==typeof Q&&Q&&Q.Object===Object&&Q,T7e="object"==typeof self&&self&&self.Object===Object&&self,N7e=j7e||T7e||Function("return this")(),R7e=Object.prototype.toString,F7e=Math.max,z7e=Math.min,A7e=function(){return N7e.Date.now()};function I7e(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function L7e(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==R7e.call(e)}(e))return NaN;if(I7e(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=I7e(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(S7e,"");var r=O7e.test(e);return r||P7e.test(e)?E7e(e.slice(2),r?2:8):D7e.test(e)?NaN:+e}var B7e=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=A7e();if(f(e))return y(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?z7e(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=A7e(),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=L7e(t)||0,I7e(r)&&(u=!!r.leading,a=(d="maxWait"in r)?F7e(L7e(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(A7e())},g},V7e={},$7e={};!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}($7e),Object.defineProperty(V7e,"__esModule",{value:!0}),V7e.checkSpecKeys=V7e.checkNavigable=V7e.changeSlide=V7e.canUseDOM=V7e.canGoNext=void 0,V7e.clamp=Z7e,V7e.extractObject=void 0,V7e.filterSettings=function(e){return b9e.reduce(function(t,r){return e.hasOwnProperty(r)&&(t[r]=e[r]),t},{})},V7e.validSettings=V7e.swipeStart=V7e.swipeMove=V7e.swipeEnd=V7e.slidesOnRight=V7e.slidesOnLeft=V7e.slideHandler=V7e.siblingDirection=V7e.safePreventDefault=V7e.lazyStartIndex=V7e.lazySlidesOnRight=V7e.lazySlidesOnLeft=V7e.lazyEndIndex=V7e.keyHandler=V7e.initializedState=V7e.getWidth=V7e.getTrackLeft=V7e.getTrackCSS=V7e.getTrackAnimateCSS=V7e.getTotalSlides=V7e.getSwipeDirection=V7e.getSlideCount=V7e.getRequiredLazySlides=V7e.getPreClones=V7e.getPostClones=V7e.getOnDemandLazySlides=V7e.getNavigableIndexes=V7e.getHeight=void 0;var H7e=W7e(l.default),q7e=W7e($7e);function W7e(e){return e&&e.__esModule?e:{default:e}}function U7e(e){return U7e="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},U7e(e)}function G7e(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 K7e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G7e(Object(r),!0).forEach(function(t){Y7e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G7e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Y7e(e,t,r){return t=function(e){var t=function(e,t){if("object"!=U7e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=U7e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U7e(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 Z7e(e,t,r){return Math.max(t,Math.min(e,r))}var X7e=V7e.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},Q7e=V7e.getOnDemandLazySlides=function(e){for(var t=[],r=J7e(e),o=e9e(e),n=r;n<o;n++)e.lazyLoadedList.indexOf(n)<0&&t.push(n);return t};V7e.getRequiredLazySlides=function(e){for(var t=[],r=J7e(e),o=e9e(e),n=r;n<o;n++)t.push(n);return t};var J7e=V7e.lazyStartIndex=function(e){return e.currentSlide-t9e(e)},e9e=V7e.lazyEndIndex=function(e){return e.currentSlide+r9e(e)},t9e=V7e.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},r9e=V7e.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},o9e=V7e.getWidth=function(e){return e&&e.offsetWidth||0},n9e=V7e.getHeight=function(e){return e&&e.offsetHeight||0},a9e=V7e.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"},i9e=V7e.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};V7e.extractObject=function(e,t){var r={};return t.forEach(function(t){return r[t]=e[t]}),r},V7e.initializedState=function(e){var t,r=H7e.default.Children.count(e.children),o=e.listRef,n=Math.ceil(o9e(o)),a=e.trackRef&&e.trackRef.node,i=Math.ceil(o9e(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&&n9e(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=Q7e(K7e(K7e({},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},V7e.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:Z7e(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):!i9e(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=h9e(K7e(K7e({},e),{},{slideIndex:g})),y=h9e(K7e(K7e({},e),{},{slideIndex:f})),n||(m===y&&(g=f),m=y),s&&(h=h.concat(Q7e(K7e(K7e({},e),{},{currentSlide:g})))),p?(v={animating:!0,currentSlide:f,trackStyle:p9e(K7e(K7e({},e),{},{left:m})),lazyLoadedList:h,targetSlide:b},x={animating:!1,currentSlide:f,trackStyle:d9e(K7e(K7e({},e),{},{left:y})),swipeLeft:null,targetSlide:b}):v={currentSlide:f,trackStyle:d9e(K7e(K7e({},e),{},{left:y})),lazyLoadedList:h,targetSlide:b};return{state:v,nextState:x}},V7e.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=g9e(K7e(K7e({},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},V7e.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":""},V7e.swipeStart=function(e,t,r){return"IMG"===e.target.tagName&&X7e(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}}},V7e.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 X7e(e);n&&a&&i&&X7e(e);var w,k={},_=h9e(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=a9e(t.touchObject,i),O=g.swipeLength;return y||(0===l&&("right"===D||"down"===D)||l+1>=S&&("left"===D||"up"===D)||!i9e(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=K7e(K7e({},k),{},{touchObject:g,swipeLeft:w,trackStyle:d9e(K7e(K7e({},t),{},{left:w}))}),Math.abs(g.curX-g.startX)<.8*Math.abs(g.curY-g.startY)?k:(g.swipeLength>10&&(k.swiping=!0,X7e(e)),k)}},V7e.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&&X7e(e),{};var m=s?l/i:a/i,y=a9e(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;X7e(e),d&&d(y);var b=f?h:p;switch(y){case"left":case"up":x=b+c9e(t),v=c?l9e(t,x):x,g.currentDirection=0;break;case"right":case"down":x=b-c9e(t),v=c?l9e(t,x):x,g.currentDirection=1;break;default:v=b}g.triggerSlideHandler=v}else{var w=h9e(t);g.trackStyle=p9e(K7e(K7e({},t),{},{left:w}))}return g};var s9e=V7e.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},l9e=V7e.checkNavigable=function(e,t){var r=s9e(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},c9e=V7e.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+n9e(o)/2>-1*e.swipeLeft)return r=o,!1}else if(o.offsetLeft-t+o9e(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},u9e=V7e.checkSpecKeys=function(e,t){return t.reduce(function(t,r){return t&&e.hasOwnProperty(r)},!0)?null:console.error("Keys Missing:",e)},d9e=V7e.getTrackCSS=function(e){var t,r;u9e(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var o=e.slideCount+2*e.slidesToShow;e.vertical?r=o*e.slideHeight:t=y9e(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=K7e(K7e({},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},p9e=V7e.getTrackAnimateCSS=function(e){u9e(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=d9e(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},h9e=V7e.getTrackLeft=function(e){if(e.unslick)return 0;u9e(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=-f9e(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+f9e(e),t=(r=v&&v.childNodes[g])?-1*r.offsetLeft:0,!0===i){g=a?o+f9e(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},f9e=V7e.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},m9e=V7e.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},y9e=V7e.getTotalSlides=function(e){return 1===e.slideCount?1:f9e(e)+e.slideCount+m9e(e)},g9e=V7e.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+v9e(e)?"left":"right":e.targetSlide<e.currentSlide-x9e(e)?"right":"left"},v9e=V7e.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},x9e=V7e.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};V7e.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};var b9e=V7e.validSettings=Object.keys(q7e.default);var w9e={};Object.defineProperty(w9e,"__esModule",{value:!0}),w9e.Track=void 0;var k9e=M9e(l.default),_9e=M9e(h5e.exports),C9e=V7e;function M9e(e){return e&&e.__esModule?e:{default:e}}function S9e(e){return S9e="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},S9e(e)}function D9e(){return D9e=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},D9e.apply(this,arguments)}function O9e(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,A9e(o.key),o)}}function P9e(e,t){return P9e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P9e(e,t)}function E9e(e){var t=T9e();return function(){var r,o=N9e(e);if(t){var n=N9e(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===S9e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j9e(e)}(this,r)}}function j9e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(T9e=function(){return!!e})()}function N9e(e){return N9e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N9e(e)}function R9e(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 F9e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R9e(Object(r),!0).forEach(function(t){z9e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R9e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function z9e(e,t,r){return(t=A9e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A9e(e){var t=function(e,t){if("object"!=S9e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=S9e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==S9e(t)?t:String(t)}var I9e=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)}},L9e=function(e,t){return e.key||t},B9e=function(e){var t,r=[],o=[],n=[],a=k9e.default.Children.count(e.children),i=(0,C9e.lazyStartIndex)(e),s=(0,C9e.lazyEndIndex)(e);return k9e.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:k9e.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}(F9e(F9e({},e),{},{index:c})),h=u.props.className||"",f=I9e(F9e(F9e({},e),{},{index:c}));if(r.push(k9e.default.cloneElement(u,{key:"original"+L9e(u,c),"data-index":c,className:(0,_9e.default)(f,h),tabIndex:"-1","aria-hidden":!f["slick-active"],style:F9e(F9e({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,C9e.getPreClones)(e)&&((t=-m)>=i&&(u=l),f=I9e(F9e(F9e({},e),{},{index:t})),o.push(k9e.default.cloneElement(u,{key:"precloned"+L9e(u,t),"data-index":t,tabIndex:"-1",className:(0,_9e.default)(f,h),"aria-hidden":!f["slick-active"],style:F9e(F9e({},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=I9e(F9e(F9e({},e),{},{index:t})),n.push(k9e.default.cloneElement(u,{key:"postcloned"+L9e(u,t),"data-index":t,tabIndex:"-1",className:(0,_9e.default)(f,h),"aria-hidden":!f["slick-active"],style:F9e(F9e({},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)};w9e.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&&P9e(e,t)}(n,k9e["default"].PureComponent);var e,t,r,o=E9e(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 z9e(j9e(e=o.call.apply(o,[this].concat(r))),"node",null),z9e(j9e(e),"handleRef",function(t){e.node=t}),e}return e=n,(t=[{key:"render",value:function(){var e=B9e(this.props),t=this.props,r={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return k9e.default.createElement("div",D9e({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},r),e)}}])&&O9e(e.prototype,t),r&&O9e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var V9e={};function $9e(e){return $9e="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},$9e(e)}Object.defineProperty(V9e,"__esModule",{value:!0}),V9e.Dots=void 0;var H9e=U9e(l.default),q9e=U9e(h5e.exports),W9e=V7e;function U9e(e){return e&&e.__esModule?e:{default:e}}function G9e(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 K9e(e,t,r){return(t=Z9e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y9e(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,Z9e(o.key),o)}}function Z9e(e){var t=function(e,t){if("object"!=$9e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=$9e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$9e(t)?t:String(t)}function X9e(e,t){return X9e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},X9e(e,t)}function Q9e(e){var t=J9e();return function(){var r,o=eet(e);if(t){var n=eet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===$9e(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 J9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J9e=function(){return!!e})()}function eet(e){return eet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eet(e)}V9e.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&&X9e(e,t)}(n,H9e["default"].PureComponent);var e,t,r,o=Q9e(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,W9e.clamp)(f,0,l-1),y=m-(i-1),g=a?y:(0,W9e.clamp)(y,0,l-1),v=(0,q9e.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(H9e.default.createElement("li",{key:h,className:v},H9e.default.cloneElement(this.props.customPaging(h),{onClick:b})))}return H9e.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?G9e(Object(r),!0).forEach(function(t){K9e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G9e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:this.props.dotsClass},d))}}],t&&Y9e(e.prototype,t),r&&Y9e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var tet={};function ret(e){return ret="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},ret(e)}Object.defineProperty(tet,"__esModule",{value:!0}),tet.PrevArrow=tet.NextArrow=void 0;var oet=iet(l.default),net=iet(h5e.exports),aet=V7e;function iet(e){return e&&e.__esModule?e:{default:e}}function set(){return set=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},set.apply(this,arguments)}function cet(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 uet(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cet(Object(r),!0).forEach(function(t){det(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cet(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function det(e,t,r){return(t=met(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function het(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,met(o.key),o)}}function fet(e,t,r){return t&&het(e.prototype,t),r&&het(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function met(e){var t=function(e,t){if("object"!=ret(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=ret(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ret(t)?t:String(t)}function yet(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&&get(e,t)}function get(e,t){return get=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},get(e,t)}function vet(e){var t=xet();return function(){var r,o=bet(e);if(t){var n=bet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===ret(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 xet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xet=function(){return!!e})()}function bet(e){return bet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bet(e)}tet.PrevArrow=function(){yet(t,oet["default"].PureComponent);var e=vet(t);function t(){return pet(this,t),e.apply(this,arguments)}return fet(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,net.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?oet.default.cloneElement(this.props.prevArrow,uet(uet({},r),o)):oet.default.createElement("button",set({key:"0",type:"button"},r)," ","Previous")}}]),t}(),tet.NextArrow=function(){yet(t,oet["default"].PureComponent);var e=vet(t);function t(){return pet(this,t),e.apply(this,arguments)}return fet(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,aet.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var r={key:"1","data-role":"none",className:(0,net.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?oet.default.cloneElement(this.props.nextArrow,uet(uet({},r),o)):oet.default.createElement("button",set({key:"1",type:"button"},r)," ","Next")}}]),t}();var wet=ee(N8e);Object.defineProperty(C7e,"__esModule",{value:!0}),C7e.InnerSlider=void 0;var ket=Tet(l.default),_et=Tet(M7e),Cet=Tet(B7e),Met=Tet(h5e.exports),Det=V7e,Oet=w9e,Pet=V9e,Eet=tet,jet=Tet(wet);function Tet(e){return e&&e.__esModule?e:{default:e}}function Net(e){return Net="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},Net(e)}function Ret(){return Ret=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},Ret.apply(this,arguments)}function Fet(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 zet(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 Aet(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zet(Object(r),!0).forEach(function(t){qet(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zet(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Iet(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,Wet(o.key),o)}}function Let(e,t){return Let=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Let(e,t)}function Bet(e){var t=$et();return function(){var r,o=Het(e);if(t){var n=Het(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===Net(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vet(e)}(this,r)}}function Vet(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($et=function(){return!!e})()}function Het(e){return Het=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Het(e)}function qet(e,t,r){return(t=Wet(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wet(e){var t=function(e,t){if("object"!=Net(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=Net(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Net(t)?t:String(t)}C7e.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&&Let(e,t)}(n,ket["default"].Component);var e,t,r,o=Bet(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),qet(Vet(t=o.call(this,e)),"listRefHandler",function(e){return t.list=e}),qet(Vet(t),"trackRefHandler",function(e){return t.track=e}),qet(Vet(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,Det.getHeight)(e)+"px"}}),qet(Vet(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,Det.getOnDemandLazySlides)(Aet(Aet({},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=Aet({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 jet.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)}),qet(Vet(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()}),qet(Vet(t),"componentDidUpdate",function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var r=(0,Det.getOnDemandLazySlides)(Aet(Aet({},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=Aet(Aet({listRef:t.list,trackRef:t.track},t.props),t.state),n=t.didPropsChange(e);n&&t.updateState(o,n,function(){t.state.currentSlide>=ket.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:ket.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),qet(Vet(t),"onWindowResized",function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,Cet.default)(function(){return t.resizeWindow(e)},50),t.debouncedResize()}),qet(Vet(t),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var r=Aet(Aet({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}}),qet(Vet(t),"updateState",function(e,r,o){var n=(0,Det.initializedState)(e);e=Aet(Aet(Aet({},e),n),{},{slideIndex:n.currentSlide});var a=(0,Det.getTrackLeft)(e);e=Aet(Aet({},e),{},{left:a});var i=(0,Det.getTrackCSS)(e);(r||ket.default.Children.count(t.props.children)!==ket.default.Children.count(e.children))&&(n.trackStyle=i),t.setState(n,o)}),qet(Vet(t),"ssrInit",function(){if(t.props.variableWidth){var e=0,r=0,o=[],n=(0,Det.getPreClones)(Aet(Aet(Aet({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,Det.getPostClones)(Aet(Aet(Aet({},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=ket.default.Children.count(t.props.children),p=Aet(Aet(Aet({},t.props),t.state),{},{slideCount:d}),h=(0,Det.getPreClones)(p)+(0,Det.getPostClones)(p)+d,f=100/t.props.slidesToShow*h,m=100/h,y=-m*((0,Det.getPreClones)(p)+t.state.currentSlide)*f/100;return t.props.centerMode&&(y+=(100-m*f/100)/2),{slideWidth:m+"%",trackStyle:{width:f+"%",left:y+"%"}}}),qet(Vet(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()}))})}),qet(Vet(t),"progressiveLazyLoad",function(){for(var e=[],r=Aet(Aet({},t.props),t.state),o=t.state.currentSlide;o<t.state.slideCount+(0,Det.getPostClones)(r);o++)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}for(var n=t.state.currentSlide-1;n>=-(0,Det.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)}),qet(Vet(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,Det.slideHandler)(Aet(Aet(Aet({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=Fet(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))})}}),qet(Vet(t),"changeSlide",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Aet(Aet({},t.props),t.state),n=(0,Det.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()}}),qet(Vet(t),"clickHandler",function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0}),qet(Vet(t),"keyHandler",function(e){var r=(0,Det.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==r&&t.changeSlide({message:r})}),qet(Vet(t),"selectHandler",function(e){t.changeSlide(e)}),qet(Vet(t),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),qet(Vet(t),"enableBodyScroll",function(){window.ontouchmove=null}),qet(Vet(t),"swipeStart",function(e){t.props.verticalSwiping&&t.disableBodyScroll();var r=(0,Det.swipeStart)(e,t.props.swipe,t.props.draggable);""!==r&&t.setState(r)}),qet(Vet(t),"swipeMove",function(e){var r=(0,Det.swipeMove)(e,Aet(Aet(Aet({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));r&&(r.swiping&&(t.clickable=!1),t.setState(r))}),qet(Vet(t),"swipeEnd",function(e){var r=(0,Det.swipeEnd)(e,Aet(Aet(Aet({},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())}}),qet(Vet(t),"touchEnd",function(e){t.swipeEnd(e),t.clickable=!0}),qet(Vet(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),qet(Vet(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),qet(Vet(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))}),qet(Vet(t),"play",function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,Det.canGoNext)(Aet(Aet({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)}),qet(Vet(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"})}),qet(Vet(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"})}),qet(Vet(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),qet(Vet(t),"onDotsLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),qet(Vet(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),qet(Vet(t),"onTrackLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),qet(Vet(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),qet(Vet(t),"onSlideBlur",function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")}),qet(Vet(t),"render",function(){var e,r,o,n=(0,Met.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),a=Aet(Aet({},t.props),t.state),i=(0,Det.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=Aet(Aet({},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,Det.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),c=t.props.pauseOnDotsHover;l=Aet(Aet({},l),{},{clickHandler:t.changeSlide,onMouseEnter:c?t.onDotsLeave:null,onMouseOver:c?t.onDotsOver:null,onMouseLeave:c?t.onDotsLeave:null}),e=ket.default.createElement(Pet.Dots,l)}var u=(0,Det.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);u.clickHandler=t.changeSlide,t.props.arrows&&(r=ket.default.createElement(Eet.PrevArrow,u),o=ket.default.createElement(Eet.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=Aet(Aet({},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}),ket.default.createElement("div",y,t.props.unslick?"":r,ket.default.createElement("div",Ret({ref:t.listRefHandler},m),ket.default.createElement(Oet.Track,Ret({ref:t.trackRefHandler},i),t.props.children)),t.props.unslick?"":o,t.props.unslick?"":e)}),t.list=null,t.track=null,t.state=Aet(Aet({},_et.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:ket.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var r=t.ssrInit();return t.state=Aet(Aet({},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"!==Net(e[n])&&"function"!=typeof e[n]&&!isNaN(e[n])&&e[n]!==this.props[n]){t=!0;break}}return t||ket.default.Children.count(this.props.children)!==ket.default.Children.count(e.children)}}],t&&Iet(e.prototype,t),r&&Iet(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var Uet,Get,Ket,Yet,Zet,Xet,Qet,Jet,ett,ttt,rtt=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()},ott=rtt,ntt=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=ott(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",n<r.length-1&&(t+=" and ")}),t},att=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(r,o){t+=ntt(r),o<e.length-1&&(t+=", ")}),t):ntt(e)};function itt(){if(Yet)return Ket;return Yet=1,Ket={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++);}},Ket}function stt(){if(Xet)return Zet;Xet=1;var e=function(){if(Get)return Uet;function e(e){this.options=e,!e.deferSetup&&this.setup()}return Get=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}},Uet=e}(),t=itt().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]()})}},Zet=r}function ltt(){if(ttt)return ett;ttt=1;var e=function(){if(Jet)return Qet;Jet=1;var e=stt(),t=itt(),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}},Qet=a}();return ett=new e}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(l.default),r=C7e,o=i(att),n=i($7e),a=V7e;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)()&<t();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)}(_7e),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,r=(t=_7e)&&t.__esModule?t:{default:t};e.default=r.default}(k7e);var ctt=J(k7e);const utt=(e,t)=>{Object.values(e).forEach(e=>{const r=e,o=r&&r._f;o?t(o):r&&"object"==typeof r&&utt(r,t)})},dtt=({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}=Ir(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}),utt(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})})},ptt=(e,t)=>e&&t[e]?`${t[e]}px`:e,htt=(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{}try{window.focus()}catch{}},e)})}}catch(t){console.error("Failed to open URL:",t)}else console.error("Invalid URL format:",e)},x7e=e=>!!e&&("internal_link"===e?.type||"internalLink"===e?.type),b7e=(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()},w7e=(e,t)=>{if(e)return x7e(e)?b7e(e?.internalLink,t):e?.externalLink};var k7e={},_7e={},C7e={},M7e={};!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}}(M7e);var S7e=/^\s+|\s+$/g,D7e=/^[-+]0x[0-9a-f]+$/i,O7e=/^0b[01]+$/i,P7e=/^0o[0-7]+$/i,E7e=parseInt,j7e="object"==typeof Q&&Q&&Q.Object===Object&&Q,T7e="object"==typeof self&&self&&self.Object===Object&&self,N7e=j7e||T7e||Function("return this")(),R7e=Object.prototype.toString,F7e=Math.max,z7e=Math.min,A7e=function(){return N7e.Date.now()};function I7e(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function L7e(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==R7e.call(e)}(e))return NaN;if(I7e(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=I7e(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(S7e,"");var r=O7e.test(e);return r||P7e.test(e)?E7e(e.slice(2),r?2:8):D7e.test(e)?NaN:+e}var B7e=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=A7e();if(f(e))return y(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?z7e(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=A7e(),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=L7e(t)||0,I7e(r)&&(u=!!r.leading,a=(d="maxWait"in r)?F7e(L7e(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(A7e())},g},V7e={},$7e={};!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}($7e),Object.defineProperty(V7e,"__esModule",{value:!0}),V7e.checkSpecKeys=V7e.checkNavigable=V7e.changeSlide=V7e.canUseDOM=V7e.canGoNext=void 0,V7e.clamp=Z7e,V7e.extractObject=void 0,V7e.filterSettings=function(e){return b9e.reduce(function(t,r){return e.hasOwnProperty(r)&&(t[r]=e[r]),t},{})},V7e.validSettings=V7e.swipeStart=V7e.swipeMove=V7e.swipeEnd=V7e.slidesOnRight=V7e.slidesOnLeft=V7e.slideHandler=V7e.siblingDirection=V7e.safePreventDefault=V7e.lazyStartIndex=V7e.lazySlidesOnRight=V7e.lazySlidesOnLeft=V7e.lazyEndIndex=V7e.keyHandler=V7e.initializedState=V7e.getWidth=V7e.getTrackLeft=V7e.getTrackCSS=V7e.getTrackAnimateCSS=V7e.getTotalSlides=V7e.getSwipeDirection=V7e.getSlideCount=V7e.getRequiredLazySlides=V7e.getPreClones=V7e.getPostClones=V7e.getOnDemandLazySlides=V7e.getNavigableIndexes=V7e.getHeight=void 0;var H7e=W7e(l.default),q7e=W7e($7e);function W7e(e){return e&&e.__esModule?e:{default:e}}function U7e(e){return U7e="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},U7e(e)}function G7e(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 K7e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?G7e(Object(r),!0).forEach(function(t){Y7e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G7e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Y7e(e,t,r){return t=function(e){var t=function(e,t){if("object"!=U7e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=U7e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==U7e(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 Z7e(e,t,r){return Math.max(t,Math.min(e,r))}var X7e=V7e.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},Q7e=V7e.getOnDemandLazySlides=function(e){for(var t=[],r=J7e(e),o=e9e(e),n=r;n<o;n++)e.lazyLoadedList.indexOf(n)<0&&t.push(n);return t};V7e.getRequiredLazySlides=function(e){for(var t=[],r=J7e(e),o=e9e(e),n=r;n<o;n++)t.push(n);return t};var J7e=V7e.lazyStartIndex=function(e){return e.currentSlide-t9e(e)},e9e=V7e.lazyEndIndex=function(e){return e.currentSlide+r9e(e)},t9e=V7e.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},r9e=V7e.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},o9e=V7e.getWidth=function(e){return e&&e.offsetWidth||0},n9e=V7e.getHeight=function(e){return e&&e.offsetHeight||0},a9e=V7e.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"},i9e=V7e.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};V7e.extractObject=function(e,t){var r={};return t.forEach(function(t){return r[t]=e[t]}),r},V7e.initializedState=function(e){var t,r=H7e.default.Children.count(e.children),o=e.listRef,n=Math.ceil(o9e(o)),a=e.trackRef&&e.trackRef.node,i=Math.ceil(o9e(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&&n9e(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=Q7e(K7e(K7e({},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},V7e.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:Z7e(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):!i9e(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=h9e(K7e(K7e({},e),{},{slideIndex:g})),y=h9e(K7e(K7e({},e),{},{slideIndex:f})),n||(m===y&&(g=f),m=y),s&&(h=h.concat(Q7e(K7e(K7e({},e),{},{currentSlide:g})))),p?(v={animating:!0,currentSlide:f,trackStyle:p9e(K7e(K7e({},e),{},{left:m})),lazyLoadedList:h,targetSlide:b},x={animating:!1,currentSlide:f,trackStyle:d9e(K7e(K7e({},e),{},{left:y})),swipeLeft:null,targetSlide:b}):v={currentSlide:f,trackStyle:d9e(K7e(K7e({},e),{},{left:y})),lazyLoadedList:h,targetSlide:b};return{state:v,nextState:x}},V7e.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=g9e(K7e(K7e({},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},V7e.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":""},V7e.swipeStart=function(e,t,r){return"IMG"===e.target.tagName&&X7e(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}}},V7e.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 X7e(e);n&&a&&i&&X7e(e);var w,k={},_=h9e(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=a9e(t.touchObject,i),O=g.swipeLength;return y||(0===l&&("right"===D||"down"===D)||l+1>=S&&("left"===D||"up"===D)||!i9e(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=K7e(K7e({},k),{},{touchObject:g,swipeLeft:w,trackStyle:d9e(K7e(K7e({},t),{},{left:w}))}),Math.abs(g.curX-g.startX)<.8*Math.abs(g.curY-g.startY)?k:(g.swipeLength>10&&(k.swiping=!0,X7e(e)),k)}},V7e.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&&X7e(e),{};var m=s?l/i:a/i,y=a9e(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;X7e(e),d&&d(y);var b=f?h:p;switch(y){case"left":case"up":x=b+c9e(t),v=c?l9e(t,x):x,g.currentDirection=0;break;case"right":case"down":x=b-c9e(t),v=c?l9e(t,x):x,g.currentDirection=1;break;default:v=b}g.triggerSlideHandler=v}else{var w=h9e(t);g.trackStyle=p9e(K7e(K7e({},t),{},{left:w}))}return g};var s9e=V7e.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},l9e=V7e.checkNavigable=function(e,t){var r=s9e(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},c9e=V7e.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+n9e(o)/2>-1*e.swipeLeft)return r=o,!1}else if(o.offsetLeft-t+o9e(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},u9e=V7e.checkSpecKeys=function(e,t){return t.reduce(function(t,r){return t&&e.hasOwnProperty(r)},!0)?null:console.error("Keys Missing:",e)},d9e=V7e.getTrackCSS=function(e){var t,r;u9e(e,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var o=e.slideCount+2*e.slidesToShow;e.vertical?r=o*e.slideHeight:t=y9e(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=K7e(K7e({},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},p9e=V7e.getTrackAnimateCSS=function(e){u9e(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=d9e(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},h9e=V7e.getTrackLeft=function(e){if(e.unslick)return 0;u9e(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=-f9e(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+f9e(e),t=(r=v&&v.childNodes[g])?-1*r.offsetLeft:0,!0===i){g=a?o+f9e(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},f9e=V7e.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},m9e=V7e.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},y9e=V7e.getTotalSlides=function(e){return 1===e.slideCount?1:f9e(e)+e.slideCount+m9e(e)},g9e=V7e.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+v9e(e)?"left":"right":e.targetSlide<e.currentSlide-x9e(e)?"right":"left"},v9e=V7e.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},x9e=V7e.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};V7e.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};var b9e=V7e.validSettings=Object.keys(q7e.default);var w9e={};Object.defineProperty(w9e,"__esModule",{value:!0}),w9e.Track=void 0;var k9e=M9e(l.default),_9e=M9e(h5e.exports),C9e=V7e;function M9e(e){return e&&e.__esModule?e:{default:e}}function S9e(e){return S9e="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},S9e(e)}function D9e(){return D9e=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},D9e.apply(this,arguments)}function O9e(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,A9e(o.key),o)}}function P9e(e,t){return P9e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P9e(e,t)}function E9e(e){var t=T9e();return function(){var r,o=N9e(e);if(t){var n=N9e(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===S9e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j9e(e)}(this,r)}}function j9e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(T9e=function(){return!!e})()}function N9e(e){return N9e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N9e(e)}function R9e(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 F9e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R9e(Object(r),!0).forEach(function(t){z9e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R9e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function z9e(e,t,r){return(t=A9e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A9e(e){var t=function(e,t){if("object"!=S9e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=S9e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==S9e(t)?t:String(t)}var I9e=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)}},L9e=function(e,t){return e.key||t},B9e=function(e){var t,r=[],o=[],n=[],a=k9e.default.Children.count(e.children),i=(0,C9e.lazyStartIndex)(e),s=(0,C9e.lazyEndIndex)(e);return k9e.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:k9e.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}(F9e(F9e({},e),{},{index:c})),h=u.props.className||"",f=I9e(F9e(F9e({},e),{},{index:c}));if(r.push(k9e.default.cloneElement(u,{key:"original"+L9e(u,c),"data-index":c,className:(0,_9e.default)(f,h),tabIndex:"-1","aria-hidden":!f["slick-active"],style:F9e(F9e({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,C9e.getPreClones)(e)&&((t=-m)>=i&&(u=l),f=I9e(F9e(F9e({},e),{},{index:t})),o.push(k9e.default.cloneElement(u,{key:"precloned"+L9e(u,t),"data-index":t,tabIndex:"-1",className:(0,_9e.default)(f,h),"aria-hidden":!f["slick-active"],style:F9e(F9e({},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=I9e(F9e(F9e({},e),{},{index:t})),n.push(k9e.default.cloneElement(u,{key:"postcloned"+L9e(u,t),"data-index":t,tabIndex:"-1",className:(0,_9e.default)(f,h),"aria-hidden":!f["slick-active"],style:F9e(F9e({},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)};w9e.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&&P9e(e,t)}(n,k9e["default"].PureComponent);var e,t,r,o=E9e(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 z9e(j9e(e=o.call.apply(o,[this].concat(r))),"node",null),z9e(j9e(e),"handleRef",function(t){e.node=t}),e}return e=n,(t=[{key:"render",value:function(){var e=B9e(this.props),t=this.props,r={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return k9e.default.createElement("div",D9e({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},r),e)}}])&&O9e(e.prototype,t),r&&O9e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var V9e={};function $9e(e){return $9e="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},$9e(e)}Object.defineProperty(V9e,"__esModule",{value:!0}),V9e.Dots=void 0;var H9e=U9e(l.default),q9e=U9e(h5e.exports),W9e=V7e;function U9e(e){return e&&e.__esModule?e:{default:e}}function G9e(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 K9e(e,t,r){return(t=Z9e(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y9e(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,Z9e(o.key),o)}}function Z9e(e){var t=function(e,t){if("object"!=$9e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=$9e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$9e(t)?t:String(t)}function X9e(e,t){return X9e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},X9e(e,t)}function Q9e(e){var t=J9e();return function(){var r,o=eet(e);if(t){var n=eet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===$9e(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 J9e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(J9e=function(){return!!e})()}function eet(e){return eet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eet(e)}V9e.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&&X9e(e,t)}(n,H9e["default"].PureComponent);var e,t,r,o=Q9e(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,W9e.clamp)(f,0,l-1),y=m-(i-1),g=a?y:(0,W9e.clamp)(y,0,l-1),v=(0,q9e.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(H9e.default.createElement("li",{key:h,className:v},H9e.default.cloneElement(this.props.customPaging(h),{onClick:b})))}return H9e.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?G9e(Object(r),!0).forEach(function(t){K9e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):G9e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:this.props.dotsClass},d))}}],t&&Y9e(e.prototype,t),r&&Y9e(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var tet={};function ret(e){return ret="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},ret(e)}Object.defineProperty(tet,"__esModule",{value:!0}),tet.PrevArrow=tet.NextArrow=void 0;var oet=iet(l.default),net=iet(h5e.exports),aet=V7e;function iet(e){return e&&e.__esModule?e:{default:e}}function set(){return set=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},set.apply(this,arguments)}function cet(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 uet(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cet(Object(r),!0).forEach(function(t){det(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cet(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function det(e,t,r){return(t=met(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function het(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,met(o.key),o)}}function fet(e,t,r){return t&&het(e.prototype,t),r&&het(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function met(e){var t=function(e,t){if("object"!=ret(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=ret(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ret(t)?t:String(t)}function yet(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&&get(e,t)}function get(e,t){return get=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},get(e,t)}function vet(e){var t=xet();return function(){var r,o=bet(e);if(t){var n=bet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===ret(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 xet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(xet=function(){return!!e})()}function bet(e){return bet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bet(e)}tet.PrevArrow=function(){yet(t,oet["default"].PureComponent);var e=vet(t);function t(){return pet(this,t),e.apply(this,arguments)}return fet(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,net.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?oet.default.cloneElement(this.props.prevArrow,uet(uet({},r),o)):oet.default.createElement("button",set({key:"0",type:"button"},r)," ","Previous")}}]),t}(),tet.NextArrow=function(){yet(t,oet["default"].PureComponent);var e=vet(t);function t(){return pet(this,t),e.apply(this,arguments)}return fet(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,aet.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var r={key:"1","data-role":"none",className:(0,net.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?oet.default.cloneElement(this.props.nextArrow,uet(uet({},r),o)):oet.default.createElement("button",set({key:"1",type:"button"},r)," ","Next")}}]),t}();var wet=ee(N8e);Object.defineProperty(C7e,"__esModule",{value:!0}),C7e.InnerSlider=void 0;var ket=Tet(l.default),_et=Tet(M7e),Cet=Tet(B7e),Met=Tet(h5e.exports),Det=V7e,Oet=w9e,Pet=V9e,Eet=tet,jet=Tet(wet);function Tet(e){return e&&e.__esModule?e:{default:e}}function Net(e){return Net="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},Net(e)}function Ret(){return Ret=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},Ret.apply(this,arguments)}function Fet(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 zet(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 Aet(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zet(Object(r),!0).forEach(function(t){qet(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zet(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Iet(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,Wet(o.key),o)}}function Let(e,t){return Let=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Let(e,t)}function Bet(e){var t=$et();return function(){var r,o=Het(e);if(t){var n=Het(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===Net(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Vet(e)}(this,r)}}function Vet(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return($et=function(){return!!e})()}function Het(e){return Het=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Het(e)}function qet(e,t,r){return(t=Wet(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wet(e){var t=function(e,t){if("object"!=Net(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=Net(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Net(t)?t:String(t)}C7e.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&&Let(e,t)}(n,ket["default"].Component);var e,t,r,o=Bet(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),qet(Vet(t=o.call(this,e)),"listRefHandler",function(e){return t.list=e}),qet(Vet(t),"trackRefHandler",function(e){return t.track=e}),qet(Vet(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,Det.getHeight)(e)+"px"}}),qet(Vet(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,Det.getOnDemandLazySlides)(Aet(Aet({},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=Aet({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 jet.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)}),qet(Vet(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()}),qet(Vet(t),"componentDidUpdate",function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var r=(0,Det.getOnDemandLazySlides)(Aet(Aet({},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=Aet(Aet({listRef:t.list,trackRef:t.track},t.props),t.state),n=t.didPropsChange(e);n&&t.updateState(o,n,function(){t.state.currentSlide>=ket.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:ket.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),qet(Vet(t),"onWindowResized",function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,Cet.default)(function(){return t.resizeWindow(e)},50),t.debouncedResize()}),qet(Vet(t),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var r=Aet(Aet({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}}),qet(Vet(t),"updateState",function(e,r,o){var n=(0,Det.initializedState)(e);e=Aet(Aet(Aet({},e),n),{},{slideIndex:n.currentSlide});var a=(0,Det.getTrackLeft)(e);e=Aet(Aet({},e),{},{left:a});var i=(0,Det.getTrackCSS)(e);(r||ket.default.Children.count(t.props.children)!==ket.default.Children.count(e.children))&&(n.trackStyle=i),t.setState(n,o)}),qet(Vet(t),"ssrInit",function(){if(t.props.variableWidth){var e=0,r=0,o=[],n=(0,Det.getPreClones)(Aet(Aet(Aet({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,Det.getPostClones)(Aet(Aet(Aet({},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=ket.default.Children.count(t.props.children),p=Aet(Aet(Aet({},t.props),t.state),{},{slideCount:d}),h=(0,Det.getPreClones)(p)+(0,Det.getPostClones)(p)+d,f=100/t.props.slidesToShow*h,m=100/h,y=-m*((0,Det.getPreClones)(p)+t.state.currentSlide)*f/100;return t.props.centerMode&&(y+=(100-m*f/100)/2),{slideWidth:m+"%",trackStyle:{width:f+"%",left:y+"%"}}}),qet(Vet(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()}))})}),qet(Vet(t),"progressiveLazyLoad",function(){for(var e=[],r=Aet(Aet({},t.props),t.state),o=t.state.currentSlide;o<t.state.slideCount+(0,Det.getPostClones)(r);o++)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}for(var n=t.state.currentSlide-1;n>=-(0,Det.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)}),qet(Vet(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,Det.slideHandler)(Aet(Aet(Aet({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=Fet(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))})}}),qet(Vet(t),"changeSlide",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=Aet(Aet({},t.props),t.state),n=(0,Det.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()}}),qet(Vet(t),"clickHandler",function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0}),qet(Vet(t),"keyHandler",function(e){var r=(0,Det.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==r&&t.changeSlide({message:r})}),qet(Vet(t),"selectHandler",function(e){t.changeSlide(e)}),qet(Vet(t),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),qet(Vet(t),"enableBodyScroll",function(){window.ontouchmove=null}),qet(Vet(t),"swipeStart",function(e){t.props.verticalSwiping&&t.disableBodyScroll();var r=(0,Det.swipeStart)(e,t.props.swipe,t.props.draggable);""!==r&&t.setState(r)}),qet(Vet(t),"swipeMove",function(e){var r=(0,Det.swipeMove)(e,Aet(Aet(Aet({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));r&&(r.swiping&&(t.clickable=!1),t.setState(r))}),qet(Vet(t),"swipeEnd",function(e){var r=(0,Det.swipeEnd)(e,Aet(Aet(Aet({},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())}}),qet(Vet(t),"touchEnd",function(e){t.swipeEnd(e),t.clickable=!0}),qet(Vet(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),qet(Vet(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),qet(Vet(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))}),qet(Vet(t),"play",function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,Det.canGoNext)(Aet(Aet({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)}),qet(Vet(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"})}),qet(Vet(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"})}),qet(Vet(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),qet(Vet(t),"onDotsLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),qet(Vet(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),qet(Vet(t),"onTrackLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),qet(Vet(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),qet(Vet(t),"onSlideBlur",function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")}),qet(Vet(t),"render",function(){var e,r,o,n=(0,Met.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),a=Aet(Aet({},t.props),t.state),i=(0,Det.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=Aet(Aet({},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,Det.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),c=t.props.pauseOnDotsHover;l=Aet(Aet({},l),{},{clickHandler:t.changeSlide,onMouseEnter:c?t.onDotsLeave:null,onMouseOver:c?t.onDotsOver:null,onMouseLeave:c?t.onDotsLeave:null}),e=ket.default.createElement(Pet.Dots,l)}var u=(0,Det.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);u.clickHandler=t.changeSlide,t.props.arrows&&(r=ket.default.createElement(Eet.PrevArrow,u),o=ket.default.createElement(Eet.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=Aet(Aet({},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}),ket.default.createElement("div",y,t.props.unslick?"":r,ket.default.createElement("div",Ret({ref:t.listRefHandler},m),ket.default.createElement(Oet.Track,Ret({ref:t.trackRefHandler},i),t.props.children)),t.props.unslick?"":o,t.props.unslick?"":e)}),t.list=null,t.track=null,t.state=Aet(Aet({},_et.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:ket.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var r=t.ssrInit();return t.state=Aet(Aet({},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"!==Net(e[n])&&"function"!=typeof e[n]&&!isNaN(e[n])&&e[n]!==this.props[n]){t=!0;break}}return t||ket.default.Children.count(this.props.children)!==ket.default.Children.count(e.children)}}],t&&Iet(e.prototype,t),r&&Iet(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var Uet,Get,Ket,Yet,Zet,Xet,Qet,Jet,ett,ttt,rtt=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()},ott=rtt,ntt=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=ott(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",n<r.length-1&&(t+=" and ")}),t},att=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(r,o){t+=ntt(r),o<e.length-1&&(t+=", ")}),t):ntt(e)};function itt(){if(Yet)return Ket;return Yet=1,Ket={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++);}},Ket}function stt(){if(Xet)return Zet;Xet=1;var e=function(){if(Get)return Uet;function e(e){this.options=e,!e.deferSetup&&this.setup()}return Get=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}},Uet=e}(),t=itt().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]()})}},Zet=r}function ltt(){if(ttt)return ett;ttt=1;var e=function(){if(Jet)return Qet;Jet=1;var e=stt(),t=itt(),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}},Qet=a}();return ett=new e}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(l.default),r=C7e,o=i(att),n=i($7e),a=V7e;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)()&<t();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)}(_7e),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,r=(t=_7e)&&t.__esModule?t:{default:t};e.default=r.default}(k7e);var ctt=J(k7e);const utt=(e,t)=>{Object.values(e).forEach(e=>{const r=e,o=r&&r._f;o?t(o):r&&"object"==typeof r&&utt(r,t)})},dtt=({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}=Ir(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}),utt(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})})},ptt=(e,t)=>e&&t[e]?`${t[e]}px`:e,htt=(e,t)=>{if(e&&t)return co`
|
|
803
803
|
background: url(${t}) center / cover no-repeat;
|
|
804
804
|
`},ftt=["slider","form"],mtt=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=>ptt(e[r]||0,t)).join(" "))({top:u,bottom:d,left:p,right:h},o):"0px";return co`
|
|
@@ -1022,10 +1022,10 @@
|
|
|
1022
1022
|
flex: 1;
|
|
1023
1023
|
position: relative;
|
|
1024
1024
|
gap: ${({gap:e})=>e?"number"==typeof e?`${e}px`:e:"0"};
|
|
1025
|
-
`,Fdt=({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:A="0px",buttonMarginLeft:I="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(Pdt,{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(Tdt,{...de&&Object.keys(de).length?{...de,"data-testid":"drawer-content-config","aria-label":"drawer-content"}:{},children:[(Me()||"permanent"===r)&&a.length>0?ot(Rdt,{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:ytt({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(_dt,{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(Ddt,{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(Sdt,{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(Cdt,{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(Ndt,{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:A,marginLeft:I,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(jdt,{children:Pe})]}):ot(jdt,{children:Pe})},zdt=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:" "})}),Adt=({masked:e,errorMsg:t,inputSx:r,labelSx:o,sx:n,...a})=>{const i=e?{inputComponent:zdt}:{};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}}}})},Idt=({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:A}=_C(),{stateConfig:I}=DC(),L=dt(),B=A||I,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(Adt,{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(Adt,{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||{}})})},Ldt=({src:e,text:t,type:r,link:o,color:n=Kr.colors.deepBlue,disabled:a=!1,disabledColor:i,underline:s="hover",variant:l="body2",margin:c="0",padding:u="0",moleculeId:d,configurationItemInfo:p,marginTop:h="0",marginRight:f="0",marginBottom:m="0",marginLeft:y="0",paddingTop:g="0",paddingRight:v="0",paddingBottom:x="0",paddingLeft:b="0",fontFamily:w,fontWeight:k,fontSize:_,align:C,target:M,sx:S})=>{const{onStateChange:D}=OC(),{onInternalNavigation:O,isConfigurationMode:P}=_C(),E=o?x7e(o):"internalLink"===r||"internal_link"===r,j=e||(o?E?o.internalLink:o.externalLink:void 0),T=M||(E?"_self":"_blank"),N=a?i||Wr(n):n;return ot(rv,{href:P||a?void 0:e,component:"a",target:T,onClick:e=>{D({id:d,type:"clicked"}),a||P?e.preventDefault():E&&j?(e.preventDefault(),O?.({link:j})):!E&&j&&(e.preventDefault(),g7e(j))},sx:{color:N,textDecorationColor:N,margin:c,padding:u,marginTop:h,marginRight:f,marginBottom:m,marginLeft:y,paddingTop:g,paddingRight:v,paddingBottom:x,paddingLeft:b,fontFamily:w,fontWeight:k,fontSize:_,textAlign:C,alignItems:C,cursor:a?"not-allowed":"pointer","& .MuiLink-root":{color:"inherit",textDecorationColor:"inherit"},"&:hover":{color:a?N:Wr(N,.8),textDecorationColor:a?N:Wr(N,.8)},"&:active":{color:a?N:Wr(N,.6),textDecorationColor:a?N:Wr(N,.6)},"&.Mui-disabled":{color:i||Wr(n),textDecorationColor:i||Wr(n),cursor:"not-allowed"},...S},align:C,variant:l,underline:s,...p,children:t})},Bdt=e=>({justifyContent:e.textAlign||"flex-start",backgroundColor:e.backgroundColor,paddingTop:e.paddingTop,paddingRight:e.paddingRight,paddingBottom:e.paddingBottom,paddingLeft:e.paddingLeft}),Vdt=({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:A,buttonFillColor:I,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=Boolean(ae&&(ie===re||r.some(e=>e.id===ie))),fe=()=>pe(!0),me=()=>pe(!1),ye={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(Af,{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:fe,marginTop:O,marginRight:P,marginBottom:E,marginLeft:j,paddingTop:T,paddingRight:N,paddingBottom:R,paddingLeft:F,borderRadius:D,iconOnly:z,elevation:A,fillColor:I||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?he:de,variant:"menu",anchorEl:ce,disablePortal:!0,disableScrollLock:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,onClose:me,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":ye["& .MuiMenu-list"],"& .MuiMenuItem-root":ye["& .MuiMenuItem-root"],"& .MuiListItemText-primary":ye["& .MuiListItemText-primary"],"& .MuiTypography-root":ye["& .MuiTypography-root"]}}},sx:{...ye,"& .MuiMenu-paper":ye["& .MuiMenu-paper"]},children:r.map(e=>{const t=ie===e.id,r={entityId:e.id,entity:"molecule_item",entityType:"menu_item"},o=ae?e=>{e.stopPropagation(),se?.(r,!1)}:void 0,n=ae?e=>{e.stopPropagation(),se?.(r,!0)}:void 0,a=ae?{onClick:o,onDoubleClick:n,"data-organism-id":e.id,css:ytt({theme:ne,selected:t})}:{};return nt(ix,{sx:Bdt(e),onClick:()=>{e?.link&&(x7e(e.link)?le?.({link:e.link?.internalLink||""}):g7e(e.link?.externalLink)),me()},disabled:e.disabled,...a,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:{...ye,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={entityId:e.id,entity:"molecule_item",entityType:"menu_item"},o=ae?e=>{e.stopPropagation(),se?.(r,!1)}:void 0,n=ae?e=>{e.stopPropagation(),se?.(r,!0)}:void 0,a=ae?{onClick:o,onDoubleClick:n,"data-organism-id":e.id,css:ytt({theme:ne,selected:t})}:{};return nt(fv,{disabled:e.disabled,sx:Bdt(e),onClick:()=>{e?.link&&(x7e(e.link)?le?.({link:e.link?.internalLink||""}):g7e(e.link?.externalLink))},...a,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 $dt=({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}}}),Hdt=({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:A}=_C(),{stateConfig:I}=DC(),L=dt(),B=A||I,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($dt,{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($dt,{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)})})},qdt=e=>{const t={text:e.label,validate:()=>!0},{rule:r}=e,o=Wdt(r);if(o||Udt(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},Wdt=e=>!!e?.MAX,Udt=e=>!!e?.MIN,Gdt=({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(qdt),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(Af,{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(_tt,{...r,inputType:"password",text:_?.text,name:P,placeholderText:M?.text}),ot(_tt,{...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})]})},Kdt=["+"," ","(",/[0-9]/,/[0-9]/,/[0-9]/,")"," ",/[0-9]/,/[0-9]/,/[0-9]/,"-",/[0-9]/,/[0-9]/,/[0-9]/,/[0-9]/],Ydt=e.forwardRef((e,t)=>{const{inputRef:r,...o}=e;return ot(hKe,{...o,ref:e=>{"function"==typeof r&&r(e?e.inputElement:null)},mask:Kdt,guide:!0,placeholderChar:" "})});function Zdt(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 Xdt=({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:Ydt}:{}},inputLabel:{sx:o}}}),Qdt=({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:A}=_C(),{stateConfig:I}=DC(),L=dt(),B=A||I,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?Zdt(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(Xdt,{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(Xdt,{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,""))}})})},Jdt=({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,...A})=>{const I=Ut(),L=I?.control,B=!!I&&!!L&&!!r,{localStateObject:V}=_C(),{stateConfig:$}=DC(),H=dt(),q=V||$,W=c?q?.[c]?.value:void 0;!B||I.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},...A})]})}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(Af,{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?I.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},...A}),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?I.getValues(r)??W??"":U??W??""})]})]})},ept=({open:t,text:o,disabled:n,sx:a,placeholderText:i,required:s=!1,requiredErrorText:l="This field is required",validationErrorText:c="Invalid format",isDisplayOnly:u=!1,displayText:d,visible:p=!0,fontSize:h,fontFamily:f,fontWeight:m,textColor:y,textAlign:g,borderColor:v,color:x,backgroundColor:b,marginLeft:w="0",marginTop:k="0",marginRight:_="0",marginBottom:C="0",paddingLeft:M="12px",paddingTop:S="14px",paddingRight:D="12px",paddingBottom:O="14px",width:P,height:E,minHeight:j,maxHeight:T,minWidth:N,maxWidth:R,configurationItemInfo:F={},name:z,sourceDataModelField:A,predefinedValue:I,...L})=>{const B=u?void 0:A,{dataModelFieldOptions:V,isLoading:$}=(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}})(B),H=Ut(),q=H?.control,W=!!H&&!!q&&!!z,{formState:U}=H||{},{localStateObject:G,localState:K,setLocalStateValue:Y,isConfigurationMode:Z,selectedConfigurationItemId:X}=_C(),{stateConfig:Q}=DC(),{isMLR:J}=gC(),ee=dt(),te=G||Q,re=A?te?.[A]:void 0,oe=re?.value||("string"==typeof re||"number"==typeof re?re:void 0),ne=A?ee?.getDmfValue(A):void 0;"string"==typeof ne||"number"==typeof ne||ne&&"object"==typeof ne&&(ne.value??ne.label??ne.id);const[ae,ie]=e.useState(""),[se,le]=e.useState(!1),ce=e.useRef(null),ue=e.useRef(null),de=Z&&X===F?.["data-configuration-id"];e.useEffect(()=>{Z&&le(!!de)},[de,Z]);const pe=e.useMemo(()=>!(Boolean(n)||null!=I&&""!==I)&&(Z?!!de&&se:J?t||!1:void 0),[Z,de,se,J,t,n,I]),he=e.useMemo(()=>null!=I&&""!==I,[I]),fe=e.useMemo(()=>Boolean(n)||he,[n,he]);e.useEffect(()=>{he&&null!=I&&(W?H?.setValue(z,I):ie(I))},[he,I,W,H,z]);const me=e.useMemo(()=>({required:!!s&&l,validate:()=>!0}),[s,l]),ye=e.useMemo(()=>(V||[]).map(e=>"string"==typeof e?{id:e,label:e}:e),[V]),ge=!fe&&(Z&&de||J&&t),ve=e.useMemo(()=>{const e=(()=>{switch(g){case"center":return"center";case"right":return"flex-end";case"justify":return"space-between";default:return"flex-start"}})(),t=y||x||"rgba(0, 0, 0, 0.87)",r=y?`${y}50`:"rgba(0, 0, 0, 0.6)",o=y?`${y}30`:"rgba(0, 0, 0, 0.26)";return{typography:{fontSize:h||"1rem",fontFamily:"string"==typeof f?f:"inherit",color:t},menuItem:{fontSize:h||"1rem",fontFamily:"string"==typeof f?f:"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:h,fontFamily:f,fontWeight:m,color:x,minHeight:"56px","& .MuiOutlinedInput-notchedOutline":{borderColor:v||"inherit"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:v||"inherit"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:v||"inherit"},"& .MuiSelect-select":{display:"flex",alignItems:"center",justifyContent:e,backgroundColor:b,textAlign:g,boxSizing:"border-box",paddingLeft:M,paddingTop:S,paddingRight:D,paddingBottom:O,minHeight:"1.4375em",lineHeight:"1.4375em"}},formControlSx:{marginLeft:w,marginTop:k,marginRight:_,marginBottom:C,...P&&{width:P},...E&&{height:E},...R&&{maxWidth:R},...j&&{minHeight:j},...T&&{maxHeight:T},...N?{minWidth:N}:P?{}:{minWidth:"240px"},...a},placeholderTypography:{fontSize:h||"1rem",fontFamily:"string"==typeof f?f:"inherit",color:r},placeholderColor:r}},[g,h,f,x,y,m,v,b,M,S,D,O,w,k,_,C,P,E,R,N,j,T]),xe=()=>ot(ix,{disabled:!0,value:"",sx:{...ve.menuItem,backgroundColor:"rgba(0, 0, 0, 0.06) !important","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.06) !important"}},children:ot("em",{style:{fontStyle:"italic",...ve.placeholderTypography},children:i||"Select an option"})});e.useEffect(()=>{if(!u||!W)return;const e="string"==typeof d&&""!==d?d:"string"==typeof oe&&""!==oe?oe:void 0;void 0!==e&&H?.setValue(z,e)},[u,W,d,oe,H,z]);const be=(e,t)=>$?nt(ix,{disabled:!0,value:"loading",sx:ve.menuItem,children:[ot(qu,{size:20,sx:{mr:1}}),"Loading..."]}):ye.map(r=>ot(ix,{value:r.id,selected:e===r.id,onClick:t?()=>t(r.id):void 0,sx:ve.menuItem,children:r.label},r.id));if(u){const e="string"==typeof d&&""!==d?d:"string"==typeof oe&&""!==oe?oe:i||"-";return nt("div",{style:{display:"inline-flex",flexDirection:"column",marginTop:k,marginRight:_,marginBottom:C,marginLeft:w,...P&&{width:P},...E&&{height:E},...j&&{minHeight:j},...T&&{maxHeight:T},...N&&{minWidth:N},...R&&{maxWidth:R}},...F,children:[o&&ot("div",{style:{marginBottom:4},children:ot(lg,{sx:{fontSize:h,fontFamily:f,fontWeight:m,color:y||"#000",marginLeft:0,textAlign:g},children:o})}),ot(yd,{sx:{fontSize:h,fontFamily:f,fontWeight:m,color:y,textAlign:g,paddingLeft:M,paddingTop:S,paddingRight:D,paddingBottom:O,backgroundColor:b,border:`1px solid ${v||"#ccc"}`,borderRadius:"4px",minWidth:"120px"},children:e})]})}const we={slotProps:{paper:{elevation:3,sx:{borderRadius:"4px",backgroundColor:b||"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)",...ve.typography,...ge?{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",...b&&{backgroundColor:b},"& .MuiMenuItem-root":ve.menuItem}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},...ge?{disableScrollLock:!0,disablePortal:!0,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,hideBackdrop:!0}:{}},ke=(e,t)=>{t?.onChange?t.onChange(e):(ie(e),A&&Y&&Y(A,{id:e}))},_e=e=>{if(!e||""===e)return ot("em",{style:{color:ve.placeholderColor,fontStyle:"italic"},children:i||"Select an option"});const t=ye.find(t=>t.id===e);return t?t.label:e},Ce=(e,t)=>nt(kb,{...e||{},...L,...Z?{open:pe}:{},...J?{open:pe}:{},...ge?{open:!1,onClose:()=>{},onOpen:()=>{}}:{},error:t,disabled:fe,value:e?.value??ae,onChange:t=>{ge||ke(t.target.value,e)},labelId:`select-label-${z}`,input:ot(_x,{label:o}),displayEmpty:!0,renderValue:_e,MenuProps:we,sx:{...ve.inputSx,...P&&{width:P},...E&&{height:E},...N&&{minWidth:N},...R&&{maxWidth:R},...j&&{minHeight:j},...T&&{maxHeight:T}},inputProps:{"aria-label":o},children:[xe(),be()]}),Me=e=>{if(!ge||!ue.current||fe)return null;const t=e?.value??ae;return ot(nh,{open:!0,anchorEl:ue.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:b||"background.paper",minWidth:ue.current?.offsetWidth||240,width:ue.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",...ve.typography},children:nt(Iv,{sx:{padding:"8px 0",...b&&{backgroundColor:b},"& .MuiMenuItem-root":ve.menuItem},children:[xe(),be(t,t=>ke(t,e))]})})})})};return p?ot("div",{ref:ce,style:{position:"relative",...P&&{width:P},...E&&{height:E},...N&&{minWidth:N},...R&&{maxWidth:R},...j&&{minHeight:j},...T&&{maxHeight:T}},...F,onClick:e=>{if(Z&&F&&"onClick"in F){e.stopPropagation();F.onClick()}},children:nt(Uy,{ref:ue,variant:"outlined",sx:ve.formControlSx,error:!!U?.errors?.[z],disabled:fe,required:s,children:[ot(Fg,{id:`select-label-${z}`,shrink:!0,sx:{color:y||"rgba(0, 0, 0, 0.6)",fontSize:h,fontFamily:f,fontWeight:m,"&.Mui-focused":{color:y||"rgba(0, 0, 0, 0.6)"}},children:o}),W?ot(Jt,{name:z,control:q,rules:me,render:({field:e,fieldState:{error:t}})=>nt(rt,{children:[Ce(e,!!t),Me(e)]})}):nt(rt,{children:[Ce(void 0,!1),Me(void 0)]}),U?.errors?.[z]&&ot(lg,{error:!0,children:U?.errors?.[z]?.message||("required"===U?.errors?.[z]?.type?l:c)})]})}):null};const tpt=({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:A,minWidth:I,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},...A&&{maxHeight:A},...I&&{minWidth:I},...L&&{maxWidth:L},...B},...V,children:[e&&ot(fg,{children:e}),nt(Af,{display:"flex",flexDirection:"top"===M?"column":"row",alignItems:"center",mt:"top"===M?1:0,children:[s&&ot(Af,{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(Af,{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},...A&&{maxHeight:A},...I&&{minWidth:I},...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})]})})]})},rpt=({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 A={bgcolor:l,paddingTop:m,paddingRight:y,paddingBottom:g,paddingLeft:v,marginTop:x,marginRight:b,marginBottom:w,marginLeft:k},I=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:I,onOpen:f&&!h?R:void 0,onClose:f&&!h?F:void 0,FabProps:{color:"primary",sx:A,size:r,gap:C},slotProps:{fab:{"data-testid":"speed-dial-fab","aria-label":o}},sx:{"& .MuiSpeedDial-fab":{backgroundColor:l,...A},"& .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:ytt({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)})})]})},opt=({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:ytt({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)})})},npt=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})),apt=({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(),A=dt(),I=F||z,L=S?I?.[S]?.value:void 0,[B,V]=e.useState(!1);if(t){const e=S?A?.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(Af,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:[ot(npt,{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(Af,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:ot(npt,{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(Af,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:ot(npt,{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})})]})},ipt=({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:A="left",hoverTextColor:I,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:I||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:ytt({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(Af,{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"===A?"end":"start",icon:e.iconName?ot(uGe,{iconName:e.iconName,sx:{fontSize:P,color:t?D:O}}):void 0,...ae(e)},e.id)})})})},spt=e=>{if(!e)return null;if(e instanceof Date)return jrt(e)?e:null;if("object"==typeof e&&null!==e&&"function"==typeof e.toDate){const t=e.toDate();return t instanceof Date&&jrt(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=Aot(o,e,n);if(jrt(t))return t}return null}return null},lpt=({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=spt(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=spt(o),c=l&&jrt(l)?Art(l,s):"";return nt(Af,{...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(Af,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=spt(e);return t&&jrt(t)||u||"Invalid time"}},render:({field:{onChange:e,value:t},fieldState:o})=>ot(ldt,{...v,enableAccessibleFieldDOMStructure:!1,value:spt(t),onChange:t=>{const r=spt(t);e(r?Art(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(ldt,{...v,enableAccessibleFieldDOMStructure:!1,value:O,onChange:e=>P(spt(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}}}})})},cpt=({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(upt,{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)}})})},upt=xo(tm)`
|
|
1025
|
+
`,Fdt=({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:A="0px",buttonMarginLeft:I="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(Pdt,{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(Tdt,{...de&&Object.keys(de).length?{...de,"data-testid":"drawer-content-config","aria-label":"drawer-content"}:{},children:[(Me()||"permanent"===r)&&a.length>0?ot(Rdt,{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:ytt({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(_dt,{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(Ddt,{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(Sdt,{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(Cdt,{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(Ndt,{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:A,marginLeft:I,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(jdt,{children:Pe})]}):ot(jdt,{children:Pe})},zdt=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:" "})}),Adt=({masked:e,errorMsg:t,inputSx:r,labelSx:o,sx:n,...a})=>{const i=e?{inputComponent:zdt}:{};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}}}})},Idt=({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:A}=_C(),{stateConfig:I}=DC(),L=dt(),B=A||I,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(Adt,{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(Adt,{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||{}})})},Ldt=({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,iconOnly:P,ariaLabel:E,iconName:j,iconSize:T,validationErrorText:N})=>{const{onStateChange:R}=OC(),{onInternalNavigation:F,isConfigurationMode:z,localStateObject:A}=_C(),{stateConfig:I}=DC(),L=dt(),B=A||I,V=e.useMemo(()=>{if(!a)return;const e=L?.getDmfValue(a);return null!=e?e:B?.[a]?.value},[L,a,B]),$=Boolean(a),H=e.useMemo(()=>{if($)return V?String(V):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},[$,V,n,o,t]),q=!$&&!!n&&x7e(n),W=$?D||"_blank":D||(q?"_self":"_blank"),U=!!$&&!(e=>{if(!e)return!1;try{const t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch{return!1}})(H),G=U?"#d32f2f":s?l||Wr(i):i,K=z||s||U?void 0:H,Y=P?ot(uGe,{iconName:j||"external-link",size:T??16,color:G}):r,{onClick:Z,onDoubleClick:X,...Q}=f||{},J=ot(rv,{href:K,component:"a",target:W,onClick:e=>{R({id:h,type:"clicked"}),s||z||U?e.preventDefault():$&&H?(e.preventDefault(),g7e(H)):q&&H?(e.preventDefault(),F?.({link:H})):!q&&H&&(e.preventDefault(),g7e(H))},onClickCapture:Z||void 0,onDoubleClickCapture:X||void 0,"aria-label":P?E||r||"link":void 0,sx:{color:G,textDecorationColor:G,margin:d,padding:p,marginTop:m,marginRight:y,marginBottom:g,marginLeft:v,paddingTop:x,paddingRight:b,paddingBottom:w,paddingLeft:k,fontFamily:_,fontWeight:C,fontSize:M,textAlign:S,alignItems:S,cursor:s?"not-allowed":"pointer",display:P?"inline-flex":void 0,"& .MuiLink-root":{color:"inherit",textDecorationColor:"inherit"},"&:hover":{color:s?G:Wr(G,.8),textDecorationColor:s?G:Wr(G,.8)},"&:active":{color:s?G:Wr(G,.6),textDecorationColor:s?G:Wr(G,.6)},"&.Mui-disabled":{color:l||Wr(i),textDecorationColor:l||Wr(i),cursor:"not-allowed"},...O},align:S,variant:u,underline:c,...Q,children:Y});return U?ot(Sw,{title:N||"Invalid link URL",arrow:!0,children:ot("span",{children:J})}):J},Bdt=e=>({justifyContent:e.textAlign||"flex-start",backgroundColor:e.backgroundColor,paddingTop:e.paddingTop,paddingRight:e.paddingRight,paddingBottom:e.paddingBottom,paddingLeft:e.paddingLeft}),Vdt=({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:A,buttonFillColor:I,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=Boolean(ae&&(ie===re||r.some(e=>e.id===ie))),fe=()=>pe(!0),me=()=>pe(!1),ye={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(Af,{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:fe,marginTop:O,marginRight:P,marginBottom:E,marginLeft:j,paddingTop:T,paddingRight:N,paddingBottom:R,paddingLeft:F,borderRadius:D,iconOnly:z,elevation:A,fillColor:I||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?he:de,variant:"menu",anchorEl:ce,disablePortal:!0,disableScrollLock:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,onClose:me,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":ye["& .MuiMenu-list"],"& .MuiMenuItem-root":ye["& .MuiMenuItem-root"],"& .MuiListItemText-primary":ye["& .MuiListItemText-primary"],"& .MuiTypography-root":ye["& .MuiTypography-root"]}}},sx:{...ye,"& .MuiMenu-paper":ye["& .MuiMenu-paper"]},children:r.map(e=>{const t=ie===e.id,r={entityId:e.id,entity:"molecule_item",entityType:"menu_item"},o=ae?e=>{e.stopPropagation(),se?.(r,!1)}:void 0,n=ae?e=>{e.stopPropagation(),se?.(r,!0)}:void 0,a=ae?{onClick:o,onDoubleClick:n,"data-organism-id":e.id,css:ytt({theme:ne,selected:t})}:{};return nt(ix,{sx:Bdt(e),onClick:()=>{e?.link&&(x7e(e.link)?le?.({link:e.link?.internalLink||""}):g7e(e.link?.externalLink)),me()},disabled:e.disabled,...a,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:{...ye,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={entityId:e.id,entity:"molecule_item",entityType:"menu_item"},o=ae?e=>{e.stopPropagation(),se?.(r,!1)}:void 0,n=ae?e=>{e.stopPropagation(),se?.(r,!0)}:void 0,a=ae?{onClick:o,onDoubleClick:n,"data-organism-id":e.id,css:ytt({theme:ne,selected:t})}:{};return nt(fv,{disabled:e.disabled,sx:Bdt(e),onClick:()=>{e?.link&&(x7e(e.link)?le?.({link:e.link?.internalLink||""}):g7e(e.link?.externalLink))},...a,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 $dt=({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}}}),Hdt=({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:A}=_C(),{stateConfig:I}=DC(),L=dt(),B=A||I,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($dt,{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($dt,{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)})})},qdt=e=>{const t={text:e.label,validate:()=>!0},{rule:r}=e,o=Wdt(r);if(o||Udt(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},Wdt=e=>!!e?.MAX,Udt=e=>!!e?.MIN,Gdt=({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(qdt),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(Af,{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(_tt,{...r,inputType:"password",text:_?.text,name:P,placeholderText:M?.text}),ot(_tt,{...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})]})},Kdt=["+"," ","(",/[0-9]/,/[0-9]/,/[0-9]/,")"," ",/[0-9]/,/[0-9]/,/[0-9]/,"-",/[0-9]/,/[0-9]/,/[0-9]/,/[0-9]/],Ydt=e.forwardRef((e,t)=>{const{inputRef:r,...o}=e;return ot(hKe,{...o,ref:e=>{"function"==typeof r&&r(e?e.inputElement:null)},mask:Kdt,guide:!0,placeholderChar:" "})});function Zdt(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 Xdt=({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:Ydt}:{}},inputLabel:{sx:o}}}),Qdt=({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:A}=_C(),{stateConfig:I}=DC(),L=dt(),B=A||I,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?Zdt(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(Xdt,{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(Xdt,{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,""))}})})},Jdt=({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,...A})=>{const I=Ut(),L=I?.control,B=!!I&&!!L&&!!r,{localStateObject:V}=_C(),{stateConfig:$}=DC(),H=dt(),q=V||$,W=c?q?.[c]?.value:void 0;!B||I.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},...A})]})}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(Af,{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?I.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},...A}),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?I.getValues(r)??W??"":U??W??""})]})]})},ept=({open:t,text:o,disabled:n,sx:a,placeholderText:i,required:s=!1,requiredErrorText:l="This field is required",validationErrorText:c="Invalid format",isDisplayOnly:u=!1,displayText:d,visible:p=!0,fontSize:h,fontFamily:f,fontWeight:m,textColor:y,textAlign:g,borderColor:v,color:x,backgroundColor:b,marginLeft:w="0",marginTop:k="0",marginRight:_="0",marginBottom:C="0",paddingLeft:M="12px",paddingTop:S="14px",paddingRight:D="12px",paddingBottom:O="14px",width:P,height:E,minHeight:j,maxHeight:T,minWidth:N,maxWidth:R,configurationItemInfo:F={},name:z,sourceDataModelField:A,predefinedValue:I,...L})=>{const B=u?void 0:A,{dataModelFieldOptions:V,isLoading:$}=(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}})(B),H=Ut(),q=H?.control,W=!!H&&!!q&&!!z,{formState:U}=H||{},{localStateObject:G,localState:K,setLocalStateValue:Y,isConfigurationMode:Z,selectedConfigurationItemId:X}=_C(),{stateConfig:Q}=DC(),{isMLR:J}=gC(),ee=dt(),te=G||Q,re=A?te?.[A]:void 0,oe=re?.value||("string"==typeof re||"number"==typeof re?re:void 0),ne=A?ee?.getDmfValue(A):void 0;"string"==typeof ne||"number"==typeof ne||ne&&"object"==typeof ne&&(ne.value??ne.label??ne.id);const[ae,ie]=e.useState(""),[se,le]=e.useState(!1),ce=e.useRef(null),ue=e.useRef(null),de=Z&&X===F?.["data-configuration-id"];e.useEffect(()=>{Z&&le(!!de)},[de,Z]);const pe=e.useMemo(()=>!(Boolean(n)||null!=I&&""!==I)&&(Z?!!de&&se:J?t||!1:void 0),[Z,de,se,J,t,n,I]),he=e.useMemo(()=>null!=I&&""!==I,[I]),fe=e.useMemo(()=>Boolean(n)||he,[n,he]);e.useEffect(()=>{he&&null!=I&&(W?H?.setValue(z,I):ie(I))},[he,I,W,H,z]);const me=e.useMemo(()=>({required:!!s&&l,validate:()=>!0}),[s,l]),ye=e.useMemo(()=>(V||[]).map(e=>"string"==typeof e?{id:e,label:e}:e),[V]),ge=!fe&&(Z&&de||J&&t),ve=e.useMemo(()=>{const e=(()=>{switch(g){case"center":return"center";case"right":return"flex-end";case"justify":return"space-between";default:return"flex-start"}})(),t=y||x||"rgba(0, 0, 0, 0.87)",r=y?`${y}50`:"rgba(0, 0, 0, 0.6)",o=y?`${y}30`:"rgba(0, 0, 0, 0.26)";return{typography:{fontSize:h||"1rem",fontFamily:"string"==typeof f?f:"inherit",color:t},menuItem:{fontSize:h||"1rem",fontFamily:"string"==typeof f?f:"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:h,fontFamily:f,fontWeight:m,color:x,minHeight:"56px","& .MuiOutlinedInput-notchedOutline":{borderColor:v||"inherit"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:v||"inherit"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:v||"inherit"},"& .MuiSelect-select":{display:"flex",alignItems:"center",justifyContent:e,backgroundColor:b,textAlign:g,boxSizing:"border-box",paddingLeft:M,paddingTop:S,paddingRight:D,paddingBottom:O,minHeight:"1.4375em",lineHeight:"1.4375em"}},formControlSx:{marginLeft:w,marginTop:k,marginRight:_,marginBottom:C,...P&&{width:P},...E&&{height:E},...R&&{maxWidth:R},...j&&{minHeight:j},...T&&{maxHeight:T},...N?{minWidth:N}:P?{}:{minWidth:"240px"},...a},placeholderTypography:{fontSize:h||"1rem",fontFamily:"string"==typeof f?f:"inherit",color:r},placeholderColor:r}},[g,h,f,x,y,m,v,b,M,S,D,O,w,k,_,C,P,E,R,N,j,T]),xe=()=>ot(ix,{disabled:!0,value:"",sx:{...ve.menuItem,backgroundColor:"rgba(0, 0, 0, 0.06) !important","&:hover":{backgroundColor:"rgba(0, 0, 0, 0.06) !important"}},children:ot("em",{style:{fontStyle:"italic",...ve.placeholderTypography},children:i||"Select an option"})});e.useEffect(()=>{if(!u||!W)return;const e="string"==typeof d&&""!==d?d:"string"==typeof oe&&""!==oe?oe:void 0;void 0!==e&&H?.setValue(z,e)},[u,W,d,oe,H,z]);const be=(e,t)=>$?nt(ix,{disabled:!0,value:"loading",sx:ve.menuItem,children:[ot(qu,{size:20,sx:{mr:1}}),"Loading..."]}):ye.map(r=>ot(ix,{value:r.id,selected:e===r.id,onClick:t?()=>t(r.id):void 0,sx:ve.menuItem,children:r.label},r.id));if(u){const e="string"==typeof d&&""!==d?d:"string"==typeof oe&&""!==oe?oe:i||"-";return nt("div",{style:{display:"inline-flex",flexDirection:"column",marginTop:k,marginRight:_,marginBottom:C,marginLeft:w,...P&&{width:P},...E&&{height:E},...j&&{minHeight:j},...T&&{maxHeight:T},...N&&{minWidth:N},...R&&{maxWidth:R}},...F,children:[o&&ot("div",{style:{marginBottom:4},children:ot(lg,{sx:{fontSize:h,fontFamily:f,fontWeight:m,color:y||"#000",marginLeft:0,textAlign:g},children:o})}),ot(yd,{sx:{fontSize:h,fontFamily:f,fontWeight:m,color:y,textAlign:g,paddingLeft:M,paddingTop:S,paddingRight:D,paddingBottom:O,backgroundColor:b,border:`1px solid ${v||"#ccc"}`,borderRadius:"4px",minWidth:"120px"},children:e})]})}const we={slotProps:{paper:{elevation:3,sx:{borderRadius:"4px",backgroundColor:b||"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)",...ve.typography,...ge?{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",...b&&{backgroundColor:b},"& .MuiMenuItem-root":ve.menuItem}},anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},...ge?{disableScrollLock:!0,disablePortal:!0,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,hideBackdrop:!0}:{}},ke=(e,t)=>{t?.onChange?t.onChange(e):(ie(e),A&&Y&&Y(A,{id:e}))},_e=e=>{if(!e||""===e)return ot("em",{style:{color:ve.placeholderColor,fontStyle:"italic"},children:i||"Select an option"});const t=ye.find(t=>t.id===e);return t?t.label:e},Ce=(e,t)=>nt(kb,{...e||{},...L,...Z?{open:pe}:{},...J?{open:pe}:{},...ge?{open:!1,onClose:()=>{},onOpen:()=>{}}:{},error:t,disabled:fe,value:e?.value??ae,onChange:t=>{ge||ke(t.target.value,e)},labelId:`select-label-${z}`,input:ot(_x,{label:o}),displayEmpty:!0,renderValue:_e,MenuProps:we,sx:{...ve.inputSx,...P&&{width:P},...E&&{height:E},...N&&{minWidth:N},...R&&{maxWidth:R},...j&&{minHeight:j},...T&&{maxHeight:T}},inputProps:{"aria-label":o},children:[xe(),be()]}),Me=e=>{if(!ge||!ue.current||fe)return null;const t=e?.value??ae;return ot(nh,{open:!0,anchorEl:ue.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:b||"background.paper",minWidth:ue.current?.offsetWidth||240,width:ue.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",...ve.typography},children:nt(Iv,{sx:{padding:"8px 0",...b&&{backgroundColor:b},"& .MuiMenuItem-root":ve.menuItem},children:[xe(),be(t,t=>ke(t,e))]})})})})};return p?ot("div",{ref:ce,style:{position:"relative",...P&&{width:P},...E&&{height:E},...N&&{minWidth:N},...R&&{maxWidth:R},...j&&{minHeight:j},...T&&{maxHeight:T}},...F,onClick:e=>{if(Z&&F&&"onClick"in F){e.stopPropagation();F.onClick()}},children:nt(Uy,{ref:ue,variant:"outlined",sx:ve.formControlSx,error:!!U?.errors?.[z],disabled:fe,required:s,children:[ot(Fg,{id:`select-label-${z}`,shrink:!0,sx:{color:y||"rgba(0, 0, 0, 0.6)",fontSize:h,fontFamily:f,fontWeight:m,"&.Mui-focused":{color:y||"rgba(0, 0, 0, 0.6)"}},children:o}),W?ot(Jt,{name:z,control:q,rules:me,render:({field:e,fieldState:{error:t}})=>nt(rt,{children:[Ce(e,!!t),Me(e)]})}):nt(rt,{children:[Ce(void 0,!1),Me(void 0)]}),U?.errors?.[z]&&ot(lg,{error:!0,children:U?.errors?.[z]?.message||("required"===U?.errors?.[z]?.type?l:c)})]})}):null};const tpt=({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:A,minWidth:I,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},...A&&{maxHeight:A},...I&&{minWidth:I},...L&&{maxWidth:L},...B},...V,children:[e&&ot(fg,{children:e}),nt(Af,{display:"flex",flexDirection:"top"===M?"column":"row",alignItems:"center",mt:"top"===M?1:0,children:[s&&ot(Af,{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(Af,{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},...A&&{maxHeight:A},...I&&{minWidth:I},...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})]})})]})},rpt=({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 A={bgcolor:l,paddingTop:m,paddingRight:y,paddingBottom:g,paddingLeft:v,marginTop:x,marginRight:b,marginBottom:w,marginLeft:k},I=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:I,onOpen:f&&!h?R:void 0,onClose:f&&!h?F:void 0,FabProps:{color:"primary",sx:A,size:r,gap:C},slotProps:{fab:{"data-testid":"speed-dial-fab","aria-label":o}},sx:{"& .MuiSpeedDial-fab":{backgroundColor:l,...A},"& .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:ytt({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)})})]})},opt=({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:ytt({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)})})},npt=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})),apt=({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(),A=dt(),I=F||z,L=S?I?.[S]?.value:void 0,[B,V]=e.useState(!1);if(t){const e=S?A?.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(Af,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:[ot(npt,{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(Af,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:ot(npt,{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(Af,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:ot(npt,{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})})]})},ipt=({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:A="left",hoverTextColor:I,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:I||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:ytt({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(Af,{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"===A?"end":"start",icon:e.iconName?ot(uGe,{iconName:e.iconName,sx:{fontSize:P,color:t?D:O}}):void 0,...ae(e)},e.id)})})})},spt=e=>{if(!e)return null;if(e instanceof Date)return jrt(e)?e:null;if("object"==typeof e&&null!==e&&"function"==typeof e.toDate){const t=e.toDate();return t instanceof Date&&jrt(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=Aot(o,e,n);if(jrt(t))return t}return null}return null},lpt=({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=spt(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=spt(o),c=l&&jrt(l)?Art(l,s):"";return nt(Af,{...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(Af,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=spt(e);return t&&jrt(t)||u||"Invalid time"}},render:({field:{onChange:e,value:t},fieldState:o})=>ot(ldt,{...v,enableAccessibleFieldDOMStructure:!1,value:spt(t),onChange:t=>{const r=spt(t);e(r?Art(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(ldt,{...v,enableAccessibleFieldDOMStructure:!1,value:O,onChange:e=>P(spt(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}}}})})},cpt=({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(upt,{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)}})})},upt=xo(tm)`
|
|
1026
1026
|
display: inline-block;
|
|
1027
1027
|
overflow: hidden;
|
|
1028
|
-
`,dpt=({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 ppt(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 hpt(e,t,r=!1){return t&&r?an(e,t):e}const fpt=({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}),A=e.useMemo(()=>({entityType:r,entity:"molecule",entityName:o,entityId:t,organismLibraryMoleculeId:p,libraryEntityId:d}),[r,o,t,p,d]),I=e.useCallback(e=>{e?.stopPropagation(),w(A,!1)},[w,A]),L=e.useCallback(e=>{e?.stopPropagation(),w(A,!0)},[w,A]),B=b?{onClick:I,onDoubleClick:L,"data-configuration-id":t,css:ytt({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}=ppt(e,C,r,R),n=hpt(a?.props,_,R);return ot(Ddt,{...n,text:o?.text||"",htmlElementId:t,configurationsItemInfo:B})}case"text":{const e={text:u?.text},r=Object.keys(e),{text:o}=ppt(e,C,r,R),n=hpt(a?.props,_,R);return ot(Sdt,{...o,...n,htmlElementId:t,configurationItemInfo:B})}case"consent":{const e=ppt(u,C,[],R),r=hpt(a?.props,_,R)||{};return ot(Ott,{...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=ppt(e,C,r,R),{state:n,gap:i,...s}=hpt(a?.props,_,R);return ot(Gdt,{gap:i,inputProps:s,validations:v||[],htmlElementId:t,validationState:n,overridesProperties:o,configurationItemInfo:B})}case"stepper":{const e=hpt(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}=ppt(a,C,i,t);return{...n,...hpt(o?.props,_,t),title:s?.text||"",subText:l?.text||""}});return ot(opt,{...e,items:r||[],isMobile:m,moleculeId:t,configurationItemInfo:B})}case"checklist":{const e=hpt(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=ppt(a,C,i,t),l=hpt(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=hpt(o?.props,_,t)||{};return{...n,...e,type:"divider_item"}}case"text_item":{const e={text:r?.text},a=Object.keys(e),i=ppt(e,C,a,t),s=hpt(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=ppt(e,C,a,t),s=hpt(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(Stt,{...e,items:r||[],moleculeId:t,configurationItemInfo:B})}case"accordion":{const e=hpt(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}=ppt(a,C,i,t);return{...n,...hpt(o?.props,_,t),text:s?.text||"",subText:l?.text||"",bodyText:c?.text||""}});return ot(vtt,{...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}=ppt(e,C,r,R),i=hpt(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}=ppt(a,C,i,t),u=hpt(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(Vdt,{...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=hpt(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}=ppt(n,C,a,t);return{...hpt(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(ipt,{...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=hpt(a?.props,_,R);return ot(_dt,{moleculeId:t,configurationItemInfo:B,...e})}case"link":{const e={text:u?.text,link:u?.link},r=Object.keys(e),{text:o,link:n}=ppt(e,C,r,R),i=n,s=hpt(a?.props,_,R);return ot(Ldt,{moleculeId:t,...s,link:i,type:i?.type,src:V?void 0:w7e(i,g)||"",text:o?.text||"",disabled:s?.disabled||F,configurationItemInfo:B})}case"video":{const e={video:u?.video,coverImage:u?.coverImage},r=Object.keys(e),{video:o,coverImage:n}=ppt(e,C,r,R),i=hpt(a?.props,_,R);return ot(cpt,{...i,moleculeId:t,poster:n?.imageFile?.url,src:o?.videoSource??o?.videoFile?.url??"",configurationItemInfo:B})}case"badge":{const e=hpt(a?.props,_,R);return ot(wtt,{...e,configurationItemInfo:B})}case"alert":{const e={text:u?.text,subText:u?.subText},t=Object.keys(e),{text:r,subText:o}=ppt(e,C,t,R),n=hpt(a?.props,_,R);return ot(xtt,{text:r?.text||"",subText:o?.text||"",...n,configurationItemInfo:B})}case"chip":{const e={text:u?.text},t=Object.keys(e),{text:r}=ppt(e,C,t,R),o=hpt(a?.props,_,R);return ot(Dtt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(Idt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(Qdt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(Hdt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(jtt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(_tt,{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}=ppt(e,C,t,R),l=hpt(a?.props,_,R);return ot(Jdt,{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}=ppt(e,C,o,R),c=hpt(a?.props,_,R);return ot(apt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(tpt,{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}=ppt(e,C,o,R),d=hpt(a?.props,_,R);return ot(Wnt,{dateAdapter:qot,children:ot(kdt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(Wnt,{dateAdapter:qot,children:ot(lpt,{...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}=ppt(e,C,t,R),c=hpt(a?.props,_,R),d="select_display_field"===r;return ot(ept,{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}=ppt(e,C,r,R),i=hpt(a?.props,_,R);return ot(Cdt,{...i,src:o?.imageSource||o?.imageFile?.url||o?.imageFile?.id||"",onClick:()=>x7e(n)?M?.({link:n?.internalLink||""}):g7e(n?.externalLink),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}=ppt(e,C,r,R),i=hpt(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=hpt(a?.props,_,R);return ot(btt,{...e,sourceDataModelField:T,configurationItemInfo:B})}case"drawer":{const e={text:u?.text,disabled:u?.disabled},r=Object.keys(e),{text:o,disabled:n}=ppt(e,C,r,R),i=hpt(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=ppt(a,C,i,t),l=hpt(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(Fdt,{...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=hpt(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=ppt(a,C,i,t),l=hpt(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(rpt,{...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}=ppt(e,C,o,R),c=hpt(a?.props,_,R);return ot(Mtt,{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}=ppt(e,C,o,R),d=hpt(a?.props,_,R);return ot(Ctt,{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}=ppt(e,C,t,R),s=hpt(a?.props,_,R);return ot(rst,{...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."})}})()},mpt=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(dpt,{additionalInfo:`molecule: ${t.id}`,children:ot(fpt,{...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(dpt,{additionalInfo:`form: ${t.id}`,children:ot(_pt,{item:t,activeChildrenIds:y,formData:o,setFormData:n,isMobile:a})}):ot(dpt,{additionalInfo:`container: ${t.id}`,children:ot(wpt,{...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(mpt,{item:e,parentId:e.id,formData:o,setFormData:n,isMobile:a,tabsProps:r,nestedPathSegments:s},e.id))})}):null}),ypt=({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(mpt,{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}))}})]})]})})},gpt=e=>e&&"object"==typeof e&&"value"in e&&!Array.isArray(e)?e.value:e,vpt=e=>{const t={};for(const[r,o]of Object.entries(e))t[r]=gpt(o);return t},xpt=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:vpt(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:vpt(l)};return ot(pt,{value:u,children:o?o(void 0,r):r})}),bpt={dots:!0,infinite:!1,autoplay:!1,autoplaySpeed:5e3,arrows:!0,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,swipeToSlide:!0},wpt=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"}`,A=co`
|
|
1028
|
+
`,dpt=({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 ppt(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 hpt(e,t,r=!1){return t&&r?an(e,t):e}const fpt=({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}),A=e.useMemo(()=>({entityType:r,entity:"molecule",entityName:o,entityId:t,organismLibraryMoleculeId:p,libraryEntityId:d}),[r,o,t,p,d]),I=e.useCallback(e=>{e?.stopPropagation(),w(A,!1)},[w,A]),L=e.useCallback(e=>{e?.stopPropagation(),w(A,!0)},[w,A]),B=b?{onClick:I,onDoubleClick:L,"data-configuration-id":t,css:ytt({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}=ppt(e,C,r,R),n=hpt(a?.props,_,R);return ot(Ddt,{...n,text:o?.text||"",htmlElementId:t,configurationsItemInfo:B})}case"text":{const e={text:u?.text},r=Object.keys(e),{text:o}=ppt(e,C,r,R),n=hpt(a?.props,_,R);return ot(Sdt,{...o,...n,htmlElementId:t,configurationItemInfo:B})}case"consent":{const e=ppt(u,C,[],R),r=hpt(a?.props,_,R)||{};return ot(Ott,{...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=ppt(e,C,r,R),{state:n,gap:i,...s}=hpt(a?.props,_,R);return ot(Gdt,{gap:i,inputProps:s,validations:v||[],htmlElementId:t,validationState:n,overridesProperties:o,configurationItemInfo:B})}case"stepper":{const e=hpt(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}=ppt(a,C,i,t);return{...n,...hpt(o?.props,_,t),title:s?.text||"",subText:l?.text||""}});return ot(opt,{...e,items:r||[],isMobile:m,moleculeId:t,configurationItemInfo:B})}case"checklist":{const e=hpt(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=ppt(a,C,i,t),l=hpt(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=hpt(o?.props,_,t)||{};return{...n,...e,type:"divider_item"}}case"text_item":{const e={text:r?.text},a=Object.keys(e),i=ppt(e,C,a,t),s=hpt(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=ppt(e,C,a,t),s=hpt(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(Stt,{...e,items:r||[],moleculeId:t,configurationItemInfo:B})}case"accordion":{const e=hpt(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}=ppt(a,C,i,t);return{...n,...hpt(o?.props,_,t),text:s?.text||"",subText:l?.text||"",bodyText:c?.text||""}});return ot(vtt,{...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}=ppt(e,C,r,R),i=hpt(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}=ppt(a,C,i,t),u=hpt(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(Vdt,{...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=hpt(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}=ppt(n,C,a,t);return{...hpt(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(ipt,{...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=hpt(a?.props,_,R);return ot(_dt,{moleculeId:t,configurationItemInfo:B,...e})}case"link":{const e={text:u?.text,link:u?.link},r=Object.keys(e),{text:o,link:n}=ppt(e,C,r,R),i=n,s=hpt(a?.props,_,R);return ot(Ldt,{moleculeId:t,...s,link:i,type:i?.type,src:V?void 0:w7e(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}=ppt(e,C,r,R),n=hpt(a?.props,_,R);return ot(Ldt,{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}=ppt(e,C,r,R),i=hpt(a?.props,_,R);return ot(cpt,{...i,moleculeId:t,poster:n?.imageFile?.url,src:o?.videoSource??o?.videoFile?.url??"",configurationItemInfo:B})}case"badge":{const e=hpt(a?.props,_,R);return ot(wtt,{...e,configurationItemInfo:B})}case"alert":{const e={text:u?.text,subText:u?.subText},t=Object.keys(e),{text:r,subText:o}=ppt(e,C,t,R),n=hpt(a?.props,_,R);return ot(xtt,{text:r?.text||"",subText:o?.text||"",...n,configurationItemInfo:B})}case"chip":{const e={text:u?.text},t=Object.keys(e),{text:r}=ppt(e,C,t,R),o=hpt(a?.props,_,R);return ot(Dtt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(Idt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(Qdt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(Hdt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(jtt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(_tt,{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}=ppt(e,C,t,R),l=hpt(a?.props,_,R);return ot(Jdt,{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}=ppt(e,C,o,R),c=hpt(a?.props,_,R);return ot(apt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(tpt,{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}=ppt(e,C,o,R),d=hpt(a?.props,_,R);return ot(Wnt,{dateAdapter:qot,children:ot(kdt,{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}=ppt(e,C,t,R),c=hpt(a?.props,_,R);return ot(Wnt,{dateAdapter:qot,children:ot(lpt,{...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}=ppt(e,C,t,R),c=hpt(a?.props,_,R),d="select_display_field"===r;return ot(ept,{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}=ppt(e,C,r,R),i=hpt(a?.props,_,R);return ot(Cdt,{...i,src:o?.imageSource||o?.imageFile?.url||o?.imageFile?.id||"",onClick:()=>x7e(n)?M?.({link:n?.internalLink||""}):g7e(n?.externalLink),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}=ppt(e,C,r,R),i=hpt(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=hpt(a?.props,_,R);return ot(btt,{...e,sourceDataModelField:T,configurationItemInfo:B})}case"drawer":{const e={text:u?.text,disabled:u?.disabled},r=Object.keys(e),{text:o,disabled:n}=ppt(e,C,r,R),i=hpt(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=ppt(a,C,i,t),l=hpt(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(Fdt,{...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=hpt(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=ppt(a,C,i,t),l=hpt(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(rpt,{...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}=ppt(e,C,o,R),c=hpt(a?.props,_,R);return ot(Mtt,{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}=ppt(e,C,o,R),d=hpt(a?.props,_,R);return ot(Ctt,{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}=ppt(e,C,t,R),s=hpt(a?.props,_,R);return ot(rst,{...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."})}})()},mpt=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(dpt,{additionalInfo:`molecule: ${t.id}`,children:ot(fpt,{...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(dpt,{additionalInfo:`form: ${t.id}`,children:ot(_pt,{item:t,activeChildrenIds:y,formData:o,setFormData:n,isMobile:a})}):ot(dpt,{additionalInfo:`container: ${t.id}`,children:ot(wpt,{...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(mpt,{item:e,parentId:e.id,formData:o,setFormData:n,isMobile:a,tabsProps:r,nestedPathSegments:s},e.id))})}):null}),ypt=({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(mpt,{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}))}})]})]})})},gpt=e=>e&&"object"==typeof e&&"value"in e&&!Array.isArray(e)?e.value:e,vpt=e=>{const t={};for(const[r,o]of Object.entries(e))t[r]=gpt(o);return t},xpt=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:vpt(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:vpt(l)};return ot(pt,{value:u,children:o?o(void 0,r):r})}),bpt={dots:!0,infinite:!1,autoplay:!1,autoplaySpeed:5e3,arrows:!0,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,swipeToSlide:!0},wpt=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"}`,A=co`
|
|
1029
1029
|
display: flex;
|
|
1030
1030
|
${j};
|
|
1031
1031
|
${htt(N?.enableBackgroundImage,k?.backgroundImage?.imageFile?.url)}
|