diff --git a/NearBeach/middleware/HandleErrorPages.py b/NearBeach/middleware/HandleErrorPages.py index 98dc4f5d7..45603c2f2 100644 --- a/NearBeach/middleware/HandleErrorPages.py +++ b/NearBeach/middleware/HandleErrorPages.py @@ -1,8 +1,10 @@ -from django.http import HttpResponseNotFound, HttpResponseBadRequest -from django.template.loader import get_template +from django.http import HttpResponse +from django.template.loader import get_template, TemplateDoesNotExist +from django.conf import settings from NearBeach.views.theme_views import get_theme + class TemplateErrorMiddleware: def __init__(self, get_response): self.get_response = get_response @@ -11,26 +13,27 @@ def __call__(self, request): # Response response = self.get_response(request) - if response.status_code == 404: - # Get template - template = get_template('404.html') - - # Context - c = { - "theme": get_theme(request), - } - - response = HttpResponseNotFound(template.render(c)) + # On debug send back response + if settings.DEBUG: + return response - if response.status_code == 500: - # Get template - template = get_template('500.html') + try: + # Error Template + t = get_template(f"{response.status_code}.html") - # Content + # Context c = { + "nearbeach_title": "error", + "need_tinymce": False, "theme": get_theme(request), } - response = HttpResponseBadRequest(template.render(c)) - + # Return + response = HttpResponse( + t.render(c, request), + status=response.status_code, + ) + except TemplateDoesNotExist: + pass return response + diff --git a/NearBeach/static/NearBeach/6521.min.js b/NearBeach/static/NearBeach/6521.min.js new file mode 100644 index 000000000..1929ef98a --- /dev/null +++ b/NearBeach/static/NearBeach/6521.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[6521],{8838:(t,e,o)=>{o.d(e,{A:()=>f});var n,s=o(641),i=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCommentChange","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],a=function(t){return-1!==i.map((function(t){return t.toLowerCase()})).indexOf(t.toLowerCase())},r=0,l=function(t){var e=Date.now();return t+"_"+Math.floor(1e9*Math.random())+ ++r+String(e)},c=function(t){return void 0===t||""===t?[]:Array.isArray(t)?t:t.split(" ")},d=function(){return{listeners:[],scriptId:l("tiny-script"),scriptLoaded:!1}},u=(n=d(),{load:function(t,e,o){n.scriptLoaded?o():(n.listeners.push(o),t.getElementById(n.scriptId)||function(t,e,o,s){var i=e.createElement("script");i.referrerPolicy="origin",i.type="application/javascript",i.id=t,i.src=o;var a=function(){i.removeEventListener("load",a),n.listeners.forEach((function(t){return t()})),n.scriptLoaded=!0};i.addEventListener("load",a),e.head&&e.head.appendChild(i)}(n.scriptId,t,e))},reinitialize:function(){n=d()}}),m=function(){var t="undefined"!=typeof window?window:o.g;return t&&t.tinymce?t.tinymce:null},g={apiKey:String,licenseKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],modelValue:String,disabled:Boolean,tinymceScriptSrc:String,outputFormat:{type:String,validator:function(t){return"html"===t||"text"===t}}},p=o(953),v=function(){return v=Object.assign||function(t){for(var e,o=1,n=arguments.length;o{o.d(e,{A:()=>E});var n=o(641),s=o(33);const i={class:"customer-list"},a=["src"],r={class:"customer-card--details"},l={class:"customer-card--name"},c=["href"],d={class:"customer-card--email"},u={key:0,class:"customer-card--remove"};var m=o(9336),g=o(2321);const p={class:"modal fade",id:"confirmCustomerRemoveModal",tabindex:"-1","data-bs-backdrop":"static","data-bs-keyboard":"false","aria-labelledby":"confirmCustomerRemove","aria-hidden":"true"},v={class:"modal-dialog"},h={class:"modal-content"},f=(0,n.Lk)("div",{class:"modal-header"},[(0,n.Lk)("h5",{class:"modal-title",id:"confirmCustomerRemove"}," Please confirm Customer Removal "),(0,n.Q3)(" TASK INFORMATION "),(0,n.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"confirmCustomerRemoveButton"})],-1),b={class:"modal-body"},y={class:"customer-card--details"},L={class:"customer-card--name"},k=["href"],C={class:"customer-card--email"},_={class:"modal-footer"};var S=o(2124);const I={name:"ConfirmCustomerRemoval",emits:["remove_customer"],props:{customerObject:{type:Object,default:()=>({customer_id:0,customer_email:"",customer_first_name:"",customer_last_name:"",customer_profile_picture:""})}},computed:{...(0,S.L8)({destination:"getDestination",locationId:"getLocationId",rootUrl:"getRootUrl"})},methods:{closeModal(){document.getElementById("confirmCustomerRemoveButton").click()},removeCustomer(){const t=new FormData;t.set("customer_id",this.customerObject.customer_id);let e=`${this.rootUrl}object_data/${this.destination}/${this.locationId}/remove_customer/`;"organisation"===this.destination&&(e=`${this.rootUrl}customer_information/${this.locationId}/delete/`),this.axios.post(e,t).then((()=>{this.$emit("remove_customer",this.customerObject.customer_id)})).catch((t=>{this.$store.dispatch("newToast",{header:"Can't remove customer",message:`Sorry, could not remove customer. Error -> ${t}`,extra_classes:"bg-warning text-dark",delay:0})})),this.closeModal()}}};var A=o(6262);const w=(0,A.A)(I,[["render",function(t,e,o,i,a,r){return(0,n.uX)(),(0,n.CE)("div",p,[(0,n.Lk)("div",v,[(0,n.Lk)("div",h,[f,(0,n.Lk)("div",b,[(0,n.Lk)("div",y,[(0,n.Lk)("div",L,[(0,n.Lk)("a",{href:`${t.rootUrl}customer_information/${o.customerObject.customer_id}/`,target:"_blank"},(0,s.toDisplayString)(o.customerObject.customer_first_name)+" "+(0,s.toDisplayString)(o.customerObject.customer_last_name),9,k)]),(0,n.Lk)("div",C,(0,s.toDisplayString)(o.customerObject.customer_email),1)])]),(0,n.Lk)("div",_,[(0,n.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:e[0]||(e[0]=(...t)=>r.closeModal&&r.closeModal(...t))}," No "),(0,n.Lk)("button",{type:"button",class:"btn btn-primary",onClick:e[1]||(e[1]=(...t)=>r.removeCustomer&&r.removeCustomer(...t))}," Yes ")])])])])}]]);var T=o(2243);const D={name:"CustomersListModule",components:{ConfirmCustomerRemoval:w,Icon:g.In},props:{customerResults:{type:Array,default:()=>[]}},computed:{...(0,S.L8)({destination:"getDestination",locationId:"getLocationId",rootUrl:"getRootUrl",staticUrl:"getStaticUrl",userLevel:"getUserLevel"}),defaultCustomerImage(){return`${this.staticUrl}/NearBeach/images/placeholder/people_tax.svg`}},mixins:[T.A],data:()=>({customerObject:{customer_id:0,customer_email:"",customer_first_name:"",customer_last_name:"",customer_profile_picture:""}}),emits:["remove_customer"],methods:{confirmRemoveCustomer(t){const e=this.customerResults.filter((e=>parseInt(e.pk)===parseInt(t)));1===e.length?(this.customerObject=e.map((t=>({customer_id:t.pk,customer_email:t.fields.customer_email,customer_first_name:t.fields.customer_first_name,customer_last_name:t.fields.customer_last_name,customer_profile_picture:t.fields.customer_profile_picture})))[0],new m.aF(document.getElementById("confirmCustomerRemoveModal")).show()):this.$store.dispatch("newToast",{header:"Error Deleting Customer",message:"Could not select the correct ID of the customer. Something went wrong",extra_classes:"bg-danger",delay:0})},getCustomerImage(t){const e=t.fields.customer_profile_picture;return""===e||null===e?this.defaultCustomerImage:`${this.rootUrl}private/${e}`},removeCustomer(t){this.$emit("remove_customer",t)}}},E=(0,A.A)(D,[["render",function(t,e,o,m,g,p){const v=(0,n.g2)("Icon"),h=(0,n.g2)("confirm-customer-removal");return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Lk)("div",i,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(o.customerResults,(e=>((0,n.uX)(),(0,n.CE)("div",{key:e.pk,class:"customer-card"},[(0,n.Q3)(" CUSOMER PROFILE "),(0,n.Lk)("img",{src:p.getCustomerImage(e),alt:"default profile picture"},null,8,a),(0,n.Q3)(" CUSTOMER DETAILS "),(0,n.Lk)("div",r,[(0,n.Lk)("div",l,[(0,n.Lk)("a",{href:`${t.rootUrl}customer_information/${e.pk}/`},(0,s.toDisplayString)(e.fields.customer_first_name)+" "+(0,s.toDisplayString)(e.fields.customer_last_name),9,c)]),(0,n.Lk)("div",d,[(0,n.bF)(v,{icon:t.icons.mailIcon},null,8,["icon"]),(0,n.eW)(" "+(0,s.toDisplayString)(e.fields.customer_email),1)])]),t.userLevel>=2?((0,n.uX)(),(0,n.CE)("div",u,[(0,n.bF)(v,{icon:t.icons.trashCan,onClick:t=>p.confirmRemoveCustomer(e.pk)},null,8,["icon","onClick"])])):(0,n.Q3)("v-if",!0)])))),128))]),(0,n.bF)(h,{"customer-object":g.customerObject,onRemove_customer:e[0]||(e[0]=t=>p.removeCustomer(t))},null,8,["customer-object"])],64)}]])},7214:(t,e,o)=>{o.d(e,{A:()=>x});var n=o(641),s=o(33);const i=(0,n.Lk)("h2",null,"Assigned Tags",-1),a={class:"text-instructions"},r={class:"tag-list"},l=["onClick"],c={class:"row submit-row"},d={class:"col-md-12"};var u=o(9336),m=o(2321),g=o(2243);const p={class:"modal fade",id:"addTagModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},v={class:"modal-dialog"},h={class:"modal-content"},f={class:"modal-header"},b=(0,n.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"addTagsCloseButton"},[(0,n.Lk)("span",{"aria-hidden":"true"})],-1),y={class:"modal-body"},L={class:"row"},k={class:"col-md-4"},C=(0,n.Lk)("strong",null,"Add Tag",-1),_={class:"text-instructions"},S={class:"col-md-8"},I=(0,n.Lk)("label",null,"All Tag List",-1),A={class:"modal-footer"},w=(0,n.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1);var T=o(1080),D=o(2124);const E={name:"AddTagWizard",components:{Icon:m.In,NSelect:T.A},props:{assignedTags:{type:Array,default:()=>[]},destination:{type:String,default:""},locationId:{type:Number,default:0}},mixins:[g.A],data:()=>({allTagList:[],tagModel:[]}),computed:{...(0,D.L8)({rootUrl:"getRootUrl"}),tagList(){return this.allTagList.filter((t=>this.assignedTags.findIndex((e=>e.pk===parseInt(t.value)))<0))}},methods:{addTag(){const t=new FormData;this.tagModel.forEach((e=>{t.append("tag_id",e)})),this.axios.post(`${this.rootUrl}object_data/${this.destination}/${this.locationId}/add_tags/`,t).then((t=>{this.$emit("add_tags",t.data),document.getElementById("addTagsCloseButton").click(),this.tagModel=[]})).catch((t=>{this.$store.dispatch("newToast",{header:"Failed to add tag",message:`Sorry, we could not add tag. Errors -> ${t}`,extra_classes:"bg-danger",delay:0})}))},getTagList(){this.axios.post(`${this.rootUrl}object_data/tag_list_all/`).then((t=>{this.allTagList=t.data.map((t=>({value:t.pk,label:t.fields.tag_name})))})).catch((t=>{this.$store.dispatch("newToast",{header:"Failed to get tag list",message:`Sorry, we could not get the tag list. Errors -> ${t}`,extra_classes:"bg-danger",delay:0})}))}},mounted(){["requirement_item"].indexOf(this.destination)>=0||this.$nextTick((()=>{this.getTagList()}))}};var $=o(6262);const U={name:"ListTagsModule",components:{AddTagWizard:(0,$.A)(E,[["render",function(t,e,o,i,a,r){const l=(0,n.g2)("Icon"),c=(0,n.g2)("n-select");return(0,n.uX)(),(0,n.CE)("div",p,[(0,n.Lk)("div",v,[(0,n.Lk)("div",h,[(0,n.Lk)("div",f,[(0,n.Lk)("h2",null,[(0,n.bF)(l,{icon:t.icons.usersIcon},null,8,["icon"]),(0,n.eW)(" Add Tags Wizard ")]),b]),(0,n.Lk)("div",y,[(0,n.Lk)("div",L,[(0,n.Lk)("div",k,[C,(0,n.Lk)("p",_," Use the dropdown to select one or many lables to add to the "+(0,s.toDisplayString)(o.destination)+". ",1)]),(0,n.Lk)("div",S,[I,(0,n.bF)(c,{label:"tag",multiple:"",options:r.tagList,value:a.tagModel,"onUpdate:value":e[0]||(e[0]=t=>a.tagModel=t)},null,8,["options","value"])])])]),(0,n.Lk)("div",A,[w,(0,n.Lk)("button",{type:"button",class:"btn btn-primary",onClick:e[1]||(e[1]=(...t)=>r.addTag&&r.addTag(...t))}," Add Tag ")])])])])}]]),Icon:m.In},data:()=>({tagList:[]}),mixins:[g.A],computed:{...(0,D.L8)({destination:"getDestination",locationId:"getLocationId",rootUrl:"getRootUrl",userLevel:"getUserLevel"})},methods:{addTags(t){this.tagList=t},createNewTag(){new u.aF(document.getElementById("addTagModal")).show()},getAssignedTags(){this.axios.post(`${this.rootUrl}object_data/${this.destination}/${this.locationId}/tag_list/`).then((t=>{this.tagList=t.data})).catch((t=>{}))},removeTag(t){if(this.userLevel<=1)return;const e=new FormData;e.set("tag",t),e.set("object_enum",this.destination),e.set("object_id",this.locationId),this.axios.post(`${this.rootUrl}object_data/delete_tag/`,e).then((e=>{this.tagList=this.tagList.filter((e=>e.pk!==t))})).catch((t=>{}))}},mounted(){["requirement_item"].indexOf(this.destination)>=0||this.$nextTick((()=>{this.getAssignedTags()}))}},x=(0,$.A)(U,[["render",function(t,e,o,u,m,g){const p=(0,n.g2)("Icon"),v=(0,n.g2)("add-tag-wizard");return(0,n.uX)(),(0,n.CE)("div",null,[i,(0,n.Lk)("p",a," Here are all tags associated with this "+(0,s.toDisplayString)(t.destination)+'. You can add more tags by clicking on the "Add Tag" button. ',1),(0,n.Lk)("div",r,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(m.tagList,(e=>((0,n.uX)(),(0,n.CE)("div",{key:e.pk,class:"single-tag",style:(0,s.normalizeStyle)(`background-color: ${e.fields.tag_colour};color: ${e.fields.tag_text_colour};`)},[(0,n.eW)((0,s.toDisplayString)(e.fields.tag_name)+" ",1),(0,n.Lk)("span",{onClick:t=>g.removeTag(e.pk)},[t.userLevel>1?((0,n.uX)(),(0,n.Wv)(p,{key:0,icon:t.icons.xCircle},null,8,["icon"])):(0,n.Q3)("v-if",!0)],8,l)],4)))),128))]),(0,n.Q3)(" ADD TAG BUTTON "),(0,n.Lk)("div",c,[(0,n.Lk)("div",d,[t.userLevel>1?((0,n.uX)(),(0,n.CE)("a",{key:0,href:"javascript:void(0)",class:"btn btn-primary save-changes",onClick:e[0]||(e[0]=(...t)=>g.createNewTag&&g.createNewTag(...t))},"Add Tag to "+(0,s.toDisplayString)(t.destination),1)):(0,n.Q3)("v-if",!0)])]),(0,n.Q3)(" ADD TAG MODULE "),(0,n.bF)(v,{destination:t.destination,"location-id":t.locationId,"assigned-tags":m.tagList,onAdd_tags:e[1]||(e[1]=t=>g.addTags(t))},null,8,["destination","location-id","assigned-tags"])])}]])},6357:(t,e,o)=>{o.d(e,{A:()=>h});var n=o(641),s=o(33);const i={class:"text-instructions"},a={key:0},r={class:"row submit-row"},l={class:"col-md-12"};var c=o(9336),d=o(2243),u=o(2321),m=o(531),g=o(4371),p=o(2124);const v={name:"NotesModule",components:{Icon:u.In,ListNotes:m.A,NewHistoryNoteWizard:g.A},mixins:[d.A],computed:{...(0,p.L8)({destination:"getDestination",locationId:"getLocationId",userLevel:"getUserLevel",rootUrl:"getRootUrl"})},methods:{createNewNote(){new c.aF(document.getElementById("newNoteModal")).show()},getNoteHistoryResults(){let t="note_list";"organisation"===this.destination&&(t="organisation_note_list"),this.axios.post(`${this.rootUrl}object_data/${this.destination}/${this.locationId}/${t}/`).then((t=>{this.$store.commit({type:"initNoteList",noteList:t.data})})).catch((t=>{this.$store.dispatch("newToast",{header:"Error Getting Note History",message:`Can not retrieve the note history. Error -> ${t}`,extra_classes:"bg-danger",delay:0})}))}},mounted(){this.$nextTick((()=>{this.getNoteHistoryResults()}))}},h=(0,o(6262).A)(v,[["render",function(t,e,o,c,d,u){const m=(0,n.g2)("Icon"),g=(0,n.g2)("list-notes");return(0,n.uX)(),(0,n.CE)("div",null,[(0,n.Lk)("h2",null,[(0,n.bF)(m,{icon:t.icons.noteAdd},null,8,["icon"]),(0,n.eW)(" Note History ")]),(0,n.Lk)("p",i," The following are saved notes against this "+(0,s.toDisplayString)(t.destination)+". Add notes by clicking on the button below. ",1),(0,n.bF)(g,{destination:t.destination},null,8,["destination"]),(0,n.Q3)(" ADD NOTE HISTORY "),t.userLevel>1?((0,n.uX)(),(0,n.CE)("hr",a)):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",r,[(0,n.Lk)("div",l,[t.userLevel>1?((0,n.uX)(),(0,n.CE)("button",{key:0,class:"btn btn-primary save-changes",onClick:e[0]||(e[0]=(...t)=>u.createNewNote&&u.createNewNote(...t))}," Add Note to "+(0,s.toDisplayString)(t.destination),1)):(0,n.Q3)("v-if",!0)])])])}]])},469:(t,e,o)=>{o.d(e,{A:()=>f});var n=o(641),s=o(33);const i={class:"object-card-list"},a={class:"object-card--detail"},r=["href"],l={class:"object-card--detail--link"},c={class:"object-card--detail--description"},d={class:"object-card--status"},u=["href"],m={class:"object-card--status--status"},g={class:"small-text"};var p=o(8083),v=o(2124);const h={name:"RenderObjectCard",props:{destination:{type:String,default:""},importVariables:{type:Object,default:()=>({header:"",prefix:"",id:0,title:"",status:""})},searchResults:{type:Array,default:()=>[]}},mixins:[p.A],computed:{...(0,v.L8)({rootUrl:"getRootUrl"})}},f=(0,o(6262).A)(h,[["render",function(t,e,o,p,v,h){return(0,n.uX)(),(0,n.CE)("div",i,[(0,n.Lk)("h2",null,(0,s.toDisplayString)(o.importVariables.header),1),((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(o.searchResults,(e=>((0,n.uX)(),(0,n.CE)("div",{class:"object-card",key:e.pk},[(0,n.Lk)("div",a,[(0,n.Lk)("a",{href:`${t.rootUrl}${o.destination}_information/${e[o.importVariables.id]}/`},[(0,n.Lk)("div",l,(0,s.toDisplayString)(o.importVariables.prefix)+(0,s.toDisplayString)(e[o.importVariables.id]),1),(0,n.Lk)("div",c,(0,s.toDisplayString)(e[o.importVariables.title]),1)],8,r)]),(0,n.Lk)("div",d,[(0,n.Lk)("a",{href:`${t.rootUrl}${o.destination}_information/${e[o.importVariables.id]}/`},[(0,n.Lk)("div",m,(0,s.toDisplayString)(e[o.importVariables.status]),1),(0,n.Lk)("p",g,(0,s.toDisplayString)(t.getNiceDatetime(e[o.importVariables.end_date])),1)],8,u)])])))),128))])}]])}}]); \ No newline at end of file diff --git a/NearBeach/static/NearBeach/6521.min.js.gz b/NearBeach/static/NearBeach/6521.min.js.gz new file mode 100644 index 000000000..48202bee3 Binary files /dev/null and b/NearBeach/static/NearBeach/6521.min.js.gz differ diff --git a/NearBeach/static/NearBeach/8722.min.js b/NearBeach/static/NearBeach/8722.min.js new file mode 100644 index 000000000..ecf20c40a --- /dev/null +++ b/NearBeach/static/NearBeach/8722.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[8722],{4926:(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"},k={key:2},b={key:3,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 "),e.userLevel>1?((0,n.uX)(),(0,n.CE)("hr",k)):(0,n.Q3)("v-if",!0),!1===o.readOnly?((0,n.uX)(),(0,n.CE)("div",b,[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)])}]])},531:(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 k=o(8838),b=o(9336),L=o(2124),y=o(8083);const f={name:"ListNotes",components:{editor:k.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 b.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 b.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,k,b,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:{license_key:"gpl",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),k={class:"modal-footer"},b=(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",k,[b,(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"},k={key:0,class:"error"},b={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",k," 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",b,[(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 ")])])])])}]])},4371:(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),k=o(8838),b=o(2124);const L={name:"NewHistoryNoteWizard",components:{editor:k.A,Icon:g.In},props:{destination:{type:String,default:""},locationId:{type:Number,default:0}},mixins:[h.A],data:()=>({newNoteModel:""}),computed:{...(0,b.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,k){const b=(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)(b,{icon:e.icons.noteAdd},null,8,["icon"]),(0,n.eW)(" New Note ")]),l]),(0,n.Lk)("div",r,[c,(0,n.bF)(L,{init:{license_key:"gpl",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)=>k.submitNote&&k.submitNote(...e))}," Submit Note ",8,m),p])])])])],2112)}]])},7545:(e,t,o)=>{o.d(t,{A:()=>W});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"},k={key:0},b={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),_={class:"form-row mt-4"},A={key:2},w={key:0,class:"alert alert-warning"},U=(0,n.Lk)("div",{class:"spinner-border text-primary",role:"status"},[(0,n.Lk)("span",{class:"sr-only"},"Loading...")],-1),$=(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),N={class:"modal-footer"},B=(0,n.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1),S=["disabled"];var T=o(2321),R=(o(9336),o(2124)),X=o(2243),O=o(9022);const P={name:"UploadDocumentWizard",components:{Icon:T.In},props:{overrideDestination:{type:String,default:""},overrideLocationId:{type:Number,default:0}},mixins:[X.A,O.A],data:()=>({disableUploadButton:!0,documentModel:[],documentDescriptionModel:"",uploadPercentage:"",maxUploadSize:0,maxUploadString:"No Upload Limit",maxUploadWarning:!1}),computed:{...(0,R.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})}))}))}},W=(0,o(6262).A)(P,[["render",function(e,t,o,T,R,X){const O=(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)(O,{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===R.documentModel.length?((0,n.uX)(),(0,n.CE)("p",k,' 1. Please click on "Upload File" button to upload a file ')):""===R.uploadPercentage?((0,n.uX)(),(0,n.CE)("p",b,' 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===R.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)(R.maxUploadString)+" ",1),R.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)])])):""==R.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=>R.documentDescriptionModel=e),type:"text",class:"form-control"},null,512),[[d.vModelText,R.documentDescriptionModel]])]),(0,n.Q3)(" RESET FORM BUTTON "),(0,n.Lk)("div",_,[(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",A,[(0,n.Q3)(" THE UPLOAD SPINNER "),parseFloat(R.uploadPercentage).toFixed(0)<1?((0,n.uX)(),(0,n.CE)("div",w,[(0,n.eW)(" Uploading "+(0,i.toDisplayString)((100*parseFloat(R.uploadPercentage)).toFixed(2))+"% ",1),U])):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.Q3)(" THE FINAL WRITING "),$],2112))]))])])]),(0,n.Lk)("div",N,[B,(0,n.Lk)("button",{type:"button",class:"btn btn-primary",disabled:R.disableUploadButton,onClick:t[3]||(t[3]=(...e)=>X.uploadFile&&X.uploadFile(...e))}," Upload File ",8,S)])])])])}]])},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),getNiceDatetimeFromInt:e=>""===e||null==e?"":n.c9.fromMillis(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),k=o(1758),b=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:k.A,mailIcon:b.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/8722.min.js.gz b/NearBeach/static/NearBeach/8722.min.js.gz new file mode 100644 index 000000000..673cdf7f6 Binary files /dev/null and b/NearBeach/static/NearBeach/8722.min.js.gz differ diff --git a/NearBeach/static/NearBeach/NearBeach.min.js b/NearBeach/static/NearBeach/NearBeach.min.js index 12d6063ef..7b98d2ea9 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:()=>L,CAPITALIZE:()=>R,CREATE_BLOCK:()=>d,CREATE_COMMENT:()=>b,CREATE_ELEMENT_BLOCK:()=>p,CREATE_ELEMENT_VNODE:()=>m,CREATE_SLOTS:()=>E,CREATE_STATIC:()=>g,CREATE_TEXT:()=>f,CREATE_VNODE:()=>u,CompilerDeprecationTypes:()=>Et,ConstantTypes:()=>W,DOMDirectiveTransforms:()=>Xo,DOMErrorCodes:()=>Fo,DOMErrorMessages:()=>zo,DOMNodeTransforms:()=>qo,ElementTypes:()=>X,ErrorCodes:()=>Rt,FRAGMENT:()=>n,GUARD_REACTIVE_PROPS:()=>N,IS_MEMO_SAME:()=>U,IS_REF:()=>V,KEEP_ALIVE:()=>s,MERGE_PROPS:()=>T,NORMALIZE_CLASS:()=>O,NORMALIZE_PROPS:()=>C,NORMALIZE_STYLE:()=>A,Namespaces:()=>G,NodeTypes:()=>q,OPEN_BLOCK:()=>c,POP_SCOPE_ID:()=>j,PUSH_SCOPE_ID:()=>P,RENDER_LIST:()=>_,RENDER_SLOT:()=>k,RESOLVE_COMPONENT:()=>h,RESOLVE_DIRECTIVE:()=>y,RESOLVE_DYNAMIC_COMPONENT:()=>v,RESOLVE_FILTER:()=>x,SET_BLOCK_TRACKING:()=>D,SUSPENSE:()=>a,TELEPORT:()=>i,TO_DISPLAY_STRING:()=>S,TO_HANDLERS:()=>I,TO_HANDLER_KEY:()=>M,TRANSITION:()=>Io,TRANSITION_GROUP:()=>Lo,TS_NODE_TYPES:()=>Gt,UNREF:()=>z,V_MODEL_CHECKBOX:()=>Eo,V_MODEL_DYNAMIC:()=>Oo,V_MODEL_RADIO:()=>ko,V_MODEL_SELECT:()=>To,V_MODEL_TEXT:()=>So,V_ON_WITH_KEYS:()=>Co,V_ON_WITH_MODIFIERS:()=>Ao,V_SHOW:()=>No,WITH_CTX:()=>F,WITH_DIRECTIVES:()=>w,WITH_MEMO:()=>$,advancePositionWithClone:()=>oe,advancePositionWithMutation:()=>ne,assert:()=>ie,baseCompile:()=>xo,baseParse:()=>rr,buildDirectiveArgs:()=>Zr,buildProps:()=>Yr,buildSlots:()=>Ur,checkCompatEnabled:()=>At,compile:()=>Wo,convertToBlock:()=>gt,createArrayExpression:()=>Z,createAssignmentExpression:()=>pt,createBlockStatement:()=>lt,createCacheExpression:()=>st,createCallExpression:()=>nt,createCompilerError:()=>Lt,createCompoundExpression:()=>ot,createConditionalExpression:()=>at,createDOMCompilerError:()=>jo,createForLoopParams:()=>jr,createFunctionExpression:()=>it,createIfStatement:()=>dt,createInterpolation:()=>rt,createObjectExpression:()=>Q,createObjectProperty:()=>tt,createReturnStatement:()=>mt,createRoot:()=>K,createSequenceExpression:()=>ut,createSimpleExpression:()=>et,createStructuralDirectiveTransform:()=>fr,createTemplateLiteral:()=>ct,createTransformContext:()=>ur,createVNodeCall:()=>J,errorMessages:()=>Mt,extractIdentifiers:()=>$t,findDir:()=>ae,findProp:()=>se,forAliasRE:()=>we,generate:()=>vr,generateCodeFrame:()=>o.generateCodeFrame,getBaseTransformPreset:()=>yo,getConstantType:()=>ar,getMemoedVNodeCall:()=>xe,getVNodeBlockHelper:()=>ft,getVNodeHelper:()=>bt,hasDynamicKeyVBind:()=>ce,hasScopeRef:()=>ye,helperNameMap:()=>B,injectProp:()=>ge,isCoreComponent:()=>Wt,isFunctionType:()=>Ut,isInDestructureAssignment:()=>jt,isInNewExpression:()=>Ft,isMemberExpression:()=>re,isMemberExpressionBrowser:()=>te,isMemberExpressionNode:()=>ee,isReferencedIdentifier:()=>Pt,isSimpleIdentifier:()=>Kt,isSlotOutlet:()=>me,isStaticArgOf:()=>le,isStaticExp:()=>Xt,isStaticProperty:()=>Bt,isStaticPropertyKey:()=>Ht,isTemplateNode:()=>ue,isText:()=>de,isVSlot:()=>pe,locStub:()=>Y,noopDirectiveTransform:()=>_o,parse:()=>Yo,parserOptions:()=>Mo,processExpression:()=>Or,processFor:()=>Dr,processIf:()=>Nr,processSlotOutlet:()=>eo,registerRuntimeHelpers:()=>H,resolveComponentType:()=>Wr,stringifyExpression:()=>Ar,toValidAssetId:()=>ve,trackSlotScopes:()=>zr,trackVForSlotScopes:()=>Vr,transform:()=>mr,transformBind:()=>no,transformElement:()=>Xr,transformExpression:()=>Tr,transformModel:()=>co,transformOn:()=>oo,transformStyle:()=>Do,traverseNode:()=>br,unwrapTSNode:()=>qt,walkBlockDeclarations:()=>Vt,walkFunctionParams:()=>zt,walkIdentifiers:()=>Dt,warnDeprecation:()=>Ct});var o=r(33);const n=Symbol(""),i=Symbol(""),a=Symbol(""),s=Symbol(""),l=Symbol(""),c=Symbol(""),d=Symbol(""),p=Symbol(""),u=Symbol(""),m=Symbol(""),b=Symbol(""),f=Symbol(""),g=Symbol(""),h=Symbol(""),v=Symbol(""),y=Symbol(""),x=Symbol(""),w=Symbol(""),_=Symbol(""),k=Symbol(""),E=Symbol(""),S=Symbol(""),T=Symbol(""),O=Symbol(""),A=Symbol(""),C=Symbol(""),N=Symbol(""),I=Symbol(""),L=Symbol(""),R=Symbol(""),M=Symbol(""),D=Symbol(""),P=Symbol(""),j=Symbol(""),F=Symbol(""),z=Symbol(""),V=Symbol(""),$=Symbol(""),U=Symbol(""),B={[n]:"Fragment",[i]:"Teleport",[a]:"Suspense",[s]:"KeepAlive",[l]:"BaseTransition",[c]:"openBlock",[d]:"createBlock",[p]:"createElementBlock",[u]:"createVNode",[m]:"createElementVNode",[b]:"createCommentVNode",[f]:"createTextVNode",[g]:"createStaticVNode",[h]:"resolveComponent",[v]:"resolveDynamicComponent",[y]:"resolveDirective",[x]:"resolveFilter",[w]:"withDirectives",[_]:"renderList",[k]:"renderSlot",[E]:"createSlots",[S]:"toDisplayString",[T]:"mergeProps",[O]:"normalizeClass",[A]:"normalizeStyle",[C]:"normalizeProps",[N]:"guardReactiveProps",[I]:"toHandlers",[L]:"camelize",[R]:"capitalize",[M]:"toHandlerKey",[D]:"setBlockTracking",[P]:"pushScopeId",[j]:"popScopeId",[F]:"withCtx",[z]:"unref",[V]:"isRef",[$]:"withMemo",[U]:"isMemoSame"};function H(t){Object.getOwnPropertySymbols(t).forEach((e=>{B[e]=t[e]}))}const G={HTML:0,0:"HTML",SVG:1,1:"SVG",MATH_ML:2,2:"MATH_ML"},q={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"},X={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"},Y={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:""};function K(t,e=""){return{type:0,source:e,children:t,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:0,temps:0,codegenNode:void 0,loc:Y}}function J(t,e,r,o,n,i,a,s=!1,l=!1,d=!1,p=Y){return t&&(s?(t.helper(c),t.helper(ft(t.inSSR,d))):t.helper(bt(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 Z(t,e=Y){return{type:17,loc:e,elements:t}}function Q(t,e=Y){return{type:15,loc:e,properties:t}}function tt(t,e){return{type:16,loc:Y,key:(0,o.isString)(t)?et(t,!0):t,value:e}}function et(t,e=!1,r=Y,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=Y){return{type:8,loc:e,children:t}}function nt(t,e=[],r=Y){return{type:14,loc:r,callee:t,arguments:e}}function it(t,e=void 0,r=!1,o=!1,n=Y){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:Y}}function st(t,e,r=!1){return{type:20,index:t,value:e,isVNode:r,loc:Y}}function lt(t){return{type:21,body:t,loc:Y}}function ct(t){return{type:22,elements:t,loc:Y}}function dt(t,e,r){return{type:23,test:t,consequent:e,alternate:r,loc:Y}}function pt(t,e){return{type:24,left:t,right:e,loc:Y}}function ut(t){return{type:25,expressions:t,loc:Y}}function mt(t){return{type:26,returns:t,loc:Y}}function bt(t,e){return t||e?u:m}function ft(t,e){return t||e?d:p}function gt(t,{helper:e,removeHelper:r,inSSR:o}){t.isBlock||(t.isBlock=!0,r(bt(o,t.isComponent)),e(c),e(ft(o,t.isComponent)))}const ht=new Uint8Array([123,123]),vt=new Uint8Array([125,125]);function yt(t){return t>=97&&t<=122||t>=65&&t<=90}function xt(t){return 32===t||10===t||9===t||12===t||13===t}function wt(t){return 47===t||62===t||xt(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