PageSourceSearch

https://memmo.me/_next/static/chunks/pages/[market]/[language]/account/orders/[orderId]-6d5ac4a1ea2751d2.js

js memmo.me collected 2026-10-02 04:43:34 UTC 52,959 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5443,9902],{782:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[market]/[language]/account/orders/[orderId]",function(){return n(75775)}])},54945:function(e,t,n){"use strict";n.d(t,{Z:function(){return D}});var r=n(24246),i=(n(27378),n(58492)),o=n(90567),a=n(31771),s=n(70337),l=n(17369),u=n(85657),c=n(99998),d=n(43369),m=n.n(d),f=n(41449),p=function(e){var t=e.headerBackground,n=void 0===t?u.I6:t;return(0,r.jsx)("header",{className:m().header,style:{background:n},children:(0,r.jsx)(f.Z,{waveColor:u.CA,bottom:!0,children:(0,r.jsx)(c.Z,{})})})},h=n(60315),v=n(8995),g=n(15087),y=n(15241),b=n(55522),I=n(81719),_=n(19374),x=n(92739),j=n(79427),O=n(70851),w=n.n(O);function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var R=function(){var e=(0,s.useTranslation)().t,t=P((0,I.Z)(),1)[0];return(0,r.jsxs)(j.Z,{className:w().menu,children:[(0,r.jsx)(j.Z.Item,{className:w().menuItem,icon:(0,r.jsx)(x.G,{icon:_.Diu,color:"#000",className:w().icon,fixedWidth:!0}),children:(0,r.jsx)(g.Z,{href:"/account/orders",children:(0,r.jsx)("a",{children:e("AuthMenu.orders","Orders")})})}),(0,r.jsx)(j.Z.Item,{className:w().menuItem,icon:(0,r.jsx)(x.G,{icon:_.Ozh,color:"#000",className:w().icon,fixedWidth:!0}),children:(0,r.jsx)(g.Z,{href:"/account/payment-methods",children:(0,r.jsx)("a",{children:e("AuthMenu.paymentMethods","Payment methods")})})}),(0,r.jsx)(j.Z.Item,{className:w().menuItem,icon:(0,r.jsx)(x.G,{icon:_.ILF,color:"#000",className:w().icon,fixedWidth:!0}),children:(0,r.jsx)("a",{onClick:t,role:"button",tabIndex:0,children:e("AuthMenu.logout","Logout")})})]})},S=n(30329),N=n.n(S);function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||C(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||C(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function C(e,t){if(e){if("string"===typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?q(e,t):void 0}}var D=function(e){var t,n,u,c=e.headerBackground,d=e.breadcrumbs,m=void 0===d?[]:d,f=e.children,_=(0,s.useTranslation)().t,x=Z((0,I.Z)(),1)[0],j=(0,a.a)(),O=j.currentUser,w=j.isAuthenticated,E=j.loading,P=j.error;if(P)return"UNAUTHENTICATED"===(null===(n=P.graphQLErrors[0])||void 0===n||null===(u=n.extensions)||void 0===u?void 0:u.code)?(x(),null):(l.k.info(P),(0,r.jsx)("div",{children:JSON.stringify(P,null,2)}));var S=(null===O||void 0===O||null===(t=O.profiles)||void 0===t?void 0:t.totalCount)>=1,q=[{title:_("AuthLayout.Home","Home")}].concat(k(m)).map((function(e){var t=e.href,n=e.title;return(0,r.jsx)(i.Z.Item,{children:t?(0,r.jsx)(g.Z,{href:t,children:(0,r.jsx)("a",{children:n})}):(0,r.jsx)("span",{children:n})},t||n)}));return(0,r.jsxs)("div",{style:{background:"transparent",display:"flex",minHeight:"100vh",flexDirection:"column",justifyContent:"flex-start",position:"relative"}
1,children:[(0,r.jsx)(p,{headerBackground:c}),(0,r.jsxs)("div",{style:{flexGrow:1,minHeight:300},children:[E&&(0,r.jsx)(y.Z,{centered:!0}),w&&(0,r.jsxs)(b.Z,{children:[S&&(0,r.jsx)(o.Z,{style:{marginTop:20},message:(0,r.jsxs)("div",{className:N().hasProfile,children:[_("AuthLayout.isProfile","Manage your talent settings, record videos and see your earnings in the memmo app."),(0,r.jsx)("div",{className:N().appButtons,children:(0,r.jsx)(h.Z,{style:{margin:0},iconSize:35})})]}),type:"warning"}),(0,r.jsx)("header",{className:N().breadcrumbs,children:(0,r.jsx)(i.Z,{children:q})}),(0,r.jsxs)("div",{className:N().content,children:[(0,r.jsx)("div",{className:N().menu,children:(0,r.jsx)(R,{})}),(0,r.jsx)("main",{className:N().main,children:f})]})]})]}),(0,r.jsx)(v.Z,{})]})}},55031:function(e,t,n){"use strict";n.d(t,{Z:function(){return Fe}});var r=n(24246),i=n(27378),o=n(60193),a=n(77659),s=n(19374),l=n(92739),u=n(90567),c=n(76960),d=n(71577),m=n(60042),f=n.n(m),p=n(70337),h=n(22461),v=n(44454),g=n(15087),y=n(29984),b=n(12227),I=n(320),_=n(50812),x=n(2587),j=n(60974),O=n.n(j),w=function(e){var t,n=e.donation,i=(0,p.useTranslation)().t;if(!(null===n||void 0===n||null===(t=n.data)||void 0===t?void 0:t.fromName))return null;var o=n.data.fromName;return(0,r.jsx)("div",{className:O().donationItem,children:(0,r.jsx)(x.Z,{column:1,size:"small",children:(0,r.jsx)(x.Z.Item,{label:i("DonationItem.fromName","From"),children:o})})})},E=function(e){var t=e.genericProductRequest;return(0,r.jsx)("div",{className:O().genericProductRequestItem,children:(0,r.jsx)(x.Z,{column:1,size:"small",children:Object.entries((null===t||void 0===t?void 0:t.data)||{}).map((function(e){return(0,r.jsx)(x.Z.Item,{label:e[0],children:e[1]},e[0])}))})})};var P=function(e){var t,n,i,o=e.title,a=e.amount,s=e.originalAmount,l=e.productType,u=a&&s&&s!==a&&"SERVICE_FEE"!==l;return(0,r.jsxs)("div",{className:O().lineItem,children:[(0,r.jsx)("div",{className:O().lineItemTitle,children:o}),(0,r.jsxs)("div",{className:O().lineItemPrice,children:[u&&(0,r.jsx)("span",{className:O().originalAmount,children:s}),(0,r.jsx)("span",{className:f()((t={},n=O().discounted,i=u,n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t)),children:a})]})]})};var R=function(e){var t,n,i,o=e.orderId,a=e.icon,s=e.itemId,l=e.isEdit,u=void 0!==l&&l,c=(0,p.useTranslation)().t,d=u?"/account/orders/".concat(o,"/items/").concat(s,"?edit"):"/account/orders/".concat(o,"/items/").concat(s),m=u?"default":"primary",v=u?c("OrderItemProfileInfo.editOrder","Edit order"):c("OrderItemProfileInfo.showDeliveryStatusLink","Show Delivery status"),y=u?"":"showDeliveryStatusButton";return(0,r.jsx)(g.Z,{href:d,children:(0,r.jsx)("a",{className:O().showDeliveryStatusLink,children:(0,r.jsxs)(h.Z,{size:"large",block:!0,type:m,className:f()(O().ctaButton,(t={},n=O().ctaBorderColor,i=u,n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t)),"data-cy":y,children:[a," ",v]})})})},S=n(58693),N=n(5484),q=n(35230),Z=n.n(q),k=n(45360),C=n(82988),D=n(17369),V=n(2779),T=n(71230),A=n(32808),B=n(7616),L=n.n(B),F=n(87313),U=n(5125),M=n(45707),G=n(66548),H=n(19141),W=n(65387),z=n(39547),Y=n(57294),Q=n(84229),$=n(22517),X=n.n($),J=n(51864),K=n(48151),ee=n(60725),te=n(4044),ne=n(75102),re=n(90619);function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oe(e,t,n[t])}))}return e}function se(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return ie(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ie(e,t)}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var le=function(e){var t,n=e.productType,o=e.onFinish,a=e.isBusinessRequest,s=e.initialValues,l=e.profile,u=e.footer,c=e.extendedInstructionsProduct,d=e.toggleExtendedInstructions,m=e.extendedInstructionsActive,f=e.profileProduct,h=e.onValuesChange,v="VIDEO_REQUEST_BUSINESS"===n?150:2e3,g=(0,p.useTranslation)().t,y=se(C.Z.useForm(),1)[0],b=(0,F.VR)(),_=(0,V.a)(L(),{variables:{marketId:b}}).data,x=(null===_||void 0===_||null===(t=_.market)||void 0===t?void 0:t.pronouns)||[],j=(0,i.useState)(!1),O=j[0],w=j[1],E=(0,i.useCallback)((function(){if(!O){var e=[H.xx,H.s2,H.iw];y.getFieldValue(H.RH)&&e.push(H.fp),e.every((function(e){return!!y.getFieldValue(e)}))&&(w(!0),(0,U.Z)({checkoutStepId:2}))}}),[y,O]);(0,I.Z)((function(){E()}));var P=(0,i.useState)(!1),R=P[0],S=P[1],N=se((0,M.y1)((function(e){var t=e.changedValues,n=e.allValues;h&&(h(n),Ob
1ject.keys(Object.values(t)[0]).includes("instructions")&&S(!0))}),2e3),1)[0],q=(0,i.useCallback)((function(e,t){S(!1),N({changedValues:e,allValues:t})}),[N]),Z=l.name,k={profile:l,extendedInstructionsProduct:c,extendedInstructionsActive:m,toggleExtendedInstructions:d,profileProduct:f,showSavedIndicator:R,form:y,productType:n,isMarketingProduct:"VIDEO_REQUEST_BUSINESS"===n};return(0,r.jsxs)(C.Z,{form:y,onFinish:o,onFinishFailed:function(e){var t=e.errorFields;y.scrollToField(t[0].name)},className:X().form,initialValues:s,layout:"vertical",autoComplete:"off",hideRequiredMark:!0,"data-cy":"bareRequestForm",onFieldsChange:E,onValuesChange:q,children:[(0,r.jsx)("br",{}),a?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(K.Z,{}),(0,r.jsx)(G.Z,{})]}):(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(W.Z,{}),(0,r.jsx)(Q.Z,{}),(0,r.jsx)(C.Z.Item,{noStyle:!0,shouldUpdate:!0,children:function(e){var t=e.getFieldValue,n=e.setFieldsValue;return(0,r.jsx)(C.Z.Item,{name:H.d,children:(0,r.jsx)(Y.Z,{pronouns:x,onChange:n,selected:t(H.d)})})}}),(0,r.jsx)(C.Z.Item,{noStyle:!0,shouldUpdate:!0,children:function(e){var t=e.getFieldValue,n=e.setFieldsValue;return t(H.RH)?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(te.Z,{}),(0,r.jsx)(C.Z.Item,{name:H.IL,children:(0,r.jsx)(Y.Z,{pronouns:x,onChange:n,selected:t(H.IL)})})]}):null}})]}),(0,r.jsx)(T.Z,{children:a?(0,r.jsxs)(r.Fragment,{children:[g("VideoRequestForm.marketingUsage","Marketing Usage"),(0,r.jsx)(z.Z,{hideTitle:!0,hideSubTitle:!0,productType:n,isMarketingRequest:!0,profileName:Z},"occasions")]}):(0,r.jsx)(re.Z,{label:a?g("VideoRequestForm.marketingUsage","Marketing Usage"):g("VideoRequestForm.occasion","Occasion"),productType:n})}),(0,r.jsx)("br",{}),(0,r.jsx)(ne.Z,ae({},k)),a?(0,r.jsx)(C.Z.Item,{name:["VIDEO_REQUEST","details"],rules:[{max:v,message:g("VideoRequestForm.detailsTooLong","Your details are too long - keep it to below {{count}} characters",{count:v}),validateTrigger:"onChange"}],children:(0,r.jsx)(ee.Z,{profileName:Z,maxDetailsCount:v})}):(0,r.jsx)(C.Z.Item,{name:["VIDEO_REQUEST","videoPrivateByCustomer"],valuePropName:"checked",children:(0,r.jsx)(A.Z,{"data-cy":"videoPrivateByCustomerCheckbox",children:g("VideoRequestForm.unlistedCheckboxText","Private video - do not list it on memmo")})}),a&&(0,r.jsx)(J.Z,{}),u]})},ue=n(31811),ce=n(57253);function de(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function me(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function fe(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){me(o,r,i,a,s,"next",e)}function s(e){me(o,r,i,a,s,"throw",e)}a(void 0)}))}}function pe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return de(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return de(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function he(){var e,t,n=(e=["\n  mutation CustomerEditRequest(\n    $marketId: ID!\n    $id: ID!\n    $input: CustomerEditVideoRequestInput!\n  ) {\n    market(id: $marketId) {\n      editRequest(id: $id, input: $input) {\n        result\n        errors {\n          identifier\n          message\n          field\n        }\n        request {\n          id\n          fromName\n          toName\n          instructions\n          details\n          isGift\n          videoPrivateByCustomer\n          requestOccasionId\n          customRequestOccasion\n        }\n        publicRequest {\n          id\n          fromName\n          toName\n          instructions\n          details\n          isGift\n          videoPrivateByCustomer\n          requestOccasionId\n          customRequestOccasion\n          requestOccasion {\n            id\n            title\n          }\n        }\n      }\n    }\n  }\n"],t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}})));return he=function(){return n},n}var ve=(0,ue.Ps)(he()),ge=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,F.VR)(),n=pe((0,ce.D)(ve,e),2),r=n[0],i=n[1].loading,o=function(){var e=fe(Z().mark((function e(n){var i,o,a,s;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=n.id,o=n.input,i){e.next=4;break}throw new Error("id is required");case 4:if(o){e.next=6;break}throw new Error("input is required");case 6:return e.next=8,r({variables:{marketId:t,id:i,input:o}});case 8:return s=e.sent.data,e.abrupt("return",null===s||void 0===s||null===(a=s.market)||void 0===a?void 0:a.editRequest);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return[o,{loading:i}]};function ye(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function be(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _e(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ie(e,t,n[t])}))}return e}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return ye(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ye(e,t)}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var je=function(e){var t,n=e.productType,i=e.videoRequest,o=e.profile,a=e.showEditDisclaimer,s=(0,p.useTranslation)().t,l=xe(ge(),2),c=l[0],d=l[1].loading,m=function(){var e,t=(e=Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D.k.info("Received values of form: ",t),e.next=3,c({id:i.id,input:t.VIDEO_REQUEST});case 3:(n=e.sent)&&"SUCCESS"===n.result?k.Z.success(s("EditVideoRequest.successMessage","Your changes was saved")):k.Z.error(s("EditVideoRequest.errorMessage","Something went wrong - please contact support"));case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){be(o,r,i,a,s,"next",e)}function s(e){be(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),f=(0,r.jsxs)(r.Fragment,{children:[a&&(0,r.jsx)(u.Z,{style:{marginBottom:16},type:"warning",message:s("EditVideoRequest.editVideoRequestDisclaimer","The profile might already be about to record your video - we can never guarantee that these changes will make it into the final video.")}),(0,r.jsx)(C.Z.Item,{children:(0,r.jsx)(h.Z,{htmlType:"submit",size:"large",block:!0,loading:d,disabled:d,"data-cy":"updateSubmitButton",children:s("EditVideoRequest.save","Update")})})]});return(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(le,{onFinish:m,isBusinessRequest:i.videoRequestTags.some((function(e){return"BUSINESS"===e.id})),productType:n,initialValues:{VIDEO_REQUEST:_e({},i,{requestOccasionId:null===(t=i.requestOccasion)||void 0===t?void 0:t.id})},profile:o,footer:f,extendedInstructionsActive:i.videoRequestTags.some((function(e){return"EXTENDED_INSTRUCTIONS"===e.id}))})})},Oe=n(84825),we=n.n(Oe);var Ee=function(e){var t,n,o,a=e.productType,s=e.videoRequest,l=e.hideEdit,u=e.showEditDisclaimer,c=(0,_.Z)().queryParams,m=(0,i.useState)(c.includes("edit")||!1),h=m[0],v=m[1],g=(0,p.useTranslation)().t,y=s.requestType,b=s.fromName,I=s.toName,j=s.instructions,O=s.isGift,w=s.requestOccasion,E=s.details;return(0,r.jsxs)("div",{className:f()(we().videoRequestItem,(t={},n=we().videoRequestItemEditing,o=h,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t)),children:[!h&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(x.Z,{column:1,size:"small",children:["VIDEO_BUSINESS"===y&&(0,r.jsx)(x.Z.Item,{label:g("VideoRequestItem.companyNameLabel","Company name"),children:I}),"VIDEO_BUSINESS"!==y&&(0,r.jsx)(x.Z.Item,{label:g("VideoRequestItem.toLabel","To"),children:(0,r.jsx)("div",{"data-cs-mask":!0,"data-cy":"listedToName",children:I})}),"VIDEO_BUSINESS"!==y&&O&&(0,r.jsx)(x.Z.Item,{label:g("VideoRequestItem.fromLabel","From"),children:(0,r.jsx)("div",{"data-cs-mask":!0,"data-cy":"listedFromName",children:b})}),w&&(0,r.jsx)(x.Z.Item,{label:g("VideoRequestItem.occasionLabel","Occasion"),children:w.title}),"VIDEO_BUSINESS"!==y&&(0,r.jsx)(x.Z.Item,{label:g("VideoRequestItem.isGiftLabel","Gift?"),children:O?g("VideoRequestItem.isGift","Yes"):g("VideoRequestItem.isNotGift","No")}),(0,r.jsx)(x.Z.Item,{label:g("VideoRequestItem.instructionsLabel","Instructions"),children:(0,r.jsx)("div",{"data-cs-mask":!0,"data-cy":"listedInstructions",children:j})}),(0,r.jsx)(x.Z.Item,{label:g("VideoRequestItem.detailsLabel","Details"),style:{paddingBottom:0},children:(0,r.jsx)("div",{"data-cs-mask":!0,"data-cy":"listedDetails",children:E})})]})}),!l&&(0,r.jsx)(d.Z,{type:"link","data-cy":"editRequestLink",icon:h?(0,r.jsx)(S.Z,{}):(0,r.jsx)(N.Z,{}),onClick:function(){return v(!h)},className:we().editLink,children:h?g("VideoRequestItem.close","Close"):g("VideoRequestItem.edit","Edit")}),h&&(0,r.jsx)(r.Fragment,{children:(0,r.jsx)(je,{productType:a,videoRequest:s,profile:s.publicProfile,showEditDisclaimer:u})})]})},Pe=n(93492),Re=n(20462);function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ne(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function qe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){qe(e,t,n[t])}))}return e}function ke(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(l){s=!0,i=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(e,t)}
1(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Ce=function(e){var t,n,o=e.videoRequest,a=e.profile,s=e.showEditDisclaimer,l=(0,p.useTranslation)().t,c=ke(C.Z.useForm(),1)[0],d=ke(ge(),2),m=d[0],v=d[1].loading,g=(0,F.VR)(),y=(0,V.a)(L(),{variables:{marketId:g}}).data,b=(null===y||void 0===y||null===(t=y.market)||void 0===t?void 0:t.pronouns)||[],_=(0,i.useState)(!1),x=_[0],j=_[1],O=function(){var e,t=(e=Z().mark((function e(t){var n;return Z().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return D.k.info("Received values of form: ",t),e.next=3,m({id:o.id,input:t.VIDEO_REQUEST});case 3:(n=e.sent)&&"SUCCESS"===n.result?k.Z.success(l("EditVideoRequest.successMessage","Your changes was saved")):k.Z.error(l("EditVideoRequest.errorMessage","Something went wrong - please contact support"));case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Ne(o,r,i,a,s,"next",e)}function s(e){Ne(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}(),w=(0,i.useCallback)((function(){if(!x){var e=[H.xx,H.s2,H.iw];c.getFieldValue(H.RH)&&e.push(H.fp),e.every((function(e){return!!c.getFieldValue(e)}))&&(j(!0),(0,Pe.p8)())}}),[c,x]);return(0,I.Z)((function(){w()})),(0,r.jsxs)(C.Z,{form:c,onFinish:O,onFinishFailed:function(e){var t=e.errorFields;c.scrollToField(t[0].name)},className:f()(X().form,X().mobileEdit),initialValues:{VIDEO_REQUEST:Ze({},o,{requestOccasionId:null===(n=o.requestOccasion)||void 0===n?void 0:n.id})},layout:"vertical",autoComplete:"off",hideRequiredMark:!0,"data-cy":"bareRequestForm",onFieldsChange:w,children:[(0,r.jsx)(z.Z,{profileName:a.name}),(0,r.jsx)(Re.ZP,{profile:a,extendedInstructionsActive:o.videoRequestTags.some((function(e){return"EXTENDED_INSTRUCTIONS"===e.id})),pronouns:b,form:c}),s&&(0,r.jsx)(u.Z,{style:{marginBottom:16},type:"warning",message:l("EditVideoRequest.editVideoRequestDisclaimer","The profile might already be about to record your video - we can never guarantee that these changes will make it into the final video.")}),(0,r.jsx)("div",{className:"updateCtaButtonWrapper",children:(0,r.jsx)(C.Z.Item,{children:(0,r.jsx)(h.Z,{htmlType:"submit",size:"large",block:!0,loading:v,disabled:v,"data-cy":"updateSubmitButton",children:l("EditVideoRequest.save","Update")})})})]})};var De=function(e){var t=e.videoRequest,n=e.hideEdit,o=e.showEditDisclaimer,a=(0,_.Z)().queryParams,s=(0,i.useState)(a.includes("edit")||!1),l=s[0],u=s[1];(0,I.Z)((function(){window.sessionStorage.setItem("hasWrittenInstruction",JSON.stringify(!0))}));var c,m,h,v=(0,p.useTranslation)().t,g=t.requestType,y=t.fromName,b=t.toName,j=t.instructions,O=t.isGift,w=t.requestOccasion;return(0,r.jsxs)("div",{className:f()(we().videoRequestItem,(c={},m=we().videoRequestItemEditing,h=l,m in c?Object.defineProperty(c,m,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[m]=h,c)),children:[!l&&(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(x.Z,{column:1,size:"small",children:["VIDEO_BUSINESS"===g&&(0,r.jsx)(x.Z.Item,{label:v("VideoRequestItem.companyNameLabel","Company name"),children:b}),"VIDEO_BUSINESS"!==g&&(0,r.jsx)(x.Z.Item,{label:v("VideoRequestItem.toLabel","To"),children:(0,r.jsx)("div",{"data-cs-mask":!0,"data-cy":"listedToName",children:b})}),"VIDEO_BUSINESS"!==g&&O&&(0,r.jsx)(x.Z.Item,{label:v("VideoRequestItem.fromLabel","From"),children:(0,r.jsx)("div",{"data-cs-mask":!0,"data-cy":"listedFromName",children:y})}),w&&(0,r.jsx)(x.Z.Item,{label:v("VideoRequestItem.occasionLabel","Occasion"),children:(0,r.jsx)("div",{"data-cs-mask":!0,"data-cy":"listedOccasion",children:w.title})}),"VIDEO_BUSINESS"!==g&&(0,r.jsx)(x.Z.Item,{label:v("VideoRequestItem.isGiftLabel","Gift?"),children:O?v("VideoRequestItem.isGift","Yes"):v("VideoRequestItem.isNotGift","No")}),(0,r.jsx)(x.Z.Item,{label:v("VideoRequestItem.instructionsLabel","Instructions"),style:{paddingBottom:0},children:(0,r.jsx)("div",{"data-cs-mask":!0,"data-cy":"listedInstructions",children:j})})]})}),!n&&(0,r.jsx)(d.Z,{type:"link","data-cy":"editRequestLink",icon:l?(0,r.jsx)(S.Z,{}):(0,r.jsx)(N.Z,{}),onClick:function(){return u(!l)},className:we().editLink,children:l?v("VideoRequestItem.close","Close"):v("VideoRequestItem.edit","Edit")}),l&&(0,r.jsx)(Ce,{videoRequest:t,profile:t.publicProfile,showEditDisclaimer:o})]})};function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ve(e,t,n[t])}))}return e}var Ae=function(e){var t,n,i=e.hideEdit,s=e.profile,l=e.item,m=e.showDetail
1s,f=e.onToggleDetails,b=e.cancelReason,I=e.profileCanceled,_=void 0===I?"":I,x=e.videoRequest,j=void 0===x?{}:x,w=(0,p.useTranslation)().t;if(!s)return null;b&&(n=_?"EXPIRED"===b?w("OrderItemProfileInfo.expired","Your order expired."):w("OrderItemProfileInfo.canceled","Your order was canceled."):w("OrderItemProfileInfo.profileCanceled","Reason: {{profileCanceled}}",{profileCanceled:_}));var E=l.productType,P=l.donation,R="DONATION"===E&&!(null===P||void 0===P||null===(t=P.data)||void 0===t?void 0:t.fromName);return(0,r.jsxs)(r.Fragment,{children:[n&&(0,r.jsx)(u.Z,{className:O().requestCanceled,message:(0,r.jsxs)("div",{className:O().requestNewOrder,children:[n,(0,r.jsx)("div",{className:O().requestButton,children:(0,r.jsx)(g.Z,{href:"/profile/".concat(s.slug,"/product/video-greeting?edit=true"),children:(0,r.jsx)(h.Z,{onClick:function(){window.sessionStorage.setItem("videoRequestFormData",JSON.stringify({values:{VIDEO_REQUEST:Te({},j)}}))},size:"small",children:w("OrderItemProfileInfo.requestNewOrder","Request again")})})})]}),type:"warning"}),(0,r.jsx)("div",{className:O().profileInfo,children:(0,r.jsxs)(c.Z,{align:"center",size:20,style:{marginBottom:20},children:[(0,r.jsx)(y.Z,{profile:s,style:{width:48,height:48,objectFit:"cover",objectPosition:"top center",borderRadius:"50%"}}),(0,r.jsxs)("div",{children:[(0,r.jsx)(v.Z,{level:"h4",style:{marginBottom:"0"},children:(0,r.jsx)("h3",{className:O().profileName,children:s.name})}),(0,r.jsx)(d.Z,{onClick:f,type:"link",size:"small",className:O().toggleDetailsButton,"data-cy":"toggleDetailsButton",hidden:R,children:m?(0,r.jsxs)(r.Fragment,{children:[w("OrderItemProfileInfo.hideDetails","Hide details")," ",(0,r.jsx)(o.Z,{})]}):(0,r.jsxs)(r.Fragment,{children:[i||["GENERIC_PRODUCT","DONATION"].includes(E)?w("OrderItemProfileInfo.showDetail
1s","Show"):w("OrderItemProfileInfo.showAndEditDetails","Show / Edit")," ",(0,r.jsx)(a.Z,{})]})})]})]})})]})};function Be(e){var t=e.text;return(0,r.jsx)("div",{className:O().lineItemLabel,children:t})}var Le=function(e){var t,n=e.item,o=e.order,a=e.hideEdit,u=e.showEditDisclaimer,c=e.showDeliveryStatus,d=e.noTopMargin,m=void 0!==d&&d,h=(0,p.useTranslation)().t,v=(0,i.useState)(!1),g=v[0],y=v[1],x=n.priceIncVat,j=n.originalPriceIncVat,S=n.videoRequest,N=n.genericProductRequest,q=n.donation,Z=n.productType,k=n.orderItemChildren,C=void 0===k?[]:k,D=null!==S&&void 0!==S?S:{},V=D.cancelReason,T=D.profileCancelReason,A=(0,_.Z)().queryParams.includes("edit");(0,I.Z)((function(){A&&y(!0)}));var B={productType:Z,videoRequest:S,hideEdit:a,showEditDisclaimer:u};return(0,r.jsxs)("div",{className:f()(Ve({},O().wrap,!m)),"data-cy":"orderItems",children:[(0,r.jsx)(Ae,{profile:null===(t=n.profileProduct)||void 0===t?void 0:t.profile,item:n,onToggleDetails:function(){return y(!g)},showDetails:g,hideEdit:a,cancelReason:V,profileCanceled:T,videoRequest:S}),g&&(0,r.jsxs)("div",{className:O().itemDesc,children:["VIDEO_REQUEST"===Z&&(0,r.jsx)(De,Te({},B)),"VIDEO_REQUEST_BUSINESS"===Z&&(0,r.jsx)(Ee,Te({},B)),"GENERIC_PRODUCT"===Z&&(0,r.jsx)(E,{genericProductRequest:N}),"DONATION"===Z&&(0,r.jsx)(w,{donation:q})]}),(0,r.jsx)(P,{title:(0,r.jsx)(Be,{text:h("OrderItem.productLabel","Product")}),amount:(0,r.jsx)(Be,{text:h("OrderItem.priceLabel","Price")})}),(0,r.jsx)(P,{productType:n.productType,title:n.product.name,originalAmount:j.formattedValue,amount:x.formattedValue}),C.length>0&&C.map((function(e){return(0,r.jsx)(P,{productType:e.productType,title:e.product.name,originalAmount:e.originalPriceIncVat.formattedValue,amount:e.priceIncVat.formattedValue},e.id)})),c&&!["GENERIC_PRODUCT","DONATION"].includes(Z)&&(0,r.jsxs)("div",{className:O().showAndEditCTAContainer,children:[(0,r.jsx)(R,{orderId:o.id,icon:(0,r.jsx)(l.G,{icon:s.sqG,className:O().ctaIcon}),itemId:n.id}),(0,r.jsx)(R,{orderId:o.id,icon:(0,r.jsx)(b.U3,{height:13,className:O().ctaIcon}),itemId:n.id,isEdit:!0})]})]})},Fe=function(e){var t=e.items,n=e.order,i=e.hideEdit,o=e.showDeliveryStatus,a=e.noTopMargin,s=e.showEditDisclaimer;return(0,r.jsx)(r.Fragment,{children:t.map((function(e){return(0,r.jsx)(Le,{item:e,order:n,hideEdit:i,showDeliveryStatus:o,noTopMargin:a,showEditDisclaimer:s},e.id)}))})}},60315:function(e,t,n){"use strict";n.d(t,{Z:function(){return N}});var r=n(24246),i=(n(27378),n(70337)),o=n(38579),a=n.n(o),s=n(99446),l=n(35166),u=n(14050),c=n(37942),d=n.n(c),m=n(59911),f=n.n(m),p=n(26025),h=n.n(p),v=n(74634),g=n.n(v),y=n(79493),b=n.n(y),I=n(45680),_=n.n(I),x=n(95995),j=n.n(x),O=n(80506),w=n.n(O),E=n(47935),P=n.n(E);function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){R(e,t,n[t])}))}return e}function N(e){var t=e.style,n=void 0===t?{}:t,o=e.iconSize,c=void 0===o?60:o,m=(0,i.useTranslation)().t,p=(0,u.Z)().code,v={de:d(),en:f(),fi:h(),sv:g()},y={de:b(),en:_(),fi:j(),sv:w()},I=v[p]||f(),x=y[p]||_();return(0,r.jsx)(l.Z,{children:(0,r.jsxs)("div",{style:S({display:"flex",flexFlow:"row wrap",justifyContent:"center",margin:"50px auto 0"},n),children:[!s.Dt&&(0,r.jsx)("a",{href:"https://apps.apple.com/se/app/memmo/id1485545968",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("div",{className:P().downloadImageContainer,style:{height:c,width:3*c},children:(0,r.jsx)(a(),{src:I,alt:m("DownloadProfileAppButtons.downloadOnAppStore","Get memmo on AppStore"),layout:"fill"})})}),!s.gn&&(0,r.jsx)("a",{href:"https://play.google.com/store/apps/details?id=com.memmo",target:"_blank",rel:"noopener noreferrer",children:(0,r.jsx)("div",{className:P().downloadImageContainer,style:{height:c,width:3*c},children:(0,r.jsx)(a(),{src:x,alt:m("DownloadProfileAppButtons.downloadOnGooglePlayStore","Get memmo on Google Play Store."),layout:"fill"})})})]})})}},44454:function(e,t,n){"use strict";var r=n(24246),i=(n(27378),n(60042)),o=n.n(i),a=n(9176),s=n.n(a);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=function(e){var t,n=e.children,i=e.level,a=void 0===i?"":i,u=e.noM
1argin,c=void 0!==u&&u,d=e.uppercase,m=void 0!==d&&d,f=e.centered,p=void 0!==f&&f,h=e.color,v=void 0===h?"dark":h,g=e.style,y=void 0===g?{}:g,b=e.className;return(0,r.jsx)("header",{style:y,className:o()(b,s().heading,(t={},l(t,s()["level-".concat(a)],a),l(t,s()["color-".concat(v)],v),l(t,s().uppercase,m),l(t,s().noMargin,c),l(t,s().centered,p),t)),children:n})}},99998:function(e,t,n){"use strict";var r=n(24246),i=(n(27378),n(60042)),o=n.n(i),a=n(6750),s=n(20657),l=n(47867),u=n(35166),c=n(23494),d=n(57110),m=n(55522),f=n(50812),p=n(86190),h=n(40461),v=n(66193),g=n(37871),y=n.n(g);function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=function(e){var t,n=e.hideSearchButton,i=void 0!==n&&n,g=e.logoVariant,I=void 0===g?void 0:g,_=e.headerBorder,x=void 0!==_&&_,j=e.redBackground,O=void 0!==j&&j,w=e.greyBackground,E=void 0!==w&&w,P=e.darkContent,R=void 0!==P&&P,S=(0,p.Z)().isMobile,N=!(0,f.Z)().nakedPath;return I||(I=R?"dark":"light"),(0,r.jsxs)("div",{className:o()(y().base,(t={},b(t,y().headerBorder,x),b(t,y().baseRedBackground,O),b(t,y().headerWithBanner,N),b(t,y().greyBackground,E),t)),"data-cy":"navigationBar",children:[N&&(0,r.jsx)(d.Z,{}),(0,r.jsx)(m.Z,{className:y().wrapper,children:(0,r.jsx)("div",{className:y().innerWrapper,children:(0,r.jsxs)("nav",{className:y().topNav,children:[(0,r.jsx)(c.Z,{dark:R}),(0,r.jsx)("div",{className:y().logoContainer,children:(0,r.jsx)(s.Z,{size:S?"sm":"md",variant:I})}),(0,r.jsxs)("div",{className:y().topNavFunctions,children:[!i&&(0,r.jsx)(v.Z,{dark:R}),(0,r.jsx)(h.Z,{dark:R}),(0,r.jsx)(l.Z,{}),(0,r.jsx)(u.Z,{children:(0,r.jsx)(a.Z,{dark:R})})]})]})})})]})}},44225:function(e,t,n){"use strict";var r=n(24246),i=n(27378),o=n(19374),a=n(92739),s=n(66363),l=n(20550),u=n(56266),c=n(86031),d=n(76776),m=n(70337),f=n(55031),p=n(97623),h=n.n(p);function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var y=s.Z.Panel;function b(e){var t=e.status,n=(0,m.useTranslation)().t,i={CANCELED:n("OrderStatusTag.CANCELED","Canceled"),COMPLETED:n("OrderStatusTag.COMPLETED","Delivered"),CONFIRMED:n("OrderStatusTag.CONFIRMED","Pending"),DELIVERED:n("OrderStatusTag.DELIVERED","Delivered"),EXPIRED:n("OrderStatusTag.EXPIRED","Expired")};return(0,r.jsx)(l.Z,{color:{CANCELED:"red",COMPLETED:"green",CONFIRMED:"orange",DELIVERED:"orange",EXPIRED:"orange"}[t],children:i[t]||t})}t.Z=function(e){var t,n,s=e.order,l=g(e,["order"]),p=(0,m.useTranslation)().t,I=(0,c.c)().market.selectedMarket.dateTimeFormat,_=s.id,x=s.status,j=s.items,O=s.confirmedAt,w=s.shortId,E=s.invoicePdfUrl,P=(0,r.jsxs)("span",{className:h().panelHeader,children:[(0,r.jsx)("small",{className:h().orderId,children:w}),O&&(0,r.jsx)("small",{children:(0,d.Z)(O).format(I)})]}),R=null!==(n=null===s||void 0===s||null===(t=s.items)||void 0===t?void 0:t.filter((function(e){var t;return null===(t=e.videoRequest)||void 0===t?void 0:t.cancelReason})))&&void 0!==n?n:"",S=(0,r.jsx)(b,{status:"EXPIRED"===R?"EXPIRED":x}),N="CANCELED"===x;return(0,i.createElement)(y,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){v(e,t,n[t])}))}return e}({},l,{key:_,header:P,extra:S,children:[(0,r.jsx)("header",{children:(0,r.jsx)(u.Z,{title:E?null:p("OrderPanel.receiptNotDone","A receipt will be generated once the order is paid"),children:(0,r.jsx)("span",{children:(0,r.jsxs)("a",{href:E,target:"_blank",rel:"noopener noreferrer",className:h().receiptLink,disabled:!E,children:[(0,r.jsx)(a.G,{icon:o.dLy})," ",p("OrderPanel.receiptLink","Download receipt")]})})})}),(0,r.jsx)(f.Z,{order:s,items:j,hideEdit:!0,showDeliveryStatus:!N})]}))}},29984:function(e,t,n){"use strict";var r=n(24246),i=(n(27378),n(46516)),o=n.n(i);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function l(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}t.Z=function(e){var t=e.profile,n=e.style,i=l(e,["profile","style"]),a=t.profilePicture,u=t.name;return(0,r.jsx)("img",s({style:s({background:a&&"rgb(".concat(a.meanBackgroun
1dColorHex,")"),borderRadius:8},n),src:a?a.cardUrl:o(),alt:u},i))}},15241:function(e,t,n){"use strict";var r=n(24246),i=(n(27378),n(99914)),o=n(12227),a=n(77207),s=n.n(a);t.Z=function(e){var t=e.color,n=void 0===t?"":t,a=e.style,l=void 0===a?{}:a,u=e.height,c=void 0===u?14:u,d=e.centered,m=void 0!==d&&d;return(0,r.jsx)(i.Z,{condition:m,wrapper:function(e){return(0,r.jsx)("div",{className:s().wrapper,children:e})},children:(0,r.jsx)(o.xS,{className:s().spinIcon,height:c,color:n,style:l})})}},98827:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(57173),i=n(21175);function o(e){return(0,i.isServer)()?{initialApolloState:(0,r.in)(e).cache.extract()}:{}}},81719:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var r=n(31771),i=n(59095),o=n(35230),a=n.n(o),s=n(38527);function l(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){u(e,t,n[t])}))}return e}var d=function(){var e,t=(e=a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.resolve().then(n.bind(n,93398));case 2:(0,e.sent.loggedOut)(c({},(0,s.Z)()));case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,s,"next",e)}function s(e){l(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}(),m=d,f=n(76616);function p(){var e=(0,f.Z)(),t=(0,r.a)(),n=t.currentUser,o=t.setLoginEmailPrefill,a=t.isAuthenticated;return[function(){a&&(0,i.cl)("token"),o(null===n||void 0===n?void 0:n.email),m(),e.push("/")}]}},93178:function(e,t,n){"use strict";n.d(t,{Qg:function(){return f},ZP:function(){return h}});var r=n(31811),i=n(2779),o=n(87313);function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){a(e,t,n[t])}))}return e}function l(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function u(){var e=l(["\n  fragment fullPublicOrderItem on PublicOrderItem {\n    ...partialPublicOrderItem\n    orderItemChildren {\n      ...partialPublicOrderItem\n    }\n\n    totalOriginalPriceIncVat {\n      currency\n      valueWithDecimals\n      valueInCent\n      formattedValue\n    }\n\n    totalPriceExVat {\n      currency\n      valueWithDecimals\n      valueInCent\n      formattedValue\n    }\n\n    totalPriceIncVat {\n      currency\n      valueWithDecimals\n      valueInCent\n      formattedValue\n    }\n\n    videoRequest {\n      id\n      shortId\n      requestType\n      fromName\n      fromPronoun\n      status\n      toName\n      toPronoun\n      instructions\n      details\n      isGift\n      videoPrivateByCustomer\n      expiresAt\n      cancelReason\n      profileCancelReason\n      profileCancelTags\n      businessWebsite\n      businessName\n      requestOccasion {\n        id\n        internalName\n        title\n      }\n      publicProfile {\n        id\n        name\n        slug\n      }\n      product {\n        id\n        slug\n      }\n      videoRequestTags {\n        id\n      }\n      customRequestOccasion\n    }\n\n    genericProductRequest {\n      data\n    }\n\n    donation {\n      data\n    }\n  }\n\n  fragment partialPublicOrderItem on PublicOrderItem {\n    id\n    currency\n    priceExVat {\n      currency\n      valueWithDecimals\n      valueInCent\n      formattedValue\n    }\n    priceIncVat {\n      currency\n      valueWithDecimals\n      valueInCent\n      formattedValue\n    }\n    originalPriceIncVat {\n      currency\n      valueWithDecimals\n      valueInCent\n      formattedValue\n    }\n    productType\n\n    profileProduct {\n      id\n      price {\n        currency\n        valueWithDecimals\n        valueInCent\n        formattedValue\n      }\n      product {\n        id\n        slug\n        productType\n        vatType\n        expirationTime\n      }\n      profile {\n        id\n        name\n        slug\n        title\n        profilePicture {\n          id\n          cardUrl: url(format: { width: 265, height: 458, fit: crop }
1)\n          meanBackgroundColorHex\n        }\n      }\n    }\n    product {\n      id\n      slug\n      expirationTime\n      name\n      vatType\n    }\n\n    smsDelivery {\n      id\n      phone\n      deliverAt\n      deliveredAt\n      status\n    }\n\n    emailDelivery {\n      id\n      email\n      deliverAt\n      deliveredAt\n      status\n    }\n  }\n"]);return u=function(){return e},e}function c(){var e=l(["\n  fragment fullPublicOrder on PublicOrder {\n    id\n    shortId\n    invoicePdfUrl\n    couponId\n    couponCode\n    couponDiscount {\n      currency\n      valueWithDecimals\n      valueInCent\n      formattedValue\n    }\n    items {\n      ...fullPublicOrderItem\n    }\n    status\n    externallyTracked\n    totalPriceIncVat {\n      currency\n      valueWithDecimals\n      valueInCent\n      formattedValue\n    }\n    originalTotalPriceIncVat {\n      currency\n      valueWithDecimals\n      valueInCent\n      formattedValue\n    }\n    hasB2BProduct\n    createdAt\n    updatedAt\n    confirmedAt\n    countryId\n    languageId\n    marketId\n\n    userId\n    customer {\n      lastPaymentMethod\n      orderCount\n    }\n    customerInfo {\n      id\n      email\n      phone\n      shippingAddressLine1\n      shippingAddressLine2\n      shippingAddressCity\n      shippingAddressZip\n      shippingAddressState\n      shippingAddressCountry\n      customerId\n      vatNo\n      businessType\n    }\n    payment {\n      id\n      paymentProvider {\n        id\n        name\n      }\n      paymentMethodId\n    }\n    memmoFriendCoupon {\n      code\n      expiresAt\n      discountPercentage\n    }\n    memmoRefererCoupon {\n      code\n      expiresAt\n      discountPercentage\n    }\n  }\n\n  ","\n"]);return c=function(){return e},e}function d(){var e=l(["\n  query GetOrder($marketId: ID!, $id: ID!) {\n    market(id: $marketId) {\n      id\n      order(id: $id) {\n        ...fullPublicOrder\n      }\n    }\n  }\n  ","\n"]);return d=function(){return e},e}var m=(0,r.Ps)(u()),f=(0,r.Ps)(c(),m),p=(0,r.Ps)(d(),f);function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,o.VR)(),r=(0,i.a)(p,s({variables:{id:e,marketId:n}},t)),a=r.loading,l=r.error,u=r.data,c=r.refetch,d=r.startPolling,m=r.stopPolling;return{loading:a,error:l,order:u&&u.market&&u.market.order,refetch:c,startPolling:d,stopPolling:m}}},75775:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(24246),i=(n(27378),n(66363)),o=n(98827),a=n(70337),s=n(17369),l=n(54945),u=n(6512),c=n(35166),d=n(44225),m=n(15241),f=n(93178),p=n(76616),h=function(e){var t=e.orderId,n=(0,f.ZP)(t),o=n.order,c=n.loading,p=n.error,h=(0,a.useTranslation)().t;if(p)return s.k.info(p),(0,r.jsx)(u.Z,{message:"Error loading order."});if(c)return(0,r.jsx)("div",{style:{textAlign:"center"},children:(0,r.jsx)(m.Z,{})});var v=[{href:"/account/orders",title:h("Account.breadcrumbOrders","Orders")},{href:"/account/orders/".concat(o.id),title:o.shortId}];return(0,r.jsx)(l.Z,{breadcrumbs:v,children:(0,r.jsx)(i.Z,{defaultActiveKey:["0"],children:(0,r.jsx)(d.Z,{order:o})})})};function v(){var e=(0,p.Z)().query.orderId;return(0,r.jsx)(c.Z,{children:(0,r.jsx)(h,{orderId:e})})}v.getInitialProps=o.Z},30329:function(e){e.exports={hasProfile:"AuthLayout_hasProfile__FhKTC",appButtons:"AuthLayout_appButtons__XsQB7",breadcrumbs:"AuthLayout_breadcrumbs__kazgs",menu:"AuthLayout_menu__f81Go",content:"AuthLayout_content__11ZID",main:"AuthLayout_main__W_wnY"}},70851:function(e){e.exports={menu:"AuthMenu_menu__4yF1U",menuItem:"AuthMenu_menuItem__PlZyn",icon:"AuthMenu_icon__6GoKS"}},60974:function(e){e.exports={wrap:"OrderItems_wrap__SVQPi",requestCanceled:"OrderItems_requestCanceled__MOlpV",requestNewOrder:"OrderItems_requestNewOrder__HhEPT",requestButton:"OrderItems_requestButton__Ke_jj",profileInfo:"OrderItems_profileInfo__UbAw7",showDeliveryStatusLink:"OrderItems_showDeliveryStatusLink__JS4TP",profileName:"OrderItems_profileName__tFHNL",toggleDetailsButton:"OrderItems_toggleDetailsButton___nW5y",videoRequestItem:"OrderItems_videoRequestItem__RxZkW",genericProductRequestItem:"OrderItems_genericProductRequestItem__Ewfmx",donationItem:"OrderItems_donationItem__FaKen",editLink:"OrderItems_editLink__0QwAk",lineItemLabel:"OrderItems_lineItemLabel__mbZUe",lineItem:"OrderItems_lineItem__MY1Eo",lineItemPrice:"OrderItems_lineItemPrice__Mdd6u",discounted:"OrderItems_discounted__T3xLM",originalAmount:"OrderItems_originalAmount__76cZf",showAndEditCTAContainer:"OrderItems_showAndEditCTAContainer__G14VZ",ctaButton:"OrderItems_ctaButton__r170_",ctaIcon:"OrderItems_ctaIcon__IunD2",ctaBorderColor:"OrderItems_ctaBorderColor__PeNIp"}},84825:function(e){e.exports={wrap:"VideoRequestOrderItems_wrap__toNFt",requestCanceled:"VideoRequestOrderItems_requestCanceled__EYLuw",requestNewOrder:"VideoRequestOrderItems_requestNewOrder__HZgRr",requestButton:"VideoRequestOrderItems_requestButton__PH0T9",profileInfo:"VideoRequestOrderItems_profileInfo__L3Lrk",showDeliveryStatusLink:"VideoRequestOrderItems_showDeliveryStatusLink__rvaru",profileName:"VideoRequestOrderItems_profileName__rGybF",toggleDetailsButton:"VideoRequestOrderItems_toggleDetailsButton__3A4o3",videoRequestItem:"VideoRequestOrderItems_videoRequestItem__SLil5",genericProductRequestItem:"VideoRequestOrderItems_genericProductRequestItem__3CiT9",donationItem:"VideoRequestOrderItems_donationItem__8qYGL",videoRequestItemEditing:"VideoRequestOrderItems_videoRequestItemEditing__wjjos",editLink:"VideoRequestOrderItems_editLink__geHAC",lineItemLabel:"VideoRequestOrderItems_lineItemLabel__kDo_c",lineItem:"VideoRequestOrderItems_lineItem__8qdFy",lineItemPrice:"VideoRequestOrderItems_lineItemPrice__tTO5w",discounted:"VideoRequestOrderItems_discounted__j5Iu2",originalAmount:"VideoRequestOrderItems_originalAmount__Y2Hl5",showAndEditCTAContainer:"VideoRequestOrderItems_showAndEditCTAContainer__ubqhu",ctaButton:"VideoRequestOrderItems_ctaButton__mnEw_",ctaIcon:"VideoRequestOrderItems_ctaIcon__rNQRC",ctaBorderColor:"VideoRequestOrderItems_ctaBorderColor__AB_jL"}},47935:function(e){e.exports={downloadImageContainer:"DownloadProfileAppButtons_downloadImageContainer___1IyO"}},9176:function(e){e.exports={heading:"Heading_heading__209rB",noMargin:"Heading_noMargin__Iyve9","color-dark":"Heading_color-dark__2vYXa","color-light":"Heading_color-light__3qmJM","color-gray":"Heading_color-gray__l43nY",uppercase:"Heading_uppercase__zdvNT",centered:"Heading_centered__JPCA8","level-h1":"Heading_level-h1__vmRVs","level-h2":"Heading_level-h2__uiFJO","level-h3":"Heading_level-h3__1DaZW","level-h4":"Heading_level-h4__uh_bg","level-h5":"Heading_level-h5__EG1wz"}},37871:function(e){e.exports={base:"NavigationBar_base__C_u4R",baseRedBackgroun
1d:"NavigationBar_baseRedBackground__Ufh7e",headerBorder:"NavigationBar_headerBorder__x9P0n",greyBackground:"NavigationBar_greyBackground__lcY_s",innerWrapper:"NavigationBar_innerWrapper__idWu_",topNav:"NavigationBar_topNav__XdULd",topNavFunctions:"NavigationBar_topNavFunctions__esLpl",headerWithBanner:"NavigationBar_headerWithBanner__8vU6t",logo:"NavigationBar_logo___I_eS",wrapper:"NavigationBar_wrapper__MD_0p",logoContainer:"NavigationBar_logoContainer__vPPTf"}},97623:function(e){e.exports={orderId:"OrderPanel_orderId__YWcjU",receiptLink:"OrderPanel_receiptLink__G7xJx"}},43369:function(e){e.exports={header:"PageHeader_header__0cxIC",nakedHeader:"PageHeader_nakedHeader__xW5Su",headerVideo:"PageHeader_headerVideo__l7PFp",video:"PageHeader_video__LXKmV"}},77207:function(e){e.exports={wrapper:"Spinner_wrapper__s_Rgx",spinIcon:"Spinner_spinIcon__GAUTY",spin:"Spinner_spin__C_oYT"}},46516:function(e){e.exports="/_next/static/images/placeholder-3f3427fc77bbbb9fed8e6c4721296db6.jpg"},37942:function(e){e.exports="/_next/static/images/appstore-de-65a85679b31a6c7b33f796a9490f429e.png"},59911:function(e){e.exports="/_next/static/images/appstore-en-d0765e61134d4302f1a264d00e66e5c1.png"},26025:function(e){e.exports="/_next/static/images/appstore-fi-4677a1326f34fa3390343c3bf7f107b1.png"},74634:function(e){e.exports="/_next/static/images/appstore-sv-46804844feb2aa901a77081bdbc7f31c.png"},79493:function(e){e.exports="/_next/static/images/googleplay-de-e4bed7fcc6673162633469732404b2b8.png"},45680:function(e){e.exports="/_next/static/images/googleplay-en-80c8652f0f54dc4977038cee06cf1113.png"},95995:function(e){e.exports="/_next/static/images/googleplay-fi-80c8652f0f54dc4977038cee06cf1113.png"},80506:function(e){e.exports="/_next/static/images/googleplay-sv-dd8b014c498fb89ae3a3e7bbbb1f34e0.png"}},function(e){e.O(0,[5555,4253,208,6266,8385,5023,9361,9677,9446,8128,6014,2353,1619,567,8415,213,1127,2591,6363,8492,3022,2737,7110,6503,9774,2888,179],(function(){return t=782,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
2//# sourceMappingURL=[orderId]-6d5ac4a1ea2751d2.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.