PageSourceSearch

https://www.bouncelife.com/_next/static/chunks/pages/associations/…/forms/%5BformId%5D-fd732dae034028c3.js

js bouncelife.com collected 2026-10-01 12:14:33 UTC 11,386 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4942],{10455:function(e,s,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/associations/[associationId]/settings/forms/[formId]",function(){return t(11227)}])},11227:function(e,s,t){"use strict";t.r(s),t.d(s,{default:function(){return _formId_}});var a=t(85893);t(67294);var r=t(63322),n=t(61458),o=t(58535),i=t(33703),l=t(90379),c=t(46718),d=t(36355);t(31614);var m=t(65295),f=t(11163),view=()=>{let e=(0,f.useRouter)(),{query:s}=e,t=s.associationId,u=s.formId,{data:g,isLoading:p,isError:x}=(0,m.$G)({associationId:t,formId:u});if(p)return(0,a.jsx)(l.Z,{isLoading:!0});if(x||!(null==g?void 0:g.schema))return(0,a.jsx)(i.Z,{to:"/404"});let j=new n.Hnr(g.schema);return j.applyTheme(c.Q),j.checkErrorsMode="onComplete",j.showNavigationButtons=!0,j.showPrevButton=!0,j.showCompleteButton=!1,j.hasErrors=()=>!1,j.onCurrentPageChanging.add((e,s)=>{s.allow=!0}),j.onUploadFiles.add((e,s)=>{let t=s.files.map(e=>({file:e,content:"mock-preview-url-".concat(e.name)}));setTimeout(()=>{s.callback(t)},200)}),j.onClearFiles.add((e,s)=>{s.callback("success",[])}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.Z,{isDraft:!1,title:g.name,isLoading:p,onBack:()=>e.push("/associations/".concat(t,"/settings/forms"))}),(0,a.jsx)(o.Z,{children:(0,a.jsx)("div",{className:"pt-[50px] md:pt-[120px] -mt-[90px] pb-20",children:(0,a.jsx)(r.md,{model:j})})})]})},_formId_=()=>(0,a.jsx)(view,{})},65295:function(e,s,t){"use strict";t.d(s,{BU:function(){return useDeleteFile},$G:function(){return useGetAssociationFormById},nY:function(){return useGetAssociationForms},m0:function(){return useUpdateFormResponse},nc:function(){return useUploadFiles}});var a=t(88767),r=t(890);async function getAssociationForms(e){let{data:s}=await r.Z.get("/api/associations/".concat(e,"/forms"));return s}async function getAssociationFormById(e){let{associationId:s,formId:t}=e,{data:a}=await r.Z.get("/api/associations/".concat(s,"/forms/").concat(t));return a}async function updateFormResponse(e){let{associationId:s,formId:t,responseId:a,response:n}=e,{data:o}=await r.Z.put("/api/associations/".concat(s,"/forms/").concat(t,"/responses/").concat(a),n);return o}async function uploadFiles(e){let{associationId:s,file:t}=e,a=new FormData;a.append("file",t);let{data:n}=await r.Z.post("/api/associations/".concat(s,"/forms/files"),a,{headers:{"Content-Type":"multipart/form-data"}});return n}async function deleteFile(e){let{associationId:s,filename:t}=e,{data:a}=await r.Z.delete("/api/associations/".concat(s,"/forms/files/").concat(t));return a}function useGetAssociationForms(e,s){var t;let{associationId:r}=e;return(0,a.useQuery)(["associationForms",{associationId:r}],()=>getAssociationForms(r),{enabled:!!r&&(null===(t=null==s?void 0:s.enabled)||void 0===t||t)})}function useGetAssociationFormById(e){let{associationId:s,formId:t}=e;return(0,a.useQuery)(["associationForms",{associationId:s,formId:t}],()=>getAssociationFormById({associationId:s,formId:t}),{enabled:!!s&&!!t})}function useUpdateFormResponse(){let e=(0,a.useQueryClient)();return(0,a.useMutation)(updateFormResponse,{onSuccess:(s,t)=>{let{associationId:a,formId:r,responseId:n}=t;e.invalidateQueries(["associationFormResponses",{associationId:a,formId:r}]),e.invalidateQueries(["associationFormResponses",{associationId:a,formId:r,responseId:n}])}})}function useUploadFiles(){return uploadFiles}function useDeleteFile(){return deleteFile}},36355:function(e,s,t){"use strict";t.d(s,{Z:function(){return wysiwyg_form_Header}});var a=t(85893);t(67294);var r=t(51649),n=t(86893),o=t(5434),i=t(37106),l=t(89584),c=t(27484),d=t.n(c),m=t(37668),f=t(67421),wysiwyg_form_FormStatus=e=>{var s;let{isLoading:t,lastUpdated:r}=e,{errors:n,submitCount:c}=(0,m.u6)(),{t:u}=(0,f.$G)(["events"]),g=(null===(s=Object.keys(n))||void 0===s?void 0:s.length)||0;return c>0&&g>0?(0,a.jsxs)("span",{className:"flex items-center text-red-700",children:[(0,a.jsx)(i.m2k,{size:12,className:"mr-1"}),u("events:host.publishFailed",{count:g})]}):t?(0,a.jsxs)("span",{className:"flex items-center text-yellow-600",children:[(0,a.jsx)(o.Y8K,{size:12,className:"mr-1"}),u("events:host.pending")]}):r&&5>=d()().diff(d()(r),"second")?(0,a.jsxs)("span",{className:"text-green-700 text-sm flex items-center",children:[(0,a.jsx)(o.ZSR,{size:12,className:"mr-1"}),u("events:host.changesSavedSuccessfully")]}):r?(0,a.jsxs)("span",{className:"text-gray-600 text-sm flex items-center",children:[(0,a.jsx)(o.o2E,{size:12,className:"mr-1"}),u("events:host.updated",{date:(0,l.Zh)(r)})]}):(0,a.jsxs)("span",{className:"text-gray-600 text-sm flex items-center",children:[(0,a.jsx)(o.o2E,{size:12,className:"mr-1"}),u("events:host.noChangesYet")]})},u=t(93967),g=t.n(u),p=t(17371),wysiwyg_form_Header=e=>{let{title:s,lastUpdated:t,isLoading:o,onBack:i,onMenuClick:l,isEditing:c,isDraft:d,description:m,className:u}=e,{data:x}=(0,p.po)(),{t:j}=(0,f.$G)(["events"]);return(0,a.jsx)("div",{className:g()("fixed h-14 md:h-16 top-0 lg:top-[50px] left-0 w-full px-4 py-2 md:py-6 bg-white shadow-sm z-50 flex items-center",{"md:top-[80px]":!!x},u),children:(0,a.jsxs)("div",{className:"w-full flex items-center justify-between  md:w-[800px] md:mx-auto",children:[(0,a.jsxs)("div",{className:"flex items-center",children:[(0,a.jsx)("button",{type:"button",className:"mr-2",onClick:i,"aria-label":"back",children:(0,a.jsx)(n.Ao2,{size:24,className:"text-gray-400"})}),(0,a.jsxs)("div",{className:"md:flex md:items-center",children:[(0,a.jsx)("h1",{className:"text-black text-base md:text-xl md:font-semibold md:mr-4",children:s}),t&&(0,a.jsx)("p",{className:"font-normal text-gray-600 text-sm flex items-center",children:(0,a.jsx)(wysiwyg_form_FormStatus,{lastUpdated:t,isLoading:o})}),m&&(0,a.jsx)("p",{className:"font-normal text-gray-600 text-sm flex items-center",children:m})]})]}),(0,a.jsxs)("div",{className:"flex items-center",children:[d&&(0,a.jsx)("div",{className:"mr-3",children:(0,a.jsx)("div",{className:"border-1 rounded-full px-3 py-1",children:j("events:host.draft")})}
1),!d&&c&&(0,a.jsx)("div",{className:"mr-3",children:(0,a.jsx)("div",{className:"border-1 rounded-full px-3 py-1",children:j("events:host.editMode")})}),l&&(0,a.jsx)("button",{type:"button",onClick:l,"aria-label":"menu",children:(0,a.jsx)(r.tgG,{size:24,className:"text-primary-500"})})]})]})})}},33703:function(e,s,t){"use strict";var a=t(67294),r=t(11163);s.Z=e=>{let{to:s}=e,t=(0,r.useRouter)();return(0,a.useEffect)(()=>{t.push(s)},[]),null}},46718:function(e,s,t){"use strict";t.d(s,{Q:function(){return a}});let a={themeName:"default",colorPalette:"light",isPanelless:!0,backgroundImage:"",backgroundOpacity:1,backgroundImageAttachment:"scroll",backgroundImageFit:"cover",cssVariables:{"--sjs-editorpanel-backcolor":"rgba(255, 255, 255, 1)","--sjs-editorpanel-cornerRadius":"8px","--sjs-corner-radius":"16px","--sjs-base-unit":"8px","--sjs-font-pagetitle-family":"Inter, sans-serif","--sjs-font-pagedescription-family":"Inter, sans-serif","--sjs-shadow-small":"0px 1px 2px 0px rgba(0, 0, 0, 0.15)","--sjs-font-questiontitle-family":"Inter, sans-serif","--sjs-font-questiondescription-family":"Inter, sans-serif","--sjs-shadow-inner":"inset 0px 0px 0px 2px rgba(229, 231, 235, 1)","--sjs-border-default":"rgba(0, 0, 0, 0.16)","--sjs-border-light":"rgba(0, 0, 0, 0.09)","--sjs-general-backcolor":"rgba(255, 255, 255, 1)","--sjs-general-backcolor-dark":"rgba(248, 248, 248, 1)","--sjs-general-backcolor-dim-light":"rgba(249, 249, 249, 1)","--sjs-general-backcolor-dim-dark":"rgba(243, 243, 243, 1)","--sjs-general-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-general-dim-forecolor":"rgba(0, 0, 0, 0.91)","--sjs-general-dim-forecolor-light":"rgba(0, 0, 0, 0.45)","--sjs-secondary-backcolor":"rgba(255, 152, 20, 1)","--sjs-secondary-backcolor-light":"rgba(255, 152, 20, 0.1)","--sjs-secondary-backcolor-semi-light":"rgba(255, 152, 20, 0.25)","--sjs-secondary-forecolor":"rgba(255, 255, 255, 1)","--sjs-secondary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-shadow-small-reset":"0px 0px 0px 0px rgba(0, 0, 0, 0.15)","--sjs-shadow-medium":"0px 2px 6px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-large":"0px 8px 16px 0px rgba(0, 0, 0, 0.1)","--sjs-shadow-inner-reset":"inset 0px 0px 0px 0px rgba(229, 231, 235, 1)","--sjs-border-inside":"rgba(0, 0, 0, 0.16)","--sjs-special-red-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-green":"rgba(25, 179, 148, 1)","--sjs-special-green-light":"rgba(25, 179, 148, 0.1)","--sjs-special-green-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-blue":"rgba(67, 127, 217, 1)","--sjs-special-blue-light":"rgba(67, 127, 217, 0.1)","--sjs-special-blue-forecolor":"rgba(255, 255, 255, 1)","--sjs-special-yellow":"rgba(255, 152, 20, 1)","--sjs-special-yellow-light":"rgba(255, 152, 20, 0.1)","--sjs-special-yellow-forecolor":"rgba(255, 255, 255, 1)","--sjs-article-font-xx-large-textDecoration":"none","--sjs-article-font-xx-large-fontWeight":"700","--sjs-article-font-xx-large-fontStyle":"normal","--sjs-article-font-xx-large-fontStretch":"normal","--sjs-article-font-xx-large-letterSpacing":"0","--sjs-article-font-xx-large-lineHeight":"64px","--sjs-article-font-xx-large-paragraphIndent":"0px","--sjs-article-font-xx-large-textCase":"none","--sjs-article-font-x-large-textDecoration":"none","--sjs-article-font-x-large-fontWeight":"700","--sjs-article-font-x-large-fontStyle":"normal","--sjs-article-font-x-large-fontStretch":"normal","--sjs-article-font-x-large-letterSpacing":"0","--sjs-article-font-x-large-lineHeight":"56px","--sjs-article-font-x-large-paragraphIndent":"0px","--sjs-article-font-x-large-textCase":"none","--sjs-article-font-large-textDecoration":"none","--sjs-article-font-large-fontWeight":"700","--sjs-article-font-large-fontStyle":"normal","--sjs-article-font-large-fontStretch":"normal","--sjs-article-font-large-letterSpacing":"0","--sjs-article-font-large-lineHeight":"40px","--sjs-article-font-large-paragraphIndent":"0px","--sjs-article-font-large-textCase":"none","--sjs-article-font-medium-textDecoration":"none","--sjs-article-font-medium-fontWeight":"700","--sjs-article-font-medium-fontStyle":"normal","--sjs-article-font-medium-fontStretch":"normal","--sjs-article-font-medium-letterSpacing":"0","--sjs-article-font-medium-lineHeight":"32px","--sjs-article-font-medium-paragraphIndent":"0px","--sjs-article-font-medium-textCase":"none","--sjs-article-font-default-textDecoration":"none","--sjs-article-font-default-fontWeight":"400","--sjs-article-font-default-fontStyle":"normal","--sjs-article-font-default-fontStretch":"normal","--sjs-article-font-default-letterSpacing":"0","--sjs-article-font-default-lineHeight":"28px","--sjs-article-font-default-paragraphIndent":"0px","--sjs-article-font-default-textCase":"none","--sjs-general-backcolor-dim"
1:"rgba(255, 255, 255, 1)","--sjs-primary-backcolor":"rgba(101, 134, 255, 1)","--sjs-primary-backcolor-dark":"rgba(95, 126, 240, 1)","--sjs-primary-backcolor-light":"rgba(101, 134, 255, 0.1)","--sjs-primary-forecolor":"rgba(255, 255, 255, 1)","--sjs-primary-forecolor-light":"rgba(255, 255, 255, 0.25)","--sjs-special-red":"rgba(229, 10, 62, 1)","--sjs-special-red-light":"rgba(229, 10, 62, 0.1)"},headerView:"basic"}},31614:function(){}},function(e){e.O(0,[8907,9097,8530,4329,9774,2888,179],function(){return e(e.s=10455)}),_N_E=e.O()}]);
2//# sourceMappingURL=[formId]-fd732dae034028c3.js.map

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.