@abtnode/blocklet-services 1.16.22-beta-5bf86cd3 → 1.16.22-beta-87e027a7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{Add-HY80r9Xl.js → Add-fjbSIcnc.js} +1 -1
- package/dist/assets/{Alert-cCkZfPX9.js → Alert-nav821gk.js} +1 -1
- package/dist/assets/{ArrowDropDown-Oh-T-P-J.js → ArrowDropDown-HzxvBXz1.js} +1 -1
- package/dist/assets/{Autocomplete-kezcFnoc.js → Autocomplete-FZ1Hog9u.js} +1 -1
- package/dist/assets/{Avatar-jwVmwAdK.js → Avatar-4W2iSGC-.js} +1 -1
- package/dist/assets/{ButtonGroup-VMcij_v9.js → ButtonGroup-qjjm6C6u.js} +1 -1
- package/dist/assets/{CardContent-56wHk5L-.js → CardContent-hsa9cKyn.js} +1 -1
- package/dist/assets/{CheckCircle-_9dSYOvH.js → CheckCircle-htlybHjr.js} +1 -1
- package/dist/assets/{Checkbox-1a8RFsS4.js → Checkbox-iS0aPWS5.js} +1 -1
- package/dist/assets/{ChevronRight-DuewvW-I.js → ChevronRight-7cKIhy5z.js} +1 -1
- package/dist/assets/{DeleteOutline-8lAl_yeQ.js → DeleteOutline-QxqDOFWu.js} +1 -1
- package/dist/assets/{DialogContentText-4V6Sm4oF.js → DialogContentText-2StByoPg.js} +1 -1
- package/dist/assets/{Done-FhqUT9hq.js → Done-ApQZxhfW.js} +1 -1
- package/dist/assets/{Download-tyWSwX6I.js → Download-eudDXSjG.js} +1 -1
- package/dist/assets/{Edit-5S1lkpDv.js → Edit-4h5n3zVg.js} +1 -1
- package/dist/assets/{EditIcon-np_ORzEB.js → EditIcon-CEHYlrp-.js} +1 -1
- package/dist/assets/{ExpandMore-dUKN4QRy.js → ExpandMore-JmnmUnd8.js} +1 -1
- package/dist/assets/{FilterList--9H9DyuC.js → FilterList-rU96K2al.js} +1 -1
- package/dist/assets/{FormControl-21-o3Ons.js → FormControl-U_6qW76h.js} +1 -1
- package/dist/assets/{FormControlLabel-1hNnMean.js → FormControlLabel-Yzi0VkLB.js} +1 -1
- package/dist/assets/{FormGroup-7d3FZFIj.js → FormGroup-6byJTUh5.js} +1 -1
- package/dist/assets/{Google-VkSesQr-.js → Google-0MAQRWrd.js} +1 -1
- package/dist/assets/{Grid-EWzEHkzI.js → Grid-G2b-U3nu.js} +1 -1
- package/dist/assets/{Hidden-V9GBUhSY.js → Hidden-SKwxA9k1.js} +1 -1
- package/dist/assets/{Icon-4r9LeAsN.js → Icon-9CFlKIHS.js} +1 -1
- package/dist/assets/{InfoOutlined-pdQhXF08.js → InfoOutlined-0GqWWO-f.js} +1 -1
- package/dist/assets/{InputAdornment--qKRyOTU.js → InputAdornment-iwL7P_Vm.js} +1 -1
- package/dist/assets/{InputLabel-5mwp9YPR.js → InputLabel-qtx_TKpe.js} +1 -1
- package/dist/assets/{LastPage-pSqTT0C0.js → LastPage-pHa4HGK_.js} +1 -1
- package/dist/assets/{Launch-NG3M5y72.js → Launch-gJCQmpyL.js} +1 -1
- package/dist/assets/{LaunchOutlined-XOhr4FLd.js → LaunchOutlined-WAN0Led7.js} +1 -1
- package/dist/assets/{ListItem-wpvL3uzC.js → ListItem-kYIyq9wN.js} +1 -1
- package/dist/assets/{LockIcon-agQ4kFqe.js → LockIcon-e6UtCqfh.js} +1 -1
- package/dist/assets/{Loop-IzHJ-Vey.js → Loop-PXldOGkJ.js} +1 -1
- package/dist/assets/{MoreHoriz-KVrwkgt7.js → MoreHoriz-1QS3N81v.js} +1 -1
- package/dist/assets/{MoreVert-glDwWv1Q.js → MoreVert-b_wUncc4.js} +1 -1
- package/dist/assets/{OpenInNew-gFVniujG.js → OpenInNew-cyQNIeON.js} +1 -1
- package/dist/assets/{Pagination-R_vvTBsr.js → Pagination-yeBOKJgc.js} +1 -1
- package/dist/assets/{PlayArrow-ZBpW76Bk.js → PlayArrow-DsCR1WAD.js} +1 -1
- package/dist/assets/{RadioGroup-auvSkCcq.js → RadioGroup-MeoNWf5B.js} +1 -1
- package/dist/assets/{Search-b15PzLFw.js → Search-pq50dDMP.js} +1 -1
- package/dist/assets/{Select-wrtQaiA7.js → Select-1vnu6Wod.js} +1 -1
- package/dist/assets/{ServerLogo-vGEnqfsW.js → ServerLogo-RRmp6mc-.js} +1 -1
- package/dist/assets/{Skeleton-JafD3Ykz.js → Skeleton-bmmJmS0u.js} +1 -1
- package/dist/assets/{Slider-7ZGPyLpu.js → Slider-24UR9uuQ.js} +1 -1
- package/dist/assets/{Stepper-5Hb9COkE.js → Stepper-V9gE9w3-.js} +1 -1
- package/dist/assets/{TableRow-iLylb6bH.js → TableRow-7b-DLFKT.js} +1 -1
- package/dist/assets/{TextField-F6GRkv0f.js → TextField-HfFRez76.js} +1 -1
- package/dist/assets/{Toolbar-PzPFhxha.js → Toolbar-z-FYIGbv.js} +1 -1
- package/dist/assets/{access-control-ivdVi3Zl.js → access-control-140xtlbD.js} +1 -1
- package/dist/assets/{actions-RmsyI4AF.js → actions-c_BF9d9e.js} +1 -1
- package/dist/assets/{add-component-core-pThuc3SC.js → add-component-core-cwUA8ONY.js} +1 -1
- package/dist/assets/add-resource-iCbxZ67X.js +1 -0
- package/dist/assets/{addon-1k5Qtdur.js → addon-7yjXaIX_.js} +1 -1
- package/dist/assets/{analytics-uuu9J4YR.js → analytics-b1UCJ6Cn.js} +6 -6
- package/dist/assets/api-Rgr2QdHb.js +1 -0
- package/dist/assets/{audit-logs-lr4aoBwP.js → audit-logs-poKE0OY8.js} +1 -1
- package/dist/assets/{button-49q1l_Jk.js → button-lOeSUgmq.js} +1 -1
- package/dist/assets/{click-to-copy-7zmc8KM7.js → click-to-copy-H2O9ZAs8.js} +1 -1
- package/dist/assets/{complete-ksaTDs1d.js → complete--aJHmuMX.js} +1 -1
- package/dist/assets/{component-cmCcdsTc.js → component-O_4jZEKT.js} +1 -1
- package/dist/assets/{config-zfsyTfJt.js → config-Fxb0qTJ0.js} +1 -1
- package/dist/assets/{config-LAgF_LFO.js → config-_s2-tqfS.js} +1 -1
- package/dist/assets/{config-navigation-kgGhXvRG.js → config-navigation-YoH5FRo8.js} +1 -1
- package/dist/assets/{confirm-IbJOM7N5.js → confirm-Q5y49s7X.js} +1 -1
- package/dist/assets/{confirm-K5PhyaSE.js → confirm-yusCbmM9.js} +1 -1
- package/dist/assets/{connect-BZeJn_ku.js → connect-91kkXTrG.js} +1 -1
- package/dist/assets/{connect-iXFYp-0V.js → connect-tamQdAs3.js} +1 -1
- package/dist/assets/{content-layout-tLfWld_B.js → content-layout-P9P08qyU.js} +1 -1
- package/dist/assets/{dashboard-5KQ5Ur-Q.js → dashboard-wLNTNF45.js} +3 -3
- package/dist/assets/{did-address-5kO4ybvH.js → did-address-fR8IBME6.js} +1 -1
- package/dist/assets/{did-utils-N2ScOA2Z.js → did-utils-LIvwQDYN.js} +1 -1
- package/dist/assets/domain-list-lVne43El.js +12 -0
- package/dist/assets/{domain-1ugSZkUL.js → domain-zuaklUGn.js} +1 -1
- package/dist/assets/{exchange-passport-1R-azVMk.js → exchange-passport-T-h-OnRN.js} +1 -1
- package/dist/assets/{fallback-ZY6DEOHk.js → fallback-wCdaTD2t.js} +1 -1
- package/dist/assets/{format-error-fstt_Fgi.js → format-error-iCYgDtF5.js} +1 -1
- package/dist/assets/{fuel-tuPlyXKK.js → fuel-KNzdaW-g.js} +1 -1
- package/dist/assets/{fullpage-NJyn5uuM.js → fullpage-JCH-m3GS.js} +1 -1
- package/dist/assets/{home-0It-dY_Q.js → home-Po2ga9wZ.js} +1 -1
- package/dist/assets/{iframe-s-BtzLfM.js → iframe-5bCtjLAp.js} +1 -1
- package/dist/assets/{index-YqUiAZGc.js → index-2HiYYWCO.js} +1 -1
- package/dist/assets/{index-w1QUchsj.js → index-3S1MajfA.js} +1 -1
- package/dist/assets/{index-oY9Vc1OW.js → index-3kUoZ2Ef.js} +1 -1
- package/dist/assets/{index-d8x_hsVZ.js → index-4MBFFo4b.js} +1 -1
- package/dist/assets/{index-jlbXeg5y.js → index-7N0uMPlx.js} +1 -1
- package/dist/assets/{index-ibSCib5c.js → index-8qpwDSzw.js} +3 -3
- package/dist/assets/{index-FjIp0UlP.js → index-C7hr4YV8.js} +1 -1
- package/dist/assets/{index-akHKEyYq.js → index-FMCeh-OO.js} +1 -1
- package/dist/assets/{index-bZ3vw6Xd.js → index-FT9kP6qN.js} +1 -1
- package/dist/assets/{index-6Ubs0JHb.js → index-GG6_BZrf.js} +1 -1
- package/dist/assets/{index-BptLF0Yu.js → index-GsSFMKbP.js} +1 -1
- package/dist/assets/{index-FKI4Ry1a.js → index-KswRO1Cx.js} +1 -1
- package/dist/assets/{index-qpETE7Qh.js → index-NURviigq.js} +1 -1
- package/dist/assets/{index-CVik65v1.js → index-R3dXtQXo.js} +1 -1
- package/dist/assets/{index-Y2RH7k2W.js → index-SVSv1xqW.js} +1 -1
- package/dist/assets/{index-lDqI9_-C.js → index-_typwRVC.js} +1 -1
- package/dist/assets/{index-Q3a71wh1.js → index-auhYXn_h.js} +1 -1
- package/dist/assets/{index-0Rghu4i-.js → index-ax5KBcO9.js} +3 -3
- package/dist/assets/{index-7WXVYQMt.js → index-dQP0j7rR.js} +1 -1
- package/dist/assets/{index-gKtAtARS.js → index-hnUD7mNC.js} +1 -1
- package/dist/assets/{index-DUU1rMX-.js → index-lnLE9M77.js} +1 -1
- package/dist/assets/{index-MReLu9-n.js → index-nBzqT-lu.js} +1 -1
- package/dist/assets/{index-vU8oFfNB.js → index-nNJj_XhL.js} +1 -1
- package/dist/assets/{index-5ZG2oxzS.js → index-nXJuMgJq.js} +1 -1
- package/dist/assets/{index-YQvahN6T.js → index-p4r1RVIJ.js} +1 -1
- package/dist/assets/{index-QDdzoXvu.js → index-q4YuEk6Y.js} +1 -1
- package/dist/assets/{index-feKj5cCa.js → index-uIKkPDx2.js} +3 -3
- package/dist/assets/{index.es-KNfd6PLa.js → index.es-vxViMQsn.js} +1 -1
- package/dist/assets/{index.esm-MvqHB13x.js → index.esm-xVa55Zup.js} +1 -1
- package/dist/assets/{invite-U7HV2bOf.js → invite-EUhwRkSk.js} +1 -1
- package/dist/assets/{issue-passport--ANeRPcP.js → issue-passport-Z7ofkA6K.js} +1 -1
- package/dist/assets/{jss-plugin-props-sort.esm-HmYxbLE7.js → jss-plugin-props-sort.esm-NWykbogG.js} +1 -1
- package/dist/assets/{launch-result-message-TcQH4jpT.js → launch-result-message-E79l1MGN.js} +1 -1
- package/dist/assets/{layout-zmTL5DYX.js → layout-ZhSAbpLd.js} +1 -1
- package/dist/assets/{list-header--Vhbpfw2.js → list-header-OJgTzNF1.js} +1 -1
- package/dist/assets/localization-cO5MmVsH.js +1 -0
- package/dist/assets/{log-kNDVvJse.js → log-4VclxlhZ.js} +1 -1
- package/dist/assets/{login-05AF3rUX.js → login-7XksV0rI.js} +1 -1
- package/dist/assets/{logo-uploader-e3Of5exH.js → logo-uploader-enkwnhCD.js} +3 -3
- package/dist/assets/{lost-passport-0uO9Guj6.js → lost-passport-cJF6p-67.js} +3 -3
- package/dist/assets/{lottie-GIsmz4wu.js → lottie-2uuZhpDU.js} +1 -1
- package/dist/assets/{memoize-one.esm-pefuu-zN.js → memoize-one.esm-Y0hnttfr.js} +1 -1
- package/dist/assets/{nav-menu-_j09OYoV.js → nav-menu-2LU_iiMs.js} +1 -1
- package/dist/assets/{notifications-Ldr7opjk.js → notifications-Y8Uw-nJi.js} +1 -1
- package/dist/assets/{overview-1XL_Qiy2.js → overview-9xOIDQ82.js} +1 -1
- package/dist/assets/{page-header-LWFGDoxM.js → page-header-CBzxlYad.js} +1 -1
- package/dist/assets/{permission-sTjN-J07.js → permission-K-J3su8S.js} +1 -1
- package/dist/assets/preferences-d-eWeFvi.js +1 -0
- package/dist/assets/publish-resource-4G2Mwb1d.js +1 -0
- package/dist/assets/{react-Z9fqICoT.js → react-QMgqj51s.js} +3 -3
- package/dist/assets/{selector-r-EEnzvL.js → selector-ykYLL3HG.js} +1 -1
- package/dist/assets/session-4pK31v9z.js +1 -0
- package/dist/assets/{setup-yyKjCHgl.js → setup-vcogg-M1.js} +3 -3
- package/dist/assets/{slicedToArray-VCxJChO9.js → slicedToArray-ttVd16Np.js} +2 -2
- package/dist/assets/{spaces-3IB4aUW-.js → spaces-ciJpOZGt.js} +1 -1
- package/dist/assets/{start-_dD57MgC.js → start-uztJSUel.js} +1 -1
- package/dist/assets/{step-actions-u5wVgCmC.js → step-actions-DJIhDuRf.js} +1 -1
- package/dist/assets/{studio-HE-dnqpB.js → studio--sQ-x80O.js} +1 -1
- package/dist/assets/{switch-control-QtA6jhKG.js → switch-control-HdRcPAzs.js} +1 -1
- package/dist/assets/{transfer-jfS_LJKL.js → transfer-3Gc3ycMl.js} +1 -1
- package/dist/assets/{uniqBy-VUHiGwLF.js → uniqBy-k-IuKA35.js} +1 -1
- package/dist/assets/{unsubscribe-dTRW-kgU.js → unsubscribe-XLKaVY1Y.js} +1 -1
- package/dist/assets/{use-blocklet-info-for-connect-did-spaces-0kF4SQU7.js → use-blocklet-info-for-connect-did-spaces-3Ylh35kg.js} +1 -1
- package/dist/assets/{useAsync-Dmz5YLn0.js → useAsync-eueWQMQv.js} +1 -1
- package/dist/assets/{useFormControl-mI0MPYsh.js → useFormControl-egCRc-oY.js} +1 -1
- package/dist/assets/{useLocalStorage-aRRflkTR.js → useLocalStorage--e-ZnzAS.js} +1 -1
- package/dist/assets/{useSetState-a6nBCmZL.js → useSetState-FhUMbwgE.js} +1 -1
- package/dist/assets/{user-7RZ8cZci.js → user-waJ6JIkq.js} +1 -1
- package/dist/assets/{util-rU2tRtqs.js → util-ScgYi65n.js} +1 -1
- package/dist/assets/{wallet-hidden-topbar-fLm2f0hp.js → wallet-hidden-topbar-4xE3Zmur.js} +3 -3
- package/dist/assets/{wrap-locale-A7IdT91x.js → wrap-locale-eKtYETDv.js} +1 -1
- package/dist/index.html +1 -1
- package/package.json +18 -18
- package/dist/assets/add-resource-6vlgGZkJ.js +0 -1
- package/dist/assets/api-JcbF2ZX8.js +0 -1
- package/dist/assets/domain-list-UlkqWCsm.js +0 -12
- package/dist/assets/localization-vCyo8i6n.js +0 -1
- package/dist/assets/preferences-VK9P9jKD.js +0 -1
- package/dist/assets/publish-resource-sQE_SSQq.js +0 -1
- package/dist/assets/session-otHGC7d2.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{l as q}from"./lottie-
|
|
1
|
+
import{l as q}from"./lottie-2uuZhpDU.js";import{r as D,bU as z}from"./index-uIKkPDx2.js";function G(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n,u,c,o,b=[],s=!0,A=!1;try{if(c=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=c.call(r)).done)&&(b.push(n.value),b.length!==e);s=!0);}catch(g){A=!0,u=g}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(A)throw u}}return b}}function E(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(u){return Object.getOwnPropertyDescriptor(t,u).enumerable})),r.push.apply(r,n)}return r}function T(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?E(Object(r),!0).forEach(function(n){J(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):E(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function J(t,e,r){return e=ae(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Q(t,e){if(t==null)return{};var r={},n=Object.keys(t),u,c;for(c=0;c<n.length;c++)u=n[c],!(e.indexOf(u)>=0)&&(r[u]=t[u]);return r}function x(t,e){if(t==null)return{};var r=Q(t,e),n,u;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(t);for(u=0;u<c.length;u++)n=c[u],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Z(t,e){return ee(t)||G(t,e)||te(t,e)||ne()}function ee(t){if(Array.isArray(t))return t}function te(t,e){if(t){if(typeof t=="string")return j(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(t,e)}}function j(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function ne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function re(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function ae(t){var e=re(t,"string");return typeof e=="symbol"?e:String(e)}var ie=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],oe=function(e,r){var n=e.animationData,u=e.loop,c=e.autoplay,o=e.initialSegment,b=e.onComplete,s=e.onLoopComplete,A=e.onEnterFrame,g=e.onSegmentStart,O=e.onConfigReady,w=e.onDataReady,h=e.onDataFailed,l=e.onLoadedImages,L=e.onDOMLoaded,S=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var p=x(e,ie),P=D.useState(!1),d=Z(P,2),C=d[0],I=d[1],i=D.useRef(),v=D.useRef(null),H=function(){var a;(a=i.current)===null||a===void 0||a.play()},M=function(){var a;(a=i.current)===null||a===void 0||a.stop()},F=function(){var a;(a=i.current)===null||a===void 0||a.pause()},V=function(a){var f;(f=i.current)===null||f===void 0||f.setSpeed(a)},N=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndPlay(a,f)},B=function(a,f){var m;(m=i.current)===null||m===void 0||m.goToAndStop(a,f)},$=function(a){var f;(f=i.current)===null||f===void 0||f.setDirection(a)},k=function(a,f){var m;(m=i.current)===null||m===void 0||m.playSegments(a,f)},U=function(a){var f;(f=i.current)===null||f===void 0||f.setSubframe(a)},W=function(a){var f;return(f=i.current)===null||f===void 0?void 0:f.getDuration(a)},K=function(){var a;(a=i.current)===null||a===void 0||a.destroy(),i.current=void 0},X=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f;if(v.current){(f=i.current)===null||f===void 0||f.destroy();var m=T(T(T({},e),a),{},{container:v.current});return i.current=q.loadAnimation(m),I(!!i.current),function(){var R;(R=i.current)===null||R===void 0||R.destroy(),i.current=void 0}}};D.useEffect(function(){var y=X();return function(){return y==null?void 0:y()}},[n,u]),D.useEffect(function(){i.current&&(i.current.autoplay=!!c)},[c]),D.useEffect(function(){if(i.current){if(!o){i.current.resetSegments(!0);return}!Array.isArray(o)||!o.length||((i.current.currentRawFrame<o[0]||i.current.currentRawFrame>o[1])&&(i.current.currentRawFrame=o[0]),i.current.setSegment(o[0],o[1]))}},[o]),D.useEffect(function(){var y=[{name:"complete",handler:b},{name:"loopComplete",handler:s},{name:"enterFrame",handler:A},{name:"segmentStart",handler:g},{name:"config_ready",handler:O},{name:"data_ready",handler:w},{name:"data_failed",handler:h},{name:"loaded_images",handler:l},{name:"DOMLoaded",handler:L},{name:"destroy",handler:S}],a=y.filter(function(m){return m.handler!=null});if(a.length){var f=a.map(function(m){var R;return(R=i.current)===null||R===void 0||R.addEventListener(m.name,m.handler),function(){var _;(_=i.current)===null||_===void 0||_.removeEventListener(m.name,m.handler)}});return function(){f.forEach(function(m){return m()})}}},[b,s,A,g,O,w,h,l,L,S]);var Y=z.createElement("div",T({style:r,ref:v},p));return{View:Y,play:H,stop:M,pause:F,setSpeed:V,goToAndStop:B,goToAndPlay:N,setDirection:$,playSegments:k,setSubframe:U,getDuration:W,destroy:K,animationContainerRef:v,animationLoaded:C,animationItem:i.current}};function ue(t){var e=t.getBoundingClientRect(),r=e.top,n=e.height,u=window.innerHeight-r,c=window.innerHeight+n;return u/c}function le(t,e,r){var n=t.getBoundingClientRect(),u=n.top,c=n.left,o=n.width,b=n.height,s=(e-c)/o,A=(r-u)/b;return{x:s,y:A}}var se=function(e){var r=e.wrapperRef,n=e.animationItem,u=e.mode,c=e.actions;D.useEffect(function(){var o=r.current;if(!(!o||!n||!c.length)){n.stop();var b=function(){var g=null,O=function(){var h=ue(o),l=c.find(function(S){var p=S.visibility;return p&&h>=p[0]&&h<=p[1]});if(l){if(l.type==="seek"&&l.visibility&&l.frames.length===2){var L=l.frames[0]+Math.ceil((h-l.visibility[0])/(l.visibility[1]-l.visibility[0])*l.frames[1]);//! goToAndStop must be relative to the start of the current segment
|
|
3
3
|
n.goToAndStop(L-n.firstFrame-1,!0)}l.type==="loop"&&(g===null||g!==l.frames||n.isPaused)&&(n.playSegments(l.frames,!0),g=l.frames),l.type==="play"&&n.isPaused&&(n.resetSegments(!0),n.play()),l.type==="stop"&&n.goToAndStop(l.frames[0]-n.firstFrame-1,!0)}};return document.addEventListener("scroll",O),function(){document.removeEventListener("scroll",O)}},s=function(){var g=function(l,L){var S=l,p=L;if(S!==-1&&p!==-1){var P=le(o,S,p);S=P.x,p=P.y}var d=c.find(function(i){var v=i.position;return v&&Array.isArray(v.x)&&Array.isArray(v.y)?S>=v.x[0]&&S<=v.x[1]&&p>=v.y[0]&&p<=v.y[1]:v&&!Number.isNaN(v.x)&&!Number.isNaN(v.y)?S===v.x&&p===v.y:!1});if(d){if(d.type==="seek"&&d.position&&Array.isArray(d.position.x)&&Array.isArray(d.position.y)&&d.frames.length===2){var C=(S-d.position.x[0])/(d.position.x[1]-d.position.x[0]),I=(p-d.position.y[0])/(d.position.y[1]-d.position.y[0]);n.playSegments(d.frames,!0),n.goToAndStop(Math.ceil((C+I)/2*(d.frames[1]-d.frames[0])),!0)}d.type==="loop"&&n.playSegments(d.frames,!0),d.type==="play"&&(n.isPaused&&n.resetSegments(!1),n.playSegments(d.frames)),d.type==="stop"&&n.goToAndStop(d.frames[0],!0)}},O=function(l){g(l.clientX,l.clientY)},w=function(){g(-1,-1)};return o.addEventListener("mousemove",O),o.addEventListener("mouseout",w),function(){o.removeEventListener("mousemove",O),o.removeEventListener("mouseout",w)}};switch(u){case"scroll":return b();case"cursor":return s()}}},[u,n])},de=function(e){var r=e.actions,n=e.mode,u=e.lottieObj,c=u.animationItem,o=u.View,b=u.animationContainerRef;return se({actions:r,animationItem:c,mode:n,wrapperRef:b}),o},fe=["style","interactivity"],ve=function(e){var r,n,u,c=e.style,o=e.interactivity,b=x(e,fe),s=oe(b,c),A=s.View,g=s.play,O=s.stop,w=s.pause,h=s.setSpeed,l=s.goToAndStop,L=s.goToAndPlay,S=s.setDirection,p=s.playSegments,P=s.setSubframe,d=s.getDuration,C=s.destroy,I=s.animationContainerRef,i=s.animationLoaded,v=s.animationItem;return D.useEffect(function(){e.lottieRef&&(e.lottieRef.current={play:g,stop:O,pause:w,setSpeed:h,goToAndPlay:L,goToAndStop:l,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:i,animationItem:v})},[(r=e.lottieRef)===null||r===void 0?void 0:r.current]),de({lottieObj:{View:A,play:g,stop:O,pause:w,setSpeed:h,goToAndStop:l,goToAndPlay:L,setDirection:S,playSegments:p,setSubframe:P,getDuration:d,destroy:C,animationContainerRef:I,animationLoaded:i,animationItem:v},actions:(n=o==null?void 0:o.actions)!==null&&n!==void 0?n:[],mode:(u=o==null?void 0:o.mode)!==null&&u!==void 0?u:"scroll"})};export{q as LottiePlayer,ve as default,oe as useLottie,de as useLottieInteractivity};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bU as b}from"./index-feKj5cCa.js";var _e=e=>e.type==="checkbox",ne=e=>e instanceof Date,N=e=>e==null;const ft=e=>typeof e=="object";var L=e=>!N(e)&&!Array.isArray(e)&&ft(e)&&!ne(e),dt=e=>L(e)&&e.target?_e(e.target)?e.target.checked:e.target.value:e,Ut=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,yt=(e,i)=>e.has(Ut(i)),Lt=e=>{const i=e.constructor&&e.constructor.prototype;return L(i)&&i.hasOwnProperty("isPrototypeOf")},He=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function I(e){let i;const t=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(He&&(e instanceof Blob||e instanceof FileList))&&(t||L(e)))if(i=t?[]:{},!t&&!Lt(e))i=e;else for(const r in e)e.hasOwnProperty(r)&&(i[r]=I(e[r]));else return e;return i}var le=e=>Array.isArray(e)?e.filter(Boolean):[],E=e=>e===void 0,f=(e,i,t)=>{if(!i||!L(e))return t;const r=le(i.split(/[,[\].]+?/)).reduce((u,l)=>N(u)?u:u[l],e);return E(r)||r===e?E(e[i])?t:e[i]:r},Q=e=>typeof e=="boolean";const Ae={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},K={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Z={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Tt=b.createContext(null),xe=()=>b.useContext(Tt);var _t=(e,i,t,r=!0)=>{const u={defaultValues:i._defaultValues};for(const l in e)Object.defineProperty(u,l,{get:()=>{const c=l;return i._proxyFormState[c]!==K.all&&(i._proxyFormState[c]=!r||K.all),t&&(t[c]=!0),e[c]}});return u},q=e=>L(e)&&!Object.keys(e).length,gt=(e,i,t,r)=>{t(e);const{name:u,...l}=e;return q(l)||Object.keys(l).length>=Object.keys(i).length||Object.keys(l).find(c=>i[c]===(!r||K.all))},W=e=>Array.isArray(e)?e:[e],ht=(e,i,t)=>!e||!i||e===i||W(e).some(r=>r&&(t?r===i:r.startsWith(i)||i.startsWith(r)));function pe(e){const i=b.useRef(e);i.current=e,b.useEffect(()=>{const t=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{t&&t.unsubscribe()}},[e.disabled])}function Mt(e){const i=xe(),{control:t=i.control,disabled:r,name:u,exact:l}=e||{},[c,m]=b.useState(t._formState),g=b.useRef(!0),C=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),w=b.useRef(u);return w.current=u,pe({disabled:r,next:p=>g.current&&ht(w.current,p.name,l)&>(p,C.current,t._updateFormState)&&m({...t._formState,...p}),subject:t._subjects.state}),b.useEffect(()=>(g.current=!0,C.current.isValid&&t._updateValid(!0),()=>{g.current=!1}),[t]),_t(c,t,C.current,!1)}var X=e=>typeof e=="string",vt=(e,i,t,r,u)=>X(e)?(r&&i.watch.add(e),f(t,e,u)):Array.isArray(e)?e.map(l=>(r&&i.watch.add(l),f(t,l))):(r&&(i.watchAll=!0),t);function Bt(e){const i=xe(),{control:t=i.control,name:r,defaultValue:u,disabled:l,exact:c}=e||{},m=b.useRef(r);m.current=r,pe({disabled:l,subject:t._subjects.values,next:w=>{ht(m.current,w.name,c)&&C(I(vt(m.current,t._names,w.values||t._formValues,!1,u)))}});const[g,C]=b.useState(t._getWatch(r,u));return b.useEffect(()=>t._removeUnmounted()),g}var Ke=e=>/^\w*$/.test(e),At=e=>le(e.replace(/["|']|\]/g,"").split(/\.|\[/));function D(e,i,t){let r=-1;const u=Ke(i)?[i]:At(i),l=u.length,c=l-1;for(;++r<l;){const m=u[r];let g=t;if(r!==c){const C=e[m];g=L(C)||Array.isArray(C)?C:isNaN(+u[r+1])?{}:[]}e[m]=g,e=e[m]}return e}function It(e){const i=xe(),{name:t,disabled:r,control:u=i.control,shouldUnregister:l}=e,c=yt(u._names.array,t),m=Bt({control:u,name:t,defaultValue:f(u._formValues,t,f(u._defaultValues,t,e.defaultValue)),exact:!0}),g=Mt({control:u,name:t}),C=b.useRef(u.register(t,{...e.rules,value:m}));return C.current=u.register(t,e.rules),b.useEffect(()=>{const w=u._options.shouldUnregister||l,p=(h,$)=>{const M=f(u._fields,h);M&&(M._f.mount=$)};if(p(t,!0),w){const h=I(f(u._options.defaultValues,t));D(u._defaultValues,t,h),E(f(u._formValues,t))&&D(u._formValues,t,h)}return()=>{(c?w&&!u._state.action:w)?u.unregister(t):p(t,!1)}},[t,u,c,l]),b.useEffect(()=>{f(u._fields,t)&&u._updateDisabledField({disabled:r,fields:u._fields,name:t,value:f(u._fields,t)._f.value})},[r,t,u]),{field:{name:t,value:m,...Q(r)||Q(g.disabled)?{disabled:g.disabled||r}:{},onChange:b.useCallback(w=>C.current.onChange({target:{value:dt(w),name:t},type:Ae.CHANGE}),[t]),onBlur:b.useCallback(()=>C.current.onBlur({target:{value:f(u._formValues,t),name:t},type:Ae.BLUR}),[t,u]),ref:w=>{const p=f(u._fields,t);p&&w&&(p._f.ref={focus:()=>w.focus(),select:()=>w.select(),setCustomValidity:h=>w.setCustomValidity(h),reportValidity:()=>w.reportValidity()})}},formState:g,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!f(g.errors,t)},isDirty:{enumerable:!0,get:()=>!!f(g.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!f(g.touchedFields,t)},error:{enumerable:!0,get:()=>f(g.errors,t)}})}}const er=e=>e.render(It(e));var Nt=(e,i,t,r,u)=>i?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[r]:u||!0}}:{},ee=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{const t=(Math.random()*16+e)%16|0;return(i=="x"?t:t&3|8).toString(16)})},Ce=(e,i,t={})=>t.shouldFocus||E(t.shouldFocus)?t.focusName||`${e}.${E(t.focusIndex)?i:t.focusIndex}.`:"",qe=e=>({isOnSubmit:!e||e===K.onSubmit,isOnBlur:e===K.onBlur,isOnChange:e===K.onChange,isOnAll:e===K.all,isOnTouch:e===K.onTouched}),We=(e,i,t)=>!t&&(i.watchAll||i.watch.has(e)||[...i.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ye=(e,i,t,r)=>{for(const u of t||Object.keys(e)){const l=f(e,u);if(l){const{_f:c,...m}=l;if(c){if(c.refs&&c.refs[0]&&i(c.refs[0],u)&&!r)break;if(c.ref&&i(c.ref,c.name)&&!r)break}else L(m)&&ye(m,i)}}};var mt=(e,i,t)=>{const r=le(f(e,t));return D(r,"root",i[t]),D(e,t,r),e},Ge=e=>e.type==="file",te=e=>typeof e=="function",me=e=>{if(!He)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},ve=e=>X(e),ze=e=>e.type==="radio",be=e=>e instanceof RegExp;const ut={value:!1,isValid:!1},at={value:!0,isValid:!0};var bt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!E(e[0].attributes.value)?E(e[0].value)||e[0].value===""?at:{value:e[0].value,isValid:!0}:at:ut}return ut};const nt={isValid:!1,value:null};var Vt=e=>Array.isArray(e)?e.reduce((i,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:i,nt):nt;function lt(e,i,t="validate"){if(ve(e)||Array.isArray(e)&&e.every(ve)||Q(e)&&!e)return{type:t,message:ve(e)?e:"",ref:i}}var ae=e=>L(e)&&!be(e)?e:{value:e,message:""},$e=async(e,i,t,r,u)=>{const{ref:l,refs:c,required:m,maxLength:g,minLength:C,min:w,max:p,pattern:h,validate:$,name:M,valueAsNumber:oe,mount:ie,disabled:ce}=e._f,V=f(i,M);if(!ie||ce)return{};const j=c?c[0]:l,G=S=>{r&&j.reportValidity&&(j.setCustomValidity(Q(S)?"":S||""),j.reportValidity())},y={},v=ze(l),F=_e(l),R=v||F,B=(oe||Ge(l))&&E(l.value)&&E(V)||me(l)&&l.value===""||V===""||Array.isArray(V)&&!V.length,z=Nt.bind(null,M,t,y),Y=(S,x,O,P=Z.maxLength,H=Z.minLength)=>{const J=S?x:O;y[M]={type:S?P:H,message:J,ref:l,...z(S?P:H,J)}};if(u?!Array.isArray(V)||!V.length:m&&(!R&&(B||N(V))||Q(V)&&!V||F&&!bt(c).isValid||v&&!Vt(c).isValid)){const{value:S,message:x}=ve(m)?{value:!!m,message:m}:ae(m);if(S&&(y[M]={type:Z.required,message:x,ref:j,...z(Z.required,x)},!t))return G(x),y}if(!B&&(!N(w)||!N(p))){let S,x;const O=ae(p),P=ae(w);if(!N(V)&&!isNaN(V)){const H=l.valueAsNumber||V&&+V;N(O.value)||(S=H>O.value),N(P.value)||(x=H<P.value)}else{const H=l.valueAsDate||new Date(V),J=ge=>new Date(new Date().toDateString()+" "+ge),re=l.type=="time",fe=l.type=="week";X(O.value)&&V&&(S=re?J(V)>J(O.value):fe?V>O.value:H>new Date(O.value)),X(P.value)&&V&&(x=re?J(V)<J(P.value):fe?V<P.value:H<new Date(P.value))}if((S||x)&&(Y(!!S,O.message,P.message,Z.max,Z.min),!t))return G(y[M].message),y}if((g||C)&&!B&&(X(V)||u&&Array.isArray(V))){const S=ae(g),x=ae(C),O=!N(S.value)&&V.length>+S.value,P=!N(x.value)&&V.length<+x.value;if((O||P)&&(Y(O,S.message,x.message),!t))return G(y[M].message),y}if(h&&!B&&X(V)){const{value:S,message:x}=ae(h);if(be(S)&&!V.match(S)&&(y[M]={type:Z.pattern,message:x,ref:l,...z(Z.pattern,x)},!t))return G(x),y}if($){if(te($)){const S=await $(V,i),x=lt(S,j);if(x&&(y[M]={...x,...z(Z.validate,x.message)},!t))return G(x.message),y}else if(L($)){let S={};for(const x in $){if(!q(S)&&!t)break;const O=lt(await $[x](V,i),j,x);O&&(S={...O,...z(x,O.message)},G(O.message),t&&(y[M]=S))}if(!q(S)&&(y[M]={ref:j,...S},!t))return y}}return G(!0),y};function Oe(e,i){return[...e,...W(i)]}var Re=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Ue(e,i,t){return[...e.slice(0,i),...W(t),...e.slice(i)]}var Le=(e,i,t)=>Array.isArray(e)?(E(e[t])&&(e[t]=void 0),e.splice(t,0,e.splice(i,1)[0]),e):[];function Te(e,i){return[...W(i),...W(e)]}function Pt(e,i){let t=0;const r=[...e];for(const u of i)r.splice(u-t,1),t++;return le(r).length?r:[]}var Me=(e,i)=>E(i)?[]:Pt(e,W(i).sort((t,r)=>t-r)),Be=(e,i,t)=>{e[i]=[e[t],e[t]=e[i]][0]};function jt(e,i){const t=i.slice(0,-1).length;let r=0;for(;r<t;)e=E(e)?r++:e[i[r++]];return e}function qt(e){for(const i in e)if(e.hasOwnProperty(i)&&!E(e[i]))return!1;return!0}function T(e,i){const t=Array.isArray(i)?i:Ke(i)?[i]:At(i),r=t.length===1?e:jt(e,t),u=t.length-1,l=t[u];return r&&delete r[l],u!==0&&(L(r)&&q(r)||Array.isArray(r)&&qt(r))&&T(e,t.slice(0,-1)),e}var ot=(e,i,t)=>(e[i]=t,e);function tr(e){const i=xe(),{control:t=i.control,name:r,keyName:u="id",shouldUnregister:l}=e,[c,m]=b.useState(t._getFieldArray(r)),g=b.useRef(t._getFieldArray(r).map(ee)),C=b.useRef(c),w=b.useRef(r),p=b.useRef(!1);w.current=r,C.current=c,t._names.array.add(r),e.rules&&t.register(r,e.rules),pe({next:({values:y,name:v})=>{if(v===w.current||!v){const F=f(y,w.current);Array.isArray(F)&&(m(F),g.current=F.map(ee))}},subject:t._subjects.array});const h=b.useCallback(y=>{p.current=!0,t._updateFieldArray(r,y)},[t,r]),$=(y,v)=>{const F=W(I(y)),R=Oe(t._getFieldArray(r),F);t._names.focus=Ce(r,R.length-1,v),g.current=Oe(g.current,F.map(ee)),h(R),m(R),t._updateFieldArray(r,R,Oe,{argA:Re(y)})},M=(y,v)=>{const F=W(I(y)),R=Te(t._getFieldArray(r),F);t._names.focus=Ce(r,0,v),g.current=Te(g.current,F.map(ee)),h(R),m(R),t._updateFieldArray(r,R,Te,{argA:Re(y)})},oe=y=>{const v=Me(t._getFieldArray(r),y);g.current=Me(g.current,y),h(v),m(v),t._updateFieldArray(r,v,Me,{argA:y})},ie=(y,v,F)=>{const R=W(I(v)),B=Ue(t._getFieldArray(r),y,R);t._names.focus=Ce(r,y,F),g.current=Ue(g.current,y,R.map(ee)),h(B),m(B),t._updateFieldArray(r,B,Ue,{argA:y,argB:Re(v)})},ce=(y,v)=>{const F=t._getFieldArray(r);Be(F,y,v),Be(g.current,y,v),h(F),m(F),t._updateFieldArray(r,F,Be,{argA:y,argB:v},!1)},V=(y,v)=>{const F=t._getFieldArray(r);Le(F,y,v),Le(g.current,y,v),h(F),m(F),t._updateFieldArray(r,F,Le,{argA:y,argB:v},!1)},j=(y,v)=>{const F=I(v),R=ot(t._getFieldArray(r),y,F);g.current=[...R].map((B,z)=>!B||z===y?ee():g.current[z]),h(R),m([...R]),t._updateFieldArray(r,R,ot,{argA:y,argB:F},!0,!1)},G=y=>{const v=W(I(y));g.current=v.map(ee),h([...v]),m([...v]),t._updateFieldArray(r,[...v],F=>F,{},!0,!1)};return b.useEffect(()=>{if(t._state.action=!1,We(r,t._names)&&t._subjects.state.next({...t._formState}),p.current&&(!qe(t._options.mode).isOnSubmit||t._formState.isSubmitted))if(t._options.resolver)t._executeSchema([r]).then(y=>{const v=f(y.errors,r),F=f(t._formState.errors,r);(F?!v&&F.type||v&&(F.type!==v.type||F.message!==v.message):v&&v.type)&&(v?D(t._formState.errors,r,v):T(t._formState.errors,r),t._subjects.state.next({errors:t._formState.errors}))});else{const y=f(t._fields,r);y&&y._f&&$e(y,t._formValues,t._options.criteriaMode===K.all,t._options.shouldUseNativeValidation,!0).then(v=>!q(v)&&t._subjects.state.next({errors:mt(t._formState.errors,v,r)}))}t._subjects.values.next({name:r,values:{...t._formValues}}),t._names.focus&&ye(t._fields,(y,v)=>{if(t._names.focus&&v.startsWith(t._names.focus)&&y.focus)return y.focus(),1}),t._names.focus="",t._updateValid(),p.current=!1},[c,r,t]),b.useEffect(()=>(!f(t._formValues,r)&&t._updateFieldArray(r),()=>{(t._options.shouldUnregister||l)&&t.unregister(r)}),[r,t,u,l]),{swap:b.useCallback(ce,[h,r,t]),move:b.useCallback(V,[h,r,t]),prepend:b.useCallback(M,[h,r,t]),append:b.useCallback($,[h,r,t]),remove:b.useCallback(oe,[h,r,t]),insert:b.useCallback(ie,[h,r,t]),update:b.useCallback(j,[h,r,t]),replace:b.useCallback(G,[h,r,t]),fields:b.useMemo(()=>c.map((y,v)=>({...y,[u]:g.current[v]||ee()})),[c,u])}}function Ie(){let e=[];return{get observers(){return e},next:u=>{for(const l of e)l.next&&l.next(u)},subscribe:u=>(e.push(u),{unsubscribe:()=>{e=e.filter(l=>l!==u)}}),unsubscribe:()=>{e=[]}}}var Ve=e=>N(e)||!ft(e);function se(e,i){if(Ve(e)||Ve(i))return e===i;if(ne(e)&&ne(i))return e.getTime()===i.getTime();const t=Object.keys(e),r=Object.keys(i);if(t.length!==r.length)return!1;for(const u of t){const l=e[u];if(!r.includes(u))return!1;if(u!=="ref"){const c=i[u];if(ne(l)&&ne(c)||L(l)&&L(c)||Array.isArray(l)&&Array.isArray(c)?!se(l,c):l!==c)return!1}}return!0}var Ft=e=>e.type==="select-multiple",Wt=e=>ze(e)||_e(e),Ne=e=>me(e)&&e.isConnected,xt=e=>{for(const i in e)if(te(e[i]))return!0;return!1};function Fe(e,i={}){const t=Array.isArray(e);if(L(e)||t)for(const r in e)Array.isArray(e[r])||L(e[r])&&!xt(e[r])?(i[r]=Array.isArray(e[r])?[]:{},Fe(e[r],i[r])):N(e[r])||(i[r]=!0);return i}function pt(e,i,t){const r=Array.isArray(e);if(L(e)||r)for(const u in e)Array.isArray(e[u])||L(e[u])&&!xt(e[u])?E(i)||Ve(t[u])?t[u]=Array.isArray(e[u])?Fe(e[u],[]):{...Fe(e[u])}:pt(e[u],N(i)?{}:i[u],t[u]):t[u]=!se(e[u],i[u]);return t}var Pe=(e,i)=>pt(e,i,Fe(i)),St=(e,{valueAsNumber:i,valueAsDate:t,setValueAs:r})=>E(e)?e:i?e===""?NaN:e&&+e:t&&X(e)?new Date(e):r?r(e):e;function je(e){const i=e.ref;if(!(e.refs?e.refs.every(t=>t.disabled):i.disabled))return Ge(i)?i.files:ze(i)?Vt(e.refs).value:Ft(i)?[...i.selectedOptions].map(({value:t})=>t):_e(i)?bt(e.refs).value:St(E(i.value)?e.ref.value:i.value,e)}var $t=(e,i,t,r)=>{const u={};for(const l of e){const c=f(i,l);c&&D(u,l,c._f)}return{criteriaMode:t,names:[...e],fields:u,shouldUseNativeValidation:r}},de=e=>E(e)?e:be(e)?e.source:L(e)?be(e.value)?e.value.source:e.value:e,Ht=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ct(e,i,t){const r=f(e,t);if(r||Ke(t))return{error:r,name:t};const u=t.split(".");for(;u.length;){const l=u.join("."),c=f(i,l),m=f(e,l);if(c&&!Array.isArray(c)&&t!==l)return{name:t};if(m&&m.type)return{name:l,error:m};u.pop()}return{name:t}}var Kt=(e,i,t,r,u)=>u.isOnAll?!1:!t&&u.isOnTouch?!(i||e):(t?r.isOnBlur:u.isOnBlur)?!e:(t?r.isOnChange:u.isOnChange)?e:!0,Gt=(e,i)=>!le(f(e,i)).length&&T(e,i);const zt={mode:K.onSubmit,reValidateMode:K.onChange,shouldFocusError:!0};function Jt(e={},i){let t={...zt,...e},r={submitCount:0,isDirty:!1,isLoading:te(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{},disabled:!1},u={},l=L(t.defaultValues)||L(t.values)?I(t.defaultValues||t.values)||{}:{},c=t.shouldUnregister?{}:I(l),m={action:!1,mount:!1,watch:!1},g={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C,w=0;const p={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:Ie(),array:Ie(),state:Ie()},$=e.resetOptions&&e.resetOptions.keepDirtyValues,M=qe(t.mode),oe=qe(t.reValidateMode),ie=t.criteriaMode===K.all,ce=s=>a=>{clearTimeout(w),w=setTimeout(s,a)},V=async s=>{if(p.isValid||s){const a=t.resolver?q((await B()).errors):await Y(u,!0);a!==r.isValid&&h.state.next({isValid:a})}},j=s=>p.isValidating&&h.state.next({isValidating:s}),G=(s,a=[],n,_,d=!0,o=!0)=>{if(_&&n){if(m.action=!0,o&&Array.isArray(f(u,s))){const A=n(f(u,s),_.argA,_.argB);d&&D(u,s,A)}if(o&&Array.isArray(f(r.errors,s))){const A=n(f(r.errors,s),_.argA,_.argB);d&&D(r.errors,s,A),Gt(r.errors,s)}if(p.touchedFields&&o&&Array.isArray(f(r.touchedFields,s))){const A=n(f(r.touchedFields,s),_.argA,_.argB);d&&D(r.touchedFields,s,A)}p.dirtyFields&&(r.dirtyFields=Pe(l,c)),h.state.next({name:s,isDirty:x(s,a),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else D(c,s,a)},y=(s,a)=>{D(r.errors,s,a),h.state.next({errors:r.errors})},v=(s,a,n,_)=>{const d=f(u,s);if(d){const o=f(c,s,E(n)?f(l,s):n);E(o)||_&&_.defaultChecked||a?D(c,s,a?o:je(d._f)):H(s,o),m.mount&&V()}},F=(s,a,n,_,d)=>{let o=!1,A=!1;const k={name:s};if(!n||_){p.isDirty&&(A=r.isDirty,r.isDirty=k.isDirty=x(),o=A!==k.isDirty);const U=se(f(l,s),a);A=f(r.dirtyFields,s),U?T(r.dirtyFields,s):D(r.dirtyFields,s,!0),k.dirtyFields=r.dirtyFields,o=o||p.dirtyFields&&A!==!U}if(n){const U=f(r.touchedFields,s);U||(D(r.touchedFields,s,n),k.touchedFields=r.touchedFields,o=o||p.touchedFields&&U!==n)}return o&&d&&h.state.next(k),o?k:{}},R=(s,a,n,_)=>{const d=f(r.errors,s),o=p.isValid&&Q(a)&&r.isValid!==a;if(e.delayError&&n?(C=ce(()=>y(s,n)),C(e.delayError)):(clearTimeout(w),C=null,n?D(r.errors,s,n):T(r.errors,s)),(n?!se(d,n):d)||!q(_)||o){const A={..._,...o&&Q(a)?{isValid:a}:{},errors:r.errors,name:s};r={...r,...A},h.state.next(A)}j(!1)},B=async s=>t.resolver(c,t.context,$t(s||g.mount,u,t.criteriaMode,t.shouldUseNativeValidation)),z=async s=>{const{errors:a}=await B(s);if(s)for(const n of s){const _=f(a,n);_?D(r.errors,n,_):T(r.errors,n)}else r.errors=a;return a},Y=async(s,a,n={valid:!0})=>{for(const _ in s){const d=s[_];if(d){const{_f:o,...A}=d;if(o){const k=g.array.has(o.name),U=await $e(d,c,ie,t.shouldUseNativeValidation&&!a,k);if(U[o.name]&&(n.valid=!1,a))break;!a&&(f(U,o.name)?k?mt(r.errors,U,o.name):D(r.errors,o.name,U[o.name]):T(r.errors,o.name))}A&&await Y(A,a,n)}}return n.valid},S=()=>{for(const s of g.unMount){const a=f(u,s);a&&(a._f.refs?a._f.refs.every(n=>!Ne(n)):!Ne(a._f.ref))&&we(s)}g.unMount=new Set},x=(s,a)=>(s&&a&&D(c,s,a),!se(Je(),l)),O=(s,a,n)=>vt(s,g,{...m.mount?c:E(a)?l:X(s)?{[s]:a}:a},n,a),P=s=>le(f(m.mount?c:l,s,e.shouldUnregister?f(l,s,[]):[])),H=(s,a,n={})=>{const _=f(u,s);let d=a;if(_){const o=_._f;o&&(!o.disabled&&D(c,s,St(a,o)),d=me(o.ref)&&N(a)?"":a,Ft(o.ref)?[...o.ref.options].forEach(A=>A.selected=d.includes(A.value)):o.refs?_e(o.ref)?o.refs.length>1?o.refs.forEach(A=>(!A.defaultChecked||!A.disabled)&&(A.checked=Array.isArray(d)?!!d.find(k=>k===A.value):d===A.value)):o.refs[0]&&(o.refs[0].checked=!!d):o.refs.forEach(A=>A.checked=A.value===d):Ge(o.ref)?o.ref.value="":(o.ref.value=d,o.ref.type||h.values.next({name:s,values:{...c}})))}(n.shouldDirty||n.shouldTouch)&&F(s,d,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&Se(s)},J=(s,a,n)=>{for(const _ in a){const d=a[_],o=`${s}.${_}`,A=f(u,o);(g.array.has(s)||!Ve(d)||A&&!A._f)&&!ne(d)?J(o,d,n):H(o,d,n)}},re=(s,a,n={})=>{const _=f(u,s),d=g.array.has(s),o=I(a);D(c,s,o),d?(h.array.next({name:s,values:{...c}}),(p.isDirty||p.dirtyFields)&&n.shouldDirty&&h.state.next({name:s,dirtyFields:Pe(l,c),isDirty:x(s,o)})):_&&!_._f&&!N(o)?J(s,o,n):H(s,o,n),We(s,g)&&h.state.next({...r}),h.values.next({name:s,values:{...c}}),!m.mount&&i()},fe=async s=>{const a=s.target;let n=a.name,_=!0;const d=f(u,n),o=()=>a.type?je(d._f):dt(s),A=k=>{_=Number.isNaN(k)||k===f(c,n,k)};if(d){let k,U;const he=o(),ue=s.type===Ae.BLUR||s.type===Ae.FOCUS_OUT,Ct=!Ht(d._f)&&!t.resolver&&!f(r.errors,n)&&!d._f.deps||Kt(ue,f(r.touchedFields,n),r.isSubmitted,oe,M),ke=We(n,g,ue);D(c,n,he),ue?(d._f.onBlur&&d._f.onBlur(s),C&&C(0)):d._f.onChange&&d._f.onChange(s);const Ee=F(n,he,ue,!1),Ot=!q(Ee)||ke;if(!ue&&h.values.next({name:n,type:s.type,values:{...c}}),Ct)return p.isValid&&V(),Ot&&h.state.next({name:n,...ke?{}:Ee});if(!ue&&ke&&h.state.next({...r}),j(!0),t.resolver){const{errors:st}=await B([n]);if(A(he),_){const Rt=ct(r.errors,u,n),it=ct(st,u,Rt.name||n);k=it.error,n=it.name,U=q(st)}}else k=(await $e(d,c,ie,t.shouldUseNativeValidation))[n],A(he),_&&(k?U=!1:p.isValid&&(U=await Y(u,!0)));_&&(d._f.deps&&Se(d._f.deps),R(n,U,k,Ee))}},ge=(s,a)=>{if(f(r.errors,a)&&s.focus)return s.focus(),1},Se=async(s,a={})=>{let n,_;const d=W(s);if(j(!0),t.resolver){const o=await z(E(s)?s:d);n=q(o),_=s?!d.some(A=>f(o,A)):n}else s?(_=(await Promise.all(d.map(async o=>{const A=f(u,o);return await Y(A&&A._f?{[o]:A}:A)}))).every(Boolean),!(!_&&!r.isValid)&&V()):_=n=await Y(u);return h.state.next({...!X(s)||p.isValid&&n!==r.isValid?{}:{name:s},...t.resolver||!s?{isValid:n}:{},errors:r.errors,isValidating:!1}),a.shouldFocus&&!_&&ye(u,ge,s?d:g.mount),_},Je=s=>{const a={...l,...m.mount?c:{}};return E(s)?a:X(s)?f(a,s):s.map(n=>f(a,n))},Qe=(s,a)=>({invalid:!!f((a||r).errors,s),isDirty:!!f((a||r).dirtyFields,s),isTouched:!!f((a||r).touchedFields,s),error:f((a||r).errors,s)}),wt=s=>{s&&W(s).forEach(a=>T(r.errors,a)),h.state.next({errors:s?r.errors:{}})},Xe=(s,a,n)=>{const _=(f(u,s,{_f:{}})._f||{}).ref;D(r.errors,s,{...a,ref:_}),h.state.next({name:s,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&_&&_.focus&&_.focus()},Dt=(s,a)=>te(s)?h.values.subscribe({next:n=>s(O(void 0,a),n)}):O(s,a,!0),we=(s,a={})=>{for(const n of s?W(s):g.mount)g.mount.delete(n),g.array.delete(n),a.keepValue||(T(u,n),T(c,n)),!a.keepError&&T(r.errors,n),!a.keepDirty&&T(r.dirtyFields,n),!a.keepTouched&&T(r.touchedFields,n),!t.shouldUnregister&&!a.keepDefaultValue&&T(l,n);h.values.next({values:{...c}}),h.state.next({...r,...a.keepDirty?{isDirty:x()}:{}}),!a.keepIsValid&&V()},Ye=({disabled:s,name:a,field:n,fields:_,value:d})=>{if(Q(s)){const o=s?void 0:E(d)?je(n?n._f:f(_,a)._f):d;D(c,a,o),F(a,o,!1,!1,!0)}},De=(s,a={})=>{let n=f(u,s);const _=Q(a.disabled);return D(u,s,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:s}},name:s,mount:!0,...a}}),g.mount.add(s),n?Ye({field:n,disabled:a.disabled,name:s}):v(s,!0,a.value),{..._?{disabled:a.disabled}:{},...t.progressive?{required:!!a.required,min:de(a.min),max:de(a.max),minLength:de(a.minLength),maxLength:de(a.maxLength),pattern:de(a.pattern)}:{},name:s,onChange:fe,onBlur:fe,ref:d=>{if(d){De(s,a),n=f(u,s);const o=E(d.value)&&d.querySelectorAll&&d.querySelectorAll("input,select,textarea")[0]||d,A=Wt(o),k=n._f.refs||[];if(A?k.find(U=>U===o):o===n._f.ref)return;D(u,s,{_f:{...n._f,...A?{refs:[...k.filter(Ne),o,...Array.isArray(f(l,s))?[{}]:[]],ref:{type:o.type,name:s}}:{ref:o}}}),v(s,!1,void 0,o)}else n=f(u,s,{}),n._f&&(n._f.mount=!1),(t.shouldUnregister||a.shouldUnregister)&&!(yt(g.array,s)&&m.action)&&g.unMount.add(s)}}},Ze=()=>t.shouldFocusError&&ye(u,ge,g.mount),kt=s=>{Q(s)&&(h.state.next({disabled:s}),ye(u,a=>{a.disabled=s},0,!1))},et=(s,a)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let _=I(c);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:d,values:o}=await B();r.errors=d,_=o}else await Y(u);T(r.errors,"root"),q(r.errors)?(h.state.next({errors:{}}),await s(_,n)):(a&&await a({...r.errors},n),Ze(),setTimeout(Ze)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:q(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Et=(s,a={})=>{f(u,s)&&(E(a.defaultValue)?re(s,f(l,s)):(re(s,a.defaultValue),D(l,s,a.defaultValue)),a.keepTouched||T(r.touchedFields,s),a.keepDirty||(T(r.dirtyFields,s),r.isDirty=a.defaultValue?x(s,f(l,s)):x()),a.keepError||(T(r.errors,s),p.isValid&&V()),h.state.next({...r}))},tt=(s,a={})=>{const n=s?I(s):l,_=I(n),d=s&&!q(s)?_:l;if(a.keepDefaultValues||(l=n),!a.keepValues){if(a.keepDirtyValues||$)for(const o of g.mount)f(r.dirtyFields,o)?D(d,o,f(c,o)):re(o,f(d,o));else{if(He&&E(s))for(const o of g.mount){const A=f(u,o);if(A&&A._f){const k=Array.isArray(A._f.refs)?A._f.refs[0]:A._f.ref;if(me(k)){const U=k.closest("form");if(U){U.reset();break}}}}u={}}c=e.shouldUnregister?a.keepDefaultValues?I(l):{}:I(d),h.array.next({values:{...d}}),h.values.next({values:{...d}})}g={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!m.mount&&i(),m.mount=!p.isValid||!!a.keepIsValid,m.watch=!!e.shouldUnregister,h.state.next({submitCount:a.keepSubmitCount?r.submitCount:0,isDirty:a.keepDirty?r.isDirty:!!(a.keepDefaultValues&&!se(s,l)),isSubmitted:a.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:a.keepDirtyValues?r.dirtyFields:a.keepDefaultValues&&s?Pe(l,s):{},touchedFields:a.keepTouched?r.touchedFields:{},errors:a.keepErrors?r.errors:{},isSubmitSuccessful:a.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},rt=(s,a)=>tt(te(s)?s(c):s,a);return{control:{register:De,unregister:we,getFieldState:Qe,handleSubmit:et,setError:Xe,_executeSchema:B,_getWatch:O,_getDirty:x,_updateValid:V,_removeUnmounted:S,_updateFieldArray:G,_updateDisabledField:Ye,_getFieldArray:P,_reset:tt,_resetDefaultValues:()=>te(t.defaultValues)&&t.defaultValues().then(s=>{rt(s,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:s=>{r={...r,...s}},_disableForm:kt,_subjects:h,_proxyFormState:p,get _fields(){return u},get _formValues(){return c},get _state(){return m},set _state(s){m=s},get _defaultValues(){return l},get _names(){return g},set _names(s){g=s},get _formState(){return r},set _formState(s){r=s},get _options(){return t},set _options(s){t={...t,...s}}},trigger:Se,register:De,handleSubmit:et,watch:Dt,setValue:re,getValues:Je,reset:rt,resetField:Et,clearErrors:wt,unregister:we,setError:Xe,setFocus:(s,a={})=>{const n=f(u,s),_=n&&n._f;if(_){const d=_.refs?_.refs[0]:_.ref;d.focus&&(d.focus(),a.shouldSelect&&d.select())}},getFieldState:Qe}}function rr(e={}){const i=b.useRef(),t=b.useRef(),[r,u]=b.useState({isDirty:!1,isValidating:!1,isLoading:te(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},disabled:!1,defaultValues:te(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...Jt(e,()=>u(c=>({...c}))),formState:r});const l=i.current.control;return l._options=e,pe({subject:l._subjects.state,next:c=>{gt(c,l._proxyFormState,l._updateFormState,!0)&&u({...l._formState})}}),b.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),b.useEffect(()=>{if(l._proxyFormState.isDirty){const c=l._getDirty();c!==r.isDirty&&l._subjects.state.next({isDirty:c})}},[l,r.isDirty]),b.useEffect(()=>{e.values&&!se(e.values,t.current)?(l._reset(e.values,l._options.resetOptions),t.current=e.values):l._resetDefaultValues()},[e.values,l]),b.useEffect(()=>{l._state.mount||(l._updateValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),i.current.formState=_t(r,l),i.current}export{er as C,tr as a,rr as u};
|
|
1
|
+
import{bU as b}from"./index-uIKkPDx2.js";var _e=e=>e.type==="checkbox",ne=e=>e instanceof Date,N=e=>e==null;const ft=e=>typeof e=="object";var L=e=>!N(e)&&!Array.isArray(e)&&ft(e)&&!ne(e),dt=e=>L(e)&&e.target?_e(e.target)?e.target.checked:e.target.value:e,Ut=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,yt=(e,i)=>e.has(Ut(i)),Lt=e=>{const i=e.constructor&&e.constructor.prototype;return L(i)&&i.hasOwnProperty("isPrototypeOf")},He=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function I(e){let i;const t=Array.isArray(e);if(e instanceof Date)i=new Date(e);else if(e instanceof Set)i=new Set(e);else if(!(He&&(e instanceof Blob||e instanceof FileList))&&(t||L(e)))if(i=t?[]:{},!t&&!Lt(e))i=e;else for(const r in e)e.hasOwnProperty(r)&&(i[r]=I(e[r]));else return e;return i}var le=e=>Array.isArray(e)?e.filter(Boolean):[],E=e=>e===void 0,f=(e,i,t)=>{if(!i||!L(e))return t;const r=le(i.split(/[,[\].]+?/)).reduce((u,l)=>N(u)?u:u[l],e);return E(r)||r===e?E(e[i])?t:e[i]:r},Q=e=>typeof e=="boolean";const Ae={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},K={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Z={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Tt=b.createContext(null),xe=()=>b.useContext(Tt);var _t=(e,i,t,r=!0)=>{const u={defaultValues:i._defaultValues};for(const l in e)Object.defineProperty(u,l,{get:()=>{const c=l;return i._proxyFormState[c]!==K.all&&(i._proxyFormState[c]=!r||K.all),t&&(t[c]=!0),e[c]}});return u},q=e=>L(e)&&!Object.keys(e).length,gt=(e,i,t,r)=>{t(e);const{name:u,...l}=e;return q(l)||Object.keys(l).length>=Object.keys(i).length||Object.keys(l).find(c=>i[c]===(!r||K.all))},W=e=>Array.isArray(e)?e:[e],ht=(e,i,t)=>!e||!i||e===i||W(e).some(r=>r&&(t?r===i:r.startsWith(i)||i.startsWith(r)));function pe(e){const i=b.useRef(e);i.current=e,b.useEffect(()=>{const t=!e.disabled&&i.current.subject&&i.current.subject.subscribe({next:i.current.next});return()=>{t&&t.unsubscribe()}},[e.disabled])}function Mt(e){const i=xe(),{control:t=i.control,disabled:r,name:u,exact:l}=e||{},[c,m]=b.useState(t._formState),g=b.useRef(!0),C=b.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),w=b.useRef(u);return w.current=u,pe({disabled:r,next:p=>g.current&&ht(w.current,p.name,l)&>(p,C.current,t._updateFormState)&&m({...t._formState,...p}),subject:t._subjects.state}),b.useEffect(()=>(g.current=!0,C.current.isValid&&t._updateValid(!0),()=>{g.current=!1}),[t]),_t(c,t,C.current,!1)}var X=e=>typeof e=="string",vt=(e,i,t,r,u)=>X(e)?(r&&i.watch.add(e),f(t,e,u)):Array.isArray(e)?e.map(l=>(r&&i.watch.add(l),f(t,l))):(r&&(i.watchAll=!0),t);function Bt(e){const i=xe(),{control:t=i.control,name:r,defaultValue:u,disabled:l,exact:c}=e||{},m=b.useRef(r);m.current=r,pe({disabled:l,subject:t._subjects.values,next:w=>{ht(m.current,w.name,c)&&C(I(vt(m.current,t._names,w.values||t._formValues,!1,u)))}});const[g,C]=b.useState(t._getWatch(r,u));return b.useEffect(()=>t._removeUnmounted()),g}var Ke=e=>/^\w*$/.test(e),At=e=>le(e.replace(/["|']|\]/g,"").split(/\.|\[/));function D(e,i,t){let r=-1;const u=Ke(i)?[i]:At(i),l=u.length,c=l-1;for(;++r<l;){const m=u[r];let g=t;if(r!==c){const C=e[m];g=L(C)||Array.isArray(C)?C:isNaN(+u[r+1])?{}:[]}e[m]=g,e=e[m]}return e}function It(e){const i=xe(),{name:t,disabled:r,control:u=i.control,shouldUnregister:l}=e,c=yt(u._names.array,t),m=Bt({control:u,name:t,defaultValue:f(u._formValues,t,f(u._defaultValues,t,e.defaultValue)),exact:!0}),g=Mt({control:u,name:t}),C=b.useRef(u.register(t,{...e.rules,value:m}));return C.current=u.register(t,e.rules),b.useEffect(()=>{const w=u._options.shouldUnregister||l,p=(h,$)=>{const M=f(u._fields,h);M&&(M._f.mount=$)};if(p(t,!0),w){const h=I(f(u._options.defaultValues,t));D(u._defaultValues,t,h),E(f(u._formValues,t))&&D(u._formValues,t,h)}return()=>{(c?w&&!u._state.action:w)?u.unregister(t):p(t,!1)}},[t,u,c,l]),b.useEffect(()=>{f(u._fields,t)&&u._updateDisabledField({disabled:r,fields:u._fields,name:t,value:f(u._fields,t)._f.value})},[r,t,u]),{field:{name:t,value:m,...Q(r)||Q(g.disabled)?{disabled:g.disabled||r}:{},onChange:b.useCallback(w=>C.current.onChange({target:{value:dt(w),name:t},type:Ae.CHANGE}),[t]),onBlur:b.useCallback(()=>C.current.onBlur({target:{value:f(u._formValues,t),name:t},type:Ae.BLUR}),[t,u]),ref:w=>{const p=f(u._fields,t);p&&w&&(p._f.ref={focus:()=>w.focus(),select:()=>w.select(),setCustomValidity:h=>w.setCustomValidity(h),reportValidity:()=>w.reportValidity()})}},formState:g,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!f(g.errors,t)},isDirty:{enumerable:!0,get:()=>!!f(g.dirtyFields,t)},isTouched:{enumerable:!0,get:()=>!!f(g.touchedFields,t)},error:{enumerable:!0,get:()=>f(g.errors,t)}})}}const er=e=>e.render(It(e));var Nt=(e,i,t,r,u)=>i?{...t[e],types:{...t[e]&&t[e].types?t[e].types:{},[r]:u||!0}}:{},ee=()=>{const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{const t=(Math.random()*16+e)%16|0;return(i=="x"?t:t&3|8).toString(16)})},Ce=(e,i,t={})=>t.shouldFocus||E(t.shouldFocus)?t.focusName||`${e}.${E(t.focusIndex)?i:t.focusIndex}.`:"",qe=e=>({isOnSubmit:!e||e===K.onSubmit,isOnBlur:e===K.onBlur,isOnChange:e===K.onChange,isOnAll:e===K.all,isOnTouch:e===K.onTouched}),We=(e,i,t)=>!t&&(i.watchAll||i.watch.has(e)||[...i.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const ye=(e,i,t,r)=>{for(const u of t||Object.keys(e)){const l=f(e,u);if(l){const{_f:c,...m}=l;if(c){if(c.refs&&c.refs[0]&&i(c.refs[0],u)&&!r)break;if(c.ref&&i(c.ref,c.name)&&!r)break}else L(m)&&ye(m,i)}}};var mt=(e,i,t)=>{const r=le(f(e,t));return D(r,"root",i[t]),D(e,t,r),e},Ge=e=>e.type==="file",te=e=>typeof e=="function",me=e=>{if(!He)return!1;const i=e?e.ownerDocument:0;return e instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},ve=e=>X(e),ze=e=>e.type==="radio",be=e=>e instanceof RegExp;const ut={value:!1,isValid:!1},at={value:!0,isValid:!0};var bt=e=>{if(Array.isArray(e)){if(e.length>1){const i=e.filter(t=>t&&t.checked&&!t.disabled).map(t=>t.value);return{value:i,isValid:!!i.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!E(e[0].attributes.value)?E(e[0].value)||e[0].value===""?at:{value:e[0].value,isValid:!0}:at:ut}return ut};const nt={isValid:!1,value:null};var Vt=e=>Array.isArray(e)?e.reduce((i,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:i,nt):nt;function lt(e,i,t="validate"){if(ve(e)||Array.isArray(e)&&e.every(ve)||Q(e)&&!e)return{type:t,message:ve(e)?e:"",ref:i}}var ae=e=>L(e)&&!be(e)?e:{value:e,message:""},$e=async(e,i,t,r,u)=>{const{ref:l,refs:c,required:m,maxLength:g,minLength:C,min:w,max:p,pattern:h,validate:$,name:M,valueAsNumber:oe,mount:ie,disabled:ce}=e._f,V=f(i,M);if(!ie||ce)return{};const j=c?c[0]:l,G=S=>{r&&j.reportValidity&&(j.setCustomValidity(Q(S)?"":S||""),j.reportValidity())},y={},v=ze(l),F=_e(l),R=v||F,B=(oe||Ge(l))&&E(l.value)&&E(V)||me(l)&&l.value===""||V===""||Array.isArray(V)&&!V.length,z=Nt.bind(null,M,t,y),Y=(S,x,O,P=Z.maxLength,H=Z.minLength)=>{const J=S?x:O;y[M]={type:S?P:H,message:J,ref:l,...z(S?P:H,J)}};if(u?!Array.isArray(V)||!V.length:m&&(!R&&(B||N(V))||Q(V)&&!V||F&&!bt(c).isValid||v&&!Vt(c).isValid)){const{value:S,message:x}=ve(m)?{value:!!m,message:m}:ae(m);if(S&&(y[M]={type:Z.required,message:x,ref:j,...z(Z.required,x)},!t))return G(x),y}if(!B&&(!N(w)||!N(p))){let S,x;const O=ae(p),P=ae(w);if(!N(V)&&!isNaN(V)){const H=l.valueAsNumber||V&&+V;N(O.value)||(S=H>O.value),N(P.value)||(x=H<P.value)}else{const H=l.valueAsDate||new Date(V),J=ge=>new Date(new Date().toDateString()+" "+ge),re=l.type=="time",fe=l.type=="week";X(O.value)&&V&&(S=re?J(V)>J(O.value):fe?V>O.value:H>new Date(O.value)),X(P.value)&&V&&(x=re?J(V)<J(P.value):fe?V<P.value:H<new Date(P.value))}if((S||x)&&(Y(!!S,O.message,P.message,Z.max,Z.min),!t))return G(y[M].message),y}if((g||C)&&!B&&(X(V)||u&&Array.isArray(V))){const S=ae(g),x=ae(C),O=!N(S.value)&&V.length>+S.value,P=!N(x.value)&&V.length<+x.value;if((O||P)&&(Y(O,S.message,x.message),!t))return G(y[M].message),y}if(h&&!B&&X(V)){const{value:S,message:x}=ae(h);if(be(S)&&!V.match(S)&&(y[M]={type:Z.pattern,message:x,ref:l,...z(Z.pattern,x)},!t))return G(x),y}if($){if(te($)){const S=await $(V,i),x=lt(S,j);if(x&&(y[M]={...x,...z(Z.validate,x.message)},!t))return G(x.message),y}else if(L($)){let S={};for(const x in $){if(!q(S)&&!t)break;const O=lt(await $[x](V,i),j,x);O&&(S={...O,...z(x,O.message)},G(O.message),t&&(y[M]=S))}if(!q(S)&&(y[M]={ref:j,...S},!t))return y}}return G(!0),y};function Oe(e,i){return[...e,...W(i)]}var Re=e=>Array.isArray(e)?e.map(()=>{}):void 0;function Ue(e,i,t){return[...e.slice(0,i),...W(t),...e.slice(i)]}var Le=(e,i,t)=>Array.isArray(e)?(E(e[t])&&(e[t]=void 0),e.splice(t,0,e.splice(i,1)[0]),e):[];function Te(e,i){return[...W(i),...W(e)]}function Pt(e,i){let t=0;const r=[...e];for(const u of i)r.splice(u-t,1),t++;return le(r).length?r:[]}var Me=(e,i)=>E(i)?[]:Pt(e,W(i).sort((t,r)=>t-r)),Be=(e,i,t)=>{e[i]=[e[t],e[t]=e[i]][0]};function jt(e,i){const t=i.slice(0,-1).length;let r=0;for(;r<t;)e=E(e)?r++:e[i[r++]];return e}function qt(e){for(const i in e)if(e.hasOwnProperty(i)&&!E(e[i]))return!1;return!0}function T(e,i){const t=Array.isArray(i)?i:Ke(i)?[i]:At(i),r=t.length===1?e:jt(e,t),u=t.length-1,l=t[u];return r&&delete r[l],u!==0&&(L(r)&&q(r)||Array.isArray(r)&&qt(r))&&T(e,t.slice(0,-1)),e}var ot=(e,i,t)=>(e[i]=t,e);function tr(e){const i=xe(),{control:t=i.control,name:r,keyName:u="id",shouldUnregister:l}=e,[c,m]=b.useState(t._getFieldArray(r)),g=b.useRef(t._getFieldArray(r).map(ee)),C=b.useRef(c),w=b.useRef(r),p=b.useRef(!1);w.current=r,C.current=c,t._names.array.add(r),e.rules&&t.register(r,e.rules),pe({next:({values:y,name:v})=>{if(v===w.current||!v){const F=f(y,w.current);Array.isArray(F)&&(m(F),g.current=F.map(ee))}},subject:t._subjects.array});const h=b.useCallback(y=>{p.current=!0,t._updateFieldArray(r,y)},[t,r]),$=(y,v)=>{const F=W(I(y)),R=Oe(t._getFieldArray(r),F);t._names.focus=Ce(r,R.length-1,v),g.current=Oe(g.current,F.map(ee)),h(R),m(R),t._updateFieldArray(r,R,Oe,{argA:Re(y)})},M=(y,v)=>{const F=W(I(y)),R=Te(t._getFieldArray(r),F);t._names.focus=Ce(r,0,v),g.current=Te(g.current,F.map(ee)),h(R),m(R),t._updateFieldArray(r,R,Te,{argA:Re(y)})},oe=y=>{const v=Me(t._getFieldArray(r),y);g.current=Me(g.current,y),h(v),m(v),t._updateFieldArray(r,v,Me,{argA:y})},ie=(y,v,F)=>{const R=W(I(v)),B=Ue(t._getFieldArray(r),y,R);t._names.focus=Ce(r,y,F),g.current=Ue(g.current,y,R.map(ee)),h(B),m(B),t._updateFieldArray(r,B,Ue,{argA:y,argB:Re(v)})},ce=(y,v)=>{const F=t._getFieldArray(r);Be(F,y,v),Be(g.current,y,v),h(F),m(F),t._updateFieldArray(r,F,Be,{argA:y,argB:v},!1)},V=(y,v)=>{const F=t._getFieldArray(r);Le(F,y,v),Le(g.current,y,v),h(F),m(F),t._updateFieldArray(r,F,Le,{argA:y,argB:v},!1)},j=(y,v)=>{const F=I(v),R=ot(t._getFieldArray(r),y,F);g.current=[...R].map((B,z)=>!B||z===y?ee():g.current[z]),h(R),m([...R]),t._updateFieldArray(r,R,ot,{argA:y,argB:F},!0,!1)},G=y=>{const v=W(I(y));g.current=v.map(ee),h([...v]),m([...v]),t._updateFieldArray(r,[...v],F=>F,{},!0,!1)};return b.useEffect(()=>{if(t._state.action=!1,We(r,t._names)&&t._subjects.state.next({...t._formState}),p.current&&(!qe(t._options.mode).isOnSubmit||t._formState.isSubmitted))if(t._options.resolver)t._executeSchema([r]).then(y=>{const v=f(y.errors,r),F=f(t._formState.errors,r);(F?!v&&F.type||v&&(F.type!==v.type||F.message!==v.message):v&&v.type)&&(v?D(t._formState.errors,r,v):T(t._formState.errors,r),t._subjects.state.next({errors:t._formState.errors}))});else{const y=f(t._fields,r);y&&y._f&&$e(y,t._formValues,t._options.criteriaMode===K.all,t._options.shouldUseNativeValidation,!0).then(v=>!q(v)&&t._subjects.state.next({errors:mt(t._formState.errors,v,r)}))}t._subjects.values.next({name:r,values:{...t._formValues}}),t._names.focus&&ye(t._fields,(y,v)=>{if(t._names.focus&&v.startsWith(t._names.focus)&&y.focus)return y.focus(),1}),t._names.focus="",t._updateValid(),p.current=!1},[c,r,t]),b.useEffect(()=>(!f(t._formValues,r)&&t._updateFieldArray(r),()=>{(t._options.shouldUnregister||l)&&t.unregister(r)}),[r,t,u,l]),{swap:b.useCallback(ce,[h,r,t]),move:b.useCallback(V,[h,r,t]),prepend:b.useCallback(M,[h,r,t]),append:b.useCallback($,[h,r,t]),remove:b.useCallback(oe,[h,r,t]),insert:b.useCallback(ie,[h,r,t]),update:b.useCallback(j,[h,r,t]),replace:b.useCallback(G,[h,r,t]),fields:b.useMemo(()=>c.map((y,v)=>({...y,[u]:g.current[v]||ee()})),[c,u])}}function Ie(){let e=[];return{get observers(){return e},next:u=>{for(const l of e)l.next&&l.next(u)},subscribe:u=>(e.push(u),{unsubscribe:()=>{e=e.filter(l=>l!==u)}}),unsubscribe:()=>{e=[]}}}var Ve=e=>N(e)||!ft(e);function se(e,i){if(Ve(e)||Ve(i))return e===i;if(ne(e)&&ne(i))return e.getTime()===i.getTime();const t=Object.keys(e),r=Object.keys(i);if(t.length!==r.length)return!1;for(const u of t){const l=e[u];if(!r.includes(u))return!1;if(u!=="ref"){const c=i[u];if(ne(l)&&ne(c)||L(l)&&L(c)||Array.isArray(l)&&Array.isArray(c)?!se(l,c):l!==c)return!1}}return!0}var Ft=e=>e.type==="select-multiple",Wt=e=>ze(e)||_e(e),Ne=e=>me(e)&&e.isConnected,xt=e=>{for(const i in e)if(te(e[i]))return!0;return!1};function Fe(e,i={}){const t=Array.isArray(e);if(L(e)||t)for(const r in e)Array.isArray(e[r])||L(e[r])&&!xt(e[r])?(i[r]=Array.isArray(e[r])?[]:{},Fe(e[r],i[r])):N(e[r])||(i[r]=!0);return i}function pt(e,i,t){const r=Array.isArray(e);if(L(e)||r)for(const u in e)Array.isArray(e[u])||L(e[u])&&!xt(e[u])?E(i)||Ve(t[u])?t[u]=Array.isArray(e[u])?Fe(e[u],[]):{...Fe(e[u])}:pt(e[u],N(i)?{}:i[u],t[u]):t[u]=!se(e[u],i[u]);return t}var Pe=(e,i)=>pt(e,i,Fe(i)),St=(e,{valueAsNumber:i,valueAsDate:t,setValueAs:r})=>E(e)?e:i?e===""?NaN:e&&+e:t&&X(e)?new Date(e):r?r(e):e;function je(e){const i=e.ref;if(!(e.refs?e.refs.every(t=>t.disabled):i.disabled))return Ge(i)?i.files:ze(i)?Vt(e.refs).value:Ft(i)?[...i.selectedOptions].map(({value:t})=>t):_e(i)?bt(e.refs).value:St(E(i.value)?e.ref.value:i.value,e)}var $t=(e,i,t,r)=>{const u={};for(const l of e){const c=f(i,l);c&&D(u,l,c._f)}return{criteriaMode:t,names:[...e],fields:u,shouldUseNativeValidation:r}},de=e=>E(e)?e:be(e)?e.source:L(e)?be(e.value)?e.value.source:e.value:e,Ht=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function ct(e,i,t){const r=f(e,t);if(r||Ke(t))return{error:r,name:t};const u=t.split(".");for(;u.length;){const l=u.join("."),c=f(i,l),m=f(e,l);if(c&&!Array.isArray(c)&&t!==l)return{name:t};if(m&&m.type)return{name:l,error:m};u.pop()}return{name:t}}var Kt=(e,i,t,r,u)=>u.isOnAll?!1:!t&&u.isOnTouch?!(i||e):(t?r.isOnBlur:u.isOnBlur)?!e:(t?r.isOnChange:u.isOnChange)?e:!0,Gt=(e,i)=>!le(f(e,i)).length&&T(e,i);const zt={mode:K.onSubmit,reValidateMode:K.onChange,shouldFocusError:!0};function Jt(e={},i){let t={...zt,...e},r={submitCount:0,isDirty:!1,isLoading:te(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:{},disabled:!1},u={},l=L(t.defaultValues)||L(t.values)?I(t.defaultValues||t.values)||{}:{},c=t.shouldUnregister?{}:I(l),m={action:!1,mount:!1,watch:!1},g={mount:new Set,unMount:new Set,array:new Set,watch:new Set},C,w=0;const p={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:Ie(),array:Ie(),state:Ie()},$=e.resetOptions&&e.resetOptions.keepDirtyValues,M=qe(t.mode),oe=qe(t.reValidateMode),ie=t.criteriaMode===K.all,ce=s=>a=>{clearTimeout(w),w=setTimeout(s,a)},V=async s=>{if(p.isValid||s){const a=t.resolver?q((await B()).errors):await Y(u,!0);a!==r.isValid&&h.state.next({isValid:a})}},j=s=>p.isValidating&&h.state.next({isValidating:s}),G=(s,a=[],n,_,d=!0,o=!0)=>{if(_&&n){if(m.action=!0,o&&Array.isArray(f(u,s))){const A=n(f(u,s),_.argA,_.argB);d&&D(u,s,A)}if(o&&Array.isArray(f(r.errors,s))){const A=n(f(r.errors,s),_.argA,_.argB);d&&D(r.errors,s,A),Gt(r.errors,s)}if(p.touchedFields&&o&&Array.isArray(f(r.touchedFields,s))){const A=n(f(r.touchedFields,s),_.argA,_.argB);d&&D(r.touchedFields,s,A)}p.dirtyFields&&(r.dirtyFields=Pe(l,c)),h.state.next({name:s,isDirty:x(s,a),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else D(c,s,a)},y=(s,a)=>{D(r.errors,s,a),h.state.next({errors:r.errors})},v=(s,a,n,_)=>{const d=f(u,s);if(d){const o=f(c,s,E(n)?f(l,s):n);E(o)||_&&_.defaultChecked||a?D(c,s,a?o:je(d._f)):H(s,o),m.mount&&V()}},F=(s,a,n,_,d)=>{let o=!1,A=!1;const k={name:s};if(!n||_){p.isDirty&&(A=r.isDirty,r.isDirty=k.isDirty=x(),o=A!==k.isDirty);const U=se(f(l,s),a);A=f(r.dirtyFields,s),U?T(r.dirtyFields,s):D(r.dirtyFields,s,!0),k.dirtyFields=r.dirtyFields,o=o||p.dirtyFields&&A!==!U}if(n){const U=f(r.touchedFields,s);U||(D(r.touchedFields,s,n),k.touchedFields=r.touchedFields,o=o||p.touchedFields&&U!==n)}return o&&d&&h.state.next(k),o?k:{}},R=(s,a,n,_)=>{const d=f(r.errors,s),o=p.isValid&&Q(a)&&r.isValid!==a;if(e.delayError&&n?(C=ce(()=>y(s,n)),C(e.delayError)):(clearTimeout(w),C=null,n?D(r.errors,s,n):T(r.errors,s)),(n?!se(d,n):d)||!q(_)||o){const A={..._,...o&&Q(a)?{isValid:a}:{},errors:r.errors,name:s};r={...r,...A},h.state.next(A)}j(!1)},B=async s=>t.resolver(c,t.context,$t(s||g.mount,u,t.criteriaMode,t.shouldUseNativeValidation)),z=async s=>{const{errors:a}=await B(s);if(s)for(const n of s){const _=f(a,n);_?D(r.errors,n,_):T(r.errors,n)}else r.errors=a;return a},Y=async(s,a,n={valid:!0})=>{for(const _ in s){const d=s[_];if(d){const{_f:o,...A}=d;if(o){const k=g.array.has(o.name),U=await $e(d,c,ie,t.shouldUseNativeValidation&&!a,k);if(U[o.name]&&(n.valid=!1,a))break;!a&&(f(U,o.name)?k?mt(r.errors,U,o.name):D(r.errors,o.name,U[o.name]):T(r.errors,o.name))}A&&await Y(A,a,n)}}return n.valid},S=()=>{for(const s of g.unMount){const a=f(u,s);a&&(a._f.refs?a._f.refs.every(n=>!Ne(n)):!Ne(a._f.ref))&&we(s)}g.unMount=new Set},x=(s,a)=>(s&&a&&D(c,s,a),!se(Je(),l)),O=(s,a,n)=>vt(s,g,{...m.mount?c:E(a)?l:X(s)?{[s]:a}:a},n,a),P=s=>le(f(m.mount?c:l,s,e.shouldUnregister?f(l,s,[]):[])),H=(s,a,n={})=>{const _=f(u,s);let d=a;if(_){const o=_._f;o&&(!o.disabled&&D(c,s,St(a,o)),d=me(o.ref)&&N(a)?"":a,Ft(o.ref)?[...o.ref.options].forEach(A=>A.selected=d.includes(A.value)):o.refs?_e(o.ref)?o.refs.length>1?o.refs.forEach(A=>(!A.defaultChecked||!A.disabled)&&(A.checked=Array.isArray(d)?!!d.find(k=>k===A.value):d===A.value)):o.refs[0]&&(o.refs[0].checked=!!d):o.refs.forEach(A=>A.checked=A.value===d):Ge(o.ref)?o.ref.value="":(o.ref.value=d,o.ref.type||h.values.next({name:s,values:{...c}})))}(n.shouldDirty||n.shouldTouch)&&F(s,d,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&Se(s)},J=(s,a,n)=>{for(const _ in a){const d=a[_],o=`${s}.${_}`,A=f(u,o);(g.array.has(s)||!Ve(d)||A&&!A._f)&&!ne(d)?J(o,d,n):H(o,d,n)}},re=(s,a,n={})=>{const _=f(u,s),d=g.array.has(s),o=I(a);D(c,s,o),d?(h.array.next({name:s,values:{...c}}),(p.isDirty||p.dirtyFields)&&n.shouldDirty&&h.state.next({name:s,dirtyFields:Pe(l,c),isDirty:x(s,o)})):_&&!_._f&&!N(o)?J(s,o,n):H(s,o,n),We(s,g)&&h.state.next({...r}),h.values.next({name:s,values:{...c}}),!m.mount&&i()},fe=async s=>{const a=s.target;let n=a.name,_=!0;const d=f(u,n),o=()=>a.type?je(d._f):dt(s),A=k=>{_=Number.isNaN(k)||k===f(c,n,k)};if(d){let k,U;const he=o(),ue=s.type===Ae.BLUR||s.type===Ae.FOCUS_OUT,Ct=!Ht(d._f)&&!t.resolver&&!f(r.errors,n)&&!d._f.deps||Kt(ue,f(r.touchedFields,n),r.isSubmitted,oe,M),ke=We(n,g,ue);D(c,n,he),ue?(d._f.onBlur&&d._f.onBlur(s),C&&C(0)):d._f.onChange&&d._f.onChange(s);const Ee=F(n,he,ue,!1),Ot=!q(Ee)||ke;if(!ue&&h.values.next({name:n,type:s.type,values:{...c}}),Ct)return p.isValid&&V(),Ot&&h.state.next({name:n,...ke?{}:Ee});if(!ue&&ke&&h.state.next({...r}),j(!0),t.resolver){const{errors:st}=await B([n]);if(A(he),_){const Rt=ct(r.errors,u,n),it=ct(st,u,Rt.name||n);k=it.error,n=it.name,U=q(st)}}else k=(await $e(d,c,ie,t.shouldUseNativeValidation))[n],A(he),_&&(k?U=!1:p.isValid&&(U=await Y(u,!0)));_&&(d._f.deps&&Se(d._f.deps),R(n,U,k,Ee))}},ge=(s,a)=>{if(f(r.errors,a)&&s.focus)return s.focus(),1},Se=async(s,a={})=>{let n,_;const d=W(s);if(j(!0),t.resolver){const o=await z(E(s)?s:d);n=q(o),_=s?!d.some(A=>f(o,A)):n}else s?(_=(await Promise.all(d.map(async o=>{const A=f(u,o);return await Y(A&&A._f?{[o]:A}:A)}))).every(Boolean),!(!_&&!r.isValid)&&V()):_=n=await Y(u);return h.state.next({...!X(s)||p.isValid&&n!==r.isValid?{}:{name:s},...t.resolver||!s?{isValid:n}:{},errors:r.errors,isValidating:!1}),a.shouldFocus&&!_&&ye(u,ge,s?d:g.mount),_},Je=s=>{const a={...l,...m.mount?c:{}};return E(s)?a:X(s)?f(a,s):s.map(n=>f(a,n))},Qe=(s,a)=>({invalid:!!f((a||r).errors,s),isDirty:!!f((a||r).dirtyFields,s),isTouched:!!f((a||r).touchedFields,s),error:f((a||r).errors,s)}),wt=s=>{s&&W(s).forEach(a=>T(r.errors,a)),h.state.next({errors:s?r.errors:{}})},Xe=(s,a,n)=>{const _=(f(u,s,{_f:{}})._f||{}).ref;D(r.errors,s,{...a,ref:_}),h.state.next({name:s,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&_&&_.focus&&_.focus()},Dt=(s,a)=>te(s)?h.values.subscribe({next:n=>s(O(void 0,a),n)}):O(s,a,!0),we=(s,a={})=>{for(const n of s?W(s):g.mount)g.mount.delete(n),g.array.delete(n),a.keepValue||(T(u,n),T(c,n)),!a.keepError&&T(r.errors,n),!a.keepDirty&&T(r.dirtyFields,n),!a.keepTouched&&T(r.touchedFields,n),!t.shouldUnregister&&!a.keepDefaultValue&&T(l,n);h.values.next({values:{...c}}),h.state.next({...r,...a.keepDirty?{isDirty:x()}:{}}),!a.keepIsValid&&V()},Ye=({disabled:s,name:a,field:n,fields:_,value:d})=>{if(Q(s)){const o=s?void 0:E(d)?je(n?n._f:f(_,a)._f):d;D(c,a,o),F(a,o,!1,!1,!0)}},De=(s,a={})=>{let n=f(u,s);const _=Q(a.disabled);return D(u,s,{...n||{},_f:{...n&&n._f?n._f:{ref:{name:s}},name:s,mount:!0,...a}}),g.mount.add(s),n?Ye({field:n,disabled:a.disabled,name:s}):v(s,!0,a.value),{..._?{disabled:a.disabled}:{},...t.progressive?{required:!!a.required,min:de(a.min),max:de(a.max),minLength:de(a.minLength),maxLength:de(a.maxLength),pattern:de(a.pattern)}:{},name:s,onChange:fe,onBlur:fe,ref:d=>{if(d){De(s,a),n=f(u,s);const o=E(d.value)&&d.querySelectorAll&&d.querySelectorAll("input,select,textarea")[0]||d,A=Wt(o),k=n._f.refs||[];if(A?k.find(U=>U===o):o===n._f.ref)return;D(u,s,{_f:{...n._f,...A?{refs:[...k.filter(Ne),o,...Array.isArray(f(l,s))?[{}]:[]],ref:{type:o.type,name:s}}:{ref:o}}}),v(s,!1,void 0,o)}else n=f(u,s,{}),n._f&&(n._f.mount=!1),(t.shouldUnregister||a.shouldUnregister)&&!(yt(g.array,s)&&m.action)&&g.unMount.add(s)}}},Ze=()=>t.shouldFocusError&&ye(u,ge,g.mount),kt=s=>{Q(s)&&(h.state.next({disabled:s}),ye(u,a=>{a.disabled=s},0,!1))},et=(s,a)=>async n=>{n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let _=I(c);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:d,values:o}=await B();r.errors=d,_=o}else await Y(u);T(r.errors,"root"),q(r.errors)?(h.state.next({errors:{}}),await s(_,n)):(a&&await a({...r.errors},n),Ze(),setTimeout(Ze)),h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:q(r.errors),submitCount:r.submitCount+1,errors:r.errors})},Et=(s,a={})=>{f(u,s)&&(E(a.defaultValue)?re(s,f(l,s)):(re(s,a.defaultValue),D(l,s,a.defaultValue)),a.keepTouched||T(r.touchedFields,s),a.keepDirty||(T(r.dirtyFields,s),r.isDirty=a.defaultValue?x(s,f(l,s)):x()),a.keepError||(T(r.errors,s),p.isValid&&V()),h.state.next({...r}))},tt=(s,a={})=>{const n=s?I(s):l,_=I(n),d=s&&!q(s)?_:l;if(a.keepDefaultValues||(l=n),!a.keepValues){if(a.keepDirtyValues||$)for(const o of g.mount)f(r.dirtyFields,o)?D(d,o,f(c,o)):re(o,f(d,o));else{if(He&&E(s))for(const o of g.mount){const A=f(u,o);if(A&&A._f){const k=Array.isArray(A._f.refs)?A._f.refs[0]:A._f.ref;if(me(k)){const U=k.closest("form");if(U){U.reset();break}}}}u={}}c=e.shouldUnregister?a.keepDefaultValues?I(l):{}:I(d),h.array.next({values:{...d}}),h.values.next({values:{...d}})}g={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!m.mount&&i(),m.mount=!p.isValid||!!a.keepIsValid,m.watch=!!e.shouldUnregister,h.state.next({submitCount:a.keepSubmitCount?r.submitCount:0,isDirty:a.keepDirty?r.isDirty:!!(a.keepDefaultValues&&!se(s,l)),isSubmitted:a.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:a.keepDirtyValues?r.dirtyFields:a.keepDefaultValues&&s?Pe(l,s):{},touchedFields:a.keepTouched?r.touchedFields:{},errors:a.keepErrors?r.errors:{},isSubmitSuccessful:a.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},rt=(s,a)=>tt(te(s)?s(c):s,a);return{control:{register:De,unregister:we,getFieldState:Qe,handleSubmit:et,setError:Xe,_executeSchema:B,_getWatch:O,_getDirty:x,_updateValid:V,_removeUnmounted:S,_updateFieldArray:G,_updateDisabledField:Ye,_getFieldArray:P,_reset:tt,_resetDefaultValues:()=>te(t.defaultValues)&&t.defaultValues().then(s=>{rt(s,t.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:s=>{r={...r,...s}},_disableForm:kt,_subjects:h,_proxyFormState:p,get _fields(){return u},get _formValues(){return c},get _state(){return m},set _state(s){m=s},get _defaultValues(){return l},get _names(){return g},set _names(s){g=s},get _formState(){return r},set _formState(s){r=s},get _options(){return t},set _options(s){t={...t,...s}}},trigger:Se,register:De,handleSubmit:et,watch:Dt,setValue:re,getValues:Je,reset:rt,resetField:Et,clearErrors:wt,unregister:we,setError:Xe,setFocus:(s,a={})=>{const n=f(u,s),_=n&&n._f;if(_){const d=_.refs?_.refs[0]:_.ref;d.focus&&(d.focus(),a.shouldSelect&&d.select())}},getFieldState:Qe}}function rr(e={}){const i=b.useRef(),t=b.useRef(),[r,u]=b.useState({isDirty:!1,isValidating:!1,isLoading:te(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:{},disabled:!1,defaultValues:te(e.defaultValues)?void 0:e.defaultValues});i.current||(i.current={...Jt(e,()=>u(c=>({...c}))),formState:r});const l=i.current.control;return l._options=e,pe({subject:l._subjects.state,next:c=>{gt(c,l._proxyFormState,l._updateFormState,!0)&&u({...l._formState})}}),b.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),b.useEffect(()=>{if(l._proxyFormState.isDirty){const c=l._getDirty();c!==r.isDirty&&l._subjects.state.next({isDirty:c})}},[l,r.isDirty]),b.useEffect(()=>{e.values&&!se(e.values,t.current)?(l._reset(e.values,l._options.resetOptions),t.current=e.values):l._resetDefaultValues()},[e.values,l]),b.useEffect(()=>{l._state.mount||(l._updateValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),i.current.formState=_t(r,l),i.current}export{er as C,tr as a,rr as u};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{al as L,j as i,P as n,G as v,r as p,E as z,am as T,u as g,c as $,i as E,k as q,an as D,ao as R,ap as b,A as C,B as U,aq as H,S as F,ar as A,e as M,d as V,V as W,s as B,o as O,p as X,w as G,R as J}from"./index-
|
|
1
|
+
import{al as L,j as i,P as n,G as v,r as p,E as z,am as T,u as g,c as $,i as E,k as q,an as D,ao as R,ap as b,A as C,B as U,aq as H,S as F,ar as A,e as M,d as V,V as W,s as B,o as O,p as X,w as G,R as J}from"./index-uIKkPDx2.js";import{C as I}from"./index-GG6_BZrf.js";import{u as K}from"./use-passport-id-pXgWCnyq.js";import{u as Y}from"./session-4pK31v9z.js";import{d as Q}from"./CheckCircle-htlybHjr.js";import{w as Z}from"./wrap-locale-eKtYETDv.js";const ee=L(i.jsx("path",{d:"M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2m0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19z"}),"Inbox");function _({invitation:e,createPassportSvg:o,passportColor:a}){const[u,t]=p.useState(!1),{t:r}=p.useContext(z),s=p.useMemo(()=>(e.role.title||e.role.name).toUpperCase(),[e.role.title,e.role.name]),c=p.useMemo(()=>o({title:s,issuer:e.info.name,issuerDid:e.info.appDid,ownerName:"Your Name",ownerDid:e.info.appDid,preferredColor:e.info.passportColor||a}),[e,s]),f=p.useCallback(()=>{t(!0)},[]),l=p.useCallback(()=>{t(!1)},[]);return i.jsxs(i.Fragment,{children:[i.jsx(ie,{children:i.jsx("div",{className:"invite-passport__card",onClick:f,children:i.jsx("div",{className:"invite-passport__cover",dangerouslySetInnerHTML:{__html:c}})})}),i.jsx(T,{open:u,title:r("invite.viewPermission"),PaperProps:{style:{minHeight:"auto",paddingBottom:"20px"}},onClose:l,children:e.role.permissions&&e.role.permissions.length>0?i.jsx("ul",{style:{listStyle:"circle",padding:"0 20px"},children:e.role.permissions.map(d=>i.jsx("li",{style:{listStyle:"circle"},children:d.description},d.name))}):i.jsxs("div",{style:{color:"#999",textAlign:"center"},children:[i.jsx(ee,{style:{width:"30px",height:"30px"}}),i.jsx("div",{children:r("invite.emptyPermission")})]})})]})}_.propTypes={invitation:n.object.isRequired,createPassportSvg:n.func.isRequired,passportColor:n.string};_.defaultProps={passportColor:"auto"};const ie=v.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
max-width: 350px;
|
|
4
4
|
margin: 30px auto;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as o,E as b,e as v,j as s,B as a,T as E,F as W,x as I,G as N,C as y,w as p,z as L,y as S}from"./index-
|
|
1
|
+
import{r as o,E as b,e as v,j as s,B as a,T as E,F as W,x as I,G as N,C as y,w as p,z as L,y as S}from"./index-uIKkPDx2.js";import{d as R}from"./CheckCircle-htlybHjr.js";import{F as _}from"./fullpage-JCH-m3GS.js";import{w as F}from"./wrap-locale-eKtYETDv.js";import{u as k}from"./use-passport-id-pXgWCnyq.js";function T({SessionContext:d,webWalletUrl:u}){var r,l;const{api:x,session:m}=o.useContext(d),{t,locale:h}=o.useContext(b),[g,f]=o.useState(!1),n=v(),{setPassportId:P}=k(),w=e=>{e!=null&&e.passportId&&P(e.passportId),f(!0)},i={},{searchParams:j}=new URL(window.location.href),c=j.get("id");c&&(i.id=c);const C=()=>{var e;try{m.logout()}catch{}if((((e=window.env)==null?void 0:e.apiPrefix)||"").startsWith(p.WELLKNOWN_SERVICE_PATH_PREFIX)){n(`${p.WELLKNOWN_SERVICE_PATH_PREFIX}/login`,{replace:!0});return}n("/",{replace:!0})};return s.jsx(U,{children:g?s.jsx("div",{className:"login",children:s.jsx("div",{className:"connect",children:s.jsxs(a,{textAlign:"center",children:[s.jsx(a,{mb:3,color:"success.main",children:s.jsx(R,{style:{fontSize:60}})}),s.jsx(E,{component:"p",variant:"body1",className:"subheader",children:t("issuePassport.dialog.success")}),s.jsx(a,{mt:3,children:s.jsx(W,{variant:"contained",color:"primary",onClick:C,children:t("issuePassport.dialog.loginWithPassport")})})]})})}):s.jsx(_,{did:((r=window==null?void 0:window.blocklet)==null?void 0:r.appPid)||((l=window==null?void 0:window.env)==null?void 0:l.appPid),children:s.jsx(a,{sx:{width:"560px",maxWidth:"100%",height:"100%"},children:s.jsx(I,{className:"connect",action:"issue-passport",forceConnected:!1,autoConnect:!1,checkFn:x.get,checkTimeout:10*60*1e3,webWalletUrl:u,onSuccess:w,locale:h,messages:{title:t("issuePassport.title"),scan:t("issuePassport.description",{name:window.env.appName}),confirm:t("issuePassport.dialog.confirm"),success:t("issuePassport.dialog.success")},extraParams:i})})})})}const U=N(y)`
|
|
2
2
|
.header {
|
|
3
3
|
text-align: center;
|
|
4
4
|
margin-bottom: 8px;
|
package/dist/assets/{jss-plugin-props-sort.esm-HmYxbLE7.js → jss-plugin-props-sort.esm-NWykbogG.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aE as v,dK as Ce,dL as de,aD as Ue}from"./index-
|
|
1
|
+
import{aE as v,dK as Ce,dL as de,aD as Ue}from"./index-uIKkPDx2.js";import{t as qe}from"./toPropertyKey-NzAT2yhV.js";var ce=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},T=(typeof window>"u"?"undefined":ce(window))==="object"&&(typeof document>"u"?"undefined":ce(document))==="object"&&document.nodeType===9;function he(i,t){for(var r=0;r<t.length;r++){var e=t[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(i,qe(e.key),e)}}function se(i,t,r){return t&&he(i.prototype,t),r&&he(i,r),Object.defineProperty(i,"prototype",{writable:!1}),i}const Sr=Object.freeze(Object.defineProperty({__proto__:null,default:se},Symbol.toStringTag,{value:"Module"}));var Ge={}.constructor;function F(i){if(i==null||typeof i!="object")return i;if(Array.isArray(i))return i.map(F);if(i.constructor!==Ge)return i;var t={};for(var r in i)t[r]=F(i[r]);return t}function ae(i,t,r){i===void 0&&(i="unnamed");var e=r.jss,n=F(t),s=e.plugins.onCreateRule(i,n,r);return s||(i[0],null)}var ve=function(t,r){for(var e="",n=0;n<t.length&&t[n]!=="!important";n++)e&&(e+=r),e+=t[n];return e},P=function(t){if(!Array.isArray(t))return t;var r="";if(Array.isArray(t[0]))for(var e=0;e<t.length&&t[e]!=="!important";e++)r&&(r+=", "),r+=ve(t[e]," ");else r=ve(t,", ");return t[t.length-1]==="!important"&&(r+=" !important"),r};function C(i){return i&&i.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
2
2
|
`,space:" "}}function j(i,t){for(var r="",e=0;e<t;e++)r+=" ";return r+i}function E(i,t,r){r===void 0&&(r={});var e="";if(!t)return e;var n=r,s=n.indent,a=s===void 0?0:s,o=t.fallbacks;r.format===!1&&(a=-1/0);var f=C(r),l=f.linebreak,c=f.space;if(i&&a++,o)if(Array.isArray(o))for(var h=0;h<o.length;h++){var y=o[h];for(var g in y){var p=y[g];p!=null&&(e&&(e+=l),e+=j(g+":"+c+P(p)+";",a))}}else for(var m in o){var V=o[m];V!=null&&(e&&(e+=l),e+=j(m+":"+c+P(V)+";",a))}for(var W in t){var le=t[W];le!=null&&W!=="fallbacks"&&(e&&(e+=l),e+=j(W+":"+c+P(le)+";",a))}return!e&&!r.allowEmpty||!i?e:(a--,e&&(e=""+l+e+l),j(""+i+c+"{"+e,a)+j("}",a))}var Ke=/([[\].#*$><+~=|^:(),"'`\s])/g,pe=typeof CSS<"u"&&CSS.escape,oe=function(i){return pe?pe(i):i.replace(Ke,"\\$1")},je=function(){function i(r,e,n){this.type="style",this.isProcessed=!1;var s=n.sheet,a=n.Renderer;this.key=r,this.options=n,this.style=e,s?this.renderer=s.renderer:a&&(this.renderer=new a)}var t=i.prototype;return t.prop=function(e,n,s){if(n===void 0)return this.style[e];var a=s?s.force:!1;if(!a&&this.style[e]===n)return this;var o=n;(!s||s.process!==!1)&&(o=this.options.jss.plugins.onChangeValue(n,e,this));var f=o==null||o===!1,l=e in this.style;if(f&&!l&&!a)return this;var c=f&&l;if(c?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return c?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var h=this.options.sheet;return h&&h.attached,this},i}(),Z=function(i){Ce(t,i);function t(e,n,s){var a;a=i.call(this,e,n,s)||this;var o=s.selector,f=s.scoped,l=s.sheet,c=s.generateId;return o?a.selectorText=o:f!==!1&&(a.id=c(de(de(a)),l),a.selectorText="."+oe(a.id)),a}var r=t.prototype;return r.applyTo=function(n){var s=this.renderer;if(s){var a=this.toJSON();for(var o in a)s.setProperty(n,o,a[o])}return this},r.toJSON=function(){var n={};for(var s in this.style){var a=this.style[s];typeof a!="object"?n[s]=a:Array.isArray(a)&&(n[s]=P(a))}return n},r.toString=function(n){var s=this.options.sheet,a=s?s.options.link:!1,o=a?v({},n,{allowEmpty:!0}):n;return E(this.selectorText,this.style,o)},se(t,[{key:"selector",set:function(n){if(n!==this.selectorText){this.selectorText=n;var s=this.renderer,a=this.renderable;if(!(!a||!s)){var o=s.setSelector(a,n);o||s.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),t}(je),Le={onCreateRule:function(t,r,e){return t[0]==="@"||e.parent&&e.parent.type==="keyframes"?null:new Z(t,r,e)}},$={indent:1,children:!0},De=/@([\w-]+)/,Je=function(){function i(r,e,n){this.type="conditional",this.isProcessed=!1,this.key=r;var s=r.match(De);this.at=s?s[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new z(v({},n,{parent:this}));for(var a in e)this.rules.add(a,e[a]);this.rules.process()}var t=i.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,n,s){var a=this.rules.add(e,n,s);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(e,n,s){var a=this.rules.replace(e,n,s);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(e){e===void 0&&(e=$);var n=C(e),s=n.linebreak;if(e.indent==null&&(e.indent=$.indent),e.children==null&&(e.children=$.children),e.children===!1)return this.query+" {}";var a=this.rules.toString(e);return a?this.query+" {"+s+a+s+"}":""},i}(),He=/@container|@media|@supports\s+/,Be={onCreateRule:function(t,r,e){return He.test(t)?new Je(t,r,e):null}},U={indent:1,children:!0},Fe=/@keyframes\s+([\w-]+)/,Q=function(){function i(r,e,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var s=r.match(Fe);s&&s[1]?this.name=s[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var a=n.scoped,o=n.sheet,f=n.generateId;this.id=a===!1?this.name:oe(f(this,o)),this.rules=new z(v({},n,{parent:this}));for(var l in e)this.rules.add(l,e[l],v({},n,{parent:this}));this.rules.process()}var t=i.prototype;return t.toString=function(e){e===void 0&&(e=U);var n=C(e),s=n.linebreak;if(e.indent==null&&(e.indent=U.indent),e.children==null&&(e.children=U.children),e.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(e);return a&&(a=""+s+a+s),this.at+" "+this.id+" {"+a+"}"},i}(),Ze=/@keyframes\s+/,Qe=/\$([\w-]+)/g,X=function(t,r){return typeof t=="string"?t.replace(Qe,function(e,n){return n in r?r[n]:e}):t},ge=function(t,r,e){var n=t[r],s=X(n,e);s!==n&&(t[r]=s)},Xe={onCreateRule:function(t,r,e){return typeof t=="string"&&Ze.test(t)?new Q(t,r,e):null},onProcessStyle:function(t,r,e){return r.type!=="style"||!e||("animation-name"in t&&ge(t,"animation-name",e.keyframes),"animation"in t&&ge(t,"animation",e.keyframes)),t},onChangeValue:function(t,r,e){var n=e.options.sheet;if(!n)return t;switch(r){case"animation":return X(t,n.keyframes);case"animation-name":return X(t,n.keyframes);default:return t}}},Ye=function(i){Ce(t,i);function t(){return i.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(n){var s=this.options.sheet,a=s?s.options.link:!1,o=a?v({},n,{allowEmpty:!0}):n;return E(this.key,this.style,o)},t}(je),et={onCreateRule:function(t,r,e){return e.parent&&e.parent.type==="keyframes"?new Ye(t,r,e):null}},tt=function(){function i(r,e,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=e,this.options=n}var t=i.prototype;return t.toString=function(e){var n=C(e),s=n.linebreak;if(Array.isArray(this.style)){for(var a="",o=0;o<this.style.length;o++)a+=E(this.at,this.style[o]),this.style[o+1]&&(a+=s);return a}return E(this.at,this.style,e)},i}(),rt=/@font-face/,nt={onCreateRule:function(t,r,e){return rt.test(t)?new tt(t,r,e):null}},it=function(){function i(r,e,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=r,this.style=e,this.options=n}var t=i.prototype;return t.toString=function(e){return E(this.key,this.style,e)},i}(),st={onCreateRule:function(t,r,e){return t==="@viewport"||t==="@-ms-viewport"?new it(t,r,e):null}},at=function(){function i(r,e,n){this.type="simple",this.isProcessed=!1,this.key=r,this.value=e,this.options=n}var t=i.prototype;return t.toString=function(e){if(Array.isArray(this.value)){for(var n="",s=0;s<this.value.length;s++)n+=this.key+" "+this.value[s]+";",this.value[s+1]&&(n+=`
|
|
3
3
|
`);return n}return this.key+" "+this.value+";"},i}(),ot={"@charset":!0,"@import":!0,"@namespace":!0},ut={onCreateRule:function(t,r,e){return t in ot?new at(t,r,e):null}},ye=[Le,Be,Xe,et,nt,st,ut],ft={process:!0},me={force:!0,process:!0},z=function(){function i(r){this.map={},this.raw={},this.index=[],this.counter=0,this.options=r,this.classes=r.classes,this.keyframes=r.keyframes}var t=i.prototype;return t.add=function(e,n,s){var a=this.options,o=a.parent,f=a.sheet,l=a.jss,c=a.Renderer,h=a.generateId,y=a.scoped,g=v({classes:this.classes,parent:o,sheet:f,jss:l,Renderer:c,generateId:h,scoped:y,name:e,keyframes:this.keyframes,selector:void 0},s),p=e;e in this.raw&&(p=e+"-d"+this.counter++),this.raw[p]=n,p in this.classes&&(g.selector="."+oe(this.classes[p]));var m=ae(p,n,g);if(!m)return null;this.register(m);var V=g.index===void 0?this.index.length:g.index;return this.index.splice(V,0,m),m},t.replace=function(e,n,s){var a=this.get(e),o=this.index.indexOf(a);a&&this.remove(a);var f=s;return o!==-1&&(f=v({},s,{index:o})),this.add(e,n,f)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof Z?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Q&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof Z?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Q&&delete this.keyframes[e.name]},t.update=function(){var e,n,s;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(e=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],s=arguments.length<=2?void 0:arguments[2]):(n=arguments.length<=0?void 0:arguments[0],s=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),n,s);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],n,s)},t.updateOne=function(e,n,s){s===void 0&&(s=ft);var a=this.options,o=a.jss.plugins,f=a.sheet;if(e.rules instanceof i){e.rules.update(n,s);return}var l=e.style;if(o.onUpdate(n,e,f,s),s.process&&l&&l!==e.style){o.onProcessStyle(e.style,e,f);for(var c in e.style){var h=e.style[c],y=l[c];h!==y&&e.prop(c,h,me)}for(var g in l){var p=e.style[g],m=l[g];p==null&&p!==m&&e.prop(g,null,me)}}},t.toString=function(e){for(var n="",s=this.options.sheet,a=s?s.options.link:!1,o=C(e),f=o.linebreak,l=0;l<this.index.length;l++){var c=this.index[l],h=c.toString(e);!h&&!a||(n&&(n+=f),n+=h)}return n},i}(),Oe=function(){function i(r,e){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=v({},e,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),e.Renderer&&(this.renderer=new e.Renderer(this)),this.rules=new z(this.options);for(var n in r)this.rules.add(n,r[n]);this.rules.process()}var t=i.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,n,s){var a=this.queue;this.attached&&!a&&(this.queue=[]);var o=this.rules.add(e,n,s);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?(this.deployed&&(a?a.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),o):(this.deployed=!1,o)):null},t.replaceRule=function(e,n,s){var a=this.rules.get(e);if(!a)return this.addRule(e,n,s);var o=this.rules.replace(e,n,s);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?(this.deployed&&this.renderer&&(o?a.renderable&&this.renderer.replaceRule(a.renderable,o):this.renderer.deleteRule(a)),o):(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,n){var s=[];for(var a in e){var o=this.addRule(a,e[a],n);o&&s.push(o)}return s},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var n=typeof e=="object"?e:this.rules.get(e);return!n||this.attached&&!n.renderable?!1:(this.rules.remove(n),this.attached&&n.renderable&&this.renderer?this.renderer.deleteRule(n.renderable):!0)},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,n,s){return this.rules.updateOne(e,n,s),this},t.toString=function(e){return this.rules.toString(e)},i}(),lt=function(){function i(){this.plugins={internal:[],external:[]},this.registry={}}var t=i.prototype;return t.onCreateRule=function(e,n,s){for(var a=0;a<this.registry.onCreateRule.length;a++){var o=this.registry.onCreateRule[a](e,n,s);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var n=e.options.sheet,s=0;s<this.registry.onProcessRule.length;s++)this.registry.onProcessRule[s](e,n);e.style&&this.onProcessStyle(e.style,e,n),e.isProcessed=!0}},t.onProcessStyle=function(e,n,s){for(var a=0;a<this.registry.onProcessStyle.length;a++)n.style=this.registry.onProcessStyle[a](n.style,n,s)},t.onProcessSheet=function(e){for(var n=0;n<this.registry.onProcessSheet.length;n++)this.registry.onProcessSheet[n](e)},t.onUpdate=function(e,n,s,a){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,n,s,a)},t.onChangeValue=function(e,n,s){for(var a=e,o=0;o<this.registry.onChangeValue.length;o++)a=this.registry.onChangeValue[o](a,n,s);return a},t.use=function(e,n){n===void 0&&(n={queue:"external"});var s=this.plugins[n.queue];s.indexOf(e)===-1&&(s.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,o){for(var f in o)f in a&&a[f].push(o[f]);return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},i}(),dt=function(){function i(){this.registry=[]}var t=i.prototype;return t.add=function(e){var n=this.registry,s=e.options.index;if(n.indexOf(e)===-1){if(n.length===0||s>=this.index){n.push(e);return}for(var a=0;a<n.length;a++)if(n[a].options.index>s){n.splice(a,0,e);return}}},t.reset=function(){this.registry=[]},t.remove=function(e){var n=this.registry.indexOf(e);this.registry.splice(n,1)},t.toString=function(e){for(var n=e===void 0?{}:e,s=n.attached,a=Ue(n,["attached"]),o=C(a),f=o.linebreak,l="",c=0;c<this.registry.length;c++){var h=this.registry[c];s!=null&&h.attached!==s||(l&&(l+=f),l+=h.toString(a))}return l},se(i,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),i}(),I=new dt,Y=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),ee="2f1acc6c3a606b082e5eef5e54414ffb";Y[ee]==null&&(Y[ee]=0);var be=Y[ee]++,Re=function(t){t===void 0&&(t={});var r=0,e=function(s,a){r+=1;var o="",f="";return a&&(a.options.classNamePrefix&&(f=a.options.classNamePrefix),a.options.jss.id!=null&&(o=String(a.options.jss.id))),t.minify?""+(f||"c")+be+o+r:f+s.key+"-"+be+(o?"-"+o:"")+"-"+r};return e},Ae=function(t){var r;return function(){return r||(r=t()),r}},ct=function(t,r){try{return t.attributeStyleMap?t.attributeStyleMap.get(r):t.style.getPropertyValue(r)}catch{return""}},ht=function(t,r,e){try{var n=e;if(Array.isArray(e)&&(n=P(e)),t.attributeStyleMap)t.attributeStyleMap.set(r,n);else{var s=n?n.indexOf("!important"):-1,a=s>-1?n.substr(0,s-1):n;t.style.setProperty(r,a,s>-1?"important":"")}}catch{return!1}return!0},vt=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch{}},pt=function(t,r){return t.selectorText=r,t.selectorText===r},Ie=Ae(function(){return document.querySelector("head")});function gt(i,t){for(var r=0;r<i.length;r++){var e=i[r];if(e.attached&&e.options.index>t.index&&e.options.insertionPoint===t.insertionPoint)return e}return null}function yt(i,t){for(var r=i.length-1;r>=0;r--){var e=i[r];if(e.attached&&e.options.insertionPoint===t.insertionPoint)return e}return null}function mt(i){for(var t=Ie(),r=0;r<t.childNodes.length;r++){var e=t.childNodes[r];if(e.nodeType===8&&e.nodeValue.trim()===i)return e}return null}function bt(i){var t=I.registry;if(t.length>0){var r=gt(t,i);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=yt(t,i),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var e=i.insertionPoint;if(e&&typeof e=="string"){var n=mt(e);if(n)return{parent:n.parentNode,node:n.nextSibling}}return!1}function Rt(i,t){var r=t.insertionPoint,e=bt(t);if(e!==!1&&e.parent){e.parent.insertBefore(i,e.node);return}if(r&&typeof r.nodeType=="number"){var n=r,s=n.parentNode;s&&s.insertBefore(i,n.nextSibling);return}Ie().appendChild(i)}var St=Ae(function(){var i=document.querySelector('meta[property="csp-nonce"]');return i?i.getAttribute("content"):null}),Se=function(t,r,e){try{"insertRule"in t?t.insertRule(r,e):"appendRule"in t&&t.appendRule(r)}catch{return!1}return t.cssRules[e]},xe=function(t,r){var e=t.cssRules.length;return r===void 0||r>e?e:r},xt=function(){var t=document.createElement("style");return t.textContent=`
|
|
4
4
|
`,t},Pt=function(){function i(r){this.getPropertyValue=ct,this.setProperty=ht,this.removeProperty=vt,this.setSelector=pt,this.hasInsertedRules=!1,this.cssRules=[],r&&I.add(r),this.sheet=r;var e=this.sheet?this.sheet.options:{},n=e.media,s=e.meta,a=e.element;this.element=a||xt(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),s&&this.element.setAttribute("data-meta",s);var o=St();o&&this.element.setAttribute("nonce",o)}var t=i.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){Rt(this.element,this.sheet.options);var e=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{K as h,M as p,j as t,P as i,G as m,ch as x,S as g,b$ as f}from"./index-
|
|
1
|
+
import{K as h,M as p,j as t,P as i,G as m,ch as x,S as g,b$ as f}from"./index-uIKkPDx2.js";var o={},y=p;Object.defineProperty(o,"__esModule",{value:!0});var c=o.default=void 0,b=y(h()),n=t;c=o.default=(0,b.default)([(0,n.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,n.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");function d({variant:e,title:a,subTitle:s,footer:l,...u}){let r;switch(e){case"error":r=f;break;case"info":r=c;break;case"loading":r=g;break;default:r=x}return t.jsx(j,{variant:e,...u,children:t.jsxs("div",{className:"result-body",children:[t.jsx("span",{className:`result-icon color-${e}`,children:t.jsx(r,{})}),t.jsx("div",{className:`result-title color-${e} ${a?"":"ele-hide"}`,children:a}),t.jsx("div",{className:`result-sub-title ${s?"":"ele-hide"}`,children:s}),l&&t.jsx("div",{className:"result-footer",children:l})]})})}d.propTypes={variant:i.oneOf(["success","error","info","loading"]),title:i.string,subTitle:i.any,footer:i.any};d.defaultProps={variant:"success",title:"",subTitle:"",footer:null};const j=m.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
align-items: center;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{u as r,br as m,$ as s,n as i,j as u,G as c}from"./index-
|
|
1
|
+
import{u as r,br as m,$ as s,n as i,j as u,G as c}from"./index-uIKkPDx2.js";import{C as d}from"./content-layout-P9P08qyU.js";const l=c(d)`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as s,j as i,G as p}from"./index-
|
|
1
|
+
import{r as s,j as i,G as p}from"./index-uIKkPDx2.js";import{d as f}from"./Search-pq50dDMP.js";import{T as m}from"./TextField-HfFRez76.js";var a={};Object.defineProperty(a,"__esModule",{value:!0});var b=a.default=void 0;v(s);var o=i;function v(e){return e&&e.__esModule?e:{default:e}}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(c){return Object.getOwnPropertyDescriptor(e,c).enumerable})),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u(Object(r),!0).forEach(function(n){g(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function g(e,t,r){return t=h(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){var t=x(e,"string");return typeof t=="symbol"?t:String(t)}function x(e,t){if(typeof e!="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l=function(t){return(0,o.jsxs)("svg",d(d({},t),{},{children:[(0,o.jsx)("path",{d:"M1.25 2.709c0-.46.373-.834.834-.834h12.255c.46 0 .834.373.834.834v6.607a.834.834 0 1 1-1.668 0V3.542H2.917v13.214h6.407a.834.834 0 1 1 0 1.668h-7.24a.834.834 0 0 1-.834-.834V2.71z"}),(0,o.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.211 7.92a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.834zm-2.584.916a2.584 2.584 0 1 1 5.169 0 2.584 2.584 0 0 1-5.17 0zM5.627 13.213c0-.46.373-.833.834-.833h3.501a.834.834 0 0 1 0 1.667H6.461a.834.834 0 0 1-.834-.834zM15.64 11.313c.215 0 .41.121.505.313l1.033 2.092 2.31.338a.563.563 0 0 1 .31.96l-1.67 1.627.394 2.3a.563.563 0 0 1-.816.592l-2.065-1.086-2.066 1.086a.562.562 0 0 1-.816-.593l.394-2.299-1.67-1.627a.563.563 0 0 1 .31-.96l2.31-.338 1.033-2.092a.562.562 0 0 1 .505-.313zm0 1.833l-.659 1.335a.563.563 0 0 1-.423.308l-1.474.215 1.066 1.04c.133.129.194.315.162.498l-.251 1.467 1.318-.694a.563.563 0 0 1 .524 0l1.318.694-.252-1.467a.563.563 0 0 1 .162-.498l1.067-1.04-1.475-.215a.563.563 0 0 1-.423-.308l-.66-1.335z"})]}))};l.defaultProps={width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"};l.displayName="external-issuer";var O=l;b=a.default=O;const y=p(({children:e,...t})=>i.jsx(m,{...t,id:"outlined-basic",variant:"outlined",InputProps:{startAdornment:i.jsx(f,{})},size:"small",children:e}))`
|
|
2
2
|
.MuiOutlinedInput-root {
|
|
3
3
|
color: #999;
|
|
4
4
|
&.MuiInputBase-adornedStart .MuiSvgIcon-root {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as o}from"./index-uIKkPDx2.js";import{S as t}from"./studio--sQ-x80O.js";import"./index-nXJuMgJq.js";import"./nav-menu-2LU_iiMs.js";import"./MoreHoriz-1QS3N81v.js";import"./ExpandMore-JmnmUnd8.js";import"./Toolbar-z-FYIGbv.js";import"./Hidden-SKwxA9k1.js";import"./fallback-wCdaTD2t.js";function d(){return o.jsx(t,{children:"Coming soon..."})}export{d as default};
|