PageSourceSearch

https://olympus.exatom.io/js/3801.870cfd30.js

js exatom.io collected 2026-09-24 20:04:42 UTC 5,869 bytes, 2 lines download raw bytes

1"use strict";(self["webpackChunkappwork_vue_starter"]=self["webpackChunkappwork_vue_starter"]||[]).push([[3801],{83801:function(t,e,s){s.r(e),s.d(e,{default:function(){return c}});s(18111),s(22489);var a=function(){var t=this,e=t._self._c;return e("div",[t._m(0),t._v(" "),t.$root.hasRole("admin.internal")?e("router-link",{staticClass:"btn btn-danger",attrs:{to:{name:"af-templates-add"}}},[e("i",{staticClass:"material-icons icon-create"},[t._v("control_point")]),t._v(" Add template\n  ")]):t._e(),t._v(" "),t._l(t.templateSections.filter(t=>t.templates.length),function(s){return e("div",{key:s.name,staticClass:"mt-3"},[e("h4",{staticClass:"card-title line-after p-0 pt-3 pb-3"},[t._v(t._s(s.name)+" templates")]),t._v(" "),e("div",{staticClass:"card-deck card-deck-500"},t._l(s.templates,function(s){return e("div",{key:s.id,staticClass:"card mb-4",style:{opacity:s.client_hash!==t.$root.client.client_hash&&"ACTIVE"!==s.status?.6:1}},[e("div",{staticClass:"card-body py-0"},[e("div",{staticClass:"d-flex mt-4 justify-content-between"},[e("h5",{staticClass:"card-title"},[t.canEdit?e("router-link",{staticClass:"text-body",attrs:{to:{name:"af-templates-edit",params:{id:s.id}}}},[t._v("\n                "+t._s(s.name)+"\n              ")]):[t._v("\n                "+t._s(s.name)+"\n              ")]],2),t._v(" "),e("div",{staticStyle:{"text-align":"right"}},[s.client_hash!==t.$root.client.client_hash?e("router-link",{staticClass:"btn btn-iso-create",attrs:{to:{name:"af-templates-add",query:{copy:s.id}}}},[t._v("\n                copy & configure\n              ")]):t._e(),e("br"),t._v(" "),s.client_hash!==t.$root.client.client_hash&&t.$root.hasRole("admin.internal")&&"ACTIVE"!==s.status?[e("span",{staticClass:"badge",class:t.statusColors[s.status]},[t._v(t._s(s.status))])]:t._e()],2),t._v(" "),s.client_hash===t.$root.client.client_hash?e("div",[e("span",{staticClass:"badge",class:t.statusColors[s.status]},[t._v(t._s(s.status))])]):t._e()]),t._v(" "),s.screenshots[0]&&s.screenshots[0].screenshot_uri?e("img",{staticClass:"img-fluid cursor-pointer",staticStyle:{"max-width":"452px"},attrs:{src:s.screenshots[0].screenshot_uri,title:s.name,alt:s.name},on:{click:function(e){t.showScreenshot=s.screenshots[0],t.showScreenshotModal=!0}}}):t._e(),t._v(" "),t.showScreenshot?e("b-modal",{attrs:{size:"xl","hide-footer":"",centered:""},on:{close:function(e){t.showScreenshotModal=!1,t.showScreenshot=null}},model:{value:t.showScreenshotModal,callback:function(e){t.showScreenshotModal=e},expression:"showScreenshotModal"}},[e("img",{staticClass:"img-fluid",attrs:{src:t.showScreenshot.screenshot_uri,alt:""}})]):t._e(),t._v(" "),e("div",{staticClass:"mt-3",domProps:{innerHTML:t._s(s.description)}})],1),t._v(" "),e("div",{staticClass:"card-footer"},[e("div",{staticClass:"d-flex"},[e("div",{staticClass:"flex-fill"},t._l(s.categories,function(s){return e("span",{key:s.id,staticClass:"badge badge-outline-secondary bg-light mr-1"},[t._v(t._s(s.name))])}),0),t._v(" "),s.client_hash===t.$root.client.client_hash||t.$root.hasRole("admin.internal")?e("div",{staticClass:"align-self-end text-nowrap text-big"},[t.canEdit?e("router-link",{staticClass:"text-body",class:{adminOnly:s.client_hash!==t.$root.client.client_hash},attrs:{to:{name:"af-templates-edit",params:{id:s.id}}}},[e("i",{staticClass:"cursor-pointer ion ion-md-create"})]):t._e(),t._v(" "),t.canDelete?e("i",{staticClass:"cursor-pointer ion ion-md-trash ml-2",class:{adminOnly:s.client_hash!==t.$root.client.client_hash},on:{click:function(e){return e.stopPropagation(),t.remove(s)}}}):t._e()],1):t._e()])])])}),0)])})],2)},i=[function(){var t=this,e=t._self._c;return e("div",{staticClass:"mb-4"},[e("h4",{staticClass:"font-weight-bold mb-2"},[e("span",{staticClass:"text-muted font-weight-light"},[t._v("Autofixes "),e("span",{staticClass:"material-icons md-14 arrow-east"},[t._v("east")])]),t._v(" Templates\n    ")])])}],n=(s(44114),s(7588),s(61701),s(13579),s(17642),s(58004),s(33853),s(45876),s(32475),s(15024),s(31698),{name:"AutofixTemplates",metaInfo:{title:"Autofixes - templates"},data(){return{categories:[],templates:[],statusColors:{ACTIVE:"badge-success",ARCHIVED:"badge-dark",INACTIVE:"badge-dark",NODATA:"badge-danger"},showScreenshot:null,showScreenshotModal:!1}},computed:{canDelete(){return this.$root.hasRole("admin.internal")||this.$root.hasRole("admin.company")||this.$root.hasRole("configuration.delete")},canEdit(){return this.$root.hasRole("admin.internal")||this.$root.hasRole("admin.company")||this.$root.hasRole("configuration.modify")},templateSections(){const t=[],e=new Set;if(this.$root.client){const s=this.templates.filter(t=>t.client_hash===this.$root.client.client_hash);
1s.forEach(t=>e.add(t.id)),t.push({name:this.$root.client.name,templates:s})}for(const a of this.categories){const s=this.templates.filter(t=>!t.client_hash&&(t.categories||[]).some(t=>t.id===a.id));s.forEach(t=>e.add(t.id)),t.push({name:a.name,templates:s})}const s=this.templates.filter(t=>!e.has(t.id));return t.push({name:"Shared",templates:s}),t}},methods:{async reload(){this.$root.client&&(this.templates=(await this.$api.get("/interaction-templates/autofixes",this.$root.client.client_hash)).data.map(t=>({...t,categories:t.categories||[]})).sort((t,e)=>t.name.localeCompare(e.name)))},async remove(t){await this.$bvModal.msgBoxConfirm(`Do you want to delete template "${t.name}"?`,{title:"Delete template?",okVariant:"danger",cancelVariant:"iso-link"})&&(await this.$api.delete(`/interaction-templates/${t.id}`,this.$root.client.client_hash),await this.reload())}},watch:{"$root.client":{async handler(){this.categories=this.$root.client?(await this.$api.get("/interaction-categories",this.$root.client.client_hash)).data:[],await this.reload()},immediate:!0}}}),o=n,l=s(81656),r=(0,l.A)(o,a,i,!1,null,"5836eec8",null),c=r.exports}}]);
2//# sourceMappingURL=3801.870cfd30.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.