<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["wbk"],{"0b47":function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"field"},[""!==t.label?e("label",{staticClass:"label"},[t._v(t._s(t.label))]):t._e(),e("div",{staticClass:"control has-icons-left"},[e("input",{directives:[{name:"focus",rawName:"v-focus",value:t.focus,expression:"focus"}],staticClass:"input",class:t.fieldClass,attrs:{type:"text",placeholder:t.placeHolder,disabled:t.disabled},domProps:{value:t.value},on:{input:function(e){return t.$emit("input",e.target.value)}}}),e("span",{staticClass:"icon is-small is-left"},[e("i",{class:t.icon})])])])},i=[],n=a("eecb"),l={name:"ControlText",mixins:[n["a"]],props:{focus:{type:Boolean,default:!1},label:{type:String,default:""},placeHolder:{type:String,default:""},value:{type:String,default:null},icon:{type:String,default:"fas fa-pen"},disabled:{type:Boolean,default:!1},fieldClass:{type:String,default:""}}},o=l,r=a("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["a"]=c.exports},"0f5b":function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("operation-button",{attrs:{tooltip:t.tooltip,buttonStyle:t.style,icon:t.icon},on:{execute:t.exe}})},i=[],n=a("2eda"),l=a("b95e"),o={name:"EditButton",data(){return{style:l["sd"],icon:l["rd"]}},components:{OperationButton:n["a"]},props:{tooltip:{type:String}},methods:{exe(){this.$emit("edit")}}},r=o,c=a("2877"),u=Object(c["a"])(r,s,i,!1,null,null,null);e["a"]=u.exports},1208:function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",[e("operation-button",{attrs:{tooltip:t.tooltip,buttonStyle:t.style,icon:t.icon},on:{execute:t.exe}})],1)},i=[],n=a("2eda"),l=a("b95e"),o={name:"DiscardButton",components:{OperationButton:n["a"]},data(){return{tooltip:l["od"],style:l["pd"],icon:l["nd"]}},props:{isBig:{type:Boolean,default:!1}},mounted(){this.isBig&amp;&amp;(this.style=l["qd"])},methods:{exe(){this.$emit("discard")}}},r=o,c=a("2877"),u=Object(c["a"])(r,s,i,!1,null,null,null);e["a"]=u.exports},"2eda":function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("button",{class:t.buttonStyle,attrs:{"data-tooltip":t.tooltip},on:{click:t.execute}},[e("span",{staticClass:"icon"},[e("i",{class:t.icon})])])},i=[],n={name:"OperationButton",props:{tooltip:{type:String},buttonStyle:{type:String},icon:{type:String}},methods:{execute(){this.$emit("execute")}}},l=n,o=a("2877"),r=Object(o["a"])(l,s,i,!1,null,null,null);e["a"]=r.exports},"453a":function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"box"},[e("span",{staticClass:"label"},[t._v(t._s(t._f("upperCases")(t.textTitle))+" "),t._t("title"),t._t("subtitle")],2)])},i=[],n={name:"LabelBar",props:{textTitle:{type:String}},filters:{upperCases(t){return t.toUpperCase()}}},l=n,o=a("2877"),r=Object(o["a"])(l,s,i,!1,null,null,null);e["a"]=r.exports},"561f":function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"control has-icons-left",class:t.expanded?"is-expanded":""},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.userName,expression:"userName"},{name:"focus",rawName:"v-focus",value:!t.noFocus,expression:"!noFocus"}],staticClass:"input",class:t.hasName||t.userName?"":"is-danger",attrs:{type:"text",placeholder:t.placeHolder},domProps:{value:t.userName},on:{input:[function(e){e.target.composing||(t.userName=e.target.value)},t.checkName]}}),e("span",{staticClass:"icon is-small is-left"},[e("i",{class:t.icon})])]),t.hasName||t.userName||t.disableHelper?t._e():e("p",{staticClass:"help is-danger is-size-6"},[t._v(t._s(t.placeHolder)+" is required")])])},i=[],n=a("eecb"),l={data(){return{userName:"",hasName:!0}},mixins:[n["a"]],props:{noFocus:{type:Boolean,default:!1},name:{type:String,default:""},icon:{type:String,default:"fas fa-user"},placeHolder:{type:String,default:"Username"},expanded:{type:Boolean,default:!1},disableHelper:{type:Boolean,default:!1}},mounted(){this.userName=this.name},methods:{checkName(){this.userName?this.hasName=!0:this.hasName=!1,this.$emit("checkName",this.userName)}}},o=l,r=a("2877"),c=Object(r["a"])(o,s,i,!1,null,null,null);e["a"]=c.exports},8142:function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"control mb-4"},[e("left-buttons",{attrs:{buttons:t.backButton}})],1)},i=[],n=a("bd78"),l=a("b95e"),o={name:"BackPageButton",components:{LeftButtons:n["a"]},props:{pathName:{type:String},params:{type:Object}},computed:{backButton(){return[{text:l["ze"],icon:l["xe"],style:l["ye"],pathName:this.pathName,params:this.params}]}}},r=o,c=a("2877"),u=Object(c["a"])(r,s,i,!1,null,null,null);e["a"]=u.exports},"855a":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"container"},[e("transition",{attrs:{name:"slide-fade",mode:"out-in"}},[e("router-view")],1)],1)},i=[],n={name:"WhiteBoxKeys"},l=n,o=a("2877"),r=Object(o["a"])(l,s,i,!1,null,null,null);e["default"]=r.exports},a720:function(t,e,a){"use strict";a.d(e,"d",(function(){return i})),a.d(e,"b",(function(){return n})),a.d(e,"e",(function(){return l})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return r}));var s=a("0d5e");function i(t){return Object(s["b"])({headers:{Authorization:"Bearer "+t},url:"/deliverables"})}function n(t,e){return Object(s["b"])({headers:{Authorization:"Bearer "+t},method:"POST",url:"/deliverables",data:e})}function l(t,e,a){return Object(s["b"])({headers:{Authorization:"Bearer "+t},method:"PUT",url:"/deliverables/"+e,data:a})}function o(t,e){return Object(s["b"])({headers:{Authorization:"Bearer "+t},method:"DELETE",url:"/deliverables/"+e})}class r{constructor(t=null,e=null,a=null,s=0,i=0,n=0){this.dLabel=t,this.dDesc=e,this.dJSON=a,this.cId=s,this.dtId=i,this.prdId=n}}},bbf9:function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal"},[e("div",{staticClass:"modal-background",on:{click:t.discard}}),e("div",{staticClass:"modal-content"},[e("div",{staticClass:"box"},[""===t.msg?e("p",{staticClass:"block has-text-centered is-size-4"},[t._v("Are you sure to "),e("b",[t._v("DELETE")]),t._v(" ?")]):e("p",{staticClass:"block has-text-centered is-size-4"},[t._v(t._s(t.msg))]),e("div",{staticClass:"block level"},[e("button",{staticClass:"button is-danger level-left",on:{click:t.del}},[t._v("Delete")]),e("button",{staticClass:"button is-right level-right",on:{click:t.discard}},[t._v("Discard")])])])])])},i=[],n={name:"beforeDelete",props:{msg:{type:String,default:""}},methods:{del(){this.$emit("del")},discard(){this.$emit("discard")}}},l=n,o=a("2877"),r=Object(o["a"])(l,s,i,!1,null,null,null);e["a"]=r.exports},bd78:function(t,e,a){"use strict";a("14d9");var s=function(){var t=this,e=t._self._c;return e("div",{staticClass:"buttons is-left"},t._l(t.buttons,(function(a,s){return e("a",{key:s,class:a.style,on:{click:function(e){return t.push(a.pathName,a.params)}}},[e("span",{staticClass:"icon is-small"},[e("i",{class:a.icon})]),e("span",[t._v(t._s(a.text))])])})),0)},i=[],n={name:"LeftButtons",props:{buttons:{type:Array}},methods:{push(t,e){this.$router.push({name:t,params:e})}}},l=n,o=a("2877"),r=Object(o["a"])(l,s,i,!1,null,null,null);e["a"]=r.exports},da4c:function(t,e,a){"use strict";a.d(e,"g",(function(){return i})),a.d(e,"b",(function(){return n})),a.d(e,"h",(function(){return l})),a.d(e,"d",(function(){return o})),a.d(e,"e",(function(){return r})),a.d(e,"f",(function(){return c})),a.d(e,"a",(function(){return u})),a.d(e,"c",(function(){return d}));var s=a("0d5e");function i(t){return Object(s["a"])({headers:{Authorization:"Bearer "+t},url:"/wbk"})}function n(t,e){return Object(s["a"])({headers:{Authorization:"Bearer "+t},method:"POST",url:"/wbk",data:{wbkLabel:e}})}function l(t,e,a){return Object(s["a"])({headers:{Authorization:"Bearer "+t},method:"PUT",url:"/wbk/"+e,data:{wbkLabel:a}})}function o(t,e){return Object(s["a"])({headers:{Authorization:"Bearer "+t},method:"DELETE",url:"/wbk/"+e})}function r(t,e){return Object(s["a"])({headers:{Authorization:"Bearer "+t},url:"/applicable_wbk/dId="+e})}function c(t,e){return Object(s["a"])({headers:{Authorization:"Bearer "+t},url:"/applicable_wbk/wbkId="+e})}function u(t,e){return Object(s["a"])({headers:{Authorization:"Bearer "+t},method:"POST",url:"/applicable_wbk",data:e})}function d(t,e){return Object(s["a"])({headers:{Authorization:"Bearer "+t},method:"DELETE",url:"/applicable_wbk/"+e.dId,data:{wbkId:e.wbkId}})}},dc30:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"level"},[e("div",{staticClass:"level-left"},[e("back-page-button",{attrs:{pathName:t.pathName}})],1),e("div",{staticClass:"level-right mb-4"},[e("div",{staticClass:"field-body"},[e("control-text",{attrs:{placeHolder:"WhiteBox Label",icon:t.labelIcon},model:{value:t.wbkLabel,callback:function(e){t.wbkLabel=e},expression:"wbkLabel"}}),t.labelEmpty?e("p",{staticClass:"help is-danger"},[t._v("Please enter label")]):t._e(),e("p",{staticClass:"control"},[e("a",{class:t.keyStyle,on:{click:function(e){return t.addNewWbk()}}},[e("span",{staticClass:"icon is-small"},[e("i",{class:t.keyIcon})]),e("span",[t._v("New Key")])])])],1)])]),t.error?e("div",{staticClass:"notification is-danger"},[e("button",{staticClass:"delete",on:{click:t.closeNotif}}),t._v(" "+t._s(t.error)+" ")]):t._e(),e("label-bar",{attrs:{textTitle:"Whitebox Keys"}}),t.wbkList.length&gt;=1?e("white-box-key-table",t._l(t.wbkList,(function(a){return e("white-box-key-list-item",{key:a.id,attrs:{item:a,deliverables:t.deliverables},on:{err:t.getError,updateWbk:t.updateOneWbk,delWbk:t.delWbk}})})),1):e("div",[e("div",{staticClass:"notification is-info is-light level"},[e("p",{staticClass:"content level-item is-medium"},[t._v("No Whitebox Key found")])])])],1)},i=[],n=a("453a"),l=a("8142"),o=function(){var t=this,e=t._self._c;return e("div",[e("p",{attrs:{id:"whiteBoxKey",hidden:""}},[t._v("Whitebox Keys")]),e("table",{staticClass:"table is-hoverable is-fullwidth",attrs:{"aria-describedby":"whiteBoxKey"}},[t._m(0),t._m(1),t._t("default")],2)])},r=[function(){var t=this,e=t._self._c;return e("thead",[e("tr",[e("th",{staticStyle:{width:"40%"},attrs:{scope:"col"}},[t._v("Whitebox Key ID")]),e("th",{staticStyle:{width:"25%"},attrs:{scope:"col"}},[t._v("Whitebox Key Label")]),e("th",{staticStyle:{width:"25%"},attrs:{scope:"col"}},[t._v("Deliverable")]),e("th",{staticStyle:{width:"10%"},attrs:{scope:"col"}},[t._v("Operations")])])])},function(){var t=this,e=t._self._c;return e("tfoot",[e("tr",[e("th",{attrs:{scope:"col"}},[t._v("Whitebox Key ID")]),e("th",{attrs:{scope:"col"}},[t._v("Whitebox Key Label")]),e("th",{attrs:{scope:"col"}},[t._v("Deliverable")]),e("th",{attrs:{scope:"col"}},[t._v("Operations")])])])}],c={name:"WhiteBoxKeyTable"},u=c,d=a("2877"),b=Object(d["a"])(u,o,r,!1,null,null,null),h=b.exports,p=function(){var t=this,e=t._self._c;return e("tbody",[e("tr",[e("th",{attrs:{scope:"row"}},[t._v(t._s(t.item.id))]),t.update?e("td",{staticClass:"field"},[e("control-name",{attrs:{placeHolder:t.item.label,disableHelper:"",icon:t.labelIcon},on:{checkName:t.setLabel}})],1):e("td",[t._v(t._s(t.item.label))]),e("th",{attrs:{scope:"row"}},[t._v(t._s(t.dLabel))]),e("td",[t.update?e("div",{staticClass:"buttons"},[e("check-button",{on:{check:function(e){return t.checkWbk(t.item.id)}}}),e("discard-button",{on:{discard:function(e){return t.updateWbk()}}})],1):e("div",{staticClass:"buttons"},[e("edit-button",{attrs:{tooltip:"Edit"},on:{edit:function(e){return t.updateWbk()}}}),e("delete-button",{on:{del:function(e){return t.delWbk(t.item.id)}}})],1)])])])},f=[],m=a("f28e"),v=a("f1cc"),k=a("0f5b"),y=a("561f"),_=a("1208"),x=a("b95e"),w=a("da4c"),g=a("2f62"),O=a("90b9"),B={name:"WhiteBoxKeyListItem",props:{item:{type:Object},deliverables:{type:Array,default:()=&gt;[]}},data(){return{labelIcon:x["bf"],wbks:[],wLabel:"",dLabel:"",update:!1}},computed:{...Object(g["c"])(["token"])},components:{DeleteButton:v["a"],EditButton:k["a"],CheckButton:m["a"],ControlName:y["a"],DiscardButton:_["a"]},created(){this.getD(this.item.id)},methods:{delWbk(t){this.$emit("delWbk",t)},updateWbk(){this.update=!this.update},checkWbk(t){if(""!==this.wLabel){this.updateWbk();const e=this.wLabel;this.wLabel="",this.$emit("updateWbk",e,t)}else this.$emit("err","Please enter Label before update")},setLabel(t){this.wLabel=t},getD(t){Object(w["f"])(this.token,t).then(t=&gt;{this.wbks=t}).then(()=&gt;this.wbks[0].dId).then(t=&gt;{this.dLabel=this.getDLabel(t)}).catch(t=&gt;{"Not Found"!==t.message&amp;&amp;this.$emit("err",Object(O["d"])(t))})},getDLabel(t){const e=this.deliverables.find(e=&gt;e.dId===t);return e.dLabel}}},C=B,L=Object(d["a"])(C,p,f,!1,null,null,null),j=L.exports,N=a("0b47"),W=a("a720"),S={name:"WhiteBoxKeyList",data(){return{error:"",pathName:x["Kd"],keyStyle:x["J"],keyIcon:x["dd"],labelIcon:x["bf"],wbkList:[],wbkLabel:"",deliverables:[],labelEmpty:!1}},components:{LabelBar:n["a"],WhiteBoxKeyTable:h,BackPageButton:l["a"],WhiteBoxKeyListItem:j,ControlText:N["a"]},computed:{...Object(g["c"])(["token"])},created(){this.getWbks(),this.getDeliv()},methods:{closeNotif(){this.error=""},getError(t){this.error=t},getWbks(){Object(w["g"])(this.token).then(t=&gt;{this.wbkList=t.map(t=&gt;({id:t.wbkId,label:t.wbkLabel})),this.wbkList.sort((t,e)=&gt;t.label.toLowerCase().charCodeAt(0)-e.label.toLowerCase().charCodeAt(0))}).catch(t=&gt;{"Not Found"!==t.message&amp;&amp;(this.error=Object(O["d"])(t))})},delWbk(t){Object(w["d"])(this.token,t).then(()=&gt;{this.getWbks()}).catch(t=&gt;{this.error=Object(O["d"])(t)})},addNewWbk(){""===this.wbkLabel?this.labelEmpty=!0:Object(w["b"])(this.token,this.wbkLabel).then(t=&gt;{Object(w["a"])(this.token,{dId:1,wbkId:t.wbkId}).then(()=&gt;{this.getWbks()})}).then(()=&gt;{this.labelEmpty=!1}).catch(t=&gt;{this.error=Object(O["d"])(t)})},updateOneWbk(t,e){Object(w["h"])(this.token,e,t).then(()=&gt;{this.getWbks()}).catch(t=&gt;{this.error=Object(O["d"])(t)})},getDeliv(){Object(W["d"])(this.token).then(t=&gt;{this.deliverables=t.map(t=&gt;({dId:t.dId,dLabel:t.dLabel}))}).catch(t=&gt;{this.error=Object(O["d"])(t)})}}},I=S,E=Object(d["a"])(I,s,i,!1,null,null,null);e["default"]=E.exports},eecb:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));const s={directives:{focus:{inserted(t,e){e.value&amp;&amp;t.focus()}}}}},f1cc:function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("div",[e("operation-button",{attrs:{tooltip:t.tooltip,buttonStyle:t.style,icon:t.icon},on:{execute:t.exe}}),e("before-delete",{class:t.show?"is-active":"",attrs:{msg:t.msg},on:{discard:t.close,del:t.del}})],1)},i=[],n=a("2eda"),l=a("bbf9"),o=a("b95e"),r={name:"DeleteButton",components:{OperationButton:n["a"],BeforeDelete:l["a"]},data(){return{show:!1,tooltip:o["kd"],style:o["ld"],icon:o["jd"]}},props:{isBig:{type:Boolean,default:!1},msg:{type:String,default:""}},mounted(){this.isBig&amp;&amp;(this.style=o["md"])},methods:{exe(){this.show=!0,document.documentElement.style.overflow="hidden"},close(){this.show=!1,document.documentElement.style.overflow="auto"},del(){this.show=!1,document.documentElement.style.overflow="auto",this.$emit("del")}}},c=r,u=a("2877"),d=Object(u["a"])(c,s,i,!1,null,null,null);e["a"]=d.exports},f28e:function(t,e,a){"use strict";var s=function(){var t=this,e=t._self._c;return e("operation-button",{attrs:{tooltip:t.tooltip,buttonStyle:t.style,icon:t.icon},on:{execute:t.exe}})},i=[],n=a("2eda"),l=a("b95e"),o={name:"CheckButton",data(){return{tooltip:l["hd"],style:l["id"],icon:l["gd"]}},components:{OperationButton:n["a"]},methods:{exe(){this.$emit("check")}}},r=o,c=a("2877"),u=Object(c["a"])(r,s,i,!1,null,null,null);e["a"]=u.exports}}]);
//# sourceMappingURL=wbk.8479496b.js.map</pre></body></html>