{"version":3,"sources":["https://lively-kernel.org/lively4/lively4-xray/src/components/halo/lively-halo-vivide-outport-item.js"],"names":["lively","nodes","events","pt","HaloItem","Preferences","Snapping","Grid","HaloVivideOutportItem","updateTarget","view","tagName","_view","onClick","evt","HaloService","hideHalos","openInspector","clientX","clientY"],"mappings":";;;;;;AAAOA,Y;;AACKC,W;;AACAC,Y;;AACJC,Q,wBAAAA,E;;AACDC,c;;AACAC,iB;;AACAC,c;AACCC,U,+BAAAA,I;;;;;;;;;;;AAPDP,iD;;;;;;;;;;;;;AACKC,gD;;;;;;;;;;;;;AACAC,iD;;;;;;;;;;;;;AACJC,6C;;;;;;;;;;;;;AACDC,mD;;;;;;;;;;;;;AACAC,sD;;;;;;;;;;;;;AACAC,mD;;;;;;;;;;;;;AACCC,+C;;;;;;;AAEO,YAAMC,qBAAN,SAAoCJ,QAApC,CAA6C;;AAE1DK,qBAAaC,IAAb,EAAmB;AACjB,cAAGA,QAAQA,KAAKC,OAAL,KAAiB,aAA5B,EAA2C;AACzC,iBAAKC,KAAL,GAAaF,IAAb;AACD;AACF;;AAEDG,gBAAQC,GAAR,EAAa;AACX,cAAG,KAAKF,KAAR,EAAe;AACbG,wBAAYC,SAAZ;AACAhB,mBAAOiB,aAAP,CAAqB,QAArB,EAA+Bd,GAAGW,IAAII,OAAP,EAAgBJ,IAAIK,OAApB,CAA/B;AACD;AACF;AAbyD;;yBAAvCX,qB;;;;;;;;6BAAAA,sD","file":"lively-halo-vivide-outport-item.js","sourcesContent":["import lively from 'src/client/lively.js'\nimport * as nodes from 'src/client/morphic/node-helpers.js';\nimport * as events from 'src/client/morphic/event-helpers.js';\nimport {pt} from 'src/client/graphics.js'\nimport HaloItem from 'src/components/halo/lively-halo-item.js';\nimport Preferences from 'src/client/preferences.js'; \nimport Snapping from \"src/client/morphic/snapping.js\"\nimport {Grid} from 'src/client/morphic/snapping.js';\n\nexport default class HaloVivideOutportItem extends HaloItem {\n\n  updateTarget(view) {\n    if(view && view.tagName === 'VIVIDE-VIEW') {\n      this._view = view;\n    }\n  }\n  \n  onClick(evt) {\n    if(this._view) {\n      HaloService.hideHalos();\n      lively.openInspector('WOOHOO', pt(evt.clientX, evt.clientY));\n    }\n  }\n}\n"]}