@crystaldesign/products-component 24.14.0-beta.9 → 24.15.0-beta.1
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/build/cjs/index.js +18 -13
- package/build/esm/index.js +18 -13
- package/build/types/products-component/src/hooks/useProductState.d.ts +4 -1
- package/build/types/products-component/src/hooks/useProductState.d.ts.map +1 -1
- package/build/umd/113.products-component.umd.min.js +2 -0
- package/build/umd/113.products-component.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/192.products-component.umd.min.js +1 -1
- package/build/umd/225.products-component.umd.min.js +1 -1
- package/build/umd/337.products-component.umd.min.js +1 -1
- package/build/umd/617.products-component.umd.min.js +1 -1
- package/build/umd/723.products-component.umd.min.js +1 -1
- package/build/umd/788.products-component.umd.min.js +1 -1
- package/build/umd/797.products-component.umd.min.js +2 -0
- package/build/umd/797.products-component.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/839.products-component.umd.min.js +1 -1
- package/build/umd/902.products-component.umd.min.js +2 -0
- package/build/umd/902.products-component.umd.min.js.LICENSE.txt +1 -0
- package/build/umd/944.products-component.umd.min.js +1 -1
- package/build/umd/products-component.umd.min.js +74 -1
- package/build/umd/products-component.umd.min.js.LICENSE.txt +8 -0
- package/build/umd/report.html +1 -1
- package/package.json +2 -2
- package/build/umd/460.products-component.umd.min.js +0 -2
- package/build/umd/460.products-component.umd.min.js.LICENSE.txt +0 -1
- package/build/umd/473.products-component.umd.min.js +0 -2
- package/build/umd/473.products-component.umd.min.js.LICENSE.txt +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 902.products-component.umd.min.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunkCrystaldesignProductsComponent=self.webpackChunkCrystaldesignProductsComponent||[]).push([[902],{8204:(e,t,n)=>{n.d(t,{Z:()=>X});var o=n(7363),r=n(7726),i=n(4062);let a=0;const s={...o}.useId;function useId(e){if(void 0!==s){const t=s();return e??t}return function useGlobalId(e){const[t,n]=o.useState(e),r=e||t;return o.useEffect((()=>{null==t&&(a+=1,n(`mui-${a}`))}),[t]),r}(e)}var l=n(1522),c=n(2793),d=n(9045),u=n(7582),p=n(7514);const f=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function defaultGetTabbable(e){const t=[],n=[];return Array.from(e.querySelectorAll(f)).forEach(((e,o)=>{const r=function getTabIndex(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==r&&function isNodeMatchingSelectorFocusable(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function isNonTabbableRadio(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const getRadio=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let t=getRadio(`[name="${e.name}"]:checked`);return t||(t=getRadio(`[name="${e.name}"]`)),t!==e}(e))}(e)&&(0===r?t.push(e):n.push({documentOrder:o,tabIndex:r,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function defaultIsEnabled(){return!0}const m=function FocusTrap(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=defaultGetTabbable,isEnabled:s=defaultIsEnabled,open:l}=e,f=o.useRef(!1),m=o.useRef(null),g=o.useRef(null),h=o.useRef(null),b=o.useRef(null),v=o.useRef(!1),x=o.useRef(null),y=(0,c.Z)((0,d.Z)(t),x),w=o.useRef(null);o.useEffect((()=>{l&&x.current&&(v.current=!n)}),[n,l]),o.useEffect((()=>{if(!l||!x.current)return;const e=(0,u.Z)(x.current);return x.current.contains(e.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),v.current&&x.current.focus()),()=>{i||(h.current&&h.current.focus&&(f.current=!0,h.current.focus()),h.current=null)}}),[l]),o.useEffect((()=>{if(!l||!x.current)return;const e=(0,u.Z)(x.current),loopFocus=t=>{w.current=t,!r&&s()&&"Tab"===t.key&&e.activeElement===x.current&&t.shiftKey&&(f.current=!0,g.current&&g.current.focus())},contain=()=>{const t=x.current;if(null===t)return;if(!e.hasFocus()||!s()||f.current)return void(f.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==m.current&&e.activeElement!==g.current)return;if(e.activeElement!==b.current)b.current=null;else if(null!==b.current)return;if(!v.current)return;let n=[];if(e.activeElement!==m.current&&e.activeElement!==g.current||(n=a(x.current)),n.length>0){const e=Boolean(w.current?.shiftKey&&"Tab"===w.current?.key),t=n[0],o=n[n.length-1];"string"!=typeof t&&"string"!=typeof o&&(e?o.focus():t.focus())}else t.focus()};e.addEventListener("focusin",contain),e.addEventListener("keydown",loopFocus,!0);const t=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&contain()}),50);return()=>{clearInterval(t),e.removeEventListener("focusin",contain),e.removeEventListener("keydown",loopFocus,!0)}}),[n,r,i,s,l,a]);const handleFocusSentinel=e=>{null===h.current&&(h.current=e.relatedTarget),v.current=!0};return(0,p.jsxs)(o.Fragment,{children:[(0,p.jsx)("div",{tabIndex:l?0:-1,onFocus:handleFocusSentinel,ref:m,"data-testid":"sentinelStart"}),o.cloneElement(t,{ref:y,onFocus:e=>{null===h.current&&(h.current=e.relatedTarget),v.current=!0,b.current=e.target;const n=t.props.onFocus;n&&n(e)}}),(0,p.jsx)("div",{tabIndex:l?0:-1,onFocus:handleFocusSentinel,ref:g,"data-testid":"sentinelEnd"})]})};var g=n(1533),h=n(2950),b=n(2221);const v=o.forwardRef((function Portal(e,t){const{children:n,container:r,disablePortal:i=!1}=e,[a,s]=o.useState(null),l=(0,c.Z)(o.isValidElement(n)?(0,d.Z)(n):null,t);if((0,h.Z)((()=>{i||s(function getContainer(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,i]),(0,h.Z)((()=>{if(a&&!i)return(0,b.Z)(t,a),()=>{(0,b.Z)(t,null)}}),[t,a,i]),i){if(o.isValidElement(n)){const e={ref:l};return o.cloneElement(n,e)}return(0,p.jsx)(o.Fragment,{children:n})}return(0,p.jsx)(o.Fragment,{children:a?g.createPortal(n,a):a})}));var x=n(7843),y=n(518),w=n(2893),Z=n(5667),S=n(6455),E=n(9470);function useSlot(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:i,getSlotOwnerState:a,internalForwardedProps:s,...l}=t,{component:d,slots:u={[e]:void 0},slotProps:p={[e]:void 0},...f}=i,m=u[e]||o,g=(0,S.Z)(p[e],r),{props:{component:h,...b},internalRef:v}=(0,E.Z)({className:n,...l,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:g}),x=(0,c.Z)(v,g?.ref,t.ref),y=a?a(b):{},w={...r,...y},C="root"===e?h||d:h,k=(0,Z.Z)(m,{..."root"===e&&!d&&!u[e]&&s,..."root"!==e&&!u[e]&&s,...b,...C&&{as:C},ref:x},w);return Object.keys(y).forEach((e=>{delete k[e]})),[m,k]}var C=n(3767),k=n(1499),P=n(23),R=n(8080);const T={entering:{opacity:1},entered:{opacity:1}},M=o.forwardRef((function Fade(e,t){const n=(0,k.Z)(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,easing:l,in:c,onEnter:u,onEntered:f,onEntering:m,onExit:g,onExited:h,onExiting:b,style:v,timeout:x=r,TransitionComponent:y=C.ZP,...w}=e,Z=o.useRef(null),S=(0,R.Z)(Z,(0,d.Z)(s),t),normalizedTransitionCallback=e=>t=>{if(e){const n=Z.current;void 0===t?e(n):e(n,t)}},E=normalizedTransitionCallback(m),M=normalizedTransitionCallback(((e,t)=>{(0,P.n)(e);const o=(0,P.C)({style:v,timeout:x,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",o),e.style.transition=n.transitions.create("opacity",o),u&&u(e,t)})),D=normalizedTransitionCallback(f),I=normalizedTransitionCallback(b),F=normalizedTransitionCallback((e=>{const t=(0,P.C)({style:v,timeout:x,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),g&&g(e)})),N=normalizedTransitionCallback(h);return(0,p.jsx)(y,{appear:a,in:c,nodeRef:Z,onEnter:M,onEntered:D,onEntering:E,onExit:F,onExited:N,onExiting:I,addEndListener:e=>{i&&i(Z.current,e)},timeout:x,...w,children:(e,t)=>o.cloneElement(s,{style:{opacity:0,visibility:"exited"!==e||c?void 0:"hidden",...T[e],...v,...s.props.style},ref:S,...t})})}));var D=n(3966),I=n(431);function getBackdropUtilityClass(e){return(0,I.ZP)("MuiBackdrop",e)}(0,D.Z)("MuiBackdrop",["root","invisible"]);const F=(0,x.ZP)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),N=o.forwardRef((function Backdrop(e,t){const n=(0,w.i)({props:e,name:"MuiBackdrop"}),{children:o,className:a,component:s="div",invisible:l=!1,open:c,components:d={},componentsProps:u={},slotProps:f={},slots:m={},TransitionComponent:g,transitionDuration:h,...b}=n,v={...n,component:s,invisible:l},x=(e=>{const{classes:t,invisible:n}=e,o={root:["root",n&&"invisible"]};return(0,i.Z)(o,getBackdropUtilityClass,t)})(v),y={slots:{transition:g,root:d.Root,...m},slotProps:{...u,...f}},[Z,S]=useSlot("root",{elementType:F,externalForwardedProps:y,className:(0,r.Z)(x.root,a),ownerState:v}),[E,C]=useSlot("transition",{elementType:M,externalForwardedProps:y,ownerState:v}),k=(e=>{const{ownerState:t,...n}=e;return n})(C);return(0,p.jsx)(E,{in:c,timeout:h,...b,...k,children:(0,p.jsx)(Z,{"aria-hidden":!0,...S,classes:x,ref:t,children:o})})}));var W=n(5325);function createChainedFunction(...e){return e.reduce(((e,t)=>null==t?e:function chainedFunction(...n){e.apply(this,n),t.apply(this,n)}),(()=>{}))}var A=n(5422);function ownerWindow(e){return(0,u.Z)(e).defaultView||window}function ariaHidden(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function getPaddingRight(e){return parseInt(ownerWindow(e).getComputedStyle(e).paddingRight,10)||0}function ariaHiddenSiblings(e,t,n,o,r){const i=[t,n,...o];[].forEach.call(e.children,(e=>{const t=!i.includes(e),n=!function isAriaHiddenForbiddenOnElement(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&ariaHidden(e,r)}))}function findIndexOf(e,t){let n=-1;return e.some(((e,o)=>!!t(e)&&(n=o,!0))),n}function handleContainer(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(function isOverflowing(e){const t=(0,u.Z)(e);return t.body===e?ownerWindow(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){const e=function getScrollbarSize(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}(ownerWindow(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${getPaddingRight(o)+e}px`;const t=(0,u.Z)(o).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${getPaddingRight(t)+e}px`}))}let e;if(o.parentNode instanceof DocumentFragment)e=(0,u.Z)(o).body;else{const t=o.parentElement,n=ownerWindow(o);e="HTML"===t?.nodeName&&"scroll"===n.getComputedStyle(t).overflowY?t:o}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const B=new class ModalManager{constructor(){this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&ariaHidden(e.modalRef,!1);const o=function getHiddenSiblings(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);ariaHiddenSiblings(t,e.mount,e.modalRef,o,!0);const r=findIndexOf(this.containers,(e=>e.container===t));return-1!==r?(this.containers[r].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:o}),n)}mount(e,t){const n=findIndexOf(this.containers,(t=>t.modals.includes(e))),o=this.containers[n];o.restore||(o.restore=handleContainer(o,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const o=findIndexOf(this.containers,(t=>t.modals.includes(e))),r=this.containers[o];if(r.modals.splice(r.modals.indexOf(e),1),this.modals.splice(n,1),0===r.modals.length)r.restore&&r.restore(),e.modalRef&&ariaHidden(e.modalRef,t),ariaHiddenSiblings(r.container,e.mount,e.modalRef,r.hiddenSiblings,!1),this.containers.splice(o,1);else{const e=r.modals[r.modals.length-1];e.modalRef&&ariaHidden(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};const j=function useModal(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:d,open:p,rootRef:f}=e,m=o.useRef({}),g=o.useRef(null),h=o.useRef(null),b=(0,c.Z)(h,f),[v,x]=o.useState(!p),y=function getHasTransition(e){return!!e&&e.props.hasOwnProperty("in")}(l);let w=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(w=!1);const getModal=()=>(m.current.modalRef=h.current,m.current.mount=g.current,m.current),handleMounted=()=>{B.mount(getModal(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},Z=(0,W.Z)((()=>{const e=function useModal_getContainer(e){return"function"==typeof e?e():e}(t)||(0,u.Z)(g.current).body;B.add(getModal(),e),h.current&&handleMounted()})),isTopModal=()=>B.isTopModal(getModal()),S=(0,W.Z)((e=>{g.current=e,e&&(p&&isTopModal()?handleMounted():h.current&&ariaHidden(h.current,w))})),E=o.useCallback((()=>{B.remove(getModal(),w)}),[w]);o.useEffect((()=>()=>{E()}),[E]),o.useEffect((()=>{p?Z():y&&i||E()}),[p,E,y,i,Z]);const createHandleKeyDown=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&isTopModal()&&(n||(t.stopPropagation(),d&&d(t,"escapeKeyDown")))},createHandleBackdropClick=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&d&&d(t,"backdropClick")};return{getRootProps:(t={})=>{const n=(0,A.Z)(e);delete n.onTransitionEnter,delete n.onTransitionExited;const o={...n,...t};return{role:"presentation",...o,onKeyDown:createHandleKeyDown(o),ref:b}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:createHandleBackdropClick(t),open:p}},getTransitionProps:()=>({onEnter:createChainedFunction((()=>{x(!1),a&&a()}),l?.props.onEnter),onExited:createChainedFunction((()=>{x(!0),s&&s(),i&&E()}),l?.props.onExited)}),rootRef:b,portalRef:S,isTopModal,exited:v,hasTransition:y}};function getModalUtilityClass(e){return(0,I.ZP)("MuiModal",e)}(0,D.Z)("MuiModal",["root","hidden","backdrop"]);const O=(0,x.ZP)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((0,y.Z)((({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]})))),$=(0,x.ZP)(N,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),L=o.forwardRef((function Modal(e,t){const n=(0,w.i)({name:"MuiModal",props:e}),{BackdropComponent:a=$,BackdropProps:s,classes:l,className:c,closeAfterTransition:d=!1,children:u,container:f,component:g,components:h={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:Z=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:P=!1,onBackdropClick:T,onClose:M,onTransitionEnter:D,onTransitionExited:I,open:F,slotProps:N={},slots:W={},theme:A,...B}=n,L={...n,closeAfterTransition:d,disableAutoFocus:x,disableEnforceFocus:y,disableEscapeKeyDown:Z,disablePortal:S,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:k,keepMounted:P},{getRootProps:U,getBackdropProps:H,getTransitionProps:K,portalRef:Y,isTopModal:z,exited:G,hasTransition:V}=j({...L,rootRef:t}),X={...L,exited:G},q=(e=>{const{open:t,exited:n,classes:o}=e,r={root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]};return(0,i.Z)(r,getModalUtilityClass,o)})(X),_={};if(void 0===u.props.tabIndex&&(_.tabIndex="-1"),V){const{onEnter:e,onExited:t}=K();_.onEnter=e,_.onExited=t}const J={...B,slots:{root:h.Root,backdrop:h.Backdrop,...W},slotProps:{...b,...N}},[Q,ee]=useSlot("root",{elementType:O,externalForwardedProps:J,getSlotProps:U,additionalProps:{ref:t,as:g},ownerState:X,className:(0,r.Z)(c,q?.root,!X.open&&X.exited&&q?.hidden)}),[te,ne]=useSlot("backdrop",{elementType:a,externalForwardedProps:J,additionalProps:s,getSlotProps:e=>H({...e,onClick:t=>{T&&T(t),e?.onClick&&e.onClick(t)}}),className:(0,r.Z)(s?.className,q?.backdrop),ownerState:X}),oe=(0,R.Z)(s?.ref,ne.ref);return P||F||V&&!G?(0,p.jsx)(v,{ref:Y,container:f,disablePortal:S,children:(0,p.jsxs)(Q,{...ee,children:[!k&&a?(0,p.jsx)(te,{...ne,ref:oe}):null,(0,p.jsx)(m,{disableEnforceFocus:y,disableAutoFocus:x,disableRestoreFocus:E,isEnabled:z,open:F,children:o.cloneElement(u,_)})]})}):null}));var U=n(9173);function getDialogUtilityClass(e){return(0,I.ZP)("MuiDialog",e)}const H=(0,D.Z)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var K=n(5814);const Y=(0,x.ZP)(N,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),z=(0,x.ZP)(L,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),G=(0,x.ZP)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${(0,l.Z)(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),V=(0,x.ZP)(U.Z,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${(0,l.Z)(n.scroll)}`],t[`paperWidth${(0,l.Z)(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})((0,y.Z)((({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${H.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter((e=>"xs"!==e)).map((t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${H.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}}))),{props:({ownerState:e})=>e.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${H.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]})))),X=o.forwardRef((function Dialog(e,t){const n=(0,w.i)({props:e,name:"MuiDialog"}),a=(0,k.Z)(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":c,"aria-labelledby":d,"aria-modal":u=!0,BackdropComponent:f,BackdropProps:m,children:g,className:h,disableEscapeKeyDown:b=!1,fullScreen:v=!1,fullWidth:x=!1,maxWidth:y="sm",onBackdropClick:Z,onClick:S,onClose:E,open:C,PaperComponent:P=U.Z,PaperProps:R={},scroll:T="paper",TransitionComponent:D=M,transitionDuration:I=s,TransitionProps:F,...N}=n,W={...n,disableEscapeKeyDown:b,fullScreen:v,fullWidth:x,maxWidth:y,scroll:T},A=(e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${(0,l.Z)(n)}`],paper:["paper",`paperScroll${(0,l.Z)(n)}`,`paperWidth${(0,l.Z)(String(o))}`,r&&"paperFullWidth",a&&"paperFullScreen"]};return(0,i.Z)(s,getDialogUtilityClass,t)})(W),B=o.useRef(),j=useId(d),O=o.useMemo((()=>({titleId:j})),[j]);return(0,p.jsx)(z,{className:(0,r.Z)(A.root,h),closeAfterTransition:!0,components:{Backdrop:Y},componentsProps:{backdrop:{transitionDuration:I,as:f,...m}},disableEscapeKeyDown:b,onClose:E,open:C,ref:t,onClick:e=>{S&&S(e),B.current&&(B.current=null,Z&&Z(e),E&&E(e,"backdropClick"))},ownerState:W,...N,children:(0,p.jsx)(D,{appear:!0,in:C,timeout:I,role:"presentation",...F,children:(0,p.jsx)(G,{className:(0,r.Z)(A.container),onMouseDown:e=>{B.current=e.target===e.currentTarget},ownerState:W,children:(0,p.jsx)(V,{as:P,elevation:24,role:"dialog","aria-describedby":c,"aria-labelledby":j,"aria-modal":u,...R,className:(0,r.Z)(A.paper,R.className),ownerState:W,children:(0,p.jsx)(K.Z.Provider,{value:O,children:g})})})})})}))},5814:(e,t,n)=>{n.d(t,{Z:()=>r});var o=n(7363);const r=o.createContext({})},9400:(e,t,n)=>{n.d(t,{Z:()=>p});var o=n(7363),r=n(7726),i=n(4062),a=n(7843),s=n(2893),l=n(3966),c=n(431);function getDialogActionsUtilityClass(e){return(0,c.ZP)("MuiDialogActions",e)}(0,l.Z)("MuiDialogActions",["root","spacing"]);var d=n(7514);const u=(0,a.ZP)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),p=o.forwardRef((function DialogActions(e,t){const n=(0,s.i)({props:e,name:"MuiDialogActions"}),{className:o,disableSpacing:a=!1,...l}=n,c={...n,disableSpacing:a},p=(e=>{const{classes:t,disableSpacing:n}=e,o={root:["root",!n&&"spacing"]};return(0,i.Z)(o,getDialogActionsUtilityClass,t)})(c);return(0,d.jsx)(u,{className:(0,r.Z)(p.root,o),ownerState:c,ref:t,...l})}))},4415:(e,t,n)=>{n.d(t,{Z:()=>m});var o=n(7363),r=n(7726),i=n(4062),a=n(7843),s=n(518),l=n(2893),c=n(3966),d=n(431);function getDialogContentUtilityClass(e){return(0,d.ZP)("MuiDialogContent",e)}(0,c.Z)("MuiDialogContent",["root","dividers"]);var u=n(9416),p=n(7514);const f=(0,a.ZP)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})((0,s.Z)((({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:e})=>e.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${u.Z.root} + &`]:{paddingTop:0}}}]})))),m=o.forwardRef((function DialogContent(e,t){const n=(0,l.i)({props:e,name:"MuiDialogContent"}),{className:o,dividers:a=!1,...s}=n,c={...n,dividers:a},d=(e=>{const{classes:t,dividers:n}=e,o={root:["root",n&&"dividers"]};return(0,i.Z)(o,getDialogContentUtilityClass,t)})(c);return(0,p.jsx)(f,{className:(0,r.Z)(d.root,o),ownerState:c,ref:t,...s})}))},1824:(e,t,n)=>{n.d(t,{Z:()=>m});var o=n(7363),r=n(7726),i=n(4062),a=n(1684),s=n(7843),l=n(2893),c=n(5282),d=n(3966),u=n(431);function getDialogContentTextUtilityClass(e){return(0,u.ZP)("MuiDialogContentText",e)}(0,d.Z)("MuiDialogContentText",["root"]);var p=n(7514);const f=(0,s.ZP)(c.Z,{shouldForwardProp:e=>(0,a.Z)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),m=o.forwardRef((function DialogContentText(e,t){const n=(0,l.i)({props:e,name:"MuiDialogContentText"}),{children:o,className:a,...s}=n,c=(e=>{const{classes:t}=e,n=(0,i.Z)({root:["root"]},getDialogContentTextUtilityClass,t);return{...t,...n}})(s);return(0,p.jsx)(f,{component:"p",variant:"body1",color:"textSecondary",ref:t,ownerState:s,className:(0,r.Z)(c.root,a),...n,classes:c})}))},9763:(e,t,n)=>{n.d(t,{Z:()=>f});var o=n(7363),r=n(7726),i=n(4062),a=n(5282),s=n(7843),l=n(2893),c=n(9416),d=n(5814),u=n(7514);const p=(0,s.ZP)(a.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),f=o.forwardRef((function DialogTitle(e,t){const n=(0,l.i)({props:e,name:"MuiDialogTitle"}),{className:a,id:s,...f}=n,m=n,g=(e=>{const{classes:t}=e;return(0,i.Z)({root:["root"]},c.a,t)})(m),{titleId:h=s}=o.useContext(d.Z);return(0,u.jsx)(p,{component:"h2",className:(0,r.Z)(g.root,a),ownerState:m,ref:t,variant:"h6",id:s??h,...f})}))},9416:(e,t,n)=>{n.d(t,{Z:()=>i,a:()=>getDialogTitleUtilityClass});var o=n(3966),r=n(431);function getDialogTitleUtilityClass(e){return(0,r.ZP)("MuiDialogTitle",e)}const i=(0,o.Z)("MuiDialogTitle",["root"])}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! filename:902 */
|