1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},l=(new e.Error).stack;l&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[l]="7d2dbdea-f529-4c0c-8498-5110e417d50f",e._sentryDebugIdIdentifier="sentry-dbid-7d2dbdea-f529-4c0c-8498-5110e417d50f")}()}catch(e){}/*! // Bundle Size Monitor: {"page":{"warning":500,"error":800},"js":{"warning":15000,"error":20000},"css":{"warning":400,"error":600},"assets":{"warning":1500,"error":2500}} */(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[165],{60683:function(e,l,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/hikes/[hikeUuid]/orders",function(){return i(48290)}])},48290:function(e,l,i){"use strict";i.r(l),i.d(l,{__N_SSP:function(){return ee}});var s=i(90626),n=i(91569),r=i(10449),o=i(49196),d=i(47828),t=i(24724),a=i.n(t),c=i(53084),u=i(89559),p=i(57099),h=i(16908),x=i(94032),m=i(28063),f=i(81286),j=i(98829),v=i(30597),Z=i(89610),b=i(44422),g=i(32018),k=i(13066),y=i(98355),C=i(78974),w=i(17295),I=i(42683),_=i(98534),E=i(61947),D=i(71364),A=i(49133),W=i(5170),B=i(25322),O=i(45190),S=i(85824),q=i(96172),z=i(36286),F=i(20578),N=i(80377),T=i(37704),L=i(47716),P=i(28616),R=i(57730),V=i(10505),U=i(87870);i(55892);let H=(0,d.z)(y.Z)({name:"WrapperBox",class:"w1ivk27e",propsAsIs:!0}),Y=(0,d.z)(y.Z)({name:"TitleBox",class:"t4mc6r9",propsAsIs:!0}),M=(0,d.z)(y.Z)({name:"OrdersBox",class:"ok4vqmw",propsAsIs:!0}),G=(0,d.z)(y.Z)({name:"InfoWrapperBox",class:"igvr8l0",propsAsIs:!0,vars:{"igvr8l0-0":[(0,S.AV)(e=>e.blockBackgroundColor)],"igvr8l0-1":[(0,S.AV)(e=>e.boxShadowLarge)]}}),X=(0,d.z)(y.Z)({name:"InfoTitleBox",class:"i9pvfpg",propsAsIs:!0}),K=(0,d.z)(y.Z)({name:"CollapseIconBox",class:"cjfbhcs",propsAsIs:!0}),$=(0,d.z)(D.Z)({name:"FeeText",class:"fmo2x16",propsAsIs:!0,vars:{"fmo2x16-0":[(0,S.AV)(e=>e.textFlameGradient)]}}),J=(0,d.z)(w.Z)({name:"ContentGrid",class:"c1ctoqlg",propsAsIs:!0}),Q=(0,d.z)(y.Z)({name:"InfoItemBox",class:"i1a0il0y",propsAsIs:!0}),HikeOrders=()=>{var e,l,i;(0,F.Z)({redirectTo:j.e0,restrictNonBusinessUser:!0});let d=(0,S.Fg)(),{t,lang:w}=(0,u.Z)("order"),{t:_}=(0,u.Z)("common"),ee=(0,c.useRouter)(),{safeRoutePush:el}=(0,z.Z)(),ei=(0,U.cl)(ee.query.hikeUuid);m.W1;let{user:es,userMembershipRoleUuids:en,isAuthLoading:er,isUserLoading:eo}=(0,n.useContext)(O.Vo),{data:ed,loading:et}=(0,o.a)(q.Vr,{fetchPolicy:"network-only",variables:{hikeUuid:ei},skip:!ei}),{hike:ea}=ed||{},{startDatetime:ec,hikeJoinRecords:eu,hikeMembershipRoleRecords:ep,createdByMembershipRole:eh}=ea||{},{membershipCollection:ex}=es||{},em=[null==ex?void 0:null===(e=ex.personal)||void 0===e?void 0:e.uuid,null==ex?void 0:null===(l=ex.business)||void 0===l?void 0:l.uuid,...en||[]].filter(Boolean),ef=!!((null==eh?void 0:eh.uuid)&&em.includes(eh.uuid)||(null==eh?void 0:null===(i=eh.membership)||void 0===i?void 0:i.uuid)&&em.includes(eh.membership.uuid));(0,n.useEffect)(()=>{et||er||eo||!ea||!es||ef||el({url:j.e0,isReplace:!0})},[et,er,eo,ea,es,ef,el]);let ej=(0,N.E)(ea,"title",w),ev=(0,T.Z)(ec).format("YYYY.MM.DD[ ]ddd[.]"),eZ=(0,n.useCallback)(()=>{el({url:(0,P.FW)(ei)})},[el,ei]),eb=(0,n.useCallback)(e=>{let{orderStatus:l,payment:i}=e||{},{paymentStatus:n}=i||{},r=n===f.R$.SUCCEEDED,o=[f.DF.CANCELLED,f.DF.REVOKED,f.DF.FAILED].includes(l),a=!r&&!o,c=r?t("payment-succeed"):o?t("order-failed"):a?t("payment-waiting"):void 0,u=r?d.primaryColor:o?d.warningColor:a?(0,p.DZ)(.6,d.textColor):void 0;return c?(0,s.jsx)(A.Z,{as:"span",color:u,children:c}):null},[t,d]),eg=(0,n.useCallback)((e,l)=>{var i,n,r,o;let{orderNumber:c,payment:u}=e||{},{price:h}=e||{},{price:m}=u||{},f=null==ep?void 0:ep.find(l=>{var i,s;return(null==l?void 0:null===(s=l.membershipRole)||void 0===s?void 0:null===(i=s.membership)||void 0===i?void 0:i.uuid)===(null==e?void 0:e.membershipUuid)}),j=(null==l?void 0:null===(n=l.membershipRole)||void 0===n?void 0:null===(i=n.membership)||void 0===i?void 0:i.profile)||(null==f?void 0:null===(o=f.membershipRole)||void 0===o?void 0:null===(r=o.membership)||void 0===r?void 0:r.profile),{nickname:v,avatarImageFileUrl:Z,thirdPartyAvatarImageUrl:b}=j||{},g=Z||b||x.Z,k=v||(null==l?void 0:l.name),C="number"==typeof m?(0,R.f)(m):(0,R.f)(h),w=eb(e);return(0,s.jsxs)(X,{fillWidth:!0,children:[(0,s.jsx)(K,{mt:4,children:(0,s.jsx)(a(),{fill:!0,alt:"order member avatar",src:g})}),(0,s.jsxs)(y.Z,{flex:1,children:[(0,s.jsxs)(y.Z,{flex:1,children:[(0,s.jsx)(D.Z,{as:"span",children:k}),(0,s.jsxs)(y.Z,{alignItems:"center",ml:"auto",children:[(0,s.jsxs)($,{as:"span",children:["NT ",C]}),w?(0,s.jsx)(y.Z,{desktopOnly:!0,ml:20,children:w}):null]})]}),(0,s.jsx)(y.Z,{fillWidth:!0,mt:4,children:(0,s.jsxs)(B.Z,{as:"span",color:(0,p.DZ)(.6,d.textColor),children:[t("order-number"),": ",c]})})]})]})},[eb,ep,t,d.textColor]);return((0,n.useEffect)(()=>{!(0,L.l)(w,null==ea?void 0:ea.sourceLanguage)&&(null==ea?void 0:ea.translations)&&r.ZP.custom(e=>(0,s.jsx)(g.Z,{message:_("automatically-translated"),t:e}),{id:"automatically-translated-".concat(w),position:"bottom-right",duration:1/0})},[w,_,null==ea?void 0:ea.translations,null==ea?void 0:ea.sourceLanguage]),et)?(0,s.jsx)(H,{fillWidth:!0,children:(0,s.jsx)(y.Z,{center:!0,fillWidth:!0,children:(0,s.jsx)(Z.Z,{show:!0,color:d.secondaryColor})})}):ea&&ef?(0,s.jsxs)(H,{fillWidth:!0,direction:"column",children:[(0,s.jsxs)(Y,{fillWidth:!0,alignItems:"center",children:[(0,s.jsx)(y.Z,{fillWidth:!0,children:(0,s.jsx)(D.Z,{as:"span",children:t("orders-list")})}),(0,s.jsx)(E.Z,{as:"span",children:ej}),(0,s.jsx)(I.Z,{hike:ea}),(0,s.jsx)(y.Z,{fillWidth:!0,children:(0,s.jsx)(D.Z,{as:"span",children:ev})})]}),(0,s.jsx)(y.Z,{mb:24,children:(0,s.jsx)(v.Z,{color:d.primaryColor,text:t("common:go-back-to-hike"),onClick:eZ})}),(0,s.jsx)(M,{children:(()=>
1{if(null==eu?void 0:eu.length)return eu.map(e=>{let{order:l,name:i,email:n,phone:r}=e||{},{notes:o,taxNumber:a}=l||{},c=eb(l);return(0,s.jsx)(G,{fillWidth:!0,children:(0,s.jsx)(b.Z,{contentPadding:(0,V.Z)(8,0,16),expandIcon:h.Z,title:eg(l,e),children:(0,s.jsxs)(J,{gap:"8",children:[(0,s.jsxs)(C.Z,{colSpan:12,desktop:12,tablet:12,children:[(0,s.jsx)(y.Z,{fillWidth:!0,mt:-12,children:(0,s.jsx)(k.Z,{})}),c?(0,s.jsx)(y.Z,{mobileOnly:!0,justifyContent:"flex-end",mt:8,children:c}):null]}),(0,s.jsx)(C.Z,{colSpan:12,desktop:6,tablet:6,children:(0,s.jsxs)(Q,{children:[(0,s.jsx)(B.Z,{as:"span",color:d.primaryColor,children:t("hike:order-contact")}),(0,s.jsx)(W.Z,{thin:!0,as:"span",children:i})]})}),(0,s.jsx)(C.Z,{colSpan:12,desktop:6,tablet:6,children:(0,s.jsxs)(Q,{children:[(0,s.jsx)(B.Z,{as:"span",color:d.primaryColor,children:t("hike:order-contact-email")}),(0,s.jsx)(W.Z,{thin:!0,as:"span",children:n})]})}),(0,s.jsx)(C.Z,{colSpan:12,desktop:6,tablet:6,children:(0,s.jsxs)(Q,{children:[(0,s.jsx)(B.Z,{as:"span",color:d.primaryColor,children:t("hike:order-contact-phone")}),(0,s.jsx)(W.Z,{thin:!0,as:"span",children:r})]})}),a?(0,s.jsx)(C.Z,{colSpan:12,desktop:6,tablet:6,children:(0,s.jsxs)(Q,{children:[(0,s.jsx)(B.Z,{as:"span",color:d.primaryColor,children:t("common:gui-number")}),(0,s.jsx)(W.Z,{thin:!0,as:"pre",children:a})]})}):null,o?(0,s.jsx)(C.Z,{colSpan:12,desktop:12,tablet:12,children:(0,s.jsxs)(Q,{children:[(0,s.jsx)(B.Z,{as:"span",color:d.primaryColor,children:t("hike:more-notes")}),(0,s.jsx)(W.Z,{thin:!0,as:"pre",children:o})]})}):null]})})},null==l?void 0:l.uuid)})})()})]}):null};HikeOrders.getLayout=e=>(0,s.jsx)(_.Z,{isInnerPage:!0,noMobileFooter:!0,title:"Hike Orders",children:e});var ee=!0;l.default=HikeOrders},55892:function(e){e.exports={w1ivk27e:"w1ivk27e",b107qxgp:"b107qxgp",d1274wi:"d1274wi",t4mc6r9:"t4mc6r9",ok4vqmw:"ok4vqmw",igvr8l0:"igvr8l0",i9pvfpg:"i9pvfpg",cjfbhcs:"cjfbhcs",fmo2x16:"fmo2x16",t1jl0x57:"t1jl0x57",c1ctoqlg:"c1ctoqlg",g69ilbn:"g69ilbn",i1a0il0y:"i1a0il0y"}}},function(e){e.O(0,[3178,2336,1829,5604,6034,6877,6773,8348,8247,2232,7527,2392,9480,8576,2681,5098,789,7001,9990,5390,5514,7925,2138,4492,6966,3549,9496,437,5659,3960,1935,8650,3876,8469,3550,9189,5153,6273,8991,4343,8751,2468,4788,5040,6395,8587,6381,6611,6235,7042,1913,6417,7943,3e3,267,2954,6326,5341,2888,179],function(){return e(e.s=60683)}),_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.