PageSourceSearch

https://simulahealth-2a3be.web.app/_next/static/chunks/pages/app/customer/product-review-62ef95f422aeb254.js

js simulahealth-2a3be.web.app collected 2026-10-03 12:36:22 UTC 15,293 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1318],{41733:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),l=i(85893),a=(0,n.default)((0,l.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}),"Delete");t.Z=a},70422:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),l=i(85893),a=(0,n.default)([(0,l.jsx)("path",{d:"M5 18.08V19h.92l9.06-9.06-.92-.92z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83zM3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM5.92 19H5v-.92l9.06-9.06.92.92L5.92 19z"},"1")],"EditTwoTone");t.Z=a},22467:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),l=i(85893),a=(0,n.default)([(0,l.jsx)("path",{d:"M14 7H8v14h11v-9h-5z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm-1 4H8c-1.1 0-1.99.9-1.99 2L6 21c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V11l-6-6zm4 16H8V7h6v5h5v9z"},"1")],"FileCopyTwoTone");t.Z=a},9126:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),l=i(85893),a=(0,n.default)((0,l.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterListTwoTone");t.Z=a},64009:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),l=i(85893),a=(0,n.default)([(0,l.jsx)("path",{d:"M8 5h8v3H8z",opacity:".3"},"0"),(0,l.jsx)("circle",{cx:"18",cy:"11.5",r:"1"},"1"),(0,l.jsx)("path",{d:"M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zM8 5h8v3H8V5zm8 14H8v-4h8v4zm4-4h-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4z"},"2"),(0,l.jsx)("path",{d:"M6 13h12v2h2v-4c0-.55-.45-1-1-1H5c-.55 0-1 .45-1 1v4h2v-2zm12-2.5c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1z",opacity:".3"},"3")],"PrintTwoTone");t.Z=a},51201:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),l=i(85893),a=(0,n.default)((0,l.jsx)("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");t.Z=a},35433:function(e,t,i){"use strict";var r=i(64836);t.Z=void 0;var n=r(i(64938)),l=i(85893),a=(0,n.default)([(0,l.jsx)("path",{d:"M12 6c-3.79 0-7.17 2.13-8.82 5.5C4.83 14.87 8.21 17 12 17s7.17-2.13 8.82-5.5C19.17 8.13 15.79 6 12 6zm0 10c-2.48 0-4.5-2.02-4.5-4.5S9.52 7 12 7s4.5 2.02 4.5 4.5S14.48 16 12 16z",opacity:".3"},"0"),(0,l.jsx)("path",{d:"M12 4C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 13c-3.79 0-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6s7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17zm0-10c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7zm0 7c-1.38 0-2.5-1.12-2.5-2.5S10.62 9 12 9s2.5 1.12 2.5 2.5S13.38 14 12 14z"},"1")],"VisibilityTwoTone");t.Z=a},37645:function(e,t,i){"use strict";var r=i(87462),n=i(63366),l=i(67294),a=i(63961),s=i(94780),o=i(15861),c=i(90948),d=i(71657),u=i(4472),h=i(34182),x=i(85893);let v=["className","id"],p=e=>{let{classes:t}=e;return(0,s.Z)({root:["root"]},u.a,t)},Z=(0,c.ZP)(o.Z,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),m=l.forwardRef(function(e,t){let i=(0,d.Z)({props:e,name:"MuiDialogTitle"}),{className:s,id:o}=i,c=(0,n.Z)(i,v),u=p(i),{titleId:m=o}=l.useContext(h.Z);return(0,x.jsx)(Z,(0,r.Z)({component:"h2",className:(0,a.Z)(u.root,s),ownerState:i,ref:t,variant:"h6",id:null!=o?o:m},c))});t.Z=m},26280:function(e,t,i){"use strict";i.d(t,{Z:function(){return w}});var r=i(63366),n=i(87462),l=i(94780),a=i(63961),s=i(67294),o=i(49990),c=i(82066),d=i(85893),u=(0,c.Z)((0,d.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward"),h=i(90948),x=i(71657),v=i(98216),p=i(1588),Z=i(34867);function m(e){return(0,Z.Z)("MuiTableSortLabel",e)}let j=(0,p.Z)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]),f=["active","children","className","direction","hideSortIcon","IconComponent"],g=e=>{let{classes:t,direction:i,active:r}=e,n={root:["root",r&&"active"],icon:["icon",`iconDirection${(0,v.Z)(i)}`]};return(0,l.Z)(n,m,t)},b=(0,h.ZP)(o.Z,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.root,i.active&&t.active]}})(({theme:e})=>
1({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${j.icon}`]:{opacity:.5}},[`&.${j.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${j.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),S=(0,h.ZP)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:i}=e;return[t.icon,t[`iconDirection${(0,v.Z)(i.direction)}`]]}})(({theme:e,ownerState:t})=>(0,n.Z)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"})),y=s.forwardRef(function(e,t){let i=(0,x.Z)({props:e,name:"MuiTableSortLabel"}),{active:l=!1,children:s,className:o,direction:c="asc",hideSortIcon:h=!1,IconComponent:v=u}=i,p=(0,r.Z)(i,f),Z=(0,n.Z)({},i,{active:l,direction:c,hideSortIcon:h,IconComponent:v}),m=g(Z);return(0,d.jsxs)(b,(0,n.Z)({className:(0,a.Z)(m.root,o),component:"span",disableRipple:!0,ownerState:Z,ref:t},p,{children:[s,h&&!l?null:(0,d.jsx)(S,{as:v,className:(0,a.Z)(m.icon),ownerState:Z})]}))});var w=y},60238:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/app/customer/product-review",function(){return i(97232)}])},61400:function(e,t,i){"use strict";var r=i(85893),n=i(67294),l=i(4305),a=i(21121);let s=n.forwardRef((e,t)=>{let i,n,{children:s,type:o,direction:c,offset:d,scale:u}=e;switch(c){case"up":case"left":i=d,n=0;break;default:i=0,n=d}let[h,x]=(0,l.n)(i,n),[v,p]=(0,l.n)(i,n);switch(o){case"rotate":return(0,r.jsx)(a.E.div,{ref:t,animate:{rotate:360},transition:{repeat:1/0,repeatType:"loop",duration:2,repeatDelay:0},children:s});case"slide":if("up"===c||"down"===c)return(0,r.jsx)(a.E.div,{ref:t,animate:{y:void 0!==v?v:""},onHoverEnd:()=>p(),onHoverStart:()=>p(),children:s});return(0,r.jsx)(a.E.div,{ref:t,animate:{x:void 0!==h?h:""},onHoverEnd:()=>x(),onHoverStart:()=>x(),children:s});default:return"number"==typeof u&&(u={hover:u,tap:u}),(0,r.jsx)(a.E.div,{ref:t,whileHover:{scale:null==u?void 0:u.hover},whileTap:{scale:null==u?void 0:u.tap},children:s})}});s.defaultProps={type:"scale",offset:10,direction:"right",scale:{hover:1,tap:.9}},t.Z=s},97232:function(e,t,i){"use strict";i.r(t),i.d(t,{default:function(){return et}});var r=i(85893),n=i(67294),l=i(2734),a=i(10155),s=i(15861),o=i(87357),c=i(21023),d=i(93946),u=i(53184),h=i(53816),x=i(98102),v=i(69368),p=i(26280),Z=i(44267),m=i(86886),j=i(50135),f=i(87109),g=i(72882),b=i(7906),S=i(295),y=i(91440),w=i(36125),z=i(13113),C=i(95312),P=i(58823),M=i(64666),T=i(37645),k=i(6514),H=i(18972),R=i(31425),E=i(11057),L=i(196),D=i(61400);let V=[{value:"1",label:"Published"},{value:"2",label:"Pending"},{value:"3",label:"confirm"}],N=e=>{let{open:t,handleCloseDialog:i}=e,[l,a]=(0,n.useState)("1"),o=e=>{a(e.target.value)},[c,d]=(0,n.useState)(2);return(0,r.jsx)(M.Z,{open:t,onClose:i,sx:{"&>div:nth-of-type(3)":{"&>div":{maxWidth:400}}},children:t&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(T.Z,{children:"Edit Review"}),(0,r.jsx)(k.Z,{children:(0,r.jsxs)(m.ZP,{container:!0,spacing:L.dv,sx:{my:0},children:[(0,r.jsx)(m.ZP,{item:!0,xs:12,children:(0,r.jsx)(j.Z,{id:"outlined-basic-review-product",fullWidth:!0,label:"Product ",defaultValue:"Apple Watch Series 4"})}),(0,r.jsx)(m.ZP,{item:!0,xs:12,children:(0,r.jsx)(j.Z,{id:"outlined-basic-review-author",fullWidth:!0,label:"Author ",defaultValue:"Joseph William"})}),(0,r.jsx)(m.ZP,{item:!0,xs:12,children:(0,r.jsx)(j.Z,{id:"outlined-basic-review",fullWidth:!0,multiline:!0,rows:4,label:"Text of review",defaultValue:"If you're coming from a Series 3, the choice is more difficult. The Series 4 is undoubtedly the better device. And if you care about fall detection, the ECG app, or a larger screen then upgrading makes sense. But I think most people will remain satisfied with their Series 3s."})}),(0,r.jsxs)(m.ZP,{item:!0,xs:12,children:[(0,r.jsx)(s.Z,{align:"left",variant:"body2",children:"Rating"}),(0,r.jsx)(y.Z,{name:"simple-controlled",value:c,precision:.5,onChange:(e,t)=>
1{d(t)}})]}),(0,r.jsx)(m.ZP,{item:!0,xs:12,children:(0,r.jsx)(j.Z,{id:"standard-select-currency",select:!0,label:"Status",value:l,fullWidth:!0,onChange:o,children:V.map(e=>(0,r.jsx)(H.Z,{value:e.value,children:e.label},e.value))})})]})}),(0,r.jsxs)(R.Z,{children:[(0,r.jsx)(D.Z,{children:(0,r.jsx)(E.Z,{variant:"contained",children:"Create"})}),(0,r.jsx)(E.Z,{variant:"text",onClick:i,children:"Close"})]})]})})};var _=i(50011),I=i(33430),A=i(8781),W=i(2634),O=i(41733),$=i(9126),F=i(64009),B=i(22467),G=i(51201),X=i(35433),q=i(70422);function J(e,t,i){return t[i]<e[i]?-1:t[i]>e[i]?1:0}let K=(e,t)=>"desc"===e?(e,i)=>J(e,i,t):(e,i)=>-J(e,i,t),Q=[{id:"name",numeric:!1,label:"Product Name",align:"left"},{id:"author",numeric:!0,label:"Author",align:"left"},{id:"review",numeric:!0,label:"Review",align:"left"},{id:"rating",numeric:!0,label:"Rating",align:"center"},{id:"date",numeric:!0,label:"Date",align:"center"},{id:"status",numeric:!1,label:"Status",align:"center"}],U=e=>{let{numSelected:t}=e;return(0,r.jsxs)(a.Z,{sx:{p:0,pl:1,pr:1,...t>0&&{color:e=>e.palette.secondary.main}},children:[t>0?(0,r.jsxs)(s.Z,{color:"inherit",variant:"h4",children:[t," Selected"]}):(0,r.jsx)(s.Z,{variant:"h6",id:"tableTitle",children:"Nutrition"}),(0,r.jsx)(o.Z,{sx:{flexGrow:1}}),t>0&&(0,r.jsx)(c.Z,{title:"Delete",children:(0,r.jsx)(d.Z,{size:"large",children:(0,r.jsx)(O.Z,{fontSize:"small"})})})]})};function Y(e){let{onSelectAllClick:t,order:i,orderBy:n,numSelected:l,rowCount:a,onRequestSort:c,theme:d,selected:Z}=e,m=e=>t=>{c(t,e)};return(0,r.jsx)(u.Z,{children:(0,r.jsxs)(h.Z,{children:[(0,r.jsx)(x.Z,{padding:"checkbox",sx:{pl:3},children:(0,r.jsx)(v.Z,{color:"primary",indeterminate:l>0&&l<a,checked:a>0&&l===a,onChange:t,inputProps:{"aria-label":"select all desserts"}})}),l>0&&(0,r.jsx)(x.Z,{padding:"none",colSpan:7,children:(0,r.jsx)(U,{numSelected:Z.length})}),l<=0&&Q.map(e=>(0,r.jsx)(x.Z,{align:e.align,padding:e.disablePadding?"none":"normal",sortDirection:n===e.id&&i,children:(0,r.jsxs)(p.Z,{active:n===e.id,direction:n===e.id?i:"asc",onClick:m(e.id),children:[e.label,n===e.id?(0,r.jsx)(o.Z,{component:"span",sx:z.Z,children:"desc"===i?"sorted descending":"sorted ascending"}):null]})},e.id)),l<=0&&(0,r.jsx)(x.Z,{sortDirection:!1,align:"center",sx:{pr:3},children:(0,r.jsx)(s.Z,{variant:"subtitle1",sx:{color:"dark"===d.palette.mode?"grey.600":"grey.900"},children:"Action"})})]})})}let ee=()=>{let e=(0,l.Z)(),t=(0,A.I0)(),[i,a]=n.useState(!1),o=()=>{a(!0)},u=()=>{a(!1)},[p,z]=n.useState("asc"),[C,M]=n.useState("calories"),[T,k]=n.useState([]),[H,R]=n.useState(0),[E,L]=n.useState(5),[D,V]=n.useState(""),[O,J]=n.useState([]),{productreviews:Q}=(0,A.v9)(e=>e.customer);n.useEffect(()=>{t((0,W.mk)())},[t]),n.useEffect(()=>{J(Q)},[Q]);let U=e=>{let t=null==e?void 0:e.target.value;if(V(t||""),t){let e=O.filter(e=>{let i=!0,r=!1;return["name","author","review"].forEach(i=>{e[i].toString().toLowerCase().includes(t.toString().toLowerCase())&&(r=!0)}),r||(i=!1),i});J(e)}else J(Q)},ee=(e,t)=>{z(C===t&&"asc"===p?"desc":"asc"),M(t)},et=e=>{if(e.target.checked){if(T.length>0)k([]);else{let e=O.map(e=>e.name);k(e)}return}k([])},ei=(e,t)=>{let i=T.indexOf(t),r=[];-1===i?r=r.concat(T,t):0===i?r=r.concat(T.slice(1)):i===T.length-1?r=r.concat(T.slice(0,-1)):i>0&&(r=r.concat(T.slice(0,i),T.slice(i+1))),k(r)},er=(e,t)=>{R(t)},en=e=>{(null==e?void 0:e.target.value)&&L(parseInt(null==e?void 0:e.target.value,10)),R(0)},el=e=>-1!==T.indexOf(e),ea=H>0?Math.max(0,(1+H)*E-O.length):0;return(0,r.jsx)(P.Z,{title:"Product Review",children:(0,r.jsxs)(_.Z,{title:"Product Review",content:!1,children:[(0,r.jsx)(Z.Z,{children:(0,r.jsxs)(m.ZP,{container:!0,justifyContent:"space-between",alignItems:"center",spacing:2,children:[(0,r.jsx)(m.ZP,{item:!0,xs:12,sm:6,children:(0,r.jsx)(j.Z,{InputProps:{startAdornment:(0,r.jsx)(f.Z,{position:"start",children:(0,r.jsx)(G.Z,{fontSize:"small"})})},onChange:U,placeholder:"Search Product",value:D,size:"small"})}),(0,r.jsxs)(m.ZP,{item:!0,xs:12,sm:6,sx:{textAlign:"right"},children:[(0,r.jsx)(c.Z,{title:"Copy",children:(0,r.jsx)(d.Z,{size:"large",children:(0,r.jsx)(B.Z,{})})}),(0,r.jsx)(c.Z,{title:"Print",children:(0,r.jsx)(d.Z,{size:"large",children:(0,r.jsx)(F.Z,{})})}),(0,r.jsx)(c.Z,{title:"Filter",children:(0,r.jsx)(d.Z,{size:"large",children:(0,r.jsx)($.Z,{})})})]})]})}),(0,r.jsxs)(g.Z,{children:[(0,r.jsxs)(b.Z,{sx:{minWidth:750},"aria-labelledby":"tableTitle",children:[(0,r.jsx)(Y,{numSelected:T.length,order:p,orderBy:C,onSelectAllClick:et,onRequestSort:ee,rowCount:O.length,theme:e,selected:T}),(0,r.jsxs)(S.Z,{children:[(function(e,t){let i=e.map((e,t)=>[e,t]);return i.sort((e,i)=>{let r=t(e[0],i[0]);return 0!==r?r:e[1]-i[1]}),i.map(e=>e[0])})(O,K(p,C)).slice(H*E,H*E+E).map((t,i)=>{if("number"==typeof t)return null;let n=el(t.name),l="enhanced-table-checkbox-".concat(i);return(0,r.jsxs)(h.Z,{hover:!0,role:"checkbox","aria-checked":n,tabIndex:-1,selected:n,children:[(0,r.jsx)(x.Z,{padding:"checkbox",onClick:e=>ei(e,t.name),sx:{pl:3},children:(0,r.jsx)(v.Z,{color:"primary",checked:n,inputProps:{"aria-labelledby":l}})}),(0,r.jsx)(x.Z,{component:"th",id:l,scope:"row",onClick:e=>ei(e,t.name),sx:{cursor:"pointer"},children:(0,r.jsx)(s.Z,{variant:"body2",sx:{color:"dark"===e.palette.mode?"grey.600":"grey.900"},children:t.name})}),(0,r.jsx)(x.Z,{children:t.author}),(0,r.jsx)(x.Z,{children:t.review}),(0,r.jsx)(x.Z,{align:"center",children:(0,r.jsx)(y.Z,{name:"read-only",value:t.rating,precision:.5,readOnly:!0})}),(0,r.jsx)(x.Z,{align:"center",children:t.date}),(0,r.jsxs)(x.Z,{align:"center",children:[1===t.status&&(0,r.jsx)(I.Z,{label:"Complete",chipcolor:"success",size:"small"}),2===t.status&&(0,r.jsx)(I.Z,{label:"Processing",chipcolor:"orange",size:"small"}),3===t.status&&(0,r.jsx)(I.Z,{label:"Confirm",chipcolor:"primary",size:"small"})]}),(0,r.jsxs)(x.Z,{align:"center",sx:{pr:3},children:[(0,r.jsx)(d.Z,{color:"primary",size:"large","aria-label":"view",children:(0,r.jsx)(X.Z,{sx:{fontSize:"1.3rem"}})}),(0,r.jsx)(d.Z,{color:"secondary",onClick:o,size:"large","aria-label":"delete",children:(0,r.jsx)(q.Z,{sx:{fontSize:"1.3rem"}})})]})]},i)}),ea>0&&(0,r.jsx)(h.Z,{style:{height:53*ea},children:(0,r.jsx)(x.Z,{colSpan:6})})]})]}),(0,r.jsx)(N,{open:i,handleCloseDialog:u})]}),(0,r.jsx)(w.Z,{rowsPerPageOptions:[5,10,25],component:"div",count:O.length,rowsPerPage:E,page:H,onPageChange:er,onRowsPerPageChange:en})]})})};ee.getLayout=function(e){return(0,r.jsx)(C.Z,{children:e})};var et=ee}},function(e){e.O(0,[9584,7819,7520,8220,350,6663,3394,676,5739,1440,8246,5312,9774,2888,179],function(){return e(e.s=60238)}),_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.