1"use strict";(self["webpackChunkconveyour_ui"]=self["webpackChunkconveyour_ui"]||[]).push([[4718,52524,85065,89932],{27014:function(t,e,o){o.r(e),o.d(e,{default:function(){return u}});var r=o(13180),s=function(){var t=this,e=t._self._c;return t.contactsCount?e("span",{staticClass:"workflow-contact-status-badge workflow__item-badge-chip workflow__item-badge-chip--left",on:{click:function(e){return e.stopPropagation(),t.openModal.apply(null,arguments)}}},[e("span",{staticClass:"workflow-contact-status-badge__chips"},[t.activeCount?e(r.A,{staticClass:"pl-2 pr-2",attrs:{small:"",color:"primary",dark:""}},[t._v(" "+t._s(t.activeCount)+" ")]):t._e(),t.stuckCount?e(r.A,{staticClass:"pl-2 pr-2",attrs:{small:"",color:"error",dark:""}},[t._v(" "+t._s(t.stuckCount)+" stuck ")]):t._e()],1),e("span",{staticClass:"workflow__item-badge-chip__tooltip workflow__item-badge-chip__tooltip--right"},[t._v(" "+t._s(t.tooltipText)+" ")]),t.isModalOpen?e(t.asyncModal,{tag:"component",attrs:{triggerName:t.triggerName,activeContactIds:t.activeContactIds,stuckContactIds:t.stuckContactIds},model:{value:t.isModalOpen,callback:function(e){t.isModalOpen=e},expression:"isModalOpen"}}):t._e()],1):t._e()},n=[],i=o(1910),a={name:"WorkflowItemContactsBadge",props:{triggerId:String,triggerName:String},data(){return{isModalOpen:!1}},computed:{...(0,i.L8)("reports",["getWorkflowTriggerContacts","getWorkflowStuckTriggerContacts"]),asyncModal(){return this.isModalOpen?()=>o.e(29701).then(o.bind(o,45747)):null},contactsCount(){return this.activeCount+this.stuckCount},activeContactIds(){return this.getWorkflowTriggerContacts(this.triggerId)},activeCount(){return this.activeContactIds.length},stuckContactIds(){return this.getWorkflowStuckTriggerContacts(this.triggerId)},stuckCount(){return this.stuckContactIds.length},tooltipText(){return this.activeCount&&this.stuckCount?"View Active / Stuck Contacts":this.stuckCount?"View Stuck Contacts":"View Contacts"}},methods:{openModal(){this.isModalOpen=!0}}},l=a,c=o(81656),d=(0,c.A)(l,s,n,!1,null,null,null),u=d.exports},38397:function(t,e,o){o.r(e),o.d(e,{default:function(){return f}});var r=o(69390),s=o(36930),n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"workflow-map-wrap"},[e("div",{staticClass:"workflow-controls pt-1"},[e("div",{staticClass:"workflow-controls__zoom"},[e(r.A,{attrs:{fab:"",dark:"","x-small":"",color:"appMain"},on:{click:function(e){return t.scaleCanvas("+")}}},[e(s.A,{attrs:{large:""}},[t._v("add")])],1),e(r.A,{staticClass:"ml-2",attrs:{fab:"",dark:"","x-small":"",color:"appMain"},on:{click:function(e){return t.scaleCanvas("-")}}},[e(s.A,{attrs:{large:""}},[t._v("remove")])],1)],1)]),e("div",{staticClass:"workflow-map",style:t.contentStyles},t._l(t.graph,function(o){return e("workflow-map-item",{key:o.id,attrs:{node:o,showContacts:t.showContacts}})}),1)])},i=[],a=(o(18111),o(20116),o(1910)),l=o(7564),c=o(24188),d={name:"WorkflowMap",components:{WorkflowMapItem:c["default"]},props:{triggerId:{},showContacts:Boolean},data(){return{scale:1}},computed:{...(0,a.L8)(["triggers"]),graph(){return this.buildGraphForTrigger()},contentStyles(){return{zoom:this.scale,MozTransform:`scale(${this.scale})`,MozTransformOrigin:"0 0"}}},methods:{scaleCanvas(t){let e=.2*("-"===t?-1:1);this.scale+=e},buildGraphForTrigger(){const t=this.triggers.find(({id:t})=>t===this.triggerId);return t?(0,l.getGraph)(this.triggers,t):""},async calculateInitialScale(){await this.$nextTick();const t=this.getElementWidth(".workflow-map"),e=this.getElementWidth(".workflow-map > div");e>t&&(this.scale=+(t/e).toFixed(2))},getElementWidth(t){const e=document.querySelector(t);return e?.offsetWidth||0}},mounted(){this.calculateInitialScale()}},u=d,g=o(81656),p=(0,g.A)(u,n,i,!1,null,null,null),f=p.exports},24188:function(t,e,o){o.r(e),o.d(e,{default:function(){return f}});var r=o(46921),s=o(36930),n=o(2756),i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"workflow__item"},[t.node.id?e("content-line",{staticClass:"trigger-item workflow__item-node",class:[{"selected-trigger":t.isNodeSelected},`trigger-item--${t.node.type}`],attrs:{text:t.node.type,selectedText:t.triggerText,icon:t.triggerDescription.icon,fontIcon:t.triggerDescription.fontIcon},scopedSlots:t._u([{key:"actions",fn:function(){return[t.isNodeSelected?e(s.A,{staticClass:"selected-trigger__icon",attrs:{color:"appMain"}},[t._v(" arrow_downward ")]):t._e(),t.showContacts?e("workflow-item-contacts-badge",{attrs:{triggerId:t.node.id,triggerName:t.triggerText}}
1):t._e()]},proxy:!0}],null,!1,3366924726)}):t._e(),t.isSubflowTrigger(t.node)?[e("div",{staticClass:"workflow-subflow"},[e("div",{staticClass:"workflow-subflow__label"},[t._v("Entry")]),t._l(t.node.nodes,function(o){return e("workflow-map-item",{key:o.id,attrs:{node:o,showContacts:t.showContacts}})})],2),(t.node.afterNodes||[]).length?e("div",{staticClass:"workflow-subflow__label workflow-subflow__label--exit"},[t._v(" Exit ")]):t._e(),t._l(t.node.afterNodes,function(o){return e("workflow-map-item",{key:`after-${o.id}`,attrs:{node:o,showContacts:t.showContacts}})})]:t.isConditionTrigger(t.node)?e(n.A,{staticClass:"workflow__row",attrs:{"no-gutters":""}},t._l(t.getConditionOptions(t.node),function(o){return e(r.A,{key:o.is,staticClass:"pa-3 pt-0 workflow__item-column"},[e("div",{staticClass:"workflow__condition",class:{"has-connector":t.nextIf(o).id,...t.classes[t.getOptionLabel(o)]}},[e("div",{staticClass:"text-ellipsis"},[t._v(" "+t._s(t.getOptionLabel(o))+" ")])]),e("workflow-map-item",{attrs:{node:t.nextIf(o),showContacts:t.showContacts}})],1)}),1):t._l(t.node.nodes,function(o){return e("workflow-map-item",{key:o.id,attrs:{node:o,showContacts:t.showContacts}})})],2)},a=[],l=(o(74423),o(18111),o(22489),o(1910)),c=o(27014),d={name:"WorkflowMapItem",components:{WorkflowItemContactsBadge:c["default"]},props:{node:{type:Object,default(){return{}}},showContacts:Boolean},data(){return{noConnector:["conditional","jump","exit"],classes:{}}},computed:{...(0,l.L8)(["triggerTypeDescription","triggers","singleTrigger"]),allNodes(){return this.triggers||[]},triggerDescription(){return this.triggerTypeDescription(this.node.type)||{}},triggerText(){const{type:t,name:e,description:o,wf_next_trigger:r}=this.node||{};if("jump"===t){const t=this.singleTrigger(r);return"To "+t?.name}return e||o},selectedTriggerId(){return"campaign-trigger-edit"===this.$route.name?this.$route.params.id:""},isNodeSelected(){return this.node.id===this.selectedTriggerId}},methods:{isSubflowTrigger({type:t}){return"subflow"===t},isConditionTrigger({type:t}){return["conditional","wait"].includes(t)},getOptionLabel(t){return t.is},hasConnector(t){return t.id&&-1===this.noConnector.indexOf(t.type)},nextIf(t){let e=this.node.nodes.filter(e=>e.wf_if===t.is);return e.shift()||{}},getConditionOptions(t){return t.conditions?t.conditions:[!1,!0]}}},u=d,g=o(81656),p=(0,g.A)(u,i,a,!1,null,"226d8d53",null),f=p.exports},90688:function(t,e,o){o.r(e),o.d(e,{default:function(){return u}});var r=function(){var t=this,e=t._self._c;return e("div",[t.campaignId?[t.triggersLoaded?t.workflowRootTriggerId?e("workflow-map",{staticClass:"pt-0",attrs:{"trigger-id":t.workflowRootTriggerId,showContacts:""}}):t._e():e("div",{staticClass:"spinner-wrap pa-5"},[e("spinner")],1)]:e("div",{staticClass:"placeholder-text--wrap"},[e("h4",{staticClass:"appMain--text"},[t._v("No campaign selected")])])],2)},s=[],n=o(38397),i=o(1910),a={name:"ReportWorkflow",props:{report:Object,filters:{},resources:{}},components:{WorkflowMap:n["default"]},data(){return{}},computed:{...(0,i.L8)(["workflowRootTriggerId","triggersLoaded"]),campaignId(){return this.filters?.campaign_id}},watch:{campaignId:{immediate:!0,handler(){this.loadResources()}}},methods:{...(0,i.i0)(["loadTriggers"]),loadResources(){this.campaignId&&this.loadTriggers(this.campaignId)}}},l=a,c=o(81656),d=(0,c.A)(l,r,s,!1,null,null,null),u=d.exports}}]); 2//# sourceMappingURL=view-reports-components-ReportWorkflow-vue.11ab0e9a.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.