UNPKG

@letscooee/web-sdk

Version:

Engage uniquely and boost conversions with AI-powered customer journeys driven by real-time intent

3 lines (2 loc) 1.82 kB
import{Ia as a,Ja as h,N as d,P as n,Sa as p,Ta as v,Ua as w,Y as m,_a as y,ba as l,gb as D,jb as E,ka as g,la as c,ma as u,ra as r,sa as o,ta as f,xa as x,xb as k,za as b}from"./chunk-EZUOM3MU.js";function _(i,t){if(i&1&&(r(0,"li")(1,"span",2),a(2),p(3,"date"),o(),a(4,"\xA0 "),f(5,"span",3),p(6,"safeHtml"),o()),i&2){let e=t.$implicit;n(2),h(w(3,2,e.time,"hh:mm:ss a")),n(3),x("innerHTML",v(6,5,e.message),d)}}var C=class i{logs=y.required();constructor(){}shareLogs(){let t=JSON.stringify(this.logs());if(navigator.share){navigator.share({text:t});return}navigator.clipboard.writeText(t)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=m({type:i,selectors:[["cooee-debugger"]],inputs:{logs:[1,"logs"]},features:[l([k])],decls:5,vars:0,consts:[["reversed",""],[1,"btn-copy",3,"click"],[2,"color","rgb(100, 116, 139)"],[3,"innerHTML"]],template:function(e,s){e&1&&(r(0,"ol",0),c(1,_,7,7,"li",null,g),o(),r(3,"button",1),b("click",function(){return s.shareLogs()}),a(4,"Share"),o()),e&2&&(n(),u(s.logs()))},dependencies:[E,D],styles:[`:host{display:block;position:fixed;top:calc(100vh - 90px);left:10px;right:10px;width:auto;max-width:100%;min-width:calc(100vw - 20px);height:80px;background:#fff;z-index:111111111111;overflow-y:auto;font-size:13px;line-height:1.5;padding:5px;font-family:Arial,"sans-serif";font-weight:500;border:2px solid rgb(245,28,143);border-radius:6px;resize:both;-webkit-user-select:auto;user-select:auto;box-shadow:#0000001a 0 10px 15px -3px,#0000001a 0 4px 6px -4px}@media (min-width: 768px){:host{width:600px;min-width:auto}}ol{margin:0;padding:0 0 0 28px}.btn-copy{position:absolute;top:5px;right:5px;background:#f51c8f;border:none;cursor:pointer;padding:6px 8px;font-size:12px;font-weight:500;border-radius:6px;color:#fff} `],encapsulation:3})};export{C as DebuggerComponent};