1import{u as X,r as A,j as t,c as M,b as V}from"./index-BZ83QPfB.js";import{g as C,S as k}from"./swiper-core-XRR0Q-N8.js";import{s}from"./index.module-BxEEiIId.js";const Z="/global/assets/img/dimissionBg-BeHI27j-.png",z="/global/assets/img/dimissionDown-BEmxJ_N8.png",J="/global/assets/img/dimissionUp-B5WQGSvC.png",Q="/global/assets/img/entryBg-BrrbDwHb.png",Y="/global/assets/img/entryDown-BhayBwpF.png",$="/global/assets/img/entryUp-Dl6SkeXC.png",K="/global/assets/img/holidayBg-Bsa-ZGzc.png",ee="/global/assets/img/holidayDown-GuoF_xXg.png",te="/global/assets/img/holidayUp-baeMoWWu.png",ae="/global/assets/img/reimbursementBg-CevPXirf.png",se="/global/assets/img/reimbursementDown-BStGkWR9.png",re="/global/assets/img/reimbursementUp-CYa4LZs8.png",ne="/global/assets/img/policySearchMobile-D0x84--9.png";function ie(n){let{swiper:e,extendParams:N,on:o,emit:r,params:p}=n;e.autoplay={running:!1,paused:!1,timeLeft:0},N({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let g,j,T=p&&p.autoplay?p.autoplay.delay:3e3,v=p&&p.autoplay?p.autoplay.delay:3e3,l,f=new Date().getTime(),E,w,d,R,S,c,D;function I(a){!e||e.destroyed||!e.wrapperEl||a.target===e.wrapperEl&&(e.wrapperEl.removeEventListener("transitionend",I),!(D||a.detail&&a.detail.bySwiperTouchMove)&&m())}const L=()=>
vendor: 4,433 bytes, line 1
1{if(e.destroyed||!e.autoplay.running)return;e.autoplay.paused?E=!0:E&&(v=l,E=!1);const a=e.autoplay.paused?l:f+v-new Date().getTime();e.autoplay.timeLeft=a,r("autoplayTimeLeft",a,a/T),j=requestAnimationFrame(()=>{L()})},G=()=>{let a;return e.virtual&&e.params.virtual.enabled?a=e.slides.find(i=>i.classList.contains("swiper-slide-active")):a=e.slides[e.activeIndex],a?parseInt(a.getAttribute("data-swiper-autoplay"),10):void 0},x=a=>{if(e.destroyed||!e.autoplay.running)return;cancelAnimationFrame(j),L();let u=typeof a>"u"?e.params.autoplay.delay:a;T=e.params.autoplay.delay,v=e.params.autoplay.delay;const i=G();!Number.isNaN(i)&&i>0&&typeof a>"u"&&(u=i,T=i,v=i),l=u;const b=e.params.speed,U=()=>{!e||e.destroyed||(e.params.autoplay.reverseDirection?!e.isBeginning||e.params.loop||e.params.rewind?(e.slidePrev(b,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(e.slides.length-1,b,!0,!0),r("autoplay")):!e.isEnd||e.params.loop||e.params.rewind?(e.slideNext(b,!0,!0),r("autoplay")):e.params.autoplay.stopOnLastSlide||(e.slideTo(0,b,!0,!0),r("autoplay")),e.params.cssMode&&(f=new Date().getTime(),requestAnimationFrame(()=>{x()})))};return u>0?(clearTimeout(g),g=setTimeout(()=>{U()},u)):requestAnimationFrame(()=>{U()}),u},B=()=>{f=new Date().getTime(),e.autoplay.running=!0,x(),r("autoplayStart")},h=()=>{e.autoplay.running=!1,clearTimeout(g),cancelAnimationFrame(j),r("autoplayStop")},y=(a,u)=>{if(e.destroyed||!e.autoplay.running)return;clearTimeout(g),a||(c=!0);const i=()=>{r("autoplayPause"),e.params.autoplay.waitForTransition?e.wrapperEl.addEventListener("transitionend",I):m()};if(e.autoplay.paused=!0,u){S&&(l=e.params.autoplay.delay),S=!1,i();return}l=(l||e.params.autoplay.delay)-(new Date().getTime()-f),!(e.isEnd&&l<0&&!e.params.loop)&&(l<0&&(l=0),i())},m=()=>{e.isEnd&&l<0&&!e.params.loop||e.destroyed||!e.autoplay.running||(f=new Date().getTime(),c?(c=!1,x(l)):x(),e.autoplay.paused=!1,r("autoplayResume"))},O=()=>{if(e.destroyed||!e.autoplay.running)return;const a=C();a.visibilityState==="hidden"&&(c=!0,y(!0)),a.visibilityState==="visible"&&m()},P=a=>{a.pointerType==="mouse"&&(c=!0,D=!0,!(e.animating||e.autoplay.paused)&&y(!0))},F=a=>{a.pointerType==="mouse"&&(D=!1,e.autoplay.paused&&m())},_=()=>{e.params.autoplay.pauseOnMouseEnter&&(e.el.addEventListener("pointerenter",P),e.el.addEventListener("pointerleave",F))},H=()=>{e.el&&typeof e.el!="string"&&(e.el.removeEventListener("pointerenter",P),e.el.removeEventListener("pointerleave",F))},W=()=>{C().addEventListener("visibilitychange",O)},q=()=>{C().removeEventListener("visibilitychange",O)};o("init",()=>{e.params.autoplay.enabled&&(_(),W(),B())}),o("destroy",()=>{H(),q(),e.autoplay.running&&h()}),o("_freeModeStaticRelease",()=>{(d||c)&&m()}),o("_freeModeNoMomentumRelease",()=>{e.params.autoplay.disableOnInteraction?h():y(!0,!0)}),o("beforeTransitionStart",(a,u,i)=>{e.destroyed||!e.autoplay.running||(i||!e.params.autoplay.disableOnInteraction?y(!0,!0):h())}),o("sliderFirstMove",()=>{if(!(e.destroyed||!e.autoplay.running)){if(e.params.autoplay.disableOnInteraction){h();return}w=!0,d=!1,c=!1,R=setTimeout(()=>{c=!0,d=!0,y(!0)},200)}}),o("touchEnd",()=>{if(!(e.destroyed||!e.autoplay.running||!w)){if(clearTimeout(R),clearTimeout(g),e.params.autoplay.disableOnInteraction){d=!1,w=!1;return}d&&e.params.cssMode&&m(),d=!1,w=!1}}),o("slideChange",()=>{e.destroyed||!e.autoplay.running||(S=!0)}),Object.assign(e.autoplay,{start:B,stop:h,pause:y,resume:m})}k.use([ie]);const ce=()=>{const{t:n}=X(),e=A.useRef(null),N=[{title:n("resourceCenter.humanResource.employeeManagement.entry.title"),text:n("resourceCenter.humanResource.employeeManagement.entry.subtitle"),upImg:$,downImg:Y,bg:Q,reverse:!1},{title:n("resourceCenter.humanResource.employeeManagement.dimission.title"),text:n("resourceCenter.humanResource.employeeManagement.dimission.subtitle"),upImg:J,downImg:z,bg:Z,reverse:!0},{title:n("resourceCenter.humanResource.employeeManagement.holiday.title"),text:n("resourceCenter.humanResource.employeeManagement.holiday.subtitle"),upImg:te,downImg:ee,bg:K,reverse:!1},{title:n("resourceCenter.humanResource.employeeManagement.reimbursement.title"),text:n("resourceCenter.humanResource.employeeManagement.reimbursement.subtitle"),upImg:re,downImg:se,bg:ae,reverse:!0}],o={speed:3e3,loop:!0,slidesPerView:1,freeMode:!0,autoplay:{delay:1,stopOnLastSlide:!1,disableOnInteraction:!1,pauseOnMouseEnter:!0}};return A.useLayoutEffect(()=>
1(e.current=new k(".mobileSwiper",o),()=>{var r;(r=e.current)==null||r.destroy()}),[]),t.jsxs("section",{className:s.globalHumanResourceMobile,children:[t.jsxs("div",{className:s.header,children:[t.jsx("p",{className:s.title,children:n("resourceCenter.humanResource.title")}),t.jsx("p",{className:s.subtitle,children:n("resourceCenter.humanResource.subtitle")})]}),t.jsxs("div",{className:s.employeeManagement,children:[t.jsxs("div",{className:s.sectionTitle,children:[t.jsx("div",{className:s.title,children:n("resourceCenter.humanResource.employeeManagement.title")}),t.jsx("div",{className:s.desc,children:n("resourceCenter.humanResource.employeeManagement.desc")})]}),t.jsx("div",{className:s.swipers,children:t.jsx("div",{className:M("swiper mobileSwiper"),children:t.jsx("div",{className:"swiper-wrapper",children:N.map(r=>t.jsxs("div",{className:M("swiper-slide",s.swiperItem,r.reverse&&" flex-row-reverse"),children:[t.jsxs("div",{className:s.left,style:{background:`url(${r.bg})`},children:[t.jsx("p",{className:s.title,children:r.title}),t.jsx("p",{className:s.text,children:r.text})]}),t.jsxs("div",{className:s.right,children:[t.jsx("img",{src:r.upImg,className:"mb-2",alt:""}),t.jsx("img",{src:r.downImg,alt:""})]})]},r.title))})})}),t.jsx("div",{className:s.workPlatform,children:t.jsxs("div",{className:s.content,children:[t.jsx("div",{className:s.bg}),t.jsxs("div",{className:s.platform,children:[t.jsxs("div",{className:s.title,children:[t.jsx("span",{className:s.desc,children:n("resourceCenter.humanResource.workPlatform.title")}),t.jsx(V,{name:"arrow-red-right",className:s.icon})]}),t.jsx("div",{className:s.text,children:n("resourceCenter.humanResource.workPlatform.subtitle")})]})]})}),t.jsxs("div",{className:s.policySearch,children:[t.jsx("p",{className:s.title,children:n("resourceCenter.humanResource.policySearch.title")}),t.jsx("p",{className:s.subtitle,children:n("resourceCenter.humanResource.policySearch.subtitle")}),t.jsx("img",{className:"w-full",src:ne,alt:""}),t.jsx("button",{className:M(s.btn,"linear-gradient-primary"),children:n("resourceCenter.humanResource.policySearch.goBtn")})]})]})]})};export{ce as default};
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.