PageSourceSearch

https://ecosiashop.com/assets/TmlSnackbarContainer.bd58f6bc.js

js ecosiashop.com collected 2026-09-25 02:44:19 UTC 2,837 bytes, 2 lines download raw bytes

1import{t as y}from"./tinycolor.2b913cdd.js";import{_ as C,T as x,aU as I}from"./index.a4e8ca65.js";import{N as d,D as t,E as o,f as h,U as i,H as b,R as s,S as _,W as c,Q as a,a0 as f,a1 as g,V as p}from"./vue.00f7c436.js";import"./sentry.09480738.js";const T="#efc005",v={name:"TmlSnackbarContainer",components:{TmlAnchor:x},inject:["theme"],data(){return{faTimes:I.faTimes}},computed:{currentItem(){return this.$store.state.dialogs.snackbars.currentItem},error(){return this.currentItem.type==="error"},warning(){return this.currentItem.type==="warning"},backgroundColor(){return this.error||this.warning?this.theme().get("page.background.color"):this.theme().get("text.color")},textColor(){return this.error?this.theme().get("error.color"):this.warning?T:this.theme().get("page.background.color")},actionTextColor(){if(this.error)return this.textColor;const r=this.theme().get("primary.color");return y.isReadable(this.backgroundColor,r,{level:"AAA",size:"large"})?r:this.textColor}},methods:{performCustomAction(r,n){r.action.call(this,n),this.$dialogs.close()},dismissSnackbar(){this.$dialogs.close()}}},w={key:0,class:"tml-snack-bar-container flex justify-center fixed inset-x-0 top-0 pointer-events-none"},S={class:"flex items-center"},A=["innerHTML"],z={key:2,class:"message"};function B(r,n,E,L,k,e){const l=d("font-awesome-icon"),u=d("tml-anchor");return r.$store.state.dialogs?(t(),o("div",w,[h(p,{name:"snack"},{default:i(()=>[e.currentItem?(t(),o("div",{key:e.currentItem.message,class:b(["tml-snack-bar m-4 px-5 py-3 pointer-events-auto",e.currentItem.type]),style:s({backgroundColor:e.backgroundColor,color:e.textColor,"--snackbar-text-color":e.textColor})},[_("div",S,[e.currentItem.icon?(t(),c(l,{key:0,icon:e.currentItem.icon},null,8,["icon"])):a("",!0),e.currentItem.html?(t(),o("span",{key:1,class:"message html",style:s({color:e.textColor}),innerHTML:e.currentItem.message},null,12,A)):(t(),o("span",z,f(e.currentItem.message),1)),e.currentItem.action&&e.currentItem.actionText?(t(),c(u,{key:3,class:"sm:ml-11 ml-5 grow-1 whitespace-nowrap",href:"#",style:s({color:e.actionTextColor}),onClick:n[0]||(n[0]=g(m=>e.performCustomAction(e.currentItem,m),["prevent"]))},{default:i(()=>[_("strong",null,f(e.currentItem.actionText),1),e.currentItem.actionIcon?(t(),c(l,{key:0,class:"ml-2",icon:e.currentItem.actionIcon},null,8,["icon"])):a("",!0)]),_:1},8,["style"])):a("",!0),e.currentItem.dismissable?(t(),c(u,{key:4,class:"sm:ml-11 ml-5",style:s({color:e.textColor,fontSize:"1.25rem"}),onClick:n[1]||(n[1]=g(m=>e.dismissSnackbar(e.currentItem,m),["prevent"]))},{default:i(()=>[h(l,{icon:k.faTimes},null,8,["icon"])]),_:1},8,["style"])):a("",!0)])],6)):a("",!0)]),_:1})])):a("",!0)}const j=C(v,[["render",B],["__scopeId","data-v-e53859ea"]]);export{j as default};
2//# sourceMappingURL=TmlSnackbarContainer.bd58f6bc.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.