@zealicsolutions/web-ui 1.0.140-beta.220 → 1.0.140-beta.222
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/helpers/utils.d.ts +20 -7
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/_virtual/index3.js +1 -1
- package/dist/esm/_virtual/index4.js +1 -1
- package/dist/esm/helpers/utils.d.ts +20 -7
- package/dist/esm/helpers/utils.js +1 -1
- package/dist/esm/helpers/utils.js.map +1 -1
- package/dist/esm/molecules/MoleculeSkeletons/MoleculeSkeletons.js +1 -1
- package/dist/esm/molecules/MoleculeSkeletons/MoleculeSkeletons.js.map +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Accordion/Accordion.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Menu/Menu.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/MenuList/MenuList.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Select/SelectInput.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/SpeedDial/SpeedDial.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/Tabs/Tabs.js +1 -1
- package/dist/esm/node_modules/@mui/material/esm/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/dist/esm/node_modules/@mui/material/node_modules/react-is/index.js +1 -1
- package/dist/esm/node_modules/classnames/index.js +1 -1
- package/dist/esm/node_modules/react-slick/lib/arrows.js +1 -1
- package/dist/esm/node_modules/react-slick/lib/dots.js +1 -1
- package/dist/esm/node_modules/react-slick/lib/inner-slider.js +1 -1
- package/dist/esm/node_modules/react-slick/lib/track.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -802,7 +802,7 @@
|
|
|
802
802
|
right: ${e["4XL"]}px;
|
|
803
803
|
cursor: pointer;
|
|
804
804
|
`};
|
|
805
|
-
`,L7e="webpageId",B7e="applicationId",V7e="viewApplicationId",$7e="selected-webpage-id",H7e="selectedWebpageId",q7e=(e,t)=>{if(!t||"string"!=typeof t)return"";const r=t.match(new RegExp(`[?&]${e}=([^&]*)`));return r?decodeURIComponent(r[1]):""},W7e=(e,t,r)=>{const o=t||window.location.href,n=q7e("rwoContext",o);if(n)try{const t=LGe(n);if(!t)return;if(r){const o=t[r];if(!o)return U7e(t,e,r);const n=o[e];if(n?.rwoRecordId)return n.rwoRecordId;const a=o.rwoRecordId;return a||void 0}return U7e(t,e,void 0)}catch(a){return}},U7e=(e,t,r)=>{const o=e.selectedWebpageId;if(o&&r&&o!==r)return;const n=e[t];if(n?.rwoRecordId)return n.rwoRecordId;const a=e.rwoRecordId;return a||void 0},G7e=(e,t,r=!1)=>{if(!t)return e;const o=q7e(L7e,t),n=q7e(B7e,t);if(!o||!n)return e;const a=new URLSearchParams(e.toString());return r?(e.has(V7e)&&a.set(V7e,n),e.has($7e)&&a.set($7e,o)):(e.has(H7e)&&a.set(H7e,o),a.set(H7e,o)),a},K7e=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){N6e({message:`Failed to download the file: ${r}`,type:"error"})}},Y7e=e=>{if(!e)return;if("object"==typeof e&&"type"in e){const t=e;if(X7e(t))return;return Z7e(t.externalLink)}return Z7e(e)},Z7e=e=>{if(!e||"string"!=typeof e)return;if(UKe.test(e))try{const t=window.open(e,"_blank","noopener,noreferrer");if(t){[20,120,300,600].forEach(e=>{setTimeout(()=>{try{t.blur()}catch(e){}try{window.focus()}catch(e){}},e)})}}catch(t){}else try{console.error("navigateToExternalLink: invalid external URL",{url:e})}catch(t){}},X7e=e=>{if(!e)return!1;const t=e?.type||e?.linkType;return"internal_link"===t||"internalLink"===t},Q7e=e=>!!e&&("data_driven_link"===e.type||"dataDrivenLink"===e.type),J7e=(e,t)=>{if(!Q7e(e))return null;if(e.dataDrivenLinkType&&(e.internalLinkFieldId||e.externalLinkFieldId)){const r=t?.[e.dataDrivenLinkType],o=(e=>{if(null==e)return null;if("object"==typeof e&&null!==e){const t=e;if("code"in t&&"string"==typeof t.code){const e=t.code.toLowerCase();if("internal"===e||"internal_link"===e)return"internal";if("external"===e||"external_link"===e)return"external"}if("label"in t&&"string"==typeof t.label){const e=t.label.toLowerCase();if("internal"===e||"internal link"===e)return"internal";if("external"===e||"external link"===e)return"external"}if("value"in t&&"string"==typeof t.value){const e=t.value.toLowerCase();if("internal"===e||"internal_link"===e||"internal link"===e)return"internal";if("external"===e||"external_link"===e||"external link"===e)return"external"}}if("string"==typeof e){const t=e.toLowerCase();if("internal"===t||"internal_link"===t||"internal link"===t)return"internal";if("external"===t||"external_link"===t||"external link"===t)return"external"}return null})(r);if(!o)return e.dataDrivenLinkType,null;const n="external"===o;if("internal"===o){if(!e.internalLinkFieldId)return null;const r=t?.[e.internalLinkFieldId],o=(e=>{if(null!=e){if("object"==typeof e&&null!==e){const t=e;if("id"in t&&("string"==typeof t.id||"number"==typeof t.id))return String(t.id)}return"string"==typeof e?e:void 0}})(r);if(!o)return e.internalLinkFieldId,null;const n=e.rwoRecordIdFieldId?(e=>{if(null!=e){if("object"==typeof e&&null!==e){const t=e;if("id"in t&&("string"==typeof t.id||"number"==typeof t.id))return String(t.id);if("value"in t&&("string"==typeof t.value||"number"==typeof t.value))return String(t.value)}return"string"==typeof e?e:"number"==typeof e?String(e):void 0}})(t?.[e.rwoRecordIdFieldId]):void 0;return{destination:`?internalTaskTagId=${encodeURIComponent(o)}`,isExternal:!1,recordId:n,webpageAlias:o}}if(n){if(!e.externalLinkFieldId)return null;const r=t?.[e.externalLinkFieldId],o=(e=>{if(null!=e){if("object"==typeof e&&null!==e){const t=e;if("value"in t&&("string"==typeof t.value||"number"==typeof t.value))return String(t.value)}return"string"==typeof e?e:void 0}})(r);return o?UKe.test(o)?{destination:o,isExternal:!0,recordId:void 0,webpageAlias:void 0}:(console.error("Data-driven link: invalid external URL",{externalLinkFieldId:e.externalLinkFieldId,url:o}),null):(console.error("Data-driven link: could not extract URL from externalLinkFieldId",{externalLinkFieldId:e.externalLinkFieldId,rawValue:r}),null)}}return null},e9e=(e,t)=>{if(!e)return;const r=new URL(window.location.href),o=G7e(r.searchParams,e,t);return r.search=o.toString(),r.toString()},t9e=(e,t)=>{if(e)return X7e(e)?e9e(e?.internalLink,t):e?.externalLink},r9e=e=>{if(!e)return null;try{const t=e.startsWith("http")?e:new URL(e,window.location.origin).toString();return new URL(t)}catch(t){return null}},o9e=e=>{if(!e)return;const t=r9e(e);if(t){const e=t.searchParams,r=e.get(L7e)||e.get(H7e)||e.get($7e);if(r)return r;const o=(t.pathname||"").split("/").map(e=>e.trim()).filter(e=>e.length>0);for(const t of o){const[e,r]=t.split("=");if(e&&null!=r&&(e===L7e||e===H7e||e===$7e))return decodeURIComponent(r)}}const r=e.split("/").map(e=>e.trim()).filter(e=>e.length>0);for(const o of r){const[e,t]=o.split("=");if(e&&null!=t&&(e===L7e||e===H7e||e===$7e))return decodeURIComponent(t)}};var n9e={},a9e={},i9e={},s9e={};!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}}(s9e);var l9e=/^\s+|\s+$/g,c9e=/^[-+]0x[0-9a-f]+$/i,u9e=/^0b[01]+$/i,d9e=/^0o[0-7]+$/i,p9e=parseInt,h9e="object"==typeof Q&&Q&&Q.Object===Object&&Q,f9e="object"==typeof self&&self&&self.Object===Object&&self,m9e=h9e||f9e||Function("return this")(),y9e=Object.prototype.toString,g9e=Math.max,v9e=Math.min,x9e=function(){return m9e.Date.now()};function b9e(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w9e(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==y9e.call(e)}(e))return NaN;if(b9e(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b9e(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l9e,"");var r=u9e.test(e);return r||d9e.test(e)?p9e(e.slice(2),r?2:8):c9e.test(e)?NaN:+e}var k9e=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=x9e();if(f(e))return y(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?v9e(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=x9e(),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=w9e(t)||0,b9e(r)&&(u=!!r.leading,a=(d="maxWait"in r)?g9e(w9e(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(x9e())},g},_9e={},C9e={};!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}(C9e),Object.defineProperty(_9e,"__esModule",{value:!0}),_9e.checkSpecKeys=_9e.checkNavigable=_9e.changeSlide=_9e.canUseDOM=_9e.canGoNext=void 0,_9e.clamp=T9e,_9e.extractObject=void 0,_9e.filterSettings=function(e){return ret.reduce(function(t,r){return e.hasOwnProperty(r)&&(t[r]=e[r]),t},{})},_9e.validSettings=_9e.swipeStart=_9e.swipeMove=_9e.swipeEnd=_9e.slidesOnRight=_9e.slidesOnLeft=_9e.slideHandler=_9e.siblingDirection=_9e.safePreventDefault=_9e.lazyStartIndex=_9e.lazySlidesOnRight=_9e.lazySlidesOnLeft=_9e.lazyEndIndex=_9e.keyHandler=_9e.initializedState=_9e.getWidth=_9e.getTrackLeft=_9e.getTrackCSS=_9e.getTrackAnimateCSS=_9e.getTotalSlides=_9e.getSwipeDirection=_9e.getSlideCount=_9e.getRequiredLazySlides=_9e.getPreClones=_9e.getPostClones=_9e.getOnDemandLazySlides=_9e.getNavigableIndexes=_9e.getHeight=void 0;var M9e=D9e(l.default),S9e=D9e(C9e);function D9e(e){return e&&e.__esModule?e:{default:e}}function O9e(e){return O9e="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},O9e(e)}function P9e(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 E9e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P9e(Object(r),!0).forEach(function(t){j9e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P9e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function j9e(e,t,r){return t=function(e){var t=function(e,t){if("object"!=O9e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=O9e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O9e(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 T9e(e,t,r){return Math.max(t,Math.min(e,r))}var N9e=_9e.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},R9e=_9e.getOnDemandLazySlides=function(e){for(var t=[],r=I9e(e),o=F9e(e),n=r;n<o;n++)e.lazyLoadedList.indexOf(n)<0&&t.push(n);return t};_9e.getRequiredLazySlides=function(e){for(var t=[],r=I9e(e),o=F9e(e),n=r;n<o;n++)t.push(n);return t};var I9e=_9e.lazyStartIndex=function(e){return e.currentSlide-A9e(e)},F9e=_9e.lazyEndIndex=function(e){return e.currentSlide+z9e(e)},A9e=_9e.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},z9e=_9e.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},L9e=_9e.getWidth=function(e){return e&&e.offsetWidth||0},B9e=_9e.getHeight=function(e){return e&&e.offsetHeight||0},V9e=_9e.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"},$9e=_9e.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};_9e.extractObject=function(e,t){var r={};return t.forEach(function(t){return r[t]=e[t]}),r},_9e.initializedState=function(e){var t,r=M9e.default.Children.count(e.children),o=e.listRef,n=Math.ceil(L9e(o)),a=e.trackRef&&e.trackRef.node,i=Math.ceil(L9e(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&&B9e(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=R9e(E9e(E9e({},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},_9e.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:T9e(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):!$9e(e)&&g>l?g=f=l:c&&g>=i?(g=n?i:i-1,f=n?0:i-1):g>=i&&(f=g-i,n?i%u!==0&&(f=0):f=i-d),!n&&g+d>=i&&(f=i-d),m=Y9e(E9e(E9e({},e),{},{slideIndex:g})),y=Y9e(E9e(E9e({},e),{},{slideIndex:f})),n||(m===y&&(g=f),m=y),s&&(h=h.concat(R9e(E9e(E9e({},e),{},{currentSlide:g})))),p?(v={animating:!0,currentSlide:f,trackStyle:K9e(E9e(E9e({},e),{},{left:m})),lazyLoadedList:h,targetSlide:b},x={animating:!1,currentSlide:f,trackStyle:G9e(E9e(E9e({},e),{},{left:y})),swipeLeft:null,targetSlide:b}):v={currentSlide:f,trackStyle:G9e(E9e(E9e({},e),{},{left:y})),lazyLoadedList:h,targetSlide:b};return{state:v,nextState:x}},_9e.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=J9e(E9e(E9e({},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},_9e.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":""},_9e.swipeStart=function(e,t,r){return"IMG"===e.target.tagName&&N9e(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}}},_9e.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 N9e(e);n&&a&&i&&N9e(e);var w,k={},_=Y9e(t);g.curX=e.touches?e.touches[0].pageX:e.clientX,g.curY=e.touches?e.touches[0].pageY:e.clientY,g.swipeLength=Math.round(Math.sqrt(Math.pow(g.curX-g.startX,2)));var C=Math.round(Math.sqrt(Math.pow(g.curY-g.startY,2)));if(!i&&!h&&C>10)return{scrolling:!0};i&&(g.swipeLength=C);var M=(s?-1:1)*(g.curX>g.startX?1:-1);i&&(M=g.curY>g.startY?1:-1);var S=Math.ceil(f/m),D=V9e(t.touchObject,i),O=g.swipeLength;return y||(0===l&&("right"===D||"down"===D)||l+1>=S&&("left"===D||"up"===D)||!$9e(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=E9e(E9e({},k),{},{touchObject:g,swipeLeft:w,trackStyle:G9e(E9e(E9e({},t),{},{left:w}))}),Math.abs(g.curX-g.startX)<.8*Math.abs(g.curY-g.startY)?k:(g.swipeLength>10&&(k.swiping=!0,N9e(e)),k)}},_9e.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&&N9e(e),{};var m=s?l/i:a/i,y=V9e(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;N9e(e),d&&d(y);var b=f?h:p;switch(y){case"left":case"up":x=b+W9e(t),v=c?q9e(t,x):x,g.currentDirection=0;break;case"right":case"down":x=b-W9e(t),v=c?q9e(t,x):x,g.currentDirection=1;break;default:v=b}g.triggerSlideHandler=v}else{var w=Y9e(t);g.trackStyle=K9e(E9e(E9e({},t),{},{left:w}))}return g};var H9e=_9e.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},q9e=_9e.checkNavigable=function(e,t){var r=H9e(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},W9e=_9e.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+B9e(o)/2>-1*e.swipeLeft)return r=o,!1}else if(o.offsetLeft-t+L9e(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=_9e.checkSpecKeys=function(e,t){return t.reduce(function(t,r){return t&&e.hasOwnProperty(r)},!0)?null:console.error("Keys Missing:",e)},G9e=_9e.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=Q9e(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=E9e(E9e({},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},K9e=_9e.getTrackAnimateCSS=function(e){U9e(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=G9e(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Y9e=_9e.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=-Z9e(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+Z9e(e),t=(r=v&&v.childNodes[g])?-1*r.offsetLeft:0,!0===i){g=a?o+Z9e(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},Z9e=_9e.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},X9e=_9e.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},Q9e=_9e.getTotalSlides=function(e){return 1===e.slideCount?1:Z9e(e)+e.slideCount+X9e(e)},J9e=_9e.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+eet(e)?"left":"right":e.targetSlide<e.currentSlide-tet(e)?"right":"left"},eet=_9e.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},tet=_9e.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};_9e.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};var ret=_9e.validSettings=Object.keys(S9e.default);var oet={};Object.defineProperty(oet,"__esModule",{value:!0}),oet.Track=void 0;var net=set(l.default),aet=set(q5e.exports),iet=_9e;function set(e){return e&&e.__esModule?e:{default:e}}function cet(e){return cet="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},cet(e)}function uet(){return uet=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},uet.apply(this,arguments)}function det(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,bet(o.key),o)}}function pet(e,t){return pet=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pet(e,t)}function het(e){var t=met();return function(){var r,o=yet(e);if(t){var n=yet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===cet(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fet(e)}(this,r)}}function fet(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function met(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(met=function(){return!!e})()}function yet(e){return yet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yet(e)}function get(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 vet(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?get(Object(r),!0).forEach(function(t){xet(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):get(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xet(e,t,r){return(t=bet(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bet(e){var t=function(e,t){if("object"!=cet(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=cet(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cet(t)?t:String(t)}var wet=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)}},ket=function(e,t){return e.key||t},_et=function(e){var t,r=[],o=[],n=[],a=net.default.Children.count(e.children),i=(0,iet.lazyStartIndex)(e),s=(0,iet.lazyEndIndex)(e);return net.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:net.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}(vet(vet({},e),{},{index:c})),h=u.props.className||"",f=wet(vet(vet({},e),{},{index:c}));if(r.push(net.default.cloneElement(u,{key:"original"+ket(u,c),"data-index":c,className:(0,aet.default)(f,h),tabIndex:"-1","aria-hidden":!f["slick-active"],style:vet(vet({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,iet.getPreClones)(e)&&((t=-m)>=i&&(u=l),f=wet(vet(vet({},e),{},{index:t})),o.push(net.default.cloneElement(u,{key:"precloned"+ket(u,t),"data-index":t,tabIndex:"-1",className:(0,aet.default)(f,h),"aria-hidden":!f["slick-active"],style:vet(vet({},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=wet(vet(vet({},e),{},{index:t})),n.push(net.default.cloneElement(u,{key:"postcloned"+ket(u,t),"data-index":t,tabIndex:"-1",className:(0,aet.default)(f,h),"aria-hidden":!f["slick-active"],style:vet(vet({},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)};oet.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&&pet(e,t)}(n,net["default"].PureComponent);var e,t,r,o=het(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 xet(fet(e=o.call.apply(o,[this].concat(r))),"node",null),xet(fet(e),"handleRef",function(t){e.node=t}),e}return e=n,(t=[{key:"render",value:function(){var e=_et(this.props),t=this.props,r={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return net.default.createElement("div",uet({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},r),e)}}])&&det(e.prototype,t),r&&det(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var Cet={};function Met(e){return Met="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},Met(e)}Object.defineProperty(Cet,"__esModule",{value:!0}),Cet.Dots=void 0;var Det=Eet(l.default),Oet=Eet(q5e.exports),Pet=_9e;function Eet(e){return e&&e.__esModule?e:{default:e}}function jet(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 Tet(e,t,r){return(t=Ret(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Net(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,Ret(o.key),o)}}function Ret(e){var t=function(e,t){if("object"!=Met(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=Met(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Met(t)?t:String(t)}function Iet(e,t){return Iet=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Iet(e,t)}function Fet(e){var t=Aet();return function(){var r,o=zet(e);if(t){var n=zet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===Met(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 Aet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Aet=function(){return!!e})()}function zet(e){return zet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zet(e)}Cet.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&&Iet(e,t)}(n,Det["default"].PureComponent);var e,t,r,o=Fet(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,Pet.clamp)(f,0,l-1),y=m-(i-1),g=a?y:(0,Pet.clamp)(y,0,l-1),v=(0,Oet.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(Det.default.createElement("li",{key:h,className:v},Det.default.cloneElement(this.props.customPaging(h),{onClick:b})))}return Det.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?jet(Object(r),!0).forEach(function(t){Tet(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jet(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:this.props.dotsClass},d))}}],t&&Net(e.prototype,t),r&&Net(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var Let={};function Bet(e){return Bet="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},Bet(e)}Object.defineProperty(Let,"__esModule",{value:!0}),Let.PrevArrow=Let.NextArrow=void 0;var Vet=qet(l.default),$et=qet(q5e.exports),Het=_9e;function qet(e){return e&&e.__esModule?e:{default:e}}function Wet(){return Wet=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},Wet.apply(this,arguments)}function Uet(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 Get(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uet(Object(r),!0).forEach(function(t){Ket(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uet(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ket(e,t,r){return(t=Qet(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zet(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,Qet(o.key),o)}}function Xet(e,t,r){return t&&Zet(e.prototype,t),r&&Zet(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qet(e){var t=function(e,t){if("object"!=Bet(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=Bet(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bet(t)?t:String(t)}function Jet(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&&ett(e,t)}function ett(e,t){return ett=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ett(e,t)}function ttt(e){var t=rtt();return function(){var r,o=ott(e);if(t){var n=ott(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===Bet(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 rtt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rtt=function(){return!!e})()}function ott(e){return ott=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ott(e)}Let.PrevArrow=function(){Jet(t,Vet["default"].PureComponent);var e=ttt(t);function t(){return Yet(this,t),e.apply(this,arguments)}return Xet(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,$et.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?Vet.default.cloneElement(this.props.prevArrow,Get(Get({},r),o)):Vet.default.createElement("button",Wet({key:"0",type:"button"},r)," ","Previous")}}]),t}(),Let.NextArrow=function(){Jet(t,Vet["default"].PureComponent);var e=ttt(t);function t(){return Yet(this,t),e.apply(this,arguments)}return Xet(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,Het.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var r={key:"1","data-role":"none",className:(0,$et.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?Vet.default.cloneElement(this.props.nextArrow,Get(Get({},r),o)):Vet.default.createElement("button",Wet({key:"1",type:"button"},r)," ","Next")}}]),t}();var ntt=ee(u7e);Object.defineProperty(i9e,"__esModule",{value:!0}),i9e.InnerSlider=void 0;var att=ftt(l.default),itt=ftt(s9e),stt=ftt(k9e),ltt=ftt(q5e.exports),ctt=_9e,utt=oet,dtt=Cet,ptt=Let,htt=ftt(ntt);function ftt(e){return e&&e.__esModule?e:{default:e}}function mtt(e){return mtt="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},mtt(e)}function ytt(){return ytt=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},ytt.apply(this,arguments)}function gtt(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 vtt(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 xtt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vtt(Object(r),!0).forEach(function(t){Stt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vtt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function btt(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,Dtt(o.key),o)}}function wtt(e,t){return wtt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wtt(e,t)}function ktt(e){var t=Ctt();return function(){var r,o=Mtt(e);if(t){var n=Mtt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===mtt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _tt(e)}(this,r)}}function _tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ctt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ctt=function(){return!!e})()}function Mtt(e){return Mtt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mtt(e)}function Stt(e,t,r){return(t=Dtt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dtt(e){var t=function(e,t){if("object"!=mtt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=mtt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mtt(t)?t:String(t)}i9e.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&&wtt(e,t)}(n,att["default"].Component);var e,t,r,o=ktt(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),Stt(_tt(t=o.call(this,e)),"listRefHandler",function(e){return t.list=e}),Stt(_tt(t),"trackRefHandler",function(e){return t.track=e}),Stt(_tt(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,ctt.getHeight)(e)+"px"}}),Stt(_tt(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,ctt.getOnDemandLazySlides)(xtt(xtt({},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=xtt({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 htt.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)}),Stt(_tt(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()}),Stt(_tt(t),"componentDidUpdate",function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var r=(0,ctt.getOnDemandLazySlides)(xtt(xtt({},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=xtt(xtt({listRef:t.list,trackRef:t.track},t.props),t.state),n=t.didPropsChange(e);n&&t.updateState(o,n,function(){t.state.currentSlide>=att.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:att.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),Stt(_tt(t),"onWindowResized",function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,stt.default)(function(){return t.resizeWindow(e)},50),t.debouncedResize()}),Stt(_tt(t),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var r=xtt(xtt({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}}),Stt(_tt(t),"updateState",function(e,r,o){var n=(0,ctt.initializedState)(e);e=xtt(xtt(xtt({},e),n),{},{slideIndex:n.currentSlide});var a=(0,ctt.getTrackLeft)(e);e=xtt(xtt({},e),{},{left:a});var i=(0,ctt.getTrackCSS)(e);(r||att.default.Children.count(t.props.children)!==att.default.Children.count(e.children))&&(n.trackStyle=i),t.setState(n,o)}),Stt(_tt(t),"ssrInit",function(){if(t.props.variableWidth){var e=0,r=0,o=[],n=(0,ctt.getPreClones)(xtt(xtt(xtt({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,ctt.getPostClones)(xtt(xtt(xtt({},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=att.default.Children.count(t.props.children),p=xtt(xtt(xtt({},t.props),t.state),{},{slideCount:d}),h=(0,ctt.getPreClones)(p)+(0,ctt.getPostClones)(p)+d,f=100/t.props.slidesToShow*h,m=100/h,y=-m*((0,ctt.getPreClones)(p)+t.state.currentSlide)*f/100;return t.props.centerMode&&(y+=(100-m*f/100)/2),{slideWidth:m+"%",trackStyle:{width:f+"%",left:y+"%"}}}),Stt(_tt(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()}))})}),Stt(_tt(t),"progressiveLazyLoad",function(){for(var e=[],r=xtt(xtt({},t.props),t.state),o=t.state.currentSlide;o<t.state.slideCount+(0,ctt.getPostClones)(r);o++)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}for(var n=t.state.currentSlide-1;n>=-(0,ctt.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)}),Stt(_tt(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,ctt.slideHandler)(xtt(xtt(xtt({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=gtt(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))})}}),Stt(_tt(t),"changeSlide",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=xtt(xtt({},t.props),t.state),n=(0,ctt.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()}}),Stt(_tt(t),"clickHandler",function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0}),Stt(_tt(t),"keyHandler",function(e){var r=(0,ctt.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==r&&t.changeSlide({message:r})}),Stt(_tt(t),"selectHandler",function(e){t.changeSlide(e)}),Stt(_tt(t),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),Stt(_tt(t),"enableBodyScroll",function(){window.ontouchmove=null}),Stt(_tt(t),"swipeStart",function(e){t.props.verticalSwiping&&t.disableBodyScroll();var r=(0,ctt.swipeStart)(e,t.props.swipe,t.props.draggable);""!==r&&t.setState(r)}),Stt(_tt(t),"swipeMove",function(e){var r=(0,ctt.swipeMove)(e,xtt(xtt(xtt({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));r&&(r.swiping&&(t.clickable=!1),t.setState(r))}),Stt(_tt(t),"swipeEnd",function(e){var r=(0,ctt.swipeEnd)(e,xtt(xtt(xtt({},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())}}),Stt(_tt(t),"touchEnd",function(e){t.swipeEnd(e),t.clickable=!0}),Stt(_tt(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),Stt(_tt(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),Stt(_tt(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))}),Stt(_tt(t),"play",function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,ctt.canGoNext)(xtt(xtt({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)}),Stt(_tt(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"})}),Stt(_tt(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"})}),Stt(_tt(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),Stt(_tt(t),"onDotsLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),Stt(_tt(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),Stt(_tt(t),"onTrackLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),Stt(_tt(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),Stt(_tt(t),"onSlideBlur",function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")}),Stt(_tt(t),"render",function(){var e,r,o,n=(0,ltt.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),a=xtt(xtt({},t.props),t.state),i=(0,ctt.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=xtt(xtt({},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,ctt.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),c=t.props.pauseOnDotsHover;l=xtt(xtt({},l),{},{clickHandler:t.changeSlide,onMouseEnter:c?t.onDotsLeave:null,onMouseOver:c?t.onDotsOver:null,onMouseLeave:c?t.onDotsLeave:null}),e=att.default.createElement(dtt.Dots,l)}var u=(0,ctt.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);u.clickHandler=t.changeSlide,t.props.arrows&&(r=att.default.createElement(ptt.PrevArrow,u),o=att.default.createElement(ptt.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=xtt(xtt({},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}),att.default.createElement("div",y,t.props.unslick?"":r,att.default.createElement("div",ytt({ref:t.listRefHandler},m),att.default.createElement(utt.Track,ytt({ref:t.trackRefHandler},i),t.props.children)),t.props.unslick?"":o,t.props.unslick?"":e)}),t.list=null,t.track=null,t.state=xtt(xtt({},itt.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:att.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var r=t.ssrInit();return t.state=xtt(xtt({},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"!==mtt(e[n])&&"function"!=typeof e[n]&&!isNaN(e[n])&&e[n]!==this.props[n]){t=!0;break}}return t||att.default.Children.count(this.props.children)!==att.default.Children.count(e.children)}}],t&&btt(e.prototype,t),r&&btt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var Ott,Ptt,Ett,jtt,Ttt,Ntt,Rtt,Itt,Ftt,Att,ztt=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()},Ltt=ztt,Btt=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=Ltt(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",n<r.length-1&&(t+=" and ")}),t},Vtt=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(r,o){t+=Btt(r),o<e.length-1&&(t+=", ")}),t):Btt(e)};function $tt(){if(jtt)return Ett;return jtt=1,Ett={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++);}},Ett}function Htt(){if(Ntt)return Ttt;Ntt=1;var e=function(){if(Ptt)return Ott;function e(e){this.options=e,!e.deferSetup&&this.setup()}return Ptt=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}},Ott=e}(),t=$tt().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]()})}},Ttt=r}function qtt(){if(Att)return Ftt;Att=1;var e=function(){if(Itt)return Rtt;Itt=1;var e=Htt(),t=$tt(),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}},Rtt=a}();return Ftt=new e}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(l.default),r=i9e,o=i(Vtt),n=i(C9e),a=_9e;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)()&&qtt();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)}(a9e),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,r=(t=a9e)&&t.__esModule?t:{default:t};e.default=r.default}(n9e);var Wtt=J(n9e);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)})},Gtt=({mode:t="onChange",state:r,containerType:o,children:n})=>{const a=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}=zr(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:i}=GC(),{formId:s="",routing:c,prefillData:u,loadRecordData:d,isLoadingData:p,localStateObject:h}=IC(),f=e.useRef(null),m=e.useRef(!1),y=e.useRef(null),g=e.useRef(!1),v=e.useRef(!1),x=e.useMemo(()=>!!s&&(!c?.organismIdFromUrl||c.organismIdFromUrl===s),[s,c?.organismIdFromUrl]),b=c?.rwoRecordIdFromUrl||null,w=e.useCallback((e,t)=>{if(!x)return;if("filter"===o)return;const r=(e=>{if(!e)return null;if("object"!=typeof e)return null;if(0===Object.keys(e).length)return null;try{return JSON.stringify(e)}catch{return null}})(e);r&&f.current!==r&&(a.reset(e,{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),f.current=r)},[x,a,o,s]);return e.useEffect(()=>{if(r){if("default"===r)return a.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),a.clearErrors(),void(f.current=null);if("required_error"===r)return a.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),f.current=null,void a.trigger();if("validation_error"===r){const e=setTimeout(async()=>{a.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),f.current=null,Utt(a.control._fields,({name:e,pattern:t})=>{t?.value instanceof RegExp&&".+"===t.value.source&&""===t.value.flags||a.setError(e,{type:"required",message:"object"==typeof t&&t?.message||"Invalid value"})})},0);return()=>clearTimeout(e)}}},[r,a]),e.useEffect(()=>{if(x&&s&&"filter"===o)try{const e=new URLSearchParams(window.location.search),t=e.get("rwoContext");if(!t)return void(v.current=!1);const r=JSON.parse(atob(t)),o=e.get("selectedWebpageId");let n;if(o&&r[o]){n=r[o][s]}else n=r[s];if(!n)return void(v.current=!1);const i=Object.entries(n).filter(([e])=>"rwoRecordId"!==e&&"prefillData"!==e&&"useWebpageContext"!==e);if(0===i.length)return void(v.current=!1);const l=JSON.stringify(i.sort());v.current!==l&&(i.forEach(([e,t])=>{a.setValue(e,t)}),v.current=l)}catch(e){}},[x,s,a,o]),e.useEffect(()=>{a.formState.isDirty&&!g.current&&(g.current=!0,i({id:s,type:"started"}))},[a.formState.isDirty,s,i]),e.useEffect(()=>{b!==y.current&&(f.current=null,g.current=!1,y.current=b)},[b]),e.useEffect(()=>{m.current=Boolean(p)},[p]),e.useEffect(()=>{if(x&&"filter"!==o){if(u&&"object"==typeof u){const e="data"in u&&"object"==typeof u.data?u.data:u;if(Object.keys(e).length>0)return void w(e,"prefillData")}if(!m.current&&h&&"object"==typeof h){const e="data"in h&&"object"==typeof h.data?h.data:h;Object.keys(e).length>0&&w(e,"localStateObject")}}},[x,u,h,w,s,o]),e.useEffect(()=>{x&&b&&"function"==typeof d&&"filter"!==o&&(p||u&&"object"==typeof u&&Object.keys(u).length>0||null===f.current&&(m.current=!0,(async()=>{try{const e=await d({rwoRecordId:b});e&&"object"==typeof e&&Object.keys(e).length>0&&w(e,"loadRecordData")}catch{}finally{m.current=!1}})()))},[x,b,d,w,p,u,s,o]),ot(Gt,{...a,children:ot(HC,{children:ot(Zr,{children:n})})})},Ktt=(e,t)=>e&&t[e]?`${t[e]}px`:e,Ytt=(e,t)=>{if(e&&t)return bo`
|
|
805
|
+
`,L7e="webpageId",B7e="applicationId",V7e="viewApplicationId",$7e="selected-webpage-id",H7e="selectedWebpageId",q7e=(e,t)=>{if(!t||"string"!=typeof t)return"";const r=t.match(new RegExp(`[?&]${e}=([^&]*)`));return r?decodeURIComponent(r[1]):""},W7e=(e,t,r)=>{const o=t||window.location.href,n=q7e("rwoContext",o);if(n)try{const t=LGe(n);if(!t)return;if(r){const o=t[r];if(!o)return U7e(t,e,r);const n=o[e];if(n?.rwoRecordId)return n.rwoRecordId;const a=o.rwoRecordId;return a||void 0}return U7e(t,e,void 0)}catch(a){return}},U7e=(e,t,r)=>{const o=e.selectedWebpageId;if(o&&r&&o!==r)return;const n=e[t];if(n?.rwoRecordId)return n.rwoRecordId;const a=e.rwoRecordId;return a||void 0},G7e=(e,t,r=!1)=>{if(!t)return e;const o=q7e(L7e,t),n=q7e(B7e,t);if(!o||!n)return e;const a=new URLSearchParams(e.toString());return r?(e.has(V7e)&&a.set(V7e,n),e.has($7e)&&a.set($7e,o)):(e.has(H7e)&&a.set(H7e,o),a.set(H7e,o)),a},K7e=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){N6e({message:`Failed to download the file: ${r}`,type:"error"})}},Y7e=e=>{if(!e)return;if("object"==typeof e&&"type"in e){const t=e;if(X7e(t))return;return Z7e(t.externalLink)}return Z7e(e)},Z7e=e=>{if(!e||"string"!=typeof e)return;if(UKe.test(e))try{const t=window.open(e,"_blank","noopener,noreferrer");if(t){[20,120,300,600].forEach(e=>{setTimeout(()=>{try{t.blur()}catch(e){}try{window.focus()}catch(e){}},e)})}}catch(t){}else try{console.error("navigateToExternalLink: invalid external URL",{url:e})}catch(t){}},X7e=e=>{if(!e)return!1;const t=e?.type||e?.linkType;return"internal_link"===t||"internalLink"===t},Q7e=e=>!!e&&("data_driven_link"===e.type||"dataDrivenLink"===e.type),J7e=(e,t)=>{if(!Q7e(e))return null;if(!e.internalLinkFieldId&&!e.externalLinkFieldId)return null;let r=null;if(e.dataDrivenLinkType){const o=t?.[e.dataDrivenLinkType];null!=o&&(r=(e=>{if(null==e)return null;if("object"==typeof e&&null!==e){const t=e;if("code"in t&&"string"==typeof t.code){const e=t.code.toLowerCase();if("internal"===e||"internal_link"===e)return"internal";if("external"===e||"external_link"===e)return"external"}if("label"in t&&"string"==typeof t.label){const e=t.label.toLowerCase();if("internal"===e||"internal link"===e)return"internal";if("external"===e||"external link"===e)return"external"}if("value"in t&&"string"==typeof t.value){const e=t.value.toLowerCase();if("internal"===e||"internal_link"===e||"internal link"===e)return"internal";if("external"===e||"external_link"===e||"external link"===e)return"external"}}if("string"==typeof e){const t=e.toLowerCase();if("internal"===t||"internal_link"===t||"internal link"===t)return"internal";if("external"===t||"external_link"===t||"external link"===t)return"external"}return null})(o),r||e.dataDrivenLinkType)}if(!r){const t=!!e.internalLinkFieldId,o=!!e.externalLinkFieldId;if(o&&!t)r="external";else{if(!t||o)return null;r="internal"}}if("internal"===r){if(!e.internalLinkFieldId)return null;const r=t?.[e.internalLinkFieldId],o=(e=>{if(null!=e){if("object"==typeof e&&null!==e){const t=e;if("id"in t&&("string"==typeof t.id||"number"==typeof t.id))return String(t.id)}return"string"==typeof e?e:void 0}})(r);if(!o)return e.internalLinkFieldId,null;const n=e.rwoRecordIdFieldId?(e=>{if(null!=e){if("object"==typeof e&&null!==e){const t=e;if("id"in t&&("string"==typeof t.id||"number"==typeof t.id))return String(t.id);if("value"in t&&("string"==typeof t.value||"number"==typeof t.value))return String(t.value)}return"string"==typeof e?e:"number"==typeof e?String(e):void 0}})(t?.[e.rwoRecordIdFieldId]):void 0;return{destination:`?internalTaskTagId=${encodeURIComponent(o)}`,isExternal:!1,recordId:n,webpageAlias:o}}if("external"===r){if(!e.externalLinkFieldId)return null;const r=t?.[e.externalLinkFieldId],o=(e=>{if(null!=e){if("object"==typeof e&&null!==e){const t=e;if("value"in t&&("string"==typeof t.value||"number"==typeof t.value))return String(t.value)}return"string"==typeof e?e:void 0}})(r);return o?UKe.test(o)?{destination:o,isExternal:!0,recordId:void 0,webpageAlias:void 0}:(console.error("Data-driven link: invalid external URL",{externalLinkFieldId:e.externalLinkFieldId,url:o}),null):(console.error("Data-driven link: could not extract URL from externalLinkFieldId",{externalLinkFieldId:e.externalLinkFieldId,rawValue:r}),null)}return null},e9e=(e,t)=>{if(!e)return;const r=new URL(window.location.href),o=G7e(r.searchParams,e,t);return r.search=o.toString(),r.toString()},t9e=(e,t)=>{if(e)return X7e(e)?e9e(e?.internalLink,t):e?.externalLink},r9e=e=>{if(!e)return null;try{const t=e.startsWith("http")?e:new URL(e,window.location.origin).toString();return new URL(t)}catch(t){return null}},o9e=e=>{if(!e)return;const t=r9e(e);if(t){const e=t.searchParams,r=e.get(L7e)||e.get(H7e)||e.get($7e);if(r)return r;const o=(t.pathname||"").split("/").map(e=>e.trim()).filter(e=>e.length>0);for(const t of o){const[e,r]=t.split("=");if(e&&null!=r&&(e===L7e||e===H7e||e===$7e))return decodeURIComponent(r)}}const r=e.split("/").map(e=>e.trim()).filter(e=>e.length>0);for(const o of r){const[e,t]=o.split("=");if(e&&null!=t&&(e===L7e||e===H7e||e===$7e))return decodeURIComponent(t)}};var n9e={},a9e={},i9e={},s9e={};!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}}(s9e);var l9e=/^\s+|\s+$/g,c9e=/^[-+]0x[0-9a-f]+$/i,u9e=/^0b[01]+$/i,d9e=/^0o[0-7]+$/i,p9e=parseInt,h9e="object"==typeof Q&&Q&&Q.Object===Object&&Q,f9e="object"==typeof self&&self&&self.Object===Object&&self,m9e=h9e||f9e||Function("return this")(),y9e=Object.prototype.toString,g9e=Math.max,v9e=Math.min,x9e=function(){return m9e.Date.now()};function b9e(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w9e(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&"[object Symbol]"==y9e.call(e)}(e))return NaN;if(b9e(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b9e(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(l9e,"");var r=u9e.test(e);return r||d9e.test(e)?p9e(e.slice(2),r?2:8):c9e.test(e)?NaN:+e}var k9e=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=x9e();if(f(e))return y(e);s=setTimeout(m,function(e){var r=t-(e-l);return d?v9e(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=x9e(),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=w9e(t)||0,b9e(r)&&(u=!!r.leading,a=(d="maxWait"in r)?g9e(w9e(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(x9e())},g},_9e={},C9e={};!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}(C9e),Object.defineProperty(_9e,"__esModule",{value:!0}),_9e.checkSpecKeys=_9e.checkNavigable=_9e.changeSlide=_9e.canUseDOM=_9e.canGoNext=void 0,_9e.clamp=T9e,_9e.extractObject=void 0,_9e.filterSettings=function(e){return ret.reduce(function(t,r){return e.hasOwnProperty(r)&&(t[r]=e[r]),t},{})},_9e.validSettings=_9e.swipeStart=_9e.swipeMove=_9e.swipeEnd=_9e.slidesOnRight=_9e.slidesOnLeft=_9e.slideHandler=_9e.siblingDirection=_9e.safePreventDefault=_9e.lazyStartIndex=_9e.lazySlidesOnRight=_9e.lazySlidesOnLeft=_9e.lazyEndIndex=_9e.keyHandler=_9e.initializedState=_9e.getWidth=_9e.getTrackLeft=_9e.getTrackCSS=_9e.getTrackAnimateCSS=_9e.getTotalSlides=_9e.getSwipeDirection=_9e.getSlideCount=_9e.getRequiredLazySlides=_9e.getPreClones=_9e.getPostClones=_9e.getOnDemandLazySlides=_9e.getNavigableIndexes=_9e.getHeight=void 0;var M9e=D9e(l.default),S9e=D9e(C9e);function D9e(e){return e&&e.__esModule?e:{default:e}}function O9e(e){return O9e="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},O9e(e)}function P9e(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 E9e(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P9e(Object(r),!0).forEach(function(t){j9e(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P9e(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function j9e(e,t,r){return t=function(e){var t=function(e,t){if("object"!=O9e(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=O9e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==O9e(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 T9e(e,t,r){return Math.max(t,Math.min(e,r))}var N9e=_9e.safePreventDefault=function(e){["onTouchStart","onTouchMove","onWheel"].includes(e._reactName)||e.preventDefault()},R9e=_9e.getOnDemandLazySlides=function(e){for(var t=[],r=I9e(e),o=F9e(e),n=r;n<o;n++)e.lazyLoadedList.indexOf(n)<0&&t.push(n);return t};_9e.getRequiredLazySlides=function(e){for(var t=[],r=I9e(e),o=F9e(e),n=r;n<o;n++)t.push(n);return t};var I9e=_9e.lazyStartIndex=function(e){return e.currentSlide-A9e(e)},F9e=_9e.lazyEndIndex=function(e){return e.currentSlide+z9e(e)},A9e=_9e.lazySlidesOnLeft=function(e){return e.centerMode?Math.floor(e.slidesToShow/2)+(parseInt(e.centerPadding)>0?1:0):0},z9e=_9e.lazySlidesOnRight=function(e){return e.centerMode?Math.floor((e.slidesToShow-1)/2)+1+(parseInt(e.centerPadding)>0?1:0):e.slidesToShow},L9e=_9e.getWidth=function(e){return e&&e.offsetWidth||0},B9e=_9e.getHeight=function(e){return e&&e.offsetHeight||0},V9e=_9e.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"},$9e=_9e.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};_9e.extractObject=function(e,t){var r={};return t.forEach(function(t){return r[t]=e[t]}),r},_9e.initializedState=function(e){var t,r=M9e.default.Children.count(e.children),o=e.listRef,n=Math.ceil(L9e(o)),a=e.trackRef&&e.trackRef.node,i=Math.ceil(L9e(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&&B9e(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=R9e(E9e(E9e({},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},_9e.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:T9e(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):!$9e(e)&&g>l?g=f=l:c&&g>=i?(g=n?i:i-1,f=n?0:i-1):g>=i&&(f=g-i,n?i%u!==0&&(f=0):f=i-d),!n&&g+d>=i&&(f=i-d),m=Y9e(E9e(E9e({},e),{},{slideIndex:g})),y=Y9e(E9e(E9e({},e),{},{slideIndex:f})),n||(m===y&&(g=f),m=y),s&&(h=h.concat(R9e(E9e(E9e({},e),{},{currentSlide:g})))),p?(v={animating:!0,currentSlide:f,trackStyle:K9e(E9e(E9e({},e),{},{left:m})),lazyLoadedList:h,targetSlide:b},x={animating:!1,currentSlide:f,trackStyle:G9e(E9e(E9e({},e),{},{left:y})),swipeLeft:null,targetSlide:b}):v={currentSlide:f,trackStyle:G9e(E9e(E9e({},e),{},{left:y})),lazyLoadedList:h,targetSlide:b};return{state:v,nextState:x}},_9e.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=J9e(E9e(E9e({},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},_9e.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":""},_9e.swipeStart=function(e,t,r){return"IMG"===e.target.tagName&&N9e(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}}},_9e.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 N9e(e);n&&a&&i&&N9e(e);var w,k={},_=Y9e(t);g.curX=e.touches?e.touches[0].pageX:e.clientX,g.curY=e.touches?e.touches[0].pageY:e.clientY,g.swipeLength=Math.round(Math.sqrt(Math.pow(g.curX-g.startX,2)));var C=Math.round(Math.sqrt(Math.pow(g.curY-g.startY,2)));if(!i&&!h&&C>10)return{scrolling:!0};i&&(g.swipeLength=C);var M=(s?-1:1)*(g.curX>g.startX?1:-1);i&&(M=g.curY>g.startY?1:-1);var S=Math.ceil(f/m),D=V9e(t.touchObject,i),O=g.swipeLength;return y||(0===l&&("right"===D||"down"===D)||l+1>=S&&("left"===D||"up"===D)||!$9e(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=E9e(E9e({},k),{},{touchObject:g,swipeLeft:w,trackStyle:G9e(E9e(E9e({},t),{},{left:w}))}),Math.abs(g.curX-g.startX)<.8*Math.abs(g.curY-g.startY)?k:(g.swipeLength>10&&(k.swiping=!0,N9e(e)),k)}},_9e.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&&N9e(e),{};var m=s?l/i:a/i,y=V9e(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;N9e(e),d&&d(y);var b=f?h:p;switch(y){case"left":case"up":x=b+W9e(t),v=c?q9e(t,x):x,g.currentDirection=0;break;case"right":case"down":x=b-W9e(t),v=c?q9e(t,x):x,g.currentDirection=1;break;default:v=b}g.triggerSlideHandler=v}else{var w=Y9e(t);g.trackStyle=K9e(E9e(E9e({},t),{},{left:w}))}return g};var H9e=_9e.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},q9e=_9e.checkNavigable=function(e,t){var r=H9e(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},W9e=_9e.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+B9e(o)/2>-1*e.swipeLeft)return r=o,!1}else if(o.offsetLeft-t+L9e(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=_9e.checkSpecKeys=function(e,t){return t.reduce(function(t,r){return t&&e.hasOwnProperty(r)},!0)?null:console.error("Keys Missing:",e)},G9e=_9e.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=Q9e(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=E9e(E9e({},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},K9e=_9e.getTrackAnimateCSS=function(e){U9e(e,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var t=G9e(e);return e.useTransform?(t.WebkitTransition="-webkit-transform "+e.speed+"ms "+e.cssEase,t.transition="transform "+e.speed+"ms "+e.cssEase):e.vertical?t.transition="top "+e.speed+"ms "+e.cssEase:t.transition="left "+e.speed+"ms "+e.cssEase,t},Y9e=_9e.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=-Z9e(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+Z9e(e),t=(r=v&&v.childNodes[g])?-1*r.offsetLeft:0,!0===i){g=a?o+Z9e(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},Z9e=_9e.getPreClones=function(e){return e.unslick||!e.infinite?0:e.variableWidth?e.slideCount:e.slidesToShow+(e.centerMode?1:0)},X9e=_9e.getPostClones=function(e){return e.unslick||!e.infinite?0:e.slideCount},Q9e=_9e.getTotalSlides=function(e){return 1===e.slideCount?1:Z9e(e)+e.slideCount+X9e(e)},J9e=_9e.siblingDirection=function(e){return e.targetSlide>e.currentSlide?e.targetSlide>e.currentSlide+eet(e)?"left":"right":e.targetSlide<e.currentSlide-tet(e)?"right":"left"},eet=_9e.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},tet=_9e.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};_9e.canUseDOM=function(){return!("undefined"==typeof window||!window.document||!window.document.createElement)};var ret=_9e.validSettings=Object.keys(S9e.default);var oet={};Object.defineProperty(oet,"__esModule",{value:!0}),oet.Track=void 0;var net=set(l.default),aet=set(q5e.exports),iet=_9e;function set(e){return e&&e.__esModule?e:{default:e}}function cet(e){return cet="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},cet(e)}function uet(){return uet=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},uet.apply(this,arguments)}function det(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,bet(o.key),o)}}function pet(e,t){return pet=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pet(e,t)}function het(e){var t=met();return function(){var r,o=yet(e);if(t){var n=yet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===cet(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return fet(e)}(this,r)}}function fet(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function met(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(met=function(){return!!e})()}function yet(e){return yet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yet(e)}function get(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 vet(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?get(Object(r),!0).forEach(function(t){xet(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):get(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function xet(e,t,r){return(t=bet(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bet(e){var t=function(e,t){if("object"!=cet(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=cet(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cet(t)?t:String(t)}var wet=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)}},ket=function(e,t){return e.key||t},_et=function(e){var t,r=[],o=[],n=[],a=net.default.Children.count(e.children),i=(0,iet.lazyStartIndex)(e),s=(0,iet.lazyEndIndex)(e);return net.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:net.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}(vet(vet({},e),{},{index:c})),h=u.props.className||"",f=wet(vet(vet({},e),{},{index:c}));if(r.push(net.default.cloneElement(u,{key:"original"+ket(u,c),"data-index":c,className:(0,aet.default)(f,h),tabIndex:"-1","aria-hidden":!f["slick-active"],style:vet(vet({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,iet.getPreClones)(e)&&((t=-m)>=i&&(u=l),f=wet(vet(vet({},e),{},{index:t})),o.push(net.default.cloneElement(u,{key:"precloned"+ket(u,t),"data-index":t,tabIndex:"-1",className:(0,aet.default)(f,h),"aria-hidden":!f["slick-active"],style:vet(vet({},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=wet(vet(vet({},e),{},{index:t})),n.push(net.default.cloneElement(u,{key:"postcloned"+ket(u,t),"data-index":t,tabIndex:"-1",className:(0,aet.default)(f,h),"aria-hidden":!f["slick-active"],style:vet(vet({},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)};oet.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&&pet(e,t)}(n,net["default"].PureComponent);var e,t,r,o=het(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 xet(fet(e=o.call.apply(o,[this].concat(r))),"node",null),xet(fet(e),"handleRef",function(t){e.node=t}),e}return e=n,(t=[{key:"render",value:function(){var e=_et(this.props),t=this.props,r={onMouseEnter:t.onMouseEnter,onMouseOver:t.onMouseOver,onMouseLeave:t.onMouseLeave};return net.default.createElement("div",uet({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},r),e)}}])&&det(e.prototype,t),r&&det(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var Cet={};function Met(e){return Met="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},Met(e)}Object.defineProperty(Cet,"__esModule",{value:!0}),Cet.Dots=void 0;var Det=Eet(l.default),Oet=Eet(q5e.exports),Pet=_9e;function Eet(e){return e&&e.__esModule?e:{default:e}}function jet(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 Tet(e,t,r){return(t=Ret(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Net(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,Ret(o.key),o)}}function Ret(e){var t=function(e,t){if("object"!=Met(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=Met(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Met(t)?t:String(t)}function Iet(e,t){return Iet=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Iet(e,t)}function Fet(e){var t=Aet();return function(){var r,o=zet(e);if(t){var n=zet(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===Met(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 Aet(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Aet=function(){return!!e})()}function zet(e){return zet=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zet(e)}Cet.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&&Iet(e,t)}(n,Det["default"].PureComponent);var e,t,r,o=Fet(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,Pet.clamp)(f,0,l-1),y=m-(i-1),g=a?y:(0,Pet.clamp)(y,0,l-1),v=(0,Oet.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(Det.default.createElement("li",{key:h,className:v},Det.default.cloneElement(this.props.customPaging(h),{onClick:b})))}return Det.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?jet(Object(r),!0).forEach(function(t){Tet(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jet(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({className:this.props.dotsClass},d))}}],t&&Net(e.prototype,t),r&&Net(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var Let={};function Bet(e){return Bet="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},Bet(e)}Object.defineProperty(Let,"__esModule",{value:!0}),Let.PrevArrow=Let.NextArrow=void 0;var Vet=qet(l.default),$et=qet(q5e.exports),Het=_9e;function qet(e){return e&&e.__esModule?e:{default:e}}function Wet(){return Wet=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},Wet.apply(this,arguments)}function Uet(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 Get(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Uet(Object(r),!0).forEach(function(t){Ket(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Uet(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function Ket(e,t,r){return(t=Qet(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Yet(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zet(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,Qet(o.key),o)}}function Xet(e,t,r){return t&&Zet(e.prototype,t),r&&Zet(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qet(e){var t=function(e,t){if("object"!=Bet(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=Bet(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bet(t)?t:String(t)}function Jet(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&&ett(e,t)}function ett(e,t){return ett=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ett(e,t)}function ttt(e){var t=rtt();return function(){var r,o=ott(e);if(t){var n=ott(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===Bet(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 rtt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rtt=function(){return!!e})()}function ott(e){return ott=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ott(e)}Let.PrevArrow=function(){Jet(t,Vet["default"].PureComponent);var e=ttt(t);function t(){return Yet(this,t),e.apply(this,arguments)}return Xet(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,$et.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.prevArrow?Vet.default.cloneElement(this.props.prevArrow,Get(Get({},r),o)):Vet.default.createElement("button",Wet({key:"0",type:"button"},r)," ","Previous")}}]),t}(),Let.NextArrow=function(){Jet(t,Vet["default"].PureComponent);var e=ttt(t);function t(){return Yet(this,t),e.apply(this,arguments)}return Xet(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,Het.canGoNext)(this.props)||(e["slick-disabled"]=!0,t=null);var r={key:"1","data-role":"none",className:(0,$et.default)(e),style:{display:"block"},onClick:t},o={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount};return this.props.nextArrow?Vet.default.cloneElement(this.props.nextArrow,Get(Get({},r),o)):Vet.default.createElement("button",Wet({key:"1",type:"button"},r)," ","Next")}}]),t}();var ntt=ee(u7e);Object.defineProperty(i9e,"__esModule",{value:!0}),i9e.InnerSlider=void 0;var att=ftt(l.default),itt=ftt(s9e),stt=ftt(k9e),ltt=ftt(q5e.exports),ctt=_9e,utt=oet,dtt=Cet,ptt=Let,htt=ftt(ntt);function ftt(e){return e&&e.__esModule?e:{default:e}}function mtt(e){return mtt="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},mtt(e)}function ytt(){return ytt=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},ytt.apply(this,arguments)}function gtt(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 vtt(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 xtt(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vtt(Object(r),!0).forEach(function(t){Stt(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vtt(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function btt(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,Dtt(o.key),o)}}function wtt(e,t){return wtt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wtt(e,t)}function ktt(e){var t=Ctt();return function(){var r,o=Mtt(e);if(t){var n=Mtt(this).constructor;r=Reflect.construct(o,arguments,n)}else r=o.apply(this,arguments);return function(e,t){if(t&&("object"===mtt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _tt(e)}(this,r)}}function _tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ctt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ctt=function(){return!!e})()}function Mtt(e){return Mtt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Mtt(e)}function Stt(e,t,r){return(t=Dtt(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dtt(e){var t=function(e,t){if("object"!=mtt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=mtt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mtt(t)?t:String(t)}i9e.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&&wtt(e,t)}(n,att["default"].Component);var e,t,r,o=ktt(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),Stt(_tt(t=o.call(this,e)),"listRefHandler",function(e){return t.list=e}),Stt(_tt(t),"trackRefHandler",function(e){return t.track=e}),Stt(_tt(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,ctt.getHeight)(e)+"px"}}),Stt(_tt(t),"componentDidMount",function(){if(t.props.onInit&&t.props.onInit(),t.props.lazyLoad){var e=(0,ctt.getOnDemandLazySlides)(xtt(xtt({},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=xtt({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 htt.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)}),Stt(_tt(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()}),Stt(_tt(t),"componentDidUpdate",function(e){if(t.checkImagesLoad(),t.props.onReInit&&t.props.onReInit(),t.props.lazyLoad){var r=(0,ctt.getOnDemandLazySlides)(xtt(xtt({},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=xtt(xtt({listRef:t.list,trackRef:t.track},t.props),t.state),n=t.didPropsChange(e);n&&t.updateState(o,n,function(){t.state.currentSlide>=att.default.Children.count(t.props.children)&&t.changeSlide({message:"index",index:att.default.Children.count(t.props.children)-t.props.slidesToShow,currentSlide:t.state.currentSlide}),t.props.autoplay?t.autoPlay("update"):t.pause("paused")})}),Stt(_tt(t),"onWindowResized",function(e){t.debouncedResize&&t.debouncedResize.cancel(),t.debouncedResize=(0,stt.default)(function(){return t.resizeWindow(e)},50),t.debouncedResize()}),Stt(_tt(t),"resizeWindow",function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(Boolean(t.track&&t.track.node)){var r=xtt(xtt({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}}),Stt(_tt(t),"updateState",function(e,r,o){var n=(0,ctt.initializedState)(e);e=xtt(xtt(xtt({},e),n),{},{slideIndex:n.currentSlide});var a=(0,ctt.getTrackLeft)(e);e=xtt(xtt({},e),{},{left:a});var i=(0,ctt.getTrackCSS)(e);(r||att.default.Children.count(t.props.children)!==att.default.Children.count(e.children))&&(n.trackStyle=i),t.setState(n,o)}),Stt(_tt(t),"ssrInit",function(){if(t.props.variableWidth){var e=0,r=0,o=[],n=(0,ctt.getPreClones)(xtt(xtt(xtt({},t.props),t.state),{},{slideCount:t.props.children.length})),a=(0,ctt.getPostClones)(xtt(xtt(xtt({},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=att.default.Children.count(t.props.children),p=xtt(xtt(xtt({},t.props),t.state),{},{slideCount:d}),h=(0,ctt.getPreClones)(p)+(0,ctt.getPostClones)(p)+d,f=100/t.props.slidesToShow*h,m=100/h,y=-m*((0,ctt.getPreClones)(p)+t.state.currentSlide)*f/100;return t.props.centerMode&&(y+=(100-m*f/100)/2),{slideWidth:m+"%",trackStyle:{width:f+"%",left:y+"%"}}}),Stt(_tt(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()}))})}),Stt(_tt(t),"progressiveLazyLoad",function(){for(var e=[],r=xtt(xtt({},t.props),t.state),o=t.state.currentSlide;o<t.state.slideCount+(0,ctt.getPostClones)(r);o++)if(t.state.lazyLoadedList.indexOf(o)<0){e.push(o);break}for(var n=t.state.currentSlide-1;n>=-(0,ctt.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)}),Stt(_tt(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,ctt.slideHandler)(xtt(xtt(xtt({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=gtt(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))})}}),Stt(_tt(t),"changeSlide",function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=xtt(xtt({},t.props),t.state),n=(0,ctt.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()}}),Stt(_tt(t),"clickHandler",function(e){!1===t.clickable&&(e.stopPropagation(),e.preventDefault()),t.clickable=!0}),Stt(_tt(t),"keyHandler",function(e){var r=(0,ctt.keyHandler)(e,t.props.accessibility,t.props.rtl);""!==r&&t.changeSlide({message:r})}),Stt(_tt(t),"selectHandler",function(e){t.changeSlide(e)}),Stt(_tt(t),"disableBodyScroll",function(){window.ontouchmove=function(e){(e=e||window.event).preventDefault&&e.preventDefault(),e.returnValue=!1}}),Stt(_tt(t),"enableBodyScroll",function(){window.ontouchmove=null}),Stt(_tt(t),"swipeStart",function(e){t.props.verticalSwiping&&t.disableBodyScroll();var r=(0,ctt.swipeStart)(e,t.props.swipe,t.props.draggable);""!==r&&t.setState(r)}),Stt(_tt(t),"swipeMove",function(e){var r=(0,ctt.swipeMove)(e,xtt(xtt(xtt({},t.props),t.state),{},{trackRef:t.track,listRef:t.list,slideIndex:t.state.currentSlide}));r&&(r.swiping&&(t.clickable=!1),t.setState(r))}),Stt(_tt(t),"swipeEnd",function(e){var r=(0,ctt.swipeEnd)(e,xtt(xtt(xtt({},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())}}),Stt(_tt(t),"touchEnd",function(e){t.swipeEnd(e),t.clickable=!0}),Stt(_tt(t),"slickPrev",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"previous"})},0))}),Stt(_tt(t),"slickNext",function(){t.callbackTimers.push(setTimeout(function(){return t.changeSlide({message:"next"})},0))}),Stt(_tt(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))}),Stt(_tt(t),"play",function(){var e;if(t.props.rtl)e=t.state.currentSlide-t.props.slidesToScroll;else{if(!(0,ctt.canGoNext)(xtt(xtt({},t.props),t.state)))return!1;e=t.state.currentSlide+t.props.slidesToScroll}t.slideHandler(e)}),Stt(_tt(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"})}),Stt(_tt(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"})}),Stt(_tt(t),"onDotsOver",function(){return t.props.autoplay&&t.pause("hovered")}),Stt(_tt(t),"onDotsLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),Stt(_tt(t),"onTrackOver",function(){return t.props.autoplay&&t.pause("hovered")}),Stt(_tt(t),"onTrackLeave",function(){return t.props.autoplay&&"hovered"===t.state.autoplaying&&t.autoPlay("leave")}),Stt(_tt(t),"onSlideFocus",function(){return t.props.autoplay&&t.pause("focused")}),Stt(_tt(t),"onSlideBlur",function(){return t.props.autoplay&&"focused"===t.state.autoplaying&&t.autoPlay("blur")}),Stt(_tt(t),"render",function(){var e,r,o,n=(0,ltt.default)("slick-slider",t.props.className,{"slick-vertical":t.props.vertical,"slick-initialized":!0}),a=xtt(xtt({},t.props),t.state),i=(0,ctt.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=xtt(xtt({},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,ctt.extractObject)(a,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),c=t.props.pauseOnDotsHover;l=xtt(xtt({},l),{},{clickHandler:t.changeSlide,onMouseEnter:c?t.onDotsLeave:null,onMouseOver:c?t.onDotsOver:null,onMouseLeave:c?t.onDotsLeave:null}),e=att.default.createElement(dtt.Dots,l)}var u=(0,ctt.extractObject)(a,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);u.clickHandler=t.changeSlide,t.props.arrows&&(r=att.default.createElement(ptt.PrevArrow,u),o=att.default.createElement(ptt.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=xtt(xtt({},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}),att.default.createElement("div",y,t.props.unslick?"":r,att.default.createElement("div",ytt({ref:t.listRefHandler},m),att.default.createElement(utt.Track,ytt({ref:t.trackRefHandler},i),t.props.children)),t.props.unslick?"":o,t.props.unslick?"":e)}),t.list=null,t.track=null,t.state=xtt(xtt({},itt.default),{},{currentSlide:t.props.initialSlide,targetSlide:t.props.initialSlide?t.props.initialSlide:0,slideCount:att.default.Children.count(t.props.children)}),t.callbackTimers=[],t.clickable=!0,t.debouncedResize=null;var r=t.ssrInit();return t.state=xtt(xtt({},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"!==mtt(e[n])&&"function"!=typeof e[n]&&!isNaN(e[n])&&e[n]!==this.props[n]){t=!0;break}}return t||att.default.Children.count(this.props.children)!==att.default.Children.count(e.children)}}],t&&btt(e.prototype,t),r&&btt(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}();var Ott,Ptt,Ett,jtt,Ttt,Ntt,Rtt,Itt,Ftt,Att,ztt=function(e){return e.replace(/[A-Z]/g,function(e){return"-"+e.toLowerCase()}).toLowerCase()},Ltt=ztt,Btt=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=Ltt(o))&&"number"==typeof a&&(a+="px"),t+=!0===a?o:!1===a?"not "+o:"("+o+": "+a+")",n<r.length-1&&(t+=" and ")}),t},Vtt=function(e){var t="";return"string"==typeof e?e:e instanceof Array?(e.forEach(function(r,o){t+=Btt(r),o<e.length-1&&(t+=", ")}),t):Btt(e)};function $tt(){if(jtt)return Ett;return jtt=1,Ett={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++);}},Ett}function Htt(){if(Ntt)return Ttt;Ntt=1;var e=function(){if(Ptt)return Ott;function e(e){this.options=e,!e.deferSetup&&this.setup()}return Ptt=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}},Ott=e}(),t=$tt().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]()})}},Ttt=r}function qtt(){if(Att)return Ftt;Att=1;var e=function(){if(Itt)return Rtt;Itt=1;var e=Htt(),t=$tt(),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}},Rtt=a}();return Ftt=new e}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=i(l.default),r=i9e,o=i(Vtt),n=i(C9e),a=_9e;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)()&&qtt();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)}(a9e),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t,r=(t=a9e)&&t.__esModule?t:{default:t};e.default=r.default}(n9e);var Wtt=J(n9e);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)})},Gtt=({mode:t="onChange",state:r,containerType:o,children:n})=>{const a=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}=zr(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:i}=GC(),{formId:s="",routing:c,prefillData:u,loadRecordData:d,isLoadingData:p,localStateObject:h}=IC(),f=e.useRef(null),m=e.useRef(!1),y=e.useRef(null),g=e.useRef(!1),v=e.useRef(!1),x=e.useMemo(()=>!!s&&(!c?.organismIdFromUrl||c.organismIdFromUrl===s),[s,c?.organismIdFromUrl]),b=c?.rwoRecordIdFromUrl||null,w=e.useCallback((e,t)=>{if(!x)return;if("filter"===o)return;const r=(e=>{if(!e)return null;if("object"!=typeof e)return null;if(0===Object.keys(e).length)return null;try{return JSON.stringify(e)}catch{return null}})(e);r&&f.current!==r&&(a.reset(e,{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),f.current=r)},[x,a,o,s]);return e.useEffect(()=>{if(r){if("default"===r)return a.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),a.clearErrors(),void(f.current=null);if("required_error"===r)return a.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),f.current=null,void a.trigger();if("validation_error"===r){const e=setTimeout(async()=>{a.reset({},{keepErrors:!1,keepDirty:!1,keepTouched:!1,keepValues:!1}),f.current=null,Utt(a.control._fields,({name:e,pattern:t})=>{t?.value instanceof RegExp&&".+"===t.value.source&&""===t.value.flags||a.setError(e,{type:"required",message:"object"==typeof t&&t?.message||"Invalid value"})})},0);return()=>clearTimeout(e)}}},[r,a]),e.useEffect(()=>{if(x&&s&&"filter"===o)try{const e=new URLSearchParams(window.location.search),t=e.get("rwoContext");if(!t)return void(v.current=!1);const r=JSON.parse(atob(t)),o=e.get("selectedWebpageId");let n;if(o&&r[o]){n=r[o][s]}else n=r[s];if(!n)return void(v.current=!1);const i=Object.entries(n).filter(([e])=>"rwoRecordId"!==e&&"prefillData"!==e&&"useWebpageContext"!==e);if(0===i.length)return void(v.current=!1);const l=JSON.stringify(i.sort());v.current!==l&&(i.forEach(([e,t])=>{a.setValue(e,t)}),v.current=l)}catch(e){}},[x,s,a,o]),e.useEffect(()=>{a.formState.isDirty&&!g.current&&(g.current=!0,i({id:s,type:"started"}))},[a.formState.isDirty,s,i]),e.useEffect(()=>{b!==y.current&&(f.current=null,g.current=!1,y.current=b)},[b]),e.useEffect(()=>{m.current=Boolean(p)},[p]),e.useEffect(()=>{if(x&&"filter"!==o){if(u&&"object"==typeof u){const e="data"in u&&"object"==typeof u.data?u.data:u;if(Object.keys(e).length>0)return void w(e,"prefillData")}if(!m.current&&h&&"object"==typeof h){const e="data"in h&&"object"==typeof h.data?h.data:h;Object.keys(e).length>0&&w(e,"localStateObject")}}},[x,u,h,w,s,o]),e.useEffect(()=>{x&&b&&"function"==typeof d&&"filter"!==o&&(p||u&&"object"==typeof u&&Object.keys(u).length>0||null===f.current&&(m.current=!0,(async()=>{try{const e=await d({rwoRecordId:b});e&&"object"==typeof e&&Object.keys(e).length>0&&w(e,"loadRecordData")}catch{}finally{m.current=!1}})()))},[x,b,d,w,p,u,s,o]),ot(Gt,{...a,children:ot(HC,{children:ot(Zr,{children:n})})})},Ktt=(e,t)=>e&&t[e]?`${t[e]}px`:e,Ytt=(e,t)=>{if(e&&t)return bo`
|
|
806
806
|
background: url(${t}) center / cover no-repeat;
|
|
807
807
|
`},Ztt=["slider","form"],Xtt=Po.div`
|
|
808
808
|
${({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=>Ktt(e[r]||0,t)).join(" "))({top:u,bottom:d,left:p,right:h},o):"0px";return bo`
|
|
@@ -1031,7 +1031,7 @@
|
|
|
1031
1031
|
`,qpt=e=>{if("menu_item"===e.type){const t=e;if(!t.sx)return!1;const r=e=>!!e&&(Array.isArray(e)?e.some(r):"function"!=typeof e&&("object"==typeof e&&("absolute"===e.position||"fixed"===e.position)));return r(t.sx)}return!1},Wpt=({currentWebpageId:t,anchor:r="left",variant:o="persistent",open:n=!1,onClose:a,items:i=[],withButton:s=!0,buttonText:l="",buttonVariant:c="contained",buttonTextColor:u,buttonFontSize:d,buttonFontWeight:p,buttonFontFamily:h,buttonDisabled:f=!1,buttonGap:m=0,buttonStartIcon:y,buttonEndIcon:g,buttonBorderRadius:v="0px",buttonPaddingTop:x="0px",buttonPaddingRight:b="0px",buttonPaddingBottom:w="0px",buttonPaddingLeft:k="0px",buttonMarginTop:_="0px",buttonMarginRight:C="0px",buttonMarginBottom:M="0px",buttonMarginLeft:S="0px",buttonIconOnly:D,buttonElevation:O,buttonFillColor:P,buttonFillColorDisabled:E,buttonFillColorHover:j,buttonFillColorPressed:T,buttonBorderColor:N,buttonBorderColorDisabled:R,buttonBorderColorHover:I,buttonBorderColorPressed:F,buttonTextColorDisabled:A,buttonTextColorHover:z,buttonTextColorPressed:L,buttonColor:B="#1976d2",buttonDisabledColor:V,withCloseIcon:$=!0,closeIconColor:H=no.colors.gray2,closeIconName:q="x",closeIconSize:W=18,closeIconBackgroundColor:U="rgba(255, 255, 255, 0.9)",closeIconVisible:G=!1,closeIconTop:K="16px",closeIconLeft:Y="16px",closeIconBorderRadius:Z="50%",closeIconElevation:X=2,moleculeId:Q,configurationItemInfo:J,sx:ee,contentSx:te,scrollable:re=!1,paddingTop:oe,paddingRight:ne,paddingBottom:ae,paddingLeft:ie,height:se,width:le,mobileWidth:ce,backgroundColor:ue="#fff",gap:de="8px",marginTop:pe="0px",marginRight:he="0px",marginBottom:fe="0px",marginLeft:me="0px"})=>{const ye=Ge(),{isConfigurationMode:ge,selectedConfigurationItemId:ve,onConfigurationItemClicked:xe,onInternalNavigation:be}=IC(),{updateDrawer:we,drawerContainerRef:ke,headerHeight:_e,isMobile:Ce}=DC(),[Me,Se]=e.useState(n),[De]=(()=>{try{return Ipt()}catch{return[new URLSearchParams,()=>{}]}})(),Oe=e.useMemo(()=>{if(t)return t;const e=De.get(H7e),r=De.get($7e);let o=null,n=null;if("undefined"!=typeof window)try{const e=new URLSearchParams(window.location.search);o=e.get(H7e),n=e.get($7e)}catch(bJe){}return e||r||o||n||""},[t,De]);e.useEffect(()=>{Se(n)},[n]);const Pe=Boolean(ge&&(ve===Q||i.some(e=>e.id===ve))),Ee=()=>"permanent"===o||(ge?Pe:s?Me:n);e.useEffect(()=>{const e=Ee(),t="left"===r||"right"===r,n=Ce&&void 0!==ce?ce:le;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(t&&!Ce)switch(o){case"permanent":i=a;break;case"persistent":default:i=e?a:0;break;case"temporary":i=0}return we({isOpen:e,position:r,width:i}),()=>{we({isOpen:!1,width:0})}},[Me,n,Pe,ge,s,r,le,ce,Ce,o,we]);const je=()=>{"permanent"!==o&&Se(!0)},Te=(e,t)=>{"permanent"!==o&&(Se(!1),a?.(e,t))},Ne=e=>{const t=ve===e.id,r={entityId:e.id,entity:"molecule_item",entityType:e.type},o=ge?{onClick:e=>{e.stopPropagation(),xe?.(r,!1)},onDoubleClick:e=>{e.stopPropagation(),xe?.(r,!0)},"data-organism-id":e.id,css:Qtt({theme:ye,selected:t})}:{};switch(e.type){case"menu_item":{const t=e;e.id;const r=(e=>{const t=e?.link;if(!t||!t.internalLink)return!1;const r=o9e(t.internalLink);return!(!r||!Oe)&&r===Oe})(t),n={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)"}},a=t.sx?[n,t.sx]:n;return nt(yx,{sx:a,selected:r,onClick:()=>{if(t?.link){X7e(t.link)?be?.({link:t.link?.internalLink||""}):Y7e(t.link?.externalLink)}},disabled:t.disabled,...o,children:[t.startIcon&&ot(PGe,{iconName:t.startIcon,color:t.textColor}),ot(Sd,{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(PGe,{iconName:t.endIcon,color:t.textColor})]},t.id)}case"divider_item":{const t=e;return ot(lpt,{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(ppt,{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(dpt,{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(cpt,{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)?be?.({link:t.link?.internalLink||""}):Y7e(t.link?.externalLink)}},moleculeId:t.id,configurationItemInfo:o},t.id)}default:return null}},Re=Ce&&void 0!==ce?ce:le,Ie=ot(zpt,{anchor:r,variant:o,open:Ee(),onClose:Te,paddingTop:oe,paddingRight:ne,paddingBottom:ae,paddingLeft:ie,height:se,width:Re,backgroundColor:ue,marginTop:`calc(${_e} + ${pe})`,marginRight:he,marginBottom:fe,marginLeft:me,container:ke,sx:ee,children:nt(Vpt,{scrollable:re,sx:te,...J&&Object.keys(J).length?{...J,"data-testid":"drawer-content-config","aria-label":"drawer-content"}:{},children:[(Ee()||"permanent"===o)&&i.length>0?nt(rt,{children:[ot(Hpt,{gap:de,scrollable:re,children:i.filter(e=>!qpt(e)).map(Ne)}),i.filter(e=>qpt(e)).map(Ne)]}):null,!!$&&(!!G||Ee())&&ot($pt,{top:K,left:Y,borderRadius:Z,elevation:X,backgroundColor:U,onClick:e=>{e.stopPropagation();Ee()?Te(e,"closeIconClicked"):je()},"data-testid":"close-icon",children:ot(PGe,{"data-testid":"icon-renderer",iconName:q,size:W,color:H})})]})});return s&&"permanent"!==o?nt(rt,{children:[ot(XGe,{moleculeId:Q,gap:m,text:l,variant:c,textColor:u,fontSize:d,fontWeight:["normal","bold"].includes(p)?p:void 0,fontFamily:h,disabled:f,startIcon:y,endIcon:g,marginTop:_,marginRight:C,marginBottom:M,marginLeft:S,paddingTop:x,paddingRight:b,paddingBottom:w,paddingLeft:k,borderRadius:v,iconOnly:D,elevation:O,fillColor:P||B,fillColorDisabled:E||V,fillColorHover:j,fillColorPressed:T,borderColor:N,borderColorDisabled:R,borderColorHover:I,borderColorPressed:F,textColorDisabled:A,textColorHover:z,textColorPressed:L,externalOnClick:e=>Me?Te(e,"buttonClicked"):je(),configurationItemInfo:J}),ot(Bpt,{children:Ie})]}):ot(Bpt,{children:Ie})},Upt=e.forwardRef((e,t)=>{const{inputRef:r,...o}=e;return ot(qKe,{...o,ref:e=>{"function"==typeof r&&r(e?e.inputElement:null)},mask:rYe,guide:!0,placeholderChar:" "})}),Gpt=e=>{if(void 0===e)return;if("number"==typeof e)return e;const t=e.match(/^(\d+(?:\.\d+)?)/);return t?parseFloat(t[1]):void 0},Kpt=({masked:e,errorMsg:t,inputSx:r,labelSx:o,sx:n,variant:a="outlined",...i})=>{const s=e?{inputComponent:Upt}:{};return ot(oC,{...i,variant:a,error:!!t,helperText:t||null,type:"text",sx:{...n},slotProps:{input:{sx:{...r,...n},...s},inputLabel:{sx:{...o,...n}}}})},Ypt=({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,inputSize:R="medium",labelOffset:I,hideLabel:F=!1,variant:A="outlined"})=>{const z=Ut(),L=z?.control,B=!(!L||!j),{localStateObject:V}=IC(),{stateConfig:$}=WC(),H=dt(),q=V||$,W=T?q?.[T]?.value:void 0,U=T?H?.getDmfValue(T):void 0;e.useState("");const[G,K]=e.useState(""),Y={required:!!r&&o,pattern:{value:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@(([^<>()[\]\\.,;:\s@"]+\.)+[^<>()[\]\\.,;:\s@"]{2,})$/,message:n}},Z=e.useMemo(()=>{if(F)return;if(void 0!==I)return I;const e=Gpt(w),t=Gpt(_);let r=0;r=void 0!==e&&void 0!==t?e+t:"small"===R?17:33;const o=Gpt(M)||Gpt(S)||Gpt(D);if(!o&&!e&&!t)return;const n="number"==typeof p?1.5*p:23;let a;if(void 0!==o)a=Math.max(0,(o-n)/2);else{const t=("small"===R?40:56)-r;a=Math.max(0,(t-n)/2+(e||0))}return Math.round(a)},[M,S,D,I,R,p,w,_,F]),X=e.useMemo(()=>{if(F)return;const e="small"===R?-6:-9,t=Gpt(M)||Gpt(S)||Gpt(D);return!t||t>=36?e:-6},[M,S,D,R,F]);if(t){let e="";e=void 0!==U?String(U??""):B?z.watch(j)||"":W||"";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(vg,{sx:{fontSize:p,fontFamily:h,fontWeight:f,color:d,marginLeft:0,marginBottom:"4px",...E},children:a}),ot(Sd,{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 Q={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:_}},J={color:d,"&.Mui-focused":{color:d},...F&&{display:"none"},...void 0!==Z&&{"&.MuiInputLabel-outlined:not(.MuiInputLabel-shrink)":{transform:`translate(14px, ${Z}px) scale(1)`},"&.MuiInputLabel-outlined.MuiInputLabel-shrink":{transform:`translate(14px, ${X}px) scale(0.75)`}}},ee=l?3:1,te={...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D}};return ot("div",B?{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:Y,control:L,defaultValue:"",render:({field:e,fieldState:t})=>ot(Kpt,{masked:s,required:r,errorMsg:t.error?.message,inputSx:Q,labelSx:J,sx:{...te,...E},size:R,variant:A,label:F?void 0:a,placeholder:i,multiline:l,minRows:ee,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(Kpt,{masked:s,required:r,errorMsg:void 0,inputSx:Q,labelSx:J,sx:{...te,...E},size:R,variant:A,label:F?void 0:a,placeholder:i,multiline:l,minRows:ee,value:G,onChange:e=>K(e.target.value),...N||{}})})},Zpt=({src:t,text:r,type:o,link:n,sourceDataModelField:a,color:i=no.colors.deepBlue,disabled:s=!1,disabledColor:l,underline:c="hover",variant:u="body2",margin:d="0",padding:p="0",moleculeId:h,configurationItemInfo:f,marginTop:m="0",marginRight:y="0",marginBottom:g="0",marginLeft:v="0",paddingTop:x="0",paddingRight:b="0",paddingBottom:w="0",paddingLeft:k="0",fontFamily:_,fontWeight:C,fontSize:M,align:S,target:D,sx:O,borderColor:P,borderWidth:E,borderStyle:j,borderRadius:T,iconOnly:N,ariaLabel:R,iconName:I,iconSize:F,validationErrorText:A})=>{const{onStateChange:z}=GC(),{onInternalNavigation:L,isConfigurationMode:B,localStateObject:V}=IC();WC();const $=dt(),H=n&&Q7e(n),q=e.useMemo(()=>H?J7e(n,$?.rawItemDataByDmfId):null,[n,H,$?.rawItemDataByDmfId]),W=H&&!q,U=e.useMemo(()=>{if(q)return q.destination;const e=n?X7e(n):"internalLink"===o||"internal_link"===o,r=n?e?n.internalLink:n.externalLink:void 0;return t??r??void 0},[q,n,o,t]),G=e.useMemo(()=>q?!q.isExternal:!!n&&X7e(n),[q,n]),K=e.useMemo(()=>D||(q?q.isExternal?"_blank":"_self":G?"_self":"_blank"),[D,q,G]),Y=s||W,Z=Y?l||to(i):i,X=B||Y?void 0:U,Q=Boolean(I),J="regular"===C?"normal":C,ee=N?ot(PGe,{iconName:I||"external-link",size:F??16}):nt(rt,{children:[ot("span",{children:r}),Q&&ot(PGe,{iconName:I,size:F??16})]}),{onClick:te,onDoubleClick:re,...oe}=f||{},ne=ot(pv,{href:X,component:"a",target:K,onClick:e=>{z({id:h,type:"clicked"});if(!s&&!W&&!B)return q?(e.preventDefault(),void(q.isExternal?Y7e(q.destination):L?.({link:q.destination,webpageAlias:q.webpageAlias,query:q.recordId?{rwoRecordId:q.recordId}:void 0}))):G&&U?(e.preventDefault(),void L?.({link:U})):void(!G&&U&&(e.preventDefault(),Y7e(U)));e.preventDefault()},onClickCapture:te||void 0,onDoubleClickCapture:re||void 0,"aria-label":N?R||r||"link":void 0,sx:{color:Z,textDecorationColor:Z,margin:d,padding:p,marginTop:m,marginRight:y,marginBottom:g,marginLeft:v,paddingTop:x,paddingRight:b,paddingBottom:w,paddingLeft:k,fontFamily:_,fontWeight:J,fontSize:M,textAlign:S,alignItems:"center",cursor:Y?"not-allowed":"pointer",borderColor:P,borderWidth:E,borderStyle:j,borderRadius:T,display:N||Q?"inline-flex":void 0,gap:Q&&!N?"4px":void 0,"& .MuiLink-root":{color:"inherit",textDecorationColor:"inherit"},"&:hover":{color:Y?Z:to(Z,.8),textDecorationColor:Y?Z:to(Z,.8)},"&:active":{color:Y?Z:to(Z,.6),textDecorationColor:Y?Z:to(Z,.6)},"&.Mui-disabled":{color:l||to(i),textDecorationColor:l||to(i),cursor:"not-allowed"},...O},align:S,variant:u,underline:c,...oe,children:ee});return ne},Xpt=e=>({justifyContent:e.textAlign||"flex-start",backgroundColor:e.backgroundColor,paddingTop:e.paddingTop,paddingRight:e.paddingRight,paddingBottom:e.paddingBottom,paddingLeft:e.paddingLeft}),Qpt=({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:I="0",buttonIconOnly:F,buttonElevation:A,buttonFillColor:z,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}=IC(),ce=dt?.(),[ue,de]=e.useState(null),[pe,he]=e.useState(!1),[fe]=(()=>{try{return Ipt()}catch{return[new URLSearchParams,()=>{}]}})(),me=e.useMemo(()=>{const e=fe.get(H7e),t=fe.get($7e);let r=null,o=null;if("undefined"!=typeof window)try{const e=new URLSearchParams(window.location.search);r=e.get(H7e),o=e.get($7e)}catch(bJe){}return e||t||r||o||""},[fe]),ye=e=>{const t=e?.link;if(!t||!t.internalLink)return!1;const r=o9e(t.internalLink);return!(!r||!me)&&r===me},ge=Boolean(ae&&(ie===re||r.some(e=>e.id===ie))),ve=()=>he(!0),xe=()=>he(!1),be={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(Gf,{children:[ot(XGe,{ref:de,text:g,variant:v,moleculeId:re,textColor:x,fontSize:b,fontWeight:w,fontFamily:k,disabled:_,gap:C,startIcon:M,endIcon:S,onClick:ve,marginTop:O,marginRight:P,marginBottom:E,marginLeft:j,paddingTop:T,paddingRight:N,paddingBottom:R,paddingLeft:I,borderRadius:D,iconOnly:F,elevation:A,fillColor:z||Y,fillColorDisabled:L,fillColorHover:B,fillColorPressed:V,borderColor:$,borderColorDisabled:H,borderColorHover:q,borderColorPressed:W,textColorDisabled:U,textColorHover:G,textColorPressed:K,configurationItemInfo:oe}),ot(dx,{open:ae?ge:pe,variant:"menu",anchorEl:ue,disablePortal:!0,disableScrollLock:!0,disableRestoreFocus:!0,disableEnforceFocus:!0,onClose:xe,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":be["& .MuiMenu-list"],"& .MuiMenuItem-root":be["& .MuiMenuItem-root"],"& .MuiListItemText-primary":be["& .MuiListItemText-primary"],"& .MuiTypography-root":be["& .MuiTypography-root"]}}},sx:{...be,"& .MuiMenu-paper":be["& .MuiMenu-paper"]},children:r.map(e=>{const t=ie===e.id,r=ye(e),o=e.link&&Q7e(e.link)?J7e(e.link,ce?.rawItemDataByDmfId):null,n=e.link&&Q7e(e.link)&&!o,a={entityId:e.id,entity:"molecule_item",entityType:"menu_item"},i=ae?e=>{e.stopPropagation(),se?.(a,!1)}:void 0,s=ae?e=>{e.stopPropagation(),se?.(a,!0)}:void 0,l=ae?{onClick:i,onDoubleClick:s,"data-organism-id":e.id,css:Qtt({theme:ne,selected:t})}:{};return nt(yx,{sx:Xpt(e),selected:r,disabled:e.disabled||n,onClick:()=>{e?.link&&(o?o.isExternal?Y7e(o.destination):le?.({link:o.destination,webpageAlias:o.webpageAlias,query:o.recordId?{rwoRecordId:o.recordId}:void 0}):X7e(e.link)?le?.({link:e.link?.internalLink||""}):Y7e(e.link?.externalLink)),xe()},...l,children:[e.startIcon&&ot(PGe,{iconName:e.startIcon,color:e.textColor}),ot(Sd,{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(PGe,{iconName:e.endIcon,color:e.textColor})]},e.id)})})]}):ot(Qc,{id:re,sx:{...be,backgroundColor:p,border:`${y} solid ${m}`,borderRadius:d,boxShadow:0===ee?"none":ne?.shadows?.[ee]||ne?.shadows?.[3]},elevation:ee,...oe,children:ot(vv,{disablePadding:!0,children:r.map(e=>{const t=ie===e.id,r=ye(e),o=e.link&&Q7e(e.link)?J7e(e.link,ce?.rawItemDataByDmfId):null,n=e.link&&Q7e(e.link)&&!o,a={entityId:e.id,entity:"molecule_item",entityType:"menu_item"},i=ae?e=>{e.stopPropagation(),se?.(a,!1)}:void 0,s=ae?e=>{e.stopPropagation(),se?.(a,!0)}:void 0,l=ae?{onClick:i,onDoubleClick:s,"data-organism-id":e.id,css:Qtt({theme:ne,selected:t})}:{};return nt(Cv,{disabled:e.disabled||n,sx:Xpt(e),selected:r,onClick:()=>{e?.link&&(o?o.isExternal?Y7e(o.destination):le?.({link:o.destination,webpageAlias:o.webpageAlias,query:o.recordId?{rwoRecordId:o.recordId}:void 0}):X7e(e.link)?le?.({link:e.link?.internalLink||""}):Y7e(e.link?.externalLink))},...l,children:[e.startIcon&&ot(PGe,{iconName:e.startIcon,color:e.textColor}),ot($v,{primary:ot(Sd,{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(PGe,{iconName:e.endIcon,color:e.textColor})]},e.id)})})})},Jpt=e=>{if(void 0===e)return;if("number"==typeof e)return e;const t=e.match(/^(\d+(?:\.\d+)?)/);return t?parseFloat(t[1]):void 0};const eht=({errorMsg:e,stepValue:t,minValue:r,allowNegative:o,inputSx:n,labelSx:a,variant:i="outlined",...s})=>ot(oC,{...s,variant:i,type:"number",error:!!e,helperText:e||null,inputProps:{step:t,min:o?void 0:r},slotProps:{input:{sx:n},inputLabel:{sx:a}}}),tht=({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,inputSize:R="medium",labelOffset:I,hideLabel:F=!1,variant:A="outlined"})=>{const z=Ut(),L=z?.control,B=!(!L||!m),{localStateObject:V}=IC(),{stateConfig:$}=WC(),H=dt(),q=V||$,W=y?q?.[y]?.value:void 0,U=y?H?.getDmfValue(y):void 0,[G,K]=e.useState(""),Y=parseFloat(f),Z=h?void 0:0,X={required:!!r&&o,pattern:{value:h?/^-?\d*(\.\d+)?$/:/^\d*(\.\d+)?$/,message:n}};h||(X.min={value:0,message:"Value cannot be less than zero"});const Q=e.useMemo(()=>{if(F)return;if(void 0!==I)return I;const e=Jpt(k),t=Jpt(C);let r=0;r=void 0!==e&&void 0!==t?e+t:"small"===R?17:33;const o=Jpt(S)||Jpt(P)||Jpt(E);if(!o&&!e&&!t)return;const n="number"==typeof u?1.5*u:23;let a;if(void 0!==o)a=Math.max(0,(o-n)/2);else{const t=("small"===R?40:56)-r;a=Math.max(0,(t-n)/2+(e||0))}return Math.round(a)},[S,P,E,I,R,u,k,C,F]),J=e.useMemo(()=>{if(F)return;const e="small"===R?-6:-9,t=Jpt(S)||Jpt(P)||Jpt(E);return!t||t>=36?e:-6},[S,P,E,R,F]);if(t){let e="";e=void 0!==U?String(U??""):B?z.watch(m)||"":W;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(vg,{sx:{fontSize:u,fontFamily:d,fontWeight:p,color:c,marginBottom:"4px"},children:a}),ot(Sd,{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 ee={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"}},te={color:c,"&.Mui-focused":{color:c},...F&&{display:"none"},...void 0!==Q&&{"&.MuiInputLabel-outlined:not(.MuiInputLabel-shrink)":{transform:`translate(14px, ${Q}px) scale(1)`},"&.MuiInputLabel-outlined.MuiInputLabel-shrink":{transform:`translate(14px, ${J}px) scale(0.75)`}}},re={...M&&{width:M},...S&&{height:S},...j&&{minWidth:j},...T&&{maxWidth:T},...P&&{minHeight:P},...E&&{maxHeight:E}};return ot(rg,B?{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:X,control:L,defaultValue:"",render:({field:e,fieldState:t})=>ot(eht,{errorMsg:t.error?.message,label:F?void 0:a,placeholder:i,stepValue:Y,minValue:Z,allowNegative:h,inputSx:ee,labelSx:te,sx:re,size:R,variant:A,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(eht,{errorMsg:void 0,label:F?void 0:a,placeholder:i,stepValue:Y,minValue:Z,allowNegative:h,inputSx:ee,labelSx:te,sx:re,size:R,variant:A,value:G,onChange:e=>K(e.target.value)})})},rht=e=>{const t={text:e.label,validate:()=>!0},{rule:r}=e,o=oht(r);if(o||nht(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},oht=e=>!!e?.MAX,nht=e=>!!e?.MIN,aht=({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(rht),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(Gf,{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(irt,{...r,inputType:"password",text:_?.text,name:P,placeholderText:M?.text}),ot(irt,{...r,inputType:"password",text:C?.text,name:E,placeholderText:S?.text}),ot(FKe,{rules:O,value:j,label:D?.text,isSubmitted:w?.isDirty,validationState:a})]})},iht=["+"," ","(",/[0-9]/,/[0-9]/,/[0-9]/,")"," ",/[0-9]/,/[0-9]/,/[0-9]/,"-",/[0-9]/,/[0-9]/,/[0-9]/,/[0-9]/],sht=e.forwardRef((e,t)=>{const{inputRef:r,...o}=e;return ot(qKe,{...o,ref:e=>{"function"==typeof r&&r(e?e.inputElement:null)},mask:iht,guide:!0,placeholderChar:" "})}),lht=e=>{if(void 0===e)return;if("number"==typeof e)return e;const t=e.match(/^(\d+(?:\.\d+)?)/);return t?parseFloat(t[1]):void 0};function cht(e){const t=(e??"").replace(/\D+/g,"");if(!t)return"";let r="",o=0;return QKe.forEach(e=>{"string"==typeof e?r+=e:o<t.length?(r+=t[o],o+=1):r+="_"}),r}const uht=({masked:e,errorMsg:t,inputSx:r,labelSx:o,variant:n="outlined",...a})=>ot(oC,{...a,variant:n,error:!!t,helperText:t||null,slotProps:{input:{sx:r,...e?{inputComponent:sht}:{}},inputLabel:{sx:o}}}),dht=({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,inputSize:R="medium",labelOffset:I,hideLabel:F=!1,variant:A="outlined"})=>{const z=Ut(),L=z?.control,B=!(!L||!E),{localStateObject:V}=IC(),{stateConfig:$}=WC(),H=dt(),q=V||$,W=j?q?.[j]?.value:void 0,U=j?H?.getDmfValue(j):void 0,[G,K]=e.useState(""),Y={required:!!r&&o,pattern:{value:/^\d{10}$/,message:n}},Z=e.useMemo(()=>{if(F)return;if(void 0!==I)return I;const e=lht(w),t=lht(_);let r=0;r=void 0!==e&&void 0!==t?e+t:"small"===R?17:33;const o=lht(M)||lht(S)||lht(D);if(!o&&!e&&!t)return;const n="number"==typeof p?1.5*p:23;let a;if(void 0!==o)a=Math.max(0,(o-n)/2);else{const t=("small"===R?40:56)-r;a=Math.max(0,(t-n)/2+(e||0))}return Math.round(a)},[M,S,D,I,R,p,w,_,F]),X=e.useMemo(()=>{if(F)return;const e="small"===R?-6:-9,t=lht(M)||lht(S)||lht(D);return!t||t>=36?e:-6},[M,S,D,R,F]);if(t){let e="";e=void 0!==U?String(U??""):B?z.watch(E)||"":String(W??"");const t=(s?cht(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(vg,{sx:{fontSize:p,fontFamily:h,fontWeight:f,color:d,marginLeft:0,marginBottom:"4px",...N},children:a}),ot(Sd,{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 Q={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"}},J={color:d,"&.Mui-focused":{color:d},...F&&{display:"none"},...void 0!==Z&&{"&.MuiInputLabel-outlined:not(.MuiInputLabel-shrink)":{transform:`translate(14px, ${Z}px) scale(1)`},"&.MuiInputLabel-outlined.MuiInputLabel-shrink":{transform:`translate(14px, ${X}px) scale(0.75)`}}},ee={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(rg,B?{required:r,sx:{...ee,...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:Y,control:L,defaultValue:"",render:({field:e,fieldState:t})=>ot(uht,{masked:s,errorMsg:t.error?.message,inputSx:Q,labelSx:J,size:R,variant:A,label:F?void 0:a,placeholder:i,value:e.value||"",onChange:t=>{const r=(t?.target?.value??"").toString().replace(/\D+/g,"");e.onChange(r)}})})}:{required:r,sx:{...ee,...C&&{width:C},...M&&{height:M},...O&&{minWidth:O},...P&&{maxWidth:P},...S&&{minHeight:S},...D&&{maxHeight:D},...N},...T,children:ot(uht,{masked:s,errorMsg:void 0,inputSx:Q,labelSx:J,size:R,variant:A,label:F?void 0:a,placeholder:i,value:G,onChange:e=>{const t=(e?.target?.value??"").toString();K(t.replace(/\D+/g,""))}})})},pht=({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:I=.5,sx:F,...A})=>{const z=Ut(),L=z?.control,B=!!z&&!!L&&!!r,{localStateObject:V}=IC(),{stateConfig:$}=WC(),H=dt(),q=V||$,W=c?q?.[c]?.value:void 0;!B||z.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(rg,{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},...F},...T,children:[t&&ot(Sd,{variant:"subtitle1",sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,marginBottom:"4px"},children:t}),ot(yb,{value:r,max:R,precision:I,readOnly:!0,sx:{"& .MuiRating-iconEmpty":{color:d},"& .MuiRating-iconFilled":{color:h||d},...F},...A})]})}const X={required:!!n&&a,validate:e=>!n||null!==e&&0!==e||a};return nt(rg,{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},...F},...T,children:[t&&ot(Sd,{variant:"subtitle1",sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,marginBottom:"4px"},children:t}),nt(Gf,{sx:{display:"flex",alignItems:"center"},children:["left"===j&&ot(Sd,{sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,minWidth:"2em"},children:Z?K:B?z.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(yb,{value:e.value??W??0,max:R,precision:I,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,...F},...A}),t&&ot(vg,{error:!0,sx:{marginTop:"4px"},children:"required"===t.type?a:i})]})}),"right"===j&&ot(Sd,{sx:{fontSize:f,fontFamily:m,fontWeight:y,color:p||d,minWidth:"2em"},children:Z?K:B?z.getValues(r)??W??"":U??W??""})]})]})},hht=({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,paddingTop:S,paddingRight:D,paddingBottom:O,width:P,height:E,minHeight:j,maxHeight:T,minWidth:N,maxWidth:R,configurationItemInfo:I={},name:F,sourceDataModelField:A,predefinedValue:z,hideWhenNoValue:L=!1,inputSize:B="medium",hideLabel:V=!1,variant:$="outlined",native:H=!1,options:q})=>{const W="regular"===m?"normal":m,U=e=>""!==e&&null!=e,G=u?void 0:A,{dataModelFieldOptions:K,isLoading:Y}=(e=>{const{pickList:t}=ct(),{data:o=[],refetch:n,isLoading:a}=r.useQuery({queryKey:[jGe,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),refetchOnWindowFocus:!0,refetchOnMount:!0});return{dataModelFieldOptions:o,refetch:n,isLoading:a}})(G),Z=q&&q.length>0?q:K,X=e.useMemo(()=>(Z||[]).map(e=>"string"==typeof e?{id:e,label:e}:e),[Z]),Q=Ut(),J=!!Q?.control&&!!F,[ee,te]=e.useState(""),[re,oe]=e.useState(!1),{localStateObject:ne,setLocalStateValue:ae,isConfigurationMode:ie,selectedConfigurationItemId:se}=IC(),{stateConfig:le}=WC(),ce=dt(),ue=ne||le,de=A?ue?.[A]:void 0,pe=de?.value||("string"==typeof de||"number"==typeof de?de:void 0),he=A?ce?.getDmfValue(A):void 0,fe="string"==typeof he||"number"==typeof he?he:he&&"object"==typeof he?he.value??he.label??he.id:void 0,me=null!=z&&""!==z,ye=Boolean(n)||me;if(e.useEffect(()=>{me&&null!=z&&(J?Q?.setValue(F,z):te(z))},[me,z,J,Q,F]),!p)return null;if(u&&L&&!(fe??pe))return null;if(u){const e=d??(null!=fe?String(fe):void 0)??(null!=pe?String(pe):void 0)??(i||"-");return nt("div",{style:{display:"inline-flex",flexDirection:"column",...U(k)&&{marginTop:k},...U(_)&&{marginRight:_},...U(C)&&{marginBottom:C},...U(w)&&{marginLeft:w},...U(P)?{width:P}:{width:"fit-content"},...U(E)&&{height:E},...U(j)&&{minHeight:j},...U(T)&&{maxHeight:T},...U(N)&&{minWidth:N},...U(R)&&{maxWidth:R}},...I,children:[o&&ot(vg,{sx:{...U(h)&&{fontSize:h},...U(f)&&{fontFamily:f},...W&&{fontWeight:W},color:U(y)?y:"#000",marginLeft:0,marginBottom:"4px",...U(g)&&{textAlign:g}},children:o}),ot(Sd,{sx:{...U(h)&&{fontSize:h},...U(f)&&{fontFamily:f},...W&&{fontWeight:W},...U(y)&&{color:y},...U(g)&&{textAlign:g},...U(M)&&{paddingLeft:M},...U(S)&&{paddingTop:S},...U(D)&&{paddingRight:D},...U(O)&&{paddingBottom:O},...U(b)&&{backgroundColor:b},border:`1px solid ${U(v)?v:"#ccc"}`,borderRadius:"4px"},children:e})]})}const ge="small"===B?40:56,ve={position:"relative",display:U(P)?"block":"inline-block",...U(P)&&{width:P},...U(N)&&{minWidth:N},...U(R)&&{maxWidth:R},...U(w)&&{marginLeft:w},...U(k)&&{marginTop:k},...U(_)&&{marginRight:_},...U(C)&&{marginBottom:C}},xe={width:"100%",...U(E)&&{height:E},...U(j)&&{minHeight:j},...U(T)&&{maxHeight:T},...!U(P)&&!U(N)&&{minWidth:"240px"},...a},be=U(y)?y:U(x)?x:void 0,we={..."small"===B&&!E&&{height:`${ge}px`},...U(b)&&{backgroundColor:b},...be&&{color:be},...U(h)&&{fontSize:h},...U(f)&&{fontFamily:f},...W&&{fontWeight:W},...U(v)&&{"& .MuiOutlinedInput-notchedOutline":{borderColor:v},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:v},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:v}},..."filled"===$&&U(v)&&{"&:before":{borderColor:v},"&:after":{borderColor:v},"&:hover:not(.Mui-disabled):before":{borderColor:v}},..."standard"===$&&U(v)&&{"&:before":{borderColor:v},"&:after":{borderColor:v},"&:hover:not(.Mui-disabled):before":{borderColor:v}},"& .MuiSelect-select":{...U(g)&&{textAlign:g},...U(h)&&{fontSize:h},...U(f)&&{fontFamily:f},...W&&{fontWeight:W},...U(S)&&{paddingTop:S},...U(O)&&{paddingBottom:O},...U(M)&&{paddingLeft:M},...U(D)&&{paddingRight:D}}},ke={...U(h)&&{fontSize:h},...U(f)&&{fontFamily:f},...W&&{fontWeight:W}},_e=J?Q.watch(F)||"":ee,Ce=J?Q.formState?.errors?.[F]:void 0;return ot("div",{style:ve,...I,onClick:e=>{ie&&I&&"onClick"in I&&(e.stopPropagation(),e.preventDefault(),I.onClick())},children:nt(rg,{variant:$,size:B,sx:xe,disabled:ye,required:s,error:!!Ce,children:[!V&&ot(Wg,{id:`${F}-label`,shrink:H?re||!!_e:void 0,sx:ke,children:o}),ot(Tb,{value:_e,onChange:e=>{var t;ie||(t=e.target.value,te(t),J&&Q.setValue(F,t),A&&ae&&ae(A,{id:t}))},onFocus:()=>oe(!0),onBlur:()=>oe(!1),...ie&&{open:!1},labelId:V?void 0:`${F}-label`,label:V?void 0:o,disabled:ye,native:H,sx:we,children:H?[ot("option",{value:""},"__placeholder__"),...Y?[ot("option",{disabled:!0,children:"Loading..."},"__loading__")]:X.map(e=>ot("option",{value:e.id,children:e.label},e.id))]:Y?nt(yx,{disabled:!0,children:[ot(ed,{size:20,sx:{mr:1}}),"Loading..."]}):X.map(e=>ot(yx,{value:e.id,children:e.label},e.id))}),Ce&&ot(vg,{error:!0,children:Ce?.message||l})]})})};const fht=({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:I,minHeight:F,maxHeight:A,minWidth:z,maxWidth:L,sx:B,configurationItemInfo:V,sourceDataModelField:$,disabled:H=!1,...q})=>{const W=Ut(),U=W?.control,{localStateObject:G}=IC(),{stateConfig:K}=WC(),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(rg,{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},...I&&{height:I},...F&&{minHeight:F},...A&&{maxHeight:A},...z&&{minWidth:z},...L&&{maxWidth:L},...B},...V,children:[e&&ot(Cg,{children:e}),nt(Gf,{display:"flex",flexDirection:"top"===M?"column":"row",alignItems:"center",mt:"top"===M?1:0,children:[s&&ot(Gf,{mr:"horizontal"===p?1:0,mb:"vertical"===p?1:0,children:ot(PGe,{iconName:s,color:w})}),ot(fw,{value:t??void 0,min:k,max:_,step:C,orientation:p,valueLabelDisplay:v,valueLabelFormat:ee,sx:te,disabled:!0,...q}),l&&ot(Gf,{ml:"horizontal"===p?1:0,mt:"vertical"===p?1:0,children:ot(PGe,{iconName:l,color:w})}),ot(Sd,{sx:{ml:1,fontSize:f,fontFamily:m,fontWeight:y,color:h},children:t})]})]})}return nt(rg,{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},...I&&{height:I},...F&&{minHeight:F},...A&&{maxHeight:A},...z&&{minWidth:z},...L&&{maxWidth:L},...B},...V,children:[e&&ot(Cg,{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(fw,{...e,min:k,max:_,step:C,orientation:p,valueLabelDisplay:v,valueLabelFormat:ee,sx:te,onChange:(t,r)=>e.onChange(r),...q}),t.error&&ot(vg,{error:!0,sx:{mt:1},children:"required"===t.error.type?n:a})]})})]})},mht=({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}=IC();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),I=()=>P(!1);let F={};F=f&&!h?{onMouseEnter:R,onMouseLeave:I,onFocus:R,onBlur:I}:{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},z=O||E&&(T===_||c.some(e=>e.id===T));return nt("div",{role:"presentation",children:[h&&ot(Ff,{open:O}),ot(Mw,{ariaLabel:o,direction:t,icon:ot(Yw,{icon:ot(PGe,{iconName:n,color:i,size:24}),openIcon:ot(PGe,{iconName:a,color:s,size:24})}),open:z,onOpen:f&&!h?R:void 0,onClose:f&&!h?I: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},...F,...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:Qtt({theme:D,selected:u})}:{};return ot(Hw,{icon:ot(PGe,{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??""}):Y7e(o.externalLink),P(!1)):P(!1)},...f}},e.id)})})]})},yht=({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}=IC();return ot(zk,{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(Ok,{sx:{[`&.${Ck.vertical}`]:{width:n||"24px",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:"4px"},[`&.${Ck.vertical} .${Ck.line}`]:{borderColor:s,borderWidth:l,borderRadius:c},[`&.${Ck.horizontal} .${Ck.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:Qtt({theme:_,selected:o})}:{},c=e.color||(a?"#000":"#555");return ot(ak,{...l,children:nt(kk,{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(PGe,{size:n,color:e.iconColor||"#000",iconName:e.iconName,borderRadius:e?.iconBorderRadius||0,backgroundColor:e.iconBackgroundColor||"transparent"}):void 0,children:[ot(Sd,{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(Nk,{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(Sd,{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)})})},ght=fl(Uk)(({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})),vht=({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:I}=IC(),{stateConfig:F}=WC(),A=dt(),z=I||F,L=S?z?.[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(rg,{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(Cg,{component:"legend",children:a}),nt(Gf,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:[ot(ght,{disabled:!0,checked:t,thumbColor:i,thumbCheckedColor:s,trackColor:l,disabledThumbColor:c,sx:{"& .MuiSwitch-switchBase":{pointerEvents:"none"}},...E}),ot(Sd,{sx:{ml:1},children:t?"ON":"OFF"})]})]})}return nt(rg,{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(Cg,{component:"legend",children:a}),N?ot(Jt,{name:M,rules:R,control:T,defaultValue:!1,render:({field:e,fieldState:t})=>nt(rt,{children:[ot(Gf,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:ot(ght,{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(vg,{error:!0,sx:{marginTop:"4px"},children:"required"===t.error.type?o:n})]})}):ot(Gf,{display:"flex",alignItems:"center",mt:"top"===u?1:0,children:ot(ght,{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})})]})},xht=({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:I,iconSize:F,iconPlacement:A="left",hoverTextColor:z,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}=IC(),[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:z||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:Qtt({theme:K,selected:t})}},ie=e=>{const t=e.tabKey===o,r=oe(t);return nt(yx,{onClick:()=>{ne(e),te()},sx:{...r,display:"flex",alignItems:"center"},...ae(e),children:[e.iconName&&ot(PGe,{iconName:e.iconName,sx:{fontSize:P,color:t?D:O,mr:1}}),ot(Gf,{component:"span",children:e.label})]},e.id)};if(n)return nt(Qc,{elevation:w,style:re,sx:G,...U,children:[ot(id,{onClick:ee,children:ot(PGe,{size:F,color:I,iconName:R})}),ot(dx,{anchorEl:Q,open:Boolean(Q),onClose:te,children:t.map(ie)})]});const se=t.findIndex(e=>e.tabKey===o);return ot(Qc,{elevation:w,style:re,sx:G,...U,children:ot(Q_,{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(Xk,{label:e.label,disableRipple:W,sx:{...r,textTransform:"none"},onClick:()=>ne(e),iconPosition:"right"===A?"end":"start",icon:e.iconName?ot(PGe,{iconName:e.iconName,sx:{fontSize:P,color:t?D:O}}):void 0,...ae(e)},e.id)})})})},bht=e=>{if(!e)return null;if(e instanceof Date)return mot(e)?e:null;if("object"==typeof e&&null!==e&&"function"==typeof e.toDate){const t=e.toDate();return t instanceof Date&&mot(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=wnt(o,e,n);if(mot(t))return t}return null}return null},wht=({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}=IC(),{stateConfig:_}=WC(),C=dt(),M=k||_,S=n?M?.[n]?.value:void 0,D=bht(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=bht(o),c=l&&mot(l)?wot(l,s):"";return nt(Gf,{...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(vg,{children:r}),ot(Sd,{children:c||i||"-"})]})}return ot(Gf,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=bht(e);return t&&mot(t)||u||"Invalid time"}},render:({field:{onChange:e,value:t},fieldState:o})=>ot(Udt,{...v,enableAccessibleFieldDOMStructure:!1,value:bht(t),onChange:t=>{const r=bht(t);e(r?wot(r,"HH:mm"):null)},slots:{textField:oC},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(Udt,{...v,enableAccessibleFieldDOMStructure:!1,value:O,onChange:e=>P(bht(e)),slots:{textField:oC},slotProps:{textField:{label:r,placeholder:i,onMouseDown:e=>e.stopPropagation(),sx:{width:p,height:h,minWidth:f,maxWidth:m,minHeight:y,maxHeight:g}}}})})},kht=({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}=GC(),O=()=>{D({id:h,type:"started"})};return ot(_ht,{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(Sd,{component:"div",sx:{height:l,width:c,display:"flex",justifyContent:"center",alignItems:"center",fontSize:"16px",color:"gray",textAlign:"center"},children:s||"Video unavailable"}):ot(gm,{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)}})})},_ht=Po(dm)`
|
|
1032
1032
|
display: inline-block;
|
|
1033
1033
|
overflow: hidden;
|
|
1034
|
-
`,Cht=({width:e="100%",height:t,fontSize:r="16px",marginLeft:o="0",marginTop:n="0",marginRight:a="0",marginBottom:i="0",sx:s})=>ot(Bb,{variant:"text",animation:"wave",sx:{width:e,height:t||("number"==typeof r?1.5*r+"px":"24px"),marginLeft:o,marginTop:n,marginRight:a,marginBottom:i,...s}}),Mht=Cht,Sht=({text:e,width:t,height:r,fontSize:o="16px",borderColor:n="#ccc",backgroundColor:a,marginLeft:i="0",marginTop:s="0",marginRight:l="0",marginBottom:c="0",paddingLeft:u="12px",paddingTop:d="8px",paddingRight:p="12px",paddingBottom:h="8px",sx:f})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:i,marginTop:s,marginRight:l,marginBottom:c,width:t||"fit-content",...f},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"60px",height:"16px",marginBottom:"4px"}}),ot(Bb,{variant:"rounded",animation:"wave",sx:{width:t||"150px",height:r||"40px",borderRadius:"4px",backgroundColor:a,border:`1px solid ${n}`,paddingLeft:u,paddingTop:d,paddingRight:p,paddingBottom:h}})]}),Dht=Sht,Oht=Sht,Pht=Sht,Eht=Sht,jht=({text:e,width:t,height:r,borderColor:o="#ccc",backgroundColor:n,marginLeft:a="0",marginTop:i="0",marginRight:s="0",marginBottom:l="0",paddingLeft:c,paddingTop:u,paddingRight:d,paddingBottom:p,sx:h})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:a,marginTop:i,marginRight:s,marginBottom:l,width:t||"fit-content",...h},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"80px",height:"16px",marginBottom:"4px"}}),ot(Bb,{variant:"rounded",animation:"wave",sx:{width:t||"180px",height:r||"40px",borderRadius:"4px",backgroundColor:n,border:`1px solid ${o}`}})]}),Tht=({text:e,maxValue:t=5,marginLeft:r="0",marginTop:o="0",marginRight:n="0",marginBottom:a="0",sx:i})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:r,marginTop:o,marginRight:n,marginBottom:a,...i},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"80px",height:"20px",marginBottom:"4px"}}),ot(Gf,{sx:{display:"flex",gap:"4px"},children:Array.from({length:t}).map((e,t)=>ot(Bb,{variant:"circular",animation:"wave",sx:{width:"24px",height:"24px"}},t))})]}),Nht=({text:e,marginLeft:t="0",marginTop:r="0",marginRight:o="0",marginBottom:n="0",sx:a})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:t,marginTop:r,marginRight:o,marginBottom:n,...a},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"60px",height:"16px",marginBottom:"8px"}}),nt(Gf,{sx:{display:"flex",alignItems:"center",gap:"8px"},children:[ot(Bb,{variant:"rounded",animation:"wave",sx:{width:"42px",height:"26px",borderRadius:"13px"}}),ot(Bb,{variant:"text",animation:"wave",sx:{width:"30px",height:"16px"}})]})]}),Rht=({text:e,width:t,orientation:r="horizontal",marginLeft:o="0",marginTop:n="0",marginRight:a="0",marginBottom:i="0",sx:s})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:o,marginTop:n,marginRight:a,marginBottom:i,width:t||"200px",...s},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"60px",height:"16px",marginBottom:"8px"}}),nt(Gf,{sx:{display:"flex",alignItems:"center",flexDirection:"vertical"===r?"column":"row",gap:"8px"},children:[ot(Bb,{variant:"rounded",animation:"wave",sx:{width:"horizontal"===r?"100%":"4px",height:"horizontal"===r?"4px":"100px",borderRadius:"2px"}}),ot(Bb,{variant:"text",animation:"wave",sx:{width:"24px",height:"16px"}})]})]}),Iht=({text:e,width:t,height:r,borderColor:o="#ced4da",backgroundColor:n,marginLeft:a="0",marginTop:i="0",marginRight:s="0",marginBottom:l="0",sx:c})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:a,marginTop:i,marginRight:s,marginBottom:l,width:t||"fit-content",...c},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"60px",height:"16px",marginBottom:"4px"}}),ot(Bb,{variant:"rounded",animation:"wave",sx:{width:t||"120px",height:r||"40px",borderRadius:"4px",backgroundColor:n,border:`1px solid ${o}`}})]}),Fht=({text:e,width:t,height:r,borderColor:o="#ced4da",marginLeft:n="0",marginTop:a="0",marginRight:i="0",marginBottom:s="0",sx:l})=>nt(Gf,{sx:{marginLeft:n,marginTop:a,marginRight:i,marginBottom:s,width:t||"fit-content",...l},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"60px",height:"16px",marginBottom:"4px"}}),ot(Bb,{variant:"rounded",animation:"wave",sx:{width:t||"100px",height:r||"40px",borderRadius:"4px",border:`1px solid ${o}`}})]}),Aht=({width:e,height:t,marginLeft:r="0",marginTop:o="0",marginRight:n="0",marginBottom:a="0",sx:i})=>nt(Gf,{sx:{marginLeft:r,marginTop:o,marginRight:n,marginBottom:a,width:e||"320px",...i},children:[ot(Bb,{variant:"rectangular",animation:"wave",sx:{width:"100%",height:"48px",borderRadius:"8px 8px 0 0",marginBottom:"8px"}}),ot(Gf,{sx:{display:"flex",justifyContent:"space-between",marginBottom:"8px"},children:Array.from({length:7}).map((e,t)=>ot(Bb,{variant:"circular",animation:"wave",sx:{width:"32px",height:"24px"}},t))}),Array.from({length:6}).map((e,t)=>ot(Gf,{sx:{display:"flex",justifyContent:"space-between",marginBottom:"4px"},children:Array.from({length:7}).map((e,t)=>ot(Bb,{variant:"circular",animation:"wave",sx:{width:"32px",height:"32px"}},t))},t))]}),zht=({text:e,subText:t,width:r,height:o,backgroundColor:n,marginLeft:a="0",marginTop:i="0",marginRight:s="0",marginBottom:l="0",sx:c})=>ot(Bb,{variant:"rounded",animation:"wave",sx:{width:r||"100%",height:o||(e&&t?"72px":"48px"),borderRadius:"4px",marginLeft:a,marginTop:i,marginRight:s,marginBottom:l,backgroundColor:n,...c}}),Lht=({size:e=24,marginLeft:t="0",marginTop:r="0",marginRight:o="0",marginBottom:n="0",sx:a})=>nt(Gf,{sx:{position:"relative",display:"inline-flex",marginLeft:t,marginTop:r,marginRight:o,marginBottom:n,...a},children:[ot(Bb,{variant:"circular",animation:"wave",sx:{width:e,height:e}}),ot(Bb,{variant:"circular",animation:"wave",sx:{position:"absolute",top:-4,right:-4,width:16,height:16}})]}),Bht=({size:e="medium",width:t,backgroundColor:r,marginLeft:o="0",marginTop:n="0",marginRight:a="0",marginBottom:i="0",sx:s})=>ot(Bb,{variant:"rounded",animation:"wave",sx:{width:t||("small"===e?"60px":"80px"),height:"small"===e?"24px":"32px",borderRadius:"16px",marginLeft:o,marginTop:n,marginRight:a,marginBottom:i,backgroundColor:r,...s}}),Vht=({width:e,fontSize:t="14px",marginLeft:r="0",marginTop:o="0",marginRight:n="0",marginBottom:a="0",sx:i})=>ot(Bb,{variant:"text",animation:"wave",sx:{width:e||"100px",height:"number"==typeof t?1.2*t+"px":"18px",marginLeft:r,marginTop:o,marginRight:n,marginBottom:a,...i}}),$ht=({size:e=40,marginLeft:t="0",marginTop:r="0",marginRight:o="0",marginBottom:n="0",sx:a})=>ot(Bb,{variant:"circular",animation:"wave",sx:{width:e,height:e,marginLeft:t,marginTop:r,marginRight:o,marginBottom:n,...a}}),Hht=["simple_text","text","basic_text_display_field","email_display_field","phone_number_display_field","numeric_display_field","currency_display_field","select_display_field","rating_display_field","switch_display_field","slider_display_field","date_display_field","time_picker_display","date_calendar_display","alert","badge","chip","link","avatar"],qht=e=>Hht.includes(e),Wht=({type:e,props:t={}})=>{const r={width:t.width,height:t.height,marginLeft:t.marginLeft||"0",marginTop:t.marginTop||"0",marginRight:t.marginRight||"0",marginBottom:t.marginBottom||"0",sx:t.sx};switch(e){case"simple_text":case"text":return ot(Cht,{...r,fontSize:t.fontSize});case"basic_text_display_field":return ot(Sht,{...r,text:t.text,fontSize:t.fontSize,borderColor:t.borderColor,backgroundColor:t.backgroundColor,paddingLeft:t.paddingLeft,paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom});case"email_display_field":return ot(Dht,{...r,text:t.text,borderColor:t.borderColor});case"phone_number_display_field":return ot(Oht,{...r,text:t.text,borderColor:t.borderColor});case"numeric_display_field":return ot(Pht,{...r,text:t.text,borderColor:t.borderColor});case"currency_display_field":return ot(Eht,{...r,text:t.text,borderColor:t.borderColor});case"select_display_field":return ot(jht,{...r,text:t.text,borderColor:t.borderColor});case"rating_display_field":return ot(Tht,{...r,text:t.text,maxValue:t.maxValue});case"switch_display_field":return ot(Nht,{...r,text:t.text});case"slider_display_field":return ot(Rht,{...r,text:t.text,orientation:t.orientation});case"date_display_field":return ot(Iht,{...r,text:t.text,borderColor:t.borderColor});case"time_picker_display":return ot(Fht,{...r,text:t.text,borderColor:t.borderColor});case"date_calendar_display":return ot(Aht,{...r});case"alert":return ot(zht,{...r,text:t.text,subText:t.subText,backgroundColor:t.backgroundColor});case"badge":return ot(Lht,{...r,size:t.size});case"chip":return ot(Bht,{...r,size:t.size,backgroundColor:t.backgroundColor});case"link":return ot(Vht,{...r,fontSize:t.fontSize});case"avatar":return ot($ht,{...r,size:t.size});default:return ot(Bb,{variant:"rounded",animation:"wave",sx:{width:r.width||"100%",height:r.height||"40px",marginLeft:r.marginLeft,marginTop:r.marginTop,marginRight:r.marginRight,marginBottom:r.marginBottom,...r.sx}})}},Uht=({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 Ght(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 Kht(e,t,r=!1){return t&&r?yn(e,t):e}const Yht=({id:t,type:r,name:o,form:n,config:a,formData:i,isMobile:s,children:l,tabsProps:c,properties:u,moleculeLibraryId:d,organismLibraryMoleculeId:p,parentStyleVariantConfig:h,parentContainerWithVariantsId:f,parentContainerActiveVariant:m})=>{const y=Ge(),g=SC("xs"),v=s||g,{formId:x,isPreview:b=!1,validations:w,submitHandler:k,isConfigurationMode:_,onConfigurationItemClicked:C,selectedConfigurationItemId:M,currentStyleProperties:S,currentContentProperties:D,onInternalNavigation:O,organismMetadata:P,organismInfo:E,localState:j,isLoadingData:T}=IC(),{stateConfig:N}=WC(),R=N,I=dt(),F=m??I.activeVariant,A=e.useMemo(()=>((e,t)=>{if(!e)return{};if(t){const r=e[t];if(r&&"object"==typeof r&&"props"in r){const e=r.props;if(e&&"object"==typeof e)return e}}return e.props||{}})(a,F??null),[a,F]),z=a?.props?.dataCaptureName||u?.dataCapture?.dataCaptureName||t,L=e.useMemo(()=>{return x&&I?.nestedPathSegments?.length?(e=I.nestedPathSegments,t=z,e&&0!==e.length?[...e.map(e=>void 0!==e.index?`${e.dmfId}.${e.index}`:e.dmfId),t].filter(Boolean).join("."):t):z;var e,t},[x,I?.nestedPathSegments,z]),B=u?.dataCapture?.sourceDataModelFieldId,V=u?.dataCapture?.predefinedValue,$=M===t,{isStateDisabled:H,isStateVisible:q}=(({stateListenerId:e})=>{const{localStateObject:t}=IC(),{stateConfig:r}=WC(),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}),W=e.useMemo(()=>({entityType:r,entity:"molecule",entityName:o,entityId:t,organismLibraryMoleculeId:p,libraryEntityId:d,activeStyleVariant:F,parentReplicatorWithVariants:f||I.containerId||null,parentStyleVariantConfig:h||void 0}),[r,o,t,p,d,F,I.containerId,f,h]),U=e.useCallback(e=>{e?.stopPropagation(),C(W,!1)},[C,W]),G=e.useCallback(e=>{e?.stopPropagation(),C(W,!0)},[C,W]),K=_?{onClick:U,onDoubleClick:G,"data-configuration-id":t,css:Qtt({theme:y,selected:$})}:{},Y=_||H;if(!q)return null;if(T&&qht(r)){const e={width:A.width,height:A.height,marginLeft:A.marginLeft||"0",marginTop:A.marginTop||"0",marginRight:A.marginRight||"0",marginBottom:A.marginBottom||"0",paddingLeft:A.paddingLeft,paddingTop:A.paddingTop,paddingRight:A.paddingRight,paddingBottom:A.paddingBottom,fontSize:A.fontSize,borderColor:A.borderColor,backgroundColor:A.backgroundColor,size:A.size,text:u?.text?.text,subText:u?.subText?.text,maxValue:A.maxValue,orientation:A.orientation,sx:A.sx};return ot(Wht,{type:r,props:e})}return(()=>{switch(r){case"simple_text":{const e={text:u?.text},r=["text"],{text:o}=Ght(e,D,r,$),n=Kht(A,S,$);return ot(ppt,{...n,text:o?.text||"",htmlElementId:t,configurationsItemInfo:K})}case"text":{const e={text:u?.text},r=Object.keys(e),{text:o}=Ght(e,D,r,$),n=Kht(A,S,$);return ot(dpt,{...o,...n,htmlElementId:t,configurationItemInfo:K})}case"consent":{const e=Ght(u,D,[],$),r=Kht(A,S,$)||{};return ot(drt,{...r,htmlElementId:t,properties:e,configurationItemInfo:K})}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=Ght(e,D,r,$),{state:n,gap:i,...s}=Kht(a?.props,S,$);return ot(aht,{gap:i,inputProps:s,validations:w||[],htmlElementId:t,validationState:n,overridesProperties:o,configurationItemInfo:K})}case"stepper":{const e=Kht(A,S,$),r=l?.map(e=>{const t=M===e.id,{properties:r,config:o,...n}=e||{},a={title:r?.title,subText:r?.subText},i=Object.keys(a),{title:s,subText:l}=Ght(a,D,i,t);return{...n,...Kht(o?.props,S,t),title:s?.text||"",subText:l?.text||""}});return ot(yht,{...e,items:r||[],isMobile:v,moleculeId:t,configurationItemInfo:K})}case"checklist":{const e=Kht(A,S,$)||{},r=l?.map(e=>{const t=M===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=Ght(a,D,i,t),l=Kht(o?.props,S,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:R?.[e.id]?.interacted||"unchecked"}}case"divider_item":{const e=Kht(o?.props,S,t)||{};return{...n,...e,type:"divider_item"}}case"text_item":{const e={text:r?.text},a=Object.keys(e),i=Ght(e,D,a,t),s=Kht(o?.props,S,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=Ght(e,D,a,t),s=Kht(o?.props,S,t)||{},l=i.text?.text||J4e;return{...n,...s,type:"rich_text_item",text:l}}default:return{...n,type:e.type}}});return ot(crt,{...e,items:r||[],moleculeId:t,configurationItemInfo:K})}case"accordion":{const e=Kht(A,S,$),r=l?.map(e=>{const t=M===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}=Ght(a,D,i,t);return{...n,...Kht(o?.props,S,t),text:s?.text||"",subText:l?.text||"",bodyText:c?.text||""}});return ot(ert,{...e,items:r||[],moleculeId:t,configurationItemInfo:K})}case"menu":{const e={text:u?.text,disabled:u?.disabled},r=Object.keys(e),{text:o,disabled:n}=Ght(e,D,r,$),a=Kht(A,S,$),i=l?.map(e=>{const t=M===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}=Ght(a,D,i,t),u=Kht(o?.props,S,t);return{...n,...u,disabled:R?.[e.id]?R?.[e.id]?.disabled:l?.value||u?.disabled||!1,text:s?.text||"Menu Item",link:c}});return ot(Qpt,{...a,items:i||[],moleculeId:t,buttonText:o?.text||"Open Menu",configurationItemInfo:K,buttonDisabled:R?.[t]?R?.[t]?.disabled:n?.value||a?.disabled||!1})}case"tabs":{const e=Kht(A,S,$),r=l?.map(e=>{const t=M===e.id,{properties:r,config:o}=e||{},n={label:r?.label,link:r?.link},a=Object.keys(n),{label:i,link:s}=Ght(n,D,a,t);return{...Kht(o?.props,S,t),id:e.id,tabKey:X7e(s)?q7e(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),a=n?o:r,i=c?.activeTabKey||a?.[0]?.tabKey||"";return ot(xht,{...e,items:a||[],isMobile:v,moleculeId:t,activeTabKey:i,configurationItemInfo:K,onTabChange:_?void 0:({newTabKey:e,link:t})=>{n?c?.onTabChange?.(e):X7e(t)?O?.({link:t?.internalLink||""}):Y7e(t?.externalLink)}})}case"divider":{const e=Kht(A,S,$);return ot(lpt,{moleculeId:t,configurationItemInfo:K,...e})}case"link":{const e={text:u?.text,link:u?.link},r=Object.keys(e),{text:o,link:n}=Ght(e,D,r,$),a=n,i=Kht(A,S,$);return ot(Zpt,{moleculeId:t,...i,link:a,type:a?.type,src:Y?void 0:t9e(a,b)||"",text:o?.text||"",disabled:i?.disabled||H,configurationItemInfo:K})}case"data_driven_link":{const e={text:u?.text},r=Object.keys(e),{text:o}=Ght(e,D,r,$),n=Kht(A,S,$);return ot(Zpt,{moleculeId:t,...n,text:o?.text||"",sourceDataModelField:B,disabled:n?.disabled||H,configurationItemInfo:K})}case"video":{const e={video:u?.video,coverImage:u?.coverImage},r=Object.keys(e),{video:o,coverImage:n}=Ght(e,D,r,$),a=Kht(A,S,$);return ot(kht,{...a,moleculeId:t,poster:n?.imageFile?.url,src:o?.videoSource??o?.videoFile?.url??"",configurationItemInfo:K})}case"badge":{const e=Kht(A,S,$);return ot(ort,{...e,configurationItemInfo:K})}case"alert":{const e={text:u?.text,subText:u?.subText},t=Object.keys(e),{text:r,subText:o}=Ght(e,D,t,$),n=Kht(A,S,$);return ot(trt,{text:r?.text||"",subText:o?.text||"",...n,configurationItemInfo:K})}case"chip":{const e={text:u?.text},t=Object.keys(e),{text:r}=Ght(e,D,t,$),o=Kht(A,S,$);return ot(urt,{text:r?.text||"",...o,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(Ypt,{name:L,text:o?.text||"",placeholderText:n?.text||"",sourceDataModelField:B,required:a?.value,isDisplayOnly:"email_display_field"===r,requiredErrorText:i?.text,validationErrorText:s?.text,...l,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(dht,{name:L,text:o?.text||"",required:a?.value,requiredErrorText:i?.text,validationErrorText:s?.text,placeholderText:n?.text||"",sourceDataModelField:B,isDisplayOnly:"phone_number_display_field"===r,...l,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(tht,{name:L,text:o?.text||"",required:a?.value,isDisplayOnly:"numeric_display_field"===r,requiredErrorText:i?.text,validationErrorText:s?.text,placeholderText:n?.text||"",sourceDataModelField:B,...l,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(mrt,{name:L,text:o?.text||"",required:a?.value,isDisplayOnly:"currency_display_field"===r,requiredErrorText:i?.text,validationErrorText:s?.text,placeholderText:n?.text||"",sourceDataModelField:B,...l,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(irt,{name:L,text:o?.text||"",required:a?.value,isDisplayOnly:"basic_text_display_field"===r,requiredErrorText:i?.text,validationErrorText:s?.text,placeholderText:n?.text||"",sourceDataModelField:B,...l,configurationItemInfo:K})}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:a,validationErrorText:i}=Ght(e,D,t,$),s=Kht(A,S,$);return ot(pht,{name:L,text:o?.text||"",required:n?.value,requiredErrorText:a?.text,validationErrorText:i?.text,sourceDataModelField:B,isDisplayOnly:"rating_display_field"===r,...s,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,o,$),l=Kht(A,S,$);return ot(vht,{name:L,moleculeId:t,text:n?.text||"",required:a?.value,isDisplayOnly:"switch_display_field"===r,requiredErrorText:i?.text,validationErrorText:s?.text,sourceDataModelField:B,...l,configurationItemInfo:K})}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:a,validationErrorText:i,placeholderText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(fht,{name:L,text:o?.text||"",required:n?.value,isDisplayOnly:"slider_display_field"===r,requiredErrorText:a?.text,validationErrorText:i?.text,placeholderText:s?.text,sourceDataModelField:B,...l,configurationItemInfo:K})}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:a,placeholderText:i,requiredErrorText:s,validationErrorText:l}=Ght(e,D,o,$),c=Kht(A,S,$);return ot(Pat,{dateAdapter:Ont,children:ot(spt,{moleculeId:t,name:L,text:n?.text||"",required:a?.value,placeholderText:i?.text||"",isDisplayOnly:"date_display_field"===r,requiredErrorText:s?.text,validationErrorText:l?.text,sourceDataModelField:B,...c,configurationItemInfo:K})})}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:a,validationErrorText:i,required:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(Pat,{dateAdapter:Ont,children:ot(wht,{...l,name:L,text:o?.text||"",placeholderText:n?.text||"",required:s?.value,requiredErrorText:a?.text,validationErrorText:i?.text,isDisplayOnly:"time_picker_display"===r,sourceDataModelField:B,configurationItemInfo:K})})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$),c="select_display_field"===r;return ot(hht,{name:L,text:o?.text||"",required:n?.value,isDisplayOnly:c,predefinedValue:V,placeholderText:a?.text||"",requiredErrorText:i?.text,validationErrorText:s?.text,sourceDataModelField:B,...l,configurationItemInfo:K})}case"image":{const e={image:u?.image,link:u?.link},r=Object.keys(e),{image:o,link:n}=Ght(e,D,r,$),a=Kht(A,S,$);return ot(cpt,{...a,src:o?.imageSource||o?.imageFile?.url||o?.imageFile?.id||"",onClick:n?()=>X7e(n)?O?.({link:n?.internalLink||""}):Y7e(n?.externalLink):void 0,moleculeId:t,configurationItemInfo:K,properties:{image:o,link:n}})}case"button":{const e={text:u?.text,action:u?.action},r=Object.keys(e),{text:o,action:n}=Ght(e,D,r,$),a=Kht(A,S,$);return ot(XGe,{moleculeId:t,text:o?.text||"",...a,disabled:a?.disabled||H,configurationItemInfo:K,properties:{text:o,action:n}})}case"avatar":{const e=Kht(A,S,$);return ot(rrt,{...e,sourceDataModelField:B,configurationItemInfo:K})}case"drawer":{const e={text:u?.text,disabled:u?.disabled},r=Object.keys(e),{text:o,disabled:n}=Ght(e,D,r,$),a=Kht(A,S,$),i=l?.map(e=>{const t=M===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=Ght(a,D,i,t),l=Kht(o?.props,S,t),c={...n,...l};switch(e.type){case"menu_item":return{...c,disabled:R?.[e.id]?R?.[e.id]?.disabled:s?.disabled?.value||l?.disabled||!1,text:s?.text?.text||"Menu Item",link:s?.link,sx:l?.sx||c.sx};case"text_item":return{...c,text:s?.text?.text||""};case"rich_text_item":return{...c,text:s?.text?.text||J4e};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(Wpt,{...a,items:i||[],moleculeId:t,buttonText:o?.text||a?.buttonText,buttonDisabled:R?.[t]?R?.[t]?.disabled:n?.value||a?.disabled||!1,configurationItemInfo:K})}case"speed_dial":{const e=Kht(A,S,$),r=l?.map(e=>{const t=M===e.id,{properties:r,config:o,...n}=e||{},a={link:r?.link,text:r?.text},i=Object.keys(a),s=Ght(a,D,i,t),l=Kht(o?.props,S,t);return{...n,config:{props:{...o?.props,...l,tooltipText:l?.tooltipText||""}},properties:{link:s?.link||r?.link,text:s?.text||r?.text}}});return ot(mht,{...e,items:r||[],moleculeId:t,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,o,$),l=Kht(A,S,$);return ot(lrt,{name:L,moleculeId:t,label:n?.text||"",required:a?.value,requiredErrorText:i?.text,validationErrorText:s?.text,sourceDataModelField:B,isDisplayOnly:"checkbox_display"===r,...l,configurationItemInfo:K})}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:a,required:i,requiredErrorText:s,validationErrorText:l}=Ght(e,D,o,$),c=Kht(A,S,$);return ot(srt,{name:L,moleculeId:t,confirmText:n?.text||"Yes",rejectText:a?.text||"No",required:i?.value,requiredErrorText:s?.text,validationErrorText:l?.text,sourceDataModelField:B,isDisplayOnly:"binary_radio_buttons_display"===r,...c,configurationItemInfo:K})}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:a}=Ght(e,D,t,$),i=Kht(A,S,$);return ot(Bst,{...i,name:L,required:o?.value,requiredErrorText:n?.text,validationErrorText:a?.text,isDisplayOnly:"date_calendar_display"===r,sourceDataModelField:B,configurationItemInfo:K})}default:return ot(rt,{children:"There is no such type of molecule yet."})}})()},Zht=({nestedPathSegments:t})=>{const{localStateObject:r}=IC(),o=dt();return e.useMemo(()=>{if(o?.itemDataByDmfId)return o.itemDataByDmfId;const e=(e=>{if(null!=e){if("object"==typeof e&&!Array.isArray(e)&&"viewType"in e&&"data"in e){const t=e.data;if(null==t)return;return t}return e}})(r);return void 0!==e?0===t.length||Array.isArray(e)?e:EGe(e,t):void 0},[o?.itemDataByDmfId,r,t])},Xht=e=>"container"===e.instance&&"empty_state"===e.type,Qht=e=>{if("container"!==e.instance)return;const t=e;return t.replicatorFieldId||t.config?.props?.replicatorFieldId},Jht=(e,t)=>{if(!e)return!0;if(Array.isArray(e))return 0===e.length;return(e=>null==e||Array.isArray(e)&&0===e.length||"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length)(e[t])},eft=e.memo(({item:t,tabsProps:r,formData:o,setFormData:n,isMobile:a,parentId:i,nestedPathSegments:s=[]})=>{const l=Ut(),{organismMetadata:c}=IC(),u="items"in t?t.items:void 0,d=(({items:t})=>{const{stateConfig:r}=WC(),{localStateObject:o}=IC(),n=o||r;return e.useMemo(()=>t&&0!==t.length?t.filter(e=>{const t=e.config?.props?.visible??!0,r=n?.[e.id]?.visible??!0;return t&&r}):[],[t,n])})({items:u}),{filteredItems:p}=(({containerItems:t,visibleItems:r,nestedPathSegments:o})=>{const{isLoadingData:n,isEmptyDataState:a,forceEmptyStatePreview:i,previewingEmptyStates:s,isConfigurationMode:l}=IC(),c=Zht({nestedPathSegments:o});return e.useMemo(()=>{if(!t||0===t.length)return{filteredItems:r,showingEmptyStateForFields:new Set,showOrganismLevelEmptyState:!1};const e=t.filter(Xht);if(0===e.length)return{filteredItems:r,showingEmptyStateForFields:new Set,showOrganismLevelEmptyState:!1};const o=s&&s.length>0;if(l&&!i&&!o)return{filteredItems:r,showingEmptyStateForFields:new Set,showOrganismLevelEmptyState:!1};if(n&&!i&&!o)return{filteredItems:r.filter(e=>!Xht(e)),showingEmptyStateForFields:new Set,showOrganismLevelEmptyState:!1};const u=new Set;let d=!1;return e.forEach(e=>{const t=Qht(e);i||(t?s?.includes(t):s?.includes("__organism__"))?t?u.add(t):d=!0:l||(t?Jht(c,t)&&u.add(t):a&&(d=!0))}),d||0!==u.size?{filteredItems:r.filter(e=>{if(Xht(e)){const t=Qht(e);return t?u.has(t):d}return!1}),showingEmptyStateForFields:u,showOrganismLevelEmptyState:d}:{filteredItems:r.filter(e=>!Xht(e)),showingEmptyStateForFields:new Set,showOrganismLevelEmptyState:!1}},[t,r,c,n,a,i,s,l])})({containerItems:u,visibleItems:d,nestedPathSegments:s});if("molecule"===t.instance)return ot(Uht,{additionalInfo:`molecule: ${t.id}`,children:ot(Yht,{...t,form:l,isMobile:a,formData:o,parentId:i,tabsProps:r,setFormData:n,metadata:{...t.metadata,stateListenerId:c?.stateListenerId||t.id}})});const h=!(!u||!u.length),f="form"===t.type&&t.config.props?.activeChildrenIds||[];return h?f.length?ot(Uht,{additionalInfo:`form: ${t.id}`,children:ot(uft,{item:t,activeChildrenIds:f,formData:o,setFormData:n,isMobile:a})}):ot(Uht,{additionalInfo:`container: ${t.id}`,children:ot(lft,{...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:p?.map(e=>ot(eft,{item:e,parentId:e.id,formData:o,setFormData:n,isMobile:a,tabsProps:r,nestedPathSegments:s},e.id))})}):null}),tft=({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,organismInfo:p}=IC(),{groupStepItemsByStepContainer:h}=IC();Object.keys(d?.popupPayload??{})[0];const{currentStep:f,canGoToNextStep:m,canGoToPrevStep:y,goToNextStep:g,goToPrevStep:v,reset:x,setStep:b}=Xr(),w=h(),{submitForm:k}=IGe(),{forms:_}=ct(),C=t+1,M=w.get(r)||[];return f!==C?null:ot("div",{style:o,children:nt(rt,{children:[M.map(e=>ot(eft,{item:e,setFormData:s,formData:i},e.id)),(!n?.hasOwnButton||d?.isFormInsidePopUp)&&u&&nt("div",{style:{display:"flex",gap:"16px"},children:[ot(XGe,{text:y?"Back":"Cancel",variant:"outlined",onClick:()=>{y?v():(x(),b(1))}}),ot(XGe,{text:m?"Next":"Submit",variant:"contained",onClick:async()=>{const e=await a.trigger();if(!e)return void N6e({message:"Please fill all required fields",type:"error"});if(m)return void g();const t=a.getValues();if(e&&l){const e={formId:l,data:t,pmiObjectId:p?.pmiObjectId};c?await c(e):_?.submit&&await k(e)}}})]})]})})},rft=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]=(e=>e&&"object"==typeof e&&"value"in e&&!Array.isArray(e)?e.value:e)(r),e),{}),oft=(e,t)=>{if(!e?.enabled||!e.sourceDataModelFieldId)return null;if(!t)return null;const r=t[e.sourceDataModelFieldId];if(null==r)return null;let o=null;if("string"==typeof r)o=r;else if("object"==typeof r)if("id"in r&&"string"==typeof r.id)o=r.id;else if("value"in r){const e=r.value;"string"==typeof e?o=e:"object"==typeof e&&e&&"id"in e&&(o=e.id)}return o},nft=(e,t,r)=>{if(!e)return{};if(t){const o=e[t];if(o&&"object"==typeof o&&r in o){const e=o[r];if(e&&"object"==typeof e){const{containerStyle:t}=e;return t&&"object"==typeof t?t:e}}}const o=e[r];if(o&&"object"==typeof o){const{containerStyle:e}=o;return e&&"object"==typeof e?e:o}return{}},aft=e.memo(({containerId:e,replicatorFieldId:t,nestedPathSegments:r=[],children:o,properties:n,config:a,renderWrapper:i})=>{const{localStateObject:s,formId:l,isLoadingData:c}=IC(),u=dt(),d=LC(),p=n?.styleVariantConfig||a?.styleVariantConfig;if(Boolean(l&&d)&&d){const{fieldArrayMethods:{fields:n}}=d;return ot(rt,{children:n.map((n,a)=>{const s=[...r,{dmfId:t||"default",index:a}],l=n,c=oft(p,l),u={containerId:e||`replicator-${t||"default"}-${a}`,nestedPathSegments:s,itemIndex:a,itemDataByDmfId:l,rawItemDataByDmfId:l,activeVariant:c},d=i?i(a,o,c):o;return ot("div",{"data-replicator-instance":`${t||"default"}-${a}`,children:ot(pt,{value:u,children:d})},n.id)})})}if(c)return ot(rt,{children:Array.from({length:3}).map((n,a)=>{const s=[...r,{dmfId:t||"default",index:a}];return ot(pt,{value:{containerId:e||`replicator-${t||"default"}-${a}`,nestedPathSegments:s,itemIndex:a,itemDataByDmfId:{},rawItemDataByDmfId:{},activeVariant:null},children:i?i(a,o,null):o},`${t||"default"}-loading-${a}`)})});const h=s||{},f=u?.itemDataByDmfId?u.itemDataByDmfId:EGe(h,r),m=t?f?.[t]:f;if(!m||"object"!=typeof m){const n=t?[...r,{dmfId:t}]:r;return ot(pt,{value:{containerId:e||`replicator-${t||"default"}`,nestedPathSegments:n,itemDataByDmfId:{},activeVariant:null},children:i?i(void 0,o,null):o})}if(Array.isArray(m))return ot(rt,{children:m.map((n,a)=>{const s=[...r,{dmfId:t||"default",index:a}],l=rft(n),c=oft(p,n);return ot(pt,{value:{containerId:e||`replicator-${t||"default"}-${a}`,nestedPathSegments:s,itemIndex:a,itemDataByDmfId:l,rawItemDataByDmfId:n,activeVariant:c},children:i?i(a,o,c):o},`${t||"default"}-${a}`)})});const y=t?[...r,{dmfId:t}]:r,g=rft(m),v=oft(p,m);return ot(pt,{value:{containerId:e||`replicator-${t||"default"}`,nestedPathSegments:y,itemDataByDmfId:g,rawItemDataByDmfId:m,activeVariant:v},children:i?i(void 0,o,v):o})}),ift=({replicatorFieldId:t,nestedPathSegments:r=[],minInstances:o=1,maxInstances:n=50,children:a})=>{const{control:i,getValues:s}=Ut(),c=$C(),{prefillData:u}=IC(),d=e.useRef(!1),p=r.map(e=>void 0!==e.index?`${e.dmfId}.${e.index}`:e.dmfId).filter(Boolean).join(".");const h=p?`${p}.${t}`:t,f=function(e){const t=Ut(),{control:r=t.control,name:o,keyName:n="id",shouldUnregister:a,rules:i}=e,[s,c]=l.default.useState(r._getFieldArray(o)),u=l.default.useRef(r._getFieldArray(o).map(Lr)),d=l.default.useRef(s),p=l.default.useRef(o),h=l.default.useRef(!1);p.current=o,d.current=s,r._names.array.add(o),i&&r.register(o,i),Yt(()=>r._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===p.current||!t){const t=Dt(e,p.current);Array.isArray(t)&&(c(t),u.current=t.map(Lr))}}}).unsubscribe,[r]);const f=l.default.useCallback(e=>{h.current=!0,r._setFieldArray(o,e)},[r,o]);return l.default.useEffect(()=>{if(r._state.action=!1,Pr(o,r._names)&&r._subjects.state.next({...r._formState}),h.current&&(!Sr(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!Sr(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([o]).then(e=>{const t=Dt(e.errors,o),n=Dt(r._formState.errors,o);(n?!t&&n.type||t&&(n.type!==t.type||n.message!==t.message):t&&t.type)&&(t?Pt(r._formState.errors,o,t):pr(r._formState.errors,o),r._subjects.state.next({errors:r._formState.errors}))});else{const e=Dt(r._fields,o);!e||!e._f||Sr(r._options.reValidateMode).isOnSubmit&&Sr(r._options.mode).isOnSubmit||Fr(e,r._names.disabled,r._formValues,r._options.criteriaMode===At,r._options.shouldUseNativeValidation,!0).then(e=>!ar(e)&&r._subjects.state.next({errors:Tr(r._formState.errors,e,o)}))}r._subjects.state.next({name:o,values:kt(r._formValues)}),r._names.focus&&Er(r._fields,(e,t)=>{if(r._names.focus&&t.startsWith(r._names.focus)&&e.focus)return e.focus(),1}),r._names.focus="",r._setValid(),h.current=!1},[s,o,r]),l.default.useEffect(()=>(!Dt(r._formValues,o)&&r._setFieldArray(o),()=>{r._options.shouldUnregister||a?r.unregister(o):((e,t)=>{const o=Dt(r._fields,e);o&&o._f&&(o._f.mount=t)})(o,!1)}),[o,r,n,a]),{swap:l.default.useCallback((e,t)=>{const n=r._getFieldArray(o);Gr(n,e,t),Gr(u.current,e,t),f(n),c(n),r._setFieldArray(o,n,Gr,{argA:e,argB:t},!1)},[f,o,r]),move:l.default.useCallback((e,t)=>{const n=r._getFieldArray(o);qr(n,e,t),qr(u.current,e,t),f(n),c(n),r._setFieldArray(o,n,qr,{argA:e,argB:t},!1)},[f,o,r]),prepend:l.default.useCallback((e,t)=>{const n=tr(kt(e)),a=Wr(r._getFieldArray(o),n);r._names.focus=Br(o,0,t),u.current=Wr(u.current,n.map(Lr)),f(a),c(a),r._setFieldArray(o,a,Wr,{argA:$r(e)})},[f,o,r]),append:l.default.useCallback((e,t)=>{const n=tr(kt(e)),a=Vr(r._getFieldArray(o),n);r._names.focus=Br(o,a.length-1,t),u.current=Vr(u.current,n.map(Lr)),f(a),c(a),r._setFieldArray(o,a,Vr,{argA:$r(e)})},[f,o,r]),remove:l.default.useCallback(e=>{const t=Ur(r._getFieldArray(o),e);u.current=Ur(u.current,e),f(t),c(t),!Array.isArray(Dt(r._fields,o))&&Pt(r._fields,o,void 0),r._setFieldArray(o,t,Ur,{argA:e})},[f,o,r]),insert:l.default.useCallback((e,t,n)=>{const a=tr(kt(t)),i=Hr(r._getFieldArray(o),e,a);r._names.focus=Br(o,e,n),u.current=Hr(u.current,e,a.map(Lr)),f(i),c(i),r._setFieldArray(o,i,Hr,{argA:e,argB:$r(t)})},[f,o,r]),update:l.default.useCallback((e,t)=>{const n=kt(t),a=Kr(r._getFieldArray(o),e,n);u.current=[...a].map((t,r)=>t&&r!==e?u.current[r]:Lr()),f(a),c([...a]),r._setFieldArray(o,a,Kr,{argA:e,argB:n},!0,!1)},[f,o,r]),replace:l.default.useCallback(e=>{const t=tr(kt(e));u.current=t.map(Lr),f([...t]),c([...t]),r._setFieldArray(o,[...t],e=>e,{},!0,!1)},[f,o,r]),fields:l.default.useMemo(()=>s.map((e,t)=>({...e,[n]:u.current[t]||Lr()})),[s,n])}}({control:i,name:h}),{fields:m,append:y,replace:g}=f,v=u?.[t],x=Array.isArray(v)&&v.length>0;return e.useEffect(()=>{if(d.current)return;d.current=!0;const e=s(h),t=Array.isArray(e)&&e.length>0;if(!(x||t||m.length>0)&&o>0){Array.from({length:o},()=>({})).forEach(e=>{y(e,{shouldFocus:!1})})}},[]),e.useEffect(()=>{x&&m.length!==v.length&&g(v)},[x,v,m.length,g]),e.useEffect(()=>{if(c)return c.register({replicatorFieldId:t,fieldArrayName:h,fieldArrayMethods:f,minInstances:o,maxInstances:n}),()=>{c.unregister(t)}},[c,t,h,f,o,n]),ot(BC,{replicatorFieldId:t,fieldArrayName:h,fieldArrayMethods:f,minInstances:o,maxInstances:n,children:a})},sft={dots:!0,infinite:!1,autoplay:!1,autoplaySpeed:5e3,arrows:!0,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,swipeToSlide:!0},lft=e.memo(({id:t,type:r,name:o,config:n,children:a,metadata:i,isMobile:s,properties:l,nestedPathSegments:c=[],replicatorFieldId:u,parentStyleVariantConfig:d,parentContainerWithVariantsId:p,parentContainerActiveVariant:h})=>{const f=Ge(),{props:m,wide:y,compact:g}=n||{},v=u||m?.replicatorFieldId,{isConfigurationMode:x,onConfigurationItemClicked:b,selectedConfigurationItemId:w,currentStyleProperties:k,currentContentProperties:_,formId:C,localState:M}=IC(),S=dt(),{activeVariant:D,containerId:O}=S,P=Ut(),E=Boolean(C&&P),j=e.useMemo(()=>{if("replicator"===r)return;const e=l?.styleVariantConfig,t=e&&"object"==typeof e&&"data"in e?e.data:e;return t?.enabled&&t?.sourceDataModelFieldId?t:void 0},[r,l]),T=e.useMemo(()=>{return j?.sourceDataModelFieldId&&E?(e=S.nestedPathSegments||c,t=j.sourceDataModelFieldId,e&&0!==e.length?[...e.map(e=>void 0!==e.index?`${e.dmfId}.${e.index}`:e.dmfId),t].filter(Boolean).join("."):t):"";var e,t},[j?.sourceDataModelFieldId,E,S.nestedPathSegments,c]),N=T?P?.watch?.(T):void 0,R=e.useMemo(()=>{if(!j?.sourceDataModelFieldId)return null;const e=j.sourceDataModelFieldId;if(E&&void 0!==N){const t="string"==typeof N||"number"==typeof N?{id:String(N),value:N}:N,r=oft(j,{[e]:t});if(r)return r}const t=M?.[e];if(void 0!==t){const r=oft(j,{[e]:t});if(r)return r}const r=S.rawItemDataByDmfId?.[e],o=S.getDmfValue(e),n=r??o;if(void 0!==n){const t=oft(j,{[e]:n});if(t)return t}return null},[j,S,E,M,N]),I=d,F=R??(h??D??null),A=(j&&j.enabled?t:p)||O||null,z=e.useMemo(()=>{const r=j&&j.enabled,o=r?j:I,n=F,i=(r?t:p)||t;return void 0!==o||null!==n||void 0!==p?e.Children.map(a,t=>e.isValidElement(t)?e.cloneElement(t,{...t.props,parentStyleVariantConfig:o,parentContainerWithVariantsId:i,parentContainerActiveVariant:n}):t):a},[a,j,F,I,t,p]),L=w===t,B=L?{backgroundImage:_?.backgroundImage??l?.backgroundImage??{imageFile:{url:""}}}:l,{containerProps:V={},containerStyle:$={}}=y||{};let H={...$};const{containerProps:q={},containerStyle:W={}}=g||{};let U={...W};k&&L&&(U={...W,...k},H={...$,...k});const G=SC("xs"),K=s??G;let Y=K?U:H;if(F&&n){const e=nft(n,F,K?"compact":"wide");Object.keys(e).length>0&&(Y={...Y,...e})}const Z=K?q:V,X={...m,...Z,enableBackgroundImage:Y?.enableBackgroundImage},Q=e.useMemo(()=>({entityId:t,entityType:r,entityName:o,entity:"container",libraryEntityId:i?.containerLibraryId||void 0,activeStyleVariant:F,parentReplicatorWithVariants:A,parentStyleVariantConfig:j&&j.enabled?j:I}),[r,o,t,i,F,A,j,I]),J=x?{onClick:e=>{e&&e.stopPropagation(),b(Q,!1)},onDoubleClick:e=>{e?.stopPropagation(),b(Q,!0)}}:{},ee=`${t}.${K?"mobile":"desktop"}`,te=bo`
|
|
1034
|
+
`,Cht=({width:e="100%",height:t,fontSize:r="16px",marginLeft:o="0",marginTop:n="0",marginRight:a="0",marginBottom:i="0",sx:s})=>ot(Bb,{variant:"text",animation:"wave",sx:{width:e,height:t||("number"==typeof r?1.5*r+"px":"24px"),marginLeft:o,marginTop:n,marginRight:a,marginBottom:i,...s}}),Mht=Cht,Sht=({text:e,width:t,height:r,fontSize:o="16px",borderColor:n="#ccc",backgroundColor:a,marginLeft:i="0",marginTop:s="0",marginRight:l="0",marginBottom:c="0",paddingLeft:u,paddingTop:d,paddingRight:p,paddingBottom:h,sx:f})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:i,marginTop:s,marginRight:l,marginBottom:c,width:t||"fit-content",...f},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"60px",height:"14px",marginBottom:"4px"}}),ot(Bb,{variant:"rounded",animation:"wave",sx:{width:t||"150px",height:(()=>{if(r)return r;const e="number"==typeof o?o:parseInt(o,10);return isNaN(e)?"32px":`${Math.round(1.2*e+16)}px`})(),borderRadius:"4px",backgroundColor:a,border:`1px solid ${n}`}})]}),Dht=Sht,Oht=Sht,Pht=Sht,Eht=Sht,jht=({text:e,width:t,height:r,borderColor:o="#ccc",backgroundColor:n,marginLeft:a="0",marginTop:i="0",marginRight:s="0",marginBottom:l="0",paddingLeft:c,paddingTop:u,paddingRight:d,paddingBottom:p,sx:h})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:a,marginTop:i,marginRight:s,marginBottom:l,width:t||"fit-content",...h},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"80px",height:"14px",marginBottom:"4px"}}),ot(Bb,{variant:"rounded",animation:"wave",sx:{width:t||"180px",height:r||"32px",borderRadius:"4px",backgroundColor:n,border:`1px solid ${o}`}})]}),Tht=({text:e,maxValue:t=5,marginLeft:r="0",marginTop:o="0",marginRight:n="0",marginBottom:a="0",sx:i})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:r,marginTop:o,marginRight:n,marginBottom:a,...i},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"80px",height:"20px",marginBottom:"4px"}}),ot(Gf,{sx:{display:"flex",gap:"4px"},children:Array.from({length:t}).map((e,t)=>ot(Bb,{variant:"circular",animation:"wave",sx:{width:"24px",height:"24px"}},t))})]}),Nht=({text:e,marginLeft:t="0",marginTop:r="0",marginRight:o="0",marginBottom:n="0",sx:a})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:t,marginTop:r,marginRight:o,marginBottom:n,...a},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"60px",height:"16px",marginBottom:"8px"}}),nt(Gf,{sx:{display:"flex",alignItems:"center",gap:"8px"},children:[ot(Bb,{variant:"rounded",animation:"wave",sx:{width:"42px",height:"26px",borderRadius:"13px"}}),ot(Bb,{variant:"text",animation:"wave",sx:{width:"30px",height:"16px"}})]})]}),Rht=({text:e,width:t,orientation:r="horizontal",marginLeft:o="0",marginTop:n="0",marginRight:a="0",marginBottom:i="0",sx:s})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:o,marginTop:n,marginRight:a,marginBottom:i,width:t||"200px",...s},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"60px",height:"16px",marginBottom:"8px"}}),nt(Gf,{sx:{display:"flex",alignItems:"center",flexDirection:"vertical"===r?"column":"row",gap:"8px"},children:[ot(Bb,{variant:"rounded",animation:"wave",sx:{width:"horizontal"===r?"100%":"4px",height:"horizontal"===r?"4px":"100px",borderRadius:"2px"}}),ot(Bb,{variant:"text",animation:"wave",sx:{width:"24px",height:"16px"}})]})]}),Iht=({text:e,width:t,height:r,borderColor:o="#ced4da",backgroundColor:n,marginLeft:a="0",marginTop:i="0",marginRight:s="0",marginBottom:l="0",sx:c})=>nt(Gf,{sx:{display:"inline-flex",flexDirection:"column",marginLeft:a,marginTop:i,marginRight:s,marginBottom:l,width:t||"fit-content",...c},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"60px",height:"14px",marginBottom:"4px"}}),ot(Bb,{variant:"rounded",animation:"wave",sx:{width:t||"120px",height:r||"32px",borderRadius:"4px",backgroundColor:n,border:`1px solid ${o}`}})]}),Fht=({text:e,width:t,height:r,borderColor:o="#ced4da",marginLeft:n="0",marginTop:a="0",marginRight:i="0",marginBottom:s="0",sx:l})=>nt(Gf,{sx:{marginLeft:n,marginTop:a,marginRight:i,marginBottom:s,width:t||"fit-content",...l},children:[e&&ot(Bb,{variant:"text",animation:"wave",sx:{width:"60px",height:"14px",marginBottom:"4px"}}),ot(Bb,{variant:"rounded",animation:"wave",sx:{width:t||"100px",height:r||"32px",borderRadius:"4px",border:`1px solid ${o}`}})]}),Aht=({width:e,height:t,marginLeft:r="0",marginTop:o="0",marginRight:n="0",marginBottom:a="0",sx:i})=>nt(Gf,{sx:{marginLeft:r,marginTop:o,marginRight:n,marginBottom:a,width:e||"320px",...i},children:[ot(Bb,{variant:"rectangular",animation:"wave",sx:{width:"100%",height:"48px",borderRadius:"8px 8px 0 0",marginBottom:"8px"}}),ot(Gf,{sx:{display:"flex",justifyContent:"space-between",marginBottom:"8px"},children:Array.from({length:7}).map((e,t)=>ot(Bb,{variant:"circular",animation:"wave",sx:{width:"32px",height:"24px"}},t))}),Array.from({length:6}).map((e,t)=>ot(Gf,{sx:{display:"flex",justifyContent:"space-between",marginBottom:"4px"},children:Array.from({length:7}).map((e,t)=>ot(Bb,{variant:"circular",animation:"wave",sx:{width:"32px",height:"32px"}},t))},t))]}),zht=({text:e,subText:t,width:r,height:o,backgroundColor:n,marginLeft:a="0",marginTop:i="0",marginRight:s="0",marginBottom:l="0",sx:c})=>ot(Bb,{variant:"rounded",animation:"wave",sx:{width:r||"100%",height:o||(e&&t?"72px":"48px"),borderRadius:"4px",marginLeft:a,marginTop:i,marginRight:s,marginBottom:l,backgroundColor:n,...c}}),Lht=({size:e=24,marginLeft:t="0",marginTop:r="0",marginRight:o="0",marginBottom:n="0",sx:a})=>nt(Gf,{sx:{position:"relative",display:"inline-flex",marginLeft:t,marginTop:r,marginRight:o,marginBottom:n,...a},children:[ot(Bb,{variant:"circular",animation:"wave",sx:{width:e,height:e}}),ot(Bb,{variant:"circular",animation:"wave",sx:{position:"absolute",top:-4,right:-4,width:16,height:16}})]}),Bht=({size:e="medium",width:t,backgroundColor:r,marginLeft:o="0",marginTop:n="0",marginRight:a="0",marginBottom:i="0",sx:s})=>ot(Bb,{variant:"rounded",animation:"wave",sx:{width:t||("small"===e?"60px":"80px"),height:"small"===e?"24px":"32px",borderRadius:"16px",marginLeft:o,marginTop:n,marginRight:a,marginBottom:i,backgroundColor:r,...s}}),Vht=({width:e,fontSize:t="14px",marginLeft:r="0",marginTop:o="0",marginRight:n="0",marginBottom:a="0",sx:i})=>ot(Bb,{variant:"text",animation:"wave",sx:{width:e||"100px",height:"number"==typeof t?1.2*t+"px":"18px",marginLeft:r,marginTop:o,marginRight:n,marginBottom:a,...i}}),$ht=({size:e=40,marginLeft:t="0",marginTop:r="0",marginRight:o="0",marginBottom:n="0",sx:a})=>ot(Bb,{variant:"circular",animation:"wave",sx:{width:e,height:e,marginLeft:t,marginTop:r,marginRight:o,marginBottom:n,...a}}),Hht=["simple_text","text","basic_text_display_field","email_display_field","phone_number_display_field","numeric_display_field","currency_display_field","select_display_field","rating_display_field","switch_display_field","slider_display_field","date_display_field","time_picker_display","date_calendar_display","alert","badge","chip","link","avatar"],qht=e=>Hht.includes(e),Wht=({type:e,props:t={}})=>{const r={width:t.width,height:t.height,marginLeft:t.marginLeft||"0",marginTop:t.marginTop||"0",marginRight:t.marginRight||"0",marginBottom:t.marginBottom||"0",sx:t.sx};switch(e){case"simple_text":case"text":return ot(Cht,{...r,fontSize:t.fontSize});case"basic_text_display_field":return ot(Sht,{...r,text:t.text,fontSize:t.fontSize,borderColor:t.borderColor,backgroundColor:t.backgroundColor,paddingLeft:t.paddingLeft,paddingTop:t.paddingTop,paddingRight:t.paddingRight,paddingBottom:t.paddingBottom});case"email_display_field":return ot(Dht,{...r,text:t.text,borderColor:t.borderColor});case"phone_number_display_field":return ot(Oht,{...r,text:t.text,borderColor:t.borderColor});case"numeric_display_field":return ot(Pht,{...r,text:t.text,borderColor:t.borderColor});case"currency_display_field":return ot(Eht,{...r,text:t.text,borderColor:t.borderColor});case"select_display_field":return ot(jht,{...r,text:t.text,borderColor:t.borderColor});case"rating_display_field":return ot(Tht,{...r,text:t.text,maxValue:t.maxValue});case"switch_display_field":return ot(Nht,{...r,text:t.text});case"slider_display_field":return ot(Rht,{...r,text:t.text,orientation:t.orientation});case"date_display_field":return ot(Iht,{...r,text:t.text,borderColor:t.borderColor});case"time_picker_display":return ot(Fht,{...r,text:t.text,borderColor:t.borderColor});case"date_calendar_display":return ot(Aht,{...r});case"alert":return ot(zht,{...r,text:t.text,subText:t.subText,backgroundColor:t.backgroundColor});case"badge":return ot(Lht,{...r,size:t.size});case"chip":return ot(Bht,{...r,size:t.size,backgroundColor:t.backgroundColor});case"link":return ot(Vht,{...r,fontSize:t.fontSize});case"avatar":return ot($ht,{...r,size:t.size});default:return ot(Bb,{variant:"rounded",animation:"wave",sx:{width:r.width||"100%",height:r.height||"40px",marginLeft:r.marginLeft,marginTop:r.marginTop,marginRight:r.marginRight,marginBottom:r.marginBottom,...r.sx}})}},Uht=({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 Ght(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 Kht(e,t,r=!1){return t&&r?yn(e,t):e}const Yht=({id:t,type:r,name:o,form:n,config:a,formData:i,isMobile:s,children:l,tabsProps:c,properties:u,moleculeLibraryId:d,organismLibraryMoleculeId:p,parentStyleVariantConfig:h,parentContainerWithVariantsId:f,parentContainerActiveVariant:m})=>{const y=Ge(),g=SC("xs"),v=s||g,{formId:x,isPreview:b=!1,validations:w,submitHandler:k,isConfigurationMode:_,onConfigurationItemClicked:C,selectedConfigurationItemId:M,currentStyleProperties:S,currentContentProperties:D,onInternalNavigation:O,organismMetadata:P,organismInfo:E,localState:j,isLoadingData:T}=IC(),{stateConfig:N}=WC(),R=N,I=dt(),F=m??I.activeVariant,A=e.useMemo(()=>((e,t)=>{if(!e)return{};if(t){const r=e[t];if(r&&"object"==typeof r&&"props"in r){const e=r.props;if(e&&"object"==typeof e)return e}}return e.props||{}})(a,F??null),[a,F]),z=a?.props?.dataCaptureName||u?.dataCapture?.dataCaptureName||t,L=e.useMemo(()=>{return x&&I?.nestedPathSegments?.length?(e=I.nestedPathSegments,t=z,e&&0!==e.length?[...e.map(e=>void 0!==e.index?`${e.dmfId}.${e.index}`:e.dmfId),t].filter(Boolean).join("."):t):z;var e,t},[x,I?.nestedPathSegments,z]),B=u?.dataCapture?.sourceDataModelFieldId,V=u?.dataCapture?.predefinedValue,$=M===t,{isStateDisabled:H,isStateVisible:q}=(({stateListenerId:e})=>{const{localStateObject:t}=IC(),{stateConfig:r}=WC(),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}),W=e.useMemo(()=>({entityType:r,entity:"molecule",entityName:o,entityId:t,organismLibraryMoleculeId:p,libraryEntityId:d,activeStyleVariant:F,parentReplicatorWithVariants:f||I.containerId||null,parentStyleVariantConfig:h||void 0}),[r,o,t,p,d,F,I.containerId,f,h]),U=e.useCallback(e=>{e?.stopPropagation(),C(W,!1)},[C,W]),G=e.useCallback(e=>{e?.stopPropagation(),C(W,!0)},[C,W]),K=_?{onClick:U,onDoubleClick:G,"data-configuration-id":t,css:Qtt({theme:y,selected:$})}:{},Y=_||H;if(!q)return null;if(T&&qht(r)){const e={width:A.width,height:A.height,marginLeft:A.marginLeft||"0",marginTop:A.marginTop||"0",marginRight:A.marginRight||"0",marginBottom:A.marginBottom||"0",paddingLeft:A.paddingLeft,paddingTop:A.paddingTop,paddingRight:A.paddingRight,paddingBottom:A.paddingBottom,fontSize:A.fontSize,borderColor:A.borderColor,backgroundColor:A.backgroundColor,size:A.size,text:u?.text?.text,subText:u?.subText?.text,maxValue:A.maxValue,orientation:A.orientation,sx:A.sx};return ot(Wht,{type:r,props:e})}return(()=>{switch(r){case"simple_text":{const e={text:u?.text},r=["text"],{text:o}=Ght(e,D,r,$),n=Kht(A,S,$);return ot(ppt,{...n,text:o?.text||"",htmlElementId:t,configurationsItemInfo:K})}case"text":{const e={text:u?.text},r=Object.keys(e),{text:o}=Ght(e,D,r,$),n=Kht(A,S,$);return ot(dpt,{...o,...n,htmlElementId:t,configurationItemInfo:K})}case"consent":{const e=Ght(u,D,[],$),r=Kht(A,S,$)||{};return ot(drt,{...r,htmlElementId:t,properties:e,configurationItemInfo:K})}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=Ght(e,D,r,$),{state:n,gap:i,...s}=Kht(a?.props,S,$);return ot(aht,{gap:i,inputProps:s,validations:w||[],htmlElementId:t,validationState:n,overridesProperties:o,configurationItemInfo:K})}case"stepper":{const e=Kht(A,S,$),r=l?.map(e=>{const t=M===e.id,{properties:r,config:o,...n}=e||{},a={title:r?.title,subText:r?.subText},i=Object.keys(a),{title:s,subText:l}=Ght(a,D,i,t);return{...n,...Kht(o?.props,S,t),title:s?.text||"",subText:l?.text||""}});return ot(yht,{...e,items:r||[],isMobile:v,moleculeId:t,configurationItemInfo:K})}case"checklist":{const e=Kht(A,S,$)||{},r=l?.map(e=>{const t=M===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=Ght(a,D,i,t),l=Kht(o?.props,S,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:R?.[e.id]?.interacted||"unchecked"}}case"divider_item":{const e=Kht(o?.props,S,t)||{};return{...n,...e,type:"divider_item"}}case"text_item":{const e={text:r?.text},a=Object.keys(e),i=Ght(e,D,a,t),s=Kht(o?.props,S,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=Ght(e,D,a,t),s=Kht(o?.props,S,t)||{},l=i.text?.text||J4e;return{...n,...s,type:"rich_text_item",text:l}}default:return{...n,type:e.type}}});return ot(crt,{...e,items:r||[],moleculeId:t,configurationItemInfo:K})}case"accordion":{const e=Kht(A,S,$),r=l?.map(e=>{const t=M===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}=Ght(a,D,i,t);return{...n,...Kht(o?.props,S,t),text:s?.text||"",subText:l?.text||"",bodyText:c?.text||""}});return ot(ert,{...e,items:r||[],moleculeId:t,configurationItemInfo:K})}case"menu":{const e={text:u?.text,disabled:u?.disabled},r=Object.keys(e),{text:o,disabled:n}=Ght(e,D,r,$),a=Kht(A,S,$),i=l?.map(e=>{const t=M===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}=Ght(a,D,i,t),u=Kht(o?.props,S,t);return{...n,...u,disabled:R?.[e.id]?R?.[e.id]?.disabled:l?.value||u?.disabled||!1,text:s?.text||"Menu Item",link:c}});return ot(Qpt,{...a,items:i||[],moleculeId:t,buttonText:o?.text||"Open Menu",configurationItemInfo:K,buttonDisabled:R?.[t]?R?.[t]?.disabled:n?.value||a?.disabled||!1})}case"tabs":{const e=Kht(A,S,$),r=l?.map(e=>{const t=M===e.id,{properties:r,config:o}=e||{},n={label:r?.label,link:r?.link},a=Object.keys(n),{label:i,link:s}=Ght(n,D,a,t);return{...Kht(o?.props,S,t),id:e.id,tabKey:X7e(s)?q7e(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),a=n?o:r,i=c?.activeTabKey||a?.[0]?.tabKey||"";return ot(xht,{...e,items:a||[],isMobile:v,moleculeId:t,activeTabKey:i,configurationItemInfo:K,onTabChange:_?void 0:({newTabKey:e,link:t})=>{n?c?.onTabChange?.(e):X7e(t)?O?.({link:t?.internalLink||""}):Y7e(t?.externalLink)}})}case"divider":{const e=Kht(A,S,$);return ot(lpt,{moleculeId:t,configurationItemInfo:K,...e})}case"link":{const e={text:u?.text,link:u?.link},r=Object.keys(e),{text:o,link:n}=Ght(e,D,r,$),a=n,i=Kht(A,S,$);return ot(Zpt,{moleculeId:t,...i,link:a,type:a?.type,src:Y?void 0:t9e(a,b)||"",text:o?.text||"",disabled:i?.disabled||H,configurationItemInfo:K})}case"data_driven_link":{const e={text:u?.text},r=Object.keys(e),{text:o}=Ght(e,D,r,$),n=Kht(A,S,$);return ot(Zpt,{moleculeId:t,...n,text:o?.text||"",sourceDataModelField:B,disabled:n?.disabled||H,configurationItemInfo:K})}case"video":{const e={video:u?.video,coverImage:u?.coverImage},r=Object.keys(e),{video:o,coverImage:n}=Ght(e,D,r,$),a=Kht(A,S,$);return ot(kht,{...a,moleculeId:t,poster:n?.imageFile?.url,src:o?.videoSource??o?.videoFile?.url??"",configurationItemInfo:K})}case"badge":{const e=Kht(A,S,$);return ot(ort,{...e,configurationItemInfo:K})}case"alert":{const e={text:u?.text,subText:u?.subText},t=Object.keys(e),{text:r,subText:o}=Ght(e,D,t,$),n=Kht(A,S,$);return ot(trt,{text:r?.text||"",subText:o?.text||"",...n,configurationItemInfo:K})}case"chip":{const e={text:u?.text},t=Object.keys(e),{text:r}=Ght(e,D,t,$),o=Kht(A,S,$);return ot(urt,{text:r?.text||"",...o,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(Ypt,{name:L,text:o?.text||"",placeholderText:n?.text||"",sourceDataModelField:B,required:a?.value,isDisplayOnly:"email_display_field"===r,requiredErrorText:i?.text,validationErrorText:s?.text,...l,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(dht,{name:L,text:o?.text||"",required:a?.value,requiredErrorText:i?.text,validationErrorText:s?.text,placeholderText:n?.text||"",sourceDataModelField:B,isDisplayOnly:"phone_number_display_field"===r,...l,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(tht,{name:L,text:o?.text||"",required:a?.value,isDisplayOnly:"numeric_display_field"===r,requiredErrorText:i?.text,validationErrorText:s?.text,placeholderText:n?.text||"",sourceDataModelField:B,...l,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(mrt,{name:L,text:o?.text||"",required:a?.value,isDisplayOnly:"currency_display_field"===r,requiredErrorText:i?.text,validationErrorText:s?.text,placeholderText:n?.text||"",sourceDataModelField:B,...l,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(irt,{name:L,text:o?.text||"",required:a?.value,isDisplayOnly:"basic_text_display_field"===r,requiredErrorText:i?.text,validationErrorText:s?.text,placeholderText:n?.text||"",sourceDataModelField:B,...l,configurationItemInfo:K})}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:a,validationErrorText:i}=Ght(e,D,t,$),s=Kht(A,S,$);return ot(pht,{name:L,text:o?.text||"",required:n?.value,requiredErrorText:a?.text,validationErrorText:i?.text,sourceDataModelField:B,isDisplayOnly:"rating_display_field"===r,...s,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,o,$),l=Kht(A,S,$);return ot(vht,{name:L,moleculeId:t,text:n?.text||"",required:a?.value,isDisplayOnly:"switch_display_field"===r,requiredErrorText:i?.text,validationErrorText:s?.text,sourceDataModelField:B,...l,configurationItemInfo:K})}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:a,validationErrorText:i,placeholderText:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(fht,{name:L,text:o?.text||"",required:n?.value,isDisplayOnly:"slider_display_field"===r,requiredErrorText:a?.text,validationErrorText:i?.text,placeholderText:s?.text,sourceDataModelField:B,...l,configurationItemInfo:K})}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:a,placeholderText:i,requiredErrorText:s,validationErrorText:l}=Ght(e,D,o,$),c=Kht(A,S,$);return ot(Pat,{dateAdapter:Ont,children:ot(spt,{moleculeId:t,name:L,text:n?.text||"",required:a?.value,placeholderText:i?.text||"",isDisplayOnly:"date_display_field"===r,requiredErrorText:s?.text,validationErrorText:l?.text,sourceDataModelField:B,...c,configurationItemInfo:K})})}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:a,validationErrorText:i,required:s}=Ght(e,D,t,$),l=Kht(A,S,$);return ot(Pat,{dateAdapter:Ont,children:ot(wht,{...l,name:L,text:o?.text||"",placeholderText:n?.text||"",required:s?.value,requiredErrorText:a?.text,validationErrorText:i?.text,isDisplayOnly:"time_picker_display"===r,sourceDataModelField:B,configurationItemInfo:K})})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,t,$),l=Kht(A,S,$),c="select_display_field"===r;return ot(hht,{name:L,text:o?.text||"",required:n?.value,isDisplayOnly:c,predefinedValue:V,placeholderText:a?.text||"",requiredErrorText:i?.text,validationErrorText:s?.text,sourceDataModelField:B,...l,configurationItemInfo:K})}case"image":{const e={image:u?.image,link:u?.link},r=Object.keys(e),{image:o,link:n}=Ght(e,D,r,$),a=Kht(A,S,$);return ot(cpt,{...a,src:o?.imageSource||o?.imageFile?.url||o?.imageFile?.id||"",onClick:n?()=>X7e(n)?O?.({link:n?.internalLink||""}):Y7e(n?.externalLink):void 0,moleculeId:t,configurationItemInfo:K,properties:{image:o,link:n}})}case"button":{const e={text:u?.text,action:u?.action},r=Object.keys(e),{text:o,action:n}=Ght(e,D,r,$),a=Kht(A,S,$);return ot(XGe,{moleculeId:t,text:o?.text||"",...a,disabled:a?.disabled||H,configurationItemInfo:K,properties:{text:o,action:n}})}case"avatar":{const e=Kht(A,S,$);return ot(rrt,{...e,sourceDataModelField:B,configurationItemInfo:K})}case"drawer":{const e={text:u?.text,disabled:u?.disabled},r=Object.keys(e),{text:o,disabled:n}=Ght(e,D,r,$),a=Kht(A,S,$),i=l?.map(e=>{const t=M===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=Ght(a,D,i,t),l=Kht(o?.props,S,t),c={...n,...l};switch(e.type){case"menu_item":return{...c,disabled:R?.[e.id]?R?.[e.id]?.disabled:s?.disabled?.value||l?.disabled||!1,text:s?.text?.text||"Menu Item",link:s?.link,sx:l?.sx||c.sx};case"text_item":return{...c,text:s?.text?.text||""};case"rich_text_item":return{...c,text:s?.text?.text||J4e};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(Wpt,{...a,items:i||[],moleculeId:t,buttonText:o?.text||a?.buttonText,buttonDisabled:R?.[t]?R?.[t]?.disabled:n?.value||a?.disabled||!1,configurationItemInfo:K})}case"speed_dial":{const e=Kht(A,S,$),r=l?.map(e=>{const t=M===e.id,{properties:r,config:o,...n}=e||{},a={link:r?.link,text:r?.text},i=Object.keys(a),s=Ght(a,D,i,t),l=Kht(o?.props,S,t);return{...n,config:{props:{...o?.props,...l,tooltipText:l?.tooltipText||""}},properties:{link:s?.link||r?.link,text:s?.text||r?.text}}});return ot(mht,{...e,items:r||[],moleculeId:t,configurationItemInfo:K})}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:a,requiredErrorText:i,validationErrorText:s}=Ght(e,D,o,$),l=Kht(A,S,$);return ot(lrt,{name:L,moleculeId:t,label:n?.text||"",required:a?.value,requiredErrorText:i?.text,validationErrorText:s?.text,sourceDataModelField:B,isDisplayOnly:"checkbox_display"===r,...l,configurationItemInfo:K})}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:a,required:i,requiredErrorText:s,validationErrorText:l}=Ght(e,D,o,$),c=Kht(A,S,$);return ot(srt,{name:L,moleculeId:t,confirmText:n?.text||"Yes",rejectText:a?.text||"No",required:i?.value,requiredErrorText:s?.text,validationErrorText:l?.text,sourceDataModelField:B,isDisplayOnly:"binary_radio_buttons_display"===r,...c,configurationItemInfo:K})}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:a}=Ght(e,D,t,$),i=Kht(A,S,$);return ot(Bst,{...i,name:L,required:o?.value,requiredErrorText:n?.text,validationErrorText:a?.text,isDisplayOnly:"date_calendar_display"===r,sourceDataModelField:B,configurationItemInfo:K})}default:return ot(rt,{children:"There is no such type of molecule yet."})}})()},Zht=({nestedPathSegments:t})=>{const{localStateObject:r}=IC(),o=dt();return e.useMemo(()=>{if(o?.itemDataByDmfId)return o.itemDataByDmfId;const e=(e=>{if(null!=e){if("object"==typeof e&&!Array.isArray(e)&&"viewType"in e&&"data"in e){const t=e.data;if(null==t)return;return t}return e}})(r);return void 0!==e?0===t.length||Array.isArray(e)?e:EGe(e,t):void 0},[o?.itemDataByDmfId,r,t])},Xht=e=>"container"===e.instance&&"empty_state"===e.type,Qht=e=>{if("container"!==e.instance)return;const t=e;return t.replicatorFieldId||t.config?.props?.replicatorFieldId},Jht=(e,t)=>{if(!e)return!0;if(Array.isArray(e))return 0===e.length;return(e=>null==e||Array.isArray(e)&&0===e.length||"object"==typeof e&&!Array.isArray(e)&&0===Object.keys(e).length)(e[t])},eft=e.memo(({item:t,tabsProps:r,formData:o,setFormData:n,isMobile:a,parentId:i,nestedPathSegments:s=[]})=>{const l=Ut(),{organismMetadata:c}=IC(),u="items"in t?t.items:void 0,d=(({items:t})=>{const{stateConfig:r}=WC(),{localStateObject:o}=IC(),n=o||r;return e.useMemo(()=>t&&0!==t.length?t.filter(e=>{const t=e.config?.props?.visible??!0,r=n?.[e.id]?.visible??!0;return t&&r}):[],[t,n])})({items:u}),{filteredItems:p}=(({containerItems:t,visibleItems:r,nestedPathSegments:o})=>{const{isLoadingData:n,isEmptyDataState:a,forceEmptyStatePreview:i,previewingEmptyStates:s,isConfigurationMode:l}=IC(),c=Zht({nestedPathSegments:o});return e.useMemo(()=>{if(!t||0===t.length)return{filteredItems:r,showingEmptyStateForFields:new Set,showOrganismLevelEmptyState:!1};const e=t.filter(Xht);if(0===e.length)return{filteredItems:r,showingEmptyStateForFields:new Set,showOrganismLevelEmptyState:!1};const o=s&&s.length>0;if(l&&!i&&!o)return{filteredItems:r,showingEmptyStateForFields:new Set,showOrganismLevelEmptyState:!1};if(n&&!i&&!o)return{filteredItems:r.filter(e=>!Xht(e)),showingEmptyStateForFields:new Set,showOrganismLevelEmptyState:!1};const u=new Set;let d=!1;return e.forEach(e=>{const t=Qht(e);i||(t?s?.includes(t):s?.includes("__organism__"))?t?u.add(t):d=!0:l||(t?Jht(c,t)&&u.add(t):a&&(d=!0))}),d||0!==u.size?{filteredItems:r.filter(e=>{if(Xht(e)){const t=Qht(e);return t?u.has(t):d}return!1}),showingEmptyStateForFields:u,showOrganismLevelEmptyState:d}:{filteredItems:r.filter(e=>!Xht(e)),showingEmptyStateForFields:new Set,showOrganismLevelEmptyState:!1}},[t,r,c,n,a,i,s,l])})({containerItems:u,visibleItems:d,nestedPathSegments:s});if("molecule"===t.instance)return ot(Uht,{additionalInfo:`molecule: ${t.id}`,children:ot(Yht,{...t,form:l,isMobile:a,formData:o,parentId:i,tabsProps:r,setFormData:n,metadata:{...t.metadata,stateListenerId:c?.stateListenerId||t.id}})});const h=!(!u||!u.length),f="form"===t.type&&t.config.props?.activeChildrenIds||[];return h?f.length?ot(Uht,{additionalInfo:`form: ${t.id}`,children:ot(uft,{item:t,activeChildrenIds:f,formData:o,setFormData:n,isMobile:a})}):ot(Uht,{additionalInfo:`container: ${t.id}`,children:ot(lft,{...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:p?.map(e=>ot(eft,{item:e,parentId:e.id,formData:o,setFormData:n,isMobile:a,tabsProps:r,nestedPathSegments:s},e.id))})}):null}),tft=({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,organismInfo:p}=IC(),{groupStepItemsByStepContainer:h}=IC();Object.keys(d?.popupPayload??{})[0];const{currentStep:f,canGoToNextStep:m,canGoToPrevStep:y,goToNextStep:g,goToPrevStep:v,reset:x,setStep:b}=Xr(),w=h(),{submitForm:k}=IGe(),{forms:_}=ct(),C=t+1,M=w.get(r)||[];return f!==C?null:ot("div",{style:o,children:nt(rt,{children:[M.map(e=>ot(eft,{item:e,setFormData:s,formData:i},e.id)),(!n?.hasOwnButton||d?.isFormInsidePopUp)&&u&&nt("div",{style:{display:"flex",gap:"16px"},children:[ot(XGe,{text:y?"Back":"Cancel",variant:"outlined",onClick:()=>{y?v():(x(),b(1))}}),ot(XGe,{text:m?"Next":"Submit",variant:"contained",onClick:async()=>{const e=await a.trigger();if(!e)return void N6e({message:"Please fill all required fields",type:"error"});if(m)return void g();const t=a.getValues();if(e&&l){const e={formId:l,data:t,pmiObjectId:p?.pmiObjectId};c?await c(e):_?.submit&&await k(e)}}})]})]})})},rft=e=>Object.entries(e).reduce((e,[t,r])=>(e[t]=(e=>e&&"object"==typeof e&&"value"in e&&!Array.isArray(e)?e.value:e)(r),e),{}),oft=(e,t)=>{if(!e?.enabled||!e.sourceDataModelFieldId)return null;if(!t)return null;const r=t[e.sourceDataModelFieldId];if(null==r)return null;let o=null;if("string"==typeof r)o=r;else if("object"==typeof r)if("id"in r&&"string"==typeof r.id)o=r.id;else if("value"in r){const e=r.value;"string"==typeof e?o=e:"object"==typeof e&&e&&"id"in e&&(o=e.id)}return o},nft=(e,t,r)=>{if(!e)return{};if(t){const o=e[t];if(o&&"object"==typeof o&&r in o){const e=o[r];if(e&&"object"==typeof e){const{containerStyle:t}=e;return t&&"object"==typeof t?t:e}}}const o=e[r];if(o&&"object"==typeof o){const{containerStyle:e}=o;return e&&"object"==typeof e?e:o}return{}},aft=e.memo(({containerId:e,replicatorFieldId:t,nestedPathSegments:r=[],children:o,properties:n,config:a,renderWrapper:i})=>{const{localStateObject:s,formId:l,isLoadingData:c}=IC(),u=dt(),d=LC(),p=n?.styleVariantConfig||a?.styleVariantConfig;if(Boolean(l&&d)&&d){const{fieldArrayMethods:{fields:n}}=d;return ot(rt,{children:n.map((n,a)=>{const s=[...r,{dmfId:t||"default",index:a}],l=n,c=oft(p,l),u={containerId:e||`replicator-${t||"default"}-${a}`,nestedPathSegments:s,itemIndex:a,itemDataByDmfId:l,rawItemDataByDmfId:l,activeVariant:c},d=i?i(a,o,c):o;return ot("div",{"data-replicator-instance":`${t||"default"}-${a}`,children:ot(pt,{value:u,children:d})},n.id)})})}if(c)return ot(rt,{children:Array.from({length:3}).map((n,a)=>{const s=[...r,{dmfId:t||"default",index:a}];return ot(pt,{value:{containerId:e||`replicator-${t||"default"}-${a}`,nestedPathSegments:s,itemIndex:a,itemDataByDmfId:{},rawItemDataByDmfId:{},activeVariant:null},children:i?i(a,o,null):o},`${t||"default"}-loading-${a}`)})});const h=s||{},f=u?.itemDataByDmfId?u.itemDataByDmfId:EGe(h,r),m=t?f?.[t]:f;if(!m||"object"!=typeof m){const n=t?[...r,{dmfId:t}]:r;return ot(pt,{value:{containerId:e||`replicator-${t||"default"}`,nestedPathSegments:n,itemDataByDmfId:{},activeVariant:null},children:i?i(void 0,o,null):o})}if(Array.isArray(m))return ot(rt,{children:m.map((n,a)=>{const s=[...r,{dmfId:t||"default",index:a}],l=rft(n),c=oft(p,n);return ot(pt,{value:{containerId:e||`replicator-${t||"default"}-${a}`,nestedPathSegments:s,itemIndex:a,itemDataByDmfId:l,rawItemDataByDmfId:n,activeVariant:c},children:i?i(a,o,c):o},`${t||"default"}-${a}`)})});const y=t?[...r,{dmfId:t}]:r,g=rft(m),v=oft(p,m);return ot(pt,{value:{containerId:e||`replicator-${t||"default"}`,nestedPathSegments:y,itemDataByDmfId:g,rawItemDataByDmfId:m,activeVariant:v},children:i?i(void 0,o,v):o})}),ift=({replicatorFieldId:t,nestedPathSegments:r=[],minInstances:o=1,maxInstances:n=50,children:a})=>{const{control:i,getValues:s}=Ut(),c=$C(),{prefillData:u}=IC(),d=e.useRef(!1),p=r.map(e=>void 0!==e.index?`${e.dmfId}.${e.index}`:e.dmfId).filter(Boolean).join(".");const h=p?`${p}.${t}`:t,f=function(e){const t=Ut(),{control:r=t.control,name:o,keyName:n="id",shouldUnregister:a,rules:i}=e,[s,c]=l.default.useState(r._getFieldArray(o)),u=l.default.useRef(r._getFieldArray(o).map(Lr)),d=l.default.useRef(s),p=l.default.useRef(o),h=l.default.useRef(!1);p.current=o,d.current=s,r._names.array.add(o),i&&r.register(o,i),Yt(()=>r._subjects.array.subscribe({next:({values:e,name:t})=>{if(t===p.current||!t){const t=Dt(e,p.current);Array.isArray(t)&&(c(t),u.current=t.map(Lr))}}}).unsubscribe,[r]);const f=l.default.useCallback(e=>{h.current=!0,r._setFieldArray(o,e)},[r,o]);return l.default.useEffect(()=>{if(r._state.action=!1,Pr(o,r._names)&&r._subjects.state.next({...r._formState}),h.current&&(!Sr(r._options.mode).isOnSubmit||r._formState.isSubmitted)&&!Sr(r._options.reValidateMode).isOnSubmit)if(r._options.resolver)r._runSchema([o]).then(e=>{const t=Dt(e.errors,o),n=Dt(r._formState.errors,o);(n?!t&&n.type||t&&(n.type!==t.type||n.message!==t.message):t&&t.type)&&(t?Pt(r._formState.errors,o,t):pr(r._formState.errors,o),r._subjects.state.next({errors:r._formState.errors}))});else{const e=Dt(r._fields,o);!e||!e._f||Sr(r._options.reValidateMode).isOnSubmit&&Sr(r._options.mode).isOnSubmit||Fr(e,r._names.disabled,r._formValues,r._options.criteriaMode===At,r._options.shouldUseNativeValidation,!0).then(e=>!ar(e)&&r._subjects.state.next({errors:Tr(r._formState.errors,e,o)}))}r._subjects.state.next({name:o,values:kt(r._formValues)}),r._names.focus&&Er(r._fields,(e,t)=>{if(r._names.focus&&t.startsWith(r._names.focus)&&e.focus)return e.focus(),1}),r._names.focus="",r._setValid(),h.current=!1},[s,o,r]),l.default.useEffect(()=>(!Dt(r._formValues,o)&&r._setFieldArray(o),()=>{r._options.shouldUnregister||a?r.unregister(o):((e,t)=>{const o=Dt(r._fields,e);o&&o._f&&(o._f.mount=t)})(o,!1)}),[o,r,n,a]),{swap:l.default.useCallback((e,t)=>{const n=r._getFieldArray(o);Gr(n,e,t),Gr(u.current,e,t),f(n),c(n),r._setFieldArray(o,n,Gr,{argA:e,argB:t},!1)},[f,o,r]),move:l.default.useCallback((e,t)=>{const n=r._getFieldArray(o);qr(n,e,t),qr(u.current,e,t),f(n),c(n),r._setFieldArray(o,n,qr,{argA:e,argB:t},!1)},[f,o,r]),prepend:l.default.useCallback((e,t)=>{const n=tr(kt(e)),a=Wr(r._getFieldArray(o),n);r._names.focus=Br(o,0,t),u.current=Wr(u.current,n.map(Lr)),f(a),c(a),r._setFieldArray(o,a,Wr,{argA:$r(e)})},[f,o,r]),append:l.default.useCallback((e,t)=>{const n=tr(kt(e)),a=Vr(r._getFieldArray(o),n);r._names.focus=Br(o,a.length-1,t),u.current=Vr(u.current,n.map(Lr)),f(a),c(a),r._setFieldArray(o,a,Vr,{argA:$r(e)})},[f,o,r]),remove:l.default.useCallback(e=>{const t=Ur(r._getFieldArray(o),e);u.current=Ur(u.current,e),f(t),c(t),!Array.isArray(Dt(r._fields,o))&&Pt(r._fields,o,void 0),r._setFieldArray(o,t,Ur,{argA:e})},[f,o,r]),insert:l.default.useCallback((e,t,n)=>{const a=tr(kt(t)),i=Hr(r._getFieldArray(o),e,a);r._names.focus=Br(o,e,n),u.current=Hr(u.current,e,a.map(Lr)),f(i),c(i),r._setFieldArray(o,i,Hr,{argA:e,argB:$r(t)})},[f,o,r]),update:l.default.useCallback((e,t)=>{const n=kt(t),a=Kr(r._getFieldArray(o),e,n);u.current=[...a].map((t,r)=>t&&r!==e?u.current[r]:Lr()),f(a),c([...a]),r._setFieldArray(o,a,Kr,{argA:e,argB:n},!0,!1)},[f,o,r]),replace:l.default.useCallback(e=>{const t=tr(kt(e));u.current=t.map(Lr),f([...t]),c([...t]),r._setFieldArray(o,[...t],e=>e,{},!0,!1)},[f,o,r]),fields:l.default.useMemo(()=>s.map((e,t)=>({...e,[n]:u.current[t]||Lr()})),[s,n])}}({control:i,name:h}),{fields:m,append:y,replace:g}=f,v=u?.[t],x=Array.isArray(v)&&v.length>0;return e.useEffect(()=>{if(d.current)return;d.current=!0;const e=s(h),t=Array.isArray(e)&&e.length>0;if(!(x||t||m.length>0)&&o>0){Array.from({length:o},()=>({})).forEach(e=>{y(e,{shouldFocus:!1})})}},[]),e.useEffect(()=>{x&&m.length!==v.length&&g(v)},[x,v,m.length,g]),e.useEffect(()=>{if(c)return c.register({replicatorFieldId:t,fieldArrayName:h,fieldArrayMethods:f,minInstances:o,maxInstances:n}),()=>{c.unregister(t)}},[c,t,h,f,o,n]),ot(BC,{replicatorFieldId:t,fieldArrayName:h,fieldArrayMethods:f,minInstances:o,maxInstances:n,children:a})},sft={dots:!0,infinite:!1,autoplay:!1,autoplaySpeed:5e3,arrows:!0,slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,swipeToSlide:!0},lft=e.memo(({id:t,type:r,name:o,config:n,children:a,metadata:i,isMobile:s,properties:l,nestedPathSegments:c=[],replicatorFieldId:u,parentStyleVariantConfig:d,parentContainerWithVariantsId:p,parentContainerActiveVariant:h})=>{const f=Ge(),{props:m,wide:y,compact:g}=n||{},v=u||m?.replicatorFieldId,{isConfigurationMode:x,onConfigurationItemClicked:b,selectedConfigurationItemId:w,currentStyleProperties:k,currentContentProperties:_,formId:C,localState:M}=IC(),S=dt(),{activeVariant:D,containerId:O}=S,P=Ut(),E=Boolean(C&&P),j=e.useMemo(()=>{if("replicator"===r)return;const e=l?.styleVariantConfig,t=e&&"object"==typeof e&&"data"in e?e.data:e;return t?.enabled&&t?.sourceDataModelFieldId?t:void 0},[r,l]),T=e.useMemo(()=>{return j?.sourceDataModelFieldId&&E?(e=S.nestedPathSegments||c,t=j.sourceDataModelFieldId,e&&0!==e.length?[...e.map(e=>void 0!==e.index?`${e.dmfId}.${e.index}`:e.dmfId),t].filter(Boolean).join("."):t):"";var e,t},[j?.sourceDataModelFieldId,E,S.nestedPathSegments,c]),N=T?P?.watch?.(T):void 0,R=e.useMemo(()=>{if(!j?.sourceDataModelFieldId)return null;const e=j.sourceDataModelFieldId;if(E&&void 0!==N){const t="string"==typeof N||"number"==typeof N?{id:String(N),value:N}:N,r=oft(j,{[e]:t});if(r)return r}const t=M?.[e];if(void 0!==t){const r=oft(j,{[e]:t});if(r)return r}const r=S.rawItemDataByDmfId?.[e],o=S.getDmfValue(e),n=r??o;if(void 0!==n){const t=oft(j,{[e]:n});if(t)return t}return null},[j,S,E,M,N]),I=d,F=R??(h??D??null),A=(j&&j.enabled?t:p)||O||null,z=e.useMemo(()=>{const r=j&&j.enabled,o=r?j:I,n=F,i=(r?t:p)||t;return void 0!==o||null!==n||void 0!==p?e.Children.map(a,t=>e.isValidElement(t)?e.cloneElement(t,{...t.props,parentStyleVariantConfig:o,parentContainerWithVariantsId:i,parentContainerActiveVariant:n}):t):a},[a,j,F,I,t,p]),L=w===t,B=L?{backgroundImage:_?.backgroundImage??l?.backgroundImage??{imageFile:{url:""}}}:l,{containerProps:V={},containerStyle:$={}}=y||{};let H={...$};const{containerProps:q={},containerStyle:W={}}=g||{};let U={...W};k&&L&&(U={...W,...k},H={...$,...k});const G=SC("xs"),K=s??G;let Y=K?U:H;if(F&&n){const e=nft(n,F,K?"compact":"wide");Object.keys(e).length>0&&(Y={...Y,...e})}const Z=K?q:V,X={...m,...Z,enableBackgroundImage:Y?.enableBackgroundImage},Q=e.useMemo(()=>({entityId:t,entityType:r,entityName:o,entity:"container",libraryEntityId:i?.containerLibraryId||void 0,activeStyleVariant:F,parentReplicatorWithVariants:A,parentStyleVariantConfig:j&&j.enabled?j:I}),[r,o,t,i,F,A,j,I]),J=x?{onClick:e=>{e&&e.stopPropagation(),b(Q,!1)},onDoubleClick:e=>{e?.stopPropagation(),b(Q,!0)}}:{},ee=`${t}.${K?"mobile":"desktop"}`,te=bo`
|
|
1035
1035
|
display: flex;
|
|
1036
1036
|
position: relative; /* default containing block for absolute children */
|
|
1037
1037
|
overflow: visible; /* allow positioned children to overflow */
|