diff --git a/NearBeach/forms.py b/NearBeach/forms.py index 1a037e1f4..1a71fbf72 100644 --- a/NearBeach/forms.py +++ b/NearBeach/forms.py @@ -243,13 +243,13 @@ class Meta: fields = [ "change_task_assigned_user", "change_task_title", - "change_task_description", + # "change_task_description", "change_task_start_date", "change_task_end_date", "change_task_seconds", - "change_task_required_by", + # "change_task_required_by", "change_task_qa_user", - "is_downtime", + # "is_downtime", ] diff --git a/NearBeach/static/NearBeach/1264.min.js b/NearBeach/static/NearBeach/1264.min.js new file mode 100644 index 000000000..fe7cba8d2 --- /dev/null +++ b/NearBeach/static/NearBeach/1264.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[1264],{1264:(a,e,t)=>{t.d(e,{A:()=>$});var n=t(641);const r={key:0,class:"kanban-row"},d={key:1,class:"kanban-row"};var l=t(2124),s=t(33);const i=["id","data-level","data-column"],o=["id","data-sort-number","data-card-id"],c=(0,n.Lk)("br",null,null,-1);var u=t(9336),m=t(2321),p=t(2243),k=t(432),b=t.n(k);const h={name:"KanbanColumn",components:{draggable:b(),Icon:m.In},props:{columnId:{type:Number,default:0},levelId:{type:Number,default:0},newCardInfo:{type:Array,default:()=>[]}},data:()=>({drag:!1,priorityList:["highest","high","normal","low","lowest"]}),computed:{...(0,l.L8)({allCards:"getCards",kanbanStatus:"getKanbanStatus",openCardOnLoad:"getOpenCardOnLoad",rootUrl:"getRootUrl"}),masterList(){let a=this.allCards.filter((a=>parseInt(a.fields.kanban_column)===this.columnId&&parseInt(a.fields.kanban_level)===this.levelId));return a=a.sort(((a,e)=>a.fields.kanban_card_sort_number-e.fields.kanban_card_sort_number)),a}},mixins:[p.A],methods:{checkCardOrder(){if(0===this.masterList.length)return;const a=this.masterList.map((a=>a.fields.kanban_card_sort_number)),e=Math.min.apply(null,a),t=Math.max.apply(null,a);0===e&&t===this.masterList.length-1||(document.getElementById("sort_error").style.display="flex",this.masterList.forEach(((a,e)=>{const t=new FormData;t.set("new_card_column",this.columnId.toString()),t.set("new_card_level",this.levelId.toString()),t.set("new_card_sort_number",e.toString()),t.set("old_card_column",a.fields.kanban_column),t.set("old_card_level",a.fields.kanban_level),t.set("old_card_sort_number",a.fields.kanban_card_sort_number),t.set("card_id",a.pk),this.$store.commit({type:"updateKanbanCard",card_id:a.pk,kanban_column:this.columnId,kanban_level:this.levelId,kanban_card_sort_number:e}),this.axios.post(`${this.rootUrl}kanban_information/${a.pk}/move_card/`,t)})),document.getElementById("sort_error").style.display="")},doubleClickCard(a){const e=this.masterList.filter((e=>e.pk===a.target.dataset.cardId))[0];this.sendDataUpstream(e)},isLinkedObject(a){let e="";return null!==a.fields.project&&(e="project"),null!==a.fields.requirement&&(e="requirement"),null!==a.fields.task&&(e="task"),e},sendDataUpstream(a){const e=this.isLinkedObject(a);if(e.length>0){const t=`${this.rootUrl}${e}_information/${a.fields[e]}/`;window.open(t,"_blank").focus()}else this.$store.dispatch({type:"updateCard",cardId:a.pk,cardTitle:a.fields.kanban_card_text,cardDescription:a.fields.kanban_card_description,cardColumn:a.fields.kanban_column,cardLevel:a.fields.kanban_level,cardLink:{},cardPriority:a.fields.kanban_card_priority}),new u.aF(document.getElementById("cardInformationModal")).show()},singleClickCard(a){const e=this.masterList.filter((e=>e.pk===a))[0];this.sendDataUpstream(e)}},watch:{newCardInfo(){this.columnId===this.newCardInfo[0].fields.kanban_column&&this.levelId===this.newCardInfo[0].fields.kanban_level&&this.masterList.push(this.newCardInfo[0])}},mounted(){this.masterList.filter((a=>{const e=a.pk===this.openCardOnLoad,t=0===this.isLinkedObject(a).length;return e&&t})).length>0&&this.singleClickCard(this.openCardOnLoad)}};var _=t(6262);const C=(0,_.A)(h,[["render",function(a,e,t,r,d,l){const u=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",{class:"list-group kanban-cell",id:`kanban_cell_${t.levelId}_${t.columnId}`,"data-level":t.levelId,"data-column":t.columnId},[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(l.masterList,(t=>((0,n.uX)(),(0,n.CE)("div",{class:"list-group-item",key:t.pk,id:t.pk,"data-sort-number":t.fields.kanban_card_sort_number,"data-card-id":t.pk,onDblclick:e[0]||(e[0]=a=>l.doubleClickCard(a))},[(0,n.Lk)("div",{class:(0,s.normalizeClass)(`card-priority-line priority-${d.priorityList[t.fields.kanban_card_priority]}`)},null,2),l.isLinkedObject(t)?((0,n.uX)(),(0,n.Wv)(u,{key:0,icon:a.icons.linkOut,"data-sort-number":t.fields.kanban_card_sort_number,"data-card-id":t.pk,class:"card-external-link"},null,8,["icon","data-sort-number","data-card-id"])):(0,n.Q3)("v-if",!0),(0,n.Lk)("b",null,"#"+(0,s.toDisplayString)(t.pk),1),c,(0,n.eW)(" "+(0,s.toDisplayString)(t.fields.kanban_card_text)+" ",1),(0,n.bF)(u,{class:"kanban-card-info-icon",icon:a.icons.infoCircle,onClick:a=>l.singleClickCard(t.pk),onDblclick:a=>l.singleClickCard(t.pk)},null,8,["icon","onClick","onDblclick"])],40,o)))),128))],8,i)}]]),f=["id","data-sort-number","data-card-id","data-card-priority"],g=["data-card-id","data-sort-number","data-card-priority"],y={key:1},v=(0,n.Lk)("br",null,null,-1),I={class:"kanban-add-new-cards"},L={name:"kanbanColumnDraggable",components:{Icon:m.In,draggable:b()},props:{columnId:{type:Number,default:0},columnProperty:{type:String,default:"Normal"},levelId:{type:Number,default:0},newCardInfo:{type:Array,default:()=>[]}},data:()=>({drag:!1,priorityList:["highest","high","normal","low","lowest"]}),computed:{...(0,l.L8)({allCards:"getCards",canDragCards:"getCanDragCards",kanbanStatus:"getKanbanStatus",levelCollapseStatus:"getLevelCollapseStatus",openCardOnLoad:"getOpenCardOnLoad",rootUrl:"getRootUrl"}),dragOptions:()=>({animation:200,group:"description",disabled:!1,ghostClass:"ghost"}),masterList(){return this.$store.getters.getCardsOrder(this.columnId,this.levelId)}},mixins:[p.A],methods:{addNewKanbanCard(){this.$store.commit({type:"updateNewCardLocation",columnId:this.columnId,levelId:this.levelId,userCanSelectLocation:!1}),new u.aF(document.getElementById("addKanbanCardModal")).show()},addNewLink(){this.$store.commit({type:"updateNewCardLocation",columnId:this.columnId,levelId:this.levelId,userCanSelectLocation:!1}),new u.aF(document.getElementById("newLinkModal")).show()},archiveCards(){this.$store.commit({type:"updateArchiveDestination",column:this.columnId,level:this.levelId})},checkCardOrder(){if(0===this.masterList.length)return;const a=this.masterList.map((a=>a.fields.kanban_card_sort_number)),e=Math.min.apply(null,a),t=Math.max.apply(null,a);if(0===e&&t===this.masterList.length-1)return;document.getElementById("sort_error").style.display="flex";const n=new FormData;this.masterList.forEach(((a,e)=>{n.append("kanban_cards",a.pk),this.$store.commit({type:"updateKanbanCard",card_id:a.pk,kanban_card_sort_number:e})})),this.axios.post(`${this.rootUrl}kanban_information/fix_card_ordering/`,n).catch((a=>{this.$store.dispatch("newToast",{header:"Failed to move card",message:`Sorry, we could not move your card. Error -> ${a}`,extra_classes:"bg-danger",delay:0})})),document.getElementById("sort_error").style.display=""},doubleClickCard(a){const e=this.masterList.filter((e=>parseInt(e.pk)===parseInt(a.target.dataset.cardId)))[0];this.sendDataUpstream(e)},isLinkedObject(a){let e="";return null!==a.fields.project&&(e="project"),null!==a.fields.requirement&&(e="requirement"),null!==a.fields.task&&(e="task"),e},async onEnd(a){await this.$store.dispatch("kanbanCardMoved",{event:a});const e=a.to,t=a.from,n=a.item.dataset.cardId;let r=e.dataset.column,d=e.dataset.level,l=(a.newIndex,t.dataset.column),s=t.dataset.level,i=(a.oldIndex,e.dataset.columnProperty);const o=new FormData;o.set("new_card_column",r),o.set("new_card_level",d),this.$store.getters.getCardsOrder(r,d).forEach((a=>{o.append("new_destination",a.pk)})),this.$store.getters.getCardsOrder(l,s).forEach((a=>{o.append("old_destination",a.pk)})),this.axios.post(`${this.rootUrl}kanban_information/${n}/move_card/`,o).then((()=>{"Blocked"===i&&(this.$store.commit({type:"updateValue",field:"cardId",value:parseInt(n)}),new u.aF(document.getElementById("blockedNotesModal")).show())})).catch((a=>{this.$store.dispatch("newToast",{header:"Can not update Card",message:`Sorry, moving the card had an error. Error -> ${a}`,extra_classes:"bg-danger",delay:0})}))},sendDataUpstream(a){const e=this.isLinkedObject(a);if(e.length>0){const t=`${this.rootUrl}${e}_information/${a.fields[e]}/`;window.open(t,"_blank").focus()}else this.$store.dispatch({type:"updateCard",cardId:a.pk,cardTitle:a.fields.kanban_card_text,cardDescription:a.fields.kanban_card_description,cardColumn:a.fields.kanban_column,cardLevel:a.fields.kanban_level,cardLink:{},cardPriority:a.fields.kanban_card_priority}),new u.aF(document.getElementById("cardInformationModal")).show()},singleClickCard(a){const e=this.masterList.filter((e=>e.pk===a))[0];this.sendDataUpstream(e)}},watch:{newCardInfo(){this.columnId===this.newCardInfo[0].fields.kanban_column&&this.levelId===this.newCardInfo[0].fields.kanban_level&&this.masterList.push(this.newCardInfo[0])}},mounted(){this.checkCardOrder(),this.masterList.filter((a=>{const e=a.pk===this.openCardOnLoad,t=0===this.isLinkedObject(a).length;return e&&t})).length>0&&this.singleClickCard(this.openCardOnLoad)}},w={name:"KanbanRow",components:{KanbanColumn:C,KanbanColumnDraggable:(0,_.A)(L,[["render",function(a,e,t,r,d,l){const i=(0,n.g2)("Icon"),o=(0,n.g2)("draggable");return a.levelCollapseStatus(t.levelId)?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.Wv)(o,{key:0,class:"list-group kanban-cell",id:`kanban_cell_${t.levelId}_${t.columnId}`,"data-level":t.levelId,"data-column":t.columnId,"data-column-property":t.columnProperty,animation:200,disabled:"Closed"===a.kanbanStatus||!a.canDragCards,group:"tasks","ghost-class":"ghost",onEnd:e[4]||(e[4]=a=>l.onEnd(a)),modelValue:l.masterList,"onUpdate:modelValue":e[5]||(e[5]=a=>l.masterList=a),"item-key":"pk"},(0,n.eX)({item:(0,n.k6)((({element:t})=>[((0,n.uX)(),(0,n.CE)("div",{class:"list-group-item",key:t.pk,id:t.pk,"data-sort-number":t.fields.kanban_card_sort_number,"data-card-id":t.pk,"data-card-priority":t.fields.kanban_card_priority,onDblclick:e[0]||(e[0]=a=>l.doubleClickCard(a))},[(0,n.Lk)("div",{class:(0,s.normalizeClass)(`card-priority-line priority-${d.priorityList[t.fields.kanban_card_priority]}`),"data-card-id":t.pk,"data-sort-number":t.fields.kanban_card_sort_number,"data-card-priority":t.fields.kanban_card_priority},null,10,g),l.isLinkedObject(t).length>0?((0,n.uX)(),(0,n.Wv)(i,{key:0,icon:a.icons.linkOut,"data-card-id":t.pk,"data-sort-number":t.fields.kanban_card_sort_number,"data-card-priority":t.fields.kanban_card_priority,class:"card-external-link"},null,8,["icon","data-card-id","data-sort-number","data-card-priority"])):(0,n.Q3)("v-if",!0),(0,n.Lk)("b",null,"#"+(0,s.toDisplayString)(t.pk),1),a.canDragCards?(0,n.Q3)("v-if",!0):((0,n.uX)(),(0,n.CE)("b",y," - LOCKED!")),v,(0,n.eW)(" "+(0,s.toDisplayString)(t.fields.kanban_card_text)+" ",1),(0,n.bF)(i,{class:"kanban-card-info-icon",icon:a.icons.infoCircle,onClick:a=>l.singleClickCard(t.pk),onDblclick:a=>l.singleClickCard(t.pk)},null,8,["icon","onClick","onDblclick"])],40,f))])),_:2},["Closed"!==a.kanbanStatus?{name:"footer",fn:(0,n.k6)((()=>[(0,n.Lk)("div",I,["Closed"!==t.columnProperty?((0,n.uX)(),(0,n.CE)("a",{key:0,class:"kanban-link btn btn-primary",href:"javascript:void(0)",onClick:e[1]||(e[1]=(...a)=>l.addNewKanbanCard&&l.addNewKanbanCard(...a))}," New Card ")):(0,n.Q3)("v-if",!0),"Closed"!==t.columnProperty?((0,n.uX)(),(0,n.CE)("a",{key:1,class:"kanban-link btn btn-warning",href:"javascript:void(0)",onClick:e[2]||(e[2]=(...a)=>l.addNewLink&&l.addNewLink(...a))}," Link Object ")):(0,n.Q3)("v-if",!0),l.masterList.length>0?((0,n.uX)(),(0,n.CE)("a",{key:2,class:"kanban-link btn btn-danger",href:"javascript:void(0)",onClick:e[3]||(e[3]=(...a)=>l.archiveCards&&l.archiveCards(...a))}," Archive Cards ")):(0,n.Q3)("v-if",!0)])])),key:"0"}:void 0]),1032,["id","data-level","data-column","data-column-property","disabled","modelValue"]))}]])},props:{levelId:{type:Number,default:0},newCardInfo:{type:Array,default:()=>[]}},computed:{...(0,l.L8)({columnResults:"getColumnResults",userLevel:"getUserLevel"})},methods:{doubleClickedCard(a){this.$emit("double_clicked_card",a)}}},$=(0,_.A)(w,[["render",function(a,e,t,l,s,i){const o=(0,n.g2)("kanban-column-draggable"),c=(0,n.g2)("kanban-column");return a.userLevel>1?((0,n.uX)(),(0,n.CE)("div",r,[(0,n.Q3)(" Users can edit kanban board - can drag "),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(a.columnResults,(a=>((0,n.uX)(),(0,n.Wv)(o,{key:a.pk,"level-id":t.levelId,"column-id":a.pk,"column-property":a.fields.kanban_column_property,"new-card-info":t.newCardInfo,onDouble_clicked_card:e[0]||(e[0]=a=>i.doubleClickedCard(a))},null,8,["level-id","column-id","column-property","new-card-info"])))),128))])):((0,n.uX)(),(0,n.CE)("div",d,[(0,n.Q3)(" Read Only Users "),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(a.columnResults,(a=>((0,n.uX)(),(0,n.Wv)(c,{key:a.pk,"level-id":t.levelId,"column-id":a.pk,"new-card-info":t.newCardInfo,onDouble_clicked_card:e[1]||(e[1]=a=>i.doubleClickedCard(a))},null,8,["level-id","column-id","new-card-info"])))),128))]))}]])}}]); \ No newline at end of file diff --git a/NearBeach/static/NearBeach/1264.min.js.gz b/NearBeach/static/NearBeach/1264.min.js.gz new file mode 100644 index 000000000..9965130ca Binary files /dev/null and b/NearBeach/static/NearBeach/1264.min.js.gz differ diff --git a/NearBeach/static/NearBeach/3399.min.js b/NearBeach/static/NearBeach/3399.min.js new file mode 100644 index 000000000..9e9c4704c --- /dev/null +++ b/NearBeach/static/NearBeach/3399.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[3399],{8947:(e,t,o)=>{o.d(t,{A:()=>I});var n=o(641),i=o(33);const d={class:"text-instructions"},s={key:0,class:"module-spacer"},a=[(0,n.Lk)("div",{class:"alert alert-dark"}," Sorry - there are no documents or folders uploaded. ",-1)],l={key:1,class:"document--widget"},r=(0,n.Lk)("p",{class:"text-instructions"},"Go to Parent Directory...",-1),c=["onClick"],u={class:"text-instructions"},m={key:0,class:"document--remove"},p=["href"],h={class:"text-instructions"},g={key:0,class:"document--remove"},b=(0,n.Lk)("hr",null,null,-1),k={key:2,class:"btn-group save-changes"},L={key:0,class:"btn btn-primary dropdown-toggle",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},y={class:"dropdown-menu"};var f=o(9336),v=o(2321),D=o(2243),F=o(2124);const C={name:"DocumentsModule",components:{Icon:v.In},props:{overrideDestination:{type:String,default:""},overrideLocationId:{type:Number,default:0},readOnly:{type:Boolean,default:!1}},mixins:[D.A],computed:{...(0,F.L8)({currentFolder:"getCurrentFolder",destination:"getDestination",documentFilteredList:"getDocumentFilteredList",documentObjectCount:"getDocumentObjectCount",folderFilteredList:"getFolderFilteredList",locationId:"getLocationId",userLevel:"getUserLevel",rootUrl:"getRootUrl"})},watch:{overrideLocationId(){this.getDocumentList(),this.getFolderList()}},methods:{addFolder(){const e=document.getElementById("cardInformationModalCloseButton");null!==e&&e.click(),new f.aF(document.getElementById("addFolderModal")).show()},addLink(){const e=document.getElementById("cardInformationModalCloseButton");null!==e&&e.click(),new f.aF(document.getElementById("addLinkModal")).show()},confirmFileDelete(e){this.$store.commit({type:"updateDocumentRemoveKey",documentRemoveKey:e});const t=document.getElementById("cardInformationModalCloseButton");null!==t&&t.click(),new f.aF(document.getElementById("confirmFileDeleteModal")).show()},confirmFolderDelete(e){this.$store.commit({type:"updateFolderRemoveId",folderRemoveId:e});const t=document.getElementById("cardInformationModalCloseButton");null!==t&&t.click(),new f.aF(document.getElementById("confirmFolderDeleteModal")).show()},getDestination(){return""!==this.overrideDestination?this.overrideDestination:this.destination},getDocumentList(){0!==this.getLocationId()&&this.axios.post(`${this.rootUrl}documentation/${this.getDestination()}/${this.getLocationId()}/list/files/`).then((e=>{this.$store.commit({type:"updateDocumentList",documentList:e.data})})).catch((e=>{this.$store.dispatch("newToast",{header:"Error getting Document List",message:`Can not retrieve document list. Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))},getFolderList(){0!==this.getLocationId()&&this.axios.post(`${this.rootUrl}documentation/${this.getDestination()}/${this.getLocationId()}/list/folders/`).then((e=>{this.$store.commit({type:"updateFolderList",folderList:e.data})}))},getIcon(e){if(""!==e.document_key__document_url_location&&null!==e.document_key__document_url_location)return this.icons.linkOut;const t=e.document_key__document.split(".");switch(t[t.length-1]){case"jpg":case"png":case"bmp":return this.icons.imageIcon;case"doc":case"docx":return this.icons.microsoftWord;case"xls":case"xlsx":return this.icons.microsoftExcel;case"ppt":case"pptx":return this.icons.microsoftPowerpoint;case"pdf":return this.icons.documentPdf;default:return this.icons.documentText}},getLocationId(){return""!==this.overrideDestination?this.overrideLocationId:this.locationId},goToParentDirectory(){this.$store.dispatch("goToParentDirectory",{})},shortName:e=>e.length<=50?e:`${e.substring(0,47)}...`,updateCurrentFolder(e){this.$store.commit({type:"updateCurrentFolder",currentFolder:e})},uploadDocument(){const e=document.getElementById("cardInformationModalCloseButton");null!==e&&e.click(),new f.aF(document.getElementById("uploadDocumentModal")).show()}},mounted(){this.$nextTick((()=>{this.getDocumentList(),this.getFolderList()}))}},I=(0,o(6262).A)(C,[["render",function(e,t,o,f,v,D){const F=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",null,[(0,n.Lk)("h2",null,[(0,n.bF)(F,{icon:e.icons.bxBriefcase},null,8,["icon"]),(0,n.eW)(" Documents ")]),(0,n.Lk)("p",d," The following is a folder structure of all documents uploaded to this "+(0,i.toDisplayString)(this.getDestination()),1),(0,n.Q3)(" DOCUMENT FOLDER TREE "),0===parseInt(e.documentObjectCount)?((0,n.uX)(),(0,n.CE)("div",s,a)):((0,n.uX)(),(0,n.CE)("div",l,[(0,n.Q3)(" GO TO PARENT DIRECTORY "),0!==this.currentFolder?((0,n.uX)(),(0,n.CE)("div",{key:0,onClick:t[0]||(t[0]=e=>D.goToParentDirectory()),class:"document--child"},[(0,n.bF)(F,{icon:e.icons.arrowUp,width:"80px",height:"80px"},null,8,["icon"]),r])):(0,n.Q3)("v-if",!0),(0,n.Q3)(" RENDER THE FOLDERS "),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.folderFilteredList,(t=>((0,n.uX)(),(0,n.CE)("div",{key:t.pk,class:"document--child"},[(0,n.Lk)("a",{href:"javascript:void(0)",onClick:e=>D.updateCurrentFolder(t.pk)},[(0,n.bF)(F,{icon:e.icons.folderIcon,width:"80px",height:"80px"},null,8,["icon"]),(0,n.Lk)("p",u,(0,i.toDisplayString)(D.shortName(t.fields.folder_description)),1)],8,c),(0,n.Q3)(" REMOVE FOLDER "),e.userLevel>=2?((0,n.uX)(),(0,n.CE)("div",m,[(0,n.bF)(F,{icon:e.icons.trashCan,onClick:e=>D.confirmFolderDelete(t.pk)},null,8,["icon","onClick"])])):(0,n.Q3)("v-if",!0)])))),128)),(0,n.Q3)(" RENDER THE FILES "),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.documentFilteredList,(t=>((0,n.uX)(),(0,n.CE)("div",{key:t.document_key_id,class:"document--child"},[(0,n.Lk)("a",{href:`/private/${t.document_key_id}/`,rel:"noopener noreferrer",target:"_blank"},[(0,n.bF)(F,{icon:D.getIcon(t),width:"80px",height:"80px"},null,8,["icon"]),(0,n.Lk)("p",h,(0,i.toDisplayString)(D.shortName(t.document_key__document_description)),1)],8,p),(0,n.Q3)(" REMOVE DOCUMENT "),e.userLevel>=2?((0,n.uX)(),(0,n.CE)("div",g,[(0,n.bF)(F,{icon:e.icons.trashCan,onClick:e=>D.confirmFileDelete(t.document_key_id)},null,8,["icon","onClick"])])):(0,n.Q3)("v-if",!0)])))),128))])),(0,n.Q3)(" ADD DOCUMENTS AND FOLDER BUTTON "),b,!1===o.readOnly?((0,n.uX)(),(0,n.CE)("div",k,[e.userLevel>1?((0,n.uX)(),(0,n.CE)("button",L," New Document/File ")):(0,n.Q3)("v-if",!0),(0,n.Lk)("ul",y,[(0,n.Lk)("li",null,[(0,n.Lk)("a",{class:"dropdown-item",href:"javascript:void(0)",onClick:t[1]||(t[1]=(...e)=>D.uploadDocument&&D.uploadDocument(...e))}," Upload Document ")]),(0,n.Lk)("li",null,[(0,n.Lk)("a",{class:"dropdown-item",href:"javascript:void(0)",onClick:t[2]||(t[2]=(...e)=>D.addLink&&D.addLink(...e))}," Add Link ")]),(0,n.Lk)("li",null,[(0,n.Lk)("a",{class:"dropdown-item",href:"javascript:void(0)",onClick:t[3]||(t[3]=(...e)=>D.addFolder&&D.addFolder(...e))}," Add Folder ")])])])):(0,n.Q3)("v-if",!0)])}]])},6449:(e,t,o)=>{o.d(t,{A:()=>v});var n=o(641),i=o(33);const d={key:0,class:"module-spacer"},s={class:"alert alert-dark"},a={key:1,class:"note-history"},l={class:"note-history--profile"},r=["src"],c={class:"note-history--username"},u={class:"note-history--date"},m={key:0,class:"note-history--edit-button"},p=["onClick"],h=["onClick"],g={class:"note-history--note"};var b=o(8838),k=o(9336),L=o(2124),y=o(8083);const f={name:"ListNotes",components:{editor:b.A},mixins:[y.A],props:{destination:{type:String,default:""}},computed:{...(0,L.L8)({contentCss:"getContentCss",noteList:"getNoteList",rootUrl:"getRootUrl",staticUrl:"getStaticUrl",skin:"getSkin"})},methods:{deleteNote(e){if(this.$store.dispatch({type:"updateNoteId",noteId:e}),new k.aF(document.getElementById("confirmNoteDeleteModal")).show(),"card"===this.destination){const e=document.getElementById("cardInformationModalCloseButton");void 0!==e&&e.click()}},editNote(e){if(this.$store.dispatch({type:"updateNoteId",noteId:e}),new k.aF(document.getElementById("editNoteModal")).show(),"card"===this.destination){const e=document.getElementById("cardInformationModalCloseButton");void 0!==e&&e.click()}},profilePicture(e){return null!==e&&""!==e?`${this.rootUrl}private/${e}/`:`${this.staticUrl}NearBeach/images/placeholder/people_tax.svg`}}},v=(0,o(6262).A)(f,[["render",function(e,t,o,b,k,L){const y=(0,n.g2)("editor");return(0,n.uX)(),(0,n.CE)("div",null,[(0,n.Q3)(" NOTE HISTORY "),0===e.noteList.length?((0,n.uX)(),(0,n.CE)("div",d,[(0,n.Lk)("div",s," Sorry - but there are no notes for this "+(0,i.toDisplayString)(o.destination)+". ",1)])):((0,n.uX)(),(0,n.CE)("div",a,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(e.noteList,(t=>((0,n.uX)(),(0,n.CE)("div",{class:"note-history--row",key:t.object_note_id},[(0,n.Lk)("div",l,[(0,n.Lk)("img",{src:L.profilePicture(t.profile_picture),alt:"default profile",class:"note-history--profile-picture"},null,8,r),(0,n.Lk)("div",c,(0,i.toDisplayString)(t.first_name)+" "+(0,i.toDisplayString)(t.last_name),1),(0,n.Lk)("div",u,(0,i.toDisplayString)(e.getNiceDatetime(t.date_modified)),1),"true"===t.can_edit?((0,n.uX)(),(0,n.CE)("div",m,[(0,n.Lk)("button",{type:"button",class:"btn btn-outline-secondary",onClick:e=>L.editNote(t.object_note_id)}," Edit Note ",8,p),(0,n.Lk)("button",{type:"button",class:"btn btn-outline-danger",onClick:e=>L.deleteNote(t.object_note_id)}," Delete Note ",8,h)])):(0,n.Q3)("v-if",!0)]),(0,n.Lk)("div",g,[(0,n.bF)(y,{init:{height:250,menubar:!1,plugins:["lists","image","codesample","table"],toolbar:[],skin:`${this.skin}`,content_css:`${this.contentCss}`},modelValue:t.object_note,"onUpdate:modelValue":e=>t.object_note=e,disabled:!0},null,8,["init","modelValue","onUpdate:modelValue"])])])))),128))]))])}]])},3762:(e,t,o)=>{o.d(t,{A:()=>C});var n=o(641),i=o(3751);const d={class:"modal fade",id:"addFolderModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},s={class:"modal-dialog modal-lg"},a={class:"modal-content"},l={class:"modal-header"},r=(0,n.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"addFolderCloseButton"},[(0,n.Lk)("span",{"aria-hidden":"true"})],-1),c={class:"modal-body"},u={class:"row"},m=(0,n.Lk)("div",{class:"col-md-4"},[(0,n.Lk)("strong",null,"Creating a folder"),(0,n.Lk)("p",{class:"text-instructions"},' Give the folder an appropriate name. When done, click on the "Save" button. It will be added to the current folder. ')],-1),p={class:"col-md-8"},h={class:"form-group"},g=(0,n.Lk)("label",{for:"folder_description"},"Folder Name",-1),b={class:"modal-footer"},k=(0,n.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1),L=["disabled"];var y=o(2321),f=(o(9336),o(2124)),v=o(2243),D=o(9022);const F={name:"AddFolderWizard",components:{Icon:y.In},props:{destination:{type:String,default:"/"},locationId:{type:Number,default:0}},mixins:[v.A,D.A],data:()=>({disableAddFolderButton:!0,folderDescriptionModel:""}),computed:{...(0,f.L8)({existingFolders:"getFolderFilteredList",currentFolder:"getCurrentFolder",rootUrl:"getRootUrl"})},methods:{addFolder(){const e=new FormData;e.set("folder_description",this.folderDescriptionModel),this.currentFolder>0&&e.set("parent_folder",this.currentFolder),this.axios.post(`${this.rootUrl}documentation/${this.destination}/${this.locationId}/add_folder/`,e).then((e=>{this.$store.dispatch("appendFolderList",{folderList:e.data[0]}),this.folderDescriptionModel="",document.getElementById("addFolderCloseButton").click(),this.reopenCardInformation()})).catch((e=>{this.$store.dispatch("newToast",{header:"Failed to add folder",message:`Failed to add folder. Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))}},updated(){const e=this.existingFolders.filter((e=>e.fields.folder_description===this.folderDescriptionModel));this.disableAddFolderButton=e.length>0||""===this.folderDescriptionModel||null===this.folderDescriptionModel}},C=(0,o(6262).A)(F,[["render",function(e,t,o,y,f,v){const D=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",d,[(0,n.Lk)("div",s,[(0,n.Lk)("div",a,[(0,n.Lk)("div",l,[(0,n.Lk)("h2",null,[(0,n.bF)(D,{icon:e.icons.userIcon},null,8,["icon"]),(0,n.eW)(" Add Folder Wizard ")]),r]),(0,n.Lk)("div",c,[(0,n.Lk)("div",u,[m,(0,n.Lk)("div",p,[(0,n.Lk)("div",h,[g,(0,n.bo)((0,n.Lk)("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=e=>f.folderDescriptionModel=e),class:"form-control",id:"folder_description",maxlength:"50"},null,512),[[i.vModelText,f.folderDescriptionModel]])])])])]),(0,n.Lk)("div",b,[k,(0,n.Lk)("button",{type:"button",class:"btn btn-primary",disabled:f.disableAddFolderButton,onClick:t[1]||(t[1]=(...e)=>v.addFolder&&v.addFolder(...e))}," Add Folder ",8,L)])])])])}]])},3046:(e,t,o)=>{o.d(t,{A:()=>A});var n=o(641),i=o(3751);const d={class:"modal fade",id:"addLinkModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},s={class:"modal-dialog modal-lg"},a={class:"modal-content"},l={class:"modal-header"},r=(0,n.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"addLinkCloseButton"},[(0,n.Lk)("span",{"aria-hidden":"true"})],-1),c={class:"modal-body"},u={class:"row"},m=(0,n.Lk)("div",{class:"col-md-4"},[(0,n.Lk)("strong",null,"Add Link"),(0,n.Lk)("p",{class:"text-instruction"}," Add hyperlinks to other documents and sources located in on the internet/cloud. ")],-1),p={class:"col-md-8"},h={class:"form-group"},g={for:"document_description"},b={key:0,class:"error"},k={class:"form-group"},L={for:"document_url_location"},y={class:"modal-footer"},f=(0,n.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1),v=["disabled"];var D=o(2321),F=o(2124),C=o(2243),I=o(9022),E=o(9639),x=o(3855),M=o(404);o(9336);const _={name:"AddLinkWizard",setup:()=>({v$:(0,E.Ay)()}),components:{Icon:D.In,ValidationRendering:M.A},props:{destination:{type:String,default:"/"},locationId:{type:Number,default:0}},mixins:[C.A,I.A],data:()=>({linkModel:"",disableAddButton:!0,documentDescriptionModel:"",documentUrlLocationModel:"",duplicateDescription:!1}),validations:{documentDescriptionModel:{required:x.mw},documentUrlLocationModel:{required:x.mw,url:x.OZ}},computed:{...(0,F.L8)({currentFolder:"getCurrentFolder",excludeDocuments:"getDocumentFilteredList",rootUrl:"getRootUrl"})},methods:{addLink(){const e=new FormData;e.set("document_description",this.documentDescriptionModel),e.set("document_url_location",this.documentUrlLocationModel),this.currentFolder>0&&e.set("parent_folder",this.currentFolder),this.axios.post(`${this.rootUrl}documentation/${this.destination}/${this.locationId}/add_link/`,e).then((e=>{this.$store.dispatch("appendDocumentList",{documentList:e.data[0]}),this.documentDescriptionModel="",this.documentUrlLocationModel="",document.getElementById("addLinkCloseButton").click(),this.reopenCardInformation()})).catch((e=>{this.$store.dispatch("newToast",{header:"Error Adding Link",message:`Sorry, could not add the link for you. Error - ${e}`,extra_classes:"bg-danger",delay:0})}))}},updated(){const e=this.excludeDocuments.filter((e=>e.document_key__document_description===this.documentDescriptionModel));this.duplicateDescription=e.length>0,this.v$.$touch(),this.disableAddButton=this.v$.$invalid||e.length>0}},A=(0,o(6262).A)(_,[["render",function(e,t,o,D,F,C){const I=(0,n.g2)("Icon"),E=(0,n.g2)("validation-rendering");return(0,n.uX)(),(0,n.CE)("div",d,[(0,n.Lk)("div",s,[(0,n.Lk)("div",a,[(0,n.Lk)("div",l,[(0,n.Lk)("h2",null,[(0,n.bF)(I,{icon:e.icons.userIcon},null,8,["icon"]),(0,n.eW)(" Add Link Wizard ")]),r]),(0,n.Lk)("div",c,[(0,n.Lk)("div",u,[m,(0,n.Lk)("div",p,[(0,n.Lk)("div",h,[(0,n.Lk)("label",g,[(0,n.eW)(" Document Description "),(0,n.bF)(E,{"error-list":D.v$.documentDescriptionModel.$errors},null,8,["error-list"]),F.duplicateDescription?((0,n.uX)(),(0,n.CE)("span",b," Sorry - but this is a duplicated description.")):(0,n.Q3)("v-if",!0)]),(0,n.bo)((0,n.Lk)("input",{id:"document_description","onUpdate:modelValue":t[0]||(t[0]=e=>F.documentDescriptionModel=e),class:"form-control",maxlength:"50",placeholder:"NearBeach Homepage"},null,512),[[i.vModelText,F.documentDescriptionModel]])]),(0,n.Lk)("div",k,[(0,n.Lk)("label",L,[(0,n.eW)(" Document URL "),(0,n.bF)(E,{"error-list":D.v$.documentUrlLocationModel.$errors},null,8,["error-list"])]),(0,n.bo)((0,n.Lk)("input",{id:"document_url_location","onUpdate:modelValue":t[1]||(t[1]=e=>F.documentUrlLocationModel=e),class:"form-control",placeholder:"https://nearbeach.org"},null,512),[[i.vModelText,F.documentUrlLocationModel]])])])])]),(0,n.Lk)("div",y,[f,(0,n.Lk)("button",{type:"button",class:"btn btn-primary",onClick:t[2]||(t[2]=(...e)=>C.addLink&&C.addLink(...e)),disabled:F.disableAddButton}," Add Link ",8,v)])])])])}]])},8875:(e,t,o)=>{o.d(t,{A:()=>m});var n=o(641);const i={class:"modal fade",id:"confirmFileDeleteModal",tabindex:"-1","data-bs-backdrop":"static","data-bs-keyboard":"false","aria-labelledby":"confirmFileDelete","aria-hidden":"true"},d={class:"modal-dialog"},s={class:"modal-content"},a=(0,n.Lk)("div",{class:"modal-header"},[(0,n.Lk)("h5",{class:"modal-title",id:"confirmFileDelete"}," Please confirm File Deletion "),(0,n.Q3)(" TASK INFORMATION "),(0,n.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"confirmFileDeleteButton"})],-1),l=(0,n.Lk)("div",{class:"modal-body"}," Are you sure you want to delete the file? ",-1),r={class:"modal-footer"};var c=o(2124);o(9336);const u={name:"ConfirmFileDelete",mixins:[o(9022).A],computed:{...(0,c.L8)({destination:"getDestination",documentRemoveKey:"getDocumentRemoveKey",locationId:"getLocationId",rootUrl:"getRootUrl"})},methods:{deleteFile(){if(""===this.documentRemoveKey)return;const e=this.documentRemoveKey,t=new FormData;t.set("document_key",this.documentRemoveKey),this.axios.post(`${this.rootUrl}documentation/${this.destination}/${this.locationId}/remove/`,t).then((()=>{this.$store.dispatch("removeDocument",{document_key:e}),this.closeModal()})).catch((e=>{this.$store.dispatch("newToast",{header:"Error removing file",message:`We could not remove your file. Error - ${e}`,extra_classes:"bg-danger",delay:0})})),this.closeModal()},closeModal(){this.$store.commit({type:"updateDocumentRemoveKey",documentRemoveKey:""}),document.getElementById("confirmFileDeleteButton").click(),this.reopenCardInformation()}}},m=(0,o(6262).A)(u,[["render",function(e,t,o,c,u,m){return(0,n.uX)(),(0,n.CE)("div",i,[(0,n.Lk)("div",d,[(0,n.Lk)("div",s,[a,l,(0,n.Lk)("div",r,[(0,n.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:t[0]||(t[0]=(...e)=>m.closeModal&&m.closeModal(...e))}," No "),(0,n.Lk)("button",{type:"button",class:"btn btn-primary",onClick:t[1]||(t[1]=(...e)=>m.deleteFile&&m.deleteFile(...e))}," Yes ")])])])])}]])},5319:(e,t,o)=>{o.d(t,{A:()=>y});var n=o(641);const i={class:"modal fade",id:"newNoteModal",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},d={class:"modal-dialog modal-lg",role:"document"},s={class:"modal-content"},a={class:"modal-header"},l=(0,n.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"newNoteCloseButton"},[(0,n.Lk)("span",{"aria-hidden":"true"})],-1),r={class:"modal-body"},c=(0,n.Lk)("p",{class:"text-instructions"}," Use the text editor to type out your note. Click on the submit button to submit the note. ",-1),u={class:"modal-footer"},m=["disabled"],p=(0,n.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1);var h=o(2243),g=o(2321),b=o(8838),k=o(2124);const L={name:"NewHistoryNoteWizard",components:{editor:b.A,Icon:g.In},props:{destination:{type:String,default:""},locationId:{type:Number,default:0}},mixins:[h.A],data:()=>({newNoteModel:""}),computed:{...(0,k.L8)({contentCss:"getContentCss",rootUrl:"getRootUrl",skin:"getSkin"})},methods:{submitNote(){this.$store.dispatch("newToast",{header:"Submitting new note",message:"Please wait. Submitting new note",extra_classes:"bg-warning text-dark",delay:0,unique_type:"submit_note"});const e=new FormData;e.set("destination",this.destination),e.set("location_id",`${this.locationId}`),e.set("note",this.newNoteModel);let t="add_notes";"organisation"===this.destination&&(t="organisation_add_notes"),this.axios.post(`${this.rootUrl}object_data/${this.destination}/${this.locationId}/${t}/`,e).then((e=>{this.$store.dispatch("newToast",{header:"New Note Submitted",message:"The new note submitted successfully.",extra_classes:"bg-success",unique_type:"submit_note"}),this.$store.commit({type:"addNote",newNote:e.data[0]}),this.newNoteModel="",document.getElementById("newNoteCloseButton").click()})).catch((e=>{this.$store.dispatch("newToast",{header:"Error Submitting Note",message:`Sorry, the note did not submit. Error -> ${e}`,extra_classes:"bg-danger",delay:0,unique_type:"submit_note"})}))}}},y=(0,o(6262).A)(L,[["render",function(e,t,o,h,g,b){const k=(0,n.g2)("Icon"),L=(0,n.g2)("editor");return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Q3)(" NEW HISTORY NOTE "),(0,n.Lk)("div",i,[(0,n.Lk)("div",d,[(0,n.Lk)("div",s,[(0,n.Lk)("div",a,[(0,n.Lk)("h2",null,[(0,n.bF)(k,{icon:e.icons.noteAdd},null,8,["icon"]),(0,n.eW)(" New Note ")]),l]),(0,n.Lk)("div",r,[c,(0,n.bF)(L,{init:{height:300,menubar:!1,plugins:["lists","codesample","table"],toolbar:"undo redo | blocks | bold italic strikethrough underline backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | table image codesample",skin:`${this.skin}`,content_css:`${this.contentCss}`},modelValue:g.newNoteModel,"onUpdate:modelValue":t[0]||(t[0]=e=>g.newNoteModel=e)},null,8,["init","modelValue"])]),(0,n.Lk)("div",u,[(0,n.Lk)("button",{type:"button",class:"btn btn-primary",disabled:""==g.newNoteModel,onClick:t[1]||(t[1]=(...e)=>b.submitNote&&b.submitNote(...e))}," Submit Note ",8,m),p])])])])],2112)}]])},253:(e,t,o)=>{o.d(t,{A:()=>Q});var n=o(641),i=o(33),d=o(3751);const s={class:"modal fade",id:"uploadDocumentModal","data-bs-backdrop":"static","data-bs-keyboard":"false",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},a={class:"modal-dialog modal-lg"},l={class:"modal-content"},r={class:"modal-header"},c=(0,n.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"uploadDocumentCloseButton"},[(0,n.Lk)("span",{"aria-hidden":"true"})],-1),u={class:"modal-body"},m={class:"row"},p={class:"col-md-4"},h=(0,n.Lk)("strong",null,"Uploading File",-1),g={class:"text-instructions"},b={key:0},k={key:1},L={key:2},y={class:"col-md-8"},f={key:0,class:"form-file"},v={class:"mb-3"},D={for:"document",class:"form-label"},F=(0,n.Lk)("br",null,null,-1),C={key:0,class:"alert alert-warning"},I=["accept"],E={key:1,class:"form-group"},x={class:"form-group"},M=(0,n.Lk)("label",{for:"documentDescription"},"Document Description",-1),_=(0,n.Lk)("br",null,null,-1),A={class:"form-row"},w={key:2},U={key:0,class:"alert alert-warning"},$=(0,n.Lk)("div",{class:"spinner-border text-primary",role:"status"},[(0,n.Lk)("span",{class:"sr-only"},"Loading...")],-1),N=(0,n.Lk)("div",{class:"alert alert-success"}," The document has been uploaded. The server is currently writing the file to disk. Please be patient - this modal will close automatically. Thank you ",-1),B={class:"modal-footer"},S=(0,n.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1),T=["disabled"];var R=o(2321),O=(o(9336),o(2124)),X=o(2243),P=o(9022);const W={name:"UploadDocumentWizard",components:{Icon:R.In},props:{overrideDestination:{type:String,default:""},overrideLocationId:{type:Number,default:0}},mixins:[X.A,P.A],data:()=>({disableUploadButton:!0,documentModel:[],documentDescriptionModel:"",uploadPercentage:"",maxUploadSize:0,maxUploadString:"No Upload Limit",maxUploadWarning:!1}),computed:{...(0,O.L8)({acceptedDocuments:"getAcceptedDocuments",currentFolder:"getCurrentFolder",destination:"getDestination",excludeDocuments:"getDocumentFilteredList",locationId:"getLocationId",staticUrl:"getStaticUrl",rootUrl:"getRootUrl"})},methods:{getDestination(){return""!==this.overrideDestination?this.overrideDestination:this.destination},getLocationId(){return""!==this.overrideDestination?this.overrideLocationId:this.locationId},handleFileUploads(e){e[0].size*(0!==this.maxUploadSize)>this.maxUploadSize?this.maxUploadWarning=!0:(this.maxUploadWarning=!1,this.documentModel=e[0],this.documentDescriptionModel=e[0].name)},resetForm(){this.documentModel="",this.documentDescriptionModel="",this.uploadPercentage=""},uploadFile(){const e=new FormData;e.set("document",this.documentModel,this.documentDescriptionModel),e.set("document_description",this.documentDescriptionModel),this.currentFolder>0&&e.set("parent_folder",this.currentFolder);const t={onUploadProgress:e=>{this.uploadPercentage=parseFloat(e.loaded)/parseFloat(e.total)}};this.axios.post(`${this.rootUrl}documentation/${this.getDestination()}/${this.getLocationId()}/upload/`,e,t).then((e=>{this.$store.dispatch("appendDocumentList",{documentList:e.data[0]}),document.getElementById("uploadDocumentCloseButton").click(),this.resetForm(),this.reopenCardInformation()})).catch((e=>{this.$store.dispatch("newToast",{header:"Failed to upload documentation",message:`Can not upload the documentation. ${e}`,extra_classes:"bg-danger",delay:0})}))}},watch:{maxUploadSize(){if(0===this.maxUploadSize)return"No Upload Limit";const e=Math.floor(Math.log(this.maxUploadSize)/Math.log(1024));this.maxUploadString=`Max Upload Size: ${parseFloat((this.maxUploadSize/Math.pow(1024,e)).toFixed(2))} ${["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][e]}`}},updated(){const e=this.excludeDocuments.filter((e=>e.document_key__document_description===this.documentDescriptionModel));this.disableUploadButton=""===this.documentModel||0===this.documentDescriptionModel.length||e.length>0},mounted(){this.$nextTick((()=>{this.axios.post(`${this.rootUrl}documentation/get/max_upload/`).then((e=>{this.maxUploadSize=e.data.max_upload_size})).catch((()=>{this.$store.dispatch("newToast",{header:"Failed to get the max upload size",message:`Had an issue getting data from backend. ${this.maxUploadString}`,extra_classes:"bg-danger",delay:0})}))}))}},Q=(0,o(6262).A)(W,[["render",function(e,t,o,R,O,X){const P=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",s,[(0,n.Lk)("div",a,[(0,n.Lk)("div",l,[(0,n.Lk)("div",r,[(0,n.Lk)("h2",null,[(0,n.bF)(P,{icon:e.icons.userIcon},null,8,["icon"]),(0,n.eW)(" Upload Document Wizard ")]),c]),(0,n.Lk)("div",u,[(0,n.Lk)("div",m,[(0,n.Lk)("div",p,[h,(0,n.Lk)("p",g," You will be able to upload a file against this "+(0,i.toDisplayString)(X.getDestination)+". It will appear in the current folder. ",1),0===O.documentModel.length?((0,n.uX)(),(0,n.CE)("p",b,' 1. Please click on "Upload File" button to upload a file ')):""===O.uploadPercentage?((0,n.uX)(),(0,n.CE)("p",k,' 2. Please modify the document descript to be more human readable. Or click the "Reset" button to remove the uploaded file. ')):((0,n.uX)(),(0,n.CE)("p",L," 3. Document is currently uploading. Please be patient. "))]),(0,n.Lk)("div",y,[0===O.documentModel.length?((0,n.uX)(),(0,n.CE)("div",f,[(0,n.Lk)("div",v,[(0,n.Lk)("label",D,[(0,n.eW)(" Please upload a file"),F,(0,n.eW)(" "+(0,i.toDisplayString)(O.maxUploadString)+" ",1),O.maxUploadWarning?((0,n.uX)(),(0,n.CE)("div",C," Sorry - file too large ")):(0,n.Q3)("v-if",!0)]),(0,n.Lk)("input",{type:"file",class:"form-control",id:"document",accept:e.acceptedDocuments,onChange:t[0]||(t[0]=e=>X.handleFileUploads(e.target.files))},null,40,I)])])):""==O.uploadPercentage?((0,n.uX)(),(0,n.CE)("div",E,[(0,n.Q3)(" DOCUMENT DESCRIPTION "),(0,n.Lk)("div",x,[M,(0,n.bo)((0,n.Lk)("input",{id:"documentDescription","onUpdate:modelValue":t[1]||(t[1]=e=>O.documentDescriptionModel=e),type:"text",class:"form-control"},null,512),[[d.vModelText,O.documentDescriptionModel]])]),(0,n.Q3)(" RESET FORM BUTTON "),_,(0,n.Lk)("div",A,[(0,n.Lk)("button",{onClick:t[2]||(t[2]=(...e)=>X.resetForm&&X.resetForm(...e)),class:"btn btn-warning"}," Reset Form ")])])):((0,n.uX)(),(0,n.CE)("div",w,[(0,n.Q3)(" THE UPLOAD SPINNER "),parseFloat(O.uploadPercentage).toFixed(0)<1?((0,n.uX)(),(0,n.CE)("div",U,[(0,n.eW)(" Uploading "+(0,i.toDisplayString)((100*parseFloat(O.uploadPercentage)).toFixed(2))+"% ",1),$])):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.Q3)(" THE FINAL WRITING "),N],2112))]))])])]),(0,n.Lk)("div",B,[S,(0,n.Lk)("button",{type:"button",class:"btn btn-primary",disabled:O.disableUploadButton,onClick:t[3]||(t[3]=(...e)=>X.uploadFile&&X.uploadFile(...e))}," Upload File ",8,T)])])])])}]])},404:(e,t,o)=>{o.d(t,{A:()=>s});var n=o(641),i=o(33);const d={name:"ValidationRendering",props:{errorList:{type:Array,default:()=>[]}}},s=(0,o(6262).A)(d,[["render",function(e,t,o,d,s,a){return(0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(o.errorList,(e=>((0,n.uX)(),(0,n.CE)("span",{class:"error",key:e.$uid},(0,i.toDisplayString)(e.$message),1)))),128)}]])},8083:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(6285);const i={methods:{getNiceDatetime:e=>""===e||null==e?"":n.c9.fromISO(e).toLocaleString(n.c9.DATETIME_MED),getNiceDate:e=>""===e||null==e?"":n.c9.fromISO(e).toLocaleString(n.c9.DATE_MED_WITH_WEEKDAY),disableDate(e){const t=new Date;return t.setMilliseconds(0),t.setSeconds(0),t.setHours(0),e<=t.getTime()-36e5}}}},9827:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(7413);const i={data:()=>({darkTheme:n.a}),methods:{getTheme:e=>"dark"===e?n.a:null}}},2243:(e,t,o)=>{o.d(t,{A:()=>M});var n=o(8998),i=o(102),d=o(9394),s=o(2438),a=o(9605),l=o(3438),r=o(5666),c=o(6375),u=o(1647),m=o(7066),p=o(4397),h=o(4603),g=o(7432),b=o(1758),k=o(8959),L=o(9587),y=o(9675),f=o(386),v=o(6120),D=o(8086),F=o(5617),C=o(6325),I=o(6500),E=o(5707),x=o(1511);const M={data:()=>({icons:{arrowUp:n.A,bugIcon:i.A,bxBriefcase:d.A,cardChecklist:s.A,clipboardIcon:a.A,documentPdf:l.A,documentText:r.A,folderIcon:c.A,groupPresentation:u.A,imageIcon:m.A,infoCircle:p.A,linkIcon:h.A,linkIcon2:g.A,linkOut:b.A,mailIcon:k.A,microsoftExcel:L.A,microsoftPowerpoint:y.A,microsoftWord:f.A,noteAdd:v.A,objectStorage:D.A,passwordIcon:F.A,trashCan:C.A,userIcon:I.A,usersIcon:E.A,xCircle:x.A}})}},9022:(e,t,o)=>{o.d(t,{A:()=>i});var n=o(9336);const i={methods:{reopenCardInformation(){let e=document.getElementById("cardInformationModal");null!==e&&(e=new n.aF(e),e.show()),setTimeout((()=>{const e=document.getElementsByClassName("modal-backdrop fade show");e.length>1&&e[0].remove()}),200)}}}}}]); \ No newline at end of file diff --git a/NearBeach/static/NearBeach/3399.min.js.gz b/NearBeach/static/NearBeach/3399.min.js.gz new file mode 100644 index 000000000..dc693dd9a Binary files /dev/null and b/NearBeach/static/NearBeach/3399.min.js.gz differ diff --git a/NearBeach/static/NearBeach/7171.min.js b/NearBeach/static/NearBeach/7171.min.js new file mode 100644 index 000000000..5355ed498 --- /dev/null +++ b/NearBeach/static/NearBeach/7171.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[7171],{4711:(e,t,i)=>{i.d(t,{A:()=>w});var o=i(641),s=i(33);const a=(0,o.Lk)("h2",null,"Public Links",-1),n=(0,o.Lk)("p",{class:"text-instructions"}," The following will be public links you can send to clients. The links will contain certain information of the current object. i.e. it's status and description. Becareful who you send the links too! ",-1),l={key:0,class:"alert alert-info"},d={key:1,class:"alert alert-info"},r={key:2,class:"table table-striped"},c=(0,o.Lk)("td",null,"Public Link",-1),u=(0,o.Lk)("td",{style:{"text-align":"center",width:"100px"}},"Is Active",-1),h={key:0,style:{width:"10px"}},b=["onClick"],p={style:{"text-align":"center"}},k=["checked","data-public-link-id","disabled"],g={key:0},m={class:"remove-link"},y={key:3,class:"row submit-row"},L={class:"col-md-12"};var _=i(2124),f=i(2321),v=i(2243);const $={name:"ListPublicLinks",props:{isReadOnly:{type:Boolean,default:!1},overrideDestination:{type:String,default:""},overrideLocationId:{type:Number,default:0}},data:()=>({isFetchingData:!0,publicLinkResults:[]}),watch:{overrideLocationId(){this.getPublicLinks()}},components:{Icon:f.In},computed:{...(0,_.L8)({destination:"getDestination",locationId:"getLocationId",rootUrl:"getRootUrl",userLevel:"getUserLevel"})},mixins:[v.A],methods:{async copyPublicLink(e){const t=`${window.location.origin}${this.rootUrl}public/${this.getDestination()}/${this.getLocationId()}/${e}/`;try{await navigator.clipboard.writeText(t),this.$store.dispatch("newToast",{header:"Public Link Copied",message:"Public Link has successfully copied to the clipboard",extra_classes:"bg-success"})}catch(e){this.$store.dispatch("newToast",{header:"Can not copy public link",message:"Sorry, we failed to copy the public link",extra_classes:"bg-danger",delay:0})}},createPublicLink(){this.$store.dispatch("newToast",{header:"Creating New Toast",message:"Please wait whilst we create the toast",extra_classes:"bg-warning text-dark",delay:0,unique_type:"create_public_link"}),this.axios.post(`${this.rootUrl}public_data/${this.getDestination()}/${this.getLocationId()}/create/`).then((e=>{this.$store.dispatch("newToast",{header:"Successful new Public Link",message:"We have been able to create a new public link",extra_classes:"bg-success",unique_type:"create_public_link"}),this.publicLinkResults=e.data})).catch((e=>{this.$store.dispatch("newToast",{header:"Can not create new public link",message:`Sorry, we failed to create the new public link. Error -> ${e}`,extra_classes:"bg-danger",delay:0,unique_type:"create_public_link"})}))},deletePublicLink(e){const t=new FormData;t.set("public_link_id",e),this.$store.dispatch("newToast",{header:"Deleting Public Link",message:"Deleting Public Link",extra_classes:"bg-warning text-dark",delay:0,unique_type:"public_link_delete"}),this.axios.post(`${this.rootUrl}public_data/${this.getDestination()}/${this.getLocationId()}/delete/`,t).then((()=>{this.publicLinkResults=this.publicLinkResults.filter((t=>t.public_link_id!==e)),this.$store.dispatch("newToast",{header:"Successfully Deleted Public Link",message:"Successfully Deleted Public Link",extra_classes:"bg-success",unique_type:"public_link_delete"})})).catch((e=>{this.$store.dispatch("newToast",{header:"Error Deleting Public Link",message:`Error - could not delete link. Error -> ${e}`,extra_classes:"bg-danger",delay:0,unique_type:"public_link_delete"})}))},formatUrl(e){if(""===e||void 0===e)return"Data error!";const t=e.slice(0,7);return`${window.location.origin}${this.rootUrl}public/${this.getDestination()}/${this.getLocationId()}/${t}...`},getDestination(){return""!==this.overrideDestination?this.overrideDestination:this.destination},getLocationId(){return""!==this.overrideDestination?this.overrideLocationId:this.locationId},getPublicLinks(){0!==this.getLocationId()&&this.axios(`${this.rootUrl}public_data/${this.getDestination()}/${this.getLocationId()}/get_links/`).then((e=>{this.publicLinkResults=e.data,this.isFetchingData=!1})).catch((e=>{this.$store.dispatch("newToast",{header:"Error fetching Public Links",message:`We had an issue fetching the public links for this object. Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))},updateIsActive(e){const t=e.target.dataset.publicLinkId;this.$store.dispatch("newToast",{header:"Updating Active Status for Private Link",message:"Please wait - we are updating the status",extra_classes:"bg-warning text-dark",delay:0,unique_type:`is_active-${t}`});let i="False";e.target.checked&&(i="True");const o=new FormData;o.set("public_link_id",t),o.set("public_link_is_active",i),this.axios.post(`${this.rootUrl}public_data/${this.destination}/${this.locationId}/update_link/`,o).then((()=>{this.$store.dispatch("newToast",{header:"Successfully Updated",message:"We have updated the is active status for the link",extra_classes:"bg-success",unique_type:`is_active-${t}`})})).catch((e=>{this.$store.dispatch("newToast",{header:"Error Updating Active Status for Private Link",message:`We are sorry, something went wrong. Error -> ${e}`,extra_classes:"bg-danger",delay:0,unique_type:`is_active-${t}`})}))}},mounted(){this.$nextTick((()=>{this.getPublicLinks()}))}},w=(0,i(6262).A)($,[["render",function(e,t,i,_,f,v){const $=(0,o.g2)("Icon");return(0,o.uX)(),(0,o.CE)(o.FK,null,[a,n,f.isFetchingData?((0,o.uX)(),(0,o.CE)("div",l,"Currently loading data...")):(0,o.Q3)("v-if",!0),!1===f.isFetchingData&&0===f.publicLinkResults.length?((0,o.uX)(),(0,o.CE)("div",d," Sorry. There are no public links setup for this object. ")):((0,o.uX)(),(0,o.CE)("table",r,[(0,o.Lk)("thead",null,[(0,o.Lk)("tr",null,[c,u,e.userLevel>1?((0,o.uX)(),(0,o.CE)("td",h)):(0,o.Q3)("v-if",!0)])]),(0,o.Lk)("tbody",null,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(f.publicLinkResults,(i=>((0,o.uX)(),(0,o.CE)("tr",{key:i.public_link_id},[(0,o.Lk)("td",null,[(0,o.Lk)("button",{type:"button",class:"btn btn-link",onClick:e=>v.copyPublicLink(i.public_link_id)},(0,s.toDisplayString)(v.formatUrl(i.public_link_id)),9,b)]),(0,o.Lk)("td",p,[(0,o.Lk)("input",{class:"form-check-input",type:"checkbox",checked:i.public_link_is_active,"data-public-link-id":i.public_link_id,disabled:e.userLevel<=1,onChange:t[0]||(t[0]=(...e)=>v.updateIsActive&&v.updateIsActive(...e))},null,40,k)]),e.userLevel>1?((0,o.uX)(),(0,o.CE)("td",g,[(0,o.Lk)("span",m,[(0,o.bF)($,{icon:e.icons.trashCan,onClick:e=>v.deletePublicLink(i.public_link_id)},null,8,["icon","onClick"])])])):(0,o.Q3)("v-if",!0)])))),128))])])),!1===i.isReadOnly&&e.userLevel>1?((0,o.uX)(),(0,o.CE)("div",y,[(0,o.Lk)("div",L,[(0,o.Lk)("button",{class:"btn btn-primary save-changes",onClick:t[1]||(t[1]=(...e)=>v.createPublicLink&&v.createPublicLink(...e))}," Create Public Link ")])])):(0,o.Q3)("v-if",!0)],64)}]])},2998:(e,t,i)=>{i.d(t,{A:()=>h});var o=i(641);const s={class:"modal fade",id:"confirmFolderDeleteModal",tabindex:"-1","data-bs-backdrop":"static","data-bs-keyboard":"false","aria-labelledby":"confirmFolderDelete","aria-hidden":"true"},a={class:"modal-dialog"},n={class:"modal-content"},l=(0,o.Lk)("div",{class:"modal-header"},[(0,o.Lk)("h5",{class:"modal-title",id:"confirmFolderDelete"}," Please confirm Folder Deletion "),(0,o.Q3)(" TASK INFORMATION "),(0,o.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"confirmFolderDeleteButton"})],-1),d=(0,o.Lk)("div",{class:"modal-body"}," Are you sure you want to delete the folder? All files under this folder will be deleted also. ",-1),r={class:"modal-footer"};var c=i(2124);i(9336);const u={name:"ConfirmFolderDelete",mixins:[i(9022).A],computed:{...(0,c.L8)({destination:"getDestination",folderRemoveId:"getFolderRemoveId",locationId:"getLocationId",rootUrl:"getRootUrl"})},methods:{deleteFolder(){if(""===this.folderRemoveId)return;const e=this.folderRemoveId,t=new FormData;t.set("folder_id",this.folderRemoveId),this.axios.post(`${this.rootUrl}documentation/${this.destination}/${this.locationId}/remove_folder/`,t).then((()=>{this.$store.dispatch("removeFolder",{folder_id:e}),this.closeModal()})).catch((e=>{this.$store.dispatch("newToast",{header:"Error removing folder",message:`We could not remove your folder. Error - ${e}`,extra_classes:"bg-danger",delay:0})})),this.closeModal()},closeModal(){this.$store.commit({type:"updateFolderRemoveId",documentRemoveKey:""}),document.getElementById("confirmFolderDeleteButton").click(),this.reopenCardInformation()}}},h=(0,i(6262).A)(u,[["render",function(e,t,i,c,u,h){return(0,o.uX)(),(0,o.CE)("div",s,[(0,o.Lk)("div",a,[(0,o.Lk)("div",n,[l,d,(0,o.Lk)("div",r,[(0,o.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:t[0]||(t[0]=(...e)=>h.closeModal&&h.closeModal(...e))}," No "),(0,o.Lk)("button",{type:"button",class:"btn btn-primary",onClick:t[1]||(t[1]=(...e)=>h.deleteFolder&&h.deleteFolder(...e))}," Yes ")])])])])}]])},5141:(e,t,i)=>{i.d(t,{A:()=>b});var o=i(641);const s={class:"modal fade",id:"confirmNoteDeleteModal",tabindex:"-1","data-bs-backdrop":"static","data-bs-keyboard":"false","aria-labelledby":"confirmLinkDelete","aria-hidden":"true"},a={class:"modal-dialog"},n={class:"modal-content"},l=(0,o.Lk)("div",{class:"modal-header"},[(0,o.Lk)("h5",{class:"modal-title",id:"confirmNoteDelete"}," Please confirm Note Deletion "),(0,o.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"confirmNoteDeleteButton"})],-1),d=(0,o.Lk)("div",{class:"modal-body"}," Are you sure you want to delete the note? ",-1),r={class:"modal-footer"};var c=i(2124),u=(i(9336),i(9022));const h={name:"ConfirmNoteDelete",props:{},computed:{...(0,c.L8)({destination:"getDestination",noteId:"getSingleNoteId",rootUrl:"getRootUrl"})},mixins:[u.A],methods:{deleteNote(){this.$store.dispatch("newToast",{header:"Deleting Note",message:"Currently deleting note",extra_classes:"bg-warning text-dark",delay:0,unique_type:"delete_note"});let e=`${this.rootUrl}note/delete/${this.noteId}/`;this.destination&&(e=`${this.rootUrl}note/organisation/delete/${this.noteId}/`),this.axios.post(e).then((()=>{this.$store.dispatch("newToast",{header:"Note is deleted",message:"Successfully Deleted Note",extra_classes:"bg-success",unique_type:"delete_note"}),this.$store.commit({type:"removeNote",noteId:this.noteId}),this.closeModal(),this.reopenCardInformation()})).catch((e=>{this.$store.dispatch("newToast",{header:"Failed to Delete Note",message:`Sorry, we failed to delete the note. Error -> ${e}`,extra_classes:"bg-danger",delay:0,unique_type:"delete_note"})}))},closeModal(){document.getElementById("confirmNoteDeleteButton").click(),this.reopenCardInformation()}}},b=(0,i(6262).A)(h,[["render",function(e,t,i,c,u,h){return(0,o.uX)(),(0,o.CE)("div",s,[(0,o.Lk)("div",a,[(0,o.Lk)("div",n,[l,d,(0,o.Lk)("div",r,[(0,o.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:t[0]||(t[0]=(...e)=>h.closeModal&&h.closeModal(...e))}," No "),(0,o.Lk)("button",{type:"button",class:"btn btn-primary",onClick:t[1]||(t[1]=(...e)=>h.deleteNote&&h.deleteNote(...e))}," Yes ")])])])])}]])},3798:(e,t,i)=>{i.d(t,{A:()=>L});var o=i(641);const s={class:"modal fade",id:"editNoteModal",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},a={class:"modal-dialog modal-lg",role:"document"},n={class:"modal-content"},l={class:"modal-header"},d=(0,o.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"editNoteCloseButton"},[(0,o.Lk)("span",{"aria-hidden":"true"})],-1),r={class:"modal-body"},c=(0,o.Lk)("p",{class:"text-instructions"},' Use the text editor to edit your note. Click on the "Update" button to submit the changes. ',-1),u={class:"modal-footer"},h=["disabled"];var b=i(2243),p=i(9022),k=i(2321),g=i(8838),m=i(2124);i(9336);const y={name:"EditHistoryNoteWizard",components:{editor:g.A,Icon:k.In},mixins:[b.A,p.A],data:()=>({noteModel:""}),computed:{...(0,m.L8)({description:"getSingleNoteDescription",destination:"getDestination",contentCss:"getContentCss",noteDescription:"getSingleNoteDescription",noteId:"getSingleNoteId",rootUrl:"getRootUrl",skin:"getSkin"})},watch:{noteDescription(){this.noteModel=this.noteDescription}},methods:{closeModal(){document.getElementById("editNoteCloseButton").click(),this.reopenCardInformation()},updateNote(){const e=new FormData;e.set("object_note_id",`${this.noteId}`),e.set("object_note",this.noteModel),this.$store.dispatch("newToast",{header:"Updating Note",message:"Please wait - updating your note",extra_classes:"bg-warning text-dark",delay:0,unique_type:"save_note"});let t=`${this.rootUrl}note/update/${this.noteId}/`;"organisation"===this.destination&&(t=`${this.rootUrl}note/organisation/update/${this.noteId}/`),this.axios.post(t,e).then((()=>{this.$store.dispatch("newToast",{header:"Updated Note",message:"The note updated successfully.",extra_classes:"bg-success",unique_type:"save_note"}),this.$store.dispatch({type:"editSingleNote",noteId:this.noteId,noteDescription:this.noteModel}),document.getElementById("editNoteCloseButton").click(),this.reopenCardInformation()})).catch((e=>{this.$store.dispatch("newToast",{header:"Failed Updating Note",message:`Failed to update note - Error -> ${e}`,extra_classes:"bg-danger",delay:0,unique_type:"save_note"})}))}}},L=(0,i(6262).A)(y,[["render",function(e,t,i,b,p,k){const g=(0,o.g2)("Icon"),m=(0,o.g2)("editor");return(0,o.uX)(),(0,o.CE)(o.FK,null,[(0,o.Q3)(" EDIT HISTORY NOTE "),(0,o.Lk)("div",s,[(0,o.Lk)("div",a,[(0,o.Lk)("div",n,[(0,o.Lk)("div",l,[(0,o.Lk)("h2",null,[(0,o.bF)(g,{icon:e.icons.noteAdd},null,8,["icon"]),(0,o.eW)(" Edit Note ")]),d]),(0,o.Lk)("div",r,[c,(0,o.bF)(m,{init:{height:300,menubar:!1,plugins:["lists","codesample","table"],toolbar:"undo redo | blocks | bold italic strikethrough underline backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | removeformat | table image codesample",skin:`${this.skin}`,content_css:`${this.contentCss}`},modelValue:p.noteModel,"onUpdate:modelValue":t[0]||(t[0]=e=>p.noteModel=e)},null,8,["init","modelValue"])]),(0,o.Lk)("div",u,[(0,o.Lk)("button",{type:"button",class:"btn btn-primary",disabled:""==p.noteModel,onClick:t[1]||(t[1]=(...e)=>k.updateNote&&k.updateNote(...e))}," Update Note ",8,h),(0,o.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:t[2]||(t[2]=(...e)=>k.closeModal&&k.closeModal(...e))}," Close ")])])])])],2112)}]])}}]); \ No newline at end of file diff --git a/NearBeach/static/NearBeach/7171.min.js.gz b/NearBeach/static/NearBeach/7171.min.js.gz new file mode 100644 index 000000000..df14a1a2f Binary files /dev/null and b/NearBeach/static/NearBeach/7171.min.js.gz differ diff --git a/NearBeach/static/NearBeach/NearBeach.min.js b/NearBeach/static/NearBeach/NearBeach.min.js index feb50d446..61d122cc7 100644 --- a/NearBeach/static/NearBeach/NearBeach.min.js +++ b/NearBeach/static/NearBeach/NearBeach.min.js @@ -1,2 +1,2 @@ /*! For license information please see NearBeach.min.js.LICENSE.txt */ -(()=>{"use strict";var t,e,r={6795:(t,e,r)=>{r.d(e,{A:()=>o});const o=function(t){for(var e,r=0,o=0,n=t.length;n>=4;++o,n-=4)e=1540483477*(65535&(e=255&t.charCodeAt(o)|(255&t.charCodeAt(++o))<<8|(255&t.charCodeAt(++o))<<16|(255&t.charCodeAt(++o))<<24))+(59797*(e>>>16)<<16),r=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(n){case 3:r^=(255&t.charCodeAt(o+2))<<16;case 2:r^=(255&t.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&t.charCodeAt(o)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}},8764:(t,e,r)=>{r.r(e),r.d(e,{BASE_TRANSITION:()=>l,BindingTypes:()=>wo,CAMELIZE:()=>R,CAPITALIZE:()=>L,CREATE_BLOCK:()=>d,CREATE_COMMENT:()=>u,CREATE_ELEMENT_BLOCK:()=>p,CREATE_ELEMENT_VNODE:()=>b,CREATE_SLOTS:()=>E,CREATE_STATIC:()=>g,CREATE_TEXT:()=>f,CREATE_VNODE:()=>m,CompilerDeprecationTypes:()=>Et,ConstantTypes:()=>W,DOMDirectiveTransforms:()=>qo,DOMErrorCodes:()=>Fo,DOMErrorMessages:()=>zo,DOMNodeTransforms:()=>Xo,ElementTypes:()=>q,ErrorCodes:()=>Lt,FRAGMENT:()=>n,GUARD_REACTIVE_PROPS:()=>N,IS_MEMO_SAME:()=>$,IS_REF:()=>B,KEEP_ALIVE:()=>s,MERGE_PROPS:()=>A,NORMALIZE_CLASS:()=>T,NORMALIZE_PROPS:()=>C,NORMALIZE_STYLE:()=>O,Namespaces:()=>G,NodeTypes:()=>X,OPEN_BLOCK:()=>c,POP_SCOPE_ID:()=>D,PUSH_SCOPE_ID:()=>M,RENDER_LIST:()=>_,RENDER_SLOT:()=>k,RESOLVE_COMPONENT:()=>h,RESOLVE_DIRECTIVE:()=>x,RESOLVE_DYNAMIC_COMPONENT:()=>v,RESOLVE_FILTER:()=>y,SET_BLOCK_TRACKING:()=>j,SUSPENSE:()=>a,TELEPORT:()=>i,TO_DISPLAY_STRING:()=>S,TO_HANDLERS:()=>I,TO_HANDLER_KEY:()=>P,TRANSITION:()=>Io,TRANSITION_GROUP:()=>Ro,TS_NODE_TYPES:()=>Gt,UNREF:()=>z,V_MODEL_CHECKBOX:()=>Eo,V_MODEL_DYNAMIC:()=>To,V_MODEL_RADIO:()=>ko,V_MODEL_SELECT:()=>Ao,V_MODEL_TEXT:()=>So,V_ON_WITH_KEYS:()=>Co,V_ON_WITH_MODIFIERS:()=>Oo,V_SHOW:()=>No,WITH_CTX:()=>F,WITH_DIRECTIVES:()=>w,WITH_MEMO:()=>U,advancePositionWithClone:()=>oe,advancePositionWithMutation:()=>ne,assert:()=>ie,baseCompile:()=>yo,baseParse:()=>rr,buildDirectiveArgs:()=>Qr,buildProps:()=>Kr,buildSlots:()=>$r,checkCompatEnabled:()=>Ot,compile:()=>Wo,convertToBlock:()=>gt,createArrayExpression:()=>Q,createAssignmentExpression:()=>pt,createBlockStatement:()=>lt,createCacheExpression:()=>st,createCallExpression:()=>nt,createCompilerError:()=>Rt,createCompoundExpression:()=>ot,createConditionalExpression:()=>at,createDOMCompilerError:()=>Do,createForLoopParams:()=>Dr,createFunctionExpression:()=>it,createIfStatement:()=>dt,createInterpolation:()=>rt,createObjectExpression:()=>Z,createObjectProperty:()=>tt,createReturnStatement:()=>bt,createRoot:()=>Y,createSequenceExpression:()=>mt,createSimpleExpression:()=>et,createStructuralDirectiveTransform:()=>fr,createTemplateLiteral:()=>ct,createTransformContext:()=>mr,createVNodeCall:()=>J,errorMessages:()=>Pt,extractIdentifiers:()=>Ut,findDir:()=>ae,findProp:()=>se,forAliasRE:()=>we,generate:()=>vr,generateCodeFrame:()=>o.generateCodeFrame,getBaseTransformPreset:()=>xo,getConstantType:()=>ar,getMemoedVNodeCall:()=>ye,getVNodeBlockHelper:()=>ft,getVNodeHelper:()=>ut,hasDynamicKeyVBind:()=>ce,hasScopeRef:()=>xe,helperNameMap:()=>V,injectProp:()=>ge,isCoreComponent:()=>Wt,isFunctionType:()=>$t,isInDestructureAssignment:()=>Dt,isInNewExpression:()=>Ft,isMemberExpression:()=>re,isMemberExpressionBrowser:()=>te,isMemberExpressionNode:()=>ee,isReferencedIdentifier:()=>Mt,isSimpleIdentifier:()=>Yt,isSlotOutlet:()=>be,isStaticArgOf:()=>le,isStaticExp:()=>qt,isStaticProperty:()=>Vt,isStaticPropertyKey:()=>Ht,isTemplateNode:()=>me,isText:()=>de,isVSlot:()=>pe,locStub:()=>K,noopDirectiveTransform:()=>_o,parse:()=>Ko,parserOptions:()=>Po,processExpression:()=>Tr,processFor:()=>jr,processIf:()=>Nr,processSlotOutlet:()=>eo,registerRuntimeHelpers:()=>H,resolveComponentType:()=>Wr,stringifyExpression:()=>Or,toValidAssetId:()=>ve,trackSlotScopes:()=>zr,trackVForSlotScopes:()=>Br,transform:()=>br,transformBind:()=>no,transformElement:()=>qr,transformExpression:()=>Ar,transformModel:()=>co,transformOn:()=>oo,transformStyle:()=>jo,traverseNode:()=>ur,unwrapTSNode:()=>Xt,walkBlockDeclarations:()=>Bt,walkFunctionParams:()=>zt,walkIdentifiers:()=>jt,warnDeprecation:()=>Ct});var o=r(33);const n=Symbol(""),i=Symbol(""),a=Symbol(""),s=Symbol(""),l=Symbol(""),c=Symbol(""),d=Symbol(""),p=Symbol(""),m=Symbol(""),b=Symbol(""),u=Symbol(""),f=Symbol(""),g=Symbol(""),h=Symbol(""),v=Symbol(""),x=Symbol(""),y=Symbol(""),w=Symbol(""),_=Symbol(""),k=Symbol(""),E=Symbol(""),S=Symbol(""),A=Symbol(""),T=Symbol(""),O=Symbol(""),C=Symbol(""),N=Symbol(""),I=Symbol(""),R=Symbol(""),L=Symbol(""),P=Symbol(""),j=Symbol(""),M=Symbol(""),D=Symbol(""),F=Symbol(""),z=Symbol(""),B=Symbol(""),U=Symbol(""),$=Symbol(""),V={[n]:"Fragment",[i]:"Teleport",[a]:"Suspense",[s]:"KeepAlive",[l]:"BaseTransition",[c]:"openBlock",[d]:"createBlock",[p]:"createElementBlock",[m]:"createVNode",[b]:"createElementVNode",[u]:"createCommentVNode",[f]:"createTextVNode",[g]:"createStaticVNode",[h]:"resolveComponent",[v]:"resolveDynamicComponent",[x]:"resolveDirective",[y]:"resolveFilter",[w]:"withDirectives",[_]:"renderList",[k]:"renderSlot",[E]:"createSlots",[S]:"toDisplayString",[A]:"mergeProps",[T]:"normalizeClass",[O]:"normalizeStyle",[C]:"normalizeProps",[N]:"guardReactiveProps",[I]:"toHandlers",[R]:"camelize",[L]:"capitalize",[P]:"toHandlerKey",[j]:"setBlockTracking",[M]:"pushScopeId",[D]:"popScopeId",[F]:"withCtx",[z]:"unref",[B]:"isRef",[U]:"withMemo",[$]:"isMemoSame"};function H(t){Object.getOwnPropertySymbols(t).forEach((e=>{V[e]=t[e]}))}const G={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},X={ROOT:0,0:"ROOT",ELEMENT:1,1:"ELEMENT",TEXT:2,2:"TEXT",COMMENT:3,3:"COMMENT",SIMPLE_EXPRESSION:4,4:"SIMPLE_EXPRESSION",INTERPOLATION:5,5:"INTERPOLATION",ATTRIBUTE:6,6:"ATTRIBUTE",DIRECTIVE:7,7:"DIRECTIVE",COMPOUND_EXPRESSION:8,8:"COMPOUND_EXPRESSION",IF:9,9:"IF",IF_BRANCH:10,10:"IF_BRANCH",FOR:11,11:"FOR",TEXT_CALL:12,12:"TEXT_CALL",VNODE_CALL:13,13:"VNODE_CALL",JS_CALL_EXPRESSION:14,14:"JS_CALL_EXPRESSION",JS_OBJECT_EXPRESSION:15,15:"JS_OBJECT_EXPRESSION",JS_PROPERTY:16,16:"JS_PROPERTY",JS_ARRAY_EXPRESSION:17,17:"JS_ARRAY_EXPRESSION",JS_FUNCTION_EXPRESSION:18,18:"JS_FUNCTION_EXPRESSION",JS_CONDITIONAL_EXPRESSION:19,19:"JS_CONDITIONAL_EXPRESSION",JS_CACHE_EXPRESSION:20,20:"JS_CACHE_EXPRESSION",JS_BLOCK_STATEMENT:21,21:"JS_BLOCK_STATEMENT",JS_TEMPLATE_LITERAL:22,22:"JS_TEMPLATE_LITERAL",JS_IF_STATEMENT:23,23:"JS_IF_STATEMENT",JS_ASSIGNMENT_EXPRESSION:24,24:"JS_ASSIGNMENT_EXPRESSION",JS_SEQUENCE_EXPRESSION:25,25:"JS_SEQUENCE_EXPRESSION",JS_RETURN_STATEMENT:26,26:"JS_RETURN_STATEMENT"},q={ELEMENT:0,0:"ELEMENT",COMPONENT:1,1:"COMPONENT",SLOT:2,2:"SLOT",TEMPLATE:3,3:"TEMPLATE"},W={NOT_CONSTANT:0,0:"NOT_CONSTANT",CAN_SKIP_PATCH:1,1:"CAN_SKIP_PATCH",CAN_HOIST:2,2:"CAN_HOIST",CAN_STRINGIFY:3,3:"CAN_STRINGIFY"},K={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function Y(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:K}}function J(t,e,r,o,n,i,a,s=!1,l=!1,d=!1,p=K){return t&&(s?(t.helper(c),t.helper(ft(t.inSSR,d))):t.helper(ut(t.inSSR,d)),a&&t.helper(w)),{type:13,tag:e,props:r,children:o,patchFlag:n,dynamicProps:i,directives:a,isBlock:s,disableTracking:l,isComponent:d,loc:p}}function Q(t,e=K){return{type:17,loc:e,elements:t}}function Z(t,e=K){return{type:15,loc:e,properties:t}}function tt(t,e){return{type:16,loc:K,key:(0,o.isString)(t)?et(t,!0):t,value:e}}function et(t,e=!1,r=K,o=0){return{type:4,loc:r,content:t,isStatic:e,constType:e?3:o}}function rt(t,e){return{type:5,loc:e,content:(0,o.isString)(t)?et(t,!1,e):t}}function ot(t,e=K){return{type:8,loc:e,children:t}}function nt(t,e=[],r=K){return{type:14,loc:r,callee:t,arguments:e}}function it(t,e=void 0,r=!1,o=!1,n=K){return{type:18,params:t,returns:e,newline:r,isSlot:o,loc:n}}function at(t,e,r,o=!0){return{type:19,test:t,consequent:e,alternate:r,newline:o,loc:K}}function st(t,e,r=!1){return{type:20,index:t,value:e,isVNode:r,loc:K}}function lt(t){return{type:21,body:t,loc:K}}function ct(t){return{type:22,elements:t,loc:K}}function dt(t,e,r){return{type:23,test:t,consequent:e,alternate:r,loc:K}}function pt(t,e){return{type:24,left:t,right:e,loc:K}}function mt(t){return{type:25,expressions:t,loc:K}}function bt(t){return{type:26,returns:t,loc:K}}function ut(t,e){return t||e?m:b}function ft(t,e){return t||e?d:p}function gt(t,{helper:e,removeHelper:r,inSSR:o}){t.isBlock||(t.isBlock=!0,r(ut(o,t.isComponent)),e(c),e(ft(o,t.isComponent)))}const ht=new Uint8Array([123,123]),vt=new Uint8Array([125,125]);function xt(t){return t>=97&&t<=122||t>=65&&t<=90}function yt(t){return 32===t||10===t||9===t||12===t||13===t}function wt(t){return 47===t||62===t||yt(t)}function _t(t){const e=new Uint8Array(t.length);for(let r=0;r`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${t}.sync\` should be changed to \`v-model:${t}\`.`,link:"https://v3-migration.vuejs.org/breaking-changes/v-model.html"},COMPILER_V_BIND_OBJECT_ORDER:{message:'v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.',link:"https://v3-migration.vuejs.org/breaking-changes/v-bind.html"},COMPILER_V_ON_NATIVE:{message:".native modifier for v-on has been removed as is no longer necessary.",link:"https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html"},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:"v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with