1"use strict";(self["webpackChunkcyrisk"]=self["webpackChunkcyrisk"]||[]).push([[4850],{24850:function(e,t,a){a.r(t),a.d(t,{default:function(){return Q}});var n=a(96913);const l={class:"card h-100"};function o(e,t,a,o,r,i){const d=(0,n.resolveComponent)("rules-update-panel");return(0,n.openBlock)(),(0,n.createElementBlock)("div",{id:"rule-updates",class:"p-4",style:(0,n.normalizeStyle)({height:i.getLowerContentHeight})},[(0,n.createElementVNode)("div",l,[t[0]||(t[0]=(0,n.createElementVNode)("h1",{class:"text-left mb-3"},[(0,n.createElementVNode)("i",{class:"fa fa-puzzle-piece"}),(0,n.createTextVNode)(" Rule Updates ")],-1)),(0,n.createVNode)(d)])],4)}a(74423),a(44114);const r={id:"update-panel"},i={class:"option-drawer"},d={class:"drawer-content"},s=["open"],c={key:0,class:"extra"},u={class:"option-drawer"},p={class:"drawer-content"},m=["open"],f={key:0,class:"extra"},h={class:"option-drawer"},g={class:"drawer-content"},V=["open"],N={key:0,class:"extra"},v={class:"option-drawer"},E={class:"drawer-content"},b=["open"],k={key:0,class:"extra"},x={class:"option-drawer"},w={class:"drawer-content"},C=["open"],y=["open"],_={class:"description"},B={key:0},T={key:1},R={key:0,class:"extra"},I={key:0},D={key:1},P={key:0,class:"mt-1"},U={key:1,class:"mt-1"},A={id:"nuke-input",class:"mt-2"},S=["disabled"],$={id:"indication"},H={class:"font-weight-bold font-italic"},O={id:"nuke-input",class:"mt-2"},q=["disabled"];function z(e,t,a,l,o,z){const L=(0,n.resolveComponent)("dx-required-rule"),W=(0,n.resolveComponent)("dx-string-length-rule"),F=(0,n.resolveComponent)("DxCompareRule"),Y=(0,n.resolveComponent)("dx-validator"),j=(0,n.resolveComponent)("dx-text-box"),Z=(0,n.resolveComponent)("dx-popup");return(0,n.openBlock)(),(0,n.createElementBlock)("div",r,[(0,n.createElementVNode)("div",i,[(0,n.createElementVNode)("div",d,[(0,n.createElementVNode)("div",{class:"main",id:"update-drawer",name:"update-drawer","aria-label":"update-drawer",role:"button",onClick:t[0]||(t[0]=e=>z.toggleExtra("update.extra"))},[(0,n.createElementVNode)("div",{class:"icon",open:o.flags.update.extra},[...t[18]||(t[18]=[(0,n.createElementVNode)("i",{class:"far fa-compass"},null,-1)])],8,s),t[19]||(t[19]=(0,n.createElementVNode)("div",{class:"description"},[(0,n.createElementVNode)("h2",null,"Update"),(0,n.createElementVNode)("p",null,"Updates the subaccount rules.")],-1))]),(0,n.createVNode)(n.Transition,{name:"fade",mode:"out-in"},{default:(0,n.withCtx)(()=>[o.flags.update.extra?((0,n.openBlock)(),(0,n.createElementBlock)("div",c,[t[20]||(t[20]=(0,n.createElementVNode)("p",null," Only perform this action if the copied rule has not been edited. Avoid deleting rules that were copied from previously deleted rules and refrain from adding new rules or restoring previously deleted rules. ",-1)),(0,n.createElementVNode)("div",{onClick:t[1]||(t[1]=e=>o.flags.update.popup=!o.flags.update.popup),id:"confirmation-button",name:"confirm-update-rules","aria-label":"confirm update rules",role:"button",class:"blank-button"}," Update Rules ")])):(0,n.createCommentVNode)("",!0)],void 0,!0),_:1})])]),(0,n.createElementVNode)("div",u,[(0,n.createElementVNode)("div",p,[(0,n.createElementVNode)("div",{class:"main",id:"delete-drawer",name:"delete-drawer","aria-label":"delete drawer",role:"button",onClick:t[2]||(t[2]=e=>z.toggleExtra("delete.extra"))},[(0,n.createElementVNode)("div",{class:"icon",open:o.flags.delete.extra},[...t[21]||(t[21]=[(0,n.createElementVNode)("i",{class:"fa fa-unlink"},null,-1)])],8,m),t[22]||(t[22]=(0,n.createElementVNode)("div",{class:"description"},[(0,n.createElementVNode)("h2",null,"Delete"),(0,n.createElementVNode)("p",null,"Removes rules.")],-1))]),(0,n.createVNode)(n.Transition,{name:"fade",mode:"out-in"},{default:(0,n.withCtx)(()=>[o.flags.delete.extra?((0,n.openBlock)(),(0,n.createElementBlock)("div",f,[t[23]||(t[23]=(0,n.createElementVNode)("p",null," This action will delete all unedited rules and then recreate them based on the current ruleset ",-1)),(0,n.createElementVNode)("div",{onClick:t[3]||(t[3]=e=>z.propagateRules("delete")),id:"confirmation-button",name:"confirm-delete-rules","aria-label":"confirm-delete-rules",role:"button",class:"blank-button"}," Delete Rules ")])):(0,n.createCommentVNode)("",!0)],void 0,!0),_:1})])]),(0,n.createElementVNode)("div",h,[(0,n.createElementVNode)("div",g,[(0,n.createElementVNode)("div",{class:"main",id:"add-drawer",name:"add-drawer","aria-label":"add drawer",role:"button",onClick:t[4]||(t[4]=e=>z.toggleExtra("add.extra"))},[(0,n.createElementVNode)("div",{class:"icon",open:o.flags.add.extra},[...t[24]||(t[24]=[(0,n.createElementVNode)("i",{class:"fas fa-link"},null,-1)])],8,V),t[25]||(t[25]=(0,n.createElementVNode)("div",{class:"description"},[(0,n.createElementVNode)("h2",null,"Add"),(0,n.createElementVNode)("p",null,"Adds new rules only.")],-1))]),(0,n.createVNode)(n.Transition,{name:"fade",mode:"out-in"},{default:(0,n.withCtx)(()=>[o.flags.add.extra?((0,n.openBlock)(),(0,n.createElementBlock)("div",N,[t[26]||(t[26]=(0,n.createElementVNode)("p",null," For any rule not edited or created by the subaccount, update & delete accordingly. Add any new rules from the rule set. ",-1)),(0,n.createElementVNode)("div",{onClick:t[5]||(t[5]=e=>z.propagateRules("add")),id:"confirmation-button",name:"confirm-ad
1d-rules","aria-label":"confirm add rules",role:"button",class:"blank-button"}," Add Rules ")])):(0,n.createCommentVNode)("",!0)],void 0,!0),_:1})])]),(0,n.createElementVNode)("div",v,[(0,n.createElementVNode)("div",E,[(0,n.createElementVNode)("div",{class:"main",id:"reset-drawer",name:"reset-drawer","aria-label":"reset drawer",role:"button",onClick:t[6]||(t[6]=e=>z.toggleExtra("reset.extra"))},[(0,n.createElementVNode)("div",{class:"icon",open:o.flags.reset.extra},[...t[27]||(t[27]=[(0,n.createElementVNode)("i",{class:"fas fa-undo"},null,-1)])],8,b),t[28]||(t[28]=(0,n.createElementVNode)("div",{class:"description"},[(0,n.createElementVNode)("h2",null,"Reset"),(0,n.createElementVNode)("p",null," Deletes all unedited rules and recreate them from the current ruleset. ")],-1))]),(0,n.createVNode)(n.Transition,{name:"fade",mode:"out-in"},{default:(0,n.withCtx)(()=>[o.flags.reset.extra?((0,n.openBlock)(),(0,n.createElementBlock)("div",k,[t[29]||(t[29]=(0,n.createElementVNode)("p",null," This action will delete all unedited rules and then recreate them based on the current ruleset ",-1)),(0,n.createElementVNode)("div",{onClick:t[7]||(t[7]=e=>o.flags.reset.popup=!o.flags.reset.popup),id:"confirmation-button",name:"confirm-reset-rules","aria-label":"confirm reset rules",role:"button",class:"blank-button"}," Reset Rules ")])):(0,n.createCommentVNode)("",!0)],void 0,!0),_:1})])]),(0,n.createElementVNode)("div",x,[(0,n.createElementVNode)("div",w,[(0,n.createElementVNode)("div",{class:"main",id:"nuclear-drawer",name:"nuclear-drawer","aria-label":"nuclear drawer",role:"button",onClick:t[8]||(t[8]=e=>z.toggleExtra("nuclear.extra"))},[(0,n.createElementVNode)("div",null,[z.rules_admin?((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:0,class:"icon",open:o.flags.nuclear.extra},[...t[30]||(t[30]=[(0,n.createElementVNode)("i",{class:"fas fa-sitemap"},null,-1)])],8,C)):((0,n.openBlock)(),(0,n.createElementBlock)("div",{key:1,class:"icon",open:o.flags.nuclear.extra},[...t[31]||(t[31]=[(0,n.createElementVNode)("i",{class:"fas fa-radiation-alt"},null,-1)])],8,y))]),(0,n.createElementVNode)("div",_,[(0,n.createElementVNode)("h2",null,(0,n.toDisplayString)(z.rules_admin?"Propagate":"Nuclear"),1),(0,n.createElementVNode)("div",null,[z.rules_admin?((0,n.openBlock)(),(0,n.createElementBlock)("p",B," Pushes Parent account ruleset to all subaccounts. ")):((0,n.openBlock)(),(0,n.createElementBlock)("p",T," Deletes all rules regardless of edit status and propagate the new rule set. "))])])]),(0,n.createVNode)(n.Transition,{name:"fade",mode:"out-in"},{default:(0,n.withCtx)(()=>[o.flags.nuclear.extra?((0,n.openBlock)(),(0,n.createElementBlock)("div",R,[(0,n.createElementVNode)("div",null,[z.rules_admin?((0,n.openBlock)(),(0,n.createElementBlock)("p",I," This will copy the administrator rules set to all other accounts in the environment, deleting those account's rules sets. This action can't be undone. ")):((0,n.openBlock)(),(0,n.createElementBlock)("p",D," This will remove all rules edited and created, this action can't be undone. "))]),(0,n.createElementVNode)("div",{onClick:t[9]||(t[9]=e=>o.flags.nuclear.popup=!o.flags.nuclear.popup),id:"nuclear-button",name:"nuclear-button","aria-label":"nuclear button",role:"button",class:"blank-button"},(0,n.toDisplayString)(z.rules_admin?"Apply Propagate":"Apply Nuclear"),1)])):(0,n.createCommentVNode)("",!0)],void 0,!0),_:1})]),(0,n.createVNode)(Z,{height:e.gPopupHeight(280),width:e.gPopupWidth(600),title:z.rules_admin?"Propagate":"Nuclear",visible:o.flags.nuclear.popup,"onUpdate:visible":t[12]||(t[12]=e=>o.flags.nuclear.popup=e),dragEnabled:!1,hideOnOutsideClick:!0},{default:(0,n.withCtx)(()=>[t[32]||(t[32]=(0,n.createElementVNode)("div",{class:"py-1 px-3"},null,-1)),(0,n.createElementVNode)("h1",null,(0,n.toDisplayString)(z.rules_admin?"Propagate":"Nuclear"),1),(0,n.createElementVNode)("div",null,[z.rules_admin?((0,n.openBlock)(),(0,n.createElementBlock)("p",P," This will remove all edited and created subaccount rules and propagate their new rule set from the administrator account. This action can't be und
1one. ")):((0,n.openBlock)(),(0,n.createElementBlock)("p",U," This will remove all rules edited and created and propagate the new ruleset, this action can't be undone. "))]),t[33]||(t[33]=(0,n.createElementVNode)("div",{id:"indication"},[(0,n.createElementVNode)("p",null,"To confirm type"),(0,n.createElementVNode)("p",{class:"font-weight-bold font-italic ml-1"},"Remove Everything!"),(0,n.createElementVNode)("p",{class:"ml-1"},"and press enter. (case sensitive)")],-1)),(0,n.createElementVNode)("div",A,[(0,n.createVNode)(j,{id:"confirmationInput1Dx","input-attr":{name:"confirmationInput1",id:"confirmationInput1","aria-label":"enter confirmationInput1"},autocomplete:"off",modelValue:o.confirmationInput,"onUpdate:modelValue":t[10]||(t[10]=e=>o.confirmationInput=e)},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(Y,null,{default:(0,n.withCtx)(()=>[(0,n.createVNode)(L,{message:"Confirmation is required"}),(0,n.createVNode)(W,{max:20,message:"Confirmation may not exceed 20 characters"}),(0,n.createVNode)(F,{comparisonTarget:z.compareString,message:"Confirmation does not match"},null,8,["comparisonTarget"])],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"]),(0,n.createElementVNode)("div",{id:"nukeit-button",name:"nukeit-button","aria-label":"nukeit button",role:"button",class:"blu-button mt-3",onClick:t[11]||(t[11]=e=>z.nukeit()),disabled:!z.compareConfirmation}," Confirm ",8,S)])],void 0,!0),_:1},8,["height","width","title","visible"]),(0,n.createVNode)(Z,{height:e.gPopupHeight(200),width:e.gPopupWidth(400),title:"Reset",visible:o.flags.reset.popup,"onUpdate:visible":t[14]||(t[14]=e=>o.flags.reset.popup=e),dragEnabled:!1,hideOnOutsideClick:!0},{default:(0,n.withCtx)(()=>[t[34]||(t[34]=(0,n.createElementVNode)("h1",null,"Reset",-1)),t[35]||(t[35]=(0,n.createElementVNode)("p",{class:"mt-1"}," This will remove all unedited rules and recreate them from the current ruleset. ",-1)),(0,n.createElementVNode)("div",{id:"confirm-reset-rules",name:"confirm-reset-rules","aria-label":"confirm reset rules",class:"blu-button mt-3",onClick:t[13]||(t[13]=e=>z.propagateRules("reset")),disabled:!1}," Confirm ")],void 0,!0),_:1},8,["height","width","visible"]),(0,n.createVNode)(Z,{height:e.gPopupHeight(280),width:e.gPopupWidth(600),title:"Update",visible:o.flags.update.popup,"onUpdate:visible":t[17]||(t[17]=e=>o.flags.update.popup=e),dragEnabled:!1,hideOnOutsideClick:!0},{default:(0,n.withCtx)(()=>[t[38]||(t[38]=(0,n.createElementVNode)("div",{class:"py-1 px-3"},null,-1)),t[39]||(t[39]=(0,n.createElementVNode)("h1",null,"Update",-1)),t[40]||(t[40]=(0,n.createElementVNode)("p",{class:"mt-1"},"This will update all current rules, be careful.",-1)),(0,n.createElementVNode)("div",$,[(0,n.createElementVNode)("p",null,[t[36]||(t[36]=(0,n.createTextVNode)(" To confirm type ",-1)),(0,n.createElementVNode)("a",H,(0,n.toDisplayString)(z.update_confirmation),1),t[37]||(t[37]=(0,n.createTextVNode)(" and press enter. (case sensitive) ",-1))])]),(0,n.createElementVNode)("div",O,[(0,n.createVNode)(j,{id:"confirmationInputDx","input-attr":{name:"confirmationInput",id:"confirmationInput","aria-label":"enter confirmationInput"},autocomplete:"off",modelValue:o.confirmationInput,"onUpdate:modelValue":t[15]||(t[15]=e=>o.confirmationInput=e)},{default:(0,n.withCtx)(()=>[(0,n.createVNode)(Y,null,{default:(0,n.withCtx)(()=>[(0,n.createVNode)(L,{message:"Confirmation is required"}),(0,n.createVNode)(W,{max:65,message:"Confirmation may not exceed 65 characters"}),(0,n.createVNode)(F,{comparisonTarget:z.compareString,message:"Confirmation does not match"},null,8,["comparisonTarget"])],void 0,!0),_:1})],void 0,!0),_:1},8,["modelValue"]),(0,n.createElementVNode)("div",{id:"confirm-update-rules",name:"confirm-update-rules","aria-label":"confirm update rules",role:"button",class:"blu-button mt-3",onClick:t[16]||(t[16]=e=>z.propagateRules("update")),disabled:!z.compareConfirmation}," Confirm ",8,q)])],void 0,!0),_:1},8,["height","width","visible"])])])}var L=a(679),W=a(22440),F=a(97043),Y={components:{DxPopup:L.jF,DxTextBox:W.HA,DxValidator:F.Z2,DxRequiredRule:F.az,DxStringLengthRule:F.Wx,DxCompareRule:F.Yu},data(){return{flags:{update:{extra:!1,popup:!1,confirmation_admin:"I acknowledge, that this will update all current rules to customers",confirmation_user:"Yes I acknowledge, that this will update all current rules"},delete:{extra:!1},add:{extra:!1},reset:{extra:!1,popup:!1},nuclear:{extra:!1,popup:!1,confirmation:"Remove Everything!"}},confirmationInput:""}},computed:{user(){return this.$store.getters.user},rules_admin(){return this.user?.rules_admin??!1},update_confirmation(){return this.rules_admin?this.flags.update.confirmation_admin:this.flags.update.confirmation_user},compareConfirmation(){return this.confirmationInput===this.compareString()}},methods:{toggleExtra(e){const t=e.split(".");this.flags[t[0]][t[1]]=!this.flags[t[0]][t[1]]},compareString(){return this.flags.nuclear.popup?this.flags.nuclear.confirmation:this.flags.update.popup?this.update_confirmation:void 0}
1,nukeit(){this.compareConfirmation&&this.propagateRules("nuclear")},async propagateRules(e){this.confirmationInput="";let t="";t=this.rules_admin?`/rules/propagation/all-accounts/${e}/`:`/rules/propagation/${e}/`,await this.$store.getters.apiClient.post(t).then(t=>{this.dialog(t.data.message),"nuclear"===e?this.flags.nuclear.popup=!1:"reset"===e?this.flags.reset.popup=!1:"update"===e&&(this.flags.update.popup=!1)}).catch(e=>{this.dialog(e.data.message)})}}},j=a(66262);const Z=(0,j.A)(Y,[["render",z],["__scopeId","data-v-92f26cce"]]);var G=Z,J=a(29668),K={components:{rulesUpdatePanel:G},computed:{getLowerContentHeight(){return this.$store.getters.lowerContentHeight?`${this.$store.getters.lowerContentHeight}px`:"auto"},user(){return this.$store.getters.user}},watch:{user:{immediate:!0,handler(e){e&&J.bL.includes(e.account_type)&&this.$router.push("/")}}}};const M=(0,j.A)(K,[["render",o],["__scopeId","data-v-31296c33"]]);var Q=M}}]);
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.