PageSourceSearch

https://brunswickcommunitygarden.org/chunk-T6NYJQOJ.js

js brunswickcommunitygarden.org collected 2026-10-04 04:49:39 UTC 10,448 bytes, 1 lines download raw bytes

1import{a as A,b as F,c as P,d as k}from"./chunk-BAUWNT65.js";import"./chunk-VXQORJJR.js";import"./chunk-WLQRZKUN.js";import"./chunk-DS4AIPSE.js";import"./chunk-H7OONDXZ.js";import"./chunk-TDILXZKK.js";import"./chunk-RK6MLJ4X.js";import"./chunk-L3HSRXJU.js";import"./chunk-VIWRDM6N.js";import"./chunk-YESPKHO7.js";import"./chunk-SDU5T74Z.js";import"./chunk-V3GMQY6G.js";import"./chunk-UR2KBBA5.js";import"./chunk-DA76C544.js";import"./chunk-NPT4AQLX.js";import"./chunk-7MRLKPUZ.js";import"./chunk-3XSTVEXJ.js";import"./chunk-ZVF5W3G4.js";import"./chunk-6R42NDBO.js";import"./chunk-SCSLBDXO.js";import"./chunk-TWI37GRV.js";import"./chunk-WIV6V6BO.js";import"./chunk-2NRCY3AE.js";import{j as L,l as M,m as O,n as q,o as B}from"./chunk-ZSSEHUWF.js";import"./chunk-G7YERPEU.js";import"./chunk-YWAKYRFU.js";import"./chunk-E377JFF3.js";import"./chunk-AAX2BHXC.js";import"./chunk-FZRJ3ZMB.js";import"./chunk-TIDZKA64.js";import"./chunk-YJPXKMCI.js";import"./chunk-TBX7EPQ3.js";import"./chunk-WPKIPGN3.js";import"./chunk-KYWJ7XOX.js";import"./chunk-CECGRJBW.js";import"./chunk-CR2TG24Q.js";import"./chunk-AA34USIG.js";import"./chunk-WA3RF7RD.js";import"./chunk-NQFO7PMJ.js";import"./chunk-LUEGUK3Q.js";import"./chunk-6XUFF3LM.js";import"./chunk-AYTEQVTY.js";import"./chunk-GV4OVQZ2.js";import"./chunk-3HJ55VC5.js";import"./chunk-M3UUCW4O.js";import"./chunk-SKKMTLYV.js";import"./chunk-IL3HIAPO.js";import"./chunk-JRE2K62Y.js";import"./chunk-H7RORMGP.js";import"./chunk-CZIO7URN.js";import"./chunk-LFRLLWTR.js";import"./chunk-G4OTKVG5.js";import"./chunk-6KYVPCBO.js";import"./chunk-EDDQ4U32.js";import"./chunk-DFJSMUCN.js";import"./chunk-7YCZXWOH.js";import"./chunk-4X4YWUWP.js";import"./chunk-V3E2ERUA.js";import"./chunk-Y63VS7A3.js";import"./chunk-QNXXL7JU.js";import"./chunk-SE4NSTQE.js";import"./chunk-SDPX5CXS.js";import"./chunk-BOPYDO2O.js";import"./chunk-ECBZS2YU.js";import"./chunk-3BPU4M5O.js";import"./chunk-YZ4TGC4A.js";import"./chunk-6ULN3UB5.js";import"./chunk-LDGUPJDZ.js";import"./chunk-A2JVCVQE.js";import"./chunk-PSSYP2BM.js";import"./chunk-M65ACPAW.js";import"./chunk-TP2GUFTC.js";import"./chunk-OOWURR2T.js";import"./chunk-VOLMSOLP.js";import"./chunk-3RK6DDJD.js";import"./chunk-XUWTXBJI.js";import"./chunk-G72XQVEA.js";import"./chunk-3G5SZSTM.js";import"./chunk-5BBESZEL.js";import"./chunk-CQJTFGXU.js";import"./chunk-S7CND7D5.js";import"./chunk-TCGT2JLP.js";import"./chunk-4S7DMHLT.js";import"./chunk-Z7SBAHQQ.js";import"./chunk-DJRWUD3L.js";import"./chunk-5QUU3YZM.js";import"./chunk-SGYCFQGT.js";import"./chunk-VTTYDP5X.js";import"./chunk-ADQMENTV.js";import"./chunk-KCJJJZMN.js";import"./chunk-D4JPWOA2.js";import"./chunk-IQUCNCJ7.js";import"./chunk-XTLBRYE5.js";import"./chunk-3GA2SOXR.js";import"./chunk-EHC7I5JO.js";import"./chunk-RZRUURJK.js";import"./chunk-7QJBA4XE.js";import"./chunk-DG27WG7O.js";import"./chunk-BJG2EUOY.js";import{i as Q}from"./chunk-47PYUJVP.js";
1import"./chunk-5OJALBHH.js";import"./chunk-5QGGL6VJ.js";import{b as j}from"./chunk-COVAZGM3.js";import{E as w,H as R,ua as H}from"./chunk-UT3T4CPM.js";import"./chunk-CVAHDBKT.js";import{Dc as v,Ea as l,Ec as x,Fa as u,Lc as S,Mc as C,N as V,Nc as h,Ob as E,Tb as y,Tc as f,Vc as D,dc as s,sc as a,tc as p,ua as g,uc as _,yb as i,yc as N}from"./chunk-LBMBSTLT.js";import{g as I}from"./chunk-GAL4ENT6.js";var K=["daysAndTimes"],z=["restrictedTimes"];function W(o,T){if(o&1&&(f(0,"Overview: "),_(1,"br"),f(2)),o&2){let m=x();i(2),D(" ",m.stepLabelResourceName," ")}}function G(o,T){o&1&&f(0,"Reservation Settings ")}function J(o,T){o&1&&f(0,"Days and Times")}function X(o,T){o&1&&f(0,"Restricted Times")}function Y(o,T){o&1&&f(0,"Additional Info")}var _e=(()=>{class o{constructor(){this.formHelperService=g(Q),this.communicationService=g(H),this.apiService=g(j),this.isEntryInvalid=!0,this.stepLabelResourceName="",this.valid_objects=w,this.allFormStatus={crudName:!1,crudReservationSettings:!0,crudDaysAndTimes:!0}}saveResourceData(){this.communicationService.setPageLoadingMessage(!0);var m,r=[],e=[],t;for(let c=1;c<3;c++){switch(c){case 1:t=this.resourceCrudComponent.resourceForm;break;case 2:t=this.resourceAddlInfo.addlInfoForm;break}e=this.formHelperService.convertFormToArray(t,R.new),e.forEach(U=>{r.push(U)})}this.resourceSettings.processDataForSave(),r=this.formHelperService.addToFieldArray("reservation_settings",this.resourceSettings.resourceSetting,r);var d=this.daysAndTimesComponent.getRestrictedTimesArray();d&&d.length>0&&(r=this.formHelperService.addToFieldArray("days_and_times",d,r));var n=this.restrictedTimesComponent.getRestrictedTimesArray();n&&n.length>0&&(r=this.formHelperService.addToFieldArray("restricted_times",n,r));var b={id:"",table_name:"resource",fields:r,avatar_details:{},action_notifications:[]};this.resourceCrudComponent.avatar_details&&Object.keys(this.resourceCrudComponent.avatar_details).length>0&&(b.avatar_details=this.resourceCrudComponent.avatar_details),this.resourceAddlInfo.updateNotifications&&(b.action_notifications=this.resourceAddlInfo.actionNotifications.actionNotificationsUpsert),this.apiService.insertObject(b,R.new,w.resources).pipe(V(c=>c)).subscribe(c=>I(this,null,function*(){c.statusCode=="Success"||c.statusCode==200?(this.communicationService.setPageLoadingMessage(!1),this.formHelperService.navigateToNextPage("Resource Created","OK","/admin/resources")):(this.communicationService.setPageLoadingMessage(!1),this.communicationService.setSnackBarMessage({message:"Error creating your resource: "+c.data,action:"OK",message_type:"error"}))}))}formStatusUpdate(m,r){this.allFormStatus[m]=r,this.allFormStatus.crudName==!0&&this.allFormStatus.crudReservationSettings==!0&&this.allFormStatus.crudDaysAndTimes==!0&&(this.isEntryInvalid=!1)}updatedTimes(m){}stepSelected(m){switch(m.selectedIndex){case 2:(!this.daysAndTimesComponent.resourceTypeId||this.daysAndTimesComponent.resourceTypeId!=this.resourceCrudComponent.resourceForm.controls.resource_type_id.value)&&(this.resourceSettings&&(this.daysAndTimesComponent.referenceArray={days_and_times:[],days_and_times_override:[],reservation_settings:this.resourceSettings.resourceSetting}),this.daysAndTimesComponent.edit(),this.daysAndTimesComponent.resourceTypeId=this.resourceCrudComponent.resourceForm.controls.resource_type_id.value,this.daysAndTimesComponent.loadCalendar());break;case 3:(!this.restrictedTimesComponent.resourceTypeId||this.daysAndTimesComponent.resourceTypeId!=this.resourceCrudComponent.resourceForm.controls.resource_type_id.value)&&(this.resourceSettings&&(this.daysAndTimesComponent.referenceArray={days_and_times:[],days_and_times_override:[],reservation_settings:this.resourceSettings.resourceSetting}),this.restrictedTimesComponent.edit(),this.restrictedTimesComponent.resourceTypeId=this.resourceCrudComponent.resourceForm.controls.resource_type_id.value,this.restrictedTimesComponent.loadCalendar());break}}static{this.\u0275fac=function(r){return new(r||o)}}static{this.\u0275cmp=E({type:o,selectors:[["app-resource-crud-stepper"]],viewQuery:function(r,e){if(r&1&&(S(K,5),S(z,5),S(A,5),S(F,5),S(k,5)),r&2){let t;C(t=h())&&(e.daysAndTimesComponent=t.first),C(t=h())&&(e.restrictedTimesComponent=t.first),C(t=h())&&(e.resourceCrudComponent=t.first),C(t=h())&&(e.resourceSettings=t.first),C(t=h())&&(e.resourceAddlInfo=t.first)}},decls:36,vars:23,consts:[["stepper",""],["daysAndTimes",""],["restrictedTimes",""],[1,"container","content-space-1"],[1,"row","mb-2"],[1,"d-flex","justify-content-end","gap-3"],["type","submit","matSubheader","",1,"btn","btn-primary",3,"click","disabled"],["orientation","horizontal","labelPosition","bottom","errorMessage","Resource Name is required.",3,"selectionChange","linear"],[2,"margin-bottom","10px",3,"completed"],["matStepLabel",""],[3,"stepLabelOverview","formStatus"],[3,"btnDisabled","tooltipText"],[3,"completed"],[1,"mb-2"],[3,"controlDisabled","showHeader"],[3,"tooltipText"],[3,"interacted","selected"],[3,"updatedTimes","showHeader","column_name","reference_type"],["optional","true"],[3,"showHeader"]],template:function(r,e){if(r&1){let t=N();a(0,"div",3)(1,"div",4)(2,"div",5)(3,"button",6),v("click",function(){return l(t),u(e.saveResourceData())}),f(4,"Save"),p()()(),a(5,"mat-stepper",7,0),v("selectionChange",function(n){return l(t),u(e.stepSelected(n))}),a(7,"mat-step",8),y(8,W,3,1,"ng-template",9),a(9,"app-resource-crud",10),v("stepLabelOverview",function(n){return l(t),u(e.stepLabelResourceName=n)})("formStatus",function(n){return l(t),u(e.formStatusUpdate("crudName",n))}),p(),_(10,"app-stepper-next",11),p(),a(11,"mat-step",12),y(12,G,1,0,"ng-template",9),a(13,"div",13),_(14,"app-resource-settings",14),p(),_(15,"app-stepper-back",15)(16,"app-stepper-next",11),p(),a(17,"mat-step",16),v("interacted",function(){return l(t),u(e.stepSelected("hi"))})("selected",function(){return l(t),u(e.stepSelected(e.valid_objects.days_and_times))}),y(18,J,1,0,"ng-template",9),a(19,"div",13)(20,"app-calendar-week",17,1),v("updatedTimes",function(n){return l(t),u(e.updatedTimes(n))}),p()(),_(22,"app-stepper-back",15)(23,"app-stepper-next",15),p(),a(24,"mat-step",18),y(25,X,1,0,"ng-template",9),a(26,"div",13)(27,"app-calendar-week",17,2),v("updatedTimes",function(n){return l(t),u(e.updatedTimes(n))}),p()(),_(29,"app-stepper-back",15)(30,"app-stepper-next",15),p(),a(31,"mat-step",18),y(32,Y,1,0,"ng-template",9),a(33,"div",13),_(34,"app-resource-crud-additional-info",19),p(),_(35,"app-stepper-back",15),p()()()}r&2&&(i(3),s("disabled",e.isEntryInvalid),i(2),s("linear",!0),i(2),s("completed",e.allFormStatus.crudName),i(3),s("btnDisabled",!e.allFormStatus.crudName)("tooltipText","Set Reservation Settings"),i(),s("completed",e.allFormStatus.crudReservationSettings),i(3),s("controlDisabled",!1)("showHeader",!1),i(),s("tooltipText","Back to Reservation Overview"),i(),s("btnDisabled",!e.allFormStatus.crudReservationSettings)("tooltipText","Set Days and Times"),i(4),s("showHeader",!1)("column_name",e.valid_objects.days_and_times)("reference_type",e.valid_objects.resources),i(2),s("tooltipText","Back to Reservation Settings"),i(),s("tooltipText","Set Restricted Times"),i(4),s("showHeader",!1)("column_name",e.valid_objects.restricted_times)("reference_type",e.valid_objects.resources),i(2),s("tooltipText","Back to Days and Times"),i(),s("tooltipText","Set Notifications"),i(4),s("showHeader",!1),i(),s("tooltipText","Back to Restricted Times"))},dependencies:[B,q,M,L,O,A,F,P,k],encapsulation:2})}}return o}
1)();export{_e as ResourceCrudStepperComponent};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.