@camstack/addon-pipeline-orchestrator 1.1.37 → 1.1.38
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/assets/viewer/.viewer-version +1 -1
- package/assets/viewer/_expo/static/js/web/{index-e5a29cdd5523b4650928a4a0eeb47719.js → index-ec403dda78e92fc742f827f9367191a8.js} +64 -63
- package/assets/viewer/index.html +1 -1
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-vZTi0c_a.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_orchestrator_widgets-DuXDTvXb.mjs} +2 -2
- package/dist/{hostInit-gtkVoSWG.mjs → hostInit-DOi7bBOC.mjs} +2 -2
- package/dist/index.js +36 -0
- package/dist/index.mjs +36 -0
- package/dist/remoteEntry.js +1 -1
- package/package.json +1 -1
|
@@ -17,11 +17,11 @@ __d(function(g,r,_i,a,_m,_e,_d){
|
|
|
17
17
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
18
18
|
_e.read=function(o,t,h,M,f){var w,p,i=8*f-M-1,n=(1<<i)-1,N=n>>1,e=-7,u=h?f-1:0,s=h?-1:1,c=o[t+u];for(u+=s,w=c&(1<<-e)-1,c>>=-e,e+=i;e>0;w=256*w+o[t+u],u+=s,e-=8);for(p=w&(1<<-e)-1,w>>=-e,e+=M;e>0;p=256*p+o[t+u],u+=s,e-=8);if(0===w)w=1-N;else{if(w===n)return p?NaN:1/0*(c?-1:1);p+=Math.pow(2,M),w-=N}return(c?-1:1)*p*Math.pow(2,w-M)},_e.write=function(o,t,h,M,f,w){var p,i,n,N=8*w-f-1,e=(1<<N)-1,u=e>>1,s=23===f?Math.pow(2,-24)-Math.pow(2,-77):0,c=M?0:w-1,l=M?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,p=e):(p=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-p))<1&&(p--,n*=2),(t+=p+u>=1?s/n:s*Math.pow(2,1-u))*n>=2&&(p++,n/=2),p+u>=e?(i=0,p=e):p+u>=1?(i=(t*n-1)*Math.pow(2,f),p+=u):(i=t*Math.pow(2,u-1)*Math.pow(2,f),p=0));f>=8;o[h+c]=255&i,c+=l,i/=256,f-=8);for(p=p<<f|i,N+=f;N>0;o[h+c]=255&p,c+=l,p/=256,N-=8);o[h+c-l]|=128*d}},3,[]);
|
|
19
19
|
__d(function(g,r,i,a,m,e,d){"use strict";r(d[0])},4,[5]);
|
|
20
|
-
__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]);var n=r(d[1]);(0,r(d[2]).renderRootComponent)(n.App)},5,[6,9,
|
|
20
|
+
__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]);var n=r(d[1]);(0,r(d[2]).renderRootComponent)(n.App)},5,[6,9,3457]);
|
|
21
21
|
__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]),r(d[1])},6,[7,8]);
|
|
22
22
|
__d(function(g,r,i,a,m,e,d){},7,[]);
|
|
23
23
|
__d(function(g,r,i,a,m,e,d){const _='undefined'==typeof window;globalThis.__webpack_chunk_load__=_=>g[`${__METRO_GLOBAL_PREFIX__}__loadBundleAsync`](_),globalThis.__webpack_require__=o=>{const t=ErrorUtils.reportFatalError;_&&(ErrorUtils.reportFatalError=_=>{throw _});try{return g[`${__METRO_GLOBAL_PREFIX__}__r`](o)}finally{_&&(ErrorUtils.reportFatalError=t)}}},8,[]);
|
|
24
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.App=function(){return(0,t.jsx)(c.Head.Provider,{children:(0,t.jsx)(n.ExpoRoot,{context:o.ctx})})};const t=r(d[0]),o=r(d[1]);r(d[2]);const n=r(d[3]),c=r(d[4]);r(d[5])},9,[10,12,17,746,
|
|
24
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.App=function(){return(0,t.jsx)(c.Head.Provider,{children:(0,t.jsx)(n.ExpoRoot,{context:o.ctx})})};const t=r(d[0]),o=r(d[1]);r(d[2]);const n=r(d[3]),c=r(d[4]);r(d[5])},9,[10,12,17,746,3451,3456]);
|
|
25
25
|
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},10,[11]);
|
|
26
26
|
__d(function(g,r,i,a,m,e,d){
|
|
27
27
|
/**
|
|
@@ -35,7 +35,7 @@ __d(function(g,r,i,a,m,e,d){
|
|
|
35
35
|
*/
|
|
36
36
|
"use strict";var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function o(t,o,f){var l=null;if(void 0!==f&&(l=""+f),void 0!==o.key&&(l=""+o.key),"key"in o)for(var y in f={},o)"key"!==y&&(f[y]=o[y]);else f=o;return o=f.ref,{$$typeof:n,type:t,key:l,ref:void 0!==o?o:null,props:f}}e.Fragment=t,e.jsx=o,e.jsxs=o},11,[]);
|
|
37
37
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ctx",{enumerable:!0,get:function(){return t}});const t=r(d[0])},12,[13]);
|
|
38
|
-
__d(function(g,r,i,a,m,e,d){const t=Object.defineProperties({},{"./(app)/(tabs)/_layout.tsx":{enumerable:!0,get:()=>r(d[0])},"./(app)/(tabs)/cameras.tsx":{enumerable:!0,get:()=>r(d[1])},"./(app)/(tabs)/events.tsx":{enumerable:!0,get:()=>r(d[2])},"./(app)/(tabs)/grids.tsx":{enumerable:!0,get:()=>r(d[3])},"./(app)/(tabs)/settings.tsx":{enumerable:!0,get:()=>r(d[4])},"./(app)/_layout.tsx":{enumerable:!0,get:()=>r(d[5])},"./(app)/camera/[id].tsx":{enumerable:!0,get:()=>r(d[6])},"./(app)/grid/[id]/edit.tsx":{enumerable:!0,get:()=>r(d[7])},"./(app)/grid/[id]/index.tsx":{enumerable:!0,get:()=>r(d[8])},"./(app)/settings/cameras.tsx":{enumerable:!0,get:()=>r(d[9])},"./_layout.tsx":{enumerable:!0,get:()=>r(d[10])},"./index.tsx":{enumerable:!0,get:()=>r(d[11])}});function n(n){return t[n]}n.keys=function(){return Object.keys(t)},n.resolve=function(t){throw new Error('Unimplemented Metro module context functionality')},m.exports=n},13,[14,2592,2804,2829,2850,2859,2860,3400,3401,
|
|
38
|
+
__d(function(g,r,i,a,m,e,d){const t=Object.defineProperties({},{"./(app)/(tabs)/_layout.tsx":{enumerable:!0,get:()=>r(d[0])},"./(app)/(tabs)/cameras.tsx":{enumerable:!0,get:()=>r(d[1])},"./(app)/(tabs)/events.tsx":{enumerable:!0,get:()=>r(d[2])},"./(app)/(tabs)/grids.tsx":{enumerable:!0,get:()=>r(d[3])},"./(app)/(tabs)/settings.tsx":{enumerable:!0,get:()=>r(d[4])},"./(app)/_layout.tsx":{enumerable:!0,get:()=>r(d[5])},"./(app)/camera/[id].tsx":{enumerable:!0,get:()=>r(d[6])},"./(app)/grid/[id]/edit.tsx":{enumerable:!0,get:()=>r(d[7])},"./(app)/grid/[id]/index.tsx":{enumerable:!0,get:()=>r(d[8])},"./(app)/settings/cameras.tsx":{enumerable:!0,get:()=>r(d[9])},"./_layout.tsx":{enumerable:!0,get:()=>r(d[10])},"./index.tsx":{enumerable:!0,get:()=>r(d[11])}});function n(n){return t[n]}n.keys=function(){return Object.keys(t)},n.resolve=function(t){throw new Error('Unimplemented Metro module context functionality')},m.exports=n},13,[14,2592,2804,2829,2850,2859,2860,3400,3401,3413,3438,3446]);
|
|
39
39
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);function o(){const o=(0,t.c)(1);let u;return o[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(n.TabsNavigator,{}),o[0]=u):u=o[0],u}},14,[15,19,10]);
|
|
40
40
|
__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},15,[16]);
|
|
41
41
|
__d(function(g,r,i,a,m,e,d){
|
|
@@ -15233,8 +15233,8 @@ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e
|
|
|
15233
15233
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useFaceInfo=function(y,I){const{controller:p,state:w}=(0,n.useConnection)(),[b,h]=(0,t.useState)(null),[C,v]=(0,t.useState)([]),[S,k]=(0,t.useState)(!1),[E,A]=(0,t.useState)(!1),[F,G]=(0,t.useState)(null),N=(0,t.useRef)(null),M=(0,t.useCallback)(async t=>{if('connected'===w&&I){k(!0);try{const n=p.getSystem();if(!n)return void k(!1);const c=n.trpcClient,[f,u]=await Promise.all([(0,o.capQuery)(c,'faceGallery','getFaceByTrack',{deviceId:y,trackId:I}),(0,o.capQuery)(c,'faceGallery','listIdentities',{})]);if(t.signal.aborted)return;h(s(f)),v(l(u))}catch(n){if(t.signal.aborted)return;c.log.warn('theater:detail:face','fetch failed',{trackId:I,error:String(n)})}finally{t.signal.aborted||k(!1)}}},[p,w,y,I]);(0,t.useEffect)(()=>{if(!I||'connected'!==w)return h(null),void v([]);N.current?.abort();const t=new AbortController;return N.current=t,M(t),()=>{t.abort()}},[M,I,w]);const R=(0,t.useCallback)(async(t,n)=>{A(!0),G(null);try{const o=p.getSystem();if(!o)throw new Error('Not connected');await u(o.trpcClient,'faceGallery','assignFace',{faceId:t,identityId:n});const c=new AbortController;await M(c)}catch(o){const s=o instanceof Error?o.message:String(o);c.log.warn('theater:detail:face','assignFace failed',{faceId:t,identityId:n,error:s}),G(s)}finally{A(!1)}},[p,M]),_=(0,t.useCallback)(async t=>{A(!0),G(null);try{const n=p.getSystem();if(!n)throw new Error('Not connected');await u(n.trpcClient,'faceGallery','unassignFace',{faceId:t});const o=new AbortController;await M(o)}catch(n){const o=n instanceof Error?n.message:String(n);c.log.warn('theater:detail:face','unassignFace failed',{faceId:t,error:o}),G(o)}finally{A(!1)}},[p,M]),z=(0,t.useCallback)(async(t,n)=>{A(!0),G(null);try{const o=p.getSystem();if(!o)throw new Error('Not connected');const c=o.trpcClient,s=f(await u(c,'faceGallery','createIdentity',{name:n}));if(!s)throw new Error('createIdentity returned no id');await u(c,'faceGallery','assignFace',{faceId:t,identityId:s});const l=new AbortController;await M(l)}catch(o){const s=o instanceof Error?o.message:String(o);c.log.warn('theater:detail:face','createAndAssign failed',{faceId:t,name:n,error:s}),G(s)}finally{A(!1)}},[p,M]),K=(0,t.useCallback)(()=>{G(null)},[]);return{faceInfo:b,identities:C,loading:S,mutating:E,error:F,assign:R,unassign:_,createAndAssign:z,clearError:K}};var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]);function s(t){return(0,o.isRecord)(t)?'string'!=typeof t.faceId||0===t.faceId.length||'string'!=typeof t.trackId||'number'!=typeof t.deviceId||'number'!=typeof t.timestamp?null:{faceId:t.faceId,deviceId:t.deviceId,trackId:t.trackId,timestamp:t.timestamp,recognizedIdentityId:'string'==typeof t.recognizedIdentityId?t.recognizedIdentityId:void 0,identityName:'string'==typeof t.identityName?t.identityName:void 0,assigned:'boolean'==typeof t.assigned&&t.assigned,base64:'string'==typeof t.base64&&t.base64.length>0?t.base64:void 0}:null}function l(t){if(!Array.isArray(t))return[];const n=[];for(const c of t)(0,o.isRecord)(c)&&'string'==typeof c.id&&'string'==typeof c.name&&n.push({id:c.id,name:c.name,sampleCount:'number'==typeof c.sampleCount?c.sampleCount:0,coverMediaKey:'string'==typeof c.coverMediaKey?c.coverMediaKey:void 0});return n}function f(t){return(0,o.isRecord)(t)&&'string'==typeof t.id?t.id:null}async function u(t,n,o,c){const s=t[n];if(null==s)throw new Error(`cap "${n}" not found`);const l=s[o],f=null!=l?l.mutate:void 0;if('function'!=typeof f)throw new Error(`"${n}.${o}" has no mutate`);return await f(c)}},2828,[17,2594,2809,2704]);
|
|
15234
15234
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);function o(){const o=(0,t.c)(1);let u;return o[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(n.GridsScreen,{}),o[0]=u):u=o[0],u}},2829,[15,2830,10]);
|
|
15235
15235
|
__d(function(_g,r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridsScreen=function(){const e=(0,o.c)(72),{t:c}=(0,b.useTranslation)(),{colors:g}=(0,y.useTheme)(),v=(0,h.useRouter)(),k=(0,f.useSafeAreaInsets)(),{server:W}=(0,j.useServer)(),E=W?.serverUrl??null,L=(0,S.useGridStore)(T),O=(0,S.useGridStore)(D),B=(0,S.useGridStore)(H),V=(0,S.useGridStore)(z),{data:q}=(0,I.useCameras)();let $;e[0]!==q?($=void 0===q?[]:q,e[0]=q,e[1]=$):$=e[1];const J=$;let K;e[2]!==J?(K=new Map(J.map(w)),e[2]=J,e[3]=K):K=e[3];const Q=K,X=Math.min(R,(0,A.useGridColumns)()),[Y,Z]=(0,t.useState)(null),[ee,re]=(0,t.useState)(null),[oe,te]=(0,t.useState)(null);let de,ne,le;e[4]!==O?(de=()=>{O()},ne=[O],e[4]=O,e[5]=de,e[6]=ne):(de=e[5],ne=e[6]);(0,t.useEffect)(de,ne),e[7]!==v?(le=e=>{te(e)},e[7]=v,e[8]=le):le=e[8];const se=le;let ie;e[9]!==B||e[10]!==se||e[11]!==c?(ie=()=>{const e=B("",c("v2.grids.defaultName"));se(e)},e[9]=B,e[10]=se,e[11]=c,e[12]=ie):ie=e[12];const ae=ie;let ue;e[13]!==V||e[14]!==Y?(ue=()=>{Y&&V(Y.id),Z(null)},e[13]=V,e[14]=Y,e[15]=ue):ue=e[15];const ce=ue;let fe;e[16]!==E?(fe=e=>{E&&re(e)},e[16]=E,e[17]=fe):fe=e[17];const ge=fe;let me;if(e[18]!==X||e[19]!==L){if(me=L.map(M),X>1){const e=me.length%X;if(e>0)for(let o=0;o<X-e;o++)me.push({kind:"pad",id:`pad-${o}`})}e[18]=X,e[19]=L,e[20]=me}else me=e[20];const be=me;let he,pe,ye,xe,Se,Ce,je,Ie,ve,Ae,Pe,Ge;e[21]!==g.background||e[22]!==k.top?(he={flex:1,backgroundColor:g.background,paddingTop:k.top},e[21]=g.background,e[22]=k.top,e[23]=he):he=e[23];e[24]!==Q||e[25]!==be||e[26]!==g.foregroundMuted||e[27]!==g.foregroundSubtle||e[28]!==g.primary||e[29]!==g.primaryForeground||e[30]!==g.surfaceHover||e[31]!==X||e[32]!==L.length||e[33]!==ae||e[34]!==k.bottom||e[35]!==se||e[36]!==v||e[37]!==E||e[38]!==ge||e[39]!==c?(pe=0===L.length?(0,G.jsxs)(n.default,{style:U.empty,children:[(0,G.jsx)(p.LayoutGrid,{size:40,color:g.foregroundSubtle}),(0,G.jsx)(l.default,{style:{color:g.foregroundMuted,fontSize:15},children:c("v2.grids.empty")}),(0,G.jsx)(l.default,{style:{color:g.foregroundSubtle,fontSize:12,textAlign:"center"},children:c("v2.grids.emptyHint")}),(0,G.jsxs)(i.default,{onPress:ae,accessibilityRole:"button",accessibilityLabel:c("v2.grids.createA11y"),style:e=>{const{pressed:o}=e;return{flexDirection:"row",alignItems:"center",gap:x.SPACING.sm,marginTop:x.SPACING.md,paddingVertical:x.SPACING.md,paddingHorizontal:x.SPACING.xl,borderRadius:x.RADIUS.md,backgroundColor:o?g.surfaceHover:g.primary}},children:[(0,G.jsx)(p.Plus,{size:18,color:g.primaryForeground}),(0,G.jsx)(l.default,{style:{color:g.primaryForeground,fontSize:15,fontWeight:"600"},children:c("v2.common.create")})]})]}):(0,G.jsx)(s.default,{data:be,numColumns:X,keyExtractor:N,columnWrapperStyle:X>1?{gap:x.SPACING.md}:void 0,contentContainerStyle:{padding:x.SPACING.md,paddingBottom:k.bottom+88,gap:x.SPACING.md},renderItem:e=>{const{item:o}=e;return"pad"===o.kind?(0,G.jsx)(n.default,{style:{flex:1}}):(0,G.jsx)(_,{grid:o.grid,camerasById:Q,onPress:()=>v.push(`/grid/${o.grid.id}`),onShare:()=>ge(o.grid),onEdit:()=>se(o.grid.id),onDelete:()=>Z(o.grid),canShare:null!==E})}},X),e[24]=Q,e[25]=be,e[26]=g.foregroundMuted,e[27]=g.foregroundSubtle,e[28]=g.primary,e[29]=g.primaryForeground,e[30]=g.surfaceHover,e[31]=X,e[32]=L.length,e[33]=ae,e[34]=k.bottom,e[35]=se,e[36]=v,e[37]=E,e[38]=ge,e[39]=c,e[40]=pe):pe=e[40];e[41]!==c?(ye=c("v2.grids.createA11y"),e[41]=c,e[42]=ye):ye=e[42];e[43]!==g.primary||e[44]!==g.surfaceHover||e[45]!==k.bottom?(xe=e=>{const{pressed:o}=e;return[U.fab,{bottom:k.bottom+x.SPACING.lg,backgroundColor:o?g.surfaceHover:g.primary,shadowColor:"#000"}]},e[43]=g.primary,e[44]=g.surfaceHover,e[45]=k.bottom,e[46]=xe):xe=e[46];e[47]!==g.primaryForeground?(Se=(0,G.jsx)(p.Plus,{size:26,color:g.primaryForeground}),e[47]=g.primaryForeground,e[48]=Se):Se=e[48];e[49]!==ae||e[50]!==ye||e[51]!==xe||e[52]!==Se?(Ce=(0,G.jsx)(i.default,{onPress:ae,accessibilityRole:"button",accessibilityLabel:ye,style:xe,hitSlop:8,children:Se}),e[49]=ae,e[50]=ye,e[51]=xe,e[52]=Se,e[53]=Ce):Ce=e[53];e[54]===Symbol.for("react.memo_cache_sentinel")?(je=()=>Z(null),e[54]=je):je=e[54];e[55]!==ce||e[56]!==Y?(Ie=(0,G.jsx)(F,{grid:Y,onCancel:je,onConfirm:ce}),e[55]=ce,e[56]=Y,e[57]=Ie):Ie=e[57];e[58]===Symbol.for("react.memo_cache_sentinel")?(ve=()=>re(null),e[58]=ve):ve=e[58];e[59]!==ee?(Ae=(0,G.jsx)(C.GridShareDialog,{grid:ee,onClose:ve}),e[59]=ee,e[60]=Ae):Ae=e[60];e[61]!==oe||e[62]!==g.background||e[63]!==g.border?(Pe=oe?(0,G.jsx)(u.default,{visible:!0,transparent:!0,animationType:"fade",onRequestClose:()=>te(null),children:(0,G.jsx)(n.default,{style:U.builderBackdrop,children:(0,G.jsx)(n.default,{style:[U.builderCard,{backgroundColor:g.background,borderColor:g.border}],children:(0,G.jsx)(P.GridBuilderScreen,{gridId:oe,onClose:()=>te(null)})})})}):null,e[61]=oe,e[62]=g.background,e[63]=g.border,e[64]=Pe):Pe=e[64];e[65]!==pe||e[66]!==Ce||e[67]!==Ie||e[68]!==Ae||e[69]!==Pe||e[70]!==he?(Ge=(0,G.jsxs)(n.default,{style:he,children:[pe,Ce,Ie,Ae,Pe]}),e[65]=pe,e[66]=Ce,e[67]=Ie,e[68]=Ae,e[69]=Pe,e[70]=he,e[71]=Ge):Ge=e[71];return Ge};var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),i=e(r(d[5])),u=e(r(d[6])),c=e(r(d[7]));r(d[8]);var f=r(d[9]),g=r(d[10]),b=r(d[11]),h=r(d[12]),p=r(d[13]),y=r(d[14]),x=r(d[15]),S=r(d[16]),C=r(d[17]),j=r(d[18]),I=r(d[19]),v=r(d[20]),A=r(d[21]),P=r(d[22]),G=r(d[23]);const k=4,R=3;function N(e){return"grid"===e.kind?e.grid.id:e.id}function M(e){return{kind:"grid",grid:e}}function w(e){return[e.id,e]}function z(e){return e.deleteGrid}function H(e){return e.createGrid}function D(e){return e.hydrate}function T(e){return e.grids}function _(e){const t=(0,o.c)(84),{grid:s,camerasById:u,onPress:c,onShare:f,onEdit:g,onDelete:h,canShare:x}=e,{t:C}=(0,b.useTranslation)(),{colors:j}=(0,y.useTheme)();let I;if(t[0]!==u||t[1]!==s.cameraIds){I=[];for(const e of s.cameraIds){const o=u.get(e);o&&I.push(o)}t[0]=u,t[1]=s.cameraIds,t[2]=I}else I=t[2];const v=I,A=s.cameraIds.length;let P;t[3]!==A||t[4]!==C?(P=0===A?C("v2.grids.countNone"):1===A?C("v2.grids.countOne"):C("v2.grids.countOther",{count:A}),t[3]=A,t[4]=C,t[5]=P):P=t[5];const R=P;let N;if(t[6]!==s.options||t[7]!==C){const e=(0,S.resolveGridOptions)(s.options).layout;N="auto"===e?C("v2.grids.layoutAuto"):C("v2.grids.layoutColumns",{count:e}),t[6]=s.options,t[7]=C,t[8]=N}else N=t[8];const M=N,w=s.audioOnIds?.length??0;let z;t[9]!==v?(z=v.slice(0,k),t[9]=v,t[10]=z):z=t[10];const H=z,D=v.length-H.length;let T,_,E,F,L,O,B,V,q,$,J,K,Q,X,Y,Z,ee,re,oe,te,de,ne;return t[11]!==j.border||t[12]!==j.surface||t[13]!==j.surfaceHover?(T=e=>{const{pressed:o}=e;return[U.card,{flex:1,backgroundColor:o?j.surfaceHover:j.surface,borderColor:j.border}]},t[11]=j.border,t[12]=j.surface,t[13]=j.surfaceHover,t[14]=T):T=t[14],t[15]!==j.border||t[16]!==j.foreground||t[17]!==j.foregroundSubtle||t[18]!==D||t[19]!==H?(_=(0,G.jsx)(n.default,{style:U.strip,children:0===H.length?(0,G.jsx)(n.default,{style:[U.thumb,U.stripEmpty,{borderColor:j.border}],children:(0,G.jsx)(p.LayoutGrid,{size:22,color:j.foregroundSubtle})}):(0,G.jsxs)(G.Fragment,{children:[H.map(W),D>0?(0,G.jsx)(n.default,{style:[U.thumb,U.overflowTile,{borderColor:j.border}],children:(0,G.jsxs)(l.default,{style:{color:j.foreground,fontSize:15,fontWeight:"700"},children:["+",D]})}):null]})}),t[15]=j.border,t[16]=j.foreground,t[17]=j.foregroundSubtle,t[18]=D,t[19]=H,t[20]=_):_=t[20],t[21]!==j.foreground?(E={flex:1,color:j.foreground,fontSize:16,fontWeight:"600"},t[21]=j.foreground,t[22]=E):E=t[22],t[23]!==s.name||t[24]!==E?(F=(0,G.jsx)(l.default,{style:E,numberOfLines:1,children:s.name}),t[23]=s.name,t[24]=E,t[25]=F):F=t[25],t[26]!==x||t[27]!==j.foreground||t[28]!==f||t[29]!==C?(L=x?(0,G.jsx)(i.default,{onPress:f,hitSlop:8,accessibilityRole:"button",accessibilityLabel:C("v2.grids.shareA11y"),children:(0,G.jsx)(p.Share2,{size:18,color:j.foreground})}):null,t[26]=x,t[27]=j.foreground,t[28]=f,t[29]=C,t[30]=L):L=t[30],t[31]!==C?(O=C("v2.grids.editA11y"),t[31]=C,t[32]=O):O=t[32],t[33]!==j.foreground?(B=(0,G.jsx)(p.Pencil,{size:18,color:j.foreground}),t[33]=j.foreground,t[34]=B):B=t[34],t[35]!==g||t[36]!==B||t[37]!==O?(V=(0,G.jsx)(i.default,{onPress:g,hitSlop:8,accessibilityRole:"button",accessibilityLabel:O,children:B}),t[35]=g,t[36]=B,t[37]=O,t[38]=V):V=t[38],t[39]!==C?(q=C("v2.grids.deleteA11y"),t[39]=C,t[40]=q):q=t[40],t[41]!==j.danger?($=(0,G.jsx)(p.Trash2,{size:18,color:j.danger}),t[41]=j.danger,t[42]=$):$=t[42],t[43]!==h||t[44]!==q||t[45]!==$?(J=(0,G.jsx)(i.default,{onPress:h,hitSlop:8,accessibilityRole:"button",accessibilityLabel:q,children:$}),t[43]=h,t[44]=q,t[45]=$,t[46]=J):J=t[46],t[47]!==V||t[48]!==J||t[49]!==F||t[50]!==L?(K=(0,G.jsxs)(n.default,{style:U.cardHeaderRow,children:[F,L,V,J]}),t[47]=V,t[48]=J,t[49]=F,t[50]=L,t[51]=K):K=t[51],t[52]!==j.foregroundMuted?(Q={color:j.foregroundMuted,fontSize:12},t[52]=j.foregroundMuted,t[53]=Q):Q=t[53],t[54]!==R||t[55]!==Q?(X=(0,G.jsx)(l.default,{style:Q,children:R}),t[54]=R,t[55]=Q,t[56]=X):X=t[56],t[57]!==j.border?(Y=[U.chip,{borderColor:j.border}],t[57]=j.border,t[58]=Y):Y=t[58],t[59]!==j.foregroundMuted?(Z=(0,G.jsx)(p.LayoutGrid,{size:12,color:j.foregroundMuted}),t[59]=j.foregroundMuted,t[60]=Z):Z=t[60],t[61]!==j.foregroundMuted?(ee={color:j.foregroundMuted,fontSize:11},t[61]=j.foregroundMuted,t[62]=ee):ee=t[62],t[63]!==M||t[64]!==ee?(re=(0,G.jsx)(l.default,{style:ee,children:M}),t[63]=M,t[64]=ee,t[65]=re):re=t[65],t[66]!==Y||t[67]!==Z||t[68]!==re?(oe=(0,G.jsxs)(n.default,{style:Y,children:[Z,re]}),t[66]=Y,t[67]=Z,t[68]=re,t[69]=oe):oe=t[69],t[70]!==w||t[71]!==j.border||t[72]!==j.foregroundMuted?(te=w>0?(0,G.jsxs)(n.default,{style:[U.chip,{borderColor:j.border}],children:[(0,G.jsx)(p.Volume2,{size:12,color:j.foregroundMuted}),(0,G.jsx)(l.default,{style:{color:j.foregroundMuted,fontSize:11},children:w})]}):null,t[70]=w,t[71]=j.border,t[72]=j.foregroundMuted,t[73]=te):te=t[73],t[74]!==X||t[75]!==oe||t[76]!==te?(de=(0,G.jsxs)(n.default,{style:U.metaRow,children:[X,oe,te]}),t[74]=X,t[75]=oe,t[76]=te,t[77]=de):de=t[77],t[78]!==c||t[79]!==K||t[80]!==de||t[81]!==T||t[82]!==_?(ne=(0,G.jsxs)(i.default,{onPress:c,accessibilityRole:"button",style:T,children:[_,K,de]}),t[78]=c,t[79]=K,t[80]=de,t[81]=T,t[82]=_,t[83]=ne):ne=t[83],ne}function W(e){return(0,G.jsx)(E,{camera:e},e.id)}function E(e){const t=(0,o.c)(7),{camera:l}=e,{colors:s}=(0,y.useTheme)(),{data:i}=(0,v.useSnapshot)(l.id,l.online),u=void 0===i?null:i;let c,f,b;return t[0]!==s.border?(c=[U.thumb,{borderColor:s.border,backgroundColor:"#000"}],t[0]=s.border,t[1]=c):c=t[1],t[2]!==u?(f=u?(0,G.jsx)(g.Image,{source:{uri:u},style:U.thumbImg,contentFit:"cover",transition:120}):(0,G.jsx)(n.default,{style:[U.thumbImg,{backgroundColor:"#111"}]}),t[2]=u,t[3]=f):f=t[3],t[4]!==c||t[5]!==f?(b=(0,G.jsx)(n.default,{style:c,children:f}),t[4]=c,t[5]=f,t[6]=b):b=t[6],b}function F(e){const t=(0,o.c)(59),{grid:s,onCancel:c,onConfirm:f}=e,{t:g}=(0,b.useTranslation)(),{colors:h}=(0,y.useTheme)(),p=null!==s;let S,C,j,I,v;t[0]!==h.backgroundElevated||t[1]!==h.border?(S=[U.modalCard,{backgroundColor:h.backgroundElevated,borderColor:h.border}],t[0]=h.backgroundElevated,t[1]=h.border,t[2]=S):S=t[2],t[3]!==h.foreground?(C={color:h.foreground,fontSize:17,fontWeight:"700"},t[3]=h.foreground,t[4]=C):C=t[4],t[5]!==g?(j=g("v2.grids.deleteTitle"),t[5]=g,t[6]=j):j=t[6],t[7]!==C||t[8]!==j?(I=(0,G.jsx)(l.default,{style:C,children:j}),t[7]=C,t[8]=j,t[9]=I):I=t[9],t[10]!==h.foregroundMuted?(v={color:h.foregroundMuted,fontSize:14},t[10]=h.foregroundMuted,t[11]=v):v=t[11];const A=s?.name??"";let P,k,R,N,M,w,z,H,D,T,_,W,E,F,O,B,V;return t[12]!==g||t[13]!==A?(P=g("v2.grids.deleteConfirm",{name:A}),t[12]=g,t[13]=A,t[14]=P):P=t[14],t[15]!==v||t[16]!==P?(k=(0,G.jsx)(l.default,{style:v,children:P}),t[15]=v,t[16]=P,t[17]=k):k=t[17],t[18]===Symbol.for("react.memo_cache_sentinel")?(R={flexDirection:"row",justifyContent:"flex-end",gap:x.SPACING.md},t[18]=R):R=t[18],t[19]!==h.surfaceHover?(N=e=>{const{pressed:o}=e;return{paddingVertical:x.SPACING.md,paddingHorizontal:x.SPACING.xl,borderRadius:x.RADIUS.md,backgroundColor:o?h.surfaceHover:"transparent"}},t[19]=h.surfaceHover,t[20]=N):N=t[20],t[21]!==h.foregroundMuted?(M={color:h.foregroundMuted,fontSize:15},t[21]=h.foregroundMuted,t[22]=M):M=t[22],t[23]!==g?(w=g("common.cancel"),t[23]=g,t[24]=w):w=t[24],t[25]!==M||t[26]!==w?(z=(0,G.jsx)(l.default,{style:M,children:w}),t[25]=M,t[26]=w,t[27]=z):z=t[27],t[28]!==c||t[29]!==N||t[30]!==z?(H=(0,G.jsx)(i.default,{onPress:c,style:N,children:z}),t[28]=c,t[29]=N,t[30]=z,t[31]=H):H=t[31],t[32]!==h.danger||t[33]!==h.surfaceHover?(D=e=>{const{pressed:o}=e;return{paddingVertical:x.SPACING.md,paddingHorizontal:x.SPACING.xl,borderRadius:x.RADIUS.md,backgroundColor:o?h.surfaceHover:h.danger}},t[32]=h.danger,t[33]=h.surfaceHover,t[34]=D):D=t[34],t[35]===Symbol.for("react.memo_cache_sentinel")?(T={color:"#fff",fontSize:15,fontWeight:"600"},t[35]=T):T=t[35],t[36]!==g?(_=g("common.delete"),t[36]=g,t[37]=_):_=t[37],t[38]!==_?(W=(0,G.jsx)(l.default,{style:T,children:_}),t[38]=_,t[39]=W):W=t[39],t[40]!==f||t[41]!==D||t[42]!==W?(E=(0,G.jsx)(i.default,{onPress:f,style:D,children:W}),t[40]=f,t[41]=D,t[42]=W,t[43]=E):E=t[43],t[44]!==H||t[45]!==E?(F=(0,G.jsxs)(n.default,{style:R,children:[H,E]}),t[44]=H,t[45]=E,t[46]=F):F=t[46],t[47]!==S||t[48]!==F||t[49]!==I||t[50]!==k?(O=(0,G.jsxs)(i.default,{style:S,onPress:L,children:[I,k,F]}),t[47]=S,t[48]=F,t[49]=I,t[50]=k,t[51]=O):O=t[51],t[52]!==c||t[53]!==O?(B=(0,G.jsx)(i.default,{style:U.backdrop,onPress:c,children:O}),t[52]=c,t[53]=O,t[54]=B):B=t[54],t[55]!==c||t[56]!==p||t[57]!==B?(V=(0,G.jsx)(u.default,{visible:p,transparent:!0,animationType:"fade",onRequestClose:c,children:B}),t[55]=c,t[56]=p,t[57]=B,t[58]=V):V=t[58],V}function L(){}const U=c.default.create({empty:{flex:1,alignItems:'center',justifyContent:'center',padding:x.SPACING['2xl'],gap:x.SPACING.md},fab:{position:'absolute',right:x.SPACING.lg,width:56,height:56,borderRadius:28,alignItems:'center',justifyContent:'center',shadowOpacity:.35,shadowRadius:8,shadowOffset:{width:0,height:3},elevation:6},card:{borderWidth:1,borderRadius:x.RADIUS.md,padding:x.SPACING.md,gap:x.SPACING.md},strip:{flexDirection:'row',gap:x.SPACING.xs,height:72},thumb:{flex:1,height:'100%',borderRadius:x.RADIUS.sm,borderWidth:1,overflow:'hidden',alignItems:'center',justifyContent:'center'},thumbImg:{width:'100%',height:'100%'},stripEmpty:{backgroundColor:'#0000'},overflowTile:{backgroundColor:'#0006',flex:0,width:56},cardHeaderRow:{flexDirection:'row',alignItems:'center',gap:x.SPACING.lg},metaRow:{flexDirection:'row',alignItems:'center',gap:x.SPACING.sm},chip:{flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:x.SPACING.sm,paddingVertical:2,borderRadius:x.RADIUS.sm,borderWidth:1},backdrop:{flex:1,backgroundColor:'#0009',alignItems:'center',justifyContent:'center',padding:x.SPACING['2xl']},modalCard:{width:'100%',maxWidth:380,borderWidth:1,borderRadius:x.RADIUS.xl,padding:x.SPACING.xl,gap:x.SPACING.lg},builderBackdrop:{flex:1,backgroundColor:'#0009',alignItems:'center',justifyContent:'center',padding:x.SPACING.xl},builderCard:{width:'100%',maxWidth:960,height:'88%',borderWidth:1,borderRadius:x.RADIUS.xl,overflow:'hidden'}})},2830,[15,17,20,112,138,252,245,33,136,466,2712,786,743,813,2587,2589,2798,2831,2812,2739,2800,2590,2841,10]);
|
|
15236
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridShareDialog=function(e){const l=(0,t.c)(7),{grid:o,onClose:n}=e,s=null!==o;let c,h;l[0]!==o||l[1]!==n?(c=o?(0,H.jsx)(N,{grid:o,onClose:n},o.id):null,l[0]=o,l[1]=n,l[2]=c):c=l[2];l[3]!==n||l[4]!==s||l[5]!==c?(h=(0,H.jsx)(u.default,{visible:s,transparent:!0,animationType:"fade",onRequestClose:n,children:c}),l[3]=n,l[4]=s,l[5]=c,l[6]=h):h=l[6];return h};var t=r(d[0]),l=r(d[1]),o=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),h=e(r(d[7])),S=r(d[8]),f=r(d[9]),v=r(d[10]),
|
|
15237
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SHARE_URL_VERSION",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GRID_EMBED_PATH",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"shareQualitySchema",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"shareLayoutSchema",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"shareHighlightSchema",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"gridShareParamsSchema",{enumerable:!0,get:function(){return s}}),e.encodeBase64UrlJson=v,e.decodeBase64UrlJson=b,e.encodeGridShareQuery=p,e.buildGridShareUrl=function(n,t,i){return`${n.replace(/\/+$/,'')}${o}?${p(t)}#t=${encodeURIComponent(i)}`},e.readShareToken=z,e.isShareUrl=function(n,t){return new URLSearchParams(y(n,'?')).has('v')||null!==z(t)},e.decodeGridShareUrl=function(n,o){const u=new URLSearchParams(y(n,'?')),c=u.get('mode');if(null!==c&&'grid'!==c)return
|
|
15236
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridShareDialog=function(e){const l=(0,t.c)(7),{grid:o,onClose:n}=e,s=null!==o;let c,h;l[0]!==o||l[1]!==n?(c=o?(0,H.jsx)(N,{grid:o,onClose:n},o.id):null,l[0]=o,l[1]=n,l[2]=c):c=l[2];l[3]!==n||l[4]!==s||l[5]!==c?(h=(0,H.jsx)(u.default,{visible:s,transparent:!0,animationType:"fade",onRequestClose:n,children:c}),l[3]=n,l[4]=s,l[5]=c,l[6]=h):h=l[6];return h};var t=r(d[0]),l=r(d[1]),o=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),h=e(r(d[7])),S=r(d[8]),f=r(d[9]),v=r(d[10]),b=r(d[11]),p=r(d[12]),x=r(d[13]),y=r(d[14]),C=r(d[15]),j=r(d[16]),A=r(d[17]),I=r(d[18]),w=r(d[19]),P=r(d[20]),T=r(d[21]),H=r(d[22]);function N({grid:e,onClose:t}){const{t:u}=(0,S.useTranslation)(),{colors:h}=(0,v.useTheme)(),{server:N}=(0,A.useServer)(),{controller:G}=(0,I.useConnection)(),{settings:D}=(0,w.useSettings)(),L=N?.serverUrl??null,z=(0,p.resolveGridOptions)(e.options),[M,O]=(0,l.useState)(z.quality),[_,E]=(0,l.useState)(R(z.layout)),[U,V]=(0,l.useState)(z.showName),[q,W]=(0,l.useState)(!1),[F,Z]=(0,l.useState)(!1),[$,B]=(0,l.useState)(!1),[J,K]=(0,l.useState)(()=>(0,p.withHighlightDefaults)(e.highlight)),[Q,X]=(0,l.useState)(y.DEFAULT_SHARE_TTL),[Y,ee]=(0,l.useState)(!1),[te,le]=(0,l.useState)(null),[oe,ae]=(0,l.useState)(!1),re=[...(0,p.visibleGridCameraIds)(e)],ie=new Set(re),ne=(e.audioOnIds??[]).filter(e=>ie.has(e)),de=[{value:'auto',label:u('v2.gridShare.optionAuto')},{value:'high',label:u('v2.gridShare.optionHigh')},{value:'medium',label:u('v2.gridShare.optionMedium')},{value:'low',label:u('v2.gridShare.optionLow')}],se=[{value:'auto',label:u('v2.gridShare.optionAuto')},{value:'2',label:'2'},{value:'3',label:'3'},{value:'4',label:'4'}],ue=y.SHARE_TTL_CHOICES.map(e=>({value:e,label:u(`v2.gridShare.ttl_${e}`)})),ce=null!==L&&re.length>0&&!Y,ge=async()=>{if(null!==L&&0!==re.length&&!Y){ee(!0),ae(!1),le(null);try{const l=G.getSystem();if(!l)return void ae(!0);const o=await(0,C.capMutate)(l.trpcClient,'auth','createShareToken',{scope:{kind:'grid-view',deviceIds:re},ttlSec:(0,y.ttlChoiceToSec)(Q)}),n=(0,y.parseShareTokenMint)(o);if(null===n)return void ae(!0);const s=$?{enabled:!0,motion:J.motion,audio:J.audio,audioDb:J.audioDb,audioHoldSec:J.audioHoldSec,detection:J.detection,detectionHoldSec:J.detectionHoldSec,detectionClasses:[...J.detectionClasses],appearance:Object.assign({},D.highlight)}:void 0,u=Object.assign({devices:re,layout:(t=_,'auto'===t?'auto':Number(t)),quality:M,showName:U},ne.length>0?{audioOnIds:ne}:{},q?{activeOnly:!0}:{},F?{boxes:!0}:{},void 0!==s?{highlight:s}:{}),c=(0,x.buildGridShareUrl)(L,u,n.token);await(0,j.shareOrCopy)(c,{title:e.name}),le({url:c,expiresAt:n.expiresAt})}finally{ee(!1)}var t}};return(0,H.jsx)(s.default,{style:k.backdrop,onPress:t,children:(0,H.jsxs)(s.default,{style:[k.card,{backgroundColor:h.backgroundElevated,borderColor:h.border}],onPress:()=>{},children:[(0,H.jsx)(n.default,{style:{color:h.foreground,fontSize:17,fontWeight:'700'},children:u('v2.gridShare.title',{name:e.name})}),(0,H.jsxs)(c.default,{style:{maxHeight:420},contentContainerStyle:{gap:b.SPACING.md},children:[(0,H.jsx)(n.default,{style:[k.fieldLabel,{color:h.foregroundMuted}],children:u('v2.gridShare.quality')}),(0,H.jsx)(P.SegmentedControl,{options:de,value:M,onChange:O}),(0,H.jsx)(n.default,{style:[k.fieldLabel,{color:h.foregroundMuted}],children:u('v2.gridShare.layout')}),(0,H.jsx)(P.SegmentedControl,{options:se,value:_,onChange:E}),(0,H.jsx)(T.PanelToggleRow,{icon:f.Tag,label:u('v2.gridShare.showNames'),value:U,onValueChange:()=>V(e=>!e)}),(0,H.jsx)(T.PanelToggleRow,{icon:f.Filter,label:u('v2.gridShare.activeOnly'),value:q,onValueChange:()=>W(e=>!e)}),(0,H.jsx)(T.PanelToggleRow,{icon:f.SquareDashed,label:u('v2.gridShare.boxes'),value:F,onValueChange:()=>Z(e=>!e)}),(0,H.jsx)(T.PanelToggleRow,{icon:f.Zap,label:u('v2.gridShare.highlightEnable'),value:$,onValueChange:()=>B(e=>!e)}),$?(0,H.jsx)(T.HighlightTriggerRows,{highlight:J,onSetHighlight:e=>K(t=>Object.assign({},t,e))}):null,ne.length>0?(0,H.jsx)(n.default,{style:{color:h.foregroundMuted,fontSize:12},children:u('v2.gridShare.audioSummary',{count:ne.length})}):null,(0,H.jsx)(n.default,{style:[k.fieldLabel,{color:h.foregroundMuted}],children:u('v2.gridShare.ttlTitle')}),(0,H.jsx)(P.SegmentedControl,{options:ue,value:Q,onChange:X}),(0,H.jsx)(n.default,{style:{color:h.foregroundSubtle,fontSize:12},children:u('v2.gridShare.tokenNotice')})]}),oe?(0,H.jsx)(n.default,{style:{color:h.danger,fontSize:13},children:u('v2.gridShare.error')}):null,te?(0,H.jsx)(n.default,{style:{color:h.foregroundMuted,fontSize:13},children:null===te.expiresAt?u('v2.gridShare.copiedNever'):u('v2.gridShare.copiedExpires',{date:new Date(te.expiresAt).toLocaleDateString()})}):null,(0,H.jsxs)(o.default,{style:{flexDirection:'row',justifyContent:'flex-end',gap:b.SPACING.md},children:[(0,H.jsx)(s.default,{onPress:t,accessibilityRole:"button",style:({pressed:e})=>({paddingVertical:b.SPACING.md,paddingHorizontal:b.SPACING.xl,borderRadius:b.RADIUS.md,backgroundColor:e?h.surfaceHover:'transparent'}),children:(0,H.jsx)(n.default,{style:{color:h.foregroundMuted,fontSize:15},children:u('common.cancel')})}),(0,H.jsxs)(s.default,{onPress:()=>{ge()},disabled:!ce,accessibilityRole:"button",accessibilityLabel:u('v2.gridShare.copyLink'),style:({pressed:e})=>({flexDirection:'row',alignItems:'center',gap:b.SPACING.sm,paddingVertical:b.SPACING.md,paddingHorizontal:b.SPACING.xl,borderRadius:b.RADIUS.md,opacity:ce?1:.5,backgroundColor:e?h.surfaceHover:h.primary}),children:[(0,H.jsx)(f.Link2,{size:16,color:h.primaryForeground}),(0,H.jsx)(n.default,{style:{color:h.primaryForeground,fontSize:15,fontWeight:'600'},children:u(Y?'v2.gridShare.creating':'v2.gridShare.copyLink')})]})]})]})})}function R(e){return 2===e?'2':3===e?'3':4===e?'4':'auto'}const k=h.default.create({backdrop:{flex:1,backgroundColor:'#0009',alignItems:'center',justifyContent:'center',padding:b.SPACING['2xl']},card:{width:'100%',maxWidth:440,borderWidth:1,borderRadius:b.RADIUS.xl,padding:b.SPACING.xl,gap:b.SPACING.lg},fieldLabel:{fontSize:12,fontWeight:'600'}})},2831,[15,17,20,112,252,245,147,33,786,813,2587,2589,2798,2832,2833,2809,2834,2812,2594,2836,2837,2838,10]);
|
|
15237
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SHARE_URL_VERSION",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"GRID_EMBED_PATH",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"shareQualitySchema",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"shareLayoutSchema",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"shareHighlightSchema",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"gridShareParamsSchema",{enumerable:!0,get:function(){return s}}),e.encodeBase64UrlJson=v,e.decodeBase64UrlJson=b,e.encodeGridShareQuery=p,e.buildGridShareUrl=function(n,t,i){return`${n.replace(/\/+$/,'')}${o}?${p(t)}#t=${encodeURIComponent(i)}`},e.readShareToken=z,e.isShareUrl=function(n,t){return new URLSearchParams(y(n,'?')).has('v')||null!==z(t)},e.decodeGridShareUrl=function(n,o){const u=new URLSearchParams(y(n,'?')),c=u.get('mode');if(null!==c&&'grid'!==c)return $(`unsupported mode "${c}"`);const f=u.get('v');if(null===f)return $('missing share-link version (v)');if(f!==String(t))return $(`unsupported share-link version "${f}"`);const h=u.get('devices'),v=null===h?null:O(h);if(null===v||0===v.length)return $('invalid or missing devices list');const p=u.get('layout');let S;if(null===p||'auto'===p)S='auto';else{if(!(/^\d+$/.test(p)&&Number(p)>=1))return $(`invalid layout "${p}"`);S=Number(p)}const P=u.get('q')??'auto',j=i.safeParse(P);if(!j.success)return $(`invalid quality "${P}"`);const U=u.get('names')??'0';if('0'!==U&&'1'!==U)return $(`invalid names flag "${U}"`);const N=u.get('audio');let k;if(null!==N){const n=O(N);if(null===n)return $(`invalid audio list "${N}"`);k=n}const I=u.get('activeOnly');if(null!==I&&'0'!==I&&'1'!==I)return $(`invalid activeOnly flag "${I}"`);const R='1'===I,_=u.get('boxes');if(null!==_&&'0'!==_&&'1'!==_)return $(`invalid boxes flag "${_}"`);const w='1'===_,x=u.get('hl');let A;if(null!==x){const n=b(x),t=l.safeParse(n);if(null===n||!t.success)return $('invalid highlight config (hl)');A=t.data}const q=Object.assign({devices:[...v],layout:S,quality:j.data,showName:'1'===U},void 0!==k&&k.length>0?{audioOnIds:[...k]}:{},R?{activeOnly:!0}:{},w?{boxes:!0}:{},void 0!==A?{highlight:A}:{}),C=s.safeParse(q);if(!C.success)return $(C.error.issues.map(n=>`${n.path.join('.')||'(root)'}: ${n.message}`).join('; '));return{ok:!0,params:C.data,token:z(o)}};var n=r(d[0]);const t=1,o='/addon/stream-broker/embed/',i=n.z.enum(['auto','high','medium','low']),u=n.z.union([n.z.literal('auto'),n.z.number().int().min(1)]),l=n.z.object({enabled:n.z.boolean(),motion:n.z.boolean(),audio:n.z.enum(['off','sensor','level']),audioDb:n.z.number(),audioHoldSec:n.z.number(),detection:n.z.boolean(),detectionHoldSec:n.z.number(),detectionClasses:n.z.array(n.z.string()).optional(),appearance:n.z.object({motionColor:n.z.string(),audioColor:n.z.string(),detectionColor:n.z.string(),thickness:n.z.number()}).optional()}),s=n.z.object({devices:n.z.array(n.z.number().int().nonnegative()).min(1),layout:u,quality:i,showName:n.z.boolean(),audioOnIds:n.z.array(n.z.number().int().nonnegative()).optional(),activeOnly:n.z.boolean().optional(),boxes:n.z.boolean().optional(),highlight:l.optional()}),c='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';function f(n){const t=[];for(const o of n){const n=o.codePointAt(0);void 0!==n&&(n<=127?t.push(n):n<=2047?t.push(192|n>>6,128|63&n):n<=65535?t.push(224|n>>12,128|n>>6&63,128|63&n):t.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return t}function h(n){let t='',o=0;for(;o<n.length;){const i=n[o];if(void 0===i)return null;let u,l;if(i<128)u=i,l=0;else if(192==(224&i))u=31&i,l=1;else if(224==(240&i))u=15&i,l=2;else{if(240!=(248&i))return null;u=7&i,l=3}for(let t=1;t<=l;t++){const i=n[o+t];if(void 0===i||128!=(192&i))return null;u=u<<6|63&i}o+=l+1,t+=String.fromCodePoint(u)}return t}function v(n){const t=f(JSON.stringify(n));let o='';for(let n=0;n<t.length;n+=3){const i=t[n]??0,u=t[n+1],l=t[n+2];o+=c.charAt(i>>2),o+=c.charAt((3&i)<<4|(u??0)>>4),void 0!==u&&(o+=c.charAt((15&u)<<2|(l??0)>>6)),void 0!==l&&(o+=c.charAt(63&l))}return o}function b(n){if(n.length%4==1)return null;const t=[];for(const o of n){const n=c.indexOf(o);if(n<0)return null;t.push(n)}const o=[];for(let n=0;n<t.length;n+=4){const i=t[n],u=t[n+1];if(void 0===i||void 0===u)return null;const l=t[n+2],s=t[n+3];o.push(i<<2|u>>4),void 0!==l&&o.push((15&u)<<4|l>>2),void 0!==s&&void 0!==l&&o.push((3&l)<<6|s)}const i=h(o);if(null===i)return null;try{return JSON.parse(i)}catch{return null}}function p(n){const o=['mode=grid',`v=${t}`,`devices=${n.devices.join(',')}`,`layout=${n.layout}`,`q=${n.quality}`,"names="+(n.showName?'1':'0')];return void 0!==n.audioOnIds&&n.audioOnIds.length>0&&o.push(`audio=${n.audioOnIds.join(',')}`),!0===n.activeOnly&&o.push('activeOnly=1'),!0===n.boxes&&o.push('boxes=1'),void 0!==n.highlight&&o.push(`hl=${v(n.highlight)}`),o.join('&')}function y(n,t){return n.startsWith(t)?n.slice(t.length):n}function z(n){const t=new URLSearchParams(y(n,'#')).get('t');return null!==t&&t.length>0?t:null}function O(n){if(0===n.length)return null;const t=[];for(const o of n.split(',')){if(!/^\d+$/.test(o))return null;t.push(Number(o))}return t}function $(n){return{ok:!1,error:n}}},2832,[2623]);
|
|
15238
15238
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SHARE_TTL_CHOICES",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DEFAULT_SHARE_TTL",{enumerable:!0,get:function(){return c}}),e.ttlChoiceToSec=function(n){switch(n){case'1d':return u;case'7d':return 604800;case'30d':return 2592e3;case'never':return'never'}},Object.defineProperty(e,"shareTokenMintSchema",{enumerable:!0,get:function(){return s}}),e.parseShareTokenMint=function(n){const t=s.safeParse(n);return t.success?t.data:null};var n=r(d[0]);const t=['1d','7d','30d','never'],c='7d',u=86400;const s=n.z.object({id:n.z.string().min(1),token:n.z.string().min(1),expiresAt:n.z.number().nullable()})},2833,[2623]);
|
|
15239
15239
|
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"gridToExportShape",{enumerable:!0,get:function(){return n.gridToExportShape}}),Object.defineProperty(_e,"buildGridExport",{enumerable:!0,get:function(){return n.buildGridExport}}),Object.defineProperty(_e,"serializeGrid",{enumerable:!0,get:function(){return n.serializeGrid}}),Object.defineProperty(_e,"serializeGrids",{enumerable:!0,get:function(){return n.serializeGrids}}),Object.defineProperty(_e,"parseGridExport",{enumerable:!0,get:function(){return n.parseGridExport}}),_e.shareOrCopy=o,_e.exportGrid=async function(e,t){await o((0,n.serializeGrid)(e),{title:e.name,copiedMessage:t})},_e.exportAllGrids=async function(e,t){if(0===e.length)return;await o((0,n.serializeGrids)(e),{copiedMessage:t})},r(d[0]);var e,t=r(d[1]),n=((e=t)&&e.__esModule,r(d[2]));async function o(e,t={}){try{await navigator.clipboard.writeText(e),t.copiedMessage&&'undefined'!=typeof window&&window.alert(t.copiedMessage)}catch(e){console.error('[grid-export] clipboard copy failed',e)}}},2834,[136,238,2835]);
|
|
15240
15240
|
__d(function(_g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.gridToExportShape=n,_e.buildGridExport=o,_e.serializeGrid=function(t){return JSON.stringify(o([t]),null,2)},_e.serializeGrids=function(t){return JSON.stringify(o(t),null,2)},_e.parseGridExport=function(t){if(!t)return[];let e;try{e=JSON.parse(t)}catch{return[]}const n=u(e),o=[];for(const t of n){const e=l(t);e&&o.push(e)}return o};const t='camstack-grids',e=1;function n(t){const e={name:t.name,cameraIds:[...t.cameraIds]},n=t.hiddenCameraIds&&t.hiddenCameraIds.length>0?Object.assign({},e,{hiddenCameraIds:[...t.hiddenCameraIds]}):e;return t.options?Object.assign({},n,{options:t.options}):n}function o(o){return{type:t,version:e,grids:o.map(n)}}function u(t){return s(t)?t.grids:Array.isArray(t)?t:'object'==typeof t&&null!==t?[t]:[]}function s(e){if('object'!=typeof e||null===e)return!1;const n=e;return n.type===t&&Array.isArray(n.grids)}function l(t){if('object'!=typeof t||null===t)return null;const e=t;if('string'!=typeof e.name)return null;if(!c(e.cameraIds))return null;const n=Array.from(new Set(e.cameraIds)),o=new Set(n),u={name:e.name.trim()||'Griglia importata',cameraIds:n};if(c(e.hiddenCameraIds)){const t=e.hiddenCameraIds.filter(t=>o.has(t));t.length>0&&(u.hiddenCameraIds=t)}const s=y(e.options);return s&&(u.options=s),u}function c(t){return Array.isArray(t)&&t.every(t=>'number'==typeof t)}function y(t){if('object'!=typeof t||null===t)return;const e=t,n={};return'boolean'==typeof e.showName&&(n.showName=e.showName),'string'!=typeof e.quality||'auto'!==e.quality&&'high'!==e.quality&&'medium'!==e.quality&&'low'!==e.quality||(n.quality=e.quality),('auto'===e.layout||'number'==typeof e.layout&&Number.isFinite(e.layout)&&e.layout>=1)&&(n.layout=e.layout),void 0===n.showName&&void 0===n.quality&&void 0===n.layout?void 0:n}},2835,[]);
|
|
@@ -15263,7 +15263,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";var A,I;Object.defineProperty(e,'__esMo
|
|
|
15263
15263
|
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.clearAppCache=async function(e){try{e.clear()}catch(e){console.error('[clear-cache] react-query clear failed',e)}try{await l.Image.clearMemoryCache(),await l.Image.clearDiskCache()}catch(e){console.error('[clear-cache] image cache clear failed',e)}try{const e=(await t.default.getAllKeys()).filter(e=>o.some(c=>e.startsWith(c)));e.length>0&&await t.default.multiRemove(e)}catch(e){console.error('[clear-cache] AsyncStorage cache clear failed',e)}};var e,c=r(d[0]),t=(e=c)&&e.__esModule?e:{default:e},l=r(d[1]);const o=['@camstack/v2/cache/','@camstack/v2/snapshot/']},2858,[2792,2712]);
|
|
15264
15264
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var n=r(d[0]);r(d[1]);var t=r(d[2]),o=r(d[3]),c=r(d[4]),s=r(d[5]);function l(){const l=(0,n.c)(9),{server:u,token:f,initialCandidates:v,onEndpointsDiscovered:_}=(0,o.useServer)(),h=u?.serverUrl;let b;l[0]!==v||l[1]!==_||l[2]!==h||l[3]!==f?(b=h?{serverUrl:h,token:f??void 0,candidates:v.length>0?[...v]:[h],onEndpointsDiscovered:_}:null,l[0]=v,l[1]=_,l[2]=h,l[3]=f,l[4]=b):b=l[4];const j=b;if(!u||!f||!j){let n;return l[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.jsx)(t.Redirect,{href:"/"}),l[5]=n):n=l[5],n}let p,S;return l[6]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(t.Stack,{screenOptions:{headerShown:!1}}),l[6]=p):p=l[6],l[7]!==j?(S=(0,s.jsx)(c.ConnectionProvider,{config:j,children:p}),l[7]=j,l[8]=S):S=l[8],S}},2859,[15,17,743,2812,2594,10]);
|
|
15265
15265
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),c=r(d[3]);function l(){const l=(0,t.c)(2),{id:o}=(0,n.useLocalSearchParams)(),s=Number(o);if(!Number.isFinite(s))return null;let f;return l[0]!==s?(f=(0,c.jsx)(u.CameraDetailScreen,{deviceId:s}),l[0]=s,l[1]=f):f=l[1],f}},2860,[15,743,2861,10]);
|
|
15266
|
-
__d(function(g,r,i,a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}function t(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),_e.CameraDetailScreen=function({deviceId:e}){const{t:t}=(0,f.useTranslation)(),o=(0,_.useRouter)(),{colors:H,mode:V}=(0,E.useTheme)(),me=(0,p.useSafeAreaInsets)(),{width:be,height:Se}=(0,h.default)(),{controller:Ce}=(0,K.useConnection)(),{name:ve,features:xe}=se(e),{settings:Te,hydrated:ye}=(0,Y.useSettings)(),ke=xe.includes(J.FEATURE.ptz),Ee=xe.includes(J.FEATURE.twoWayAudio),He=(0,Q.useCameraPrefsStore)(t=>t.prefs.byId[e]?.quality),Oe=(0,Q.useCameraPrefsStore)(e=>e.setCameraQuality),[je,De]=(0,n.useState)(He??'auto'),we=(0,n.useRef)(!1);(0,n.useEffect)(()=>{He&&!we.current&&(we.current=!0,De(He))},[He]);const Ie=(0,n.useMemo)(()=>(0,X.qualityToTarget)(je),[je]),[Be,We]=(0,n.useState)(!1),Pe=(0,n.useCallback)(()=>We(!0),[]),Ae=(0,n.useCallback)(()=>We(!1),[]),Le=(0,n.useCallback)(t=>{De(t),Oe(e,t)},[e,Oe]),{active:Re}=(0,N.useMotion)(e,!0),ze=(0,Q.useCameraPrefsStore)(t=>t.prefs.byId[e]?.highlight),Ge=(0,n.useMemo)(()=>(0,U.withHighlightDefaults)(ze),[ze]),Fe=(0,Q.useCameraPrefsStore)(e=>e.setCameraHighlight),Ve=(0,Q.useCameraPrefsStore)(e=>e.hydrate);(0,n.useEffect)(()=>{Ve()},[Ve]);const Je=(0,q.useDetections)(e,Ge.detection&&!0),Me=Ge.detection&&Je.boxes.some(e=>0===Ge.detectionClasses.length||Ge.detectionClasses.includes(e.label)),Ke=(0,$.useHeld)(Me,1e3*Ge.detectionHoldSec),Ye=(0,Z.useAudioActive)(e,Ge.audio,Ge.audioDb),Ne=(0,$.useHeld)('off'!==Ge.audio&&Ye,1e3*Ge.audioHoldSec),qe=Ke?'detection':Ne?'audio':Ge.motion&&Re?'motion':null,[Ze,$e]=((0,n.useMemo)(()=>Object.assign({enabled:!0},Ge,{appearance:Te.highlight}),[Ge,Te.highlight]),(0,n.useState)(!1)),Qe=(0,n.useCallback)(()=>$e(e=>!e),[]),Ue=(0,n.useRef)(null),[Xe,et]=(0,n.useState)('live'),[tt,ot]=(0,n.useState)(null),[at,nt]=(0,n.useState)(0),it=(0,n.useMemo)(()=>({scrubStart:()=>Ue.current?.scrubStart(),scrubTo:e=>Ue.current?.scrubTo(e),scrubCommit:e=>Ue.current?.scrubCommit(e),seek:e=>Ue.current?.seek(e)}),[]),lt=(0,n.useRef)('live');lt.current=Xe;const st=(0,y.useScrubController)(it,()=>'live'===lt.current),[rt,ut]=(0,n.useState)(!0),ct=(0,n.useRef)(!1);(0,n.useEffect)(()=>{ye&&!ct.current&&(ct.current=!0,ut(!Te.stream.audioOnOpen))},[ye,Te.stream.audioOnOpen]);const[dt,ht]=(0,n.useState)(!1),[gt,ft]=(0,n.useState)(!1),[_t,pt]=(0,n.useState)(!1),[mt,bt]=(0,n.useState)(!1),[St,Ct]=(0,n.useState)(!1),[vt,xt]=(0,n.useState)(!1),[Tt,yt]=(0,n.useState)(!1),[kt,Et]=(0,n.useState)(!0),Ht=(0,n.useCallback)(()=>ut(e=>!e),[]),Ot=(0,n.useCallback)(()=>ht(e=>!e),[]),jt=(0,n.useCallback)(()=>ft(e=>!e),[]),Dt=(0,n.useCallback)(()=>pt(e=>!e),[]),wt=(0,n.useCallback)(()=>bt(e=>!e),[]),It=(0,n.useCallback)(()=>bt(!1),[]),Bt=(0,n.useCallback)(()=>Ct(e=>!e),[]),Wt=(0,n.useCallback)(()=>Et(e=>!e),[]),Pt=(0,n.useCallback)(()=>Et(!1),[]),At=(0,n.useCallback)(()=>Ue.current?.startPip(),[]),Lt=(0,n.useCallback)(()=>Ue.current?.getStats()??Promise.resolve(null),[]),{talking:Rt,error:zt,toggle:Gt}=(0,D.useIntercom)(e);(0,n.useEffect)(()=>{zt&&u.default.alert(t('v2.cameraDetail.talk'),t('v2.cameraDetail.talkFailed'))},[zt,t]);const Ft=(0,z.useWideDetailLayout)(),Vt=be>Se,Jt=vt||Vt&&!Ft,[Mt,Kt]=(0,n.useState)(null),Yt=(0,n.useCallback)(e=>{Kt(e.nativeEvent.layout.width)},[]),Nt=(0,n.useMemo)(()=>(0,F.computeWideDetailSizes)({containerWidth:Mt??be,viewportHeight:Se}),[Mt,be,Se]),qt=(0,n.useMemo)(()=>9*be/16,[be]),Zt=(0,n.useMemo)(()=>Se*oe,[Se]),$t=(0,j.useStreamZoom)(),Qt=$t.resetZoom;(0,n.useEffect)(()=>{Qt()},[Jt,Qt]);const Ut=(0,n.useCallback)(()=>o.back(),[o]),Xt=(0,n.useMemo)(()=>{const e=b.Gesture.Tap().numberOfTaps(1).onEnd((function({_worklet_6602635544675_init_data:e,runOnJS:t,onToggleControls:o}){const n=function(){t(o)()};return n.__closure={runOnJS:t,onToggleControls:o},n.__workletHash=6602635544675,n.__initData=e,n})({_worklet_6602635544675_init_data:re,runOnJS:S.runOnJS,onToggleControls:Wt})),t=b.Gesture.Tap().numberOfTaps(2).onEnd((function({_worklet_2914560570860_init_data:e,runOnJS:t,zoom:o}){const n=function(){t(o.resetZoom)()};return n.__closure={runOnJS:t,zoom:o},n.__workletHash=2914560570860,n.__initData=e,n})({_worklet_2914560570860_init_data:ue,runOnJS:S.runOnJS,zoom:$t})),o=b.Gesture.Exclusive(t,e),n=b.Gesture.Pan().minPointers(2).onEnd((function({_worklet_928138019551_init_data:e,BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l}){const s=function(e){e.translationY>t&&e.velocityY>o&&n(l)()};return s.__closure={BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l},s.__workletHash=928138019551,s.__initData=e,s})({_worklet_928138019551_init_data:ce,BACK_SWIPE_DISTANCE:ne,BACK_SWIPE_VELOCITY:ie,runOnJS:S.runOnJS,onSwipeBack:Ut}));return b.Gesture.Simultaneous($t.composeWith(n),o)},[$t,Wt,Ut]),eo=Te.stream.pinchExpandsHeight,to=(0,S.useDerivedValue)((function({_worklet_4062045311480_init_data:e,pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c}){const d=function(){return t?n(l.scale.value,[1,s],[o,u],c.CLAMP):o};return d.__closure={pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c},d.__workletHash=4062045311480,d.__initData=e,d})({_worklet_4062045311480_init_data:de,pinchExpandsHeight:eo,defaultHeight:qt,interpolate:S.interpolate,zoom:$t,HEIGHT_GROW_SCALE:ae,maxHeight:Zt,Extrapolation:S.Extrapolation}),[qt,Zt,eo]),oo=(0,S.useAnimatedStyle)((function({_worklet_8575313032359_init_data:e,liveBoxHeight:t}){const o=()=>({height:t.value});return o.__closure={liveBoxHeight:t},o.__workletHash=8575313032359,o.__initData=e,o})({_worklet_8575313032359_init_data:he,liveBoxHeight:to})),ao=(0,S.useDerivedValue)((function({_worklet_5350731042938_init_data:e,isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l}){const s=()=>t?o.top+n:o.top+l.value+n;return s.__closure={isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l},s.__workletHash=5350731042938,s.__initData=e,s})({_worklet_5350731042938_init_data:ge,isWideDetail:Ft,insets:me,TOOLBAR_HEIGHT:le,liveBoxHeight:to}),[me.top,Ft]),{ref:no,isFullscreen:io,toggle:lo}=(0,T.useWebFullscreen)(),so=(0,n.useCallback)(()=>{lo()},[lo]);(0,n.useEffect)(()=>{xt(io)},[io]),(0,n.useEffect)(()=>{},[vt]);const ro=(0,n.useCallback)(async()=>{const o=Ce.getSystem();if(o){yt(!0);try{const n=await o.trpcClient.snapshot.getSnapshot.query({deviceId:e,force:!0});if(!n?.base64)return void u.default.alert(t('v2.cameraDetail.snapshot'),t('v2.cameraDetail.snapshotFailed'));const l=n.contentType.includes('png')?'png':'jpg',s=`${v.cacheDirectory}snapshot-${e}-${Date.now()}.${l}`;await v.writeAsStringAsync(s,n.base64,{encoding:v.EncodingType.Base64}),await x.isAvailableAsync()&&await x.shareAsync(s,{mimeType:n.contentType})}catch{u.default.alert(t('v2.cameraDetail.snapshot'),t('v2.cameraDetail.snapshotFailed'))}finally{yt(!1)}}},[Ce,e,t]),uo=(0,k.derivePlaybackStatus)({mode:Xe,playheadEpoch:tt}),co=(0,n.useCallback)(()=>{Ue.current?.goLive(),nt(e=>e+1),et('live'),ot(null),st.setPlayhead(null)},[st]),ho=(0,n.useCallback)(()=>{const e=(0,k.jogTarget)(tt,-1);null!=e&&Ue.current?.seek(e)},[tt]),go=(0,n.useCallback)(()=>{const e=(0,k.jogTarget)(tt,1);null!=e&&Ue.current?.seek(e)},[tt]),fo=(0,te.jsx)(C.default.View,{style:Jt?pe.videoWrapFull:Ft?[pe.videoWrap,{width:Nt.streamWidth,height:Nt.streamHeight}]:eo?[pe.videoWrap,oo]:[pe.videoWrap,{height:qt}],children:(0,te.jsxs)(l.default,{style:pe.videoContent,children:[(0,te.jsxs)(C.default.View,{style:[d.default.absoluteFill,$t.videoStyle],children:[Ze?(0,te.jsx)(fe,{deviceId:e}):(0,te.jsx)(O.LiveView,{ref:Ue,deviceId:e,muted:rt,target:Ie,showStats:St&&!1,highlight:void 0,onPlaybackState:et,onPosition:e=>{ot(e),st.setPlayhead(e)}},at),_t?(0,te.jsx)(L.MotionBoxesOverlay,{deviceId:e,enabled:_t}):null]}),(0,te.jsx)(b.GestureDetector,{gesture:Xt,children:(0,te.jsx)(C.default.View,{style:d.default.absoluteFill,onLayout:$t.onLayout})}),'gap'===Xe?(0,te.jsxs)(l.default,{pointerEvents:"none",style:[d.default.absoluteFill,pe.noRecOverlay],children:[(0,te.jsx)(M.VideoOff,{size:28,color:"#9aa0a6"}),(0,te.jsx)(s.default,{style:pe.noRecTitle,children:t('v2.theater.noRecording')}),(0,te.jsx)(s.default,{style:pe.noRecHint,children:t('v2.theater.noRecordingHint')})]}):null,qe?(0,te.jsx)(l.default,{pointerEvents:"none",style:[d.default.absoluteFill,{borderWidth:Te.highlight.thickness,borderColor:'motion'===qe?Te.highlight.motionColor:'audio'===qe?Te.highlight.audioColor:Te.highlight.detectionColor}]}):null,kt?(0,te.jsx)(l.default,{style:pe.nameTag,pointerEvents:"none",children:(0,te.jsx)(s.default,{style:pe.nameText,numberOfLines:1,children:ve})}):null,Re?(0,te.jsxs)(l.default,{style:pe.motionBadge,pointerEvents:"none",children:[(0,te.jsx)(l.default,{style:pe.motionDot}),(0,te.jsx)(s.default,{style:pe.motionText,children:t('v2.cameras.motion')})]}):null,kt&&Te.playback.showPlayerStatusChip?(0,te.jsxs)(l.default,{style:[pe.statusChip,uo.isLive?pe.statusChipLive:pe.statusChipVod],pointerEvents:"none",children:[uo.isLive?(0,te.jsx)(l.default,{style:pe.statusDot}):null,(0,te.jsx)(s.default,{style:pe.statusText,children:uo.label})]}):null,kt&&!uo.isLive?(0,te.jsxs)(l.default,{style:pe.jogRow,children:[(0,te.jsx)(c.default,{onPress:ho,style:pe.jogButton,accessibilityRole:"button",accessibilityLabel:"-10s",children:(0,te.jsx)(s.default,{style:pe.jogText,children:"\u221210s"})}),(0,te.jsx)(c.default,{onPress:go,style:pe.jogButton,accessibilityRole:"button",accessibilityLabel:"+10s",children:(0,te.jsx)(s.default,{style:pe.jogText,children:"+10s"})})]}):null,St?(0,te.jsx)(A.StreamStatsOverlay,{getStats:Lt}):null,(0,te.jsx)(w.StreamControlsOverlay,{visible:kt,paused:Ze,onTogglePause:Qe,muted:rt,onToggleMute:Ht,hasTwoWayAudio:Ee,talking:Rt,onToggleTalk:Gt,onStartPip:At,fullscreen:vt,onToggleFullscreen:so,onRequestHide:Pt})]})}),_o=(0,te.jsx)(R.TheaterTimeline,{deviceId:e,name:ve,hasPtz:ke,ptzOpen:dt,onTogglePtz:Ot,onBack:()=>o.back(),devicesOpen:gt,onToggleDevices:jt,menuOpen:mt,onToggleMenu:wt,onSnapshot:ro,snapshotBusy:Tt,quality:je,onOpenQuality:Pe,onSeekToTime:e=>st.seek(e,'heatmap'),onScrubStart:()=>st.beginScrub('heatmap'),onScrubToTime:e=>st.updateScrub(e,'heatmap'),onScrubEnd:e=>st.endScrub(e,'heatmap'),playheadEpoch:st.state.playheadEpoch,scrubEpoch:st.state.scrubEpoch,scrubbing:st.state.scrubbing,onTimelineScrubStart:()=>st.beginScrub('timeline'),onTimelineScrubTo:e=>st.updateScrub(e,'timeline'),onTimelineScrubEnd:e=>st.endScrub(e,'timeline'),onTimelineSeek:e=>st.seek(e,'timeline'),onGoLive:co});return(0,te.jsxs)(l.default,{ref:no,onLayout:Yt,style:{flex:1,backgroundColor:H.background,paddingTop:Jt?0:me.top},children:[(0,te.jsx)(m.StatusBar,{hidden:Jt,style:Jt||'dark'===V?'light':'dark'}),Jt?fo:Ft?(0,te.jsx)(G.WideDetailLayout,{railWidth:Nt.railWidth,stream:fo,timeline:_o}):(0,te.jsxs)(te.Fragment,{children:[fo,_o]}),dt?(0,te.jsx)(B.FloatingPanel,{title:t('v2.ptz.title'),onClose:Ot,closeLabel:t('v2.cameraDetail.close'),topOffset:ao,children:(0,te.jsx)(I.PtzControls,{deviceId:e,hasFeature:ke})}):null,gt?(0,te.jsx)(B.FloatingPanel,{title:t('v2.cameraDetail.devices'),onClose:jt,closeLabel:t('v2.cameraDetail.close'),topOffset:ao,children:(0,te.jsx)(W.DevicesPanel,{deviceId:e})}):null,mt?(0,te.jsx)(P.CameraMenuPanel,{boundingBoxesOn:_t,onToggleBoundingBoxes:Dt,statsOn:St,onToggleStats:Bt,highlight:Ge,onSetHighlight:t=>Fe(e,Object.assign({},Ge,t)),onClose:It,topOffset:ao}):null,Be?(0,te.jsx)(ee.QualityPicker,{value:je,onChange:Le,onClose:Ae,topOffset:ao}):null]})};var o=r(_d[0]),n=r(_d[1]),l=e(r(_d[2])),s=e(r(_d[3])),u=e(r(_d[4])),c=e(r(_d[5])),d=e(r(_d[6])),h=e(r(_d[7]));r(_d[8]);var f=r(_d[9]),_=r(_d[10]),p=r(_d[11]),m=r(_d[12]),b=r(_d[13]),S=r(_d[14]),C=e(S),v=(t(r(_d[15])),t(r(_d[16]))),x=t(r(_d[17])),T=r(_d[18]),y=r(_d[19]),k=r(_d[20]),E=r(_d[21]),H=r(_d[22]),O=r(_d[23]),j=r(_d[24]),D=r(_d[25]),w=r(_d[26]),I=r(_d[27]),B=r(_d[28]),W=r(_d[29]),P=r(_d[30]),A=r(_d[31]),L=r(_d[32]),R=r(_d[33]),z=r(_d[34]),G=r(_d[35]),F=r(_d[36]),V=r(_d[37]),J=r(_d[38]),M=r(_d[39]),K=r(_d[40]),Y=r(_d[41]),N=r(_d[42]),q=r(_d[43]),Z=r(_d[44]),$=r(_d[45]),Q=r(_d[46]),U=r(_d[47]),X=r(_d[48]),ee=r(_d[49]),te=r(_d[50]);const oe=.5,ae=2.5,ne=80,ie=400,le=47;function se(e){const t=(0,o.c)(16),{t:n}=(0,f.useTranslation)(),{data:l}=(0,J.useCameras)();let s;t[0]!==l?(s=void 0===l?[]:l,t[0]=l,t[1]=s):s=t[1];const u=s;let c;if(t[2]!==u||t[3]!==e){let o;t[5]!==e?(o=t=>t.id===e,t[5]=e,t[6]=o):o=t[6],c=u.find(o),t[2]=u,t[3]=e,t[4]=c}else c=t[4];const d=c;let h,_,p;return t[7]!==d?.name||t[8]!==e||t[9]!==n?(h=d?.name??n("v2.cameraDetail.fallbackName",{id:e}),t[7]=d?.name,t[8]=e,t[9]=n,t[10]=h):h=t[10],t[11]!==d?.features?(_=d?.features??[],t[11]=d?.features,t[12]=_):_=t[12],t[13]!==h||t[14]!==_?(p={name:h,features:_},t[13]=h,t[14]=_,t[15]=p):p=t[15],p}const re={code:"function CameraDetailScreenTsx1(){const{runOnJS,onToggleControls}=this.__closure;runOnJS(onToggleControls)();}"},ue={code:"function CameraDetailScreenTsx2(){const{runOnJS,zoom}=this.__closure;runOnJS(zoom.resetZoom)();}"},ce={code:"function CameraDetailScreenTsx3(e_0){const{BACK_SWIPE_DISTANCE,BACK_SWIPE_VELOCITY,runOnJS,onSwipeBack}=this.__closure;if(e_0.translationY>BACK_SWIPE_DISTANCE&&e_0.velocityY>BACK_SWIPE_VELOCITY){runOnJS(onSwipeBack)();}}"},de={code:"function CameraDetailScreenTsx4(){const{pinchExpandsHeight,defaultHeight,interpolate,zoom,HEIGHT_GROW_SCALE,maxHeight,Extrapolation}=this.__closure;if(!pinchExpandsHeight)return defaultHeight;return interpolate(zoom.scale.value,[1,HEIGHT_GROW_SCALE],[defaultHeight,maxHeight],Extrapolation.CLAMP);}"},he={code:"function CameraDetailScreenTsx5(){const{liveBoxHeight}=this.__closure;return{height:liveBoxHeight.value};}"},ge={code:"function CameraDetailScreenTsx6(){const{isWideDetail,insets,TOOLBAR_HEIGHT,liveBoxHeight}=this.__closure;return isWideDetail?insets.top+TOOLBAR_HEIGHT:insets.top+liveBoxHeight.value+TOOLBAR_HEIGHT;}"};function fe(e){const t=(0,o.c)(6),{deviceId:n}=e;let s;t[0]!==n?(s=(0,V.getLastGoodSnapshot)(n),t[0]=n,t[1]=s):s=t[1];const u=s;let c,h;return t[2]!==u?(c=u?(0,te.jsx)(H.Image,{source:{uri:u},style:d.default.absoluteFill,contentFit:"cover"}):null,t[2]=u,t[3]=c):c=t[3],t[4]!==c?(h=(0,te.jsx)(l.default,{style:pe.poster,children:c}),t[4]=c,t[5]=h):h=t[5],h}const pe=d.default.create({videoWrap:{position:'relative',width:'100%',overflow:'hidden',backgroundColor:'#000'},videoWrapFull:Object.assign({},d.default.absoluteFill,{zIndex:50,backgroundColor:'#000'}),videoContent:{flex:1,overflow:'hidden'},noRecOverlay:{alignItems:'center',justifyContent:'center',gap:6,backgroundColor:'rgba(0,0,0,0.55)'},noRecTitle:{color:'#e8eaed',fontSize:15,fontWeight:'600'},noRecHint:{color:'#9aa0a6',fontSize:12},poster:{flex:1,backgroundColor:'#000'},nameTag:{position:'absolute',top:8,left:8,maxWidth:'70%',paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:'#00000080'},nameText:{color:'#fafaf9',fontSize:13,fontWeight:'600'},statusChip:{position:'absolute',top:8,right:8,flexDirection:'row',alignItems:'center',gap:5,paddingHorizontal:10,paddingVertical:5,borderRadius:14},statusChipLive:{backgroundColor:'#dc2626'},statusChipVod:{backgroundColor:'#00000099'},statusDot:{width:6,height:6,borderRadius:3,backgroundColor:'#ffffff'},statusText:{color:'#ffffff',fontSize:11,fontWeight:'700',fontVariant:['tabular-nums']},jogRow:{position:'absolute',bottom:8,alignSelf:'center',flexDirection:'row',gap:10},jogButton:{paddingHorizontal:12,paddingVertical:6,borderRadius:14,backgroundColor:'#00000099'},jogText:{color:'#ffffff',fontSize:12,fontWeight:'700',fontVariant:['tabular-nums']},motionBadge:{position:'absolute',top:8,right:8,flexDirection:'row',alignItems:'center',gap:5,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:'#f59e4226'},motionDot:{width:7,height:7,borderRadius:3.5,backgroundColor:'#f59e42'},motionText:{color:'#f59e42',fontSize:11,fontWeight:'700'}})},2861,[15,17,20,112,133,252,33,277,136,786,743,466,2862,2864,2952,3329,3332,3337,3341,3342,3343,2587,2712,3344,3352,3353,3354,3355,3357,3358,3367,3368,3369,3371,2590,3395,3396,2800,2739,813,2594,2836,2802,3370,3397,3398,2791,2798,3399,3385,10]);
|
|
15266
|
+
__d(function(g,r,i,a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}function t(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),_e.CameraDetailScreen=function({deviceId:e}){const{t:t}=(0,f.useTranslation)(),o=(0,_.useRouter)(),{colors:H,mode:V}=(0,E.useTheme)(),me=(0,p.useSafeAreaInsets)(),{width:be,height:Se}=(0,h.default)(),{controller:Ce}=(0,K.useConnection)(),{name:ve,features:xe}=se(e),{settings:Te,hydrated:ke}=(0,Y.useSettings)(),ye=xe.includes(J.FEATURE.ptz),Ee=xe.includes(J.FEATURE.twoWayAudio),He=(0,Q.useCameraPrefsStore)(t=>t.prefs.byId[e]?.quality),Oe=(0,Q.useCameraPrefsStore)(e=>e.setCameraQuality),[je,De]=(0,n.useState)(He??'auto'),we=(0,n.useRef)(!1);(0,n.useEffect)(()=>{He&&!we.current&&(we.current=!0,De(He))},[He]);const Ie=(0,n.useMemo)(()=>(0,X.qualityToTarget)(je),[je]),[We,Be]=(0,n.useState)(!1),Pe=(0,n.useCallback)(()=>Be(!0),[]),Ae=(0,n.useCallback)(()=>Be(!1),[]),Le=(0,n.useCallback)(t=>{De(t),Oe(e,t)},[e,Oe]),{active:Re}=(0,N.useMotion)(e,!0),ze=(0,Q.useCameraPrefsStore)(t=>t.prefs.byId[e]?.highlight),Ge=(0,n.useMemo)(()=>(0,U.withHighlightDefaults)(ze),[ze]),Fe=(0,Q.useCameraPrefsStore)(e=>e.setCameraHighlight),Ve=(0,Q.useCameraPrefsStore)(e=>e.hydrate);(0,n.useEffect)(()=>{Ve()},[Ve]);const Je=(0,q.useDetections)(e,Ge.detection&&!0),Me=Ge.detection&&Je.boxes.some(e=>0===Ge.detectionClasses.length||Ge.detectionClasses.includes(e.label)),Ke=(0,$.useHeld)(Me,1e3*Ge.detectionHoldSec),Ye=(0,Z.useAudioActive)(e,Ge.audio,Ge.audioDb),Ne=(0,$.useHeld)('off'!==Ge.audio&&Ye,1e3*Ge.audioHoldSec),qe=Ke?'detection':Ne?'audio':Ge.motion&&Re?'motion':null,[Ze,$e]=((0,n.useMemo)(()=>Object.assign({enabled:!0},Ge,{appearance:Te.highlight}),[Ge,Te.highlight]),(0,n.useState)(!1)),Qe=(0,n.useCallback)(()=>$e(e=>!e),[]),Ue=(0,n.useRef)(null),[Xe,et]=(0,n.useState)('live'),[tt,at]=(0,n.useState)(null),[ot,nt]=(0,n.useState)(0),it=(0,n.useMemo)(()=>({scrubStart:()=>Ue.current?.scrubStart(),scrubTo:e=>Ue.current?.scrubTo(e),scrubCommit:e=>Ue.current?.scrubCommit(e),seek:e=>Ue.current?.seek(e)}),[]),lt=(0,n.useRef)('live');lt.current=Xe;const st=(0,k.useScrubController)(it,()=>'live'===lt.current),[rt,ut]=(0,n.useState)(!0),ct=(0,n.useRef)(!1);(0,n.useEffect)(()=>{ke&&!ct.current&&(ct.current=!0,ut(!Te.stream.audioOnOpen))},[ke,Te.stream.audioOnOpen]);const[dt,ht]=(0,n.useState)(!1),[gt,ft]=(0,n.useState)(!1),[_t,pt]=(0,n.useState)(!1),[mt,bt]=(0,n.useState)(!1),[St,Ct]=(0,n.useState)(!1),[vt,xt]=(0,n.useState)(!1),[Tt,kt]=(0,n.useState)(!1),[yt,Et]=(0,n.useState)(!0),Ht=(0,n.useCallback)(()=>ut(e=>!e),[]),Ot=(0,n.useCallback)(()=>ht(e=>!e),[]),jt=(0,n.useCallback)(()=>ft(e=>!e),[]),Dt=(0,n.useCallback)(()=>pt(e=>!e),[]),wt=(0,n.useCallback)(()=>bt(e=>!e),[]),It=(0,n.useCallback)(()=>bt(!1),[]),Wt=(0,n.useCallback)(()=>Ct(e=>!e),[]),Bt=(0,n.useCallback)(()=>Et(e=>!e),[]),Pt=(0,n.useCallback)(()=>Et(!1),[]),At=(0,n.useCallback)(()=>Ue.current?.startPip(),[]),Lt=(0,n.useCallback)(()=>Ue.current?.getStats()??Promise.resolve(null),[]),{talking:Rt,error:zt,toggle:Gt}=(0,D.useIntercom)(e);(0,n.useEffect)(()=>{zt&&u.default.alert(t('v2.cameraDetail.talk'),t('v2.cameraDetail.talkFailed'))},[zt,t]);const Ft=(0,z.useWideDetailLayout)(),Vt=be>Se,Jt=vt||Vt&&!Ft,[Mt,Kt]=(0,n.useState)(null),Yt=(0,n.useCallback)(e=>{Kt(e.nativeEvent.layout.width)},[]),Nt=(0,n.useMemo)(()=>(0,F.computeWideDetailSizes)({containerWidth:Mt??be,viewportHeight:Se}),[Mt,be,Se]),qt=(0,n.useMemo)(()=>9*be/16,[be]),Zt=(0,n.useMemo)(()=>Se*ae,[Se]),$t=(0,j.useStreamZoom)(),Qt=$t.resetZoom;(0,n.useEffect)(()=>{Qt()},[Jt,Qt]);const Ut=(0,n.useCallback)(()=>o.back(),[o]),Xt=(0,n.useMemo)(()=>{const e=b.Gesture.Tap().numberOfTaps(1).onEnd((function({_worklet_6602635544675_init_data:e,runOnJS:t,onToggleControls:o}){const n=function(){t(o)()};return n.__closure={runOnJS:t,onToggleControls:o},n.__workletHash=6602635544675,n.__initData=e,n})({_worklet_6602635544675_init_data:re,runOnJS:S.runOnJS,onToggleControls:Bt})),t=b.Gesture.Tap().numberOfTaps(2).onEnd((function({_worklet_2914560570860_init_data:e,runOnJS:t,zoom:o}){const n=function(){t(o.resetZoom)()};return n.__closure={runOnJS:t,zoom:o},n.__workletHash=2914560570860,n.__initData=e,n})({_worklet_2914560570860_init_data:ue,runOnJS:S.runOnJS,zoom:$t})),o=b.Gesture.Exclusive(t,e),n=b.Gesture.Pan().minPointers(2).onEnd((function({_worklet_928138019551_init_data:e,BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l}){const s=function(e){e.translationY>t&&e.velocityY>o&&n(l)()};return s.__closure={BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l},s.__workletHash=928138019551,s.__initData=e,s})({_worklet_928138019551_init_data:ce,BACK_SWIPE_DISTANCE:ne,BACK_SWIPE_VELOCITY:ie,runOnJS:S.runOnJS,onSwipeBack:Ut}));return b.Gesture.Simultaneous($t.composeWith(n),o)},[$t,Bt,Ut]),ea=Te.stream.pinchExpandsHeight,ta=(0,S.useDerivedValue)((function({_worklet_4062045311480_init_data:e,pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c}){const d=function(){return t?n(l.scale.value,[1,s],[o,u],c.CLAMP):o};return d.__closure={pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c},d.__workletHash=4062045311480,d.__initData=e,d})({_worklet_4062045311480_init_data:de,pinchExpandsHeight:ea,defaultHeight:qt,interpolate:S.interpolate,zoom:$t,HEIGHT_GROW_SCALE:oe,maxHeight:Zt,Extrapolation:S.Extrapolation}),[qt,Zt,ea]),aa=(0,S.useAnimatedStyle)((function({_worklet_8575313032359_init_data:e,liveBoxHeight:t}){const o=()=>({height:t.value});return o.__closure={liveBoxHeight:t},o.__workletHash=8575313032359,o.__initData=e,o})({_worklet_8575313032359_init_data:he,liveBoxHeight:ta})),oa=(0,S.useDerivedValue)((function({_worklet_5350731042938_init_data:e,isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l}){const s=()=>t?o.top+n:o.top+l.value+n;return s.__closure={isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l},s.__workletHash=5350731042938,s.__initData=e,s})({_worklet_5350731042938_init_data:ge,isWideDetail:Ft,insets:me,TOOLBAR_HEIGHT:le,liveBoxHeight:ta}),[me.top,Ft]),{ref:na,isFullscreen:ia,toggle:la}=(0,T.useWebFullscreen)(),sa=(0,n.useCallback)(()=>{la()},[la]);(0,n.useEffect)(()=>{xt(ia)},[ia]),(0,n.useEffect)(()=>{},[vt]);const ra=(0,n.useCallback)(async()=>{const o=Ce.getSystem();if(o){kt(!0);try{const n=await o.trpcClient.snapshot.getSnapshot.query({deviceId:e,force:!0});if(!n?.base64)return void u.default.alert(t('v2.cameraDetail.snapshot'),t('v2.cameraDetail.snapshotFailed'));const l=n.contentType.includes('png')?'png':'jpg',s=`${v.cacheDirectory}snapshot-${e}-${Date.now()}.${l}`;await v.writeAsStringAsync(s,n.base64,{encoding:v.EncodingType.Base64}),await x.isAvailableAsync()&&await x.shareAsync(s,{mimeType:n.contentType})}catch{u.default.alert(t('v2.cameraDetail.snapshot'),t('v2.cameraDetail.snapshotFailed'))}finally{kt(!1)}}},[Ce,e,t]),ua=(0,y.derivePlaybackStatus)({mode:Xe,playheadEpoch:tt}),ca=(0,n.useCallback)(()=>{Ue.current?.goLive(),nt(e=>e+1),et('live'),at(null),st.setPlayhead(null)},[st]),da=(0,n.useCallback)(()=>{const e=(0,y.jogTarget)(tt,-1);null!=e&&Ue.current?.seek(e)},[tt]),ha=(0,n.useCallback)(()=>{const e=(0,y.jogTarget)(tt,1);null!=e&&Ue.current?.seek(e)},[tt]),ga=(0,te.jsx)(C.default.View,{style:Jt?pe.videoWrapFull:Ft?[pe.videoWrap,{width:Nt.streamWidth,height:Nt.streamHeight}]:ea?[pe.videoWrap,aa]:[pe.videoWrap,{height:qt}],children:(0,te.jsxs)(l.default,{style:pe.videoContent,children:[(0,te.jsxs)(C.default.View,{style:[d.default.absoluteFill,$t.videoStyle],children:[Ze?(0,te.jsx)(fe,{deviceId:e}):(0,te.jsx)(O.LiveView,{ref:Ue,deviceId:e,muted:rt,target:Ie,showStats:St&&!1,highlight:void 0,onPlaybackState:et,onPosition:e=>{at(e),st.setPlayhead(e)}},ot),_t?(0,te.jsx)(L.MotionBoxesOverlay,{deviceId:e,enabled:_t}):null]}),(0,te.jsx)(b.GestureDetector,{gesture:Xt,children:(0,te.jsx)(C.default.View,{style:d.default.absoluteFill,onLayout:$t.onLayout})}),'gap'===Xe?(0,te.jsxs)(l.default,{pointerEvents:"none",style:[d.default.absoluteFill,pe.noRecOverlay],children:[(0,te.jsx)(M.VideoOff,{size:28,color:"#9aa0a6"}),(0,te.jsx)(s.default,{style:pe.noRecTitle,children:t('v2.theater.noRecording')}),(0,te.jsx)(s.default,{style:pe.noRecHint,children:t('v2.theater.noRecordingHint')})]}):null,qe?(0,te.jsx)(l.default,{pointerEvents:"none",style:[d.default.absoluteFill,{borderWidth:Te.highlight.thickness,borderColor:'motion'===qe?Te.highlight.motionColor:'audio'===qe?Te.highlight.audioColor:Te.highlight.detectionColor}]}):null,yt?(0,te.jsx)(l.default,{style:pe.nameTag,pointerEvents:"none",children:(0,te.jsx)(s.default,{style:pe.nameText,numberOfLines:1,children:ve})}):null,Re?(0,te.jsxs)(l.default,{style:pe.motionBadge,pointerEvents:"none",children:[(0,te.jsx)(l.default,{style:pe.motionDot}),(0,te.jsx)(s.default,{style:pe.motionText,children:t('v2.cameras.motion')})]}):null,yt&&Te.playback.showPlayerStatusChip?(0,te.jsxs)(l.default,{style:[pe.statusChip,ua.isLive?pe.statusChipLive:pe.statusChipVod],pointerEvents:"none",children:[ua.isLive?(0,te.jsx)(l.default,{style:pe.statusDot}):null,(0,te.jsx)(s.default,{style:pe.statusText,children:ua.label})]}):null,yt&&!ua.isLive?(0,te.jsxs)(l.default,{style:pe.jogRow,children:[(0,te.jsx)(c.default,{onPress:da,style:pe.jogButton,accessibilityRole:"button",accessibilityLabel:"-10s",children:(0,te.jsx)(s.default,{style:pe.jogText,children:"\u221210s"})}),(0,te.jsx)(c.default,{onPress:ha,style:pe.jogButton,accessibilityRole:"button",accessibilityLabel:"+10s",children:(0,te.jsx)(s.default,{style:pe.jogText,children:"+10s"})})]}):null,St?(0,te.jsx)(A.StreamStatsOverlay,{getStats:Lt}):null,(0,te.jsx)(w.StreamControlsOverlay,{visible:yt,paused:Ze,onTogglePause:Qe,muted:rt,onToggleMute:Ht,hasTwoWayAudio:Ee,talking:Rt,onToggleTalk:Gt,onStartPip:At,fullscreen:vt,onToggleFullscreen:sa,onRequestHide:Pt})]})}),fa=Ft?'right':void 0,_a=Ft?Nt.railWidth:void 0,pa=(0,te.jsx)(R.TheaterTimeline,{deviceId:e,hideBack:Ft,name:ve,hasPtz:ye,ptzOpen:dt,onTogglePtz:Ot,onBack:()=>o.back(),devicesOpen:gt,onToggleDevices:jt,menuOpen:mt,onToggleMenu:wt,onSnapshot:ra,snapshotBusy:Tt,quality:je,onOpenQuality:Pe,onSeekToTime:e=>st.seek(e,'heatmap'),onScrubStart:()=>st.beginScrub('heatmap'),onScrubToTime:e=>st.updateScrub(e,'heatmap'),onScrubEnd:e=>st.endScrub(e,'heatmap'),playheadEpoch:st.state.playheadEpoch,scrubEpoch:st.state.scrubEpoch,scrubbing:st.state.scrubbing,onTimelineScrubStart:()=>st.beginScrub('timeline'),onTimelineScrubTo:e=>st.updateScrub(e,'timeline'),onTimelineScrubEnd:e=>st.endScrub(e,'timeline'),onTimelineSeek:e=>st.seek(e,'timeline'),onGoLive:ca});return(0,te.jsxs)(l.default,{ref:na,onLayout:Yt,style:{flex:1,backgroundColor:H.background,paddingTop:Jt?0:me.top},children:[(0,te.jsx)(m.StatusBar,{hidden:Jt,style:Jt||'dark'===V?'light':'dark'}),Jt?ga:Ft?(0,te.jsx)(G.WideDetailLayout,{railWidth:Nt.railWidth,stream:ga,timeline:pa}):(0,te.jsxs)(te.Fragment,{children:[ga,pa]}),dt?(0,te.jsx)(W.FloatingPanel,{title:t('v2.ptz.title'),onClose:Ot,closeLabel:t('v2.cameraDetail.close'),topOffset:oa,align:fa,maxWidth:_a,children:(0,te.jsx)(I.PtzControls,{deviceId:e,hasFeature:ye})}):null,gt?(0,te.jsx)(W.FloatingPanel,{title:t('v2.cameraDetail.devices'),onClose:jt,closeLabel:t('v2.cameraDetail.close'),topOffset:oa,align:fa,maxWidth:_a,children:(0,te.jsx)(B.DevicesPanel,{deviceId:e})}):null,mt?(0,te.jsx)(P.CameraMenuPanel,{boundingBoxesOn:_t,onToggleBoundingBoxes:Dt,statsOn:St,onToggleStats:Wt,highlight:Ge,onSetHighlight:t=>Fe(e,Object.assign({},Ge,t)),onClose:It,topOffset:oa,align:fa,maxWidth:_a}):null,We?(0,te.jsx)(ee.QualityPicker,{value:je,onChange:Le,onClose:Ae,topOffset:oa,align:fa,maxWidth:_a}):null]})};var o=r(_d[0]),n=r(_d[1]),l=e(r(_d[2])),s=e(r(_d[3])),u=e(r(_d[4])),c=e(r(_d[5])),d=e(r(_d[6])),h=e(r(_d[7]));r(_d[8]);var f=r(_d[9]),_=r(_d[10]),p=r(_d[11]),m=r(_d[12]),b=r(_d[13]),S=r(_d[14]),C=e(S),v=(t(r(_d[15])),t(r(_d[16]))),x=t(r(_d[17])),T=r(_d[18]),k=r(_d[19]),y=r(_d[20]),E=r(_d[21]),H=r(_d[22]),O=r(_d[23]),j=r(_d[24]),D=r(_d[25]),w=r(_d[26]),I=r(_d[27]),W=r(_d[28]),B=r(_d[29]),P=r(_d[30]),A=r(_d[31]),L=r(_d[32]),R=r(_d[33]),z=r(_d[34]),G=r(_d[35]),F=r(_d[36]),V=r(_d[37]),J=r(_d[38]),M=r(_d[39]),K=r(_d[40]),Y=r(_d[41]),N=r(_d[42]),q=r(_d[43]),Z=r(_d[44]),$=r(_d[45]),Q=r(_d[46]),U=r(_d[47]),X=r(_d[48]),ee=r(_d[49]),te=r(_d[50]);const ae=.5,oe=2.5,ne=80,ie=400,le=47;function se(e){const t=(0,o.c)(16),{t:n}=(0,f.useTranslation)(),{data:l}=(0,J.useCameras)();let s;t[0]!==l?(s=void 0===l?[]:l,t[0]=l,t[1]=s):s=t[1];const u=s;let c;if(t[2]!==u||t[3]!==e){let o;t[5]!==e?(o=t=>t.id===e,t[5]=e,t[6]=o):o=t[6],c=u.find(o),t[2]=u,t[3]=e,t[4]=c}else c=t[4];const d=c;let h,_,p;return t[7]!==d?.name||t[8]!==e||t[9]!==n?(h=d?.name??n("v2.cameraDetail.fallbackName",{id:e}),t[7]=d?.name,t[8]=e,t[9]=n,t[10]=h):h=t[10],t[11]!==d?.features?(_=d?.features??[],t[11]=d?.features,t[12]=_):_=t[12],t[13]!==h||t[14]!==_?(p={name:h,features:_},t[13]=h,t[14]=_,t[15]=p):p=t[15],p}const re={code:"function CameraDetailScreenTsx1(){const{runOnJS,onToggleControls}=this.__closure;runOnJS(onToggleControls)();}"},ue={code:"function CameraDetailScreenTsx2(){const{runOnJS,zoom}=this.__closure;runOnJS(zoom.resetZoom)();}"},ce={code:"function CameraDetailScreenTsx3(e_0){const{BACK_SWIPE_DISTANCE,BACK_SWIPE_VELOCITY,runOnJS,onSwipeBack}=this.__closure;if(e_0.translationY>BACK_SWIPE_DISTANCE&&e_0.velocityY>BACK_SWIPE_VELOCITY){runOnJS(onSwipeBack)();}}"},de={code:"function CameraDetailScreenTsx4(){const{pinchExpandsHeight,defaultHeight,interpolate,zoom,HEIGHT_GROW_SCALE,maxHeight,Extrapolation}=this.__closure;if(!pinchExpandsHeight)return defaultHeight;return interpolate(zoom.scale.value,[1,HEIGHT_GROW_SCALE],[defaultHeight,maxHeight],Extrapolation.CLAMP);}"},he={code:"function CameraDetailScreenTsx5(){const{liveBoxHeight}=this.__closure;return{height:liveBoxHeight.value};}"},ge={code:"function CameraDetailScreenTsx6(){const{isWideDetail,insets,TOOLBAR_HEIGHT,liveBoxHeight}=this.__closure;return isWideDetail?insets.top+TOOLBAR_HEIGHT:insets.top+liveBoxHeight.value+TOOLBAR_HEIGHT;}"};function fe(e){const t=(0,o.c)(6),{deviceId:n}=e;let s;t[0]!==n?(s=(0,V.getLastGoodSnapshot)(n),t[0]=n,t[1]=s):s=t[1];const u=s;let c,h;return t[2]!==u?(c=u?(0,te.jsx)(H.Image,{source:{uri:u},style:d.default.absoluteFill,contentFit:"cover"}):null,t[2]=u,t[3]=c):c=t[3],t[4]!==c?(h=(0,te.jsx)(l.default,{style:pe.poster,children:c}),t[4]=c,t[5]=h):h=t[5],h}const pe=d.default.create({videoWrap:{position:'relative',width:'100%',overflow:'hidden',backgroundColor:'#000'},videoWrapFull:Object.assign({},d.default.absoluteFill,{zIndex:50,backgroundColor:'#000'}),videoContent:{flex:1,overflow:'hidden'},noRecOverlay:{alignItems:'center',justifyContent:'center',gap:6,backgroundColor:'rgba(0,0,0,0.55)'},noRecTitle:{color:'#e8eaed',fontSize:15,fontWeight:'600'},noRecHint:{color:'#9aa0a6',fontSize:12},poster:{flex:1,backgroundColor:'#000'},nameTag:{position:'absolute',top:8,left:8,maxWidth:'70%',paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:'#00000080'},nameText:{color:'#fafaf9',fontSize:13,fontWeight:'600'},statusChip:{position:'absolute',top:8,right:8,flexDirection:'row',alignItems:'center',gap:5,paddingHorizontal:10,paddingVertical:5,borderRadius:14},statusChipLive:{backgroundColor:'#dc2626'},statusChipVod:{backgroundColor:'#00000099'},statusDot:{width:6,height:6,borderRadius:3,backgroundColor:'#ffffff'},statusText:{color:'#ffffff',fontSize:11,fontWeight:'700',fontVariant:['tabular-nums']},jogRow:{position:'absolute',bottom:8,alignSelf:'center',flexDirection:'row',gap:10},jogButton:{paddingHorizontal:12,paddingVertical:6,borderRadius:14,backgroundColor:'#00000099'},jogText:{color:'#ffffff',fontSize:12,fontWeight:'700',fontVariant:['tabular-nums']},motionBadge:{position:'absolute',top:8,right:8,flexDirection:'row',alignItems:'center',gap:5,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:'#f59e4226'},motionDot:{width:7,height:7,borderRadius:3.5,backgroundColor:'#f59e42'},motionText:{color:'#f59e42',fontSize:11,fontWeight:'700'}})},2861,[15,17,20,112,133,252,33,277,136,786,743,466,2862,2864,2952,3329,3332,3337,3341,3342,3343,2587,2712,3344,3352,3353,3354,3355,3357,3358,3367,3368,3369,3371,2590,3395,3396,2800,2739,813,2594,2836,2802,3370,3397,3398,2791,2798,3399,3385,10]);
|
|
15267
15267
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"StatusBar",{enumerable:!0,get:function(){return t.StatusBar}}),Object.defineProperty(e,"setStatusBarStyle",{enumerable:!0,get:function(){return t.setStatusBarStyle}}),Object.defineProperty(e,"setStatusBarHidden",{enumerable:!0,get:function(){return t.setStatusBarHidden}});var t=r(d[0])},2862,[2863]);
|
|
15268
15268
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.StatusBar=s,Object.defineProperty(_e,"setStatusBarStyle",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"setStatusBarHidden",{enumerable:!0,get:function(){return f}});var t=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),l=e(r(d[3])),o=r(d[4]);function s({style:e,hideTransitionAnimation:n,animated:s,hidden:c}){const f=(0,l.default)(),y=t.default.useMemo(()=>h(e,f),[e,f]);return(0,o.jsx)(u.default,{animated:s,hidden:c,barStyle:y,showHideTransition:'none'===n?void 0:n})}s.setStyle=(e,t)=>u.default.setBarStyle(h(e),t);const c=s.setStyle;s.setHidden=(e,t)=>u.default.setHidden(e,t);const f=s.setHidden;function h(e="auto",t=n.default?.getColorScheme()??'light'){t||(t='light');let u=e;return'auto'===e?u='light'===t?'dark':'light':'inverted'===e&&(u='light'===t?'light':'dark'),'light'===u?'light-content':'dark-content'}},2863,[17,222,259,275,10]);
|
|
15269
15269
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Directions",{enumerable:!0,get:function(){return n.Directions}}),Object.defineProperty(_e,"State",{enumerable:!0,get:function(){return u.State}}),Object.defineProperty(_e,"PointerType",{enumerable:!0,get:function(){return o.PointerType}}),Object.defineProperty(_e,"gestureHandlerRootHOC",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"GestureHandlerRootView",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"MouseButton",{enumerable:!0,get:function(){return l.MouseButton}}),Object.defineProperty(_e,"TapGestureHandler",{enumerable:!0,get:function(){return f.TapGestureHandler}}),Object.defineProperty(_e,"ForceTouchGestureHandler",{enumerable:!0,get:function(){return p.ForceTouchGestureHandler}}),Object.defineProperty(_e,"LongPressGestureHandler",{enumerable:!0,get:function(){return P.LongPressGestureHandler}}),Object.defineProperty(_e,"PanGestureHandler",{enumerable:!0,get:function(){return y.PanGestureHandler}}),Object.defineProperty(_e,"PinchGestureHandler",{enumerable:!0,get:function(){return s.PinchGestureHandler}}),Object.defineProperty(_e,"RotationGestureHandler",{enumerable:!0,get:function(){return O.RotationGestureHandler}}),Object.defineProperty(_e,"FlingGestureHandler",{enumerable:!0,get:function(){return j.FlingGestureHandler}}),Object.defineProperty(_e,"createNativeWrapper",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(_e,"GestureDetector",{enumerable:!0,get:function(){return h.GestureDetector}}),Object.defineProperty(_e,"Gesture",{enumerable:!0,get:function(){return G.GestureObjects}}),Object.defineProperty(_e,"NativeViewGestureHandler",{enumerable:!0,get:function(){return T.NativeViewGestureHandler}}),Object.defineProperty(_e,"RawButton",{enumerable:!0,get:function(){return B.RawButton}}),Object.defineProperty(_e,"BaseButton",{enumerable:!0,get:function(){return B.BaseButton}}),Object.defineProperty(_e,"RectButton",{enumerable:!0,get:function(){return B.RectButton}}),Object.defineProperty(_e,"BorderlessButton",{enumerable:!0,get:function(){return B.BorderlessButton}}),Object.defineProperty(_e,"PureNativeButton",{enumerable:!0,get:function(){return B.PureNativeButton}}),Object.defineProperty(_e,"TouchableHighlight",{enumerable:!0,get:function(){return w.TouchableHighlight}}),Object.defineProperty(_e,"TouchableNativeFeedback",{enumerable:!0,get:function(){return w.TouchableNativeFeedback}}),Object.defineProperty(_e,"TouchableOpacity",{enumerable:!0,get:function(){return w.TouchableOpacity}}),Object.defineProperty(_e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return w.TouchableWithoutFeedback}}),Object.defineProperty(_e,"ScrollView",{enumerable:!0,get:function(){return v.ScrollView}}),Object.defineProperty(_e,"Switch",{enumerable:!0,get:function(){return v.Switch}}),Object.defineProperty(_e,"TextInput",{enumerable:!0,get:function(){return v.TextInput}}),Object.defineProperty(_e,"DrawerLayoutAndroid",{enumerable:!0,get:function(){return v.DrawerLayoutAndroid}}),Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return v.FlatList}}),Object.defineProperty(_e,"RefreshControl",{enumerable:!0,get:function(){return v.RefreshControl}}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return F.Text}}),Object.defineProperty(_e,"HoverEffect",{enumerable:!0,get:function(){return R.HoverEffect}}),Object.defineProperty(_e,"Swipeable",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(_e,"Pressable",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(_e,"DrawerLayout",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(_e,"enableExperimentalWebImplementation",{enumerable:!0,get:function(){return S.enableExperimentalWebImplementation}}),Object.defineProperty(_e,"enableLegacyWebImplementation",{enumerable:!0,get:function(){return S.enableLegacyWebImplementation}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]),c=e(r(d[4])),b=e(r(d[5])),l=r(d[6]),f=r(d[7]),p=r(d[8]),P=r(d[9]),y=r(d[10]),s=r(d[11]),O=r(d[12]),j=r(d[13]),H=e(r(d[14])),h=r(d[15]),G=r(d[16]),T=r(d[17]),B=r(d[18]),w=r(d[19]),v=r(d[20]),F=r(d[21]),R=r(d[22]),L=e(r(d[23])),D=e(r(d[24])),N=e(r(d[25])),S=r(d[26]);(0,t.initialize)()},2864,[2865,2895,2867,2881,2925,2929,2887,2931,2939,2941,2942,2943,2944,2945,2946,2948,3299,2947,3310,3312,3318,3319,3289,3320,3321,3328,2874]);
|
|
@@ -15775,7 +15775,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
|
|
|
15775
15775
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.StreamControlsOverlay=function(e){const u=(0,t.c)(28),{visible:P,paused:h,onTogglePause:v,muted:C,onToggleMute:T,hasTwoWayAudio:I,talking:S,onToggleTalk:M,onStartPip:w,fullscreen:z,onToggleFullscreen:A,onRequestHide:_}=e,k=(0,n.useRef)(null);let G,N,R,B,E,O,F,V;u[0]!==_||u[1]!==h||u[2]!==P?(G=()=>(k.current&&clearTimeout(k.current),P&&!h&&(k.current=setTimeout(_,b)),()=>{k.current&&clearTimeout(k.current)}),N=[P,h,_],u[0]=_,u[1]=h,u[2]=P,u[3]=G,u[4]=N):(G=u[3],N=u[4]);if((0,n.useEffect)(G,N),u[5]!==z||u[6]!==I||u[7]!==C||u[8]!==_||u[9]!==w||u[10]!==A||u[11]!==T||u[12]!==v||u[13]!==M||u[14]!==h||u[15]!==S||u[16]!==P){const e=e=>()=>{e(),k.current&&clearTimeout(k.current),h||(k.current=setTimeout(_,b))},t=P||h;R=l.default,B=o.default.absoluteFill,E="box-none",O=t?(0,f.jsx)(l.default,{style:j.center,pointerEvents:"box-none",children:(0,f.jsx)(s.default,{onPress:e(v),accessibilityLabel:h?"play":"pause",style:x,children:h?(0,f.jsx)(c.Play,{size:30,color:"#fafaf9"}):(0,f.jsx)(c.Pause,{size:30,color:"#fafaf9"})})}):null,F=t?(0,f.jsxs)(l.default,{style:j.bottom,pointerEvents:"box-none",children:[(0,f.jsxs)(y,{children:[(0,f.jsx)(p,{icon:h?c.Play:c.Pause,onPress:e(v),label:h?"play":"pause"}),(0,f.jsx)(p,{icon:C?c.VolumeX:c.Volume2,active:!C,onPress:e(T),label:C?"unmute":"mute"})]}),(0,f.jsxs)(y,{children:[I?(0,f.jsx)(p,{icon:S?c.Mic:c.MicOff,active:S,onPress:e(M),label:"talk"}):null,null,(0,f.jsx)(p,{icon:z?c.Minimize2:c.Maximize2,active:z,onPress:e(A),label:"fullscreen"})]})]}):null,u[5]=z,u[6]=I,u[7]=C,u[8]=_,u[9]=w,u[10]=A,u[11]=T,u[12]=v,u[13]=M,u[14]=h,u[15]=S,u[16]=P,u[17]=R,u[18]=B,u[19]=E,u[20]=O,u[21]=F}else R=u[17],B=u[18],E=u[19],O=u[20],F=u[21];u[22]!==R||u[23]!==B||u[24]!==E||u[25]!==O||u[26]!==F?(V=(0,f.jsxs)(R,{style:B,pointerEvents:E,children:[O,F]}),u[22]=R,u[23]=B,u[24]=E,u[25]=O,u[26]=F,u[27]=V):V=u[27];return V};var t=r(d[0]),n=r(d[1]),l=e(r(d[2])),s=e(r(d[3]));r(d[4]);var o=e(r(d[5])),c=r(d[6]),u=r(d[7]),f=r(d[8]);const b=3500;function p(e){const n=(0,t.c)(11),{icon:l,active:o,busy:c,onPress:u,label:b}=e;let p;n[0]!==c?(p=e=>{const{pressed:t}=e;return[j.pillBtn,{opacity:c?.4:t?.6:1}]},n[0]=c,n[1]=p):p=n[1];const x=o?"#f59e42":"#fafaf9";let y,P;return n[2]!==l||n[3]!==x?(y=(0,f.jsx)(l,{size:20,color:x}),n[2]=l,n[3]=x,n[4]=y):y=n[4],n[5]!==c||n[6]!==b||n[7]!==u||n[8]!==p||n[9]!==y?(P=(0,f.jsx)(s.default,{onPress:u,disabled:c,accessibilityLabel:b,hitSlop:6,style:p,children:y}),n[5]=c,n[6]=b,n[7]=u,n[8]=p,n[9]=y,n[10]=P):P=n[10],P}function x(e){const{pressed:t}=e;return[j.centerBtn,{opacity:t?.7:1}]}function y(e){const n=(0,t.c)(5),{children:s,style:o}=e;let c,u;return n[0]!==o?(c=[j.pill,o],n[0]=o,n[1]=c):c=n[1],n[2]!==s||n[3]!==c?(u=(0,f.jsx)(l.default,{style:c,children:s}),n[2]=s,n[3]=c,n[4]=u):u=n[4],u}const j=o.default.create({center:Object.assign({},o.default.absoluteFill,{alignItems:'center',justifyContent:'center'}),centerBtn:{width:64,height:64,borderRadius:32,backgroundColor:'#000000aa',alignItems:'center',justifyContent:'center'},bottom:{position:'absolute',left:u.SPACING.md,right:u.SPACING.md,bottom:u.SPACING.md,flexDirection:'row',alignItems:'center',justifyContent:'space-between'},pill:{flexDirection:'row',alignItems:'center',gap:u.SPACING.xs,paddingHorizontal:u.SPACING.xs,paddingVertical:2,borderRadius:999,backgroundColor:'#000000aa'},pillBtn:{width:40,height:40,borderRadius:20,alignItems:'center',justifyContent:'center'}})},3354,[15,17,20,252,136,33,813,2589,10]);
|
|
15776
15776
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.PtzControls=function(e){const l=(0,o.c)(63),{deviceId:p,hasFeature:j}=e,{t:P}=(0,c.useTranslation)(),{colors:y}=(0,f.useTheme)(),z=(0,h.usePtz)(p,j);if(!j||!z.available){let e,o,t;return l[0]!==y.foregroundSubtle?(e=[v.notAvailable,{color:y.foregroundSubtle}],l[0]=y.foregroundSubtle,l[1]=e):e=l[1],l[2]!==P?(o=P("v2.ptz.notAvailable"),l[2]=P,l[3]=o):o=l[3],l[4]!==e||l[5]!==o?(t=(0,b.jsx)(s.default,{style:e,children:o}),l[4]=e,l[5]=o,l[6]=t):t=l[6],t}const{options:C}=z,I=C?.hasPan??!1,w=C?.hasTilt??!1,A=C?.hasZoom??!1;let _,L,R,D,G;l[7]===Symbol.for("react.memo_cache_sentinel")?(_=(0,b.jsx)(S,{}),l[7]=_):_=l[7];l[8]!==w||l[9]!==z.tiltUp?(L=w?(0,b.jsx)(x,{icon:u.ChevronUp,onPress:z.tiltUp}):(0,b.jsx)(S,{}),l[8]=w,l[9]=z.tiltUp,l[10]=L):L=l[10];l[11]===Symbol.for("react.memo_cache_sentinel")?(R=(0,b.jsx)(S,{}),l[11]=R):R=l[11];l[12]!==L?(D=(0,b.jsxs)(t.default,{style:v.dpadRow,children:[_,L,R]}),l[12]=L,l[13]=D):D=l[13];l[14]!==I||l[15]!==z.panLeft?(G=I?(0,b.jsx)(x,{icon:u.ChevronLeft,onPress:z.panLeft}):(0,b.jsx)(S,{}),l[14]=I,l[15]=z.panLeft,l[16]=G):G=l[16];const H=z.goHome;let N,k,T,E,U,W,O,B,M,V,F,Z,q,J;l[17]!==P?(N=P("v2.ptz.home"),l[17]=P,l[18]=N):N=l[18];l[19]!==y.foregroundSubtle?(k=(0,b.jsx)(u.Home,{size:16,color:y.foregroundSubtle}),l[19]=y.foregroundSubtle,l[20]=k):k=l[20];l[21]!==z.goHome||l[22]!==N||l[23]!==k?(T=(0,b.jsx)(n.default,{onPress:H,style:v.homeBtn,accessibilityLabel:N,children:k}),l[21]=z.goHome,l[22]=N,l[23]=k,l[24]=T):T=l[24];l[25]!==I||l[26]!==z.panRight?(E=I?(0,b.jsx)(x,{icon:u.ChevronRight,onPress:z.panRight}):(0,b.jsx)(S,{}),l[25]=I,l[26]=z.panRight,l[27]=E):E=l[27];l[28]!==E||l[29]!==G||l[30]!==T?(U=(0,b.jsxs)(t.default,{style:v.dpadRow,children:[G,T,E]}),l[28]=E,l[29]=G,l[30]=T,l[31]=U):U=l[31];l[32]===Symbol.for("react.memo_cache_sentinel")?(W=(0,b.jsx)(S,{}),l[32]=W):W=l[32];l[33]!==w||l[34]!==z.tiltDown?(O=w?(0,b.jsx)(x,{icon:u.ChevronDown,onPress:z.tiltDown}):(0,b.jsx)(S,{}),l[33]=w,l[34]=z.tiltDown,l[35]=O):O=l[35];l[36]===Symbol.for("react.memo_cache_sentinel")?(B=(0,b.jsx)(S,{}),l[36]=B):B=l[36];l[37]!==O?(M=(0,b.jsxs)(t.default,{style:v.dpadRow,children:[W,O,B]}),l[37]=O,l[38]=M):M=l[38];l[39]!==U||l[40]!==M||l[41]!==D?(V=(0,b.jsxs)(t.default,{style:v.dpad,children:[D,U,M]}),l[39]=U,l[40]=M,l[41]=D,l[42]=V):V=l[42];l[43]!==y.foregroundSubtle||l[44]!==A||l[45]!==z.zoomIn||l[46]!==z.zoomOut||l[47]!==P?(F=A?(0,b.jsxs)(t.default,{style:v.zoomCol,children:[(0,b.jsx)(x,{icon:u.Plus,onPress:z.zoomIn}),(0,b.jsx)(s.default,{style:[v.zoomLabel,{color:y.foregroundSubtle}],children:P("v2.ptz.zoom")}),(0,b.jsx)(x,{icon:u.Minus,onPress:z.zoomOut})]}):null,l[43]=y.foregroundSubtle,l[44]=A,l[45]=z.zoomIn,l[46]=z.zoomOut,l[47]=P,l[48]=F):F=l[48];l[49]!==V||l[50]!==F?(Z=(0,b.jsxs)(t.default,{style:v.row,children:[V,F]}),l[49]=V,l[50]=F,l[51]=Z):Z=l[51];l[52]!==y.backgroundElevated||l[53]!==y.border||l[54]!==y.foreground||l[55]!==y.foregroundSubtle||l[56]!==y.surfaceHover||l[57]!==z||l[58]!==P?(q=z.supportsPresets?(0,b.jsxs)(t.default,{style:v.presets,children:[(0,b.jsx)(s.default,{style:[v.presetsLabel,{color:y.foregroundSubtle}],children:P("v2.ptz.presets")}),z.presets.length>0?(0,b.jsx)(t.default,{style:v.presetList,children:z.presets.map(e=>(0,b.jsxs)(n.default,{onPress:()=>z.goToPreset(e.id),accessibilityLabel:e.name,style:e=>{const{pressed:o}=e;return[v.presetChip,{backgroundColor:o?y.surfaceHover:y.backgroundElevated,borderColor:y.border}]},children:[(0,b.jsx)(u.MapPin,{size:12,color:y.foregroundSubtle}),(0,b.jsx)(s.default,{style:[v.presetText,{color:y.foreground}],numberOfLines:1,children:e.name})]},e.id))}):(0,b.jsx)(s.default,{style:[v.notAvailable,{color:y.foregroundSubtle}],children:P("v2.ptz.noPresets")})]}):null,l[52]=y.backgroundElevated,l[53]=y.border,l[54]=y.foreground,l[55]=y.foregroundSubtle,l[56]=y.surfaceHover,l[57]=z,l[58]=P,l[59]=q):q=l[59];l[60]!==Z||l[61]!==q?(J=(0,b.jsxs)(t.default,{style:v.container,children:[Z,q]}),l[60]=Z,l[61]=q,l[62]=J):J=l[62];return J};var o=r(d[0]);r(d[1]);var t=e(r(d[2])),s=e(r(d[3])),n=e(r(d[4])),l=e(r(d[5])),c=r(d[6]),u=r(d[7]),f=r(d[8]),p=r(d[9]),h=r(d[10]),b=r(d[11]);function x(e){const t=(0,o.c)(13),{icon:s,onPress:l,disabled:c}=e,{colors:u}=(0,f.useTheme)();let p;t[0]!==u.backgroundElevated||t[1]!==u.border||t[2]!==u.surfaceHover||t[3]!==c?(p=e=>{const{pressed:o}=e;return[v.padBtn,{backgroundColor:o?u.surfaceHover:u.backgroundElevated,borderColor:u.border,opacity:c?.3:1}]},t[0]=u.backgroundElevated,t[1]=u.border,t[2]=u.surfaceHover,t[3]=c,t[4]=p):p=t[4];const h=c?u.foregroundDisabled:u.foreground;let x,S;return t[5]!==s||t[6]!==h?(x=(0,b.jsx)(s,{size:20,color:h}),t[5]=s,t[6]=h,t[7]=x):x=t[7],t[8]!==c||t[9]!==l||t[10]!==p||t[11]!==x?(S=(0,b.jsx)(n.default,{onPress:l,disabled:c,style:p,children:x}),t[8]=c,t[9]=l,t[10]=p,t[11]=x,t[12]=S):S=t[12],S}const S=()=>{const e=(0,o.c)(1);let s;return e[0]===Symbol.for("react.memo_cache_sentinel")?(s=(0,b.jsx)(t.default,{style:v.spacer}),e[0]=s):s=e[0],s};const j=44,v=l.default.create({container:{alignItems:'center',gap:p.SPACING.md},notAvailable:{fontSize:12,paddingVertical:p.SPACING.sm,textAlign:'center'},row:{flexDirection:'row',alignItems:'center',gap:p.SPACING['2xl']},dpad:{gap:p.SPACING.sm},dpadRow:{flexDirection:'row',gap:p.SPACING.sm},padBtn:{width:j,height:j,borderRadius:p.RADIUS.md,borderWidth:1,alignItems:'center',justifyContent:'center'},spacer:{width:j,height:j},homeBtn:{width:j,height:j,alignItems:'center',justifyContent:'center'},zoomCol:{alignItems:'center',gap:p.SPACING.sm},zoomLabel:{fontSize:11},presets:{alignSelf:'stretch',gap:p.SPACING.sm},presetsLabel:{fontSize:11,fontWeight:'700',textTransform:'uppercase',letterSpacing:.5},presetList:{flexDirection:'row',flexWrap:'wrap',gap:p.SPACING.sm},presetChip:{flexDirection:'row',alignItems:'center',gap:p.SPACING.xs+2,maxWidth:'100%',paddingHorizontal:p.SPACING.md,paddingVertical:p.SPACING.sm,borderRadius:p.RADIUS.md,borderWidth:1},presetText:{fontSize:12,fontWeight:'600',flexShrink:1}})},3355,[15,17,20,112,252,33,786,813,2587,2589,3356,10]);
|
|
15777
15777
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.usePtz=function(z,f){const h=(0,t.c)(47),{controller:P,state:I}=(0,s.useConnection)();let q;h[0]!==z?(q=["v2","ptz","options",z],h[0]=z,h[1]=q):q=h[1];const C=f&&"connected"===I;let b,S;h[2]!==P||h[3]!==z?(b=async()=>{const t=P.getSystem();if(!t)return null;try{return await t.trpcClient.ptz.getOptions.query({deviceId:z})}catch{return null}},h[2]=P,h[3]=z,h[4]=b):b=h[4];h[5]!==q||h[6]!==C||h[7]!==b?(S={queryKey:q,enabled:C,staleTime:3e5,queryFn:b},h[5]=q,h[6]=C,h[7]=b,h[8]=S):S=h[8];const T=(0,n.useQuery)(S);let O;h[9]!==P||h[10]!==z?(O=t=>{const n=P.getSystem();n&&n.trpcClient.ptz.move.mutate(Object.assign({deviceId:z},t)).catch(y)},h[9]=P,h[10]=z,h[11]=O):O=h[11];const _=O;let w;h[12]!==P||h[13]!==z?(w=()=>{const t=P.getSystem();t&&t.trpcClient.ptz.goHome.mutate({deviceId:z}).catch(p)},h[12]=P,h[13]=z,h[14]=w):w=h[14];const j=w,F=T.data??null,H=F?.supportsPresets??!1;let K;h[15]!==z?(K=["v2","ptz","presets",z],h[15]=z,h[16]=K):K=h[16];const Q=f&&"connected"===I&&H;let D,L;h[17]!==P||h[18]!==z?(D=async()=>{const t=P.getSystem();if(!t)return[];try{return await t.trpcClient.ptz.getPresets.query({deviceId:z})}catch{return[]}},h[17]=P,h[18]=z,h[19]=D):D=h[19];h[20]!==K||h[21]!==Q||h[22]!==D?(L={queryKey:K,enabled:Q,staleTime:3e5,queryFn:D},h[20]=K,h[21]=Q,h[22]=D,h[23]=L):L=h[23];const M=(0,n.useQuery)(L);let R;h[24]!==P||h[25]!==z?(R=t=>{const n=P.getSystem();n&&n.trpcClient.ptz.goToPreset.mutate({deviceId:z,presetId:t}).catch(l)},h[24]=P,h[25]=z,h[26]=R):R=h[26];const U=R,Z=M.data??v,k=null!==F&&(F.hasPan||F.hasTilt||F.hasZoom);let x,A,B,E,G,J,N;h[27]!==_?(x=()=>_({pan:-.3}),A=()=>_({pan:o}),B=()=>_({tilt:c}),E=()=>_({tilt:-.3}),G=()=>_({zoom:u}),J=()=>_({zoom:-.2}),h[27]=_,h[28]=x,h[29]=A,h[30]=B,h[31]=E,h[32]=G,h[33]=J):(x=h[28],A=h[29],B=h[30],E=h[31],G=h[32],J=h[33]);h[34]!==k||h[35]!==j||h[36]!==U||h[37]!==F||h[38]!==Z||h[39]!==H||h[40]!==x||h[41]!==A||h[42]!==B||h[43]!==E||h[44]!==G||h[45]!==J?(N={options:F,available:k,supportsPresets:H,presets:Z,panLeft:x,panRight:A,tiltUp:B,tiltDown:E,zoomIn:G,zoomOut:J,goHome:j,goToPreset:U},h[34]=k,h[35]=j,h[36]=U,h[37]=F,h[38]=Z,h[39]=H,h[40]=x,h[41]=A,h[42]=B,h[43]=E,h[44]=G,h[45]=J,h[46]=N):N=h[46];return N};var t=r(d[0]);r(d[1]);var n=r(d[2]),s=r(d[3]);const o=.3,c=.3,u=.2;function l(){}function p(){}function y(){}const v=[]},3356,[15,17,2740,2594]);
|
|
15778
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.FloatingPanel=function(e){const s=(0,t.c)(
|
|
15778
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.FloatingPanel=function(e){const s=(0,t.c)(37),{title:b,onClose:C,closeLabel:j,topOffset:I,align:v,maxWidth:w,children:P}=e,S=void 0===v?"center":v,{colors:O}=(0,h.useTheme)(),A=(0,c.useAnimatedStyle)((function({_worklet_4446473903605_init_data:e,topOffset:t}){const o=()=>({top:t.value});return o.__closure={topOffset:t},o.__workletHash=4446473903605,o.__initData=e,o})({_worklet_4446473903605_init_data:p,topOffset:I})),W="right"===S?y.anchorRight:null;let G,M,N,R,k,z,B,D,H,L,T,F,V;s[0]!==A||s[1]!==W?(G=[y.anchor,W,A],s[0]=A,s[1]=W,s[2]=G):G=s[2];s[3]!==w?(M=void 0!==w?{maxWidth:w}:null,s[3]=w,s[4]=M):M=s[4];s[5]!==O.border||s[6]!==O.surface?(N={backgroundColor:O.surface,borderColor:O.border},s[5]=O.border,s[6]=O.surface,s[7]=N):N=s[7];s[8]!==M||s[9]!==N?(R=[y.card,M,N],s[8]=M,s[9]=N,s[10]=R):R=s[10];s[11]!==O.border?(k=[y.header,{borderBottomColor:O.border}],s[11]=O.border,s[12]=k):k=s[12];s[13]!==O.foreground?(z=[y.title,{color:O.foreground}],s[13]=O.foreground,s[14]=z):z=s[14];s[15]!==z||s[16]!==b?(B=(0,_.jsx)(n.default,{style:z,numberOfLines:1,children:b}),s[15]=z,s[16]=b,s[17]=B):B=s[17];s[18]!==O.foregroundMuted?(D=(0,_.jsx)(f.X,{size:18,color:O.foregroundMuted}),s[18]=O.foregroundMuted,s[19]=D):D=s[19];s[20]!==j||s[21]!==C||s[22]!==D?(H=(0,_.jsx)(l.default,{onPress:C,hitSlop:8,accessibilityLabel:j,style:x,children:D}),s[20]=j,s[21]=C,s[22]=D,s[23]=H):H=s[23];s[24]!==H||s[25]!==k||s[26]!==B?(L=(0,_.jsxs)(o.default,{style:k,children:[B,H]}),s[24]=H,s[25]=k,s[26]=B,s[27]=L):L=s[27];s[28]!==P?(T=(0,_.jsx)(o.default,{style:y.body,children:P}),s[28]=P,s[29]=T):T=s[29];s[30]!==L||s[31]!==T||s[32]!==R?(F=(0,_.jsxs)(o.default,{style:R,children:[L,T]}),s[30]=L,s[31]=T,s[32]=R,s[33]=F):F=s[33];s[34]!==F||s[35]!==G?(V=(0,_.jsx)(u.default.View,{style:G,pointerEvents:"box-none",children:F}),s[34]=F,s[35]=G,s[36]=V):V=s[36];return V};var t=r(d[0]);r(d[1]);var o=e(r(d[2])),n=e(r(d[3])),l=e(r(d[4])),s=e(r(d[5])),c=r(d[6]),u=e(c),f=r(d[7]),h=r(d[8]),b=r(d[9]),_=r(d[10]);const p={code:"function FloatingPanelTsx1(){const{topOffset}=this.__closure;return{top:topOffset.value};}"};function x(e){const{pressed:t}=e;return[y.closeBtn,{opacity:t?.6:1}]}const y=s.default.create({anchor:{position:'absolute',left:0,right:0,alignItems:'center',paddingHorizontal:b.SPACING.md},anchorRight:{alignItems:'flex-end'},card:{width:'100%',maxWidth:420,marginTop:b.SPACING.sm,borderRadius:b.RADIUS.xl,borderWidth:1,overflow:'hidden'},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingHorizontal:b.SPACING.lg,paddingVertical:b.SPACING.md,borderBottomWidth:1},title:{fontSize:14,fontWeight:'700',flex:1},closeBtn:{width:32,height:32,borderRadius:16,alignItems:'center',justifyContent:'center'},body:{padding:b.SPACING.md}})},3357,[15,17,20,112,252,33,2952,813,2587,2589,10]);
|
|
15779
15779
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.DevicesPanel=function(e){const o=(0,t.c)(23),{deviceId:u}=e,{t:h}=(0,c.useTranslation)(),{colors:j}=(0,f.useTheme)(),{data:w,isLoading:A}=(0,y.useAccessories)(u),{data:I}=(0,p.useCameras)();let _,P,W,k,G;if(o[0]!==j||o[1]!==w||o[2]!==u||o[3]!==A||o[4]!==h||o[5]!==I){k=Symbol.for("react.early_return_sentinel");e:{const e=void 0===I?[]:I,t=e.find(e=>e.id===u)?.name;if(A&&!w){let e;o[10]!==j.primary?(e=(0,S.jsx)(n.default,{style:C.center,children:(0,S.jsx)(s.default,{color:j.primary})}),o[10]=j.primary,o[11]=e):e=o[11],k=e;break e}const c=w??[];if(0===c.length){let e,t,n;o[12]!==j.foregroundSubtle?(e=[C.empty,{color:j.foregroundSubtle}],o[12]=j.foregroundSubtle,o[13]=e):e=o[13],o[14]!==h?(t=h("v2.cameraDetail.devicesEmpty"),o[14]=h,o[15]=t):t=o[15],o[16]!==e||o[17]!==t?(n=(0,S.jsx)(l.default,{style:e,children:t}),o[16]=e,o[17]=t,o[18]=n):n=o[18],k=n;break e}_=n.default,P=C.list,W=c.map(e=>{const o=v(e.type),s=e.online?j.primary:j.foregroundSubtle,c=x(e.name,t);return(0,S.jsxs)(n.default,{style:[C.row,{borderBottomColor:j.borderSubtle}],children:[(0,S.jsx)(n.default,{style:[C.iconWrap,{backgroundColor:j.backgroundElevated}],children:(0,S.jsx)(o,{size:18,color:s})}),(0,S.jsx)(n.default,{style:C.label,children:(0,S.jsx)(l.default,{style:[C.name,{color:j.foreground}],numberOfLines:1,children:c})}),(0,S.jsx)(n.default,{style:C.control,children:(0,S.jsx)(b.AccessoryControl,{device:e})})]},e.id)})}o[0]=j,o[1]=w,o[2]=u,o[3]=A,o[4]=h,o[5]=I,o[6]=_,o[7]=P,o[8]=W,o[9]=k}else _=o[6],P=o[7],W=o[8],k=o[9];if(k!==Symbol.for("react.early_return_sentinel"))return k;o[19]!==_||o[20]!==P||o[21]!==W?(G=(0,S.jsx)(_,{style:P,children:W}),o[19]=_,o[20]=P,o[21]=W,o[22]=G):G=o[22];return G};var t=r(d[0]);r(d[1]);var n=e(r(d[2])),l=e(r(d[3])),o=e(r(d[4])),s=e(r(d[5])),c=r(d[6]),u=r(d[7]),f=r(d[8]),h=r(d[9]),y=r(d[10]),p=r(d[11]),b=r(d[12]),S=r(d[13]);function x(e,t){if(!t)return e;const n=e.toLowerCase(),l=t.toLowerCase();if(n.startsWith(l)){const n=e.slice(t.length).trim();if(n.length>0)return n}return e}function v(e){switch(e){case'light':return u.Lightbulb;case'siren':return u.Bell;case'lock':return u.DoorOpen;case'media-player':return u.Volume2;case'switch':return u.ToggleRight;case'thermostat':case'water-heater':case'humidifier':return u.Thermometer;case'sensor':case'presence':return u.Activity;case'cover':case'valve':return u.Blinds;case'fan':return u.Fan;case'alarm-panel':return u.ShieldAlert;default:return u.Cpu}}const C=o.default.create({center:{paddingVertical:h.SPACING.lg,alignItems:'center'},empty:{fontSize:13,paddingVertical:h.SPACING.md,textAlign:'center'},list:{gap:h.SPACING.xs},row:{flexDirection:'row',alignItems:'center',gap:h.SPACING.md,paddingVertical:h.SPACING.sm,borderBottomWidth:o.default.hairlineWidth},iconWrap:{width:36,height:36,borderRadius:10,alignItems:'center',justifyContent:'center'},label:{flex:1,gap:2},name:{fontSize:14,fontWeight:'500'},statusLine:{flexDirection:'row',alignItems:'center',gap:h.SPACING.sm},dot:{width:7,height:7,borderRadius:4},type:{fontSize:12,fontWeight:'500'},control:{flexShrink:0}})},3358,[15,17,20,112,33,240,786,813,2587,2589,3359,2739,3360,10]);
|
|
15780
15780
|
__d(function(g,r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useAccessories=function(c){const{controller:o,state:a}=(0,t.useConnection)();return(0,e.useQuery)({queryKey:['v2','accessories',c],enabled:'connected'===a,refetchInterval:n,queryFn:async()=>{const e=o.getSystem();if(!e)return[];try{const t=await e.trpcClient.deviceManager.getChildren.query({parentDeviceId:c}),n=Array.isArray(t)?t:[];for(const e of n)s(e)&&console.warn('[accessories] child',e.id,'type=',String(e.type),'keys=',Object.keys(e).join(','),'features=',JSON.stringify(e.features));return n.map(u).filter(e=>null!==e)}catch(e){return console.warn('[accessories] error device',c,e instanceof Error?e.message:String(e)),[]}}})};var e=r(d[0]),t=r(d[1]);const n=15e3;function s(e){return'object'==typeof e&&null!==e}function c(e){if(!Array.isArray(e))return o;const t=e.filter(e=>'string'==typeof e&&e.length>0);return t.length>0?t:o}const o=[];function u(e){if(!s(e))return null;const{id:t,name:n,type:o,online:u,features:a}=e;return'number'!=typeof t||'string'!=typeof o?null:{id:t,name:'string'==typeof n&&n.trim()?n.trim():`Device #${t}`,type:o,online:!0===u,features:c(a)}}},3359,[2740,2594]);
|
|
15781
15781
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.AccessoryControl=function(e){const o=(0,n.c)(13),{device:s}=e,u=(0,c.pickAccessoryControl)(s);if(!(0,c.hasMotionTrigger)(s.features)){let e;return o[0]!==s?(e=(0,j.jsx)(v,{device:s}),o[0]=s,o[1]=e):e=o[1],e}if("none"===u.kind){let e;return o[2]!==s.id||o[3]!==s.online?(e=(0,j.jsx)(l.MotionTriggerToggle,{deviceId:s.id,online:s.online}),o[2]=s.id,o[3]=s.online,o[4]=e):e=o[4],e}let x,C,b;o[5]!==s.id||o[6]!==s.online?(x=(0,j.jsx)(l.MotionTriggerToggle,{deviceId:s.id,online:s.online}),o[5]=s.id,o[6]=s.online,o[7]=x):x=o[7];o[8]!==s?(C=(0,j.jsx)(v,{device:s}),o[8]=s,o[9]=C):C=o[9];o[10]!==x||o[11]!==C?(b=(0,j.jsxs)(t.default,{style:f.row,children:[x,C]}),o[10]=x,o[11]=C,o[12]=b):b=o[12];return b};var n=r(d[0]);r(d[1]);var t=e(r(d[2])),o=e(r(d[3])),s=r(d[4]),c=r(d[5]),l=r(d[6]),u=r(d[7]),j=r(d[8]);function v(e){const t=(0,n.c)(20),{device:o}=e;let s;t[0]!==o?(s=(0,c.pickAccessoryControl)(o),t[0]=o,t[1]=s):s=t[1];const l=s;let v;t[2]!==o.id||t[3]!==o.online?(v={deviceId:o.id,online:o.online},t[2]=o.id,t[3]=o.online,t[4]=v):v=t[4];const f=v;switch(l.kind){case"cover":{let e;return t[5]!==f?(e=(0,j.jsx)(u.CoverControl,Object.assign({},f,{capKey:"cover"})),t[5]=f,t[6]=e):e=t[6],e}case"valve":{let e;return t[7]!==f?(e=(0,j.jsx)(u.CoverControl,Object.assign({},f,{capKey:"valve"})),t[7]=f,t[8]=e):e=t[8],e}case"lock":{let e;return t[9]!==f?(e=(0,j.jsx)(u.LockControl,Object.assign({},f)),t[9]=f,t[10]=e):e=t[10],e}case"alarm":{let e;return t[11]!==f?(e=(0,j.jsx)(u.AlarmControl,Object.assign({},f)),t[11]=f,t[12]=e):e=t[12],e}case"brightness":{let e;return t[13]!==f?(e=(0,j.jsx)(u.BrightnessControl,Object.assign({},f)),t[13]=f,t[14]=e):e=t[14],e}case"switch":{let e;return t[15]!==f?(e=(0,j.jsx)(u.SwitchControl,Object.assign({},f)),t[15]=f,t[16]=e):e=t[16],e}case"sensor":{let e;return t[17]!==f||t[18]!==l.sensorFeature?(e=l.sensorFeature?(0,j.jsx)(u.SensorValueControl,Object.assign({},f,{feature:l.sensorFeature})):null,t[17]=f,t[18]=l.sensorFeature,t[19]=e):e=t[19],e}case"none":return null}}const f=o.default.create({row:{flexDirection:'row',alignItems:'center',gap:s.SPACING.sm}})},3360,[15,17,20,33,2589,3361,3362,3366,10]);
|
|
@@ -15785,12 +15785,12 @@ __d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{
|
|
|
15785
15785
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CAP_STATUS_REFETCH_MS",{enumerable:!0,get:function(){return c}}),e.useCapStatus=function(l,s,f,y){const p=(0,t.c)(14),{controller:S,state:_}=(0,u.useConnection)();let b;p[0]!==f?(b=t=>f(t)?t:null,p[0]=f,p[1]=b):b=p[1];const v=b;let C;p[2]!==l||p[3]!==s?(C=["v2","cap-status",l,s],p[2]=l,p[3]=s,p[4]=C):C=p[4];const j=y&&"connected"===_;let q,P;p[5]!==l||p[6]!==S||p[7]!==s||p[8]!==v?(q=async()=>{const t=S.getSystem();if(!t)return null;try{const n=t.trpcClient[l];if(!o(n))return null;const u=await n.getStatus.query({deviceId:s});return v(u)}catch{return null}},p[5]=l,p[6]=S,p[7]=s,p[8]=v,p[9]=q):q=p[9];p[10]!==C||p[11]!==j||p[12]!==q?(P={queryKey:C,enabled:j,refetchInterval:c,queryFn:q},p[10]=C,p[11]=j,p[12]=q,p[13]=P):P=p[13];return(0,n.useQuery)(P)};var t=r(d[0]);r(d[1]);var n=r(d[2]),u=r(d[3]);const c=5e3;function o(t){if('object'!=typeof t||null===t)return!1;const n=t.getStatus;return'object'==typeof n&&null!==n&&'function'==typeof n.query}},3364,[15,17,2740,2594]);
|
|
15786
15786
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.PillButton=function(e){const n=(0,o.c)(19),{label:s,onPress:c,disabled:b,active:h,icon:y}=e,{colors:C}=(0,u.useTheme)(),P=h?C.primary:C.backgroundElevated,S=h?C.primaryForeground:C.foreground,j=b?.45:1;let x,I,v,z,_;n[0]!==P||n[1]!==C.border||n[2]!==j?(x=[p.pill,{backgroundColor:P,borderColor:C.border,opacity:j}],n[0]=P,n[1]=C.border,n[2]=j,n[3]=x):x=n[3];n[4]!==y||n[5]!==S?(I=y?(0,f.jsx)(y,{size:14,color:S}):null,n[4]=y,n[5]=S,n[6]=I):I=n[6];n[7]!==S?(v=[p.pillLabel,{color:S}],n[7]=S,n[8]=v):v=n[8];n[9]!==s||n[10]!==v?(z=(0,f.jsx)(t.default,{style:v,numberOfLines:1,children:s}),n[9]=s,n[10]=v,n[11]=z):z=n[11];n[12]!==b||n[13]!==s||n[14]!==c||n[15]!==x||n[16]!==I||n[17]!==z?(_=(0,f.jsxs)(l.default,{accessibilityRole:"button",accessibilityLabel:s,onPress:c,disabled:b,style:x,children:[I,z]}),n[12]=b,n[13]=s,n[14]=c,n[15]=x,n[16]=I,n[17]=z,n[18]=_):_=n[18];return _},_e.IconButton=function(e){const t=(0,o.c)(13),{icon:n,label:s,onPress:c,disabled:b,active:h}=e,{colors:y}=(0,u.useTheme)(),C=h?y.primary:y.backgroundElevated,P=h?y.primaryForeground:y.foreground,S=b?.45:1;let j,x,I;t[0]!==C||t[1]!==y.border||t[2]!==S?(j=[p.icon,{backgroundColor:C,borderColor:y.border,opacity:S}],t[0]=C,t[1]=y.border,t[2]=S,t[3]=j):j=t[3];t[4]!==n||t[5]!==P?(x=(0,f.jsx)(n,{size:16,color:P}),t[4]=n,t[5]=P,t[6]=x):x=t[6];t[7]!==b||t[8]!==s||t[9]!==c||t[10]!==j||t[11]!==x?(I=(0,f.jsx)(l.default,{accessibilityRole:"button",accessibilityLabel:s,onPress:c,disabled:b,style:j,children:x}),t[7]=b,t[8]=s,t[9]=c,t[10]=j,t[11]=x,t[12]=I):I=t[12];return I},_e.ControlSpinner=function(){const e=(0,o.c)(2),{colors:l}=(0,u.useTheme)();let t;e[0]!==l.foregroundSubtle?(t=(0,f.jsx)(c.default,{style:p.spinner,children:(0,f.jsx)(s.default,{size:"small",color:l.foregroundSubtle})}),e[0]=l.foregroundSubtle,e[1]=t):t=e[1];return t};var o=r(d[0]);r(d[1]);var l=e(r(d[2])),t=e(r(d[3])),n=e(r(d[4])),s=e(r(d[5])),c=e(r(d[6])),u=r(d[7]),b=r(d[8]),f=r(d[9]);const p=n.default.create({pill:{flexDirection:'row',alignItems:'center',gap:b.SPACING.xs,paddingHorizontal:b.SPACING.md,paddingVertical:b.SPACING.sm,borderRadius:b.RADIUS.lg,borderWidth:n.default.hairlineWidth},pillLabel:{fontSize:12,fontWeight:'600'},icon:{width:32,height:32,borderRadius:16,alignItems:'center',justifyContent:'center',borderWidth:n.default.hairlineWidth},spinner:{paddingHorizontal:b.SPACING.sm}})},3365,[15,17,252,112,33,240,20,2587,2589,10]);
|
|
15787
15787
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.SwitchControl=function(e){const n=(0,t.c)(15),{deviceId:o,online:s}=e,{t:u}=(0,c.useTranslation)(),f=(0,h.useSwitchStatus)(o,s),p=(0,h.useCapMutator)(o),S=f.data?.on??!1;let x;n[0]!==p||n[1]!==S||n[2]!==f?(x=async()=>{await p.run("switch","setState",{on:!S}),f.refetch()},n[0]=p,n[1]=S,n[2]=f,n[3]=x):x=n[3];const C=x;if(f.isLoading&&!f.data){let e;return n[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,b.jsx)(v.ControlSpinner,{}),n[4]=e):e=n[4],e}let j;n[5]!==S||n[6]!==u?(j=u(S?"v2.accessories.on":"v2.accessories.off"),n[5]=S,n[6]=u,n[7]=j):j=n[7];const y=!s||p.pending;let P,_;n[8]!==C?(P=()=>{C()},n[8]=C,n[9]=P):P=n[9];n[10]!==S||n[11]!==j||n[12]!==y||n[13]!==P?(_=(0,b.jsx)(v.PillButton,{label:j,icon:l.Power,active:S,disabled:y,onPress:P}),n[10]=S,n[11]=j,n[12]=y,n[13]=P,n[14]=_):_=n[14];return _},_e.BrightnessControl=function(e){const s=(0,t.c)(50),{deviceId:f,online:S}=e,{t:C}=(0,c.useTranslation)(),{colors:j}=(0,u.useTheme)(),y=(0,h.useBrightnessStatus)(f,S),P=(0,h.useSwitchStatus)(f,S),_=(0,h.useCapMutator)(f),w=y.data?.percentage??0,k=P.data?.on??w>0;let I;s[0]!==y||s[1]!==_||s[2]!==P?(I=async e=>{const t=Math.max(0,Math.min(100,e));await _.run("brightness","setBrightness",{percentage:t}),y.refetch(),P.refetch()},s[0]=y,s[1]=_,s[2]=P,s[3]=I):I=s[3];const B=I;let M;s[4]!==y||s[5]!==_||s[6]!==k||s[7]!==P?(M=async()=>{await _.run("switch","setState",{on:!k}),P.refetch(),y.refetch()},s[4]=y,s[5]=_,s[6]=k,s[7]=P,s[8]=M):M=s[8];const L=M;if(y.isLoading&&!y.data){let e;return s[9]===Symbol.for("react.memo_cache_sentinel")?(e=(0,b.jsx)(v.ControlSpinner,{}),s[9]=e):e=s[9],e}const T=!S||_.pending;let O,A,D,W,U,q,z,F;s[10]!==k||s[11]!==C?(O=C(k?"v2.accessories.off":"v2.accessories.on"),s[10]=k,s[11]=C,s[12]=O):O=s[12];s[13]!==L?(A=()=>{L()},s[13]=L,s[14]=A):A=s[14];s[15]!==T||s[16]!==k||s[17]!==O||s[18]!==A?(D=(0,b.jsx)(v.IconButton,{icon:l.Sun,label:O,active:k,disabled:T,onPress:A}),s[15]=T,s[16]=k,s[17]=O,s[18]=A,s[19]=D):D=s[19];s[20]!==C?(W=C("v2.accessories.dimDown"),s[20]=C,s[21]=W):W=s[21];s[22]!==w||s[23]!==B?(U=()=>{B(w-p)},s[22]=w,s[23]=B,s[24]=U):U=s[24];s[25]!==T||s[26]!==W||s[27]!==U?(q=(0,b.jsx)(v.IconButton,{icon:l.ChevronDown,label:W,disabled:T,onPress:U}),s[25]=T,s[26]=W,s[27]=U,s[28]=q):q=s[28];s[29]!==j.foregroundMuted?(z=[x.readout,{color:j.foregroundMuted}],s[29]=j.foregroundMuted,s[30]=z):z=s[30];s[31]!==w?(F=Math.round(w),s[31]=w,s[32]=F):F=s[32];const N=`${F}%`;let V,$,G,K,E;s[33]!==N||s[34]!==z?(V=(0,b.jsx)(o.default,{style:z,numberOfLines:1,children:N}),s[33]=N,s[34]=z,s[35]=V):V=s[35];s[36]!==C?($=C("v2.accessories.dimUp"),s[36]=C,s[37]=$):$=s[37];s[38]!==w||s[39]!==B?(G=()=>{B(w+p)},s[38]=w,s[39]=B,s[40]=G):G=s[40];s[41]!==T||s[42]!==$||s[43]!==G?(K=(0,b.jsx)(v.IconButton,{icon:l.ChevronUp,label:$,disabled:T,onPress:G}),s[41]=T,s[42]=$,s[43]=G,s[44]=K):K=s[44];s[45]!==V||s[46]!==K||s[47]!==D||s[48]!==q?(E=(0,b.jsxs)(n.default,{style:x.cluster,children:[D,q,V,K]}),s[45]=V,s[46]=K,s[47]=D,s[48]=q,s[49]=E):E=s[49];return E},_e.LockControl=function(e){const o=(0,t.c)(25),{deviceId:s,online:u}=e,{t:f}=(0,c.useTranslation)(),p=(0,h.useLockStatus)(s,u),S=(0,h.useCapMutator)(s),C=p.data?.state??"unlocked",j="locking"===C||"unlocking"===C,y="locked"===C;let P;o[0]!==S||o[1]!==p?(P=async e=>{await S.run("lockControl",e,{}),p.refetch()},o[0]=S,o[1]=p,o[2]=P):P=o[2];const _=P;if(p.isLoading&&!p.data){let e;return o[3]===Symbol.for("react.memo_cache_sentinel")?(e=(0,b.jsx)(v.ControlSpinner,{}),o[3]=e):e=o[3],e}const w=!u||S.pending||j;let k,I,B,M;o[4]!==f?(k=f("v2.accessories.lock"),o[4]=f,o[5]=k):k=o[5];o[6]!==_?(I=()=>{_("lock")},o[6]=_,o[7]=I):I=o[7];o[8]!==w||o[9]!==y||o[10]!==k||o[11]!==I?(B=(0,b.jsx)(v.PillButton,{label:k,icon:l.Lock,active:y,disabled:w,onPress:I}),o[8]=w,o[9]=y,o[10]=k,o[11]=I,o[12]=B):B=o[12];o[13]!==f?(M=f("v2.accessories.unlock"),o[13]=f,o[14]=M):M=o[14];const L=!y;let T,O,A;o[15]!==_?(T=()=>{_("unlock")},o[15]=_,o[16]=T):T=o[16];o[17]!==w||o[18]!==M||o[19]!==L||o[20]!==T?(O=(0,b.jsx)(v.PillButton,{label:M,icon:l.LockOpen,active:L,disabled:w,onPress:T}),o[17]=w,o[18]=M,o[19]=L,o[20]=T,o[21]=O):O=o[21];o[22]!==B||o[23]!==O?(A=(0,b.jsxs)(n.default,{style:x.cluster,children:[B,O]}),o[22]=B,o[23]=O,o[24]=A):A=o[24];return A},_e.CoverControl=function(e){const o=(0,t.c)(35),{deviceId:s,online:u,capKey:f}=e,{t:p}=(0,c.useTranslation)(),S=(0,h.useCoverStatus)(s,u),C=(0,h.useCapMutator)(s),j=S.data?.state??"stopped";let y;o[0]!==f||o[1]!==C||o[2]!==S?(y=async e=>{await C.run(f,e,{}),S.refetch()},o[0]=f,o[1]=C,o[2]=S,o[3]=y):y=o[3];const P=y;if(S.isLoading&&!S.data){let e;return o[4]===Symbol.for("react.memo_cache_sentinel")?(e=(0,b.jsx)(v.ControlSpinner,{}),o[4]=e):e=o[4],e}const _=!u||C.pending;let w;o[5]!==p?(w=p("v2.accessories.open"),o[5]=p,o[6]=w):w=o[6];const k="open"===j||"opening"===j;let I,B,M,L,T,O;o[7]!==P?(I=()=>{P("open")},o[7]=P,o[8]=I):I=o[8];o[9]!==_||o[10]!==w||o[11]!==k||o[12]!==I?(B=(0,b.jsx)(v.IconButton,{icon:l.ChevronUp,label:w,active:k,disabled:_,onPress:I}),o[9]=_,o[10]=w,o[11]=k,o[12]=I,o[13]=B):B=o[13];o[14]!==p?(M=p("v2.accessories.stop"),o[14]=p,o[15]=M):M=o[15];o[16]!==P?(L=()=>{P("stop")},o[16]=P,o[17]=L):L=o[17];o[18]!==_||o[19]!==M||o[20]!==L?(T=(0,b.jsx)(v.IconButton,{icon:l.Square,label:M,disabled:_,onPress:L}),o[18]=_,o[19]=M,o[20]=L,o[21]=T):T=o[21];o[22]!==p?(O=p("v2.accessories.close"),o[22]=p,o[23]=O):O=o[23];const A="closed"===j||"closing"===j;let D,W,U;o[24]!==P?(D=()=>{P("close")},o[24]=P,o[25]=D):D=o[25];o[26]!==_||o[27]!==A||o[28]!==D||o[29]!==O?(W=(0,b.jsx)(v.IconButton,{icon:l.ChevronDown,label:O,active:A,disabled:_,onPress:D}),o[26]=_,o[27]=A,o[28]=D,o[29]=O,o[30]=W):W=o[30];o[31]!==W||o[32]!==B||o[33]!==T?(U=(0,b.jsxs)(n.default,{style:x.cluster,children:[B,T,W]}),o[31]=W,o[32]=B,o[33]=T,o[34]=U):U=o[34];return U},_e.AlarmControl=function(e){const o=(0,t.c)(25),{deviceId:s,online:u}=e,{t:f}=(0,c.useTranslation)(),p=(0,h.useAlarmStatus)(s,u),S=(0,h.useCapMutator)(s),C=p.data?.state??"disarmed";let j;o[0]!==C?(j=C.startsWith("armed")||"arming"===C||"pending"===C||"triggered"===C,o[0]=C,o[1]=j):j=o[1];const y=j,P=p.data?.availableModes[0],_=p.data?.requiresCode??!1;let w;o[2]!==P||o[3]!==S||o[4]!==p?(w=async e=>{const t="arm"===e&&P?{mode:P}:{};await S.run("alarmPanel",e,t),p.refetch()},o[2]=P,o[3]=S,o[4]=p,o[5]=w):w=o[5];const k=w;if(p.isLoading&&!p.data){let e;return o[6]===Symbol.for("react.memo_cache_sentinel")?(e=(0,b.jsx)(v.ControlSpinner,{}),o[6]=e):e=o[6],e}const I=!u||S.pending,B=!_&&void 0!==P;let M,L;o[7]!==y||o[8]!==B||o[9]!==I||o[10]!==k||o[11]!==f?(M=B?(0,b.jsx)(v.PillButton,{label:f("v2.accessories.arm"),icon:l.ShieldCheck,active:y,disabled:I||y,onPress:()=>{k("arm")}}):null,o[7]=y,o[8]=B,o[9]=I,o[10]=k,o[11]=f,o[12]=M):M=o[12];o[13]!==f?(L=f("v2.accessories.disarm"),o[13]=f,o[14]=L):L=o[14];const T=!y,O=I||!y&&!_;let A,D,W;o[15]!==k?(A=()=>{k("disarm")},o[15]=k,o[16]=A):A=o[16];o[17]!==L||o[18]!==T||o[19]!==O||o[20]!==A?(D=(0,b.jsx)(v.PillButton,{label:L,icon:l.ShieldOff,active:T,disabled:O,onPress:A}),o[17]=L,o[18]=T,o[19]=O,o[20]=A,o[21]=D):D=o[21];o[22]!==M||o[23]!==D?(W=(0,b.jsxs)(n.default,{style:x.cluster,children:[M,D]}),o[22]=M,o[23]=D,o[24]=W):W=o[24];return W},_e.SensorValueControl=function(e){const n=(0,t.c)(6),{deviceId:s,online:c,feature:l}=e,{colors:f}=(0,u.useTheme)(),p=(0,h.useSensorValue)(l,s,c),C=p.data;if(p.isLoading&&!C){let e;return n[0]===Symbol.for("react.memo_cache_sentinel")?(e=(0,b.jsx)(v.ControlSpinner,{}),n[0]=e):e=n[0],e}if(!C)return null;const j="number"===C.kind?S(C.value,C.precision)+(C.unit?`\u202f${C.unit}`:""):String(C.value);let y,P;n[1]!==f.foreground?(y=[x.sensor,{color:f.foreground}],n[1]=f.foreground,n[2]=y):y=n[2];n[3]!==y||n[4]!==j?(P=(0,b.jsx)(o.default,{style:y,numberOfLines:1,children:j}),n[3]=y,n[4]=j,n[5]=P):P=n[5];return P};var t=r(d[0]);r(d[1]);var n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),c=r(d[5]),l=r(d[6]),u=r(d[7]),f=r(d[8]),h=r(d[9]),v=r(d[10]),b=r(d[11]);const p=20;function S(e,t){return'number'==typeof t?e.toFixed(t):Number.isInteger(e)?String(e):e.toFixed(1)}const x=s.default.create({cluster:{flexDirection:'row',alignItems:'center',gap:f.SPACING.sm},readout:{fontSize:12,fontWeight:'600',minWidth:34,textAlign:'center'},sensor:{fontSize:14,fontWeight:'600'}})},3366,[15,17,20,112,33,786,813,2587,2589,3363,3365,10]);
|
|
15788
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.CameraMenuPanel=function(e){const n=(0,t.c)(
|
|
15788
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.CameraMenuPanel=function(e){const n=(0,t.c)(37),{boundingBoxesOn:c,onToggleBoundingBoxes:M,statsOn:T,onToggleStats:b,highlight:S,onSetHighlight:C,onClose:P,topOffset:j,align:p,maxWidth:B}=e,{t:_}=(0,l.useTranslation)(),{colors:O}=(0,u.useTheme)();let w,y,A,H,L,R,W,D,G,I,N;n[0]!==_?(w=_("v2.cameraMenu.title"),n[0]=_,n[1]=w):w=n[1];n[2]!==_?(y=_("v2.cameraDetail.close"),n[2]=_,n[3]=y):y=n[3];n[4]!==_?(A=_("v2.cameraMenu.boundingBoxes"),n[4]=_,n[5]=A):A=n[5];n[6]!==c||n[7]!==M||n[8]!==A?(H=(0,v.jsx)(f.PanelToggleRow,{icon:s.SquareDashed,label:A,value:c,onValueChange:M}),n[6]=c,n[7]=M,n[8]=A,n[9]=H):H=n[9];n[10]!==_?(L=_("v2.cameraMenu.streamStats"),n[10]=_,n[11]=L):L=n[11];n[12]!==b||n[13]!==T||n[14]!==L?(R=(0,v.jsx)(f.PanelToggleRow,{icon:s.Activity,label:L,value:T,onValueChange:b}),n[12]=b,n[13]=T,n[14]=L,n[15]=R):R=n[15];n[16]!==O.foregroundMuted?(W=[x.sectionLabel,{color:O.foregroundMuted}],n[16]=O.foregroundMuted,n[17]=W):W=n[17];n[18]!==_?(D=_("v2.gridBuilder.highlightTitle"),n[18]=_,n[19]=D):D=n[19];n[20]!==W||n[21]!==D?(G=(0,v.jsx)(o.default,{style:W,children:D}),n[20]=W,n[21]=D,n[22]=G):G=n[22];n[23]!==S||n[24]!==C?(I=(0,v.jsx)(f.HighlightTriggerRows,{highlight:S,onSetHighlight:C}),n[23]=S,n[24]=C,n[25]=I):I=n[25];n[26]!==p||n[27]!==B||n[28]!==P||n[29]!==w||n[30]!==I||n[31]!==y||n[32]!==H||n[33]!==R||n[34]!==G||n[35]!==j?(N=(0,v.jsxs)(h.FloatingPanel,{title:w,onClose:P,closeLabel:y,topOffset:j,align:p,maxWidth:B,children:[H,R,G,I]}),n[26]=p,n[27]=B,n[28]=P,n[29]=w,n[30]=I,n[31]=y,n[32]=H,n[33]=R,n[34]=G,n[35]=j,n[36]=N):N=n[36];return N};var t=r(d[0]);r(d[1]);var o=e(r(d[2])),n=e(r(d[3])),l=r(d[4]),s=r(d[5]),u=r(d[6]),c=r(d[7]),h=r(d[8]),f=r(d[9]),v=r(d[10]);const x=n.default.create({sectionLabel:{fontSize:12,fontWeight:'600',paddingTop:c.SPACING.md,paddingBottom:c.SPACING.xs}})},3367,[15,17,112,33,786,813,2587,2589,3357,2838,10]);
|
|
15789
15789
|
__d(function(g,_r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.StreamStatsOverlay=function(t){const n=(0,e.c)(55),{getStats:b}=t,{t:h}=(0,r.useTranslation)(),[y,j]=(0,l.useState)(null);let S,x,k,w,z,_,W,M;n[0]!==b?(S=()=>{let t=!0;const e=async()=>{const e=await b().catch(p);t&&j(e)};e();const l=setInterval(()=>{e()},u);return()=>{t=!1,clearInterval(l)}},x=[b],n[0]=b,n[1]=S,n[2]=x):(S=n[1],x=n[2]);if((0,l.useEffect)(S,x),n[3]!==y||n[4]!==h){if(k=[],y){if(y.resolution){let t,e;n[6]!==h?(t=h("v2.stats.resolution"),n[6]=h,n[7]=t):t=n[7],n[8]!==y.resolution||n[9]!==t?(e={label:t,value:y.resolution},n[8]=y.resolution,n[9]=t,n[10]=e):e=n[10],k.push(e)}if(void 0!==y.fps){let t;n[11]!==h?(t=h("v2.stats.fps"),n[11]=h,n[12]=t):t=n[12];const e=String(y.fps);let l;n[13]!==t||n[14]!==e?(l={label:t,value:e},n[13]=t,n[14]=e,n[15]=l):l=n[15],k.push(l)}if(void 0!==y.bitrateKbps){let t;n[16]!==h?(t=h("v2.stats.bitrate"),n[16]=h,n[17]=t):t=n[17];const e=`${y.bitrateKbps} kbps`;let l;n[18]!==t||n[19]!==e?(l={label:t,value:e},n[18]=t,n[19]=e,n[20]=l):l=n[20],k.push(l)}if(void 0!==y.packetsLost){let t;n[21]!==h?(t=h("v2.stats.packetLoss"),n[21]=h,n[22]=t):t=n[22];const e=String(y.packetsLost);let l;n[23]!==t||n[24]!==e?(l={label:t,value:e},n[23]=t,n[24]=e,n[25]=l):l=n[25],k.push(l)}if(void 0!==y.jitterMs){let t;n[26]!==h?(t=h("v2.stats.jitter"),n[26]=h,n[27]=t):t=n[27];const e=`${y.jitterMs} ms`;let l;n[28]!==t||n[29]!==e?(l={label:t,value:e},n[28]=t,n[29]=e,n[30]=l):l=n[30],k.push(l)}if(y.codec){let t,e;n[31]!==h?(t=h("v2.stats.codec"),n[31]=h,n[32]=t):t=n[32],n[33]!==y.codec||n[34]!==t?(e={label:t,value:y.codec},n[33]=y.codec,n[34]=t,n[35]=e):e=n[35],k.push(e)}if("playback"===y.source&&(void 0!==y.dropped||void 0!==y.total)){let t;n[36]!==h?(t=h("v2.stats.frames"),n[36]=h,n[37]=t):t=n[37];const e=`${y.dropped??0}/${y.total??0}`;let l;n[38]!==t||n[39]!==e?(l={label:t,value:e},n[38]=t,n[39]=e,n[40]=l):l=n[40],k.push(l)}}n[3]=y,n[4]=h,n[5]=k}else k=n[5];n[41]!==h?(w=h("v2.stats.title"),n[41]=h,n[42]=w):w=n[42];n[43]!==w?(z=(0,c.jsx)(o.default,{style:v.title,children:w}),n[43]=w,n[44]=z):z=n[44];n[45]!==k||n[46]!==h?(_=0===k.length?(0,c.jsx)(o.default,{style:v.dim,children:h("v2.stats.waiting")}):k.map(f),n[45]=k,n[46]=h,n[47]=_):_=n[47];n[48]!==y?.source||n[49]!==h?(W="playback"===y?.source?(0,c.jsx)(o.default,{style:v.hint,children:h("v2.stats.playbackHint")}):null,n[48]=y?.source,n[49]=h,n[50]=W):W=n[50];n[51]!==z||n[52]!==_||n[53]!==W?(M=(0,c.jsxs)(s.default,{style:v.panel,pointerEvents:"none",children:[z,_,W]}),n[51]=z,n[52]=_,n[53]=W,n[54]=M):M=n[54];return M};var e=_r(d[0]),l=_r(d[1]),s=t(_r(d[2])),o=t(_r(d[3])),n=t(_r(d[4])),r=_r(d[5]),c=_r(d[6]);const u=1e3;function f(t){return(0,c.jsxs)(s.default,{style:v.row,children:[(0,c.jsx)(o.default,{style:v.label,children:t.label}),(0,c.jsx)(o.default,{style:v.value,children:t.value})]},t.label)}function p(){return null}const v=n.default.create({panel:{position:'absolute',top:36,left:8,minWidth:150,maxWidth:220,paddingHorizontal:10,paddingVertical:8,borderRadius:8,backgroundColor:'#000000b3'},title:{color:'#f59e42',fontSize:10,fontWeight:'800',letterSpacing:.5,marginBottom:4,textTransform:'uppercase'},row:{flexDirection:'row',justifyContent:'space-between',gap:12,paddingVertical:1},label:{color:'#a8a29e',fontSize:11},value:{color:'#fafaf9',fontSize:11,fontWeight:'600',fontVariant:['tabular-nums']},dim:{color:'#a8a29e',fontSize:11},hint:{color:'#78716c',fontSize:9,marginTop:4,maxWidth:200}})},3368,[15,17,20,112,33,786,10]);
|
|
15790
15790
|
__d(function(g,r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.MotionBoxesOverlay=function(e){const u=(0,t.c)(8),{deviceId:x,enabled:y}=e,{boxes:w}=(0,h.useDetections)(x,y);let _;u[0]===Symbol.for("react.memo_cache_sentinel")?(_={width:0,height:0},u[0]=_):_=u[0];const[p,S]=(0,l.useState)(_);let j;u[1]===Symbol.for("react.memo_cache_sentinel")?(j=e=>{const{width:t,height:l}=e.nativeEvent.layout;S(e=>e.width===t&&e.height===l?e:{width:t,height:l})},u[1]=j):j=u[1];const v=j;let M,F;u[2]!==w||u[3]!==p.height||u[4]!==p.width?(M=p.width>0&&p.height>0?w.map((e,t)=>{const l=e.x1*p.width,s=e.y1*p.height,h=(e.x2-e.x1)*p.width,u=(e.y2-e.y1)*p.height;if(h<=0||u<=0)return null;const x=(0,c.getClassColor)(e.label),y=Math.round(100*e.score),w=`${e.label}-${t}`,_=Math.max(24,p.width-l);return(0,f.jsxs)(o.default.Fragment,{children:[(0,f.jsx)(i.default,{style:[b.box,{borderColor:x,left:l,top:s,width:h,height:u}]}),(0,f.jsx)(i.default,{style:[b.label,{backgroundColor:x,left:l,top:Math.max(0,s-18),maxWidth:_}],children:(0,f.jsx)(n.default,{style:b.labelText,numberOfLines:1,adjustsFontSizeToFit:!0,minimumFontScale:.6,children:`${e.label} ${y}%`})})]},w)}):null,u[2]=w,u[3]=p.height,u[4]=p.width,u[5]=M):M=u[5];u[6]!==M?(F=(0,f.jsx)(i.default,{style:s.default.absoluteFill,pointerEvents:"none",onLayout:v,children:M}),u[6]=M,u[7]=F):F=u[7];return F};var t=r(d[0]),l=r(d[1]),o=e(l),i=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),h=r(d[5]),u=r(d[6]),c=r(d[7]),f=r(d[8]);const b=s.default.create({box:{position:'absolute',borderWidth:2,borderRadius:u.RADIUS.sm},label:{position:'absolute',alignSelf:'flex-start',paddingHorizontal:5,paddingVertical:1,borderRadius:u.RADIUS.sm},labelText:{fontSize:10,fontWeight:'700',color:'#ffffff'}})},3369,[15,17,20,112,33,3370,2589,2817,10]);
|
|
15791
15791
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.parseDetectionEvent=h,e.useDetections=function(c,f){const b=(0,t.c)(6),{controller:y,state:x}=(0,u.useConnection)(),[p,v]=(0,n.useState)(l),j=(0,n.useRef)(void 0);let w,C;b[0]!==x||b[1]!==y||b[2]!==c||b[3]!==f?(w=()=>{if(!f||"connected"!==x)return void v(l);const t=y.getSystem();if(!t)return;const n=()=>{j.current&&clearTimeout(j.current),j.current=void 0},u=t.subscribeEvent(o,t=>{const u=h(t);u&&Number(u.sourceId)===c&&(v({boxes:u.boxes,frameWidth:u.width,frameHeight:u.height}),n(),j.current=setTimeout(()=>v(l),s))});return()=>{u(),n(),v(l)}},C=[y,x,c,f],b[0]=x,b[1]=y,b[2]=c,b[3]=f,b[4]=w,b[5]=C):(w=b[4],C=b[5]);return(0,n.useEffect)(w,C),p};var t=r(d[0]),n=r(d[1]),u=r(d[2]);const o='detection.result',s=2500,l={boxes:[],frameWidth:0,frameHeight:0};function c(t){return'object'==typeof t&&null!==t}function f(t){return'number'==typeof t&&Number.isFinite(t)?t:null}function b(t,n,u){if(!c(t))return null;const o=f(t.x),s=f(t.y),l=f(t.width),b=f(t.height);if(null!==o&&null!==s&&null!==l&&null!==b&&n>0&&u>0)return{x1:o/n,y1:s/u,x2:(o+l)/n,y2:(s+b)/u};const y=f(t.x1),h=f(t.y1),x=f(t.x2),p=f(t.y2);return null!==y&&null!==h&&null!==x&&null!==p?{x1:y,y1:h,x2:x,y2:p}:null}function y(t){return'string'==typeof t.macroClass&&t.macroClass?t.macroClass:'string'==typeof t.class&&t.class?t.class:'string'==typeof t.label&&t.label?t.label:'object'}function h(t){if(!c(t))return null;const n=t.source;if(!c(n))return null;const u=n.id;if('string'!=typeof u&&'number'!=typeof u)return null;const o=t.data;if(!c(o))return null;const s=o.frame;if(!c(s))return null;const l=f(s.width)??0,h=f(s.height)??0,x=s.detections;if(!Array.isArray(x))return null;const p=[];for(const t of x){if(!c(t))continue;const n=f(t.score);if(null===n)continue;const u=b(t.bbox??t.boundingBox??t.region,l,h);u&&p.push(Object.assign({label:y(t),score:n},u))}return{sourceId:u,boxes:p,width:l,height:h}}},3370,[15,17,2594]);
|
|
15792
|
-
__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"TheaterTimeline",{enumerable:!0,get:function(){return Z}});var t=r(_d[0]),n=r(_d[1]),o=e(r(_d[2])),c=e(r(_d[3])),l=e(r(_d[4])),s=e(r(_d[5]));r(_d[6]);var u=r(_d[7]),d=r(_d[8]),h=r(_d[9]),f=r(_d[10]),p=r(_d[11]),b=r(_d[12]),v=r(_d[13]),S=r(_d[14]),y=r(_d[15]),T=r(_d[16]),P=r(_d[17]),x=r(_d[18]),_=r(_d[19]),I=r(_d[20]),M=r(_d[21]),E=r(_d[22]),D=r(_d[23]),L=r(_d[24]),O=r(_d[25]),w=r(_d[26]),A=r(_d[27]),j=r(_d[28]),R=r(_d[29]),k=r(_d[30]),C=r(_d[31]),z=r(_d[32]),B=r(_d[33]);const W=()=>{},F=864e5,H=p.SPACING.lg+36+p.SPACING.md,N='#ffffff',Z=(0,n.memo)(function(e){const l=(0,t.c)(261),{t:Z}=(0,u.useTranslation)(),{colors:J}=(0,f.useTheme)(),ee=(0,d.useSafeAreaInsets)(),[te,ne]=(0,n.useState)(V);let oe,re;l[0]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>{const e=setInterval(()=>ne(Date.now()),1e3);return()=>clearInterval(e)},re=[],l[0]=oe,l[1]=re):(oe=l[0],re=l[1]),(0,n.useEffect)(oe,re);const ie=(0,A.useSettings)().settings.clusters,[ce,le]=(0,n.useState)(T.DEFAULT_ZOOM_INDEX),se=ce<T.ZOOM_LEVELS.length-1,ae=ce>0;let ue;l[2]===Symbol.for("react.memo_cache_sentinel")?(ue=()=>le(K),l[2]=ue):ue=l[2];const de=ue;let me;l[3]===Symbol.for("react.memo_cache_sentinel")?(me=()=>le(q),l[3]=me):me=l[3];const he=me,[ge,fe]=(0,n.useState)(0),[pe,be]=(0,n.useState)(0),[ve,Se]=(0,n.useState)(0);let ye;l[4]===Symbol.for("react.memo_cache_sentinel")?(ye=e=>{const{height:t,width:n}=e.nativeEvent.layout;t>0&&be(t),n>0&&Se(n)},l[4]=ye):ye=l[4];const Te=ye;let Pe;l[5]!==ie.indicatorPositionPct||l[6]!==pe?(Pe=(0,x.indicatorOffsetPx)(pe,ie.indicatorPositionPct),l[5]=ie.indicatorPositionPct,l[6]=pe,l[7]=Pe):Pe=l[7];const xe=Pe,Ie=(0,n.useRef)(xe),Me=(0,n.useRef)(pe);let Ee,De;l[8]!==xe||l[9]!==pe?(Ee=()=>{Ie.current=xe,Me.current=pe},De=[xe,pe],l[8]=xe,l[9]=pe,l[10]=Ee,l[11]=De):(Ee=l[10],De=l[11]),(0,n.useEffect)(Ee,De);const[Le,Oe]=(0,n.useState)(Q),[we,Ae]=(0,n.useState)(!1);let je;l[12]!==Le?(je=(0,T.isFilterAll)(Le),l[12]=Le,l[13]=je):je=l[13];const Re=!je;let ke;l[14]===Symbol.for("react.memo_cache_sentinel")?(ke=()=>Ae(U),l[14]=ke):ke=l[14];const Ce=ke;let ze;l[15]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>Oe(new Set(T.ALL_BAR_KINDS)),l[15]=ze):ze=l[15];const Be=ze;let We;l[16]===Symbol.for("react.memo_cache_sentinel")?(We=e=>{Oe(t=>{const n=(0,T.isFilterAll)(t)?new Set:new Set(t);return n.has(e)?n.delete(e):n.add(e),0===n.size?new Set(T.ALL_BAR_KINDS):n})},l[16]=We):We=l[16];const Fe=We,He=te,Ne=e.scrubbing?e.scrubEpoch??e.playheadEpoch??te:e.playheadEpoch??te;let Ze;if(l[17]!==Ne){const e=new Date(Ne);e.setHours(0,0,0,0),Ze=e.getTime(),l[17]=Ne,l[18]=Ze}else Ze=l[18];const Ge=Ze,Ve=Ge+F;let Ke;l[19]!==Ge||l[20]!==Ve?(Ke={from:Ge,to:Ve},l[19]=Ge,l[20]=Ve,l[21]=Ke):Ke=l[21];const qe=Ke,[Qe,Ue]=(0,n.useState)(1),Ye=Ge-(Qe-1)*F,Xe=(0,n.useRef)(1);let $e,Je;l[22]!==Qe?($e=()=>{Xe.current=Qe},Je=[Qe],l[22]=Qe,l[23]=$e,l[24]=Je):($e=l[23],Je=l[24]),(0,n.useEffect)($e,Je);const et=(0,n.useRef)(Ye);let tt,nt;l[25]!==Ye?(tt=()=>{et.current=Ye},nt=[Ye],l[25]=Ye,l[26]=tt,l[27]=nt):(tt=l[26],nt=l[27]),(0,n.useEffect)(tt,nt);const ot=(0,n.useRef)(0);let rt,it,ct;if(l[28]===Symbol.for("react.memo_cache_sentinel")?(rt=()=>{Ue(1)},l[28]=rt):rt=l[28],l[29]!==Ge?(it=[Ge],l[29]=Ge,l[30]=it):it=l[30],(0,n.useEffect)(rt,it),l[31]!==te){const e=new Date(te);e.setHours(0,0,0,0),ct=e.getTime(),l[31]=te,l[32]=ct}else ct=l[32];const lt=ct,[st,at]=(0,n.useState)(!1),[ut,dt]=(0,n.useState)(Ge);let mt;l[33]!==ut?(mt=(0,L.monthBoundsForMs)(ut),l[33]=ut,l[34]=mt):mt=l[34];const{fromMs:ht,toMs:gt}=mt,{data:ft}=(0,I.useDaysWithRecordings)(e.deviceId,ht,gt,st),pt=e.onSeekToTime;let bt;l[35]!==Ge||l[36]!==te||l[37]!==pt||l[38]!==Ne?(bt=()=>{pt?.((0,O.dayAtSameTime)(Ne,Ge-F,te))},l[35]=Ge,l[36]=te,l[37]=pt,l[38]=Ne,l[39]=bt):bt=l[39];const vt=bt;let St;l[40]!==Ge||l[41]!==te||l[42]!==pt||l[43]!==lt||l[44]!==Ne?(St=()=>{Ge>=lt||pt?.((0,O.dayAtSameTime)(Ne,Ge+F,te))},l[40]=Ge,l[41]=te,l[42]=pt,l[43]=lt,l[44]=Ne,l[45]=St):St=l[45];const yt=St;let Tt;l[46]!==Ge?(Tt=()=>{dt(Ge),at(!0)},l[46]=Ge,l[47]=Tt):Tt=l[47];const Pt=Tt;let xt;l[48]!==te||l[49]!==pt||l[50]!==Ne?(xt=e=>{at(!1),pt?.((0,O.dayAtSameTime)(Ne,e,te))},l[48]=te,l[49]=pt,l[50]=Ne,l[51]=xt):xt=l[51];const _t=xt;let It;l[52]===Symbol.for("react.memo_cache_sentinel")?(It=e=>{dt(t=>{const n=new Date(t);return new Date(n.getFullYear(),n.getMonth()+e,1,0,0,0,0).getTime()})},l[52]=It):It=l[52];const Mt=It,{data:Et}=(0,j.useObjectEvents)(e.deviceId,Ye,qe.to);let Dt;l[53]!==Et?(Dt=void 0===Et?[]:Et,l[53]=Et,l[54]=Dt):Dt=l[54];const Lt=Dt,Ot=(0,R.useTimelineActivity)(e.deviceId,Ye,qe.to);let wt;l[55]!==ve?(wt=ve>0?Math.round(.72*ve):0,l[55]=ve,l[56]=wt):wt=l[56];const At=wt;let jt;l[57]!==At?(jt=At>0?Math.round(.5625*At):0,l[57]=At,l[58]=jt):jt=l[58];const Rt=jt,kt=Math.max(8,Rt),Ct=ie.gapPercent/100*kt;let zt;l[59]!==kt||l[60]!==Ct?(zt={sizePx:kt,gapPx:Ct},l[59]=kt,l[60]=Ct,l[61]=zt):zt=l[61];const{sizePx:Bt,gapPx:Wt}=zt;let Ft;l[62]!==ie.repPriority||l[63]!==Wt||l[64]!==Lt||l[65]!==Bt||l[66]!==He||l[67]!==ce?(Ft=(0,k.clusterByZoom)(Lt,{topMs:He,zoomIndex:ce,sizePx:Bt,gapPx:Wt},ie.repPriority),l[62]=ie.repPriority,l[63]=Wt,l[64]=Lt,l[65]=Bt,l[66]=He,l[67]=ce,l[68]=Ft):Ft=l[68];const Ht=Ft;let Nt;if(l[69]!==Ht||l[70]!==ge||l[71]!==pe){let e;l[73]!==ge||l[74]!==pe?(e=e=>e.topPx>=ge-80-e.heightPx&&e.topPx<=ge+pe+80,l[73]=ge,l[74]=pe,l[75]=e):e=l[75],Nt=Ht.filter(e),l[69]=Ht,l[70]=ge,l[71]=pe,l[72]=Nt}else Nt=l[72];const Zt=Nt.length;let Gt,Vt;l[76]!==Ot.audio.length||l[77]!==Ot.motion.length||l[78]!==Ot.recording.length||l[79]!==At||l[80]!==Ht||l[81]!==qe||l[82]!==Wt||l[83]!==ve||l[84]!==Lt||l[85]!==e.deviceId||l[86]!==ge||l[87]!==Bt||l[88]!==pe||l[89]!==Zt||l[90]!==ce?(Gt=()=>{const t=Y,n=Lt.map(X);M.log.info("theater:clusters","render state",{deviceId:e.deviceId,objectEvents:Lt.length,objectEventRange:n.length>0?{first:t(Math.min(...n)),last:t(Math.max(...n))}:null,clusters:Ht.length,clusterSpans:Ht.slice(0,8).map(e=>({s:t(e.startMs),e:t(e.endMs),n:e.events.length,topPx:Math.round(e.topPx)})),visibleClusters:Zt,activity:{recording:Ot.recording.length,motion:Ot.motion.length,audio:Ot.audio.length},geometry:{cardWidth:At,viewportHeight:pe,listWrapWidth:ve,scrollOffsetY:ge,sizePx:Bt,gapPx:Wt,zoomIndex:ce},dayWindow:qe})},Vt=[e.deviceId,Lt,Ht,Zt,Ot.recording.length,Ot.motion.length,Ot.audio.length,At,pe,ve,ge,Bt,Wt,ce,qe],l[76]=Ot.audio.length,l[77]=Ot.motion.length,l[78]=Ot.recording.length,l[79]=At,l[80]=Ht,l[81]=qe,l[82]=Wt,l[83]=ve,l[84]=Lt,l[85]=e.deviceId,l[86]=ge,l[87]=Bt,l[88]=pe,l[89]=Zt,l[90]=ce,l[91]=Gt,l[92]=Vt):(Gt=l[91],Vt=l[92]),(0,n.useEffect)(Gt,Vt);const{data:Kt}=(0,I.useRecordingAvailability)(e.deviceId,qe.from,qe.to,!0);let qt;l[93]!==Kt?(qt=void 0===Kt?[]:Kt,l[93]=Kt,l[94]=qt):qt=l[94];const Qt=qt;let Ut,Yt,Xt;l[95]!==Qt.length||l[96]!==e.deviceId?(Ut=()=>{M.log.info("timeline","coverage",{deviceId:e.deviceId,count:Qt.length})},Yt=[e.deviceId,Qt.length],l[95]=Qt.length,l[96]=e.deviceId,l[97]=Ut,l[98]=Yt):(Ut=l[97],Yt=l[98]),(0,n.useEffect)(Ut,Yt);e:{const t=e.scrubbing?e.scrubEpoch??null:e.playheadEpoch??null;if(null===t){let e;l[99]!==te?(e=(0,T.heatmapCursorFraction)(te),l[99]=te,l[100]=e):e=l[100],Xt=e;break e}const n=qe.to-qe.from;n<=0?Xt=0:Xt=Math.min(1,Math.max(0,(t-qe.from)/n))}const $t=Xt,Jt=(0,n.useRef)(null),en=(0,n.useRef)(0),[tn,nn]=(0,n.useState)(null),[on,rn]=(0,n.useState)(!0),cn=(0,n.useRef)(!0),ln=(0,n.useRef)(0),sn=(0,n.useRef)(!1),an=(0,n.useRef)(null),un=(0,n.useRef)(!1),dn=(0,n.useRef)(null),mn=(0,n.useRef)(null);let hn;l[101]===Symbol.for("react.memo_cache_sentinel")?(hn=()=>{an.current&&(clearTimeout(an.current),an.current=null),sn.current=!0},l[101]=hn):hn=l[101];const gn=hn;let fn;l[102]===Symbol.for("react.memo_cache_sentinel")?(fn=()=>{an.current&&clearTimeout(an.current),an.current=setTimeout(()=>{sn.current=!1,un.current=!1},350)},l[102]=fn):fn=l[102];const pn=fn;let bn;l[103]===Symbol.for("react.memo_cache_sentinel")?(bn=()=>{gn(),pn()},l[103]=bn):bn=l[103];const vn=bn;let Sn;l[104]===Symbol.for("react.memo_cache_sentinel")?(Sn={onWheel:vn,onPointerDown:gn,onPointerUp:pn,onPointerCancel:pn},l[104]=Sn):Sn=l[104];const yn=Sn;let Tn;l[105]!==e||l[106]!==He||l[107]!==ce?(Tn=t=>{const n=t.nativeEvent.contentOffset.y;fe(n);const o=Ie.current,c=Me.current,l=(0,P.epochToOffset)(et.current,He,ce);if(n>=o+Math.max(c,l)-c-c)if(Xe.current<30)Ue($);else{const t=Date.now();t-ot.current>=5e3&&(ot.current=t,M.log.info("theater","back-scroll capped at MAX_LOOKBACK_DAYS",{deviceId:e.deviceId,days:30}))}const s=Math.round((0,P.offsetToEpoch)(n,He,ce)),u=He-s,d=(0,_.liveEdgeScrollDecision)({behindLiveMs:u,wasLive:cn.current,touchActive:sn.current,toleranceMs:15e3});if(d.isLive!==cn.current&&(cn.current=d.isLive,rn(d.isLive)),"go-live"===d.action)return M.log.debug("theater:live-edge","go-live (drag entered live edge)",{behindLiveMs:u,toleranceMs:15e3,epoch:s,topMs:He}),dn.current&&(clearTimeout(dn.current),dn.current=null),mn.current=null,un.current=!1,void e.onGoLive?.();if("scrub"!==d.action)return;un.current||(un.current=!0,dn.current&&(clearTimeout(dn.current),dn.current=null),e.onTimelineScrubStart?.());const h=Date.now();h-ln.current<100||(ln.current=h,mn.current=s,e.onTimelineScrubTo?.(s),dn.current&&clearTimeout(dn.current),dn.current=setTimeout(()=>{dn.current=null;const t=mn.current;null!=t&&e.onTimelineScrubEnd?.(t)},220))},l[105]=e,l[106]=He,l[107]=ce,l[108]=Tn):Tn=l[108];const Pn=Tn;let xn;l[109]===Symbol.for("react.memo_cache_sentinel")?(xn=(e,t)=>{Jt.current?.scrollToOffset({offset:e,animated:t})},l[109]=xn):xn=l[109];const _n=xn,In=e.onGoLive;let Mn;l[110]!==In?(Mn=()=>{_n(0,!0),cn.current=!0,rn(!0),In?.()},l[110]=In,l[111]=Mn):Mn=l[111];const En=Mn;let Dn,Ln,On;l[112]!==e.playheadEpoch||l[113]!==e.scrubEpoch||l[114]!==e.scrubbing||l[115]!==He||l[116]!==ce?(Dn=()=>{if(sn.current)return;if(Date.now()<en.current)return;const t=e.scrubbing?e.scrubEpoch??null:e.playheadEpoch??null;if(null===t)return;const n=(0,P.epochToOffset)(t,He,ce);_n(n,!1)},Ln=[e.scrubbing,e.scrubEpoch,e.playheadEpoch,He,ce,_n],l[112]=e.playheadEpoch,l[113]=e.scrubEpoch,l[114]=e.scrubbing,l[115]=He,l[116]=ce,l[117]=Dn,l[118]=Ln):(Dn=l[117],Ln=l[118]),(0,n.useEffect)(Dn,Ln),l[119]!==e||l[120]!==pe?(On=t=>{const n=Math.max(0,t.topPx+t.heightPx/2);M.log.info("theater:clusters","tap",{epoch:t.representative.timestamp,topPx:Math.round(t.topPx),offset:Math.round(n),viewportHeight:pe,hasScroller:null!=Jt.current}),en.current=Date.now()+2500,e.onTimelineSeek?.(t.representative.timestamp),setTimeout(()=>_n(n,!0),380)},l[119]=e,l[120]=pe,l[121]=On):On=l[121];const wn=On;let An;l[122]===Symbol.for("react.memo_cache_sentinel")?(An=e=>{nn(e)},l[122]=An):An=l[122];const jn=An;let Rn;l[123]!==e?(Rn=t=>{en.current=Date.now()+2500,e.onTimelineSeek?.(t),nn(null)},l[123]=e,l[124]=Rn):Rn=l[124];const kn=Rn,Cn=e.onSeekToTime;let zn;l[125]!==qe.from||l[126]!==qe.to?(zn=e=>Math.round(qe.from+e*(qe.to-qe.from)),l[125]=qe.from,l[126]=qe.to,l[127]=zn):zn=l[127];const Bn=zn;let Wn;l[128]!==Bn||l[129]!==Cn?(Wn=e=>{const t=Bn(e);M.log.debug("timeline","heatmap seek",{fraction:e,snapped:t}),null!==t&&Cn?.(t)},l[128]=Bn,l[129]=Cn,l[130]=Wn):Wn=l[130];const Fn=Wn,Hn=e.onScrubToTime,Nn=e.onScrubEnd;let Zn;l[131]!==Bn||l[132]!==Hn?(Zn=e=>{const t=Bn(e);M.log.debug("timeline","heatmap scrub",{fraction:e,snapped:t}),null!==t&&Hn?.(t)},l[131]=Bn,l[132]=Hn,l[133]=Zn):Zn=l[133];const Gn=Zn;let Vn;l[134]!==Bn||l[135]!==Nn?(Vn=e=>{const t=Bn(e);M.log.debug("timeline","heatmap scrubEnd",{fraction:e,snapped:t}),null!==t&&Nn?.(t)},l[134]=Bn,l[135]=Nn,l[136]=Vn):Vn=l[136];const Kn=Vn;let qn;l[137]!==Le?(qn=(0,T.isFilterAll)(Le),l[137]=Le,l[138]=qn):qn=l[138];const Qn=qn;let Un;l[139]!==Le||l[140]!==Qn?(Un=Qn||Le.has("motion"),l[139]=Le,l[140]=Qn,l[141]=Un):Un=l[141];const Yn=Un;let Xn;l[142]!==Lt||l[143]!==Yn?(Xn=Yn?Lt:[],l[142]=Lt,l[143]=Yn,l[144]=Xn):Xn=l[144];const $n=Xn;let Jn;l[145]!==$n||l[146]!==Ge?(Jn=(0,E.objectEventsToHeatmapBins)($n,Ge),l[145]=$n,l[146]=Ge,l[147]=Jn):Jn=l[147];const eo=Jn;let to;l[148]!==$n||l[149]!==Ge?(to=(0,E.objectEventsToHeatmapHighlights)($n,Ge),l[148]=$n,l[149]=Ge,l[150]=to):to=l[150];const no=to,oo=e.scrubbing?e.scrubEpoch??e.playheadEpoch??te:e.playheadEpoch??te;let ro;l[151]!==oo?(ro=new Date(oo).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"}),l[151]=oo,l[152]=ro):ro=l[152];const io=ro;let co;l[153]!==J.background?(co=[G.container,{backgroundColor:J.background}],l[153]=J.background,l[154]=co):co=l[154];const lo=e.onBack;let so;l[155]!==Ge||l[156]!==te||l[157]!==Z?(so=(0,O.dateLabel)(Ge,te,Z),l[155]=Ge,l[156]=te,l[157]=Z,l[158]=so):so=l[158];const ao=pt?vt:W,uo=pt?Pt:W,mo=pt?yt:W,ho=!pt||Ge>=lt,go=e.hasPtz,fo=e.ptzOpen,po=e.onTogglePtz,bo=e.devicesOpen,vo=e.onToggleDevices,So=e.menuOpen,yo=e.onToggleMenu,To=e.onOpenQuality;let Po;l[159]!==e.quality||l[160]!==Z?(Po=Z((0,w.qualityLabelKey)(e.quality)),l[159]=e.quality,l[160]=Z,l[161]=Po):Po=l[161];const xo=e.onSnapshot,_o=e.snapshotBusy;let Io,Mo;l[162]!==Z?(Io=Z("v2.cameraDetail.snapshot"),l[162]=Z,l[163]=Io):Io=l[163],l[164]!==e.devicesOpen||l[165]!==e.hasPtz||l[166]!==e.menuOpen||l[167]!==e.onBack||l[168]!==e.onOpenQuality||l[169]!==e.onSnapshot||l[170]!==e.onToggleDevices||l[171]!==e.onToggleMenu||l[172]!==e.onTogglePtz||l[173]!==e.ptzOpen||l[174]!==e.snapshotBusy||l[175]!==so||l[176]!==ao||l[177]!==uo||l[178]!==mo||l[179]!==ho||l[180]!==Po||l[181]!==Io?(Mo=(0,B.jsx)(b.TimelineToolbarInline,{onBack:lo,dateLabel:so,onPrevDay:ao,onOpenDatePicker:uo,onNextDay:mo,nextDayDisabled:ho,hasPtz:go,ptzOpen:fo,onTogglePtz:po,devicesOpen:bo,onToggleDevices:vo,menuOpen:So,onToggleMenu:yo,onOpenQuality:To,qualityLabel:Po,onSnapshot:xo,snapshotBusy:_o,snapshotLabel:Io}),l[164]=e.devicesOpen,l[165]=e.hasPtz,l[166]=e.menuOpen,l[167]=e.onBack,l[168]=e.onOpenQuality,l[169]=e.onSnapshot,l[170]=e.onToggleDevices,l[171]=e.onToggleMenu,l[172]=e.onTogglePtz,l[173]=e.ptzOpen,l[174]=e.snapshotBusy,l[175]=so,l[176]=ao,l[177]=uo,l[178]=mo,l[179]=ho,l[180]=Po,l[181]=Io,l[182]=Mo):Mo=l[182];const Eo=e.onSeekToTime?Fn:void 0,Do=e.onScrubToTime?Gn:void 0,Lo=e.onScrubEnd?Kn:void 0;let Oo,wo,Ao,jo,Ro,ko,Co,zo,Bo,Wo,Fo,Ho,No,Zo;return l[183]!==eo||l[184]!==Qt||l[185]!==$t||l[186]!==qe.from||l[187]!==qe.to||l[188]!==no||l[189]!==e.onScrubStart||l[190]!==Eo||l[191]!==Do||l[192]!==Lo?(Oo=(0,B.jsx)(v.HeatmapBar,{bins:eo,cursorFraction:$t,eventMarkers:no,coverage:Qt,dayStartMs:qe.from,dayEndMs:qe.to,onSeekFraction:Eo,onScrubStart:e.onScrubStart,onScrubFraction:Do,onScrubEnd:Lo}),l[183]=eo,l[184]=Qt,l[185]=$t,l[186]=qe.from,l[187]=qe.to,l[188]=no,l[189]=e.onScrubStart,l[190]=Eo,l[191]=Do,l[192]=Lo,l[193]=Oo):Oo=l[193],l[194]!==J.danger||l[195]!==J.live||l[196]!==En||l[197]!==on||l[198]!==Z?(wo=on?(0,B.jsxs)(o.default,{style:[G.livePill,{backgroundColor:`${J.live}26`}],children:[(0,B.jsx)(o.default,{style:[G.liveDot,{backgroundColor:J.live}]}),(0,B.jsx)(c.default,{style:[G.liveText,{color:J.live}],children:Z("v2.theater.live")})]}):(0,B.jsxs)(s.default,{style:[G.goLivePill,{backgroundColor:J.danger}],onPress:En,accessibilityRole:"button",accessibilityLabel:Z("v2.theater.goToLive"),children:[(0,B.jsx)(h.ArrowUp,{size:13,color:N}),(0,B.jsx)(c.default,{style:[G.goLiveText,{color:N}],children:Z("v2.theater.goToLive")})]}),l[194]=J.danger,l[195]=J.live,l[196]=En,l[197]=on,l[198]=Z,l[199]=wo):wo=l[199],l[200]!==qe.to||l[201]!==Ye?(Ao={from:Ye,to:qe.to},l[200]=qe.to,l[201]=Ye,l[202]=Ao):Ao=l[202],l[203]!==Ot||l[204]!==At||l[205]!==ie.activityVariant||l[206]!==Ht||l[207]!==Pn||l[208]!==xe||l[209]!==wn||l[210]!==Ao||l[211]!==He||l[212]!==pe||l[213]!==ce?(jo=(0,B.jsx)(z.TimelineScroller,{ref:Jt,topMs:He,zoomIndex:ce,dayWindow:Ao,clusters:Ht,activity:Ot,activityVariant:ie.activityVariant,cardWidth:At,viewportHeight:pe,indicatorOffsetPx:xe,onScroll:Pn,onClusterPress:wn,onClusterOpenDetail:jn}),l[203]=Ot,l[204]=At,l[205]=ie.activityVariant,l[206]=Ht,l[207]=Pn,l[208]=xe,l[209]=wn,l[210]=Ao,l[211]=He,l[212]=pe,l[213]=ce,l[214]=jo):jo=l[214],l[215]!==J.danger||l[216]!==J.live||l[217]!==xe||l[218]!==io||l[219]!==on||l[220]!==Z||l[221]!==pe?(Ro=pe>0?(0,B.jsxs)(o.default,{style:[G.indicator,{top:xe}],pointerEvents:"none",children:[(0,B.jsx)(o.default,{style:[G.indicatorLine,{backgroundColor:on?J.live:J.danger}]}),(0,B.jsx)(o.default,{style:[G.indicatorPill,{backgroundColor:on?J.live:J.danger}],children:(0,B.jsx)(c.default,{style:[G.indicatorLabel,p.TABULAR,{color:N}],children:on?Z("v2.theater.live"):io})})]}):null,l[215]=J.danger,l[216]=J.live,l[217]=xe,l[218]=io,l[219]=on,l[220]=Z,l[221]=pe,l[222]=Ro):Ro=l[222],l[223]!==Le||l[224]!==we||l[225]!==ee.bottom?(ko=we?(0,B.jsx)(y.TimelineFilterPanel,{filter:Le,onToggleKind:Fe,onReset:Be,bottomInset:ee.bottom+H}):null,l[223]=Le,l[224]=we,l[225]=ee.bottom,l[226]=ko):ko=l[226],l[227]!==se||l[228]!==ae||l[229]!==Re||l[230]!==we||l[231]!==ee.bottom?(Co=(0,B.jsx)(S.TimelineFabControls,{onZoomIn:de,onZoomOut:he,onFilter:Ce,onPickCamera:W,canZoomIn:se,canZoomOut:ae,filterActive:Re,filterOpen:we,bottomInset:ee.bottom}),l[227]=se,l[228]=ae,l[229]=Re,l[230]=we,l[231]=ee.bottom,l[232]=Co):Co=l[232],l[233]!==jo||l[234]!==Ro||l[235]!==ko||l[236]!==Co?(zo=(0,B.jsxs)(o.default,Object.assign({style:G.listWrap,onLayout:Te,onTouchStart:gn,onTouchEnd:pn,onTouchCancel:pn},yn,{children:[jo,Ro,ko,Co]})),l[233]=jo,l[234]=Ro,l[235]=ko,l[236]=Co,l[237]=zo):zo=l[237],l[238]!==ft?(Bo=ft??new Set,l[238]=ft,l[239]=Bo):Bo=l[239],l[240]===Symbol.for("react.memo_cache_sentinel")?(Wo=()=>at(!1),l[240]=Wo):Wo=l[240],l[241]!==Ge||l[242]!==_t||l[243]!==te||l[244]!==ut||l[245]!==st||l[246]!==Bo?(Fo=(0,B.jsx)(D.DatePickerModal,{visible:st,monthAnchorMs:ut,selectedDayMs:Ge,daysSet:Bo,nowMs:te,onChangeMonth:Mt,onPick:_t,onClose:Wo}),l[241]=Ge,l[242]=_t,l[243]=te,l[244]=ut,l[245]=st,l[246]=Bo,l[247]=Fo):Fo=l[247],l[248]===Symbol.for("react.memo_cache_sentinel")?(Ho=()=>nn(null),l[248]=Ho):Ho=l[248],l[249]!==tn||l[250]!==kn||l[251]!==e.deviceId?(No=(0,B.jsx)(C.ClusterDetailModal,{deviceId:e.deviceId,cluster:tn,onSeek:kn,onClose:Ho}),l[249]=tn,l[250]=kn,l[251]=e.deviceId,l[252]=No):No=l[252],l[253]!==No||l[254]!==co||l[255]!==Mo||l[256]!==Oo||l[257]!==wo||l[258]!==zo||l[259]!==Fo?(Zo=(0,B.jsxs)(o.default,{style:co,children:[Mo,Oo,wo,zo,Fo,No]}),l[253]=No,l[254]=co,l[255]=Mo,l[256]=Oo,l[257]=wo,l[258]=zo,l[259]=Fo,l[260]=Zo):Zo=l[260],Zo}),G=l.default.create({container:{flex:1},livePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},liveDot:{width:6,height:6,borderRadius:3},liveText:{fontSize:11,fontWeight:'700'},goLivePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},goLiveText:{fontSize:11,fontWeight:'700'},listWrap:{flex:1,position:'relative'},indicator:{position:'absolute',left:0,right:0,flexDirection:'row',alignItems:'center',paddingLeft:p.SPACING.md},indicatorLine:{position:'absolute',left:0,right:0,height:1.5},indicatorPill:{paddingHorizontal:p.SPACING.sm,paddingVertical:1,borderRadius:4},indicatorLabel:{fontSize:10,fontWeight:'700',letterSpacing:.3},drawerHandle:{position:'absolute',left:0,top:'50%',marginTop:-16,width:16,height:32,borderTopRightRadius:8,borderBottomRightRadius:8,borderWidth:1,borderLeftWidth:0,alignItems:'center',justifyContent:'center'},scrollIndicatorTrack:{position:'absolute',right:2,top:p.SPACING.lg,bottom:p.SPACING.lg,width:3,alignItems:'center'},scrollIndicatorThumb:{width:3,height:48,borderRadius:2,opacity:.7}});function V(){return Date.now()}function K(e){return(0,T.clampZoomIndex)(e+1)}function q(e){return(0,T.clampZoomIndex)(e-1)}function Q(){return new Set(T.ALL_BAR_KINDS)}function U(e){return!e}function Y(e){return new Date(e).toLocaleTimeString()}function X(e){return e.timestamp}function $(e){return Math.min(30,e+1)}},3371,[15,17,20,112,33,252,136,786,466,813,2587,2589,3372,3373,3374,3375,2818,3376,3377,3378,3379,2704,2816,3382,3383,3384,3385,2836,3386,3387,3389,2819,3390,10]);
|
|
15793
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"TimelineToolbarInline",{enumerable:!0,get:function(){return x}});var o=r(d[0]),n=r(d[1]),t=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),f=r(d[7]),p=r(d[8]),h=r(d[9]),y=r(d[10]),b=r(d[11]);const x=(0,n.memo)(function(e){const n=(0,o.c)(
|
|
15792
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"TheaterTimeline",{enumerable:!0,get:function(){return Z}});var t=r(_d[0]),n=r(_d[1]),o=e(r(_d[2])),c=e(r(_d[3])),l=e(r(_d[4])),s=e(r(_d[5]));r(_d[6]);var u=r(_d[7]),d=r(_d[8]),h=r(_d[9]),f=r(_d[10]),p=r(_d[11]),b=r(_d[12]),v=r(_d[13]),S=r(_d[14]),y=r(_d[15]),T=r(_d[16]),P=r(_d[17]),x=r(_d[18]),_=r(_d[19]),I=r(_d[20]),M=r(_d[21]),E=r(_d[22]),D=r(_d[23]),L=r(_d[24]),O=r(_d[25]),w=r(_d[26]),k=r(_d[27]),A=r(_d[28]),j=r(_d[29]),R=r(_d[30]),C=r(_d[31]),z=r(_d[32]),B=r(_d[33]);const W=()=>{},F=864e5,H=p.SPACING.lg+36+p.SPACING.md,N='#ffffff',Z=(0,n.memo)(function(e){const l=(0,t.c)(262),{t:Z}=(0,u.useTranslation)(),{colors:J}=(0,f.useTheme)(),ee=(0,d.useSafeAreaInsets)(),[te,ne]=(0,n.useState)(V);let oe,re;l[0]===Symbol.for("react.memo_cache_sentinel")?(oe=()=>{const e=setInterval(()=>ne(Date.now()),1e3);return()=>clearInterval(e)},re=[],l[0]=oe,l[1]=re):(oe=l[0],re=l[1]),(0,n.useEffect)(oe,re);const ie=(0,k.useSettings)().settings.clusters,[ce,le]=(0,n.useState)(T.DEFAULT_ZOOM_INDEX),se=ce<T.ZOOM_LEVELS.length-1,ae=ce>0;let ue;l[2]===Symbol.for("react.memo_cache_sentinel")?(ue=()=>le(K),l[2]=ue):ue=l[2];const de=ue;let he;l[3]===Symbol.for("react.memo_cache_sentinel")?(he=()=>le(q),l[3]=he):he=l[3];const me=he,[ge,fe]=(0,n.useState)(0),[pe,be]=(0,n.useState)(0),[ve,Se]=(0,n.useState)(0);let ye;l[4]===Symbol.for("react.memo_cache_sentinel")?(ye=e=>{const{height:t,width:n}=e.nativeEvent.layout;t>0&&be(t),n>0&&Se(n)},l[4]=ye):ye=l[4];const Te=ye;let Pe;l[5]!==ie.indicatorPositionPct||l[6]!==pe?(Pe=(0,x.indicatorOffsetPx)(pe,ie.indicatorPositionPct),l[5]=ie.indicatorPositionPct,l[6]=pe,l[7]=Pe):Pe=l[7];const xe=Pe,Ie=(0,n.useRef)(xe),Me=(0,n.useRef)(pe);let Ee,De;l[8]!==xe||l[9]!==pe?(Ee=()=>{Ie.current=xe,Me.current=pe},De=[xe,pe],l[8]=xe,l[9]=pe,l[10]=Ee,l[11]=De):(Ee=l[10],De=l[11]),(0,n.useEffect)(Ee,De);const[Le,Oe]=(0,n.useState)(Q),[we,ke]=(0,n.useState)(!1);let Ae;l[12]!==Le?(Ae=(0,T.isFilterAll)(Le),l[12]=Le,l[13]=Ae):Ae=l[13];const je=!Ae;let Re;l[14]===Symbol.for("react.memo_cache_sentinel")?(Re=()=>ke(U),l[14]=Re):Re=l[14];const Ce=Re;let ze;l[15]===Symbol.for("react.memo_cache_sentinel")?(ze=()=>Oe(new Set(T.ALL_BAR_KINDS)),l[15]=ze):ze=l[15];const Be=ze;let We;l[16]===Symbol.for("react.memo_cache_sentinel")?(We=e=>{Oe(t=>{const n=(0,T.isFilterAll)(t)?new Set:new Set(t);return n.has(e)?n.delete(e):n.add(e),0===n.size?new Set(T.ALL_BAR_KINDS):n})},l[16]=We):We=l[16];const Fe=We,He=te,Ne=e.scrubbing?e.scrubEpoch??e.playheadEpoch??te:e.playheadEpoch??te;let Ze;if(l[17]!==Ne){const e=new Date(Ne);e.setHours(0,0,0,0),Ze=e.getTime(),l[17]=Ne,l[18]=Ze}else Ze=l[18];const Ge=Ze,Ve=Ge+F;let Ke;l[19]!==Ge||l[20]!==Ve?(Ke={from:Ge,to:Ve},l[19]=Ge,l[20]=Ve,l[21]=Ke):Ke=l[21];const qe=Ke,[Qe,Ue]=(0,n.useState)(1),Ye=Ge-(Qe-1)*F,Xe=(0,n.useRef)(1);let $e,Je;l[22]!==Qe?($e=()=>{Xe.current=Qe},Je=[Qe],l[22]=Qe,l[23]=$e,l[24]=Je):($e=l[23],Je=l[24]),(0,n.useEffect)($e,Je);const et=(0,n.useRef)(Ye);let tt,nt;l[25]!==Ye?(tt=()=>{et.current=Ye},nt=[Ye],l[25]=Ye,l[26]=tt,l[27]=nt):(tt=l[26],nt=l[27]),(0,n.useEffect)(tt,nt);const ot=(0,n.useRef)(0);let rt,it,ct;if(l[28]===Symbol.for("react.memo_cache_sentinel")?(rt=()=>{Ue(1)},l[28]=rt):rt=l[28],l[29]!==Ge?(it=[Ge],l[29]=Ge,l[30]=it):it=l[30],(0,n.useEffect)(rt,it),l[31]!==te){const e=new Date(te);e.setHours(0,0,0,0),ct=e.getTime(),l[31]=te,l[32]=ct}else ct=l[32];const lt=ct,[st,at]=(0,n.useState)(!1),[ut,dt]=(0,n.useState)(Ge);let ht;l[33]!==ut?(ht=(0,L.monthBoundsForMs)(ut),l[33]=ut,l[34]=ht):ht=l[34];const{fromMs:mt,toMs:gt}=ht,{data:ft}=(0,I.useDaysWithRecordings)(e.deviceId,mt,gt,st),pt=e.onSeekToTime;let bt;l[35]!==Ge||l[36]!==te||l[37]!==pt||l[38]!==Ne?(bt=()=>{pt?.((0,O.dayAtSameTime)(Ne,Ge-F,te))},l[35]=Ge,l[36]=te,l[37]=pt,l[38]=Ne,l[39]=bt):bt=l[39];const vt=bt;let St;l[40]!==Ge||l[41]!==te||l[42]!==pt||l[43]!==lt||l[44]!==Ne?(St=()=>{Ge>=lt||pt?.((0,O.dayAtSameTime)(Ne,Ge+F,te))},l[40]=Ge,l[41]=te,l[42]=pt,l[43]=lt,l[44]=Ne,l[45]=St):St=l[45];const yt=St;let Tt;l[46]!==Ge?(Tt=()=>{dt(Ge),at(!0)},l[46]=Ge,l[47]=Tt):Tt=l[47];const Pt=Tt;let xt;l[48]!==te||l[49]!==pt||l[50]!==Ne?(xt=e=>{at(!1),pt?.((0,O.dayAtSameTime)(Ne,e,te))},l[48]=te,l[49]=pt,l[50]=Ne,l[51]=xt):xt=l[51];const _t=xt;let It;l[52]===Symbol.for("react.memo_cache_sentinel")?(It=e=>{dt(t=>{const n=new Date(t);return new Date(n.getFullYear(),n.getMonth()+e,1,0,0,0,0).getTime()})},l[52]=It):It=l[52];const Mt=It,{data:Et}=(0,A.useObjectEvents)(e.deviceId,Ye,qe.to);let Dt;l[53]!==Et?(Dt=void 0===Et?[]:Et,l[53]=Et,l[54]=Dt):Dt=l[54];const Lt=Dt,Ot=(0,j.useTimelineActivity)(e.deviceId,Ye,qe.to);let wt;l[55]!==ve?(wt=ve>0?Math.round(.72*ve):0,l[55]=ve,l[56]=wt):wt=l[56];const kt=wt;let At;l[57]!==kt?(At=kt>0?Math.round(.5625*kt):0,l[57]=kt,l[58]=At):At=l[58];const jt=At,Rt=Math.max(8,jt),Ct=ie.gapPercent/100*Rt;let zt;l[59]!==Rt||l[60]!==Ct?(zt={sizePx:Rt,gapPx:Ct},l[59]=Rt,l[60]=Ct,l[61]=zt):zt=l[61];const{sizePx:Bt,gapPx:Wt}=zt;let Ft;l[62]!==ie.repPriority||l[63]!==Wt||l[64]!==Lt||l[65]!==Bt||l[66]!==He||l[67]!==ce?(Ft=(0,R.clusterByZoom)(Lt,{topMs:He,zoomIndex:ce,sizePx:Bt,gapPx:Wt},ie.repPriority),l[62]=ie.repPriority,l[63]=Wt,l[64]=Lt,l[65]=Bt,l[66]=He,l[67]=ce,l[68]=Ft):Ft=l[68];const Ht=Ft;let Nt;if(l[69]!==Ht||l[70]!==ge||l[71]!==pe){let e;l[73]!==ge||l[74]!==pe?(e=e=>e.topPx>=ge-80-e.heightPx&&e.topPx<=ge+pe+80,l[73]=ge,l[74]=pe,l[75]=e):e=l[75],Nt=Ht.filter(e),l[69]=Ht,l[70]=ge,l[71]=pe,l[72]=Nt}else Nt=l[72];const Zt=Nt.length;let Gt,Vt;l[76]!==Ot.audio.length||l[77]!==Ot.motion.length||l[78]!==Ot.recording.length||l[79]!==kt||l[80]!==Ht||l[81]!==qe||l[82]!==Wt||l[83]!==ve||l[84]!==Lt||l[85]!==e.deviceId||l[86]!==ge||l[87]!==Bt||l[88]!==pe||l[89]!==Zt||l[90]!==ce?(Gt=()=>{const t=Y,n=Lt.map(X);M.log.info("theater:clusters","render state",{deviceId:e.deviceId,objectEvents:Lt.length,objectEventRange:n.length>0?{first:t(Math.min(...n)),last:t(Math.max(...n))}:null,clusters:Ht.length,clusterSpans:Ht.slice(0,8).map(e=>({s:t(e.startMs),e:t(e.endMs),n:e.events.length,topPx:Math.round(e.topPx)})),visibleClusters:Zt,activity:{recording:Ot.recording.length,motion:Ot.motion.length,audio:Ot.audio.length},geometry:{cardWidth:kt,viewportHeight:pe,listWrapWidth:ve,scrollOffsetY:ge,sizePx:Bt,gapPx:Wt,zoomIndex:ce},dayWindow:qe})},Vt=[e.deviceId,Lt,Ht,Zt,Ot.recording.length,Ot.motion.length,Ot.audio.length,kt,pe,ve,ge,Bt,Wt,ce,qe],l[76]=Ot.audio.length,l[77]=Ot.motion.length,l[78]=Ot.recording.length,l[79]=kt,l[80]=Ht,l[81]=qe,l[82]=Wt,l[83]=ve,l[84]=Lt,l[85]=e.deviceId,l[86]=ge,l[87]=Bt,l[88]=pe,l[89]=Zt,l[90]=ce,l[91]=Gt,l[92]=Vt):(Gt=l[91],Vt=l[92]),(0,n.useEffect)(Gt,Vt);const{data:Kt}=(0,I.useRecordingAvailability)(e.deviceId,qe.from,qe.to,!0);let qt;l[93]!==Kt?(qt=void 0===Kt?[]:Kt,l[93]=Kt,l[94]=qt):qt=l[94];const Qt=qt;let Ut,Yt,Xt;l[95]!==Qt.length||l[96]!==e.deviceId?(Ut=()=>{M.log.info("timeline","coverage",{deviceId:e.deviceId,count:Qt.length})},Yt=[e.deviceId,Qt.length],l[95]=Qt.length,l[96]=e.deviceId,l[97]=Ut,l[98]=Yt):(Ut=l[97],Yt=l[98]),(0,n.useEffect)(Ut,Yt);e:{const t=e.scrubbing?e.scrubEpoch??null:e.playheadEpoch??null;if(null===t){let e;l[99]!==te?(e=(0,T.heatmapCursorFraction)(te),l[99]=te,l[100]=e):e=l[100],Xt=e;break e}const n=qe.to-qe.from;n<=0?Xt=0:Xt=Math.min(1,Math.max(0,(t-qe.from)/n))}const $t=Xt,Jt=(0,n.useRef)(null),en=(0,n.useRef)(0),[tn,nn]=(0,n.useState)(null),[on,rn]=(0,n.useState)(!0),cn=(0,n.useRef)(!0),ln=(0,n.useRef)(0),sn=(0,n.useRef)(!1),an=(0,n.useRef)(null),un=(0,n.useRef)(!1),dn=(0,n.useRef)(null),hn=(0,n.useRef)(null);let mn;l[101]===Symbol.for("react.memo_cache_sentinel")?(mn=()=>{an.current&&(clearTimeout(an.current),an.current=null),sn.current=!0},l[101]=mn):mn=l[101];const gn=mn;let fn;l[102]===Symbol.for("react.memo_cache_sentinel")?(fn=()=>{an.current&&clearTimeout(an.current),an.current=setTimeout(()=>{sn.current=!1,un.current=!1},350)},l[102]=fn):fn=l[102];const pn=fn;let bn;l[103]===Symbol.for("react.memo_cache_sentinel")?(bn=()=>{gn(),pn()},l[103]=bn):bn=l[103];const vn=bn;let Sn;l[104]===Symbol.for("react.memo_cache_sentinel")?(Sn={onWheel:vn,onPointerDown:gn,onPointerUp:pn,onPointerCancel:pn},l[104]=Sn):Sn=l[104];const yn=Sn;let Tn;l[105]!==e||l[106]!==He||l[107]!==ce?(Tn=t=>{const n=t.nativeEvent.contentOffset.y;fe(n);const o=Ie.current,c=Me.current,l=(0,P.epochToOffset)(et.current,He,ce);if(n>=o+Math.max(c,l)-c-c)if(Xe.current<30)Ue($);else{const t=Date.now();t-ot.current>=5e3&&(ot.current=t,M.log.info("theater","back-scroll capped at MAX_LOOKBACK_DAYS",{deviceId:e.deviceId,days:30}))}const s=Math.round((0,P.offsetToEpoch)(n,He,ce)),u=He-s,d=(0,_.liveEdgeScrollDecision)({behindLiveMs:u,wasLive:cn.current,touchActive:sn.current,toleranceMs:15e3});if(d.isLive!==cn.current&&(cn.current=d.isLive,rn(d.isLive)),"go-live"===d.action)return M.log.debug("theater:live-edge","go-live (drag entered live edge)",{behindLiveMs:u,toleranceMs:15e3,epoch:s,topMs:He}),dn.current&&(clearTimeout(dn.current),dn.current=null),hn.current=null,un.current=!1,void e.onGoLive?.();if("scrub"!==d.action)return;un.current||(un.current=!0,dn.current&&(clearTimeout(dn.current),dn.current=null),e.onTimelineScrubStart?.());const h=Date.now();h-ln.current<100||(ln.current=h,hn.current=s,e.onTimelineScrubTo?.(s),dn.current&&clearTimeout(dn.current),dn.current=setTimeout(()=>{dn.current=null;const t=hn.current;null!=t&&e.onTimelineScrubEnd?.(t)},220))},l[105]=e,l[106]=He,l[107]=ce,l[108]=Tn):Tn=l[108];const Pn=Tn;let xn;l[109]===Symbol.for("react.memo_cache_sentinel")?(xn=(e,t)=>{Jt.current?.scrollToOffset({offset:e,animated:t})},l[109]=xn):xn=l[109];const _n=xn,In=e.onGoLive;let Mn;l[110]!==In?(Mn=()=>{_n(0,!0),cn.current=!0,rn(!0),In?.()},l[110]=In,l[111]=Mn):Mn=l[111];const En=Mn;let Dn,Ln,On;l[112]!==e.playheadEpoch||l[113]!==e.scrubEpoch||l[114]!==e.scrubbing||l[115]!==He||l[116]!==ce?(Dn=()=>{if(sn.current)return;if(Date.now()<en.current)return;const t=e.scrubbing?e.scrubEpoch??null:e.playheadEpoch??null;if(null===t)return;const n=(0,P.epochToOffset)(t,He,ce);_n(n,!1)},Ln=[e.scrubbing,e.scrubEpoch,e.playheadEpoch,He,ce,_n],l[112]=e.playheadEpoch,l[113]=e.scrubEpoch,l[114]=e.scrubbing,l[115]=He,l[116]=ce,l[117]=Dn,l[118]=Ln):(Dn=l[117],Ln=l[118]),(0,n.useEffect)(Dn,Ln),l[119]!==e||l[120]!==pe?(On=t=>{const n=Math.max(0,t.topPx+t.heightPx/2);M.log.info("theater:clusters","tap",{epoch:t.representative.timestamp,topPx:Math.round(t.topPx),offset:Math.round(n),viewportHeight:pe,hasScroller:null!=Jt.current}),en.current=Date.now()+2500,e.onTimelineSeek?.(t.representative.timestamp),setTimeout(()=>_n(n,!0),380)},l[119]=e,l[120]=pe,l[121]=On):On=l[121];const wn=On;let kn;l[122]===Symbol.for("react.memo_cache_sentinel")?(kn=e=>{nn(e)},l[122]=kn):kn=l[122];const An=kn;let jn;l[123]!==e?(jn=t=>{en.current=Date.now()+2500,e.onTimelineSeek?.(t),nn(null)},l[123]=e,l[124]=jn):jn=l[124];const Rn=jn,Cn=e.onSeekToTime;let zn;l[125]!==qe.from||l[126]!==qe.to?(zn=e=>Math.round(qe.from+e*(qe.to-qe.from)),l[125]=qe.from,l[126]=qe.to,l[127]=zn):zn=l[127];const Bn=zn;let Wn;l[128]!==Bn||l[129]!==Cn?(Wn=e=>{const t=Bn(e);M.log.debug("timeline","heatmap seek",{fraction:e,snapped:t}),null!==t&&Cn?.(t)},l[128]=Bn,l[129]=Cn,l[130]=Wn):Wn=l[130];const Fn=Wn,Hn=e.onScrubToTime,Nn=e.onScrubEnd;let Zn;l[131]!==Bn||l[132]!==Hn?(Zn=e=>{const t=Bn(e);M.log.debug("timeline","heatmap scrub",{fraction:e,snapped:t}),null!==t&&Hn?.(t)},l[131]=Bn,l[132]=Hn,l[133]=Zn):Zn=l[133];const Gn=Zn;let Vn;l[134]!==Bn||l[135]!==Nn?(Vn=e=>{const t=Bn(e);M.log.debug("timeline","heatmap scrubEnd",{fraction:e,snapped:t}),null!==t&&Nn?.(t)},l[134]=Bn,l[135]=Nn,l[136]=Vn):Vn=l[136];const Kn=Vn;let qn;l[137]!==Le?(qn=(0,T.isFilterAll)(Le),l[137]=Le,l[138]=qn):qn=l[138];const Qn=qn;let Un;l[139]!==Le||l[140]!==Qn?(Un=Qn||Le.has("motion"),l[139]=Le,l[140]=Qn,l[141]=Un):Un=l[141];const Yn=Un;let Xn;l[142]!==Lt||l[143]!==Yn?(Xn=Yn?Lt:[],l[142]=Lt,l[143]=Yn,l[144]=Xn):Xn=l[144];const $n=Xn;let Jn;l[145]!==$n||l[146]!==Ge?(Jn=(0,E.objectEventsToHeatmapBins)($n,Ge),l[145]=$n,l[146]=Ge,l[147]=Jn):Jn=l[147];const eo=Jn;let to;l[148]!==$n||l[149]!==Ge?(to=(0,E.objectEventsToHeatmapHighlights)($n,Ge),l[148]=$n,l[149]=Ge,l[150]=to):to=l[150];const no=to,oo=e.scrubbing?e.scrubEpoch??e.playheadEpoch??te:e.playheadEpoch??te;let ro;l[151]!==oo?(ro=new Date(oo).toLocaleTimeString(void 0,{hour:"2-digit",minute:"2-digit",second:"2-digit"}),l[151]=oo,l[152]=ro):ro=l[152];const io=ro;let co;l[153]!==J.background?(co=[G.container,{backgroundColor:J.background}],l[153]=J.background,l[154]=co):co=l[154];const lo=e.onBack,so=e.hideBack;let ao;l[155]!==Ge||l[156]!==te||l[157]!==Z?(ao=(0,O.dateLabel)(Ge,te,Z),l[155]=Ge,l[156]=te,l[157]=Z,l[158]=ao):ao=l[158];const uo=pt?vt:W,ho=pt?Pt:W,mo=pt?yt:W,go=!pt||Ge>=lt,fo=e.hasPtz,po=e.ptzOpen,bo=e.onTogglePtz,vo=e.devicesOpen,So=e.onToggleDevices,yo=e.menuOpen,To=e.onToggleMenu,Po=e.onOpenQuality;let xo;l[159]!==e.quality||l[160]!==Z?(xo=Z((0,w.qualityLabelKey)(e.quality)),l[159]=e.quality,l[160]=Z,l[161]=xo):xo=l[161];const _o=e.onSnapshot,Io=e.snapshotBusy;let Mo,Eo;l[162]!==Z?(Mo=Z("v2.cameraDetail.snapshot"),l[162]=Z,l[163]=Mo):Mo=l[163],l[164]!==e.devicesOpen||l[165]!==e.hasPtz||l[166]!==e.hideBack||l[167]!==e.menuOpen||l[168]!==e.onBack||l[169]!==e.onOpenQuality||l[170]!==e.onSnapshot||l[171]!==e.onToggleDevices||l[172]!==e.onToggleMenu||l[173]!==e.onTogglePtz||l[174]!==e.ptzOpen||l[175]!==e.snapshotBusy||l[176]!==ao||l[177]!==uo||l[178]!==ho||l[179]!==mo||l[180]!==go||l[181]!==xo||l[182]!==Mo?(Eo=(0,B.jsx)(b.TimelineToolbarInline,{onBack:lo,hideBack:so,dateLabel:ao,onPrevDay:uo,onOpenDatePicker:ho,onNextDay:mo,nextDayDisabled:go,hasPtz:fo,ptzOpen:po,onTogglePtz:bo,devicesOpen:vo,onToggleDevices:So,menuOpen:yo,onToggleMenu:To,onOpenQuality:Po,qualityLabel:xo,onSnapshot:_o,snapshotBusy:Io,snapshotLabel:Mo}),l[164]=e.devicesOpen,l[165]=e.hasPtz,l[166]=e.hideBack,l[167]=e.menuOpen,l[168]=e.onBack,l[169]=e.onOpenQuality,l[170]=e.onSnapshot,l[171]=e.onToggleDevices,l[172]=e.onToggleMenu,l[173]=e.onTogglePtz,l[174]=e.ptzOpen,l[175]=e.snapshotBusy,l[176]=ao,l[177]=uo,l[178]=ho,l[179]=mo,l[180]=go,l[181]=xo,l[182]=Mo,l[183]=Eo):Eo=l[183];const Do=e.onSeekToTime?Fn:void 0,Lo=e.onScrubToTime?Gn:void 0,Oo=e.onScrubEnd?Kn:void 0;let wo,ko,Ao,jo,Ro,Co,zo,Bo,Wo,Fo,Ho,No,Zo,Go;return l[184]!==eo||l[185]!==Qt||l[186]!==$t||l[187]!==qe.from||l[188]!==qe.to||l[189]!==no||l[190]!==e.onScrubStart||l[191]!==Do||l[192]!==Lo||l[193]!==Oo?(wo=(0,B.jsx)(v.HeatmapBar,{bins:eo,cursorFraction:$t,eventMarkers:no,coverage:Qt,dayStartMs:qe.from,dayEndMs:qe.to,onSeekFraction:Do,onScrubStart:e.onScrubStart,onScrubFraction:Lo,onScrubEnd:Oo}),l[184]=eo,l[185]=Qt,l[186]=$t,l[187]=qe.from,l[188]=qe.to,l[189]=no,l[190]=e.onScrubStart,l[191]=Do,l[192]=Lo,l[193]=Oo,l[194]=wo):wo=l[194],l[195]!==J.danger||l[196]!==J.live||l[197]!==En||l[198]!==on||l[199]!==Z?(ko=on?(0,B.jsxs)(o.default,{style:[G.livePill,{backgroundColor:`${J.live}26`}],children:[(0,B.jsx)(o.default,{style:[G.liveDot,{backgroundColor:J.live}]}),(0,B.jsx)(c.default,{style:[G.liveText,{color:J.live}],children:Z("v2.theater.live")})]}):(0,B.jsxs)(s.default,{style:[G.goLivePill,{backgroundColor:J.danger}],onPress:En,accessibilityRole:"button",accessibilityLabel:Z("v2.theater.goToLive"),children:[(0,B.jsx)(h.ArrowUp,{size:13,color:N}),(0,B.jsx)(c.default,{style:[G.goLiveText,{color:N}],children:Z("v2.theater.goToLive")})]}),l[195]=J.danger,l[196]=J.live,l[197]=En,l[198]=on,l[199]=Z,l[200]=ko):ko=l[200],l[201]!==qe.to||l[202]!==Ye?(Ao={from:Ye,to:qe.to},l[201]=qe.to,l[202]=Ye,l[203]=Ao):Ao=l[203],l[204]!==Ot||l[205]!==kt||l[206]!==ie.activityVariant||l[207]!==Ht||l[208]!==Pn||l[209]!==xe||l[210]!==wn||l[211]!==Ao||l[212]!==He||l[213]!==pe||l[214]!==ce?(jo=(0,B.jsx)(z.TimelineScroller,{ref:Jt,topMs:He,zoomIndex:ce,dayWindow:Ao,clusters:Ht,activity:Ot,activityVariant:ie.activityVariant,cardWidth:kt,viewportHeight:pe,indicatorOffsetPx:xe,onScroll:Pn,onClusterPress:wn,onClusterOpenDetail:An}),l[204]=Ot,l[205]=kt,l[206]=ie.activityVariant,l[207]=Ht,l[208]=Pn,l[209]=xe,l[210]=wn,l[211]=Ao,l[212]=He,l[213]=pe,l[214]=ce,l[215]=jo):jo=l[215],l[216]!==J.danger||l[217]!==J.live||l[218]!==xe||l[219]!==io||l[220]!==on||l[221]!==Z||l[222]!==pe?(Ro=pe>0?(0,B.jsxs)(o.default,{style:[G.indicator,{top:xe}],pointerEvents:"none",children:[(0,B.jsx)(o.default,{style:[G.indicatorLine,{backgroundColor:on?J.live:J.danger}]}),(0,B.jsx)(o.default,{style:[G.indicatorPill,{backgroundColor:on?J.live:J.danger}],children:(0,B.jsx)(c.default,{style:[G.indicatorLabel,p.TABULAR,{color:N}],children:on?Z("v2.theater.live"):io})})]}):null,l[216]=J.danger,l[217]=J.live,l[218]=xe,l[219]=io,l[220]=on,l[221]=Z,l[222]=pe,l[223]=Ro):Ro=l[223],l[224]!==Le||l[225]!==we||l[226]!==ee.bottom?(Co=we?(0,B.jsx)(y.TimelineFilterPanel,{filter:Le,onToggleKind:Fe,onReset:Be,bottomInset:ee.bottom+H}):null,l[224]=Le,l[225]=we,l[226]=ee.bottom,l[227]=Co):Co=l[227],l[228]!==se||l[229]!==ae||l[230]!==je||l[231]!==we||l[232]!==ee.bottom?(zo=(0,B.jsx)(S.TimelineFabControls,{onZoomIn:de,onZoomOut:me,onFilter:Ce,onPickCamera:W,canZoomIn:se,canZoomOut:ae,filterActive:je,filterOpen:we,bottomInset:ee.bottom}),l[228]=se,l[229]=ae,l[230]=je,l[231]=we,l[232]=ee.bottom,l[233]=zo):zo=l[233],l[234]!==jo||l[235]!==Ro||l[236]!==Co||l[237]!==zo?(Bo=(0,B.jsxs)(o.default,Object.assign({style:G.listWrap,onLayout:Te,onTouchStart:gn,onTouchEnd:pn,onTouchCancel:pn},yn,{children:[jo,Ro,Co,zo]})),l[234]=jo,l[235]=Ro,l[236]=Co,l[237]=zo,l[238]=Bo):Bo=l[238],l[239]!==ft?(Wo=ft??new Set,l[239]=ft,l[240]=Wo):Wo=l[240],l[241]===Symbol.for("react.memo_cache_sentinel")?(Fo=()=>at(!1),l[241]=Fo):Fo=l[241],l[242]!==Ge||l[243]!==_t||l[244]!==te||l[245]!==ut||l[246]!==st||l[247]!==Wo?(Ho=(0,B.jsx)(D.DatePickerModal,{visible:st,monthAnchorMs:ut,selectedDayMs:Ge,daysSet:Wo,nowMs:te,onChangeMonth:Mt,onPick:_t,onClose:Fo}),l[242]=Ge,l[243]=_t,l[244]=te,l[245]=ut,l[246]=st,l[247]=Wo,l[248]=Ho):Ho=l[248],l[249]===Symbol.for("react.memo_cache_sentinel")?(No=()=>nn(null),l[249]=No):No=l[249],l[250]!==tn||l[251]!==Rn||l[252]!==e.deviceId?(Zo=(0,B.jsx)(C.ClusterDetailModal,{deviceId:e.deviceId,cluster:tn,onSeek:Rn,onClose:No}),l[250]=tn,l[251]=Rn,l[252]=e.deviceId,l[253]=Zo):Zo=l[253],l[254]!==Zo||l[255]!==co||l[256]!==Eo||l[257]!==wo||l[258]!==ko||l[259]!==Bo||l[260]!==Ho?(Go=(0,B.jsxs)(o.default,{style:co,children:[Eo,wo,ko,Bo,Ho,Zo]}),l[254]=Zo,l[255]=co,l[256]=Eo,l[257]=wo,l[258]=ko,l[259]=Bo,l[260]=Ho,l[261]=Go):Go=l[261],Go}),G=l.default.create({container:{flex:1},livePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},liveDot:{width:6,height:6,borderRadius:3},liveText:{fontSize:11,fontWeight:'700'},goLivePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},goLiveText:{fontSize:11,fontWeight:'700'},listWrap:{flex:1,position:'relative'},indicator:{position:'absolute',left:0,right:0,flexDirection:'row',alignItems:'center',paddingLeft:p.SPACING.md},indicatorLine:{position:'absolute',left:0,right:0,height:1.5},indicatorPill:{paddingHorizontal:p.SPACING.sm,paddingVertical:1,borderRadius:4},indicatorLabel:{fontSize:10,fontWeight:'700',letterSpacing:.3},drawerHandle:{position:'absolute',left:0,top:'50%',marginTop:-16,width:16,height:32,borderTopRightRadius:8,borderBottomRightRadius:8,borderWidth:1,borderLeftWidth:0,alignItems:'center',justifyContent:'center'},scrollIndicatorTrack:{position:'absolute',right:2,top:p.SPACING.lg,bottom:p.SPACING.lg,width:3,alignItems:'center'},scrollIndicatorThumb:{width:3,height:48,borderRadius:2,opacity:.7}});function V(){return Date.now()}function K(e){return(0,T.clampZoomIndex)(e+1)}function q(e){return(0,T.clampZoomIndex)(e-1)}function Q(){return new Set(T.ALL_BAR_KINDS)}function U(e){return!e}function Y(e){return new Date(e).toLocaleTimeString()}function X(e){return e.timestamp}function $(e){return Math.min(30,e+1)}},3371,[15,17,20,112,33,252,136,786,466,813,2587,2589,3372,3373,3374,3375,2818,3376,3377,3378,3379,2704,2816,3382,3383,3384,3385,2836,3386,3387,3389,2819,3390,10]);
|
|
15793
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"TimelineToolbarInline",{enumerable:!0,get:function(){return x}});var o=r(d[0]),n=r(d[1]),t=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),f=r(d[7]),p=r(d[8]),h=r(d[9]),y=r(d[10]),b=r(d[11]);const x=(0,n.memo)(function(e){const n=(0,o.c)(100),{t:u}=(0,f.useTranslation)(),{colors:y}=(0,h.useTheme)();let x;n[0]!==y.primary?(x=e=>[P.iconBtn,{backgroundColor:e?y.primary:"transparent"}],n[0]=y.primary,n[1]=x):x=n[1];const S=x;let j;n[2]!==y.foregroundMuted||n[3]!==y.primaryForeground?(j=e=>e?y.primaryForeground:y.foregroundMuted,n[2]=y.foregroundMuted,n[3]=y.primaryForeground,n[4]=j):j=n[4];const z=j;let D,O,M,v,k,B,C,T,I,L,A;n[5]!==y.background||n[6]!==y.border?(D=[P.container,{backgroundColor:y.background,borderBottomColor:y.border}],n[5]=y.background,n[6]=y.border,n[7]=D):D=n[7],n[8]!==y.foreground||n[9]!==e.hideBack||n[10]!==e.onBack||n[11]!==u?(O=e.hideBack?null:(0,b.jsx)(s.default,{style:P.backBtn,onPress:e.onBack,hitSlop:6,accessibilityLabel:u("v2.common.back"),children:(0,b.jsx)(p.ArrowLeft,{size:18,color:y.foreground})}),n[8]=y.foreground,n[9]=e.hideBack,n[10]=e.onBack,n[11]=u,n[12]=O):O=n[12],n[13]!==y.foregroundMuted?(M=(0,b.jsx)(p.ChevronLeft,{size:16,color:y.foregroundMuted}),n[13]=y.foregroundMuted,n[14]=M):M=n[14],n[15]!==e.onPrevDay||n[16]!==M?(v=(0,b.jsx)(s.default,{style:P.dateArrow,onPress:e.onPrevDay,hitSlop:6,children:M}),n[15]=e.onPrevDay,n[16]=M,n[17]=v):v=n[17],n[18]!==y.surface?(k=[P.datePill,{backgroundColor:y.surface}],n[18]=y.surface,n[19]=k):k=n[19],n[20]!==y.foregroundSubtle?(B=(0,b.jsx)(p.Calendar,{size:12,color:y.foregroundSubtle}),n[20]=y.foregroundSubtle,n[21]=B):B=n[21],n[22]!==y.foreground?(C=[P.dateText,{color:y.foreground}],n[22]=y.foreground,n[23]=C):C=n[23],n[24]!==e.dateLabel||n[25]!==C?(T=(0,b.jsx)(l.default,{style:C,children:e.dateLabel}),n[24]=e.dateLabel,n[25]=C,n[26]=T):T=n[26],n[27]!==y.foregroundSubtle?(I=(0,b.jsx)(p.ChevronDown,{size:10,color:y.foregroundSubtle}),n[27]=y.foregroundSubtle,n[28]=I):I=n[28],n[29]!==I||n[30]!==k||n[31]!==B||n[32]!==T?(L=(0,b.jsxs)(t.default,{style:k,children:[B,T,I]}),n[29]=I,n[30]=k,n[31]=B,n[32]=T,n[33]=L):L=n[33],n[34]!==e.onOpenDatePicker||n[35]!==L?(A=(0,b.jsx)(s.default,{onPress:e.onOpenDatePicker,children:L}),n[34]=e.onOpenDatePicker,n[35]=L,n[36]=A):A=n[36];const w=e.nextDayDisabled?y.foregroundSubtle:y.foregroundMuted;let N,G,_,R,q,W;n[37]!==w?(N=(0,b.jsx)(p.ChevronRight,{size:16,color:w}),n[37]=w,n[38]=N):N=n[38],n[39]!==e.nextDayDisabled||n[40]!==e.onNextDay||n[41]!==N?(G=(0,b.jsx)(s.default,{style:P.dateArrow,onPress:e.onNextDay,disabled:e.nextDayDisabled,hitSlop:6,children:N}),n[39]=e.nextDayDisabled,n[40]=e.onNextDay,n[41]=N,n[42]=G):G=n[42],n[43]===Symbol.for("react.memo_cache_sentinel")?(_=(0,b.jsx)(t.default,{style:P.spacer}),n[43]=_):_=n[43],n[44]!==y.foregroundMuted||n[45]!==e.onSnapshot||n[46]!==e.snapshotBusy||n[47]!==e.snapshotLabel?(R=e.onSnapshot?(0,b.jsx)(s.default,{style:P.iconBtn,onPress:e.onSnapshot,disabled:e.snapshotBusy,hitSlop:6,accessibilityLabel:e.snapshotLabel,children:e.snapshotBusy?(0,b.jsx)(c.default,{size:"small",color:y.foregroundMuted}):(0,b.jsx)(p.Aperture,{size:14,color:y.foregroundMuted})}):null,n[44]=y.foregroundMuted,n[45]=e.onSnapshot,n[46]=e.snapshotBusy,n[47]=e.snapshotLabel,n[48]=R):R=n[48],n[49]!==S||n[50]!==z||n[51]!==e.hasPtz||n[52]!==e.onTogglePtz||n[53]!==e.ptzOpen?(q=e.hasPtz&&e.onTogglePtz?(0,b.jsx)(s.default,{style:S(e.ptzOpen),onPress:e.onTogglePtz,hitSlop:6,children:(0,b.jsx)(p.Move,{size:14,color:z(e.ptzOpen)})}):null,n[49]=S,n[50]=z,n[51]=e.hasPtz,n[52]=e.onTogglePtz,n[53]=e.ptzOpen,n[54]=q):q=n[54],n[55]!==S||n[56]!==e.devicesOpen?(W=S(e.devicesOpen),n[55]=S,n[56]=e.devicesOpen,n[57]=W):W=n[57];const F=e.onToggleDevices;let H,Q,U,V;n[58]!==z||n[59]!==e.devicesOpen?(H=z(e.devicesOpen),n[58]=z,n[59]=e.devicesOpen,n[60]=H):H=n[60],n[61]!==H?(Q=(0,b.jsx)(p.LayoutGrid,{size:14,color:H}),n[61]=H,n[62]=Q):Q=n[62],n[63]!==e.onToggleDevices||n[64]!==W||n[65]!==Q?(U=(0,b.jsx)(s.default,{style:W,onPress:F,hitSlop:6,children:Q}),n[63]=e.onToggleDevices,n[64]=W,n[65]=Q,n[66]=U):U=n[66],n[67]!==S||n[68]!==e.menuOpen?(V=S(e.menuOpen),n[67]=S,n[68]=e.menuOpen,n[69]=V):V=n[69];const E=e.onToggleMenu;let J,K,X,Y,Z,$,ee,oe;return n[70]!==z||n[71]!==e.menuOpen?(J=z(e.menuOpen),n[70]=z,n[71]=e.menuOpen,n[72]=J):J=n[72],n[73]!==J?(K=(0,b.jsx)(p.List,{size:14,color:J}),n[73]=J,n[74]=K):K=n[74],n[75]!==e.onToggleMenu||n[76]!==V||n[77]!==K?(X=(0,b.jsx)(s.default,{style:V,onPress:E,hitSlop:6,children:K}),n[75]=e.onToggleMenu,n[76]=V,n[77]=K,n[78]=X):X=n[78],n[79]!==y.foregroundMuted?(Y=[P.qualityText,{color:y.foregroundMuted}],n[79]=y.foregroundMuted,n[80]=Y):Y=n[80],n[81]!==e.qualityLabel||n[82]!==Y?(Z=(0,b.jsx)(l.default,{style:Y,children:e.qualityLabel}),n[81]=e.qualityLabel,n[82]=Y,n[83]=Z):Z=n[83],n[84]!==e.onOpenQuality||n[85]!==Z?($=(0,b.jsx)(s.default,{style:P.iconBtn,onPress:e.onOpenQuality,hitSlop:6,children:Z}),n[84]=e.onOpenQuality,n[85]=Z,n[86]=$):$=n[86],n[87]!==A||n[88]!==G||n[89]!==R||n[90]!==q||n[91]!==U||n[92]!==X||n[93]!==O||n[94]!==$||n[95]!==v?(ee=(0,b.jsxs)(t.default,{style:P.row,children:[O,v,A,G,_,R,q,U,X,$]}),n[87]=A,n[88]=G,n[89]=R,n[90]=q,n[91]=U,n[92]=X,n[93]=O,n[94]=$,n[95]=v,n[96]=ee):ee=n[96],n[97]!==D||n[98]!==ee?(oe=(0,b.jsx)(t.default,{style:D,children:ee}),n[97]=D,n[98]=ee,n[99]=oe):oe=n[99],oe}),P=u.default.create({container:{borderBottomWidth:1,zIndex:20},row:{flexDirection:'row',alignItems:'center',gap:y.SPACING.xs,paddingHorizontal:y.SPACING.md,paddingVertical:y.SPACING.sm+2},backBtn:{width:30,height:30,borderRadius:15,alignItems:'center',justifyContent:'center'},dateArrow:{width:28,height:28,borderRadius:14,alignItems:'center',justifyContent:'center'},datePill:{flexDirection:'row',alignItems:'center',gap:y.SPACING.sm,paddingHorizontal:y.SPACING.md,paddingVertical:y.SPACING.xs+2,borderRadius:y.RADIUS.lg},dateText:{fontSize:12,fontWeight:'600'},spacer:{flex:1},iconBtn:{minWidth:30,height:30,paddingHorizontal:y.SPACING.sm,borderRadius:y.RADIUS.lg,alignItems:'center',justifyContent:'center'},qualityText:{fontSize:10,fontWeight:'700'}})},3372,[15,17,20,112,252,33,240,786,813,2587,2589,10]);
|
|
15794
15794
|
__d(function(g,_r,_i,_a,_m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"HeatmapBar",{enumerable:!0,get:function(){return u}});var e=_r(d[0]),o=_r(d[1]),r=t(_r(d[2])),n=t(_r(d[3])),a=_r(d[4]),c=_r(d[5]),i=_r(d[6]);function l(t,e,o){const r=o-e;if(r<=0)return[];const n=[];for(const a of t){const t=Math.max(a.startMs,e),c=Math.min(a.endMs,o);c<=t||n.push({leftPct:(t-e)/r*100,widthPct:(c-t)/r*100})}return n}function s(t){const e=t.length;if(0===e)return[];const o=[];let r=-1;for(let n=0;n<e;n++){const a=t[n].recorded;a&&r<0&&(r=n);if((!a||n===e-1)&&r>=0){const t=a?n:n-1;o.push({leftPct:r/e*100,widthPct:(t-r+1)/e*100}),r=-1}}return o}const u=(0,o.memo)(function(t){const n=(0,e.c)(45),{bins:u,cursorFraction:h,eventMarkers:p,coverage:v,dayStartMs:y,dayEndMs:M,onSeekFraction:x,onScrubStart:S,onScrubFraction:R,onScrubEnd:k}=t,{colors:_}=(0,a.useTheme)(),j=(0,o.useRef)(0),w=(0,o.useRef)(0),P=(0,o.useRef)(!1),C=!(!x&&!R);let E;t:{if(v&&void 0!==y&&void 0!==M){let t;n[0]!==v||n[1]!==M||n[2]!==y?(t=l(v,y,M),n[0]=v,n[1]=M,n[2]=y,n[3]=t):t=n[3],E=t;break t}let t;n[4]!==u?(t=s(u),n[4]=u,n[5]=t):t=n[5],E=t}const H=E;let X;n[6]===Symbol.for("react.memo_cache_sentinel")?(X=t=>{j.current=t.nativeEvent.layout.width},n[6]=X):X=n[6];const $=X;let B;n[7]===Symbol.for("react.memo_cache_sentinel")?(B=t=>j.current>0?Math.min(1,Math.max(0,t.nativeEvent.locationX/j.current)):0,n[7]=B):B=n[7];const F=B;let z;n[8]!==C?(z=t=>{w.current=t.nativeEvent.locationX,P.current=!1,c.log.debug("heatmap","grant",{interactive:C,x:t.nativeEvent.locationX})},n[8]=C,n[9]=z):z=n[9];const L=z;let O;n[10]!==R||n[11]!==S?(O=t=>{!P.current&&Math.abs(t.nativeEvent.locationX-w.current)>8&&(P.current=!0,S?.()),P.current&&R?.(F(t))},n[10]=R,n[11]=S,n[12]=O):O=n[12];const W=O;let D;n[13]!==k||n[14]!==x?(D=t=>{c.log.debug("heatmap","release",{moved:P.current,fraction:F(t)}),P.current?k?.(F(t)):x?.(F(t))},n[13]=k,n[14]=x,n[15]=D):D=n[15];const G=D;let I,T,q,A,J,K;if(n[16]!==C?(I=()=>C,T=()=>C,n[16]=C,n[17]=I,n[18]=T):(I=n[17],T=n[18]),n[19]!==_.border||n[20]!==_.surface?(q=[f.bar,{backgroundColor:_.surface,borderBottomColor:_.border}],n[19]=_.border,n[20]=_.surface,n[21]=q):q=n[21],n[22]!==_.danger||n[23]!==H){let t;n[25]!==_.danger?(t=(t,e)=>(0,i.jsx)(r.default,{style:[f.recording,{left:`${t.leftPct}%`,width:`${t.widthPct}%`,backgroundColor:_.danger}]},`rec-${e}`),n[25]=_.danger,n[26]=t):t=n[26],A=H.map(t),n[22]=_.danger,n[23]=H,n[24]=A}else A=n[24];n[27]!==u?(J=u.map(m),n[27]=u,n[28]=J):J=n[28],n[29]!==p?(K=p?.map(b),n[29]=p,n[30]=K):K=n[30];const N=100*h+"%";let Q,U;return n[31]!==_.primary||n[32]!==N?(Q=(0,i.jsx)(r.default,{style:[f.cursor,{left:N,backgroundColor:_.primary}]}),n[31]=_.primary,n[32]=N,n[33]=Q):Q=n[33],n[34]!==L||n[35]!==W||n[36]!==G||n[37]!==A||n[38]!==J||n[39]!==K||n[40]!==Q||n[41]!==I||n[42]!==T||n[43]!==q?(U=(0,i.jsxs)(r.default,{onLayout:$,onStartShouldSetResponder:I,onMoveShouldSetResponder:T,onResponderGrant:L,onResponderMove:W,onResponderRelease:G,style:q,children:[A,J,K,Q]}),n[34]=L,n[35]=W,n[36]=G,n[37]=A,n[38]=J,n[39]=K,n[40]=Q,n[41]=I,n[42]=T,n[43]=q,n[44]=U):U=n[44],U}),f=n.default.create({bar:{flexDirection:'row',height:28,borderBottomWidth:1,alignItems:'flex-end',paddingHorizontal:2},bin:{flex:1,height:'100%',justifyContent:'flex-end',paddingHorizontal:.5},recording:{position:'absolute',top:0,bottom:0,minWidth:2,opacity:.15},fill:{borderRadius:1,minHeight:2},cursor:{position:'absolute',top:0,bottom:0,width:2,opacity:.85},eventMarker:{position:'absolute',top:1,bottom:1,width:2,marginLeft:-1,borderRadius:1,opacity:.95}});function m(t,e){const o=t.audio>0,n=o?t.audio:t.motion,a=t.motion>0||o,c=o?"#c026d3":"#22c55e";return(0,i.jsx)(r.default,{style:f.bin,children:(0,i.jsx)(r.default,{style:[f.fill,{height:`${a?Math.max(15,100*n):0}%`,backgroundColor:a?c:"transparent",opacity:a?.5+.5*n:0}]})},e)}function b(t){return(0,i.jsx)(r.default,{style:[f.eventMarker,{left:100*t.fraction+"%",backgroundColor:t.color}]},t.id)}},3373,[15,17,20,33,2587,2704,10]);
|
|
15795
15795
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"TimelineFabControls",{enumerable:!0,get:function(){return y}});var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),c=r(d[5]),u=r(d[6]),b=r(d[7]),f=r(d[8]);const y=(0,t.memo)(function(e){const t=(0,o.c)(58),{onZoomIn:l,onZoomOut:y,onFilter:j,onPickCamera:x,canZoomIn:p,canZoomOut:C,filterActive:P,filterOpen:v,bottomInset:S}=e,I=void 0===p||p,w=void 0===C||C,D=void 0!==P&&P,O=void 0!==v&&v,_=void 0===S?0:S,{colors:k}=(0,u.useTheme)();let z;t[0]!==k.border||t[1]!==k.surface?(z={backgroundColor:k.surface,borderColor:k.border},t[0]=k.border,t[1]=k.surface,t[2]=z):z=t[2];const F=z,R=D||O,Z=b.SPACING.lg+_;let A;t[3]!==Z?(A=[h.stack,{bottom:Z}],t[3]=Z,t[4]=A):A=t[4];const M=!I&&h.fabDisabled;let G;t[5]!==F||t[6]!==M?(G=[h.fab,F,M],t[5]=F,t[6]=M,t[7]=G):G=t[7];const N=!I,T=!I;let E;t[8]!==T?(E={disabled:T},t[8]=T,t[9]=E):E=t[9];const V=I?k.foreground:k.foregroundDisabled;let W,q;t[10]!==V?(W=(0,f.jsx)(c.Plus,{size:18,color:V}),t[10]=V,t[11]=W):W=t[11],t[12]!==l||t[13]!==G||t[14]!==N||t[15]!==E||t[16]!==W?(q=(0,f.jsx)(s.default,{style:G,onPress:l,disabled:N,hitSlop:4,accessibilityRole:"button",accessibilityState:E,children:W}),t[12]=l,t[13]=G,t[14]=N,t[15]=E,t[16]=W,t[17]=q):q=t[17];const B=!w&&h.fabDisabled;let H;t[18]!==F||t[19]!==B?(H=[h.fab,F,B],t[18]=F,t[19]=B,t[20]=H):H=t[20];const J=!w,K=!w;let L;t[21]!==K?(L={disabled:K},t[21]=K,t[22]=L):L=t[22];const Q=w?k.foreground:k.foregroundDisabled;let U,X,Y,$;t[23]!==Q?(U=(0,f.jsx)(c.Minus,{size:18,color:Q}),t[23]=Q,t[24]=U):U=t[24],t[25]!==y||t[26]!==H||t[27]!==J||t[28]!==L||t[29]!==U?(X=(0,f.jsx)(s.default,{style:H,onPress:y,disabled:J,hitSlop:4,accessibilityRole:"button",accessibilityState:L,children:U}),t[25]=y,t[26]=H,t[27]=J,t[28]=L,t[29]=U,t[30]=X):X=t[30],t[31]!==F||t[32]!==k.warning||t[33]!==R?(Y=[h.fab,R?{backgroundColor:k.warning,borderColor:k.warning}:F],t[31]=F,t[32]=k.warning,t[33]=R,t[34]=Y):Y=t[34],t[35]!==R?($={selected:R},t[35]=R,t[36]=$):$=t[36];const ee=R?k.primaryForeground:k.foreground;let oe,te,re,ne,ie,se;return t[37]!==ee?(oe=(0,f.jsx)(c.Filter,{size:14,color:ee}),t[37]=ee,t[38]=oe):oe=t[38],t[39]!==j||t[40]!==Y||t[41]!==$||t[42]!==oe?(te=(0,f.jsx)(s.default,{style:Y,onPress:j,hitSlop:4,accessibilityRole:"button",accessibilityState:$,children:oe}),t[39]=j,t[40]=Y,t[41]=$,t[42]=oe,t[43]=te):te=t[43],t[44]!==F?(re=[h.fab,F],t[44]=F,t[45]=re):re=t[45],t[46]!==k.foreground?(ne=(0,f.jsx)(c.Video,{size:14,color:k.foreground}),t[46]=k.foreground,t[47]=ne):ne=t[47],t[48]!==x||t[49]!==re||t[50]!==ne?(ie=(0,f.jsx)(s.default,{style:re,onPress:x,hitSlop:4,children:ne}),t[48]=x,t[49]=re,t[50]=ne,t[51]=ie):ie=t[51],t[52]!==q||t[53]!==X||t[54]!==te||t[55]!==ie||t[56]!==A?(se=(0,f.jsx)(n.default,{style:h.container,pointerEvents:"box-none",children:(0,f.jsxs)(n.default,{style:A,children:[q,X,te,ie]})}),t[52]=q,t[53]=X,t[54]=te,t[55]=ie,t[56]=A,t[57]=se):se=t[57],se}),h=l.default.create({container:Object.assign({},l.default.absoluteFill,{zIndex:10}),stack:{position:'absolute',left:0,right:0,flexDirection:'row',justifyContent:'center',alignItems:'center',gap:b.SPACING.md},fab:{width:36,height:36,borderRadius:18,borderWidth:1,alignItems:'center',justifyContent:'center'},fabDisabled:{opacity:.4}})},3374,[15,17,20,252,33,813,2587,2589,10]);
|
|
15796
15796
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"TimelineFilterPanel",{enumerable:!0,get:function(){return S}});var o=r(d[0]),t=r(d[1]),l=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=r(d[6]),f=r(d[7]),b=r(d[8]),p=r(d[9]),h=r(d[10]),x=r(d[11]);const y={motion:'#22c55e',audio:'#c026d3'},S=(0,t.memo)(function(e){const t=(0,o.c)(39),{filter:c,onToggleKind:p,onReset:S,bottomInset:C}=e,{t:I}=(0,u.useTranslation)(),{colors:j}=(0,b.useTheme)();let P;t[0]!==c?(P=(0,h.isFilterAll)(c),t[0]=c,t[1]=P):P=t[1];const v=P;let _,M;t[2]!==C||t[3]!==j.border||t[4]!==j.surface?(_=[A.panel,{bottom:C,backgroundColor:j.surface,borderColor:j.border}],t[2]=C,t[3]=j.border,t[4]=j.surface,t[5]=_):_=t[5],t[6]!==v?(M={selected:v},t[6]=v,t[7]=M):M=t[7];const N=v?j.primary:j.backgroundElevated,R=v?j.primary:j.border;let k;t[8]!==N||t[9]!==R?(k=[A.chip,{backgroundColor:N,borderColor:R}],t[8]=N,t[9]=R,t[10]=k):k=t[10];const G=v?j.primaryForeground:j.foregroundMuted;let T;t[11]!==G?(T=(0,x.jsx)(f.ListFilter,{size:13,color:G}),t[11]=G,t[12]=T):T=t[12];const F=v?j.primaryForeground:j.foregroundMuted;let z,D,E,W,w,L;return t[13]!==F?(z=[A.chipText,{color:F}],t[13]=F,t[14]=z):z=t[14],t[15]!==I?(D=I("v2.theater.filterAll"),t[15]=I,t[16]=D):D=t[16],t[17]!==z||t[18]!==D?(E=(0,x.jsx)(n.default,{style:z,children:D}),t[17]=z,t[18]=D,t[19]=E):E=t[19],t[20]!==S||t[21]!==E||t[22]!==M||t[23]!==k||t[24]!==T?(W=(0,x.jsxs)(s.default,{onPress:S,hitSlop:4,accessibilityRole:"button",accessibilityState:M,style:k,children:[T,E]}),t[20]=S,t[21]=E,t[22]=M,t[23]=k,t[24]=T,t[25]=W):W=t[25],t[26]!==v||t[27]!==j.backgroundElevated||t[28]!==j.border||t[29]!==j.foreground||t[30]!==j.foregroundMuted||t[31]!==c||t[32]!==p||t[33]!==I?(w=h.ALL_BAR_KINDS.map(e=>{const o=!v&&c.has(e),t="audio"===e?f.Volume2:f.Activity,l=y[e];return(0,x.jsxs)(s.default,{onPress:()=>p(e),hitSlop:4,accessibilityRole:"button",accessibilityState:{selected:o},style:[A.chip,{backgroundColor:o?`${l}26`:j.backgroundElevated,borderColor:o?l:j.border}],children:[(0,x.jsx)(t,{size:13,color:o?l:j.foregroundMuted}),(0,x.jsx)(n.default,{style:[A.chipText,{color:o?j.foreground:j.foregroundMuted}],children:I(`v2.theater.filter_${e}`)})]},e)}),t[26]=v,t[27]=j.backgroundElevated,t[28]=j.border,t[29]=j.foreground,t[30]=j.foregroundMuted,t[31]=c,t[32]=p,t[33]=I,t[34]=w):w=t[34],t[35]!==W||t[36]!==w||t[37]!==_?(L=(0,x.jsx)(l.default,{style:A.container,pointerEvents:"box-none",children:(0,x.jsxs)(l.default,{style:_,children:[W,w]})}),t[35]=W,t[36]=w,t[37]=_,t[38]=L):L=t[38],L}),A=c.default.create({container:Object.assign({},c.default.absoluteFill,{zIndex:11}),panel:{position:'absolute',left:p.SPACING.md,right:p.SPACING.md,flexDirection:'row',flexWrap:'wrap',justifyContent:'center',gap:p.SPACING.sm,padding:p.SPACING.md,borderWidth:1,borderRadius:p.RADIUS.xl},chip:{flexDirection:'row',alignItems:'center',gap:p.SPACING.xs+2,paddingHorizontal:p.SPACING.md,paddingVertical:p.SPACING.sm+1,borderRadius:p.RADIUS.lg,borderWidth:1},chipText:{fontSize:12,fontWeight:'600'}})},3375,[15,17,20,112,252,33,786,813,2587,2589,2818,10]);
|
|
@@ -15803,7 +15803,7 @@ __d(function(g,_r,_i,_a,m,e,_d){"use strict";function t(t,s){return s.some(s=>t>
|
|
|
15803
15803
|
__d(function(g,r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DatePickerModal",{enumerable:!0,get:function(){return p}});var t=r(d[0]),o=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),i=e(r(d[4])),s=e(r(d[5])),c=r(d[6]),u=r(d[7]),h=r(d[8]),f=r(d[9]),y=r(d[10]),b=r(d[11]);const p=(0,t.memo)(function(e){const{t:s}=(0,c.useTranslation)(),{colors:f}=(0,h.useTheme)(),p=new Date(e.monthAnchorMs),j=(0,t.useMemo)(()=>(0,y.buildMonthGrid)(p.getFullYear(),p.getMonth(),e.nowMs),[p.getFullYear(),p.getMonth(),e.nowMs]),w=p.toLocaleDateString(void 0,{month:'long',year:'numeric'}),C=new Date(e.nowMs);return C.setHours(0,0,0,0),(0,b.jsx)(o.default,{visible:e.visible,transparent:!0,animationType:"fade",onRequestClose:e.onClose,children:(0,b.jsx)(i.default,{style:x.backdrop,onPress:e.onClose,children:(0,b.jsxs)(i.default,{style:[x.card,{backgroundColor:f.background,borderColor:f.border}],children:[(0,b.jsxs)(n.default,{style:x.header,children:[(0,b.jsx)(i.default,{style:x.navBtn,onPress:()=>e.onChangeMonth(-1),hitSlop:8,children:(0,b.jsx)(u.ChevronLeft,{size:18,color:f.foregroundMuted})}),(0,b.jsx)(l.default,{style:[x.title,{color:f.foreground}],children:w}),(0,b.jsx)(i.default,{style:x.navBtn,onPress:()=>e.onChangeMonth(1),hitSlop:8,children:(0,b.jsx)(u.ChevronRight,{size:18,color:f.foregroundMuted})})]}),(0,b.jsx)(n.default,{style:x.weekRow,children:['L','M','M','G','V','S','D'].map((e,t)=>(0,b.jsx)(l.default,{style:[x.weekday,{color:f.foregroundSubtle}],children:e},t))}),(0,b.jsx)(n.default,{style:x.grid,children:j.map(t=>{const o=e.daysSet.has(t.epoch),s=t.epoch===e.selectedDayMs,c=t.epoch===C.getTime();return(0,b.jsxs)(i.default,{style:[x.cell,s&&{backgroundColor:f.primary},!s&&c&&{borderColor:f.primary,borderWidth:1}],disabled:t.isFuture,onPress:()=>e.onPick(t.epoch),children:[(0,b.jsx)(l.default,{style:[x.cellText,{color:t.isFuture?f.foregroundSubtle:s?f.primaryForeground:t.inMonth?f.foreground:f.foregroundMuted}],children:new Date(t.epoch).getDate()}),o&&!s?(0,b.jsx)(n.default,{style:[x.dot,{backgroundColor:f.primary}]}):null]},t.epoch)})}),(0,b.jsx)(l.default,{style:[x.hint,{color:f.foregroundSubtle}],children:s('v2.theater.selectDate')})]})})})}),x=s.default.create({backdrop:{flex:1,backgroundColor:'rgba(0,0,0,0.5)',alignItems:'center',justifyContent:'center'},card:{width:280+2*f.SPACING.md,borderRadius:f.RADIUS.lg,borderWidth:1,padding:f.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginBottom:f.SPACING.sm},navBtn:{width:32,height:32,alignItems:'center',justifyContent:'center'},title:{fontSize:15,fontWeight:'700',textTransform:'capitalize'},weekRow:{flexDirection:'row'},weekday:{width:40,textAlign:'center',fontSize:11,fontWeight:'600'},grid:{flexDirection:'row',flexWrap:'wrap'},cell:{width:40,height:40,alignItems:'center',justifyContent:'center',borderRadius:f.RADIUS.md},cellText:{fontSize:13,fontWeight:'600'},dot:{width:4,height:4,borderRadius:2,marginTop:2},hint:{fontSize:11,textAlign:'center',marginTop:f.SPACING.sm}})},3382,[17,245,20,112,252,33,786,813,2587,2589,3383,10]);
|
|
15804
15804
|
__d(function(g,r,_i,a,m,e,_d){"use strict";function t(t,n){return{fromMs:new Date(t,n,1,0,0,0,0).getTime(),toMs:new Date(t,n+1,1,0,0,0,0).getTime()}}Object.defineProperty(e,'__esModule',{value:!0}),e.monthBounds=t,e.monthBoundsForMs=function(n){const o=new Date(n);return t(o.getFullYear(),o.getMonth())},e.buildMonthGrid=function(t,n,o){const u=(new Date(t,n,1,0,0,0,0).getDay()+6)%7,s=new Date(o);s.setHours(0,0,0,0);const i=[];for(let o=0;o<42;o++){const c=new Date(t,n,1-u+o,0,0,0,0);i.push({epoch:c.getTime(),inMonth:c.getMonth()===n,isFuture:c.getTime()>s.getTime()})}return i}},3383,[]);
|
|
15805
15805
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.dayAtSameTime=function(t,n,o){const s=new Date(t),c=new Date(n);c.setHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds());const u=c.getTime();return u>o?o:u},e.dateLabel=function(n,o,s){const c=new Date(n);c.setHours(0,0,0,0);const u=new Date(o);u.setHours(0,0,0,0);const y=Math.round((u.getTime()-c.getTime())/t);return 0===y?s('v2.theater.today'):1===y?s('v2.theater.yesterday'):new Date(n).toLocaleDateString(void 0,{weekday:'short',day:'numeric',month:'short'})};const t=864e5},3384,[]);
|
|
15806
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.qualityLabelKey=c,e.QualityPicker=function(
|
|
15806
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.qualityLabelKey=c,e.QualityPicker=function(h){const v=(0,t.c)(21),{value:y,onChange:f,onClose:q,topOffset:p,align:C,maxWidth:b}=h,{t:w}=(0,n.useTranslation)();let x;v[0]!==w?(x=u.map(t=>({value:t,label:w(c(t))})),v[0]=w,v[1]=x):x=v[1];const _=x;let j,L,O,P,M;v[2]!==w?(j=w("v2.theater.quality"),v[2]=w,v[3]=j):j=v[3];v[4]!==w?(L=w("v2.cameraDetail.close"),v[4]=w,v[5]=L):L=v[5];v[6]!==f||v[7]!==q?(O=t=>{f(t),q()},v[6]=f,v[7]=q,v[8]=O):O=v[8];v[9]!==_||v[10]!==O||v[11]!==y?(P=(0,s.jsx)(o.SegmentedControl,{options:_,value:y,onChange:O}),v[9]=_,v[10]=O,v[11]=y,v[12]=P):P=v[12];v[13]!==C||v[14]!==b||v[15]!==q||v[16]!==j||v[17]!==L||v[18]!==P||v[19]!==p?(M=(0,s.jsx)(l.FloatingPanel,{title:j,onClose:q,closeLabel:L,topOffset:p,align:C,maxWidth:b,children:P}),v[13]=C,v[14]=b,v[15]=q,v[16]=j,v[17]=L,v[18]=P,v[19]=p,v[20]=M):M=v[20];return M};var t=r(d[0]);r(d[1]);var n=r(d[2]),l=r(d[3]),o=r(d[4]),s=r(d[5]);const u=['auto','high','mid','low'];function c(t){switch(t){case'auto':return'v2.settings.qualityAuto';case'high':return'v2.settings.qualityHigh';case'mid':return'v2.settings.qualityMid';case'low':return'v2.settings.qualityLow'}}},3385,[15,17,786,3357,2837,10]);
|
|
15807
15807
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useObjectEvents=function(u,y,f){const p=(0,t.c)(13),{controller:v,state:b}=(0,o.useConnection)();let j;p[0]!==u||p[1]!==y||p[2]!==f?(j=["v2","analytics","objects",u,y,f],p[0]=u,p[1]=y,p[2]=f,p[3]=j):j=p[3];const I="connected"===b;let h,K;p[4]!==v||p[5]!==u||p[6]!==y||p[7]!==f?(h=async()=>{const t=v.getSystem();if(!t)return s.log.warn("obj-events","no system (not connected)"),[];const n=await(0,c.capQuery)(t.trpcClient,"pipelineAnalytics","getObjectEvents",{deviceId:u,since:y,until:f,limit:1e3,projection:"slim"});if(!Array.isArray(n))return s.log.warn("obj-events","unexpected response shape",{type:typeof n}),[];const o=n,p=[];for(const t of o){const n=l(t);null!==n&&p.push(n)}return s.log.info("obj-events","getObjectEvents",{deviceId:u,count:p.length}),p},p[4]=v,p[5]=u,p[6]=y,p[7]=f,p[8]=h):h=p[8];p[9]!==j||p[10]!==I||p[11]!==h?(K={queryKey:j,enabled:I,staleTime:3e4,refetchInterval:3e4,queryFn:h},p[9]=j,p[10]=I,p[11]=h,p[12]=K):K=p[12];return(0,n.useQuery)(K)};var t=r(d[0]),n=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]);function l(t){return(0,c.isRecord)(t)?'string'!=typeof t.id||0===t.id.length||'number'!=typeof t.timestamp||'string'!=typeof t.className||0===t.className.length?null:{id:t.id,timestamp:t.timestamp,className:t.className,label:'string'==typeof t.label?t.label:void 0,confidence:'number'==typeof t.confidence?t.confidence:void 0,mediaUrl:'string'==typeof t.mediaUrl?t.mediaUrl:void 0,mediaKey:'string'==typeof t.mediaKey?t.mediaKey:void 0,trackId:'string'==typeof t.trackId?t.trackId:void 0,frameId:'string'==typeof t.frameId?t.frameId:void 0}:null}},3386,[15,2740,2594,2704,2809]);
|
|
15808
15808
|
__d(function(g,_r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTimelineActivity=function(f,M,p){const b=(0,t.c)(13),{controller:v,state:h}=(0,s.useConnection)();let A;b[0]!==f||b[1]!==M||b[2]!==p?(A=["v2","analytics","activity",f,M,p],b[0]=f,b[1]=M,b[2]=p,b[3]=A):A=b[3];const k="connected"===h;let R,E;b[4]!==v||b[5]!==f||b[6]!==M||b[7]!==p?(R=async()=>{const t=v.getSystem();if(!t)return r.log.warn("timeline-activity","no system (not connected)"),a;const n=t.trpcClient,s=(0,c.pickBucketMs)(M,p),b=Math.round(Math.abs(p-M)/s),[h,A,k]=await Promise.all([(0,o.capQuery)(n,"pipelineAnalytics","getEventDensity",{deviceId:f,since:M,until:p,bucketMs:s}),(0,o.capQuery)(n,"pipelineAnalytics","getAudioEvents",{deviceId:f,since:M,until:p,limit:1e3}),(0,o.capQuery)(n,"recording","getAvailability",{deviceId:f,fromMs:M,toMs:p})]),R=y(h),E=l(A),I=u(k),Q=(0,c.densityToMotionBuckets)(R,s),S=(0,c.audioEventsToBuckets)(E,M,s,b);return r.log.info("timeline-activity","fetched",{deviceId:f,densityRows:R.length,audioEvents:E.length,recordingRanges:I.length,bucketCount:b}),{recording:I,motion:Q,audio:S}},b[4]=v,b[5]=f,b[6]=M,b[7]=p,b[8]=R):R=b[8];b[9]!==A||b[10]!==k||b[11]!==R?(E={queryKey:A,enabled:k,staleTime:3e4,queryFn:R},b[9]=A,b[10]=k,b[11]=R,b[12]=E):E=b[12];return(0,n.useQuery)(E).data??a};var t=_r(d[0]),n=_r(d[1]),s=_r(d[2]),r=_r(d[3]),o=_r(d[4]),c=_r(d[5]);const a={recording:[],motion:[],audio:[]};function u(t){if(!(0,o.isRecord)(t)||!Array.isArray(t.ranges))return[];const n=[];for(const s of t.ranges)(0,o.isRecord)(s)&&'number'==typeof s.startMs&&'number'==typeof s.endMs&&s.endMs>s.startMs&&n.push({startMs:s.startMs,endMs:s.endMs});n.sort((t,n)=>t.startMs-n.startMs);const s=[];for(const t of n){const n=s[s.length-1];void 0!==n&&t.startMs<=n.endMs?t.endMs>n.endMs&&(s[s.length-1]={startMs:n.startMs,endMs:t.endMs}):s.push({startMs:t.startMs,endMs:t.endMs})}return s}function y(t){if(!Array.isArray(t))return[];const n=[];for(const s of t)(0,o.isRecord)(s)&&'number'==typeof s.bucketStart&&'number'==typeof s.motion&&n.push({bucketStart:s.bucketStart,motion:s.motion});return n}function l(t){if(!Array.isArray(t))return[];const n=[];for(const s of t)(0,o.isRecord)(s)&&'number'==typeof s.timestamp&&'number'==typeof s.dbfs&&n.push({timestamp:s.timestamp,dbfs:s.dbfs});return n}},3387,[15,2740,2594,2704,2809,3388]);
|
|
15809
15809
|
__d(function(g,_r,_i,a,_m,e,d){"use strict";function t(t,n=-60,o=0){const s=(t-n)/(o-n);return Math.min(1,Math.max(0,s))}Object.defineProperty(e,'__esModule',{value:!0}),e.dbfsToUnit=t,e.densityToMotionBuckets=function(t,n){if(0===t.length)return[];const o=t.reduce((t,n)=>Math.max(t,n.motion),0);return t.map(t=>({startMs:t.bucketStart,endMs:t.bucketStart+n,intensity:o>0?Math.min(1,Math.max(0,t.motion/o)):0}))},e.audioEventsToBuckets=function(n,o,s,i){const r=Array.from({length:i},()=>{});for(const t of n){const n=Math.floor((t.timestamp-o)/s);if(n<0||n>=i)continue;const c=r[n];r[n]=void 0===c?t.dbfs:Math.max(c,t.dbfs)}return r.map((n,i)=>({startMs:o+i*s,endMs:o+(i+1)*s,intensity:void 0!==n?t(n):0}))},e.pickBucketMs=function(t,s,i=240){const r=Math.abs(s-t),c=Math.round(r/i);return Math.min(o,Math.max(n,c))};const n=5e3,o=36e5},3388,[]);
|
|
@@ -15820,61 +15820,62 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
|
|
|
15820
15820
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.qualityToTarget=function(t){return'auto'===t?{kind:'adaptive'}:{kind:'profile',profile:'medium'===t?'mid':t}}},3399,[]);
|
|
15821
15821
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),c=r(d[3]);function l(){const l=(0,t.c)(2),{id:o}=(0,n.useLocalSearchParams)();if(!o)return null;let f;return l[0]!==o?(f=(0,c.jsx)(u.GridBuilderScreen,{gridId:o}),l[0]=o,l[1]=f):f=l[1],f}},3400,[15,743,2841,10]);
|
|
15822
15822
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return l}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),c=r(d[3]);function l(){const l=(0,t.c)(2),{id:o}=(0,n.useLocalSearchParams)();if(!o)return null;let f;return l[0]!==o?(f=(0,c.jsx)(u.GridViewScreen,{gridId:o}),l[0]=o,l[1]=f):f=l[1],f}},3401,[15,743,3402,10]);
|
|
15823
|
-
__d(function(_g,r,i,_a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridViewScreen=function(e){const g=(0,t.c)(161),{gridId:E}=e,{t:$}=(0,u.useTranslation)(),{colors:Q}=(0,p.useTheme)(),X=(0,c.useRouter)(),J=(0,h.useSafeAreaInsets)(),{width:K,height:Y}=(0,a.default)(),Z=(0,w.useGridStore)(F),ee=(0,w.useGridStore)(V),te=(0,w.useGridStore)(H),oe=(0,w.useGridStore)(D),ne=(0,w.useGridStore)(q),re=(0,w.useGridStore)(L),{data:le}=(0,z.useCameras)();let ie;g[0]!==le?(ie=void 0===le?[]:le,g[0]=le,g[1]=ie):ie=g[1];const se=ie,{settings:de}=(0,P.useSettings)(),{server:ae}=(0,j.useServer)(),ue=ae?.serverUrl??null;let ce;if(g[2]!==E||g[3]!==Z){let e;g[5]!==E?(e=e=>e.id===E,g[5]=E,g[6]=e):e=g[6],ce=Z.find(e),g[2]=E,g[3]=Z,g[4]=ce}else ce=g[4];const he=ce;let fe,ge;g[7]!==he?.options?(fe=()=>(0,w.resolveGridOptions)(he?.options),g[7]=he?.options,g[8]=fe):fe=g[8];g[9]!==fe?(ge=fe(),g[9]=fe,g[10]=ge):ge=g[10];const ye=ge;let me;g[11]===Symbol.for("react.memo_cache_sentinel")?(me=new Set,g[11]=me):me=g[11];const[pe,be]=(0,o.useState)(me),[Se,xe]=(0,o.useState)(!1),[je,Ie]=(0,o.useState)(!1),[Ce,ve]=(0,o.useState)(!1);let we,ze;g[12]!==he?.audioOnIds?(we=he?.audioOnIds??[],g[12]=he?.audioOnIds,g[13]=we):we=g[13];g[14]!==we?(ze=new Set(we),g[14]=we,g[15]=ze):ze=g[15];const Pe=ze;let Ae,Ge;g[16]!==he?.audioOnIds?(Ae=()=>[...he?.audioOnIds??[]],g[16]=he?.audioOnIds,g[17]=Ae):Ae=g[17];g[18]!==Ae?(Ge=Ae(),g[18]=Ae,g[19]=Ge):Ge=g[19];const Oe=Ge;let ke;g[20]!==Pe||g[21]!==E||g[22]!==ne?(ke=e=>ne(E,e,!Pe.has(e)),g[20]=Pe,g[21]=E,g[22]=ne,g[23]=ke):ke=g[23];const Te=ke;let Ne,Re,Me,Be;g[24]!==ee?(Ne=()=>{ee()},Re=[ee],g[24]=ee,g[25]=Ne,g[26]=Re):(Ne=g[25],Re=g[26]);(0,o.useEffect)(Ne,Re),g[27]===Symbol.for("react.memo_cache_sentinel")?(Me=[],g[27]=Me):Me=g[27];(0,o.useEffect)(B,Me);e:{if(!he){let e;g[28]===Symbol.for("react.memo_cache_sentinel")?(e=[],g[28]=e):e=g[28],Be=e;break e}let e;g[29]!==se?(e=new Map(se.map(M)),g[29]=se,g[30]=e):e=g[30];const t=e;let o;if(g[31]!==t||g[32]!==he.cameraIds){o=[];for(const e of he.cameraIds){const n=t.get(e);n&&o.push(n)}g[31]=t,g[32]=he.cameraIds,g[33]=o}else o=g[33];Be=o}const Ee=Be;let Le,qe;g[34]!==he?.hiddenCameraIds?(Le=()=>new Set(he?.hiddenCameraIds??[]),g[34]=he?.hiddenCameraIds,g[35]=Le):Le=g[35];g[36]!==Le?(qe=Le(),g[36]=Le,g[37]=qe):qe=g[37];const De=qe;let He;g[38]!==De||g[39]!==Ee?(He=0===De.size?Ee:Ee.filter(e=>!De.has(e.id)),g[38]=De,g[39]=Ee,g[40]=He):He=g[40];const Ve=He;let Fe;g[41]!==Ve?(Fe=Ve.filter(R).map(N),g[41]=Ve,g[42]=Fe):Fe=g[42];const Ue=Fe,[We,$e]=(0,o.useState)(null);let Qe;g[43]!==We||g[44]!==Ve?(Qe=Ve.find(e=>e.id===We)??null,g[43]=We,g[44]=Ve,g[45]=Qe):Qe=g[45];const Xe=Qe,Je=pe.size>0;let Ke;g[46]!==pe?(Ke=[...pe],g[46]=pe,g[47]=Ke):Ke=g[47];const Ye=Ke;let Ze;g[48]===Symbol.for("react.memo_cache_sentinel")?(Ze=e=>be(t=>{const o=new Set(t);return o.has(e)?o.delete(e):o.add(e),o}),g[48]=Ze):Ze=g[48];const et=Ze;let tt;g[49]!==Ve?(tt=()=>be(e=>e.size>0?new Set:new Set(Ve.map(T))),g[49]=Ve,g[50]=tt):tt=g[50];const ot=tt,nt=Pe.size>0;let rt;g[51]!==nt||g[52]!==E||g[53]!==re||g[54]!==Ve?(rt=()=>re(E,nt?[]:Ve.map(k),!nt),g[51]=nt,g[52]=E,g[53]=re,g[54]=Ve,g[55]=rt):rt=g[55];const lt=rt,it=Math.max(0,Y-J.top-J.bottom);let st;g[56]!==it||g[57]!==K?(st={width:K,height:it},g[56]=it,g[57]=K,g[58]=st):st=g[58];const dt=st,[at,ut]=(0,o.useState)(dt);let ct;g[59]!==at.height||g[60]!==at.width||g[61]!==ye.layout||g[62]!==Ve.length?(ct=(0,v.computeGridLayout)(Ve.length,at.width,at.height,ye.layout),g[59]=at.height,g[60]=at.width,g[61]=ye.layout,g[62]=Ve.length,g[63]=ct):ct=g[63];const ht=ct;let ft,gt;g[64]!==he?.highlight||g[65]!==Se||g[66]!==de.highlight?(ft=()=>Object.assign({enabled:Se},(0,w.withHighlightDefaults)(he?.highlight),{appearance:de.highlight}),g[64]=he?.highlight,g[65]=Se,g[66]=de.highlight,g[67]=ft):ft=g[67];g[68]!==ft?(gt=ft(),g[68]=ft,g[69]=gt):gt=g[69];const yt=gt;let mt;g[70]!==E||g[71]!==X?(mt=()=>X.push(`/grid/${E}/edit`),g[70]=E,g[71]=X,g[72]=mt):mt=g[72];const pt=mt;let bt;g[73]!==X?(bt=()=>X.back(),g[73]=X,g[74]=bt):bt=g[74];const St=bt;let xt;g[75]!==he?.name||g[76]!==$?(xt=he?.name??$("v2.gridView.fallbackTitle"),g[75]=he?.name,g[76]=$,g[77]=xt):xt=g[77];const jt=xt;if(te&&!he){let e,t,o,s,d,a;return g[78]!==Q.background||g[79]!==J.top?(e=[W.fill,{backgroundColor:Q.background,paddingTop:J.top}],g[78]=Q.background,g[79]=J.top,g[80]=e):e=g[80],g[81]!==Q||g[82]!==St?(t=(0,A.jsx)(U,{onPress:St,colors:Q}),g[81]=Q,g[82]=St,g[83]=t):t=g[83],g[84]!==Q.foregroundMuted?(o={color:Q.foregroundMuted,fontSize:15},g[84]=Q.foregroundMuted,g[85]=o):o=g[85],g[86]!==$?(s=$("v2.gridView.notFound"),g[86]=$,g[87]=s):s=g[87],g[88]!==o||g[89]!==s?(d=(0,A.jsx)(n.default,{style:W.center,children:(0,A.jsx)(l.default,{style:o,children:s})}),g[88]=o,g[89]=s,g[90]=d):d=g[90],g[91]!==e||g[92]!==t||g[93]!==d?(a=(0,A.jsxs)(n.default,{style:e,children:[t,d]}),g[91]=e,g[92]=t,g[93]=d,g[94]=a):a=g[94],a}let It,Ct,vt,wt,zt,Pt;g[95]!==E||g[96]!==oe?(It=e=>oe(E,{quality:e}),g[95]=E,g[96]=oe,g[97]=It):It=g[97];g[98]!==E||g[99]!==oe?(Ct=e=>oe(E,{layout:e}),g[98]=E,g[99]=oe,g[100]=Ct):Ct=g[100];g[101]===Symbol.for("react.memo_cache_sentinel")?(vt=()=>xe(O),g[101]=vt):vt=g[101];g[102]===Symbol.for("react.memo_cache_sentinel")?(wt=()=>Ie(_),g[102]=wt):wt=g[102];g[103]!==ue?(zt=null!==ue?()=>ve(!0):void 0,g[103]=ue,g[104]=zt):zt=g[104];g[105]!==je||g[106]!==nt||g[107]!==Je||g[108]!==Pe||g[109]!==St||g[110]!==pt||g[111]!==Se||g[112]!==ye.layout||g[113]!==ye.quality||g[114]!==It||g[115]!==Ct||g[116]!==zt||g[117]!==jt||g[118]!==Te||g[119]!==lt||g[120]!==ot||g[121]!==Ve?(Pt=(0,A.jsx)(S.GridControlBar,{title:jt,onBack:St,onEdit:pt,anyPaused:Je,onTogglePause:ot,cameras:Ve,audioOnIds:Pe,onToggleAudio:Te,anyAudioOn:nt,onToggleMassAudio:lt,quality:ye.quality,onSelectQuality:It,layout:ye.layout,onSelectLayout:Ct,highlightOn:Se,onToggleHighlight:vt,activeOnly:je,onToggleActiveOnly:wt,onShare:zt}),g[105]=je,g[106]=nt,g[107]=Je,g[108]=Pe,g[109]=St,g[110]=pt,g[111]=Se,g[112]=ye.layout,g[113]=ye.quality,g[114]=It,g[115]=Ct,g[116]=zt,g[117]=jt,g[118]=Te,g[119]=lt,g[120]=ot,g[121]=Ve,g[122]=Pt):Pt=g[122];const At=Pt;let Gt,_t,Ot,kt,Tt,Nt;g[123]===Symbol.for("react.memo_cache_sentinel")?(Gt=[W.fill,{backgroundColor:"#000"}],_t=(0,A.jsx)(f.StatusBar,{hidden:!0,style:"light"}),g[123]=Gt,g[124]=_t):(Gt=g[123],_t=g[124]);g[125]===Symbol.for("react.memo_cache_sentinel")?(Ot=e=>{const{width:t,height:o}=e.nativeEvent.layout;t>0&&o>0&&ut(e=>e.width===t&&e.height===o?e:{width:t,height:o})},g[125]=Ot):Ot=g[125];g[126]!==je||g[127]!==Je||g[128]!==Oe||g[129]!==Pe.size||g[130]!==Q||g[131]!==At||g[132]!==St||g[133]!==pt||g[134]!==yt||g[135]!==J.top||g[136]!==ht||g[137]!==Ee.length||g[138]!==ye.layout||g[139]!==ye.quality||g[140]!==ye.showName||g[141]!==Ye||g[142]!==Ue||g[143]!==X||g[144]!==$||g[145]!==Te||g[146]!==Ve?(kt=0===Ee.length?(0,A.jsxs)(n.default,{style:[W.center,{paddingTop:J.top}],children:[(0,A.jsx)(U,{onPress:St,colors:Q}),(0,A.jsx)(l.default,{style:{color:Q.foregroundMuted,fontSize:15},children:$("v2.gridView.emptyGrid")}),(0,A.jsx)(s.default,{onPress:pt,style:e=>{const{pressed:t}=e;return{marginTop:C.SPACING.md,paddingVertical:C.SPACING.md,paddingHorizontal:C.SPACING.xl,borderRadius:C.RADIUS.md,backgroundColor:t?Q.surfaceHover:Q.primary}},children:(0,A.jsx)(l.default,{style:{color:Q.primaryForeground,fontSize:15,fontWeight:"600"},children:$("v2.gridView.addCameras")})})]}):0===Ve.length?(0,A.jsxs)(n.default,{style:[W.center,{paddingTop:J.top}],children:[(0,A.jsx)(U,{onPress:St,colors:Q}),(0,A.jsx)(l.default,{style:{color:Q.foregroundMuted,fontSize:15,textAlign:"center"},children:$("v2.gridView.allHidden")}),At]}):(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(b.GridLiveEmbed,{devices:Ve.map(G),quality:ye.quality,layout:ye.layout,showName:ye.showName,audioOnIds:Oe,pausedIds:Ye,highlight:yt,activeOnly:je,ptzIds:Ue,onTileOpen:e=>X.push(`/camera/${e}`),onAudioToggle:Te,onPauseToggle:et,onPtzOpen:e=>$e(e)}),At]}),g[126]=je,g[127]=Je,g[128]=Oe,g[129]=Pe.size,g[130]=Q,g[131]=At,g[132]=St,g[133]=pt,g[134]=yt,g[135]=J.top,g[136]=ht,g[137]=Ee.length,g[138]=ye.layout,g[139]=ye.quality,g[140]=ye.showName,g[141]=Ye,g[142]=Ue,g[143]=X,g[144]=$,g[145]=Te,g[146]=Ve,g[147]=kt):kt=g[147];g[148]!==kt?(Tt=(0,A.jsx)(n.default,{style:W.content,onLayout:Ot,children:kt}),g[148]=kt,g[149]=Tt):Tt=g[149];g[150]!==Q||g[151]!==Xe||g[152]!==$?(Nt=Xe?(0,A.jsxs)(n.default,{style:d.default.absoluteFill,pointerEvents:"box-none",children:[(0,A.jsx)(s.default,{style:[d.default.absoluteFill,W.ptzBackdrop],onPress:()=>$e(null),accessibilityRole:"button",accessibilityLabel:$("v2.cameraDetail.close")}),(0,A.jsx)(n.default,{style:W.ptzCenter,pointerEvents:"box-none",children:(0,A.jsxs)(n.default,{style:[W.ptzCard,{backgroundColor:Q.surface,borderColor:Q.border}],children:[(0,A.jsxs)(n.default,{style:[W.ptzHeader,{borderBottomColor:Q.border}],children:[(0,A.jsx)(l.default,{style:[W.ptzTitle,{color:Q.foreground}],numberOfLines:1,children:Xe.name}),(0,A.jsx)(s.default,{onPress:()=>$e(null),hitSlop:8,accessibilityRole:"button",accessibilityLabel:$("v2.cameraDetail.close"),children:(0,A.jsx)(y.X,{size:18,color:Q.foregroundMuted})})]}),(0,A.jsx)(n.default,{style:W.ptzBody,children:(0,A.jsx)(I.PtzControls,{deviceId:Xe.id,hasFeature:!0})})]})})]}):null,g[150]=Q,g[151]=Xe,g[152]=$,g[153]=Nt):Nt=g[153];const Rt=Ce&&he?he:null;let Mt,Bt,Et;g[154]===Symbol.for("react.memo_cache_sentinel")?(Mt=()=>ve(!1),g[154]=Mt):Mt=g[154];g[155]!==Rt?(Bt=(0,A.jsx)(x.GridShareDialog,{grid:Rt,onClose:Mt}),g[155]=Rt,g[156]=Bt):Bt=g[156];g[157]!==Tt||g[158]!==Nt||g[159]!==Bt?(Et=(0,A.jsxs)(n.default,{style:Gt,children:[_t,Tt,Nt,Bt]}),g[157]=Tt,g[158]=Nt,g[159]=Bt,g[160]=Et):Et=g[160];return Et};var t=r(_d[0]),o=r(_d[1]),n=e(r(_d[2])),l=e(r(_d[3])),s=e(r(_d[4])),d=e(r(_d[5])),a=e(r(_d[6]));r(_d[7]);var u=r(_d[8]),c=r(_d[9]),h=r(_d[10]),f=r(_d[11]),g=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[12])),y=r(_d[13]),p=r(_d[14]);r(_d[15]);var b=r(_d[16]),S=r(_d[17]),x=r(_d[18]),j=r(_d[19]),I=r(_d[20]),C=r(_d[21]),v=r(_d[22]),w=r(_d[23]),z=r(_d[24]),P=r(_d[25]),A=r(_d[26]);function G(e){return e.id}function _(e){return!e}function O(e){return!e}function k(e){return e.id}function T(e){return e.id}function N(e){return e.id}function R(e){return e.features.includes(z.FEATURE.ptz)}function M(e){return[e.id,e]}function B(){return g.unlockAsync(),E}function E(){g.lockAsync(g.OrientationLock.PORTRAIT_UP)}function L(e){return e.setAllGridAudio}function q(e){return e.setGridAudioInitial}function D(e){return e.setGridOptions}function H(e){return e.hydrated}function V(e){return e.hydrate}function F(e){return e.grids}function U(e){const o=(0,t.c)(9),{onPress:n,colors:l}=e;let d,a,u;return o[0]!==l.border||o[1]!==l.surface?(d={position:"absolute",top:C.SPACING.md,left:C.SPACING.md,width:40,height:40,borderRadius:C.RADIUS.lg,alignItems:"center",justifyContent:"center",backgroundColor:l.surface,borderWidth:1,borderColor:l.border},o[0]=l.border,o[1]=l.surface,o[2]=d):d=o[2],o[3]!==l.foreground?(a=(0,A.jsx)(y.ChevronLeft,{size:20,color:l.foreground}),o[3]=l.foreground,o[4]=a):a=o[4],o[5]!==n||o[6]!==d||o[7]!==a?(u=(0,A.jsx)(s.default,{onPress:n,accessibilityRole:"button",accessibilityLabel:"Back",hitSlop:10,style:d,children:a}),o[5]=n,o[6]=d,o[7]=a,o[8]=u):u=o[8],u}const W=d.default.create({fill:{flex:1},content:{flex:1},center:{flex:1,alignItems:'center',justifyContent:'center',padding:C.SPACING['2xl']},ptzBackdrop:{backgroundColor:'rgba(0,0,0,0.5)'},ptzCenter:{flex:1,alignItems:'center',justifyContent:'center',padding:C.SPACING.xl},ptzCard:{width:'100%',maxWidth:360,borderRadius:C.RADIUS.xl,borderWidth:1,overflow:'hidden'},ptzHeader:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingHorizontal:C.SPACING.lg,paddingVertical:C.SPACING.md,borderBottomWidth:1},ptzTitle:{fontSize:15,fontWeight:'600',flex:1,marginRight:C.SPACING.md},ptzBody:{padding:C.SPACING.lg}})},3402,[15,17,20,112,252,33,277,136,786,743,466,2862,3329,813,2587,3403,3405,3408,2831,2812,3355,2589,3411,2798,2739,2836,10]);
|
|
15824
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridWall=function(e){const
|
|
15825
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"GridTile",{enumerable:!0,get:function(){return
|
|
15826
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridLiveEmbed=function(e){const u=(0,t.c)(
|
|
15827
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.buildGridEmbedConfig=function(s){return Object.assign({serverUrl:s.serverUrl,token:s.token,devices:[...s.deviceIds],layout:s.options.layout,quality:s.options.quality,showName:s.options.showName,showBadges:!0,muted:s.muted,paused:s.paused},s.highlight?{highlight:s.highlight}:{},s.activeOnly?{activeOnly:!0}:{},s.audioOnIds&&s.audioOnIds.length>0?{audioOnIds:[...s.audioOnIds]}:{},s.pausedIds&&s.pausedIds.length>0?{pausedIds:[...s.pausedIds]}:{},s.ptzIds&&s.ptzIds.length>0?{ptzIds:[...s.ptzIds]}:{})}},3406,[]);
|
|
15823
|
+
__d(function(_g,r,i,_a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridViewScreen=function(e){const f=(0,t.c)(172),{gridId:H}=e,{t:X}=(0,u.useTranslation)(),{colors:J}=(0,p.useTheme)(),K=(0,c.useRouter)(),Y=(0,h.useSafeAreaInsets)(),{width:Z,height:ee}=(0,a.default)(),te=(0,v.useGridStore)(W),oe=(0,v.useGridStore)(U),ne=(0,v.useGridStore)(F),re=(0,v.useGridStore)(V),ie=(0,v.useGridStore)(D),le=(0,v.useGridStore)(q),se=(0,v.useGridStore)(L),{data:de}=(0,z.useCameras)();let ae;f[0]!==de?(ae=void 0===de?[]:de,f[0]=de,f[1]=ae):ae=f[1];const ue=ae,{settings:ce}=(0,G.useSettings)(),{server:he}=(0,j.useServer)(),ge=he?.serverUrl??null;let fe;if(f[2]!==H||f[3]!==te){let e;f[5]!==H?(e=e=>e.id===H,f[5]=H,f[6]=e):e=f[6],fe=te.find(e),f[2]=H,f[3]=te,f[4]=fe}else fe=f[4];const ye=fe;let me,pe;f[7]!==ye?.options?(me=()=>(0,v.resolveGridOptions)(ye?.options),f[7]=ye?.options,f[8]=me):me=f[8];f[9]!==me?(pe=me(),f[9]=me,f[10]=pe):pe=f[10];const be=pe;let Se;f[11]===Symbol.for("react.memo_cache_sentinel")?(Se=new Set,f[11]=Se):Se=f[11];const[xe,je]=(0,o.useState)(Se),[Ie,Ce]=(0,o.useState)(!1),[we,ve]=(0,o.useState)(!1),[ze,Ge]=(0,o.useState)(!1),[Pe,Ae]=(0,o.useState)(!1);let Oe,Te;f[12]!==ye?.audioOnIds?(Oe=ye?.audioOnIds??[],f[12]=ye?.audioOnIds,f[13]=Oe):Oe=f[13];f[14]!==Oe?(Te=new Set(Oe),f[14]=Oe,f[15]=Te):Te=f[15];const ke=Te;let Ne,Re;f[16]!==ye?.audioOnIds?(Ne=()=>[...ye?.audioOnIds??[]],f[16]=ye?.audioOnIds,f[17]=Ne):Ne=f[17];f[18]!==Ne?(Re=Ne(),f[18]=Ne,f[19]=Re):Re=f[19];const Be=Re;let Me;f[20]!==ke||f[21]!==H||f[22]!==le?(Me=e=>le(H,e,!ke.has(e)),f[20]=ke,f[21]=H,f[22]=le,f[23]=Me):Me=f[23];const Ee=Me;let He,Le,qe,De;f[24]!==oe?(He=()=>{oe()},Le=[oe],f[24]=oe,f[25]=He,f[26]=Le):(He=f[25],Le=f[26]);(0,o.useEffect)(He,Le),f[27]===Symbol.for("react.memo_cache_sentinel")?(qe=[],f[27]=qe):qe=f[27];(0,o.useEffect)(E,qe);e:{if(!ye){let e;f[28]===Symbol.for("react.memo_cache_sentinel")?(e=[],f[28]=e):e=f[28],De=e;break e}let e;f[29]!==ue?(e=new Map(ue.map(M)),f[29]=ue,f[30]=e):e=f[30];const t=e;let o;if(f[31]!==t||f[32]!==ye.cameraIds){o=[];for(const e of ye.cameraIds){const n=t.get(e);n&&o.push(n)}f[31]=t,f[32]=ye.cameraIds,f[33]=o}else o=f[33];De=o}const Ve=De;let Fe,Ue;f[34]!==ye?.hiddenCameraIds?(Fe=()=>new Set(ye?.hiddenCameraIds??[]),f[34]=ye?.hiddenCameraIds,f[35]=Fe):Fe=f[35];f[36]!==Fe?(Ue=Fe(),f[36]=Fe,f[37]=Ue):Ue=f[37];const We=Ue;let $e;f[38]!==We||f[39]!==Ve?($e=0===We.size?Ve:Ve.filter(e=>!We.has(e.id)),f[38]=We,f[39]=Ve,f[40]=$e):$e=f[40];const Qe=$e;let Xe;f[41]!==Qe?(Xe=Qe.filter(B).map(R),f[41]=Qe,f[42]=Xe):Xe=f[42];const Je=Xe,[Ke,Ye]=(0,o.useState)(null);let Ze;f[43]!==Ke||f[44]!==Qe?(Ze=Qe.find(e=>e.id===Ke)??null,f[43]=Ke,f[44]=Qe,f[45]=Ze):Ze=f[45];const et=Ze,tt=xe.size>0;let ot;f[46]!==xe?(ot=[...xe],f[46]=xe,f[47]=ot):ot=f[47];const nt=ot;let rt;f[48]===Symbol.for("react.memo_cache_sentinel")?(rt=e=>je(t=>{const o=new Set(t);return o.has(e)?o.delete(e):o.add(e),o}),f[48]=rt):rt=f[48];const it=rt;let lt;f[49]!==Qe?(lt=()=>je(e=>e.size>0?new Set:new Set(Qe.map(N))),f[49]=Qe,f[50]=lt):lt=f[50];const st=lt,dt=ke.size>0;let at;f[51]!==dt||f[52]!==H||f[53]!==se||f[54]!==Qe?(at=()=>se(H,dt?[]:Qe.map(k),!dt),f[51]=dt,f[52]=H,f[53]=se,f[54]=Qe,f[55]=at):at=f[55];const ut=at,ct=Math.max(0,ee-Y.top-Y.bottom);let ht;f[56]!==ct||f[57]!==Z?(ht={width:Z,height:ct},f[56]=ct,f[57]=Z,f[58]=ht):ht=f[58];const gt=ht,[ft,yt]=(0,o.useState)(gt);let mt;f[59]!==ft.height||f[60]!==ft.width||f[61]!==be.layout||f[62]!==Qe.length?(mt=(0,w.computeGridLayout)(Qe.length,ft.width,ft.height,be.layout),f[59]=ft.height,f[60]=ft.width,f[61]=be.layout,f[62]=Qe.length,f[63]=mt):mt=f[63];const pt=mt;let bt,St;f[64]!==ye?.highlight?(bt=()=>(0,v.withHighlightDefaults)(ye?.highlight),f[64]=ye?.highlight,f[65]=bt):bt=f[65];f[66]!==bt?(St=bt(),f[66]=bt,f[67]=St):St=f[67];const xt=St;let jt;f[68]!==Ie||f[69]!==xt||f[70]!==ce.highlight?(jt=Object.assign({enabled:Ie},xt,{appearance:ce.highlight}),f[68]=Ie,f[69]=xt,f[70]=ce.highlight,f[71]=jt):jt=f[71];const It=jt;let Ct;f[72]!==H||f[73]!==K?(Ct=()=>K.push(`/grid/${H}/edit`),f[72]=H,f[73]=K,f[74]=Ct):Ct=f[74];const wt=Ct;let vt;f[75]!==K?(vt=()=>K.back(),f[75]=K,f[76]=vt):vt=f[76];const zt=vt;let Gt;f[77]!==ye?.name||f[78]!==X?(Gt=ye?.name??X("v2.gridView.fallbackTitle"),f[77]=ye?.name,f[78]=X,f[79]=Gt):Gt=f[79];const Pt=Gt;if(ne&&!ye){let e,t,o,s,d,a;return f[80]!==J.background||f[81]!==Y.top?(e=[Q.fill,{backgroundColor:J.background,paddingTop:Y.top}],f[80]=J.background,f[81]=Y.top,f[82]=e):e=f[82],f[83]!==J||f[84]!==zt?(t=(0,P.jsx)($,{onPress:zt,colors:J}),f[83]=J,f[84]=zt,f[85]=t):t=f[85],f[86]!==J.foregroundMuted?(o={color:J.foregroundMuted,fontSize:15},f[86]=J.foregroundMuted,f[87]=o):o=f[87],f[88]!==X?(s=X("v2.gridView.notFound"),f[88]=X,f[89]=s):s=f[89],f[90]!==o||f[91]!==s?(d=(0,P.jsx)(n.default,{style:Q.center,children:(0,P.jsx)(l.default,{style:o,children:s})}),f[90]=o,f[91]=s,f[92]=d):d=f[92],f[93]!==e||f[94]!==t||f[95]!==d?(a=(0,P.jsxs)(n.default,{style:e,children:[t,d]}),f[93]=e,f[94]=t,f[95]=d,f[96]=a):a=f[96],a}let _t,At,Ot,Tt,kt,Nt,Rt,Bt;f[97]!==H||f[98]!==re?(_t=e=>re(H,{quality:e}),f[97]=H,f[98]=re,f[99]=_t):_t=f[99];f[100]!==H||f[101]!==re?(At=e=>re(H,{layout:e}),f[100]=H,f[101]=re,f[102]=At):At=f[102];f[103]===Symbol.for("react.memo_cache_sentinel")?(Ot=()=>Ce(T),f[103]=Ot):Ot=f[103];f[104]!==H||f[105]!==xt||f[106]!==ie?(Tt=e=>ie(H,Object.assign({},xt,e)),f[104]=H,f[105]=xt,f[106]=ie,f[107]=Tt):Tt=f[107];f[108]===Symbol.for("react.memo_cache_sentinel")?(kt=()=>Ge(O),f[108]=kt):kt=f[108];f[109]===Symbol.for("react.memo_cache_sentinel")?(Nt=()=>ve(A),f[109]=Nt):Nt=f[109];f[110]!==ge?(Rt=null!==ge?()=>Ae(!0):void 0,f[110]=ge,f[111]=Rt):Rt=f[111];f[112]!==we||f[113]!==dt||f[114]!==tt||f[115]!==ke||f[116]!==zt||f[117]!==wt||f[118]!==Ie||f[119]!==xt||f[120]!==be.layout||f[121]!==be.quality||f[122]!==ze||f[123]!==_t||f[124]!==At||f[125]!==Tt||f[126]!==Rt||f[127]!==Pt||f[128]!==Ee||f[129]!==ut||f[130]!==st||f[131]!==Qe?(Bt=(0,P.jsx)(S.GridControlBar,{title:Pt,onBack:zt,onEdit:wt,anyPaused:tt,onTogglePause:st,cameras:Qe,audioOnIds:ke,onToggleAudio:Ee,anyAudioOn:dt,onToggleMassAudio:ut,quality:be.quality,onSelectQuality:_t,layout:be.layout,onSelectLayout:At,highlightOn:Ie,onToggleHighlight:Ot,highlightSettings:xt,onSetHighlightSettings:Tt,showBoxes:ze,onToggleShowBoxes:kt,activeOnly:we,onToggleActiveOnly:Nt,onShare:Rt}),f[112]=we,f[113]=dt,f[114]=tt,f[115]=ke,f[116]=zt,f[117]=wt,f[118]=Ie,f[119]=xt,f[120]=be.layout,f[121]=be.quality,f[122]=ze,f[123]=_t,f[124]=At,f[125]=Tt,f[126]=Rt,f[127]=Pt,f[128]=Ee,f[129]=ut,f[130]=st,f[131]=Qe,f[132]=Bt):Bt=f[132];const Mt=Bt;let Et,Ht,Lt,qt,Dt,Vt;f[133]===Symbol.for("react.memo_cache_sentinel")?(Et=[Q.fill,{backgroundColor:"#000"}],Ht=(0,P.jsx)(g.StatusBar,{hidden:!0,style:"light"}),f[133]=Et,f[134]=Ht):(Et=f[133],Ht=f[134]);f[135]===Symbol.for("react.memo_cache_sentinel")?(Lt=e=>{const{width:t,height:o}=e.nativeEvent.layout;t>0&&o>0&&yt(e=>e.width===t&&e.height===o?e:{width:t,height:o})},f[135]=Lt):Lt=f[135];f[136]!==we||f[137]!==tt||f[138]!==Be||f[139]!==ke.size||f[140]!==J||f[141]!==Mt||f[142]!==zt||f[143]!==wt||f[144]!==It||f[145]!==Y.top||f[146]!==pt||f[147]!==Ve.length||f[148]!==be.layout||f[149]!==be.quality||f[150]!==be.showName||f[151]!==nt||f[152]!==Je||f[153]!==K||f[154]!==ze||f[155]!==X||f[156]!==Ee||f[157]!==Qe?(qt=0===Ve.length?(0,P.jsxs)(n.default,{style:[Q.center,{paddingTop:Y.top}],children:[(0,P.jsx)($,{onPress:zt,colors:J}),(0,P.jsx)(l.default,{style:{color:J.foregroundMuted,fontSize:15},children:X("v2.gridView.emptyGrid")}),(0,P.jsx)(s.default,{onPress:wt,style:e=>{const{pressed:t}=e;return{marginTop:C.SPACING.md,paddingVertical:C.SPACING.md,paddingHorizontal:C.SPACING.xl,borderRadius:C.RADIUS.md,backgroundColor:t?J.surfaceHover:J.primary}},children:(0,P.jsx)(l.default,{style:{color:J.primaryForeground,fontSize:15,fontWeight:"600"},children:X("v2.gridView.addCameras")})})]}):0===Qe.length?(0,P.jsxs)(n.default,{style:[Q.center,{paddingTop:Y.top}],children:[(0,P.jsx)($,{onPress:zt,colors:J}),(0,P.jsx)(l.default,{style:{color:J.foregroundMuted,fontSize:15,textAlign:"center"},children:X("v2.gridView.allHidden")}),Mt]}):(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(b.GridLiveEmbed,{devices:Qe.map(_),quality:be.quality,layout:be.layout,showName:be.showName,audioOnIds:Be,pausedIds:nt,highlight:It,activeOnly:we,showBoxes:ze,ptzIds:Je,onTileOpen:e=>K.push(`/camera/${e}`),onAudioToggle:Ee,onPauseToggle:it,onPtzOpen:e=>Ye(e)}),Mt]}),f[136]=we,f[137]=tt,f[138]=Be,f[139]=ke.size,f[140]=J,f[141]=Mt,f[142]=zt,f[143]=wt,f[144]=It,f[145]=Y.top,f[146]=pt,f[147]=Ve.length,f[148]=be.layout,f[149]=be.quality,f[150]=be.showName,f[151]=nt,f[152]=Je,f[153]=K,f[154]=ze,f[155]=X,f[156]=Ee,f[157]=Qe,f[158]=qt):qt=f[158];f[159]!==qt?(Dt=(0,P.jsx)(n.default,{style:Q.content,onLayout:Lt,children:qt}),f[159]=qt,f[160]=Dt):Dt=f[160];f[161]!==J||f[162]!==et||f[163]!==X?(Vt=et?(0,P.jsxs)(n.default,{style:d.default.absoluteFill,pointerEvents:"box-none",children:[(0,P.jsx)(s.default,{style:[d.default.absoluteFill,Q.ptzBackdrop],onPress:()=>Ye(null),accessibilityRole:"button",accessibilityLabel:X("v2.cameraDetail.close")}),(0,P.jsx)(n.default,{style:Q.ptzCenter,pointerEvents:"box-none",children:(0,P.jsxs)(n.default,{style:[Q.ptzCard,{backgroundColor:J.surface,borderColor:J.border}],children:[(0,P.jsxs)(n.default,{style:[Q.ptzHeader,{borderBottomColor:J.border}],children:[(0,P.jsx)(l.default,{style:[Q.ptzTitle,{color:J.foreground}],numberOfLines:1,children:et.name}),(0,P.jsx)(s.default,{onPress:()=>Ye(null),hitSlop:8,accessibilityRole:"button",accessibilityLabel:X("v2.cameraDetail.close"),children:(0,P.jsx)(y.X,{size:18,color:J.foregroundMuted})})]}),(0,P.jsx)(n.default,{style:Q.ptzBody,children:(0,P.jsx)(I.PtzControls,{deviceId:et.id,hasFeature:!0})})]})})]}):null,f[161]=J,f[162]=et,f[163]=X,f[164]=Vt):Vt=f[164];const Ft=Pe&&ye?ye:null;let Ut,Wt,$t;f[165]===Symbol.for("react.memo_cache_sentinel")?(Ut=()=>Ae(!1),f[165]=Ut):Ut=f[165];f[166]!==Ft?(Wt=(0,P.jsx)(x.GridShareDialog,{grid:Ft,onClose:Ut}),f[166]=Ft,f[167]=Wt):Wt=f[167];f[168]!==Dt||f[169]!==Vt||f[170]!==Wt?($t=(0,P.jsxs)(n.default,{style:Et,children:[Ht,Dt,Vt,Wt]}),f[168]=Dt,f[169]=Vt,f[170]=Wt,f[171]=$t):$t=f[171];return $t};var t=r(_d[0]),o=r(_d[1]),n=e(r(_d[2])),l=e(r(_d[3])),s=e(r(_d[4])),d=e(r(_d[5])),a=e(r(_d[6]));r(_d[7]);var u=r(_d[8]),c=r(_d[9]),h=r(_d[10]),g=r(_d[11]),f=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t})(r(_d[12])),y=r(_d[13]),p=r(_d[14]);r(_d[15]);var b=r(_d[16]),S=r(_d[17]),x=r(_d[18]),j=r(_d[19]),I=r(_d[20]),C=r(_d[21]),w=r(_d[22]),v=r(_d[23]),z=r(_d[24]),G=r(_d[25]),P=r(_d[26]);function _(e){return e.id}function A(e){return!e}function O(e){return!e}function T(e){return!e}function k(e){return e.id}function N(e){return e.id}function R(e){return e.id}function B(e){return e.features.includes(z.FEATURE.ptz)}function M(e){return[e.id,e]}function E(){return f.unlockAsync(),H}function H(){f.lockAsync(f.OrientationLock.PORTRAIT_UP)}function L(e){return e.setAllGridAudio}function q(e){return e.setGridAudioInitial}function D(e){return e.setGridHighlight}function V(e){return e.setGridOptions}function F(e){return e.hydrated}function U(e){return e.hydrate}function W(e){return e.grids}function $(e){const o=(0,t.c)(9),{onPress:n,colors:l}=e;let d,a,u;return o[0]!==l.border||o[1]!==l.surface?(d={position:"absolute",top:C.SPACING.md,left:C.SPACING.md,width:40,height:40,borderRadius:C.RADIUS.lg,alignItems:"center",justifyContent:"center",backgroundColor:l.surface,borderWidth:1,borderColor:l.border},o[0]=l.border,o[1]=l.surface,o[2]=d):d=o[2],o[3]!==l.foreground?(a=(0,P.jsx)(y.ChevronLeft,{size:20,color:l.foreground}),o[3]=l.foreground,o[4]=a):a=o[4],o[5]!==n||o[6]!==d||o[7]!==a?(u=(0,P.jsx)(s.default,{onPress:n,accessibilityRole:"button",accessibilityLabel:"Back",hitSlop:10,style:d,children:a}),o[5]=n,o[6]=d,o[7]=a,o[8]=u):u=o[8],u}const Q=d.default.create({fill:{flex:1},content:{flex:1},center:{flex:1,alignItems:'center',justifyContent:'center',padding:C.SPACING['2xl']},ptzBackdrop:{backgroundColor:'rgba(0,0,0,0.5)'},ptzCenter:{flex:1,alignItems:'center',justifyContent:'center',padding:C.SPACING.xl},ptzCard:{width:'100%',maxWidth:360,borderRadius:C.RADIUS.xl,borderWidth:1,overflow:'hidden'},ptzHeader:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingHorizontal:C.SPACING.lg,paddingVertical:C.SPACING.md,borderBottomWidth:1},ptzTitle:{fontSize:15,fontWeight:'600',flex:1,marginRight:C.SPACING.md},ptzBody:{padding:C.SPACING.lg}})},3402,[15,17,20,112,252,33,277,136,786,743,466,2862,3329,813,2587,3403,3405,3408,2831,2812,3355,2589,3412,2798,2739,2836,10]);
|
|
15824
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridWall=function(e){const o=(0,t.c)(19),{cameras:c,cellW:f,cellH:w,showName:h,quality:p,muted:x,paused:v,showBoxes:_}=e,y=void 0===x||x,j=void 0!==v&&v,W=void 0!==_&&_;let b,q;if(o[0]!==c||o[1]!==w||o[2]!==f||o[3]!==y||o[4]!==j||o[5]!==p||o[6]!==W||o[7]!==h){let e;o[9]!==w||o[10]!==f||o[11]!==y||o[12]!==j||o[13]!==p||o[14]!==W||o[15]!==h?(e=e=>(0,u.jsx)(s.GridTile,{camera:e,width:f,height:w,showName:h,quality:p,muted:y,paused:j,showBoxes:W},e.id),o[9]=w,o[10]=f,o[11]=y,o[12]=j,o[13]=p,o[14]=W,o[15]=h,o[16]=e):e=o[16],b=c.map(e),o[0]=c,o[1]=w,o[2]=f,o[3]=y,o[4]=j,o[5]=p,o[6]=W,o[7]=h,o[8]=b}else b=o[8];o[17]!==b?(q=(0,u.jsx)(l.default,{style:n.wrap,children:b}),o[17]=b,o[18]=q):q=o[18];return q};var t=r(d[0]);r(d[1]);var l=e(r(d[2])),o=e(r(d[3])),s=r(d[4]),u=r(d[5]);const n=o.default.create({wrap:{flex:1,flexDirection:'row',flexWrap:'wrap',alignItems:'center',justifyContent:'center',backgroundColor:'#000'}})},3403,[15,17,20,33,3404,10]);
|
|
15825
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"GridTile",{enumerable:!0,get:function(){return x}});var t=r(d[0]),n=e(r(d[1])),o=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),u=r(d[5]),c=r(d[6]),f=r(d[7]),h=r(d[8]),p=r(d[9]),y=r(d[10]),b=r(d[11]),j=r(d[12]),v=r(d[13]);const x=n.default.memo(function(e){const n=(0,t.c)(25),{camera:s,width:j,height:x,showName:C,quality:I,muted:P,paused:_,showBoxes:S}=e,k=void 0===P||P,B=void 0!==_&&_,F=void 0!==S&&S,{colors:G}=(0,f.useTheme)();let N;n[0]!==I?(N=(0,y.qualityToTarget)(I),n[0]=I,n[1]=N):N=n[1];const O=N,{data:T}=(0,b.useSnapshot)(s.id,B&&s.online);let z,A,M,q,D;return n[2]!==x||n[3]!==j?(z=[w.cell,{width:j,height:x}],n[2]=x,n[3]=j,n[4]=z):z=n[4],n[5]!==s.id||n[6]!==k||n[7]!==B||n[8]!==T||n[9]!==O?(A=B?(0,v.jsxs)(o.default,{style:w.pausedFill,children:[T?(0,v.jsx)(u.Image,{source:{uri:T},style:w.pausedFill,contentFit:"cover"}):null,(0,v.jsx)(o.default,{style:w.pauseBadge,pointerEvents:"none",children:(0,v.jsx)(c.Pause,{size:18,color:"#fafaf9",fill:"#fafaf9"})})]}):(0,v.jsx)(h.LiveView,{deviceId:s.id,target:O,muted:k}),n[5]=s.id,n[6]=k,n[7]=B,n[8]=T,n[9]=O,n[10]=A):A=n[10],n[11]!==s.id||n[12]!==B||n[13]!==F?(M=F&&!B?(0,v.jsx)(p.MotionBoxesOverlay,{deviceId:s.id,enabled:!0}):null,n[11]=s.id,n[12]=B,n[13]=F,n[14]=M):M=n[14],n[15]!==s.name||n[16]!==s.online||n[17]!==G||n[18]!==C?(q=C?(0,v.jsxs)(o.default,{style:w.overlay,pointerEvents:"none",children:[(0,v.jsx)(o.default,{style:[w.dot,{backgroundColor:s.online?G.success:G.foregroundDisabled}]}),(0,v.jsx)(l.default,{style:w.name,numberOfLines:1,children:s.name})]}):null,n[15]=s.name,n[16]=s.online,n[17]=G,n[18]=C,n[19]=q):q=n[19],n[20]!==z||n[21]!==A||n[22]!==M||n[23]!==q?(D=(0,v.jsxs)(o.default,{style:z,children:[A,M,q]}),n[20]=z,n[21]=A,n[22]=M,n[23]=q,n[24]=D):D=n[24],D}),w=s.default.create({cell:{backgroundColor:'#000'},pausedFill:{width:'100%',height:'100%',alignItems:'center',justifyContent:'center'},pauseBadge:{position:'absolute',width:36,height:36,borderRadius:18,alignItems:'center',justifyContent:'center',backgroundColor:'#0009'},overlay:{position:'absolute',left:0,right:0,bottom:0,flexDirection:'row',alignItems:'center',gap:j.SPACING.sm,paddingHorizontal:j.SPACING.md,paddingVertical:j.SPACING.sm,backgroundColor:'#0009'},dot:{width:8,height:8,borderRadius:4},name:{flex:1,color:'#fafaf9',fontSize:12,fontWeight:'600'}})},3404,[15,17,20,112,33,2712,813,2587,3344,3369,3399,2800,2589,10]);
|
|
15826
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridLiveEmbed=function(e){const u=(0,t.c)(84),{devices:b,quality:E,layout:w,showName:C,audioOnIds:S,pausedIds:T,highlight:O,activeOnly:P,showBoxes:A,ptzIds:L}=e,{server:z,token:G}=(0,h.useServer)(),{colors:N}=(0,y.useTheme)(),{t:_}=(0,f.useTranslation)(),[B,M]=(0,n.useState)("connecting"),H=z?.serverUrl??null;let R;u[0]!==P||u[1]!==S||u[2]!==b||u[3]!==O||u[4]!==w||u[5]!==T||u[6]!==L||u[7]!==E||u[8]!==H||u[9]!==A||u[10]!==C||u[11]!==G?(R=()=>H?(0,p.buildGridEmbedConfig)({serverUrl:H,token:G??"",deviceIds:b,options:{showName:C,quality:E,layout:w},muted:!0,paused:!1,highlight:O,activeOnly:P,showBoxes:A,audioOnIds:S,pausedIds:T,ptzIds:L}):{},u[0]=P,u[1]=S,u[2]=b,u[3]=O,u[4]=w,u[5]=T,u[6]=L,u[7]=E,u[8]=H,u[9]=A,u[10]=C,u[11]=G,u[12]=R):R=u[12];const U=R;let q;u[13]!==e?(q=t=>{const n=(0,x.coerceGridHostMessage)(t);if(n)e:switch(n.type){case"state":M(n.state),e.onStateChange?.(n.state);break e;case"tileTap":e.onTileTap?.(n.deviceId,n.rect);break e;case"tileLongPress":e.onTileLongPress?.(n.deviceId,n.rect);break e;case"tileOpen":e.onTileOpen?.(n.deviceId);break e;case"audioToggle":e.onAudioToggle?.(n.deviceId);break e;case"pauseToggle":e.onPauseToggle?.(n.deviceId);break e;case"ptzOpen":e.onPtzOpen?.(n.deviceId)}},u[13]=e,u[14]=q):q=u[14];const W=q;let D;u[15]!==U||u[16]!==W||u[17]!==H?(D={serverUrl:H,mode:"grid",buildConfig:U,onHostMessage:W},u[15]=U,u[16]=W,u[17]=H,u[18]=D):D=u[18];const{iframeRef:F,src:Q,postCommand:V,reload:J}=(0,I.useEmbedIframe)(D);let K;u[19]!==b?(K=b.join(","),u[19]=b,u[20]=K):K=u[20];const X=K;let Y;u[21]!==S?(Y=S.join(","),u[21]=S,u[22]=Y):Y=u[22];const Z=Y;let $;u[23]!==T?($=T.join(","),u[23]=T,u[24]=$):$=u[24];const ee=$;let te,ne,re,oe,ie,se,le,de,ae,ce,ue,fe,ge,ve,he,ye,me,be,pe;u[25]!==S||u[26]!==V?(te=()=>V({kind:"setAudioOn",value:S}),u[25]=S,u[26]=V,u[27]=te):te=u[27];u[28]!==Z?(ne=[Z],u[28]=Z,u[29]=ne):ne=u[29];(0,n.useEffect)(te,ne),u[30]!==T||u[31]!==V?(re=()=>V({kind:"setPaused",value:T}),u[30]=T,u[31]=V,u[32]=re):re=u[32];u[33]!==ee?(oe=[ee],u[33]=ee,u[34]=oe):oe=u[34];(0,n.useEffect)(re,oe),u[35]!==V||u[36]!==E?(ie=()=>V({kind:"setQuality",value:E}),se=[E,V],u[35]=V,u[36]=E,u[37]=ie,u[38]=se):(ie=u[37],se=u[38]);(0,n.useEffect)(ie,se),u[39]!==w||u[40]!==V?(le=()=>V({kind:"setLayout",value:w}),de=[w,V],u[39]=w,u[40]=V,u[41]=le,u[42]=de):(le=u[41],de=u[42]);(0,n.useEffect)(le,de),u[43]!==V||u[44]!==C?(ae=()=>V({kind:"setShowName",value:C}),ce=[C,V],u[43]=V,u[44]=C,u[45]=ae,u[46]=ce):(ae=u[45],ce=u[46]);(0,n.useEffect)(ae,ce),u[47]!==O||u[48]!==V?(ue=()=>{O&&V({kind:"setHighlight",value:O})},fe=[O,V],u[47]=O,u[48]=V,u[49]=ue,u[50]=fe):(ue=u[49],fe=u[50]);(0,n.useEffect)(ue,fe),u[51]!==P||u[52]!==V?(ge=()=>V({kind:"setActiveOnly",value:P??!1}),ve=[P,V],u[51]=P,u[52]=V,u[53]=ge,u[54]=ve):(ge=u[53],ve=u[54]);(0,n.useEffect)(ge,ve),u[55]!==V||u[56]!==A?(he=()=>V({kind:"setShowBoxes",value:A??!1}),ye=[A,V],u[55]=V,u[56]=A,u[57]=he,u[58]=ye):(he=u[57],ye=u[58]);(0,n.useEffect)(he,ye),u[59]!==V?(me=()=>{const e=()=>V({kind:"reconnect"}),t=()=>{"visible"===document.visibilityState&&V({kind:"reconnect"})};return window.addEventListener("online",e),document.addEventListener("visibilitychange",t),()=>{window.removeEventListener("online",e),document.removeEventListener("visibilitychange",t)}},be=[V],u[59]=V,u[60]=me,u[61]=be):(me=u[60],be=u[61]);(0,n.useEffect)(me,be),u[62]!==J?(pe=()=>{M("connecting"),J()},u[62]=J,u[63]=pe):pe=u[63];const xe=pe;if(!Q){let e,t,n;return u[64]!==N.danger?(e=[k.errorText,{color:N.danger}],u[64]=N.danger,u[65]=e):e=u[65],u[66]!==_?(t=_("v2.live.error"),u[66]=_,u[67]=t):t=u[67],u[68]!==e||u[69]!==t?(n=(0,j.jsx)(o.default,{style:k.container,children:(0,j.jsx)(o.default,{style:k.center,children:(0,j.jsx)(s.default,{style:e,children:t})})}),u[68]=e,u[69]=t,u[70]=n):n=u[70],n}let Ie,je,ke,Ee;u[71]===Symbol.for("react.memo_cache_sentinel")?(Ie={width:"100%",height:"100%",border:"none",background:"#000"},u[71]=Ie):Ie=u[71];u[72]!==X||u[73]!==F||u[74]!==Q?(je=(0,j.jsx)("iframe",{ref:F,src:Q,title:"camera-grid",allow:"microphone; autoplay; fullscreen",style:Ie},X),u[72]=X,u[73]=F,u[74]=Q,u[75]=je):je=u[75];u[76]!==N||u[77]!==xe||u[78]!==B||u[79]!==_?(ke="ready"!==B&&(0,j.jsx)(o.default,{style:k.overlay,pointerEvents:"error"===B?"auto":"none",children:"connecting"===B?(0,j.jsxs)(o.default,{style:k.center,children:[(0,j.jsx)(l.default,{color:N.primary}),(0,j.jsx)(s.default,{style:[k.hint,{color:N.foregroundMuted}],children:_("v2.live.connecting")})]}):(0,j.jsxs)(o.default,{style:k.center,children:[(0,j.jsx)(s.default,{style:[k.errorText,{color:N.danger}],children:_("v2.live.error")}),(0,j.jsxs)(c.default,{onPress:xe,style:[k.retryButton,{borderColor:N.border}],children:[(0,j.jsx)(v.RotateCw,{size:16,color:N.foreground}),(0,j.jsx)(s.default,{style:[k.retryLabel,{color:N.foreground}],children:_("v2.live.retry")})]})]})}),u[76]=N,u[77]=xe,u[78]=B,u[79]=_,u[80]=ke):ke=u[80];u[81]!==je||u[82]!==ke?(Ee=(0,j.jsxs)(o.default,{style:k.container,children:[je,ke]}),u[81]=je,u[82]=ke,u[83]=Ee):Ee=u[83];return Ee};var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=r(d[7]),v=r(d[8]),h=r(d[9]),y=r(d[10]),b=r(d[11]),p=r(d[12]),x=r(d[13]),I=r(d[14]),j=r(d[15]);const k=u.default.create({container:{flex:1,overflow:'hidden',backgroundColor:'#000'},overlay:Object.assign({},u.default.absoluteFill,{alignItems:'center',justifyContent:'center',backgroundColor:'#000'}),center:{flex:1,alignItems:'center',justifyContent:'center',padding:b.SPACING.xl,gap:b.SPACING.md},hint:{fontSize:13,textAlign:'center'},errorText:{fontSize:13,textAlign:'center'},retryButton:{flexDirection:'row',alignItems:'center',gap:b.SPACING.sm,paddingHorizontal:b.SPACING.lg,paddingVertical:b.SPACING.md,borderRadius:8,borderWidth:1},retryLabel:{fontSize:13,fontWeight:'600'}})},3405,[15,17,20,112,240,252,33,786,813,2812,2587,2589,3406,3407,3349,10]);
|
|
15827
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.buildGridEmbedConfig=function(s){return Object.assign({serverUrl:s.serverUrl,token:s.token,devices:[...s.deviceIds],layout:s.options.layout,quality:s.options.quality,showName:s.options.showName,showBadges:!0,muted:s.muted,paused:s.paused},s.highlight?{highlight:s.highlight}:{},s.activeOnly?{activeOnly:!0}:{},s.showBoxes?{showBoxes:!0}:{},s.audioOnIds&&s.audioOnIds.length>0?{audioOnIds:[...s.audioOnIds]}:{},s.pausedIds&&s.pausedIds.length>0?{pausedIds:[...s.pausedIds]}:{},s.ptzIds&&s.ptzIds.length>0?{ptzIds:[...s.ptzIds]}:{})}},3406,[]);
|
|
15828
15828
|
__d(function(g,_r,i,a,_m,e,d){"use strict";function t(t){if('object'!=typeof t||null===t)return!1;const n=t;return'number'==typeof n.x&&'number'==typeof n.y&&'number'==typeof n.w&&'number'==typeof n.h}Object.defineProperty(e,'__esModule',{value:!0}),e.coerceGridHostMessage=r,e.parseGridHostMessage=function(t){let n;try{n=JSON.parse(t)}catch{return null}return r(n)},e.gridCommandScript=function(t){const n='window.__camstackGrid',r='fit'===t.kind?`${n}.fit(${t.w}, ${t.h})`:'reconnect'===t.kind?`${n}.reconnect()`:`${n}.${t.kind}(${JSON.stringify(t.value)})`;return`${n} && ${r}; true;`};const n=['connecting','ready','error'];function r(r){if('object'!=typeof r||null===r)return null;const c=r;switch(c.type){case'state':{if('string'!=typeof c.state||!n.includes(c.state))return null;const t=c.state;return'string'==typeof c.message?{type:'state',state:t,message:c.message}:{type:'state',state:t}}case'tileTap':case'tileLongPress':return'number'==typeof c.deviceId&&t(c.rect)?{type:c.type,deviceId:c.deviceId,rect:c.rect}:null;case'tileOpen':return'number'!=typeof c.deviceId?null:{type:'tileOpen',deviceId:c.deviceId};case'audioToggle':return'number'!=typeof c.deviceId?null:{type:'audioToggle',deviceId:c.deviceId};case'pauseToggle':return'number'!=typeof c.deviceId?null:{type:'pauseToggle',deviceId:c.deviceId};case'ptzOpen':return'number'!=typeof c.deviceId?null:{type:'ptzOpen',deviceId:c.deviceId};case'layout':{if(!Array.isArray(c.tiles))return null;const n=[];for(const r of c.tiles){if('object'!=typeof r||null===r)return null;const c=r;if('number'!=typeof c.deviceId||!t(c.rect))return null;n.push({deviceId:c.deviceId,rect:c.rect})}return{type:'layout',tiles:n}}default:return null}}},3407,[]);
|
|
15829
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridControlBar=function(e){const c=(0,o.c)(164),{title:u,onBack:v,onEdit:z,anyPaused:G,onTogglePause:B,cameras:N,audioOnIds:O,onToggleAudio:k,anyAudioOn:T,onToggleMassAudio:D,quality:W,onSelectQuality:_,layout:L,onSelectLayout:V,highlightOn:F,onToggleHighlight:M,activeOnly:U,onToggleActiveOnly:q,onShare:E}=e,{t:X}=(0,h.useTranslation)(),{colors:Q}=(0,p.useTheme)(),{width:Z}=(0,f.default)(),J=Z>=900?260:100,[K,Y]=(0,l.useState)(!0),[$,ee]=(0,l.useState)(null),oe=(0,l.useRef)(null);let re;c[0]!==$?(re=()=>{oe.current&&clearTimeout(oe.current),oe.current=setTimeout(()=>Y(e=>!!$&&e),C)},c[0]=$,c[1]=re):re=c[1];const le=re;let te;c[2]!==le?(te=e=>()=>{e(),ee(null),le()},c[2]=le,c[3]=te):te=c[3];const se=te;let ie;c[4]!==le?(ie=e=>()=>{ee(o=>o===e?null:e),le()},c[4]=le,c[5]=ie):ie=c[5];const ae=ie;let ne,de;c[6]!==le||c[7]!==K?(ne=()=>(K&&le(),()=>{oe.current&&clearTimeout(oe.current)}),de=[K,le],c[6]=le,c[7]=K,c[8]=ne,c[9]=de):(ne=c[8],de=c[9]);(0,l.useEffect)(ne,de);const ce="auto"===L?"A":String(L);if(!K){let e,o,l,t,s;return c[10]===Symbol.for("react.memo_cache_sentinel")?(e=()=>Y(!0),c[10]=e):e=c[10],c[11]!==X?(o=X("v2.gridBar.show"),c[11]=X,c[12]=o):o=c[12],c[13]!==Q.border||c[14]!==Q.surface?(l=[H.handle,{backgroundColor:Q.surface,borderColor:Q.border}],c[13]=Q.border,c[14]=Q.surface,c[15]=l):l=c[15],c[16]!==Q.foreground?(t=(0,x.jsx)(b.ChevronUp,{size:18,color:Q.foreground}),c[16]=Q.foreground,c[17]=t):t=c[17],c[18]!==o||c[19]!==l||c[20]!==t?(s=(0,x.jsx)(n.default,{onPress:e,accessibilityRole:"button",accessibilityLabel:o,style:l,hitSlop:10,children:t}),c[18]=o,c[19]=l,c[20]=t,c[21]=s):s=c[21],s}let ue,ge,fe,he,be,pe,me,ve,ye;c[22]!==le||c[23]!==Q||c[24]!==_||c[25]!==$||c[26]!==W?(ue="quality"===$?(0,x.jsx)(A,{colors:Q,children:S.map(e=>(0,x.jsx)(w,{label:e.label,selected:e.value===W,colors:Q,onPress:()=>{_(e.value),ee(null),le()}},e.value))}):null,c[22]=le,c[23]=Q,c[24]=_,c[25]=$,c[26]=W,c[27]=ue):ue=c[27];c[28]!==le||c[29]!==Q||c[30]!==L||c[31]!==V||c[32]!==$?(ge="layout"===$?(0,x.jsx)(A,{colors:Q,children:P.map(e=>(0,x.jsx)(w,{label:e.label,selected:e.value===L,colors:Q,onPress:()=>{V(e.value),ee(null),le()}},String(e.value)))}):null,c[28]=le,c[29]=Q,c[30]=L,c[31]=V,c[32]=$,c[33]=ge):ge=c[33];c[34]!==T||c[35]!==le||c[36]!==O||c[37]!==N||c[38]!==Q||c[39]!==k||c[40]!==D||c[41]!==$?(fe="audio"===$?(0,x.jsx)(A,{colors:Q,scroll:!0,children:0===N.length?(0,x.jsx)(s.default,{style:{color:Q.foregroundMuted,fontSize:13,padding:y.SPACING.sm},children:"\u2014"}):(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(I,{muteAll:T,colors:Q,onPress:()=>{D(),le()}}),(0,x.jsx)(t.default,{style:[H.popoverDivider,{backgroundColor:Q.border}]}),N.map(e=>(0,x.jsx)(w,{label:e.name,selected:O.has(e.id),colors:Q,onPress:()=>{k(e.id),le()}},e.id))]})}):null,c[34]=T,c[35]=le,c[36]=O,c[37]=N,c[38]=Q,c[39]=k,c[40]=D,c[41]=$,c[42]=fe):fe=c[42];c[43]!==Q.border||c[44]!==Q.surface?(he=[H.bar,{backgroundColor:Q.surface,borderColor:Q.border}],c[43]=Q.border,c[44]=Q.surface,c[45]=he):he=c[45];c[46]!==X?(be=X("v2.gridBar.back"),c[46]=X,c[47]=be):be=c[47];c[48]!==Q||c[49]!==v||c[50]!==be?(pe=(0,x.jsx)(R,{icon:b.ChevronLeft,tip:be,onPress:v,colors:Q}),c[48]=Q,c[49]=v,c[50]=be,c[51]=pe):pe=c[51];c[52]!==Q.foreground||c[53]!==J?(me=[H.title,{color:Q.foreground,maxWidth:J}],c[52]=Q.foreground,c[53]=J,c[54]=me):me=c[54];c[55]!==me||c[56]!==u?(ve=(0,x.jsx)(s.default,{style:me,numberOfLines:1,children:u}),c[55]=me,c[56]=u,c[57]=ve):ve=c[57];c[58]!==Q.border?(ye=(0,x.jsx)(t.default,{style:[H.sep,{backgroundColor:Q.border}]}),c[58]=Q.border,c[59]=ye):ye=c[59];const xe=G?b.Play:b.Pause;let Se,Pe,je;c[60]!==G||c[61]!==X?(Se=X(G?"v2.gridBar.playAll":"v2.gridBar.pauseAll"),c[60]=G,c[61]=X,c[62]=Se):Se=c[62];c[63]!==se||c[64]!==B?(Pe=se(B),c[63]=se,c[64]=B,c[65]=Pe):Pe=c[65];c[66]!==Q||c[67]!==xe||c[68]!==Se||c[69]!==Pe?(je=(0,x.jsx)(R,{icon:xe,tip:Se,onPress:Pe,colors:Q}),c[66]=Q,c[67]=xe,c[68]=Se,c[69]=Pe,c[70]=je):je=c[70];const Ce=O.size>0?b.Volume2:b.VolumeX;let Ae;c[71]!==X?(Ae=X("v2.gridBar.audio"),c[71]=X,c[72]=Ae):Ae=c[72];const we="audio"===$,Ie=O.size>0?String(O.size):void 0;let Re,He,ze;c[73]!==ae?(Re=ae("audio"),c[73]=ae,c[74]=Re):Re=c[74];c[75]!==Q||c[76]!==Ce||c[77]!==Ae||c[78]!==we||c[79]!==Ie||c[80]!==Re?(He=(0,x.jsx)(R,{icon:Ce,tip:Ae,active:we,badge:Ie,onPress:Re,colors:Q}),c[75]=Q,c[76]=Ce,c[77]=Ae,c[78]=we,c[79]=Ie,c[80]=Re,c[81]=He):He=c[81];c[82]!==X?(ze=X("v2.gridBar.quality"),c[82]=X,c[83]=ze):ze=c[83];const Ge="quality"===$,Be=j[W];let Ne,Oe,ke;c[84]!==ae?(Ne=ae("quality"),c[84]=ae,c[85]=Ne):Ne=c[85];c[86]!==Q||c[87]!==ze||c[88]!==Ge||c[89]!==Be||c[90]!==Ne?(Oe=(0,x.jsx)(R,{icon:b.Gauge,tip:ze,active:Ge,badge:Be,onPress:Ne,colors:Q}),c[86]=Q,c[87]=ze,c[88]=Ge,c[89]=Be,c[90]=Ne,c[91]=Oe):Oe=c[91];c[92]!==X?(ke=X("v2.gridBar.layout"),c[92]=X,c[93]=ke):ke=c[93];const Te="layout"===$;let De,We,Le,Ve,Fe,Me,Ue,qe,Ee,Xe,Qe,Ze,Je,Ke,Ye,$e,eo,oo;c[94]!==ae?(De=ae("layout"),c[94]=ae,c[95]=De):De=c[95];c[96]!==Q||c[97]!==ce||c[98]!==ke||c[99]!==Te||c[100]!==De?(We=(0,x.jsx)(R,{icon:b.LayoutGrid,tip:ke,active:Te,badge:ce,onPress:De,colors:Q}),c[96]=Q,c[97]=ce,c[98]=ke,c[99]=Te,c[100]=De,c[101]=We):We=c[101];c[102]!==X?(Le=X("v2.gridBar.highlight"),c[102]=X,c[103]=Le):Le=c[103];c[104]!==se||c[105]!==M?(Ve=se(M),c[104]=se,c[105]=M,c[106]=Ve):Ve=c[106];c[107]!==Q||c[108]!==F||c[109]!==Le||c[110]!==Ve?(Fe=(0,x.jsx)(R,{icon:b.Zap,tip:Le,active:F,onPress:Ve,colors:Q}),c[107]=Q,c[108]=F,c[109]=Le,c[110]=Ve,c[111]=Fe):Fe=c[111];c[112]!==X?(Me=X("v2.gridBar.activeOnly"),c[112]=X,c[113]=Me):Me=c[113];c[114]!==se||c[115]!==q?(Ue=se(q),c[114]=se,c[115]=q,c[116]=Ue):Ue=c[116];c[117]!==U||c[118]!==Q||c[119]!==Me||c[120]!==Ue?(qe=(0,x.jsx)(R,{icon:b.Filter,tip:Me,active:U,onPress:Ue,colors:Q}),c[117]=U,c[118]=Q,c[119]=Me,c[120]=Ue,c[121]=qe):qe=c[121];c[122]!==se||c[123]!==Q||c[124]!==E||c[125]!==X?(Ee=E?(0,x.jsx)(R,{icon:b.Share2,tip:X("v2.gridBar.share"),onPress:se(E),colors:Q}):null,c[122]=se,c[123]=Q,c[124]=E,c[125]=X,c[126]=Ee):Ee=c[126];c[127]!==X?(Xe=X("v2.gridBar.edit"),c[127]=X,c[128]=Xe):Xe=c[128];c[129]!==se||c[130]!==z?(Qe=se(z),c[129]=se,c[130]=z,c[131]=Qe):Qe=c[131];c[132]!==Q||c[133]!==Xe||c[134]!==Qe?(Ze=(0,x.jsx)(R,{icon:b.Pencil,tip:Xe,onPress:Qe,colors:Q}),c[132]=Q,c[133]=Xe,c[134]=Qe,c[135]=Ze):Ze=c[135];c[136]!==Q.border?(Je=(0,x.jsx)(t.default,{style:[H.sep,{backgroundColor:Q.border}]}),c[136]=Q.border,c[137]=Je):Je=c[137];c[138]!==X?(Ke=X("v2.gridBar.hide"),c[138]=X,c[139]=Ke):Ke=c[139];c[140]===Symbol.for("react.memo_cache_sentinel")?(Ye=()=>{ee(null),Y(!1)},c[140]=Ye):Ye=c[140];c[141]!==Q||c[142]!==Ke?($e=(0,x.jsx)(R,{icon:b.ChevronDown,tip:Ke,onPress:Ye,colors:Q}),c[141]=Q,c[142]=Ke,c[143]=$e):$e=c[143];c[144]!==pe||c[145]!==ve||c[146]!==ye||c[147]!==je||c[148]!==He||c[149]!==Oe||c[150]!==We||c[151]!==Fe||c[152]!==qe||c[153]!==Ee||c[154]!==Ze||c[155]!==Je||c[156]!==$e||c[157]!==he?(eo=(0,x.jsxs)(t.default,{style:he,pointerEvents:"box-none",children:[pe,ve,ye,je,He,Oe,We,Fe,qe,Ee,Ze,Je,$e]}),c[144]=pe,c[145]=ve,c[146]=ye,c[147]=je,c[148]=He,c[149]=Oe,c[150]=We,c[151]=Fe,c[152]=qe,c[153]=Ee,c[154]=Ze,c[155]=Je,c[156]=$e,c[157]=he,c[158]=eo):eo=c[158];c[159]!==eo||c[160]!==ue||c[161]!==ge||c[162]!==fe?(oo=(0,x.jsxs)(x.Fragment,{children:[ue,ge,fe,eo]}),c[159]=eo,c[160]=ue,c[161]=ge,c[162]=fe,c[163]=oo):oo=c[163];return oo};var o=r(d[0]),l=r(d[1]),t=e(r(d[2])),s=e(r(d[3])),n=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=e(r(d[7])),h=r(d[8]),b=r(d[9]),p=r(d[10]),v=r(d[11]),y=r(d[12]),x=r(d[13]);const S=[{value:'auto',label:'Auto'},{value:'high',label:'High'},{value:'medium',label:'Mid'},{value:'low',label:'Low'}],P=[{value:'auto',label:'Auto'},{value:2,label:'2'},{value:3,label:'3'},{value:4,label:'4'}],j={auto:'A',high:'H',medium:'M',low:'L'},C=4500;function A(e){const l=(0,o.c)(9),{children:s,colors:n,scroll:u}=e,f=void 0!==u&&u;let h;l[0]!==s||l[1]!==f?(h=f?(0,x.jsx)(c.default,{style:{maxHeight:220},children:s}):(0,x.jsx)(t.default,{children:s}),l[0]=s,l[1]=f,l[2]=h):h=l[2];const b=h;let p,v;return l[3]!==n.border||l[4]!==n.surface?(p=[H.popover,{backgroundColor:n.surface,borderColor:n.border}],l[3]=n.border,l[4]=n.surface,l[5]=p):p=l[5],l[6]!==b||l[7]!==p?(v=(0,x.jsx)(t.default,{style:p,children:b}),l[6]=b,l[7]=p,l[8]=v):v=l[8],v}function w(e){const l=(0,o.c)(18),{label:t,selected:c,onPress:u,colors:f}=e;let h,p,v,y,S,P;return l[0]!==c?(h={selected:c},l[0]=c,l[1]=h):h=l[1],l[2]!==f.surfaceHover?(p=e=>{const{pressed:o}=e;return[H.optionRow,{backgroundColor:o?f.surfaceHover:"transparent"}]},l[2]=f.surfaceHover,l[3]=p):p=l[3],l[4]!==f.foreground?(v={flex:1,color:f.foreground,fontSize:14},l[4]=f.foreground,l[5]=v):v=l[5],l[6]!==t||l[7]!==v?(y=(0,x.jsx)(s.default,{style:v,children:t}),l[6]=t,l[7]=v,l[8]=y):y=l[8],l[9]!==f.primary||l[10]!==c?(S=c?(0,x.jsx)(b.Check,{size:16,color:f.primary}):null,l[9]=f.primary,l[10]=c,l[11]=S):S=l[11],l[12]!==u||l[13]!==h||l[14]!==p||l[15]!==y||l[16]!==S?(P=(0,x.jsxs)(n.default,{onPress:u,accessibilityRole:"button",accessibilityState:h,style:p,children:[y,S]}),l[12]=u,l[13]=h,l[14]=p,l[15]=y,l[16]=S,l[17]=P):P=l[17],P}function I(e){const l=(0,o.c)(19),{muteAll:t,onPress:c,colors:u}=e,{t:f}=(0,h.useTranslation)(),p=t?b.VolumeX:b.Volume2;let v;l[0]!==t||l[1]!==f?(v=f(t?"v2.gridBar.muteAll":"v2.gridBar.unmuteAll"),l[0]=t,l[1]=f,l[2]=v):v=l[2];const y=v;let S,P,j,C,A;return l[3]!==u.surfaceHover?(S=e=>{const{pressed:o}=e;return[H.optionRow,{backgroundColor:o?u.surfaceHover:"transparent"}]},l[3]=u.surfaceHover,l[4]=S):S=l[4],l[5]!==p||l[6]!==u.primary?(P=(0,x.jsx)(p,{size:16,color:u.primary}),l[5]=p,l[6]=u.primary,l[7]=P):P=l[7],l[8]!==u.foreground?(j={flex:1,color:u.foreground,fontSize:14,fontWeight:"600"},l[8]=u.foreground,l[9]=j):j=l[9],l[10]!==y||l[11]!==j?(C=(0,x.jsx)(s.default,{style:j,children:y}),l[10]=y,l[11]=j,l[12]=C):C=l[12],l[13]!==y||l[14]!==c||l[15]!==S||l[16]!==P||l[17]!==C?(A=(0,x.jsxs)(n.default,{onPress:c,accessibilityRole:"button",accessibilityLabel:y,style:S,children:[P,C]}),l[13]=y,l[14]=c,l[15]=S,l[16]=P,l[17]=C,l[18]=A):A=l[18],A}function R(e){const l=(0,o.c)(24),{icon:t,tip:c,onPress:u,colors:f,active:h,badge:b}=e,p=void 0!==h&&h;let y,S;l[0]!==p?(y={selected:p},l[0]=p,l[1]=y):y=l[1],l[2]!==p||l[3]!==f.primary||l[4]!==f.surfaceHover?(S=e=>{const{pressed:o}=e;return[H.btn,{backgroundColor:p?f.primary:o?f.surfaceHover:"transparent"}]},l[2]=p,l[3]=f.primary,l[4]=f.surfaceHover,l[5]=S):S=l[5];const P=p?f.primaryForeground:f.foreground;let j,C,A,w;return l[6]!==t||l[7]!==P?(j=(0,x.jsx)(t,{size:18,color:P}),l[6]=t,l[7]=P,l[8]=j):j=l[8],l[9]!==p||l[10]!==b||l[11]!==f.foreground||l[12]!==f.primaryForeground?(C=b?(0,x.jsx)(s.default,{style:[H.badge,{color:p?f.primaryForeground:f.foreground}],children:b}):null,l[9]=p,l[10]=b,l[11]=f.foreground,l[12]=f.primaryForeground,l[13]=C):C=l[13],l[14]!==u||l[15]!==y||l[16]!==S||l[17]!==j||l[18]!==C||l[19]!==c?(A=(0,x.jsxs)(n.default,{onPress:u,accessibilityRole:"button",accessibilityLabel:c,accessibilityState:y,hitSlop:6,style:S,children:[j,C]}),l[14]=u,l[15]=y,l[16]=S,l[17]=j,l[18]=C,l[19]=c,l[20]=A):A=l[20],l[21]!==A||l[22]!==c?(w=(0,x.jsx)(v.Tooltip,{label:c,children:A}),l[21]=A,l[22]=c,l[23]=w):w=l[23],w}const H=u.default.create({bar:{position:'absolute',bottom:y.SPACING.lg,alignSelf:'center',flexDirection:'row',alignItems:'center',gap:y.SPACING.xs/2,paddingHorizontal:y.SPACING.sm,paddingVertical:y.SPACING.xs,borderRadius:y.RADIUS.xl,borderWidth:1,maxWidth:'96%',shadowColor:'#000',shadowOpacity:.4,shadowRadius:8,shadowOffset:{width:0,height:2},elevation:6},popover:{position:'absolute',bottom:64,alignSelf:'center',minWidth:220,maxWidth:'92%',borderRadius:y.RADIUS.lg,borderWidth:1,paddingVertical:y.SPACING.xs,paddingHorizontal:y.SPACING.xs,shadowColor:'#000',shadowOpacity:.4,shadowRadius:8,shadowOffset:{width:0,height:2},elevation:8},optionRow:{flexDirection:'row',alignItems:'center',gap:y.SPACING.sm,paddingVertical:y.SPACING.sm,paddingHorizontal:y.SPACING.md,borderRadius:y.RADIUS.md},popoverDivider:{height:1,marginVertical:y.SPACING.xs/2,marginHorizontal:y.SPACING.sm},handle:{position:'absolute',bottom:y.SPACING.lg,alignSelf:'center',width:56,height:28,borderRadius:y.RADIUS.xl,borderWidth:1,alignItems:'center',justifyContent:'center',shadowColor:'#000',shadowOpacity:.4,shadowRadius:8,shadowOffset:{width:0,height:2},elevation:6},title:{fontSize:13,fontWeight:'600',maxWidth:100,paddingHorizontal:y.SPACING.xs},sep:{width:1,height:20,marginHorizontal:2},btn:{flexDirection:'row',alignItems:'center',gap:2,paddingHorizontal:y.SPACING.sm,paddingVertical:y.SPACING.sm,borderRadius:y.RADIUS.lg},badge:{fontSize:11,fontWeight:'700'}})},3408,[15,17,20,112,252,147,33,277,786,813,2587,3409,2589,10]);
|
|
15829
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridControlBar=function(e){const c=(0,o.c)(174),{title:u,onBack:x,onEdit:G,anyPaused:z,onTogglePause:N,cameras:O,audioOnIds:T,onToggleAudio:k,anyAudioOn:D,onToggleMassAudio:W,quality:_,onSelectQuality:L,layout:V,onSelectLayout:M,highlightOn:F,onToggleHighlight:U,highlightSettings:q,onSetHighlightSettings:E,showBoxes:X,onToggleShowBoxes:Q,activeOnly:Z,onToggleActiveOnly:J,onShare:K}=e,{t:Y}=(0,f.useTranslation)(),{colors:$}=(0,p.useTheme)(),{width:ee}=(0,h.default)(),oe=ee>=900?260:100,[re,le]=(0,l.useState)(!0),[te,se]=(0,l.useState)(null),ie=(0,l.useRef)(null);let ne;c[0]!==te?(ne=()=>{ie.current&&clearTimeout(ie.current),ie.current=setTimeout(()=>le(e=>!!te&&e),A)},c[0]=te,c[1]=ne):ne=c[1];const ae=ne;let de;c[2]!==ae?(de=e=>()=>{e(),se(null),ae()},c[2]=ae,c[3]=de):de=c[3];const ce=de;let ue;c[4]!==ae?(ue=e=>()=>{se(o=>o===e?null:e),ae()},c[4]=ae,c[5]=ue):ue=c[5];const ge=ue;let he,fe;c[6]!==ae||c[7]!==re?(he=()=>(re&&ae(),()=>{ie.current&&clearTimeout(ie.current)}),fe=[re,ae],c[6]=ae,c[7]=re,c[8]=he,c[9]=fe):(he=c[8],fe=c[9]);(0,l.useEffect)(he,fe);const be="auto"===V?"A":String(V);if(!re){let e,o,l,t,s;return c[10]===Symbol.for("react.memo_cache_sentinel")?(e=()=>le(!0),c[10]=e):e=c[10],c[11]!==Y?(o=Y("v2.gridBar.show"),c[11]=Y,c[12]=o):o=c[12],c[13]!==$.border||c[14]!==$.surface?(l=[B.handle,{backgroundColor:$.surface,borderColor:$.border}],c[13]=$.border,c[14]=$.surface,c[15]=l):l=c[15],c[16]!==$.foreground?(t=(0,S.jsx)(b.ChevronUp,{size:18,color:$.foreground}),c[16]=$.foreground,c[17]=t):t=c[17],c[18]!==o||c[19]!==l||c[20]!==t?(s=(0,S.jsx)(n.default,{onPress:e,accessibilityRole:"button",accessibilityLabel:o,style:l,hitSlop:10,children:t}),c[18]=o,c[19]=l,c[20]=t,c[21]=s):s=c[21],s}let pe,me,xe,ve,ye,Se,je,Pe,Ce,Ae;c[22]!==ae||c[23]!==$||c[24]!==L||c[25]!==te||c[26]!==_?(pe="quality"===te?(0,S.jsx)(w,{colors:$,children:j.map(e=>(0,S.jsx)(I,{label:e.label,selected:e.value===_,colors:$,onPress:()=>{L(e.value),se(null),ae()}},e.value))}):null,c[22]=ae,c[23]=$,c[24]=L,c[25]=te,c[26]=_,c[27]=pe):pe=c[27];c[28]!==ae||c[29]!==$||c[30]!==V||c[31]!==M||c[32]!==te?(me="layout"===te?(0,S.jsx)(w,{colors:$,children:P.map(e=>(0,S.jsx)(I,{label:e.label,selected:e.value===V,colors:$,onPress:()=>{M(e.value),se(null),ae()}},String(e.value)))}):null,c[28]=ae,c[29]=$,c[30]=V,c[31]=M,c[32]=te,c[33]=me):me=c[33];c[34]!==ae||c[35]!==$||c[36]!==F||c[37]!==q||c[38]!==E||c[39]!==U||c[40]!==Q||c[41]!==te||c[42]!==X?(xe="menu"===te?(0,S.jsx)(w,{colors:$,scroll:!0,children:(0,S.jsx)(v.GridMenuPanel,{highlightOn:F,onToggleHighlight:()=>{U(),ae()},showBoxes:X,onToggleShowBoxes:()=>{Q(),ae()},highlight:q,onSetHighlight:e=>{E(e),ae()}})}):null,c[34]=ae,c[35]=$,c[36]=F,c[37]=q,c[38]=E,c[39]=U,c[40]=Q,c[41]=te,c[42]=X,c[43]=xe):xe=c[43];c[44]!==D||c[45]!==ae||c[46]!==T||c[47]!==O||c[48]!==$||c[49]!==k||c[50]!==W||c[51]!==te?(ve="audio"===te?(0,S.jsx)(w,{colors:$,scroll:!0,children:0===O.length?(0,S.jsx)(s.default,{style:{color:$.foregroundMuted,fontSize:13,padding:y.SPACING.sm},children:"\u2014"}):(0,S.jsxs)(S.Fragment,{children:[(0,S.jsx)(H,{muteAll:D,colors:$,onPress:()=>{W(),ae()}}),(0,S.jsx)(t.default,{style:[B.popoverDivider,{backgroundColor:$.border}]}),O.map(e=>(0,S.jsx)(I,{label:e.name,selected:T.has(e.id),colors:$,onPress:()=>{k(e.id),ae()}},e.id))]})}):null,c[44]=D,c[45]=ae,c[46]=T,c[47]=O,c[48]=$,c[49]=k,c[50]=W,c[51]=te,c[52]=ve):ve=c[52];c[53]!==$.border||c[54]!==$.surface?(ye=[B.bar,{backgroundColor:$.surface,borderColor:$.border}],c[53]=$.border,c[54]=$.surface,c[55]=ye):ye=c[55];c[56]!==Y?(Se=Y("v2.gridBar.back"),c[56]=Y,c[57]=Se):Se=c[57];c[58]!==$||c[59]!==x||c[60]!==Se?(je=(0,S.jsx)(R,{icon:b.ChevronLeft,tip:Se,onPress:x,colors:$}),c[58]=$,c[59]=x,c[60]=Se,c[61]=je):je=c[61];c[62]!==$.foreground||c[63]!==oe?(Pe=[B.title,{color:$.foreground,maxWidth:oe}],c[62]=$.foreground,c[63]=oe,c[64]=Pe):Pe=c[64];c[65]!==Pe||c[66]!==u?(Ce=(0,S.jsx)(s.default,{style:Pe,numberOfLines:1,children:u}),c[65]=Pe,c[66]=u,c[67]=Ce):Ce=c[67];c[68]!==$.border?(Ae=(0,S.jsx)(t.default,{style:[B.sep,{backgroundColor:$.border}]}),c[68]=$.border,c[69]=Ae):Ae=c[69];const we=z?b.Play:b.Pause;let Ie,He,Re;c[70]!==z||c[71]!==Y?(Ie=Y(z?"v2.gridBar.playAll":"v2.gridBar.pauseAll"),c[70]=z,c[71]=Y,c[72]=Ie):Ie=c[72];c[73]!==ce||c[74]!==N?(He=ce(N),c[73]=ce,c[74]=N,c[75]=He):He=c[75];c[76]!==$||c[77]!==we||c[78]!==Ie||c[79]!==He?(Re=(0,S.jsx)(R,{icon:we,tip:Ie,onPress:He,colors:$}),c[76]=$,c[77]=we,c[78]=Ie,c[79]=He,c[80]=Re):Re=c[80];const Be=T.size>0?b.Volume2:b.VolumeX;let Ge;c[81]!==Y?(Ge=Y("v2.gridBar.audio"),c[81]=Y,c[82]=Ge):Ge=c[82];const ze="audio"===te,Ne=T.size>0?String(T.size):void 0;let Oe,Te,ke;c[83]!==ge?(Oe=ge("audio"),c[83]=ge,c[84]=Oe):Oe=c[84];c[85]!==$||c[86]!==Be||c[87]!==Ge||c[88]!==ze||c[89]!==Ne||c[90]!==Oe?(Te=(0,S.jsx)(R,{icon:Be,tip:Ge,active:ze,badge:Ne,onPress:Oe,colors:$}),c[85]=$,c[86]=Be,c[87]=Ge,c[88]=ze,c[89]=Ne,c[90]=Oe,c[91]=Te):Te=c[91];c[92]!==Y?(ke=Y("v2.gridBar.quality"),c[92]=Y,c[93]=ke):ke=c[93];const De="quality"===te,We=C[_];let Le,Ve,Me;c[94]!==ge?(Le=ge("quality"),c[94]=ge,c[95]=Le):Le=c[95];c[96]!==$||c[97]!==ke||c[98]!==De||c[99]!==We||c[100]!==Le?(Ve=(0,S.jsx)(R,{icon:b.Gauge,tip:ke,active:De,badge:We,onPress:Le,colors:$}),c[96]=$,c[97]=ke,c[98]=De,c[99]=We,c[100]=Le,c[101]=Ve):Ve=c[101];c[102]!==Y?(Me=Y("v2.gridBar.layout"),c[102]=Y,c[103]=Me):Me=c[103];const Fe="layout"===te;let Ue,qe,Ee;c[104]!==ge?(Ue=ge("layout"),c[104]=ge,c[105]=Ue):Ue=c[105];c[106]!==$||c[107]!==be||c[108]!==Me||c[109]!==Fe||c[110]!==Ue?(qe=(0,S.jsx)(R,{icon:b.LayoutGrid,tip:Me,active:Fe,badge:be,onPress:Ue,colors:$}),c[106]=$,c[107]=be,c[108]=Me,c[109]=Fe,c[110]=Ue,c[111]=qe):qe=c[111];c[112]!==Y?(Ee=Y("v2.gridBar.highlightMenu"),c[112]=Y,c[113]=Ee):Ee=c[113];const Xe=F||"menu"===te;let Qe,Ze,Je,Ke,Ye,$e,eo,oo,ro,lo,to,so,io,no,ao;c[114]!==ge?(Qe=ge("menu"),c[114]=ge,c[115]=Qe):Qe=c[115];c[116]!==$||c[117]!==Ee||c[118]!==Xe||c[119]!==Qe?(Ze=(0,S.jsx)(R,{icon:b.Zap,tip:Ee,active:Xe,onPress:Qe,colors:$}),c[116]=$,c[117]=Ee,c[118]=Xe,c[119]=Qe,c[120]=Ze):Ze=c[120];c[121]!==Y?(Je=Y("v2.gridBar.activeOnly"),c[121]=Y,c[122]=Je):Je=c[122];c[123]!==ce||c[124]!==J?(Ke=ce(J),c[123]=ce,c[124]=J,c[125]=Ke):Ke=c[125];c[126]!==Z||c[127]!==$||c[128]!==Je||c[129]!==Ke?(Ye=(0,S.jsx)(R,{icon:b.Filter,tip:Je,active:Z,onPress:Ke,colors:$}),c[126]=Z,c[127]=$,c[128]=Je,c[129]=Ke,c[130]=Ye):Ye=c[130];c[131]!==ce||c[132]!==$||c[133]!==K||c[134]!==Y?($e=K?(0,S.jsx)(R,{icon:b.Share2,tip:Y("v2.gridBar.share"),onPress:ce(K),colors:$}):null,c[131]=ce,c[132]=$,c[133]=K,c[134]=Y,c[135]=$e):$e=c[135];c[136]!==Y?(eo=Y("v2.gridBar.edit"),c[136]=Y,c[137]=eo):eo=c[137];c[138]!==ce||c[139]!==G?(oo=ce(G),c[138]=ce,c[139]=G,c[140]=oo):oo=c[140];c[141]!==$||c[142]!==eo||c[143]!==oo?(ro=(0,S.jsx)(R,{icon:b.Pencil,tip:eo,onPress:oo,colors:$}),c[141]=$,c[142]=eo,c[143]=oo,c[144]=ro):ro=c[144];c[145]!==$.border?(lo=(0,S.jsx)(t.default,{style:[B.sep,{backgroundColor:$.border}]}),c[145]=$.border,c[146]=lo):lo=c[146];c[147]!==Y?(to=Y("v2.gridBar.hide"),c[147]=Y,c[148]=to):to=c[148];c[149]===Symbol.for("react.memo_cache_sentinel")?(so=()=>{se(null),le(!1)},c[149]=so):so=c[149];c[150]!==$||c[151]!==to?(io=(0,S.jsx)(R,{icon:b.ChevronDown,tip:to,onPress:so,colors:$}),c[150]=$,c[151]=to,c[152]=io):io=c[152];c[153]!==ye||c[154]!==je||c[155]!==Ce||c[156]!==Ae||c[157]!==Re||c[158]!==Te||c[159]!==Ve||c[160]!==qe||c[161]!==Ze||c[162]!==Ye||c[163]!==$e||c[164]!==ro||c[165]!==lo||c[166]!==io?(no=(0,S.jsxs)(t.default,{style:ye,pointerEvents:"box-none",children:[je,Ce,Ae,Re,Te,Ve,qe,Ze,Ye,$e,ro,lo,io]}),c[153]=ye,c[154]=je,c[155]=Ce,c[156]=Ae,c[157]=Re,c[158]=Te,c[159]=Ve,c[160]=qe,c[161]=Ze,c[162]=Ye,c[163]=$e,c[164]=ro,c[165]=lo,c[166]=io,c[167]=no):no=c[167];c[168]!==no||c[169]!==pe||c[170]!==me||c[171]!==xe||c[172]!==ve?(ao=(0,S.jsxs)(S.Fragment,{children:[pe,me,xe,ve,no]}),c[168]=no,c[169]=pe,c[170]=me,c[171]=xe,c[172]=ve,c[173]=ao):ao=c[173];return ao};var o=r(d[0]),l=r(d[1]),t=e(r(d[2])),s=e(r(d[3])),n=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),h=e(r(d[7])),f=r(d[8]),b=r(d[9]),p=r(d[10]),x=r(d[11]),v=r(d[12]),y=r(d[13]),S=r(d[14]);const j=[{value:'auto',label:'Auto'},{value:'high',label:'High'},{value:'medium',label:'Mid'},{value:'low',label:'Low'}],P=[{value:'auto',label:'Auto'},{value:2,label:'2'},{value:3,label:'3'},{value:4,label:'4'}],C={auto:'A',high:'H',medium:'M',low:'L'},A=4500;function w(e){const l=(0,o.c)(9),{children:s,colors:n,scroll:u}=e,h=void 0!==u&&u;let f;l[0]!==s||l[1]!==h?(f=h?(0,S.jsx)(c.default,{style:{maxHeight:220},children:s}):(0,S.jsx)(t.default,{children:s}),l[0]=s,l[1]=h,l[2]=f):f=l[2];const b=f;let p,x;return l[3]!==n.border||l[4]!==n.surface?(p=[B.popover,{backgroundColor:n.surface,borderColor:n.border}],l[3]=n.border,l[4]=n.surface,l[5]=p):p=l[5],l[6]!==b||l[7]!==p?(x=(0,S.jsx)(t.default,{style:p,children:b}),l[6]=b,l[7]=p,l[8]=x):x=l[8],x}function I(e){const l=(0,o.c)(18),{label:t,selected:c,onPress:u,colors:h}=e;let f,p,x,v,y,j;return l[0]!==c?(f={selected:c},l[0]=c,l[1]=f):f=l[1],l[2]!==h.surfaceHover?(p=e=>{const{pressed:o}=e;return[B.optionRow,{backgroundColor:o?h.surfaceHover:"transparent"}]},l[2]=h.surfaceHover,l[3]=p):p=l[3],l[4]!==h.foreground?(x={flex:1,color:h.foreground,fontSize:14},l[4]=h.foreground,l[5]=x):x=l[5],l[6]!==t||l[7]!==x?(v=(0,S.jsx)(s.default,{style:x,children:t}),l[6]=t,l[7]=x,l[8]=v):v=l[8],l[9]!==h.primary||l[10]!==c?(y=c?(0,S.jsx)(b.Check,{size:16,color:h.primary}):null,l[9]=h.primary,l[10]=c,l[11]=y):y=l[11],l[12]!==u||l[13]!==f||l[14]!==p||l[15]!==v||l[16]!==y?(j=(0,S.jsxs)(n.default,{onPress:u,accessibilityRole:"button",accessibilityState:f,style:p,children:[v,y]}),l[12]=u,l[13]=f,l[14]=p,l[15]=v,l[16]=y,l[17]=j):j=l[17],j}function H(e){const l=(0,o.c)(19),{muteAll:t,onPress:c,colors:u}=e,{t:h}=(0,f.useTranslation)(),p=t?b.VolumeX:b.Volume2;let x;l[0]!==t||l[1]!==h?(x=h(t?"v2.gridBar.muteAll":"v2.gridBar.unmuteAll"),l[0]=t,l[1]=h,l[2]=x):x=l[2];const v=x;let y,j,P,C,A;return l[3]!==u.surfaceHover?(y=e=>{const{pressed:o}=e;return[B.optionRow,{backgroundColor:o?u.surfaceHover:"transparent"}]},l[3]=u.surfaceHover,l[4]=y):y=l[4],l[5]!==p||l[6]!==u.primary?(j=(0,S.jsx)(p,{size:16,color:u.primary}),l[5]=p,l[6]=u.primary,l[7]=j):j=l[7],l[8]!==u.foreground?(P={flex:1,color:u.foreground,fontSize:14,fontWeight:"600"},l[8]=u.foreground,l[9]=P):P=l[9],l[10]!==v||l[11]!==P?(C=(0,S.jsx)(s.default,{style:P,children:v}),l[10]=v,l[11]=P,l[12]=C):C=l[12],l[13]!==v||l[14]!==c||l[15]!==y||l[16]!==j||l[17]!==C?(A=(0,S.jsxs)(n.default,{onPress:c,accessibilityRole:"button",accessibilityLabel:v,style:y,children:[j,C]}),l[13]=v,l[14]=c,l[15]=y,l[16]=j,l[17]=C,l[18]=A):A=l[18],A}function R(e){const l=(0,o.c)(24),{icon:t,tip:c,onPress:u,colors:h,active:f,badge:b}=e,p=void 0!==f&&f;let v,y;l[0]!==p?(v={selected:p},l[0]=p,l[1]=v):v=l[1],l[2]!==p||l[3]!==h.primary||l[4]!==h.surfaceHover?(y=e=>{const{pressed:o}=e;return[B.btn,{backgroundColor:p?h.primary:o?h.surfaceHover:"transparent"}]},l[2]=p,l[3]=h.primary,l[4]=h.surfaceHover,l[5]=y):y=l[5];const j=p?h.primaryForeground:h.foreground;let P,C,A,w;return l[6]!==t||l[7]!==j?(P=(0,S.jsx)(t,{size:18,color:j}),l[6]=t,l[7]=j,l[8]=P):P=l[8],l[9]!==p||l[10]!==b||l[11]!==h.foreground||l[12]!==h.primaryForeground?(C=b?(0,S.jsx)(s.default,{style:[B.badge,{color:p?h.primaryForeground:h.foreground}],children:b}):null,l[9]=p,l[10]=b,l[11]=h.foreground,l[12]=h.primaryForeground,l[13]=C):C=l[13],l[14]!==u||l[15]!==v||l[16]!==y||l[17]!==P||l[18]!==C||l[19]!==c?(A=(0,S.jsxs)(n.default,{onPress:u,accessibilityRole:"button",accessibilityLabel:c,accessibilityState:v,hitSlop:6,style:y,children:[P,C]}),l[14]=u,l[15]=v,l[16]=y,l[17]=P,l[18]=C,l[19]=c,l[20]=A):A=l[20],l[21]!==A||l[22]!==c?(w=(0,S.jsx)(x.Tooltip,{label:c,children:A}),l[21]=A,l[22]=c,l[23]=w):w=l[23],w}const B=u.default.create({bar:{position:'absolute',bottom:y.SPACING.lg,alignSelf:'center',flexDirection:'row',alignItems:'center',gap:y.SPACING.xs/2,paddingHorizontal:y.SPACING.sm,paddingVertical:y.SPACING.xs,borderRadius:y.RADIUS.xl,borderWidth:1,maxWidth:'96%',shadowColor:'#000',shadowOpacity:.4,shadowRadius:8,shadowOffset:{width:0,height:2},elevation:6},popover:{position:'absolute',bottom:64,alignSelf:'center',minWidth:220,maxWidth:'92%',borderRadius:y.RADIUS.lg,borderWidth:1,paddingVertical:y.SPACING.xs,paddingHorizontal:y.SPACING.xs,shadowColor:'#000',shadowOpacity:.4,shadowRadius:8,shadowOffset:{width:0,height:2},elevation:8},optionRow:{flexDirection:'row',alignItems:'center',gap:y.SPACING.sm,paddingVertical:y.SPACING.sm,paddingHorizontal:y.SPACING.md,borderRadius:y.RADIUS.md},popoverDivider:{height:1,marginVertical:y.SPACING.xs/2,marginHorizontal:y.SPACING.sm},handle:{position:'absolute',bottom:y.SPACING.lg,alignSelf:'center',width:56,height:28,borderRadius:y.RADIUS.xl,borderWidth:1,alignItems:'center',justifyContent:'center',shadowColor:'#000',shadowOpacity:.4,shadowRadius:8,shadowOffset:{width:0,height:2},elevation:6},title:{fontSize:13,fontWeight:'600',maxWidth:100,paddingHorizontal:y.SPACING.xs},sep:{width:1,height:20,marginHorizontal:2},btn:{flexDirection:'row',alignItems:'center',gap:2,paddingHorizontal:y.SPACING.sm,paddingVertical:y.SPACING.sm,borderRadius:y.RADIUS.lg},badge:{fontSize:11,fontWeight:'700'}})},3408,[15,17,20,112,252,147,33,277,786,813,2587,3409,3411,2589,10]);
|
|
15830
15830
|
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.Tooltip=function(e){const o=(0,t.c)(5),{label:n,children:l}=e;let c;o[2]!==l||o[3]!==n?(c=(0,b.jsx)(_,{label:n,children:l}),o[2]=l,o[3]=n,o[4]=c):c=o[4];return c};var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),c=e(r(d[4]));r(d[5]);var u=e(r(d[6])),s=r(d[7]),f=r(d[8]),h=r(d[9]),b=r(d[10]);function _(e){const u=(0,t.c)(14),{label:f,children:_}=e,{colors:y}=(0,s.useTheme)(),[S,T]=(0,o.useState)(!1),[v,O]=(0,o.useState)(0),[x,w]=(0,o.useState)(0),I=(0,o.useRef)(null);let L,E,P;u[0]===Symbol.for("react.memo_cache_sentinel")?(L=()=>()=>{I.current&&clearTimeout(I.current)},E=[],u[0]=L,u[1]=E):(L=u[0],E=u[1]),(0,o.useEffect)(L,E),u[2]===Symbol.for("react.memo_cache_sentinel")?(P=()=>{I.current&&clearTimeout(I.current),I.current=setTimeout(()=>T(!0),h.TOOLTIP_SHOW_DELAY_MS)},u[2]=P):P=u[2];const j=P;let A;u[3]===Symbol.for("react.memo_cache_sentinel")?(A=()=>{I.current&&clearTimeout(I.current),T(!1)},u[3]=A):A=u[3];const C=A;let H,R,z;return u[4]===Symbol.for("react.memo_cache_sentinel")?(H=e=>O(e.nativeEvent.layout.width),u[4]=H):H=u[4],u[5]!==v||u[6]!==y||u[7]!==f||u[8]!==x||u[9]!==S?(R=S?(0,b.jsx)(n.default,{pointerEvents:"none",onLayout:e=>w(e.nativeEvent.layout.width),style:[p.tip,{backgroundColor:y.backgroundElevated,borderColor:y.border,left:(0,h.tooltipLeftOffset)(v,x),opacity:x>0?1:0}],children:(0,b.jsx)(l.default,{style:[p.tipText,{color:y.foreground}],numberOfLines:1,children:f})}):null,u[5]=v,u[6]=y,u[7]=f,u[8]=x,u[9]=S,u[10]=R):R=u[10],u[11]!==_||u[12]!==R?(z=(0,b.jsxs)(c.default,{accessible:!1,onHoverIn:j,onHoverOut:C,onLayout:H,children:[_,R]}),u[11]=_,u[12]=R,u[13]=z):z=u[13],z}const p=u.default.create({tip:{position:'absolute',bottom:'100%',marginBottom:h.TOOLTIP_GAP,paddingHorizontal:f.SPACING.md,paddingVertical:f.SPACING.xs,borderRadius:f.RADIUS.md,borderWidth:1,zIndex:100,shadowColor:'#000',shadowOpacity:.35,shadowRadius:6,shadowOffset:{width:0,height:2}},tipText:{fontSize:12,fontWeight:'500'}})},3409,[15,17,20,112,252,136,33,2587,2589,3410,10]);
|
|
15831
15831
|
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TOOLTIP_SHOW_DELAY_MS",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"TOOLTIP_GAP",{enumerable:!0,get:function(){return n}}),e.tooltipLeftOffset=function(t,n){return Math.round((t-n)/2)};const t=400,n=6},3410,[]);
|
|
15832
|
-
__d(function(g,r,i,a,m,
|
|
15833
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),
|
|
15834
|
-
__d(function(g,r,i,a,m,
|
|
15835
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),
|
|
15836
|
-
__d(function(g,r,_i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return H}});var t=r(_d[0]),n=e(t),l=e(r(_d[1])),i=r(_d[2]),o=r(_d[3]),u=e(o),s=e(r(_d[4])),c=r(_d[5]),d=e(r(_d[6])),v=e(r(_d[7])),_=e(r(_d[8])),f=r(_d[9]),h=e(f),S=r(_d[10]),b=e(S),D=e(r(_d[11])),p=r(_d[12]),A=r(_d[13]),O=e(r(_d[14])),x=r(_d[15]);function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},I.apply(this,arguments)}const w=u.default.createAnimatedComponent(i.FlatList),J={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs1(){const{isTouchActiveNative}=this.__closure;return isTouchActiveNative.value;}"},C={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs2(cur,prev){const{touchTranslate,activeIndexAnim,disabled,runOnJS,onRelease,onDragEnd,spacerIndexAnim}=this.__closure;if(cur!==prev&&!cur){const hasMoved=!!touchTranslate.value;if(!hasMoved&&activeIndexAnim.value>=0&&!disabled.value){runOnJS(onRelease)(activeIndexAnim.value);runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});}}}"},E={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs3(){const{spacerIndexAnim}=this.__closure;return spacerIndexAnim.value;}"},k={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs4(cur,prev){const{runOnJS,onPlaceholderIndexChange}=this.__closure;if(prev!==null&&cur!==prev&&cur>=0&&prev>=0){runOnJS(onPlaceholderIndexChange)(cur);}}"},T={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs5(){const{runOnJS,onContainerTouchEnd}=this.__closure;runOnJS(onContainerTouchEnd)();}"},R={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs6(){const{runOnJS,onContainerTouchStart}=this.__closure;runOnJS(onContainerTouchStart)();}"},y={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs7(evt){const{gestureDisabled,isTouchActiveNative,horizontalAnim,touchTranslate,autoScrollDistance,panGestureState,activeIndexAnim,disabled,runOnJS,onRelease,placeholderOffset,activeCellOffset,withSpring,animationConfigRef,onDragEnd,spacerIndexAnim}=this.__closure;if(gestureDisabled.value)return;isTouchActiveNative.value=false;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation+autoScrollDistance.value;panGestureState.value=evt.state;if(activeIndexAnim.value===-1||disabled.value)return;disabled.value=true;runOnJS(onRelease)(activeIndexAnim.value);const springTo=placeholderOffset.value-activeCellOffset.value;touchTranslate.value=withSpring(springTo,animationConfigRef.value,function(){runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;});}"},z={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs8(evt){const{gestureDisabled,panGestureState,horizontalAnim,touchTranslate}=this.__closure;if(gestureDisabled.value)return;panGestureState.value=evt.state;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation;}"},F={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs9(evt){const{gestureDisabled,disabled,panGestureState}=this.__closure;gestureDisabled.value=disabled.value;if(gestureDisabled.value)return;panGestureState.value=evt.state;}"},L={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs10(){const{runOnJS,onDragEnd,activeIndexAnim,spacerIndexAnim,disabled}=this.__closure;runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;}"},N={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs11(evt){const{scrollOffset,horizontalAnim,runOnJS,onScroll}=this.__closure;scrollOffset.value=horizontalAnim.value?evt.contentOffset.x:evt.contentOffset.y;runOnJS(onScroll)(scrollOffset.value);}"};function P(e,t){return n.default.createElement(_.default,e,n.default.createElement(h.default,null,n.default.createElement(b.default,{flatListRef:t},n.default.createElement(G,e))))}const G=(0,x.typedMemo)(function(e){const{cellDataRef:_,containerRef:h,flatlistRef:b,keyToIndexRef:x,propsRef:P,animationConfigRef:G}=(0,S.useRefs)(),{activeCellOffset:H,activeCellSize:M,activeIndexAnim:V,containerSize:j,scrollOffset:Y,scrollViewSize:U,spacerIndexAnim:X,horizontalAnim:K,placeholderOffset:B,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,isTouchActiveNative:Z,viewableIndexMin:$,viewableIndexMax:ee,disabled:te}=(0,f.useAnimatedValues)(),ae=(0,A.useStableCallback)(()=>{V.value=-1,X.value=-1,q.value=0,M.value=-1,H.value=-1,oe(null)}),{dragHitSlop:ne=c.DEFAULT_PROPS.dragHitSlop,scrollEnabled:le=c.DEFAULT_PROPS.scrollEnabled,activationDistance:re=c.DEFAULT_PROPS.activationDistance}=e;let[ie,oe]=(0,t.useState)(null);const[ue,se]=(0,t.useState)(!P.current.enableLayoutAnimationExperimental),ce=(0,A.useStableCallback)((t,n)=>{if(!e.keyExtractor)throw new Error("You must provide a keyExtractor to DraggableFlatList");return e.keyExtractor(t,n)}),de=(0,t.useRef)(e.data),ve=de.current.map(ce).join("")!==e.data.map(ce).join("");de.current=e.data,ve&&(ie=null,l.default.runAfterInteractions(()=>{ae()})),(0,t.useEffect)(()=>{P.current.enableLayoutAnimationExperimental&&(ie?se(!0):setTimeout(()=>{se(!1)},100))},[ie]),(0,t.useLayoutEffect)(()=>{e.data.forEach((e,t)=>{const n=ce(e,t);x.current.set(n,t)})},[e.data,ce,x]);const fe=(0,A.useStableCallback)(e=>{if(te.value)return;const t=x.current.get(e),n=_.current.get(e);n&&(H.value=n.measurements.offset,M.value=n.measurements.size);const{onDragBegin:l}=P.current;void 0!==t&&(X.value=t,V.value=t,oe(e),null==l||l(t))}),he=(0,t.useMemo)(()=>({activeKey:ie,extraData:e.extraData}),[ie,e.extraData]),me=(0,t.useCallback)(t=>{let{item:l,index:i}=t;const o=ce(l,i);return i!==x.current.get(o)&&x.current.set(o,i),n.default.createElement(v.default,{item:l,itemKey:o,renderItem:e.renderItem,drag:fe,extraData:e.extraData})},[e.renderItem,e.extraData,fe,ce]),ge=(0,A.useStableCallback)(t=>{var n;null===(n=e.onRelease)||void 0===n||n.call(e,t)}),Se=(0,A.useStableCallback)(t=>{let{from:n,to:l}=t;const{onDragEnd:i,data:o}=e,u=[...o];n!==l&&(u.splice(n,1),u.splice(l,0,o[n])),null==i||i({from:n,to:l,data:u}),oe(null)}),be=(0,A.useStableCallback)(t=>{var n;null===(n=e.onPlaceholderIndexChange)||void 0===n||n.call(e,t)});(0,o.useAnimatedReaction)((function({_worklet_12667785060637_init_data:e,isTouchActiveNative:t}){const n=function(){return t.value};return n.__closure={isTouchActiveNative:t},n.__workletHash=0xb8572d4211d,n.__initData=e,n})({_worklet_12667785060637_init_data:J,isTouchActiveNative:Z}),(function({_worklet_3017769988260_init_data:e,touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s}){const c=function(e,c){if(e!==c&&!e){!!!t.value&&n.value>=0&&!l.value&&(i(o)(n.value),i(u)({from:n.value,to:s.value}))}};return c.__closure={touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s},c.__workletHash=3017769988260,c.__initData=e,c})({_worklet_3017769988260_init_data:C,touchTranslate:q,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,onDragEnd:Se,spacerIndexAnim:X}),[Z,Se,ge]),(0,o.useAnimatedReaction)((function({_worklet_6176791664127_init_data:e,spacerIndexAnim:t}){const n=function(){return t.value};return n.__closure={spacerIndexAnim:t},n.__workletHash=6176791664127,n.__initData=e,n})({_worklet_6176791664127_init_data:E,spacerIndexAnim:X}),(function({_worklet_2590604232580_init_data:e,runOnJS:t,onPlaceholderIndexChange:n}){const l=function(e,l){null!==l&&e!==l&&e>=0&&l>=0&&t(n)(e)};return l.__closure={runOnJS:t,onPlaceholderIndexChange:n},l.__workletHash=2590604232580,l.__initData=e,l})({_worklet_2590604232580_init_data:k,runOnJS:o.runOnJS,onPlaceholderIndexChange:be}),[X]);const De=(0,o.useSharedValue)(!1),pe=i.Gesture.Pan().onBegin((function({_worklet_7787583163440_init_data:e,gestureDisabled:t,disabled:n,panGestureState:l}){const i=function(e){t.value=n.value,t.value||(l.value=e.state)};return i.__closure={gestureDisabled:t,disabled:n,panGestureState:l},i.__workletHash=7787583163440,i.__initData=e,i})({_worklet_7787583163440_init_data:F,gestureDisabled:De,disabled:te,panGestureState:W})).onUpdate((function({_worklet_11677334153389_init_data:e,gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i}){const o=function(e){if(t.value)return;n.value=e.state;const o=l.value?e.translationX:e.translationY;i.value=o};return o.__closure={gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i},o.__workletHash=0xa9ed75aa8ad,o.__initData=e,o})({_worklet_11677334153389_init_data:z,gestureDisabled:De,panGestureState:W,horizontalAnim:K,touchTranslate:q})).onEnd((function({_worklet_13600115403067_init_data:e,gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D}){const p=function(e){if(t.value)return;n.value=!1;const p=l.value?e.translationX:e.translationY;if(i.value=p+o.value,u.value=e.state,-1===s.value||c.value)return;c.value=!0,d(v)(s.value);const A=_.value-f.value;i.value=h(A,S.value,(function({_worklet_9458151985595_init_data:e,runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o}){const u=function(){t(n)({from:l.value,to:i.value}),o.value=!1};return u.__closure={runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o},u.__workletHash=9458151985595,u.__initData=e,u})({_worklet_9458151985595_init_data:L,runOnJS:d,onDragEnd:b,activeIndexAnim:s,spacerIndexAnim:D,disabled:c}))};return p.__closure={gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D},p.__workletHash=0xc5e860c293b,p.__initData=e,p})({_worklet_13600115403067_init_data:y,gestureDisabled:De,isTouchActiveNative:Z,horizontalAnim:K,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,placeholderOffset:B,activeCellOffset:H,withSpring:o.withSpring,animationConfigRef:G,onDragEnd:Se,spacerIndexAnim:X})).onTouchesDown((function({_worklet_2544844199545_init_data:e,runOnJS:t,onContainerTouchStart:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchStart:n},l.__workletHash=2544844199545,l.__initData=e,l})({_worklet_2544844199545_init_data:R,runOnJS:o.runOnJS,onContainerTouchStart:()=>(te.value||(Z.value=!0),!1)})).onTouchesUp((function({_worklet_8529291078106_init_data:e,runOnJS:t,onContainerTouchEnd:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchEnd:n},l.__workletHash=8529291078106,l.__initData=e,l})({_worklet_8529291078106_init_data:T,runOnJS:o.runOnJS,onContainerTouchEnd:()=>{Z.value=!1}}));if(ne&&pe.hitSlop(ne),re){const t=[-re,re];e.horizontal?pe.activeOffsetX(t):pe.activeOffsetY(t)}const Ae=(0,A.useStableCallback)(t=>{var n;null===(n=e.onScrollOffsetChange)||void 0===n||n.call(e,t)}),Oe=(0,o.useAnimatedScrollHandler)({onScroll:(function({_worklet_11729156081231_init_data:e,scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i}){const o=function(e){t.value=n.value?e.contentOffset.x:e.contentOffset.y,l(i)(t.value)};return o.__closure={scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i},o.__workletHash=0xaaae82e864f,o.__initData=e,o})({_worklet_11729156081231_init_data:N,scrollOffset:Y,horizontalAnim:K,runOnJS:o.runOnJS,onScroll:Ae})},[K]);(0,p.useAutoScroll)();const xe=(0,A.useStableCallback)(t=>{var n;const l=t.viewableItems.filter(e=>e.isViewable).map(e=>e.index).filter(e=>"number"==typeof e),i=Math.min(...l),o=Math.max(...l);$.value=i,ee.value=o,null===(n=e.onViewableItemsChanged)||void 0===n||n.call(e,t)});return n.default.createElement(D.default,{activeKey:ie,keyExtractor:ce,horizontal:!!e.horizontal,layoutAnimationDisabled:ue},n.default.createElement(i.GestureDetector,{gesture:pe},n.default.createElement(u.default.View,{style:e.containerStyle,ref:h,onLayout:t=>{var n;let{nativeEvent:{layout:l}}=t;const{width:i,height:o}=l;j.value=e.horizontal?i:o,null===(n=e.onContainerLayout)||void 0===n||n.call(e,{layout:l,containerRef:h})}},e.renderPlaceholder&&n.default.createElement(d.default,{renderPlaceholder:e.renderPlaceholder}),n.default.createElement(w,I({},e,{data:e.data,onViewableItemsChanged:xe,CellRendererComponent:s.default,ref:b,onContentSizeChange:(t,n)=>{var l;U.value=e.horizontal?t:n,null===(l=e.onContentSizeChange)||void 0===l||l.call(e,t,n)},scrollEnabled:!ie&&le,renderItem:me,extraData:he,keyExtractor:ce,onScroll:Oe,scrollEventThrottle:16,simultaneousHandlers:e.simultaneousHandlers,removeClippedSubviews:!1})),!!e.onScrollOffsetChange&&n.default.createElement(O.default,{onScrollOffsetChange:e.onScrollOffsetChange,scrollOffset:Y}))))});var H=n.default.forwardRef(P)},3415,[17,155,2864,2952,3416,3418,3426,3427,3421,3420,3422,3417,3428,3425,3429,3423]);
|
|
15837
|
-
__d(function(g,r,_i,a,m,_e,d){"use strict";const t=["item","index","onLayout","children"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return R}});var n=e(r(d[0])),o=r(d[1]),i=e(o),l=e(r(d[2])),s=r(d[3]),u=e(s),c=r(d[4]),f=r(d[5]),_=r(d[6]),h=r(d[7]),y=r(d[8]),C=r(d[9]),b=e(r(d[10])),v=r(d[11]);function L(){return L=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},L.apply(this,arguments)}const A={code:"function reactNativeDraggableFlatlist_CellRendererComponentJs1(){const{translate,isWeb,heldTanslate,activeKey,horizontalAnim}=this.__closure;if(translate.value&&!isWeb){heldTanslate.value=translate.value;}const t=activeKey?translate.value:heldTanslate.value;return{transform:[horizontalAnim.value?{translateX:t}:{translateY:t}]};}"},D={code:"function reactNativeDraggableFlatlist_CellRendererComponentJs2(t,_layoutDisabled){const{stashConfig,getStashedConfig}=this.__closure;if(!t)return;const config=global.LayoutAnimationRepository.configs[t];if(config)stashConfig(t,config);const stashedConfig=getStashedConfig(t);if(_layoutDisabled){global.LayoutAnimationRepository.removeConfig(t);}else if(stashedConfig){global.LayoutAnimationRepository.registerConfig(t,stashedConfig);}}"};var R=(0,h.typedMemo)(function(e){const{item:h,index:R,onLayout:F,children:k}=e,w=(0,n.default)(e,t),N=(0,o.useRef)(null),{cellDataRef:x,propsRef:z,containerRef:E}=(0,y.useRefs)(),{horizontalAnim:O,scrollOffset:W}=(0,C.useAnimatedValues)(),{activeKey:T,keyExtractor:K,horizontal:H,layoutAnimationDisabled:J}=(0,c.useDraggableFlatListContext)(),V=K(h,R),j=(0,s.useSharedValue)(-1),I=(0,s.useSharedValue)(-1),M=(0,s.useSharedValue)(0),P=(0,_.useCellTranslate)({cellOffset:j,cellSize:I,cellIndex:R}),U=T===V,X=(0,s.useAnimatedStyle)((function({_worklet_9493151677458_init_data:t,translate:e,isWeb:n,heldTanslate:o,activeKey:i,horizontalAnim:l}){const s=function(){e.value&&!n&&(o.value=e.value);const t=i?e.value:o.value;return{transform:[l.value?{translateX:t}:{translateY:t}]}};return s.__closure={translate:e,isWeb:n,heldTanslate:o,activeKey:i,horizontalAnim:l},s.__workletHash=9493151677458,s.__initData=t,s})({_worklet_9493151677458_init_data:A,translate:P,isWeb:f.isWeb,heldTanslate:M,activeKey:T,horizontalAnim:O}),[P,T]),Y=(0,v.useStableCallback)(()=>{const t=(t,e,n,o)=>{f.isWeb&&H&&(t+=W.value);const i=H?t:e,l=H?n:o;x.current.set(V,{measurements:{size:l,offset:i}}),I.value=l,j.value=i},e=()=>{var t;null!==(t=z.current)&&void 0!==t&&t.debug&&console.log(`## on measure fail, index: ${R}`)},n=E.current,o=N.current,i=n;o&&i&&o.measureLayout(i,t,e)}),q=(0,v.useStableCallback)(t=>{M.value=0,Y(),F&&t&&F(t)});(0,o.useEffect)(()=>{f.isWeb&&requestAnimationFrame(()=>{q()})},[R,q]);const $=(0,o.useMemo)(()=>({elevation:U?1:0,zIndex:U?999:0,flexDirection:H?"row":"column"}),[U,H]),{itemEnteringAnimation:B,itemExitingAnimation:G,itemLayoutAnimation:Q}=z.current;return(0,o.useEffect)(()=>{if(!z.current.enableLayoutAnimationExperimental)return;const t=(0,l.default)(N.current);(0,s.runOnUI)((function({_worklet_10702969925975_init_data:t,stashConfig:e,getStashedConfig:n}){const o=function(t,o){if(!t)return;const i=g.LayoutAnimationRepository.configs[t];i&&e(t,i);const l=n(t);o?g.LayoutAnimationRepository.removeConfig(t):l&&g.LayoutAnimationRepository.registerConfig(t,l)};return o.__closure={stashConfig:e,getStashedConfig:n},o.__workletHash=0x9bbfab87157,o.__initData=t,o})({_worklet_10702969925975_init_data:D,stashConfig:S,getStashedConfig:p}))(t,J)},[J]),i.default.createElement(u.default.View,L({},w,{ref:N,onLayout:q,entering:B,exiting:G,layout:z.current.enableLayoutAnimationExperimental?Q:void 0,style:[e.style,$,X],pointerEvents:T?"none":"auto"}),i.default.createElement(b.default,{isActive:U},k))});(0,s.runOnUI)((function({_worklet_4071045011151_init_data:t}){const e=function(){g.RNDFLLayoutAnimationConfigStash={}};return e.__closure={},e.__workletHash=4071045011151,e.__initData=t,e})({_worklet_4071045011151_init_data:{code:"function reactNativeDraggableFlatlist_CellRendererComponentJs3(){global.RNDFLLayoutAnimationConfigStash={};}"}}))();const S=(function({_worklet_17335747121283_init_data:t}){const e=function(t,e){g.RNDFLLayoutAnimationConfigStash||(g.RNDFLLayoutAnimationConfigStash={}),g.RNDFLLayoutAnimationConfigStash[t]=e};return e.__closure={},e.__workletHash=0xfc44b0c9083,e.__initData=t,e})({_worklet_17335747121283_init_data:{code:"function stashConfig_reactNativeDraggableFlatlist_CellRendererComponentJs4(tag,config){if(!global.RNDFLLayoutAnimationConfigStash)global.RNDFLLayoutAnimationConfigStash={};global.RNDFLLayoutAnimationConfigStash[tag]=config;}"}}),p=(function({_worklet_1208922414792_init_data:t}){const e=function(t){return g.RNDFLLayoutAnimationConfigStash?g.RNDFLLayoutAnimationConfigStash[t]:null};return e.__closure={},e.__workletHash=1208922414792,e.__initData=t,e})({_worklet_1208922414792_init_data:{code:"function getStashedConfig_reactNativeDraggableFlatlist_CellRendererComponentJs5(tag){if(!global.RNDFLLayoutAnimationConfigStash)return null;return global.RNDFLLayoutAnimationConfigStash[tag];}"}})},3416,[120,17,122,2952,3417,3418,3419,3423,3422,3420,3424,3425]);
|
|
15838
|
-
__d(function(g,r,
|
|
15839
|
-
__d(function(g,r,i,a,m,
|
|
15840
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),
|
|
15841
|
-
__d(function(g,r,i,a,m,
|
|
15842
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";
|
|
15843
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),_e.
|
|
15844
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"
|
|
15845
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"
|
|
15846
|
-
__d(function(g,r,i,a,m,
|
|
15847
|
-
__d(function(g,r,i,a,m,
|
|
15848
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";
|
|
15849
|
-
__d(function(g,r,i,a,m,
|
|
15850
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),
|
|
15851
|
-
__d(function(g,r,i,a,m,
|
|
15852
|
-
__d(function(g,r,i,a,m,
|
|
15853
|
-
__d(function(g,r,
|
|
15854
|
-
__d(function(g,r,
|
|
15855
|
-
__d(function(g,r,i,a,m,
|
|
15856
|
-
__d(function(g,r,
|
|
15857
|
-
__d(function(g,r,
|
|
15858
|
-
__d(function(g,r,i,a,m,e,d){
|
|
15859
|
-
__d(function(g,r,i,a,m,
|
|
15860
|
-
__d(function(e,t,i,a,o,r,n){o.exports={devices:{editDevice:"Edit device",originalName:"Original name",customName:"Custom name",customNamePlaceholder:"Leave empty to use original",icon:"Icon",typeLight:"Light",typeSwitch:"Switch",typeCover:"Cover",typeLock:"Lock",typeAlarm:"Alarm",typeButton:"Button",typeSelect:"Select",typeSiren:"Siren",typeSensor:"Sensor",typeEntry:"Entry",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Run",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Mute",unmute:"Unmute",stop:"Stop",locked:"Locked",unlocked:"Unlocked",open:"Open",closed:"Closed",disarmed:"Disarmed",disarm:"Disarm"},common:{error:"Error",save:"Save",cancel:"Cancel",loading:"Loading...",comingSoon:"Coming soon",back:"Back",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",reset:"Reset",selectAll:"Select all",deselectAll:"Deselect all",delete:"Delete",retry:"Retry"},grids:{newGrid:"New grid",deleteConfirm:"Delete this grid?",noGrids:"No grids yet. Create one to arrange cameras in a mosaic view.",createGrid:"Create grid",cameras:"cameras",notFound:"Grid not found.",noCameras:"No cameras in this grid. Edit the grid to add some.",edit:"Edit",addCamera:"Add camera",presets:"Presets",auto:"Auto",manual:"Manual",gridName:"Grid name",view:"View",addCameraHint:"Add at least one camera from the button above.",allCamerasAdded:"All cameras already in grid",cameraUnavailable:"Camera unavailable",camerasInGrid:"Cameras in grid",addAll:"Add all",addCameras:"Add Cameras",backToGrid:"Back to Grid",timelineNotSupported:"Timeline not supported"},nav:{cameras:"Cameras",grids:"Grids",events:"Events",videoclips:"Videoclips",list:"List",settings:"Settings"},cameras:{addCamera:"Add camera",pipActive:"PiP active",reorderEnable:"Reorder",reorderDisable:"Unlock",live:"Live",noCameras:"No cameras configured",noIntegrations:"No integrations configured. Add a system to get started.",createSystem:"Create system",importFrom:"Import cameras from",importSuccess:"Import complete",importCount:"{{count}} cameras imported",selectCamerasToImport:"Select cameras to import",selectAll:"Select all",deselectAll:"Deselect all",importSelected:"Import {{count}} selected",noCamerasFound:"No cameras found",play:"\u25b6 Play",paused:"Paused",noDataForDate:"No data for this date",recordingNotAvailable:"Recording not available",noEventsReel:"No recent events",settings:"Settings",highlightMotion:"Motion Highlight",highlightOnMotion:"Highlight on motion",highlightAudio:"Audio Highlight",audioMode:"Mode",audioModeOff:"Off",audioModeSensor:"Sensor",audioModeLevel:"Level",audioPreset:"Audio Preset",audioPresetCustom:"Custom",audioPresetCrying:"Crying / baby",audioPresetAlarm:"Alarm / siren",audioPresetDog:"Dog barking",audioPresetDoorbell:"Doorbell / knock",audioPresetGlass:"Glass break",audioWindow:"Window (s)",audioThreshold:"Threshold (dB)",audioHitPercentage:"Hit (%)",audioHoldSeconds:"Hold (s)",highlightDetection:"Object Detection Highlight",highlightOnDetection:"Highlight on detection",detectionClasses:"Classes",holdSeconds:"Hold (s)",rtspNotSupportedWeb:"RTSP streams are not supported on web. Use the mobile app.",liveDetections:"Live detections",filterTimeline:"Filter timeline",filterClasses:"Filter classes...",filterBySeverity:"Filter by severity",severityAlert:"Alert",severityDetection:"Detection",statusPosition:"Status Indicators Position",today:"Today",yesterday:"Yesterday",timeline:"Timeline",timelineEventsClusterEvents:"Events",selectDate:"Select a date",videoclipsNotSupported:"Videoclips not supported for this camera",noVideoclipsForDate:"No videoclips for this date",endOfList:"End of list",backToLive:"Back to live",goLive:"Go live",loadingClip:"Loading clip...",clusterDetailShowBbox:"Show bounding box on image",clusterDetailOpenVideoclip:"Open videoclip",clusterDetailLoadingEvents:"Loading events...",devices:"Devices",noAssociatedDevices:"No devices linked. Configure in Settings > Cameras.",timelineData:"Timeline data",timelineDataHint:"What to show on the timeline.",timelineDataVideoclips:"Videoclips",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Events",timelineEvents:"Timeline events",timelineEventsHint:"Which event types to show on the timeline, by severity.",timelinePresetAll:"All",timelinePresetImportant:"Important",timelinePresetCritical:"Critical",timelinePresetCustom:"Custom",statusBlock:"Status Block",sensorsBlock:"Sensors Block",position:"Position",indicators:"Indicators",downloadSnapshot:"Download Snapshot",exportDownloadClip:"Download Clip",exportRecordingWebOnly:"Recording export (web only)",exportSnapshot:"Export Snapshot",intercomError:"Intercom error",multiCam:"Multi-Camera",ptzNotSupported:"PTZ not supported",ptzSelectPreset:"Select PTZ Preset",snapshotFailed:"Snapshot failed"},events:{loading:"Loading events...",filterByLabel:"Filter by label",filterByLabelPlaceholder:"e.g. person, doorbell",filterByCamera:"Filter by camera",date:"Date",detectionTypes:"Detection types",source:"Source",cameras:"Cameras",groupingRange:"Grouping",groupingPresetMinutes:"{{m}} min",groupingCustom:"Custom",groupingCustomMinutes:"Minutes",groupingCustomApply:"Apply",today:"Today",noCamerasFromConfig:"Cameras loaded from EventsApp config",all:"All",typesCount:"{{count}} types",camerasCount:"{{count}} cameras",cols:"cols",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"VideoClips API",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Person",detectionVehicle:"Vehicle",detectionAnimal:"Animal",detectionAudio:"Audio",detectionFace:"Face",detectionPlate:"Plate",detectionPackage:"Package",detectionDoorbell:"Doorbell",detectionSensor:"Sensor",detectionMotion:"Motion",detectionRules:"Rules",noScryptedIntegration:"Add a Scrypted integration in Settings to view events.",frigateNoEvents:"Events are only available for Scrypted. Select a Scrypted instance in Settings.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading events",noEvents:"No events for this date. Try changing the date or filters.",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear",columnsPerRow:"Columns per row",onlyWithClips:"Only with clips",relatedClip:"Related Clip"},videoclips:{loading:"Loading videoclips...",noCamerasFromConfig:"Cameras loaded from config",noScryptedIntegration:"Add a Scrypted integration in Settings to view videoclips.",noFrigateIntegration:"Select a Frigate integration in Settings to view videoclips.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading videoclips",noVideoclips:"No videoclips for this date. Try changing the date or filters.",openVideoclip:"Open videoclip",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear"},settings:{integrations:"Integrations",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Name",baseUrl:"Base URL",urlLocal:"Local URL",urlPublic:"Public URL",username:"Username",password:"Password",token:"Token (optional)",frigateTokenHint:"Token (optional): JWT from browser",tokenRequired:"Token",testConnection:"Test connection",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connection successful",connectionError:"Connection failed",scryptedCredentialsPromptTitle:"Scrypted login",scryptedCredentialsPromptSubtitle:"Enter your Scrypted username and password to connect.",scryptedCredentialsPromptSkip:"Skip for now",usernamePlaceholder:"admin",save:"Save",tabStream:"Stream & playback",tabGeneral:"General",data:"Data",clearCacheEventsClips:"Clear events & videoclips cache",eventsClipsSourceHint:"Source for Events and Videoclips tabs.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Choose which integrations to use for the reel.",reelScryptedSourceHint:"When using Scrypted: event source for reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Add a Scrypted or Frigate integration first.",exportBackup:"Export backup",exportError:"Export failed",importBackup:"Import backup",importConfirm:"This will replace all cameras, integrations and settings with the backup data. Continue?",importSuccess:"Backup restored successfully",importError:"Import failed",uiPrototypes:"UI Prototypes",uiPrototypesHint:"Explore experimental timeline designs",versions:"Versions",appVersion:"App",nativeVersion:"Native",updateNow:"Update now",updateError:"Update failed",updateAvailableTitle:"Update Available",updateAvailableMessage:"A new version of CamStack has been downloaded and is ready to install. The app will restart to apply the update.",updateInstall:"Install & Restart",updateLater:"Later",tabIntegrations:"Integrations",tabCameras:"Camera settings",theme:"Theme",themeSystem:"System",themeLight:"Light",themeDark:"Dark",language:"Language",languageSystem:"System",languageEn:"English",languageIt:"Italiano",timelineMode:"Timeline Mode",timelineModeClassic:"Classic",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Show detection timeline",timelineVisibleDescription:"Display the detection timeline panel in the camera view.",clusterSize:"Cluster card size",snapshotInterval:"Snapshot refresh interval",clusterSizeXS:"XS",clusterSizeS:"S",clusterSizeM:"M",clusterSizeL:"L",clusterSizeXL:"XL",highlightAppearance:"Highlight appearance",highlightAppearanceHint:"Color and border thickness for motion, audio, and detection highlights on camera streams.",highlightMotion:"Motion",highlightAudio:"Audio",highlightDetection:"Detection",highlightColor:"Color",highlightThickness:"Thickness",selectSection:"Select section",addSystem:"Add system",selectPlatform:"Select platform",deleteInstance:"Delete instance",deleteInstanceConfirm:"Are you sure you want to delete this instance?",delete:"Delete",mqttEvents:"MQTT - Real-time events",mqttBrokerUrl:"MQTT broker URL",mqttUsername:"MQTT username",mqttPassword:"MQTT password",mqttTopicPrefix:"Topic prefix (default: frigate)",mqttOptional:"Optional",scryptedAddressAlreadyUsed:"This Scrypted address is already configured. Only one instance per address is allowed.",scryptedAdvancedNotifierRequired:"The Advanced Notifier plugin is required for the connection.",scryptedCorsTitle:"CORS configuration required (Web)",scryptedCorsBody:"In Scrypted, open the Cloud plugin settings and add your domain ({{domain}}) to the CORS Allowed Origins list. Without this, the browser will block requests to your Scrypted server.",scryptedUrlHint:"Local URL is tried first (e.g. on LAN), then public URL. At least one required.",gridLayout:"Grid layout",gridLayoutHint:"Display options for the cameras grid.",gridColumns:"Grid columns",gridColumnsHint:"Number of cameras per row. Auto = 1 on mobile, 4 on tablet.",gridShowName:"Show camera name",gridShowState:"Show state (battery, recording, sleeping)",reorderCameras:"Reorder cameras",reorderCamerasHint:"Drag to reorder cameras",reorderDone:"Done",manageCameras:"Manage cameras",manageCamerasHint:"Remove cameras from the app.",downloadSnapshot:"Download snapshot",snapshotFailed:"Could not fetch snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Download clip",exportStartRecording:"Start recording",exportStopRecording:"Stop recording",exportRecordingWebOnly:"Recording available on web",intercomError:"Intercom unavailable. Check camera credentials in Scrypted.",deleteCamera:"Remove camera",deleteCameraConfirm:"Remove {{name}} from the app?",streamPlayback:"Stream & playback",playOnOpen:"Start stream when opening camera",playOnOpenHint:"Automatically load the live stream when you open a camera.",audioOnOpen:"Unmute audio when opening",audioOnOpenHint:"Play audio when opening a camera (if supported).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Restart stream when no data received (helps with stalled connections).",cameraPlayer:"Camera player",webViewCameraDetail:"Use WebView player",webViewCameraDetailHint:"Use WebView for Scrypted cameras (faster first frame, more stable). PiP, fullscreen and intercom work. Default: native player.",streamQuality:"Stream quality",streamQualitySingle:"Single camera quality",streamQualityGrid:"Grid quality",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Associated devices",associatedDevicesHint:"Add actuators (lights, switches, covers, etc.) to control from the camera view.",linkedDevices:"Linked",reorderHint:"Use arrows to reorder",addDevice:"Add device",noEligibleDevices:"No Scrypted or Home Assistant configured. Add an integration first.",configureDevices:"Configure devices",cameraSettingsHint:"Choose a camera to configure its specific options.",noCamerasConfigured:"No cameras configured.",searchDevices:"Search devices...",source:"Source",type:"Type",all:"All",noMatchingDevices:"No devices match the filters.",frigateStream:"Frigate Stream",frigateStreamSourceHint:"Stream source: WebRTC (default), RTSP, or MJPEG.",frigateStreamMapping:"Stream mapping (go2rtc names from config)",frigateStreamMappingHint:"Select from available go2rtc streams. Order: Main, Sub, Low.",frigateSelectStream:"Select stream",frigateAddStream:"Add stream",frigateInfo:"Camera info",frigateShowConfig:"Show config",frigateShowGo2rtc:"Show go2rtc",frigateMissingConfig:"Missing baseUrl or cameraName in camera config.",tabLogs:"Logs",logsCount:"{{count}} entries",logsDownload:"Download",logsClear:"Clear",logsEmpty:"No logs yet. Console output will appear here.",logsExportError:"Export failed",logsExportTitle:"Export logs",logsClearConfirmTitle:"Clear logs",logsClearConfirmMessage:"Remove all log entries?",hubAppearanceTitle:"Appearance",hubAppearanceDesc:"Theme, language, timeline and highlights",hubCamerasTitle:"Cameras",hubCamerasDesc:"Grid layout, stream quality and camera management",hubIntegrationsTitle:"Integrations",hubIntegrationsDesc:"Manage Scrypted, Frigate and other systems",hubAdvancedTitle:"Advanced",hubAdvancedDesc:"Data backup and cache management",hubLogsTitle:"Logs",hubLogsDesc:"View and export application logs",hubCacheTitle:"Cache",frigateAutoSnap:"Auto Snapshot",frigateSegmentNav:"Segment Navigation",frigateShowGo:"Show Go2RTC",frigateTimeline:"Timeline",reelCameras:"Reel Cameras",reelCamerasHint:"Select which cameras appear in the events reel",reelDeselectAll:"Deselect All",reelDetectionClasses:"Detection Classes",reelDetectionClassesHint:"Filter events by detection class",reelIncludeRuleArtifacts:"Include Rule Artifacts",reelIncludeRuleArtifactsHint:"Show rule-based events in the reel",reelRuleArtifacts:"Rule Artifacts",reelSelectAll:"Select All",reelBadgeContent:"Badge content",reelBadgePosition:"Badge position",reelBadgeSize:"Badge size",reelBadgeBoth:"Time + Class",reelBadgeTime:"Time only",reelBadgeClass:"Class only",reelBadgeNone:"Hidden",reelBadgeSmall:"Small",reelBadgeMedium:"Medium",reelBadgeLarge:"Large"},reel:{filterMotion:"Motion",filterOnlyRules:"Only rules",filterOnlySensors:"Only sensors",goToMostRecent:"Go to most recent"},v2:{common:{connecting:"Connecting\u2026",online:"Online",offline:"Offline",loadError:"Loading error",create:"Create"},cameras:{empty:"No cameras",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"Sleeping",unavailable:"Unavailable",motion:"Motion",snapshotLoading:"Loading\u2026",manage:"Manage cameras",manageHint:"Drag to reorder. Rename inline. Toggle to show or hide a camera from the list.",reorderHandle:"Drag to reorder"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Mute",unmute:"Unmute",snapshot:"Snapshot",snapshotFailed:"Could not capture a snapshot.",ptz:"PTZ controls",talk:"Talk",fullscreen:"Fullscreen",talkFailed:"Could not start talk-back. Check microphone access.",pip:"Picture in Picture",exitFullscreen:"Exit fullscreen",devices:"Devices",devicesEmpty:"No connected devices.",motionBoxes:"Motion boxes",close:"Close",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Create grid",empty:"No grids",emptyHint:"Tap + to create your first grid",countNone:"No cameras",countOne:"1 camera",countOther:"{{count}} cameras",defaultName:"New grid",deleteTitle:"Delete grid",deleteConfirm:"Delete \"{{name}}\"? This cannot be undone.",export:"Export",exportAllA11y:"Export all grids",shareA11y:"Share grid",editA11y:"Edit grid",deleteA11y:"Delete grid",linkCopied:"Grid link copied to clipboard",layoutAuto:"Auto",layoutColumns:"{{count}} cols"},gridView:{editA11y:"Edit grid",fallbackTitle:"Grid",notFound:"Grid not found",emptyGrid:"This grid is empty",addCameras:"Add cameras",reorderTitle:"Reorder cameras",reorderA11y:"Reorder cameras",reorderDoneA11y:"Done reordering",allHidden:"All cameras are hidden. Use reorder mode to show some.",dragA11y:"Drag to reorder",hideA11y:"Hide from grid",showA11y:"Show in grid",removeA11y:"Remove from grid"},gridBuilder:{title:"Edit grid",nameLabel:"Name",namePlaceholder:"Grid name",camerasSelected:"Cameras ({{count}} selected)",optionsTitle:"Options",showName:"Show camera name",export:"Export grid",orderSection:"In the grid",orderHint:"Drag to reorder",emptyOrder:"No cameras yet \u2014 add some below.",addSection:"Add cameras",removeA11y:"Remove from grid",addA11y:"Add to grid",highlightTitle:"Highlight",highlightMotion:"On motion",highlightAudio:"On audio",highlightAudioOff:"Off",highlightAudioSensor:"Presence",highlightAudioLevel:"Level",highlightThreshold:"Threshold",highlightHold:"Hold",highlightDetection:"On detection"},gridBar:{back:"Back",pauseAll:"Pause all",playAll:"Play all",audio:"Audio",quality:"Stream quality",layout:"Layout",highlight:"Highlight",activeOnly:"Active only",share:"Share grid",edit:"Edit grid",hide:"Hide controls",show:"Show controls",muteAll:"Mute all",unmuteAll:"Unmute all"},gridShare:{title:"Share \"{{name}}\"",quality:"Stream quality",layout:"Layout",showNames:"Show camera names",activeOnly:"Active cameras only",highlightEnable:"Highlight",audioSummary:"Audio starts on for {{count}} camera(s)",ttlTitle:"Link expires",ttl_1d:"1 day",ttl_7d:"7 days",ttl_30d:"30 days",ttl_never:"Forever",tokenNotice:"The link includes a view-only access token limited to these cameras. Anyone with the link can watch until it expires or is revoked.",copyLink:"Copy link",creating:"Creating link\u2026",copiedExpires:"Link copied \u2014 expires {{date}}",copiedNever:"Link copied \u2014 never expires",error:"Could not create the share link. Check the connection and try again.",optionAuto:"Auto",optionHigh:"High",optionMedium:"Mid",optionLow:"Low"},gridControls:{play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",quality:"Quality",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Events \u2014 coming soon",searchLabel:"Search label\u2026",empty:"No events",today:"Today",clips:"Clips",group:"Group"},settings:{themeSystem:"System",themeDark:"Dark",themeLight:"Light",server:"Server",hubActive:"Active hub",changeServer:"Change server",signOut:"Sign out",network:"Network",networkNone:"No routes probed yet",endpointUnlikely:"Unlikely usable",reprobe:"Re-probe routes",reprobing:"Probing\u2026",appearance:"Appearance",theme:"Theme",info:"Info",app:"App",version:"Version",noServer:"No server",footerNote:"CamStack Viewer connects to a single camstack hub. Cameras, grids and events are managed by the server.",language:"Language",langSystem:"System",gridDefaults:"Grid defaults",showName:"Show camera name",showNameHint:"Overlay the camera name on each tile",showState:"Show status badge",showStateHint:"Show online / recording state on each tile",columns:"Columns",cameraOrder:"Camera order",orderName:"By name",orderCustom:"Custom",streamQuality:"Stream quality",streamDefaults:"Stream defaults",playOnOpen:"Play on open",playOnOpenHint:"Start the live stream when a camera opens",audioOnOpen:"Audio on open",audioOnOpenHint:"Unmute audio when a camera opens",snapshotInterval:"Snapshot refresh",watchdog:"Auto-reconnect",watchdogHint:"Restart a stalled or dropped stream automatically",highlightAppearance:"Highlight appearance",highlightMotionColor:"Motion color",highlightAudioColor:"Audio color",highlightDetectionColor:"Detection color",highlightThickness:"Border thickness",qualityAuto:"Auto",qualityHigh:"High",qualityMid:"Medium",qualityLow:"Low",secondsValue:"{{count}}s",experimental:"Experimental",hlsRecordedPlayback:"HLS recorded playback (experimental)",hlsRecordedPlaybackHint:"Play recorded footage via HLS instead of WebRTC \u2014 may be smoother but is unverified on iOS",advanced:"Advanced",clearCache:"Clear cache",clearCacheHint:"Free up snapshots and cached data (keeps your server and settings)",clearCacheConfirmTitle:"Clear cache?",clearCacheConfirmBody:"This removes cached images and query data. Your server, sign-in and settings are kept.",clearCacheDone:"Cache cleared",exportSettings:"Export settings",exportSettingsHint:"Copy your settings as JSON",exportSettingsDone:"Settings copied as JSON",viewLogs:"View logs",viewLogsHint:"Recent in-app log messages",logsEmpty:"No logs recorded yet",keepLogs:"Keep logs",keepLogsHint:"Record a rolling buffer of in-app log messages",debugMode:"Debug mode",debugModeHint:"Verbose logs across live, playback and scrub \u2014 sent to the server",logsClear:"Clear",resetSettings:"Reset settings",resetSettingsHint:"Restore all defaults",resetConfirmTitle:"Reset settings?",resetConfirmBody:"This restores all settings to their defaults.",cancel:"Cancel",confirm:"Confirm",timeline:"Timeline & highlights",reel:"Event reel",comingSoon:"Coming soon",cameras:"Cameras",manageCameras:"Manage cameras",manageCamerasHint:"Rename, hide, reorder",pinchExpandsHeight:"Pinch enlarges the view",pinchExpandsHeightHint:"Pinching to zoom also grows the video taller (crops the side edges on 16:9 cameras).",playerStatusChip:"Player status badge",playerStatusChipHint:"Show the LIVE / playhead-time badge over the video. Off by default \u2014 the timeline already shows it.","timeline.gapPercent":"Cluster gap (%)","timeline.sizePercent":"Cluster size (%)","timeline.activityVariant":"Activity bars","timeline.variantLanes":"Lanes","timeline.variantRibbon":"Ribbon","timeline.repPriority":"Detection priority","timeline.indicatorPositionPct":"Indicator position (%)"},login:{loginFailed:"Login failed",verifyFailed:"Verification failed",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Show password",hidePassword:"Hide password",signIn:"Sign in",signingIn:"Signing in\u2026",twoFactor:"Two-factor authentication",totpHint:"Enter the 6-digit code from your authenticator app to sign in as ",verificationCode:"Verification code",verifyAndSignIn:"Verify and sign in",verifying:"Verifying\u2026",back:"Back",findHub:"Find hub on network",searchingHub:"Searching\u2026",hubNotFound:"No CamStack hub found on the network"},live:{webUnsupported:"Live view is not available on the web version yet.",connecting:"Connecting to live stream\u2026",error:"Unable to load the live stream.",retry:"Retry",noConnection:"No connection to the server",failed:"Connection failed"},ptz:{title:"PTZ",notAvailable:"PTZ controls are not available for this camera.",zoom:"Zoom",home:"Home position",presets:"Presets",noPresets:"No presets saved."},timeline:{activityTitle:"Activity",last24h:"Last 24h",loading:"Loading activity\u2026",noActivity:"No activity in the last 24 hours.",legendRecording:"Recorded",legendMotion:"Motion",legendAudio:"Audio"},theater:{back:"Back",today:"Today",yesterday:"Yesterday",selectDate:"Pick a date",live:"LIVE",now:"NOW",auto:"Auto",quality:"Stream quality",filterAll:"All",filter_motion:"Motion",filter_audio:"Audio",goToLive:"Go to live",noRecording:"No recording",noRecordingHint:"No footage at this time",detailCount:"{{frames}} frames \xb7 {{count}} detections",detailTracks:"{{tracks}} tracks \xb7 {{count}} detections",detailEmpty:"No detail images for this moment",detailSeek:"Go to this moment"},accessories:{on:"On",off:"Off",dimUp:"Brighter",dimDown:"Dimmer",lock:"Lock",unlock:"Unlock",open:"Open",close:"Close",stop:"Stop",arm:"Arm",disarm:"Disarm",onMotion:"On motion"},cameraMenu:{title:"View options",boundingBoxes:"Bounding boxes",streamStats:"Stream stats"},stats:{title:"Stream stats",resolution:"Resolution",fps:"FPS",bitrate:"Bitrate",packetLoss:"Packet loss",jitter:"Jitter",codec:"Codec",frames:"Frames (dropped/total)",waiting:"Measuring\u2026",playbackHint:"Full WebRTC stats need the native player."}},prototype:{today:"Today",yesterday:"Yesterday",now:"NOW",endOfDay:"END OF DAY",loading:"Loading...",timeline:"Timeline",events:"Events",playClip:"Play clip",goToNow:"NOW",noEvents:"No events"}}},3439,[]);
|
|
15861
|
-
__d(function(e,i,a,t,o,r,n){o.exports={devices:{editDevice:"Modifica dispositivo",originalName:"Nome originale",customName:"Nome personalizzato",customNamePlaceholder:"Lascia vuoto per usare l'originale",icon:"Icona",typeLight:"Luce",typeSwitch:"Interruttore",typeCover:"Tapparella",typeLock:"Serratura",typeAlarm:"Allarme",typeButton:"Pulsante",typeSelect:"Selezione",typeSiren:"Sirena",typeSensor:"Sensore",typeEntry:"Ingresso",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Esegui",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Muto",unmute:"Audio",stop:"Stop",locked:"Chiusa",unlocked:"Aperta",open:"Aperta",closed:"Chiusa",disarmed:"Disinserito",disarm:"Disinserisci"},common:{error:"Errore",save:"Salva",cancel:"Annulla",loading:"Caricamento...",comingSoon:"In arrivo",back:"Indietro",fullscreen:"Schermo intero",exitFullscreen:"Esci da schermo intero",reset:"Reimposta",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",delete:"Elimina",retry:"Riprova"},grids:{newGrid:"Nuova griglia",deleteConfirm:"Eliminare questa griglia?",noGrids:"Nessuna griglia. Creane una per disporre le telecamere in vista mosaico.",createGrid:"Crea griglia",cameras:"telecamere",notFound:"Griglia non trovata.",noCameras:"Nessuna telecamera in questa griglia. Modifica per aggiungerne.",edit:"Modifica",addCamera:"Aggiungi telecamera",presets:"Preset",auto:"Auto",manual:"Manuale",gridName:"Nome griglia",view:"Visualizza",addCameraHint:"Aggiungi almeno una telecamera dal pulsante sopra.",allCamerasAdded:"Tutte le telecamere sono gi\xe0 in griglia",cameraUnavailable:"Telecamera non disponibile",camerasInGrid:"Telecamere nella griglia",addAll:"Aggiungi tutte",addCameras:"Aggiungi Telecamere",backToGrid:"Torna alla Griglia",timelineNotSupported:"Timeline non supportata"},nav:{cameras:"Telecamere",grids:"Griglie",events:"Eventi",videoclips:"Videoclip",list:"Lista",settings:"Impostazioni"},cameras:{addCamera:"Aggiungi telecamera",pipActive:"PiP attivo",reorderEnable:"Riordina",reorderDisable:"Sblocca",live:"Live",noCameras:"Nessuna telecamera configurata",noIntegrations:"Nessuna integrazione configurata. Aggiungi un sistema per iniziare.",createSystem:"Crea sistema",importFrom:"Importa telecamere da",importSuccess:"Importazione completata",importCount:"{{count}} telecamere importate",selectCamerasToImport:"Seleziona telecamere da importare",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",importSelected:"Importa {{count}} selezionate",noCamerasFound:"Nessuna telecamera trovata",play:"\u25b6 Riproduci",paused:"In pausa",noDataForDate:"Nessun dato per questa data",recordingNotAvailable:"Registrazione non disponibile",noEventsReel:"Nessun evento recente",settings:"Impostazioni",highlightMotion:"Evidenza movimento",highlightOnMotion:"Evidenzia al movimento",highlightAudio:"Evidenza audio",audioMode:"Modalit\xe0",audioModeOff:"Off",audioModeSensor:"Sensore",audioModeLevel:"Livello",audioPreset:"Preset audio",audioPresetCustom:"Personalizzato",audioPresetCrying:"Pianto / neonato",audioPresetAlarm:"Allarme / sirena",audioPresetDog:"Abbaio cane",audioPresetDoorbell:"Campanello / bussata",audioPresetGlass:"Rottura vetro",audioWindow:"Finestra (s)",audioThreshold:"Soglia (dB)",audioHitPercentage:"Percentuale (%)",audioHoldSeconds:"Mantenimento (s)",highlightDetection:"Evidenza rilevamento oggetti",highlightOnDetection:"Evidenzia al rilevamento",detectionClasses:"Classi",holdSeconds:"Mantenimento (s)",rtspNotSupportedWeb:"Gli stream RTSP non sono supportati sul web. Usa l'app mobile.",liveDetections:"Detections live",filterTimeline:"Filtra timeline",filterClasses:"Filtra classi...",filterBySeverity:"Filtra per severit\xe0",severityAlert:"Allarme",severityDetection:"Rilevamento",statusPosition:"Posizione indicatori di stato",today:"Oggi",yesterday:"Ieri",timeline:"Timeline",timelineEventsClusterEvents:"Eventi",selectDate:"Seleziona una data",videoclipsNotSupported:"Videoclip non supportati per questa telecamera",noVideoclipsForDate:"Nessun videoclip per questa data",endOfList:"Fine elenco",backToLive:"Torna al live",goLive:"Vai al live",loadingClip:"Caricamento clip...",clusterDetailShowBbox:"Mostra bounding box sull'immagine",clusterDetailOpenVideoclip:"Apri videoclip",clusterDetailLoadingEvents:"Caricamento eventi...",devices:"Dispositivi",noAssociatedDevices:"Nessun dispositivo collegato. Configura in Impostazioni > Telecamere.",timelineData:"Dati timeline",timelineDataHint:"Cosa mostrare sulla timeline.",timelineDataVideoclips:"Videoclip",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Eventi",timelineEvents:"Eventi timeline",timelineEventsHint:"Quali tipi di eventi mostrare sulla timeline, in base alla severit\xe0.",timelinePresetAll:"Tutti",timelinePresetImportant:"Importanti",timelinePresetCritical:"Critici",timelinePresetCustom:"Personalizzato",statusBlock:"Blocco stato",sensorsBlock:"Blocco sensori",position:"Posizione",indicators:"Indicatori",downloadSnapshot:"Scarica Istantanea",exportDownloadClip:"Scarica Clip",exportRecordingWebOnly:"Esporta registrazione (solo web)",exportSnapshot:"Esporta Istantanea",intercomError:"Errore interfono",multiCam:"Multi-Camera",ptzNotSupported:"PTZ non supportato",ptzSelectPreset:"Seleziona Preset PTZ",snapshotFailed:"Istantanea fallita"},events:{loading:"Caricamento eventi...",filterByLabel:"Filtra per etichetta",filterByLabelPlaceholder:"es. person, doorbell",filterByCamera:"Filtra per telecamera",date:"Data",detectionTypes:"Tipi di rilevamento",source:"Sorgente",cameras:"Telecamere",groupingRange:"Raggruppamento",groupingPresetMinutes:"{{m}} min",groupingCustom:"Personalizzato",groupingCustomMinutes:"Minuti",groupingCustomApply:"Applica",today:"Oggi",noCamerasFromConfig:"Telecamere caricate dalla config EventsApp",all:"Tutti",typesCount:"{{count}} tipi",camerasCount:"{{count}} telecamere",cols:"col",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"API VideoClips",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Persona",detectionVehicle:"Veicolo",detectionAnimal:"Animale",detectionAudio:"Audio",detectionFace:"Volto",detectionPlate:"Targa",detectionPackage:"Pacco",detectionDoorbell:"Campanello",detectionSensor:"Sensore",detectionMotion:"Motion",detectionRules:"Regole",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere gli eventi.",frigateNoEvents:"Gli eventi sono disponibili solo per Scrypted. Seleziona un'istanza Scrypted in Impostazioni.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento degli eventi",noEvents:"Nessun evento per questa data. Prova a cambiare data o filtri.",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota",columnsPerRow:"Colonne per riga",onlyWithClips:"Solo con clip",relatedClip:"Clip Correlata"},videoclips:{loading:"Caricamento videoclip...",noCamerasFromConfig:"Telecamere caricate dalla config",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere i videoclip.",noFrigateIntegration:"Seleziona un'integrazione Frigate in Impostazioni per vedere i videoclip.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento dei videoclip",noVideoclips:"Nessun videoclip per questa data. Prova a cambiare data o filtri.",openVideoclip:"Apri videoclip",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota"},settings:{integrations:"Integrazioni",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Nome",baseUrl:"URL base",urlLocal:"URL locale",urlPublic:"URL pubblico",username:"Username",password:"Password",token:"Token (opzionale)",frigateTokenHint:"Token (opzionale): JWT dal browser",tokenRequired:"Token",testConnection:"Test connessione",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connessione riuscita",connectionError:"Connessione fallita",scryptedCredentialsPromptTitle:"Accesso Scrypted",scryptedCredentialsPromptSubtitle:"Inserisci username e password Scrypted per connettere.",scryptedCredentialsPromptSkip:"Salta per ora",usernamePlaceholder:"admin",save:"Salva",tabStream:"Stream e riproduzione",tabGeneral:"Generale",data:"Dati",clearCacheEventsClips:"Svuota cache eventi e videoclip",eventsClipsSourceHint:"Sorgente per le schede Eventi e Videoclip.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Scegli quali integrazioni usare per il reel.",reelScryptedSourceHint:"Con Scrypted: sorgente eventi per il reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Aggiungi prima un'integrazione Scrypted o Frigate.",exportBackup:"Esporta backup",exportError:"Esportazione fallita",importBackup:"Importa backup",importConfirm:"Questo sostituir\xe0 tutte le telecamere, integrazioni e impostazioni con i dati del backup. Continuare?",importSuccess:"Backup ripristinato con successo",importError:"Importazione fallita",uiPrototypes:"Prototipi UI",uiPrototypesHint:"Esplora design sperimentali della timeline",versions:"Versioni",appVersion:"App",nativeVersion:"Nativa",updateNow:"Aggiorna ora",updateError:"Aggiornamento fallito",updateAvailableTitle:"Aggiornamento disponibile",updateAvailableMessage:"Una nuova versione di CamStack \xe8 stata scaricata ed \xe8 pronta per l'installazione. L'app verr\xe0 riavviata per applicare l'aggiornamento.",updateInstall:"Installa e riavvia",updateLater:"Pi\xf9 tardi",tabIntegrations:"Integrazioni",tabCameras:"Telecamere",theme:"Tema",themeSystem:"Sistema",themeLight:"Chiaro",themeDark:"Scuro",language:"Lingua",languageSystem:"Sistema",languageEn:"English",languageIt:"Italiano",timelineMode:"Modalit\xe0 timeline",timelineModeClassic:"Classica",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Mostra timeline rilevamenti",timelineVisibleDescription:"Visualizza il pannello della timeline nella vista telecamera.",clusterSize:"Dimensione cluster",snapshotInterval:"Intervallo aggiornamento snapshot",clusterSizeXS:"Molto piccola",clusterSizeS:"Piccola",clusterSizeM:"Normale",clusterSizeL:"Grande",clusterSizeXL:"Molto grande",highlightAppearance:"Aspetto evidenze",highlightAppearanceHint:"Colore e spessore del bordo per evidenze movimento, audio e rilevamento sugli stream delle telecamere.",highlightMotion:"Movimento",highlightAudio:"Audio",highlightDetection:"Rilevamento",highlightColor:"Colore",highlightThickness:"Spessore",selectSection:"Seleziona sezione",addSystem:"Aggiungi sistema",selectPlatform:"Seleziona piattaforma",deleteInstance:"Elimina istanza",deleteInstanceConfirm:"Vuoi eliminare questa istanza?",delete:"Elimina",mqttEvents:"MQTT - Eventi in tempo reale",mqttBrokerUrl:"URL broker MQTT",mqttUsername:"Username MQTT",mqttPassword:"Password MQTT",mqttTopicPrefix:"Prefisso topic (default: frigate)",mqttOptional:"Opzionale",scryptedAddressAlreadyUsed:"Questo indirizzo Scrypted \xe8 gi\xe0 configurato. \xc8 consentita una sola istanza per indirizzo.",scryptedAdvancedNotifierRequired:"Il plugin Advanced Notifier \xe8 richiesto per la connessione.",scryptedCorsTitle:"Configurazione CORS richiesta (Web)",scryptedCorsBody:"In Scrypted, apri le impostazioni del plugin Cloud e aggiungi il tuo dominio ({{domain}}) alla lista CORS Allowed Origins. Senza questa configurazione, il browser bloccher\xe0 le richieste verso il server Scrypted.",scryptedUrlHint:"L'URL locale viene provato per primo (es. in LAN), poi quello pubblico. Ne serve almeno uno.",gridLayout:"Layout griglia",gridLayoutHint:"Opzioni di visualizzazione per la griglia telecamere.",gridColumns:"Colonne griglia",gridColumnsHint:"Numero di telecamere per riga. Auto = 1 su mobile, 4 su tablet.",gridShowName:"Mostra nome telecamera",gridShowState:"Mostra stato (batteria, registrazione, sleep)",reorderCameras:"Riordina telecamere",reorderCamerasHint:"Trascina per riordinare le telecamere",reorderDone:"Fatto",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rimuovi telecamere dall'app.",downloadSnapshot:"Scarica snapshot",snapshotFailed:"Impossibile recuperare lo snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Scarica clip",exportStartRecording:"Avvia registrazione",exportStopRecording:"Ferma registrazione",exportRecordingWebOnly:"Registrazione disponibile su web",intercomError:"Intercom non disponibile. Verifica le credenziali della telecamera su Scrypted.",deleteCamera:"Rimuovi telecamera",deleteCameraConfirm:"Rimuovere {{name}} dall'app?",streamPlayback:"Stream e riproduzione",playOnOpen:"Avvia stream all'apertura telecamera",playOnOpenHint:"Carica automaticamente lo stream live quando apri una telecamera.",audioOnOpen:"Audio attivo all'apertura",audioOnOpenHint:"Riproduci audio quando apri una telecamera (se supportato).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Riavvia lo stream quando non arrivano dati (aiuta con connessioni bloccate).",cameraPlayer:"Player telecamera",webViewCameraDetail:"Usa player WebView",webViewCameraDetailHint:"Usa WebView per le telecamere Scrypted (primo frame pi\xf9 veloce, pi\xf9 stabile). PiP, fullscreen e intercom funzionano. Default: player nativo.",streamQuality:"Qualit\xe0 stream",streamQualitySingle:"Qualit\xe0 singola telecamera",streamQualityGrid:"Qualit\xe0 griglia",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Dispositivi associati",associatedDevicesHint:"Aggiungi attuatori (luci, interruttori, tapparelle, ecc.) per controllarli dalla vista telecamera.",linkedDevices:"Collegati",reorderHint:"Usa le frecce per riordinare",addDevice:"Aggiungi dispositivo",noEligibleDevices:"Nessun Scrypted o Home Assistant configurato. Aggiungi prima un'integrazione.",configureDevices:"Configura dispositivi",cameraSettingsHint:"Scegli una telecamera per configurarne le opzioni.",noCamerasConfigured:"Nessuna telecamera configurata.",searchDevices:"Cerca dispositivi...",source:"Sorgente",type:"Tipo",all:"Tutti",noMatchingDevices:"Nessun dispositivo corrisponde ai filtri.",frigateStream:"Stream Frigate",frigateStreamSourceHint:"Sorgente stream: WebRTC (default), RTSP o MJPEG.",frigateStreamMapping:"Mappatura stream (nomi go2rtc da config)",frigateStreamMappingHint:"Seleziona dagli stream go2rtc disponibili. Ordine: High, Mid, Sub.",frigateSelectStream:"Seleziona stream",frigateAddStream:"Aggiungi stream",frigateInfo:"Info telecamera",frigateShowConfig:"Mostra config",frigateShowGo2rtc:"Mostra go2rtc",frigateMissingConfig:"Mancano baseUrl o cameraName nella config della telecamera.",tabLogs:"Log",logsCount:"{{count}} voci",logsDownload:"Scarica",logsClear:"Svuota",logsEmpty:"Nessun log. L'output della console apparir\xe0 qui.",logsExportError:"Esportazione fallita",logsExportTitle:"Esporta log",logsClearConfirmTitle:"Svuota log",logsClearConfirmMessage:"Rimuovere tutte le voci di log?",hubAppearanceTitle:"Aspetto",hubAppearanceDesc:"Tema, lingua, timeline e evidenze",hubCamerasTitle:"Telecamere",hubCamerasDesc:"Layout griglia, qualit\xe0 stream e gestione telecamere",hubIntegrationsTitle:"Integrazioni",hubIntegrationsDesc:"Gestisci Scrypted, Frigate e altri sistemi",hubAdvancedTitle:"Avanzato",hubAdvancedDesc:"Backup dati e gestione cache",hubLogsTitle:"Log",hubLogsDesc:"Visualizza ed esporta i log dell'applicazione",hubCacheTitle:"Cache",frigateAutoSnap:"Istantanea Automatica",frigateSegmentNav:"Navigazione Segmenti",frigateShowGo:"Mostra Go2RTC",frigateTimeline:"Timeline",reelCameras:"Telecamere Reel",reelCamerasHint:"Seleziona quali telecamere appaiono nel reel eventi",reelDeselectAll:"Deseleziona Tutto",reelDetectionClasses:"Classi di Rilevamento",reelDetectionClassesHint:"Filtra gli eventi per classe di rilevamento",reelIncludeRuleArtifacts:"Includi Artefatti Regole",reelIncludeRuleArtifactsHint:"Mostra gli eventi basati su regole nel reel",reelRuleArtifacts:"Artefatti Regole",reelSelectAll:"Seleziona Tutto",reelBadgeContent:"Contenuto badge",reelBadgePosition:"Posizione badge",reelBadgeSize:"Dimensione badge",reelBadgeBoth:"Ora + Classe",reelBadgeTime:"Solo ora",reelBadgeClass:"Solo classe",reelBadgeNone:"Nascosto",reelBadgeSmall:"Piccolo",reelBadgeMedium:"Medio",reelBadgeLarge:"Grande"},reel:{filterMotion:"Motion",filterOnlyRules:"Solo rule",filterOnlySensors:"Solo sensori",goToMostRecent:"Vai al pi\xf9 recente"},v2:{common:{connecting:"Connessione\u2026",online:"Online",offline:"Offline",loadError:"Errore di caricamento",create:"Crea"},cameras:{empty:"Nessuna telecamera",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"In standby",unavailable:"Non disponibile",motion:"Movimento",snapshotLoading:"Caricamento\u2026",manage:"Gestisci telecamere",manageHint:"Trascina per riordinare. Rinomina al volo. Usa lo switch per mostrare o nascondere una telecamera dall\u2019elenco.",reorderHandle:"Trascina per riordinare"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Disattiva audio",unmute:"Attiva audio",snapshot:"Istantanea",snapshotFailed:"Impossibile acquisire l'istantanea.",ptz:"Controlli PTZ",talk:"Parla",fullscreen:"Schermo intero",talkFailed:"Impossibile avviare la comunicazione. Verifica l'accesso al microfono.",pip:"Picture in Picture",exitFullscreen:"Esci da schermo intero",devices:"Dispositivi",devicesEmpty:"Nessun dispositivo collegato.",motionBoxes:"Riquadri movimento",close:"Chiudi",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Crea griglia",empty:"Nessuna griglia",emptyHint:"Tocca + per creare la tua prima griglia",countNone:"Nessuna telecamera",countOne:"1 telecamera",countOther:"{{count}} telecamere",defaultName:"Nuova griglia",deleteTitle:"Elimina griglia",deleteConfirm:"Eliminare \"{{name}}\"? L'operazione non \xe8 reversibile.",export:"Esporta",exportAllA11y:"Esporta tutte le griglie",shareA11y:"Condividi griglia",editA11y:"Modifica griglia",deleteA11y:"Elimina griglia",linkCopied:"Link della griglia copiato negli appunti",layoutAuto:"Auto",layoutColumns:"{{count}} col"},gridView:{editA11y:"Modifica griglia",fallbackTitle:"Griglia",notFound:"Griglia non trovata",emptyGrid:"Questa griglia \xe8 vuota",addCameras:"Aggiungi telecamere",reorderTitle:"Riordina telecamere",reorderA11y:"Riordina telecamere",reorderDoneA11y:"Fine riordino",allHidden:"Tutte le telecamere sono nascoste. Usa la modalit\xe0 riordino per mostrarne alcune.",dragA11y:"Trascina per riordinare",hideA11y:"Nascondi dalla griglia",showA11y:"Mostra nella griglia",removeA11y:"Rimuovi dalla griglia"},gridBuilder:{title:"Modifica griglia",nameLabel:"Nome",namePlaceholder:"Nome griglia",camerasSelected:"Telecamere ({{count}} selezionate)",optionsTitle:"Opzioni",showName:"Mostra nome telecamera",export:"Esporta griglia",orderSection:"Nella griglia",orderHint:"Trascina per riordinare",emptyOrder:"Nessuna telecamera \u2014 aggiungine qui sotto.",addSection:"Aggiungi telecamere",removeA11y:"Rimuovi dalla griglia",addA11y:"Aggiungi alla griglia",highlightTitle:"Evidenziazione",highlightMotion:"Su movimento",highlightAudio:"Su audio",highlightAudioOff:"Off",highlightAudioSensor:"Presenza",highlightAudioLevel:"Livello",highlightThreshold:"Soglia",highlightHold:"Mantieni",highlightDetection:"Su rilevamento"},gridBar:{back:"Indietro",pauseAll:"Metti tutto in pausa",playAll:"Riproduci tutto",audio:"Audio",quality:"Qualit\xe0 stream",layout:"Layout",highlight:"Evidenziazione",activeOnly:"Solo attive",share:"Condividi griglia",edit:"Modifica griglia",hide:"Nascondi controlli",show:"Mostra controlli",muteAll:"Silenzia tutte",unmuteAll:"Riattiva audio"},gridShare:{title:"Condividi \"{{name}}\"",quality:"Qualit\xe0 stream",layout:"Layout",showNames:"Mostra nomi delle camere",activeOnly:"Solo camere attive",highlightEnable:"Evidenziazione",audioSummary:"Audio attivo all\u2019apertura per {{count}} camera/e",ttlTitle:"Scadenza del link",ttl_1d:"1 giorno",ttl_7d:"7 giorni",ttl_30d:"30 giorni",ttl_never:"Per sempre",tokenNotice:"Il link include un token di sola visualizzazione limitato a queste camere. Chiunque abbia il link pu\xf2 guardare finch\xe9 non scade o viene revocato.",copyLink:"Copia link",creating:"Creazione link\u2026",copiedExpires:"Link copiato \u2014 scade il {{date}}",copiedNever:"Link copiato \u2014 non scade mai",error:"Impossibile creare il link di condivisione. Controlla la connessione e riprova.",optionAuto:"Auto",optionHigh:"Alta",optionMedium:"Media",optionLow:"Bassa"},gridControls:{play:"Riproduci",pause:"Pausa",mute:"Muto",unmute:"Riattiva audio",quality:"Qualit\xe0",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Eventi \u2014 in arrivo",searchLabel:"Cerca etichetta\u2026",empty:"Nessun evento",today:"Oggi",clips:"Clip",group:"Gruppo"},settings:{themeSystem:"Sistema",themeDark:"Scuro",themeLight:"Chiaro",server:"Server",hubActive:"Hub attivo",changeServer:"Cambia server",signOut:"Esci",network:"Rete",networkNone:"Nessuna rotta ancora rilevata",endpointUnlikely:"Probabilmente non utilizzabile",reprobe:"Ri-rileva rotte",reprobing:"Rilevamento\u2026",appearance:"Aspetto",theme:"Tema",info:"Info",app:"App",version:"Versione",noServer:"Nessun server",footerNote:"CamStack Viewer si connette a un singolo hub camstack. Telecamere, griglie ed eventi sono gestiti dal server.",language:"Lingua",langSystem:"Sistema",gridDefaults:"Impostazioni griglia",showName:"Mostra nome telecamera",showNameHint:"Sovrapponi il nome della telecamera su ogni riquadro",showState:"Mostra stato",showStateHint:"Mostra lo stato online / registrazione su ogni riquadro",columns:"Colonne",cameraOrder:"Ordine telecamere",orderName:"Per nome",orderCustom:"Personalizzato",streamQuality:"Qualit\xe0 stream",streamDefaults:"Impostazioni stream",playOnOpen:"Riproduci all'apertura",playOnOpenHint:"Avvia lo stream live quando apri una telecamera",audioOnOpen:"Audio all'apertura",audioOnOpenHint:"Attiva l'audio quando apri una telecamera",snapshotInterval:"Aggiornamento snapshot",watchdog:"Riconnessione automatica",watchdogHint:"Riavvia automaticamente uno stream bloccato o interrotto",highlightAppearance:"Aspetto evidenziazione",highlightMotionColor:"Colore movimento",highlightAudioColor:"Colore audio",highlightDetectionColor:"Colore rilevamento",highlightThickness:"Spessore bordo",qualityAuto:"Auto",qualityHigh:"Alta",qualityMid:"Media",qualityLow:"Bassa",secondsValue:"{{count}}s",experimental:"Sperimentale",hlsRecordedPlayback:"Riproduzione registrato via HLS (sperimentale)",hlsRecordedPlaybackHint:"Riproduci il registrato via HLS invece di WebRTC \u2014 pu\xf2 essere pi\xf9 fluido ma non \xe8 verificato su iOS",advanced:"Avanzate",clearCache:"Svuota cache",clearCacheHint:"Libera snapshot e dati in cache (mantiene server e impostazioni)",clearCacheConfirmTitle:"Svuotare la cache?",clearCacheConfirmBody:"Rimuove immagini e dati in cache. Server, accesso e impostazioni vengono mantenuti.",clearCacheDone:"Cache svuotata",exportSettings:"Esporta impostazioni",exportSettingsHint:"Copia le impostazioni in formato JSON",exportSettingsDone:"Impostazioni copiate in JSON",viewLogs:"Visualizza log",viewLogsHint:"Messaggi di log recenti dell'app",logsEmpty:"Nessun log registrato",keepLogs:"Mantieni log",keepLogsHint:"Registra un buffer dei messaggi di log dell'app",debugMode:"Modalit\xe0 debug",debugModeHint:"Log verbosi su live, playback e scrub \u2014 inviati al server",logsClear:"Pulisci",resetSettings:"Ripristina impostazioni",resetSettingsHint:"Ripristina tutti i valori predefiniti",resetConfirmTitle:"Ripristinare le impostazioni?",resetConfirmBody:"Ripristina tutte le impostazioni ai valori predefiniti.",cancel:"Annulla",confirm:"Conferma",timeline:"Timeline ed evidenziazioni",reel:"Sequenza eventi",comingSoon:"Prossimamente",cameras:"Telecamere",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rinomina, nascondi, riordina",pinchExpandsHeight:"Il pizzico ingrandisce la vista",pinchExpandsHeightHint:"Pizzicando per lo zoom il video cresce in altezza (ritaglia i bordi laterali sulle camere 16:9).",playerStatusChip:"Badge stato sul player",playerStatusChipHint:"Mostra il badge LIVE / orario sul video. Disattivato di default \u2014 la timeline lo mostra gi\xe0.","timeline.gapPercent":"Gap cluster (%)","timeline.sizePercent":"Dimensione cluster (%)","timeline.activityVariant":"Barre attivit\xe0","timeline.variantLanes":"Corsie","timeline.variantRibbon":"Nastro","timeline.repPriority":"Priorit\xe0 rilevamento","timeline.indicatorPositionPct":"Posizione indicatore (%)"},login:{loginFailed:"Accesso fallito",verifyFailed:"Verifica fallita",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Mostra password",hidePassword:"Nascondi password",signIn:"Accedi",signingIn:"Accesso\u2026",twoFactor:"Autenticazione a due fattori",totpHint:"Inserisci il codice a 6 cifre dall'app di autenticazione per accedere come ",verificationCode:"Codice di verifica",verifyAndSignIn:"Verifica e accedi",verifying:"Verifica\u2026",back:"Indietro",findHub:"Trova hub in rete",searchingHub:"Ricerca\u2026",hubNotFound:"Nessun hub CamStack trovato in rete"},live:{webUnsupported:"La vista live non \xe8 ancora disponibile nella versione web.",connecting:"Connessione allo stream live\u2026",error:"Impossibile caricare lo stream live.",retry:"Riprova",noConnection:"Nessuna connessione al server",failed:"Connessione fallita"},ptz:{title:"PTZ",notAvailable:"I controlli PTZ non sono disponibili per questa telecamera.",zoom:"Zoom",home:"Posizione iniziale",presets:"Preset",noPresets:"Nessun preset salvato."},timeline:{activityTitle:"Attivit\xe0",last24h:"Ultime 24h",loading:"Caricamento attivit\xe0\u2026",noActivity:"Nessuna attivit\xe0 nelle ultime 24 ore.",legendRecording:"Registrato",legendMotion:"Movimento",legendAudio:"Audio"},theater:{back:"Indietro",today:"Oggi",yesterday:"Ieri",selectDate:"Seleziona una data",live:"LIVE",now:"ORA",auto:"Auto",quality:"Qualit\xe0 stream",filterAll:"Tutti",filter_motion:"Movimento",filter_audio:"Audio",goToLive:"Vai al live",noRecording:"Nessuna registrazione",noRecordingHint:"Nessun filmato per questo momento",detailCount:"{{frames}} frame \xb7 {{count}} rilevamenti",detailTracks:"{{tracks}} tracce \xb7 {{count}} rilevamenti",detailEmpty:"Nessuna immagine di dettaglio per questo istante",detailSeek:"Vai a questo momento"},accessories:{on:"Acceso",off:"Spento",dimUp:"Pi\xf9 luminoso",dimDown:"Meno luminoso",lock:"Blocca",unlock:"Sblocca",open:"Apri",close:"Chiudi",stop:"Ferma",arm:"Attiva",disarm:"Disattiva",onMotion:"Su movimento"},cameraMenu:{title:"Opzioni vista",boundingBoxes:"Bounding box",streamStats:"Statistiche stream"},stats:{title:"Statistiche stream",resolution:"Risoluzione",fps:"FPS",bitrate:"Bitrate",packetLoss:"Pacchetti persi",jitter:"Jitter",codec:"Codec",frames:"Frame (persi/totali)",waiting:"Misurazione\u2026",playbackHint:"Le statistiche WebRTC complete richiedono il player nativo."}},prototype:{today:"Oggi",yesterday:"Ieri",now:"ORA",endOfDay:"FINE GIORNATA",loading:"Caricamento...",timeline:"Timeline",events:"Eventi",playClip:"Riproduci clip",goToNow:"ORA",noEvents:"Nessun evento"}}},3440,[]);
|
|
15862
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.RootProviders=function(v){const _=(0,t.c)(4),{children:f}=v;let y,P,S;_[0]===Symbol.for("react.memo_cache_sentinel")?(y={flex:1},_[0]=y):y=_[0];_[1]===Symbol.for("react.memo_cache_sentinel")?(P=(0,j.jsx)(s.ThemedStatusBar,{}),_[1]=P):P=_[1];_[2]!==f?(S=(0,j.jsx)(n.GestureHandlerRootView,{style:y,children:(0,j.jsx)(c.SafeAreaProvider,{initialMetrics:c.initialWindowMetrics,children:(0,j.jsx)(o.QueryClientProvider,{client:x,children:(0,j.jsxs)(l.ThemeProvider,{children:[P,(0,j.jsx)(h.ServerProvider,{children:(0,j.jsx)(u.LoggerBridge,{children:f})})]})})})}),_[2]=f,_[3]=S):S=_[3];return S};var t=r(d[0]);r(d[1]);var n=r(d[2]),c=r(d[3]),o=r(d[4]),l=r(d[5]),s=r(d[6]),h=r(d[7]),u=r(d[8]),v=r(d[9]),j=r(d[10]);const x=(0,v.createQueryClient)()},3441,[15,17,2864,466,2740,2587,3442,2812,3443,3444,10]);
|
|
15863
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.
|
|
15864
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.
|
|
15865
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.
|
|
15866
|
-
__d(function(g,r,i,a,m,
|
|
15867
|
-
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.LoginScreen=function(){const{t:e}=(0,h.useTranslation)(),{save:o}=(0,x.useServer)(),{colors:n}=(0,p.useTheme)(),[s,c]=(0,t.useState)('credentials'),[f,j]=(0,t.useState)('https://'),[T,k]=(0,t.useState)(''),[z,F]=(0,t.useState)(''),[_,G]=(0,t.useState)(!1),[R,U]=(0,t.useState)(''),[D,L]=(0,t.useState)(''),[W,H]=(0,t.useState)(''),[B,E]=(0,t.useState)(!1),[O,V]=(0,t.useState)(!1),M=f.trim(),q=M.length>0&&T.trim().length>0&&z.length>0,J=async e=>{await o({id:M,label:M,serverUrl:M},e)},K=async()=>{if(q&&!B){H(''),E(!0);try{const e=await(0,S.login)(M,T.trim(),z);if('totp-required'===e.status)return U(e.token),void c('totp');await J(e.token)}catch(o){H(w(o,e('v2.login.loginFailed')))}finally{E(!1)}}},Q=async()=>{if(!O&&!B){H(''),V(!0);try{const o=await(0,y.discoverHubFromInput)(M.length>0?M:'camstack.local');o?j(o.baseUrl):H(e('v2.login.hubNotFound','No CamStack hub found on the network'))}catch(o){H(w(o,e('v2.login.hubNotFound','No CamStack hub found on the network')))}finally{V(!1)}}},X=async()=>{if(6===D.length&&!B){H(''),E(!0);try{const{token:e}=await(0,S.verifyTotp)(M,R,D);await J(e)}catch(o){H(w(o,e('v2.login.verifyFailed'))),L('')}finally{E(!1)}}};return(0,P.jsx)(l.default,{style:{flex:1,backgroundColor:n.background},behavior:void 0,children:(0,P.jsx)(u.default,{contentContainerStyle:{flexGrow:1,justifyContent:'center',alignItems:'center',padding:C.SPACING['2xl']},keyboardShouldPersistTaps:"handled",children:(0,P.jsxs)(b.default,{style:{width:'100%',maxWidth:420,gap:C.SPACING['2xl']},children:[(0,P.jsx)(b.default,{style:{alignItems:'center'},children:(0,P.jsx)(v.BrandLogo,{width:220})}),(0,P.jsxs)(b.default,{style:{backgroundColor:n.surface,borderColor:n.border,borderWidth:1,borderRadius:C.RADIUS.lg,padding:C.SPACING['2xl'],gap:C.SPACING.xl},children:[W.length>0&&(0,P.jsx)(I,{colors:n,message:W}),'credentials'===s?(0,P.jsx)(A,{colors:n,serverUrl:f,username:T,password:z,showPassword:_,submitting:B,discovering:O,canSubmit:q,onDiscover:()=>{Q()},onChangeServerUrl:j,onChangeUsername:k,onChangePassword:F,onToggleShowPassword:()=>G(e=>!e),onSubmit:()=>{K()}}):(0,P.jsx)(N,{colors:n,username:T.trim(),totpCode:D,submitting:B,onChangeTotp:e=>L(e.replace(/\D/g,'').slice(0,6)),onSubmit:()=>{X()},onBack:()=>{c('credentials'),U(''),L(''),H('')}})]})]})})})};var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),l=e(r(d[3]));r(d[4]);var s=e(r(d[5])),u=e(r(d[6])),c=e(r(d[7])),f=e(r(d[8])),b=e(r(d[9])),h=r(d[10]),S=r(d[11]),y=r(d[12]),x=r(d[13]),p=r(d[14]),C=r(d[15]),v=r(d[16]),j=r(d[17]),P=r(d[18]);function w(e,o){return e instanceof Error&&e.message?e.message:o}function I(e){const t=(0,o.c)(11),{colors:n,message:l}=e,s=n.danger+"1a",u=n.danger+"40";let f,h,S,y;return t[0]!==s||t[1]!==u?(f={backgroundColor:s,borderColor:u,borderWidth:1,borderRadius:C.RADIUS.md,paddingVertical:C.SPACING.lg,paddingHorizontal:C.SPACING.xl},t[0]=s,t[1]=u,t[2]=f):f=t[2],t[3]!==n.danger?(h={color:n.danger,fontSize:13},t[3]=n.danger,t[4]=h):h=t[4],t[5]!==l||t[6]!==h?(S=(0,P.jsx)(c.default,{style:h,children:l}),t[5]=l,t[6]=h,t[7]=S):S=t[7],t[8]!==f||t[9]!==S?(y=(0,P.jsx)(b.default,{style:f,children:S}),t[8]=f,t[9]=S,t[10]=y):y=t[10],y}function T(e){return{color:e.foregroundSubtle,fontSize:12,fontWeight:'600',marginBottom:C.SPACING.sm}}function k(e){return{backgroundColor:e.background,borderColor:e.border,borderWidth:1,borderRadius:C.RADIUS.md,paddingVertical:C.SPACING.lg,paddingHorizontal:C.SPACING.xl,color:e.foreground,fontSize:15}}function A(e){const t=(0,o.c)(108),{colors:n,serverUrl:l,username:u,password:S,showPassword:y,submitting:x,discovering:p,canSubmit:v,onDiscover:w,onChangeServerUrl:I,onChangeUsername:A,onChangePassword:N,onToggleShowPassword:F,onSubmit:_}=e,{t:G}=(0,h.useTranslation)();let R,U,D;t[0]!==n?(R=T(n),t[0]=n,t[1]=R):R=t[1],t[2]!==G?(U=G("v2.login.serverUrl"),t[2]=G,t[3]=U):U=t[3],t[4]!==R||t[5]!==U?(D=(0,P.jsx)(c.default,{style:R,children:U}),t[4]=R,t[5]=U,t[6]=D):D=t[6];const L=n.foregroundSubtle;let W,H,B;t[7]!==n?(W=k(n),t[7]=n,t[8]=W):W=t[8],t[9]!==n.foregroundSubtle||t[10]!==I||t[11]!==l||t[12]!==W?(H=(0,P.jsx)(f.default,{value:l,onChangeText:I,placeholder:"https://hub.local:4443",placeholderTextColor:L,autoCapitalize:"none",autoCorrect:!1,keyboardType:"url",style:W}),t[9]=n.foregroundSubtle,t[10]=I,t[11]=l,t[12]=W,t[13]=H):H=t[13],t[14]!==G?(B=G("v2.login.findHub"),t[14]=G,t[15]=B):B=t[15];const E=p||x;let O,V,M,q,J,K,Q,X,Y,Z;t[16]===Symbol.for("react.memo_cache_sentinel")?(O={marginTop:C.SPACING.sm,alignSelf:"flex-start"},t[16]=O):O=t[16],t[17]!==n.primary?(V={color:n.primary,fontSize:13,fontWeight:"600"},t[17]=n.primary,t[18]=V):V=t[18],t[19]!==p||t[20]!==G?(M=G(p?"v2.login.searchingHub":"v2.login.findHub"),t[19]=p,t[20]=G,t[21]=M):M=t[21],t[22]!==V||t[23]!==M?(q=(0,P.jsx)(c.default,{style:V,children:M}),t[22]=V,t[23]=M,t[24]=q):q=t[24],t[25]!==w||t[26]!==q||t[27]!==B||t[28]!==E?(J=(0,P.jsx)(s.default,{accessibilityRole:"button",accessibilityLabel:B,onPress:w,disabled:E,hitSlop:6,style:O,children:q}),t[25]=w,t[26]=q,t[27]=B,t[28]=E,t[29]=J):J=t[29],t[30]!==J||t[31]!==D||t[32]!==H?(K=(0,P.jsxs)(b.default,{children:[D,H,J]}),t[30]=J,t[31]=D,t[32]=H,t[33]=K):K=t[33],t[34]!==n?(Q=T(n),t[34]=n,t[35]=Q):Q=t[35],t[36]!==G?(X=G("v2.login.username"),t[36]=G,t[37]=X):X=t[37],t[38]!==Q||t[39]!==X?(Y=(0,P.jsx)(c.default,{style:Q,children:X}),t[38]=Q,t[39]=X,t[40]=Y):Y=t[40],t[41]!==G?(Z=G("v2.login.username"),t[41]=G,t[42]=Z):Z=t[42];const $=n.foregroundSubtle;let ee,oe,te,re,ne,le,se,ae;t[43]!==n?(ee=k(n),t[43]=n,t[44]=ee):ee=t[44],t[45]!==n.foregroundSubtle||t[46]!==A||t[47]!==Z||t[48]!==ee||t[49]!==u?(oe=(0,P.jsx)(f.default,{value:u,onChangeText:A,placeholder:Z,placeholderTextColor:$,autoCapitalize:"none",autoCorrect:!1,autoFocus:!0,style:ee}),t[45]=n.foregroundSubtle,t[46]=A,t[47]=Z,t[48]=ee,t[49]=u,t[50]=oe):oe=t[50],t[51]!==Y||t[52]!==oe?(te=(0,P.jsxs)(b.default,{children:[Y,oe]}),t[51]=Y,t[52]=oe,t[53]=te):te=t[53],t[54]!==n?(re=T(n),t[54]=n,t[55]=re):re=t[55],t[56]!==G?(ne=G("v2.login.password"),t[56]=G,t[57]=ne):ne=t[57],t[58]!==re||t[59]!==ne?(le=(0,P.jsx)(c.default,{style:re,children:ne}),t[58]=re,t[59]=ne,t[60]=le):le=t[60],t[61]===Symbol.for("react.memo_cache_sentinel")?(se={position:"relative",justifyContent:"center"},t[61]=se):se=t[61],t[62]!==G?(ae=G("v2.login.password"),t[62]=G,t[63]=ae):ae=t[63];const ie=n.foregroundSubtle,de=!y;let ue,ce,ge,fe,be,he,Se,me,ye;t[64]!==n?(ue=k(n),t[64]=n,t[65]=ue):ue=t[65],t[66]!==ue?(ce=Object.assign({},ue,{paddingRight:48}),t[66]=ue,t[67]=ce):ce=t[67],t[68]!==n.foregroundSubtle||t[69]!==N||t[70]!==S||t[71]!==ae||t[72]!==de||t[73]!==ce?(ge=(0,P.jsx)(f.default,{value:S,onChangeText:N,placeholder:ae,placeholderTextColor:ie,autoCapitalize:"none",autoCorrect:!1,secureTextEntry:de,style:ce}),t[68]=n.foregroundSubtle,t[69]=N,t[70]=S,t[71]=ae,t[72]=de,t[73]=ce,t[74]=ge):ge=t[74],t[75]!==y||t[76]!==G?(fe=G(y?"v2.login.hidePassword":"v2.login.showPassword"),t[75]=y,t[76]=G,t[77]=fe):fe=t[77],t[78]===Symbol.for("react.memo_cache_sentinel")?(be={position:"absolute",right:C.SPACING.xl},t[78]=be):be=t[78],t[79]!==n.foregroundSubtle||t[80]!==y?(he=y?(0,P.jsx)(j.EyeOff,{color:n.foregroundSubtle,size:20}):(0,P.jsx)(j.Eye,{color:n.foregroundSubtle,size:20}),t[79]=n.foregroundSubtle,t[80]=y,t[81]=he):he=t[81],t[82]!==F||t[83]!==fe||t[84]!==he?(Se=(0,P.jsx)(s.default,{accessibilityRole:"button",accessibilityLabel:fe,onPress:F,hitSlop:8,style:be,children:he}),t[82]=F,t[83]=fe,t[84]=he,t[85]=Se):Se=t[85],t[86]!==ge||t[87]!==Se?(me=(0,P.jsxs)(b.default,{style:se,children:[ge,Se]}),t[86]=ge,t[87]=Se,t[88]=me):me=t[88],t[89]!==le||t[90]!==me?(ye=(0,P.jsxs)(b.default,{children:[le,me]}),t[89]=le,t[90]=me,t[91]=ye):ye=t[91];const xe=!v||x;let pe,Ce,ve,je;return t[92]!==G?(pe=G("v2.login.signIn"),t[92]=G,t[93]=pe):pe=t[93],t[94]!==G?(Ce=G("v2.login.signingIn"),t[94]=G,t[95]=Ce):Ce=t[95],t[96]!==n||t[97]!==_||t[98]!==x||t[99]!==xe||t[100]!==pe||t[101]!==Ce?(ve=(0,P.jsx)(z,{colors:n,disabled:xe,submitting:x,label:pe,loadingLabel:Ce,onPress:_}),t[96]=n,t[97]=_,t[98]=x,t[99]=xe,t[100]=pe,t[101]=Ce,t[102]=ve):ve=t[102],t[103]!==K||t[104]!==te||t[105]!==ye||t[106]!==ve?(je=(0,P.jsxs)(P.Fragment,{children:[K,te,ye,ve]}),t[103]=K,t[104]=te,t[105]=ye,t[106]=ve,t[107]=je):je=t[107],je}function N(e){const t=(0,o.c)(70),{colors:n,username:l,totpCode:u,submitting:S,onChangeTotp:y,onSubmit:x,onBack:p}=e,{t:v}=(0,h.useTranslation)();let j,w,I,A,N,F,_,G,R,U,D,L,W;t[0]===Symbol.for("react.memo_cache_sentinel")?(j={gap:C.SPACING.sm},t[0]=j):j=t[0],t[1]!==n.foreground?(w={color:n.foreground,fontSize:15,fontWeight:"600"},t[1]=n.foreground,t[2]=w):w=t[2],t[3]!==v?(I=v("v2.login.twoFactor"),t[3]=v,t[4]=I):I=t[4],t[5]!==w||t[6]!==I?(A=(0,P.jsx)(c.default,{style:w,children:I}),t[5]=w,t[6]=I,t[7]=A):A=t[7],t[8]!==n.foregroundSubtle?(N={color:n.foregroundSubtle,fontSize:13},t[8]=n.foregroundSubtle,t[9]=N):N=t[9],t[10]!==v?(F=v("v2.login.totpHint"),t[10]=v,t[11]=F):F=t[11],t[12]!==n.foreground?(_={color:n.foreground},t[12]=n.foreground,t[13]=_):_=t[13],t[14]!==_||t[15]!==l?(G=(0,P.jsx)(c.default,{style:_,children:l}),t[14]=_,t[15]=l,t[16]=G):G=t[16],t[17]!==N||t[18]!==F||t[19]!==G?(R=(0,P.jsxs)(c.default,{style:N,children:[F,G,"."]}),t[17]=N,t[18]=F,t[19]=G,t[20]=R):R=t[20],t[21]!==A||t[22]!==R?(U=(0,P.jsxs)(b.default,{style:j,children:[A,R]}),t[21]=A,t[22]=R,t[23]=U):U=t[23],t[24]!==n?(D=T(n),t[24]=n,t[25]=D):D=t[25],t[26]!==v?(L=v("v2.login.verificationCode"),t[26]=v,t[27]=L):L=t[27],t[28]!==D||t[29]!==L?(W=(0,P.jsx)(c.default,{style:D,children:L}),t[28]=D,t[29]=L,t[30]=W):W=t[30];const H=n.foregroundSubtle;let B,E,O,V;t[31]!==n?(B=k(n),t[31]=n,t[32]=B):B=t[32],t[33]!==B?(E=Object.assign({},B,{textAlign:"center",fontSize:24,letterSpacing:8}),t[33]=B,t[34]=E):E=t[34],t[35]!==n.foregroundSubtle||t[36]!==y||t[37]!==E||t[38]!==u?(O=(0,P.jsx)(f.default,{value:u,onChangeText:y,placeholder:"123456",placeholderTextColor:H,keyboardType:"numeric",maxLength:6,textContentType:"oneTimeCode",autoFocus:!0,style:E}),t[35]=n.foregroundSubtle,t[36]=y,t[37]=E,t[38]=u,t[39]=O):O=t[39],t[40]!==W||t[41]!==O?(V=(0,P.jsxs)(b.default,{children:[W,O]}),t[40]=W,t[41]=O,t[42]=V):V=t[42];const M=6!==u.length||S;let q,J,K,Q,X,Y,Z,$,ee;return t[43]!==v?(q=v("v2.login.verifyAndSignIn"),t[43]=v,t[44]=q):q=t[44],t[45]!==v?(J=v("v2.login.verifying"),t[45]=v,t[46]=J):J=t[46],t[47]!==n||t[48]!==x||t[49]!==S||t[50]!==M||t[51]!==q||t[52]!==J?(K=(0,P.jsx)(z,{colors:n,disabled:M,submitting:S,label:q,loadingLabel:J,onPress:x}),t[47]=n,t[48]=x,t[49]=S,t[50]=M,t[51]=q,t[52]=J,t[53]=K):K=t[53],t[54]===Symbol.for("react.memo_cache_sentinel")?(Q={alignItems:"center"},t[54]=Q):Q=t[54],t[55]!==n.foregroundSubtle?(X={color:n.foregroundSubtle,fontSize:13},t[55]=n.foregroundSubtle,t[56]=X):X=t[56],t[57]!==v?(Y=v("v2.login.back"),t[57]=v,t[58]=Y):Y=t[58],t[59]!==X||t[60]!==Y?(Z=(0,P.jsx)(c.default,{style:X,children:Y}),t[59]=X,t[60]=Y,t[61]=Z):Z=t[61],t[62]!==p||t[63]!==Z?($=(0,P.jsx)(s.default,{accessibilityRole:"button",onPress:p,style:Q,children:Z}),t[62]=p,t[63]=Z,t[64]=$):$=t[64],t[65]!==U||t[66]!==V||t[67]!==K||t[68]!==$?(ee=(0,P.jsxs)(P.Fragment,{children:[U,V,K,$]}),t[65]=U,t[66]=V,t[67]=K,t[68]=$,t[69]=ee):ee=t[69],ee}function z(e){const t=(0,o.c)(17),{colors:l,disabled:u,submitting:f,label:b,loadingLabel:h,onPress:S}=e,y=u?.5:1;let x,p,v;t[0]!==l.primary||t[1]!==y?(x={backgroundColor:l.primary,opacity:y,borderRadius:C.RADIUS.md,paddingVertical:C.SPACING.lg,alignItems:"center",flexDirection:"row",justifyContent:"center",gap:C.SPACING.md},t[0]=l.primary,t[1]=y,t[2]=x):x=t[2],t[3]!==l.primaryForeground||t[4]!==f?(p=f&&(0,P.jsx)(n.default,{size:"small",color:l.primaryForeground}),t[3]=l.primaryForeground,t[4]=f,t[5]=p):p=t[5],t[6]!==l.primaryForeground?(v={color:l.primaryForeground,fontSize:16,fontWeight:"600"},t[6]=l.primaryForeground,t[7]=v):v=t[7];const j=f?h:b;let w,I;return t[8]!==v||t[9]!==j?(w=(0,P.jsx)(c.default,{style:v,children:j}),t[8]=v,t[9]=j,t[10]=w):w=t[10],t[11]!==u||t[12]!==S||t[13]!==x||t[14]!==p||t[15]!==w?(I=(0,P.jsxs)(s.default,{accessibilityRole:"button",disabled:u,onPress:S,style:x,children:[p,w]}),t[11]=u,t[12]=S,t[13]=x,t[14]=p,t[15]=w,t[16]=I):I=t[16],I}},3446,[15,17,240,244,136,252,147,112,262,20,786,3447,3448,2812,2587,2589,3449,813,10]);
|
|
15868
|
-
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sdkAuthClient",{enumerable:!0,get:function(){return n}}),e.login=async function(t,o,s,u=n){const{token:c,requiresTotp:f}=await u(t).login(o,s);return{status:f?'totp-required':'success',token:c}},e.verifyTotp=async function(t,o,s,u=n){return u(t).loginVerifyTotp(o,s)};var t=r(d[0]);const n=n=>(0,t.createSystem)({serverUrl:n})},3447,[2596]);
|
|
15869
|
-
__d(function(g,
|
|
15870
|
-
__d(function(g,
|
|
15871
|
-
__d(function(g,r,i,a,
|
|
15872
|
-
__d(function(g,r,i,a,
|
|
15873
|
-
__d(function(g,r,_i,a,m,e,d){"use strict";var t=r(d[0]).default;const s=["children"],n=["children"];var i,o=Object.create,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,u=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,y=(t,s,n,i)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let o of p(s))h.call(t,o)||o===n||l(t,o,{get:()=>s[o],enumerable:!(i=c(s,o))||i.enumerable});return t},f=(t,s,n)=>(n=null!=t?o(u(t)):{},y(!s&&t&&t.__esModule?n:l(n,"default",{value:t,enumerable:!0}),t)),b={};((t,s)=>{for(var n in s)l(t,n,{get:s[n],enumerable:!0})})(b,{Helmet:()=>Oe,HelmetData:()=>le,HelmetProvider:()=>pe}),m.exports=(i=b,y(l({},"__esModule",{value:!0}),i));var T=f(r(d[1])),O=f(r(d[2])),A=f(r(d[3])),j=f(r(d[1])),C=f(r(d[1])),w=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(w||{}),x={rel:["amphtml","canonical","alternate"]},v={type:["application/ld+json"]},$={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},k=Object.values(w),S={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},M=Object.entries(S).reduce((t,[s,n])=>(t[n]=s,t),{}),E="data-rh",P="defaultTitle",H="defer",D="encodeSpecialCharacters",L="onChangeClientState",I="titleTemplate",U="prioritizeSeoTags",N=(t,s)=>{for(let n=t.length-1;n>=0;n-=1){const i=t[n];if(Object.prototype.hasOwnProperty.call(i,s))return i[s]}return null},q=t=>{let s=N(t,"title");const n=N(t,I);if(Array.isArray(s)&&(s=s.join("")),n&&s)return n.replace(/%s/g,()=>s);const i=N(t,P);return s||i||void 0},_=t=>N(t,L)||(()=>{}),R=(t,s)=>s.filter(s=>void 0!==s[t]).map(s=>s[t]).reduce((t,s)=>Object.assign({},t,s),{}),z=(t,s)=>s.filter(t=>void 0!==t.base).map(t=>t.base).reverse().reduce((s,n)=>{if(!s.length){const i=Object.keys(n);for(let o=0;o<i.length;o+=1){const l=i[o].toLowerCase();if(-1!==t.indexOf(l)&&n[l])return s.concat(n)}}return s},[]),B=(t,s,n)=>{const i={};return n.filter(s=>{return!!Array.isArray(s[t])||(void 0!==s[t]&&(n=`Helmet: ${t} should be of type "Array". Instead found type "${typeof s[t]}"`,console&&"function"==typeof console.warn&&console.warn(n)),!1);var n}).map(s=>s[t]).reverse().reduce((t,n)=>{const o={};n.filter(t=>{let n;const l=Object.keys(t);for(let i=0;i<l.length;i+=1){const o=l[i],c=o.toLowerCase();-1===s.indexOf(c)||"rel"===n&&"canonical"===t[n].toLowerCase()||"rel"===c&&"stylesheet"===t[c].toLowerCase()||(n=c),-1===s.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!t[n])return!1;const c=t[n].toLowerCase();return i[n]||(i[n]={}),o[n]||(o[n]={}),!i[n][c]&&(o[n][c]=!0,!0)}).reverse().forEach(s=>t.push(s));const l=Object.keys(o);for(let t=0;t<l.length;t+=1){const s=l[t],n=Object.assign({},i[s],o[s]);i[s]=n}return t},[]).reverse()},F=(t,s)=>{if(Array.isArray(t)&&t.length)for(let n=0;n<t.length;n+=1){if(t[n][s])return!0}return!1},Y=t=>Array.isArray(t)?t.join(""):t,K=(t,s)=>{const n=Object.keys(t);for(let i=0;i<n.length;i+=1)if(s[n[i]]&&s[n[i]].includes(t[n[i]]))return!0;return!1},G=(t,s)=>Array.isArray(t)?t.reduce((t,n)=>(K(n,s)?t.priority.push(n):t.default.push(n),t),{priority:[],default:[]}):{default:t,priority:[]},W=(t,s)=>Object.assign({},t,{[s]:void 0}),J=["noscript","script","style"],Q=(t,s=!0)=>!1===s?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),V=t=>Object.keys(t).reduce((s,n)=>{const i=void 0!==t[n]?`${n}="${Q(t[n])}"`:`${n}`;return s?`${s} ${i}`:i},""),X=(t,s,n,i)=>{const o=V(n),l=Y(s);return o?`<${t} ${E}="true" ${o}>${Q(l,i)}</${t}>`:`<${t} ${E}="true">${Q(l,i)}</${t}>`},Z=(t,s,n=!0)=>s.reduce((s,i)=>{const o=i,l=Object.keys(o).filter(t=>!("innerHTML"===t||"cssText"===t)).reduce((t,s)=>{const i=void 0===o[s]?s:`${s}="${Q(o[s],n)}"`;return t?`${t} ${i}`:i},""),c=o.innerHTML||o.cssText||"",p=-1===J.indexOf(t);return`${s}<${t} ${E}="true" ${l}${p?"/>":`>${c}</${t}>`}`},""),ee=(t,s={})=>Object.keys(t).reduce((s,n)=>(s[S[n]||n]=t[n],s),s),te=(t,s,n)=>{const i=ee(n,{key:s,[E]:!0});return[C.default.createElement("title",i,s)]},re=(t,s)=>s.map((s,n)=>{const i={key:n,[E]:!0};return Object.keys(s).forEach(t=>{const n=S[t]||t;if("innerHTML"===n||"cssText"===n){const t=s.innerHTML||s.cssText;i.dangerouslySetInnerHTML={__html:t}}else i[n]=s[t]}),C.default.createElement(t,i)}),se=(t,s,n=!0)=>{switch(t){case"title":return{toComponent:()=>te(0,s.title,s.titleAttributes),toString:()=>X(t,s.title,s.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>ee(s),toString:()=>V(s)};default:return{toComponent:()=>re(t,s),toString:()=>Z(t,s,n)}}},ne=({metaTags:t,linkTags:s,scriptTags:n,encode:i})=>{const o=G(t,$),l=G(s,x),c=G(n,v);return{priorityMethods:{toComponent:()=>[...re("meta",o.priority),...re("link",l.priority),...re("script",c.priority)],toString:()=>`${se("meta",o.priority,i)} ${se("link",l.priority,i)} ${se("script",c.priority,i)}`},metaTags:o.default,linkTags:l.default,scriptTags:c.default}},ie=t=>{const{baseTag:s,bodyAttributes:n,encode:i=!0,htmlAttributes:o,noscriptTags:l,styleTags:c,title:p="",titleAttributes:u,prioritizeSeoTags:h}=t;let{linkTags:y,metaTags:f,scriptTags:b}=t,T={toComponent:()=>{},toString:()=>""};return h&&({priorityMethods:T,linkTags:y,metaTags:f,scriptTags:b}=ne(t)),{priority:T,base:se("base",s,i),bodyAttributes:se("bodyAttributes",n,i),htmlAttributes:se("htmlAttributes",o,i),link:se("link",y,i),meta:se("meta",f,i),noscript:se("noscript",l,i),script:se("script",b,i),style:se("style",c,i),title:se("title",{title:p,titleAttributes:u},i)}},oe=[],ae=!("undefined"==typeof window||!window.document||!window.document.createElement),le=class{instances=[];canUseDOM=ae;value={setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?oe:this.instances,add:t=>{(this.canUseDOM?oe:this.instances).push(t)},remove:t=>{const s=(this.canUseDOM?oe:this.instances).indexOf(t);(this.canUseDOM?oe:this.instances).splice(s,1)}}};constructor(t,s){this.context=t,this.canUseDOM=s||!1,s||(t.helmet=ie({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},ce=j.default.createContext({}),pe=class t extends j.Component{static canUseDOM=ae;constructor(s){super(s),this.helmetData=new le(this.props.context||{},t.canUseDOM)}render(){return j.default.createElement(ce.Provider,{value:this.helmetData.value},this.props.children)}},ue=r(d[1]),de=f(r(d[4])),he=(t,s)=>{const n=document.head||document.querySelector("head"),i=n.querySelectorAll(`${t}[${E}]`),o=[].slice.call(i),l=[];let c;return s&&s.length&&s.forEach(s=>{const n=document.createElement(t);for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t))if("innerHTML"===t)n.innerHTML=s.innerHTML;else if("cssText"===t)n.styleSheet?n.styleSheet.cssText=s.cssText:n.appendChild(document.createTextNode(s.cssText));else{const i=t,o=void 0===s[i]?"":s[i];n.setAttribute(t,o)}n.setAttribute(E,"true"),o.some((t,s)=>(c=s,n.isEqualNode(t)))?o.splice(c,1):l.push(n)}),o.forEach(t=>t.parentNode?.removeChild(t)),l.forEach(t=>n.appendChild(t)),{oldTags:o,newTags:l}},me=(t,s)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const i=n.getAttribute(E),o=i?i.split(","):[],l=[...o],c=Object.keys(s);for(const t of c){const i=s[t]||"";n.getAttribute(t)!==i&&n.setAttribute(t,i),-1===o.indexOf(t)&&o.push(t);const c=l.indexOf(t);-1!==c&&l.splice(c,1)}for(let t=l.length-1;t>=0;t-=1)n.removeAttribute(l[t]);o.length===l.length?n.removeAttribute(E):n.getAttribute(E)!==c.join(",")&&n.setAttribute(E,c.join(","))},ge=(t,s)=>{void 0!==t&&document.title!==t&&(document.title=Y(t)),me("title",s)},ye=(t,s)=>{const{baseTag:n,bodyAttributes:i,htmlAttributes:o,linkTags:l,metaTags:c,noscriptTags:p,onChangeClientState:u,scriptTags:h,styleTags:y,title:f,titleAttributes:b}=t;me("body",i),me("html",o),ge(f,b);const T={baseTag:he("base",n),linkTags:he("link",l),metaTags:he("meta",c),noscriptTags:he("noscript",p),scriptTags:he("script",h),styleTags:he("style",y)},O={},A={};Object.keys(T).forEach(t=>{const{newTags:s,oldTags:n}=T[t];s.length&&(O[t]=s),n.length&&(A[t]=T[t].oldTags)}),s&&s(),u(t,O,A)},fe=null,be=t=>{fe&&cancelAnimationFrame(fe),t.defer?fe=requestAnimationFrame(()=>{ye(t,()=>{fe=null})}):(ye(t),fe=null)},Te=class extends ue.Component{rendered=!1;shouldComponentUpdate(t){return!(0,de.default)(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:s}=this.props.context;let n=null;const i=(o=t.get().map(t=>{const s=Object.assign({},t.props);return delete s.context,s}),{baseTag:z(["href"],o),bodyAttributes:R("bodyAttributes",o),defer:N(o,H),encode:N(o,D),htmlAttributes:R("htmlAttributes",o),linkTags:B("link",["rel","href"],o),metaTags:B("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:B("noscript",["innerHTML"],o),onChangeClientState:_(o),scriptTags:B("script",["src","innerHTML"],o),styleTags:B("style",["cssText"],o),title:q(o),titleAttributes:R("titleAttributes",o),prioritizeSeoTags:F(o,U)});var o;pe.canUseDOM?be(i):ie&&(n=ie(i)),s(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Oe=class extends T.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(t){return!(0,O.default)(W(this.props,"helmetData"),W(t,"helmetData"))}mapNestedChildrenToProps(t,s){if(!s)return null;switch(t.type){case"script":case"noscript":return{innerHTML:s};case"style":return{cssText:s};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,s,n,i){return Object.assign({},s,{[t.type]:[...s[t.type]||[],Object.assign({},n,this.mapNestedChildrenToProps(t,i))]})}mapObjectTypeChildren(t,s,n,i){switch(t.type){case"title":return Object.assign({},s,{[t.type]:i,titleAttributes:Object.assign({},n)});case"body":return Object.assign({},s,{bodyAttributes:Object.assign({},n)});case"html":return Object.assign({},s,{htmlAttributes:Object.assign({},n)});default:return Object.assign({},s,{[t.type]:Object.assign({},n)})}}mapArrayTypeChildrenToProps(t,s){let n=Object.assign({},s);return Object.keys(t).forEach(s=>{n=Object.assign({},n,{[s]:t[s]})}),n}warnOnInvalidChildren(t,s){return(0,A.default)(k.some(s=>t.type===s),"function"==typeof t.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${k.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),(0,A.default)(!s||"string"==typeof s||Array.isArray(s)&&!s.some(t=>"string"!=typeof t),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(n,i){let o={};return T.default.Children.forEach(n,n=>{if(!n||!n.props)return;const l=n.props,{children:c}=l,p=t(l,s),u=Object.keys(p).reduce((t,s)=>(t[M[s]||s]=p[s],t),{});let{type:h}=n;switch("symbol"==typeof h?h=h.toString():this.warnOnInvalidChildren(n,c),h){case"Symbol(react.fragment)":i=this.mapChildrenToProps(c,i);break;case"link":case"meta":case"noscript":case"script":case"style":o=this.flattenArrayTypeChildren(n,o,u,c);break;default:i=this.mapObjectTypeChildren(n,i,u,c)}}),this.mapArrayTypeChildrenToProps(o,i)}render(){const s=this.props,{children:i}=s,o=t(s,n);let l=Object.assign({},o),{helmetData:c}=o;if(i&&(l=this.mapChildrenToProps(i,l)),c&&!(c instanceof le)){c=new le(c.context,!0),delete l.helmetData}return c?T.default.createElement(Te,Object.assign({},l,{context:c.value})):T.default.createElement(ce.Consumer,null,t=>T.default.createElement(Te,Object.assign({},l,{context:t})))}}},3452,[120,17,3453,323,3454]);
|
|
15874
|
-
__d(function(g,r,_i,_a,m,e,d){var t='undefined'!=typeof Element,n='function'==typeof Map,f='function'==typeof Set,o='function'==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(u,a){if(u===a)return!0;if(u&&a&&'object'==typeof u&&'object'==typeof a){if(u.constructor!==a.constructor)return!1;var c,s,l,p;if(Array.isArray(u)){if((c=u.length)!=a.length)return!1;for(s=c;0!==s--;)if(!i(u[s],a[s]))return!1;return!0}if(n&&u instanceof Map&&a instanceof Map){if(u.size!==a.size)return!1;for(p=u.entries();!(s=p.next()).done;)if(!a.has(s.value[0]))return!1;for(p=u.entries();!(s=p.next()).done;)if(!i(s.value[1],a.get(s.value[0])))return!1;return!0}if(f&&u instanceof Set&&a instanceof Set){if(u.size!==a.size)return!1;for(p=u.entries();!(s=p.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(a)){if((c=u.length)!=a.length)return!1;for(s=c;0!==s--;)if(u[s]!==a[s])return!1;return!0}if(u.constructor===RegExp)return u.source===a.source&&u.flags===a.flags;if(u.valueOf!==Object.prototype.valueOf&&'function'==typeof u.valueOf&&'function'==typeof a.valueOf)return u.valueOf()===a.valueOf();if(u.toString!==Object.prototype.toString&&'function'==typeof u.toString&&'function'==typeof a.toString)return u.toString()===a.toString();if((c=(l=Object.keys(u)).length)!==Object.keys(a).length)return!1;for(s=c;0!==s--;)if(!Object.prototype.hasOwnProperty.call(a,l[s]))return!1;if(t&&u instanceof Element)return!1;for(s=c;0!==s--;)if(('_owner'!==l[s]&&'__v'!==l[s]&&'__o'!==l[s]||!u.$$typeof)&&!i(u[l[s]],a[l[s]]))return!1;return!0}return u!=u&&a!=a}m.exports=function(t,n){try{return i(t,n)}catch(t){if((t.message||'').match(/stack|recursion/i))return console.warn('react-fast-compare cannot handle circular refs'),!1;throw t}}},3453,[]);
|
|
15875
|
-
__d(function(g,r,
|
|
15876
|
-
__d(function(g,r,i,a,m,e,d){"
|
|
15877
|
-
__d(function(g,r,
|
|
15832
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.GridMenuPanel=function(e){const l=(0,o.c)(27),{highlightOn:c,onToggleHighlight:S,showBoxes:T,onToggleShowBoxes:b,highlight:v,onSetHighlight:P}=e,{t:p}=(0,h.useTranslation)(),{colors:j}=(0,s.useTheme)();let C,_,w,y,B,G,H,A,I;l[0]!==p?(C=p("v2.gridMenu.highlightMaster"),l[0]=p,l[1]=C):C=l[1];l[2]!==c||l[3]!==S||l[4]!==C?(_=(0,x.jsx)(f.PanelToggleRow,{icon:u.Zap,label:C,value:c,onValueChange:S}),l[2]=c,l[3]=S,l[4]=C,l[5]=_):_=l[5];l[6]!==p?(w=p("v2.cameraMenu.boundingBoxes"),l[6]=p,l[7]=w):w=l[7];l[8]!==b||l[9]!==T||l[10]!==w?(y=(0,x.jsx)(f.PanelToggleRow,{icon:u.SquareDashed,label:w,value:T,onValueChange:b}),l[8]=b,l[9]=T,l[10]=w,l[11]=y):y=l[11];l[12]!==j.foregroundMuted?(B=[M.sectionLabel,{color:j.foregroundMuted}],l[12]=j.foregroundMuted,l[13]=B):B=l[13];l[14]!==p?(G=p("v2.gridBuilder.highlightTitle"),l[14]=p,l[15]=G):G=l[15];l[16]!==B||l[17]!==G?(H=(0,x.jsx)(t.default,{style:B,children:G}),l[16]=B,l[17]=G,l[18]=H):H=l[18];l[19]!==v||l[20]!==P?(A=(0,x.jsx)(f.HighlightTriggerRows,{highlight:v,onSetHighlight:P}),l[19]=v,l[20]=P,l[21]=A):A=l[21];l[22]!==_||l[23]!==y||l[24]!==H||l[25]!==A?(I=(0,x.jsxs)(n.default,{style:M.body,children:[_,y,H,A]}),l[22]=_,l[23]=y,l[24]=H,l[25]=A,l[26]=I):I=l[26];return I};var o=r(d[0]);r(d[1]);var n=e(r(d[2])),t=e(r(d[3])),l=e(r(d[4])),h=r(d[5]),u=r(d[6]),s=r(d[7]),c=r(d[8]),f=r(d[9]),x=r(d[10]);const M=l.default.create({body:{paddingHorizontal:c.SPACING.sm,paddingVertical:c.SPACING.xs},sectionLabel:{fontSize:12,fontWeight:'600',paddingTop:c.SPACING.md,paddingBottom:c.SPACING.xs}})},3411,[15,17,20,112,33,786,813,2587,2589,2838,10]);
|
|
15833
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.computeAutoLayout=t,e.computeGridLayout=function(o,c,n,u="auto",s=l){if('number'!=typeof u||u<1)return t(o,c,n,s);if(o<=0||c<=0||n<=0)return{cols:0,rows:0,cellW:0,cellH:0};const f=Math.floor(u),M=Math.ceil(o/f),h=Math.min(c/f,n/M*s);return{cols:f,rows:M,cellW:h,cellH:h/s}};const l=1.7777777777777777;function t(t,o,c,n=l){if(t<=0||o<=0||c<=0)return{cols:0,rows:0,cellW:0,cellH:0};let u={cols:1,rows:t,cellW:0,cellH:0},s=-1;for(let l=1;l<=t;l++){const f=Math.ceil(t/l),M=Math.min(o/l,c/f*n),h=M/n,w=M*h;w>s&&(s=w,u={cols:l,rows:f,cellW:M,cellH:h})}return u}},3412,[]);
|
|
15834
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);function o(){const o=(0,t.c)(1);let u;return o[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(n.CamerasManageScreen,{}),o[0]=u):u=o[0],u}},3413,[15,3414,10]);
|
|
15835
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.CamerasManageScreen=function(){const e=(0,o.c)(34),{t:s}=(0,S.useTranslation)(),{colors:u}=(0,C.useTheme)(),c=(0,h.useRouter)(),{data:f,isLoading:p}=(0,v.useAllCameras)();let y;e[0]!==f?(y=void 0===f?[]:f,e[0]=f,e[1]=y):y=e[1];const j=y,{setLocalName:H,setHidden:R,setOrder:T}=(0,A.useCameraPrefs)(),[D,E]=(0,n.useState)(j);let z,L,w;e[2]!==j?(z=()=>{E(j)},L=[j],e[2]=j,e[3]=z,e[4]=L):(z=e[3],L=e[4]);(0,n.useEffect)(z,L),e[5]!==T?(w=e=>{const{data:o}=e;E(o),T(o.map(k))},e[5]=T,e[6]=w):w=e[6];const _=w;let O;e[7]!==u||e[8]!==R||e[9]!==H?(O=e=>{const{item:o,drag:n,isActive:t}=e;return(0,I.jsx)(G,{camera:o,drag:n,isActive:t,colors:u,onRename:e=>H(o.id,e),onToggleHidden:e=>R(o.id,e)})},e[7]=u,e[8]=R,e[9]=H,e[10]=O):O=e[10];const V=O;let B,W,F,K,U,q;e[11]!==u.background?(B={flex:1,backgroundColor:u.background},e[11]=u.background,e[12]=B):B=e[12];e[13]!==s?(W=s("v2.cameras.manage"),e[13]=s,e[14]=W):W=e[14];e[15]!==c?(F=()=>c.back(),e[15]=c,e[16]=F):F=e[16];e[17]!==W||e[18]!==F?(K=(0,I.jsx)(N.ScreenHeader,{title:W,onBack:F,bordered:!0}),e[17]=W,e[18]=F,e[19]=K):K=e[19];e[20]!==j||e[21]!==u.foregroundMuted||e[22]!==u.foregroundSubtle||e[23]!==u.primary||e[24]!==D||e[25]!==_||e[26]!==p||e[27]!==V||e[28]!==s?(U=p?(0,I.jsx)(t.default,{style:M.centered,children:(0,I.jsx)(b.default,{color:u.primary})}):0===j.length?(0,I.jsx)(t.default,{style:M.centered,children:(0,I.jsx)(l.default,{style:{color:u.foregroundMuted,fontSize:15},children:s("v2.cameras.empty")})}):(0,I.jsx)(x.default,{data:D,keyExtractor:P,onDragEnd:_,renderItem:V,contentContainerStyle:M.content,activationDistance:12,ListHeaderComponent:(0,I.jsx)(l.default,{style:[M.hint,{color:u.foregroundSubtle}],children:s("v2.cameras.manageHint")})}),e[20]=j,e[21]=u.foregroundMuted,e[22]=u.foregroundSubtle,e[23]=u.primary,e[24]=D,e[25]=_,e[26]=p,e[27]=V,e[28]=s,e[29]=U):U=e[29];e[30]!==U||e[31]!==B||e[32]!==K?(q=(0,I.jsxs)(t.default,{style:B,children:[K,U]}),e[30]=U,e[31]=B,e[32]=K,e[33]=q):q=e[33];return q};var o=r(d[0]),n=r(d[1]),t=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),f=e(r(d[7])),b=e(r(d[8]));r(d[9]);var S=r(d[10]),h=r(d[11]),p=r(d[12]),x=e(p),y=r(d[13]),C=r(d[14]),j=r(d[15]),N=r(d[16]),v=r(d[17]),A=r(d[18]),I=r(d[19]);function P(e){return String(e.id)}function k(e){return e.id}function G(e){const f=(0,o.c)(59),{camera:b,drag:h,isActive:x,colors:C,onRename:j,onToggleHidden:N}=e,{t:v}=(0,S.useTranslation)(),[A,P]=(0,n.useState)(b.name);let k,G,H;f[0]!==b.name?(k=()=>{P(b.name)},G=[b.name],f[0]=b.name,f[1]=k,f[2]=G):(k=f[1],G=f[2]),(0,n.useEffect)(k,G),f[3]!==b.name||f[4]!==A||f[5]!==j?(H=()=>{A!==b.name&&j(A)},f[3]=b.name,f[4]=A,f[5]=j,f[6]=H):H=f[6];const R=H,T=b.name!==b.originalName,D=x?C.surfaceHover:C.surface,E=b.hidden?.55:1;let z,L,w,_;f[7]!==C.border||f[8]!==D||f[9]!==E?(z=[M.row,{backgroundColor:D,borderColor:C.border,opacity:E}],f[7]=C.border,f[8]=D,f[9]=E,f[10]=z):z=f[10],f[11]!==v?(L=v("v2.cameras.reorderHandle"),f[11]=v,f[12]=L):L=f[12],f[13]!==C.foregroundMuted?(w=(0,I.jsx)(y.GripVertical,{size:20,color:C.foregroundMuted}),f[13]=C.foregroundMuted,f[14]=w):w=f[14],f[15]!==h||f[16]!==L||f[17]!==w?(_=(0,I.jsx)(c.default,{accessibilityRole:"button",accessibilityLabel:L,onLongPress:h,delayLongPress:150,style:M.handle,children:w}),f[15]=h,f[16]=L,f[17]=w,f[18]=_):_=f[18];const O=b.online?C.success:C.foregroundDisabled;let V,B,W,F,K,U,q;f[19]!==O?(V=(0,I.jsx)(t.default,{style:[M.statusDot,{backgroundColor:O}]}),f[19]=O,f[20]=V):V=f[20],f[21]!==C.foreground?(B=[M.input,{color:C.foreground}],f[21]=C.foreground,f[22]=B):B=f[22],f[23]!==b.originalName||f[24]!==C.foregroundSubtle||f[25]!==R||f[26]!==A||f[27]!==B?(W=(0,I.jsx)(s.default,{value:A,onChangeText:P,onBlur:R,onSubmitEditing:R,returnKeyType:"done",placeholder:b.originalName,placeholderTextColor:C.foregroundSubtle,selectTextOnFocus:!0,style:B}),f[23]=b.originalName,f[24]=C.foregroundSubtle,f[25]=R,f[26]=A,f[27]=B,f[28]=W):W=f[28],f[29]!==V||f[30]!==W?(F=(0,I.jsxs)(t.default,{style:M.nameRow,children:[V,W]}),f[29]=V,f[30]=W,f[31]=F):F=f[31],f[32]!==b.originalName||f[33]!==C.foregroundSubtle||f[34]!==T?(K=T?(0,I.jsx)(l.default,{style:[M.original,{color:C.foregroundSubtle}],numberOfLines:1,children:b.originalName}):null,f[32]=b.originalName,f[33]=C.foregroundSubtle,f[34]=T,f[35]=K):K=f[35],f[36]!==F||f[37]!==K?(U=(0,I.jsxs)(t.default,{style:M.body,children:[F,K]}),f[36]=F,f[37]=K,f[38]=U):U=f[38],f[39]!==b.hidden||f[40]!==C.foregroundMuted?(q=b.hidden?(0,I.jsx)(y.EyeOff,{size:16,color:C.foregroundMuted}):null,f[39]=b.hidden,f[40]=C.foregroundMuted,f[41]=q):q=f[41];const J=!b.hidden;let Q,X,Y,Z;return f[42]!==N?(Q=e=>N(!e),f[42]=N,f[43]=Q):Q=f[43],f[44]!==C.border||f[45]!==C.primary?(X={false:C.border,true:C.primary},f[44]=C.border,f[45]=C.primary,f[46]=X):X=f[46],f[47]!==C.backgroundElevated||f[48]!==C.border||f[49]!==J||f[50]!==Q||f[51]!==X?(Y=(0,I.jsx)(u.default,{value:J,onValueChange:Q,trackColor:X,thumbColor:C.backgroundElevated,ios_backgroundColor:C.border}),f[47]=C.backgroundElevated,f[48]=C.border,f[49]=J,f[50]=Q,f[51]=X,f[52]=Y):Y=f[52],f[53]!==U||f[54]!==q||f[55]!==Y||f[56]!==z||f[57]!==_?(Z=(0,I.jsx)(p.ScaleDecorator,{children:(0,I.jsxs)(t.default,{style:z,children:[_,U,q,Y]})}),f[53]=U,f[54]=q,f[55]=Y,f[56]=z,f[57]=_,f[58]=Z):Z=f[58],Z}const M=f.default.create({centered:{flex:1,alignItems:'center',justifyContent:'center',padding:j.SPACING['2xl']},content:{padding:j.SPACING.md,gap:j.SPACING.md},hint:{fontSize:13,lineHeight:18,paddingHorizontal:j.SPACING.sm,paddingTop:j.SPACING.sm,paddingBottom:j.SPACING.md},row:{flexDirection:'row',alignItems:'center',gap:j.SPACING.lg,borderWidth:1,borderRadius:j.RADIUS.md,paddingVertical:j.SPACING.md,paddingHorizontal:j.SPACING.lg},handle:{paddingVertical:j.SPACING.sm,paddingRight:j.SPACING.xs},body:{flex:1,gap:2},nameRow:{flexDirection:'row',alignItems:'center',gap:j.SPACING.md},statusDot:{width:8,height:8,borderRadius:4},input:{flex:1,fontSize:16,fontWeight:'600',paddingVertical:0},original:{fontSize:12,marginLeft:8+j.SPACING.md}})},3414,[15,17,20,112,262,260,252,33,240,136,786,743,3415,813,2587,2589,2709,2739,2790,10]);
|
|
15836
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);Object.keys(o).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return o[e]}})});var c=r(d[2]);Object.keys(c).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return c[e]}})});var u=r(d[3]);Object.keys(u).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return u[e]}})});var f=r(d[4]);Object.keys(f).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return f[e]}})});var l=n.default},3415,[3416,3431,3433,3436,3437]);
|
|
15837
|
+
__d(function(g,r,_i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return H}});var t=r(_d[0]),n=e(t),l=e(r(_d[1])),i=r(_d[2]),o=r(_d[3]),u=e(o),s=e(r(_d[4])),c=r(_d[5]),d=e(r(_d[6])),v=e(r(_d[7])),_=e(r(_d[8])),f=r(_d[9]),h=e(f),S=r(_d[10]),b=e(S),D=e(r(_d[11])),p=r(_d[12]),A=r(_d[13]),O=e(r(_d[14])),x=r(_d[15]);function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},I.apply(this,arguments)}const w=u.default.createAnimatedComponent(i.FlatList),J={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs1(){const{isTouchActiveNative}=this.__closure;return isTouchActiveNative.value;}"},C={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs2(cur,prev){const{touchTranslate,activeIndexAnim,disabled,runOnJS,onRelease,onDragEnd,spacerIndexAnim}=this.__closure;if(cur!==prev&&!cur){const hasMoved=!!touchTranslate.value;if(!hasMoved&&activeIndexAnim.value>=0&&!disabled.value){runOnJS(onRelease)(activeIndexAnim.value);runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});}}}"},E={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs3(){const{spacerIndexAnim}=this.__closure;return spacerIndexAnim.value;}"},k={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs4(cur,prev){const{runOnJS,onPlaceholderIndexChange}=this.__closure;if(prev!==null&&cur!==prev&&cur>=0&&prev>=0){runOnJS(onPlaceholderIndexChange)(cur);}}"},T={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs5(){const{runOnJS,onContainerTouchEnd}=this.__closure;runOnJS(onContainerTouchEnd)();}"},R={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs6(){const{runOnJS,onContainerTouchStart}=this.__closure;runOnJS(onContainerTouchStart)();}"},y={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs7(evt){const{gestureDisabled,isTouchActiveNative,horizontalAnim,touchTranslate,autoScrollDistance,panGestureState,activeIndexAnim,disabled,runOnJS,onRelease,placeholderOffset,activeCellOffset,withSpring,animationConfigRef,onDragEnd,spacerIndexAnim}=this.__closure;if(gestureDisabled.value)return;isTouchActiveNative.value=false;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation+autoScrollDistance.value;panGestureState.value=evt.state;if(activeIndexAnim.value===-1||disabled.value)return;disabled.value=true;runOnJS(onRelease)(activeIndexAnim.value);const springTo=placeholderOffset.value-activeCellOffset.value;touchTranslate.value=withSpring(springTo,animationConfigRef.value,function(){runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;});}"},z={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs8(evt){const{gestureDisabled,panGestureState,horizontalAnim,touchTranslate}=this.__closure;if(gestureDisabled.value)return;panGestureState.value=evt.state;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation;}"},F={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs9(evt){const{gestureDisabled,disabled,panGestureState}=this.__closure;gestureDisabled.value=disabled.value;if(gestureDisabled.value)return;panGestureState.value=evt.state;}"},L={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs10(){const{runOnJS,onDragEnd,activeIndexAnim,spacerIndexAnim,disabled}=this.__closure;runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;}"},N={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs11(evt){const{scrollOffset,horizontalAnim,runOnJS,onScroll}=this.__closure;scrollOffset.value=horizontalAnim.value?evt.contentOffset.x:evt.contentOffset.y;runOnJS(onScroll)(scrollOffset.value);}"};function P(e,t){return n.default.createElement(_.default,e,n.default.createElement(h.default,null,n.default.createElement(b.default,{flatListRef:t},n.default.createElement(G,e))))}const G=(0,x.typedMemo)(function(e){const{cellDataRef:_,containerRef:h,flatlistRef:b,keyToIndexRef:x,propsRef:P,animationConfigRef:G}=(0,S.useRefs)(),{activeCellOffset:H,activeCellSize:M,activeIndexAnim:V,containerSize:j,scrollOffset:Y,scrollViewSize:U,spacerIndexAnim:X,horizontalAnim:K,placeholderOffset:B,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,isTouchActiveNative:Z,viewableIndexMin:$,viewableIndexMax:ee,disabled:te}=(0,f.useAnimatedValues)(),ae=(0,A.useStableCallback)(()=>{V.value=-1,X.value=-1,q.value=0,M.value=-1,H.value=-1,oe(null)}),{dragHitSlop:ne=c.DEFAULT_PROPS.dragHitSlop,scrollEnabled:le=c.DEFAULT_PROPS.scrollEnabled,activationDistance:re=c.DEFAULT_PROPS.activationDistance}=e;let[ie,oe]=(0,t.useState)(null);const[ue,se]=(0,t.useState)(!P.current.enableLayoutAnimationExperimental),ce=(0,A.useStableCallback)((t,n)=>{if(!e.keyExtractor)throw new Error("You must provide a keyExtractor to DraggableFlatList");return e.keyExtractor(t,n)}),de=(0,t.useRef)(e.data),ve=de.current.map(ce).join("")!==e.data.map(ce).join("");de.current=e.data,ve&&(ie=null,l.default.runAfterInteractions(()=>{ae()})),(0,t.useEffect)(()=>{P.current.enableLayoutAnimationExperimental&&(ie?se(!0):setTimeout(()=>{se(!1)},100))},[ie]),(0,t.useLayoutEffect)(()=>{e.data.forEach((e,t)=>{const n=ce(e,t);x.current.set(n,t)})},[e.data,ce,x]);const fe=(0,A.useStableCallback)(e=>{if(te.value)return;const t=x.current.get(e),n=_.current.get(e);n&&(H.value=n.measurements.offset,M.value=n.measurements.size);const{onDragBegin:l}=P.current;void 0!==t&&(X.value=t,V.value=t,oe(e),null==l||l(t))}),he=(0,t.useMemo)(()=>({activeKey:ie,extraData:e.extraData}),[ie,e.extraData]),me=(0,t.useCallback)(t=>{let{item:l,index:i}=t;const o=ce(l,i);return i!==x.current.get(o)&&x.current.set(o,i),n.default.createElement(v.default,{item:l,itemKey:o,renderItem:e.renderItem,drag:fe,extraData:e.extraData})},[e.renderItem,e.extraData,fe,ce]),ge=(0,A.useStableCallback)(t=>{var n;null===(n=e.onRelease)||void 0===n||n.call(e,t)}),Se=(0,A.useStableCallback)(t=>{let{from:n,to:l}=t;const{onDragEnd:i,data:o}=e,u=[...o];n!==l&&(u.splice(n,1),u.splice(l,0,o[n])),null==i||i({from:n,to:l,data:u}),oe(null)}),be=(0,A.useStableCallback)(t=>{var n;null===(n=e.onPlaceholderIndexChange)||void 0===n||n.call(e,t)});(0,o.useAnimatedReaction)((function({_worklet_12667785060637_init_data:e,isTouchActiveNative:t}){const n=function(){return t.value};return n.__closure={isTouchActiveNative:t},n.__workletHash=0xb8572d4211d,n.__initData=e,n})({_worklet_12667785060637_init_data:J,isTouchActiveNative:Z}),(function({_worklet_3017769988260_init_data:e,touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s}){const c=function(e,c){if(e!==c&&!e){!!!t.value&&n.value>=0&&!l.value&&(i(o)(n.value),i(u)({from:n.value,to:s.value}))}};return c.__closure={touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s},c.__workletHash=3017769988260,c.__initData=e,c})({_worklet_3017769988260_init_data:C,touchTranslate:q,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,onDragEnd:Se,spacerIndexAnim:X}),[Z,Se,ge]),(0,o.useAnimatedReaction)((function({_worklet_6176791664127_init_data:e,spacerIndexAnim:t}){const n=function(){return t.value};return n.__closure={spacerIndexAnim:t},n.__workletHash=6176791664127,n.__initData=e,n})({_worklet_6176791664127_init_data:E,spacerIndexAnim:X}),(function({_worklet_2590604232580_init_data:e,runOnJS:t,onPlaceholderIndexChange:n}){const l=function(e,l){null!==l&&e!==l&&e>=0&&l>=0&&t(n)(e)};return l.__closure={runOnJS:t,onPlaceholderIndexChange:n},l.__workletHash=2590604232580,l.__initData=e,l})({_worklet_2590604232580_init_data:k,runOnJS:o.runOnJS,onPlaceholderIndexChange:be}),[X]);const De=(0,o.useSharedValue)(!1),pe=i.Gesture.Pan().onBegin((function({_worklet_7787583163440_init_data:e,gestureDisabled:t,disabled:n,panGestureState:l}){const i=function(e){t.value=n.value,t.value||(l.value=e.state)};return i.__closure={gestureDisabled:t,disabled:n,panGestureState:l},i.__workletHash=7787583163440,i.__initData=e,i})({_worklet_7787583163440_init_data:F,gestureDisabled:De,disabled:te,panGestureState:W})).onUpdate((function({_worklet_11677334153389_init_data:e,gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i}){const o=function(e){if(t.value)return;n.value=e.state;const o=l.value?e.translationX:e.translationY;i.value=o};return o.__closure={gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i},o.__workletHash=0xa9ed75aa8ad,o.__initData=e,o})({_worklet_11677334153389_init_data:z,gestureDisabled:De,panGestureState:W,horizontalAnim:K,touchTranslate:q})).onEnd((function({_worklet_13600115403067_init_data:e,gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D}){const p=function(e){if(t.value)return;n.value=!1;const p=l.value?e.translationX:e.translationY;if(i.value=p+o.value,u.value=e.state,-1===s.value||c.value)return;c.value=!0,d(v)(s.value);const A=_.value-f.value;i.value=h(A,S.value,(function({_worklet_9458151985595_init_data:e,runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o}){const u=function(){t(n)({from:l.value,to:i.value}),o.value=!1};return u.__closure={runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o},u.__workletHash=9458151985595,u.__initData=e,u})({_worklet_9458151985595_init_data:L,runOnJS:d,onDragEnd:b,activeIndexAnim:s,spacerIndexAnim:D,disabled:c}))};return p.__closure={gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D},p.__workletHash=0xc5e860c293b,p.__initData=e,p})({_worklet_13600115403067_init_data:y,gestureDisabled:De,isTouchActiveNative:Z,horizontalAnim:K,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,placeholderOffset:B,activeCellOffset:H,withSpring:o.withSpring,animationConfigRef:G,onDragEnd:Se,spacerIndexAnim:X})).onTouchesDown((function({_worklet_2544844199545_init_data:e,runOnJS:t,onContainerTouchStart:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchStart:n},l.__workletHash=2544844199545,l.__initData=e,l})({_worklet_2544844199545_init_data:R,runOnJS:o.runOnJS,onContainerTouchStart:()=>(te.value||(Z.value=!0),!1)})).onTouchesUp((function({_worklet_8529291078106_init_data:e,runOnJS:t,onContainerTouchEnd:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchEnd:n},l.__workletHash=8529291078106,l.__initData=e,l})({_worklet_8529291078106_init_data:T,runOnJS:o.runOnJS,onContainerTouchEnd:()=>{Z.value=!1}}));if(ne&&pe.hitSlop(ne),re){const t=[-re,re];e.horizontal?pe.activeOffsetX(t):pe.activeOffsetY(t)}const Ae=(0,A.useStableCallback)(t=>{var n;null===(n=e.onScrollOffsetChange)||void 0===n||n.call(e,t)}),Oe=(0,o.useAnimatedScrollHandler)({onScroll:(function({_worklet_11729156081231_init_data:e,scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i}){const o=function(e){t.value=n.value?e.contentOffset.x:e.contentOffset.y,l(i)(t.value)};return o.__closure={scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i},o.__workletHash=0xaaae82e864f,o.__initData=e,o})({_worklet_11729156081231_init_data:N,scrollOffset:Y,horizontalAnim:K,runOnJS:o.runOnJS,onScroll:Ae})},[K]);(0,p.useAutoScroll)();const xe=(0,A.useStableCallback)(t=>{var n;const l=t.viewableItems.filter(e=>e.isViewable).map(e=>e.index).filter(e=>"number"==typeof e),i=Math.min(...l),o=Math.max(...l);$.value=i,ee.value=o,null===(n=e.onViewableItemsChanged)||void 0===n||n.call(e,t)});return n.default.createElement(D.default,{activeKey:ie,keyExtractor:ce,horizontal:!!e.horizontal,layoutAnimationDisabled:ue},n.default.createElement(i.GestureDetector,{gesture:pe},n.default.createElement(u.default.View,{style:e.containerStyle,ref:h,onLayout:t=>{var n;let{nativeEvent:{layout:l}}=t;const{width:i,height:o}=l;j.value=e.horizontal?i:o,null===(n=e.onContainerLayout)||void 0===n||n.call(e,{layout:l,containerRef:h})}},e.renderPlaceholder&&n.default.createElement(d.default,{renderPlaceholder:e.renderPlaceholder}),n.default.createElement(w,I({},e,{data:e.data,onViewableItemsChanged:xe,CellRendererComponent:s.default,ref:b,onContentSizeChange:(t,n)=>{var l;U.value=e.horizontal?t:n,null===(l=e.onContentSizeChange)||void 0===l||l.call(e,t,n)},scrollEnabled:!ie&&le,renderItem:me,extraData:he,keyExtractor:ce,onScroll:Oe,scrollEventThrottle:16,simultaneousHandlers:e.simultaneousHandlers,removeClippedSubviews:!1})),!!e.onScrollOffsetChange&&n.default.createElement(O.default,{onScrollOffsetChange:e.onScrollOffsetChange,scrollOffset:Y}))))});var H=n.default.forwardRef(P)},3416,[17,155,2864,2952,3417,3419,3427,3428,3422,3421,3423,3418,3429,3426,3430,3424]);
|
|
15838
|
+
__d(function(g,r,_i,a,m,_e,d){"use strict";const t=["item","index","onLayout","children"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return R}});var n=e(r(d[0])),o=r(d[1]),i=e(o),l=e(r(d[2])),s=r(d[3]),u=e(s),c=r(d[4]),f=r(d[5]),_=r(d[6]),h=r(d[7]),y=r(d[8]),C=r(d[9]),b=e(r(d[10])),v=r(d[11]);function L(){return L=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},L.apply(this,arguments)}const A={code:"function reactNativeDraggableFlatlist_CellRendererComponentJs1(){const{translate,isWeb,heldTanslate,activeKey,horizontalAnim}=this.__closure;if(translate.value&&!isWeb){heldTanslate.value=translate.value;}const t=activeKey?translate.value:heldTanslate.value;return{transform:[horizontalAnim.value?{translateX:t}:{translateY:t}]};}"},D={code:"function reactNativeDraggableFlatlist_CellRendererComponentJs2(t,_layoutDisabled){const{stashConfig,getStashedConfig}=this.__closure;if(!t)return;const config=global.LayoutAnimationRepository.configs[t];if(config)stashConfig(t,config);const stashedConfig=getStashedConfig(t);if(_layoutDisabled){global.LayoutAnimationRepository.removeConfig(t);}else if(stashedConfig){global.LayoutAnimationRepository.registerConfig(t,stashedConfig);}}"};var R=(0,h.typedMemo)(function(e){const{item:h,index:R,onLayout:F,children:k}=e,w=(0,n.default)(e,t),N=(0,o.useRef)(null),{cellDataRef:x,propsRef:z,containerRef:E}=(0,y.useRefs)(),{horizontalAnim:O,scrollOffset:W}=(0,C.useAnimatedValues)(),{activeKey:T,keyExtractor:K,horizontal:H,layoutAnimationDisabled:J}=(0,c.useDraggableFlatListContext)(),V=K(h,R),j=(0,s.useSharedValue)(-1),I=(0,s.useSharedValue)(-1),M=(0,s.useSharedValue)(0),P=(0,_.useCellTranslate)({cellOffset:j,cellSize:I,cellIndex:R}),U=T===V,X=(0,s.useAnimatedStyle)((function({_worklet_9493151677458_init_data:t,translate:e,isWeb:n,heldTanslate:o,activeKey:i,horizontalAnim:l}){const s=function(){e.value&&!n&&(o.value=e.value);const t=i?e.value:o.value;return{transform:[l.value?{translateX:t}:{translateY:t}]}};return s.__closure={translate:e,isWeb:n,heldTanslate:o,activeKey:i,horizontalAnim:l},s.__workletHash=9493151677458,s.__initData=t,s})({_worklet_9493151677458_init_data:A,translate:P,isWeb:f.isWeb,heldTanslate:M,activeKey:T,horizontalAnim:O}),[P,T]),Y=(0,v.useStableCallback)(()=>{const t=(t,e,n,o)=>{f.isWeb&&H&&(t+=W.value);const i=H?t:e,l=H?n:o;x.current.set(V,{measurements:{size:l,offset:i}}),I.value=l,j.value=i},e=()=>{var t;null!==(t=z.current)&&void 0!==t&&t.debug&&console.log(`## on measure fail, index: ${R}`)},n=E.current,o=N.current,i=n;o&&i&&o.measureLayout(i,t,e)}),q=(0,v.useStableCallback)(t=>{M.value=0,Y(),F&&t&&F(t)});(0,o.useEffect)(()=>{f.isWeb&&requestAnimationFrame(()=>{q()})},[R,q]);const $=(0,o.useMemo)(()=>({elevation:U?1:0,zIndex:U?999:0,flexDirection:H?"row":"column"}),[U,H]),{itemEnteringAnimation:B,itemExitingAnimation:G,itemLayoutAnimation:Q}=z.current;return(0,o.useEffect)(()=>{if(!z.current.enableLayoutAnimationExperimental)return;const t=(0,l.default)(N.current);(0,s.runOnUI)((function({_worklet_10702969925975_init_data:t,stashConfig:e,getStashedConfig:n}){const o=function(t,o){if(!t)return;const i=g.LayoutAnimationRepository.configs[t];i&&e(t,i);const l=n(t);o?g.LayoutAnimationRepository.removeConfig(t):l&&g.LayoutAnimationRepository.registerConfig(t,l)};return o.__closure={stashConfig:e,getStashedConfig:n},o.__workletHash=0x9bbfab87157,o.__initData=t,o})({_worklet_10702969925975_init_data:D,stashConfig:S,getStashedConfig:p}))(t,J)},[J]),i.default.createElement(u.default.View,L({},w,{ref:N,onLayout:q,entering:B,exiting:G,layout:z.current.enableLayoutAnimationExperimental?Q:void 0,style:[e.style,$,X],pointerEvents:T?"none":"auto"}),i.default.createElement(b.default,{isActive:U},k))});(0,s.runOnUI)((function({_worklet_4071045011151_init_data:t}){const e=function(){g.RNDFLLayoutAnimationConfigStash={}};return e.__closure={},e.__workletHash=4071045011151,e.__initData=t,e})({_worklet_4071045011151_init_data:{code:"function reactNativeDraggableFlatlist_CellRendererComponentJs3(){global.RNDFLLayoutAnimationConfigStash={};}"}}))();const S=(function({_worklet_17335747121283_init_data:t}){const e=function(t,e){g.RNDFLLayoutAnimationConfigStash||(g.RNDFLLayoutAnimationConfigStash={}),g.RNDFLLayoutAnimationConfigStash[t]=e};return e.__closure={},e.__workletHash=0xfc44b0c9083,e.__initData=t,e})({_worklet_17335747121283_init_data:{code:"function stashConfig_reactNativeDraggableFlatlist_CellRendererComponentJs4(tag,config){if(!global.RNDFLLayoutAnimationConfigStash)global.RNDFLLayoutAnimationConfigStash={};global.RNDFLLayoutAnimationConfigStash[tag]=config;}"}}),p=(function({_worklet_1208922414792_init_data:t}){const e=function(t){return g.RNDFLLayoutAnimationConfigStash?g.RNDFLLayoutAnimationConfigStash[t]:null};return e.__closure={},e.__workletHash=1208922414792,e.__initData=t,e})({_worklet_1208922414792_init_data:{code:"function getStashedConfig_reactNativeDraggableFlatlist_CellRendererComponentJs5(tag){if(!global.RNDFLLayoutAnimationConfigStash)return null;return global.RNDFLLayoutAnimationConfigStash[tag];}"}})},3417,[120,17,122,2952,3418,3419,3420,3424,3423,3421,3425,3426]);
|
|
15839
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),_e.useDraggableFlatListContext=function(){const e=(0,t.useContext)(o);if(!e)throw new Error("useDraggableFlatListContext must be called within DraggableFlatListProvider");return e};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const o=n.default.createContext(void 0);function l(e){let{activeKey:l,keyExtractor:u,horizontal:c,layoutAnimationDisabled:s,children:f}=e;const b=(0,t.useMemo)(()=>({activeKey:l,keyExtractor:u,horizontal:c,layoutAnimationDisabled:s}),[l,u,c,s]);return n.default.createElement(o.Provider,{value:b},f)}},3418,[17]);
|
|
15840
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SCROLL_POSITION_TOLERANCE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"DEFAULT_ANIMATION_CONFIG",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"DEFAULT_PROPS",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isIOS",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isAndroid",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isWeb",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isReanimatedV2",{enumerable:!0,get:function(){return f}}),r(d[0]);var t=r(d[1]);const n=2,o={damping:20,mass:.2,stiffness:100,overshootClamping:!1,restSpeedThreshold:.2,restDisplacementThreshold:.2},u={autoscrollThreshold:30,autoscrollSpeed:100,animationConfig:o,scrollEnabled:!0,dragHitSlop:0,activationDistance:0,dragItemOverflow:!1},l=!1,s=!1,c=!0,f=!!t.useSharedValue;if(!f)throw new Error("Your version of react-native-reanimated is too old for react-native-draggable-flatlist!")},3419,[136,2952]);
|
|
15841
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useCellTranslate=function(c){let{cellIndex:f,cellSize:u,cellOffset:o}=c;const{activeIndexAnim:x,activeCellSize:A,hoverOffset:I,spacerIndexAnim:h,placeholderOffset:S,hoverAnim:O,viewableIndexMin:z,viewableIndexMax:w}=(0,t.useAnimatedValues)(),{activeKey:p}=(0,n.useDraggableFlatListContext)(),{animationConfigRef:_}=(0,v.useRefs)(),C=(0,l.useDerivedValue)((function({_worklet_14653729795643_init_data:l,cellIndex:t,activeIndexAnim:n,viewableIndexMin:v,viewableIndexMax:s,activeKey:c,hoverOffset:f,activeCellSize:u,cellOffset:o,cellSize:x,spacerIndexAnim:A,placeholderOffset:I,hoverAnim:h,withSpring:S,animationConfigRef:O}){const z=function(){const l=t===n.value,z=!l&&(t<v.value||t>s.value);if(!c||n.value<0||z)return 0;const w=t<n.value,p=t>n.value,_=f.value+u.value,C=o.value+x.value/2,b=o.value+x.value;let P=-1;if(p?_>=o.value&&_<C?P=t-1:_>=C&&_<b&&(P=t):w&&(f.value<b&&f.value>=C?P=t+1:f.value>=o.value&&f.value<C&&(P=t)),-1!==P&&P!==A.value&&(A.value=P),A.value===t){const l=p?x.value+(o.value-u.value):o.value;I.value=l}if(l)return h.value;const M=(p?t<=A.value:t>=A.value)?u.value*(p?-1:1):0;return S(M,O.value)};return z.__closure={cellIndex:t,activeIndexAnim:n,viewableIndexMin:v,viewableIndexMax:s,activeKey:c,hoverOffset:f,activeCellSize:u,cellOffset:o,cellSize:x,spacerIndexAnim:A,placeholderOffset:I,hoverAnim:h,withSpring:S,animationConfigRef:O},z.__workletHash=0xd53d65bee3b,z.__initData=l,z})({_worklet_14653729795643_init_data:s,cellIndex:f,activeIndexAnim:x,viewableIndexMin:z,viewableIndexMax:w,activeKey:p,hoverOffset:I,activeCellSize:A,cellOffset:o,cellSize:u,spacerIndexAnim:h,placeholderOffset:S,hoverAnim:O,withSpring:l.withSpring,animationConfigRef:_}),[p,f]);return C};var l=r(d[0]),t=r(d[1]),n=r(d[2]),v=r(d[3]);const s={code:"function reactNativeDraggableFlatlist_useCellTranslateJs1(){const{cellIndex,activeIndexAnim,viewableIndexMin,viewableIndexMax,activeKey,hoverOffset,activeCellSize,cellOffset,cellSize,spacerIndexAnim,placeholderOffset,hoverAnim,withSpring,animationConfigRef}=this.__closure;const isActiveCell=cellIndex===activeIndexAnim.value;const isOutsideViewableRange=!isActiveCell&&(cellIndex<viewableIndexMin.value||cellIndex>viewableIndexMax.value);if(!activeKey||activeIndexAnim.value<0||isOutsideViewableRange){return 0;}const isBeforeActive=cellIndex<activeIndexAnim.value;const isAfterActive=cellIndex>activeIndexAnim.value;const hoverPlusActiveSize=hoverOffset.value+activeCellSize.value;const offsetPlusHalfSize=cellOffset.value+cellSize.value/2;const offsetPlusSize=cellOffset.value+cellSize.value;let result=-1;if(isAfterActive){if(hoverPlusActiveSize>=cellOffset.value&&hoverPlusActiveSize<offsetPlusHalfSize){result=cellIndex-1;}else if(hoverPlusActiveSize>=offsetPlusHalfSize&&hoverPlusActiveSize<offsetPlusSize){result=cellIndex;}}else if(isBeforeActive){if(hoverOffset.value<offsetPlusSize&&hoverOffset.value>=offsetPlusHalfSize){result=cellIndex+1;}else if(hoverOffset.value>=cellOffset.value&&hoverOffset.value<offsetPlusHalfSize){result=cellIndex;}}if(result!==-1&&result!==spacerIndexAnim.value){spacerIndexAnim.value=result;}if(spacerIndexAnim.value===cellIndex){const newPlaceholderOffset=isAfterActive?cellSize.value+(cellOffset.value-activeCellSize.value):cellOffset.value;placeholderOffset.value=newPlaceholderOffset;}if(isActiveCell){return hoverAnim.value;}const shouldTranslate=isAfterActive?cellIndex<=spacerIndexAnim.value:cellIndex>=spacerIndexAnim.value;const translationAmt=shouldTranslate?activeCellSize.value*(isAfterActive?-1:1):0;return withSpring(translationAmt,animationConfigRef.value);}"}},3420,[2952,3421,3418,3423]);
|
|
15842
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return s}}),_e.useAnimatedValues=function(){const e=(0,t.useContext)(u);if(!e)throw new Error("useAnimatedValues must be called from within AnimatedValueProvider!");return e};var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]),o=r(d[2]),c=r(d[3]);const u=l.default.createContext(void 0);function s(e){let{children:t}=e;const n=O();return l.default.createElement(u.Provider,{value:n},t)}const v={code:"function reactNativeDraggableFlatlist_animatedValueContextJs1(){const{activeIndexAnim}=this.__closure;return activeIndexAnim.value;}"},f={code:"function reactNativeDraggableFlatlist_animatedValueContextJs2(cur,prev){const{scrollInit,scrollOffset,outerScrollInit,outerScrollOffset}=this.__closure;if(cur!==prev&&cur>=0){scrollInit.value=scrollOffset.value;outerScrollInit.value=outerScrollOffset.value;}}"},_={code:"function reactNativeDraggableFlatlist_animatedValueContextJs3(){const{isTouchActiveNative,activeIndexAnim}=this.__closure;return isTouchActiveNative.value&&activeIndexAnim.value>=0;}"},h={code:"function reactNativeDraggableFlatlist_animatedValueContextJs4(){const{isDraggingCell,scrollOffset,scrollInit,outerScrollOffset,outerScrollInit}=this.__closure;if(!isDraggingCell.value)return 0;const innerScrollDiff=scrollOffset.value-scrollInit.value;const outerScrollDiff=outerScrollOffset.value-outerScrollInit.value;const scrollDiff=innerScrollDiff+outerScrollDiff;return scrollDiff;}"},S={code:"function reactNativeDraggableFlatlist_animatedValueContextJs5(){const{isTouchActiveNative,autoScrollDistance,touchTranslate}=this.__closure;const extraTranslate=isTouchActiveNative.value?autoScrollDistance.value:0;return touchTranslate.value+extraTranslate;}"},D={code:"function reactNativeDraggableFlatlist_animatedValueContextJs6(){const{containerSize,activeCellSize,scrollOffset,touchPositionDiff,activeCellOffset,scrollViewSize,isTouchActiveNative}=this.__closure;const containerMinusActiveCell=containerSize.value-activeCellSize.value+scrollOffset.value;const offsetRelativeToScrollTop=touchPositionDiff.value+activeCellOffset.value;const constrained=Math.min(containerMinusActiveCell,Math.max(scrollOffset.value,offsetRelativeToScrollTop));const maxTranslateNegative=-activeCellOffset.value;const maxTranslatePositive=scrollViewSize.value-(activeCellOffset.value+activeCellSize.value);const constrainedBase=isTouchActiveNative.value?constrained-activeCellOffset.value:touchPositionDiff.value;return Math.min(Math.max(constrainedBase,maxTranslateNegative),maxTranslatePositive);}"},A={code:"function reactNativeDraggableFlatlist_animatedValueContextJs7(){const{activeIndexAnim,dragItemOverflow,touchPositionDiff,touchPositionDiffConstrained}=this.__closure;if(activeIndexAnim.value<0)return 0;return dragItemOverflow?touchPositionDiff.value:touchPositionDiffConstrained.value;}"},I={code:"function reactNativeDraggableFlatlist_animatedValueContextJs8(){const{hoverAnim,activeCellOffset}=this.__closure;return hoverAnim.value+activeCellOffset.value;}"},x={code:"function reactNativeDraggableFlatlist_animatedValueContextJs9(){const{activeIndexAnim,spacerIndexAnim}=this.__closure;const isHovering=activeIndexAnim.value>=0;if(!isHovering&&spacerIndexAnim.value>=0){spacerIndexAnim.value=-1;}}"};function O(){const e=(0,c.useProps)(),l=(0,n.useSharedValue)(0),u=(0,n.useSharedValue)(0),s=(0,n.useSharedValue)(0),O=(0,n.useSharedValue)(o.State.UNDETERMINED),C=(0,n.useSharedValue)(0),V=(0,n.useSharedValue)(!1),w=(0,n.useSharedValue)(0),T=(0,n.useSharedValue)(!1),N=(0,n.useSharedValue)(!!e.horizontal),k=(0,n.useSharedValue)(-1),P=(0,n.useSharedValue)(-1),z=(0,n.useSharedValue)(0),b=(0,n.useSharedValue)(0),p=(0,n.useSharedValue)(0),M=(0,n.useSharedValue)(0),H=(0,n.useSharedValue)(0),F=(0,n.useSharedValue)(0),J=e.outerScrollOffset||l,E=(0,n.useSharedValue)(0);(0,n.useAnimatedReaction)((function({_worklet_9770780663126_init_data:e,activeIndexAnim:t}){const l=function(){return t.value};return l.__closure={activeIndexAnim:t},l.__workletHash=9770780663126,l.__initData=e,l})({_worklet_9770780663126_init_data:v,activeIndexAnim:k}),(function({_worklet_2669524968831_init_data:e,scrollInit:t,scrollOffset:l,outerScrollInit:n,outerScrollOffset:o}){const c=function(e,c){e!==c&&e>=0&&(t.value=l.value,n.value=o.value)};return c.__closure={scrollInit:t,scrollOffset:l,outerScrollInit:n,outerScrollOffset:o},c.__workletHash=2669524968831,c.__initData=e,c})({_worklet_2669524968831_init_data:f,scrollInit:M,scrollOffset:p,outerScrollInit:E,outerScrollOffset:J}),[J]);const R=(0,n.useSharedValue)(0),j=(0,n.useDerivedValue)((function({_worklet_13229976984046_init_data:e,isTouchActiveNative:t,activeIndexAnim:l}){const n=function(){return t.value&&l.value>=0};return n.__closure={isTouchActiveNative:t,activeIndexAnim:l},n.__workletHash=0xc08581419ee,n.__initData=e,n})({_worklet_13229976984046_init_data:_,isTouchActiveNative:V,activeIndexAnim:k}),[]),y=(0,n.useDerivedValue)((function({_worklet_163796717909_init_data:e,isDraggingCell:t,scrollOffset:l,scrollInit:n,outerScrollOffset:o,outerScrollInit:c}){const u=function(){if(!t.value)return 0;return l.value-n.value+(o.value-c.value)};return u.__closure={isDraggingCell:t,scrollOffset:l,scrollInit:n,outerScrollOffset:o,outerScrollInit:c},u.__workletHash=163796717909,u.__initData=e,u})({_worklet_163796717909_init_data:h,isDraggingCell:j,scrollOffset:p,scrollInit:M,outerScrollOffset:J,outerScrollInit:E}),[]),B=(0,n.useDerivedValue)((function({_worklet_14268807456143_init_data:e,isTouchActiveNative:t,autoScrollDistance:l,touchTranslate:n}){const o=function(){const e=t.value?l.value:0;return n.value+e};return o.__closure={isTouchActiveNative:t,autoScrollDistance:l,touchTranslate:n},o.__workletHash=0xcfa3733258f,o.__initData=e,o})({_worklet_14268807456143_init_data:S,isTouchActiveNative:V,autoScrollDistance:y,touchTranslate:C}),[]),G=(0,n.useDerivedValue)((function({_worklet_2161134542663_init_data:e,containerSize:t,activeCellSize:l,scrollOffset:n,touchPositionDiff:o,activeCellOffset:c,scrollViewSize:u,isTouchActiveNative:s}){const v=function(){const e=t.value-l.value+n.value,v=o.value+c.value,f=Math.min(e,Math.max(n.value,v)),_=-c.value,h=u.value-(c.value+l.value),S=s.value?f-c.value:o.value;return Math.min(Math.max(S,_),h)};return v.__closure={containerSize:t,activeCellSize:l,scrollOffset:n,touchPositionDiff:o,activeCellOffset:c,scrollViewSize:u,isTouchActiveNative:s},v.__workletHash=2161134542663,v.__initData=e,v})({_worklet_2161134542663_init_data:D,containerSize:u,activeCellSize:z,scrollOffset:p,touchPositionDiff:B,activeCellOffset:b,scrollViewSize:s,isTouchActiveNative:V}),[]),U=e.dragItemOverflow,q=(0,n.useDerivedValue)((function({_worklet_5411143051866_init_data:e,activeIndexAnim:t,dragItemOverflow:l,touchPositionDiff:n,touchPositionDiffConstrained:o}){const c=function(){return t.value<0?0:l?n.value:o.value};return c.__closure={activeIndexAnim:t,dragItemOverflow:l,touchPositionDiff:n,touchPositionDiffConstrained:o},c.__workletHash=5411143051866,c.__initData=e,c})({_worklet_5411143051866_init_data:A,activeIndexAnim:k,dragItemOverflow:U,touchPositionDiff:B,touchPositionDiffConstrained:G}),[]),K=(0,n.useDerivedValue)((function({_worklet_7836450724061_init_data:e,hoverAnim:t,activeCellOffset:l}){const n=function(){return t.value+l.value};return n.__closure={hoverAnim:t,activeCellOffset:l},n.__workletHash=7836450724061,n.__initData=e,n})({_worklet_7836450724061_init_data:I,hoverAnim:q,activeCellOffset:b}),[q,b]);(0,n.useDerivedValue)((function({_worklet_12000071238288_init_data:e,activeIndexAnim:t,spacerIndexAnim:l}){const n=function(){!(t.value>=0)&&l.value>=0&&(l.value=-1)};return n.__closure={activeIndexAnim:t,spacerIndexAnim:l},n.__workletHash=0xae9fbfbc290,n.__initData=e,n})({_worklet_12000071238288_init_data:x,activeIndexAnim:k,spacerIndexAnim:P}),[]);const L=(0,t.useCallback)(()=>{b.value=0,w.value=0},[]),Q=(0,t.useMemo)(()=>({activeCellOffset:b,activeCellSize:z,activeIndexAnim:k,containerSize:u,disabled:T,horizontalAnim:N,hoverAnim:q,hoverOffset:K,isDraggingCell:j,isTouchActiveNative:V,panGestureState:O,placeholderOffset:R,resetTouchedCell:L,scrollOffset:p,scrollViewSize:s,spacerIndexAnim:P,touchPositionDiff:B,touchTranslate:C,autoScrollDistance:y,viewableIndexMin:H,viewableIndexMax:F}),[b,z,k,u,T,N,q,K,j,V,O,R,L,p,s,P,B,C,y,H,F]);return(0,t.useEffect)(()=>{var t;null===(t=e.onAnimValInit)||void 0===t||t.call(e,Q)},[Q]),Q}},3421,[17,2952,2864,3422]);
|
|
15843
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["children"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),_e.useProps=function(){const e=(0,u.useContext)(c);if(!e)throw new Error("useProps must be called from within PropsProvider!");return e};var n=t(r(d[0])),u=r(d[1]),o=t(u);const c=o.default.createContext(void 0);function l(t){let{children:u}=t,l=(0,n.default)(t,e);return o.default.createElement(c.Provider,{value:l},u)}},3422,[120,17]);
|
|
15844
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),_e.useRefs=function(){const e=(0,t.useContext)(s);if(!e)throw new Error("useRefs must be called from within a RefContext.Provider!");return e};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},f=r(d[1]),u=r(d[2]),o=r(d[3]);const s=n.default.createContext(void 0);function l(e){let{children:t,flatListRef:f}=e;const u=c({flatListRef:f});return n.default.createElement(s.Provider,{value:u},t)}function c(e){let{flatListRef:n}=e;const s=(0,o.useProps)(),{animationConfig:l=u.DEFAULT_PROPS.animationConfig}=s,c=(0,t.useRef)(s);c.current=s;const R=(0,t.useMemo)(()=>Object.assign({},u.DEFAULT_PROPS.animationConfig,l),[l]),P=(0,f.useSharedValue)(R);(0,t.useEffect)(()=>{P.value=R},[R]);const _=(0,t.useRef)(new Map),p=(0,t.useRef)(new Map),v=(0,t.useRef)(null),C=(0,t.useRef)(null),w=n||C,M=(0,t.useRef)(null);return(0,t.useMemo)(()=>({animationConfigRef:P,cellDataRef:_,containerRef:v,flatlistRef:w,keyToIndexRef:p,propsRef:c,scrollViewRef:M}),[])}},3423,[17,2952,3419,3422]);
|
|
15845
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"typedMemo",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);const u=((e=t)&&e.__esModule?e:{default:e}).default.memo},3424,[17]);
|
|
15846
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),_e.CellProvider=c,_e.useIsActive=function(){const e=(0,t.useContext)(u);if(!e)throw new Error("useIsActive must be called from within CellProvider!");return e.isActive};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);const u=n.default.createContext(void 0);function c(e){let{isActive:o,children:c}=e;const l=(0,t.useMemo)(()=>({isActive:o}),[o]);return n.default.createElement(u.Provider,{value:l},c)}var l=(0,o.typedMemo)(c)},3425,[17,3424]);
|
|
15847
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useStableCallback=function(n){const u=(0,t.useRef)(n);u.current=n;const c=(0,t.useCallback)(function(){return u.current(...arguments)},[]);return c};var t=r(d[0])},3426,[17]);
|
|
15848
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return O}});var t=r(d[0]),l=e(t),n=e(r(d[1])),o=r(d[2]),s=e(o),c=r(d[3]),u=r(d[4]),f=r(d[5]),_=r(d[6]);const v={code:"function reactNativeDraggableFlatlist_PlaceholderItemJs1(){const{activeCellSize}=this.__closure;return activeCellSize.value;}"},h={code:"function reactNativeDraggableFlatlist_PlaceholderItemJs2(cur,prev){const{runOnJS,setSize}=this.__closure;if(cur!==prev){runOnJS(setSize)(cur);}}"},z={code:"function reactNativeDraggableFlatlist_PlaceholderItemJs3(){const{placeholderOffset,scrollOffset,size,horizontalAnim}=this.__closure;const offset=placeholderOffset.value-scrollOffset.value;return{opacity:size>=0?1:0,overflow:'hidden',transform:[horizontalAnim.value?{translateX:offset}:{translateY:offset}]};}"};var O=(0,_.typedMemo)(function(e){var _;let{renderPlaceholder:O}=e;const[S,p]=(0,t.useState)(0),{activeCellSize:w,placeholderOffset:k,spacerIndexAnim:A,horizontalAnim:b,scrollOffset:y}=(0,c.useAnimatedValues)(),{keyToIndexRef:J,propsRef:C}=(0,f.useRefs)(),{activeKey:D,horizontal:P}=(0,u.useDraggableFlatListContext)();(0,o.useAnimatedReaction)((function({_worklet_15041831900011_init_data:e,activeCellSize:t}){const l=function(){return t.value};return l.__closure={activeCellSize:t},l.__workletHash=0xdae330c136b,l.__initData=e,l})({_worklet_15041831900011_init_data:v,activeCellSize:w}),(function({_worklet_9097902266698_init_data:e,runOnJS:t,setSize:l}){const n=function(e,n){e!==n&&t(l)(e)};return n.__closure={runOnJS:t,setSize:l},n.__workletHash=9097902266698,n.__initData=e,n})({_worklet_9097902266698_init_data:h,runOnJS:o.runOnJS,setSize:p}));const x=D?J.current.get(D):void 0,F=void 0===x?null:null===(_=C.current)||void 0===_?void 0:_.data[x],I=(0,o.useAnimatedStyle)((function({_worklet_5017284307212_init_data:e,placeholderOffset:t,scrollOffset:l,size:n,horizontalAnim:o}){const s=function(){const e=t.value-l.value;return{opacity:n>=0?1:0,overflow:'hidden',transform:[o.value?{translateX:e}:{translateY:e}]}};return s.__closure={placeholderOffset:t,scrollOffset:l,size:n,horizontalAnim:o},s.__workletHash=5017284307212,s.__initData=e,s})({_worklet_5017284307212_init_data:z,placeholderOffset:k,scrollOffset:y,size:S,horizontalAnim:b}),[A,k,b,y,S]),M=(0,t.useMemo)(()=>P?{width:S}:{height:S},[P,S]);return l.default.createElement(s.default.View,{pointerEvents:D?"auto":"none",style:[n.default.absoluteFill,I,M]},F&&void 0!==x?null==O?void 0:O({item:F,index:x}):null)})},3427,[17,33,2952,3421,3418,3423,3424]);
|
|
15849
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";const e=["renderItem","extraData"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return b}});var n=t(r(d[0])),u=r(d[1]),c=t(u),o=r(d[2]),s=r(d[3]),l=r(d[4]),f=r(d[5]);var b=(0,f.typedMemo)(function(e){const t=(0,u.useRef)(e);t.current=e;const{activeKey:n}=(0,o.useDraggableFlatListContext)(),f=(0,u.useRef)(n);f.current=n;const{keyToIndexRef:b}=(0,s.useRefs)(),p=(0,l.useStableCallback)(()=>{const{drag:e,itemKey:n,debug:u}=t.current;f.current&&u&&console.log("## attempt to drag item while another item is already active, noop"),e(n)}),{renderItem:v,item:x,itemKey:I,extraData:_}=e,D=(0,l.useStableCallback)(()=>b.current.get(I));return c.default.createElement(y,{isActive:n===I,drag:p,renderItem:v,item:x,getIndex:D,extraData:_})});const y=(0,f.typedMemo)(function(t){let{renderItem:u}=t,c=(0,n.default)(t,e);return u(Object.assign({},c))})},3428,[120,17,3418,3423,3426,3424]);
|
|
15850
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useAutoScroll=function(){const{flatlistRef:L}=(0,c.useRefs)(),{autoscrollThreshold:w=l.DEFAULT_PROPS.autoscrollThreshold,autoscrollSpeed:D=l.DEFAULT_PROPS.autoscrollSpeed}=(0,o.useProps)(),{scrollOffset:N,scrollViewSize:C,containerSize:p,activeCellSize:R,hoverOffset:k,activeIndexAnim:z}=(0,s.useAnimatedValues)(),b=(0,t.useDerivedValue)((function({_worklet_2808899548984_init_data:t,hoverOffset:l,scrollOffset:o}){const s=function(){return l.value-o.value};return s.__closure={hoverOffset:l,scrollOffset:o},s.__workletHash=2808899548984,s.__initData=t,s})({_worklet_2808899548984_init_data:n,hoverOffset:k,scrollOffset:N}),[]),P=(0,t.useDerivedValue)((function({_worklet_12016434595023_init_data:t,scrollOffset:l,SCROLL_POSITION_TOLERANCE:o}){const s=function(){return l.value-o<=0};return s.__closure={scrollOffset:l,SCROLL_POSITION_TOLERANCE:o},s.__workletHash=0xaedcb50c4cf,s.__initData=t,s})({_worklet_12016434595023_init_data:u,scrollOffset:N,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE}),[]),x=(0,t.useDerivedValue)((function({_worklet_15484432799921_init_data:t,scrollOffset:l,containerSize:o,SCROLL_POSITION_TOLERANCE:s,scrollViewSize:c}){const n=function(){return l.value+o.value+s>=c.value};return n.__closure={scrollOffset:l,containerSize:o,SCROLL_POSITION_TOLERANCE:s,scrollViewSize:c},n.__workletHash=0xe15401dd8b1,n.__initData=t,n})({_worklet_15484432799921_init_data:_,scrollOffset:N,containerSize:p,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE,scrollViewSize:C}),[]),V=(0,t.useDerivedValue)((function({_worklet_17164513010478_init_data:t,hoverScreenOffset:l}){const o=function(){return Math.max(0,l.value)};return o.__closure={hoverScreenOffset:l},o.__workletHash=0xf9c6cb3632e,o.__initData=t,o})({_worklet_17164513010478_init_data:f,hoverScreenOffset:b}),[]),J=(0,t.useDerivedValue)((function({_worklet_1147639264362_init_data:t,hoverScreenOffset:l,activeCellSize:o,containerSize:s}){const c=function(){const t=l.value+o.value;return Math.max(0,s.value-t)};return c.__closure={hoverScreenOffset:l,activeCellSize:o,containerSize:s},c.__workletHash=1147639264362,c.__initData=t,c})({_worklet_1147639264362_init_data:v,hoverScreenOffset:b,activeCellSize:R,containerSize:p}),[]),B=(0,t.useDerivedValue)((function({_worklet_11040627643734_init_data:t,distToTopEdge:l,autoscrollThreshold:o}){const s=function(){return l.value<=o};return s.__closure={distToTopEdge:l,autoscrollThreshold:o},s.__workletHash=0xa0a98b05556,s.__initData=t,s})({_worklet_11040627643734_init_data:O,distToTopEdge:V,autoscrollThreshold:w})),F=(0,t.useDerivedValue)((function({_worklet_14987891986615_init_data:t,distToBottomEdge:l,autoscrollThreshold:o}){const s=function(){return l.value<=o};return s.__closure={distToBottomEdge:l,autoscrollThreshold:o},s.__workletHash=0xda1a3fa50b7,s.__initData=t,s})({_worklet_14987891986615_init_data:S,distToBottomEdge:J,autoscrollThreshold:w}),[]),H=(0,t.useSharedValue)(0),M=(0,t.useDerivedValue)((function({_worklet_8401811971590_init_data:t,activeIndexAnim:l}){const o=function(){return l.value>=0};return o.__closure={activeIndexAnim:l},o.__workletHash=8401811971590,o.__initData=t,o})({_worklet_8401811971590_init_data:T,activeIndexAnim:z}),[]);(0,t.useAnimatedReaction)((function({_worklet_16420598048532_init_data:t,dragIsActive:l}){const o=function(){return l.value};return o.__closure={dragIsActive:l},o.__workletHash=0xeef37e9e714,o.__initData=t,o})({_worklet_16420598048532_init_data:h,dragIsActive:M}),(function({_worklet_10982255603799_init_data:t,scrollTarget:l,scrollOffset:o}){const s=function(t,s){t&&!s&&(l.value=o.value)};return s.__closure={scrollTarget:l,scrollOffset:o},s.__workletHash=0x9fd0171b057,s.__initData=t,s})({_worklet_10982255603799_init_data:E,scrollTarget:H,scrollOffset:N}));const U=(0,t.useDerivedValue)((function({_worklet_10051379659370_init_data:t,scrollTarget:l,scrollOffset:o,SCROLL_POSITION_TOLERANCE:s,isAtTopEdge:c,isAtBottomEdge:n,isScrolledUp:u,isScrolledDown:_,activeIndexAnim:f}){const v=function(){const t=Math.abs(l.value-o.value)<s,v=c.value||n.value,O=c.value&&u.value,S=n.value&&_.value,T=O||S,h=f.value>=0;return t&&v&&!T&&h};return v.__closure={scrollTarget:l,scrollOffset:o,SCROLL_POSITION_TOLERANCE:s,isAtTopEdge:c,isAtBottomEdge:n,isScrolledUp:u,isScrolledDown:_,activeIndexAnim:f},v.__workletHash=0x92444ea026a,v.__initData=t,v})({_worklet_10051379659370_init_data:A,scrollTarget:H,scrollOffset:N,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE,isAtTopEdge:B,isAtBottomEdge:F,isScrolledUp:P,isScrolledDown:x,activeIndexAnim:z}),[]);return(0,t.useDerivedValue)((function({_worklet_2210792135007_init_data:t,shouldAutoScroll:l,isAtTopEdge:o,distToTopEdge:s,distToBottomEdge:c,autoscrollThreshold:n,autoscrollSpeed:u,scrollOffset:_,scrollViewSize:f,containerSize:v,scrollTarget:O,runOnJS:S,scrollToInternal:T}){const h=function(){if(!l.value)return;const t=(1-(o.value?s.value:c.value)/n)*u,h=o.value?Math.max(0,_.value-t):Math.min(_.value+t,f.value-v.value);O.value=h,S(T)(h)};return h.__closure={shouldAutoScroll:l,isAtTopEdge:o,distToTopEdge:s,distToBottomEdge:c,autoscrollThreshold:n,autoscrollSpeed:u,scrollOffset:_,scrollViewSize:f,containerSize:v,scrollTarget:O,runOnJS:S,scrollToInternal:T},h.__workletHash=2210792135007,h.__initData=t,h})({_worklet_2210792135007_init_data:I,shouldAutoScroll:U,isAtTopEdge:B,distToTopEdge:V,distToBottomEdge:J,autoscrollThreshold:w,autoscrollSpeed:D,scrollOffset:N,scrollViewSize:C,containerSize:p,scrollTarget:H,runOnJS:t.runOnJS,scrollToInternal:function(t){var l;L&&"current"in L&&(null===(l=L.current)||void 0===l||l.scrollToOffset({offset:t,animated:!0}))}}),[]),null};var t=r(d[0]),l=r(d[1]),o=r(d[2]),s=r(d[3]),c=r(d[4]);const n={code:"function reactNativeDraggableFlatlist_useAutoScrollJs1(){const{hoverOffset,scrollOffset}=this.__closure;return hoverOffset.value-scrollOffset.value;}"},u={code:"function reactNativeDraggableFlatlist_useAutoScrollJs2(){const{scrollOffset,SCROLL_POSITION_TOLERANCE}=this.__closure;return scrollOffset.value-SCROLL_POSITION_TOLERANCE<=0;}"},_={code:"function reactNativeDraggableFlatlist_useAutoScrollJs3(){const{scrollOffset,containerSize,SCROLL_POSITION_TOLERANCE,scrollViewSize}=this.__closure;return scrollOffset.value+containerSize.value+SCROLL_POSITION_TOLERANCE>=scrollViewSize.value;}"},f={code:"function reactNativeDraggableFlatlist_useAutoScrollJs4(){const{hoverScreenOffset}=this.__closure;return Math.max(0,hoverScreenOffset.value);}"},v={code:"function reactNativeDraggableFlatlist_useAutoScrollJs5(){const{hoverScreenOffset,activeCellSize,containerSize}=this.__closure;const hoverPlusActiveCell=hoverScreenOffset.value+activeCellSize.value;return Math.max(0,containerSize.value-hoverPlusActiveCell);}"},O={code:"function reactNativeDraggableFlatlist_useAutoScrollJs6(){const{distToTopEdge,autoscrollThreshold}=this.__closure;return distToTopEdge.value<=autoscrollThreshold;}"},S={code:"function reactNativeDraggableFlatlist_useAutoScrollJs7(){const{distToBottomEdge,autoscrollThreshold}=this.__closure;return distToBottomEdge.value<=autoscrollThreshold;}"},T={code:"function reactNativeDraggableFlatlist_useAutoScrollJs8(){const{activeIndexAnim}=this.__closure;return activeIndexAnim.value>=0;}"},h={code:"function reactNativeDraggableFlatlist_useAutoScrollJs9(){const{dragIsActive}=this.__closure;return dragIsActive.value;}"},E={code:"function reactNativeDraggableFlatlist_useAutoScrollJs10(cur,prev){const{scrollTarget,scrollOffset}=this.__closure;if(cur&&!prev){scrollTarget.value=scrollOffset.value;}}"},A={code:"function reactNativeDraggableFlatlist_useAutoScrollJs11(){const{scrollTarget,scrollOffset,SCROLL_POSITION_TOLERANCE,isAtTopEdge,isAtBottomEdge,isScrolledUp,isScrolledDown,activeIndexAnim}=this.__closure;const scrollTargetDiff=Math.abs(scrollTarget.value-scrollOffset.value);const hasScrolledToTarget=scrollTargetDiff<SCROLL_POSITION_TOLERANCE;const isAtEdge=isAtTopEdge.value||isAtBottomEdge.value;const topDisabled=isAtTopEdge.value&&isScrolledUp.value;const bottomDisabled=isAtBottomEdge.value&&isScrolledDown.value;const isEdgeDisabled=topDisabled||bottomDisabled;const cellIsActive=activeIndexAnim.value>=0;return hasScrolledToTarget&&isAtEdge&&!isEdgeDisabled&&cellIsActive;}"},I={code:"function reactNativeDraggableFlatlist_useAutoScrollJs12(){const{shouldAutoScroll,isAtTopEdge,distToTopEdge,distToBottomEdge,autoscrollThreshold,autoscrollSpeed,scrollOffset,scrollViewSize,containerSize,scrollTarget,runOnJS,scrollToInternal}=this.__closure;if(!shouldAutoScroll.value)return;const distFromEdge=isAtTopEdge.value?distToTopEdge.value:distToBottomEdge.value;const speedPct=1-distFromEdge/autoscrollThreshold;const offset=speedPct*autoscrollSpeed;const targetOffset=isAtTopEdge.value?Math.max(0,scrollOffset.value-offset):Math.min(scrollOffset.value+offset,scrollViewSize.value-containerSize.value);scrollTarget.value=targetOffset;runOnJS(scrollToInternal)(targetOffset);}"}},3429,[2952,3419,3422,3421,3423]);
|
|
15851
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return c}});var t=r(d[0]),n=r(d[1]);const l={code:"function reactNativeDraggableFlatlist_ScrollOffsetListenerJs1(){const{scrollOffset}=this.__closure;return scrollOffset.value;}"},o={code:"function reactNativeDraggableFlatlist_ScrollOffsetListenerJs2(cur,prev){const{runOnJS,onScrollOffsetChange}=this.__closure;if(cur!==prev){runOnJS(onScrollOffsetChange)(cur);}}"};var c=(0,n.typedMemo)(n=>{let{scrollOffset:c,onScrollOffsetChange:s}=n;return(0,t.useAnimatedReaction)((function({_worklet_6566234561379_init_data:t,scrollOffset:n}){const l=function(){return n.value};return l.__closure={scrollOffset:n},l.__workletHash=6566234561379,l.__initData=t,l})({_worklet_6566234561379_init_data:l,scrollOffset:c}),(function({_worklet_15281170813250_init_data:t,runOnJS:n,onScrollOffsetChange:l}){const o=function(t,o){t!==o&&n(l)(t)};return o.__closure={runOnJS:n,onScrollOffsetChange:l},o.__workletHash=0xde5ecc21142,o.__initData=t,o})({_worklet_15281170813250_init_data:o,runOnJS:t.runOnJS,onScrollOffsetChange:s}),[c]),null})},3430,[2952,3424]);
|
|
15852
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useOnCellActiveAnimation",{enumerable:!0,get:function(){return s.useOnCellActiveAnimation}}),Object.defineProperty(_e,"ScaleDecorator",{enumerable:!0,get:function(){return v}}),Object.defineProperty(_e,"ShadowDecorator",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"OpacityDecorator",{enumerable:!0,get:function(){return f}});var t=e(r(d[0])),n=e(r(d[1])),o=r(d[2]),c=e(o),l=r(d[3]),s=r(d[4]);const u={code:"function reactNativeDraggableFlatlist_CellDecoratorsJs1(){const{interpolate,onActiveAnim,activeScale,isActive}=this.__closure;const animScale=interpolate(onActiveAnim.value,[0,1],[1,activeScale]);const scale=isActive?animScale:1;return{transform:[{scaleX:scale},{scaleY:scale}]};}"},v=e=>{let{activeScale:n=1.1,children:v}=e;const{isActive:A,onActiveAnim:_}=(0,s.useOnCellActiveAnimation)({animationConfig:{mass:.1,restDisplacementThreshold:1e-4}}),{horizontal:p}=(0,l.useDraggableFlatListContext)(),f=(0,o.useAnimatedStyle)((function({_worklet_3223850486805_init_data:e,interpolate:t,onActiveAnim:n,activeScale:o,isActive:c}){const l=function(){const e=t(n.value,[0,1],[1,o]),l=c?e:1;return{transform:[{scaleX:l},{scaleY:l}]}};return l.__closure={interpolate:t,onActiveAnim:n,activeScale:o,isActive:c},l.__workletHash=3223850486805,l.__initData=e,l})({_worklet_3223850486805_init_data:u,interpolate:o.interpolate,onActiveAnim:_,activeScale:n,isActive:A}),[A]);return t.default.createElement(c.default.View,{style:[f,p&&y.horizontal]},v)},A={code:"function reactNativeDraggableFlatlist_CellDecoratorsJs2(){const{onActiveAnim,opacity,isActive,elevation,radius,color}=this.__closure;const shadowOpacity=onActiveAnim.value*opacity;return{elevation:isActive?elevation:0,shadowRadius:isActive?radius:0,shadowColor:isActive?color:\"transparent\",shadowOpacity:isActive?shadowOpacity:0};}"},_=e=>{let{elevation:n=10,color:u="black",opacity:v=.25,radius:_=5,children:p}=e;const{isActive:f,onActiveAnim:h}=(0,s.useOnCellActiveAnimation)(),{horizontal:w}=(0,l.useDraggableFlatListContext)(),O=(0,o.useAnimatedStyle)((function({_worklet_5875745184206_init_data:e,onActiveAnim:t,opacity:n,isActive:o,elevation:c,radius:l,color:s}){const u=function(){const e=t.value*n;return{elevation:o?c:0,shadowRadius:o?l:0,shadowColor:o?s:"transparent",shadowOpacity:o?e:0}};return u.__closure={onActiveAnim:t,opacity:n,isActive:o,elevation:c,radius:l,color:s},u.__workletHash=5875745184206,u.__initData=e,u})({_worklet_5875745184206_init_data:A,onActiveAnim:h,opacity:v,isActive:f,elevation:n,radius:_,color:u}),[f,h]);return t.default.createElement(c.default.View,{style:[O,w&&y.horizontal]},p)},p={code:"function reactNativeDraggableFlatlist_CellDecoratorsJs3(){const{interpolate,onActiveAnim,activeOpacity,isActive}=this.__closure;const opacity=interpolate(onActiveAnim.value,[0,1],[1,activeOpacity]);return{opacity:isActive?opacity:1};}"},f=e=>{let{activeOpacity:n=.25,children:u}=e;const{isActive:v,onActiveAnim:A}=(0,s.useOnCellActiveAnimation)(),{horizontal:_}=(0,l.useDraggableFlatListContext)(),f=(0,o.useAnimatedStyle)((function({_worklet_9220952713650_init_data:e,interpolate:t,onActiveAnim:n,activeOpacity:o,isActive:c}){const l=function(){const e=t(n.value,[0,1],[1,o]);return{opacity:c?e:1}};return l.__closure={interpolate:t,onActiveAnim:n,activeOpacity:o,isActive:c},l.__workletHash=9220952713650,l.__initData=e,l})({_worklet_9220952713650_init_data:p,interpolate:o.interpolate,onActiveAnim:A,activeOpacity:n,isActive:v}),[v]);return t.default.createElement(c.default.View,{style:[f,_&&y.horizontal]},u)},y=n.default.create({horizontal:{flexDirection:"row",flex:1}})},3431,[17,33,2952,3418,3432]);
|
|
15853
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useOnCellActiveAnimation=function(){let{animationConfig:u}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{animationConfig:{}};const _=(0,n.useSharedValue)(u);(0,t.useEffect)(()=>{_.value=u},[u]);const v=(0,s.useIsActive)(),{isTouchActiveNative:l}=(0,c.useAnimatedValues)(),N=(0,n.useDerivedValue)((function({_worklet_17322650649574_init_data:t,isActive:n,isTouchActiveNative:o,withSpring:c,DEFAULT_ANIMATION_CONFIG:s,animationConfigRef:A}){const u=function(){const t=n&&o.value?1:0;return c(t,Object.assign({},s,A.value))};return u.__closure={isActive:n,isTouchActiveNative:o,withSpring:c,DEFAULT_ANIMATION_CONFIG:s,animationConfigRef:A},u.__workletHash=0xfc13e7043e6,u.__initData=t,u})({_worklet_17322650649574_init_data:A,isActive:v,isTouchActiveNative:l,withSpring:n.withSpring,DEFAULT_ANIMATION_CONFIG:o.DEFAULT_ANIMATION_CONFIG,animationConfigRef:_}),[v]);return{isActive:v,onActiveAnim:N}};var t=r(d[0]),n=r(d[1]),o=r(d[2]),c=r(d[3]),s=r(d[4]);const A={code:"function reactNativeDraggableFlatlist_useOnCellActiveAnimationJs1(){const{isActive,isTouchActiveNative,withSpring,DEFAULT_ANIMATION_CONFIG,animationConfigRef}=this.__closure;const toVal=isActive&&isTouchActiveNative.value?1:0;return withSpring(toVal,{...DEFAULT_ANIMATION_CONFIG,...animationConfigRef.value});}"}},3432,[17,2952,3419,3421,3425]);
|
|
15854
|
+
__d(function(g,r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NestableDraggableFlatList",{enumerable:!0,get:function(){return _}});var t=r(d[0]),l=e(t),n=e(r(d[1])),s=e(r(d[2])),o=r(d[3]),i=e(r(d[4])),u=r(d[5]),c=r(d[6]),f=r(d[7]);function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},v.apply(this,arguments)}const b={code:"function reactNativeDraggableFlatlist_NestableDraggableFlatListJs1(){const{listHoverOffset,listVerticalOffset}=this.__closure;return listHoverOffset.value+listVerticalOffset.value;}"};function O(e,O){const _=(0,t.useRef)(!1);_.current||(s.default.ignoreLogs(["VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing"]),console.reportErrorsAsExceptions=!1,_.current=!0);const{scrollableRef:S,outerScrollOffset:h,setOuterScrollEnabled:V}=(0,u.useSafeNestableScrollContainerContext)(),D=(0,o.useSharedValue)(0),[p,w]=(0,t.useState)({}),k=(0,o.useSharedValue)(0),[y,C]=(0,t.useState)(k),E=(0,o.useDerivedValue)((function({_worklet_13500071611033_init_data:e,listHoverOffset:t,listVerticalOffset:l}){const n=function(){return t.value+l.value};return n.__closure={listHoverOffset:t,listVerticalOffset:l},n.__workletHash=0xc473af90a99,n.__initData=e,n})({_worklet_13500071611033_init_data:b,listHoverOffset:y,listVerticalOffset:D}),[y]);(0,c.useNestedAutoScroll)(Object.assign({},p,{hoverOffset:E}));const j=(0,f.useStableCallback)(async e=>{let{containerRef:t}=e;const l=(0,n.default)(S.current);t.current.measureLayout(l,(e,t)=>{D.value=t},()=>{console.log("## nested draggable list measure fail")})}),H=(0,f.useStableCallback)(t=>{var l;V(!1),null===(l=e.onDragBegin)||void 0===l||l.call(e,t)}),L=(0,f.useStableCallback)(t=>{var l;V(!0),null===(l=e.onDragEnd)||void 0===l||l.call(e,t)}),N=(0,f.useStableCallback)(t=>{var l;C(t.hoverOffset),w(Object.assign({},t,{hoverOffset:E})),null===(l=e.onAnimValInit)||void 0===l||l.call(e,t)});return l.default.createElement(i.default,v({ref:O,onContainerLayout:j,activationDistance:e.activationDistance||20,scrollEnabled:!1},e,{outerScrollOffset:h,onDragBegin:H,onDragEnd:L,onAnimValInit:N}))}const _=l.default.forwardRef(O)},3433,[17,122,273,2952,3416,3434,3435,3426]);
|
|
15855
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.NestableScrollContainerProvider=function(e){let{children:t,forwardedRef:o}=e;const s=u({forwardedRef:o});return l.default.createElement(n.Provider,{value:s},t)},_e.useNestableScrollContainerContext=s,_e.useSafeNestableScrollContainerContext=function(){const e=s();if(!e)throw new Error("useSafeNestableScrollContainerContext must be called within a NestableScrollContainerContext.Provider");return e};var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);const n=l.default.createContext(void 0);function u(e){let{forwardedRef:l}=e;const[n,u]=(0,t.useState)(!0),s=(0,o.useSharedValue)(0),c=(0,t.useRef)(null),f=l||c,S=(0,o.useSharedValue)(0),C=(0,o.useSharedValue)(0);return(0,t.useMemo)(()=>({outerScrollEnabled:n,setOuterScrollEnabled:u,outerScrollOffset:S,scrollViewSize:s,scrollableRef:f,containerSize:C}),[n])}function s(){return(0,t.useContext)(n)}},3434,[17,2952]);
|
|
15856
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useNestedAutoScroll=function(h){const{outerScrollOffset:E,containerSize:N,scrollableRef:C,scrollViewSize:L}=(0,o.useSafeNestableScrollContainerContext)(),A=(0,t.useSharedValue)(0),{hoverOffset:D=A,activeCellSize:I=A,autoscrollSpeed:w=100,autoscrollThreshold:R=30,isDraggingCell:p=A,isTouchActiveNative:k=A}=h,b=(0,t.useDerivedValue)((function({_worklet_1881896633941_init_data:t,hoverOffset:o,outerScrollOffset:l}){const s=function(){return o.value-l.value};return s.__closure={hoverOffset:o,outerScrollOffset:l},s.__workletHash=1881896633941,s.__initData=t,s})({_worklet_1881896633941_init_data:s,hoverOffset:D,outerScrollOffset:E}),[]),z=(0,t.useDerivedValue)((function({_worklet_4729636409762_init_data:t,outerScrollOffset:o,SCROLL_POSITION_TOLERANCE:l}){const s=function(){return o.value-l<=0};return s.__closure={outerScrollOffset:o,SCROLL_POSITION_TOLERANCE:l},s.__workletHash=4729636409762,s.__initData=t,s})({_worklet_4729636409762_init_data:c,outerScrollOffset:E,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE}),[]),P=(0,t.useDerivedValue)((function({_worklet_6931217787228_init_data:t,outerScrollOffset:o,containerSize:l,SCROLL_POSITION_TOLERANCE:s,scrollViewSize:c}){const u=function(){return o.value+l.value+s>=c.value};return u.__closure={outerScrollOffset:o,containerSize:l,SCROLL_POSITION_TOLERANCE:s,scrollViewSize:c},u.__workletHash=6931217787228,u.__initData=t,u})({_worklet_6931217787228_init_data:u,outerScrollOffset:E,containerSize:N,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE,scrollViewSize:L}),[]),B=(0,t.useDerivedValue)((function({_worklet_14157162290883_init_data:t,hoverScreenOffset:o}){const l=function(){return Math.max(0,o.value)};return l.__closure={hoverScreenOffset:o},l.__workletHash=0xce038a11ec3,l.__initData=t,l})({_worklet_14157162290883_init_data:n,hoverScreenOffset:b}),[b]),J=(0,t.useDerivedValue)((function({_worklet_6156973048070_init_data:t,containerSize:o,hoverScreenOffset:l,activeCellSize:s}){const c=function(){const t=o.value-(l.value+s.value);return Math.max(0,t)};return c.__closure={containerSize:o,hoverScreenOffset:l,activeCellSize:s},c.__workletHash=6156973048070,c.__initData=t,c})({_worklet_6156973048070_init_data:_,containerSize:N,hoverScreenOffset:b,activeCellSize:I}),[b,I,N]),V=(0,t.useDerivedValue)((function({_worklet_11726045427259_init_data:t,distToTopEdge:o,autoscrollThreshold:l}){const s=function(){return o.value<=l};return s.__closure={distToTopEdge:o,autoscrollThreshold:l},s.__workletHash=0xaaa2ec5b63b,s.__initData=t,s})({_worklet_11726045427259_init_data:f,distToTopEdge:B,autoscrollThreshold:R}),[]),x=(0,t.useDerivedValue)((function({_worklet_7914873790874_init_data:t,distToBottomEdge:o,autoscrollThreshold:l}){const s=function(){return o.value<=l};return s.__closure={distToBottomEdge:o,autoscrollThreshold:l},s.__workletHash=7914873790874,s.__initData=t,s})({_worklet_7914873790874_init_data:S,distToBottomEdge:J,autoscrollThreshold:R})),F=(0,t.useSharedValue)(0);return(0,t.useAnimatedReaction)((function({_worklet_14021221439128_init_data:t,isDraggingCell:o}){const l=function(){return o.value};return l.__closure={isDraggingCell:o},l.__workletHash=0xcc091ec5698,l.__initData=t,l})({_worklet_14021221439128_init_data:O,isDraggingCell:p}),(function({_worklet_17362022355714_init_data:t,scrollTarget:o,outerScrollOffset:l}){const s=function(t,s){t&&!s&&(o.value=l.value)};return s.__closure={scrollTarget:o,outerScrollOffset:l},s.__workletHash=0xfca692cd302,s.__initData=t,s})({_worklet_17362022355714_init_data:v,scrollTarget:F,outerScrollOffset:E}),[I]),(0,t.useDerivedValue)((function({_worklet_15221845355323_init_data:t,isAtTopEdge:o,isAtBottomEdge:l,isScrolledUp:s,isScrolledDown:c,scrollTarget:u,outerScrollOffset:n,SCROLL_POSITION_TOLERANCE:_,isDraggingCell:f,isTouchActiveNative:S,distToTopEdge:O,distToBottomEdge:v,autoscrollThreshold:T,autoscrollSpeed:h,runOnJS:E,scrollToInternal:N}){const C=function(){const t=o.value||l.value,C=o.value&&s.value,L=l.value&&c.value,A=C||L,D=Math.abs(u.value-n.value)>_,I=t&&!A&&f.value&&S.value&&!D,w=(1-(o.value?O.value:v.value)/T)*h,R=o.value?Math.max(0,n.value-w):n.value+w;I&&(u.value=R,E(N)(R))};return C.__closure={isAtTopEdge:o,isAtBottomEdge:l,isScrolledUp:s,isScrolledDown:c,scrollTarget:u,outerScrollOffset:n,SCROLL_POSITION_TOLERANCE:_,isDraggingCell:f,isTouchActiveNative:S,distToTopEdge:O,distToBottomEdge:v,autoscrollThreshold:T,autoscrollSpeed:h,runOnJS:E,scrollToInternal:N},C.__workletHash=0xdd81caf6b3b,C.__initData=t,C})({_worklet_15221845355323_init_data:T,isAtTopEdge:V,isAtBottomEdge:x,isScrolledUp:z,isScrolledDown:P,scrollTarget:F,outerScrollOffset:E,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE,isDraggingCell:p,isTouchActiveNative:k,distToTopEdge:B,distToBottomEdge:J,autoscrollThreshold:R,autoscrollSpeed:w,runOnJS:t.runOnJS,scrollToInternal:function(t){var o;null===(o=C.current)||void 0===o||o.scrollTo({y:t,animated:!0})}}),[w,R,p]),null};var t=r(d[0]),o=r(d[1]),l=r(d[2]);const s={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs1(){const{hoverOffset,outerScrollOffset}=this.__closure;return hoverOffset.value-outerScrollOffset.value;}"},c={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs2(){const{outerScrollOffset,SCROLL_POSITION_TOLERANCE}=this.__closure;return outerScrollOffset.value-SCROLL_POSITION_TOLERANCE<=0;}"},u={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs3(){const{outerScrollOffset,containerSize,SCROLL_POSITION_TOLERANCE,scrollViewSize}=this.__closure;return outerScrollOffset.value+containerSize.value+SCROLL_POSITION_TOLERANCE>=scrollViewSize.value;}"},n={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs4(){const{hoverScreenOffset}=this.__closure;return Math.max(0,hoverScreenOffset.value);}"},_={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs5(){const{containerSize,hoverScreenOffset,activeCellSize}=this.__closure;const dist=containerSize.value-(hoverScreenOffset.value+activeCellSize.value);return Math.max(0,dist);}"},f={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs6(){const{distToTopEdge,autoscrollThreshold}=this.__closure;return distToTopEdge.value<=autoscrollThreshold;}"},S={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs7(){const{distToBottomEdge,autoscrollThreshold}=this.__closure;return distToBottomEdge.value<=autoscrollThreshold;}"},O={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs8(){const{isDraggingCell}=this.__closure;return isDraggingCell.value;}"},v={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs9(cur,prev){const{scrollTarget,outerScrollOffset}=this.__closure;if(cur&&!prev){scrollTarget.value=outerScrollOffset.value;}}"},T={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs10(){const{isAtTopEdge,isAtBottomEdge,isScrolledUp,isScrolledDown,scrollTarget,outerScrollOffset,SCROLL_POSITION_TOLERANCE,isDraggingCell,isTouchActiveNative,distToTopEdge,distToBottomEdge,autoscrollThreshold,autoscrollSpeed,runOnJS,scrollToInternal}=this.__closure;const isAtEdge=isAtTopEdge.value||isAtBottomEdge.value;const topDisabled=isAtTopEdge.value&&isScrolledUp.value;const bottomDisabled=isAtBottomEdge.value&&isScrolledDown.value;const isEdgeDisabled=topDisabled||bottomDisabled;const scrollTargetDiff=Math.abs(scrollTarget.value-outerScrollOffset.value);const scrollInProgress=scrollTargetDiff>SCROLL_POSITION_TOLERANCE;const shouldScroll=isAtEdge&&!isEdgeDisabled&&isDraggingCell.value&&isTouchActiveNative.value&&!scrollInProgress;const distFromEdge=isAtTopEdge.value?distToTopEdge.value:distToBottomEdge.value;const speedPct=1-distFromEdge/autoscrollThreshold;const offset=speedPct*autoscrollSpeed;const targetOffset=isAtTopEdge.value?Math.max(0,outerScrollOffset.value-offset):outerScrollOffset.value+offset;if(shouldScroll){scrollTarget.value=targetOffset;runOnJS(scrollToInternal)(targetOffset);}}"}},3435,[2952,3434,3419]);
|
|
15857
|
+
__d(function(g,r,_i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"NestableScrollContainer",{enumerable:!0,get:function(){return S}});var t=e(r(d[0])),l=r(d[1]),n=r(d[2]),o=e(n),c=r(d[3]),f=r(d[4]);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},u.apply(this,arguments)}const i=o.default.createAnimatedComponent(l.ScrollView),s={code:"function reactNativeDraggableFlatlist_NestableScrollContainerJs1(_ref){const{outerScrollOffset}=this.__closure;let{contentOffset:contentOffset}=_ref;outerScrollOffset.value=contentOffset.y;}"};function _(e){const{outerScrollOffset:l,containerSize:o,scrollViewSize:_,scrollableRef:S,outerScrollEnabled:b}=(0,c.useSafeNestableScrollContainerContext)(),v=(0,n.useAnimatedScrollHandler)({onScroll:(function({_worklet_8746208410386_init_data:e,outerScrollOffset:t}){const l=function(e){let{contentOffset:l}=e;t.value=l.y};return l.__closure={outerScrollOffset:t},l.__workletHash=8746208410386,l.__initData=e,l})({_worklet_8746208410386_init_data:s,outerScrollOffset:l})}),O=(0,f.useStableCallback)(e=>{const{nativeEvent:{layout:t}}=e;o.value=t.height}),C=(0,f.useStableCallback)((t,l)=>{var n;_.value=l,null===(n=e.onContentSizeChange)||void 0===n||n.call(e,t,l)});return t.default.createElement(i,u({},e,{onLayout:O,onContentSizeChange:C,scrollEnabled:b,ref:S,scrollEventThrottle:1,onScroll:v}))}const S=t.default.forwardRef((e,l)=>t.default.createElement(c.NestableScrollContainerProvider,{forwardedRef:l||void 0},t.default.createElement(_,e)))},3436,[17,2864,2952,3434,3426]);
|
|
15858
|
+
__d(function(g,r,i,a,m,e,d){},3437,[]);
|
|
15859
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return s}});var t=r(d[0]);r(d[1]);var n=r(d[2]),o=r(d[3]),c=r(d[4]);function s(){const s=(0,t.c)(1);let u;return s[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(o.RootProviders,{children:(0,c.jsx)(n.Stack,{screenOptions:{headerShown:!1}})}),s[0]=u):u=s[0],u}},3438,[15,3439,743,3442,10]);
|
|
15860
|
+
__d(function(g,r,i,a,m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return b}});var t=e(r(_d[0])),n=r(_d[1]),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),l=e(r(_d[3])),c=e(r(_d[4])),o=e(r(_d[5]));const f={en:{translation:c.default},it:{translation:o.default}},d=u.getLocales()[0]?.languageCode?.slice(0,2)??"en",s=Object.keys(f).includes(d)?d:"en";t.default.use(n.initReactI18next).init({resources:f,lng:s,fallbackLng:"en",interpolation:{escapeValue:!1}}),l.default.getItem("v2.language").then(e=>{"it"!==e&&"en"!==e||t.default.changeLanguage(e)});var b=t.default},3439,[789,786,2855,2792,3440,3441]);
|
|
15861
|
+
__d(function(e,t,i,a,o,r,n){o.exports={devices:{editDevice:"Edit device",originalName:"Original name",customName:"Custom name",customNamePlaceholder:"Leave empty to use original",icon:"Icon",typeLight:"Light",typeSwitch:"Switch",typeCover:"Cover",typeLock:"Lock",typeAlarm:"Alarm",typeButton:"Button",typeSelect:"Select",typeSiren:"Siren",typeSensor:"Sensor",typeEntry:"Entry",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Run",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Mute",unmute:"Unmute",stop:"Stop",locked:"Locked",unlocked:"Unlocked",open:"Open",closed:"Closed",disarmed:"Disarmed",disarm:"Disarm"},common:{error:"Error",save:"Save",cancel:"Cancel",loading:"Loading...",comingSoon:"Coming soon",back:"Back",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",reset:"Reset",selectAll:"Select all",deselectAll:"Deselect all",delete:"Delete",retry:"Retry"},grids:{newGrid:"New grid",deleteConfirm:"Delete this grid?",noGrids:"No grids yet. Create one to arrange cameras in a mosaic view.",createGrid:"Create grid",cameras:"cameras",notFound:"Grid not found.",noCameras:"No cameras in this grid. Edit the grid to add some.",edit:"Edit",addCamera:"Add camera",presets:"Presets",auto:"Auto",manual:"Manual",gridName:"Grid name",view:"View",addCameraHint:"Add at least one camera from the button above.",allCamerasAdded:"All cameras already in grid",cameraUnavailable:"Camera unavailable",camerasInGrid:"Cameras in grid",addAll:"Add all",addCameras:"Add Cameras",backToGrid:"Back to Grid",timelineNotSupported:"Timeline not supported"},nav:{cameras:"Cameras",grids:"Grids",events:"Events",videoclips:"Videoclips",list:"List",settings:"Settings"},cameras:{addCamera:"Add camera",pipActive:"PiP active",reorderEnable:"Reorder",reorderDisable:"Unlock",live:"Live",noCameras:"No cameras configured",noIntegrations:"No integrations configured. Add a system to get started.",createSystem:"Create system",importFrom:"Import cameras from",importSuccess:"Import complete",importCount:"{{count}} cameras imported",selectCamerasToImport:"Select cameras to import",selectAll:"Select all",deselectAll:"Deselect all",importSelected:"Import {{count}} selected",noCamerasFound:"No cameras found",play:"\u25b6 Play",paused:"Paused",noDataForDate:"No data for this date",recordingNotAvailable:"Recording not available",noEventsReel:"No recent events",settings:"Settings",highlightMotion:"Motion Highlight",highlightOnMotion:"Highlight on motion",highlightAudio:"Audio Highlight",audioMode:"Mode",audioModeOff:"Off",audioModeSensor:"Sensor",audioModeLevel:"Level",audioPreset:"Audio Preset",audioPresetCustom:"Custom",audioPresetCrying:"Crying / baby",audioPresetAlarm:"Alarm / siren",audioPresetDog:"Dog barking",audioPresetDoorbell:"Doorbell / knock",audioPresetGlass:"Glass break",audioWindow:"Window (s)",audioThreshold:"Threshold (dB)",audioHitPercentage:"Hit (%)",audioHoldSeconds:"Hold (s)",highlightDetection:"Object Detection Highlight",highlightOnDetection:"Highlight on detection",detectionClasses:"Classes",holdSeconds:"Hold (s)",rtspNotSupportedWeb:"RTSP streams are not supported on web. Use the mobile app.",liveDetections:"Live detections",filterTimeline:"Filter timeline",filterClasses:"Filter classes...",filterBySeverity:"Filter by severity",severityAlert:"Alert",severityDetection:"Detection",statusPosition:"Status Indicators Position",today:"Today",yesterday:"Yesterday",timeline:"Timeline",timelineEventsClusterEvents:"Events",selectDate:"Select a date",videoclipsNotSupported:"Videoclips not supported for this camera",noVideoclipsForDate:"No videoclips for this date",endOfList:"End of list",backToLive:"Back to live",goLive:"Go live",loadingClip:"Loading clip...",clusterDetailShowBbox:"Show bounding box on image",clusterDetailOpenVideoclip:"Open videoclip",clusterDetailLoadingEvents:"Loading events...",devices:"Devices",noAssociatedDevices:"No devices linked. Configure in Settings > Cameras.",timelineData:"Timeline data",timelineDataHint:"What to show on the timeline.",timelineDataVideoclips:"Videoclips",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Events",timelineEvents:"Timeline events",timelineEventsHint:"Which event types to show on the timeline, by severity.",timelinePresetAll:"All",timelinePresetImportant:"Important",timelinePresetCritical:"Critical",timelinePresetCustom:"Custom",statusBlock:"Status Block",sensorsBlock:"Sensors Block",position:"Position",indicators:"Indicators",downloadSnapshot:"Download Snapshot",exportDownloadClip:"Download Clip",exportRecordingWebOnly:"Recording export (web only)",exportSnapshot:"Export Snapshot",intercomError:"Intercom error",multiCam:"Multi-Camera",ptzNotSupported:"PTZ not supported",ptzSelectPreset:"Select PTZ Preset",snapshotFailed:"Snapshot failed"},events:{loading:"Loading events...",filterByLabel:"Filter by label",filterByLabelPlaceholder:"e.g. person, doorbell",filterByCamera:"Filter by camera",date:"Date",detectionTypes:"Detection types",source:"Source",cameras:"Cameras",groupingRange:"Grouping",groupingPresetMinutes:"{{m}} min",groupingCustom:"Custom",groupingCustomMinutes:"Minutes",groupingCustomApply:"Apply",today:"Today",noCamerasFromConfig:"Cameras loaded from EventsApp config",all:"All",typesCount:"{{count}} types",camerasCount:"{{count}} cameras",cols:"cols",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"VideoClips API",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Person",detectionVehicle:"Vehicle",detectionAnimal:"Animal",detectionAudio:"Audio",detectionFace:"Face",detectionPlate:"Plate",detectionPackage:"Package",detectionDoorbell:"Doorbell",detectionSensor:"Sensor",detectionMotion:"Motion",detectionRules:"Rules",noScryptedIntegration:"Add a Scrypted integration in Settings to view events.",frigateNoEvents:"Events are only available for Scrypted. Select a Scrypted instance in Settings.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading events",noEvents:"No events for this date. Try changing the date or filters.",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear",columnsPerRow:"Columns per row",onlyWithClips:"Only with clips",relatedClip:"Related Clip"},videoclips:{loading:"Loading videoclips...",noCamerasFromConfig:"Cameras loaded from config",noScryptedIntegration:"Add a Scrypted integration in Settings to view videoclips.",noFrigateIntegration:"Select a Frigate integration in Settings to view videoclips.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading videoclips",noVideoclips:"No videoclips for this date. Try changing the date or filters.",openVideoclip:"Open videoclip",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear"},settings:{integrations:"Integrations",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Name",baseUrl:"Base URL",urlLocal:"Local URL",urlPublic:"Public URL",username:"Username",password:"Password",token:"Token (optional)",frigateTokenHint:"Token (optional): JWT from browser",tokenRequired:"Token",testConnection:"Test connection",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connection successful",connectionError:"Connection failed",scryptedCredentialsPromptTitle:"Scrypted login",scryptedCredentialsPromptSubtitle:"Enter your Scrypted username and password to connect.",scryptedCredentialsPromptSkip:"Skip for now",usernamePlaceholder:"admin",save:"Save",tabStream:"Stream & playback",tabGeneral:"General",data:"Data",clearCacheEventsClips:"Clear events & videoclips cache",eventsClipsSourceHint:"Source for Events and Videoclips tabs.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Choose which integrations to use for the reel.",reelScryptedSourceHint:"When using Scrypted: event source for reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Add a Scrypted or Frigate integration first.",exportBackup:"Export backup",exportError:"Export failed",importBackup:"Import backup",importConfirm:"This will replace all cameras, integrations and settings with the backup data. Continue?",importSuccess:"Backup restored successfully",importError:"Import failed",uiPrototypes:"UI Prototypes",uiPrototypesHint:"Explore experimental timeline designs",versions:"Versions",appVersion:"App",nativeVersion:"Native",updateNow:"Update now",updateError:"Update failed",updateAvailableTitle:"Update Available",updateAvailableMessage:"A new version of CamStack has been downloaded and is ready to install. The app will restart to apply the update.",updateInstall:"Install & Restart",updateLater:"Later",tabIntegrations:"Integrations",tabCameras:"Camera settings",theme:"Theme",themeSystem:"System",themeLight:"Light",themeDark:"Dark",language:"Language",languageSystem:"System",languageEn:"English",languageIt:"Italiano",timelineMode:"Timeline Mode",timelineModeClassic:"Classic",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Show detection timeline",timelineVisibleDescription:"Display the detection timeline panel in the camera view.",clusterSize:"Cluster card size",snapshotInterval:"Snapshot refresh interval",clusterSizeXS:"XS",clusterSizeS:"S",clusterSizeM:"M",clusterSizeL:"L",clusterSizeXL:"XL",highlightAppearance:"Highlight appearance",highlightAppearanceHint:"Color and border thickness for motion, audio, and detection highlights on camera streams.",highlightMotion:"Motion",highlightAudio:"Audio",highlightDetection:"Detection",highlightColor:"Color",highlightThickness:"Thickness",selectSection:"Select section",addSystem:"Add system",selectPlatform:"Select platform",deleteInstance:"Delete instance",deleteInstanceConfirm:"Are you sure you want to delete this instance?",delete:"Delete",mqttEvents:"MQTT - Real-time events",mqttBrokerUrl:"MQTT broker URL",mqttUsername:"MQTT username",mqttPassword:"MQTT password",mqttTopicPrefix:"Topic prefix (default: frigate)",mqttOptional:"Optional",scryptedAddressAlreadyUsed:"This Scrypted address is already configured. Only one instance per address is allowed.",scryptedAdvancedNotifierRequired:"The Advanced Notifier plugin is required for the connection.",scryptedCorsTitle:"CORS configuration required (Web)",scryptedCorsBody:"In Scrypted, open the Cloud plugin settings and add your domain ({{domain}}) to the CORS Allowed Origins list. Without this, the browser will block requests to your Scrypted server.",scryptedUrlHint:"Local URL is tried first (e.g. on LAN), then public URL. At least one required.",gridLayout:"Grid layout",gridLayoutHint:"Display options for the cameras grid.",gridColumns:"Grid columns",gridColumnsHint:"Number of cameras per row. Auto = 1 on mobile, 4 on tablet.",gridShowName:"Show camera name",gridShowState:"Show state (battery, recording, sleeping)",reorderCameras:"Reorder cameras",reorderCamerasHint:"Drag to reorder cameras",reorderDone:"Done",manageCameras:"Manage cameras",manageCamerasHint:"Remove cameras from the app.",downloadSnapshot:"Download snapshot",snapshotFailed:"Could not fetch snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Download clip",exportStartRecording:"Start recording",exportStopRecording:"Stop recording",exportRecordingWebOnly:"Recording available on web",intercomError:"Intercom unavailable. Check camera credentials in Scrypted.",deleteCamera:"Remove camera",deleteCameraConfirm:"Remove {{name}} from the app?",streamPlayback:"Stream & playback",playOnOpen:"Start stream when opening camera",playOnOpenHint:"Automatically load the live stream when you open a camera.",audioOnOpen:"Unmute audio when opening",audioOnOpenHint:"Play audio when opening a camera (if supported).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Restart stream when no data received (helps with stalled connections).",cameraPlayer:"Camera player",webViewCameraDetail:"Use WebView player",webViewCameraDetailHint:"Use WebView for Scrypted cameras (faster first frame, more stable). PiP, fullscreen and intercom work. Default: native player.",streamQuality:"Stream quality",streamQualitySingle:"Single camera quality",streamQualityGrid:"Grid quality",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Associated devices",associatedDevicesHint:"Add actuators (lights, switches, covers, etc.) to control from the camera view.",linkedDevices:"Linked",reorderHint:"Use arrows to reorder",addDevice:"Add device",noEligibleDevices:"No Scrypted or Home Assistant configured. Add an integration first.",configureDevices:"Configure devices",cameraSettingsHint:"Choose a camera to configure its specific options.",noCamerasConfigured:"No cameras configured.",searchDevices:"Search devices...",source:"Source",type:"Type",all:"All",noMatchingDevices:"No devices match the filters.",frigateStream:"Frigate Stream",frigateStreamSourceHint:"Stream source: WebRTC (default), RTSP, or MJPEG.",frigateStreamMapping:"Stream mapping (go2rtc names from config)",frigateStreamMappingHint:"Select from available go2rtc streams. Order: Main, Sub, Low.",frigateSelectStream:"Select stream",frigateAddStream:"Add stream",frigateInfo:"Camera info",frigateShowConfig:"Show config",frigateShowGo2rtc:"Show go2rtc",frigateMissingConfig:"Missing baseUrl or cameraName in camera config.",tabLogs:"Logs",logsCount:"{{count}} entries",logsDownload:"Download",logsClear:"Clear",logsEmpty:"No logs yet. Console output will appear here.",logsExportError:"Export failed",logsExportTitle:"Export logs",logsClearConfirmTitle:"Clear logs",logsClearConfirmMessage:"Remove all log entries?",hubAppearanceTitle:"Appearance",hubAppearanceDesc:"Theme, language, timeline and highlights",hubCamerasTitle:"Cameras",hubCamerasDesc:"Grid layout, stream quality and camera management",hubIntegrationsTitle:"Integrations",hubIntegrationsDesc:"Manage Scrypted, Frigate and other systems",hubAdvancedTitle:"Advanced",hubAdvancedDesc:"Data backup and cache management",hubLogsTitle:"Logs",hubLogsDesc:"View and export application logs",hubCacheTitle:"Cache",frigateAutoSnap:"Auto Snapshot",frigateSegmentNav:"Segment Navigation",frigateShowGo:"Show Go2RTC",frigateTimeline:"Timeline",reelCameras:"Reel Cameras",reelCamerasHint:"Select which cameras appear in the events reel",reelDeselectAll:"Deselect All",reelDetectionClasses:"Detection Classes",reelDetectionClassesHint:"Filter events by detection class",reelIncludeRuleArtifacts:"Include Rule Artifacts",reelIncludeRuleArtifactsHint:"Show rule-based events in the reel",reelRuleArtifacts:"Rule Artifacts",reelSelectAll:"Select All",reelBadgeContent:"Badge content",reelBadgePosition:"Badge position",reelBadgeSize:"Badge size",reelBadgeBoth:"Time + Class",reelBadgeTime:"Time only",reelBadgeClass:"Class only",reelBadgeNone:"Hidden",reelBadgeSmall:"Small",reelBadgeMedium:"Medium",reelBadgeLarge:"Large"},reel:{filterMotion:"Motion",filterOnlyRules:"Only rules",filterOnlySensors:"Only sensors",goToMostRecent:"Go to most recent"},v2:{common:{connecting:"Connecting\u2026",online:"Online",offline:"Offline",loadError:"Loading error",create:"Create"},cameras:{empty:"No cameras",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"Sleeping",unavailable:"Unavailable",motion:"Motion",snapshotLoading:"Loading\u2026",manage:"Manage cameras",manageHint:"Drag to reorder. Rename inline. Toggle to show or hide a camera from the list.",reorderHandle:"Drag to reorder"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Mute",unmute:"Unmute",snapshot:"Snapshot",snapshotFailed:"Could not capture a snapshot.",ptz:"PTZ controls",talk:"Talk",fullscreen:"Fullscreen",talkFailed:"Could not start talk-back. Check microphone access.",pip:"Picture in Picture",exitFullscreen:"Exit fullscreen",devices:"Devices",devicesEmpty:"No connected devices.",motionBoxes:"Motion boxes",close:"Close",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Create grid",empty:"No grids",emptyHint:"Tap + to create your first grid",countNone:"No cameras",countOne:"1 camera",countOther:"{{count}} cameras",defaultName:"New grid",deleteTitle:"Delete grid",deleteConfirm:"Delete \"{{name}}\"? This cannot be undone.",export:"Export",exportAllA11y:"Export all grids",shareA11y:"Share grid",editA11y:"Edit grid",deleteA11y:"Delete grid",linkCopied:"Grid link copied to clipboard",layoutAuto:"Auto",layoutColumns:"{{count}} cols"},gridView:{editA11y:"Edit grid",fallbackTitle:"Grid",notFound:"Grid not found",emptyGrid:"This grid is empty",addCameras:"Add cameras",reorderTitle:"Reorder cameras",reorderA11y:"Reorder cameras",reorderDoneA11y:"Done reordering",allHidden:"All cameras are hidden. Use reorder mode to show some.",dragA11y:"Drag to reorder",hideA11y:"Hide from grid",showA11y:"Show in grid",removeA11y:"Remove from grid"},gridBuilder:{title:"Edit grid",nameLabel:"Name",namePlaceholder:"Grid name",camerasSelected:"Cameras ({{count}} selected)",optionsTitle:"Options",showName:"Show camera name",export:"Export grid",orderSection:"In the grid",orderHint:"Drag to reorder",emptyOrder:"No cameras yet \u2014 add some below.",addSection:"Add cameras",removeA11y:"Remove from grid",addA11y:"Add to grid",highlightTitle:"Highlight",highlightMotion:"On motion",highlightAudio:"On audio",highlightAudioOff:"Off",highlightAudioSensor:"Presence",highlightAudioLevel:"Level",highlightThreshold:"Threshold",highlightHold:"Hold",highlightDetection:"On detection"},gridBar:{back:"Back",pauseAll:"Pause all",playAll:"Play all",audio:"Audio",quality:"Stream quality",layout:"Layout",highlightMenu:"Highlight & overlays",activeOnly:"Active only",share:"Share grid",edit:"Edit grid",hide:"Hide controls",show:"Show controls",muteAll:"Mute all",unmuteAll:"Unmute all"},gridMenu:{highlightMaster:"Highlight borders"},gridShare:{title:"Share \"{{name}}\"",quality:"Stream quality",layout:"Layout",showNames:"Show camera names",activeOnly:"Active cameras only",boxes:"Bounding boxes",highlightEnable:"Highlight",audioSummary:"Audio starts on for {{count}} camera(s)",ttlTitle:"Link expires",ttl_1d:"1 day",ttl_7d:"7 days",ttl_30d:"30 days",ttl_never:"Forever",tokenNotice:"The link includes a view-only access token limited to these cameras. Anyone with the link can watch until it expires or is revoked.",copyLink:"Copy link",creating:"Creating link\u2026",copiedExpires:"Link copied \u2014 expires {{date}}",copiedNever:"Link copied \u2014 never expires",error:"Could not create the share link. Check the connection and try again.",optionAuto:"Auto",optionHigh:"High",optionMedium:"Mid",optionLow:"Low"},gridControls:{play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",quality:"Quality",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Events \u2014 coming soon",searchLabel:"Search label\u2026",empty:"No events",today:"Today",clips:"Clips",group:"Group"},settings:{themeSystem:"System",themeDark:"Dark",themeLight:"Light",server:"Server",hubActive:"Active hub",changeServer:"Change server",signOut:"Sign out",network:"Network",networkNone:"No routes probed yet",endpointUnlikely:"Unlikely usable",reprobe:"Re-probe routes",reprobing:"Probing\u2026",appearance:"Appearance",theme:"Theme",info:"Info",app:"App",version:"Version",noServer:"No server",footerNote:"CamStack Viewer connects to a single camstack hub. Cameras, grids and events are managed by the server.",language:"Language",langSystem:"System",gridDefaults:"Grid defaults",showName:"Show camera name",showNameHint:"Overlay the camera name on each tile",showState:"Show status badge",showStateHint:"Show online / recording state on each tile",columns:"Columns",cameraOrder:"Camera order",orderName:"By name",orderCustom:"Custom",streamQuality:"Stream quality",streamDefaults:"Stream defaults",playOnOpen:"Play on open",playOnOpenHint:"Start the live stream when a camera opens",audioOnOpen:"Audio on open",audioOnOpenHint:"Unmute audio when a camera opens",snapshotInterval:"Snapshot refresh",watchdog:"Auto-reconnect",watchdogHint:"Restart a stalled or dropped stream automatically",highlightAppearance:"Highlight appearance",highlightMotionColor:"Motion color",highlightAudioColor:"Audio color",highlightDetectionColor:"Detection color",highlightThickness:"Border thickness",qualityAuto:"Auto",qualityHigh:"High",qualityMid:"Medium",qualityLow:"Low",secondsValue:"{{count}}s",experimental:"Experimental",hlsRecordedPlayback:"HLS recorded playback (experimental)",hlsRecordedPlaybackHint:"Play recorded footage via HLS instead of WebRTC \u2014 may be smoother but is unverified on iOS",advanced:"Advanced",clearCache:"Clear cache",clearCacheHint:"Free up snapshots and cached data (keeps your server and settings)",clearCacheConfirmTitle:"Clear cache?",clearCacheConfirmBody:"This removes cached images and query data. Your server, sign-in and settings are kept.",clearCacheDone:"Cache cleared",exportSettings:"Export settings",exportSettingsHint:"Copy your settings as JSON",exportSettingsDone:"Settings copied as JSON",viewLogs:"View logs",viewLogsHint:"Recent in-app log messages",logsEmpty:"No logs recorded yet",keepLogs:"Keep logs",keepLogsHint:"Record a rolling buffer of in-app log messages",debugMode:"Debug mode",debugModeHint:"Verbose logs across live, playback and scrub \u2014 sent to the server",logsClear:"Clear",resetSettings:"Reset settings",resetSettingsHint:"Restore all defaults",resetConfirmTitle:"Reset settings?",resetConfirmBody:"This restores all settings to their defaults.",cancel:"Cancel",confirm:"Confirm",timeline:"Timeline & highlights",reel:"Event reel",comingSoon:"Coming soon",cameras:"Cameras",manageCameras:"Manage cameras",manageCamerasHint:"Rename, hide, reorder",pinchExpandsHeight:"Pinch enlarges the view",pinchExpandsHeightHint:"Pinching to zoom also grows the video taller (crops the side edges on 16:9 cameras).",playerStatusChip:"Player status badge",playerStatusChipHint:"Show the LIVE / playhead-time badge over the video. Off by default \u2014 the timeline already shows it.","timeline.gapPercent":"Cluster gap (%)","timeline.sizePercent":"Cluster size (%)","timeline.activityVariant":"Activity bars","timeline.variantLanes":"Lanes","timeline.variantRibbon":"Ribbon","timeline.repPriority":"Detection priority","timeline.indicatorPositionPct":"Indicator position (%)"},login:{loginFailed:"Login failed",verifyFailed:"Verification failed",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Show password",hidePassword:"Hide password",signIn:"Sign in",signingIn:"Signing in\u2026",twoFactor:"Two-factor authentication",totpHint:"Enter the 6-digit code from your authenticator app to sign in as ",verificationCode:"Verification code",verifyAndSignIn:"Verify and sign in",verifying:"Verifying\u2026",back:"Back",findHub:"Find hub on network",searchingHub:"Searching\u2026",hubNotFound:"No CamStack hub found on the network"},live:{webUnsupported:"Live view is not available on the web version yet.",connecting:"Connecting to live stream\u2026",error:"Unable to load the live stream.",retry:"Retry",noConnection:"No connection to the server",failed:"Connection failed"},ptz:{title:"PTZ",notAvailable:"PTZ controls are not available for this camera.",zoom:"Zoom",home:"Home position",presets:"Presets",noPresets:"No presets saved."},timeline:{activityTitle:"Activity",last24h:"Last 24h",loading:"Loading activity\u2026",noActivity:"No activity in the last 24 hours.",legendRecording:"Recorded",legendMotion:"Motion",legendAudio:"Audio"},theater:{back:"Back",today:"Today",yesterday:"Yesterday",selectDate:"Pick a date",live:"LIVE",now:"NOW",auto:"Auto",quality:"Stream quality",filterAll:"All",filter_motion:"Motion",filter_audio:"Audio",goToLive:"Go to live",noRecording:"No recording",noRecordingHint:"No footage at this time",detailCount:"{{frames}} frames \xb7 {{count}} detections",detailTracks:"{{tracks}} tracks \xb7 {{count}} detections",detailEmpty:"No detail images for this moment",detailSeek:"Go to this moment"},accessories:{on:"On",off:"Off",dimUp:"Brighter",dimDown:"Dimmer",lock:"Lock",unlock:"Unlock",open:"Open",close:"Close",stop:"Stop",arm:"Arm",disarm:"Disarm",onMotion:"On motion"},cameraMenu:{title:"View options",boundingBoxes:"Bounding boxes",streamStats:"Stream stats"},stats:{title:"Stream stats",resolution:"Resolution",fps:"FPS",bitrate:"Bitrate",packetLoss:"Packet loss",jitter:"Jitter",codec:"Codec",frames:"Frames (dropped/total)",waiting:"Measuring\u2026",playbackHint:"Full WebRTC stats need the native player."}},prototype:{today:"Today",yesterday:"Yesterday",now:"NOW",endOfDay:"END OF DAY",loading:"Loading...",timeline:"Timeline",events:"Events",playClip:"Play clip",goToNow:"NOW",noEvents:"No events"}}},3440,[]);
|
|
15862
|
+
__d(function(e,i,a,t,o,r,n){o.exports={devices:{editDevice:"Modifica dispositivo",originalName:"Nome originale",customName:"Nome personalizzato",customNamePlaceholder:"Lascia vuoto per usare l'originale",icon:"Icona",typeLight:"Luce",typeSwitch:"Interruttore",typeCover:"Tapparella",typeLock:"Serratura",typeAlarm:"Allarme",typeButton:"Pulsante",typeSelect:"Selezione",typeSiren:"Sirena",typeSensor:"Sensore",typeEntry:"Ingresso",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Esegui",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Muto",unmute:"Audio",stop:"Stop",locked:"Chiusa",unlocked:"Aperta",open:"Aperta",closed:"Chiusa",disarmed:"Disinserito",disarm:"Disinserisci"},common:{error:"Errore",save:"Salva",cancel:"Annulla",loading:"Caricamento...",comingSoon:"In arrivo",back:"Indietro",fullscreen:"Schermo intero",exitFullscreen:"Esci da schermo intero",reset:"Reimposta",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",delete:"Elimina",retry:"Riprova"},grids:{newGrid:"Nuova griglia",deleteConfirm:"Eliminare questa griglia?",noGrids:"Nessuna griglia. Creane una per disporre le telecamere in vista mosaico.",createGrid:"Crea griglia",cameras:"telecamere",notFound:"Griglia non trovata.",noCameras:"Nessuna telecamera in questa griglia. Modifica per aggiungerne.",edit:"Modifica",addCamera:"Aggiungi telecamera",presets:"Preset",auto:"Auto",manual:"Manuale",gridName:"Nome griglia",view:"Visualizza",addCameraHint:"Aggiungi almeno una telecamera dal pulsante sopra.",allCamerasAdded:"Tutte le telecamere sono gi\xe0 in griglia",cameraUnavailable:"Telecamera non disponibile",camerasInGrid:"Telecamere nella griglia",addAll:"Aggiungi tutte",addCameras:"Aggiungi Telecamere",backToGrid:"Torna alla Griglia",timelineNotSupported:"Timeline non supportata"},nav:{cameras:"Telecamere",grids:"Griglie",events:"Eventi",videoclips:"Videoclip",list:"Lista",settings:"Impostazioni"},cameras:{addCamera:"Aggiungi telecamera",pipActive:"PiP attivo",reorderEnable:"Riordina",reorderDisable:"Sblocca",live:"Live",noCameras:"Nessuna telecamera configurata",noIntegrations:"Nessuna integrazione configurata. Aggiungi un sistema per iniziare.",createSystem:"Crea sistema",importFrom:"Importa telecamere da",importSuccess:"Importazione completata",importCount:"{{count}} telecamere importate",selectCamerasToImport:"Seleziona telecamere da importare",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",importSelected:"Importa {{count}} selezionate",noCamerasFound:"Nessuna telecamera trovata",play:"\u25b6 Riproduci",paused:"In pausa",noDataForDate:"Nessun dato per questa data",recordingNotAvailable:"Registrazione non disponibile",noEventsReel:"Nessun evento recente",settings:"Impostazioni",highlightMotion:"Evidenza movimento",highlightOnMotion:"Evidenzia al movimento",highlightAudio:"Evidenza audio",audioMode:"Modalit\xe0",audioModeOff:"Off",audioModeSensor:"Sensore",audioModeLevel:"Livello",audioPreset:"Preset audio",audioPresetCustom:"Personalizzato",audioPresetCrying:"Pianto / neonato",audioPresetAlarm:"Allarme / sirena",audioPresetDog:"Abbaio cane",audioPresetDoorbell:"Campanello / bussata",audioPresetGlass:"Rottura vetro",audioWindow:"Finestra (s)",audioThreshold:"Soglia (dB)",audioHitPercentage:"Percentuale (%)",audioHoldSeconds:"Mantenimento (s)",highlightDetection:"Evidenza rilevamento oggetti",highlightOnDetection:"Evidenzia al rilevamento",detectionClasses:"Classi",holdSeconds:"Mantenimento (s)",rtspNotSupportedWeb:"Gli stream RTSP non sono supportati sul web. Usa l'app mobile.",liveDetections:"Detections live",filterTimeline:"Filtra timeline",filterClasses:"Filtra classi...",filterBySeverity:"Filtra per severit\xe0",severityAlert:"Allarme",severityDetection:"Rilevamento",statusPosition:"Posizione indicatori di stato",today:"Oggi",yesterday:"Ieri",timeline:"Timeline",timelineEventsClusterEvents:"Eventi",selectDate:"Seleziona una data",videoclipsNotSupported:"Videoclip non supportati per questa telecamera",noVideoclipsForDate:"Nessun videoclip per questa data",endOfList:"Fine elenco",backToLive:"Torna al live",goLive:"Vai al live",loadingClip:"Caricamento clip...",clusterDetailShowBbox:"Mostra bounding box sull'immagine",clusterDetailOpenVideoclip:"Apri videoclip",clusterDetailLoadingEvents:"Caricamento eventi...",devices:"Dispositivi",noAssociatedDevices:"Nessun dispositivo collegato. Configura in Impostazioni > Telecamere.",timelineData:"Dati timeline",timelineDataHint:"Cosa mostrare sulla timeline.",timelineDataVideoclips:"Videoclip",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Eventi",timelineEvents:"Eventi timeline",timelineEventsHint:"Quali tipi di eventi mostrare sulla timeline, in base alla severit\xe0.",timelinePresetAll:"Tutti",timelinePresetImportant:"Importanti",timelinePresetCritical:"Critici",timelinePresetCustom:"Personalizzato",statusBlock:"Blocco stato",sensorsBlock:"Blocco sensori",position:"Posizione",indicators:"Indicatori",downloadSnapshot:"Scarica Istantanea",exportDownloadClip:"Scarica Clip",exportRecordingWebOnly:"Esporta registrazione (solo web)",exportSnapshot:"Esporta Istantanea",intercomError:"Errore interfono",multiCam:"Multi-Camera",ptzNotSupported:"PTZ non supportato",ptzSelectPreset:"Seleziona Preset PTZ",snapshotFailed:"Istantanea fallita"},events:{loading:"Caricamento eventi...",filterByLabel:"Filtra per etichetta",filterByLabelPlaceholder:"es. person, doorbell",filterByCamera:"Filtra per telecamera",date:"Data",detectionTypes:"Tipi di rilevamento",source:"Sorgente",cameras:"Telecamere",groupingRange:"Raggruppamento",groupingPresetMinutes:"{{m}} min",groupingCustom:"Personalizzato",groupingCustomMinutes:"Minuti",groupingCustomApply:"Applica",today:"Oggi",noCamerasFromConfig:"Telecamere caricate dalla config EventsApp",all:"Tutti",typesCount:"{{count}} tipi",camerasCount:"{{count}} telecamere",cols:"col",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"API VideoClips",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Persona",detectionVehicle:"Veicolo",detectionAnimal:"Animale",detectionAudio:"Audio",detectionFace:"Volto",detectionPlate:"Targa",detectionPackage:"Pacco",detectionDoorbell:"Campanello",detectionSensor:"Sensore",detectionMotion:"Motion",detectionRules:"Regole",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere gli eventi.",frigateNoEvents:"Gli eventi sono disponibili solo per Scrypted. Seleziona un'istanza Scrypted in Impostazioni.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento degli eventi",noEvents:"Nessun evento per questa data. Prova a cambiare data o filtri.",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota",columnsPerRow:"Colonne per riga",onlyWithClips:"Solo con clip",relatedClip:"Clip Correlata"},videoclips:{loading:"Caricamento videoclip...",noCamerasFromConfig:"Telecamere caricate dalla config",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere i videoclip.",noFrigateIntegration:"Seleziona un'integrazione Frigate in Impostazioni per vedere i videoclip.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento dei videoclip",noVideoclips:"Nessun videoclip per questa data. Prova a cambiare data o filtri.",openVideoclip:"Apri videoclip",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota"},settings:{integrations:"Integrazioni",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Nome",baseUrl:"URL base",urlLocal:"URL locale",urlPublic:"URL pubblico",username:"Username",password:"Password",token:"Token (opzionale)",frigateTokenHint:"Token (opzionale): JWT dal browser",tokenRequired:"Token",testConnection:"Test connessione",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connessione riuscita",connectionError:"Connessione fallita",scryptedCredentialsPromptTitle:"Accesso Scrypted",scryptedCredentialsPromptSubtitle:"Inserisci username e password Scrypted per connettere.",scryptedCredentialsPromptSkip:"Salta per ora",usernamePlaceholder:"admin",save:"Salva",tabStream:"Stream e riproduzione",tabGeneral:"Generale",data:"Dati",clearCacheEventsClips:"Svuota cache eventi e videoclip",eventsClipsSourceHint:"Sorgente per le schede Eventi e Videoclip.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Scegli quali integrazioni usare per il reel.",reelScryptedSourceHint:"Con Scrypted: sorgente eventi per il reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Aggiungi prima un'integrazione Scrypted o Frigate.",exportBackup:"Esporta backup",exportError:"Esportazione fallita",importBackup:"Importa backup",importConfirm:"Questo sostituir\xe0 tutte le telecamere, integrazioni e impostazioni con i dati del backup. Continuare?",importSuccess:"Backup ripristinato con successo",importError:"Importazione fallita",uiPrototypes:"Prototipi UI",uiPrototypesHint:"Esplora design sperimentali della timeline",versions:"Versioni",appVersion:"App",nativeVersion:"Nativa",updateNow:"Aggiorna ora",updateError:"Aggiornamento fallito",updateAvailableTitle:"Aggiornamento disponibile",updateAvailableMessage:"Una nuova versione di CamStack \xe8 stata scaricata ed \xe8 pronta per l'installazione. L'app verr\xe0 riavviata per applicare l'aggiornamento.",updateInstall:"Installa e riavvia",updateLater:"Pi\xf9 tardi",tabIntegrations:"Integrazioni",tabCameras:"Telecamere",theme:"Tema",themeSystem:"Sistema",themeLight:"Chiaro",themeDark:"Scuro",language:"Lingua",languageSystem:"Sistema",languageEn:"English",languageIt:"Italiano",timelineMode:"Modalit\xe0 timeline",timelineModeClassic:"Classica",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Mostra timeline rilevamenti",timelineVisibleDescription:"Visualizza il pannello della timeline nella vista telecamera.",clusterSize:"Dimensione cluster",snapshotInterval:"Intervallo aggiornamento snapshot",clusterSizeXS:"Molto piccola",clusterSizeS:"Piccola",clusterSizeM:"Normale",clusterSizeL:"Grande",clusterSizeXL:"Molto grande",highlightAppearance:"Aspetto evidenze",highlightAppearanceHint:"Colore e spessore del bordo per evidenze movimento, audio e rilevamento sugli stream delle telecamere.",highlightMotion:"Movimento",highlightAudio:"Audio",highlightDetection:"Rilevamento",highlightColor:"Colore",highlightThickness:"Spessore",selectSection:"Seleziona sezione",addSystem:"Aggiungi sistema",selectPlatform:"Seleziona piattaforma",deleteInstance:"Elimina istanza",deleteInstanceConfirm:"Vuoi eliminare questa istanza?",delete:"Elimina",mqttEvents:"MQTT - Eventi in tempo reale",mqttBrokerUrl:"URL broker MQTT",mqttUsername:"Username MQTT",mqttPassword:"Password MQTT",mqttTopicPrefix:"Prefisso topic (default: frigate)",mqttOptional:"Opzionale",scryptedAddressAlreadyUsed:"Questo indirizzo Scrypted \xe8 gi\xe0 configurato. \xc8 consentita una sola istanza per indirizzo.",scryptedAdvancedNotifierRequired:"Il plugin Advanced Notifier \xe8 richiesto per la connessione.",scryptedCorsTitle:"Configurazione CORS richiesta (Web)",scryptedCorsBody:"In Scrypted, apri le impostazioni del plugin Cloud e aggiungi il tuo dominio ({{domain}}) alla lista CORS Allowed Origins. Senza questa configurazione, il browser bloccher\xe0 le richieste verso il server Scrypted.",scryptedUrlHint:"L'URL locale viene provato per primo (es. in LAN), poi quello pubblico. Ne serve almeno uno.",gridLayout:"Layout griglia",gridLayoutHint:"Opzioni di visualizzazione per la griglia telecamere.",gridColumns:"Colonne griglia",gridColumnsHint:"Numero di telecamere per riga. Auto = 1 su mobile, 4 su tablet.",gridShowName:"Mostra nome telecamera",gridShowState:"Mostra stato (batteria, registrazione, sleep)",reorderCameras:"Riordina telecamere",reorderCamerasHint:"Trascina per riordinare le telecamere",reorderDone:"Fatto",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rimuovi telecamere dall'app.",downloadSnapshot:"Scarica snapshot",snapshotFailed:"Impossibile recuperare lo snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Scarica clip",exportStartRecording:"Avvia registrazione",exportStopRecording:"Ferma registrazione",exportRecordingWebOnly:"Registrazione disponibile su web",intercomError:"Intercom non disponibile. Verifica le credenziali della telecamera su Scrypted.",deleteCamera:"Rimuovi telecamera",deleteCameraConfirm:"Rimuovere {{name}} dall'app?",streamPlayback:"Stream e riproduzione",playOnOpen:"Avvia stream all'apertura telecamera",playOnOpenHint:"Carica automaticamente lo stream live quando apri una telecamera.",audioOnOpen:"Audio attivo all'apertura",audioOnOpenHint:"Riproduci audio quando apri una telecamera (se supportato).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Riavvia lo stream quando non arrivano dati (aiuta con connessioni bloccate).",cameraPlayer:"Player telecamera",webViewCameraDetail:"Usa player WebView",webViewCameraDetailHint:"Usa WebView per le telecamere Scrypted (primo frame pi\xf9 veloce, pi\xf9 stabile). PiP, fullscreen e intercom funzionano. Default: player nativo.",streamQuality:"Qualit\xe0 stream",streamQualitySingle:"Qualit\xe0 singola telecamera",streamQualityGrid:"Qualit\xe0 griglia",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Dispositivi associati",associatedDevicesHint:"Aggiungi attuatori (luci, interruttori, tapparelle, ecc.) per controllarli dalla vista telecamera.",linkedDevices:"Collegati",reorderHint:"Usa le frecce per riordinare",addDevice:"Aggiungi dispositivo",noEligibleDevices:"Nessun Scrypted o Home Assistant configurato. Aggiungi prima un'integrazione.",configureDevices:"Configura dispositivi",cameraSettingsHint:"Scegli una telecamera per configurarne le opzioni.",noCamerasConfigured:"Nessuna telecamera configurata.",searchDevices:"Cerca dispositivi...",source:"Sorgente",type:"Tipo",all:"Tutti",noMatchingDevices:"Nessun dispositivo corrisponde ai filtri.",frigateStream:"Stream Frigate",frigateStreamSourceHint:"Sorgente stream: WebRTC (default), RTSP o MJPEG.",frigateStreamMapping:"Mappatura stream (nomi go2rtc da config)",frigateStreamMappingHint:"Seleziona dagli stream go2rtc disponibili. Ordine: High, Mid, Sub.",frigateSelectStream:"Seleziona stream",frigateAddStream:"Aggiungi stream",frigateInfo:"Info telecamera",frigateShowConfig:"Mostra config",frigateShowGo2rtc:"Mostra go2rtc",frigateMissingConfig:"Mancano baseUrl o cameraName nella config della telecamera.",tabLogs:"Log",logsCount:"{{count}} voci",logsDownload:"Scarica",logsClear:"Svuota",logsEmpty:"Nessun log. L'output della console apparir\xe0 qui.",logsExportError:"Esportazione fallita",logsExportTitle:"Esporta log",logsClearConfirmTitle:"Svuota log",logsClearConfirmMessage:"Rimuovere tutte le voci di log?",hubAppearanceTitle:"Aspetto",hubAppearanceDesc:"Tema, lingua, timeline e evidenze",hubCamerasTitle:"Telecamere",hubCamerasDesc:"Layout griglia, qualit\xe0 stream e gestione telecamere",hubIntegrationsTitle:"Integrazioni",hubIntegrationsDesc:"Gestisci Scrypted, Frigate e altri sistemi",hubAdvancedTitle:"Avanzato",hubAdvancedDesc:"Backup dati e gestione cache",hubLogsTitle:"Log",hubLogsDesc:"Visualizza ed esporta i log dell'applicazione",hubCacheTitle:"Cache",frigateAutoSnap:"Istantanea Automatica",frigateSegmentNav:"Navigazione Segmenti",frigateShowGo:"Mostra Go2RTC",frigateTimeline:"Timeline",reelCameras:"Telecamere Reel",reelCamerasHint:"Seleziona quali telecamere appaiono nel reel eventi",reelDeselectAll:"Deseleziona Tutto",reelDetectionClasses:"Classi di Rilevamento",reelDetectionClassesHint:"Filtra gli eventi per classe di rilevamento",reelIncludeRuleArtifacts:"Includi Artefatti Regole",reelIncludeRuleArtifactsHint:"Mostra gli eventi basati su regole nel reel",reelRuleArtifacts:"Artefatti Regole",reelSelectAll:"Seleziona Tutto",reelBadgeContent:"Contenuto badge",reelBadgePosition:"Posizione badge",reelBadgeSize:"Dimensione badge",reelBadgeBoth:"Ora + Classe",reelBadgeTime:"Solo ora",reelBadgeClass:"Solo classe",reelBadgeNone:"Nascosto",reelBadgeSmall:"Piccolo",reelBadgeMedium:"Medio",reelBadgeLarge:"Grande"},reel:{filterMotion:"Motion",filterOnlyRules:"Solo rule",filterOnlySensors:"Solo sensori",goToMostRecent:"Vai al pi\xf9 recente"},v2:{common:{connecting:"Connessione\u2026",online:"Online",offline:"Offline",loadError:"Errore di caricamento",create:"Crea"},cameras:{empty:"Nessuna telecamera",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"In standby",unavailable:"Non disponibile",motion:"Movimento",snapshotLoading:"Caricamento\u2026",manage:"Gestisci telecamere",manageHint:"Trascina per riordinare. Rinomina al volo. Usa lo switch per mostrare o nascondere una telecamera dall\u2019elenco.",reorderHandle:"Trascina per riordinare"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Disattiva audio",unmute:"Attiva audio",snapshot:"Istantanea",snapshotFailed:"Impossibile acquisire l'istantanea.",ptz:"Controlli PTZ",talk:"Parla",fullscreen:"Schermo intero",talkFailed:"Impossibile avviare la comunicazione. Verifica l'accesso al microfono.",pip:"Picture in Picture",exitFullscreen:"Esci da schermo intero",devices:"Dispositivi",devicesEmpty:"Nessun dispositivo collegato.",motionBoxes:"Riquadri movimento",close:"Chiudi",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Crea griglia",empty:"Nessuna griglia",emptyHint:"Tocca + per creare la tua prima griglia",countNone:"Nessuna telecamera",countOne:"1 telecamera",countOther:"{{count}} telecamere",defaultName:"Nuova griglia",deleteTitle:"Elimina griglia",deleteConfirm:"Eliminare \"{{name}}\"? L'operazione non \xe8 reversibile.",export:"Esporta",exportAllA11y:"Esporta tutte le griglie",shareA11y:"Condividi griglia",editA11y:"Modifica griglia",deleteA11y:"Elimina griglia",linkCopied:"Link della griglia copiato negli appunti",layoutAuto:"Auto",layoutColumns:"{{count}} col"},gridView:{editA11y:"Modifica griglia",fallbackTitle:"Griglia",notFound:"Griglia non trovata",emptyGrid:"Questa griglia \xe8 vuota",addCameras:"Aggiungi telecamere",reorderTitle:"Riordina telecamere",reorderA11y:"Riordina telecamere",reorderDoneA11y:"Fine riordino",allHidden:"Tutte le telecamere sono nascoste. Usa la modalit\xe0 riordino per mostrarne alcune.",dragA11y:"Trascina per riordinare",hideA11y:"Nascondi dalla griglia",showA11y:"Mostra nella griglia",removeA11y:"Rimuovi dalla griglia"},gridBuilder:{title:"Modifica griglia",nameLabel:"Nome",namePlaceholder:"Nome griglia",camerasSelected:"Telecamere ({{count}} selezionate)",optionsTitle:"Opzioni",showName:"Mostra nome telecamera",export:"Esporta griglia",orderSection:"Nella griglia",orderHint:"Trascina per riordinare",emptyOrder:"Nessuna telecamera \u2014 aggiungine qui sotto.",addSection:"Aggiungi telecamere",removeA11y:"Rimuovi dalla griglia",addA11y:"Aggiungi alla griglia",highlightTitle:"Evidenziazione",highlightMotion:"Su movimento",highlightAudio:"Su audio",highlightAudioOff:"Off",highlightAudioSensor:"Presenza",highlightAudioLevel:"Livello",highlightThreshold:"Soglia",highlightHold:"Mantieni",highlightDetection:"Su rilevamento"},gridBar:{back:"Indietro",pauseAll:"Metti tutto in pausa",playAll:"Riproduci tutto",audio:"Audio",quality:"Qualit\xe0 stream",layout:"Layout",highlightMenu:"Evidenziazione e overlay",activeOnly:"Solo attive",share:"Condividi griglia",edit:"Modifica griglia",hide:"Nascondi controlli",show:"Mostra controlli",muteAll:"Silenzia tutte",unmuteAll:"Riattiva audio"},gridMenu:{highlightMaster:"Bordi di evidenziazione"},gridShare:{title:"Condividi \"{{name}}\"",quality:"Qualit\xe0 stream",layout:"Layout",showNames:"Mostra nomi delle camere",activeOnly:"Solo camere attive",boxes:"Bounding box",highlightEnable:"Evidenziazione",audioSummary:"Audio attivo all\u2019apertura per {{count}} camera/e",ttlTitle:"Scadenza del link",ttl_1d:"1 giorno",ttl_7d:"7 giorni",ttl_30d:"30 giorni",ttl_never:"Per sempre",tokenNotice:"Il link include un token di sola visualizzazione limitato a queste camere. Chiunque abbia il link pu\xf2 guardare finch\xe9 non scade o viene revocato.",copyLink:"Copia link",creating:"Creazione link\u2026",copiedExpires:"Link copiato \u2014 scade il {{date}}",copiedNever:"Link copiato \u2014 non scade mai",error:"Impossibile creare il link di condivisione. Controlla la connessione e riprova.",optionAuto:"Auto",optionHigh:"Alta",optionMedium:"Media",optionLow:"Bassa"},gridControls:{play:"Riproduci",pause:"Pausa",mute:"Muto",unmute:"Riattiva audio",quality:"Qualit\xe0",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Eventi \u2014 in arrivo",searchLabel:"Cerca etichetta\u2026",empty:"Nessun evento",today:"Oggi",clips:"Clip",group:"Gruppo"},settings:{themeSystem:"Sistema",themeDark:"Scuro",themeLight:"Chiaro",server:"Server",hubActive:"Hub attivo",changeServer:"Cambia server",signOut:"Esci",network:"Rete",networkNone:"Nessuna rotta ancora rilevata",endpointUnlikely:"Probabilmente non utilizzabile",reprobe:"Ri-rileva rotte",reprobing:"Rilevamento\u2026",appearance:"Aspetto",theme:"Tema",info:"Info",app:"App",version:"Versione",noServer:"Nessun server",footerNote:"CamStack Viewer si connette a un singolo hub camstack. Telecamere, griglie ed eventi sono gestiti dal server.",language:"Lingua",langSystem:"Sistema",gridDefaults:"Impostazioni griglia",showName:"Mostra nome telecamera",showNameHint:"Sovrapponi il nome della telecamera su ogni riquadro",showState:"Mostra stato",showStateHint:"Mostra lo stato online / registrazione su ogni riquadro",columns:"Colonne",cameraOrder:"Ordine telecamere",orderName:"Per nome",orderCustom:"Personalizzato",streamQuality:"Qualit\xe0 stream",streamDefaults:"Impostazioni stream",playOnOpen:"Riproduci all'apertura",playOnOpenHint:"Avvia lo stream live quando apri una telecamera",audioOnOpen:"Audio all'apertura",audioOnOpenHint:"Attiva l'audio quando apri una telecamera",snapshotInterval:"Aggiornamento snapshot",watchdog:"Riconnessione automatica",watchdogHint:"Riavvia automaticamente uno stream bloccato o interrotto",highlightAppearance:"Aspetto evidenziazione",highlightMotionColor:"Colore movimento",highlightAudioColor:"Colore audio",highlightDetectionColor:"Colore rilevamento",highlightThickness:"Spessore bordo",qualityAuto:"Auto",qualityHigh:"Alta",qualityMid:"Media",qualityLow:"Bassa",secondsValue:"{{count}}s",experimental:"Sperimentale",hlsRecordedPlayback:"Riproduzione registrato via HLS (sperimentale)",hlsRecordedPlaybackHint:"Riproduci il registrato via HLS invece di WebRTC \u2014 pu\xf2 essere pi\xf9 fluido ma non \xe8 verificato su iOS",advanced:"Avanzate",clearCache:"Svuota cache",clearCacheHint:"Libera snapshot e dati in cache (mantiene server e impostazioni)",clearCacheConfirmTitle:"Svuotare la cache?",clearCacheConfirmBody:"Rimuove immagini e dati in cache. Server, accesso e impostazioni vengono mantenuti.",clearCacheDone:"Cache svuotata",exportSettings:"Esporta impostazioni",exportSettingsHint:"Copia le impostazioni in formato JSON",exportSettingsDone:"Impostazioni copiate in JSON",viewLogs:"Visualizza log",viewLogsHint:"Messaggi di log recenti dell'app",logsEmpty:"Nessun log registrato",keepLogs:"Mantieni log",keepLogsHint:"Registra un buffer dei messaggi di log dell'app",debugMode:"Modalit\xe0 debug",debugModeHint:"Log verbosi su live, playback e scrub \u2014 inviati al server",logsClear:"Pulisci",resetSettings:"Ripristina impostazioni",resetSettingsHint:"Ripristina tutti i valori predefiniti",resetConfirmTitle:"Ripristinare le impostazioni?",resetConfirmBody:"Ripristina tutte le impostazioni ai valori predefiniti.",cancel:"Annulla",confirm:"Conferma",timeline:"Timeline ed evidenziazioni",reel:"Sequenza eventi",comingSoon:"Prossimamente",cameras:"Telecamere",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rinomina, nascondi, riordina",pinchExpandsHeight:"Il pizzico ingrandisce la vista",pinchExpandsHeightHint:"Pizzicando per lo zoom il video cresce in altezza (ritaglia i bordi laterali sulle camere 16:9).",playerStatusChip:"Badge stato sul player",playerStatusChipHint:"Mostra il badge LIVE / orario sul video. Disattivato di default \u2014 la timeline lo mostra gi\xe0.","timeline.gapPercent":"Gap cluster (%)","timeline.sizePercent":"Dimensione cluster (%)","timeline.activityVariant":"Barre attivit\xe0","timeline.variantLanes":"Corsie","timeline.variantRibbon":"Nastro","timeline.repPriority":"Priorit\xe0 rilevamento","timeline.indicatorPositionPct":"Posizione indicatore (%)"},login:{loginFailed:"Accesso fallito",verifyFailed:"Verifica fallita",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Mostra password",hidePassword:"Nascondi password",signIn:"Accedi",signingIn:"Accesso\u2026",twoFactor:"Autenticazione a due fattori",totpHint:"Inserisci il codice a 6 cifre dall'app di autenticazione per accedere come ",verificationCode:"Codice di verifica",verifyAndSignIn:"Verifica e accedi",verifying:"Verifica\u2026",back:"Indietro",findHub:"Trova hub in rete",searchingHub:"Ricerca\u2026",hubNotFound:"Nessun hub CamStack trovato in rete"},live:{webUnsupported:"La vista live non \xe8 ancora disponibile nella versione web.",connecting:"Connessione allo stream live\u2026",error:"Impossibile caricare lo stream live.",retry:"Riprova",noConnection:"Nessuna connessione al server",failed:"Connessione fallita"},ptz:{title:"PTZ",notAvailable:"I controlli PTZ non sono disponibili per questa telecamera.",zoom:"Zoom",home:"Posizione iniziale",presets:"Preset",noPresets:"Nessun preset salvato."},timeline:{activityTitle:"Attivit\xe0",last24h:"Ultime 24h",loading:"Caricamento attivit\xe0\u2026",noActivity:"Nessuna attivit\xe0 nelle ultime 24 ore.",legendRecording:"Registrato",legendMotion:"Movimento",legendAudio:"Audio"},theater:{back:"Indietro",today:"Oggi",yesterday:"Ieri",selectDate:"Seleziona una data",live:"LIVE",now:"ORA",auto:"Auto",quality:"Qualit\xe0 stream",filterAll:"Tutti",filter_motion:"Movimento",filter_audio:"Audio",goToLive:"Vai al live",noRecording:"Nessuna registrazione",noRecordingHint:"Nessun filmato per questo momento",detailCount:"{{frames}} frame \xb7 {{count}} rilevamenti",detailTracks:"{{tracks}} tracce \xb7 {{count}} rilevamenti",detailEmpty:"Nessuna immagine di dettaglio per questo istante",detailSeek:"Vai a questo momento"},accessories:{on:"Acceso",off:"Spento",dimUp:"Pi\xf9 luminoso",dimDown:"Meno luminoso",lock:"Blocca",unlock:"Sblocca",open:"Apri",close:"Chiudi",stop:"Ferma",arm:"Attiva",disarm:"Disattiva",onMotion:"Su movimento"},cameraMenu:{title:"Opzioni vista",boundingBoxes:"Bounding box",streamStats:"Statistiche stream"},stats:{title:"Statistiche stream",resolution:"Risoluzione",fps:"FPS",bitrate:"Bitrate",packetLoss:"Pacchetti persi",jitter:"Jitter",codec:"Codec",frames:"Frame (persi/totali)",waiting:"Misurazione\u2026",playbackHint:"Le statistiche WebRTC complete richiedono il player nativo."}},prototype:{today:"Oggi",yesterday:"Ieri",now:"ORA",endOfDay:"FINE GIORNATA",loading:"Caricamento...",timeline:"Timeline",events:"Eventi",playClip:"Riproduci clip",goToNow:"ORA",noEvents:"Nessun evento"}}},3441,[]);
|
|
15863
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.RootProviders=function(v){const _=(0,t.c)(4),{children:f}=v;let y,P,S;_[0]===Symbol.for("react.memo_cache_sentinel")?(y={flex:1},_[0]=y):y=_[0];_[1]===Symbol.for("react.memo_cache_sentinel")?(P=(0,j.jsx)(s.ThemedStatusBar,{}),_[1]=P):P=_[1];_[2]!==f?(S=(0,j.jsx)(n.GestureHandlerRootView,{style:y,children:(0,j.jsx)(c.SafeAreaProvider,{initialMetrics:c.initialWindowMetrics,children:(0,j.jsx)(o.QueryClientProvider,{client:x,children:(0,j.jsxs)(l.ThemeProvider,{children:[P,(0,j.jsx)(h.ServerProvider,{children:(0,j.jsx)(u.LoggerBridge,{children:f})})]})})})}),_[2]=f,_[3]=S):S=_[3];return S};var t=r(d[0]);r(d[1]);var n=r(d[2]),c=r(d[3]),o=r(d[4]),l=r(d[5]),s=r(d[6]),h=r(d[7]),u=r(d[8]),v=r(d[9]),j=r(d[10]);const x=(0,v.createQueryClient)()},3442,[15,17,2864,466,2740,2587,3443,2812,3444,3445,10]);
|
|
15864
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.ThemedStatusBar=function(){const c=(0,t.c)(2),{mode:o}=(0,u.useTheme)(),l="dark"===o?"light":"dark";let _;c[0]!==l?(_=(0,n.jsx)(s.StatusBar,{style:l}),c[0]=l,c[1]=_):_=c[1];return _};var t=r(d[0]);r(d[1]);var s=r(d[2]),u=r(d[3]),n=r(d[4])},3443,[15,17,2862,2587,10]);
|
|
15865
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LoggerBridge=function(f){const p=(0,n.c)(9),{children:v}=f,{server:b,token:h}=(0,t.useServer)(),S=(0,s.useSettingsStore)(l);let L,_;p[0]!==S?(L=()=>{(0,u.setLogVerbose)(S),u.log.info("app","debug mode "+(S?"ON (verbose)":"off"))},_=[S],p[0]=S,p[1]=L,p[2]=_):(L=p[1],_=p[2]);(0,o.useEffect)(L,_);const U=b?.serverUrl??null;let j,k,E;p[3]!==U||p[4]!==h?(j=()=>{U&&h?((0,u.configureLogShipping)({serverUrl:U,token:h}),u.log.info("app","log shipping configured",{serverUrl:U})):(0,u.configureLogShipping)(null)},k=[U,h],p[3]=U,p[4]=h,p[5]=j,p[6]=k):(j=p[5],k=p[6]);(0,o.useEffect)(j,k),p[7]!==v?(E=(0,c.jsx)(c.Fragment,{children:v}),p[7]=v,p[8]=E):E=p[8];return E};var n=r(d[0]),o=r(d[1]),t=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]);function l(n){return n.settings.advanced.debugMode}},3444,[15,17,2812,2799,2704,10]);
|
|
15866
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.createQueryClient=function(){return new t.QueryClient({defaultOptions:{queries:{staleTime:5e3,retry:1,refetchOnWindowFocus:!1}}})};var t=r(d[0])},3445,[2740]);
|
|
15867
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return _}});var t=r(d[0]),n=e(r(d[1])),o=e(r(d[2])),c=r(d[3]),u=r(d[4]),l=r(d[5]),s=r(d[6]),f=r(d[7]);function _(){const e=(0,t.c)(9),{loading:_,server:b,token:y}=(0,u.useServer)(),{colors:j}=(0,l.useTheme)();if(_){let t,c,u;return e[0]!==j.background?(t={flex:1,backgroundColor:j.background,alignItems:"center",justifyContent:"center"},e[0]=j.background,e[1]=t):t=e[1],e[2]!==j.primary?(c=(0,f.jsx)(n.default,{color:j.primary}),e[2]=j.primary,e[3]=c):c=e[3],e[4]!==t||e[5]!==c?(u=(0,f.jsx)(o.default,{style:t,children:c}),e[4]=t,e[5]=c,e[6]=u):u=e[6],u}if(!b||!y){let t;return e[7]===Symbol.for("react.memo_cache_sentinel")?(t=(0,f.jsx)(s.LoginScreen,{}),e[7]=t):t=e[7],t}let h;return e[8]===Symbol.for("react.memo_cache_sentinel")?(h=(0,f.jsx)(c.Redirect,{href:"/cameras"}),e[8]=h):h=e[8],h}},3446,[15,240,20,743,2812,2587,3447,10]);
|
|
15868
|
+
__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.LoginScreen=function(){const{t:e}=(0,h.useTranslation)(),{save:o}=(0,x.useServer)(),{colors:n}=(0,p.useTheme)(),[s,c]=(0,t.useState)('credentials'),[f,j]=(0,t.useState)('https://'),[T,k]=(0,t.useState)(''),[z,F]=(0,t.useState)(''),[_,G]=(0,t.useState)(!1),[R,U]=(0,t.useState)(''),[D,L]=(0,t.useState)(''),[W,H]=(0,t.useState)(''),[B,E]=(0,t.useState)(!1),[O,V]=(0,t.useState)(!1),M=f.trim(),q=M.length>0&&T.trim().length>0&&z.length>0,J=async e=>{await o({id:M,label:M,serverUrl:M},e)},K=async()=>{if(q&&!B){H(''),E(!0);try{const e=await(0,S.login)(M,T.trim(),z);if('totp-required'===e.status)return U(e.token),void c('totp');await J(e.token)}catch(o){H(w(o,e('v2.login.loginFailed')))}finally{E(!1)}}},Q=async()=>{if(!O&&!B){H(''),V(!0);try{const o=await(0,y.discoverHubFromInput)(M.length>0?M:'camstack.local');o?j(o.baseUrl):H(e('v2.login.hubNotFound','No CamStack hub found on the network'))}catch(o){H(w(o,e('v2.login.hubNotFound','No CamStack hub found on the network')))}finally{V(!1)}}},X=async()=>{if(6===D.length&&!B){H(''),E(!0);try{const{token:e}=await(0,S.verifyTotp)(M,R,D);await J(e)}catch(o){H(w(o,e('v2.login.verifyFailed'))),L('')}finally{E(!1)}}};return(0,P.jsx)(l.default,{style:{flex:1,backgroundColor:n.background},behavior:void 0,children:(0,P.jsx)(u.default,{contentContainerStyle:{flexGrow:1,justifyContent:'center',alignItems:'center',padding:C.SPACING['2xl']},keyboardShouldPersistTaps:"handled",children:(0,P.jsxs)(b.default,{style:{width:'100%',maxWidth:420,gap:C.SPACING['2xl']},children:[(0,P.jsx)(b.default,{style:{alignItems:'center'},children:(0,P.jsx)(v.BrandLogo,{width:220})}),(0,P.jsxs)(b.default,{style:{backgroundColor:n.surface,borderColor:n.border,borderWidth:1,borderRadius:C.RADIUS.lg,padding:C.SPACING['2xl'],gap:C.SPACING.xl},children:[W.length>0&&(0,P.jsx)(I,{colors:n,message:W}),'credentials'===s?(0,P.jsx)(A,{colors:n,serverUrl:f,username:T,password:z,showPassword:_,submitting:B,discovering:O,canSubmit:q,onDiscover:()=>{Q()},onChangeServerUrl:j,onChangeUsername:k,onChangePassword:F,onToggleShowPassword:()=>G(e=>!e),onSubmit:()=>{K()}}):(0,P.jsx)(N,{colors:n,username:T.trim(),totpCode:D,submitting:B,onChangeTotp:e=>L(e.replace(/\D/g,'').slice(0,6)),onSubmit:()=>{X()},onBack:()=>{c('credentials'),U(''),L(''),H('')}})]})]})})})};var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),l=e(r(d[3]));r(d[4]);var s=e(r(d[5])),u=e(r(d[6])),c=e(r(d[7])),f=e(r(d[8])),b=e(r(d[9])),h=r(d[10]),S=r(d[11]),y=r(d[12]),x=r(d[13]),p=r(d[14]),C=r(d[15]),v=r(d[16]),j=r(d[17]),P=r(d[18]);function w(e,o){return e instanceof Error&&e.message?e.message:o}function I(e){const t=(0,o.c)(11),{colors:n,message:l}=e,s=n.danger+"1a",u=n.danger+"40";let f,h,S,y;return t[0]!==s||t[1]!==u?(f={backgroundColor:s,borderColor:u,borderWidth:1,borderRadius:C.RADIUS.md,paddingVertical:C.SPACING.lg,paddingHorizontal:C.SPACING.xl},t[0]=s,t[1]=u,t[2]=f):f=t[2],t[3]!==n.danger?(h={color:n.danger,fontSize:13},t[3]=n.danger,t[4]=h):h=t[4],t[5]!==l||t[6]!==h?(S=(0,P.jsx)(c.default,{style:h,children:l}),t[5]=l,t[6]=h,t[7]=S):S=t[7],t[8]!==f||t[9]!==S?(y=(0,P.jsx)(b.default,{style:f,children:S}),t[8]=f,t[9]=S,t[10]=y):y=t[10],y}function T(e){return{color:e.foregroundSubtle,fontSize:12,fontWeight:'600',marginBottom:C.SPACING.sm}}function k(e){return{backgroundColor:e.background,borderColor:e.border,borderWidth:1,borderRadius:C.RADIUS.md,paddingVertical:C.SPACING.lg,paddingHorizontal:C.SPACING.xl,color:e.foreground,fontSize:15}}function A(e){const t=(0,o.c)(108),{colors:n,serverUrl:l,username:u,password:S,showPassword:y,submitting:x,discovering:p,canSubmit:v,onDiscover:w,onChangeServerUrl:I,onChangeUsername:A,onChangePassword:N,onToggleShowPassword:F,onSubmit:_}=e,{t:G}=(0,h.useTranslation)();let R,U,D;t[0]!==n?(R=T(n),t[0]=n,t[1]=R):R=t[1],t[2]!==G?(U=G("v2.login.serverUrl"),t[2]=G,t[3]=U):U=t[3],t[4]!==R||t[5]!==U?(D=(0,P.jsx)(c.default,{style:R,children:U}),t[4]=R,t[5]=U,t[6]=D):D=t[6];const L=n.foregroundSubtle;let W,H,B;t[7]!==n?(W=k(n),t[7]=n,t[8]=W):W=t[8],t[9]!==n.foregroundSubtle||t[10]!==I||t[11]!==l||t[12]!==W?(H=(0,P.jsx)(f.default,{value:l,onChangeText:I,placeholder:"https://hub.local:4443",placeholderTextColor:L,autoCapitalize:"none",autoCorrect:!1,keyboardType:"url",style:W}),t[9]=n.foregroundSubtle,t[10]=I,t[11]=l,t[12]=W,t[13]=H):H=t[13],t[14]!==G?(B=G("v2.login.findHub"),t[14]=G,t[15]=B):B=t[15];const E=p||x;let O,V,M,q,J,K,Q,X,Y,Z;t[16]===Symbol.for("react.memo_cache_sentinel")?(O={marginTop:C.SPACING.sm,alignSelf:"flex-start"},t[16]=O):O=t[16],t[17]!==n.primary?(V={color:n.primary,fontSize:13,fontWeight:"600"},t[17]=n.primary,t[18]=V):V=t[18],t[19]!==p||t[20]!==G?(M=G(p?"v2.login.searchingHub":"v2.login.findHub"),t[19]=p,t[20]=G,t[21]=M):M=t[21],t[22]!==V||t[23]!==M?(q=(0,P.jsx)(c.default,{style:V,children:M}),t[22]=V,t[23]=M,t[24]=q):q=t[24],t[25]!==w||t[26]!==q||t[27]!==B||t[28]!==E?(J=(0,P.jsx)(s.default,{accessibilityRole:"button",accessibilityLabel:B,onPress:w,disabled:E,hitSlop:6,style:O,children:q}),t[25]=w,t[26]=q,t[27]=B,t[28]=E,t[29]=J):J=t[29],t[30]!==J||t[31]!==D||t[32]!==H?(K=(0,P.jsxs)(b.default,{children:[D,H,J]}),t[30]=J,t[31]=D,t[32]=H,t[33]=K):K=t[33],t[34]!==n?(Q=T(n),t[34]=n,t[35]=Q):Q=t[35],t[36]!==G?(X=G("v2.login.username"),t[36]=G,t[37]=X):X=t[37],t[38]!==Q||t[39]!==X?(Y=(0,P.jsx)(c.default,{style:Q,children:X}),t[38]=Q,t[39]=X,t[40]=Y):Y=t[40],t[41]!==G?(Z=G("v2.login.username"),t[41]=G,t[42]=Z):Z=t[42];const $=n.foregroundSubtle;let ee,oe,te,re,ne,le,se,ae;t[43]!==n?(ee=k(n),t[43]=n,t[44]=ee):ee=t[44],t[45]!==n.foregroundSubtle||t[46]!==A||t[47]!==Z||t[48]!==ee||t[49]!==u?(oe=(0,P.jsx)(f.default,{value:u,onChangeText:A,placeholder:Z,placeholderTextColor:$,autoCapitalize:"none",autoCorrect:!1,autoFocus:!0,style:ee}),t[45]=n.foregroundSubtle,t[46]=A,t[47]=Z,t[48]=ee,t[49]=u,t[50]=oe):oe=t[50],t[51]!==Y||t[52]!==oe?(te=(0,P.jsxs)(b.default,{children:[Y,oe]}),t[51]=Y,t[52]=oe,t[53]=te):te=t[53],t[54]!==n?(re=T(n),t[54]=n,t[55]=re):re=t[55],t[56]!==G?(ne=G("v2.login.password"),t[56]=G,t[57]=ne):ne=t[57],t[58]!==re||t[59]!==ne?(le=(0,P.jsx)(c.default,{style:re,children:ne}),t[58]=re,t[59]=ne,t[60]=le):le=t[60],t[61]===Symbol.for("react.memo_cache_sentinel")?(se={position:"relative",justifyContent:"center"},t[61]=se):se=t[61],t[62]!==G?(ae=G("v2.login.password"),t[62]=G,t[63]=ae):ae=t[63];const ie=n.foregroundSubtle,de=!y;let ue,ce,ge,fe,be,he,Se,me,ye;t[64]!==n?(ue=k(n),t[64]=n,t[65]=ue):ue=t[65],t[66]!==ue?(ce=Object.assign({},ue,{paddingRight:48}),t[66]=ue,t[67]=ce):ce=t[67],t[68]!==n.foregroundSubtle||t[69]!==N||t[70]!==S||t[71]!==ae||t[72]!==de||t[73]!==ce?(ge=(0,P.jsx)(f.default,{value:S,onChangeText:N,placeholder:ae,placeholderTextColor:ie,autoCapitalize:"none",autoCorrect:!1,secureTextEntry:de,style:ce}),t[68]=n.foregroundSubtle,t[69]=N,t[70]=S,t[71]=ae,t[72]=de,t[73]=ce,t[74]=ge):ge=t[74],t[75]!==y||t[76]!==G?(fe=G(y?"v2.login.hidePassword":"v2.login.showPassword"),t[75]=y,t[76]=G,t[77]=fe):fe=t[77],t[78]===Symbol.for("react.memo_cache_sentinel")?(be={position:"absolute",right:C.SPACING.xl},t[78]=be):be=t[78],t[79]!==n.foregroundSubtle||t[80]!==y?(he=y?(0,P.jsx)(j.EyeOff,{color:n.foregroundSubtle,size:20}):(0,P.jsx)(j.Eye,{color:n.foregroundSubtle,size:20}),t[79]=n.foregroundSubtle,t[80]=y,t[81]=he):he=t[81],t[82]!==F||t[83]!==fe||t[84]!==he?(Se=(0,P.jsx)(s.default,{accessibilityRole:"button",accessibilityLabel:fe,onPress:F,hitSlop:8,style:be,children:he}),t[82]=F,t[83]=fe,t[84]=he,t[85]=Se):Se=t[85],t[86]!==ge||t[87]!==Se?(me=(0,P.jsxs)(b.default,{style:se,children:[ge,Se]}),t[86]=ge,t[87]=Se,t[88]=me):me=t[88],t[89]!==le||t[90]!==me?(ye=(0,P.jsxs)(b.default,{children:[le,me]}),t[89]=le,t[90]=me,t[91]=ye):ye=t[91];const xe=!v||x;let pe,Ce,ve,je;return t[92]!==G?(pe=G("v2.login.signIn"),t[92]=G,t[93]=pe):pe=t[93],t[94]!==G?(Ce=G("v2.login.signingIn"),t[94]=G,t[95]=Ce):Ce=t[95],t[96]!==n||t[97]!==_||t[98]!==x||t[99]!==xe||t[100]!==pe||t[101]!==Ce?(ve=(0,P.jsx)(z,{colors:n,disabled:xe,submitting:x,label:pe,loadingLabel:Ce,onPress:_}),t[96]=n,t[97]=_,t[98]=x,t[99]=xe,t[100]=pe,t[101]=Ce,t[102]=ve):ve=t[102],t[103]!==K||t[104]!==te||t[105]!==ye||t[106]!==ve?(je=(0,P.jsxs)(P.Fragment,{children:[K,te,ye,ve]}),t[103]=K,t[104]=te,t[105]=ye,t[106]=ve,t[107]=je):je=t[107],je}function N(e){const t=(0,o.c)(70),{colors:n,username:l,totpCode:u,submitting:S,onChangeTotp:y,onSubmit:x,onBack:p}=e,{t:v}=(0,h.useTranslation)();let j,w,I,A,N,F,_,G,R,U,D,L,W;t[0]===Symbol.for("react.memo_cache_sentinel")?(j={gap:C.SPACING.sm},t[0]=j):j=t[0],t[1]!==n.foreground?(w={color:n.foreground,fontSize:15,fontWeight:"600"},t[1]=n.foreground,t[2]=w):w=t[2],t[3]!==v?(I=v("v2.login.twoFactor"),t[3]=v,t[4]=I):I=t[4],t[5]!==w||t[6]!==I?(A=(0,P.jsx)(c.default,{style:w,children:I}),t[5]=w,t[6]=I,t[7]=A):A=t[7],t[8]!==n.foregroundSubtle?(N={color:n.foregroundSubtle,fontSize:13},t[8]=n.foregroundSubtle,t[9]=N):N=t[9],t[10]!==v?(F=v("v2.login.totpHint"),t[10]=v,t[11]=F):F=t[11],t[12]!==n.foreground?(_={color:n.foreground},t[12]=n.foreground,t[13]=_):_=t[13],t[14]!==_||t[15]!==l?(G=(0,P.jsx)(c.default,{style:_,children:l}),t[14]=_,t[15]=l,t[16]=G):G=t[16],t[17]!==N||t[18]!==F||t[19]!==G?(R=(0,P.jsxs)(c.default,{style:N,children:[F,G,"."]}),t[17]=N,t[18]=F,t[19]=G,t[20]=R):R=t[20],t[21]!==A||t[22]!==R?(U=(0,P.jsxs)(b.default,{style:j,children:[A,R]}),t[21]=A,t[22]=R,t[23]=U):U=t[23],t[24]!==n?(D=T(n),t[24]=n,t[25]=D):D=t[25],t[26]!==v?(L=v("v2.login.verificationCode"),t[26]=v,t[27]=L):L=t[27],t[28]!==D||t[29]!==L?(W=(0,P.jsx)(c.default,{style:D,children:L}),t[28]=D,t[29]=L,t[30]=W):W=t[30];const H=n.foregroundSubtle;let B,E,O,V;t[31]!==n?(B=k(n),t[31]=n,t[32]=B):B=t[32],t[33]!==B?(E=Object.assign({},B,{textAlign:"center",fontSize:24,letterSpacing:8}),t[33]=B,t[34]=E):E=t[34],t[35]!==n.foregroundSubtle||t[36]!==y||t[37]!==E||t[38]!==u?(O=(0,P.jsx)(f.default,{value:u,onChangeText:y,placeholder:"123456",placeholderTextColor:H,keyboardType:"numeric",maxLength:6,textContentType:"oneTimeCode",autoFocus:!0,style:E}),t[35]=n.foregroundSubtle,t[36]=y,t[37]=E,t[38]=u,t[39]=O):O=t[39],t[40]!==W||t[41]!==O?(V=(0,P.jsxs)(b.default,{children:[W,O]}),t[40]=W,t[41]=O,t[42]=V):V=t[42];const M=6!==u.length||S;let q,J,K,Q,X,Y,Z,$,ee;return t[43]!==v?(q=v("v2.login.verifyAndSignIn"),t[43]=v,t[44]=q):q=t[44],t[45]!==v?(J=v("v2.login.verifying"),t[45]=v,t[46]=J):J=t[46],t[47]!==n||t[48]!==x||t[49]!==S||t[50]!==M||t[51]!==q||t[52]!==J?(K=(0,P.jsx)(z,{colors:n,disabled:M,submitting:S,label:q,loadingLabel:J,onPress:x}),t[47]=n,t[48]=x,t[49]=S,t[50]=M,t[51]=q,t[52]=J,t[53]=K):K=t[53],t[54]===Symbol.for("react.memo_cache_sentinel")?(Q={alignItems:"center"},t[54]=Q):Q=t[54],t[55]!==n.foregroundSubtle?(X={color:n.foregroundSubtle,fontSize:13},t[55]=n.foregroundSubtle,t[56]=X):X=t[56],t[57]!==v?(Y=v("v2.login.back"),t[57]=v,t[58]=Y):Y=t[58],t[59]!==X||t[60]!==Y?(Z=(0,P.jsx)(c.default,{style:X,children:Y}),t[59]=X,t[60]=Y,t[61]=Z):Z=t[61],t[62]!==p||t[63]!==Z?($=(0,P.jsx)(s.default,{accessibilityRole:"button",onPress:p,style:Q,children:Z}),t[62]=p,t[63]=Z,t[64]=$):$=t[64],t[65]!==U||t[66]!==V||t[67]!==K||t[68]!==$?(ee=(0,P.jsxs)(P.Fragment,{children:[U,V,K,$]}),t[65]=U,t[66]=V,t[67]=K,t[68]=$,t[69]=ee):ee=t[69],ee}function z(e){const t=(0,o.c)(17),{colors:l,disabled:u,submitting:f,label:b,loadingLabel:h,onPress:S}=e,y=u?.5:1;let x,p,v;t[0]!==l.primary||t[1]!==y?(x={backgroundColor:l.primary,opacity:y,borderRadius:C.RADIUS.md,paddingVertical:C.SPACING.lg,alignItems:"center",flexDirection:"row",justifyContent:"center",gap:C.SPACING.md},t[0]=l.primary,t[1]=y,t[2]=x):x=t[2],t[3]!==l.primaryForeground||t[4]!==f?(p=f&&(0,P.jsx)(n.default,{size:"small",color:l.primaryForeground}),t[3]=l.primaryForeground,t[4]=f,t[5]=p):p=t[5],t[6]!==l.primaryForeground?(v={color:l.primaryForeground,fontSize:16,fontWeight:"600"},t[6]=l.primaryForeground,t[7]=v):v=t[7];const j=f?h:b;let w,I;return t[8]!==v||t[9]!==j?(w=(0,P.jsx)(c.default,{style:v,children:j}),t[8]=v,t[9]=j,t[10]=w):w=t[10],t[11]!==u||t[12]!==S||t[13]!==x||t[14]!==p||t[15]!==w?(I=(0,P.jsxs)(s.default,{accessibilityRole:"button",disabled:u,onPress:S,style:x,children:[p,w]}),t[11]=u,t[12]=S,t[13]=x,t[14]=p,t[15]=w,t[16]=I):I=t[16],I}},3447,[15,17,240,244,136,252,147,112,262,20,786,3448,3449,2812,2587,2589,3450,813,10]);
|
|
15869
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"sdkAuthClient",{enumerable:!0,get:function(){return n}}),e.login=async function(t,o,s,u=n){const{token:c,requiresTotp:f}=await u(t).login(o,s);return{status:f?'totp-required':'success',token:c}},e.verifyTotp=async function(t,o,s,u=n){return u(t).loginVerifyTotp(o,s)};var t=r(d[0]);const n=n=>(0,t.createSystem)({serverUrl:n})},3448,[2596]);
|
|
15870
|
+
__d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isHubDiscoveryInfo=r,e.buildCandidateBaseUrls=u,e.probeHub=c,e.discoverHub=l,e.discoverHubFromInput=async function(t,n){return l(u(t),n)};var t=_r(d[0]);const n=4443,o=2500;function r(t){if('object'!=typeof t||null===t)return!1;const n=t;return'camstack-hub'===n.service&&'string'==typeof n.nodeId&&'string'==typeof n.version&&'string'==typeof n.name}function s(t){return t.replace(/\/+$/,'')}function u(t){const o=t.trim();if(0===o.length)return[];const r=[],u=t=>{const n=s(t);n&&!r.includes(n)&&r.push(n)};if(/^https?:\/\//i.test(o)){let t=null;try{t=new URL(o)}catch{t=null}return t?(u(o),t.port&&u(`${t.protocol}//${t.hostname}`),r):(u(o),r)}const c=o.match(/^(.+):(\d+)$/);if(c){const t=c[1],n=c[2];return u(`https://${t}:${n}`),u(`http://${t}:${n}`),r}return u(`https://${o}:${n}`),u(`https://${o}`),u(`http://${o}`),r}async function c(t,n){const u=n?.fetchImpl??globalThis.fetch;if('function'!=typeof u)return null;const c=n?.timeoutMs??o,l=s(t),f=new AbortController,p=setTimeout(()=>f.abort(),c);try{const t=await u(`${l}/discovery`,{signal:f.signal});if(!t.ok)return null;const n=await t.json();return r(n)?{baseUrl:l,info:n}:null}catch{return null}finally{clearTimeout(p)}}async function l(n,o){if(0===n.length)return null;const r=await Promise.all(n.map(t=>c(t,o)));for(const n of r)if(n)return t.log.info('conn','discoverHub found a hub',{baseUrl:n.baseUrl,name:n.info.name}),n;return null}},3449,[2704]);
|
|
15871
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.BrandLogo=function(x){const y=(0,t.c)(4),{width:h}=x,p=void 0===h?200:h,{mode:w}=(0,l.useTheme)(),v="light"===w?f:c,u=p/o;let z;y[0]!==v||y[1]!==u||y[2]!==p?(z=(0,s.jsx)(n.SvgXml,{xml:v,width:p,height:u}),y[0]=v,y[1]=u,y[2]=p,y[3]=z):z=y[3];return z};var t=r(d[0]);r(d[1]);var n=r(d[2]),l=r(d[3]),s=r(d[4]);const f="<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 240 56\" fill=\"none\">\n <g transform=\"translate(4, 2) scale(0.8)\">\n <rect x=\"8\" y=\"28\" width=\"48\" height=\"28\" rx=\"6\" fill=\"#d6d3d1\"/>\n <rect x=\"12\" y=\"16\" width=\"40\" height=\"28\" rx=\"6\" fill=\"#a8a29e\"/>\n <rect x=\"16\" y=\"4\" width=\"32\" height=\"28\" rx=\"6\" fill=\"#e67e22\"/>\n <circle cx=\"32\" cy=\"18\" r=\"8\" fill=\"#fafaf9\" opacity=\"0.3\"/>\n <circle cx=\"32\" cy=\"18\" r=\"5\" fill=\"#fafaf9\" opacity=\"0.2\"/>\n <circle cx=\"32\" cy=\"18\" r=\"2.5\" fill=\"#1c1917\" opacity=\"0.7\"/>\n </g>\n <text x=\"62\" y=\"30\" font-family=\"system-ui, -apple-system, sans-serif\" font-size=\"24\" font-weight=\"700\" letter-spacing=\"-0.5\" fill=\"#1c1917\">\n Cam<tspan fill=\"#e67e22\">Stack</tspan>\n </text>\n <text x=\"63\" y=\"44\" font-family=\"system-ui, -apple-system, sans-serif\" font-size=\"10\" font-weight=\"600\" letter-spacing=\"3\" fill=\"#78716c\">\n VIEWER\n </text>\n</svg>",c="<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 240 56\" fill=\"none\">\n <g transform=\"translate(4, 2) scale(0.8)\">\n <rect x=\"8\" y=\"28\" width=\"48\" height=\"28\" rx=\"6\" fill=\"#292524\"/>\n <rect x=\"12\" y=\"16\" width=\"40\" height=\"28\" rx=\"6\" fill=\"#44403c\"/>\n <rect x=\"16\" y=\"4\" width=\"32\" height=\"28\" rx=\"6\" fill=\"#f59e42\"/>\n <circle cx=\"32\" cy=\"18\" r=\"8\" fill=\"#0c0a09\" opacity=\"0.3\"/>\n <circle cx=\"32\" cy=\"18\" r=\"5\" fill=\"#0c0a09\" opacity=\"0.2\"/>\n <circle cx=\"32\" cy=\"18\" r=\"2.5\" fill=\"#fafaf9\" opacity=\"0.8\"/>\n </g>\n <text x=\"62\" y=\"30\" font-family=\"system-ui, -apple-system, sans-serif\" font-size=\"24\" font-weight=\"700\" letter-spacing=\"-0.5\" fill=\"#fafaf9\">\n Cam<tspan fill=\"#f59e42\">Stack</tspan>\n </text>\n <text x=\"63\" y=\"44\" font-family=\"system-ui, -apple-system, sans-serif\" font-size=\"10\" font-weight=\"600\" letter-spacing=\"3\" fill=\"#78716c\">\n VIEWER\n </text>\n</svg>",o=4.285714285714286},3450,[15,17,819,2587,10]);
|
|
15872
|
+
__d(function(g,r,i,a,_m,e,d){"use strict";var t=this&&this.__createBinding||(Object.create?function(t,n,o,c){void 0===c&&(c=o);var u=Object.getOwnPropertyDescriptor(n,o);u&&!("get"in u?!n.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return n[o]}}),Object.defineProperty(t,c,u)}:function(t,n,o,c){void 0===c&&(c=o),t[c]=n[o]}),n=this&&this.__exportStar||function(n,o){for(var c in n)"default"===c||Object.prototype.hasOwnProperty.call(o,c)||t(o,n,c)};Object.defineProperty(e,"__esModule",{value:!0}),n(r(d[0]),e)},3451,[3452]);
|
|
15873
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Head=void 0;const n=r(d[0]),c=r(d[1]),l=r(d[2]);function t({children:l}){return(0,n.jsx)(c.Helmet,{children:l})}e.Head=({children:c})=>(0,l.useIsFocused)()?(0,n.jsx)(t,{children:c}):null,e.Head.Provider=c.HelmetProvider},3452,[10,3453,757]);
|
|
15874
|
+
__d(function(g,r,_i,a,m,e,d){"use strict";var t=r(d[0]).default;const s=["children"],n=["children"];var i,o=Object.create,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,u=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,y=(t,s,n,i)=>{if(s&&"object"==typeof s||"function"==typeof s)for(let o of p(s))h.call(t,o)||o===n||l(t,o,{get:()=>s[o],enumerable:!(i=c(s,o))||i.enumerable});return t},f=(t,s,n)=>(n=null!=t?o(u(t)):{},y(!s&&t&&t.__esModule?n:l(n,"default",{value:t,enumerable:!0}),t)),b={};((t,s)=>{for(var n in s)l(t,n,{get:s[n],enumerable:!0})})(b,{Helmet:()=>Oe,HelmetData:()=>le,HelmetProvider:()=>pe}),m.exports=(i=b,y(l({},"__esModule",{value:!0}),i));var T=f(r(d[1])),O=f(r(d[2])),A=f(r(d[3])),j=f(r(d[1])),C=f(r(d[1])),w=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(w||{}),x={rel:["amphtml","canonical","alternate"]},v={type:["application/ld+json"]},$={charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},k=Object.values(w),S={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},M=Object.entries(S).reduce((t,[s,n])=>(t[n]=s,t),{}),E="data-rh",P="defaultTitle",H="defer",D="encodeSpecialCharacters",L="onChangeClientState",I="titleTemplate",U="prioritizeSeoTags",N=(t,s)=>{for(let n=t.length-1;n>=0;n-=1){const i=t[n];if(Object.prototype.hasOwnProperty.call(i,s))return i[s]}return null},q=t=>{let s=N(t,"title");const n=N(t,I);if(Array.isArray(s)&&(s=s.join("")),n&&s)return n.replace(/%s/g,()=>s);const i=N(t,P);return s||i||void 0},_=t=>N(t,L)||(()=>{}),R=(t,s)=>s.filter(s=>void 0!==s[t]).map(s=>s[t]).reduce((t,s)=>Object.assign({},t,s),{}),z=(t,s)=>s.filter(t=>void 0!==t.base).map(t=>t.base).reverse().reduce((s,n)=>{if(!s.length){const i=Object.keys(n);for(let o=0;o<i.length;o+=1){const l=i[o].toLowerCase();if(-1!==t.indexOf(l)&&n[l])return s.concat(n)}}return s},[]),B=(t,s,n)=>{const i={};return n.filter(s=>{return!!Array.isArray(s[t])||(void 0!==s[t]&&(n=`Helmet: ${t} should be of type "Array". Instead found type "${typeof s[t]}"`,console&&"function"==typeof console.warn&&console.warn(n)),!1);var n}).map(s=>s[t]).reverse().reduce((t,n)=>{const o={};n.filter(t=>{let n;const l=Object.keys(t);for(let i=0;i<l.length;i+=1){const o=l[i],c=o.toLowerCase();-1===s.indexOf(c)||"rel"===n&&"canonical"===t[n].toLowerCase()||"rel"===c&&"stylesheet"===t[c].toLowerCase()||(n=c),-1===s.indexOf(o)||"innerHTML"!==o&&"cssText"!==o&&"itemprop"!==o||(n=o)}if(!n||!t[n])return!1;const c=t[n].toLowerCase();return i[n]||(i[n]={}),o[n]||(o[n]={}),!i[n][c]&&(o[n][c]=!0,!0)}).reverse().forEach(s=>t.push(s));const l=Object.keys(o);for(let t=0;t<l.length;t+=1){const s=l[t],n=Object.assign({},i[s],o[s]);i[s]=n}return t},[]).reverse()},F=(t,s)=>{if(Array.isArray(t)&&t.length)for(let n=0;n<t.length;n+=1){if(t[n][s])return!0}return!1},Y=t=>Array.isArray(t)?t.join(""):t,K=(t,s)=>{const n=Object.keys(t);for(let i=0;i<n.length;i+=1)if(s[n[i]]&&s[n[i]].includes(t[n[i]]))return!0;return!1},G=(t,s)=>Array.isArray(t)?t.reduce((t,n)=>(K(n,s)?t.priority.push(n):t.default.push(n),t),{priority:[],default:[]}):{default:t,priority:[]},W=(t,s)=>Object.assign({},t,{[s]:void 0}),J=["noscript","script","style"],Q=(t,s=!0)=>!1===s?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),V=t=>Object.keys(t).reduce((s,n)=>{const i=void 0!==t[n]?`${n}="${Q(t[n])}"`:`${n}`;return s?`${s} ${i}`:i},""),X=(t,s,n,i)=>{const o=V(n),l=Y(s);return o?`<${t} ${E}="true" ${o}>${Q(l,i)}</${t}>`:`<${t} ${E}="true">${Q(l,i)}</${t}>`},Z=(t,s,n=!0)=>s.reduce((s,i)=>{const o=i,l=Object.keys(o).filter(t=>!("innerHTML"===t||"cssText"===t)).reduce((t,s)=>{const i=void 0===o[s]?s:`${s}="${Q(o[s],n)}"`;return t?`${t} ${i}`:i},""),c=o.innerHTML||o.cssText||"",p=-1===J.indexOf(t);return`${s}<${t} ${E}="true" ${l}${p?"/>":`>${c}</${t}>`}`},""),ee=(t,s={})=>Object.keys(t).reduce((s,n)=>(s[S[n]||n]=t[n],s),s),te=(t,s,n)=>{const i=ee(n,{key:s,[E]:!0});return[C.default.createElement("title",i,s)]},re=(t,s)=>s.map((s,n)=>{const i={key:n,[E]:!0};return Object.keys(s).forEach(t=>{const n=S[t]||t;if("innerHTML"===n||"cssText"===n){const t=s.innerHTML||s.cssText;i.dangerouslySetInnerHTML={__html:t}}else i[n]=s[t]}),C.default.createElement(t,i)}),se=(t,s,n=!0)=>{switch(t){case"title":return{toComponent:()=>te(0,s.title,s.titleAttributes),toString:()=>X(t,s.title,s.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>ee(s),toString:()=>V(s)};default:return{toComponent:()=>re(t,s),toString:()=>Z(t,s,n)}}},ne=({metaTags:t,linkTags:s,scriptTags:n,encode:i})=>{const o=G(t,$),l=G(s,x),c=G(n,v);return{priorityMethods:{toComponent:()=>[...re("meta",o.priority),...re("link",l.priority),...re("script",c.priority)],toString:()=>`${se("meta",o.priority,i)} ${se("link",l.priority,i)} ${se("script",c.priority,i)}`},metaTags:o.default,linkTags:l.default,scriptTags:c.default}},ie=t=>{const{baseTag:s,bodyAttributes:n,encode:i=!0,htmlAttributes:o,noscriptTags:l,styleTags:c,title:p="",titleAttributes:u,prioritizeSeoTags:h}=t;let{linkTags:y,metaTags:f,scriptTags:b}=t,T={toComponent:()=>{},toString:()=>""};return h&&({priorityMethods:T,linkTags:y,metaTags:f,scriptTags:b}=ne(t)),{priority:T,base:se("base",s,i),bodyAttributes:se("bodyAttributes",n,i),htmlAttributes:se("htmlAttributes",o,i),link:se("link",y,i),meta:se("meta",f,i),noscript:se("noscript",l,i),script:se("script",b,i),style:se("style",c,i),title:se("title",{title:p,titleAttributes:u},i)}},oe=[],ae=!("undefined"==typeof window||!window.document||!window.document.createElement),le=class{instances=[];canUseDOM=ae;value={setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?oe:this.instances,add:t=>{(this.canUseDOM?oe:this.instances).push(t)},remove:t=>{const s=(this.canUseDOM?oe:this.instances).indexOf(t);(this.canUseDOM?oe:this.instances).splice(s,1)}}};constructor(t,s){this.context=t,this.canUseDOM=s||!1,s||(t.helmet=ie({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},ce=j.default.createContext({}),pe=class t extends j.Component{static canUseDOM=ae;constructor(s){super(s),this.helmetData=new le(this.props.context||{},t.canUseDOM)}render(){return j.default.createElement(ce.Provider,{value:this.helmetData.value},this.props.children)}},ue=r(d[1]),de=f(r(d[4])),he=(t,s)=>{const n=document.head||document.querySelector("head"),i=n.querySelectorAll(`${t}[${E}]`),o=[].slice.call(i),l=[];let c;return s&&s.length&&s.forEach(s=>{const n=document.createElement(t);for(const t in s)if(Object.prototype.hasOwnProperty.call(s,t))if("innerHTML"===t)n.innerHTML=s.innerHTML;else if("cssText"===t)n.styleSheet?n.styleSheet.cssText=s.cssText:n.appendChild(document.createTextNode(s.cssText));else{const i=t,o=void 0===s[i]?"":s[i];n.setAttribute(t,o)}n.setAttribute(E,"true"),o.some((t,s)=>(c=s,n.isEqualNode(t)))?o.splice(c,1):l.push(n)}),o.forEach(t=>t.parentNode?.removeChild(t)),l.forEach(t=>n.appendChild(t)),{oldTags:o,newTags:l}},me=(t,s)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const i=n.getAttribute(E),o=i?i.split(","):[],l=[...o],c=Object.keys(s);for(const t of c){const i=s[t]||"";n.getAttribute(t)!==i&&n.setAttribute(t,i),-1===o.indexOf(t)&&o.push(t);const c=l.indexOf(t);-1!==c&&l.splice(c,1)}for(let t=l.length-1;t>=0;t-=1)n.removeAttribute(l[t]);o.length===l.length?n.removeAttribute(E):n.getAttribute(E)!==c.join(",")&&n.setAttribute(E,c.join(","))},ge=(t,s)=>{void 0!==t&&document.title!==t&&(document.title=Y(t)),me("title",s)},ye=(t,s)=>{const{baseTag:n,bodyAttributes:i,htmlAttributes:o,linkTags:l,metaTags:c,noscriptTags:p,onChangeClientState:u,scriptTags:h,styleTags:y,title:f,titleAttributes:b}=t;me("body",i),me("html",o),ge(f,b);const T={baseTag:he("base",n),linkTags:he("link",l),metaTags:he("meta",c),noscriptTags:he("noscript",p),scriptTags:he("script",h),styleTags:he("style",y)},O={},A={};Object.keys(T).forEach(t=>{const{newTags:s,oldTags:n}=T[t];s.length&&(O[t]=s),n.length&&(A[t]=T[t].oldTags)}),s&&s(),u(t,O,A)},fe=null,be=t=>{fe&&cancelAnimationFrame(fe),t.defer?fe=requestAnimationFrame(()=>{ye(t,()=>{fe=null})}):(ye(t),fe=null)},Te=class extends ue.Component{rendered=!1;shouldComponentUpdate(t){return!(0,de.default)(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:s}=this.props.context;let n=null;const i=(o=t.get().map(t=>{const s=Object.assign({},t.props);return delete s.context,s}),{baseTag:z(["href"],o),bodyAttributes:R("bodyAttributes",o),defer:N(o,H),encode:N(o,D),htmlAttributes:R("htmlAttributes",o),linkTags:B("link",["rel","href"],o),metaTags:B("meta",["name","charset","http-equiv","property","itemprop"],o),noscriptTags:B("noscript",["innerHTML"],o),onChangeClientState:_(o),scriptTags:B("script",["src","innerHTML"],o),styleTags:B("style",["cssText"],o),title:q(o),titleAttributes:R("titleAttributes",o),prioritizeSeoTags:F(o,U)});var o;pe.canUseDOM?be(i):ie&&(n=ie(i)),s(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},Oe=class extends T.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(t){return!(0,O.default)(W(this.props,"helmetData"),W(t,"helmetData"))}mapNestedChildrenToProps(t,s){if(!s)return null;switch(t.type){case"script":case"noscript":return{innerHTML:s};case"style":return{cssText:s};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,s,n,i){return Object.assign({},s,{[t.type]:[...s[t.type]||[],Object.assign({},n,this.mapNestedChildrenToProps(t,i))]})}mapObjectTypeChildren(t,s,n,i){switch(t.type){case"title":return Object.assign({},s,{[t.type]:i,titleAttributes:Object.assign({},n)});case"body":return Object.assign({},s,{bodyAttributes:Object.assign({},n)});case"html":return Object.assign({},s,{htmlAttributes:Object.assign({},n)});default:return Object.assign({},s,{[t.type]:Object.assign({},n)})}}mapArrayTypeChildrenToProps(t,s){let n=Object.assign({},s);return Object.keys(t).forEach(s=>{n=Object.assign({},n,{[s]:t[s]})}),n}warnOnInvalidChildren(t,s){return(0,A.default)(k.some(s=>t.type===s),"function"==typeof t.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${k.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),(0,A.default)(!s||"string"==typeof s||Array.isArray(s)&&!s.some(t=>"string"!=typeof t),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(n,i){let o={};return T.default.Children.forEach(n,n=>{if(!n||!n.props)return;const l=n.props,{children:c}=l,p=t(l,s),u=Object.keys(p).reduce((t,s)=>(t[M[s]||s]=p[s],t),{});let{type:h}=n;switch("symbol"==typeof h?h=h.toString():this.warnOnInvalidChildren(n,c),h){case"Symbol(react.fragment)":i=this.mapChildrenToProps(c,i);break;case"link":case"meta":case"noscript":case"script":case"style":o=this.flattenArrayTypeChildren(n,o,u,c);break;default:i=this.mapObjectTypeChildren(n,i,u,c)}}),this.mapArrayTypeChildrenToProps(o,i)}render(){const s=this.props,{children:i}=s,o=t(s,n);let l=Object.assign({},o),{helmetData:c}=o;if(i&&(l=this.mapChildrenToProps(i,l)),c&&!(c instanceof le)){c=new le(c.context,!0),delete l.helmetData}return c?T.default.createElement(Te,Object.assign({},l,{context:c.value})):T.default.createElement(ce.Consumer,null,t=>T.default.createElement(Te,Object.assign({},l,{context:t})))}}},3453,[120,17,3454,323,3455]);
|
|
15875
|
+
__d(function(g,r,_i,_a,m,e,d){var t='undefined'!=typeof Element,n='function'==typeof Map,f='function'==typeof Set,o='function'==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(u,a){if(u===a)return!0;if(u&&a&&'object'==typeof u&&'object'==typeof a){if(u.constructor!==a.constructor)return!1;var c,s,l,p;if(Array.isArray(u)){if((c=u.length)!=a.length)return!1;for(s=c;0!==s--;)if(!i(u[s],a[s]))return!1;return!0}if(n&&u instanceof Map&&a instanceof Map){if(u.size!==a.size)return!1;for(p=u.entries();!(s=p.next()).done;)if(!a.has(s.value[0]))return!1;for(p=u.entries();!(s=p.next()).done;)if(!i(s.value[1],a.get(s.value[0])))return!1;return!0}if(f&&u instanceof Set&&a instanceof Set){if(u.size!==a.size)return!1;for(p=u.entries();!(s=p.next()).done;)if(!a.has(s.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(u)&&ArrayBuffer.isView(a)){if((c=u.length)!=a.length)return!1;for(s=c;0!==s--;)if(u[s]!==a[s])return!1;return!0}if(u.constructor===RegExp)return u.source===a.source&&u.flags===a.flags;if(u.valueOf!==Object.prototype.valueOf&&'function'==typeof u.valueOf&&'function'==typeof a.valueOf)return u.valueOf()===a.valueOf();if(u.toString!==Object.prototype.toString&&'function'==typeof u.toString&&'function'==typeof a.toString)return u.toString()===a.toString();if((c=(l=Object.keys(u)).length)!==Object.keys(a).length)return!1;for(s=c;0!==s--;)if(!Object.prototype.hasOwnProperty.call(a,l[s]))return!1;if(t&&u instanceof Element)return!1;for(s=c;0!==s--;)if(('_owner'!==l[s]&&'__v'!==l[s]&&'__o'!==l[s]||!u.$$typeof)&&!i(u[l[s]],a[l[s]]))return!1;return!0}return u!=u&&a!=a}m.exports=function(t,n){try{return i(t,n)}catch(t){if((t.message||'').match(/stack|recursion/i))return console.warn('react-fast-compare cannot handle circular refs'),!1;throw t}}},3454,[]);
|
|
15876
|
+
__d(function(g,r,i,a,m,e,d){m.exports=function(t,n,o,f){var c=o?o.call(f,t,n):void 0;if(void 0!==c)return!!c;if(t===n)return!0;if("object"!=typeof t||!t||"object"!=typeof n||!n)return!1;var u=Object.keys(t),v=Object.keys(n);if(u.length!==v.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(n),b=0;b<u.length;b++){var p=u[b];if(!l(p))return!1;var y=t[p],j=n[p];if(!1===(c=o?o.call(f,y,j,p):void 0)||void 0===c&&y!==j)return!1}return!0}},3455,[]);
|
|
15877
|
+
__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},3456,[]);
|
|
15878
|
+
__d(function(g,r,_i,a,_m,_e,d){"use strict";var e,t=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||(e=function(t){return e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t},e(t)},function(o){if(o&&o.__esModule)return o;var i={};if(null!=o)for(var c=e(o),u=0;u<c.length;u++)"default"!==c[u]&&t(i,o,c[u]);return n(i,o),i});Object.defineProperty(_e,"__esModule",{value:!0}),_e.renderRootComponent=function(e){try{setTimeout(()=>{f._internal_preventAutoHideAsync?.()}),u.startTransition(()=>{(0,c.registerRootComponent)(e)})}catch(e){f.hideAsync();const t=b(e);(0,c.registerRootComponent)(()=>(0,i.jsx)(s.View,{})),console.error(t),console.error("A runtime error has occurred while rendering the root component."),setTimeout(()=>{throw t})}};const i=r(d[0]),c=r(d[1]),u=o(r(d[2])),s=r(d[3]),f=o(r(d[4]));function l(e){if('[object Object]'!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function p(e){return e&&'object'==typeof e&&'string'==typeof e.name&&'string'==typeof e.message}function b(e){return p(e)?e:l(e)?new Error(JSON.stringify(e)):new Error(String(e))}},3457,[10,564,17,121,563]);
|
|
15878
15879
|
__r(566);
|
|
15879
15880
|
__r(6);
|
|
15880
15881
|
__r(0);
|