import"./chunk-QTnfLwEv.js";import{n as e}from"./index-7yDgay5u.js";import{t}from"./defineProperty-BbfpZ9Tg.js";import{i as n,n as r,o as i,r as a,t as o}from"./jsx-runtime-DHSfUA5-.js";import{F as s,I as c,R as l,q as u}from"./test.id-DxQrYxPk.js";import{t as d}from"./route-CPr17rXr.js";import{t as f}from"./version-Cwi7eNw6.js";var p=r(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);i();var m=o();function h({className:e,tone:t=`muted`}){return(0,m.jsx)(`span`,{className:a(n.ImageLoading.SpinnerBase,t===`light`?n.ImageLoading.SpinnerLight:n.ImageLoading.SpinnerMuted,e),"aria-hidden":`true`})}function g({className:t,style:r,testId:i,label:o=e(`diary.image.loadFailed`,`Image failed to load`),tone:s=`muted`}){return(0,m.jsx)(`div`,{className:a(n.ImageLoading.FailedBase,s===`light`?n.ImageLoading.FailedLight:n.ImageLoading.FailedMuted,t),"data-test-id":i,style:r,children:(0,m.jsx)(`span`,{children:o})})}var _=`islet-native-analytics`,v=`https://u.hamsterbase.com/script.js`,y=`d9bfc9e1-1e97-4b80-9cc9-482da58e162e`,b=`__isletAnalyticsBeforeSend`,x=`app_version`,S=class{constructor(e){t(this,`hostService`,void 0),t(this,`_serviceBrand`,void 0),this.hostService=e}start(){if(!this.hostService.isNative||document.getElementById(_))return;window[b]=w;let e=document.createElement(`script`);e.id=_,e.defer=!0,e.src=v,e.dataset.websiteId=y,e.dataset.beforeSend=b,document.head.append(e)}trackEvent(e,t){this.hostService.isNative&&window.umami?.track(e,T(t))}};S=s([c(0,l)],S);var C=u(`ITrackService`);function w(e,t){let n=D(t.url);return{...t,url:d(n),data:T(E(t.data))}}function T(e){return{...e,[x]:f}}function E(e){if(!(!e||typeof e!=`object`||Array.isArray(e)))return e}function D(e){if(typeof e!=`string`)return window.location.pathname;try{return new URL(e,window.location.origin).pathname}catch{return window.location.pathname}}export{p as a,h as i,S as n,g as r,C as t};
//# sourceMappingURL=trackService-D11E5VqS.js.map