diff --git a/NearBeach/management/commands/runscheduler.py b/NearBeach/management/commands/runscheduler.py index 0c7983db1..452a9e64a 100644 --- a/NearBeach/management/commands/runscheduler.py +++ b/NearBeach/management/commands/runscheduler.py @@ -51,7 +51,8 @@ def handle(self, *args, **kwargs): scheduled_objects = [] - def create_object(self, scheduled_object, *args, **kwargs): + @staticmethod + def create_object(scheduled_object, *args, **kwargs): #TODO: Print off a log when creating these tasks/projects # Get the template @@ -89,7 +90,8 @@ def create_object(self, scheduled_object, *args, **kwargs): return - def run_set_day_of_the_week(self): + @staticmethod + def run_set_day_of_the_week(): # Get today's date and day of the week todays_date = datetime.date.today() todays_day = calendar.day_name[todays_date.weekday()].lower() @@ -112,7 +114,8 @@ def run_set_day_of_the_week(self): - def run_weekly(self): + @staticmethod + def run_weekly(): todays_date = datetime.date.today() day_of_the_week = calendar.day_name[todays_date.weekday()] @@ -134,7 +137,8 @@ def run_weekly(self): ) - def run_fortnightly(self): + @staticmethod + def run_fortnightly(): todays_date = datetime.date.today() day_of_the_week = calendar.day_name[todays_date.weekday()] last_run = todays_date - datetime.timedelta(days=14) @@ -158,7 +162,8 @@ def run_fortnightly(self): ) - def run_monthly(self): + @staticmethod + def run_monthly(): todays_date = datetime.date.today() last_run = todays_date - datetime.timedelta(days=14) @@ -180,7 +185,8 @@ def run_monthly(self): ) - def run_start_of_the_month(self): + @staticmethod + def run_start_of_the_month(): # If today is not the 1st - we will just leave todays_date = datetime.date.today() if todays_date.day != 1: @@ -203,7 +209,8 @@ def run_start_of_the_month(self): ) - def run_end_of_the_month(self): + @staticmethod + def run_end_of_the_month(): # If today is not the end of the month - we will just leave todays_date = datetime.date.today() end_month_date = calendar.monthrange(todays_date.year, todays_date.month)[1] @@ -227,7 +234,8 @@ def run_end_of_the_month(self): ) - def run_x_days_before_end_of_the_month(self): + @staticmethod + def run_x_days_before_end_of_the_month(): # If today's date is earlier than the 14th, just leave todays_date = datetime.date.today() if todays_date.day < 14: diff --git a/NearBeach/static/NearBeach/331.min.js b/NearBeach/static/NearBeach/331.min.js new file mode 100644 index 000000000..f9a3cbdd5 --- /dev/null +++ b/NearBeach/static/NearBeach/331.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[331],{5135:(e,t,a)=>{a.d(t,{A:()=>b});var l=a(641),d=a(33);const o={class:"row"},s={class:"col-md-4"},n={class:"text-instructions"},r={class:"col-md-4"},i={class:"form-group"},u={class:"col-md-4"},c={class:"form-group"};var h=a(8105),y=a(9639),M=a(3855),D=a(404),m=a(8083),p=a(2124);const f={name:"BetweenDates",setup:()=>({v$:(0,y.Ay)()}),components:{NDatePicker:h.A,ValidationRendering:D.A},mixins:[m.A],props:{destination:{type:String,default:""},endDateModel:{type:Number,default:()=>{const e=new Date;return e.setHours(16),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),new Date(e.setDate(e.getDate()+14)),e.getTime()}},isReadOnly:{type:Boolean,default:!1},noBackDating:{type:Boolean,default:!0},startDateModel:{type:Number,default:()=>{const e=new Date;return e.setHours(9),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),e.getTime()}}},computed:{...(0,p.L8)({userLevel:"getUserLevel"})},validations:{localEndDateModel:{required:M.mw},localStartDateModel:{required:M.mw}},data(){return{localEndDateModel:this.endDateModel,localStartDateModel:this.startDateModel}},methods:{emitDates(){this.$emit("update_dates",{start_date:this.localStartDateModel,end_date:this.localEndDateModel})}},watch:{localEndDateModel(){this.localEndDateModelthis.localEndDateModel&&(this.localEndDateModel=this.localStartDateModel+864e5),this.emitDates()}},mounted(){this.emitDates()}},b=(0,a(6262).A)(f,[["render",function(e,t,a,h,y,M){const D=(0,l.g2)("validation-rendering"),m=(0,l.g2)("n-date-picker");return(0,l.uX)(),(0,l.CE)("div",o,[(0,l.Lk)("div",s,[t[2]||(t[2]=(0,l.Lk)("strong",null,"Between Dates",-1)),(0,l.Lk)("p",n," Choose the start and end date of the "+(0,d.toDisplayString)(a.destination)+". Please note the end date can not be earlier than the start date. They can be equal. ",1)]),(0,l.Lk)("div",r,[(0,l.Lk)("div",i,[(0,l.Lk)("label",null,[(0,l.eW)((0,d.toDisplayString)(a.destination)+" Start Date: ",1),(0,l.bF)(D,{"error-list":h.v$.localStartDateModel.$errors},null,8,["error-list"])]),(0,l.bF)(m,{type:"datetime",value:y.localStartDateModel,"onUpdate:value":t[0]||(t[0]=e=>y.localStartDateModel=e),disabled:e.userLevel<=1||a.isReadOnly},null,8,["value","disabled"])])]),(0,l.Lk)("div",u,[(0,l.Lk)("div",c,[(0,l.Lk)("label",null,[(0,l.eW)((0,d.toDisplayString)(a.destination)+" End Date: ",1),(0,l.bF)(D,{"error-list":h.v$.localEndDateModel.$errors},null,8,["error-list"])]),(0,l.bF)(m,{type:"datetime",value:y.localEndDateModel,"onUpdate:value":t[1]||(t[1]=e=>y.localEndDateModel=e),disabled:e.userLevel<=1||a.isReadOnly},null,8,["value","disabled"])])])])}]])},9489:(e,t,a)=>{a.d(t,{A:()=>O});var l=a(641),d=a(33),o=a(3751);const s={class:"row"},n={class:"col-md-8"},r={class:"row mt-4"},i={class:"col-md-6"},u={key:0,class:"error"},c={class:"col-md-6"},h={key:0,class:"row mt-4"},y={class:"col-md-6"},M={key:0,class:"error"},D={key:1,class:"row mt-4"},m={class:"col-md-6"},p={key:0,class:"error"},f={key:2,class:"row mt-4"},b={class:"text-center col-md-1"},v=["for"],k=["value","id"],g={class:"col-md-5"},E={key:0,class:"error"},L={key:3,class:"row mt-4"},S={class:"col-md-3"},F={key:4,class:"row mt-4"},C={class:"col-md-3"},T={key:0,class:"error"};var w=a(8105),A=a(8140),q=a(1080);const I={name:"SchedulerFrequency",components:{NDatePicker:w.A,NInputNumber:A.A,NSelect:q.A},props:{daysBefore:{type:Number,default:0},day:{type:Array,default:()=>[]},endDateCondition:{type:String,default:"no-end-date"},endDate:{type:Number,default:0},numberOfRepeats:{type:Number,default:0},schedulerFrequency:{type:String,default:"Set Day of the Week"},singleDay:{type:String,default:"monday"},startDate:{type:Number,default:0}},data(){return{daysBeforeModel:this.daysBefore,dayModel:this.day,dayOfTheWeekArray:[{value:"monday",shortLabel:"Mon",label:"Monday"},{value:"tuesday",shortLabel:"Tue",label:"Tuesday"},{value:"wednesday",shortLabel:"Wed",label:"Wednesday"},{value:"thursday",shortLabel:"Thur",label:"Thursday"},{value:"friday",shortLabel:"Fri",label:"Friday"},{value:"saturday",shortLabel:"Sat",label:"Saturday"},{value:"sunday",shortLabel:"Sun",label:"Sunday"}],endDateConditionList:[{value:"no-end-date",label:"No End Date"},{value:"number-of-repeats",label:"Number of Repeats"},{value:"end-date",label:"End Date"}],endDateConditionModel:this.endDateCondition,endDateModel:this.endDate,isFormValid:!1,numberOfRepeatsModel:this.numberOfRepeats,schedulerFrequencyModel:this.schedulerFrequency,schedulerFrequencyOptions:[{value:"Set Day of the Week",label:"Set Day of the Week"},{value:"Weekly",label:"Weekly"},{value:"Fortnightly",label:"Fortnightly"},{value:"Monthly",label:"Monthly"},{value:"Start of the Month",label:"Start of the Month"},{value:"End of the Month",label:"End of the Month"},{value:"X Days before End of the Month",label:"X Days before End of the Month"}],singleDayModel:this.singleDay,startDateModel:this.startDate}},computed:{calendarType(){return["Start of the Month","End of the Month"].includes(this.schedulerFrequencyModel)?"month":"date"},calendarFormat(){return["Start of the Month","End of the Month"].includes(this.schedulerFrequencyModel)?"y-MMM":"y-MM-dd"}},watch:{dayModel(){this.updateIsValid()},daysBeforeModel(){this.updateIsValid()},endDateConditionModel(){this.updateIsValid()},endDateModel(){this.updateIsValid()},numberOfRepeatsModel(){this.updateIsValid()},schedulerFrequencyModel(){this.updateIsValid()},singleDayModel(){this.updateIsValid()},startDateModel(){this.updateIsValid()}},methods:{endDateDisabled(e){return this.startDateModel>=e},sendDataUpstream(){this.$emit("update_scheduler_frequency",{dayModel:this.dayModel,daysBeforeModel:this.daysBeforeModel,endDateConditionModel:this.endDateConditionModel,endDateModel:this.endDateModel,isFormValid:this.isFormValid,numberOfRepeatsModel:this.numberOfRepeatsModel,schedulerFrequencyModel:this.schedulerFrequencyModel,singleDayModel:this.singleDayModel,startDateModel:this.startDateModel})},startDateDisabled(e){const t=new Date;return t.setMilliseconds(999),t.setSeconds(59),t.setMinutes(59),t.setHours(23),e<=t.getTime()},updateIsValid(){let e=!0;null!==this.startDateModel&&""!==this.startDateModel||(e=!1),"number-of-repeats"===this.endDateConditionModel&&null===this.numberOfRepeatsModel&&(this.numberOfRepeatsModel=0),"end-date"===this.endDateConditionModel&&null===this.endDateModel&&(this.endDateModel=this.startDateModel),"Set Day of the Week"===this.schedulerFrequencyModel&&0===this.dayModel.length&&(e=!1),"X Days before End of the Month"===this.schedulerFrequencyModel&&null===this.daysBeforeModel&&(this.daysBeforeModel=0),this.isFormValid=e,this.sendDataUpstream()}},mounted(){const e=new Date;e.setHours(9),e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),this.startDateModel=e.getTime()+864e5,this.endDateModel=e.getTime()+6048e5}},O=(0,a(6262).A)(I,[["render",function(e,t,a,w,A,q){const I=(0,l.g2)("n-select"),O=(0,l.g2)("n-date-picker"),W=(0,l.g2)("n-input-number");return(0,l.uX)(),(0,l.CE)("div",s,[t[15]||(t[15]=(0,l.Lk)("div",{class:"col-md-4"},[(0,l.Lk)("h2",null,"Scheduler Frequency"),(0,l.Lk)("p",{class:"text-instructions"}," Choose the appropriate schedule frequency. Then fill out the required data. Please take note of the fields; number of repeats. ")],-1)),(0,l.Lk)("div",n,[(0,l.Lk)("div",null,[t[8]||(t[8]=(0,l.Lk)("label",null,"Scheduler Object Frequency",-1)),(0,l.bF)(I,{options:A.schedulerFrequencyOptions,value:A.schedulerFrequencyModel,"onUpdate:value":t[0]||(t[0]=e=>A.schedulerFrequencyModel=e)},null,8,["options","value"])]),(0,l.Q3)(" START DATE "),(0,l.Lk)("div",r,[(0,l.Lk)("div",i,[(0,l.Lk)("label",null,[t[9]||(t[9]=(0,l.eW)(" Start Date ")),null===A.startDateModel||""===A.startDateModel?((0,l.uX)(),(0,l.CE)("span",u," Please select a date ")):(0,l.Q3)("v-if",!0)]),(0,l.bF)(O,{type:q.calendarType,value:A.startDateModel,"onUpdate:value":t[1]||(t[1]=e=>A.startDateModel=e),actions:[],format:q.calendarFormat,"is-date-disabled":q.startDateDisabled,"month-format":"MMM"},null,8,["type","value","format","is-date-disabled"])]),(0,l.Lk)("div",c,[t[10]||(t[10]=(0,l.Lk)("label",null,"End Date Condition",-1)),(0,l.bF)(I,{options:A.endDateConditionList,value:A.endDateConditionModel,"onUpdate:value":t[2]||(t[2]=e=>A.endDateConditionModel=e)},null,8,["options","value"])])]),"end-date"===A.endDateConditionModel?((0,l.uX)(),(0,l.CE)("div",h,[(0,l.Lk)("div",y,[(0,l.Lk)("label",null,[t[11]||(t[11]=(0,l.eW)(" End Date ")),null===A.endDateModel?((0,l.uX)(),(0,l.CE)("span",M," Please select a date ")):(0,l.Q3)("v-if",!0)]),(0,l.bF)(O,{type:q.calendarType,value:A.endDateModel,"onUpdate:value":t[3]||(t[3]=e=>A.endDateModel=e),actions:[],format:q.calendarFormat,"is-date-disabled":q.endDateDisabled},null,8,["type","value","format","is-date-disabled"])])])):(0,l.Q3)("v-if",!0),"number-of-repeats"===A.endDateConditionModel?((0,l.uX)(),(0,l.CE)("div",D,[(0,l.Lk)("div",m,[(0,l.Lk)("label",null,[t[12]||(t[12]=(0,l.eW)(" Number of Repeats ")),null===A.numberOfRepeatsModel?((0,l.uX)(),(0,l.CE)("span",p," Please fill out ")):(0,l.Q3)("v-if",!0)]),(0,l.bF)(W,{value:A.numberOfRepeatsModel,"onUpdate:value":t[4]||(t[4]=e=>A.numberOfRepeatsModel=e),min:"0"},null,8,["value"])])])):(0,l.Q3)("v-if",!0),(0,l.Q3)(" Day picker "),"Set Day of the Week"===A.schedulerFrequencyModel?((0,l.uX)(),(0,l.CE)("div",f,[((0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(A.dayOfTheWeekArray,(e=>((0,l.uX)(),(0,l.CE)("div",b,[(0,l.Lk)("label",{for:`checkbox_${e.value}`},(0,d.toDisplayString)(e.shortLabel),9,v),(0,l.bo)((0,l.Lk)("input",{type:"checkbox",value:e.value,id:`checkbox_${e.value}`,"onUpdate:modelValue":t[5]||(t[5]=e=>A.dayModel=e)},null,8,k),[[o.vModelCheckbox,A.dayModel]])])))),256)),(0,l.Lk)("div",g,[0===A.dayModel.length?((0,l.uX)(),(0,l.CE)("label",E," Please select at least one day. ")):(0,l.Q3)("v-if",!0)])])):(0,l.Q3)("v-if",!0),(0,l.Q3)(" Weekly picker "),["Weekly","Fortnightly"].includes(A.schedulerFrequencyModel)?((0,l.uX)(),(0,l.CE)("div",L,[(0,l.Lk)("div",S,[t[13]||(t[13]=(0,l.Lk)("label",null,"Day of Week",-1)),(0,l.bF)(I,{options:A.dayOfTheWeekArray,value:A.singleDayModel,"onUpdate:value":t[6]||(t[6]=e=>A.singleDayModel=e),class:"form-group"},null,8,["options","value"])])])):(0,l.Q3)("v-if",!0),(0,l.Q3)(" X Days before End of the Month "),"X Days before End of the Month"===A.schedulerFrequencyModel?((0,l.uX)(),(0,l.CE)("div",F,[(0,l.Lk)("div",C,[(0,l.Lk)("label",null,[t[14]||(t[14]=(0,l.eW)(" Days Before ")),null===A.daysBeforeModel?((0,l.uX)(),(0,l.CE)("span",T," Please fill ")):(0,l.Q3)("v-if",!0)]),(0,l.bF)(W,{value:A.daysBeforeModel,"onUpdate:value":t[7]||(t[7]=e=>A.daysBeforeModel=e),min:"0",max:"14"},null,8,["value"])])])):(0,l.Q3)("v-if",!0)])])}]])},404:(e,t,a)=>{a.d(t,{A:()=>s});var l=a(641),d=a(33);const o={name:"ValidationRendering",props:{errorList:{type:Array,default:()=>[]}}},s=(0,a(6262).A)(o,[["render",function(e,t,a,o,s,n){return(0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(a.errorList,(e=>((0,l.uX)(),(0,l.CE)("span",{class:"error",key:e.$uid},(0,d.toDisplayString)(e.$message),1)))),128)}]])},8083:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(6285);const d={methods:{getNiceDatetime:e=>""===e||null==e?"":l.c9.fromISO(e).toLocaleString(l.c9.DATETIME_MED),getNiceDatetimeFromInt:e=>""===e||null==e?"":l.c9.fromMillis(e).toLocaleString(l.c9.DATETIME_MED),getNiceDate:e=>""===e||null==e?"":l.c9.fromISO(e).toLocaleString(l.c9.DATE_MED_WITH_WEEKDAY),disableDate(e){const t=new Date;return t.setMilliseconds(0),t.setSeconds(0),t.setMinutes(0),t.setHours(0),e<=t.getTime()-36e5}}}},9827:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(7413);const d={data:()=>({darkTheme:l.a}),methods:{getTheme:e=>"dark"===e?l.a:null}}},379:(e,t,a)=>{a.d(t,{A:()=>d});var l=a(1083);const d={computed:{...(0,a(2124).L8)({destination:"getDestination",locationId:"getLocationId",rootUrl:"getRootUrl"})},methods:{uploadImage(e){const t=new FormData;return t.set("document",e.blob(),e.filename()),t.set("document_description",e.filename()),this.axios.post(`${this.rootUrl}documentation/${this.destination}/${this.locationId}/upload/`,t,{onUploadProgress:()=>{}}).then((e=>`/private/${e.data[0].document_key_id}`)).catch((e=>{this.$store.dispatch("newToast",{header:"Failed to upload image",message:`Sorry, could not upload image. Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))},newObjectUploadImage(e){const t=new FormData;return t.set("document",e.blob(),e.filename()),t.set("document_description",e.filename()),t.set("uuid",this.uuid),l.A.post(`${this.rootUrl}documentation/new_object_upload/`,t,{onUploadProgress:()=>{}}).then((e=>`/private/${e.data[0].document_key_id}`)).catch((e=>{this.$store.dispatch("newToast",{header:"Failed to upload image",message:`Sorry, could not upload image. Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))}}}}}]); \ No newline at end of file diff --git a/NearBeach/static/NearBeach/331.min.js.gz b/NearBeach/static/NearBeach/331.min.js.gz new file mode 100644 index 000000000..ff52fd669 Binary files /dev/null and b/NearBeach/static/NearBeach/331.min.js.gz differ diff --git a/NearBeach/static/NearBeach/4619.min.js b/NearBeach/static/NearBeach/4619.min.js new file mode 100644 index 000000000..a3697f3f8 --- /dev/null +++ b/NearBeach/static/NearBeach/4619.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[4619],{8838:(t,e,o)=>{o.d(e,{A:()=>f});var n,s=o(641),a=["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"],i=function(t){return-1!==a.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)},d=function(t){return void 0===t||""===t?[]:Array.isArray(t)?t:t.split(" ")},c=function(){return{listeners:[],scriptId:l("tiny-script"),scriptLoaded:!1}},u=(n=c(),{load:function(t,e,o){n.scriptLoaded?o():(n.listeners.push(o),t.getElementById(n.scriptId)||function(t,e,o){var s=e.createElement("script");s.referrerPolicy="origin",s.type="application/javascript",s.id=t,s.src=o;var a=function(){s.removeEventListener("load",a),n.listeners.forEach((function(t){return t()})),n.scriptLoaded=!0};s.addEventListener("load",a),e.head&&e.head.appendChild(s)}(n.scriptId,t,e))},reinitialize:function(){n=c()}}),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),h=function(){return h=Object.assign||function(t){for(var e,o=1,n=arguments.length;o{o.d(e,{A:()=>T});var n=o(641),s=o(33);const a={class:"customer-list"},i=["src"],r={class:"customer-card--details"},l={class:"customer-card--name"},d=["href"],c={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"},h={class:"modal-dialog"},v={class:"modal-content"},f={class:"modal-body"},b={class:"customer-card--details"},y={class:"customer-card--name"},L=["href"],k={class:"customer-card--email"},C={class:"modal-footer"};var _=o(2124);const S={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,_.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 I=o(6262);const w=(0,I.A)(S,[["render",function(t,e,o,a,i,r){return(0,n.uX)(),(0,n.CE)("div",p,[(0,n.Lk)("div",h,[(0,n.Lk)("div",v,[e[2]||(e[2]=(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)),(0,n.Lk)("div",f,[(0,n.Lk)("div",b,[(0,n.Lk)("div",y,[(0,n.Lk)("a",{href:`${t.rootUrl}customer_information/${o.customerObject.customer_id}/`,target:"_blank",rel:"noopener noreferrer"},(0,s.toDisplayString)(o.customerObject.customer_first_name)+" "+(0,s.toDisplayString)(o.customerObject.customer_last_name),9,L)]),(0,n.Lk)("div",k,(0,s.toDisplayString)(o.customerObject.customer_email),1)])]),(0,n.Lk)("div",C,[(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 A=o(2243);const E={name:"CustomersListModule",components:{ConfirmCustomerRemoval:w,Icon:g.In},props:{customerResults:{type:Array,default:()=>[]}},computed:{...(0,_.L8)({destination:"getDestination",locationId:"getLocationId",rootUrl:"getRootUrl",staticUrl:"getStaticUrl",userLevel:"getUserLevel"}),defaultCustomerImage(){return`${this.staticUrl}/NearBeach/images/placeholder/people_tax.svg`}},mixins:[A.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)}}},T=(0,I.A)(E,[["render",function(t,e,o,m,g,p){const h=(0,n.g2)("Icon"),v=(0,n.g2)("confirm-customer-removal");return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Lk)("div",a,[((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,i),(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,d)]),(0,n.Lk)("div",c,[(0,n.bF)(h,{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)(h,{icon:t.icons.trashCan,onClick:t=>p.confirmRemoveCustomer(e.pk)},null,8,["icon","onClick"])])):(0,n.Q3)("v-if",!0)])))),128))]),(0,n.bF)(v,{"customer-object":g.customerObject,onRemove_customer:e[0]||(e[0]=t=>p.removeCustomer(t))},null,8,["customer-object"])],64)}]])},2730:(t,e,o)=>{o.d(e,{A:()=>E});var n=o(641),s=o(33);const a={class:"text-instructions"},i={class:"tag-list"},r=["onClick"],l={class:"row submit-row"},d={class:"col-md-12"};var c=o(9336),u=o(2321),m=o(2243);const g={class:"modal fade",id:"addTagModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},p={class:"modal-dialog"},h={class:"modal-content"},v={class:"modal-header"},f={class:"modal-body"},b={class:"row"},y={class:"col-md-4"},L={class:"text-instructions"},k={class:"col-md-8"},C={class:"modal-footer"};var _=o(1080),S=o(2124);const I={name:"AddTagWizard",components:{Icon:u.In,NSelect:_.A},props:{assignedTags:{type:Array,default:()=>[]},destination:{type:String,default:""},locationId:{type:Number,default:0}},mixins:[m.A],data:()=>({allTagList:[],tagModel:[]}),computed:{...(0,S.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 w=o(6262);const A={name:"ListTagsModule",components:{AddTagWizard:(0,w.A)(I,[["render",function(t,e,o,a,i,r){const l=(0,n.g2)("Icon"),d=(0,n.g2)("n-select");return(0,n.uX)(),(0,n.CE)("div",g,[(0,n.Lk)("div",p,[(0,n.Lk)("div",h,[(0,n.Lk)("div",v,[(0,n.Lk)("h2",null,[(0,n.bF)(l,{icon:t.icons.usersIcon},null,8,["icon"]),e[2]||(e[2]=(0,n.eW)(" Add Tags Wizard "))]),e[3]||(e[3]=(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))]),(0,n.Lk)("div",f,[(0,n.Lk)("div",b,[(0,n.Lk)("div",y,[e[4]||(e[4]=(0,n.Lk)("strong",null,"Add Tag",-1)),(0,n.Lk)("p",L," Use the dropdown to select one or many lables to add to the "+(0,s.toDisplayString)(o.destination)+". ",1)]),(0,n.Lk)("div",k,[e[5]||(e[5]=(0,n.Lk)("label",null,"All Tag List",-1)),(0,n.bF)(d,{label:"tag",multiple:"",options:r.tagList,value:i.tagModel,"onUpdate:value":e[0]||(e[0]=t=>i.tagModel=t)},null,8,["options","value"])])])]),(0,n.Lk)("div",C,[e[6]||(e[6]=(0,n.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1)),(0,n.Lk)("button",{type:"button",class:"btn btn-primary",onClick:e[1]||(e[1]=(...t)=>r.addTag&&r.addTag(...t))}," Add Tag ")])])])])}]]),Icon:u.In},data:()=>({tagList:[]}),mixins:[m.A],computed:{...(0,S.L8)({destination:"getDestination",locationId:"getLocationId",rootUrl:"getRootUrl",userLevel:"getUserLevel"})},methods:{addTags(t){this.tagList=t},createNewTag(){new c.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=>{this.$store.dispatch("newToast",{header:"Error Getting Assigned Tags",message:`Error getting assigned tags. Error -> ${t}`,extra_classes:"bg-danger",delay:0})}))},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((()=>{this.tagList=this.tagList.filter((e=>e.pk!==t))})).catch((t=>{this.$store.dispatch("newToast",{header:"Error Removing Tag",message:`Sorry, we could not remove the tag. Error -> ${t}`,extra_classes:"bg-danger",delay:0})}))}},mounted(){["requirement_item"].indexOf(this.destination)>=0||this.$nextTick((()=>{this.getAssignedTags()}))}},E=(0,w.A)(A,[["render",function(t,e,o,c,u,m){const g=(0,n.g2)("Icon"),p=(0,n.g2)("add-tag-wizard");return(0,n.uX)(),(0,n.CE)("div",null,[e[2]||(e[2]=(0,n.Lk)("h2",null,"Assigned Tags",-1)),(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",i,[((0,n.uX)(!0),(0,n.CE)(n.FK,null,(0,n.pI)(u.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=>m.removeTag(e.pk)},[t.userLevel>1?((0,n.uX)(),(0,n.Wv)(g,{key:0,icon:t.icons.xCircle},null,8,["icon"])):(0,n.Q3)("v-if",!0)],8,r)],4)))),128))]),(0,n.Q3)(" ADD TAG BUTTON "),(0,n.Lk)("div",l,[(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)=>m.createNewTag&&m.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)(p,{destination:t.destination,"location-id":t.locationId,"assigned-tags":u.tagList,onAdd_tags:e[1]||(e[1]=t=>m.addTags(t))},null,8,["destination","location-id","assigned-tags"])])}]])},8045:(t,e,o)=>{o.d(e,{A:()=>h});var n=o(641),s=o(33);const a={class:"text-instructions"},i={key:0},r={class:"row submit-row"},l={class:"col-md-12"};var d=o(9336),c=o(2243),u=o(2321),m=o(559),g=o(2124);const p={name:"NotesModule",components:{Icon:u.In,ListNotes:m.A},mixins:[c.A],computed:{...(0,g.L8)({destination:"getDestination",locationId:"getLocationId",userLevel:"getUserLevel",rootUrl:"getRootUrl"}),...(0,g.L8)(["getUserExtraPermission"]),hasNotePermission(){return this.getUserExtraPermission(`${this.destination}_note`)}},methods:{createNewNote(){new d.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)(p,[["render",function(t,e,o,d,c,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"]),e[1]||(e[1]=(0,n.eW)(" Note History "))]),(0,n.Lk)("p",a," 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||u.hasNotePermission?((0,n.uX)(),(0,n.CE)("hr",i)):(0,n.Q3)("v-if",!0),(0,n.Lk)("div",r,[(0,n.Lk)("div",l,[t.userLevel>1||u.hasNotePermission?((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 a={class:"object-card-list"},i={class:"object-card--detail"},r=["href"],l={class:"object-card--detail--link"},d={class:"object-card--detail--description"},c={class:"object-card--status"},u=["href"],m={class:"object-card--status--status"},g={class:"small-text"};var p=o(8083),h=o(2124);const v={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,h.L8)({rootUrl:"getRootUrl"})}},f=(0,o(6262).A)(v,[["render",function(t,e,o,p,h,v){return(0,n.uX)(),(0,n.CE)("div",a,[(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",i,[(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",d,(0,s.toDisplayString)(e[o.importVariables.title]),1)],8,r)]),(0,n.Lk)("div",c,[(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/4619.min.js.gz b/NearBeach/static/NearBeach/4619.min.js.gz new file mode 100644 index 000000000..c60698c8d Binary files /dev/null and b/NearBeach/static/NearBeach/4619.min.js.gz differ diff --git a/NearBeach/static/NearBeach/5162.min.js b/NearBeach/static/NearBeach/5162.min.js new file mode 100644 index 000000000..a5c3acdef --- /dev/null +++ b/NearBeach/static/NearBeach/5162.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[5162],{2713:(e,t,o)=>{o.d(t,{A:()=>I});var n=o(641),i=o(33);const s={class:"text-instructions"},d={key:0,class:"module-spacer"},a={key:1,class:"document--widget"},l=["onClick"],r={class:"text-instructions"},c={key:0,class:"document--remove"},u=["href"],m={class:"text-instructions"},p={key:0,class:"document--remove"},h={key:2},g={key:3,class:"btn-group save-changes"},b={key:0,class:"btn btn-primary dropdown-toggle",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false"},k={class:"dropdown-menu"};var y=o(9336),L=o(2321),f=o(2243),v=o(2124);const D={name:"DocumentsModule",components:{Icon:L.In},props:{overrideDestination:{type:String,default:""},overrideLocationId:{type:Number,default:0},readOnly:{type:Boolean,default:!1}},mixins:[f.A],computed:{...(0,v.L8)({currentFolder:"getCurrentFolder",destination:"getDestination",documentFilteredList:"getDocumentFilteredList",documentObjectCount:"getDocumentObjectCount",folderFilteredList:"getFolderFilteredList",locationId:"getLocationId",rootUrl:"getRootUrl",userLevel:"getUserLevel"}),...(0,v.L8)(["getUserExtraPermission"]),hasDocumentPermission(){return this.getUserExtraPermission("document")}},watch:{overrideLocationId(){this.getDocumentList(),this.getFolderList()}},methods:{addFolder(){const e=document.getElementById("cardInformationModalCloseButton");null!==e&&e.click(),new y.aF(document.getElementById("addFolderModal")).show()},addLink(){const e=document.getElementById("cardInformationModalCloseButton");null!==e&&e.click(),new y.aF(document.getElementById("addLinkModal")).show()},confirmFileDelete(e){this.$store.commit({type:"updateDocumentRemoveKey",documentRemoveKey:e});const t=document.getElementById("cardInformationModalCloseButton");null!==t&&t.click(),new y.aF(document.getElementById("confirmFileDeleteModal")).show()},confirmFolderDelete(e){this.$store.commit({type:"updateFolderRemoveId",folderRemoveId:e});const t=document.getElementById("cardInformationModalCloseButton");null!==t&&t.click(),new y.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 y.aF(document.getElementById("uploadDocumentModal")).show()}},mounted(){this.$nextTick((()=>{this.getDocumentList(),this.getFolderList()}))}},I=(0,o(6262).A)(D,[["render",function(e,t,o,y,L,f){const v=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",null,[(0,n.Lk)("h2",null,[(0,n.bF)(v,{icon:e.icons.bxBriefcase},null,8,["icon"]),t[4]||(t[4]=(0,n.eW)(" Documents "))]),(0,n.Lk)("p",s," 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",d,t[5]||(t[5]=[(0,n.Lk)("div",{class:"alert alert-dark"}," Sorry - there are no documents or folders uploaded. ",-1)]))):((0,n.uX)(),(0,n.CE)("div",a,[(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=>f.goToParentDirectory()),class:"document--child"},[(0,n.bF)(v,{icon:e.icons.arrowUp,width:"80px",height:"80px"},null,8,["icon"]),t[6]||(t[6]=(0,n.Lk)("p",{class:"text-instructions"},"Go to Parent Directory...",-1))])):(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=>f.updateCurrentFolder(t.pk)},[(0,n.bF)(v,{icon:e.icons.folderIcon,width:"80px",height:"80px"},null,8,["icon"]),(0,n.Lk)("p",r,(0,i.toDisplayString)(f.shortName(t.fields.folder_description)),1)],8,l),(0,n.Q3)(" REMOVE FOLDER "),e.userLevel>=2?((0,n.uX)(),(0,n.CE)("div",c,[(0,n.bF)(v,{icon:e.icons.trashCan,onClick:e=>f.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)(v,{icon:f.getIcon(t),width:"80px",height:"80px"},null,8,["icon"]),(0,n.Lk)("p",m,(0,i.toDisplayString)(f.shortName(t.document_key__document_description)),1)],8,u),(0,n.Q3)(" REMOVE DOCUMENT "),e.userLevel>=2?((0,n.uX)(),(0,n.CE)("div",p,[(0,n.bF)(v,{icon:e.icons.trashCan,onClick:e=>f.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||f.hasDocumentPermission?((0,n.uX)(),(0,n.CE)("hr",h)):(0,n.Q3)("v-if",!0),!1===o.readOnly?((0,n.uX)(),(0,n.CE)("div",g,[e.userLevel>1||f.hasDocumentPermission?((0,n.uX)(),(0,n.CE)("button",b," New Document/File ")):(0,n.Q3)("v-if",!0),(0,n.Lk)("ul",k,[(0,n.Lk)("li",null,[(0,n.Lk)("a",{class:"dropdown-item",href:"javascript:void(0)",onClick:t[1]||(t[1]=(...e)=>f.uploadDocument&&f.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)=>f.addLink&&f.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)=>f.addFolder&&f.addFolder(...e))}," Add Folder ")])])])):(0,n.Q3)("v-if",!0)])}]])},559:(e,t,o)=>{o.d(t,{A:()=>v});var n=o(641),i=o(33);const s={key:0,class:"module-spacer"},d={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),y=o(2124),L=o(8083);const f={name:"ListNotes",components:{editor:b.A},mixins:[L.A],props:{destination:{type:String,default:""}},computed:{...(0,y.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,y){const L=(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",s,[(0,n.Lk)("div",d," 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:y.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=>y.editNote(t.object_note_id)}," Edit Note ",8,p),(0,n.Lk)("button",{type:"button",class:"btn btn-outline-danger",onClick:e=>y.deleteNote(t.object_note_id)}," Delete Note ",8,h)])):(0,n.Q3)("v-if",!0)]),(0,n.Lk)("div",g,[(0,n.bF)(L,{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))]))])}]])},5081:(e,t,o)=>{o.d(t,{A:()=>f});var n=o(641),i=o(3751);const s={class:"modal fade",id:"addFolderModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},d={class:"modal-dialog modal-lg"},a={class:"modal-content"},l={class:"modal-header"},r={class:"modal-body"},c={class:"row"},u={class:"col-md-8"},m={class:"form-group"},p={class:"modal-footer"},h=["disabled"];var g=o(2321),b=o(2124),k=o(2243),y=o(9022);const L={name:"AddFolderWizard",components:{Icon:g.In},props:{destination:{type:String,default:"/"},locationId:{type:Number,default:0}},mixins:[k.A,y.A],data:()=>({disableAddFolderButton:!0,folderDescriptionModel:""}),computed:{...(0,b.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}},f=(0,o(6262).A)(L,[["render",function(e,t,o,g,b,k){const y=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",s,[(0,n.Lk)("div",d,[(0,n.Lk)("div",a,[(0,n.Lk)("div",l,[(0,n.Lk)("h2",null,[(0,n.bF)(y,{icon:e.icons.userIcon},null,8,["icon"]),t[2]||(t[2]=(0,n.eW)(" Add Folder Wizard "))]),t[3]||(t[3]=(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))]),(0,n.Lk)("div",r,[(0,n.Lk)("div",c,[t[5]||(t[5]=(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)),(0,n.Lk)("div",u,[(0,n.Lk)("div",m,[t[4]||(t[4]=(0,n.Lk)("label",{for:"folder_description"},"Folder Name",-1)),(0,n.bo)((0,n.Lk)("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=e=>b.folderDescriptionModel=e),class:"form-control",id:"folder_description",maxlength:"50"},null,512),[[i.vModelText,b.folderDescriptionModel]])])])])]),(0,n.Lk)("div",p,[t[6]||(t[6]=(0,n.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1)),(0,n.Lk)("button",{type:"button",class:"btn btn-primary",disabled:b.disableAddFolderButton,onClick:t[1]||(t[1]=(...e)=>k.addFolder&&k.addFolder(...e))}," Add Folder ",8,h)])])])])}]])},5067:(e,t,o)=>{o.d(t,{A:()=>_});var n=o(641),i=o(3751);const s={class:"modal fade",id:"addLinkModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},d={class:"modal-dialog modal-lg"},a={class:"modal-content"},l={class:"modal-header"},r={class:"modal-body"},c={class:"row"},u={class:"col-md-8"},m={class:"form-group"},p={for:"document_description"},h={key:0,class:"error"},g={class:"form-group"},b={for:"document_url_location"},k={class:"modal-footer"},y=["disabled"];var L=o(2321),f=o(2124),v=o(2243),D=o(9022),I=o(9639),C=o(3855),F=o(404);const E={name:"AddLinkWizard",setup:()=>({v$:(0,I.Ay)()}),components:{Icon:L.In,ValidationRendering:F.A},props:{destination:{type:String,default:"/"},locationId:{type:Number,default:0}},mixins:[v.A,D.A],data:()=>({linkModel:"",disableAddButton:!0,documentDescriptionModel:"",documentUrlLocationModel:"",duplicateDescription:!1}),validations:{documentDescriptionModel:{required:C.mw},documentUrlLocationModel:{required:C.mw,url:C.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}},_=(0,o(6262).A)(E,[["render",function(e,t,o,L,f,v){const D=(0,n.g2)("Icon"),I=(0,n.g2)("validation-rendering");return(0,n.uX)(),(0,n.CE)("div",s,[(0,n.Lk)("div",d,[(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"]),t[3]||(t[3]=(0,n.eW)(" Add Link Wizard "))]),t[4]||(t[4]=(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))]),(0,n.Lk)("div",r,[(0,n.Lk)("div",c,[t[7]||(t[7]=(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)),(0,n.Lk)("div",u,[(0,n.Lk)("div",m,[(0,n.Lk)("label",p,[t[5]||(t[5]=(0,n.eW)(" Document Description ")),(0,n.bF)(I,{"error-list":L.v$.documentDescriptionModel.$errors},null,8,["error-list"]),f.duplicateDescription?((0,n.uX)(),(0,n.CE)("span",h," 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",g,[(0,n.Lk)("label",b,[t[6]||(t[6]=(0,n.eW)(" Document URL ")),(0,n.bF)(I,{"error-list":L.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",k,[t[8]||(t[8]=(0,n.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1)),(0,n.Lk)("button",{type:"button",class:"btn btn-primary",onClick:t[2]||(t[2]=(...e)=>v.addLink&&v.addLink(...e)),disabled:f.disableAddButton}," Add Link ",8,y)])])])])}]])},8737:(e,t,o)=>{o.d(t,{A:()=>c});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"},s={class:"modal-dialog"},d={class:"modal-content"},a={class:"modal-footer"};var l=o(2124);const r={name:"ConfirmFileDelete",mixins:[o(9022).A],computed:{...(0,l.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()}}},c=(0,o(6262).A)(r,[["render",function(e,t,o,l,r,c){return(0,n.uX)(),(0,n.CE)("div",i,[(0,n.Lk)("div",s,[(0,n.Lk)("div",d,[t[2]||(t[2]=(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)),t[3]||(t[3]=(0,n.Lk)("div",{class:"modal-body"}," Are you sure you want to delete the file? ",-1)),(0,n.Lk)("div",a,[(0,n.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:t[0]||(t[0]=(...e)=>c.closeModal&&c.closeModal(...e))}," No "),(0,n.Lk)("button",{type:"button",class:"btn btn-primary",onClick:t[1]||(t[1]=(...e)=>c.deleteFile&&c.deleteFile(...e))}," Yes ")])])])])}]])},4678:(e,t,o)=>{o.d(t,{A:()=>u});var n=o(641);const i={class:"modal fade",id:"confirmNoteDeleteModal",tabindex:"-1","data-bs-backdrop":"static","data-bs-keyboard":"false","aria-labelledby":"confirmLinkDelete","aria-hidden":"true"},s={class:"modal-dialog"},d={class:"modal-content"},a={class:"modal-footer"};var l=o(2124),r=o(9022);const c={name:"ConfirmNoteDelete",props:{},computed:{...(0,l.L8)({destination:"getDestination",noteId:"getSingleNoteId",rootUrl:"getRootUrl"})},mixins:[r.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}/`;"organisation"===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()}}},u=(0,o(6262).A)(c,[["render",function(e,t,o,l,r,c){return(0,n.uX)(),(0,n.CE)("div",i,[(0,n.Lk)("div",s,[(0,n.Lk)("div",d,[t[2]||(t[2]=(0,n.Lk)("div",{class:"modal-header"},[(0,n.Lk)("h5",{class:"modal-title",id:"confirmNoteDelete"}," Please confirm Note Deletion "),(0,n.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"confirmNoteDeleteButton"})],-1)),t[3]||(t[3]=(0,n.Lk)("div",{class:"modal-body"}," Are you sure you want to delete the note? ",-1)),(0,n.Lk)("div",a,[(0,n.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:t[0]||(t[0]=(...e)=>c.closeModal&&c.closeModal(...e))}," No "),(0,n.Lk)("button",{type:"button",class:"btn btn-primary",onClick:t[1]||(t[1]=(...e)=>c.deleteNote&&c.deleteNote(...e))}," Yes ")])])])])}]])},150:(e,t,o)=>{o.d(t,{A:()=>k});var n=o(641);const i={class:"modal fade",id:"editNoteModal",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},s={class:"modal-dialog modal-lg modal-fullscreen-lg-down",role:"document"},d={class:"modal-content"},a={class:"modal-header"},l={class:"modal-body"},r={class:"modal-footer"},c=["disabled"];var u=o(2243),m=o(9022),p=o(2321),h=o(8838),g=o(2124);const b={name:"EditHistoryNoteWizard",components:{editor:h.A,Icon:p.In},mixins:[u.A,m.A],data:()=>({noteModel:""}),computed:{...(0,g.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"})}))}}},k=(0,o(6262).A)(b,[["render",function(e,t,o,u,m,p){const h=(0,n.g2)("Icon"),g=(0,n.g2)("editor");return(0,n.uX)(),(0,n.CE)(n.FK,null,[(0,n.Q3)(" EDIT HISTORY NOTE "),(0,n.Lk)("div",i,[(0,n.Lk)("div",s,[(0,n.Lk)("div",d,[(0,n.Lk)("div",a,[(0,n.Lk)("h2",null,[(0,n.bF)(h,{icon:e.icons.noteAdd},null,8,["icon"]),t[3]||(t[3]=(0,n.eW)(" Edit Note "))]),t[4]||(t[4]=(0,n.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"editNoteCloseButton"},[(0,n.Lk)("span",{"aria-hidden":"true"})],-1))]),(0,n.Lk)("div",l,[t[5]||(t[5]=(0,n.Lk)("p",{class:"text-instructions"},' Use the text editor to edit your note. Click on the "Update" button to submit the changes. ',-1)),(0,n.bF)(g,{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:m.noteModel,"onUpdate:modelValue":t[0]||(t[0]=e=>m.noteModel=e)},null,8,["init","modelValue"])]),(0,n.Lk)("div",r,[(0,n.Lk)("button",{type:"button",class:"btn btn-primary",disabled:""==m.noteModel,onClick:t[1]||(t[1]=(...e)=>p.updateNote&&p.updateNote(...e))}," Update Note ",8,c),(0,n.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:t[2]||(t[2]=(...e)=>p.closeModal&&p.closeModal(...e))}," Close ")])])])])],2112)}]])},6169:(e,t,o)=>{o.d(t,{A:()=>b});var n=o(641);const i={class:"modal fade",id:"newNoteModal",tabindex:"-1",role:"dialog","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},s={class:"modal-dialog modal-lg modal-fullscreen-lg-down",role:"document"},d={class:"modal-content"},a={class:"modal-header"},l={class:"modal-body"},r={class:"modal-footer"},c=["disabled"];var u=o(2243),m=o(2321),p=o(8838),h=o(2124);const g={name:"NewHistoryNoteWizard",components:{editor:p.A,Icon:m.In},props:{destination:{type:String,default:""},locationId:{type:Number,default:0}},mixins:[u.A],data:()=>({newNoteModel:""}),computed:{...(0,h.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"})}))}}},b=(0,o(6262).A)(g,[["render",function(e,t,o,u,m,p){const h=(0,n.g2)("Icon"),g=(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",s,[(0,n.Lk)("div",d,[(0,n.Lk)("div",a,[(0,n.Lk)("h2",null,[(0,n.bF)(h,{icon:e.icons.noteAdd},null,8,["icon"]),t[2]||(t[2]=(0,n.eW)(" New Note "))]),t[3]||(t[3]=(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))]),(0,n.Lk)("div",l,[t[4]||(t[4]=(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)),(0,n.bF)(g,{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:m.newNoteModel,"onUpdate:modelValue":t[0]||(t[0]=e=>m.newNoteModel=e)},null,8,["init","modelValue"])]),(0,n.Lk)("div",r,[(0,n.Lk)("button",{type:"button",class:"btn btn-primary",disabled:""==m.newNoteModel,onClick:t[1]||(t[1]=(...e)=>p.submitNote&&p.submitNote(...e))}," Submit Note ",8,c),t[5]||(t[5]=(0,n.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1))])])])])],2112)}]])},5696:(e,t,o)=>{o.d(t,{A:()=>B});var n=o(641),i=o(33),s=o(3751);const d={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={class:"modal-body"},u={class:"row"},m={class:"col-md-4"},p={class:"text-instructions"},h={key:0},g={key:1},b={key:2},k={class:"col-md-8"},y={key:0,class:"form-file"},L={class:"mb-3"},f={for:"document",class:"form-label"},v={key:0,class:"alert alert-warning"},D=["accept"],I={key:1,class:"form-group"},C={class:"form-group"},F={class:"form-row mt-4"},E={key:2},_={key:0,class:"alert alert-warning"},x={class:"modal-footer"},M=["disabled"];var N=o(2321),w=o(2124),U=o(2243),A=o(9022);const $={name:"UploadDocumentWizard",components:{Icon:N.In},props:{overrideDestination:{type:String,default:""},overrideLocationId:{type:Number,default:0}},mixins:[U.A,A.A],data:()=>({disableUploadButton:!0,documentModel:[],documentDescriptionModel:"",uploadPercentage:"",maxUploadSize:0,maxUploadString:"No Upload Limit",maxUploadWarning:!1}),computed:{...(0,w.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})}))}))}},B=(0,o(6262).A)($,[["render",function(e,t,o,N,w,U){const A=(0,n.g2)("Icon");return(0,n.uX)(),(0,n.CE)("div",d,[(0,n.Lk)("div",a,[(0,n.Lk)("div",l,[(0,n.Lk)("div",r,[(0,n.Lk)("h2",null,[(0,n.bF)(A,{icon:e.icons.userIcon},null,8,["icon"]),t[4]||(t[4]=(0,n.eW)(" Upload Document Wizard "))]),t[5]||(t[5]=(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))]),(0,n.Lk)("div",c,[(0,n.Lk)("div",u,[(0,n.Lk)("div",m,[t[6]||(t[6]=(0,n.Lk)("strong",null,"Uploading File",-1)),(0,n.Lk)("p",p," You will be able to upload a file against this "+(0,i.toDisplayString)(U.getDestination)+". It will appear in the current folder. ",1),0===w.documentModel.length?((0,n.uX)(),(0,n.CE)("p",h,' 1. Please click on "Upload File" button to upload a file ')):""===w.uploadPercentage?((0,n.uX)(),(0,n.CE)("p",g,' 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",b," 3. Document is currently uploading. Please be patient. "))]),(0,n.Lk)("div",k,[0===w.documentModel.length?((0,n.uX)(),(0,n.CE)("div",y,[(0,n.Lk)("div",L,[(0,n.Lk)("label",f,[t[7]||(t[7]=(0,n.eW)(" Please upload a file")),t[8]||(t[8]=(0,n.Lk)("br",null,null,-1)),(0,n.eW)(" "+(0,i.toDisplayString)(w.maxUploadString)+" ",1),w.maxUploadWarning?((0,n.uX)(),(0,n.CE)("div",v," 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=>U.handleFileUploads(e.target.files))},null,40,D)])])):""==w.uploadPercentage?((0,n.uX)(),(0,n.CE)("div",I,[(0,n.Q3)(" DOCUMENT DESCRIPTION "),(0,n.Lk)("div",C,[t[9]||(t[9]=(0,n.Lk)("label",{for:"documentDescription"},"Document Description",-1)),(0,n.bo)((0,n.Lk)("input",{id:"documentDescription","onUpdate:modelValue":t[1]||(t[1]=e=>w.documentDescriptionModel=e),type:"text",class:"form-control"},null,512),[[s.vModelText,w.documentDescriptionModel]])]),(0,n.Q3)(" RESET FORM BUTTON "),(0,n.Lk)("div",F,[(0,n.Lk)("button",{onClick:t[2]||(t[2]=(...e)=>U.resetForm&&U.resetForm(...e)),class:"btn btn-warning"}," Reset Form ")])])):((0,n.uX)(),(0,n.CE)("div",E,[(0,n.Q3)(" THE UPLOAD SPINNER "),parseFloat(w.uploadPercentage).toFixed(0)<1?((0,n.uX)(),(0,n.CE)("div",_,[(0,n.eW)(" Uploading "+(0,i.toDisplayString)((100*parseFloat(w.uploadPercentage)).toFixed(2))+"% ",1),t[10]||(t[10]=(0,n.Lk)("div",{class:"spinner-border text-primary",role:"status"},[(0,n.Lk)("span",{class:"sr-only"},"Loading...")],-1))])):((0,n.uX)(),(0,n.CE)(n.FK,{key:1},[(0,n.Q3)(" THE FINAL WRITING "),t[11]||(t[11]=(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))],2112))]))])])]),(0,n.Lk)("div",x,[t[12]||(t[12]=(0,n.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1)),(0,n.Lk)("button",{type:"button",class:"btn btn-primary",disabled:w.disableUploadButton,onClick:t[3]||(t[3]=(...e)=>U.uploadFile&&U.uploadFile(...e))}," Upload File ",8,M)])])])])}]])},404:(e,t,o)=>{o.d(t,{A:()=>d});var n=o(641),i=o(33);const s={name:"ValidationRendering",props:{errorList:{type:Array,default:()=>[]}}},d=(0,o(6262).A)(s,[["render",function(e,t,o,s,d,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.setMinutes(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:()=>x});var n=o(8998),i=o(102),s=o(9394),d=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),y=o(9587),L=o(9675),f=o(386),v=o(6120),D=o(8086),I=o(5617),C=o(6325),F=o(6500),E=o(5707),_=o(1511);const x={data:()=>({icons:{arrowUp:n.A,bugIcon:i.A,bxBriefcase:s.A,cardChecklist:d.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:y.A,microsoftPowerpoint:L.A,microsoftWord:f.A,noteAdd:v.A,objectStorage:D.A,passwordIcon:I.A,trashCan:C.A,userIcon:F.A,usersIcon:E.A,xCircle:_.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/5162.min.js.gz b/NearBeach/static/NearBeach/5162.min.js.gz new file mode 100644 index 000000000..f1586f595 Binary files /dev/null and b/NearBeach/static/NearBeach/5162.min.js.gz differ diff --git a/NearBeach/static/NearBeach/7582.min.js b/NearBeach/static/NearBeach/7582.min.js new file mode 100644 index 000000000..04e954374 --- /dev/null +++ b/NearBeach/static/NearBeach/7582.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[7582],{7582:(e,t,s)=>{s.d(t,{A:()=>ve});var o=s(641),a=s(33);const r={class:"text-instructions"},i={key:0,class:"alert alert-info"},d={key:1,class:"alert alert-dark"},l={key:2,class:"group-card-list"},n={class:"group-card--details"},u={key:0,class:"group-card--remove"},c={key:0,class:"group-card"},p={class:"row submit-row"},m={class:"col-md-12"},g={class:"text-instructions"},h={key:3,class:"row submit-row"},b={class:"col-md-12"};var L=s(2243),k=s(2321),v=s(9336);const U={class:"modal fade",id:"addGroupModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},y={class:"modal-dialog modal-lg"},f={class:"modal-content"},G={class:"modal-header"},_={class:"modal-body"},C={key:0,class:"row"},A={class:"col-md-4"},D={class:"text-instructions"},j={class:"text-instructions"},w={class:"col-md-8"},S={key:1,class:"row"},I={class:"col-md-6 no-search"},$=["src"],E={class:"modal-footer"},x=["disabled"];var F=s(1080),M=s(2124);const T={name:"AddGroupWizard",components:{Icon:k.In,NSelect:F.A},computed:{...(0,M.L8)({destination:"getDestination",locationId:"getLocationId",potentialGroupList:"getPotentialGroupList",rootUrl:"getRootUrl",staticUrl:"getStaticUrl"})},watch:{potentialGroupList(e){void 0!==e&&(this.groupFixList=e.map((e=>({value:e.group_id,label:e.group_name}))))}},mixins:[L.A],data:()=>({groupFixList:[],groupModel:[]}),methods:{addGroup(){this.$store.commit("updateAddingGroupStatus",{addingGroupStatus:!0});const e=new FormData;this.groupModel.forEach((t=>{e.append("group_list",t)})),this.axios.post(`${this.rootUrl}object_data/${this.destination}/${this.locationId}/add_group/`,e).then((e=>{this.$store.commit("updateGroupsAndUsers",{objectGroupList:e.data.object_group_list,objectUserList:e.data.object_user_list,potentialGroupList:e.data.potential_group_list,potentialUserList:e.data.potential_user_list}),this.$store.commit("updateAddingGroupStatus",{addingGroupStatus:!1}),this.groupModel=[],document.getElementById("addGroupCloseButton").click()})).catch((e=>{this.$store.dispatch("newToast",{header:`Error adding group to ${this.destination}`,message:`Sorry, we could not add the group to the ${this.destination}. Error -> ${e}`,extra_classes:"bd-danger",delay:0})}))}}};var X=s(6262);const B=(0,X.A)(T,[["render",function(e,t,s,r,i,d){const l=(0,o.g2)("Icon"),n=(0,o.g2)("n-select");return(0,o.uX)(),(0,o.CE)("div",U,[(0,o.Lk)("div",y,[(0,o.Lk)("div",f,[(0,o.Lk)("div",G,[(0,o.Lk)("h2",null,[(0,o.bF)(l,{icon:e.icons.groupPresentation},null,8,["icon"]),t[2]||(t[2]=(0,o.eW)(" Add Group Wizard "))]),t[3]||(t[3]=(0,o.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"addGroupCloseButton"},[(0,o.Lk)("span",{"aria-hidden":"true"})],-1))]),(0,o.Lk)("div",_,[i.groupFixList.length>0?((0,o.uX)(),(0,o.CE)("div",C,[(0,o.Lk)("div",A,[t[4]||(t[4]=(0,o.Lk)("strong",null,"Add Groups",-1)),(0,o.Lk)("p",D," Use the following multiple select to select which groups you want to add to this "+(0,a.toDisplayString)(e.destination)+". ",1),(0,o.Lk)("p",j," Please note: A user's group has to be added to the "+(0,a.toDisplayString)(e.destination)+" before the user can be added. ",1)]),(0,o.Lk)("div",w,[(0,o.bF)(n,{options:i.groupFixList,value:i.groupModel,"onUpdate:value":t[0]||(t[0]=e=>i.groupModel=e),multiple:""},null,8,["options","value"])])])):((0,o.uX)(),(0,o.CE)("div",S,[t[5]||(t[5]=(0,o.Lk)("div",{class:"col-md-6"},[(0,o.Lk)("strong",null,"Sorry - no results"),(0,o.Lk)("p",{class:"text-instructions"}," This could be because "),(0,o.Lk)("ul",{class:"text-instructions"},[(0,o.Lk)("li",null,"There are no more groups left to add")])],-1)),(0,o.Lk)("div",I,[(0,o.Lk)("img",{src:`${e.staticUrl}NearBeach/images/placeholder/questions.svg`,alt:"Sorry - there are no results"},null,8,$)])]))]),(0,o.Lk)("div",E,[t[6]||(t[6]=(0,o.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1)),(0,o.Lk)("button",{type:"button",class:"btn btn-primary",disabled:0==i.groupModel.length,onClick:t[1]||(t[1]=(...e)=>d.addGroup&&d.addGroup(...e))}," Add Group(s) ",8,x)])])])])}]]),R={class:"modal fade",id:"addUserModal",tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},N={class:"modal-dialog modal-lg"},O={class:"modal-content"},Q={class:"modal-header"},P={class:"modal-body"},W={key:0,class:"row"},z={class:"col-md-4"},K={class:"text-instructions"},q={class:"text-instructions"},Y={class:"col-md-8"},H={key:1,class:"row"},J={class:"col-md-6"},V={class:"text-instructions"},Z={class:"col-md-6 no-search"},ee=["src"],te={class:"modal-footer"},se=["disabled"],oe={name:"AddUserWizard",components:{Icon:k.In,NSelect:F.A},mixins:[L.A],computed:{...(0,M.L8)({destination:"getDestination",locationId:"getLocationId",potentialUserList:"getPotentialUserList",rootUrl:"getRootUrl",staticURL:"getStaticUrl",userLevel:"getUserLevel"})},data:()=>({userFixList:[],userModel:[]}),watch:{potentialUserList(e){void 0!==e&&(this.userFixList=e.map((e=>({value:e.id,label:`${e.username}: ${e.first_name} ${e.last_name}`}))))}},methods:{addUser(){this.$store.commit("updateAddingUserStatus",{addingUserStatus:!0});const e=new FormData;this.userModel.forEach((t=>{e.append("user_list",t)})),this.axios.post(`${this.rootUrl}object_data/${this.destination}/${this.locationId}/add_user/`,e).then((e=>{document.getElementById("addUserCloseButton").click(),this.userModel=[],this.$store.commit("updateGroupsAndUsers",{objectGroupList:e.data.object_group_list,objectUserList:e.data.object_user_list,potentialGroupList:e.data.potential_group_list,potentialUserList:e.data.potential_user_list}),this.$store.commit("updateAddingUserStatus",{addingUserStatus:!1})})).catch((e=>{this.$store.dispatch("newToast",{header:"Failed to add user",message:`Failed to add user. Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))}}},ae=(0,X.A)(oe,[["render",function(e,t,s,r,i,d){const l=(0,o.g2)("Icon"),n=(0,o.g2)("n-select");return(0,o.uX)(),(0,o.CE)("div",R,[(0,o.Lk)("div",N,[(0,o.Lk)("div",O,[(0,o.Lk)("div",Q,[(0,o.Lk)("h2",null,[(0,o.bF)(l,{icon:e.icons.userIcon},null,8,["icon"]),t[2]||(t[2]=(0,o.eW)(" Add User Wizard "))]),t[3]||(t[3]=(0,o.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"addUserCloseButton"},[(0,o.Lk)("span",{"aria-hidden":"true"})],-1))]),(0,o.Lk)("div",P,[i.userFixList.length>0?((0,o.uX)(),(0,o.CE)("div",W,[(0,o.Lk)("div",z,[t[4]||(t[4]=(0,o.Lk)("strong",null,"Add Users",-1)),(0,o.Lk)("p",K," Use the following multiple select to select which users you want to add to this "+(0,a.toDisplayString)(e.destination)+". ",1),(0,o.Lk)("p",q," Please note: A user's group has to be added to the "+(0,a.toDisplayString)(e.destination)+" before the user can be added. ",1)]),(0,o.Lk)("div",Y,[(0,o.bF)(n,{options:i.userFixList,value:i.userModel,"onUpdate:value":t[0]||(t[0]=e=>i.userModel=e),multiple:""},null,8,["options","value"])])])):((0,o.uX)(),(0,o.CE)("div",H,[(0,o.Lk)("div",J,[t[6]||(t[6]=(0,o.Lk)("strong",null,"Sorry - no results",-1)),t[7]||(t[7]=(0,o.Lk)("p",{class:"text-instructions"}," This could be because ",-1)),(0,o.Lk)("ul",V,[t[5]||(t[5]=(0,o.Lk)("li",null,"There are no more users left to add",-1)),(0,o.Lk)("li",null," The user you are after is in a group not current added to this "+(0,a.toDisplayString)(e.destination),1)])]),(0,o.Lk)("div",Z,[(0,o.Lk)("img",{src:`${e.staticURL}NearBeach/images/placeholder/questions.svg`,alt:"Sorry - there are no results"},null,8,ee)])]))]),(0,o.Lk)("div",te,[t[8]||(t[8]=(0,o.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1)),(0,o.Lk)("button",{type:"button",class:"btn btn-primary",disabled:0===i.userModel.length,onClick:t[1]||(t[1]=(...e)=>d.addUser&&d.addUser(...e))}," Add User(s) ",8,se)])])])])}]]),re={class:"modal fade",id:"confirmGroupDeleteModal",tabindex:"-1","data-bs-backdrop":"static","data-bs-keyboard":"false","aria-labelledby":"confirmGroupDelete","aria-hidden":"true"},ie={class:"modal-dialog"},de={class:"modal-content"},le={class:"modal-footer"},ne={name:"ConfirmGroupDelete",props:{groupId:{type:Number,default:0}},computed:{...(0,M.L8)({destination:"getDestination",locationId:"getLocationId",objectGroupList:"getObjectGroupList",rootUrl:"getRootUrl"})},methods:{deleteGroup(){this.$store.commit("updateGroupsAndUsers",{objectGroupList:this.objectGroupList.filter((e=>e.group_id!==this.groupId))});const e=new FormData;e.set("group_id",`${this.groupId}`),this.axios.post(`${this.rootUrl}object_data/${this.destination}/${this.locationId}/remove_group/`,e).then((e=>{this.$store.commit("updateGroupsAndUsers",{objectGroupList:e.data.object_group_list,objectUserList:e.data.object_user_list,potentialGroupList:e.data.potential_group_list,potentialUserList:e.data.potential_user_list})})).catch((e=>{this.$store.dispatch("newToast",{header:"Error removing group from object",message:`We encounted an error moving the group from the object. Error -> ${e}`,extra_classes:"bg-danger",delay:0})})),this.closeModal()},closeModal(){document.getElementById("confirmGroupDeleteButton").click()}}},ue=(0,X.A)(ne,[["render",function(e,t,s,a,r,i){return(0,o.uX)(),(0,o.CE)("div",re,[(0,o.Lk)("div",ie,[(0,o.Lk)("div",de,[t[2]||(t[2]=(0,o.Lk)("div",{class:"modal-header"},[(0,o.Lk)("h5",{class:"modal-title",id:"confirmGroupDelete"}," Please confirm Group Deletion "),(0,o.Q3)(" TASK INFORMATION "),(0,o.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"confirmGroupDeleteButton"})],-1)),t[3]||(t[3]=(0,o.Lk)("div",{class:"modal-body"}," Are you sure you want to delete the Group from the object? ",-1)),(0,o.Lk)("div",le,[(0,o.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:t[0]||(t[0]=(...e)=>i.closeModal&&i.closeModal(...e))}," No "),(0,o.Lk)("button",{type:"button",class:"btn btn-primary",onClick:t[1]||(t[1]=(...e)=>i.deleteGroup&&i.deleteGroup(...e))}," Yes ")])])])])}]]),ce={class:"modal fade",id:"confirmUserDeleteModal",tabindex:"-1","data-bs-backdrop":"static","data-bs-keyboard":"false","aria-labelledby":"confirmUserDelete","aria-hidden":"true"},pe={class:"modal-dialog"},me={class:"modal-content"},ge={class:"modal-footer"},he={name:"ConfirmUserDelete",props:{username:{type:String,default:""}},computed:{...(0,M.L8)({destination:"getDestination",locationId:"getLocationId",objectUserList:"getObjectUserList",rootUrl:"getRootUrl"})},methods:{deleteUser(){this.$store.commit("updateGroupsAndUsers",{objectUserList:this.objectUserList.filter((e=>e.username!==this.username))});const e=new FormData;e.set("username",this.username),this.axios.post(`${this.rootUrl}object_data/${this.destination}/${this.locationId}/remove_user/`,e).then((e=>{this.$store.commit("updateGroupsAndUsers",{objectGroupList:e.data.object_group_list,objectUserList:e.data.object_user_list,potentialGroupList:e.data.potential_group_list,potentialUserList:e.data.potential_user_list})})).catch((e=>{this.$store.dispatch("newToast",{header:"Error removing user from object",message:`We encounted an error moving the user from the object. Error -> ${e}`,extra_classes:"bg-danger",delay:0})})),this.closeModal()},closeModal(){document.getElementById("confirmUserDeleteButton").click()}}},be=(0,X.A)(he,[["render",function(e,t,s,a,r,i){return(0,o.uX)(),(0,o.CE)("div",ce,[(0,o.Lk)("div",pe,[(0,o.Lk)("div",me,[t[2]||(t[2]=(0,o.Lk)("div",{class:"modal-header"},[(0,o.Lk)("h5",{class:"modal-title",id:"confirmUserDelete"}," Please confirm User Deletion "),(0,o.Q3)(" TASK INFORMATION "),(0,o.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:"confirmUserDeleteButton"})],-1)),t[3]||(t[3]=(0,o.Lk)("div",{class:"modal-body"}," Are you sure you want to delete the User from the object? ",-1)),(0,o.Lk)("div",ge,[(0,o.Lk)("button",{type:"button",class:"btn btn-secondary",onClick:t[0]||(t[0]=(...e)=>i.closeModal&&i.closeModal(...e))}," No "),(0,o.Lk)("button",{type:"button",class:"btn btn-primary",onClick:t[1]||(t[1]=(...e)=>i.deleteUser&&i.deleteUser(...e))}," Yes ")])])])])}]]);var Le=s(8072);const ke={name:"GroupsAndUsersModule",components:{AddGroupWizard:B,AddUserWizard:ae,ConfirmGroupDelete:ue,ConfirmUserDelete:be,Icon:k.In,RenderUserCardList:Le.A},props:{isReadOnly:{type:Boolean,default:!1}},data:()=>({deleteGroupId:0,deleteUsername:"",destinationTitle:"",loadingData:!0}),computed:{...(0,M.L8)({addingGroupStatus:"getAddingGroupStatus",addingUserStatus:"getAddingUserStatus",destination:"getDestination",locationId:"getLocationId",objectGroupList:"getObjectGroupList",objectUserList:"getObjectUserList",rootUrl:"getRootUrl",staticUrl:"getStaticUrl",userLevel:"getUserLevel"})},mixins:[L.A],methods:{addNewGroup(){new v.aF(document.getElementById("addGroupModal")).show()},addNewUser(){new v.aF(document.getElementById("addUserModal")).show()},getGroupAndUserData(){this.axios.post(`${this.rootUrl}object_data/${this.destination}/${this.locationId}/group_and_user_data/`).then((e=>{this.$store.commit("updateGroupsAndUsers",{objectGroupList:e.data.object_group_list,objectUserList:e.data.object_user_list,potentialGroupList:e.data.potential_group_list,potentialUserList:e.data.potential_user_list}),this.loadingData=!1})).catch((e=>{this.$store.dispatch("newToast",{header:"Error fetching group and user data",message:`Sorry we could not get any group or user data. Error -> ${e}`,extra_classes:"bd-danger",delay:0})}))},removeGroup(e){this.deleteGroupId=e,new v.aF(document.getElementById("confirmGroupDeleteModal")).show()},removeUser(e){this.deleteUsername=e,new v.aF(document.getElementById("confirmUserDeleteModal")).show()}},mounted(){this.$nextTick((()=>{if(0===this.locationId)return void setTimeout((()=>{this.getGroupAndUserData()}),500);this.getGroupAndUserData();let e=this.destination;e=e.replaceAll("_"," "),this.destinationTitle=e.replace(/\w\S*/g,(e=>e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()))}))}},ve=(0,X.A)(ke,[["render",function(e,t,s,L,k,v){const U=(0,o.g2)("Icon"),y=(0,o.g2)("render-user-card-list"),f=(0,o.g2)("add-group-wizard"),G=(0,o.g2)("add-user-wizard"),_=(0,o.g2)("confirm-group-delete"),C=(0,o.g2)("confirm-user-delete");return(0,o.uX)(),(0,o.CE)("div",null,[(0,o.Q3)(" GROUPS "),(0,o.Lk)("h2",null,[(0,o.bF)(U,{icon:e.icons.groupPresentation},null,8,["icon"]),t[2]||(t[2]=(0,o.eW)(" Groups "))]),(0,o.Lk)("p",r," The following list are all the Groups connected to this "+(0,a.toDisplayString)(k.destinationTitle)+". Users will have to be included in these groups to be added to this "+(0,a.toDisplayString)(k.destinationTitle),1),k.loadingData?((0,o.uX)(),(0,o.CE)("div",i," Currently loading group data. ")):0!==e.objectGroupList.length||e.addingGroupStatus?((0,o.uX)(),(0,o.CE)("div",l,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(e.objectGroupList,(t=>((0,o.uX)(),(0,o.CE)("div",{key:t.group_id,class:"group-card"},[(0,o.Lk)("div",n,(0,a.toDisplayString)(t.group_name),1),e.userLevel>=3&&e.objectGroupList.length>1?((0,o.uX)(),(0,o.CE)("div",u,[(0,o.bF)(U,{icon:e.icons.trashCan,onClick:e=>v.removeGroup(t.group_id)},null,8,["icon","onClick"])])):(0,o.Q3)("v-if",!0)])))),128)),e.addingGroupStatus?((0,o.uX)(),(0,o.CE)("div",c,t[3]||(t[3]=[(0,o.Lk)("div",{class:"group-card--details"},"++ Adding New Group ++",-1)]))):(0,o.Q3)("v-if",!0)])):((0,o.uX)(),(0,o.CE)("div",d," Sorry - there are no groups active. ")),t[5]||(t[5]=(0,o.Lk)("div",{class:"spacer"},null,-1)),(0,o.Q3)(" ADD GROUP "),(0,o.Q3)(" TO DO - limit it to certain users "),(0,o.Lk)("div",p,[(0,o.Lk)("div",m,[e.userLevel>1&&!s.isReadOnly?((0,o.uX)(),(0,o.CE)("a",{key:0,href:"javascript:void(0)",class:"btn btn-primary save-changes",onClick:t[0]||(t[0]=(...e)=>v.addNewGroup&&v.addNewGroup(...e))},"Add Group to "+(0,a.toDisplayString)(k.destinationTitle),1)):(0,o.Q3)("v-if",!0)])]),t[6]||(t[6]=(0,o.Lk)("hr",null,null,-1)),(0,o.Q3)(" USERS "),(0,o.Lk)("h2",null,[(0,o.bF)(U,{icon:e.icons.userIcon},null,8,["icon"]),t[4]||(t[4]=(0,o.eW)(" Users "))]),(0,o.Lk)("p",g," The following are a list of users who are connected to this "+(0,a.toDisplayString)(k.destinationTitle)+". Please note - users have to be a part of the groups list above. ",1),(0,o.bF)(y,{"adding-user-status":e.addingUserStatus,"loading-data":k.loadingData,"object-user-list":e.objectUserList,onRemove_user:v.removeUser},null,8,["adding-user-status","loading-data","object-user-list","onRemove_user"]),t[7]||(t[7]=(0,o.Lk)("div",{class:"spacer"},null,-1)),(0,o.Q3)(" TO DO - limit it to certain users "),e.userLevel>1&&!s.isReadOnly?((0,o.uX)(),(0,o.CE)("div",h,[(0,o.Lk)("div",b,[(0,o.Lk)("a",{href:"javascript:void(0)",class:"btn btn-primary save-changes",onClick:t[1]||(t[1]=(...e)=>v.addNewUser&&v.addNewUser(...e))},"Add User to "+(0,a.toDisplayString)(k.destinationTitle),1)])])):(0,o.Q3)("v-if",!0),(0,o.Q3)(" MODALS "),(0,o.bF)(f),(0,o.bF)(G),(0,o.bF)(_,{"group-id":k.deleteGroupId},null,8,["group-id"]),(0,o.bF)(C,{username:k.deleteUsername},null,8,["username"])])}]])},8072:(e,t,s)=>{s.d(t,{A:()=>k});var o=s(641),a=s(33);const r={key:0,class:"alert alert-info"},i={key:1,class:"alert alert-dark"},d={key:2,class:"user-card-list"},l=["src"],n={class:"user-card--details"},u={class:"user-card--name"},c={class:"user-card--email"},p={key:0,class:"user-card--remove"},m={key:0,class:"user-card"};var g=s(2124),h=s(2321),b=s(2243);const L={name:"RenderUserCardList",components:{Icon:h.In},props:{addingUserStatus:{type:Boolean,default:!1},loadingData:{type:Boolean,default:!1},objectUserList:{type:Array,default:()=>[]}},mixins:[b.A],computed:{...(0,g.L8)({rootUrl:"getRootUrl",staticUrl:"getStaticUrl",userLevel:"getUserLevel"})},methods:{profilePicture(e){return null!==e&&""!==e?`${this.rootUrl}private/${e}/`:`${this.staticUrl}NearBeach/images/placeholder/people_tax.svg`},removeUser(e){this.$emit("remove_user",e)}}},k=(0,s(6262).A)(L,[["render",function(e,t,s,g,h,b){const L=(0,o.g2)("Icon");return s.loadingData?((0,o.uX)(),(0,o.CE)("div",r," Currently loading User Data. ")):0!==s.objectUserList.length||s.addingUserStatus?((0,o.uX)(),(0,o.CE)("div",d,[((0,o.uX)(!0),(0,o.CE)(o.FK,null,(0,o.pI)(s.objectUserList,(t=>((0,o.uX)(),(0,o.CE)("div",{key:t.username,class:"user-card"},[(0,o.Lk)("img",{src:b.profilePicture(t.profile_picture),alt:"default profile",class:"user-card--profile"},null,8,l),(0,o.Lk)("div",n,[(0,o.Lk)("div",u,(0,a.toDisplayString)(t.first_name)+" "+(0,a.toDisplayString)(t.last_name),1),(0,o.Lk)("div",c,(0,a.toDisplayString)(t.email),1)]),e.userLevel>=3?((0,o.uX)(),(0,o.CE)("div",p,[(0,o.bF)(L,{icon:e.icons.trashCan,onClick:e=>b.removeUser(t.username)},null,8,["icon","onClick"])])):(0,o.Q3)("v-if",!0)])))),128)),s.addingUserStatus?((0,o.uX)(),(0,o.CE)("div",m,t[0]||(t[0]=[(0,o.Lk)("div",{class:"user-card--details"},"++ Adding User(s) ++",-1)]))):(0,o.Q3)("v-if",!0)])):((0,o.uX)(),(0,o.CE)("div",i," Sorry, there are no users currently assigned to this object. "))}]])}}]); \ No newline at end of file diff --git a/NearBeach/static/NearBeach/7582.min.js.gz b/NearBeach/static/NearBeach/7582.min.js.gz new file mode 100644 index 000000000..a37680cef Binary files /dev/null and b/NearBeach/static/NearBeach/7582.min.js.gz differ diff --git a/NearBeach/static/NearBeach/8111.min.js b/NearBeach/static/NearBeach/8111.min.js new file mode 100644 index 000000000..bfa31cfd2 --- /dev/null +++ b/NearBeach/static/NearBeach/8111.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[8111],{421:(e,t,a)=>{a.d(t,{A:()=>W});var o=a(641),s=a(33),r=a(3751);const i={key:0,class:"error"},l=["id","data-property","data-id","data-title"],d=["id","data-id","data-property","data-title"],n=["onClick"],p=["id"],m={class:"modal-dialog"},c={class:"modal-content"},y={class:"modal-header"},h={class:"modal-title",id:"exampleModalLabel"},u=["id"],I={class:"modal-body"},b={class:"form-group"},g={key:0,class:"form-group"},k={class:"modal-footer"},L=["id"],v={class:"modal-dialog"},w={class:"modal-content"},C={class:"modal-header"},A={class:"modal-title"},P=["id"],N={class:"modal-body pb-4"},f={class:"alert alert-warning"},D={class:"row"},M={key:0,class:"row"},$={class:"modal-footer"},E=["disabled"];var _=a(9336),S=a(2321),x=a(1581),B=a(8808),O=a(1080),R=a(1423),T=a(432),U=a.n(T),F=a(2124),Q=a(9639),X=a(3855),G=a(2243);const V={name:"KanbanPropertyOrder",setup:()=>({v$:(0,Q.Ay)()}),components:{draggable:U(),Icon:S.In,NRadio:x.A,NRadioGroup:B.A,NSelect:O.A,NSpace:R.A},props:{isDirty:{type:Boolean,default:!0},isNewMode:{type:Boolean,default:!0},isReadOnly:{type:Boolean,default:!1},kanbanBoardId:{type:Number,default:0},propertyList:{type:Array,default:()=>[]},propertyName:{type:String,default:""},source:{type:String,default:""}},data(){return{columnPropertyModel:"Normal",columnPropertyOptions:[{label:"Backlog",value:"Backlog"},{label:"Normal",value:"Normal"},{label:"Blocked",value:"Blocked"},{label:"Closed",value:"Closed"}],deleteItemId:"",destinationItemId:"",localPropertyList:this.propertyList,newCardDestinationList:[],newPropertyItem:"",removeCardsModel:!1,singleItemId:""}},mixins:[G.A],validations:{localPropertyList:{required:X.mw}},watch:{propertyList(){this.localPropertyList=this.propertyList}},computed:{...(0,F.L8)({canDragCards:"getCanDragCards",rootUrl:"getRootUrl"})},methods:{addItem(){""!==this.newPropertyItem&&(this.isNewMode?this.newModeAddItem():this.editModeAddItem(),this.sendPropertyListUp(),document.getElementById(`addItemClose${this.propertyName}`).click())},deleteItem(){const e=new FormData;e.set("delete_item_id",this.deleteItemId),this.removeCardsModel||e.set("destination_item_id",this.destinationItemId);const t=`${this.rootUrl}kanban_${this.propertyName.toLowerCase()}/${this.kanbanBoardId}/delete/`;this.axios.post(t,e).then((()=>{this.localPropertyList=this.localPropertyList.filter((e=>e.id!==this.deleteItemId)),this.$emit("update_property_list",{source:this.source,data:this.localPropertyList}),document.getElementById(`deleteItemClose${this.propertyName}`).click()})).catch((e=>{this.$store.dispatch("newToast",{header:"Can not delete item",message:`Sorry, but we are having issues deleting item - Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))},editItem(e){this.isReadOnly||(this.newPropertyItem=e.target.dataset.title,this.singleItemId=e.target.dataset.id,this.columnPropertyModel=e.target.dataset.property,this.openModal())},editModeAddItem:async function(){const e=`kanban_${this.propertyName.toLowerCase()}_name`,t=`kanban_${this.propertyName.toLowerCase()}_sort_number`,a=this.singleItemId,o=new FormData;if(o.set(e,this.newPropertyItem),o.set(t,this.getMaxId()+1),"Column"===this.propertyName&&o.set("kanban_column_property",this.columnPropertyModel),""===a)var s=`/kanban_${this.propertyName.toLowerCase()}/${this.kanbanBoardId}/new/`;else s=`/kanban_${this.propertyName.toLowerCase()}/${this.singleItemId}/edit/`;await this.axios.post(s,o).then((t=>{const o=t.data[0];""===a?this.localPropertyList.push({id:o.pk,property:o.fields.kanban_column_property,title:o.fields[e]}):this.localPropertyList.forEach((e=>{parseInt(e.id)===parseInt(this.singleItemId)&&(e.title=this.newPropertyItem,e.property=this.columnPropertyModel)})),this.singleItemId="",this.newPropertyItem=""})).catch((e=>{this.$store.dispatch("newToast",{header:"Can not add/edit",message:`Sorry, but we are having issues editing or adding - Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))},getMaxId(){const e=this.localPropertyList.map((e=>e.id));return e.sort(((e,t)=>e-t))[e.length-1]},newModeAddItem(){""===this.singleItemId?this.localPropertyList.push({id:this.getMaxId()+1,property:this.columnPropertyModel,title:this.newPropertyItem}):this.localPropertyList.forEach((e=>{parseInt(e.id)===parseInt(this.singleItemId)&&(e.title=this.newPropertyItem,e.property=this.columnPropertyModel)})),this.singleItemId="",this.newPropertyItem=""},openModal(){new _.aF(document.getElementById(`addItem${this.propertyName}`)).show()},removeItem(e){this.isNewMode?(this.localPropertyList=this.localPropertyList.filter((t=>t.id!==e)),this.sendPropertyListUp()):(this.deleteItemId=e,this.newCardDestinationList=this.localPropertyList.filter((e=>e.id!==this.deleteItemId)).map((e=>({value:e.id,label:e.title}))),this.destinationItemId=this.newCardDestinationList[0].value,new _.aF(document.getElementById(`deleteItem${this.propertyName}`)).show())},sendPropertyListUp(){if(this.$emit("update_property_list",{source:this.source,data:this.localPropertyList}),!this.isNewMode){const e=`/kanban_${this.propertyName.toLowerCase()}/${this.kanbanBoardId}/resort/`,t=new FormData;this.localPropertyList.forEach((e=>{t.append("item",e.id)})),this.axios.post(e,t).catch((e=>{this.$store.dispatch("newToast",{header:"Can not apply resort",message:`Sorry, we've had an issue resorting. Please refresh the page. Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))}}}},W=(0,a(6262).A)(V,[["render",function(e,t,a,_,S,x){const B=(0,o.g2)("Icon"),O=(0,o.g2)("draggable"),R=(0,o.g2)("n-select"),T=(0,o.g2)("n-radio"),U=(0,o.g2)("n-space"),F=(0,o.g2)("n-radio-group");return(0,o.uX)(),(0,o.CE)("div",null,[(0,o.Lk)("strong",null,(0,s.toDisplayString)(a.propertyName),1),!_.v$.localPropertyList.required&&a.isDirty?((0,o.uX)(),(0,o.CE)("span",i," Please create at least one "+(0,s.toDisplayString)(a.propertyName)+".",1)):(0,o.Q3)("v-if",!0),(0,o.Q3)(" The column of data where you can sort the properties "),(0,o.bF)(O,{modelValue:S.localPropertyList,"onUpdate:modelValue":t[1]||(t[1]=e=>S.localPropertyList=e),disabled:!e.canDragCards||a.isReadOnly,"item-key":"pk","ghost-class":"ghost",onChange:x.sendPropertyListUp,class:"mt-4"},{item:(0,o.k6)((({element:a})=>[((0,o.uX)(),(0,o.CE)("div",{class:"sortable",key:a.id,id:a.id,"data-property":a.property,"data-id":a.id,"data-title":a.title,onDblclick:t[0]||(t[0]=e=>x.editItem(e))},[((0,o.uX)(),(0,o.CE)("strong",{key:a.id,id:a.id,"data-id":a.id,"data-property":a.property,"data-title":a.title},(0,s.toDisplayString)(a.title),9,d)),S.localPropertyList.length>1?((0,o.uX)(),(0,o.CE)("span",{key:0,onClick:e=>x.removeItem(a.id)},[(0,o.bF)(B,{icon:e.icons.xCircle},null,8,["icon"])],8,n)):(0,o.Q3)("v-if",!0)],40,l))])),_:1},8,["modelValue","disabled","onChange"]),(0,o.Q3)(" ADD BUTTON "),t[16]||(t[16]=(0,o.Lk)("hr",null,null,-1)),!1===a.isReadOnly?((0,o.uX)(),(0,o.CE)("button",{key:1,class:"btn btn-primary",onClick:t[2]||(t[2]=(...e)=>x.openModal&&x.openModal(...e))}," Add "+(0,s.toDisplayString)(a.propertyName)+" Item ",1)):(0,o.Q3)("v-if",!0),(0,o.Q3)(" MODAL FOR ADDING AN EXTRA ROW "),(0,o.Lk)("div",{class:"modal fade",id:`addItem${a.propertyName}`,tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},[(0,o.Lk)("div",m,[(0,o.Lk)("div",c,[(0,o.Lk)("div",y,[(0,o.Lk)("h5",h," Add/Edit "+(0,s.toDisplayString)(a.propertyName),1),(0,o.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:`addItemClose${a.propertyName}`},null,8,u)]),(0,o.Lk)("div",I,[(0,o.Lk)("div",b,[(0,o.Lk)("label",null,(0,s.toDisplayString)(a.propertyName)+" Item Description",1),(0,o.bo)((0,o.Lk)("input",{"onUpdate:modelValue":t[3]||(t[3]=e=>S.newPropertyItem=e),type:"text",class:"form-control"},null,512),[[r.vModelText,S.newPropertyItem]])]),"column"===a.propertyName.toLowerCase()?((0,o.uX)(),(0,o.CE)("div",g,[(0,o.Lk)("label",null,(0,s.toDisplayString)(a.propertyName)+" Property",1),(0,o.bF)(R,{value:S.columnPropertyModel,"onUpdate:value":t[4]||(t[4]=e=>S.columnPropertyModel=e),options:S.columnPropertyOptions},null,8,["value","options"])])):(0,o.Q3)("v-if",!0)]),(0,o.Lk)("div",k,[t[9]||(t[9]=(0,o.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1)),(0,o.Lk)("button",{type:"button",class:"btn btn-primary",onClick:t[5]||(t[5]=(...e)=>x.addItem&&x.addItem(...e))}," Save changes ")])])])],8,p),(0,o.Q3)(" MODAL FOR DELETING ITEM "),(0,o.Lk)("div",{class:"modal fade",id:`deleteItem${a.propertyName}`,tabindex:"-1","aria-labelledby":"exampleModalLabel","aria-hidden":"true"},[(0,o.Lk)("div",v,[(0,o.Lk)("div",w,[(0,o.Lk)("div",C,[(0,o.Lk)("h5",A,"Delete "+(0,s.toDisplayString)(a.propertyName),1),(0,o.Lk)("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close",id:`deleteItemClose${a.propertyName}`},null,8,P)]),(0,o.Lk)("div",N,[(0,o.Q3)(" WARNING "),(0,o.Lk)("div",f,[t[10]||(t[10]=(0,o.Lk)("h4",null,"WARNING",-1)),(0,o.Lk)("p",null," This process can not be reversed. Deleting a "+(0,s.toDisplayString)(a.propertyName)+" will remove it. ",1),t[11]||(t[11]=(0,o.Lk)("p",null," All existing cards will be moved to the stated location you have provided. Any cards that have been archived or deleted, will still be associated with the removed card. ",-1))]),(0,o.Q3)(" ASK USER ABOUT CARDS "),(0,o.Lk)("div",D,[(0,o.Lk)("p",null,"Would you like to remove the cards within the "+(0,s.toDisplayString)(a.propertyName)+"?",1),(0,o.bF)(F,{value:S.removeCardsModel,"onUpdate:value":t[6]||(t[6]=e=>S.removeCardsModel=e),name:"radiogroup"},{default:(0,o.k6)((()=>[(0,o.bF)(U,null,{default:(0,o.k6)((()=>[(0,o.bF)(T,{value:!0,label:"Yes - please remove cards"}),(0,o.bF)(T,{value:!1,label:"No - please MOVE cards"})])),_:1})])),_:1},8,["value"])]),(0,o.Q3)(" CARD DESTINATIONS "),t[14]||(t[14]=(0,o.Lk)("div",{class:"spacer"},null,-1)),S.removeCardsModel?(0,o.Q3)("v-if",!0):((0,o.uX)(),(0,o.CE)("div",M,[t[12]||(t[12]=(0,o.Lk)("p",null,"Please select an appropriate destination for the current cards.",-1)),t[13]||(t[13]=(0,o.Lk)("label",null,[(0,o.Lk)("strong",null,"Destination for Cards")],-1)),(0,o.bF)(R,{options:S.newCardDestinationList,value:S.destinationItemId,"onUpdate:value":t[7]||(t[7]=e=>S.destinationItemId=e),style:{"z-index":"9999"},class:"new-card-destination"},null,8,["options","value"])]))]),(0,o.Lk)("div",$,[t[15]||(t[15]=(0,o.Lk)("button",{type:"button",class:"btn btn-secondary","data-bs-dismiss":"modal"}," Close ",-1)),!1===a.isReadOnly?((0,o.uX)(),(0,o.CE)("button",{key:0,type:"button",class:"btn btn-primary",onClick:t[8]||(t[8]=(...e)=>x.deleteItem&&x.deleteItem(...e)),disabled:null==this.destinationItemId}," Delete "+(0,s.toDisplayString)(a.propertyName),9,E)):(0,o.Q3)("v-if",!0)])])])],8,L)])}]])},9827:(e,t,a)=>{a.d(t,{A:()=>s});var o=a(7413);const s={data:()=>({darkTheme:o.a}),methods:{getTheme:e=>"dark"===e?o.a:null}}},2243:(e,t,a)=>{a.d(t,{A:()=>D});var o=a(8998),s=a(102),r=a(9394),i=a(2438),l=a(9605),d=a(3438),n=a(5666),p=a(6375),m=a(1647),c=a(7066),y=a(4397),h=a(4603),u=a(7432),I=a(1758),b=a(8959),g=a(9587),k=a(9675),L=a(386),v=a(6120),w=a(8086),C=a(5617),A=a(6325),P=a(6500),N=a(5707),f=a(1511);const D={data:()=>({icons:{arrowUp:o.A,bugIcon:s.A,bxBriefcase:r.A,cardChecklist:i.A,clipboardIcon:l.A,documentPdf:d.A,documentText:n.A,folderIcon:p.A,groupPresentation:m.A,imageIcon:c.A,infoCircle:y.A,linkIcon:h.A,linkIcon2:u.A,linkOut:I.A,mailIcon:b.A,microsoftExcel:g.A,microsoftPowerpoint:k.A,microsoftWord:L.A,noteAdd:v.A,objectStorage:w.A,passwordIcon:C.A,trashCan:A.A,userIcon:P.A,usersIcon:N.A,xCircle:f.A}})}}}]); \ No newline at end of file diff --git a/NearBeach/static/NearBeach/8111.min.js.gz b/NearBeach/static/NearBeach/8111.min.js.gz new file mode 100644 index 000000000..7c2c0c30e Binary files /dev/null and b/NearBeach/static/NearBeach/8111.min.js.gz differ diff --git a/NearBeach/static/NearBeach/9336.min.js b/NearBeach/static/NearBeach/9336.min.js new file mode 100644 index 000000000..6ae0c1b5a --- /dev/null +++ b/NearBeach/static/NearBeach/9336.min.js @@ -0,0 +1,2 @@ +/*! For license information please see 9336.min.js.LICENSE.txt */ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[9336],{9336:(t,e,i)=>{i.d(e,{aF:()=>Sn,y8:()=>mo});var n={};i.r(n),i.d(n,{afterMain:()=>E,afterRead:()=>y,afterWrite:()=>O,applyStyles:()=>I,arrow:()=>Z,auto:()=>l,basePlacements:()=>c,beforeMain:()=>w,beforeRead:()=>b,beforeWrite:()=>C,bottom:()=>o,clippingParents:()=>u,computeStyles:()=>nt,createPopper:()=>$t,createPopperBase:()=>Dt,createPopperLite:()=>It,detectOverflow:()=>bt,end:()=>d,eventListeners:()=>ot,flip:()=>vt,hide:()=>At,left:()=>a,main:()=>A,modifierPhases:()=>x,offset:()=>Et,placements:()=>_,popper:()=>p,popperGenerator:()=>St,popperOffsets:()=>Ct,preventOverflow:()=>Tt,read:()=>v,reference:()=>m,right:()=>r,start:()=>h,top:()=>s,variationPlacements:()=>g,viewport:()=>f,write:()=>T});var s="top",o="bottom",r="right",a="left",l="auto",c=[s,o,r,a],h="start",d="end",u="clippingParents",f="viewport",p="popper",m="reference",g=c.reduce((function(t,e){return t.concat([e+"-"+h,e+"-"+d])}),[]),_=[].concat(c,[l]).reduce((function(t,e){return t.concat([e,e+"-"+h,e+"-"+d])}),[]),b="beforeRead",v="read",y="afterRead",w="beforeMain",A="main",E="afterMain",C="beforeWrite",T="write",O="afterWrite",x=[b,v,y,w,A,E,C,T,O];function k(t){return t?(t.nodeName||"").toLowerCase():null}function L(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function S(t){return t instanceof L(t).Element||t instanceof Element}function D(t){return t instanceof L(t).HTMLElement||t instanceof HTMLElement}function $(t){return"undefined"!=typeof ShadowRoot&&(t instanceof L(t).ShadowRoot||t instanceof ShadowRoot)}const I={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];D(s)&&k(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});D(n)&&k(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function N(t){return t.split("-")[0]}var P=Math.max,M=Math.min,j=Math.round;function F(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test(F())}function W(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,o=1;e&&D(t)&&(s=t.offsetWidth>0&&j(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&j(n.height)/t.offsetHeight||1);var r=(S(t)?L(t):window).visualViewport,a=!H()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,h=n.width/s,d=n.height/o;return{width:h,height:d,top:c,right:l+h,bottom:c+d,left:l,x:l,y:c}}function B(t){var e=W(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function z(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&$(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function R(t){return L(t).getComputedStyle(t)}function q(t){return["table","td","th"].indexOf(k(t))>=0}function V(t){return((S(t)?t.ownerDocument:t.document)||window.document).documentElement}function K(t){return"html"===k(t)?t:t.assignedSlot||t.parentNode||($(t)?t.host:null)||V(t)}function Q(t){return D(t)&&"fixed"!==R(t).position?t.offsetParent:null}function X(t){for(var e=L(t),i=Q(t);i&&q(i)&&"static"===R(i).position;)i=Q(i);return i&&("html"===k(i)||"body"===k(i)&&"static"===R(i).position)?e:i||function(t){var e=/firefox/i.test(F());if(/Trident/i.test(F())&&D(t)&&"fixed"===R(t).position)return null;var i=K(t);for($(i)&&(i=i.host);D(i)&&["html","body"].indexOf(k(i))<0;){var n=R(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function Y(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function U(t,e,i){return P(t,M(e,i))}function G(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function J(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const Z={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,l=t.options,h=i.elements.arrow,d=i.modifiersData.popperOffsets,u=N(i.placement),f=Y(u),p=[a,r].indexOf(u)>=0?"height":"width";if(h&&d){var m=function(t,e){return G("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:J(t,c))}(l.padding,i),g=B(h),_="y"===f?s:a,b="y"===f?o:r,v=i.rects.reference[p]+i.rects.reference[f]-d[f]-i.rects.popper[p],y=d[f]-i.rects.reference[f],w=X(h),A=w?"y"===f?w.clientHeight||0:w.clientWidth||0:0,E=v/2-y/2,C=m[_],T=A-g[p]-m[b],O=A/2-g[p]/2+E,x=U(C,O,T),k=f;i.modifiersData[n]=((e={})[k]=x,e.centerOffset=x-O,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&z(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(t){return t.split("-")[1]}var et={top:"auto",right:"auto",bottom:"auto",left:"auto"};function it(t){var e,i=t.popper,n=t.popperRect,l=t.placement,c=t.variation,h=t.offsets,u=t.position,f=t.gpuAcceleration,p=t.adaptive,m=t.roundOffsets,g=t.isFixed,_=h.x,b=void 0===_?0:_,v=h.y,y=void 0===v?0:v,w="function"==typeof m?m({x:b,y}):{x:b,y};b=w.x,y=w.y;var A=h.hasOwnProperty("x"),E=h.hasOwnProperty("y"),C=a,T=s,O=window;if(p){var x=X(i),k="clientHeight",S="clientWidth";x===L(i)&&"static"!==R(x=V(i)).position&&"absolute"===u&&(k="scrollHeight",S="scrollWidth"),(l===s||(l===a||l===r)&&c===d)&&(T=o,y-=(g&&x===O&&O.visualViewport?O.visualViewport.height:x[k])-n.height,y*=f?1:-1),l!==a&&(l!==s&&l!==o||c!==d)||(C=r,b-=(g&&x===O&&O.visualViewport?O.visualViewport.width:x[S])-n.width,b*=f?1:-1)}var D,$=Object.assign({position:u},p&&et),I=!0===m?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:j(i*s)/s||0,y:j(n*s)/s||0}}({x:b,y},L(i)):{x:b,y};return b=I.x,y=I.y,f?Object.assign({},$,((D={})[T]=E?"0":"",D[C]=A?"0":"",D.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+y+"px)":"translate3d("+b+"px, "+y+"px, 0)",D)):Object.assign({},$,((e={})[T]=E?y+"px":"",e[C]=A?b+"px":"",e.transform="",e))}const nt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:N(e.placement),variation:tt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,it(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,it(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var st={passive:!0};const ot={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=L(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,st)})),a&&l.addEventListener("resize",i.update,st),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,st)})),a&&l.removeEventListener("resize",i.update,st)}},data:{}};var rt={left:"right",right:"left",bottom:"top",top:"bottom"};function at(t){return t.replace(/left|right|bottom|top/g,(function(t){return rt[t]}))}var lt={start:"end",end:"start"};function ct(t){return t.replace(/start|end/g,(function(t){return lt[t]}))}function ht(t){var e=L(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function dt(t){return W(V(t)).left+ht(t).scrollLeft}function ut(t){var e=R(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function ft(t){return["html","body","#document"].indexOf(k(t))>=0?t.ownerDocument.body:D(t)&&ut(t)?t:ft(K(t))}function pt(t,e){var i;void 0===e&&(e=[]);var n=ft(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=L(n),r=s?[o].concat(o.visualViewport||[],ut(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(pt(K(r)))}function mt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function gt(t,e,i){return e===f?mt(function(t,e){var i=L(t),n=V(t),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=H();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+dt(t),y:l}}(t,i)):S(e)?function(t,e){var i=W(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):mt(function(t){var e,i=V(t),n=ht(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=P(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=P(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+dt(t),l=-n.scrollTop;return"rtl"===R(s||i).direction&&(a+=P(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(V(t)))}function _t(t){var e,i=t.reference,n=t.element,l=t.placement,c=l?N(l):null,u=l?tt(l):null,f=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2;switch(c){case s:e={x:f,y:i.y-n.height};break;case o:e={x:f,y:i.y+i.height};break;case r:e={x:i.x+i.width,y:p};break;case a:e={x:i.x-n.width,y:p};break;default:e={x:i.x,y:i.y}}var m=c?Y(c):null;if(null!=m){var g="y"===m?"height":"width";switch(u){case h:e[m]=e[m]-(i[g]/2-n[g]/2);break;case d:e[m]=e[m]+(i[g]/2-n[g]/2)}}return e}function bt(t,e){void 0===e&&(e={});var i=e,n=i.placement,a=void 0===n?t.placement:n,l=i.strategy,h=void 0===l?t.strategy:l,d=i.boundary,g=void 0===d?u:d,_=i.rootBoundary,b=void 0===_?f:_,v=i.elementContext,y=void 0===v?p:v,w=i.altBoundary,A=void 0!==w&&w,E=i.padding,C=void 0===E?0:E,T=G("number"!=typeof C?C:J(C,c)),O=y===p?m:p,x=t.rects.popper,L=t.elements[A?O:y],$=function(t,e,i,n){var s="clippingParents"===e?function(t){var e=pt(K(t)),i=["absolute","fixed"].indexOf(R(t).position)>=0&&D(t)?X(t):t;return S(i)?e.filter((function(t){return S(t)&&z(t,i)&&"body"!==k(t)})):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(e,i){var s=gt(t,i,n);return e.top=P(s.top,e.top),e.right=M(s.right,e.right),e.bottom=M(s.bottom,e.bottom),e.left=P(s.left,e.left),e}),gt(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(S(L)?L:L.contextElement||V(t.elements.popper),g,b,h),I=W(t.elements.reference),N=_t({reference:I,element:x,strategy:"absolute",placement:a}),j=mt(Object.assign({},x,N)),F=y===p?j:I,H={top:$.top-F.top+T.top,bottom:F.bottom-$.bottom+T.bottom,left:$.left-F.left+T.left,right:F.right-$.right+T.right},B=t.modifiersData.offset;if(y===p&&B){var q=B[a];Object.keys(H).forEach((function(t){var e=[r,o].indexOf(t)>=0?1:-1,i=[s,o].indexOf(t)>=0?"y":"x";H[t]+=q[i]*e}))}return H}const vt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var d=i.mainAxis,u=void 0===d||d,f=i.altAxis,p=void 0===f||f,m=i.fallbackPlacements,b=i.padding,v=i.boundary,y=i.rootBoundary,w=i.altBoundary,A=i.flipVariations,E=void 0===A||A,C=i.allowedAutoPlacements,T=e.options.placement,O=N(T),x=m||(O!==T&&E?function(t){if(N(t)===l)return[];var e=at(t);return[ct(t),e,ct(e)]}(T):[at(T)]),k=[T].concat(x).reduce((function(t,i){return t.concat(N(i)===l?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,h=void 0===l?_:l,d=tt(n),u=d?a?g:g.filter((function(t){return tt(t)===d})):c,f=u.filter((function(t){return h.indexOf(t)>=0}));0===f.length&&(f=u);var p=f.reduce((function(e,i){return e[i]=bt(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[N(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:v,rootBoundary:y,padding:b,flipVariations:E,allowedAutoPlacements:C}):i)}),[]),L=e.rects.reference,S=e.rects.popper,D=new Map,$=!0,I=k[0],P=0;P=0,W=H?"width":"height",B=bt(e,{placement:M,boundary:v,rootBoundary:y,altBoundary:w,padding:b}),z=H?F?r:a:F?o:s;L[W]>S[W]&&(z=at(z));var R=at(z),q=[];if(u&&q.push(B[j]<=0),p&&q.push(B[z]<=0,B[R]<=0),q.every((function(t){return t}))){I=M,$=!1;break}D.set(M,q)}if($)for(var V=function(t){var e=k.find((function(e){var i=D.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return I=e,"break"},K=E?3:1;K>0&&"break"!==V(K);K--);e.placement!==I&&(e.modifiersData[n]._skip=!0,e.placement=I,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function yt(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function wt(t){return[s,r,o,a].some((function(e){return t[e]>=0}))}const At={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=bt(e,{elementContext:"reference"}),a=bt(e,{altBoundary:!0}),l=yt(r,n),c=yt(a,s,o),h=wt(l),d=wt(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:h,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":d})}},Et={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,o=i.offset,l=void 0===o?[0,0]:o,c=_.reduce((function(t,i){return t[i]=function(t,e,i){var n=N(t),o=[a,s].indexOf(n)>=0?-1:1,l="function"==typeof i?i(Object.assign({},e,{placement:t})):i,c=l[0],h=l[1];return c=c||0,h=(h||0)*o,[a,r].indexOf(n)>=0?{x:h,y:c}:{x:c,y:h}}(i,e.rects,l),t}),{}),h=c[e.placement],d=h.x,u=h.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=d,e.modifiersData.popperOffsets.y+=u),e.modifiersData[n]=c}},Ct={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=_t({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Tt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,l=i.mainAxis,c=void 0===l||l,d=i.altAxis,u=void 0!==d&&d,f=i.boundary,p=i.rootBoundary,m=i.altBoundary,g=i.padding,_=i.tether,b=void 0===_||_,v=i.tetherOffset,y=void 0===v?0:v,w=bt(e,{boundary:f,rootBoundary:p,padding:g,altBoundary:m}),A=N(e.placement),E=tt(e.placement),C=!E,T=Y(A),O="x"===T?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,L=e.rects.popper,S="function"==typeof y?y(Object.assign({},e.rects,{placement:e.placement})):y,D="number"==typeof S?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(x){if(c){var j,F="y"===T?s:a,H="y"===T?o:r,W="y"===T?"height":"width",z=x[T],R=z+w[F],q=z-w[H],V=b?-L[W]/2:0,K=E===h?k[W]:L[W],Q=E===h?-L[W]:-k[W],G=e.elements.arrow,J=b&&G?B(G):{width:0,height:0},Z=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},et=Z[F],it=Z[H],nt=U(0,k[W],J[W]),st=C?k[W]/2-V-nt-et-D.mainAxis:K-nt-et-D.mainAxis,ot=C?-k[W]/2+V+nt+it+D.mainAxis:Q+nt+it+D.mainAxis,rt=e.elements.arrow&&X(e.elements.arrow),at=rt?"y"===T?rt.clientTop||0:rt.clientLeft||0:0,lt=null!=(j=null==$?void 0:$[T])?j:0,ct=z+ot-lt,ht=U(b?M(R,z+st-lt-at):R,z,b?P(q,ct):q);x[T]=ht,I[T]=ht-z}if(u){var dt,ut="x"===T?s:a,ft="x"===T?o:r,pt=x[O],mt="y"===O?"height":"width",gt=pt+w[ut],_t=pt-w[ft],vt=-1!==[s,a].indexOf(A),yt=null!=(dt=null==$?void 0:$[O])?dt:0,wt=vt?gt:pt-k[mt]-L[mt]-yt+D.altAxis,At=vt?pt+k[mt]+L[mt]-yt-D.altAxis:_t,Et=b&&vt?function(t,e,i){var n=U(t,e,i);return n>i?i:n}(wt,pt,At):U(b?wt:gt,pt,b?At:_t);x[O]=Et,I[O]=Et-pt}e.modifiersData[n]=I}},requiresIfExists:["offset"]};function Ot(t,e,i){void 0===i&&(i=!1);var n,s,o=D(e),r=D(e)&&function(t){var e=t.getBoundingClientRect(),i=j(e.width)/t.offsetWidth||1,n=j(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=V(e),l=W(t,r,i),c={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(o||!o&&!i)&&(("body"!==k(e)||ut(a))&&(c=(n=e)!==L(n)&&D(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:ht(n)),D(e)?((h=W(e,!0)).x+=e.clientLeft,h.y+=e.clientTop):a&&(h.x=dt(a))),{x:l.left+c.scrollLeft-h.x,y:l.top+c.scrollTop-h.y,width:l.width,height:l.height}}function xt(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var kt={placement:"bottom",modifiers:[],strategy:"absolute"};function Lt(){for(var t=arguments.length,e=new Array(t),i=0;iNt.has(t)&&Nt.get(t).get(e)||null,remove(t,e){if(!Nt.has(t))return;const i=Nt.get(t);i.delete(e),0===i.size&&Nt.delete(t)}},Mt="transitionend",jt=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,((t,e)=>`#${CSS.escape(e)}`))),t),Ft=t=>{t.dispatchEvent(new Event(Mt))},Ht=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),Wt=t=>Ht(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(jt(t)):null,Bt=t=>{if(!Ht(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},zt=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),Rt=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?Rt(t.parentNode):null},qt=()=>{},Vt=t=>{t.offsetHeight},Kt=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Qt=[],Xt=()=>"rtl"===document.documentElement.dir,Yt=t=>{var e;e=()=>{const e=Kt();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(Qt.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of Qt)t()})),Qt.push(e)):e()},Ut=(t,e=[],i=t)=>"function"==typeof t?t(...e):i,Gt=(t,e,i=!0)=>{if(!i)return void Ut(t);const n=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(e)+5;let s=!1;const o=({target:i})=>{i===e&&(s=!0,e.removeEventListener(Mt,o),Ut(t))};e.addEventListener(Mt,o),setTimeout((()=>{s||Ft(e)}),n)},Jt=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},Zt=/[^.]*(?=\..*)\.|.*/,te=/\..*/,ee=/::\d+$/,ie={};let ne=1;const se={mouseenter:"mouseover",mouseleave:"mouseout"},oe=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function re(t,e){return e&&`${e}::${ne++}`||t.uidEvent||ne++}function ae(t){const e=re(t);return t.uidEvent=e,ie[e]=ie[e]||{},ie[e]}function le(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function ce(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=fe(t);return oe.has(o)||(o=t),[n,s,o]}function he(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=ce(e,i,n);if(e in se){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=ae(t),c=l[a]||(l[a]={}),h=le(c,r,o?i:null);if(h)return void(h.oneOff=h.oneOff&&s);const d=re(r,e.replace(Zt,"")),u=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return me(s,{delegateTarget:r}),n.oneOff&&pe.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return me(n,{delegateTarget:t}),i.oneOff&&pe.off(t,n.type,e),e.apply(t,[n])}}(t,r);u.delegationSelector=o?i:null,u.callable=r,u.oneOff=s,u.uidEvent=d,c[d]=u,t.addEventListener(a,u,o)}function de(t,e,i,n,s){const o=le(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function ue(t,e,i,n){const s=e[i]||{};for(const[o,r]of Object.entries(s))o.includes(n)&&de(t,e,i,r.callable,r.delegationSelector)}function fe(t){return t=t.replace(te,""),se[t]||t}const pe={on(t,e,i,n){he(t,e,i,n,!1)},one(t,e,i,n){he(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=ce(e,i,n),a=r!==e,l=ae(t),c=l[r]||{},h=e.startsWith(".");if(void 0===o){if(h)for(const i of Object.keys(l))ue(t,l,i,e.slice(1));for(const[i,n]of Object.entries(c)){const s=i.replace(ee,"");a&&!e.includes(s)||de(t,l,r,n.callable,n.delegationSelector)}}else{if(!Object.keys(c).length)return;de(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=Kt();let s=null,o=!0,r=!0,a=!1;e!==fe(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());const l=me(new Event(e,{bubbles:o,cancelable:!0}),i);return a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function me(t,e={}){for(const[i,n]of Object.entries(e))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}function ge(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function _e(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const be={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${_e(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${_e(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=ge(t.dataset[n])}return e},getDataAttribute:(t,e)=>ge(t.getAttribute(`data-bs-${_e(e)}`))};class ve{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=Ht(e)?be.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...Ht(e)?be.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[n,s]of Object.entries(e)){const e=t[n],o=Ht(e)?"element":null==(i=e)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(o))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${o}" but expected type "${s}".`)}var i}}class ye extends ve{constructor(t,e){super(),(t=Wt(t))&&(this._element=t,this._config=this._getConfig(e),Pt.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Pt.remove(this._element,this.constructor.DATA_KEY),pe.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){Gt(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Pt.get(Wt(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.3.3"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const we=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e?e.split(",").map((t=>jt(t))).join(","):null},Ae={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!zt(t)&&Bt(t)))},getSelectorFromElement(t){const e=we(t);return e&&Ae.findOne(e)?e:null},getElementFromSelector(t){const e=we(t);return e?Ae.findOne(e):null},getMultipleElementsFromSelector(t){const e=we(t);return e?Ae.find(e):[]}},Ee=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,n=t.NAME;pe.on(document,i,`[data-bs-dismiss="${n}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),zt(this))return;const s=Ae.getElementFromSelector(this)||this.closest(`.${n}`);t.getOrCreateInstance(s)[e]()}))},Ce=".bs.alert",Te=`close${Ce}`,Oe=`closed${Ce}`;class xe extends ye{static get NAME(){return"alert"}close(){if(pe.trigger(this._element,Te).defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),pe.trigger(this._element,Oe),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=xe.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}Ee(xe,"close"),Yt(xe);const ke='[data-bs-toggle="button"]';class Le extends ye{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=Le.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}pe.on(document,"click.bs.button.data-api",ke,(t=>{t.preventDefault();const e=t.target.closest(ke);Le.getOrCreateInstance(e).toggle()})),Yt(Le);const Se=".bs.swipe",De=`touchstart${Se}`,$e=`touchmove${Se}`,Ie=`touchend${Se}`,Ne=`pointerdown${Se}`,Pe=`pointerup${Se}`,Me={endCallback:null,leftCallback:null,rightCallback:null},je={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Fe extends ve{constructor(t,e){super(),this._element=t,t&&Fe.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return Me}static get DefaultType(){return je}static get NAME(){return"swipe"}dispose(){pe.off(this._element,Se)}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),Ut(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&Ut(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(pe.on(this._element,Ne,(t=>this._start(t))),pe.on(this._element,Pe,(t=>this._end(t))),this._element.classList.add("pointer-event")):(pe.on(this._element,De,(t=>this._start(t))),pe.on(this._element,$e,(t=>this._move(t))),pe.on(this._element,Ie,(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const He=".bs.carousel",We=".data-api",Be="ArrowLeft",ze="ArrowRight",Re="next",qe="prev",Ve="left",Ke="right",Qe=`slide${He}`,Xe=`slid${He}`,Ye=`keydown${He}`,Ue=`mouseenter${He}`,Ge=`mouseleave${He}`,Je=`dragstart${He}`,Ze=`load${He}${We}`,ti=`click${He}${We}`,ei="carousel",ii="active",ni=".active",si=".carousel-item",oi=ni+si,ri={[Be]:Ke,[ze]:Ve},ai={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},li={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class ci extends ye{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=Ae.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ei&&this.cycle()}static get Default(){return ai}static get DefaultType(){return li}static get NAME(){return"carousel"}next(){this._slide(Re)}nextWhenVisible(){!document.hidden&&Bt(this._element)&&this.next()}prev(){this._slide(qe)}pause(){this._isSliding&&Ft(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?pe.one(this._element,Xe,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void pe.one(this._element,Xe,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?Re:qe;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&pe.on(this._element,Ye,(t=>this._keydown(t))),"hover"===this._config.pause&&(pe.on(this._element,Ue,(()=>this.pause())),pe.on(this._element,Ge,(()=>this._maybeEnableCycle()))),this._config.touch&&Fe.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of Ae.find(".carousel-item img",this._element))pe.on(t,Je,(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(Ve)),rightCallback:()=>this._slide(this._directionToOrder(Ke)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new Fe(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=ri[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=Ae.findOne(ni,this._indicatorsElement);e.classList.remove(ii),e.removeAttribute("aria-current");const i=Ae.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(ii),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===Re,s=e||Jt(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=e=>pe.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r(Qe).defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),Vt(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(ii),i.classList.remove(ii,c,l),this._isSliding=!1,r(Xe)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return Ae.findOne(oi,this._element)}_getItems(){return Ae.find(si,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return Xt()?t===Ve?qe:Re:t===Ve?Re:qe}_orderToDirection(t){return Xt()?t===qe?Ve:Ke:t===qe?Ke:Ve}static jQueryInterface(t){return this.each((function(){const e=ci.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}pe.on(document,ti,"[data-bs-slide], [data-bs-slide-to]",(function(t){const e=Ae.getElementFromSelector(this);if(!e||!e.classList.contains(ei))return;t.preventDefault();const i=ci.getOrCreateInstance(e),n=this.getAttribute("data-bs-slide-to");return n?(i.to(n),void i._maybeEnableCycle()):"next"===be.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),pe.on(window,Ze,(()=>{const t=Ae.find('[data-bs-ride="carousel"]');for(const e of t)ci.getOrCreateInstance(e)})),Yt(ci);const hi=".bs.collapse",di=`show${hi}`,ui=`shown${hi}`,fi=`hide${hi}`,pi=`hidden${hi}`,mi=`click${hi}.data-api`,gi="show",_i="collapse",bi="collapsing",vi=`:scope .${_i} .${_i}`,yi='[data-bs-toggle="collapse"]',wi={parent:null,toggle:!0},Ai={parent:"(null|element)",toggle:"boolean"};class Ei extends ye{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const i=Ae.find(yi);for(const t of i){const e=Ae.getSelectorFromElement(t),i=Ae.find(e).filter((t=>t===this._element));null!==e&&i.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return wi}static get DefaultType(){return Ai}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>Ei.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(pe.trigger(this._element,di).defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(_i),this._element.classList.add(bi),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(bi),this._element.classList.add(_i,gi),this._element.style[e]="",pe.trigger(this._element,ui)}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(pe.trigger(this._element,fi).defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,Vt(this._element),this._element.classList.add(bi),this._element.classList.remove(_i,gi);for(const t of this._triggerArray){const e=Ae.getElementFromSelector(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(bi),this._element.classList.add(_i),pe.trigger(this._element,pi)}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(gi)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=Wt(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(yi);for(const e of t){const t=Ae.getElementFromSelector(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=Ae.find(vi,this._config.parent);return Ae.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=Ei.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}pe.on(document,mi,yi,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();for(const t of Ae.getMultipleElementsFromSelector(this))Ei.getOrCreateInstance(t,{toggle:!1}).toggle()})),Yt(Ei);const Ci="dropdown",Ti=".bs.dropdown",Oi=".data-api",xi="ArrowUp",ki="ArrowDown",Li=`hide${Ti}`,Si=`hidden${Ti}`,Di=`show${Ti}`,$i=`shown${Ti}`,Ii=`click${Ti}${Oi}`,Ni=`keydown${Ti}${Oi}`,Pi=`keyup${Ti}${Oi}`,Mi="show",ji='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Fi=`${ji}.${Mi}`,Hi=".dropdown-menu",Wi=Xt()?"top-end":"top-start",Bi=Xt()?"top-start":"top-end",zi=Xt()?"bottom-end":"bottom-start",Ri=Xt()?"bottom-start":"bottom-end",qi=Xt()?"left-start":"right-start",Vi=Xt()?"right-start":"left-start",Ki={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Qi={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Xi extends ye{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=Ae.next(this._element,Hi)[0]||Ae.prev(this._element,Hi)[0]||Ae.findOne(Hi,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ki}static get DefaultType(){return Qi}static get NAME(){return Ci}toggle(){return this._isShown()?this.hide():this.show()}show(){if(zt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!pe.trigger(this._element,Di,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))pe.on(t,"mouseover",qt);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Mi),this._element.classList.add(Mi),pe.trigger(this._element,$i,t)}}hide(){if(zt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!pe.trigger(this._element,Li,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))pe.off(t,"mouseover",qt);this._popper&&this._popper.destroy(),this._menu.classList.remove(Mi),this._element.classList.remove(Mi),this._element.setAttribute("aria-expanded","false"),be.removeDataAttribute(this._menu,"popper"),pe.trigger(this._element,Si,t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!Ht(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ci.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===n)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:Ht(this._config.reference)?t=Wt(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=$t(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Mi)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return qi;if(t.classList.contains("dropstart"))return Vi;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?Bi:Wi:e?Ri:zi}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(be.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...Ut(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const i=Ae.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>Bt(t)));i.length&&Jt(i,e,t===ki,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=Xi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=Ae.find(Fi);for(const i of e){const e=Xi.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[xi,ki].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(ji)?this:Ae.prev(this,ji)[0]||Ae.next(this,ji)[0]||Ae.findOne(ji,t.delegateTarget.parentNode),o=Xi.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}pe.on(document,Ni,ji,Xi.dataApiKeydownHandler),pe.on(document,Ni,Hi,Xi.dataApiKeydownHandler),pe.on(document,Ii,Xi.clearMenus),pe.on(document,Pi,Xi.clearMenus),pe.on(document,Ii,ji,(function(t){t.preventDefault(),Xi.getOrCreateInstance(this).toggle()})),Yt(Xi);const Yi="backdrop",Ui="show",Gi=`mousedown.bs.${Yi}`,Ji={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Zi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class tn extends ve{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return Ji}static get DefaultType(){return Zi}static get NAME(){return Yi}show(t){if(!this._config.isVisible)return void Ut(t);this._append();const e=this._getElement();this._config.isAnimated&&Vt(e),e.classList.add(Ui),this._emulateAnimation((()=>{Ut(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(Ui),this._emulateAnimation((()=>{this.dispose(),Ut(t)}))):Ut(t)}dispose(){this._isAppended&&(pe.off(this._element,Gi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=Wt(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),pe.on(t,Gi,(()=>{Ut(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){Gt(t,this._getElement(),this._config.isAnimated)}}const en=".bs.focustrap",nn=`focusin${en}`,sn=`keydown.tab${en}`,on="backward",rn={autofocus:!0,trapElement:null},an={autofocus:"boolean",trapElement:"element"};class ln extends ve{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return rn}static get DefaultType(){return an}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),pe.off(document,en),pe.on(document,nn,(t=>this._handleFocusin(t))),pe.on(document,sn,(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,pe.off(document,en))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=Ae.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===on?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?on:"forward")}}const cn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hn=".sticky-top",dn="padding-right",un="margin-right";class fn{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,dn,(e=>e+t)),this._setElementAttributes(cn,dn,(e=>e+t)),this._setElementAttributes(hn,un,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,dn),this._resetElementAttributes(cn,dn),this._resetElementAttributes(hn,un)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&be.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=be.getDataAttribute(t,e);null!==i?(be.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(Ht(t))e(t);else for(const i of Ae.find(t,this._element))e(i)}}const pn=".bs.modal",mn=`hide${pn}`,gn=`hidePrevented${pn}`,_n=`hidden${pn}`,bn=`show${pn}`,vn=`shown${pn}`,yn=`resize${pn}`,wn=`click.dismiss${pn}`,An=`mousedown.dismiss${pn}`,En=`keydown.dismiss${pn}`,Cn=`click${pn}.data-api`,Tn="modal-open",On="show",xn="modal-static",kn={backdrop:!0,focus:!0,keyboard:!0},Ln={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Sn extends ye{constructor(t,e){super(t,e),this._dialog=Ae.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new fn,this._addEventListeners()}static get Default(){return kn}static get DefaultType(){return Ln}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||pe.trigger(this._element,bn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Tn),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(pe.trigger(this._element,mn).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(On),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){pe.off(window,pn),pe.off(this._dialog,pn),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new tn({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new ln({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=Ae.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),Vt(this._element),this._element.classList.add(On),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,pe.trigger(this._element,vn,{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){pe.on(this._element,En,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),pe.on(window,yn,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),pe.on(this._element,An,(t=>{pe.one(this._element,wn,(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Tn),this._resetAdjustments(),this._scrollBar.reset(),pe.trigger(this._element,_n)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(pe.trigger(this._element,gn).defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(xn)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(xn),this._queueCallback((()=>{this._element.classList.remove(xn),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=Xt()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=Xt()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=Sn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}pe.on(document,Cn,'[data-bs-toggle="modal"]',(function(t){const e=Ae.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),pe.one(e,bn,(t=>{t.defaultPrevented||pe.one(e,_n,(()=>{Bt(this)&&this.focus()}))}));const i=Ae.findOne(".modal.show");i&&Sn.getInstance(i).hide(),Sn.getOrCreateInstance(e).toggle(this)})),Ee(Sn),Yt(Sn);const Dn=".bs.offcanvas",$n=".data-api",In=`load${Dn}${$n}`,Nn="show",Pn="showing",Mn="hiding",jn=".offcanvas.show",Fn=`show${Dn}`,Hn=`shown${Dn}`,Wn=`hide${Dn}`,Bn=`hidePrevented${Dn}`,zn=`hidden${Dn}`,Rn=`resize${Dn}`,qn=`click${Dn}${$n}`,Vn=`keydown.dismiss${Dn}`,Kn={backdrop:!0,keyboard:!0,scroll:!1},Qn={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class Xn extends ye{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return Kn}static get DefaultType(){return Qn}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||pe.trigger(this._element,Fn,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new fn).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Pn),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Nn),this._element.classList.remove(Pn),pe.trigger(this._element,Hn,{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(pe.trigger(this._element,Wn).defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Mn),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Nn,Mn),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new fn).reset(),pe.trigger(this._element,zn)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new tn({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():pe.trigger(this._element,Bn)}:null})}_initializeFocusTrap(){return new ln({trapElement:this._element})}_addEventListeners(){pe.on(this._element,Vn,(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():pe.trigger(this._element,Bn))}))}static jQueryInterface(t){return this.each((function(){const e=Xn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}pe.on(document,qn,'[data-bs-toggle="offcanvas"]',(function(t){const e=Ae.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),zt(this))return;pe.one(e,zn,(()=>{Bt(this)&&this.focus()}));const i=Ae.findOne(jn);i&&i!==e&&Xn.getInstance(i).hide(),Xn.getOrCreateInstance(e).toggle(this)})),pe.on(window,In,(()=>{for(const t of Ae.find(jn))Xn.getOrCreateInstance(t).show()})),pe.on(window,Rn,(()=>{for(const t of Ae.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&Xn.getOrCreateInstance(t).hide()})),Ee(Xn),Yt(Xn);const Yn={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Un=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Gn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Jn=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Un.has(i)||Boolean(Gn.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Zn={allowList:Yn,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},ts={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},es={entry:"(string|element|function|null)",selector:"(string|element)"};class is extends ve{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Zn}static get DefaultType(){return ts}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},es)}_setContent(t,e,i){const n=Ae.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?Ht(e)?this._putElementInTemplate(Wt(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Jn(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return Ut(t,[this])}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const ns=new Set(["sanitize","allowList","sanitizeFn"]),ss="fade",os="show",rs=".tooltip-inner",as=".modal",ls="hide.bs.modal",cs="hover",hs="focus",ds={AUTO:"auto",TOP:"top",RIGHT:Xt()?"left":"right",BOTTOM:"bottom",LEFT:Xt()?"right":"left"},us={allowList:Yn,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},fs={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class ps extends ye{constructor(t,e){if(void 0===n)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return us}static get DefaultType(){return fs}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),pe.off(this._element.closest(as),ls,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=pe.trigger(this._element,this.constructor.eventName("show")),e=(Rt(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),pe.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(i),i.classList.add(os),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))pe.on(t,"mouseover",qt);this._queueCallback((()=>{pe.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(this._isShown()&&!pe.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented){if(this._getTipElement().classList.remove(os),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))pe.off(t,"mouseover",qt);this._activeTrigger.click=!1,this._activeTrigger[hs]=!1,this._activeTrigger[cs]=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),pe.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(ss,os),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(ss),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new is({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[rs]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(ss)}_isShown(){return this.tip&&this.tip.classList.contains(os)}_createPopper(t){const e=Ut(this._config.placement,[this,t,this._element]),i=ds[e.toUpperCase()];return $t(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return Ut(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,...Ut(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)pe.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===cs?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===cs?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");pe.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?hs:cs]=!0,e._enter()})),pe.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?hs:cs]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},pe.on(this._element.closest(as),ls,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=be.getDataAttributes(this._element);for(const t of Object.keys(e))ns.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:Wt(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,i]of Object.entries(this._config))this.constructor.Default[e]!==i&&(t[e]=i);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each((function(){const e=ps.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Yt(ps);const ms=".popover-header",gs=".popover-body",_s={...ps.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},bs={...ps.DefaultType,content:"(null|string|element|function)"};class vs extends ps{static get Default(){return _s}static get DefaultType(){return bs}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[ms]:this._getTitle(),[gs]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=vs.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}Yt(vs);const ys=".bs.scrollspy",ws=`activate${ys}`,As=`click${ys}`,Es=`load${ys}.data-api`,Cs="active",Ts="[href]",Os=".nav-link",xs=`${Os}, .nav-item > ${Os}, .list-group-item`,ks={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},Ls={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class Ss extends ye{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return ks}static get DefaultType(){return Ls}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=Wt(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(pe.off(this._config.target,As),pe.on(this._config.target,As,Ts,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=Ae.find(Ts,this._config.target);for(const e of t){if(!e.hash||zt(e))continue;const t=Ae.findOne(decodeURI(e.hash),this._element);Bt(t)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Cs),this._activateParents(t),pe.trigger(this._element,ws,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))Ae.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(Cs);else for(const e of Ae.parents(t,".nav, .list-group"))for(const t of Ae.prev(e,xs))t.classList.add(Cs)}_clearActiveClass(t){t.classList.remove(Cs);const e=Ae.find(`${Ts}.${Cs}`,t);for(const t of e)t.classList.remove(Cs)}static jQueryInterface(t){return this.each((function(){const e=Ss.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}pe.on(window,Es,(()=>{for(const t of Ae.find('[data-bs-spy="scroll"]'))Ss.getOrCreateInstance(t)})),Yt(Ss);const Ds=".bs.tab",$s=`hide${Ds}`,Is=`hidden${Ds}`,Ns=`show${Ds}`,Ps=`shown${Ds}`,Ms=`click${Ds}`,js=`keydown${Ds}`,Fs=`load${Ds}`,Hs="ArrowLeft",Ws="ArrowRight",Bs="ArrowUp",zs="ArrowDown",Rs="Home",qs="End",Vs="active",Ks="fade",Qs="show",Xs=".dropdown-toggle",Ys=`:not(${Xs})`,Us='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Gs=`.nav-link${Ys}, .list-group-item${Ys}, [role="tab"]${Ys}, ${Us}`,Js=`.${Vs}[data-bs-toggle="tab"], .${Vs}[data-bs-toggle="pill"], .${Vs}[data-bs-toggle="list"]`;class Zs extends ye{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),pe.on(this._element,js,(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?pe.trigger(e,$s,{relatedTarget:t}):null;pe.trigger(t,Ns,{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(Vs),this._activate(Ae.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),pe.trigger(t,Ps,{relatedTarget:e})):t.classList.add(Qs)}),t,t.classList.contains(Ks)))}_deactivate(t,e){t&&(t.classList.remove(Vs),t.blur(),this._deactivate(Ae.getElementFromSelector(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),pe.trigger(t,Is,{relatedTarget:e})):t.classList.remove(Qs)}),t,t.classList.contains(Ks)))}_keydown(t){if(![Hs,Ws,Bs,zs,Rs,qs].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter((t=>!zt(t)));let i;if([Rs,qs].includes(t.key))i=e[t.key===Rs?0:e.length-1];else{const n=[Ws,zs].includes(t.key);i=Jt(e,t.target,n,!0)}i&&(i.focus({preventScroll:!0}),Zs.getOrCreateInstance(i).show())}_getChildren(){return Ae.find(Gs,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=Ae.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=Ae.findOne(t,i);s&&s.classList.toggle(n,e)};n(Xs,Vs),n(".dropdown-menu",Qs),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(Vs)}_getInnerElement(t){return t.matches(Gs)?t:Ae.findOne(Gs,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=Zs.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}pe.on(document,Ms,Us,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),zt(this)||Zs.getOrCreateInstance(this).show()})),pe.on(window,Fs,(()=>{for(const t of Ae.find(Js))Zs.getOrCreateInstance(t)})),Yt(Zs);const to=".bs.toast",eo=`mouseover${to}`,io=`mouseout${to}`,no=`focusin${to}`,so=`focusout${to}`,oo=`hide${to}`,ro=`hidden${to}`,ao=`show${to}`,lo=`shown${to}`,co="hide",ho="show",uo="showing",fo={animation:"boolean",autohide:"boolean",delay:"number"},po={animation:!0,autohide:!0,delay:5e3};class mo extends ye{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return po}static get DefaultType(){return fo}static get NAME(){return"toast"}show(){pe.trigger(this._element,ao).defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(co),Vt(this._element),this._element.classList.add(ho,uo),this._queueCallback((()=>{this._element.classList.remove(uo),pe.trigger(this._element,lo),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(pe.trigger(this._element,oo).defaultPrevented||(this._element.classList.add(uo),this._queueCallback((()=>{this._element.classList.add(co),this._element.classList.remove(uo,ho),pe.trigger(this._element,ro)}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ho),super.dispose()}isShown(){return this._element.classList.contains(ho)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){pe.on(this._element,eo,(t=>this._onInteraction(t,!0))),pe.on(this._element,io,(t=>this._onInteraction(t,!1))),pe.on(this._element,no,(t=>this._onInteraction(t,!0))),pe.on(this._element,so,(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=mo.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}Ee(mo),Yt(mo)}}]); \ No newline at end of file diff --git a/NearBeach/static/NearBeach/9336.min.js.LICENSE.txt b/NearBeach/static/NearBeach/9336.min.js.LICENSE.txt new file mode 100644 index 000000000..28755c2c5 --- /dev/null +++ b/NearBeach/static/NearBeach/9336.min.js.LICENSE.txt @@ -0,0 +1,5 @@ +/*! + * Bootstrap v5.3.3 (https://getbootstrap.com/) + * Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + */ diff --git a/NearBeach/static/NearBeach/9336.min.js.LICENSE.txt.gz b/NearBeach/static/NearBeach/9336.min.js.LICENSE.txt.gz new file mode 100644 index 000000000..e5f299dc3 Binary files /dev/null and b/NearBeach/static/NearBeach/9336.min.js.LICENSE.txt.gz differ diff --git a/NearBeach/static/NearBeach/9336.min.js.gz b/NearBeach/static/NearBeach/9336.min.js.gz new file mode 100644 index 000000000..485fe3d7b Binary files /dev/null and b/NearBeach/static/NearBeach/9336.min.js.gz differ diff --git a/NearBeach/static/NearBeach/942.min.js b/NearBeach/static/NearBeach/942.min.js new file mode 100644 index 000000000..539859558 --- /dev/null +++ b/NearBeach/static/NearBeach/942.min.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunknearbeach=self.webpackChunknearbeach||[]).push([[942],{6122:(e,t,a)=>{a.d(t,{A:()=>h});var l=a(641);const i={class:"row"},s={class:"col-md-8",style:{"min-height":"610px"}};var o=a(9639),n=a(3855),r=a(404),d=a(8838),u=a(379),c=a(3396),m=a(2124);const p={name:"RfcBackoutPlan",setup:()=>({v$:(0,o.Ay)()}),components:{editor:d.A,ValidationRendering:r.A},props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:()=>[]},uuid:{type:String,default:""}},computed:{...(0,m.L8)({contentCss:"getContentCss",skin:"getSkin"})},mixins:[u.A,c.A],data:()=>({rfcBackoutPlanModel:""}),validations:{rfcBackoutPlanModel:{required:n.mw,maxLength:(0,n.Ru)(63e4)}},methods:{handleUploadImage(e,t){return""===this.uuid?this.uploadImage(e,t):this.newObjectUploadImage(e,t)},updateValidation(){this.v$.$touch(),this.$emit("update_validation",{tab:"tab_4",value:!this.v$.$invalid})},updateValues(e,t){this.$emit("update_values",{modelName:e,modelValue:t})}},watch:{rfcBackoutPlanModel(){this.updateValues("rfcBackoutPlan",this.rfcBackoutPlanModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcBackoutPlanModel=this.rfcResults[0].fields.rfc_backout_plan),this.v$.$touch()}},h=(0,a(6262).A)(p,[["render",function(e,t,a,o,n,r){const d=(0,l.g2)("validation-rendering"),u=(0,l.g2)("editor");return(0,l.uX)(),(0,l.CE)("div",i,[t[3]||(t[3]=(0,l.Lk)("div",{class:"col-md-4"},[(0,l.Lk)("h2",null,"Backout Plan"),(0,l.Lk)("p",{class:"text-instructions"}," Please outline the backout plan that will be implemented, and when it will be implemented, when something goes wrong with the Request for Change. ")],-1)),(0,l.Lk)("div",s,[(0,l.Lk)("label",null,[t[1]||(t[1]=(0,l.eW)(" Backout Plan: ")),(0,l.bF)(d,{"error-list":o.v$.rfcBackoutPlanModel.$errors},null,8,["error-list"])]),t[2]||(t[2]=(0,l.Lk)("br",null,null,-1)),(0,l.bF)(u,{init:{license_key:"gpl",file_picker_types:"image",height:500,images_upload_handler:r.handleUploadImage,menubar:!1,paste_data_images:!0,plugins:["lists","image","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}`},disabled:a.isReadOnly,modelValue:e.rfcBackoutPlanModel,"onUpdate:modelValue":t[0]||(t[0]=t=>e.rfcBackoutPlanModel=t)},null,8,["init","disabled","modelValue"])])])}]])},3601:(e,t,a)=>{a.d(t,{A:()=>h});var l=a(641);const i={class:"row"},s={class:"col-md-8",style:{"min-height":"610px"}};var o=a(9639),n=a(3855),r=a(404),d=a(8838),u=a(379),c=a(3396),m=a(2124);const p={name:"RfcImplementationPlan",setup:()=>({v$:(0,o.Ay)()}),components:{editor:d.A,ValidationRendering:r.A},props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:()=>[]},uuid:{type:String,default:""}},computed:{...(0,m.L8)({contentCss:"getContentCss",skin:"getSkin"})},mixins:[u.A,c.A],data:()=>({rfcImplementationPlanModel:""}),validations:{rfcImplementationPlanModel:{required:n.mw,maxLength:(0,n.Ru)(63e4)}},methods:{handleUploadImage(e,t){return""===this.uuid?this.uploadImage(e,t):this.newObjectUploadImage(e,t)},updateValidation(){this.v$.$touch(),this.$emit("update_validation",{tab:"tab_3",value:!this.v$.$invalid})},updateValues(e,t){this.$emit("update_values",{modelName:e,modelValue:t})}},watch:{rfcImplementationPlanModel(){this.updateValues("rfcImplementationPlanModel",this.rfcImplementationPlanModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcImplementationPlanModel=this.rfcResults[0].fields.rfc_implementation_plan),this.v$.$touch()}},h=(0,a(6262).A)(p,[["render",function(e,t,a,o,n,r){const d=(0,l.g2)("validation-rendering"),u=(0,l.g2)("editor");return(0,l.uX)(),(0,l.CE)("div",i,[t[3]||(t[3]=(0,l.Lk)("div",{class:"col-md-4"},[(0,l.Lk)("h2",null,"Implementation Plan"),(0,l.Lk)("p",{class:"text-instructions"}," Please outline your implementation plan for this request for change. ")],-1)),(0,l.Lk)("div",s,[(0,l.Lk)("label",null,[t[1]||(t[1]=(0,l.eW)(" Implementation Plan: ")),(0,l.bF)(d,{"error-list":o.v$.rfcImplementationPlanModel.$errors},null,8,["error-list"])]),t[2]||(t[2]=(0,l.Lk)("br",null,null,-1)),(0,l.bF)(u,{init:{license_key:"gpl",file_picker_types:"image",height:500,images_upload_handler:r.handleUploadImage,menubar:!1,paste_data_images:!0,plugins:["lists","image","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}`},disabled:a.isReadOnly,modelValue:e.rfcImplementationPlanModel,"onUpdate:modelValue":t[0]||(t[0]=t=>e.rfcImplementationPlanModel=t)},null,8,["init","disabled","modelValue"])])])}]])},4712:(e,t,a)=>{a.d(t,{A:()=>v});var l=a(641);const i={class:"row"},s={class:"col-md-8",style:{"min-height":"610px"}},o={class:"row"},n={class:"col-md-4"},r={class:"col-md-4"},d={class:"col-md-4"};var u=a(9639),c=a(3855),m=a(404),p=a(1080),h=a(8838),f=a(379),g=a(3396),k=a(2124);const b={name:"RfcRisk",setup:()=>({v$:(0,u.Ay)()}),components:{editor:h.A,NSelect:p.A,ValidationRendering:m.A},props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:()=>[]},uuid:{type:String,default:""}},computed:{...(0,k.L8)({contentCss:"getContentCss",skin:"getSkin"})},mixins:[f.A,g.A],data:()=>({rfcPriority:[{label:"Critical",value:4},{label:"High",value:3},{label:"Medium",value:2},{label:"Low",value:1}],rfcPriorityModel:"",rfcRisk:[{label:"Very High",value:5},{label:"High",value:4},{label:"Moderate",value:3},{label:"Low",value:2},{label:"None",value:1}],rfcRiskModel:"",rfcRiskSummaryModel:"",rfcImpact:[{label:"High",value:3},{label:"Medium",value:2},{label:"Low",value:1}],rfcImpactModel:""}),validations:{rfcPriorityModel:{required:c.mw},rfcRiskModel:{required:c.mw},rfcRiskSummaryModel:{required:c.mw,maxLength:(0,c.Ru)(63e4)},rfcImpactModel:{required:c.mw}},methods:{handleUploadImage(e,t){return""===this.uuid?this.uploadImage(e,t):this.newObjectUploadImage(e,t)},updateValidation(){this.v$.$touch(),this.$emit("update_validation",{tab:"tab_2",value:!this.v$.$invalid})},updateValues(e,t){this.$emit("update_values",{modelName:e,modelValue:t})}},watch:{rfcPriority(){this.updateValues("rfcPriority",this.rfcPriority),this.updateValidation()},rfcPriorityModel(){this.updateValues("rfcPriorityModel",this.rfcPriorityModel),this.updateValidation()},rfcRisk(){this.updateValues("rfcRisk",this.rfcRisk),this.updateValidation()},rfcRiskModel(){this.updateValues("rfcRiskModel",this.rfcRiskModel),this.updateValidation()},rfcRiskSummaryModel(){this.updateValues("rfcRiskSummaryModel",this.rfcRiskSummaryModel),this.updateValidation()},rfcImpact(){this.updateValues("rfcImpact",this.rfcImpact),this.updateValidation()},rfcImpactModel(){this.updateValues("rfcImpactModel",this.rfcImpactModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcPriorityModel=this.rfcResults[0].fields.rfc_priority,this.rfcRiskModel=this.rfcResults[0].fields.rfc_risk,this.rfcRiskSummaryModel=this.rfcResults[0].fields.rfc_risk_and_impact_analysis,this.rfcImpactModel=this.rfcResults[0].fields.rfc_impact),this.v$.$touch()}},v=(0,a(6262).A)(b,[["render",function(e,t,a,u,c,m){const p=(0,l.g2)("validation-rendering"),h=(0,l.g2)("n-select"),f=(0,l.g2)("editor");return(0,l.uX)(),(0,l.CE)("div",i,[t[10]||(t[10]=(0,l.Lk)("div",{class:"col-md-4"},[(0,l.Lk)("h2",null,"Risk"),(0,l.Lk)("p",{class:"text-instructions"}," Please outline all risks associated with this Request for Change. A detail list of all risks should be noted. ")],-1)),(0,l.Lk)("div",s,[(0,l.Lk)("div",o,[(0,l.Lk)("div",n,[(0,l.Lk)("label",null,[t[4]||(t[4]=(0,l.eW)(" Priority of Change ")),(0,l.bF)(p,{"error-list":u.v$.rfcPriorityModel.$errors},null,8,["error-list"])]),(0,l.bF)(h,{options:e.rfcPriority,disabled:a.isReadOnly,value:e.rfcPriorityModel,"onUpdate:value":t[0]||(t[0]=t=>e.rfcPriorityModel=t)},null,8,["options","disabled","value"])]),(0,l.Lk)("div",r,[(0,l.Lk)("label",null,[t[5]||(t[5]=(0,l.eW)(" Risk of Change ")),(0,l.bF)(p,{"error-list":u.v$.rfcRiskModel.$errors},null,8,["error-list"])]),(0,l.bF)(h,{options:e.rfcRisk,disabled:a.isReadOnly,value:e.rfcRiskModel,"onUpdate:value":t[1]||(t[1]=t=>e.rfcRiskModel=t)},null,8,["options","disabled","value"])]),(0,l.Lk)("div",d,[(0,l.Lk)("label",null,[t[6]||(t[6]=(0,l.eW)(" Impact of Change ")),(0,l.bF)(p,{"error-list":u.v$.rfcImpactModel.$errors},null,8,["error-list"])]),(0,l.bF)(h,{options:e.rfcImpact,disabled:a.isReadOnly,value:e.rfcImpactModel,"onUpdate:value":t[2]||(t[2]=t=>e.rfcImpactModel=t)},null,8,["options","disabled","value"])])]),t[8]||(t[8]=(0,l.Lk)("br",null,null,-1)),(0,l.Q3)(" RFC SUMMARY "),(0,l.Lk)("label",null,[t[7]||(t[7]=(0,l.eW)(" Risk Association: ")),(0,l.bF)(p,{"error-list":u.v$.rfcRiskSummaryModel.$errors},null,8,["error-list"])]),t[9]||(t[9]=(0,l.Lk)("br",null,null,-1)),(0,l.bF)(f,{init:{license_key:"gpl",file_picker_types:"image",height:500,images_upload_handler:m.handleUploadImage,menubar:!1,paste_data_images:!0,plugins:["lists","image","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}`},disabled:a.isReadOnly,modelValue:e.rfcRiskSummaryModel,"onUpdate:modelValue":t[3]||(t[3]=t=>e.rfcRiskSummaryModel=t)},null,8,["init","disabled","modelValue"])])])}]])},7004:(e,t,a)=>{a.d(t,{A:()=>h});var l=a(641);const i={class:"row"},s={class:"col-md-8",style:{"min-height":"610px"}};var o=a(9639),n=a(3855),r=a(404),d=a(8838),u=a(379),c=a(3396),m=a(2124);const p={name:"RfcTestPlan",setup:()=>({v$:(0,o.Ay)()}),components:{editor:d.A,ValidationRendering:r.A},props:{isReadOnly:{type:Boolean,default:!1},rfcResults:{type:Array,default:()=>[]},uuid:{type:String,default:""}},computed:{...(0,m.L8)({contentCss:"getContentCss",skin:"getSkin"})},mixins:[u.A,c.A],data:()=>({rfcTestPlanModel:""}),validations:{rfcTestPlanModel:{required:n.mw,maxLength:(0,n.Ru)(63e4)}},methods:{handleUploadImage(e,t){return""===this.uuid?this.uploadImage(e,t):this.newObjectUploadImage(e,t)},updateValidation(){this.v$.$touch(),this.$emit("update_validation",{tab:"tab_5",value:!this.v$.$invalid})},updateValues(e,t){this.$emit("update_values",{modelName:e,modelValue:t})}},watch:{rfcTestPlanModel(){this.updateValues("rfcTestPlanModel",this.rfcTestPlanModel),this.updateValidation()}},mounted(){this.rfcResults.length>0&&(this.rfcTestPlanModel=this.rfcResults[0].fields.rfc_test_plan),this.v$.$touch()}},h=(0,a(6262).A)(p,[["render",function(e,t,a,o,n,r){const d=(0,l.g2)("validation-rendering"),u=(0,l.g2)("editor");return(0,l.uX)(),(0,l.CE)("div",i,[t[3]||(t[3]=(0,l.Lk)("div",{class:"col-md-4"},[(0,l.Lk)("h2",null,"Test Plan"),(0,l.Lk)("p",{class:"text-instructions"}," Outline your test plan. How will you test the Request for Change once it has been implemented. ")],-1)),(0,l.Lk)("div",s,[(0,l.Lk)("label",null,[t[1]||(t[1]=(0,l.eW)(" Test Plan: ")),(0,l.bF)(d,{"error-list":o.v$.rfcTestPlanModel.$errors},null,8,["error-list"])]),t[2]||(t[2]=(0,l.Lk)("br",null,null,-1)),(0,l.bF)(u,{init:{license_key:"gpl",file_picker_types:"image",height:500,images_upload_handler:r.handleUploadImage,menubar:!1,paste_data_images:!0,plugins:["lists","image","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}`},disabled:a.isReadOnly,modelValue:e.rfcTestPlanModel,"onUpdate:modelValue":t[0]||(t[0]=t=>e.rfcTestPlanModel=t)},null,8,["init","disabled","modelValue"])])])}]])},404:(e,t,a)=>{a.d(t,{A:()=>o});var l=a(641),i=a(33);const s={name:"ValidationRendering",props:{errorList:{type:Array,default:()=>[]}}},o=(0,a(6262).A)(s,[["render",function(e,t,a,s,o,n){return(0,l.uX)(!0),(0,l.CE)(l.FK,null,(0,l.pI)(a.errorList,(e=>((0,l.uX)(),(0,l.CE)("span",{class:"error",key:e.$uid},(0,i.toDisplayString)(e.$message),1)))),128)}]])},9827:(e,t,a)=>{a.d(t,{A:()=>i});var l=a(7413);const i={data:()=>({darkTheme:l.a}),methods:{getTheme:e=>"dark"===e?l.a:null}}},3396:(e,t,a)=>{a.d(t,{A:()=>l});const l={methods:{newObjectUploadImage(e){const t=new FormData;return t.set("document",e.blob(),e.filename()),t.set("document_description",e.filename()),t.set("uuid",this.uuid),this.axios.post(`${this.rootUrl}documentation/new_object_upload/`,t,{onUploadProgress:()=>{}}).then((e=>`/private/${e.data[0].document_key_id}`)).catch((e=>{this.$store.dispatch("newToast",{header:"Error uploading image",message:`Error uploading image. Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))},replaceIncorrectImageUrl:e=>e.replace(new RegExp(''),(e=>e.replace("../","/")))}}},379:(e,t,a)=>{a.d(t,{A:()=>i});var l=a(1083);const i={computed:{...(0,a(2124).L8)({destination:"getDestination",locationId:"getLocationId",rootUrl:"getRootUrl"})},methods:{uploadImage(e){const t=new FormData;return t.set("document",e.blob(),e.filename()),t.set("document_description",e.filename()),this.axios.post(`${this.rootUrl}documentation/${this.destination}/${this.locationId}/upload/`,t,{onUploadProgress:()=>{}}).then((e=>`/private/${e.data[0].document_key_id}`)).catch((e=>{this.$store.dispatch("newToast",{header:"Failed to upload image",message:`Sorry, could not upload image. Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))},newObjectUploadImage(e){const t=new FormData;return t.set("document",e.blob(),e.filename()),t.set("document_description",e.filename()),t.set("uuid",this.uuid),l.A.post(`${this.rootUrl}documentation/new_object_upload/`,t,{onUploadProgress:()=>{}}).then((e=>`/private/${e.data[0].document_key_id}`)).catch((e=>{this.$store.dispatch("newToast",{header:"Failed to upload image",message:`Sorry, could not upload image. Error -> ${e}`,extra_classes:"bg-danger",delay:0})}))}}}}}]); \ No newline at end of file diff --git a/NearBeach/static/NearBeach/942.min.js.gz b/NearBeach/static/NearBeach/942.min.js.gz new file mode 100644 index 000000000..3cd68ec69 Binary files /dev/null and b/NearBeach/static/NearBeach/942.min.js.gz differ diff --git a/NearBeach/static/NearBeach/NearBeach.min.js b/NearBeach/static/NearBeach/NearBeach.min.js index ad28bb8b2..b6a89e353 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:()=>Oo,CAMELIZE:()=>R,CAPITALIZE:()=>L,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:()=>Qo,DOMErrorCodes:()=>Ho,DOMErrorMessages:()=>Go,DOMNodeTransforms:()=>Zo,ElementTypes:()=>X,ErrorCodes:()=>Lt,FRAGMENT:()=>n,GUARD_REACTIVE_PROPS:()=>N,IS_MEMO_SAME:()=>$,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:()=>M,SUSPENSE:()=>a,TELEPORT:()=>i,TO_DISPLAY_STRING:()=>S,TO_HANDLERS:()=>I,TO_HANDLER_KEY:()=>D,TRANSITION:()=>jo,TRANSITION_GROUP:()=>Fo,TS_NODE_TYPES:()=>Xt,UNREF:()=>z,V_MODEL_CHECKBOX:()=>No,V_MODEL_DYNAMIC:()=>Lo,V_MODEL_RADIO:()=>Co,V_MODEL_SELECT:()=>Ro,V_MODEL_TEXT:()=>Io,V_ON_WITH_KEYS:()=>Mo,V_ON_WITH_MODIFIERS:()=>Do,V_SHOW:()=>Po,WITH_CTX:()=>F,WITH_DIRECTIVES:()=>w,WITH_MEMO:()=>U,advancePositionWithClone:()=>de,advancePositionWithMutation:()=>pe,assert:()=>ue,baseCompile:()=>To,baseParse:()=>cr,buildDirectiveArgs:()=>so,buildProps:()=>no,buildSlots:()=>Jr,checkCompatEnabled:()=>At,compile:()=>tn,convertToBlock:()=>gt,createArrayExpression:()=>Z,createAssignmentExpression:()=>pt,createBlockStatement:()=>lt,createCacheExpression:()=>st,createCallExpression:()=>nt,createCompilerError:()=>Rt,createCompoundExpression:()=>ot,createConditionalExpression:()=>at,createDOMCompilerError:()=>Bo,createForLoopParams:()=>qr,createFunctionExpression:()=>it,createIfStatement:()=>dt,createInterpolation:()=>rt,createObjectExpression:()=>Q,createObjectProperty:()=>tt,createReturnStatement:()=>mt,createRoot:()=>K,createSequenceExpression:()=>ut,createSimpleExpression:()=>et,createStructuralDirectiveTransform:()=>wr,createTemplateLiteral:()=>ct,createTransformContext:()=>vr,createVNodeCall:()=>J,errorMessages:()=>Dt,extractIdentifiers:()=>Bt,findDir:()=>me,findProp:()=>be,forAliasRE:()=>Ae,generate:()=>Er,generateCodeFrame:()=>o.generateCodeFrame,getBaseTransformPreset:()=>So,getConstantType:()=>mr,getMemoedVNodeCall:()=>Oe,getVNodeBlockHelper:()=>ft,getVNodeHelper:()=>bt,hasDynamicKeyVBind:()=>ge,hasScopeRef:()=>Te,helperNameMap:()=>B,injectProp:()=>ke,isCoreComponent:()=>Kt,isFnExpression:()=>ce,isFnExpressionBrowser:()=>se,isFnExpressionNode:()=>le,isFunctionType:()=>Ht,isInDestructureAssignment:()=>jt,isInNewExpression:()=>Ft,isMemberExpression:()=>ie,isMemberExpressionBrowser:()=>oe,isMemberExpressionNode:()=>ne,isReferencedIdentifier:()=>Pt,isSimpleIdentifier:()=>Zt,isSlotOutlet:()=>xe,isStaticArgOf:()=>fe,isStaticExp:()=>Yt,isStaticProperty:()=>Gt,isStaticPropertyKey:()=>qt,isTemplateNode:()=>ye,isText:()=>he,isVSlot:()=>ve,locStub:()=>Y,noopDirectiveTransform:()=>Ao,parse:()=>en,parserOptions:()=>Vo,processExpression:()=>Lr,processFor:()=>Hr,processIf:()=>Pr,processSlotOutlet:()=>po,registerRuntimeHelpers:()=>H,resolveComponentType:()=>oo,stringifyExpression:()=>Dr,toValidAssetId:()=>Se,trackSlotScopes:()=>Wr,trackVForSlotScopes:()=>Yr,transform:()=>yr,transformBind:()=>Vr,transformElement:()=>ro,transformExpression:()=>Rr,transformModel:()=>go,transformOn:()=>uo,transformStyle:()=>Uo,traverseNode:()=>xr,unwrapTSNode:()=>Wt,walkBlockDeclarations:()=>Vt,walkFunctionParams:()=>zt,walkIdentifiers:()=>Mt,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(""),R=Symbol(""),L=Symbol(""),D=Symbol(""),M=Symbol(""),P=Symbol(""),j=Symbol(""),F=Symbol(""),z=Symbol(""),V=Symbol(""),U=Symbol(""),$=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",[R]:"camelize",[L]:"capitalize",[D]:"toHandlerKey",[M]:"setBlockTracking",[P]:"pushScopeId",[j]:"popScopeId",[F]:"withCtx",[z]:"unref",[V]:"isRef",[U]:"withMemo",[$]:"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_CACHE:2,2:"CAN_CACHE",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:[],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,needPauseTracking:r,needArraySpread:!1,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