PageSourceSearch

https://dashboard.camelohq.com/_next/static/chunks/pages/onboarding/data-initialization-0bd698a2f93d9489.js

js camelohq.com collected 2026-10-05 03:49:36 UTC 9,623 bytes, 2 lines download raw bytes

1try{let e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="bb64659b-78d7-4874-bd04-4b27f843cfeb",e._sentryDebugIdIdentifier="sentry-dbid-bb64659b-78d7-4874-bd04-4b27f843cfeb")}catch(e){}(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9213],{31721:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/onboarding/data-initialization",function(){return l(38921)}])},94252:function(e,t,l){"use strict";var a=l(85893),s=l(25675),i=l.n(s),n=l(41664),r=l.n(n),d=l(58575);let c=e=>{let{className:t}=e;return(0,a.jsxs)("div",{className:(0,d.m)("flex gap-2 px-5 py-8 sm:px-7 xl:px-[42px]",t),children:[(0,a.jsx)(r(),{href:"".concat("https://camelohq.com/"),legacyBehavior:!0,children:(0,a.jsx)(i(),{src:"/Camelo_Logo.svg",alt:"",height:32,width:32})}),(0,a.jsx)("span",{className:"text-2xl font-semibold tracking-tight",children:"Camelo"})]})};t.Z=c},58600:function(e,t,l){"use strict";var a=l(85893),s=l(71750),i=l(58575);let n=e=>{let{currentStep:t=1,totalSteps:l=5,showStepText:n=!0,height:r="h-2",color:d="bg-neutral-800 dark:bg-neutral-100",backgroundColor:c="bg-neutral-100 dark:bg-neutral-700",className:o="",progressClassname:u=""}=e,{t:x}=(0,s.$G)("signup");return(0,a.jsxs)("div",{className:(0,i.m)("flex w-full items-center gap-4",o),children:[(0,a.jsx)("div",{className:(0,i.m)("w-full rounded-full",c,r,u),children:(0,a.jsx)("div",{className:"".concat(d," ").concat(r," rounded-full transition-all duration-300 ease-in-out"),style:{width:"".concat(t/l*100,"%")}})}),n&&(0,a.jsxs)("div",{className:"flex shrink-0 items-center justify-between",children:[(0,a.jsx)("span",{className:"hidden text-sm font-semibold uppercase text-neutral-400 dark:text-neutral-500 sm:block",children:x("steps_indicator",{currentStep:t,totalSteps:l})}),(0,a.jsx)("span",{className:"block text-neutral-400 dark:text-neutral-500 sm:hidden",children:"".concat(t,"/").concat(l)})]})]})};t.Z=n},38921:function(e,t,l){"use strict";l.r(t),l.d(t,{__N_SSG:function(){return S},default:function(){return G}});var a=l(85893),s=l(18318),i=l.n(s),n=l(58575),r=l(61200),d=l(1393),c=l(58192),o=l(11163),u=l(12902),x=l(25675),m=l.n(x),p=l(87536),A=l(71750),h=l(67294),f=l(16789),g=l(96390),b=l(94252),v=l(58600),w=l(9008),j=l.n(w),N={src:"/_next/static/media/sample.51f7d4e5.png",height:884,width:1200,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAjklEQVR42k3BSw6CMABAwd7/YsaNuCPBpARotYKUBhDohz63zojieslGd+iupZYtRrXYl2JQDb3usjBdw79zXQmjJVpLcg7RqpoMzG5CScnuRvBf/DwTtw1RyYoQI3H3eLdgbKZ6QjoBQChZEo7AEgfUcaccbhT6QkgBMoipf2cAH3f2NPOZNMo8OM8EkH8Nm7ZQNfwM+AAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:6},_={src:"/_next/static/media/sample_thumb.de2e4a22.png",height:464,width:636,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAoElEQVR42jXNSwqDQAwG4Dm+N9GVt3BTKFZwUxC76kvtjHHUeWUmjdAGAuHPRyK0lFUIwWEk5bUGpxT4ZVGI6DivhLGm5YEWKckDUOBmSEfFGFsxyLFx1hKod+yHNX1WTMcupXSARliYa4+GFN7C9XnCaXkgg/ADteDzXcBIeiOazU6wb8TZ/0UnhvGVgd7LS2/y89gXdz0VCWPOqPTeZ1/Go7S9yJOw1wAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:6},k={src:"/_next/static/media/fresh.024099b7.png",height:1326,width:1800,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAASFBMVEX////w7+7o5uTU0tH////+///+/v79/f79/f39/fz8/Pz7+/v5+f35+frt6eXq6ufp6Obr5+Tp5+Xn5eTn5ePl5OXj4eTf3eIUOd+uAAAABHRSTlP+/v7+ukpK/AAAADFJREFUeNpjYBYSERfmE2RiEGBlAQMGMV5ONnY2NjYGUR4uDhBg4OfgBgMGRhY2sBIANEYBtP/IZCgAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},y={src:"/_next/static/media/fresh_thumb.d6078355.png",height:464,width:636,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAWlBMVEX7+/v7+/z7+/z8/Pz8/Pz8/Pz29vb8/Pz6+vr7+/vz8/b9/f3z9Pb+/v78/Pz5+fz8/Pz8/Pz6+vr9/f39/f39/f38/Pz8/Pz////+/v/9/f38/P37+/v5+ftFyPxxAAAAGHRSTlOMrK2ys8LCz8/R0dTU2+zs7fX1+/z9/f57VK4QAAAAOElEQVR42h3Bhw3AIAADsED3oGUT1v9vImFjt7/Wn9nwNmaSD+4eUor1wlmc964cUJwUsAopxYIBWl0DBBCu36sAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},z=l(41664),U=l.n(z);let D=e=>{let{option:t,isSelected:l,register:s}=e;return(0,a.jsxs)("label",{className:(0,n.m)("cursor-pointer rounded-lg p-4 outline outline-1 outline-neutral-300 transition dark:outline-neutral-600",l?"outline-2 outline-blue-500 dark:outline-blue-400":"hover:outline-neutral-400 dark:hover:outline-neutral-500"),
1children:[(0,a.jsx)("input",{type:"radio",value:t.value,...s("mode"),className:"hidden"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(m(),{src:t.thumb,alt:"".concat(t.title," option"),width:200,height:142,className:"rounded-md"}),(0,a.jsxs)("div",{className:"text-neutral-700 dark:text-neutral-200",children:[(0,a.jsx)("p",{className:(0,n.m)("text-lg font-semibold",l&&"text-blue-500 dark:text-blue-400"),children:t.title}),(0,a.jsx)("p",{className:(0,n.m)("text-sm text-neutral-500 dark:text-neutral-400",l&&"text-neutral-900 dark:text-neutral-100"),children:t.description})]})]})]})},B=e=>{let{currentUser:t,workspaceName:l,industry:s,currentOption:n}=e,{t:r}=(0,A.$G)("signup");return(0,a.jsx)("section",{className:"hidden bg-[#F5F4ED] lg:flex",children:(0,a.jsxs)("div",{className:"mx-auto flex h-full max-w-[600px] flex-col items-center justify-center gap-8",children:[(0,a.jsxs)("div",{className:"relative flex w-[440px] gap-6 xl:w-[600px] 3xl:w-full",children:[s&&(0,a.jsx)("div",{className:"hidden h-[174px] w-[172px] xl:flex",children:(0,a.jsx)(m(),{src:s.avatar,alt:s.label})}
1),(0,a.jsxs)("div",{className:"flex flex-1 flex-col gap-4 rounded-xl bg-[#FDEDD0] p-6 pt-7 text-3xl font-medium -tracking-3 text-[#692A09]",children:[(0,a.jsx)("span",{className:"-tracking-3",children:r("workspace_setup.welcome_title",{name:null==t?void 0:t.name})}),(0,a.jsx)("p",{className:i().className,children:l})]})]}),(0,a.jsx)("div",{className:"relative flex w-[440px] xl:w-[600px] 3xl:w-full",children:n&&(0,a.jsx)(m(),{src:n.image,alt:"".concat(n.title," preview")})})]})})},E=()=>{let e=(0,o.useRouter)(),t=(0,f.vN)(),{setSessionData:l}=(0,f.kP)(),a=(0,c.U0)(),s=()=>{e.replace({pathname:"/get_started",query:{demo:"true"}})},{mutate:i,isPending:n}=(0,d.kz4)({onSuccess:e=>{var i,n;let r=null!==(n=null===(i=e.createWorkspaceSampleData)||void 0===i?void 0:i.errors)&&void 0!==n?n:[];r.length>0?t(r[0]):(l((0,u.ZP)(e=>{var t;(null==e?void 0:null===(t=e.workspace)||void 0===t?void 0:t.settings)&&(e.workspace.settings.hasSampleData=!0)})),s()),null==a||a.capture("Started with sample data")}}),r=e=>{"sample"===e.mode?i({input:{}}):s()};return{handleSubmit:r,isPending:n}},R=()=>{let{t:e}=(0,A.$G)("signup"),t=(0,f.xJ)(),l=(0,f.$_)(),s=(null==l?void 0:l.name)||"",i=(0,h.useMemo)(()=>[{value:"sample",title:e("data_initialization_screen.sample_data_option.title",{ns:"signup"}),description:e("data_initialization_screen.sample_data_option.description",{ns:"signup"}),image:N,thumb:_},{value:"fresh",title:e("data_initialization_screen.start_fresh_option.title",{ns:"signup"}),description:e("data_initialization_screen.start_fresh_option.description",{ns:"signup"}),image:k,thumb:y}],[e]),n=g.Db.find(e=>e.value===(null==l?void 0:l.industry)),d=(0,p.cI)({defaultValues:{mode:"sample"}}),{watch:c,register:o,handleSubmit:u}=d,x=c("mode"),m=i.find(e=>e.value===x),{handleSubmit:w,isPending:z}=E(),R=u(w);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(j(),{children:[(0,a.jsx)("title",{children:"Camelo | Onboarding | Payroll Setup"}),(0,a.jsx)("meta",{name:"viewport",content:"initial-scale=1.0, width=device-width"})]}),(0,a.jsx)(p.RV,{...d,children:(0,a.jsxs)("div",{className:"mx-auto grid h-svh overflow-hidden lg:grid-cols-2",children:[(0,a.jsx)(B,{currentUser:t,workspaceName:s,industry:n,currentOption:m}),(0,a.jsxs)("div",{className:"relative flex h-full flex-col overflow-y-auto",children:[(0,a.jsxs)("div",{className:"sticky top-0 z-[5] flex items-center justify-between bg-white dark:bg-neutral-800",children:[(0,a.jsx)(b.Z,{}),(0,a.jsx)("div",{className:"px-5 py-8 sm:px-7 xl:px-[42px]",children:(0,a.jsx)(v.Z,{currentStep:5,totalSteps:5,className:"w-fit",progressClassname:"max-w-[182px] min-w-[160px]"})})]}),(0,a.jsx)("div",{className:"flex w-full flex-1 flex-col",children:(0,a.jsx)("div",{className:"flex flex-1 flex-col items-center justify-center p-4",children:(0,a.jsxs)("div",{className:"mx-auto flex w-[calc(100svw-40px)] flex-1 flex-col justify-center gap-8 pb-16 sm:w-[504px] lg:w-[440px] xl:w-[504px] 3xl:justify-start 3xl:pt-40",children:[(0,a.jsx)("div",{children:(0,a.jsx)("h1",{className:"mb-3 text-3xl font-semibold -tracking-2 text-neutral-900 dark:text-neutral-100",children:e("data_initialization_screen.title")})}),(0,a.jsxs)("form",{className:"flex flex-col gap-8",onSubmit:R,children:[i.map(e=>(0,a.jsx)(D,{option:e,isSelected:x===e.value,register:o},e.value)),(0,a.jsxs)("div",{children:[(0,a.jsx)(r.zx,{htmlType:"submit",disabled:z,type:"primary",className:"w-full rounded-lg",loading:z,size:"lg",children:e("data_initialization_screen.let's_go")}),(0,a.jsx)(U(),{href:"/onboarding/payroll-setup",className:"mt-4 flex w-full justify-center font-semibold text-neutral-500 hover:text-neutral-600 dar
1k:text-neutral-400 dark:hover:text-neutral-300",children:e("go_back",{ns:"common"})})]})]})]})})})]})]})})]})};var S=!0,G=R},18318:function(e){e.exports={style:{fontFamily:"'__Lora_7269e5', '__Lora_Fallback_7269e5'",fontStyle:"italic"},className:"__className_7269e5"}}},function(e){e.O(0,[7536,959,6390,9774,2888,179],function(){return e(e.s=31721)}),_N_E=e.O()}]);
2//# sourceMappingURL=data-initialization-0bd698a2f93d9489.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.