@zeniai/web-app-ui 5.3.61-qa → 5.3.62-qa
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/{AccountMappingScreen-OaD-Ww7N.js → AccountMappingScreen-Br9WdaHc.js} +2 -2
- package/dist/assets/{ActualMatchingMatchDetailScreen-C71W3EXR.js → ActualMatchingMatchDetailScreen-DIn78iaK.js} +1 -1
- package/dist/assets/AddressRoutes-Bs2su6QC.js +1 -0
- package/dist/assets/AddressScreen-ChRwBMyD.js +9 -0
- package/dist/assets/{AiCfoScreen-DO4viMbN.js → AiCfoScreen-BoGQRrg3.js} +1 -1
- package/dist/assets/{AppDrawer-BoBT503t.js → AppDrawer-DbFNEZx2.js} +1 -1
- package/dist/assets/{BillPayApprovalRoutes-UWoiHhFS.js → BillPayApprovalRoutes-Ct7bUe2K.js} +1 -1
- package/dist/assets/BillPayRoutes-B9u5uZwl.js +119 -0
- package/dist/assets/{BusinessVerificationPageScreen-DjqyigwM.js → BusinessVerificationPageScreen-e_hf599B.js} +2 -2
- package/dist/assets/{CardsAiCfoScreen-cEaT6Zqk.js → CardsAiCfoScreen-DX5yBLLe.js} +1 -1
- package/dist/assets/ChargeCardRoutes-C0BDIoz6.js +71 -0
- package/dist/assets/{CompanyPassportScreen-CHnMtfXr.js → CompanyPassportScreen-BlEcfU7b.js} +1 -1
- package/dist/assets/ConnectionAuthScreen-DXkk-oNs.js +11 -0
- package/dist/assets/CustomerOnboardingAuthScreen-AEs3yg3Y.js +1 -0
- package/dist/assets/{CustomerOnboardingRoutes-CkVSR1Hr.js → CustomerOnboardingRoutes-CYJxOgEd.js} +3 -3
- package/dist/assets/DashboardRoutes-g9OAwtyP.js +20 -0
- package/dist/assets/{DefaultTenantHome-BWjmQO2E.js → DefaultTenantHome-8TPWmCiF.js} +1 -1
- package/dist/assets/{DomesticWireDetailScreen-Cs9T_IgO.js → DomesticWireDetailScreen-DjZA-xGp.js} +4 -4
- package/dist/assets/{DrawerScreen-CO5oDn6f.js → DrawerScreen-D1drFQnx.js} +1 -1
- package/dist/assets/{EntityDetailRoutes-QbthrUVk.js → EntityDetailRoutes-BecZC3rR.js} +1 -1
- package/dist/assets/ExpenseAutomationRoutes-CoBNGWYF.js +38 -0
- package/dist/assets/{FeaturePreviewScreen-DWBL39rh.js → FeaturePreviewScreen-BOIyRrPg.js} +1 -1
- package/dist/assets/{HubSpotOAuthCallbackScreen-DAce4xun.js → HubSpotOAuthCallbackScreen-CjBFKEJv.js} +1 -1
- package/dist/assets/{InboxNotificationsProvider-B4UF_uUg.js → InboxNotificationsProvider-DcarX1j5.js} +1 -1
- package/dist/assets/InvoicingRoutes-BF9bJVNE.js +2 -0
- package/dist/assets/{MagicLinkRoutes-phTux1TG.js → MagicLinkRoutes-BJpvsEO6.js} +4 -4
- package/dist/assets/{MagicLinkSignInScreen-D-3VGahG.js → MagicLinkSignInScreen-CZf88rgm.js} +1 -1
- package/dist/assets/MobileAppDrawer-BzxL_djZ.js +1 -0
- package/dist/assets/NotFoundScreen-CQm7D9go.js +1 -0
- package/dist/assets/{NotificationRoutes-YZJK1G-i.js → NotificationRoutes-BFU33ioz.js} +1 -1
- package/dist/assets/{OAuthConsentScreen-BgBHYWlo.js → OAuthConsentScreen-DWoFdp0W.js} +1 -1
- package/dist/assets/PandLWithForecastRoutes-CMfowbmP.js +1 -0
- package/dist/assets/{PaymentLinkScreen-DCGfHELs.js → PaymentLinkScreen-DVDDW9Xr.js} +9 -9
- package/dist/assets/{PeopleRoutes-BWFloBGz.js → PeopleRoutes-Cd8MqER4.js} +3 -3
- package/dist/assets/PerformanceRoutes-E86W1j7a.js +1 -0
- package/dist/assets/{Preview-Co3i0Xrb.js → Preview-Dxr01VGI.js} +1 -1
- package/dist/assets/{QBOConnectionScreen-DYxxHcdI.js → QBOConnectionScreen-Os4Qkt_2.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRoutes-CMbfshMX.js → ReimbursementApprovalRoutes-BUfIlnAM.js} +1 -1
- package/dist/assets/{ReimbursementApprovalRuleDetailScreen-CrWl9trk.js → ReimbursementApprovalRuleDetailScreen-Si973dRZ.js} +1 -1
- package/dist/assets/ReimbursementRoutes-B2UGt9Xo.js +68 -0
- package/dist/assets/ReportsRoutes-URtyqRNi.js +1 -0
- package/dist/assets/RewardsRoutes-xF2koJkH.js +1 -0
- package/dist/assets/{ScheduleDetailsPrepaidExpensesScreen-DTNyy-6E.js → ScheduleDetailsPrepaidExpensesScreen-dZQw9m0s.js} +4 -4
- package/dist/assets/{ScreenRoutes-DP4Wjips.js → ScreenRoutes-DivUQ8Cf.js} +2 -2
- package/dist/assets/{SettingsRoutes-CDD6OVir.js → SettingsRoutes-DySQSZO0.js} +5 -5
- package/dist/assets/{SetupPagesScreen-BlUoKvnc.js → SetupPagesScreen-Ctwh4sou.js} +5 -5
- package/dist/assets/SignInScreen-CMjQX-Bq.js +1 -0
- package/dist/assets/SignOutScreen-DiORNgD0.js +9 -0
- package/dist/assets/{TaskListScreen-UsJ67eRj.js → TaskListScreen-2YfVihcw.js} +2 -2
- package/dist/assets/{TaskRoutes-CH6htYb8.js → TaskRoutes-ClUIKKHH.js} +1 -1
- package/dist/assets/TransactionDetailRoutes-FefIagFG.js +1 -0
- package/dist/assets/TransactionDetailScreen-DG9WnSFK.js +5 -0
- package/dist/assets/TransactionListRoutes-DJGbjFDn.js +1 -0
- package/dist/assets/TreasuryRoutes-qpLhCja3.js +37 -0
- package/dist/assets/{VendorsRoutes-jSHZV8MZ.js → VendorsRoutes-ry-2tBPT.js} +1 -1
- package/dist/assets/{WiseConfirmationScreen-Bf_MMExc.js → WiseConfirmationScreen-FC1WiW4f.js} +1 -1
- package/dist/assets/ZeniAccountRoutes-CnC3I2P3.js +57 -0
- package/dist/assets/{ZeniAccountStatementScreen-CcOG7C5Z.js → ZeniAccountStatementScreen-BkDHVJBF.js} +1 -1
- package/dist/assets/{accountMappingHelper-Ci74NLEW.js → accountMappingHelper-DpfYWNe6.js} +1 -1
- package/dist/assets/{analytics-8lQ_GaR7.js → analytics-CiEh1qKr.js} +1 -1
- package/dist/assets/{analyticsHelper-Bi6R9Hrj.js → analyticsHelper-CyJSZC50.js} +1 -1
- package/dist/assets/{core-B-8b0iz9.js → core-Caq7Zbsp.js} +1 -1
- package/dist/assets/{decodeURIComponentSafe-hAviH84T.js → decodeURIComponentSafe-DmjyT4t5.js} +1 -1
- package/dist/assets/{dnd-CtOxA7uX.js → dnd-DwckO6rX.js} +1 -1
- package/dist/assets/{empty-CyiOIGJw.js → empty-CviwvzhB.js} +1 -1
- package/dist/assets/{empty-ZUR8mjP1.js → empty-Dl3LsHNf.js} +1 -1
- package/dist/assets/{emptyVideoElement-Dch9mr3K.js → emptyVideoElement-0ADxBh21.js} +1 -1
- package/dist/assets/{epic-C_YIXfJm.js → epic-DqqOk9a9.js} +1 -1
- package/dist/assets/{expenseAutomationHelper-BzOPc0En.js → expenseAutomationHelper-B83Qa5Jl.js} +1 -1
- package/dist/assets/{getLocaleForTenant-BYXijL7f.js → getLocaleForTenant-CqonawWC.js} +1 -1
- package/dist/assets/{index-BUsi93tT.js → index-B3LhL1WI.js} +2 -2
- package/dist/assets/{index-Bg2deWZq.js → index-BFK4rLhv.js} +23226 -23221
- package/dist/assets/{index-DeS-5gfC.js → index-BLBexBOn.js} +1 -1
- package/dist/assets/{index-CzpjeHcU.js → index-BggnOuo1.js} +1 -1
- package/dist/assets/{index-CgYr_9vs.js → index-Bi5Vnzzf.js} +1 -1
- package/dist/assets/{index-Ce-G0Vp2.js → index-BsIiLcaT.js} +1 -1
- package/dist/assets/{index-haVo7C6B.js → index-DZj1fENq.js} +1 -1
- package/dist/assets/{index-b65XjN06.js → index-De1Gw5gW.js} +1 -1
- package/dist/assets/{lexical-BVt4M34U.js → lexical-mmp2B1vq.js} +1 -1
- package/dist/assets/{liveblocks-BjcYyeQ6.js → liveblocks-CIxx6Ub6.js} +1 -1
- package/dist/assets/{lottie-BdAYiWcR.js → lottie-CrKh4Q_r.js} +1 -1
- package/dist/assets/{mui-C33Oegsm.js → mui-DI0hUuFr.js} +1 -1
- package/dist/assets/{pathToGoBack-Bgu6njoM.js → pathToGoBack-Ch5lrOj1.js} +1 -1
- package/dist/assets/{pdf-BkfulyEw.js → pdf-BlhN83fm.js} +3 -3
- package/dist/assets/{pdf-lib-D8o-uP9K.js → pdf-lib-WBpN-CHj.js} +1 -1
- package/dist/assets/{plaid-Bt28AVCt.js → plaid-CXvI7t9H.js} +1 -1
- package/dist/assets/{pusher-BWEmmbE9.js → pusher-BZAjVztW.js} +1 -1
- package/dist/assets/{react-BAH__mX9.js → react-BHfk4QRe.js} +1 -1
- package/dist/assets/{react-CIEK2Ei-.js → react-BqA23JAy.js} +1 -1
- package/dist/assets/{react-Dqb011PB.js → react-BsygV86H.js} +1 -1
- package/dist/assets/{react-B7GqIpoL.js → react-XoZ7aD8C.js} +1 -1
- package/dist/assets/{react-DT9gMpbF.js → react-rmAoHvXj.js} +1 -1
- package/dist/assets/{react-Ls8UDl46.js → react-tooGqts4.js} +1 -1
- package/dist/assets/{recharts-DkYxIsLi.js → recharts-DKmpCGIA.js} +1 -1
- package/dist/assets/{routePaths-Cz0AF8Dx.js → routePaths-BpLibSFl.js} +1 -1
- package/dist/assets/{sentry-DZ9rNYfw.js → sentry-BCPOyc0G.js} +1 -1
- package/dist/assets/{stripSplatSuffix-Te2Zqy4u.js → stripSplatSuffix-Dmnnw5Oe.js} +1 -1
- package/dist/assets/{url-BjdrSaU1.js → url-CdxI2rEH.js} +1 -1
- package/dist/assets/{url-DY2r7CPa.js → url-JduagIhH.js} +1 -1
- package/dist/assets/{useActualMatchingMatchDetail-BzNeeZZT.js → useActualMatchingMatchDetail-DuLHKjLq.js} +1 -1
- package/dist/assets/{useAiCfoDashboardSuggestedQuestionsChips-CI6Qx_-n.js → useAiCfoDashboardSuggestedQuestionsChips-BZ908ypV.js} +1 -1
- package/dist/assets/useAskAiCfoHostNavButtonProps-0MZcMlGZ.js +1 -0
- package/dist/assets/{useChargeCardPusherEvents-1CQ78Q4X.js → useChargeCardPusherEvents-BxJ5Xbwu.js} +1 -1
- package/dist/assets/{useDeviceId-gFU5q5zf.js → useDeviceId-2NJBbYPM.js} +1 -1
- package/dist/assets/{useEmailConnectResultRefresh-BkOsYAaQ.js → useEmailConnectResultRefresh-BgnlRFeW.js} +1 -1
- package/dist/assets/{useInitialThreadRequest-C3Htu0iZ.js → useInitialThreadRequest-DCnYqu0o.js} +1 -1
- package/dist/assets/useTaskManagerAccess-DR584Qqx.js +1 -0
- package/dist/assets/{useTaskManagerPusherEvents-Da1LpD5U.js → useTaskManagerPusherEvents-BwxBoB_w.js} +1 -1
- package/dist/assets/{utils-D3rZq_G4.js → utils-rX2IEvjD.js} +1 -1
- package/dist/assets/withTransactionSidePanel-BaNmmFC5.js +25 -0
- package/dist/assets/{zeni-epic-state-95zxmizy.js → zeni-epic-state-DROyxOLw.js} +3 -3
- package/dist/index.html +1 -1
- package/package.json +3 -3
- package/dist/assets/AddressRoutes-BVz7TQgL.js +0 -1
- package/dist/assets/AddressScreen-DyDl-tRh.js +0 -9
- package/dist/assets/BillPayRoutes-GFA8LUX-.js +0 -119
- package/dist/assets/ChargeCardRoutes-D4YlLVsI.js +0 -71
- package/dist/assets/ConnectionAuthScreen-DoG98aIj.js +0 -11
- package/dist/assets/CustomerOnboardingAuthScreen-sNk7vsur.js +0 -1
- package/dist/assets/DashboardRoutes-mW-tjMuc.js +0 -20
- package/dist/assets/ExpenseAutomationRoutes-DOepnh8G.js +0 -38
- package/dist/assets/InvoicingRoutes-BNkUMYuP.js +0 -2
- package/dist/assets/MobileAppDrawer-CHFdUHPo.js +0 -1
- package/dist/assets/NotFoundScreen-BPIsWBDH.js +0 -1
- package/dist/assets/PandLWithForecastRoutes-gJp3CGBo.js +0 -1
- package/dist/assets/PerformanceRoutes-DE0kFKjY.js +0 -1
- package/dist/assets/ReimbursementRoutes-ChwPWyQv.js +0 -68
- package/dist/assets/ReportsRoutes-CYsPWlxq.js +0 -1
- package/dist/assets/RewardsRoutes-C-TWFvBa.js +0 -1
- package/dist/assets/SignInScreen-3WOvV3S5.js +0 -1
- package/dist/assets/SignOutScreen-CKL0FwKr.js +0 -9
- package/dist/assets/TransactionDetailRoutes-D6Gttu9Z.js +0 -1
- package/dist/assets/TransactionDetailScreen-CN2_Ei-4.js +0 -5
- package/dist/assets/TransactionListRoutes-BBUdWZ4f.js +0 -1
- package/dist/assets/TreasuryRoutes-BqcgWSjx.js +0 -37
- package/dist/assets/ZeniAccountRoutes-CBtuSj8X.js +0 -57
- package/dist/assets/useAskAiCfoHostNavButtonProps-BZHyrLWc.js +0 -1
- package/dist/assets/useTaskManagerAccess-C6qhVozS.js +0 -1
- package/dist/assets/withTransactionSidePanel-iXTpLDC6.js +0 -25
package/dist/assets/{expenseAutomationHelper-BzOPc0En.js → expenseAutomationHelper-B83Qa5Jl.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{UJ as c}from"./zeni-epic-state-
|
|
1
|
+
import{UJ as c}from"./zeni-epic-state-DROyxOLw.js";import"./sentry-BCPOyc0G.js";import{q as d,g as i}from"./core-Caq7Zbsp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new e.Error().stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="c022f259-22b9-44c4-960d-dab1c3893633",e._sentryDebugIdIdentifier="sentry-dbid-c022f259-22b9-44c4-960d-dab1c3893633")}catch{}})();const a=/^(0?[1-9]|1[0-2])-\d{4}$/;function l(e){if(e!=null&&e!=="")return c(e)}function g(e){const{selectedPeriod:n,selectedTab:s,tenantEmailDomain:t}=e,o=l(s);if(t!=null&&t!==""&&o!=null&&(function(r){return r!=null&&a.test(r)})(n))return`/${t}/month_end_close_checks/review/${o}/${n}`}const y=()=>{const e=u();return d("/:tenantEmailDomain/month_end_close_checks/review/:selectedTab/:selectedPeriod/*")!=null||e},u=()=>i().state?.message==="expenseAutomation";export{l as a,g as m,y as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a1 as n}from"./index-
|
|
1
|
+
import{a1 as n}from"./index-BFK4rLhv.js";import"./mui-DI0hUuFr.js";import"./sentry-BCPOyc0G.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="227db5e8-bf87-42bb-b403-87b09e52f245",e._sentryDebugIdIdentifier="sentry-dbid-227db5e8-bf87-42bb-b403-87b09e52f245")}catch{}})();function l(e){if(e.companyLocaleInfo!=null&&e.companyLocaleInfo.languageCode.length>0&&e.companyLocaleInfo.companyIncCountryCode.length>0){const o=`${e.companyLocaleInfo.languageCode.toLowerCase()}-${e.companyLocaleInfo.companyIncCountryCode.toUpperCase()}`;return console.warn(`localeID ${o}`),n(o)??"en"}return"en"}export{l as t};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/emptyVideoElement-
|
|
2
|
-
import{_ as u}from"./zeni-epic-state-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/emptyVideoElement-0ADxBh21.js","assets/sentry-BCPOyc0G.js","assets/index-De1Gw5gW.js","assets/react-tooGqts4.js","assets/react-BHfk4QRe.js","assets/react-XoZ7aD8C.js","assets/react-BqA23JAy.js","assets/react-rmAoHvXj.js","assets/react-BsygV86H.js","assets/Preview-Dxr01VGI.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as u}from"./zeni-epic-state-DROyxOLw.js";import{R as m,a as l}from"./sentry-BCPOyc0G.js";import"./core-Caq7Zbsp.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="04320b5c-ebfc-4ac3-868e-08b65dab5160",e._sentryDebugIdIdentifier="sentry-dbid-04320b5c-ebfc-4ac3-868e-08b65dab5160")}catch{}})();const N=/\.(m4a|m4b|mp4a|mpga|mp2|mp2a|mp3|m2a|m3a|wav|weba|aac|oga|spx)($|\?)/i,O=/\.(mp4|og[gv]|webm|mov|m4v)(#t=[,\d+]+)?($|\?)/i,z=/\.(m3u8)($|\?)/i,q=/\.(mpd)($|\?)/i,M=/stream\.mux\.com\/(?!\w+\.m3u8)(\w+)/,Y=/(?:youtu\.be\/|youtube(?:-nocookie|education)?\.com\/(?:embed\/|v\/|watch\/|watch\?v=|watch\?.+&v=|shorts\/|live\/))((\w|-){11})|youtube\.com\/playlist\?list=|youtube\.com\/user\//,Z=/vimeo\.com\/(?!progressive_redirect).+/,B=/(?:wistia\.(?:com|net)|wi\.st)\/(?:medias|embed)\/(?:iframe\/)?([^?]+)/,F=/open\.spotify\.com\/(\w+)\/(\w+)/i,G=/(?:www\.|go\.)?twitch\.tv\/([a-zA-Z0-9_]+|(videos?\/|\?video=)\d+)($|\?)/,H=/tiktok\.com\/(?:player\/v1\/|share\/video\/|@[^/]+\/video\/)([0-9]+)/,w=(e,a)=>{if(Array.isArray(e)){for(const n of e)if(typeof n=="string"&&w(n,a)||w(n.src,a))return!0;return!1}return a(e)},s={html:e=>w(e,(a=>N.test(a)||O.test(a))),hls:e=>w(e,(a=>z.test(a))),dash:e=>w(e,(a=>q.test(a))),mux:e=>M.test(e),youtube:e=>Y.test(e),vimeo:e=>Z.test(e)&&!O.test(e)&&!z.test(e),wistia:e=>B.test(e),spotify:e=>F.test(e),twitch:e=>G.test(e),tiktok:e=>H.test(e)};var J=m.forwardRef(((e,a)=>{const n=N.test(`${e.src}`)?"audio":"video";return m.createElement(n,{...e,ref:a},e.children)})),L=[{key:"hls",name:"hls.js",canPlay:s.hls,canEnablePIP:()=>!0,player:l.lazy((()=>u((()=>import("./emptyVideoElement-0ADxBh21.js")),__vite__mapDeps([0,1]))))},{key:"dash",name:"dash.js",canPlay:s.dash,canEnablePIP:()=>!0,player:l.lazy((()=>u((()=>import("./emptyVideoElement-0ADxBh21.js")),__vite__mapDeps([0,1]))))},{key:"mux",name:"Mux",canPlay:s.mux,canEnablePIP:()=>!0,player:l.lazy((()=>u((()=>import("./index-De1Gw5gW.js")),__vite__mapDeps([2,1]))))},{key:"youtube",name:"YouTube",canPlay:s.youtube,player:l.lazy((()=>u((()=>import("./react-tooGqts4.js")),__vite__mapDeps([3,1]))))},{key:"vimeo",name:"Vimeo",canPlay:s.vimeo,player:l.lazy((()=>u((()=>import("./react-BHfk4QRe.js")),__vite__mapDeps([4,1]))))},{key:"wistia",name:"Wistia",canPlay:s.wistia,canEnablePIP:()=>!0,player:l.lazy((()=>u((()=>import("./react-XoZ7aD8C.js")),__vite__mapDeps([5,1]))))},{key:"spotify",name:"Spotify",canPlay:s.spotify,canEnablePIP:()=>!1,player:l.lazy((()=>u((()=>import("./react-BqA23JAy.js")),__vite__mapDeps([6,1]))))},{key:"twitch",name:"Twitch",canPlay:s.twitch,canEnablePIP:()=>!1,player:l.lazy((()=>u((()=>import("./react-rmAoHvXj.js")),__vite__mapDeps([7,1]))))},{key:"tiktok",name:"TikTok",canPlay:s.tiktok,canEnablePIP:()=>!1,player:l.lazy((()=>u((()=>import("./react-BsygV86H.js")),__vite__mapDeps([8,1]))))},{key:"html",name:"html",canPlay:s.html,canEnablePIP:()=>!0,player:J}];const K={width:"320px",height:"180px",volume:1,playbackRate:1,previewTabIndex:0,previewAriaLabel:"",oEmbedUrl:"https://noembed.com/embed?url={url}"},S=m.forwardRef(((e,a)=>{const{playing:n,pip:o}=e,y=e.activePlayer,t=l.useRef(null),p=l.useRef(!0);if(l.useEffect((()=>{var r,i;t.current&&(t.current.paused&&n===!0&&t.current.play(),t.current.paused||n!==!1||t.current.pause(),t.current.playbackRate=(r=e.playbackRate)!=null?r:1,t.current.volume=(i=e.volume)!=null?i:1)})),l.useEffect((()=>{var r,i,c,v,h;if(t.current&&globalThis.document){if(o&&!document.pictureInPictureElement)try{(i=(r=t.current).requestPictureInPicture)==null||i.call(r)}catch{}if(!o&&document.pictureInPictureElement)try{(v=(c=t.current).exitPictureInPicture)==null||v.call(c),(h=document.exitPictureInPicture)==null||h.call(document)}catch{}}}),[o]),!y)return null;const b={},E=["onReady","onStart"];for(const r in e)r.startsWith("on")&&!E.includes(r)&&(b[r]=e[r]);return m.createElement(y,{...b,style:e.style,className:e.className,slot:e.slot,ref:l.useCallback((r=>{t.current=r,typeof a=="function"?a(r):a!==null&&(a.current=r)}),[a]),src:e.src,crossOrigin:e.crossOrigin,preload:e.preload,controls:e.controls,muted:e.muted,autoPlay:e.autoPlay,loop:e.loop,playsInline:e.playsInline,disableRemotePlayback:e.disableRemotePlayback,config:e.config,onLoadStart:r=>{var i,c;p.current=!0,(i=e.onReady)==null||i.call(e),(c=e.onLoadStart)==null||c.call(e,r)},onPlay:r=>{var i,c;p.current&&(p.current=!1,(i=e.onStart)==null||i.call(e,r)),(c=e.onPlay)==null||c.call(e,r)}},e.children)}));S.displayName="Player";var Q=S;const X=l.lazy((()=>u((()=>import("./Preview-Dxr01VGI.js")),__vite__mapDeps([9,1])))),_=[],V=({children:e})=>e;var re=((e,a)=>{const n=m.forwardRef(((o,y)=>{const t={...K,...o},{src:p,slot:b,className:E,style:r,width:i,height:c,fallback:v,wrapper:h}=t,[k,g]=l.useState(!!t.light);l.useEffect((()=>{t.light?g(!0):g(!1)}),[t.light]);const $=f=>{var d;g(!1),(d=t.onClickPreview)==null||d.call(t,f)},C=h??V,U=v===!1?V:l.Suspense;return m.createElement(C,{slot:b,className:E,style:{width:i,height:c,...r}},m.createElement(U,{fallback:v},k?(f=>{if(!f)return null;const{light:d,playIcon:I,previewTabIndex:P,oEmbedUrl:R,previewAriaLabel:T}=t;return m.createElement(X,{src:f,light:d,playIcon:I,previewTabIndex:P,previewAriaLabel:T,oEmbedUrl:R,onClickPreview:$})})(p):(f=>{var d,I;const P=(x=>{for(const D of[..._,...e])if(x&&D.canPlay(x))return D;return a||null})(f);if(!P)return null;const{style:R,width:T,height:j,wrapper:A}=t,W=(d=t.config)==null?void 0:d[P.key];return m.createElement(Q,{...t,ref:y,activePlayer:(I=P.player)!=null?I:P,slot:A?void 0:b,className:A?void 0:E,style:A?{display:"block",width:"100%",height:"100%"}:{display:"block",width:T,height:j,...R},config:W})})(p)))}));return n.displayName="ReactPlayer",n.addCustomPlayer=o=>{_.push(o)},n.removeCustomPlayers=()=>{_.length=0},n.canPlay=o=>{if(o){for(const y of[..._,...e])if(y.canPlay(o))return!0}return!1},n.canEnablePIP=o=>{var y;if(o){for(const t of[..._,...e])if(t.canPlay(o)&&((y=t.canEnablePIP)!=null&&y.call(t)))return!0}return!1},n})(L,L[L.length-1]);export{re as default};
|