PageSourceSearch

https://tutorcircle.hk/new/_next/static/chunks/pages/apply-history-df692c58e82eb13e.js

js tutorcircle.hk collected 2026-10-02 10:18:22 UTC 23,548 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6870],{36822:function(t,e,r){"use strict";r.d(e,{Z:function(){return y}});var n=r(87462),i=r(63366),o=r(67294),a=r(90512),s=r(79936),l=r(18784),u=r(87893),c=r(71713),d=r(85893);const f=["className","component"];var p=r(37078),m=r(68239),h=r(10606);const x=(0,m.Z)(),g=function(t={}){const{themeId:e,defaultTheme:r,defaultClassName:p="MuiBox-root",generateClassName:m}=t,h=(0,s.ZP)("div",{shouldForwardProp:t=>"theme"!==t&&"sx"!==t&&"as"!==t})(l.Z);return o.forwardRef((function(t,o){const s=(0,c.Z)(r),l=(0,u.Z)(t),{className:x,component:g="div"}=l,y=(0,i.Z)(l,f);return(0,d.jsx)(h,(0,n.Z)({as:g,ref:o,className:(0,a.Z)(x,m?m(p):p),theme:e&&s[e]||s},y))}))}({themeId:h.Z,defaultTheme:x,defaultClassName:"MuiBox-root",generateClassName:p.Z.generate});var y=g},64082:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/apply-history",function(){return r(1464)}])},29605:function(t,e,r){"use strict";r.d(e,{Z:function(){return o}});var n=r(85893),i=r(74897);function o(t){var e=t.data,r=t.fontColor,o=t.fontSize,a=t.endAdornment,s=t.startAdornment,l=t.onClick,u=t.style,c=(0,i.$G)("common").t;return(0,n.jsxs)("div",{style:u,onClick:l,children:[s,(0,n.jsx)("span",{style:{fontSize:null!==o&&void 0!==o?o:14,color:null!==r&&void 0!==r?r:"#414042"},children:c("string"==typeof e?e:e.fullname)}),a]})}},1464:function(t,e,r){"use strict";r.r(e),r.d(e,{__N_SSG:function(){return L},default:function(){return T}});var n=r(14924),i=r(29815),o=r(85893),a=r(67294),s=r(2734),l=r(98396),u=r(87918),c=r(69417),d=r(98456),f=r(36822),p=r(11163),m=r(33299),h=r(74897),x=r(90948),g=r(30918),y=r(29605),b=r(3924),v=r(21626),j=r(75072),_=r(50246),w=r(19816),S=r(44801),Z=r(64555),k=r(23073),C=r(91895),z=r(97866),N=function(t){if(!t)return[];if(Array.isArray(t))return t;if("string"===typeof t){if(t.startsWith("a:"))return function(t){for(var e,r=[],n=/s:(\d+):"([^"]+)"/g;null!==(e=n.exec(t));)r.push(e[2]);return r}(t);try{var e=JSON.parse(t);return Array.isArray(e)?e:[e]}catch(r){return[t]}}return[String(t)]},B=(0,x.ZP)("div")((function(t){var e=t.theme;return(0,n.Z)({display:"flex",flex:1,flexDirection:"column",alignItems:"center",fontFamily:"GenSenRounded, sans-serif",backgroundColor:"#f9fafb",minHeight:"100vh"},e.breakpoints.down("sm"),{padding:"0 16px"})})),D=(0,x.ZP)("div")((function(t){var e=t.theme;return(0,n.Z)({width:"100%",maxWidth:"1200px",padding:"40px 20px"},e.breakpoints.down("sm"),{padding:"20px 16px"})})),R=(0,x.ZP)("div")((function(t){var e=t.theme;return(0,n.Z)({width:"100%",maxWidth:"1200px",padding:"20px",paddingLeft:"50px",backgroundColor:"white",borderRadius:"15px",boxShadow:"0px 4px 10px rgba(0, 0, 0, 0.1)",marginBottom:"20px"},e.breakpoints.down("sm"),{padding:"16px",paddingLeft:"16px",marginBottom:"16px"})})),q=(0,x.ZP)("div")((function(t){var e=t.theme;return(0,n.Z)({width:"100%",maxWidth:"1200px",padding:"0 20px"},e.breakpoints.down("sm"),{padding:"0 16px"})})),O=(0,x.ZP)("div")((function(t){var e=t.theme;return(0,n.Z)({display:"flex",flexDirection:"column",borderRadius:15,boxShadow:"0px 4px 4px 0px rgba(0, 0, 0, 0.25)",marginLeft:30,padding:30,marginBottom:"16px",cursor:"pointer",transition:"transform 0.2s ease-in-out",backgroundColor:"white",overflow:"hidden","&:hover":{transform:"translateY(-2px)",boxShadow:"0px 6px 20px rgba(0, 0, 0, 0.15)"}},e.breakpoints.down("sm"),{marginLeft:0,padding:20})})),I=(0,x.ZP)("div")({display:"flex",justifyContent:"center",alignItems:"center",padding:"40px"}),A=(0,x.ZP)("div")({display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",padding:"60px 20px",textAlign:"center",color:"#6b7280"}),E=(0,x.ZP)("div")((function(t){var e=t.theme;return(0,n.Z)({},e.breakpoints.down("md"),{display:"block"})})),L=!0;function T(t){var e=(0,h.$G)(),r=e.t,n=e.i18n,x=(0,p.useRouter)(),L=(0,m.useSession)(),T=L.data,W=(L.status,(0,s.Z)()),P=(0,l.Z)(W.breakpoints.down("sm")),U=(0,a.useState)(!1),M=U[0],G=U[1],H=(0,a.useState)([]),K=H[0],F=H[1],V=(0,a.useState)(!1),$=V[0],J=V[1],X=(0,a.useState)([]),Y=X[0],Q=X[1],tt=(0,a.useState)(0),et=tt[0],rt=tt[1],nt=(0,a.useState)(null),it=nt[0],ot=nt[1],at=K.flatMap((function(t){var e=[];try{var r="string"===typeof t.requirements?JSON.parse(t.requirements):t.requirements;e=Array.isArray(r)?r:[]}catch(n){}return[t.address_detail,t.subjectOther].concat((0,i.Z)(String(t.requirementOther||"").split(",")),(0,i.Z)(e))})),st=(0,z.V)(at,n.language,r("dynamic-translation-unavailable")),lt=(0,a.useRef)([]),ut=(0,a.useRef)(0),ct=(0,a.useRef)(!0),dt=(0,a.useRef)([]);(0,a.useEffect)((function(){var t;(null===T||void 0===T||null===(t=T.user)||void 0===t?void 0:t.tutorid)&&0!==T.user.tutorid&&ft([],!0)}),[T]),(0,a.useEffect)((function(){var t;(null===T||void 0===T||null===(t=T.user)||void 0===t?void 0:t.tutorid)&&0!==T.user.tutorid&&ft(dt.current,!0)}),[Y]),(0,a.useEffect)((function(){var t;(null===T||void 0===T||null===(t=T.user)||void 0===t?void 0:t.tutorid)&&0!==T.user.tutorid&&(0,_.VA)((function(t){t.result&&void 0!==t.result.tccredit&&rt(t.result.tccredit)}))}),[T]);var ft=(0,a.useCallback)((function(t){var e,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(null===T||void 0===T||null===(e=T.user)||void 0===e?void 0:e.tutorid){var n;G(!0),r?(F([]),J(!1),n=0,lt.current=[],ut.current=0):n=ut.current;var i={condition:t.map((function(t){return t.id})),tutor_id:T.user.tutorid,start:n,size:20};ct.current&&(ct.current=!1,(0,_.eP)(i,(function(t){t.result?(r?(lt.current=t.result,F(lt.current),ut.current=t.result.length,J(!1)):(lt.current=lt.current.concat(t.result),ut.current+=t.result.length,F(lt.current)),ct.current=!0,(t.result.length<20||0===t.result.length)&&J(!0)):(r&&(F([]),lt.current=[],ut.current=0),ct.current=!0),G(!1)})))}}),[T]),pt=function(t){var e=[];
1if(t.subject&&"NULL"!==t.subject&&"null"!==t.subject){var n=v.OK[t.subject],i=n?r(n):t.subject;e.push({key:n||t.subject,name:i})}else{if(t.subject_1&&"NULL"!==t.subject_1&&"null"!==t.subject_1){var a=v.OK[t.subject_1],s=a?r(a):t.subject_1;e.push({key:a||t.subject_1,name:s})}if(t.subject_2&&"NULL"!==t.subject_2&&"null"!==t.subject_2){var l=v.OK[t.subject_2],c=l?r(l):t.subject_2;e.push({key:l||t.subject_2,name:c})}if(t.subject_3&&"NULL"!==t.subject_3&&"null"!==t.subject_3){var d=v.OK[t.subject_3],f=d?r(d):t.subject_3;e.push({key:d||t.subject_3,name:f})}}return e.map((function(t,e){var r="#00b6ab";return Object.keys(v.G7).forEach((function(e){v.G7[e].includes(t.key)&&(r=e)})),(0,o.jsx)(u.Z,{label:t.name,sx:{backgroundColor:r,color:"white",fontWeight:"bold",marginRight:"8px",marginBottom:"8px"}},e)}))},mt=function(t,e){return{backgroundColor:t,color:e,marginRight:"4px",marginBottom:"4px",maxWidth:"100%","& .MuiChip-label":{whiteSpace:"normal",textOverflow:"ellipsis",overflow:"hidden","@media (max-width: 600px)":{fontSize:"11px",whiteSpace:"normal",wordBreak:"break-word",lineHeight:"1.2"}}}},ht=function(t){var e=t.trim(),n={"\u63d0\u4f9b\u7b46\u8a18":"apply-history-requirement-notes","\u63d0\u4f9b\u7df4\u7fd2\uff0f\u8a66\u984c":"apply-history-requirement-exercises","\u7537\u5c0e\u5e2b":"apply-history-requirement-male-tutor","\u5973\u5c0e\u5e2b":"apply-history-requirement-female-tutor","\u63d0\u5347\u89e3\u984c\u6280\u5de7":"apply-history-requirement-problem-solving","\u91dd\u5c0d\u5b78\u751f\u5f31\u9805":"apply-history-requirement-weak-areas","\u91ab\u79d1\u751f\u512a\u5148($280/hr \u8d77)":"apply-history-requirement-medical-student","\u795e\u79d1\u751f\u512a\u5148($250/hr \u8d77)":"apply-history-requirement-top-major"},i=e.match(/\u9858\u610f\u652f\u4ed8\u984d\u5916\u4ea4\u901a\u91d1\u984d\(HKD\):?\s*([\d.]+)/);if(["tutorial-mode-online","tutorial-location-online"].includes(e))return null;if(i)return r("apply-history-requirement-transport-fee",{amount:i[1]});if(n[e])return r(n[e]);var o=b.tw.find((function(t){return t.id===e})),a=b.bY.find((function(t){return t.id===e}));return o?r(o.fullname):a?r(a.fullname):st(e)},xt=function(t){if(!t)return[];try{var e="string"===typeof t?JSON.parse(t):t;return Array.isArray(e)?e.filter((function(t){return t&&""!==t.trim()})).map((function(t){return ht(t)})).filter((function(t){return t&&("en"!==n.language||!/[\u4e00-\u9fff]/.test(t))})):[]}catch(i){var r="string"===typeof t?ht(t):null;return!r||"en"===n.language&&/[\u4e00-\u9fff]/.test(r)?[]:[r]}},gt=function(t){var e=[];if(xt(t.requirements).forEach((function(t,r){e.push((0,o.jsx)(u.Z,{label:t,size:"small",sx:{backgroundColor:"rgba(59, 130, 246, 0.1)",color:"#3b82f6",marginRight:"4px",marginBottom:"4px"}},"requirement-".concat(r)))})),"online"===t.location_type){var n=(0,S.wM)([t.location_type],!1,r);e.push((0,o.jsx)(u.Z,{label:n,size:"small",sx:{backgroundColor:"#ff784b",color:"white",marginRight:"4px",marginBottom:"4px"}},"online-location"))}else if(t.location_districts){N(t.location_districts).forEach((function(t,n){var i=j.A3.find((function(e){return e.id===t}));if(i){var a=i.shortname||i.fullname,s=a&&a.includes("-full")&&a.includes("location-")?r(a):a;e.push((0,o.jsx)(u.Z,{label:s,size:"small",sx:{backgroundColor:"#ff784b",color:"white",marginRight:"4px",marginBottom:"4px"}},"location-".concat(n)))}}))}var a=t.number_of_class||t.subject_1_number_of_class;if(a){var s=yt(a);e.push((0,o.jsx)(u.Z,{label:"".concat(s).concat(r("apply-history-classes-per-week")),size:"small",sx:{backgroundColor:"rgba(59, 130, 246, 0.1)",color:"#3b82f6",marginRight:"4px",marginBottom:"4px"}},"class-frequency"))}var l=t.duration_of_class||t.subject_1_duration_of_class;if(l){var c=bt(l);e.push((0,o.jsx)(u.Z,{label:"".concat(c).concat(r("apply-history-hours-per-class")),size:"small",sx:{backgroundColor:"rgba(59, 130, 246, 0.1)",color:"#3b82f6",marginRight:"4px",marginBottom:"4px"}},"class-duration"))}if(t.applycount&&t.applycount<5&&e.push((0,o.jsx)(u.Z,{label:"\ud83d\udd25 ".concat(r("apply-history-low-competition")),size:"small",sx:{backgroundColor:"rgba(239, 68, 68, 0.1)",color:"#ef4444",marginRight:"4px",marginBottom:"4px"}},"low-competition")),t.status){var d=function(e){var r;
1if([3,4,5,8].includes(e)&&String(t.chosen_tutor)!==String(null===T||void 0===T||null===(r=T.user)||void 0===r?void 0:r.tutorid))return{bg:"rgba(239, 68, 68, 0.1)",color:"#ef4444"};switch(e){case 1:default:return{bg:"rgba(156, 163, 175, 0.1)",color:"#6b7280"};case 2:return{bg:"rgba(59, 130, 246, 0.1)",color:"#3b82f6"};case 3:case 5:return{bg:"rgba(34, 197, 94, 0.1)",color:"#22c55e"};case 4:return{bg:"rgba(239, 68, 68, 0.1)",color:"#ef4444"};case 6:return{bg:"rgba(107, 114, 128, 0.1)",color:"#6b7280"};case 7:return{bg:"rgba(245, 158, 11, 0.1)",color:"#f59e0b"};case 8:return{bg:"rgba(168, 85, 247, 0.1)",color:"#a855f7"}}}(parseInt(t.status));e.push((0,o.jsx)(u.Z,{label:function(e){var n;if([3,4,5,8].includes(e)&&String(t.chosen_tutor)!==String(null===T||void 0===T||null===(n=T.user)||void 0===n?void 0:n.tutorid))return r("apply-history-status-closed");switch(e){case 1:return r("apply-history-status-unprocessed");case 2:return r("apply-history-status-processing");case 3:return r("apply-history-status-processed");case 4:return r("apply-history-status-case-closed");case 5:return r("apply-history-status-completed");case 6:return r("apply-history-status-spam");case 7:return r("apply-history-status-temporarily-closed");case 8:return r("apply-history-status-confirmed");default:return"".concat(r("apply-history-status-default")).concat(e)}}(parseInt(t.status)),size:"small",sx:{backgroundColor:d.bg,color:d.color,marginRight:"4px",marginBottom:"4px"}},"case-status"))}if(t.student_available_time){var f,p=function(e){try{var n;if(null!=(n="string"===typeof e?JSON.parse(e):e)){var i=n,a=[];if(i.mon||i.tue||i.wed||i.thur||i.fri||i.sat||i.sun)return i.mon&&a.push((0,o.jsx)(u.Z,{label:"".concat(r("monday")," ").concat(i.mon),size:"small",sx:mt("rgba(147, 51, 234, 0.1)","#9333ea")},"available-time-mon")),i.tue&&a.push((0,o.jsx)(u.Z,{label:"".concat(r("tuesday")," ").concat(i.tue),size:"small",sx:mt("rgba(147, 51, 234, 0.1)","#9333ea")},"available-time-tue")),i.wed&&a.push((0,o.jsx)(u.Z,{label:"".concat(r("wednesday")," ").concat(i.wed),size:"small",sx:mt("rgba(147, 51, 234, 0.1)","#9333ea")},"available-time-wed")),i.thur&&a.push((0,o.jsx)(u.Z,{label:"".concat(r("thursday")," ").concat(i.thur),size:"small",sx:mt("rgba(147, 51, 234, 0.1)","#9333ea")},"available-time-thur")),i.fri&&a.push((0,o.jsx)(u.Z,{label:"".concat(r("friday")," ").concat(i.fri),size:"small",sx:mt("rgba(147, 51, 234, 0.1)","#9333ea")},"available-time-fri")),i.sat&&a.push((0,o.jsx)(u.Z,{label:"".concat(r("saturday")," ").concat(i.sat),size:"small",sx:mt("rgba(147, 51, 234, 0.1)","#9333ea")},"available-time-sat")),i.sun&&a.push((0,o.jsx)(u.Z,{label:"".concat(r("sunday")," ").concat(i.sun),size:"small",sx:mt("rgba(147, 51, 234, 0.1)","#9333ea")},"available-time-sun")),0===t.can_adjust_available_time?a.push((0,o.jsx)(u.Z,{label:r("apply-history-time-fixed"),size:"small",sx:mt("rgba(239, 68, 68, 0.1)","#ef4444")},"available-time-negotiability")):1===t.can_adjust_available_time&&a.push((0,o.jsx)(u.Z,{label:r("apply-history-time-negotiable"),size:"small",sx:mt("rgba(34, 197, 94, 0.1)","#22c55e")},"available-time-negotiability")),a}}catch(s){}return[]}(t.student_available_time);if(p.length>0)(f=e).push.apply(f,(0,i.Z)(p))}return e},yt=function(t){switch(t){case"1":default:return 1;case"3":return 2;case"5":return 3;case"6":return 4;case"7":return 5;case"101":return.5}},bt=function(t){switch(t){case"1":default:return 1;case"3":return 1.5;case"5":return 2;case"6":return 2.5;case"7":return 3;case"8":return 4}},vt=function(t){if("international_school"===t.year){var e=r("year-international-full");return t.yearOther?"".concat(e," (").concat(t.yearOther,")"):e}return(0,S.tb)([t.year],!1,r)||(t.year?t.year:"")},jt=function(t){if(t.includes(" - ")&&(t.includes("am")||t.includes("pm"))){var e=function(t){var e=new Date(t);if(isNaN(e.getTime())&&t.includes("-")){var r=t.split("-");if(3===r.length){var n=parseInt(r[0]),i=parseInt(r[1])-1,o=parseInt(r[2]);e=new Date(n,i,o)}}return e}(t.split(" ")[0]);if(!isNaN(e.getTime())){var r=e.toLocaleString("en-US",{weekday:"short"});return"".concat(t," (").concat(r,")")}return t}var n=new Date(t);
1if(!isNaN(n.getTime())){var i=n.getFullYear(),o=n.toLocaleString("en-US",{month:"short"}),a=n.getDate(),s=n.getHours().toString().padStart(2,"0"),l=n.getMinutes().toString().padStart(2,"0"),u=n.toLocaleString("en-US",{weekday:"short"});return"".concat(a," ").concat(o," ").concat(i," ").concat(s,":").concat(l," (").concat(u,")")}return t},_t=function(t){return t.cid||t.id};return(0,o.jsx)(g.Z,{userType:Z.jy,children:(0,o.jsxs)(B,{children:[(0,o.jsxs)(D,{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start"},children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("h1",{style:{fontSize:"2.5rem",fontWeight:2e3,marginBottom:"16px",color:"#1f2937"},children:r("apply-history-title")}),P&&(0,o.jsxs)("div",{style:{fontSize:"20px",color:"#0088ff",marginBottom:"8px"},children:[r("apply-history-earned-credit")," ",et||0]}),(0,o.jsx)("p",{style:{fontSize:"16px",color:"#6b7280",maxWidth:"600px"},children:r("apply-history-description")})]}),(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[(0,o.jsx)("div",{style:{width:108,height:32,backgroundColor:"#0088FF",borderRadius:8,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",marginBottom:"8px"},onClick:function(){return window.location.href="/new".concat((0,C.fi)(x.locale),"/tutor-list-application")},children:(0,o.jsx)("span",{style:{fontSize:12,color:"#ffffff",fontWeight:"bold"},children:r("btn-increase-exposure")})}),!P&&(0,o.jsxs)("div",{style:{fontSize:"20px",color:"#0088ff"},children:[r("apply-history-earned-credit")," ",et||0]})]})]}),(0,o.jsx)(R,{children:(0,o.jsx)(E,{children:(0,o.jsx)(f.Z,{sx:{display:"flex",flexWrap:"wrap",gap:1},children:b.Vk.map((function(t){return(0,o.jsx)(y.Z,{data:r(t.fullname),fontColor:Y.find((function(e){return e.id===t.id}))?"white":"black",fontSize:14,onClick:function(){return function(t){var e=[];e=Y.find((function(e){return e.id===t.id}))?Y.filter((function(e){return e.id!==t.id})):[t],Q(e),dt.current=e}(t)},style:{backgroundColor:Y.find((function(e){return e.id===t.id}))?"#3b82f6":"#f3f4f6",borderRadius:"20px",padding:"8px 16px",border:"none",cursor:"pointer"}},t.id)}))})})}),(0,o.jsxs)(q,{children:[K.map((function(t){var e,i,a=parseInt(t.status),s=[3,5,8].includes(a)&&(null===T||void 0===T||null===(e=T.user)||void 0===e?void 0:e.tutorid)&&String(t.chosen_tutor)===String(null===T||void 0===T||null===(i=T.user)||void 0===i?void 0:i.tutorid),l=function(t){return N(t.location_districts).map((function(t){var e=j.A3.find((function(e){return e.id===t}));if(!e)return"";var n=e.shortname||e.fullname;return n&&n.includes("location-")?r(n):n})).filter((function(t){return""!==t}))}(t),u=xt(t.requirements),f=function(t){if("online"===t.location_type)return r("tutorial-location-online");var e=N(t.location_districts);if(0===e.length)return"";var n=[];if(e.forEach((function(t){var e=j.A3.find((function(e){return e.id===t}));e&&n.push("".concat(e.shortname||e.fullname))})),n.length>0){var i=[];return n.forEach((function(t){t&&""!==t.trim()&&t.includes("-full")&&t.includes("location-")&&i.push(r(t))})),i.join("/")+" ("+r(j.U4[t.location_type])+")"}return""}(t),p=function(t){if(!t)return"";var e=t.split(",").map((function(t){return t.trim()})).map((function(t){if("\u4e0d\u63a5\u53d7\u8996\u50cf"===t)return r("apply-history-requirement-no-online");var e=t.match(/\u9858\u610f\u652f\u4ed8\u984d\u5916\u4ea4\u901a\u91d1\u984d\(HKD\):?\s*([\d.]+)/);return e?r("apply-history-requirement-transport-fee",{amount:e[1]}):st(t)})).filter((function(t){return""!==t}));return"en"===n.language?e.filter((function(t){return!/[\u4e00-\u9fff]/.test(t)})).join(", "):e.join(", ")}(t.requirementOther);return(0,o.jsxs)(O,{onClick:s?function(){return function(t){var e,r,n=parseInt(t.status);if([3,5,8].includes(n)&&(null===T||void 0===T||null===(e=T.user)||void 0===e?void 0:e.tutorid)&&String(t.chosen_tutor)===String(null===T||void 0===T||null===(r=T.user)||void 0===r?void 0:r.tutorid))try{var i=_t(t),o=T.user.tutorid,a=(0,w.oQ)(i.toString(),"68781234").replace("+","%2B"),s=(0,w.oQ)(o.toString(),"68781234").replace("+","%2B"),l="".concat(window.location.origin,"/auto_system/tutor_final_confirm.php?case_id=").concat(a,"&tutor_id=").concat(s);window.location.href=l}catch(u){return void console.error("Error encrypting case/tutor IDs:",u)}}(t)}:void 0,sx:{cursor:s?"pointer":"default","&:hover":s?{transform:"translateY(-2px)",boxShadow:"0px 6px 20px rgba(0, 0, 0, 0.15)"}:{}},children:[(0,o.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,o.jsxs)("div",{style:{color:"rgba(190, 189, 189, 1)"},children:[r("caselist-caseid"),": ",_t(t)]}),(0,o.jsx)("div",{style:{display:"flex",flexDirection:"row"},children:(0,o.jsx)("div",{style:{fontSize:12,border:"1px solid",borderRadius:20,padding:"0px 10px",height:21},children:jt(t.tutor_apply_date||t.date)})})]}),(0,o.jsxs)("div",{style:{margin:"15px 0px"},children:[(0,o.jsxs)("div",{style:{display:"flex",flexDirection:P?"column":"row"},children:[(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",flex:2,borderRight:P?"none":"1px solid #D9D9D9",borderBottom:P?"1px solid #D9D9D9":"none",paddingBottom:P?"15px":"0",marginBottom:P?"15px":"0"},children:[(0,o.jsx)("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap"},children:pt(t)}),(0,o.jsx)("div",{style:{display:"flex",flexDirection:"row",marginTop:"15p
1x"},children:(0,o.jsxs)("span",{style:{fontSize:"16px"},children:[vt(t),"(","male"===t.gender?r("male"):r("female"),")",t.format>1&&" (".concat(t.format).concat(r("apply-history-people"),")"),"online"!==t.location_type&&l.length>0?" - ".concat(l.join(", ")):"",t.address_detail?" - ".concat(st(t.address_detail)):"",u.length>0?" ".concat(u.join(", ")):""]})}),(0,o.jsxs)("div",{style:{marginTop:"10px"},children:[f?(0,o.jsxs)("div",{style:{fontSize:"14px",color:"#777",marginBottom:"5px"},children:["\ud83d\udccd ",f]}):null,p?(0,o.jsxs)("div",{style:{fontSize:"12px",color:"#777",marginBottom:"5px"},children:["\u2139\ufe0f ",p]}):null]})]}),(0,o.jsxs)("div",{style:{display:"flex",flexDirection:"column",flex:2,marginLeft:P?0:30},children:[(0,o.jsx)("div",{style:{display:"flex",flexDirection:"row"},children:(0,o.jsxs)("span",{style:{fontSize:"16px"},children:["$","string"===typeof t.tutorial_fee?t.tutorial_fee.replace(";"," - "):t.tutorial_fee,t.format>1&&r("apply-history-per-person"),r("caselist-perHour")]})}),(0,o.jsx)("div",{style:{display:"flex",flexDirection:"row",flexWrap:"wrap",maxWidth:"100%",overflow:"hidden"},children:gt(t)})]})]}),s&&(0,o.jsx)("div",{style:{display:"flex",justifyContent:"flex-end",marginTop:"10px"},children:(0,o.jsxs)(c.Z,{variant:"outlined",size:"small",disabled:it===_t(t),onClick:function(e){return function(t,e){var n;t.stopPropagation(),(0,k.qw)("apply_history_student_folder_clicked");var i=_t(e);if((null===T||void 0===T||null===(n=T.user)||void 0===n?void 0:n.tutorid)&&!it){var o=window.open("about:blank","_blank");ot(i),(0,_.XV)({caseId:i,tutorId:T.user.tutorid},(function(t){var e;ot(null),(null===(e=t.result)||void 0===e?void 0:e.folderUrl)?o?o.location.href=t.result.folderUrl:window.location.href=t.result.folderUrl:(o&&o.close(),alert(t.message||r("apply-history-student-folder-error")))}))}}(e,t)},sx:{borderColor:"#22c55e",color:"#22c55e",fontWeight:"bold",borderRadius:"8px",padding:"6px 16px",fontSize:P?"12px":"14px","&:hover":{borderColor:"#16a34a",backgroundColor:"rgba(34, 197, 94, 0.08)"},"&.Mui-disabled":{borderColor:"#ccc",color:"#ccc"}},children:[it===_t(t)?(0,o.jsx)(d.Z,{size:16,sx:{color:"#22c55e",marginRight:"8px"}}):null,r("apply-history-student-folder")]})})]})]},t.id)})),M&&(0,o.jsx)(I,{children:(0,o.jsx)(d.Z,{})}),!M&&0===K.length&&(0,o.jsxs)(A,{children:[(0,o.jsx)("h3",{children:r("apply-history-no-data-title")}),(0,o.jsx)("p",{children:r("apply-history-no-data-description")})]}),!M&&!$&&K.length>0&&(0,o.jsx)(f.Z,{sx:{display:"flex",justifyContent:"center",padding:3},children:(0,o.jsx)(c.Z,{variant:"contained",onClick:function(){$||M||ft(dt.current,!1)},sx:{backgroundColor:"#3b82f6","&:hover":{backgroundColor:"#2563eb"}},children:r("apply-history-load-more")})})]})]})})}},97866:function(t,e,r){"use strict";r.d(e,{V:function(){return l}});var n=r(29815),i=r(67294),o=r(50246),a=r(91895),s=function(t){return/[\u3400-\u9fff]/.test(t)};function l(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",l=(0,a.X2)(e),u=(0,i.useMemo)((function(){return(0,n.Z)(new Set(t.map((function(t){return String(t||"").trim()})).filter((function(t){return t&&s(t)}))))}),[t.map((function(t){return String(t||"")})).join("\0")]),c=(0,i.useState)({}),d=c[0],f=c[1],p=(0,i.useState)(!1),m=p[0],h=p[1];return(0,i.useEffect)((function(){var t=!0;if(f({}),h(!1),!l||0===u.length)return function(){t=!1};var e=setTimeout((function(){t&&h(!0)}),8e3);return(0,o.O9)({text:u,from:"zh-TW",to:l},(function(r){if(t)if(clearTimeout(e),!r.error&&r.result){var n=Array.isArray(r.result)?r.result:[r.result];f(Object.fromEntries(u.map((function(t,e){return[t,String(n[e]||"")]}))))}else h(!0)})).catch((function(){t&&(clearTimeout(e),h(!0))})),function(){t=!1,clearTimeout(e)}}),[l,u.join("\0")]),function(t){var e=String(t||"").trim();return l&&s(e)?d[e]||(m?r:""):e}}}},function(t){t.O(0,[3714,1551,760,3522,4799,9305,321,9894,6462,8648,7635,918,9774,2888,179],(function(){return e=64082,t(t.s=e);var e}));var e=t.O();_N_E=e}]);

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.