PageSourceSearch

https://koljobs.com/_next/static/chunks/pages/kol/editProfile/[[...tab]]-f1350660f6ad45d9.js

js koljobs.com collected 2026-10-02 16:03:18 UTC 2,880 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4018],{36446:function(e,t,l){(window.__NEXT_P=window.__NEXT_P||[]).push(["/kol/editProfile/[[...tab]]",function(){return l(60137)}])},40788:function(e,t,l){"use strict";l.d(t,{m:function(){return EditProfileView}});var r=l(52322),a=l(5632),i=l(2784),n=l(57429),s=l(20809),o=l(6277),d=l(39097),c=l.n(d),u=l(44057),f=l(38195);let EditProfileTabs=e=>{let{currentTab:t,tabs:l}=e,{trackEvent:a}=(0,f.z)(),{user:i}=(0,n.S)();return(0,r.jsx)("div",{className:"h-max w-full bg-white text-base shadow sm:rounded-lg",children:l.map((e,l)=>{var n;let{label:s,path:d,event:f}=e;return(0,r.jsx)(c(),{href:f===u.EZ.CLICK_EDIT_PRIVATE_ALBUM?"".concat(d,"/").concat(null===(n=null==i?void 0:i.roleData)||void 0===n?void 0:n.id):d,passHref:!0,className:(0,o.Z)("block border-l-4 p-2.5",t.label===s?"border-primary text-primary":"border-transparent text-gray-700"),onClick:()=>a(f),children:s},l)})})};var m=l(67745),h=l(52807);let EditProfileTabsDropdown=e=>{let{currentOption:t,options:l}=e,i=(0,a.useRouter)(),{trackEvent:s}=(0,f.z)(),{user:d}=(0,n.S)();return(0,r.jsxs)("div",{className:(0,o.Z)("flex flex-col p-4 gap-5 sm:hidden",t.event===u.EZ.CLICK_EDIT_NOTIFICATION_SETTINGS_TAB?"":"bg-white"),children:[(0,r.jsx)(m.D,{size:"h1",className:"text-gray-900 font-medium",children:"設定"}),(0,r.jsx)(h.P,{options:l.map(e=>{let{label:t,path:l}=e;return{label:t,value:l}}),defaultValue:t.path,onChange:e=>{var t;let r=l.find(t=>t.path===e.target.value);s(r.event),i.push(r.event===u.EZ.CLICK_EDIT_PRIVATE_ALBUM?"".concat(r.path,"/").concat(null===(t=null==d?void 0:d.roleData)||void 0===t?void 0:t.id):r.path)},className:"text-gray-900"})]})},EditProfileView=e=>{let{role:t,tabs:l}=e,{asPath:o,isReady:d,replace:c}=(0,a.useRouter)(),{user:u,isReady:f}=(0,n.S)(),m=(0,i.useMemo)(()=>{var e;return null!==(e=l.find(e=>e.path===o))&&void 0!==e?e:l[0]},[o]);return(0,i.useEffect)(()=>{f&&d&&(null==u?void 0:u.role)!==t&&c("/")},[f,d,u,t]),(0,r.jsxs)(s.W,{className:"flex flex-1 flex-col sm:grid sm:grid-cols-4 sm:gap-x-8 sm:pt-12 sm:pb-24",fullInMobile:!0,children:[(0,r.jsx)("div",{className:"hidden sm:block",children:(0,r.jsx)(EditProfileTabs,{currentTab:m,tabs:l})}),(0,r.jsx)("div",{className:"block sm:hidden",children:(0,r.jsx)(EditProfileTabsDropdown,{currentOption:m,options:l})}),(0,r.jsx)("div",{className:"col-span-3 flex flex-1 sm:h-max sm:flex-col",children:m.component})]})}},60137:function(e,t,l){"use strict";l.r(t);var r=l(52322),a=l(95395),i=l(34612),n=l(40788),s=l(92244);let EditProfilePage=()=>(0,r.jsx)(n.m,{role:s.tGl.Model,tabs:i.n});t.default=EditProfilePage,EditProfilePage.getLayout=function(e){return(0,r.jsx)(a.I,{children:e})}}},function(e){e.O(0,[4465,8421,7370,7211,2751,6980,8537,5522,5395,9774,2888,179],function(){return e(e.s=36446)}),_N_E=e.O()}]);
2//# sourceMappingURL=[[...tab]]-f1350660f6ad45d9.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.