PageSourceSearch

https://cube3d.de/_next/static/chunks/729.e2f6b35df0efb9f2.js

js cube3d.de collected 2026-09-26 20:53:52 UTC 8,479 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[729],{82149:function(e,a,s){"use strict";s.d(a,{WS:function(){return h},YZ:function(){return m},ZP:function(){return v}});var t=s(64618),n=s(69686),l=s(49355),i=s(18357),r=s(95991),o=s(13621),c=s(76712),d=s(29279),u=s(55069);let x=[{id:c.TaskPriority.URGENT,title:"Urgent"},{id:c.TaskPriority.HIGH,title:"High"},{id:c.TaskPriority.NORMAL,title:"Normal"},{id:c.TaskPriority.LOW,title:"Low"}],m=e=>{let{when:a}=e,s=r.pL.find(e=>e.id===a.is),n=a.is===r.Im.STATUS_CHANGED,l=a.is===r.Im.PRIORITY_CHANGED,i=a.is===r.Im.PROGRESS_CHANGED,{statuses:c}=(0,o.H)();return(0,t.jsxs)("div",{className:"space-x-1",children:[(0,t.jsxs)("span",{children:["When"," ",(0,t.jsx)("span",{className:"lowercase automation-value",children:(null==s?void 0:s.title)||""})]}),(0,t.jsxs)("span",{children:[n&&a.valueTo?(0,t.jsxs)(t.Fragment,{children:["to ",(e=>{let a=c.find(a=>a.id===e);return(0,t.jsx)("span",{className:"text-xs automation-value",style:{color:null==a?void 0:a.color},children:null==a?void 0:a.name})})(a.valueTo||"")]}):null,l&&a.valueTo?(0,t.jsxs)(t.Fragment,{children:["to ",(e=>{let a=x.find(a=>a.id===e),s=u.mQ.get(null==a?void 0:a.id);return(0,t.jsxs)("span",{className:"text-xs automation-value inline-flex items-center gap-1",children:[(0,t.jsx)(d.rz7,{className:"text-gray-200 inline-block",style:{color:s}}),null==a?void 0:a.title]})})(a.valueTo||"")]}):null,i?(0,t.jsxs)(t.Fragment,{children:["to ",a.valueTo||""]}):null]}),(0,t.jsxs)("span",{children:["on ",a.happens]})]})},h=e=>{let{then:a}=e,s=r.SA.find(e=>e.id===a.change),n=a.change===r.y0.CHANGE_DUEDATE,l=a.change===r.y0.CHANGE_STATUS,i=a.change===r.y0.CHANGE_PROGRESS,{statuses:c}=(0,o.H)();return(0,t.jsxs)("div",{className:"space-x-1",children:[(0,t.jsxs)("span",{children:["then"," ",(0,t.jsx)("span",{className:"lowercase automation-value",children:(null==s?void 0:s.title)||""})]}),(0,t.jsxs)("span",{children:[l&&a.value?(0,t.jsxs)(t.Fragment,{children:["to ",(e=>{let a=c.find(a=>a.id===e);return(0,t.jsx)("span",{className:"text-xs automation-value",style:{color:null==a?void 0:a.color},children:null==a?void 0:a.name})})(a.value||"")]}):null,i?a.value:null,n?(0,t.jsxs)(t.Fragment,{children:["to ",(e=>{let a=r.am.find(a=>a.id===e);return(0,t.jsxs)("span",{className:"lowercase automation-value",children:["\uD83D\uDCC5 ",null==a?void 0:a.title]})})(a.value)]}):null]})]})};function v(e){let{id:a,when:s,then:r}=e,o=a.includes("AUTOMATE_RAND_ID")?"animate-pulse":"",{delAutomation:c}=(0,n.V)(),d=e=>{(0,l.F9)({message:"This automation item will be delete permantly. But it won't affect to your data. Are you sure you want to do this action ?",yes:()=>{c(e)}})};return(0,t.jsxs)("div",{className:"box ".concat(o," flex items-center justify-between"),children:[(0,t.jsxs)("div",{className:"text-gray-500 dark:text-gray-400 text-sm flex items-center gap-2",children:[(0,t.jsx)(m,{when:s})," ",(0,t.jsx)(h,{then:r})]}),(0,t.jsx)(i.Bhs,{className:"automation-del",onClick:()=>{o||d(a)}})]})}},80729:function(e,a,s){"use strict";s.r(a),s.d(a,{default:function(){return w}});var t=s(64618);s(6245);var n=s(18357),l=s(87430),i=s(95991),r=s(49355),o=s(70215),c=s(55069);function d(){let{when:e,setWhenField:a}=(0,i.F7)(),s=e.is===i.Im.STATUS_CHANGED,n=e.is===i.Im.PRIORITY_CHANGED;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:"mt-2",children:[e.is===i.Im.PROGRESS_CHANGED?(0,t.jsx)(r.l0.Range,{title:"From any value to",maxValue:100,step:5,value:parseInt(e.valueTo+""||"0"),onChange:e=>{a("valueTo",e+"")}}):null,s?(0,t.jsx)("div",{className:"space-y-3 mt-2",children:(0,t.jsx)(o.Z,{title:"To",value:e.valueTo,onChange:e=>{a("valueTo",e)}})}):null,n?(0,t.jsx)("div",{className:"space-y-3 mt-2",children:(0,t.jsx)(c.ZP,{title:"To",value:e.valueTo||"ALL",onChange:e=>{a("valueTo",e)}})}):null]})})}function u(){let{when:e,setWhenField:a,setWhen:s}=(0,i.F7)();return(0,t.jsxs)("div",{className:"when",children:[(0,t.jsxs)("div",{className:"box flex items-center gap-3 ",children:[(0,t.jsx)("img",{className:"w-10 h-10 p-2 border rounded-md dark:bg-gray-800 dark:border-gray-700 bg-gray-50",src:"https://cdn.jsdelivr.net/npm/emoji-datasource-twitter/img/twitter/64/1f991.png"}),(0,t.jsxs)("div",{className:"text-sm ",children:[(0,t.jsx)("h2",{className:"font-medium",children:"When"}),(0,t.jsxs)("p",{className:"text-xs flex items-center gap-1",children:["This happens",(0,t.jsx)(l.Z,{className:"w-[150px] when-select",value:e.happens,onChange:e=>{a("happens",e)},width:180,options:[{id:"task",title:"On a task"},{id:"subtask",title:"On a subtask"},{id:"both",title:"On tasks or subtasks"}]})]})]})]}),(0,t.jsxs)("div",{className:"box box-connector",children:[(0,t.jsx)(l.Z,{className:"w-full",value:e.is,onChange:e=>{s(a=>({...a,is:e,valueTo:"",valueFrom:"",equal:""}))},width:180,options:i.pL}),(0,t.jsx)(d,{})]})]})}var x=s(9975),m=s.n(x),h=s(30974);function v(){let{then:e,setThenField:a}=(0,i.F7)(),s=e.change===i.y0.CHANGE_STATUS,n=e.change===i.y0.CHANGE_ASSIGNEE,d=e.change===i.y0.CHANGE_PRIORITY;e.change,i.y0.CREATE_SUB_TASK;let u=e.change===i.y0.CHANGE_DUEDATE,x=e.change===i.y0.CHANGE_PROGRESS;return(0,t.jsxs)("div",{className:"mt-2",children:[s?(0,t.jsx)(o.Z,{title:"To new status",onChange:e=>{a("value",e)}}):null,n?(0,t.jsx)(h.Z,{title:"To another people",onChange:e=>{a("value",e)}}):null,x?(0,t.jsx)(r.l0.Range,{title:"To value",maxValue:100,step:5,value:parseInt(e.value+""||"0"),onChange:e=>{a("value",e+"")}}):null,d?(0,t.jsx)(c.ZP,{title:"To another priority",onChange:e=>{a("value",e)}}):null,u?(0,t.jsx)(l.Z,{title:"To",value:"",onChange:e=>{a("value",e)},options:i.am}):null]})}function g(){let{then:e,setThenField:a,setThen:s}=(0,i.F7)();return(0,t.jsxs)("div",{className:"then",children:[(0,t.jsxs)("div",{className:"box flex items-center gap-3 ",children:[(0,t.jsx)("img",{className:"w-10 h-10 p-2 border rounded-md bg-gray-50 dark:bg-gray-800 dark:border-gray-700",src:"https://cdn.jsdelivr.net/npm/emoji-datasource-twitter/img/twitter/64/1f958.png"}),(0,t.jsxs)("div",{className:"text-sm ",children:[(0,t.jsx)("h2",{className:"font-medium",children:"The
1n..."}),(0,t.jsx)("p",{className:"text-xs flex items-center gap-1",children:"Do this action"})]})]}),(0,t.jsxs)("div",{className:"box box-connector",children:[(0,t.jsx)(l.Z,{className:"w-full",value:e.change,onChange:e=>{console.log(e),s(a=>({...a,change:e,value:""}))},width:180,options:i.SA}),(0,t.jsx)(v,{})]})]})}m()(()=>Promise.resolve().then(s.bind(s,31528)),{loadableGenerated:{webpack:()=>[31528]},loading:()=>(0,t.jsx)("p",{children:"Loading ..."})});var j=s(27024),p=s(45041),N=s(69686),y=s(97671),T=s(82149);function f(){let{push:e}=(0,p.useRouter)(),{projectId:a,orgName:s}=(0,p.useParams)(),{orgId:n}=(0,y.e)(),{when:l,then:o}=(0,i.F7)(),{addAutomation:c}=(0,N.V)(),d=()=>{n&&(c({when:l,then:o,projectId:a,organizationId:n}),e("/".concat(s,"/project/").concat(a,"?mode=automation")))};return(0,t.jsxs)("div",{className:"mt-8 text-gray-500 space-y-5 text-center flex flex-col items-center",children:[(0,t.jsxs)("div",{className:"box text-gray-500 dark:text-gray-400 text-sm flex items-center gap-2 bg-white",children:[(0,t.jsx)(T.YZ,{when:l})," ",(0,t.jsx)(T.WS,{then:o})]}),(0,t.jsx)(r.zx,{onClick:d,primary:!0,title:"Create automation"})]})}var b=s(63911),C=s.n(b);function w(){let{projectId:e,orgName:a}
1=(0,p.useParams)(),[s,l]=(0,j.useState)({happens:"task",is:i.Im.PROGRESS_CHANGED,valueFrom:"",valueTo:"",equal:""}),[r,o]=(0,j.useState)({change:i.y0.CHANGE_STATUS,value:""});return(0,t.jsx)("div",{children:(0,t.jsx)(i.Ki,{value:{when:s,setWhen:l,then:r,setThen:o},children:(0,t.jsxs)("div",{className:"automation-wrapper w-[900px] mx-auto mt-10",children:[(0,t.jsxs)("h2",{className:"text-xl text-gray-600 dark:text-gray-400 mb-4 flex items-center gap-2",children:[(0,t.jsx)(C(),{href:"/".concat(a,"/project/").concat(e,"?mode=automation"),children:(0,t.jsx)(n.PSe,{className:"bg-white dark:bg-gray-900 dark:border-gray-700 border p-1 w-7 h-7 rounded-md"})}),(0,t.jsx)("span",{children:"Create custom automation"})]}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"z-10 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 ",children:(0,t.jsx)(n.yoF,{className:"w-12 h-12 p-3 text-gray-400 bg-white dark:bg-gray-900 dark:border-gray-700 rounded-lg border "})}),(0,t.jsxs)("div",{className:"automation-container",children:[(0,t.jsx)(u,{}),(0,t.jsx)(g,{})]})]}),(0,t.jsx)(f,{})]})})})}},6245:function(){}}]);

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.