@abtnode/webapp 1.16.21-beta-edf184e1 → 1.16.21-beta-7b40ffb4
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/blocklet.js +1 -1
- package/blocklet.yml +1 -1
- package/build/asset-manifest.json +13 -13
- package/build/index.html +1 -1
- package/build/service-worker.js +1 -1
- package/build/static/js/{1685.00ac41cb.chunk.js → 1685.c6f7a83f.chunk.js} +2 -2
- package/build/static/js/3883.f14e204a.chunk.js +1 -0
- package/build/static/js/4382.0d3258d7.chunk.js +2 -0
- package/build/static/js/4549.329cdc3b.chunk.js +1 -0
- package/build/static/js/{7020.2fd6f467.chunk.js → 7020.ccd573af.chunk.js} +1 -1
- package/build/static/js/{7150.9849325f.chunk.js → 7150.ff7c498c.chunk.js} +1 -1
- package/build/static/js/{7657.380e09e9.chunk.js → 7657.ec1da0b4.chunk.js} +2 -2
- package/build/static/js/7718.b0d91373.chunk.js +1 -0
- package/build/static/js/8537.b03e14a8.chunk.js +1 -0
- package/build/static/js/{8986.0c6ecc50.chunk.js → 8986.d64838dd.chunk.js} +1 -1
- package/build/static/js/95.08f81beb.chunk.js +1 -0
- package/build/static/js/main.0b0bf90f.js +2 -0
- package/build/static/js/{main.e3082f6b.js.LICENSE.txt → main.0b0bf90f.js.LICENSE.txt} +1 -1
- package/package.json +1 -1
- package/build/static/js/3883.46d0ebdd.chunk.js +0 -1
- package/build/static/js/4382.bd7f7f72.chunk.js +0 -2
- package/build/static/js/4549.5fda7728.chunk.js +0 -1
- package/build/static/js/7718.49194e44.chunk.js +0 -1
- package/build/static/js/8537.d5e4e119.chunk.js +0 -1
- package/build/static/js/95.f2b78229.chunk.js +0 -1
- package/build/static/js/main.e3082f6b.js +0 -2
- /package/build/static/js/{1685.00ac41cb.chunk.js.LICENSE.txt → 1685.c6f7a83f.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4382.bd7f7f72.chunk.js.LICENSE.txt → 4382.0d3258d7.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7657.380e09e9.chunk.js.LICENSE.txt → 7657.ec1da0b4.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[4549],{56742:(e,n,i)=>{const{toBuffer:t,toAddress:o}=i(49394),{base32:r}=i(46422);e.exports={encode:e=>{if(!e)return e;const n=t(o(e));return r.encode(n)}}},44543:(e,n,i)=>{const t=i(57156);e.exports=(e,n)=>t(e)===t(n)},92726:(e,n,i)=>{"use strict";i.d(n,{Z:()=>x});var t,o=i(71171),r=i(5057),a=i(55898),s=i.n(a),l=i(33518),d=i(67680),c=i(61533),m=i(74490),u=i(45267),p=i(46954),f=i(44067),h=i(96266);function x(e){let{actions:n,size:i,...t}=e;const[o,a]=(0,r.useState)(null),s=Boolean(o),l=e=>{try{e.stopPropagation(),e.preventDefault()}catch{}a(null)};return(0,h.jsxs)(g,{...t,children:[(0,h.jsx)(d.Z,{"aria-label":"more","aria-controls":"actions-menu","aria-haspopup":"true","data-cy":"actions-menu-icon",onClick:e=>{try{e.stopPropagation(),e.preventDefault()}catch{}a(e.currentTarget)},size:i,children:(0,h.jsx)(u.Z,{})}),(0,h.jsx)(c.Z,{id:"actions-menu","data-cy":"actions-menu",anchorEl:o,keepMounted:!0,open:s,onClose:l,PaperProps:{},children:n.map(((e,n)=>{if("function"===typeof e)return e({close:l});const{icon:i,text:t,onClick:o,disabled:a=!1,...s}=e;return(0,r.createElement)(m.Z,{...s,disabled:a,dense:!0,onClick:async e=>{await o(e),l()},key:n,"data-cy":"actions-menu-".concat(n)},(0,h.jsx)(p.Z,{style:{minWidth:24,marginRight:8},children:i}),(0,h.jsx)(f.Z,{primary:t}))}))})]})}x.propTypes={actions:s().array,size:s().oneOf(["small","medium","large"])},x.defaultProps={actions:[],size:"small"};const g=l.Z.div(t||(t=(0,o.Z)([""])))},64549:(e,n,i)=>{"use strict";i.r(n),i.d(n,{default:()=>Ue});var t=i(71171),o=i(28726),r=i(33518),a=i(5057),s=i(17655),l=i(76720),d=i(64886),c=i(68420),m=i(19778),u=i(38242),p=i(11750),f=i(29054),h=i(58238),x=i(17450),g=i(14491),v=i(81010),j=i(4651),y=i(55898),b=i.n(y),Z=i(44919),D=i(76416),k=i(93938),P=i(39948),C=i(38763),T=i(75392),w=i(67680),S=i(11819),R=i(75239),E=i(96366),A=i(72904),I=i(56742),F=i(49714),q=i(18067),z=i(25710),N=i(44846),L=i(63406),_=i(74511),B=i(88574),O=i(86229),W=i(77277),M=i(70461),H=i(96266);const U=e=>["waiting","creating","renewaling"].includes(e);function K(e){var n,i;const{t:t}=(0,c.PE)(),[o,r]=(0,a.useState)(!1),{inService:s}=(0,h.h6)(),[l,d]=(0,a.useState)(null),{siteId:m,domain:u,onAdd:p,children:x,did:g}=e,[v,j]=(0,a.useState)(!1),{api:y,ws:{useSubscription:b}}=(0,h.h6)(),{mode:Z,actions:{refreshDomainStatus:D}}=(0,f.y0)(),k=(0,_.Z)((async()=>{const{cert:e}=await y.findCertificateByDomain({input:{domain:u,did:g}});return e})),P=(e,n)=>{e.domain===u&&(j(!1),r(!1),s&&"setup"!==Z&&("success"===n?O.Z.success(t("setup.domain.genCertSuccess",{domain:e.domain})):"error"===n&&O.Z.error(t("setup.domain.genCertFailed",{domain:e.domain,message:e.message}))))};if((0,a.useEffect)((()=>{var e;k.loading||j(U(null===(e=k.value)||void 0===e?void 0:e.status))}),[k.loading,null===(n=k.value)||void 0===n?void 0:n.status]),b(W.BlockletEvents.certError,(e=>P(e,"error"))),b(W.BlockletEvents.certIssued,(e=>{k.retry(),D(e.domain),P(e,"success")})),k.loading)return"";if("normal"===(null===(i=k.value)||void 0===i?void 0:i.status))return"";const C={title:t("router.cert.genLetsEncryptCert.title"),description:(0,H.jsxs)("div",{children:[(0,H.jsx)(B.Z,{type:"success",children:t("router.cert.genLetsEncryptCert.dnsTip")}),t("router.cert.genLetsEncryptCert.description")]}),confirm:t("common.confirm"),onConfirm:async()=>{r(!0);try{await y.issueLetsEncryptCert({input:{siteId:m,domain:u,did:g,inBlockletSetup:"setup"===Z}}),p(),j(!0)}catch(e){console.error(e),j(!1)}finally{r(!1),d(null)}},onCancel:()=>{r(!1),d(null)}};return(0,H.jsxs)(H.Fragment,{children:[v?(0,H.jsx)(R.Z,{title:t("router.cert.issuing"),children:(0,H.jsx)(N.Z,{size:12})}):x({loading:o,open:e=>{e.stopPropagation(),d(C)}}),l&&(0,H.jsx)(M.Z,{color:"primary",title:l.title,description:l.description,confirm:l.confirm,params:l.params,onConfirm:l.onConfirm,onCancel:l.onCancel})]})}function V(e){const{domain:n,domainStatus:i,...t}=e;return!(0,g.rM)(n)||null!==i&&void 0!==i&&i.isHttps?"":(0,H.jsx)(K,{domain:n,...t})}K.propTypes={domain:b().string.isRequired,did:b().string.isRequired,siteId:b().string.isRequired,onAdd:b().func,children:b().any},K.defaultProps={onAdd:()=>{},children:null},V.propTypes={domain:b().string.isRequired,domainStatus:b().shape({isHttps:b().bool}).isRequired,did:b().string.isRequired,onAdd:b().func,children:b().any},V.defaultProps={onAdd:()=>{},children:null};var Y=i(11593),G=i(74490),X=i(31853),J=i(11854),Q=i.n(J);const $=(0,a.createContext)({}),{Provider:ee,Consumer:ne}=$;function ie(e){let{children:n}=e;const[i,t]=(0,X.Z)({domain:"",error:null}),{locale:o,t:r}=(0,c.PE)(),{api:a}=(0,h.h6)(),s={error:i.error,domain:i.domain,setError:e=>{t({error:e})},setDomain:e=>{const n=Q()(e),i=(0,g.ub)(n,o);t({domain:n,error:i})},validateDomain:async(e,n)=>{if(!i.error&&n&&"nftDomain"!==n){if(!0===(await a.isDidDomain({input:{domain:e}})).value)return t({error:r("router.domainAlias.add.isDidDomainError")}),!1}return!0}};return(0,H.jsx)(ee,{value:{value:s},children:n})}function te(){const{value:e}=(0,a.useContext)($);return e}var oe=i(49983),re=i(34966),ae=i(96538),se=i(38898),le=i(47020),de=i(92706),ce=i.n(de),me=i(6352),ue=i.n(me),pe=i(60344),fe=i(12937);function he(e){let{domain:n,resolvedTarget:i,...t}=e;const{t:o,locale:r}=(0,c.PE)();return(0,H.jsxs)(P.Z,{sx:{backgroundColor:"rgb(236, 251, 253)",borderColor:"rgb(236, 251, 253)",borderRadius:"8px",padding:"12px"},...t,children:[(0,H.jsxs)(P.Z,{display:"flex",children:[o("router.domain.setup.tipStart"),n&&(0,H.jsx)(P.Z,{mx:.5,color:"primary.main",fontWeight:"fontWeightBold",children:n}),o("router.domain.setup.tipEnd"),":"]}),(0,H.jsxs)(P.Z,{sx:{"&>div":{mb:0},marginTop:"8px"},children:[(0,H.jsx)(xe,{label:o("router.domain.setup.recordType"),value:"CNAME",locale:r}),(0,H.jsx)(xe,{label:o("router.domain.setup.recordValue"),value:i,locale:r})]})]})}function xe(e){let{locale:n,label:i,value:t}=e;const o=(0,A.Z)((e=>e.breakpoints.down("md"))),r=(0,E.Z)();return(0,H.jsx)(d.Z,{name:i,nameWidth:120,children:(0,H.jsxs)(P.Z,{sx:{display:"flex",alignItems:"center",lineHeight:1},children:[(0,H.jsx)(p.Z,{component:"span",color:"primary.main",overflow:"auto",sx:o?{maxWidth:"95%",wordWrap:"break-word"}:{wordWrap:"break-word"},children:t}),(0,H.jsx)(fe.q,{content:t,locale:n,style:{marginLeft:"4px",color:r.palette.text.secondary}})]})})}he.propTypes={domain:b().string,resolvedTarget:b().string.isRequired},he.defaultProps={domain:""},xe.propTypes={locale:b().string.isRequired,label:b().string.isRequired,value:b().string.isRequired};var ge=i(51233);function ve(e){let{siteId:n,teamDid:i,cnameDomain:t,defaultCustomDomain:r,onInputDomain:a,appId:s,appPk:l,onSuccess:d,disabled:m,autoFocus:u,inBlockletSetup:p,...f}=e;const{t:x,locale:v}=(0,c.PE)(),{api:j,info:y}=(0,h.h6)(),b=te(),Z=(0,E.Z)(),[D,k]=(0,X.Z)({domain:r,error:null,type:null!==y&&void 0!==y&&y.nftDomainUrl?"nftDomain":"inputDomain",showNFTDomainAuth:!1,showDnsTip:!1});let C="";y.nftDomainUrl&&(C=ue()(y.nftDomainUrl,"/api"));const T=async e=>{let{domain:t,nftDid:o,chainHost:r}=e;try{const e=(0,ge.sf)(t);await j.addDomainAlias({input:{id:n,type:"nft-domain",domainAlias:e,nftDid:o,chainHost:r,teamDid:i,inBlockletSetup:p}}),await(0,g._v)(2e3),k({confirmSetting:null,showNFTDomainAuth:!1,type:"nftDomain"}),d({domain:e,type:D.type,nftDid:o,chainHost:r})}catch(w){O.Z.error(w.message)}finally{k({showNFTDomainAuth:!1})}},w=b.error||D.error,S={inputDomain:{name:x("router.domainAlias.inputDomain"),component:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(le.Z,{label:x("router.domainAlias.add.domainDescription"),helperText:"inputDomain"===D.type&&w||x("router.domainAlias.add.helperText"),inputProps:{"data-cy":"domain-name-input"},fullWidth:!0,disabled:m,value:D.domain,size:"small",variant:"outlined",error:!!w&&"inputDomain"===D.type,onChange:e=>{var n;const i=Q()(null===(n=e.target)||void 0===n?void 0:n.value);b.setDomain(i);const t=(0,g.ub)(i,v);k({domain:i,error:t,type:"inputDomain"}),a({domain:i,error:t,type:"inputDomain"})},autoFocus:u,onBlur:()=>{b.domain||(k({error:null}),b.setError(null))}}),(0,H.jsxs)(P.Z,{sx:{cursor:"pointer",fontSize:"14px",display:"flex",alignItems:"center",gap:"4px",marginTop:"8px",lineHeight:1,color:Z.palette.primary.main},onClick:()=>k({showDnsTip:!D.showDnsTip}),children:[(0,H.jsx)(re.Z,{fontSize:"1em"}),x("router.domainAlias.showTipHint")]}),D.showDnsTip&&(0,H.jsx)(he,{domain:D.domain,resolvedTarget:t,style:{marginTop:"4px"}})]})}};null!==y&&void 0!==y&&y.nftDomainUrl&&(S.nftDomain={name:x("router.domainAlias.nftDomain"),component:(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(P.Z,{sx:{maxWidth:"640px",color:"text.secondary",fontSize:"14px"},children:[(0,H.jsx)("div",{children:x("router.domainAlias.addDomainNFT.tips")}),(0,H.jsxs)("div",{children:[x("router.domainAlias.addDomainNFT.buyTip"),(0,H.jsxs)(se.Z,{href:y.nftDomainUrl,sx:{fontSize:"14px",display:"inline-flex",alignItems:"center"},target:"_blank",children:[(0,H.jsx)("i",{children:x("router.domainAlias.addDomainNFT.buy")}),(0,H.jsx)(ae.Z,{fontSize:"small"})]})]})]}),(0,H.jsx)(o.Z,{sx:{marginTop:"8px"},disabled:m,onClick:()=>k({showNFTDomainAuth:!0}),variant:"contained",children:x("router.domainAlias.addDomainNFT.showNFT")}),(0,H.jsx)(oe.Z,{open:D.showNFTDomainAuth,popup:!0,useSocket:!1,action:"authorize",baseUrl:C,checkFn:pe.od.create({baseURL:C}).get,extraParams:{delegatee:s,delegateePk:l},onSuccess:T,onClose:()=>k({showNFTDomainAuth:!1}),checkTimeout:3e5,showDownload:!1,messages:{title:x("router.domainAlias.addDomainNFT.connect.title"),scan:x("router.domainAlias.addDomainNFT.connect.scan"),confirm:x("router.domainAlias.addDomainNFT.connect.confirm"),success:x("router.domainAlias.addDomainNFT.connect.success")}})]})});const R=Object.keys(S);return R.sort((e=>"inputDomain"===e?1:-1)),(0,H.jsx)(P.Z,{...f,children:(0,H.jsx)(P.Z,{sx:{display:"flex",flexDirection:"column",justifyContent:"flex-start",gap:"1em"},children:R.map(((e,n)=>{var i,t;return(0,H.jsxs)(P.Z,{children:[R.length>1&&(0,H.jsx)(P.Z,{sx:{fontWeight:700,color:Z.palette.text.primary},children:"".concat(x("optionsOrder.".concat(n+1)),": ").concat(null===(i=S[e])||void 0===i?void 0:i.name)}),(0,H.jsx)(P.Z,{sx:{marginTop:"8px"},children:null===(t=S[e])||void 0===t?void 0:t.component})]},e)}))})})}function je(e){let{id:n,children:i,title:t,teamDid:o,systemDomains:r,appId:a,appPk:s}=e;const{t:l}=(0,c.PE)(),{api:d}=(0,h.h6)(),[m,u]=(0,X.Z)({loading:!1,confirmSetting:null}),p=r.find((e=>(0,F.isDidDomain)(e))),f=te(),x={title:t||l("router.domainAlias.add.title"),description:function(e,i,t){return(0,H.jsx)(ve,{siteId:n,teamDid:o,cnameDomain:p,onSuccess:()=>u({confirmSetting:null}),onInputDomain:n=>{let{domain:o,type:r,error:a}=n;i({...e,domain:o,type:r,__disableConfirm:!!a}),t(a)},appId:a,appPk:s})},confirm:l("common.confirm"),cancel:l("common.cancel"),params:{domain:"",__disableConfirm:!0},onConfirm:async e=>{if(!m.loading){u({loading:!0});try{const i=(0,ge.sf)(e.domain);if(!await f.validateDomain(i,e.type))return!1;await d.addDomainAlias({input:{id:n,domainAlias:i,teamDid:o}}),await(0,g._v)(2e3),u({confirmSetting:null})}catch(i){return f.setError(i.message),!1}finally{u({loading:!1})}}},onCancel:()=>{u({loading:!1,confirmSetting:null})}},v=e=>{e.stopPropagation(),u({confirmSetting:x})};return(0,H.jsxs)(H.Fragment,{children:["function"===typeof i?i({loading:m.loading,open:v}):(0,H.jsxs)(G.Z,{onClick:v,className:"rule-action","data-cy":"action-add-domain-alias",children:[m.loading?(0,H.jsx)(N.Z,{size:16}):(0,H.jsx)(Y.Z,{style:{fontSize:18,marginRight:5}}),l("router.domainAlias.add.title")]}),m.confirmSetting&&(0,H.jsx)(M.Z,{title:m.confirmSetting.title,description:m.confirmSetting.description,confirm:m.confirmSetting.confirm,cancel:m.confirmSetting.cancel,params:m.confirmSetting.params,onConfirm:m.confirmSetting.onConfirm,onCancel:m.confirmSetting.onCancel,displayError:!1,color:"primary",loading:m.loading,maxWidth:"lg"})]})}function ye(e){return(0,H.jsx)(ie,{children:(0,H.jsx)(je,{...e})})}ve.propTypes={siteId:b().string.isRequired,teamDid:b().string.isRequired,cnameDomain:b().string.isRequired,defaultCustomDomain:b().string,onInputDomain:b().func,onSuccess:b().func,appId:b().string,appPk:b().string,disabled:b().bool,autoFocus:b().bool,inBlockletSetup:b().bool},ve.defaultProps={defaultCustomDomain:"",onInputDomain:ce(),onSuccess:ce(),appId:"",appPk:"",disabled:!1,autoFocus:!0,inBlockletSetup:!1},je.propTypes={id:b().string.isRequired,children:b().any,title:b().string,teamDid:b().string,systemDomains:b().arrayOf(b().string).isRequired,appId:b().string,appPk:b().string.isRequired},je.defaultProps={children:null,title:"",teamDid:"",appId:null};var be=i(46954),Ze=i(44067),De=i(27773),ke=i(92726);function Pe(e){const{t:n}=(0,c.PE)(),[i,t]=(0,a.useState)(!1),[r,s]=(0,a.useState)(null),{id:l,domain:d,children:m,teamDid:u}=e,{api:p}=(0,h.h6)(),f={title:n("router.domainAlias.delete.title"),description:n("router.domainAlias.delete.description"),confirm:n("common.confirm"),onConfirm:async()=>{t(!0);try{await p.deleteDomainAlias({input:{id:l,domainAlias:d,teamDid:u}}),await(0,g._v)(2e3)}catch(e){O.Z.error(e.message)}finally{s(null),t(!1)}},onCancel:()=>{t(!1),s(null)}},x=e=>{e.stopPropagation(),s(f)};return(0,H.jsxs)(H.Fragment,{children:["function"===typeof m?m({loading:i,open:x}):(0,H.jsxs)(o.Z,{edge:"end",onClick:x,size:"small",className:"rule-action",color:"error","data-cy":"action-delete-domain-alias",children:[i?(0,H.jsx)(N.Z,{size:16}):(0,H.jsx)(De.default,{style:{fontSize:16}}),n("router.domainAlias.delete.title")]}),r&&(0,H.jsx)(M.Z,{title:r.title,description:r.description,confirm:r.confirm,params:r.params,onConfirm:r.onConfirm,onCancel:r.onCancel})]})}function Ce(e){let{site:n,domain:i,blocklet:t}=e;const{t:o}=(0,c.PE)(),r=i.value===window.location.hostname;return(0,H.jsx)(ke.Z,{"data-cy":"domain-actions",size:"large",actions:[e=>{var a;let{close:s}=e;return(0,H.jsx)(Pe,{id:n.id,domain:i.value,teamDid:null===t||void 0===t||null===(a=t.meta)||void 0===a?void 0:a.did,children:e=>{let{open:n}=e;return(0,H.jsx)(R.Z,{title:r?o("blocklet.router.currentDomainTip"):"",children:(0,H.jsx)("span",{children:(0,H.jsxs)(G.Z,{disabled:i.isProtected||r,dense:!0,onClick:e=>{s(),n(e)},"data-cy":"action-toggle-block",children:[(0,H.jsx)(be.Z,{style:{minWidth:24,marginRight:8},children:(0,H.jsx)(De.default,{})}),(0,H.jsx)(Ze.Z,{primary:o("common.delete")})]},"remove")})})}})}]})}Pe.propTypes={id:b().string.isRequired,domain:b().string.isRequired,children:b().any,teamDid:b().string},Pe.defaultProps={children:null,teamDid:""},Ce.propTypes={site:b().object.isRequired,domain:b().object.isRequired,blocklet:b().object.isRequired},Ce.defaultProps={};var Te=i(31942),we=i(69569);const Se=b().shape({href:b().string,accessibility:b().shape({loading:b().bool,accessible:b().bool}),domainStatus:b().shape({isHttps:b().bool,matchedCert:b().object}),dns:b().shape({resolved:b().bool,ip:b().string})});var Re,Ee=i(43681),Ae=i.n(Ee);function Ie(e){let{certificate:n}=e;const[i,t]=(0,a.useState)(null),o=(0,h.h6)(),{t:r,locale:s}=(0,c.PE)(),l=()=>{t(null)},d=Boolean(i);return(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(Te.Z,{"aria-owns":d?"mouse-over-popover":void 0,onMouseEnter:e=>{t(e.currentTarget)},onMouseLeave:l,style:{color:"#44cdc6",fontSize:20,cursor:"pointer"}}),(0,H.jsx)(S.ZP,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:d,anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:l,disableRestoreFocus:!0,children:(0,H.jsx)(C.Z,{children:(0,H.jsxs)(T.Z,{style:{display:"flex"},children:[(0,H.jsx)("div",{children:(0,H.jsx)("img",{src:"".concat(o.imgPrefix,"/https-certificate-icon.png"),alt:"certificate icon",style:{maxHeight:"100%",maxWidth:"100%"}})}),(0,H.jsxs)(p.Z,{component:"div",style:{marginLeft:"16px"},children:[(0,H.jsx)(p.Z,{component:"div",style:{fontWeight:"bold"},children:n.domain}),(0,H.jsx)(p.Z,{component:"div",children:"".concat(r("common.issuer"),": ").concat(Ae()(n,"issuer.commonName",""))}),(0,H.jsx)(p.Z,{component:"div",children:"".concat(r("router.cert.issuedOn"),": ").concat((0,g.pz)(n.validFrom,s))}),(0,H.jsx)(p.Z,{component:"div",children:"".concat(r("router.cert.expiryOn"),": ").concat((0,g.pz)(n.validTo,s))})]})]})})})]})}function Fe(e){let{domain:n,filters:i}=e;const{t:t}=(0,c.PE)(),{value:o,domainStatus:r}=n;if(!(0,g.rM)(o))return null;let s=null,l=null;const{isHttps:d,matchedCert:m}=r;if(!(0,g.ao)(o)){const{dns:{resolved:e,ip:n}={}}=r;s=e||"127.0.0.1"===n?(0,H.jsx)(R.Z,{title:t("router.domain.verify.ok"),children:(0,H.jsx)(we.Z,{color:"success"})}):(0,H.jsx)(R.Z,{title:t("router.domain.verify.notResolved"),children:(0,H.jsx)(we.Z,{color:"error"})})}l=d?(0,H.jsx)(Ie,{certificate:m}):(0,H.jsx)(R.Z,{title:t("router.domain.https.bad"),children:(0,H.jsx)(Te.Z,{style:{color:"#D0021B",fontSize:20,cursor:"pointer"}})});const u=i.map((e=>"domain"===e?s:"http"===e?l:null));return(0,a.createElement)(a.Fragment,null,...u)}Ie.propTypes={certificate:b().object},Ie.defaultProps={certificate:{}},Fe.propTypes={domain:Se.isRequired,filters:b().array},Fe.defaultProps={filters:["domain","http"]};const qe=(0,L.V)(Le,"mutate_blocklets"),ze=(0,L.V)(Le,"",g.Wf);function Ne(e){const{inService:n}=(0,h.h6)(),{blocklet:i,loadingRuntimeInfo:t}=(0,f.y0)();let o=qe;return n&&(o=ze),(0,H.jsx)(o,{...e,blocklet:i,inService:n,loadingRuntimeInfo:t})}function Le(e){var n,i,t,r;let{hasPermission:d,blocklet:m,loadingRuntimeInfo:p,inService:f,listOnly:h}=e;const{t:x}=(0,c.PE)(),[v,y]=(0,a.useState)(!1),b=(0,A.Z)((e=>e.breakpoints.down("md"))),D=(0,a.useMemo)((()=>{let e=d;return(0,j.ep)(m)&&(e=e&&f),e}),[d,f,m]),{site:C}=m,T=(0,a.useMemo)((()=>{var e;return(0,g.oE)(null===(e=m.site)||void 0===e?void 0:e.domainAliases)}),[null===(n=m.site)||void 0===n?void 0:n.domainAliases]),w=[],S=[],R=(0,I.encode)(m.appPid),E=null===(i=m.environments)||void 0===i||null===(t=i.find((e=>"BLOCKLET_APP_PK"===e.key)))||void 0===t?void 0:t.value,q=(0,g.M6)(T);return T.forEach((e=>{const n=e.value||"";(0,F.isDidDomain)(n)&&!n.startsWith(R)?S.push(e):w.push(e)})),(0,H.jsxs)(H.Fragment,{children:[!h&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsxs)(P.Z,{className:"title first",display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,H.jsx)(P.Z,{children:x("common.domain")}),D&&(0,H.jsx)(ye,{id:C.id,title:x("router.domain.add.title"),teamDid:null===(r=m.meta)||void 0===r?void 0:r.did,appId:m.appPid,appPk:E,systemDomains:null===q||void 0===q?void 0:q.map((e=>e.value)),children:e=>{let{open:n}=e;return(0,H.jsxs)(o.Z,{style:{marginLeft:16},variant:"contained",color:"primary","data-cy":"add-domain-alias",onClick:n,disabled:(0,u.isInProgress)(m.status),children:[(0,H.jsx)(Z.Z,{style:{fontSize:"1.3em",marginRight:4}}),x("common.add")]})}})]}),!1===(0,u.isAccessible)(m.status)&&(0,H.jsx)(P.Z,{mt:1.5,mb:1.5,children:(0,H.jsx)(k.Z,{severity:"warning",children:x("blocklet.router.noRunning")})})]}),(0,H.jsx)(P.Z,{sx:{display:"flex",flexDirection:"column",gap:1},children:(v?T:w).map((e=>{var n,i;const t=e.value;return(0,H.jsxs)(a.Fragment,{children:[b&&(0,H.jsxs)(P.Z,{display:"flex",flexDirection:"column",children:[(0,H.jsx)(P.Z,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:(0,H.jsx)(_e,{domain:e,target:"_blank",children:e.value})}),(0,H.jsxs)(P.Z,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,H.jsxs)(P.Z,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",gap:1},children:[(0,H.jsx)(Fe,{domain:e,filters:["domain"]},"".concat(e.value,"-domain")),(0,H.jsx)(We,{siteId:null===(n=m.site)||void 0===n?void 0:n.id,domain:e,blocklet:m,hasMutatePermission:D})]}),(0,H.jsx)(P.Z,{sx:{button:{padding:0}},children:(0,H.jsx)(Oe,{hasMutatePermission:D,site:C,domain:e,blocklet:m})})]})]},t),!b&&(0,H.jsxs)(P.Z,{display:"flex",alignItems:"center",justifyContent:"space-between",children:[(0,H.jsxs)(P.Z,{display:"flex",alignItems:"center",justifyContent:"flex-start",children:[(0,H.jsx)(Fe,{domain:e,filters:["domain"]},"".concat(e.value,"-domain")),(0,H.jsx)(P.Z,{sx:{ml:2,mr:.5},children:(0,H.jsx)(_e,{domain:e,target:"_blank",children:e.value})}),(0,H.jsx)(We,{siteId:null===(i=m.site)||void 0===i?void 0:i.id,domain:e,blocklet:m,hasMutatePermission:D})]}),(0,H.jsx)(P.Z,{sx:{button:{padding:0}},children:(0,H.jsx)(Oe,{hasMutatePermission:D,site:C,domain:e,blocklet:m})})]},t)]},t)}))}),S.length>0&&(0,H.jsx)("div",{style:{marginLeft:"20px",marginTop:"12px"},children:(0,H.jsx)(o.Z,{endIcon:v?(0,H.jsx)(s.Z,{}):(0,H.jsx)(l.Z,{}),onClick:()=>y(!v),children:x(v?"common.collapseAll":"blocklet.router.showAllDomains")})}),!T.length&&(p?(0,H.jsx)(N.Z,{size:16}):(0,H.jsx)(z.Z,{children:x("common.empty")}))]})}function _e(e){let{domain:n,children:i,...t}=e;const{t:o}=(0,c.PE)(),{href:r,accessibility:a}=n;return!a||a.loading?(0,H.jsxs)(Be,{...t,children:[i,(0,H.jsx)(R.Z,{title:o("blocklet.router.checkUrlAccessible"),placement:"top-end",children:(0,H.jsx)("span",{className:"status",children:(0,H.jsx)(N.Z,{size:12})})})]}):a.accessible?(0,H.jsx)(Be,{...t,children:(0,H.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:i})}):(0,H.jsx)(Be,{...t,children:(0,H.jsx)(R.Z,{title:o("blocklet.router.urlInaccessible"),placement:"top-end",children:(0,H.jsx)("span",{children:i})})})}Ne.propTypes={listOnly:b().bool},Ne.defaultProps={listOnly:!1},Le.propTypes={hasPermission:b().bool,blocklet:b().object.isRequired,loadingRuntimeInfo:b().bool,inService:b().bool.isRequired,listOnly:b().bool},Le.defaultProps={hasPermission:!1,loadingRuntimeInfo:!1,listOnly:!1},_e.propTypes={domain:Se.isRequired,children:b().any.isRequired};const Be=r.Z.span(Re||(Re=(0,t.Z)(["\n &,\n & > * {\n color: #222;\n font-size: 18px;\n word-break: break-all;\n }\n\n .status {\n margin-left: 8px;\n }\n"])));function Oe(e){let{hasMutatePermission:n,site:i,domain:t,blocklet:o}=e;const r=(0,E.Z)(),{t:a}=(0,c.PE)();return n&&!t.isProtected?(0,H.jsx)(Ce,{site:i,domain:t,blocklet:o}):(0,H.jsx)(R.Z,{title:a("blocklet.router.domainLockTooltip"),placement:"top",children:(0,H.jsx)(w.Z,{disabled:!0,size:"large",style:{pointerEvents:"auto",paddingTop:0,paddingBottom:0},children:(0,H.jsx)(q.Z,{style:{fill:r.palette.text.disabled}})})})}function We(e){let{siteId:n,domain:i,blocklet:t,hasMutatePermission:r}=e;const s=(0,E.Z)(),{t:l}=(0,c.PE)(),[d,m]=(0,a.useState)(null),u=()=>{m(null)};return(0,H.jsxs)(P.Z,{sx:{display:"flex",justifyContent:"flex-start",alignItems:"center",gap:1},children:["nft-domain"===i.type&&(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(D.Z,{onMouseEnter:e=>{m(e.currentTarget)},onMouseLeave:u,style:{cursor:"pointer",fill:s.palette.primary.main}}),(0,H.jsx)(S.ZP,{id:"mouse-over-popover",style:{pointerEvents:"none"},open:Boolean(d),anchorEl:d,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:u,disableRestoreFocus:!0,children:(0,H.jsx)(C.Z,{children:(0,H.jsxs)(T.Z,{style:{display:"flex",flexDirection:"column"},children:[(0,H.jsxs)(p.Z,{component:"div",style:{display:"flex",alignItems:"center"},children:[(0,H.jsx)(D.Z,{style:{fill:s.palette.primary.main}}),(0,H.jsx)(p.Z,{component:"span",style:{marginLeft:"8px",fontSize:"18px",fontWeight:"bolder"},children:l("router.domainAlias.nftDomain")})]}),(0,H.jsxs)(p.Z,{component:"div",style:{display:"flex",marginTop:"12px"},children:[(0,H.jsx)(p.Z,{component:"span",style:{width:"80px",marginRight:"8px"},children:l("common.domain")}),(0,H.jsx)(p.Z,{component:"span",children:i.value})]}),(0,H.jsxs)(p.Z,{component:"div",style:{display:"flex"},children:[(0,H.jsx)(p.Z,{component:"span",style:{width:"80px",marginRight:"8px"},children:"NFT"}),(0,H.jsx)(x.Z,{did:i.nftDid})]})]})})})]}),(0,H.jsx)(Fe,{domain:i,filters:["http"]},"".concat(i.value,"-http")),r&&(0,H.jsx)(V,{siteId:n,domain:i.value,domainStatus:i.domainStatus,did:t.meta.did,children:e=>{let{open:n}=e;return(0,H.jsx)(o.Z,{sx:{padding:0},size:"small",onClick:e=>n(e),children:l("router.cert.genLetsEncryptCert.title")})}})]})}var Me;Oe.propTypes={hasMutatePermission:b().bool.isRequired,site:b().object.isRequired,domain:Se.isRequired,blocklet:b().object.isRequired},We.propTypes={siteId:b().string.isRequired,domain:Se.isRequired,blocklet:b().object.isRequired,hasMutatePermission:b().bool.isRequired};const He={arcblock:"ArcBlock",ethereum:"Ethereum"};function Ue(){var e,n,i,t,r;const{t:p,locale:y}=(0,c.PE)(),{info:b,inService:Z}=(0,h.h6)(),[D,k]=(0,a.useState)(!1),{blocklet:P}=(0,f.y0)(),{appDid:C,appPid:T,migratedFrom:w=[]}=P,S=null===(e=P.environments.find((e=>"BLOCKLET_APP_CHAIN_TYPE"===e.key)))||void 0===e?void 0:e.value,R=[C?{name:p("blocklet.appId"),value:(0,H.jsx)(x.Z,{did:C})}:null,T?{name:p("blocklet.appPid"),value:(0,H.jsx)(x.Z,{did:T})}:null,(null===w||void 0===w?void 0:w.length)>1?{name:p("blocklet.alsoKnownAs"),value:(0,H.jsxs)("div",{children:[(D?w.slice(1):w.slice(1,2)).map((e=>(0,H.jsx)(x.Z,{did:e.appDid}))),w.length>2&&(0,H.jsx)(o.Z,{style:{marginLeft:"18px"},endIcon:D?(0,H.jsx)(s.Z,{}):(0,H.jsx)(l.Z,{}),onClick:()=>k(!D),children:p(D?"common.collapseAll":"blocklet.router.showAllDIDs")})]})}:null,{name:p("common.name"),value:(0,u.getDisplayName)(P,!0)},{name:p("common.status"),value:(0,H.jsx)(v.Z,{status:P.status,source:P.source})},(0,j.ep)(P)?{name:"NFT",value:(0,H.jsx)(x.Z,{external:!0,href:(0,g.E8)(null===P||void 0===P||null===(n=P.controller)||void 0===n?void 0:n.chainHost,null===P||void 0===P||null===(i=P.controller)||void 0===i?void 0:i.nftId,"asset"),did:null===P||void 0===P||null===(t=P.controller)||void 0===t?void 0:t.nftId})}:null,{name:p("blocklet.installedAt"),value:(0,g.B2)(P.installedAt,y)},{name:p("blocklet.overview.accessControl"),value:p("team.whoCanAccess.".concat((0,u.getWhoCanAccess)(P),".title"))},{name:p("common.owner"),value:null!==(r=P.settings)&&void 0!==r&&r.owner?(0,H.jsx)(x.Z,{did:P.settings.owner.did}):"--"},{name:p("blocklet.config.walletType.name"),value:He[S||"arcblock"]||S},P.externalSkSource?{name:p("blocklet.skSource"),value:P.externalSkSource}:null].filter(Boolean);Z&&R.push({name:p("common.serverDid"),value:(0,H.jsx)(x.Z,{did:b.did})},{name:p("common.serverVersion"),value:(0,H.jsx)(m.Z,{children:b.version})});return(0,H.jsxs)(Ke,{component:"div",children:[(0,H.jsx)(Ne,{}),(0,H.jsx)("div",{className:"title",children:(0,H.jsx)("span",{children:p("common.basicInfo")})}),(0,H.jsx)("div",{className:"basicInfo",children:(E=R,E.map((e=>(0,H.jsx)(d.Z,{style:{display:"flex",alignItems:"flex-start"},valueComponent:"div",nameWidth:120,name:e.name,nameFormatter:()=>e.name,children:e.value},e.name))))})]});var E}Ue.propTypes={};const Ke=(0,r.Z)(p.Z)(Me||(Me=(0,t.Z)(["\n .title {\n font-size: 1.2rem;\n font-weight: bold;\n margin-top: ",";\n margin-bottom: ",";\n\n &.first {\n margin-top: 0;\n }\n }\n"])),(e=>e.theme.spacing(5)),(e=>e.theme.spacing(3)))},51233:(e,n,i)=>{"use strict";i.d(n,{Rw:()=>c,fX:()=>d,sf:()=>m});var t=i(35432),o=i(44543),r=i.n(o),a=i(77277),s=i(32828);const l=(e,n)=>{if(e.type===t.ROUTING_RULE_TYPES.REDIRECT){if(!e.url)return new Error("".concat(n("router.validation.redirectUrlRequired")));if(!e.redirectCode)return new Error("redirect ".concat(n("router.validation.redirectCodeRequired")))}else if(e.type===t.ROUTING_RULE_TYPES.BLOCKLET&&!e.did)return new Error(n("router.validation.didRequired"));return null},d=(e,n)=>{const i=l(e,n);return i||(e.pathPrefix.length?e.pathPrefix.length>150?new Error(n("router.validation.pathPrefixTooLong",{length:150})):null:new Error(n("router.validation.pathPrefixCannotBeEmpty")))},c=e=>{let{params:n,blocklets:i,blocklet:t,locale:o="en"}=e;if(t){let e=(t.children||[]).find((e=>(0,s.default)(e.meta)&&r()(e.mountPoint,n.pathPrefix)));if("gateway"!==t.meta.group&&"/"===n.pathPrefix&&(e="/"),e)return{zh:"\u6302\u8f7d\u70b9 ".concat(n.pathPrefix," \u5df2\u5b58\u5728\uff0c\u8bf7\u4f7f\u7528\u5176\u4ed6\u6302\u8f7d\u70b9"),en:"The mount point ".concat(n.pathPrefix," already exist, please use another mount point")}[o]}const l=i.find((e=>e.meta.did===n.did));if(!l)return"";const d=l.meta.interfaces.find((e=>"web"===e.type));return d&&d.prefix!==a.BLOCKLET_DYNAMIC_PATH_PREFIX&&n.pathPrefix!==d.prefix?{zh:"\u8be5 blocklet \u53ea\u80fd\u6302\u8f7d\u5728 ".concat(d.prefix),en:"This blocklet can only be mounted on ".concat(d.prefix)}[o]:""},m=e=>{if(!e||"string"!==typeof e)return e;let n=e.trim();try{return n=n.toLowerCase(),n.startsWith("http://")||n.startsWith("https://")?new URL(n).hostname:n}catch(i){return console.error("format domain failed",i),n}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[7020],{90067:(e,r,o)=>{o.d(r,{Z:()=>
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[7020],{90067:(e,r,o)=>{o.d(r,{Z:()=>x});var t,a=o(31461),s=o(7896),n=o(5057),i=o(9978),l=o(91213),d=o(43070),c=o(38038),u=o(62773),m=o(6285),p=o(44029),f=o(42908),Z=o(96266);const h=["children","className","component","disabled","error","filled","focused","margin","required","variant"],b=(0,u.ZP)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[r.root,o.size&&r["size".concat((0,m.Z)(o.size))],o.contained&&r.contained,o.filled&&r.filled]}})((e=>{let{theme:r,ownerState:o}=e;return(0,s.Z)({color:(r.vars||r).palette.text.secondary},r.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&.".concat(p.Z.disabled)]:{color:(r.vars||r).palette.text.disabled},["&.".concat(p.Z.error)]:{color:(r.vars||r).palette.error.main}},"small"===o.size&&{marginTop:4},o.contained&&{marginLeft:14,marginRight:14})})),x=n.forwardRef((function(e,r){const o=(0,f.Z)({props:e,name:"MuiFormHelperText"}),{children:n,className:u,component:x="p"}=o,v=(0,a.Z)(o,h),w=(0,c.Z)(),k=(0,d.Z)({props:o,muiFormControl:w,states:["variant","size","disabled","error","filled","focused","required"]}),F=(0,s.Z)({},o,{component:x,contained:"filled"===k.variant||"outlined"===k.variant,variant:k.variant,size:k.size,disabled:k.disabled,error:k.error,filled:k.filled,focused:k.focused,required:k.required}),z=(e=>{const{classes:r,contained:o,size:t,disabled:a,error:s,filled:n,focused:i,required:d}=e,c={root:["root",a&&"disabled",s&&"error",t&&"size".concat((0,m.Z)(t)),o&&"contained",i&&"focused",n&&"filled",d&&"required"]};return(0,l.Z)(c,p.E,r)})(F);return(0,Z.jsx)(b,(0,s.Z)({as:x,ownerState:F,className:(0,i.Z)(z.root,u),ref:r},v,{children:" "===n?t||(t=(0,Z.jsx)("span",{className:"notranslate",children:"\u200b"})):n}))}))},44029:(e,r,o)=>{o.d(r,{E:()=>s,Z:()=>n});var t=o(31821),a=o(18561);function s(e){return(0,a.Z)("MuiFormHelperText",e)}const n=(0,t.Z)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"])},6041:(e,r,o)=>{o.d(r,{Z:()=>R});var t=o(31461),a=o(7896),s=o(5057),n=o(91213),i=o(9978),l=o(43070),d=o(38038),c=o(6285),u=o(42908),m=o(62773),p=o(31821),f=o(18561);function Z(e){return(0,f.Z)("MuiFormLabel",e)}const h=(0,p.Z)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var b=o(96266);const x=["children","className","color","component","disabled","error","filled","focused","required"],v=(0,m.ZP)("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,r)=>{let{ownerState:o}=e;return(0,a.Z)({},r.root,"secondary"===o.color&&r.colorSecondary,o.filled&&r.filled)}})((e=>{let{theme:r,ownerState:o}=e;return(0,a.Z)({color:(r.vars||r).palette.text.secondary},r.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&.".concat(h.focused)]:{color:(r.vars||r).palette[o.color].main},["&.".concat(h.disabled)]:{color:(r.vars||r).palette.text.disabled},["&.".concat(h.error)]:{color:(r.vars||r).palette.error.main}})})),w=(0,m.ZP)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,r)=>r.asterisk})((e=>{let{theme:r}=e;return{["&.".concat(h.error)]:{color:(r.vars||r).palette.error.main}}})),k=s.forwardRef((function(e,r){const o=(0,u.Z)({props:e,name:"MuiFormLabel"}),{children:s,className:m,component:p="label"}=o,f=(0,t.Z)(o,x),h=(0,d.Z)(),k=(0,l.Z)({props:o,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),F=(0,a.Z)({},o,{color:k.color||"primary",component:p,disabled:k.disabled,error:k.error,filled:k.filled,focused:k.focused,required:k.required}),z=(e=>{const{classes:r,color:o,focused:t,disabled:a,error:s,filled:i,required:l}=e,d={root:["root","color".concat((0,c.Z)(o)),a&&"disabled",s&&"error",i&&"filled",t&&"focused",l&&"required"],asterisk:["asterisk",s&&"error"]};return(0,n.Z)(d,Z,r)})(F);return(0,b.jsxs)(v,(0,a.Z)({as:p,ownerState:F,className:(0,i.Z)(z.root,m),ref:r},f,{children:[s,k.required&&(0,b.jsxs)(w,{ownerState:F,"aria-hidden":!0,className:z.asterisk,children:["\u2009","*"]})]}))}));var F=o(12823);const z=["disableAnimation","margin","shrink","variant","className"],q=(0,m.ZP)(k,{shouldForwardProp:e=>(0,m.FO)(e)||"classes"===e,name:"MuiInputLabel",slot:"Root",overridesResolver:(e,r)=>{const{ownerState:o}=e;return[{["& .".concat(h.asterisk)]:r.asterisk},r.root,o.formControl&&r.formControl,"small"===o.size&&r.sizeSmall,o.shrink&&r.shrink,!o.disableAnimation&&r.animated,o.focused&&r.focused,r[o.variant]]}})((e=>{let{theme:r,ownerState:o}=e;return(0,a.Z)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},o.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===o.size&&{transform:"translate(0, 17px) scale(1)"},o.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!o.disableAnimation&&{transition:r.transitions.create(["color","transform","max-width"],{duration:r.transitions.duration.shorter,easing:r.transitions.easing.easeOut})},"filled"===o.variant&&(0,a.Z)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(12px, 13px) scale(1)"},o.shrink&&(0,a.Z)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===o.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===o.variant&&(0,a.Z)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===o.size&&{transform:"translate(14px, 9px) scale(1)"},o.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))})),R=s.forwardRef((function(e,r){const o=(0,u.Z)({name:"MuiInputLabel",props:e}),{disableAnimation:s=!1,shrink:m,className:p}=o,f=(0,t.Z)(o,z),Z=(0,d.Z)();let h=m;"undefined"===typeof h&&Z&&(h=Z.filled||Z.focused||Z.adornedStart);const x=(0,l.Z)({props:o,muiFormControl:Z,states:["size","variant","required","focused"]}),v=(0,a.Z)({},o,{disableAnimation:s,formControl:Z,shrink:h,size:x.size,variant:x.variant,required:x.required,focused:x.focused}),w=(e=>{const{classes:r,formControl:o,size:t,shrink:s,disableAnimation:i,variant:l,required:d}=e,u={root:["root",o&&"formControl",!i&&"animated",s&&"shrink",t&&"normal"!==t&&"size".concat((0,c.Z)(t)),l],asterisk:[d&&"asterisk"]},m=(0,n.Z)(u,F.Y,r);return(0,a.Z)({},r,m)})(v);return(0,b.jsx)(q,(0,a.Z)({"data-shrink":h,ownerState:v,ref:r,className:(0,i.Z)(w.root,p)},f,{classes:w}))}))},12823:(e,r,o)=>{o.d(r,{Y:()=>s,Z:()=>n});var t=o(31821),a=o(18561);function s(e){return(0,a.Z)("MuiInputLabel",e)}const n=(0,t.Z)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"])},47020:(e,r,o)=>{o.d(r,{Z:()=>z});var t=o(7896),a=o(31461),s=o(5057),n=o(9978),i=o(91213),l=o(32852),d=o(62773),c=o(42908),u=o(49083),m=o(91877),p=o(12594),f=o(6041),Z=o(80576),h=o(90067),b=o(51177),x=o(13421),v=o(96266);const w=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],k={standard:u.Z,filled:m.Z,outlined:p.Z},F=(0,d.ZP)(Z.Z,{name:"MuiTextField",slot:"Root",overridesResolver:(e,r)=>r.root})({}),z=s.forwardRef((function(e,r){const o=(0,c.Z)({props:e,name:"MuiTextField"}),{autoComplete:s,autoFocus:d=!1,children:u,className:m,color:p="primary",defaultValue:Z,disabled:z=!1,error:q=!1,FormHelperTextProps:R,fullWidth:g=!1,helperText:S,id:y,InputLabelProps:C,inputProps:M,InputProps:P,inputRef:N,label:T,maxRows:I,minRows:L,multiline:W=!1,name:j,onBlur:A,onChange:H,onFocus:E,placeholder:O,required:B=!1,rows:_,select:V=!1,SelectProps:Y,type:D,value:G,variant:J="outlined"}=o,K=(0,a.Z)(o,w),Q=(0,t.Z)({},o,{autoFocus:d,color:p,disabled:z,error:q,fullWidth:g,multiline:W,required:B,select:V,variant:J}),U=(e=>{const{classes:r}=e;return(0,i.Z)({root:["root"]},x.I,r)})(Q);const X={};"outlined"===J&&(C&&"undefined"!==typeof C.shrink&&(X.notched=C.shrink),X.label=T),V&&(Y&&Y.native||(X.id=void 0),X["aria-describedby"]=void 0);const $=(0,l.Z)(y),ee=S&&$?"".concat($,"-helper-text"):void 0,re=T&&$?"".concat($,"-label"):void 0,oe=k[J],te=(0,v.jsx)(oe,(0,t.Z)({"aria-describedby":ee,autoComplete:s,autoFocus:d,defaultValue:Z,fullWidth:g,multiline:W,name:j,rows:_,maxRows:I,minRows:L,type:D,value:G,id:$,inputRef:N,onBlur:A,onChange:H,onFocus:E,placeholder:O,inputProps:M},X,P));return(0,v.jsxs)(F,(0,t.Z)({className:(0,n.Z)(U.root,m),disabled:z,error:q,fullWidth:g,ref:r,required:B,color:p,variant:J,ownerState:Q},K,{children:[null!=T&&""!==T&&(0,v.jsx)(f.Z,(0,t.Z)({htmlFor:$,id:re},C,{children:T})),V?(0,v.jsx)(b.Z,(0,t.Z)({"aria-describedby":ee,id:$,labelId:re,value:G,input:te},Y,{children:u})):te,S&&(0,v.jsx)(h.Z,(0,t.Z)({id:ee},R,{children:S}))]}))}))},13421:(e,r,o)=>{o.d(r,{I:()=>s,Z:()=>n});var t=o(31821),a=o(18561);function s(e){return(0,a.Z)("MuiTextField",e)}const n=(0,t.Z)("MuiTextField",["root"])}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[7150],{77150:(e,t,a)=>{a.d(t,{ZP:()=>ee});var r=a(31461),n=a(7896),o=a(5057),l=a(9978),i=a(91213),s=a(78305),c=a(17517),u=a(48548),d=a(62663),m=a(46890),v=a(60730),p=a(56073),b=a(2534);const h={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var f=a(41658);function g(e,t){return e-t}function x(e,t,a){return null==e?t:Math.min(Math.max(t,e),a)}function k(e,t){var a;const{index:r}=null!=(a=e.reduce(((e,a,r)=>{const n=Math.abs(t-a);return null===e||n<e.distance||n===e.distance?{distance:n,index:r}:e}),null))?a:{};return r}function y(e,t){if(void 0!==t.current&&e.changedTouches){const a=e;for(let e=0;e<a.changedTouches.length;e+=1){const r=a.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function S(e,t,a){return 100*(e-t)/(a-t)}function w(e,t,a){const r=Math.round((e-a)/t)*t+a;return Number(r.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),a=t[0].split(".")[1];return(a?a.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function Z(e){let{values:t,newValue:a,index:r}=e;const n=t.slice();return n[r]=a,n.sort(g)}function L(e){let{sliderRef:t,activeIndex:a,setActive:r}=e;var n,o;const l=(0,u.Z)(t.current);var i;null!=(n=t.current)&&n.contains(l.activeElement)&&Number(null==l||null==(o=l.activeElement)?void 0:o.getAttribute("data-index"))===a||(null==(i=t.current)||i.querySelector('[type="range"][data-index="'.concat(a,'"]')).focus());r&&r(a)}function C(e,t){return"number"===typeof e&&"number"===typeof t?e===t:"object"===typeof e&&"object"===typeof t&&function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;return e.length===t.length&&e.every(((e,r)=>a(e,t[r])))}(e,t)}const P={horizontal:{offset:e=>({left:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},"horizontal-reverse":{offset:e=>({right:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},vertical:{offset:e=>({bottom:"".concat(e,"%")}),leap:e=>({height:"".concat(e,"%")})}},R=e=>e;let z;function A(){return void 0===z&&(z="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),z}function T(e){const{"aria-labelledby":t,defaultValue:a,disabled:r=!1,disableSwap:l=!1,isRtl:i=!1,marks:s=!1,max:c=100,min:z=0,name:T,onChange:I,onChangeCommitted:N,orientation:M="horizontal",rootRef:E,scale:j=R,step:F=1,tabIndex:V,value:O}=e,D=o.useRef(),[X,Y]=o.useState(-1),[_,B]=o.useState(-1),[W,q]=o.useState(!1),H=o.useRef(0),[$,G]=(0,d.Z)({controlled:O,default:null!=a?a:z,name:"Slider"}),J=I&&((e,t,a)=>{const r=e.nativeEvent||e,n=new r.constructor(r.type,r);Object.defineProperty(n,"target",{writable:!0,value:{value:t,name:T}}),I(n,t,a)}),K=Array.isArray($);let Q=K?$.slice().sort(g):[$];Q=Q.map((e=>x(e,z,c)));const U=!0===s&&null!==F?[...Array(Math.floor((c-z)/F)+1)].map(((e,t)=>({value:z+F*t}))):s||[],ee=U.map((e=>e.value)),{isFocusVisibleRef:te,onBlur:ae,onFocus:re,ref:ne}=(0,m.Z)(),[oe,le]=o.useState(-1),ie=o.useRef(),se=(0,v.Z)(ne,ie),ce=(0,v.Z)(E,se),ue=e=>t=>{var a;const r=Number(t.currentTarget.getAttribute("data-index"));re(t),!0===te.current&&le(r),B(r),null==e||null==(a=e.onFocus)||a.call(e,t)},de=e=>t=>{var a;ae(t),!1===te.current&&le(-1),B(-1),null==e||null==(a=e.onBlur)||a.call(e,t)};(0,p.Z)((()=>{var e;r&&ie.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[r]),r&&-1!==X&&Y(-1),r&&-1!==oe&&le(-1);const me=o.useRef();let ve=M;i&&"horizontal"===M&&(ve+="-reverse");const pe=e=>{let{finger:t,move:a=!1}=e;const{current:r}=ie,{width:n,height:o,bottom:i,left:s}=r.getBoundingClientRect();let u,d;if(u=0===ve.indexOf("vertical")?(i-t.y)/o:(t.x-s)/n,-1!==ve.indexOf("-reverse")&&(u=1-u),d=function(e,t,a){return(a-t)*e+t}(u,z,c),F)d=w(d,F,z);else{const e=k(ee,d);d=ee[e]}d=x(d,z,c);let m=0;if(K){m=a?me.current:k(Q,d),l&&(d=x(d,Q[m-1]||-1/0,Q[m+1]||1/0));const e=d;d=Z({values:Q,newValue:d,index:m}),l&&a||(m=d.indexOf(e),me.current=m)}return{newValue:d,activeIndex:m}},be=(0,b.Z)((e=>{const t=y(e,D);if(!t)return;if(H.current+=1,"mousemove"===e.type&&0===e.buttons)return void he(e);const{newValue:a,activeIndex:r}=pe({finger:t,move:!0});L({sliderRef:ie,activeIndex:r,setActive:Y}),G(a),!W&&H.current>2&&q(!0),J&&!C(a,$)&&J(e,a,r)})),he=(0,b.Z)((e=>{const t=y(e,D);if(q(!1),!t)return;const{newValue:a}=pe({finger:t,move:!0});Y(-1),"touchend"===e.type&&B(-1),N&&N(e,a),D.current=void 0,ge()})),fe=(0,b.Z)((e=>{if(r)return;A()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(D.current=t.identifier);const a=y(e,D);if(!1!==a){const{newValue:t,activeIndex:r}=pe({finger:a});L({sliderRef:ie,activeIndex:r,setActive:Y}),G(t),J&&!C(t,$)&&J(e,t,r)}H.current=0;const n=(0,u.Z)(ie.current);n.addEventListener("touchmove",be),n.addEventListener("touchend",he)})),ge=o.useCallback((()=>{const e=(0,u.Z)(ie.current);e.removeEventListener("mousemove",be),e.removeEventListener("mouseup",he),e.removeEventListener("touchmove",be),e.removeEventListener("touchend",he)}),[he,be]);o.useEffect((()=>{const{current:e}=ie;return e.addEventListener("touchstart",fe,{passive:A()}),()=>{e.removeEventListener("touchstart",fe,{passive:A()}),ge()}}),[ge,fe]),o.useEffect((()=>{r&&ge()}),[r,ge]);const xe=S(K?Q[0]:z,z,c),ke=S(Q[Q.length-1],z,c)-xe,ye=e=>t=>{var a;null==(a=e.onMouseLeave)||a.call(e,t),B(-1)};return{active:X,axis:ve,axisProps:P,dragging:W,focusedThumbIndex:oe,getHiddenInputProps:function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var o;const s=(0,f._)(a),u={onChange:(d=s||{},e=>{var t;null==(t=d.onChange)||t.call(d,e);const a=Number(e.currentTarget.getAttribute("data-index")),r=Q[a],n=ee.indexOf(r);let o=e.target.valueAsNumber;if(U&&null==F){const e=ee[ee.length-1];o=o>e?e:o<ee[0]?ee[0]:o<r?ee[n-1]:ee[n+1]}if(o=x(o,z,c),K){l&&(o=x(o,Q[a-1]||-1/0,Q[a+1]||1/0));const e=o;o=Z({values:Q,newValue:o,index:a});let t=a;l||(t=o.indexOf(e)),L({sliderRef:ie,activeIndex:t})}G(o),le(a),J&&!C(o,$)&&J(e,o,a),N&&N(e,o)}),onFocus:ue(s||{}),onBlur:de(s||{})};var d;const m=(0,n.Z)({},s,u);return(0,n.Z)({tabIndex:V,"aria-labelledby":t,"aria-orientation":M,"aria-valuemax":j(c),"aria-valuemin":j(z),name:T,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:r},a,m,{style:(0,n.Z)({},h,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,f._)(e),a={onMouseDown:(o=t||{},e=>{var t;if(null==(t=o.onMouseDown)||t.call(o,e),r)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const a=y(e,D);if(!1!==a){const{newValue:t,activeIndex:r}=pe({finger:a});L({sliderRef:ie,activeIndex:r,setActive:Y}),G(t),J&&!C(t,$)&&J(e,t,r)}H.current=0;const n=(0,u.Z)(ie.current);n.addEventListener("mousemove",be),n.addEventListener("mouseup",he)})};var o;const l=(0,n.Z)({},t,a);return(0,n.Z)({},e,{ref:ce},l)},getThumbProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,f._)(e),a={onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const a=Number(e.currentTarget.getAttribute("data-index"));B(a)}),onMouseLeave:ye(t||{})};var r;return(0,n.Z)({},e,t,a)},marks:U,open:_,range:K,rootRef:ce,trackLeap:ke,trackOffset:xe,values:Q,getThumbStyle:e=>({pointerEvents:-1!==X&&X!==e?"none":void 0})}}var I=a(66685),N=a(42908),M=a(62773),E=a(96366);const j=e=>!e||!(0,c.X)(e);var F=a(6285),V=a(31821),O=a(18561);function D(e){return(0,O.Z)("MuiSlider",e)}const X=(0,V.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var Y=a(96266);const _=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function B(e){return e}const W=(0,M.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t["color".concat((0,F.Z)(a.color))],"medium"!==a.size&&t["size".concat((0,F.Z)(a.size))],a.marked&&t.marked,"vertical"===a.orientation&&t.vertical,"inverted"===a.track&&t.trackInverted,!1===a.track&&t.trackFalse]}})((e=>{let{theme:t,ownerState:a}=e;return(0,n.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(t.vars||t).palette[a.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===a.orientation&&(0,n.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===a.size&&{height:2},a.marked&&{marginBottom:20}),"vertical"===a.orientation&&(0,n.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===a.size&&{width:2},a.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},["&.".concat(X.disabled)]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},["&.".concat(X.dragging)]:{["& .".concat(X.thumb,", & .").concat(X.track)]:{transition:"none"}}})})),q=(0,M.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((e=>{let{ownerState:t}=e;return(0,n.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})})),H=(0,M.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t,ownerState:a}=e;const r="light"===t.palette.mode?(0,I.$n)(t.palette[a.color].main,.62):(0,I._j)(t.palette[a.color].main,.5);return(0,n.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===a.size&&{border:"none"},"horizontal"===a.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===a.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===a.track&&{display:"none"},"inverted"===a.track&&{backgroundColor:t.vars?t.vars.palette.Slider["".concat(a.color,"Track")]:r,borderColor:t.vars?t.vars.palette.Slider["".concat(a.color,"Track")]:r})})),$=(0,M.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t["thumbColor".concat((0,F.Z)(a.color))],"medium"!==a.size&&t["thumbSize".concat((0,F.Z)(a.size))]]}})((e=>{let{theme:t,ownerState:a}=e;return(0,n.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest})},"small"===a.size&&{width:12,height:12},"horizontal"===a.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===a.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":(0,n.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"small"===a.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},["&:hover, &.".concat(X.focusVisible)]:{boxShadow:"0px 0px 0px 8px ".concat(t.vars?"rgba(".concat(t.vars.palette[a.color].mainChannel," / 0.16)"):(0,I.Fq)(t.palette[a.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}},["&.".concat(X.active)]:{boxShadow:"0px 0px 0px 14px ".concat(t.vars?"rgba(".concat(t.vars.palette[a.color].mainChannel," / 0.16)"):(0,I.Fq)(t.palette[a.color].main,.16))},["&.".concat(X.disabled)]:{"&:hover":{boxShadow:"none"}}})})),G=(0,M.ZP)((function(e){const{children:t,className:a,value:r}=e,n=(e=>{const{open:t}=e;return{offset:(0,l.Z)(t&&X.valueLabelOpen),circle:X.valueLabelCircle,label:X.valueLabelLabel}})(e);return t?o.cloneElement(t,{className:(0,l.Z)(t.props.className)},(0,Y.jsxs)(o.Fragment,{children:[t.props.children,(0,Y.jsx)("span",{className:(0,l.Z)(n.offset,a),"aria-hidden":!0,children:(0,Y.jsx)("span",{className:n.circle,children:(0,Y.jsx)("span",{className:n.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((e=>{let{theme:t,ownerState:a}=e;return(0,n.Z)({["&.".concat(X.valueLabelOpen)]:{transform:"".concat("vertical"===a.orientation?"translateY(-50%)":"translateY(-100%)"," scale(1)")},zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),transform:"".concat("vertical"===a.orientation?"translateY(-50%)":"translateY(-100%)"," scale(0)"),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===a.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===a.orientation&&{right:"small"===a.size?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===a.size&&{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"})})),J=(0,M.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,M.Dz)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})((e=>{let{theme:t,ownerState:a,markActive:r}=e;return(0,n.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===a.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===a.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})})),K=(0,M.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,M.Dz)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((e=>{let{theme:t,ownerState:a,markLabelActive:r}=e;return(0,n.Z)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===a.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===a.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(t.vars||t).palette.text.primary})})),Q=e=>{let{children:t}=e;return t},U=o.forwardRef((function(e,t){var a,u,d,m,v,p,b,h,f,g,x,k,y,w,Z,L,C,P,R,z,A,I,M,V;const O=(0,N.Z)({props:e,name:"MuiSlider"}),X="rtl"===(0,E.Z)().direction,{"aria-label":U,"aria-valuetext":ee,"aria-labelledby":te,component:ae="span",components:re={},componentsProps:ne={},color:oe="primary",classes:le,className:ie,disableSwap:se=!1,disabled:ce=!1,getAriaLabel:ue,getAriaValueText:de,marks:me=!1,max:ve=100,min:pe=0,orientation:be="horizontal",size:he="medium",step:fe=1,scale:ge=B,slotProps:xe,slots:ke,track:ye="normal",valueLabelDisplay:Se="off",valueLabelFormat:we=B}=O,Ze=(0,r.Z)(O,_),Le=(0,n.Z)({},O,{isRtl:X,max:ve,min:pe,classes:le,disabled:ce,disableSwap:se,orientation:be,marks:me,color:oe,size:he,step:fe,scale:ge,track:ye,valueLabelDisplay:Se,valueLabelFormat:we}),{axisProps:Ce,getRootProps:Pe,getHiddenInputProps:Re,getThumbProps:ze,open:Ae,active:Te,axis:Ie,focusedThumbIndex:Ne,range:Me,dragging:Ee,marks:je,values:Fe,trackOffset:Ve,trackLeap:Oe,getThumbStyle:De}=T((0,n.Z)({},Le,{rootRef:t}));Le.marked=je.length>0&&je.some((e=>e.label)),Le.dragging=Ee,Le.focusedThumbIndex=Ne;const Xe=(e=>{const{disabled:t,dragging:a,marked:r,orientation:n,track:o,classes:l,color:s,size:c}=e,u={root:["root",t&&"disabled",a&&"dragging",r&&"marked","vertical"===n&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",s&&"color".concat((0,F.Z)(s)),c&&"size".concat((0,F.Z)(c))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&"thumbSize".concat((0,F.Z)(c)),s&&"thumbColor".concat((0,F.Z)(s))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,i.Z)(u,D,l)})(Le),Ye=null!=(a=null!=(u=null==ke?void 0:ke.root)?u:re.Root)?a:W,_e=null!=(d=null!=(m=null==ke?void 0:ke.rail)?m:re.Rail)?d:q,Be=null!=(v=null!=(p=null==ke?void 0:ke.track)?p:re.Track)?v:H,We=null!=(b=null!=(h=null==ke?void 0:ke.thumb)?h:re.Thumb)?b:$,qe=null!=(f=null!=(g=null==ke?void 0:ke.valueLabel)?g:re.ValueLabel)?f:G,He=null!=(x=null!=(k=null==ke?void 0:ke.mark)?k:re.Mark)?x:J,$e=null!=(y=null!=(w=null==ke?void 0:ke.markLabel)?w:re.MarkLabel)?y:K,Ge=null!=(Z=null!=(L=null==ke?void 0:ke.input)?L:re.Input)?Z:"input",Je=null!=(C=null==xe?void 0:xe.root)?C:ne.root,Ke=null!=(P=null==xe?void 0:xe.rail)?P:ne.rail,Qe=null!=(R=null==xe?void 0:xe.track)?R:ne.track,Ue=null!=(z=null==xe?void 0:xe.thumb)?z:ne.thumb,et=null!=(A=null==xe?void 0:xe.valueLabel)?A:ne.valueLabel,tt=null!=(I=null==xe?void 0:xe.mark)?I:ne.mark,at=null!=(M=null==xe?void 0:xe.markLabel)?M:ne.markLabel,rt=null!=(V=null==xe?void 0:xe.input)?V:ne.input,nt=(0,s.y)({elementType:Ye,getSlotProps:Pe,externalSlotProps:Je,externalForwardedProps:Ze,additionalProps:(0,n.Z)({},j(Ye)&&{as:ae}),ownerState:(0,n.Z)({},Le,null==Je?void 0:Je.ownerState),className:[Xe.root,ie]}),ot=(0,s.y)({elementType:_e,externalSlotProps:Ke,ownerState:Le,className:Xe.rail}),lt=(0,s.y)({elementType:Be,externalSlotProps:Qe,additionalProps:{style:(0,n.Z)({},Ce[Ie].offset(Ve),Ce[Ie].leap(Oe))},ownerState:(0,n.Z)({},Le,null==Qe?void 0:Qe.ownerState),className:Xe.track}),it=(0,s.y)({elementType:We,getSlotProps:ze,externalSlotProps:Ue,ownerState:(0,n.Z)({},Le,null==Ue?void 0:Ue.ownerState),className:Xe.thumb}),st=(0,s.y)({elementType:qe,externalSlotProps:et,ownerState:(0,n.Z)({},Le,null==et?void 0:et.ownerState),className:Xe.valueLabel}),ct=(0,s.y)({elementType:He,externalSlotProps:tt,ownerState:Le,className:Xe.mark}),ut=(0,s.y)({elementType:$e,externalSlotProps:at,ownerState:Le,className:Xe.markLabel}),dt=(0,s.y)({elementType:Ge,getSlotProps:Re,externalSlotProps:rt,ownerState:Le});return(0,Y.jsxs)(Ye,(0,n.Z)({},nt,{children:[(0,Y.jsx)(_e,(0,n.Z)({},ot)),(0,Y.jsx)(Be,(0,n.Z)({},lt)),je.filter((e=>e.value>=pe&&e.value<=ve)).map(((e,t)=>{const a=S(e.value,pe,ve),r=Ce[Ie].offset(a);let i;return i=!1===ye?-1!==Fe.indexOf(e.value):"normal"===ye&&(Me?e.value>=Fe[0]&&e.value<=Fe[Fe.length-1]:e.value<=Fe[0])||"inverted"===ye&&(Me?e.value<=Fe[0]||e.value>=Fe[Fe.length-1]:e.value>=Fe[0]),(0,Y.jsxs)(o.Fragment,{children:[(0,Y.jsx)(He,(0,n.Z)({"data-index":t},ct,!(0,c.X)(He)&&{markActive:i},{style:(0,n.Z)({},r,ct.style),className:(0,l.Z)(ct.className,i&&Xe.markActive)})),null!=e.label?(0,Y.jsx)($e,(0,n.Z)({"aria-hidden":!0,"data-index":t},ut,!(0,c.X)($e)&&{markLabelActive:i},{style:(0,n.Z)({},r,ut.style),className:(0,l.Z)(Xe.markLabel,ut.className,i&&Xe.markLabelActive),children:e.label})):null]},t)})),Fe.map(((e,t)=>{const a=S(e,pe,ve),r=Ce[Ie].offset(a),o="off"===Se?Q:qe;return(0,Y.jsx)(o,(0,n.Z)({},!(0,c.X)(o)&&{valueLabelFormat:we,valueLabelDisplay:Se,value:"function"===typeof we?we(ge(e),t):we,index:t,open:Ae===t||Te===t||"on"===Se,disabled:ce},st,{children:(0,Y.jsx)(We,(0,n.Z)({"data-index":t},it,{className:(0,l.Z)(Xe.thumb,it.className,Te===t&&Xe.active,Ne===t&&Xe.focusVisible),style:(0,n.Z)({},r,De(t),it.style),children:(0,Y.jsx)(Ge,(0,n.Z)({"data-index":t,"aria-label":ue?ue(t):U,"aria-valuenow":ge(e),"aria-labelledby":te,"aria-valuetext":de?de(ge(e),t):ee,value:Fe[t]},dt))}))}),t)}))]}))})),ee=U}}]);
|
|
1
|
+
"use strict";(self.webpackChunk_abtnode_webapp=self.webpackChunk_abtnode_webapp||[]).push([[7150],{77150:(e,t,a)=>{a.d(t,{ZP:()=>ee});var r=a(31461),n=a(7896),o=a(5057),l=a(9978),i=a(91213),s=a(78305),c=a(17517),u=a(48548),d=a(62663),m=a(46890),v=a(60730),p=a(56073),b=a(2534);const h={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var f=a(41658);function g(e,t){return e-t}function x(e,t,a){return null==e?t:Math.min(Math.max(t,e),a)}function k(e,t){var a;const{index:r}=null!=(a=e.reduce(((e,a,r)=>{const n=Math.abs(t-a);return null===e||n<e.distance||n===e.distance?{distance:n,index:r}:e}),null))?a:{};return r}function y(e,t){if(void 0!==t.current&&e.changedTouches){const a=e;for(let e=0;e<a.changedTouches.length;e+=1){const r=a.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function S(e,t,a){return 100*(e-t)/(a-t)}function w(e,t,a){const r=Math.round((e-a)/t)*t+a;return Number(r.toFixed(function(e){if(Math.abs(e)<1){const t=e.toExponential().split("e-"),a=t[0].split(".")[1];return(a?a.length:0)+parseInt(t[1],10)}const t=e.toString().split(".")[1];return t?t.length:0}(t)))}function Z(e){let{values:t,newValue:a,index:r}=e;const n=t.slice();return n[r]=a,n.sort(g)}function L(e){let{sliderRef:t,activeIndex:a,setActive:r}=e;var n,o;const l=(0,u.Z)(t.current);var i;null!=(n=t.current)&&n.contains(l.activeElement)&&Number(null==l||null==(o=l.activeElement)?void 0:o.getAttribute("data-index"))===a||(null==(i=t.current)||i.querySelector('[type="range"][data-index="'.concat(a,'"]')).focus());r&&r(a)}function C(e,t){return"number"===typeof e&&"number"===typeof t?e===t:"object"===typeof e&&"object"===typeof t&&function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(e,t)=>e===t;return e.length===t.length&&e.every(((e,r)=>a(e,t[r])))}(e,t)}const P={horizontal:{offset:e=>({left:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},"horizontal-reverse":{offset:e=>({right:"".concat(e,"%")}),leap:e=>({width:"".concat(e,"%")})},vertical:{offset:e=>({bottom:"".concat(e,"%")}),leap:e=>({height:"".concat(e,"%")})}},R=e=>e;let z;function A(){return void 0===z&&(z="undefined"===typeof CSS||"function"!==typeof CSS.supports||CSS.supports("touch-action","none")),z}function T(e){const{"aria-labelledby":t,defaultValue:a,disabled:r=!1,disableSwap:l=!1,isRtl:i=!1,marks:s=!1,max:c=100,min:z=0,name:T,onChange:I,onChangeCommitted:N,orientation:M="horizontal",rootRef:E,scale:j=R,step:F=1,tabIndex:V,value:O}=e,D=o.useRef(),[X,Y]=o.useState(-1),[_,B]=o.useState(-1),[W,q]=o.useState(!1),H=o.useRef(0),[$,G]=(0,d.Z)({controlled:O,default:null!=a?a:z,name:"Slider"}),J=I&&((e,t,a)=>{const r=e.nativeEvent||e,n=new r.constructor(r.type,r);Object.defineProperty(n,"target",{writable:!0,value:{value:t,name:T}}),I(n,t,a)}),K=Array.isArray($);let Q=K?$.slice().sort(g):[$];Q=Q.map((e=>x(e,z,c)));const U=!0===s&&null!==F?[...Array(Math.floor((c-z)/F)+1)].map(((e,t)=>({value:z+F*t}))):s||[],ee=U.map((e=>e.value)),{isFocusVisibleRef:te,onBlur:ae,onFocus:re,ref:ne}=(0,m.Z)(),[oe,le]=o.useState(-1),ie=o.useRef(),se=(0,v.Z)(ne,ie),ce=(0,v.Z)(E,se),ue=e=>t=>{var a;const r=Number(t.currentTarget.getAttribute("data-index"));re(t),!0===te.current&&le(r),B(r),null==e||null==(a=e.onFocus)||a.call(e,t)},de=e=>t=>{var a;ae(t),!1===te.current&&le(-1),B(-1),null==e||null==(a=e.onBlur)||a.call(e,t)};(0,p.Z)((()=>{var e;r&&ie.current.contains(document.activeElement)&&(null==(e=document.activeElement)||e.blur())}),[r]),r&&-1!==X&&Y(-1),r&&-1!==oe&&le(-1);const me=o.useRef();let ve=M;i&&"horizontal"===M&&(ve+="-reverse");const pe=e=>{let{finger:t,move:a=!1}=e;const{current:r}=ie,{width:n,height:o,bottom:i,left:s}=r.getBoundingClientRect();let u,d;if(u=0===ve.indexOf("vertical")?(i-t.y)/o:(t.x-s)/n,-1!==ve.indexOf("-reverse")&&(u=1-u),d=function(e,t,a){return(a-t)*e+t}(u,z,c),F)d=w(d,F,z);else{const e=k(ee,d);d=ee[e]}d=x(d,z,c);let m=0;if(K){m=a?me.current:k(Q,d),l&&(d=x(d,Q[m-1]||-1/0,Q[m+1]||1/0));const e=d;d=Z({values:Q,newValue:d,index:m}),l&&a||(m=d.indexOf(e),me.current=m)}return{newValue:d,activeIndex:m}},be=(0,b.Z)((e=>{const t=y(e,D);if(!t)return;if(H.current+=1,"mousemove"===e.type&&0===e.buttons)return void he(e);const{newValue:a,activeIndex:r}=pe({finger:t,move:!0});L({sliderRef:ie,activeIndex:r,setActive:Y}),G(a),!W&&H.current>2&&q(!0),J&&!C(a,$)&&J(e,a,r)})),he=(0,b.Z)((e=>{const t=y(e,D);if(q(!1),!t)return;const{newValue:a}=pe({finger:t,move:!0});Y(-1),"touchend"===e.type&&B(-1),N&&N(e,a),D.current=void 0,ge()})),fe=(0,b.Z)((e=>{if(r)return;A()||e.preventDefault();const t=e.changedTouches[0];null!=t&&(D.current=t.identifier);const a=y(e,D);if(!1!==a){const{newValue:t,activeIndex:r}=pe({finger:a});L({sliderRef:ie,activeIndex:r,setActive:Y}),G(t),J&&!C(t,$)&&J(e,t,r)}H.current=0;const n=(0,u.Z)(ie.current);n.addEventListener("touchmove",be),n.addEventListener("touchend",he)})),ge=o.useCallback((()=>{const e=(0,u.Z)(ie.current);e.removeEventListener("mousemove",be),e.removeEventListener("mouseup",he),e.removeEventListener("touchmove",be),e.removeEventListener("touchend",he)}),[he,be]);o.useEffect((()=>{const{current:e}=ie;return e.addEventListener("touchstart",fe,{passive:A()}),()=>{e.removeEventListener("touchstart",fe,{passive:A()}),ge()}}),[ge,fe]),o.useEffect((()=>{r&&ge()}),[r,ge]);const xe=S(K?Q[0]:z,z,c),ke=S(Q[Q.length-1],z,c)-xe,ye=e=>t=>{var a;null==(a=e.onMouseLeave)||a.call(e,t),B(-1)};return{active:X,axis:ve,axisProps:P,dragging:W,focusedThumbIndex:oe,getHiddenInputProps:function(){let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var o;const s=(0,f._)(a),u={onChange:(d=s||{},e=>{var t;null==(t=d.onChange)||t.call(d,e);const a=Number(e.currentTarget.getAttribute("data-index")),r=Q[a],n=ee.indexOf(r);let o=e.target.valueAsNumber;if(U&&null==F){const e=ee[ee.length-1];o=o>e?e:o<ee[0]?ee[0]:o<r?ee[n-1]:ee[n+1]}if(o=x(o,z,c),K){l&&(o=x(o,Q[a-1]||-1/0,Q[a+1]||1/0));const e=o;o=Z({values:Q,newValue:o,index:a});let t=a;l||(t=o.indexOf(e)),L({sliderRef:ie,activeIndex:t})}G(o),le(a),J&&!C(o,$)&&J(e,o,a),N&&N(e,o)}),onFocus:ue(s||{}),onBlur:de(s||{})};var d;const m=(0,n.Z)({},s,u);return(0,n.Z)({tabIndex:V,"aria-labelledby":t,"aria-orientation":M,"aria-valuemax":j(c),"aria-valuemin":j(z),name:T,type:"range",min:e.min,max:e.max,step:null===e.step&&e.marks?"any":null!=(o=e.step)?o:void 0,disabled:r},a,m,{style:(0,n.Z)({},h,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,f._)(e),a={onMouseDown:(o=t||{},e=>{var t;if(null==(t=o.onMouseDown)||t.call(o,e),r)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const a=y(e,D);if(!1!==a){const{newValue:t,activeIndex:r}=pe({finger:a});L({sliderRef:ie,activeIndex:r,setActive:Y}),G(t),J&&!C(t,$)&&J(e,t,r)}H.current=0;const n=(0,u.Z)(ie.current);n.addEventListener("mousemove",be),n.addEventListener("mouseup",he)})};var o;const l=(0,n.Z)({},t,a);return(0,n.Z)({},e,{ref:ce},l)},getThumbProps:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,f._)(e),a={onMouseOver:(r=t||{},e=>{var t;null==(t=r.onMouseOver)||t.call(r,e);const a=Number(e.currentTarget.getAttribute("data-index"));B(a)}),onMouseLeave:ye(t||{})};var r;return(0,n.Z)({},e,t,a)},marks:U,open:_,range:K,rootRef:ce,trackLeap:ke,trackOffset:xe,values:Q,getThumbStyle:e=>({pointerEvents:-1!==X&&X!==e?"none":void 0})}}var I=a(66685),N=a(42908),M=a(62773),E=a(96366);const j=e=>!e||!(0,c.X)(e);var F=a(6285),V=a(31821),O=a(18561);function D(e){return(0,O.Z)("MuiSlider",e)}const X=(0,V.Z)("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]);var Y=a(96266);const _=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function B(e){return e}const W=(0,M.ZP)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,t["color".concat((0,F.Z)(a.color))],"medium"!==a.size&&t["size".concat((0,F.Z)(a.size))],a.marked&&t.marked,"vertical"===a.orientation&&t.vertical,"inverted"===a.track&&t.trackInverted,!1===a.track&&t.trackFalse]}})((e=>{let{theme:t,ownerState:a}=e;return(0,n.Z)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(t.vars||t).palette[a.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===a.orientation&&(0,n.Z)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===a.size&&{height:2},a.marked&&{marginBottom:20}),"vertical"===a.orientation&&(0,n.Z)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===a.size&&{width:2},a.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},["&.".concat(X.disabled)]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},["&.".concat(X.dragging)]:{["& .".concat(X.thumb,", & .").concat(X.track)]:{transition:"none"}}})})),q=(0,M.ZP)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((e=>{let{ownerState:t}=e;return(0,n.Z)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})})),H=(0,M.ZP)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((e=>{let{theme:t,ownerState:a}=e;const r="light"===t.palette.mode?(0,I.$n)(t.palette[a.color].main,.62):(0,I._j)(t.palette[a.color].main,.5);return(0,n.Z)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===a.size&&{border:"none"},"horizontal"===a.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===a.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===a.track&&{display:"none"},"inverted"===a.track&&{backgroundColor:t.vars?t.vars.palette.Slider["".concat(a.color,"Track")]:r,borderColor:t.vars?t.vars.palette.Slider["".concat(a.color,"Track")]:r})})),$=(0,M.ZP)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.thumb,t["thumbColor".concat((0,F.Z)(a.color))],"medium"!==a.size&&t["thumbSize".concat((0,F.Z)(a.size))]]}})((e=>{let{theme:t,ownerState:a}=e;return(0,n.Z)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest})},"small"===a.size&&{width:12,height:12},"horizontal"===a.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===a.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&::before":(0,n.Z)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"small"===a.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},["&:hover, &.".concat(X.focusVisible)]:{boxShadow:"0px 0px 0px 8px ".concat(t.vars?"rgba(".concat(t.vars.palette[a.color].mainChannel," / 0.16)"):(0,I.Fq)(t.palette[a.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}},["&.".concat(X.active)]:{boxShadow:"0px 0px 0px 14px ".concat(t.vars?"rgba(".concat(t.vars.palette[a.color].mainChannel," / 0.16)"):(0,I.Fq)(t.palette[a.color].main,.16))},["&.".concat(X.disabled)]:{"&:hover":{boxShadow:"none"}}})})),G=(0,M.ZP)((function(e){const{children:t,className:a,value:r}=e,n=(e=>{const{open:t}=e;return{offset:(0,l.Z)(t&&X.valueLabelOpen),circle:X.valueLabelCircle,label:X.valueLabelLabel}})(e);return t?o.cloneElement(t,{className:(0,l.Z)(t.props.className)},(0,Y.jsxs)(o.Fragment,{children:[t.props.children,(0,Y.jsx)("span",{className:(0,l.Z)(n.offset,a),"aria-hidden":!0,children:(0,Y.jsx)("span",{className:n.circle,children:(0,Y.jsx)("span",{className:n.label,children:r})})})]})):null}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((e=>{let{theme:t,ownerState:a}=e;return(0,n.Z)({["&.".concat(X.valueLabelOpen)]:{transform:"".concat("vertical"===a.orientation?"translateY(-50%)":"translateY(-100%)"," scale(1)")},zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),transform:"".concat("vertical"===a.orientation?"translateY(-50%)":"translateY(-100%)"," scale(0)"),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===a.orientation&&{top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===a.orientation&&{right:"small"===a.size?"20px":"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},"small"===a.size&&{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"})})),J=(0,M.ZP)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>(0,M.Dz)(e)&&"markActive"!==e,overridesResolver:(e,t)=>{const{markActive:a}=e;return[t.mark,a&&t.markActive]}})((e=>{let{theme:t,ownerState:a,markActive:r}=e;return(0,n.Z)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===a.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===a.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},r&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})})),K=(0,M.ZP)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>(0,M.Dz)(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((e=>{let{theme:t,ownerState:a,markLabelActive:r}=e;return(0,n.Z)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===a.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===a.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},r&&{color:(t.vars||t).palette.text.primary})})),Q=e=>{let{children:t}=e;return t},U=o.forwardRef((function(e,t){var a,u,d,m,v,p,b,h,f,g,x,k,y,w,Z,L,C,P,R,z,A,I,M,V;const O=(0,N.Z)({props:e,name:"MuiSlider"}),X="rtl"===(0,E.Z)().direction,{"aria-label":U,"aria-valuetext":ee,"aria-labelledby":te,component:ae="span",components:re={},componentsProps:ne={},color:oe="primary",classes:le,className:ie,disableSwap:se=!1,disabled:ce=!1,getAriaLabel:ue,getAriaValueText:de,marks:me=!1,max:ve=100,min:pe=0,orientation:be="horizontal",size:he="medium",step:fe=1,scale:ge=B,slotProps:xe,slots:ke,track:ye="normal",valueLabelDisplay:Se="off",valueLabelFormat:we=B}=O,Ze=(0,r.Z)(O,_),Le=(0,n.Z)({},O,{isRtl:X,max:ve,min:pe,classes:le,disabled:ce,disableSwap:se,orientation:be,marks:me,color:oe,size:he,step:fe,scale:ge,track:ye,valueLabelDisplay:Se,valueLabelFormat:we}),{axisProps:Ce,getRootProps:Pe,getHiddenInputProps:Re,getThumbProps:ze,open:Ae,active:Te,axis:Ie,focusedThumbIndex:Ne,range:Me,dragging:Ee,marks:je,values:Fe,trackOffset:Ve,trackLeap:Oe,getThumbStyle:De}=T((0,n.Z)({},Le,{rootRef:t}));Le.marked=je.length>0&&je.some((e=>e.label)),Le.dragging=Ee,Le.focusedThumbIndex=Ne;const Xe=(e=>{const{disabled:t,dragging:a,marked:r,orientation:n,track:o,classes:l,color:s,size:c}=e,u={root:["root",t&&"disabled",a&&"dragging",r&&"marked","vertical"===n&&"vertical","inverted"===o&&"trackInverted",!1===o&&"trackFalse",s&&"color".concat((0,F.Z)(s)),c&&"size".concat((0,F.Z)(c))],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&"thumbSize".concat((0,F.Z)(c)),s&&"thumbColor".concat((0,F.Z)(s))],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return(0,i.Z)(u,D,l)})(Le),Ye=null!=(a=null!=(u=null==ke?void 0:ke.root)?u:re.Root)?a:W,_e=null!=(d=null!=(m=null==ke?void 0:ke.rail)?m:re.Rail)?d:q,Be=null!=(v=null!=(p=null==ke?void 0:ke.track)?p:re.Track)?v:H,We=null!=(b=null!=(h=null==ke?void 0:ke.thumb)?h:re.Thumb)?b:$,qe=null!=(f=null!=(g=null==ke?void 0:ke.valueLabel)?g:re.ValueLabel)?f:G,He=null!=(x=null!=(k=null==ke?void 0:ke.mark)?k:re.Mark)?x:J,$e=null!=(y=null!=(w=null==ke?void 0:ke.markLabel)?w:re.MarkLabel)?y:K,Ge=null!=(Z=null!=(L=null==ke?void 0:ke.input)?L:re.Input)?Z:"input",Je=null!=(C=null==xe?void 0:xe.root)?C:ne.root,Ke=null!=(P=null==xe?void 0:xe.rail)?P:ne.rail,Qe=null!=(R=null==xe?void 0:xe.track)?R:ne.track,Ue=null!=(z=null==xe?void 0:xe.thumb)?z:ne.thumb,et=null!=(A=null==xe?void 0:xe.valueLabel)?A:ne.valueLabel,tt=null!=(I=null==xe?void 0:xe.mark)?I:ne.mark,at=null!=(M=null==xe?void 0:xe.markLabel)?M:ne.markLabel,rt=null!=(V=null==xe?void 0:xe.input)?V:ne.input,nt=(0,s.y)({elementType:Ye,getSlotProps:Pe,externalSlotProps:Je,externalForwardedProps:Ze,additionalProps:(0,n.Z)({},j(Ye)&&{as:ae}),ownerState:(0,n.Z)({},Le,null==Je?void 0:Je.ownerState),className:[Xe.root,ie]}),ot=(0,s.y)({elementType:_e,externalSlotProps:Ke,ownerState:Le,className:Xe.rail}),lt=(0,s.y)({elementType:Be,externalSlotProps:Qe,additionalProps:{style:(0,n.Z)({},Ce[Ie].offset(Ve),Ce[Ie].leap(Oe))},ownerState:(0,n.Z)({},Le,null==Qe?void 0:Qe.ownerState),className:Xe.track}),it=(0,s.y)({elementType:We,getSlotProps:ze,externalSlotProps:Ue,ownerState:(0,n.Z)({},Le,null==Ue?void 0:Ue.ownerState),className:Xe.thumb}),st=(0,s.y)({elementType:qe,externalSlotProps:et,ownerState:(0,n.Z)({},Le,null==et?void 0:et.ownerState),className:Xe.valueLabel}),ct=(0,s.y)({elementType:He,externalSlotProps:tt,ownerState:Le,className:Xe.mark}),ut=(0,s.y)({elementType:$e,externalSlotProps:at,ownerState:Le,className:Xe.markLabel}),dt=(0,s.y)({elementType:Ge,getSlotProps:Re,externalSlotProps:rt,ownerState:Le});return(0,Y.jsxs)(Ye,(0,n.Z)({},nt,{children:[(0,Y.jsx)(_e,(0,n.Z)({},ot)),(0,Y.jsx)(Be,(0,n.Z)({},lt)),je.filter((e=>e.value>=pe&&e.value<=ve)).map(((e,t)=>{const a=S(e.value,pe,ve),r=Ce[Ie].offset(a);let i;return i=!1===ye?-1!==Fe.indexOf(e.value):"normal"===ye&&(Me?e.value>=Fe[0]&&e.value<=Fe[Fe.length-1]:e.value<=Fe[0])||"inverted"===ye&&(Me?e.value<=Fe[0]||e.value>=Fe[Fe.length-1]:e.value>=Fe[0]),(0,Y.jsxs)(o.Fragment,{children:[(0,Y.jsx)(He,(0,n.Z)({"data-index":t},ct,!(0,c.X)(He)&&{markActive:i},{style:(0,n.Z)({},r,ct.style),className:(0,l.Z)(ct.className,i&&Xe.markActive)})),null!=e.label?(0,Y.jsx)($e,(0,n.Z)({"aria-hidden":!0,"data-index":t},ut,!(0,c.X)($e)&&{markLabelActive:i},{style:(0,n.Z)({},r,ut.style),className:(0,l.Z)(Xe.markLabel,ut.className,i&&Xe.markLabelActive),children:e.label})):null]},t)})),Fe.map(((e,t)=>{const a=S(e,pe,ve),r=Ce[Ie].offset(a),o="off"===Se?Q:qe;return(0,Y.jsx)(o,(0,n.Z)({},!(0,c.X)(o)&&{valueLabelFormat:we,valueLabelDisplay:Se,value:"function"===typeof we?we(ge(e),t):we,index:t,open:Ae===t||Te===t||"on"===Se,disabled:ce},st,{children:(0,Y.jsx)(We,(0,n.Z)({"data-index":t},it,{className:(0,l.Z)(Xe.thumb,it.className,Te===t&&Xe.active,Ne===t&&Xe.focusVisible),style:(0,n.Z)({},r,De(t),it.style),children:(0,Y.jsx)(Ge,(0,n.Z)({"data-index":t,"aria-label":ue?ue(t):U,"aria-valuenow":ge(e),"aria-labelledby":te,"aria-valuetext":de?de(ge(e),t):ee,value:Fe[t]},dt))}))}),t)}))]}))})),ee=U}}]);
|