PageSourceSearch

https://ymove.app/_next/static/chunks/pages/dashboard/signups-37c6e9bdca94a766.js

js ymove.app collected 2026-10-01 14:17:35 UTC 5,749 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[582],{82989:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/dashboard/signups",function(){return a(86320)}])},36063:function(e,t,a){"use strict";var n=a(85893),i=a(67294),r=a(36657),o=a(48173),s=a(36157),c=a(335);function l(e){let[t,a]=(0,i.useState)(e.value);return(0,i.useEffect)(()=>{e.onChange(t)},[t]),(0,n.jsx)("div",{children:(0,n.jsxs)(c.r,{checked:t,onChange:a,style:{background:t?"#6a35e9":"rgb(106 53 233 / 25%)"},className:"bg-purple relative inline-flex h-[20px] w-[37px] shrink-0 cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2  focus-visible:ring-white focus-visible:ring-opacity-75",children:[(0,n.jsx)("span",{className:"sr-only",children:"Use setting"}),(0,n.jsx)("span",{"aria-hidden":"true",className:"".concat(t?"translate-x-4":"translate-x-0","\n            pointer-events-none inline-block h-[16px] w-[16px] transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out")})]})})}let d=(e,t,a)=>{let n={...t};return Object.keys(a.properties).forEach(t=>{let i=a.properties[t];if("boolean"===i.type&&(n[t]||(n[t]={}),n[t]["ui:widget"]=l),i.displayConditions){let r=i.displayConditions,o=!0;Object.keys(r).forEach(t=>{e&&e[t]!==r[t]&&(o=!1)}),n[t]={...n[t],classNames:o?"":"hidden"}}}),n},u=e=>{let{schema:t,uiSchema:a,validator:c,onSubmit:l,formData:u,widgets:p,user:h,idPrefix:f}=e,[m,y]=(0,i.useState)(!1),[g,j]=(0,i.useState)({type:"",content:""}),[w,x]=(0,i.useState)(u),[b,v]=(0,i.useState)(d(u,a,t)),C=async e=>{y(!0);try{await l(e),y(!1),j({type:"success",content:"Update Saved!"})}catch(t){y(!1),j({type:"error",content:"Something went wrong!"}),console.log("error",t)}setTimeout(()=>{j({type:"",content:""})},3e3)},A=e=>{let{formData:n}=e;x(n),v(d(n,a,t))};return(0,n.jsxs)("div",{style:{opacity:m?.3:1,position:"relative"},children:[(0,n.jsx)(r.ZP,{idPrefix:f,schema:t,uiSchema:b,onChange:A,validator:c||s.Z,noValidate:!0,widgets:p,onSubmit:C,formData:w,disabled:m}),m&&(0,n.jsx)("div",{style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},children:(0,n.jsx)(o.TK,{})}),g.content&&(0,n.jsx)("div",{className:"message ".concat(g.type),style:{marginTop:10},role:"alert",children:(0,n.jsx)("b",{children:g.content})})]})};t.Z=u},86320:function(e,t,a){"use strict";a.r(t),a.d(t,{__N_SSP:function(){return f},default:function(){return m}});var n=a(85893);a(67294);var i=a(28593),r=a(13630);a(91915);var o=a(19929),s=a(83461),c=a(36157),l=a(59734),d=a(73479),u=a(36063);let p=Array(15).fill(void 0).map((e,t)=>({key:"column"+t,width:200,title:"Column "+t,type:r.DataType.String}));Array(30).fill(void 0).map((e,t)=>p.reduce((e,a)=>(e[a.key]="".concat(a.key," row:").concat(t),e),{id:t}));let h=async e=>{let t=await fetch(e.url,{method:"GET",headers:{Accept:"application/json","X-Authorization":"Bearer ".concat(e.jwt),"Cache-Control":"no-cache"}}),a=await t.json();return a};var f=!0;function m(e){let t=e.site,a=e.user,p=(0,l.ZP)({url:"/api/site/".concat(t.id,"/newslettersignup"),jwt:a.jwt},h),f=Array.isArray(p.data)?p.data.filter(e=>!!e.email).map(e=>({id:e.id,firstName:e.firstName,lastName:e.lastName,email:e.email})):[];return(0,n.jsxs)(i.Z,{user:e.user,site:e.site,meta:{title:"Dashboard"},children:[(0,n.jsx)("h1",{children:"Wait List Signups"}),(0,n.jsx)("br",{}),(0,n.jsx)("section",{className:"card border-0 py-1 p-md-2 p-xl-3 p-xxl-4 mb-4",children:(0,n.jsx)(u.Z,{idPrefix:"rjsf_prefix",onSubmit:async(t,a)=>{let{formData:n}=t;await (0,d.Z)(e.site,e.user.jwt,"newslettersignup",n)},formData:e.site.config.newslettersignup,uiSchema:{},schema:{type:"object",properties:{isActive:{type:"boolean",title:"Allow Sign ups?"}}},validator:c.Z,onChange:e=>{console.log("e.formData",e.formData)}})}),(0,n.jsxs)("div",{className:"card border-0 py-1 p-md-2 p-xl-3 p-xxl-4",children:[Array.isArray(p.data)&&(0,n.jsx)(s.CSVLink,{data:p.data,className:"btn btn-sm btn-secondary ms-auto",headersBKP:Array.isArray(p.data)?p.data.map(e=>({id:e.id,key:e.key})):[],filename:"users.data.csv",enclosingCharacter:"",separator:";",children:"Export"}),p.error&&(0,n.jsx)("div",{children:"Failed to load users.."}),!p.data&&(0,n.jsx)("div",{children:"Loading users..."}),Array.isArray(p.data)&&(0,n.jsx)(r.Table,{columns:[{key:"email",title:"Email",dataType:r.DataType.String}],data:f,rowKeyField:"id",filteringModeBKP:o.FilteringMode.FilterRow,childComponents:{headCellContent:{content:e=>{let{column:t}=e;return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("span",{children:t.title})})}}}})]})]})}},73479:function(e,t,a){"use strict";a(20018);let n=async(e,t)=>{let a=await fetch("/api/site?refresh=yes",{method:"GET",headers:{Accept:"application/json","X-Authorization":"Bearer ".concat(t),"Cache-Control":"no-cache"}}),n=await a.json();return n},i=async(e,t,a,i,r)=>{let o;let s=await fetch("/api/site/".concat(null==e?void 0:e.id),{method:"GET",headers:{Accept:"application/json","X-Authorization":"Bearer ".concat(t),"Cache-Control":"no-cache"}}),c=await s.json(),l={...c.config,[a]:{...c.config[a]?c.config[a]:{},...i}};try{let d=r?{[a]:{...c.config[a]?c.config[a]:{},[r]:{...c.config[a]&&c.config[a][r]?c.config[a][r]:{},...i}}}:l;
1d[a]&&Object.keys(d[a]).forEach(e=>{void 0===d[a][e]&&(d[a][e]="")}),console.log("newConfig",d);let u=await fetch("/api/site/".concat(e.id),{method:"PUT",headers:{Accept:"application/json","X-Authorization":"Bearer ".concat(t),"Cache-Control":"no-cache"},body:JSON.stringify({config:d})});o=await u.json()}catch(p){console.log("@@@@ e",p)}return await n(e,t),o};t.Z=i}},function(e){e.O(0,[4885,9612,6694,8268,18,743,5411,8593,9774,2888,179],function(){return e(e.s=82989)}),_N_E=e.O()}]);

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.