PageSourceSearch

https://xerocraft.org/js/4830.js?id=a6db00757f4cf8fc

js xerocraft.org collected 2026-10-01 14:55:15 UTC 6,807 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4830],{94830:(t,e,a)=>{a.r(e),a.d(e,{default:()=>s});const i={name:"Trigger-Simulation",props:{triggerName:{type:String,required:!0},triggerType:{type:String,required:!0},routeTriggerTest:{type:String,required:!0},triggerConfig:{type:Object,required:!1}},data:function(){return{updatedData:[{property:"",value:""}]}},methods:{addUpdatedProperty:function(){this.updatedData.push({property:"",value:""})},updateUpdatedData:function(t){this.updatedData[t].value=""}}};const s=(0,a(14486).A)(i,(function(){var t=this,e=t._self._c;return e("div",[["timing","manual"].includes(t.triggerType)?"timing"===t.triggerType?e("div",[e("button",{staticClass:"button is-link mr-2",attrs:{type:"button"},on:{click:function(e){return t.$modal.show("simulation-selection")}}},[t._v("Run\n            Simulation\n        ")]),t._v(" "),e("modal",{attrs:{name:"simulation-selection",adaptive:!0,scrollable:!0,width:"500px","max-width":500,height:"auto"}},[e("div",{staticClass:"is-padded"},[e("button",{staticClass:"delete is-top-right has-margins-05",attrs:{type:"button","aria-label":"close simulation selection window"},on:{click:function(e){return t.$modal.hide("simulation-selection")}}}),t._v(" "),e("confirm-form",{attrs:{method:"POST",text:"This will simulate the trigger in order to test if it is working. No permanent actions will result from this test.",action:t.routeTriggerTest}},[e("div",{staticClass:"field py-3"},[e("label",{staticClass:"label",attrs:{for:"simulation_time"}},[t._v("What date & time should we simulate?")]),t._v(" "),e("p",{staticClass:"control has-icons-left"},[e("xero-datetime",{staticClass:"input",attrs:{id:"simulation_time",value:"now",name:"simulation_time"}}),t._v(" "),e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa-solid fa-clock"})])],1)]),t._v(" "),e("button",{staticClass:"button is-info",attrs:{type:"submit"}},[t._v("Run Simulation")])])],1)])],1):"manual"===t.triggerType?e("div",[e("confirm-form",{attrs:{method:"POST",text:"This will simulate the trigger in order to test if it is working. No permanent actions will result from this test.",action:t.routeTriggerTest}},[e("button",{staticClass:"button is-info",attrs:{type:"submit"}},[t._v("Run Simulation")])])],1):t._e():e("div",[e("button",{staticClass:"button is-link mr-2",attrs:{type:"button"},on:{click:function(e){return t.$modal.show("simulation-selection")}}},[t._v("Run\n            Simulation\n        ")]),t._v(" "),e("modal",{attrs:{name:"simulation-selection",adaptive:!0,scrollable:!0,width:"500px","max-width":500,height:"auto"}},[e("div",{staticClass:"is-padded"},[e("button",{staticClass:"delete is-top-right has-margins-05",attrs:{type:"button","aria-label":"close simulation selection window"},on:{click:function(e){return t.$modal.hide("simulation-selection")}}}),t._v(" "),e("confirm-form",{attrs:{method:"POST",text:"This will simulate the trigger in order to test if it is working. No permanent actions will result from this test.",action:t.routeTriggerTest}},[e("div",{staticClass:"field py-3"},[e("label",{staticClass:"label",attrs:{for:"simulation_id"}},[t._v("Which "+t._s(t.triggerName)+" should we simulate\n                            "+t._s("updated"===t.triggerType?'an "updated"':"a "+t.triggerType)+" event on?")]),t._v(" "),e("p",{staticClass:"control has-icons-left"},[e("input",{staticClass:"input",attrs:{id:"simulation_id",name:"simulation_id",type:"number",step:"1",min:"0",required:""}}),t._v(" "),e("span",{staticClass:"icon is-small is-left"},[e("i",{staticClass:"fa-solid fa-hashtag"})])]),t._v(" "),e("p",{staticClass:"help"},[t._v("\n                            Enter the database ID of the item you'd like to simulate being "+t._s(t.triggerType)+".\n                        ")])]),t._v(" "),"updated"===t.triggerType?e("div",{staticClass:"field py-3"},[e("label",[t._v("Which data should be simulated as updated?")]),t._v(" "),e("br"),t._v(" "),t._l(t.updatedData,(function(a,i){return e("div",{staticClass:"my-2"},[e("div",{staticClass:"control has-icons-left"},[e("div",{staticClass:"select"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.updatedData[i].property,expression:"updatedData[i].property"}],attrs:{name:"updatedProperty[]"},on:{change:[function(e){var a=Array.prototype.filter.call(e.target.options,
1(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(t.updatedData[i],"property",e.target.multiple?a:a[0])},function(e){return t.updateUpdatedData(i)}]}},t._l(Object.keys(t.triggerConfig.properties),(function(a){return e("option",{domProps:{value:a}},[t._v("\n                                            "+t._s(a)+"\n                                        ")])})),0)]),t._v(" "),e("div",{staticClass:"icon is-left"},[e("i",{staticClass:"fa-solid fa-list"})])]),t._v(" "),e("div",[t.updatedData[i].property&&t.triggerConfig.properties[t.updatedData[i].property].type.includes("datetime")?e("div",[e("xero-datetime",{attrs:{name:"updatedValues[]"},model:{value:t.updatedData[i].value,callback:function(e){t.$set(t.updatedData[i],"value",e)},expression:"updatedData[i].value"}})],1):t.updatedData[i].property&&t.triggerConfig.properties[t.updatedData[i].property].type.includes("date")?e("div",[e("xero-date",{attrs:{name:"updatedValues[]"},model:{value:t.updatedData[i].value,callback:function(e){t.$set(t.updatedData[i],"value",e)},expression:"updatedData[i].value"}})],1):t.updatedData[i].property&&t.triggerConfig.properties[t.updatedData[i].property].type.includes("integer")?e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.updatedData[i].value,expression:"updatedData[i].value"}],staticClass:"input",attrs:{name:"updatedValues[]",type:"number",step:"1",min:"1",placeholder:"Simulated New Value"},domProps:{value:t.updatedData[i].value},on:{input:function(e){e.target.composing||t.$set(t.updatedData[i],"value",e.target.value)}}})]):t.updatedData[i].property&&t.triggerConfig.properties[t.updatedData[i].property].type.includes("number")||t.updatedData[i].property?e("div",[e("input",{directives:[{name:"model",rawName:"v-model",value:t.updatedData[i].value,expression:"updatedData[i].value"}],staticClass:"input",attrs:{name:"updatedValues[]",type:"text",placeholder:"Simulated New Value"},domProps:{value:t.updatedData[i].value},on:{input:function(e){e.target.composing||t.$set(t.updatedData[i],"value",e.target.value)}}})]):t._e()])])})),t._v(" "),e("div",[e("button",{staticClass:"button is-small",attrs:{type:"button"},on:{click:t.addUpdatedProperty}},[t._v("Add +")])])],2):t._e(),t._v(" "),e("button",{staticClass:"button is-info",attrs:{type:"submit"}},[t._v("Run Simulation")])])],1)])],1)])}),[],!1,null,null,null).exports}}]);
2//# sourceMappingURL=4830.js.map?id=a6db00757f4cf8fc

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.