PageSourceSearch

https://cdn-cy1.conveyour.com/ui/releases/71f4abe0945f96750d958227…essonWidgets-LessonItemName-vue.78bc06b0.js

js conveyour.com collected 2026-10-01 10:39:36 UTC 1,952 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkconveyour_ui"]=self["webpackChunkconveyour_ui"]||[]).push([[25106],{67452:function(e,t,n){n.r(t),n.d(t,{default:function(){return h}});var i=n(41558),s=n(47270),a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"lesson-item-name"},[t("div",{staticClass:"content-line__text--selected"},[t(s.A,{attrs:{top:"",disabled:!e.showTooltip},scopedSlots:e._u([{key:"activator",fn:function({on:n}){return[t("span",e._g({on:{click:function(t){return t.stopPropagation(),t.preventDefault(),e.handleTextClick.apply(null,arguments)}}},n),[e._v(" "+e._s(e.itemName)+" ")])]}}])},[t("span",[e._v(e._s(e.defaultTitle))])])],1),e.showField?t("div",{staticClass:"lesson-item-name__field",on:{click:function(e){e.stopPropagation(),e.preventDefault()}}},[t(i.A,{staticClass:"no-label",nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.saveChanges.apply(null,arguments)}},model:{value:e.itemNameTemp,callback:function(t){e.itemNameTemp=t},expression:"itemNameTemp"}})],1):e._e()])},l=[],o=n(37590),u=n.n(o),r={name:"LessonItemName",props:{item:Object,defaultTitle:String,itemIndex:Number},data(){return{showField:!1,itemNameTemp:""}},computed:{itemName(){let e=this.item?.name||this.defaultTitle;return`${this.itemIndex+1}. ${e}`},showTooltip(){return!!this.item?.name}},methods:{async focusField(){let e=this.$el.querySelector("input");e&&e.focus(),this.itemNameTemp=u()(this.item?.name)},async handleTextClick(){this.showField=!0,await this.$nextTick(),this.focusField(),window.addEventListener("blur",this.saveChanges,!0)},saveChanges(){this.showField=!1,this.item.name=this.itemNameTemp,window.removeEventListener("blur",this.saveChanges,!0)}},beforeDestroy(){window.removeEventListener("blur",this.saveChanges,!0)}},m=r,c=n(81656),d=(0,c.A)(m,a,l,!1,null,null,null),h=d.exports}}]);
2//# sourceMappingURL=view-lessons-lessonWidgets-LessonItemName-vue.78bc06b0.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.