PageSourceSearch

https://parker-nextjs-lab.vercel.app/_next/static/chunks/app/%5Blo…/components/dialog/page-d7a2152417c36b46.js

js parker-nextjs-lab.vercel.app collected 2026-10-03 07:29:46 UTC 17,271 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4991],{5214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorage",{enumerable:!0,get:function(){return r.workAsyncStorageInstance}});let r=n(17828)},6144:(e,t,n)=>{"use strict";n.d(t,{DT:()=>c,FP:()=>a,TK:()=>o,Zn:()=>i,aM:()=>l,x3:()=>s});var r=n(92651);function o(e){return"string"==typeof e?{pathname:e}:e}function i(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.append(n,String(e))}):t.set(n,String(r));return"?"+t.toString()}function a({pathname:e,locale:t,params:n,pathnames:o,query:a}){function l(e){let l,c=o[e];return c?(l=(0,r.Wl)(c,t,e),n&&Object.entries(n).forEach(([e,t])=>{let n,r;Array.isArray(t)?(n=`(\\[)?\\[...${e}\\](\\])?`,r=t.map(e=>String(e)).join("/")):(n=`\\[${e}\\]`,r=String(t)),l=l.replace(RegExp(n,"g"),r)}),l=new URL(l=l.replace(/\[\[\.\.\..+\]\]/g,""),"http://l").pathname):l=e,l=(0,r.po)(l),a&&(l+=i(a)),l}if("string"==typeof e)return l(e);{let{pathname:t,...n}=e;return{...n,pathname:l(t)}}}function l(e,t,n){let o=(0,r.FD)(Object.keys(n)),i=decodeURI(t);for(let t of o){let o=n[t];if("string"==typeof o){if((0,r.ql)(o,i))return t}else if((0,r.ql)((0,r.Wl)(o,e,t),i))return t}return t}function c(e,t=window.location.pathname){return"/"===e?t:t.replace(e,"")}function s(e,t,n,o){let i,{mode:a}=n.localePrefix;return void 0!==o?i=o:(0,r._x)(e)&&("always"===a?i=!0:"as-needed"===a&&(i=n.domains?!n.domains.some(e=>e.defaultLocale===t):t!==n.defaultLocale)),i?(0,r.PJ)((0,r.XP)(t,n.localePrefix),e):e}},9780:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(6144);function o(e,t,n,o){if(!e||o===n||null==o||!t)return;let i=(0,r.DT)(t),{name:a,...l}=e;l.path||(l.path=""!==i?i:"/");let c=`${a}=${o};`;for(let[e,t]of Object.entries(l))c+=`${"maxAge"===e?"max-age":e}`,"boolean"!=typeof t&&(c+="="+t),c+=";";document.cookie=c}},15208:(e,t,n)=>{"use strict";n.d(t,{N_:()=>r.Link,Ok:()=>r.useNextRouter,ko:()=>r.usePathnameWithLocale});var r=n(77275),o=n(82430);n(73321);var i=n(26433);let{redirect:a,getPathname:l,permanentRedirect:c}=(0,o.A)(i.D)},17828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"workAsyncStorageInstance",{enumerable:!0,get:function(){return r}});let r=(0,n(64054).createAsyncLocalStorage)()},19470:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GTMScnOpen:()=>a,default:()=>l});var r=n(12115),o=n(15208);let i=function(e){(0,r.useEffect)(()=>{!function e(t){try{if(!1===Array.isArray(window.dataLayer))return setTimeout(()=>e(t),200);let n=document.getElementsByTagName("title")[0].innerText||t?.title;window.dataLayer.push({...t,title:n})}catch(e){console.log(e)}}(e)},[])},a=(0,r.memo)(({children:e})=>(i({event:"scnOpen",url:(0,o.ko)()}),e));a.displayName="GTMScnOpen";let l=a},21957:(e,t,n)=>{"use strict";function r({moduleIds:e}){return null}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"PreloadChunks",{enumerable:!0,get:function(){return r}}),n(95155),n(47650),n(5214),n(2451)},26433:(e,t,n)=>{"use strict";n.d(t,{D:()=>r});let r=(0,n(93474).A)({locales:["zh-tw","en"],defaultLocale:"zh-tw"})},41112:(e,t,n)=>{"use strict";function r({reason:e,children:t}){return t}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"BailoutToCSR",{enumerable:!0,get:function(){return r}}),n(1980)},52879:(e,t,n)=>{"use strict";n.d(t,{$z:()=>o,cz:()=>l});var r=n(93769);let o=["success","info","warning","error"],i=(0,r.Z0)({name:"system",initialState:{systemName:"",nonce:"",message:{text:"",type:"success"},windowInnerWidth:1920,windowInnerHeight:1080,isMobile:!1,isTabletOnly:!1,isTablet:!1,loading:!1,agreeNotification:!1,firebaseCroeInited:!1,firebaseMessagingInited:!1},reducers:e=>({setSystemName:e.reducer((e,t)=>{e.systemName=t.payload}),setNonce:e.reducer((e,t)=>{e.nonce=t.payload}),setWindowInnerSize:e.reducer((e,t)=>{let{width:n,height:r,isMobile:o=!1,isTabletOnly:i=!1,isTablet:a=!1}=t.payload;e.windowInnerWidth=isNaN(n||0)?1920:Number(n),e.windowInnerHeight=isNaN(r||0)?1920:Number(r),e.isMobile="boolean"==typeof o&&o,e.isTabletOnly="boolean"==typeof i&&i,e.isTablet="boolean"==typeof a&&a}
1),setLoading:e.reducer((e,t)=>{e.loading=t.payload}),setAgreeNotification:e.reducer((e,t)=>{e.agreeNotification=t.payload}),setFirebaseCroeInited:e.reducer((e,t)=>{e.firebaseCroeInited=t.payload}),setFirebaseMessagingInited:e.reducer((e,t)=>{e.firebaseMessagingInited=t.payload}),message_reset:e.reducer(e=>{e.message={text:"",type:"success"}}),message_success:e.reducer((e,{payload:t})=>{e.message={text:t,type:"success"}}),message_error:e.reducer((e,{payload:t})=>{e.message={text:t,type:"error"}}),message_information:e.reducer((e,{payload:t})=>{e.message={text:t,type:"info"}}),message_warning:e.reducer((e,{payload:t})=>{e.message={text:t,type:"warning"}}),SAVE_message:e.reducer((e,{payload:t})=>{e.message=t})}),selectors:{messageContext:e=>{let t=e.message?.text;return"string"==typeof t?t:""},messageType:e=>{let t=e.message?.type;return o.includes(t),o.includes(t)?t:o[0]}}}),{setSystemName:a}=i.actions,l=i.reducer;i.selectors},57338:(e,t,n)=>{"use strict";n.d(t,{default:()=>h});var r=n(95155),o=n(12115),i=n(63989),a=n(57672);n(88594);var l=n(57462),c=n.n(l);function s(e){let{Container:t,children:n,...o}=e;return"string"==typeof t||"function"==typeof t?(0,r.jsx)(t,{...o,children:n}):(0,r.jsx)("div",{className:c()["dialog_root-dialog-center-container"],children:n})}function u(e){let{Title:t,children:n,...o}=e;return"string"==typeof t||"function"==typeof t?(0,r.jsx)(t,{...o,children:n}):(0,r.jsx)("p",{className:c()["dialog_root-dialog-center-container-title"],children:n})}function d(e){let{Content:t,children:n,...o}=e;return"string"==typeof t||"function"==typeof t?(0,r.jsx)(t,{...o,children:n}):(0,r.jsx)("div",{className:c()["dialog_root-dialog-center-container-content"],children:n})}function f(e){let{Action:t,children:n,...o}=e;return"string"==typeof t||"function"==typeof t?(0,r.jsx)(t,{...o,children:n}):(0,r.jsx)("div",{className:c()["dialog_root-dialog-center-container-action"],children:n})}function g(e){let{Cancel:t,children:n,...o}=e;return"string"==typeof t||"function"==typeof t?(0,r.jsx)(t,{...o,children:n}):(0,r.jsx)("div",{className:c()["dialog_root-dialog-center-container-action-btn"],children:n})}function p(e){let{Confirm:t,children:n,...o}=e;return"string"==typeof t||"function"==typeof t?(0,r.jsx)(t,{...o,children:n}):(0,r.jsx)("div",{className:c()["dialog_root-dialog-center-container-action-btn"],children:n})}let m=function(e){let{nonce:t,open:n=!1,width:a,height:l,minWidth:m="200px",minHeight:h,zIndex:y,position:_="fixed",rootPosition:b,change:x,cancel:j,cancelLabel:v="取消",confirm:w,confirmLabel:k="確定",confirmDisabled:L=!1,children:P,Container:C,Title:N,Content:A,Action:T,Cancel:S,Confirm:O}=e,[E,M]=(0,o.useState)(!1),R=(0,o.useMemo)(()=>"string"==typeof t&&""!==t?t:"",[t]),D=(0,o.useMemo)(()=>{let e={};return!1===E?e["--dialog_opacity"]="0":e["--dialog_opacity"]="1","number"==typeof a?e["--dialog_width"]=`${a}px`:"string"==typeof a&&""!==a&&(e["--dialog_width"]=a),"number"==typeof l?e["--dialog_height"]=`${l}px`:"string"==typeof l&&""!==l&&(e["--dialog_height"]=l),"number"==typeof m?e["--dialog_min_width"]=`${m}px`:"string"==typeof m&&""!==m&&(e["--dialog_min_width"]=m),"number"==typeof h?e["--dialog_min_height"]=`${h}px`:"string"==typeof h&&""!==h&&(e["--dialog_min_height"]=h),("number"==typeof y||"string"==typeof y&&""!==y)&&(e["--dialog_z_index"]=y),"string"==typeof _&&""!==_&&(e["--dialog_position"]=_),"string"==typeof b&&""!==b?e["--dialog_root_position"]=b:"absolute"===_&&(e["--dialog_root_position"]="relative"),e},[E,a,l,m,h,y,_,b]),I=(0,o.useCallback)(e=>{e?.target===e?.currentTarget&&("function"==typeof j&&j(),M(!1))},[j]);(0,o.useLayoutEffect)(()=>{"boolean"==typeof n&&n!==E&&M(n)},[n,E]),(0,o.useEffect)(()=>{if("function"==typeof document?.querySelector){let e=document.querySelector("html");null!==e&&(!1===n?e.classList.remove("dialog_open"):e.classList.add("dialog_open"))}},[n]),(0,o.useEffect)(()=>()=>{"function"==typeof x&&x(!1),I()},[]);let $=(0,o.useCallback)(function(e){e?.target===e?.currentTarget&&("function"==typeof w&&w(),M(!1))},[w]),W=(0,o.useCallback)(function(){!1===E&&!0===n&&"function"==typeof x&&x(!1)},[E,n,x]);return(0,r.jsx)("div",{className:c().dialog_root,style:D,nonce:R,children:!0===n?(0,r.jsx)("div",{className:c()["dialog_root-dialog"],onClick:I,onTransitionEnd:W,children:(0,r.jsx)("div",{className:c()["dialog_root-dialog-center"],children:(0,r.jsxs)(s,{Container:C,isShow:n,title:e.title,confirm:$,cancel:I,cancelLabel:v,confirmLabel:k,confirmDisabled:L,children:[(0,r.jsx)(u,{Title:N,title:e.title,children:e.title}),(0,r.jsx)(d,{Content:A,children:P}),(0,r.jsxs)(f,{Action:T,confirm:$,cancel:I,cancelLabel:v,confirmLabel:k,confirmDisabled:L,children:[(0,r.jsx)(g,{Cancel:S,cancel:I,cancelLabel:v,children:(0,r.jsx)(i.A,{className:c()["dialog_root-dialog-center-container-action-btn"],variant:"contained",color:"error",onClick:I,children:v})}),(0,r.jsx)(p,{Confirm:O,confirm:$,confirmLabel:k,confirmDisabled:L,children:(0,r.jsx)(i.A,{className:c()["dialog_root-dialog-center-container-action-btn"],variant:"contained",color:"primary",onClick:$,children:k})})]})]})})}):(0,r.jsx)(r.Fragment,{})})},h=function(){let e=(0,a.GV)(e=>e.system.nonce),[t,n]=(0,o.useState)(""),[l,c]=(0,o.useState)(!1),s=(0,o.useCallback)(()=>{c(!0)},[]),u=(0,o.useCallback)(()=>{console.log("Dialog Canceled/Closed"),c(!1)},[]),d=(0,o.useCallback)(()=>{console.log("Dialog Confirmed"),c(!1)},[]);return(0,o.useEffect)(()=>{"string"==typeof e&&""!==e&&n(e)},[e]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.A,{variant:"contained",nonce:t,onClick:s,children:"打開對話框"}),(0,r.jsxs)(m,{nonce:e,open:l,confirmDisabled:!1,cancelLabel:"取消",title:"演示對話框標題",confirmLabel:"確認操作",change:c,cancel:u,confirm:d,children:[(0,r.jsx)("p",{children:"這是一個基本的對話框內容。"}),(0,r.jsx)("p",{children:"你可以根據需要自訂這裡的內容和樣式ã€
1‚"})]})]})}},57462:e=>{e.exports={dialog_root:"dialog_dialog_root__j_2OD","dialog_root-dialog":"dialog_dialog_root-dialog__8BcGs",dialog_open:"dialog_dialog_open__zosDf","dialog_root-dialog-center":"dialog_dialog_root-dialog-center__BwjSv",dialog_content:"dialog_dialog_content__VG7lE","dialog_root-dialog-center-container":"dialog_dialog_root-dialog-center-container__r81Zi","dialog_root-dialog-center-container-title":"dialog_dialog_root-dialog-center-container-title__q083l","dialog_root-dialog-center-container-content":"dialog_dialog_root-dialog-center-container-content__s8mYY","dialog_root-dialog-center-container-action":"dialog_dialog_root-dialog-center-container-action__JMYjA","dialog_root-dialog-center-container-action-btn":"dialog_dialog_root-dialog-center-container-action-btn__H4YAa"}},57672:(e,t,n)=>{"use strict";n.d(t,{e8:()=>s,jL:()=>u,GV:()=>d});var r=n(93769),o=n(2834),i=n(52879);let a=(0,r.Z0)({name:"firebase",initialState:{webTokenList:[],androidTokenList:[],iosTokenList:[]},reducers:e=>({setWebTokenList:e.reducer((e,t)=>{e.webTokenList=t.payload}),setAndroidTokenList:e.reducer((e,t)=>{e.androidTokenList=t.payload}),setIosTokenList:e.reducer((e,t)=>{e.iosTokenList=t.payload})})}),{setWebTokenList:l}=a.actions,c=a.reducer,s=e=>(0,r.U1)({reducer:{system:i.cz,firebase:c},preloadedState:e,devTools:!1,middleware:e=>e({serializableCheck:!1,immutableCheck:!1})}),u=()=>(0,o.wA)(),d=o.d4},64054:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={bindSnapshot:function(){return c},createAsyncLocalStorage:function(){return l},createSnapshot:function(){return s}};for(var r in n)Object.defineProperty(t,r,{enumerable:!0,get:n[r]});let o=Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"),"__NEXT_ERROR_CODE",{value:"E504",enumerable:!1,configurable:!0});class i{disable(){throw o}getStore(){}run(){throw o}exit(){throw o}enterWith(){throw o}static bind(e){return e}}let a="undefined"!=typeof globalThis&&globalThis.AsyncLocalStorage;function l(){return a?new a:new i}function c(e){return a?a.bind(e):i.bind(e)}function s(){return a?a.snapshot():function(e,...t){return e(...t)}}},76558:(e,t,n)=>{"use strict";n.d(t,{default:()=>s});var r=n(98500),o=n(73321),i=n(12115),a=n(29600),l=n(9780),c=n(95155),s=(0,i.forwardRef)(function({href:e,locale:t,localeCookie:n,onClick:i,prefetch:s,...u},d){let f=(0,a.Ym)(),g=null!=t&&t!==f,p=(0,o.usePathname)();return g&&(s=!1),(0,c.jsx)(r,{ref:d,href:e,hrefLang:g?t:void 0,onClick:function(e){(0,l.A)(n,p,f,t),i&&i(e)},prefetch:s,...u})})},77275:(e,t,n)=>{"use strict";n.d(t,{Link:()=>a,useI18nRouter:()=>u,useNextRouter:()=>f,usePathnameWithLocale:()=>d,usePathnameWithoutLocale:()=>s});var r=n(82430),o=n(73321),i=n(26433);let{Link:a,usePathname:l,useRouter:c}=(0,r.A)(i.D),s=l,u=c,d=o.usePathname,f=o.useRouter},82430:(e,t,n)=>{"use strict";n.d(t,{A:()=>g});var r=n(73321),o=n(12115),i=n.t(o,2),a=n(29600),l=i["use".trim()],c=n(92651),s=n(76558),u=n(6144),d=n(95155),f=n(9780);function g(e){let{Link:t,config:n,getPathname:i,...g}=function(e,t){var n,i,a;let f={...n=t||{},localePrefix:"object"==typeof(a=n.localePrefix)?a:{mode:a||"always"},localeCookie:!!((i=n.localeCookie)??1)&&{name:"NEXT_LOCALE",sameSite:"lax",..."object"==typeof i&&i},localeDetection:n.localeDetection??!0,alternateLinks:n.alternateLinks??!0},g=f.pathnames,p=(0,o.forwardRef)(function({href:t,locale:n,...r},o){let i,a;"object"==typeof t?(i=t.pathname,a=t.params):i=t;let u=(0,c._x)(t),p=e(),h=(0,c.yL)(p)?l(p):p,y=u?m({locale:n||h,href:null==g?i:{pathname:i,params:a},forcePrefix:null!=n||void 0}):i;return(0,d.jsx)(s.default,{ref:o,href:"object"==typeof t?{...t,pathname:y}:y,locale:n,localeCookie:f.localeCookie,...r})});function m(e){let t,{forcePrefix:n,href:r,locale:o}=e;return null==g?"object"==typeof r?(t=r.pathname,r.query&&(t+=(0,u.Zn)(r.query))):t=r:t=(0,u.FP)({locale:o,...(0,u.TK)(r),pathnames:f.pathnames}),(0,u.x3)(t,o,f,n)}function h(e){return function(t,...n){return e(m(t),...n)}}return{config:f,Link:p,redirect:h(r.redirect),permanentRedirect:h(r.permanentRedirect),getPathname:m}}(a.Ym,e);return{...g,Link:t,usePathname:function(){let e,t,i=(e=(0,r.usePathname)(),t=(0,a.Ym)(),(0,o.useMemo)(()=>
1{if(!e)return e;let r=e,o=(0,c.XP)(t,n.localePrefix);if((0,c.wO)(o,e))r=(0,c.MY)(e,o);else if("never"!==n.localePrefix.mode&&n.localePrefix.prefixes){let n=(0,c.bL)(t);(0,c.wO)(n,e)&&(r=(0,c.MY)(e,n))}return r},[n.localePrefix,t,e])),l=(0,a.Ym)();return(0,o.useMemo)(()=>i&&n.pathnames?(0,u.aM)(l,i,n.pathnames):i,[l,i])},useRouter:function(){let e=(0,r.useRouter)(),t=(0,a.Ym)(),l=(0,r.usePathname)();return(0,o.useMemo)(()=>{function r(e){return function(r,o){let{locale:a,...c}=o||{},s=[i({href:r,locale:a||t,forcePrefix:null!=a||void 0})];Object.keys(c).length>0&&s.push(c),(0,f.A)(n.localeCookie,l,t,a),e(...s)}}return{...e,push:r(e.push),replace:r(e.replace),prefetch:r(e.prefetch)}},[t,l,e])},getPathname:i}}},88594:()=>{},91281:(e,t,n)=>{Promise.resolve().then(n.bind(n,57338)),Promise.resolve().then(n.bind(n,19470)),Promise.resolve().then(n.bind(n,91930)),Promise.resolve().then(n.bind(n,41112)),Promise.resolve().then(n.bind(n,21957))},91930:(e,t,n)=>{"use strict";n.d(t,{default:()=>i});var r=n(29600),o=n(95155);function i({locale:e,...t}){if(!e)throw Error(void 0);return(0,o.jsx)(r.Dk,{locale:e,...t})}},92651:(e,t,n)=>{"use strict";n.d(t,{FD:()=>y,MY:()=>i,PJ:()=>a,Wl:()=>c,XP:()=>d,_x:()=>o,bL:()=>f,po:()=>s,ql:()=>u,wO:()=>l,yL:()=>_});var r=n(41463);function o(e){let t;return("object"==typeof e?null==e.host&&null==e.hostname:!/^[a-z]+:/i.test(e))&&(null==(t="object"==typeof e?e.pathname:e)||!!t.startsWith("/"))}function i(e,t){return e.replace(RegExp(`^${t}`),"")||"/"}function a(e,t){let n=e;return/^\/(\?.*)?$/.test(t)&&(t=t.slice(1)),n+=t}function l(e,t){return t===e||t.startsWith(`${e}/`)}function c(e,t,n){return"string"==typeof e?e:e[t]||n}function s(e){let t=function(){try{return"true"===r.env._next_intl_trailing_slash}catch{return!1}}(),[n,...o]=e.split("#"),i=o.join("#"),a=n;if("/"!==a){let e=a.endsWith("/");t&&!e?a+="/":!t&&e&&(a=a.slice(0,-1))}return i&&(a+="#"+i),a}function u(e,t){let n,r=s(e),o=s(t);return(n=r.replace(/\/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[\[(\.\.\.[^\]]+)\]\]/g,"(?:/(.*))?").replace(/\[(\.\.\.[^\]]+)\]/g,"(.+)").replace(/\[([^\]]+)\]/g,"([^/]+)"),RegExp(`^${n}$`)).test(o)}function d(e,t){return"never"!==t.mode&&t.prefixes?.[e]||f(e)}function f(e){return"/"+e}function g(e){return e.includes("[[...")}function p(e){return e.includes("[...")}function m(e){return e.includes("[")}function h(e,t){let n=e.split("/"),r=t.split("/"),o=Math.max(n.length,r.length);for(let e=0;e<o;e++){let t=n[e],o=r[e];if(!t&&o)return -1;if(t&&!o)return 1;if(t||o){if(!m(t)&&m(o))return -1;if(m(t)&&!m(o))return 1;if(!p(t)&&p(o))return -1;if(p(t)&&!p(o))return 1;if(!g(t)&&g(o))return -1;if(g(t)&&!g(o))return 1}}return 0}function y(e){return e.sort(h)}function _(e){return"function"==typeof e.then}}
1,93474:(e,t,n)=>{"use strict";function r(e){return e}n.d(t,{A:()=>r})}},e=>{e.O(0,[2261,3678,9227,9600,8500,239,3989,529,2834,8441,3068,7358],()=>e(e.s=91281)),_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.