@camstack/addon-admin-ui 1.2.25 → 1.2.27

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.
Files changed (86) hide show
  1. package/dist/assets/{AddLocationWizard-e1ueZMs-.js → AddLocationWizard-8cRW4Jzl.js} +1 -1
  2. package/dist/assets/{AddonCollectionPage-DzzN_8j_.js → AddonCollectionPage-CiaXvpIo.js} +1 -1
  3. package/dist/assets/{Addons-B49AyObS.js → Addons-y8PCNUow.js} +1 -1
  4. package/dist/assets/{AdminTabs-Dj2R1Nqm.js → AdminTabs-Dqs2B5TP.js} +1 -1
  5. package/dist/assets/{AiProfiles-BvgQwDXs.js → AiProfiles-B-ZYpQv6.js} +1 -1
  6. package/dist/assets/{BrokerForm-CC-RXRnl.js → BrokerForm-BJMUS91J.js} +1 -1
  7. package/dist/assets/{Capabilities-DjNTwNBX.js → Capabilities-OzzB0e6-.js} +1 -1
  8. package/dist/assets/{CapabilityBadges-BbcChXLM.js → CapabilityBadges-D2-uEkVq.js} +1 -1
  9. package/dist/assets/{Cluster-BLx7PUD5.js → Cluster-DFBi0ryq.js} +1 -1
  10. package/dist/assets/{ClusterRecordingTab-DfomsbJl.js → ClusterRecordingTab-CZZq6Ou8.js} +1 -1
  11. package/dist/assets/{Dashboard-C_mXXvQ2.js → Dashboard-LzquRrCy.js} +1 -1
  12. package/dist/assets/{Data-jgiP7JnI.js → Data-BH6j9g_-.js} +1 -1
  13. package/dist/assets/{DetectionIntelligence-xndvoIh4.js → DetectionIntelligence-DkrxY5iA.js} +1 -1
  14. package/dist/assets/{DeviceAggregateSection-Co7dMehL.js → DeviceAggregateSection-QGY3DOSD.js} +1 -1
  15. package/dist/assets/{DeviceDetail-COgYhnYr.js → DeviceDetail-DcqxA5OP.js} +1 -1
  16. package/dist/assets/{Devices-D8hP8E3E.js → Devices-hWiMd09n.js} +1 -1
  17. package/dist/assets/{EmbedPlayerPage-BrLxTtJh.js → EmbedPlayerPage-D2laK8qP.js} +1 -1
  18. package/dist/assets/{Events-BuE7-fgB.js → Events-BVAQ0-5E.js} +1 -1
  19. package/dist/assets/{FormBuilder-DjFMxGQm.js → FormBuilder-9QasrqDp.js} +1 -1
  20. package/dist/assets/{Identity-BWRYqgnI.js → Identity-DG2IFYUh.js} +1 -1
  21. package/dist/assets/IntegrationDetail-RaObjV5m.js +1 -0
  22. package/dist/assets/{Integrations-X0TGGF8X.js → Integrations-C-qBCiiD.js} +1 -1
  23. package/dist/assets/{Integrations-iPjjbkwR.js → Integrations-KpJqa2eh.js} +1 -1
  24. package/dist/assets/{Logs-brMjQJLM.js → Logs-DvIm0V8i.js} +1 -1
  25. package/dist/assets/{MotionZonesSettings-CNHGPjly.js → MotionZonesSettings-DMkPYwfm.js} +1 -1
  26. package/dist/assets/{MyAccess-CVIlGmtG.js → MyAccess-DQRxiDVc.js} +1 -1
  27. package/dist/assets/{Network-zP2-tt52.js → Network-BqLXlaZV.js} +1 -1
  28. package/dist/assets/{NodeAddonsSettingsPanel-C_rroOoa.js → NodeAddonsSettingsPanel-mtSSN5di.js} +1 -1
  29. package/dist/assets/{NodeInferenceDevices-CpF2VbJj.js → NodeInferenceDevices-Cm_uziKY.js} +1 -1
  30. package/dist/assets/{Notifications-CjLRpuWX.js → Notifications-ehh4Wa5P.js} +1 -1
  31. package/dist/assets/{Pipeline-4rahxV-p.js → Pipeline-72XZmLkf.js} +1 -1
  32. package/dist/assets/{Plates-B3yurHq4.js → Plates-CJZ3YLDf.js} +1 -1
  33. package/dist/assets/{PrivacyMaskSettings-DF-nkRbt.js → PrivacyMaskSettings-DJbI6C5O.js} +1 -1
  34. package/dist/assets/{ProviderIcon-RlQ1z1d7.js → ProviderIcon-_3FEm0BG.js} +1 -1
  35. package/dist/assets/{Recordings-Cc44IQif.js → Recordings-D-q-9ZgS.js} +1 -1
  36. package/dist/assets/{ScanNetworkModal-CMxKsF4Z.js → ScanNetworkModal-BB5EPjw1.js} +1 -1
  37. package/dist/assets/{Settings-C8qQAHjz.js → Settings-BrE-eHJV.js} +1 -1
  38. package/dist/assets/{Showroom-CmqSmkPr.js → Showroom-Bu1fPAOX.js} +1 -1
  39. package/dist/assets/{Terminal-DLiHDZNZ.js → Terminal-C5p955Pa.js} +1 -1
  40. package/dist/assets/{_virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-D8VMmbov.js → _virtual_mf-localSharedImportMap___mfe_internal__admin_ui_host-CbN7kJoK.js} +1 -1
  41. package/dist/assets/{build-cluster-graph-6Pdx7ZEJ.js → build-cluster-graph-yvmQsU2l.js} +1 -1
  42. package/dist/assets/circle-check-big-C_hc4h2j.js +1 -0
  43. package/dist/assets/clock-B0tltvJs.js +1 -0
  44. package/dist/assets/{copy-R0zBV4Ht.js → copy-BKONNj-k.js} +1 -1
  45. package/dist/assets/{debounced-invalidate-DrEbBXWs.js → debounced-invalidate-vPoYh4bP.js} +1 -1
  46. package/dist/assets/{dist-DlBt5crM.js → dist-DvvMnEMz.js} +1 -1
  47. package/dist/assets/dist-tJNbI9ls.js +7 -0
  48. package/dist/assets/{download-QgFmrkEr.js → download-BXKxeM9W.js} +1 -1
  49. package/dist/assets/{face-bbox-Bhfo1V-_.js → face-bbox-BIL9CxXo.js} +1 -1
  50. package/dist/assets/{hostInit-CGCNGMHh.js → hostInit-BivS7viV.js} +1 -1
  51. package/dist/assets/{index-QfylAEAa.js → index-DVapnh8_.js} +3 -3
  52. package/dist/assets/{key-round-CZRNo36K.js → key-round-DlIq6OT0.js} +1 -1
  53. package/dist/assets/{mf-entry-bootstrap-0-721dd175.js → mf-entry-bootstrap-0-f0799171.js} +2 -2
  54. package/dist/assets/{pencil-D19fA1kS.js → pencil-Czmub7zF.js} +1 -1
  55. package/dist/assets/{player-overlays-DQ2YU43D.js → player-overlays-BBqyPKM2.js} +1 -1
  56. package/dist/assets/plus-BpWlTXb3.js +1 -0
  57. package/dist/assets/{radio-D9wsX-rz.js → radio-Bsvrf66r.js} +1 -1
  58. package/dist/assets/{refresh-cw-CmaahPnI.js → refresh-cw-DHug6qjw.js} +1 -1
  59. package/dist/assets/remoteEntry-8JprVD_7.js +1 -0
  60. package/dist/assets/{rotate-ccw-DuQJ-Oc4.js → rotate-ccw-mEW0yUja.js} +1 -1
  61. package/dist/assets/rotate-cw-BF1cMOF6.js +1 -0
  62. package/dist/assets/search-B24_Xm4V.js +1 -0
  63. package/dist/assets/{send-BTPvOMAU.js → send-BkJjp8Ci.js} +1 -1
  64. package/dist/assets/{server-Bda0bo3D.js → server-D502ug1V.js} +1 -1
  65. package/dist/assets/square-C8ZyC2yg.js +1 -0
  66. package/dist/assets/{square-check-big-RJ81n9gY.js → square-check-big-oO6WcOKX.js} +1 -1
  67. package/dist/assets/src-CSJZQK3p.js +7 -0
  68. package/dist/assets/{src-DkPgSucK.js → src-Cus9kyK5.js} +4 -4
  69. package/dist/assets/{upload-ER3VmHNi.js → upload-AHyvKWFD.js} +1 -1
  70. package/dist/assets/{useEventInvalidation-4DqJC3yY.js → useEventInvalidation-By-LiR-C.js} +1 -1
  71. package/dist/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-fllwh4Nz.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__admin_ui_host__remoteEntry-_hash_-BX5F-03u.js} +2 -2
  72. package/dist/assets/{wifi-FAbs4NeV.js → wifi-BqTNMokE.js} +1 -1
  73. package/dist/assets/{zap-rCgm5YRU.js → zap-jkJVy5w-.js} +1 -1
  74. package/dist/index.html +5 -5
  75. package/dist/server/addon.js +146 -1
  76. package/package.json +1 -1
  77. package/dist/assets/IntegrationDetail-BsK-8F_0.js +0 -1
  78. package/dist/assets/circle-check-big-BflMLEfK.js +0 -1
  79. package/dist/assets/clock-LBp-nnQl.js +0 -1
  80. package/dist/assets/dist-B-_ZWJld.js +0 -7
  81. package/dist/assets/plus-Dy8XU313.js +0 -1
  82. package/dist/assets/remoteEntry-7X4lwnnY.js +0 -1
  83. package/dist/assets/rotate-cw-PVk9p6h2.js +0 -1
  84. package/dist/assets/search-87uzVnAb.js +0 -1
  85. package/dist/assets/square-CJNt700K.js +0 -1
  86. package/dist/assets/src-DFCgIDwd.js +0 -7
@@ -1 +0,0 @@
1
- import{Cn as e,En as t,Fn as n,G as r,K as i,Kn as a,Ln as o,Mn as s,Sn as c,To as l,Tt as u,_n as d,cr as f,d as p,fn as m,fr as h,g,gr as _,hn as ee,it as v,lr as y,mn as b,mr as x,nt as S,pn as C,so as w,ur as te,ut as ne,vn as T,x as E}from"./src-DkPgSucK.js";import{I as D,K as re,Q as O,S as k,W as A,b as j,o as M,q as N,x as P,z as ie}from"./_virtual_mf___mfe_internal__admin_ui_host__loadShare___mf_0_tanstack_mf_1_react_mf_2_query__loadShare__.js-DTufy7Ue.js";import{A as F}from"./src-DFCgIDwd.js";import{p as I}from"./player-overlays-DQ2YU43D.js";import{t as L}from"./ProviderIcon-RlQ1z1d7.js";import{t as R}from"./FormBuilder-DjFMxGQm.js";import{t as z}from"./plus-Dy8XU313.js";import{n as B,r as ae,t as oe}from"./ScanNetworkModal-CMxKsF4Z.js";import{t as se}from"./refresh-cw-CmaahPnI.js";import{t as ce}from"./rotate-cw-PVk9p6h2.js";import{t as V}from"./wifi-FAbs4NeV.js";import{D as H,H as le,I as U,J as ue,K as de,L as W,O as fe,P as pe,S as G,W as K,i as q,m as me,o as J,p as he,q as ge,s as _e,t as ve}from"./index-QfylAEAa.js";var ye=K(`search-x`,[[`path`,{d:`m13.5 8.5-5 5`,key:`1cs55j`}],[`path`,{d:`m8.5 8.5 5 5`,key:`a8mexj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}],[`path`,{d:`m21 21-4.3-4.3`,key:`1qie3q`}]]);O();function be(e){let t=[];for(let n of e)n.type===`probe`&&t.push(n.key),n.type===`group`&&`fields`in n&&t.push(...be(n.fields));return t}function xe(e,t,n){let[r,i]=N(`idle`),[a,o]=N({}),s=A(()=>{let t=[];for(let n of e.sections)t.push(...be(n.fields));return t},[e]),c=s.length>0&&n!==void 0,l=D(e=>{o(t=>{if(!t[e])return t;let n={...t};return delete n[e],n})},[]);return{testAllStatus:r,hasProbeFields:c,probeResults:a,handleTestAll:D(async()=>{if(!n)return;let e=s.filter(e=>{let n=t[e];return n!=null&&String(n).trim()!==``});if(e.length===0)return;i(`testing`);let r={};for(let t of e)r[t]={status:`probing`};o(r);let a=await Promise.allSettled(e.map(async e=>{try{return{key:e,result:await n(e,t[e])}}catch(t){return{key:e,result:{status:`error`,error:t instanceof Error?t.message:String(t)}}}})),c={};for(let e of a)if(e.status===`fulfilled`){let{key:t,result:n}=e.value;c[t]={status:n.status===`ok`?`ok`:`error`,result:n}}o(c),i(`idle`)},[n,s,t]),clearProbeResult:l}}O();function Se(e){let t=[];for(let n of e)`required`in n&&n.required===!0&&`key`in n&&n.key&&t.push(n.key),n.type===`group`&&`fields`in n&&t.push(...Se(n.fields));return t}function Ce(e){return e==null?!0:typeof e==`string`?e.trim()===``:!1}function Y(e,t={}){for(let n of e){if(n.type===`group`&&`fields`in n){Y(n.fields,t);continue}`key`in n&&n.key&&`default`in n&&n.default!==void 0&&(t[n.key]=n.default)}return t}function X(){return typeof crypto<`u`&&typeof crypto.randomUUID==`function`?`probe-${crypto.randomUUID()}`:`probe-${Date.now().toString(36)}-${Math.random().toString(36).slice(2,10)}`}function we({open:e,integrationId:r,addonId:i,onClose:o}){let{t:s}=ve(),c=M(),[l,u]=N({}),[f,p]=N(!1),[m,h]=N(null),[_,ee]=N(X),v=n({addonId:i},{enabled:e}),y=v.data?.deviceType??null,b=t({addonId:i,type:y??F.Camera},{enabled:e&&v.isSuccess&&y!==null}),x=b.data??null;ie(()=>{e&&(u(x?Y(x.sections.flatMap(e=>e.fields)):{}),ee(X()),p(!1),h(null))},[e,r,x]);let S=A(()=>({...l,_probeRequestId:_}),[l,_]),C=d({onSuccess:()=>{c.invalidateQueries({queryKey:[[`deviceManager`]]})}}),w=a(),te=D(async(e,t)=>{p(!0);let n=await w.mutateAsync({addonId:i,type:y??F.Camera,key:e,value:t,formValues:S});return n.status===`ok`&&n.suggestedValues&&u(e=>{let t=!1,r={...e};for(let[i,a]of Object.entries(n.suggestedValues??{}))Ce(e[i])&&!Ce(a)&&(r[i]=a,t=!0);return t?r:e}),n},[w,i,S,y]),{testAllStatus:ne,hasProbeFields:T,probeResults:E,handleTestAll:re,clearProbeResult:O}=xe(x??{sections:[]},l,te);async function j(e){h(null);try{await C.mutateAsync({addonId:i,type:y??F.Camera,config:l,integrationId:r}),e?u(x?Y(x.sections.flatMap(e=>e.fields)):{}):o()}catch(e){h(e instanceof Error?e.message:String(e))}}if(!e)return null;let I=Se((x?.sections??[]).flatMap(e=>e.fields)).filter(e=>Ce(l[e])),L=I.length===0,z=v.isLoading||y!==null&&b.isLoading,B=v.isError||v.isSuccess&&y===null||b.isError||b.isSuccess&&x===null;return k(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center`,children:[P(`div`,{className:`absolute inset-0 bg-black/60`,onClick:o}),k(`div`,{className:`relative z-10 flex w-full max-w-2xl flex-col max-h-[90vh] rounded-xl border border-border bg-background shadow-2xl`,children:[k(`div`,{className:`flex items-center justify-between border-b border-border px-5 py-4 shrink-0`,children:[P(`h2`,{className:`text-sm font-semibold text-foreground`,children:s(`integrations.addDevice`)}),P(`button`,{onClick:o,className:`rounded-md p-1 text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors`,children:P(q,{className:`h-4 w-4`})})]}),P(`div`,{className:`flex-1 min-h-0 overflow-y-auto px-5 py-4 space-y-3`,children:z?P(`div`,{className:`flex items-center justify-center py-8`,children:P(G,{className:`h-5 w-5 animate-spin text-primary`})}):B?k(`div`,{className:`flex items-start gap-3 rounded-lg border border-destructive/40 bg-destructive/10 px-4 py-3`,children:[P(J,{className:`h-4 w-4 text-destructive mt-0.5 shrink-0`}),k(`div`,{className:`space-y-1`,children:[P(`p`,{className:`text-xs font-medium text-destructive`,children:`Provider unavailable`}),k(`p`,{className:`text-xs text-foreground-subtle`,children:[`The addon `,P(`span`,{className:`font-mono`,children:i}),` is not ready or does not support manual device creation. Check that the integration is online and try again.`]})]})]}):P(R,{schema:x,values:l,onChange:u,onTestField:te,probeResults:E,onClearProbe:O})}),!B&&!z&&k(`div`,{className:`border-t border-border bg-surface/50 shrink-0`,children:[k(`button`,{type:`button`,onClick:()=>p(e=>!e),className:`flex w-full items-center justify-between px-5 py-2 text-[11px] text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors`,children:[k(`span`,{className:`flex items-center gap-2`,children:[P(me,{className:`h-3.5 w-3.5`}),`Test logs`,P(`span`,{className:`font-mono text-[9px] opacity-60`,children:_.slice(0,14)})]}),P(U,{className:`h-3.5 w-3.5 transition-transform ${f?`rotate-180`:``}`})]}),f&&P(`div`,{className:`border-t border-border max-h-64 overflow-hidden`,children:P(g,{addonId:i,requestId:_,limit:50,maxHeight:`max-h-64`,showFilters:!1,showScope:!1,className:`border-0 rounded-none`})})]}),!B&&!z&&(m||I.length>0)&&P(`div`,{className:`border-t border-destructive/30 bg-destructive/5 px-5 py-2 shrink-0`,children:k(`div`,{className:`flex items-start gap-2`,children:[P(J,{className:`h-3.5 w-3.5 text-destructive mt-0.5 shrink-0`}),P(`p`,{className:`text-[11px] text-destructive`,children:m||`Required: ${I.join(`, `)}`})]})}),k(`div`,{className:`flex items-center justify-between border-t border-border px-5 py-3 shrink-0`,children:[k(`div`,{className:`flex items-center gap-2`,children:[P(`button`,{onClick:o,className:`rounded-lg border border-border px-3 py-1.5 text-xs text-foreground-subtle hover:text-foreground transition-colors`,children:s(`integrations.cancel`)}),!B&&T&&k(`button`,{type:`button`,onClick:re,disabled:ne===`testing`,className:`inline-flex items-center gap-1.5 rounded-lg border border-border px-3 py-1.5 text-xs font-medium text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors disabled:opacity-50`,children:[ne===`testing`?P(G,{className:`h-3.5 w-3.5 animate-spin`}):P(V,{className:`h-3.5 w-3.5`}),`Test All`]})]}),k(`div`,{className:`flex items-center gap-2`,children:[P(`button`,{onClick:()=>j(!0),disabled:B||!L||C.isPending,className:`rounded-lg border border-border px-3 py-1.5 text-xs text-foreground hover:bg-surface-hover transition-colors disabled:opacity-50`,children:s(`integrations.saveAndNew`)}),P(`button`,{onClick:()=>j(!1),disabled:B||!L||C.isPending,className:`rounded-lg bg-primary px-4 py-1.5 text-xs font-medium text-primary-foreground shadow-sm disabled:opacity-50`,children:C.isPending?s(`integrations.saving`):s(`integrations.save`)})]})]})]})]})}function Z(e){let t=e.metadata;return[e.name,e.childNativeId,t.model,t.manufacturer,t.integration,t.externalLocation].filter(e=>typeof e==`string`&&e.length>0).join(` `)}O();var Q=`devices`,Te={id:Q,label:`Devices`,isDefault:!0},Ee=2e4,De=100;function Oe({addonId:e,integrationId:t,onClose:n}){let{t:i}=ve(),[a,o]=N(new Set),[s,c]=N(new Set),[l,u]=N(new Map),[d,f]=N(null),{data:p}=te(),h=(p??[]).find(t=>t.addonId===e)?.supportsLocationImport??!1,[g,_]=N(!0),y=C({addonId:e,integrationId:t}).data?.filters,x=y&&y.length>0?y:[Te],[w,ne]=N(x.find(e=>e.isDefault)?.id??(x.some(e=>e.id===Q)?Q:x[0].id)),T=w!==Q,E=ee(),O=b({addonId:e,integrationId:t,page:1,pageSize:Ee,filter:w}),A=O.refetch,j=E.mutate,M=D(()=>{j({addonId:e,integrationId:t},{onSettled:()=>{A()}})},[j,e,t,A]),F=re(null);ie(()=>{let n=`${e}::${t}`;F.current===n||O.isLoading||(F.current=n,(O.data?.candidates.length??0)===0&&M())},[e,t,O.isLoading,O.data,M]);let I=E.isPending,L=E.isError?E.error instanceof Error?E.error.message:String(E.error):null,R=O.data?.candidates??[],z=O.isError?O.error instanceof Error?O.error.message:String(O.error):null,B=m(),ae=D(e=>{e.alreadyAdopted||o(t=>{let n=new Set(t);return n.has(e.childNativeId)?n.delete(e.childNativeId):n.add(e.childNativeId),n})},[]),oe=D(e=>{c(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),se=D((e,t)=>{u(n=>{let r=new Map(n),i=r.get(e)?.hiddenChildIds??new Set,a=new Set(i);return a.has(t)?a.delete(t):a.add(t),a.size===0?r.delete(e):r.set(e,{hiddenChildIds:a}),r})},[]),V=D(e=>{let t={};for(let n of e){let e=l.get(n);e&&e.hiddenChildIds.size>0&&(t[n]={hiddenChildIds:[...e.hiddenChildIds]})}return Object.keys(t).length>0?t:void 0},[l]),H=D(async()=>{f(null);let r=[...a];if(r.length!==0)try{let i=V(r);await B.mutateAsync({addonId:e,integrationId:t,filter:w,childNativeIds:r,...i?{perCandidate:i}:{},...h?{importLocations:g}:{}}),o(new Set),u(new Map),await A(),n()}catch(e){f(e instanceof Error?e.message:String(e))}},[a,V,B,e,t,w,A,h,g]),le=D(e=>{ne(e),o(new Set),c(new Set),u(new Map),f(null)},[]),U=a.size;return k(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center`,children:[P(`div`,{className:`absolute inset-0 bg-black/60`,onClick:n}),k(`div`,{className:`relative z-10 flex w-full max-w-3xl flex-col h-[85vh] rounded-xl border border-border bg-background shadow-2xl`,children:[k(`div`,{className:`flex items-center justify-between border-b border-border px-5 py-4 shrink-0`,children:[k(`div`,{className:`min-w-0`,children:[P(`h2`,{className:`text-sm font-semibold text-foreground`,children:i(`integrations.adoptDevices`,{defaultValue:`Adopt devices`})}),P(`p`,{className:`text-[11px] text-foreground-subtle mt-0.5`,children:i(`integrations.adoptDevicesHint`,{defaultValue:`Preview the candidate devices and add the ones you want.`})})]}),k(`div`,{className:`flex items-center gap-3 shrink-0`,children:[h&&k(`label`,{className:`flex items-center gap-1.5 cursor-pointer text-[11px] text-foreground-subtle hover:text-foreground transition-colors`,children:[P(`input`,{type:`checkbox`,checked:g,onChange:e=>_(e.target.checked),className:`accent-primary`}),i(`integrations.importLocations`,{defaultValue:`Import locations from the integration`})]}),P(`button`,{onClick:n,className:`rounded-md p-1 text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors`,"aria-label":`Close`,children:P(q,{className:`h-4 w-4`})})]})]}),k(`div`,{className:`flex-1 min-h-0 px-5 py-3 flex flex-col gap-2 overflow-hidden`,children:[(L??z)&&R.length===0&&P(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 px-4 py-3 shrink-0`,children:k(`div`,{className:`flex items-start gap-2`,children:[P(J,{className:`h-3.5 w-3.5 text-destructive mt-0.5 shrink-0`}),k(`div`,{className:`min-w-0`,children:[P(`p`,{className:`text-xs font-medium text-destructive`,children:i(`integrations.adoptRefreshFailed`,{defaultValue:`Could not discover devices.`})}),P(`p`,{className:`text-[11px] text-destructive/90 mt-0.5`,children:L??z})]})]})}),x.length>1&&P(ke,{filters:x,activeFilter:w,onSelect:le}),P(`div`,{className:`flex-1 min-h-0`,children:P(r,{mode:`generic`,items:R,pageSize:De,getKey:e=>e.childNativeId,getSearchText:Z,getFilterType:e=>e.type,filterOptions:S(),filterLabel:i(`integrations.adoptColType`,{defaultValue:`Type`}),isLoading:O.isLoading||I&&R.length===0,searchPlaceholder:i(`integrations.adoptSearch`,{defaultValue:`Search candidates…`}),emptyLabel:(L??z)&&R.length===0?``:i(`integrations.adoptNoCandidates`,{defaultValue:`No candidate devices found.`}),toolbar:k(`button`,{type:`button`,onClick:M,disabled:I,title:i(`integrations.adoptRefreshTitle`,{defaultValue:`Re-scan Home Assistant for devices`}),className:`inline-flex items-center gap-1.5 rounded-lg border border-border bg-surface px-2.5 py-1.5 text-xs text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors disabled:opacity-60 shrink-0`,children:[P(ce,{className:`h-3.5 w-3.5 ${I?`animate-spin`:``}`}),i(`integrations.adoptRefresh`,{defaultValue:`Refresh`})]}),columns:[{key:`name`,header:i(`integrations.adoptColName`,{defaultValue:`Name`}),headerClassName:`w-[55%]`,cell:e=>P($,{candidate:e,expandable:!T,expanded:s.has(e.childNativeId),onToggleExpand:()=>oe(e.childNativeId),adoptedLabel:i(`integrations.adoptAlready`,{defaultValue:`Adopted`})})},{key:`type`,header:i(`integrations.adoptColType`,{defaultValue:`Type`}),headerClassName:`w-[30%] hidden sm:table-cell`,cellClassName:`hidden sm:table-cell`,cell:e=>{let t=v(e.type),n=t.icon;return k(`span`,{className:`inline-flex items-center gap-1.5 text-[10px] text-foreground-subtle`,children:[P(n,{className:`h-3.5 w-3.5 shrink-0`}),t.label]})}},{key:`select`,header:``,headerClassName:`w-[15%] text-right`,cellClassName:`text-right`,cell:e=>P(`div`,{className:`flex items-center justify-end`,children:P(`button`,{onClick:()=>ae(e),disabled:e.alreadyAdopted,"aria-label":a.has(e.childNativeId)?`Deselect`:`Select`,className:`inline-flex h-5 w-5 items-center justify-center rounded border ${a.has(e.childNativeId)?`border-primary bg-primary`:`border-border`} ${e.alreadyAdopted?`cursor-not-allowed opacity-50`:``}`,children:a.has(e.childNativeId)&&P(W,{className:`h-3 w-3 text-primary-foreground`})})})}],isExpanded:e=>!T&&s.has(e.childNativeId),renderExpanded:T?void 0:e=>P(Ae,{candidate:e,hiddenChildIds:l.get(e.childNativeId)?.hiddenChildIds??new Set,onToggleChildHidden:t=>se(e.childNativeId,t)}),rowClassName:e=>e.alreadyAdopted?`opacity-60`:a.has(e.childNativeId)?`bg-primary/5`:``})})]}),d&&P(`div`,{className:`border-t border-destructive/30 bg-destructive/5 px-5 py-2 shrink-0`,children:k(`div`,{className:`flex items-start gap-2`,children:[P(J,{className:`h-3.5 w-3.5 text-destructive mt-0.5 shrink-0`}),P(`p`,{className:`text-[11px] text-destructive`,children:d})]})}),k(`div`,{className:`flex items-center justify-between border-t border-border px-5 py-3 shrink-0`,children:[P(`div`,{}),k(`div`,{className:`flex items-center gap-2`,children:[P(`button`,{onClick:n,className:`rounded-lg border border-border px-3 py-1.5 text-xs text-foreground-subtle hover:text-foreground transition-colors`,children:i(`integrations.cancel`,{defaultValue:`Cancel`})}),k(`button`,{onClick:H,disabled:U===0||B.isPending,className:`inline-flex items-center gap-1.5 rounded-lg bg-primary px-4 py-1.5 text-xs font-medium text-primary-foreground shadow-sm disabled:opacity-50 disabled:cursor-not-allowed`,children:[B.isPending&&P(G,{className:`h-3.5 w-3.5 animate-spin`}),i(`integrations.addSelected`,{defaultValue:`Add selected`}),U>0?` (${U})`:``]})]})]})]})]})}function ke({filters:e,activeFilter:t,onSelect:n}){return P(`div`,{role:`tablist`,"aria-label":`Discovery granularity`,className:`inline-flex shrink-0 self-start rounded-lg border border-border bg-surface p-0.5`,children:e.map(e=>{let r=e.id===t;return P(`button`,{type:`button`,role:`tab`,"aria-selected":r,onClick:()=>n(e.id),className:`rounded-md px-3 py-1 text-xs font-medium transition-colors ${r?`bg-primary text-primary-foreground shadow-sm`:`text-foreground-subtle hover:text-foreground hover:bg-surface-hover`}`,children:e.label},e.id)})})}function $({candidate:e,expandable:t,expanded:n,onToggleExpand:r,adoptedLabel:i}){let a=(e.children??[]).length;return k(`div`,{className:`flex items-center gap-2.5 min-w-0`,children:[t&&a>0?k(`button`,{type:`button`,onClick:r,"aria-label":n?`Collapse`:`Expand`,"aria-expanded":n,className:`flex h-5 flex-shrink-0 items-center justify-center gap-0.5 rounded px-0.5 text-[10px] text-foreground-subtle transition-colors hover:bg-surface-hover hover:text-foreground`,children:[P(n?U:pe,{className:`h-3.5 w-3.5`}),a]}):P(`span`,{className:`flex h-5 w-5 flex-shrink-0 items-center justify-center text-foreground-subtle/40`,children:`—`}),P(`span`,{className:`truncate text-xs font-medium text-foreground`,children:e.name}),e.alreadyAdopted&&P(`span`,{className:`rounded-full bg-success/10 px-2 py-0.5 text-[9px] font-medium text-success shrink-0`,children:i})]})}function Ae({candidate:e,hiddenChildIds:t,onToggleChildHidden:n}){let r=e.children??[];return r.length===0?null:P(`div`,{className:`space-y-1 py-1`,children:r.map(e=>{let r=t.has(e.childNativeId),i=e.capabilities??[];return k(`div`,{className:`flex items-center gap-2 rounded px-2 py-1 ${r?`opacity-50`:``}`,children:[P(`span`,{className:`text-[11px] text-foreground truncate flex-1 min-w-0`,children:e.name}),i.length>0&&P(`span`,{className:`text-[9px] text-foreground-subtle truncate`,children:i.join(`, `)}),P(`button`,{onClick:()=>n(e.childNativeId),"aria-label":r?`Show child`:`Hide child`,title:r?`Show after adopt`:`Hide after adopt`,className:`flex h-5 w-5 items-center justify-center rounded text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors flex-shrink-0`,children:P(r?fe:H,{className:`h-3 w-3`})})]},e.childNativeId)})})}O();function je({integrationId:e,addonId:t,name:n,kind:r,brokerKind:i,trpc:a,onClose:o}){let{t:s}=ve(),c=M(),l=r===`device-adoption`,{data:u}=h({id:e},{enabled:l}),d=A(()=>{let e=u?.brokerId;return typeof e==`string`?e:null},[u]),f=x();return P(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4`,onClick:o,children:k(`div`,{className:`max-h-[85vh] w-full max-w-md overflow-y-auto rounded-xl border border-border bg-surface p-5 shadow-xl`,onClick:e=>e.stopPropagation(),children:[k(`div`,{className:`mb-3 flex items-center justify-between`,children:[k(`h2`,{className:`text-sm font-semibold text-foreground`,children:[s(`integrations.editConfig`,{defaultValue:`Edit configuration`}),` — `,n]}),P(`button`,{onClick:o,className:`rounded-md p-1 text-foreground-subtle hover:bg-surface-hover hover:text-foreground`,"aria-label":s(`common.close`,{defaultValue:`Close`}),children:P(q,{className:`h-4 w-4`})})]}),l?i?k(`div`,{className:`space-y-3`,children:[P(`p`,{className:`text-[11px] text-foreground-subtle`,children:s(`integrations.relinkBrokerHelp`,{defaultValue:`Choose the broker this integration connects through. Picking a different broker re-points it and restarts the addon.`})}),d&&k(`p`,{className:`text-[11px] text-foreground`,children:[s(`integrations.currentBroker`,{defaultValue:`Current broker`}),`:`,` `,P(`span`,{className:`font-mono text-foreground-subtle`,children:d})]}),f.isPending?k(`div`,{className:`flex items-center gap-2 text-[11px] text-foreground-subtle`,children:[P(G,{className:`h-3 w-3 animate-spin`}),s(`integrations.saving`,{defaultValue:`Saving…`})]}):P(B,{kind:i,onResolved:t=>{f.mutate({id:e,settings:{brokerId:t}},{onSuccess:()=>{c.invalidateQueries(),o()}})},onBack:o}),f.isError&&P(`p`,{className:`text-[11px] text-danger`,children:s(`integrations.relinkFailed`,{defaultValue:`Failed to update broker link.`})})]}):P(`p`,{className:`text-[11px] text-danger`,children:s(`integrations.noBrokerKind`,{defaultValue:`This integration declares device-adoption but its addon manifest has no brokerKind.`})}):P(E,{trpc:a,addonId:t,nodeId:`hub`,title:n})]})})}O();function Me(){let{t}=ve(),{integrationId:n}=ge(),a=M(),d=de(),[m,h]=ue(),ee=I(),[v,b]=N(!1),[x,S]=N(!1),[C,E]=N(!1),[re,O]=N(!1),[F,R]=N(!1),{data:B,isLoading:ce}=y({id:n??``},{enabled:!!n}),{data:V}=ne({addonId:B?.addonId??``,nodeId:`hub`},{enabled:!!B?.addonId}),{data:H,isSuccess:U}=te(),W=A(()=>{let e=B?.addonId;return!e||!U?null:(H??[]).find(t=>t.addonId===e)?.kind===`device-adoption`?`device-adoption`:`device-provider`},[H,B?.addonId,U]),{data:fe}=c({}),pe=A(()=>(fe?.providers??[]).some(e=>e.addonId===B?.addonId),[fe,B?.addonId]),K=W!==null,be=K?W===`device-adoption`?t(`integrations.adoptDevices`,{defaultValue:`Adopt devices`}):t(`integrations.addDevice`):t(`integrations.addDeviceLoading`,{defaultValue:`Loading…`}),xe=A(()=>{let e=B?.addonId;return!e||!U?null:(H??[]).find(t=>t.addonId===e)?.brokerKind??null},[H,B?.addonId,U]),Se=A(()=>{let e=B?.addonId;return!e||!U?null:(H??[]).find(t=>t.addonId===e)?.mode??null},[H,B?.addonId,U]);ie(()=>{m.get(`add`)===`1`&&K&&(b(!0),h(e=>{let t=new URLSearchParams(e);return t.delete(`add`),t},{replace:!0}))},[m,K,h]);let Ce=V!=null&&Array.isArray(V.sections)&&V.sections.some(e=>e.fields.length>0),{data:Y}=s({},{refetchInterval:5e3}),X=[[`integrations`,`get`],{input:{id:n??``},type:`query`}],Z=_({onMutate:async e=>{await a.cancelQueries({queryKey:X});let t=a.getQueryData(X);return t!=null&&a.setQueryData(X,{...t,enabled:e.enabled}),{previous:t}},onError:(e,t,n)=>{let r=n;r?.previous!=null&&a.setQueryData(X,r.previous)},onSettled:()=>{a.invalidateQueries({queryKey:[[`integrations`]]}),a.invalidateQueries({queryKey:[[`deviceManager`]]})}}),Q=f({onSuccess:()=>{a.invalidateQueries({queryKey:[[`integrations`]]}),a.invalidateQueries({queryKey:[[`deviceManager`]]}),O(!1),d(`/integrations`)}}),Te=u({onSuccess:()=>{a.invalidateQueries({queryKey:[[`integrations`]]}),a.invalidateQueries({queryKey:[[`deviceManager`]]})}}),Ee=o({onSuccess:()=>{a.invalidateQueries({queryKey:[[`deviceManager`]]})}}),De=T({onSuccess:()=>{a.invalidateQueries({queryKey:[[`deviceManager`]]})}}),ke=e({onSuccess:()=>{a.invalidateQueries({queryKey:[[`deviceManager`]]})}}),$=A(()=>Y??[],[Y]),Ae=A(()=>{let e=new Map;for(let t of $)e.set(t.id,{id:t.id,name:t.name??t.stableId??`#${String(t.id)}`});return e},[$]),Me=D(e=>Ae.get(e)??null,[Ae]),Ne=D(e=>P(L,{type:e,size:`sm`}),[]),Pe=D(e=>d(`/devices/${String(e)}`),[d]),Fe=A(()=>{let e=B?.addonId;return e?$.filter(t=>t.addonId===e):[]},[$,B?.addonId]),Ie=A(()=>i(Fe).length,[Fe]);return ce?k(`div`,{className:`p-4`,children:[P(`div`,{className:`h-16 rounded-lg bg-surface animate-pulse mb-4`}),P(`div`,{className:`h-40 rounded-lg bg-surface animate-pulse`})]}):B?k(`div`,{className:`p-4 space-y-4 overflow-x-hidden`,children:[P(w,{items:[{label:`Integrations`,onClick:()=>d(`/integrations`)},{label:B.name}]}),k(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[k(`div`,{className:`flex items-center gap-3 min-w-0`,children:[P(`img`,{src:`/api/addon-assets/${B.addonId}/assets/icon.svg`,alt:``,className:`h-8 w-8 rounded-lg shrink-0`,onError:e=>{e.target.style.display=`none`}}),k(`div`,{className:`min-w-0`,children:[P(`h1`,{className:`text-lg font-semibold text-foreground truncate`,children:B.name}),k(`p`,{className:`text-[11px] text-foreground-subtle mt-0.5 truncate`,children:[B.addonId,` · `,Ie,` `,t(`integrations.devices`)]})]})]}),k(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[pe&&k(`button`,{onClick:()=>S(!0),className:`flex items-center gap-1.5 rounded-lg border border-border bg-surface px-2.5 py-1.5 text-xs font-medium text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors`,title:`Scan the network for devices (incl. a different subnet)`,children:[P(ae,{className:`h-3.5 w-3.5`}),`Scan network`]}),k(`button`,{onClick:()=>b(!0),disabled:!K,className:`flex items-center gap-1.5 rounded-lg bg-primary px-3 py-1.5 text-xs font-medium text-primary-foreground shadow-sm disabled:opacity-50 disabled:cursor-not-allowed`,title:be,children:[P(z,{className:`h-3.5 w-3.5`}),be]}),k(`div`,{className:`inline-flex items-center gap-2 rounded-lg border px-3 py-1.5 transition-colors ${Z.isPending?`opacity-60`:``} ${B.enabled?`border-success/30 bg-success/5`:`border-border bg-surface`}`,title:t(`integrations.toggleHint`,{defaultValue:`Click to toggle`}),children:[P(l,{checked:B.enabled,onCheckedChange:e=>Z.mutate({id:n,enabled:e}),disabled:Z.isPending,"aria-label":B.enabled?`Disable integration`:`Enable integration`}),P(`span`,{className:`text-[11px] font-medium ${B.enabled?`text-success`:`text-foreground-subtle`}`,children:B.enabled?`Enabled`:`Disabled`}),Z.isPending&&P(G,{className:`h-3 w-3 animate-spin text-foreground-subtle`})]}),Se!==`standalone`&&(Ce||W===`device-adoption`)&&k(`button`,{onClick:()=>E(!0),className:`flex items-center gap-1.5 rounded-lg border border-border bg-surface px-3 py-1.5 text-[11px] text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors`,children:[P(he,{className:`h-3 w-3`}),t(`integrations.config`)]}),k(`button`,{onClick:()=>R(!0),className:`flex items-center gap-1.5 rounded-lg border border-border bg-surface px-3 py-1.5 text-[11px] text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors`,title:t(`integrations.logs`,{defaultValue:`View logs`}),children:[P(me,{className:`h-3 w-3`}),t(`integrations.logs`,{defaultValue:`Logs`})]}),P(p,{label:`Restart`,icon:se,title:`Restart "${B.name}"?`,description:`Restarting the addon will briefly disconnect every device backed by it (${Ie} active). Streams will reconnect automatically.`,confirmLabel:`Restart`,triggerVariant:`outline`,confirmVariant:`danger`,disabled:Te.isPending,action:()=>Te.mutateAsync({addonId:B.addonId})}),k(`button`,{onClick:()=>O(!0),className:`flex items-center gap-1.5 rounded-lg border border-danger bg-danger/10 px-3 py-1.5 text-[11px] font-medium text-danger hover:bg-danger hover:text-background transition-colors`,title:t(`integrations.delete`,{defaultValue:`Delete integration`}),children:[P(_e,{className:`h-3 w-3`}),t(`integrations.delete`,{defaultValue:`Delete`})]})]})]}),P(r,{context:`integration-detail`,devices:$,trpc:ee.trpcClient,defaultView:`cards`,forceAddon:B.addonId,urlScope:`root`,lsKey:`integration-detail:${B.addonId}`,resolveIntegrationIcon:Ne,resolveParent:Me,onNavigate:Pe,batchActions:{remove:Ee.mutate,disable:De.mutate,enable:ke.mutate},onDeleteDevice:e=>Ee.mutate({deviceId:e.id})}),v&&n&&W===`device-adoption`&&P(Oe,{addonId:B.addonId,integrationId:n,onClose:()=>b(!1)}),v&&n&&W===`device-provider`&&P(we,{open:v,integrationId:n,addonId:B.addonId,onClose:()=>b(!1)}),x&&B&&P(oe,{open:x,scope:{addonId:B.addonId,label:B.name},onClose:()=>S(!1)}),C&&n&&W!==null&&P(je,{integrationId:n,addonId:B.addonId,name:B.name,kind:W,brokerKind:xe,trpc:ee.trpcClient,onClose:()=>E(!1)}),F&&P(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-6`,onClick:()=>R(!1),children:k(`div`,{className:`flex flex-col rounded-xl border border-border bg-surface shadow-xl w-full max-w-5xl h-[80vh]`,onClick:e=>e.stopPropagation(),children:[k(`div`,{className:`flex items-center justify-between border-b border-border px-4 py-2.5`,children:[k(`div`,{className:`flex items-center gap-2 min-w-0`,children:[P(me,{className:`h-4 w-4 text-primary shrink-0`}),P(`h2`,{className:`text-sm font-semibold text-foreground truncate`,children:B.name}),k(`span`,{className:`text-[10px] text-foreground-subtle font-mono truncate`,children:[B.addonId,n?` · ${n}`:``]})]}),P(`button`,{onClick:()=>R(!1),className:`flex h-7 w-7 items-center justify-center rounded text-foreground-subtle hover:text-foreground hover:bg-surface-hover transition-colors`,"aria-label":`Close logs`,children:P(q,{className:`h-4 w-4`})})]}),P(`div`,{className:`flex-1 min-h-0 overflow-hidden`,children:P(g,{addonId:B.addonId,limit:200,maxHeight:`max-h-full`,showScope:!1,className:`h-full border-0 rounded-none`})})]})}),re&&P(`div`,{className:`fixed inset-0 z-50 flex items-center justify-center bg-black/60`,onClick:()=>!Q.isPending&&O(!1),children:k(`div`,{className:`rounded-xl border border-border bg-background p-5 shadow-2xl w-96 space-y-3`,onClick:e=>e.stopPropagation(),children:[k(`div`,{className:`flex items-start gap-3`,children:[P(`div`,{className:`flex h-9 w-9 items-center justify-center rounded-lg bg-danger/10 shrink-0`,children:P(J,{className:`h-4 w-4 text-danger`})}),k(`div`,{className:`min-w-0`,children:[P(`h2`,{className:`text-sm font-semibold text-foreground`,children:t(`integrations.deleteTitle`,{defaultValue:`Delete integration?`})}),P(`p`,{className:`mt-1 text-[11px] text-foreground-subtle`,children:t(`integrations.deleteWarning`,{defaultValue:`This removes the integration "{{name}}" and its {{count}} device(s). The addon will restart. This cannot be undone.`,name:B.name,count:Ie})})]})]}),Q.error&&P(`div`,{className:`rounded-lg border border-danger/40 bg-danger/10 px-3 py-2 text-[11px] text-danger`,children:Q.error instanceof Error?Q.error.message:String(Q.error)}),k(`div`,{className:`flex items-center justify-end gap-2 pt-1`,children:[P(`button`,{onClick:()=>O(!1),disabled:Q.isPending,className:`rounded-lg border border-border px-3 py-1.5 text-[11px] text-foreground-subtle hover:text-foreground transition-colors disabled:opacity-50 disabled:cursor-not-allowed`,children:t(`integrations.cancel`,{defaultValue:`Cancel`})}),P(`button`,{onClick:()=>Q.mutate({id:n}),disabled:Q.isPending,className:`inline-flex items-center gap-1.5 rounded-lg bg-danger px-3 py-1.5 text-[11px] font-medium text-background hover:bg-danger/90 transition-colors disabled:opacity-60 disabled:cursor-not-allowed`,children:Q.isPending?k(j,{children:[P(G,{className:`h-3 w-3 animate-spin`}),t(`integrations.deleting`,{defaultValue:`Deleting…`})]}):k(j,{children:[P(_e,{className:`h-3 w-3`}),t(`integrations.confirmDelete`,{defaultValue:`Delete integration`})]})})]})]})})]}):k(`div`,{className:`flex flex-col items-center justify-center py-20 px-6 text-center gap-4`,children:[P(`div`,{className:`flex h-12 w-12 items-center justify-center rounded-full bg-foreground-subtle/10`,children:P(ye,{className:`h-6 w-6 text-foreground-subtle`})}),k(`div`,{className:`space-y-1 max-w-sm`,children:[P(`h2`,{className:`text-sm font-semibold text-foreground`,children:t(`integrations.integrationNotFound`,{defaultValue:`Integration not found`})}),P(`p`,{className:`text-[11px] text-foreground-subtle`,children:t(`integrations.integrationNotFoundHint`,{defaultValue:`The integration "{{id}}" does not exist. It may have been deleted, or the URL may be wrong.`,id:n??``})})]}),k(`button`,{onClick:()=>d(`/integrations`),className:`inline-flex items-center gap-1.5 rounded-lg border border-border bg-surface px-3 py-1.5 text-[11px] font-medium text-foreground hover:bg-surface-hover transition-colors`,children:[P(le,{className:`h-3 w-3`}),t(`integrations.backToList`,{defaultValue:`Back to integrations`})]})]})}export{Me as IntegrationDetailPage};
@@ -1 +0,0 @@
1
- import{W as e}from"./index-QfylAEAa.js";var t=e(`circle-check-big`,[[`path`,{d:`M21.801 10A10 10 0 1 1 17 3.335`,key:`yps3ct`}],[`path`,{d:`m9 11 3 3L22 4`,key:`1pflzl`}]]);export{t};
@@ -1 +0,0 @@
1
- import{W as e}from"./index-QfylAEAa.js";var t=e(`clock`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`polyline`,{points:`12 6 12 12 16 14`,key:`68esgv`}]]);export{t};