1"use strict"; 2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="a603a8ce-bd4c-569c-b7a2-a4a898fd56a7")}catch(e){}}(); 3(self.webpackChunkclient=self.webpackChunkclient||[]).push([["2490"],{95472(e,t,a){a.d(t,{N:()=>i});var n=a(99870),r=a.n(n),s=a(42062);let l={link:"commons-link__link",dark:"commons-link__dark",dotted:"commons-link__dotted",authorizationOverlay:"commons-link__authorizationOverlay",authorizationOverlayAccent:"commons-link__authorizationOverlayAccent",transparentDark:"commons-link__transparentDark",light:"commons-link__light",secondAccent:"commons-link__secondAccent",accent:"commons-link__accent",active:"commons-link__active",white:"commons-link__white"};var c=a(31085),o=["children","className","colorType","dotted"],i=(0,s.memo)(e=>{var{children:t,className:a,colorType:n="dark",dotted:i}=e,m=function(e,t){if(null==e)return{};var a={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;a[n]=e[n]}return a}(e,o),d=(0,s.useMemo)(()=>r()(l.link,l[n],{[l.dotted]:!!i},a),[a,n,i]);return(0,c.jsx)("a",Object.assign({className:d},m,{children:t}))})},57436(e,t,a){a.d(t,{TextLengthCounter:()=>o});var n=a(42062),r=a(99870),s=a.n(r),l=a(31085);let c=(0,n.memo)(e=>{var{valid:t,textLength:a,limit:r}=e,c=(0,n.useMemo)(()=>s()("text-length-counter__text-length",{"text-length-counter__text-length_valid":t}),[t]);return(0,l.jsxs)("div",{className:"text-length-counter",children:[(0,l.jsx)("span",{className:c,children:a}),"/",r]})});var o=(0,n.memo)(e=>{var{textLength:t,limit:a,inverted:r}=e,s=(0,n.useMemo)(()=>r?t<=a:t>=a,[t,a,r]);return(0,l.jsx)(c,Object.assign({},e,{valid:s}))})},57165(e,t,a){a.d(t,{T:()=>o});var n=a(42062),r=a(99870),s=a.n(r),l=a(31085),c=["onChange","disabledFocus","className"],o=(0,n.memo)(e=>{var{onChange:t,disabledFocus:a,className:r}=e,o=function(e,t){if(null==e)return{};var a={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(t.includes(n))continue;a[n]=e[n]}return a}(e,c),i=(0,n.useCallback)(e=>{null==t||t(e.target.value)},[t]),m=(0,n.useMemo)(()=>s()(r,"commons-textarea__textarea",{"commons-textarea__withFocus":!a}),[r,a]);return(0,l.jsx)("textarea",Object.assign({},o,{className:m,onChange:i}))})},7473(e,t,a){a.d(t,{AttachPresentsLetter:()=>f});var n=a(13462),r=a(66691),s=a(42062),l=a(31568),c=a(81924),o=a(57165),i=a(15782),m=a(57436),d=a(20345),h=a(95472),u=a(26672),x=a(43751),p=a(79760),v=a(78903),_=a(16116),k=a(92495),g=a(31085);let j=(0,s.memo)(e=>{var{onClick:t}=e,a=(0,_.Z)(k.zh.LteTablet);return(0,g.jsxs)("div",{className:"presents-attach-letter-warning__container",children:[(0,g.jsx)(v.Icon,{name:"information-outline",size:a?"normal":"large",className:"presents-attach-letter-warning__icon"}),(0,g.jsxs)("div",{children:[(0,g.jsx)(c.LocalizedText,{href:"/users/presents#attach-letter-warning",variant:"caption-2"}),(0,g.jsx)(h.N,{onClick:t,colorType:"secondAccent",dotted:!0,className:"presents-attach-letter-warning__link",children:(0,g.jsx)(c.LocalizedText,{href:"/users/presents#attach-letter-warning-learn-more",color:"second-accent",variant:"caption-2"})})]})]})});var b=(0,s.memo)(()=>{var e=(0,s.useCallback)(()=>{x.Y.shared().get(p.A,null).actions.open("terms-and-conditions#terms-and-conditions-1zp9optvzyon",[{props:{}}])},[]);return(0,g.jsx)(j,{onClick:e})});let N={wrapper:"presents-attach-letter__wrapper",bottom:"presents-attach-letter__bottom",buttons:"presents-attach-letter__buttons",textareaWrapper:"presents-attach-letter__textareaWrapper",description:"presents-attach-letter__description"},C=(0,s.memo)(e=>{var{textLength:t,maxTextLength:a,submitButtonIsDisabled:n,ownerName:r,deliveryDays:l,onCloseClick:x,onSubmitClick:p,onTextChange:v}=e,_=(0,i.A)("users/presents","attach-letter-textarea-placeholder"),k=(0,s.useMemo)(()=>({name:r,days:l?l.toString():""}),[r,l]),j=(0,s.useMemo)(()=>({name:r}),[r]),C=(0,i.A)("users/presents","attach-letter-button-text"),f=(0,i.A)("commons","cancel");return(0,g.jsxs)("div",{className:N.wrapper,children:[(0,g.jsx)(u.J,{onClick:x,className:N.closeButton}),(0,g.jsx)("div",{className:N.title,children:(0,g.jsx)(c.LocalizedText,{href:"/users/presents#attach-letter-title",variant:"h1"})}),(0,g.jsx)("div",{className:N.description,children:(0,g.jsx)(c.LocalizedText,{href:"/users/presents#attach-letter-description",data:k,variant:"body-2"})}),(0,g.jsxs)("div",{className:N.bottom,children:[(0,g.jsx)(c.LocalizedText,{href:"/users/presents#attach-letter-textarea-label",data:j,variant:"h3"}),(0,g.jsx)(b,{}),(0,g.jsx)("div",{className:N.textareaWrapper,children:(0,g.jsx)(o.T,{placeholder:_,onChange:v})}),(0,g.jsx)(m.TextLengthCounter,{textLength:t,limit:a,inverted:!0}),(0,g.jsxs)("div",{className:N.buttons,children:[(0,g.jsx)(d.$,{variant:"primary",onClick:p,title:C,disabled:n}),(0,g.jsx)(h.N,{onClick:x,colorType:"accent",children:f})]})]})]})});var f=e=>{var t,{recipientId:a,onClose:c,onSubmit:o}
3=e,[i,m]=(0,s.useState)(""),d=(0,r.J2)(()=>n.T.shared().presents.maxTextLength,[],0),h=(0,r.J2)(()=>n.T.shared().presents.deliveryDays,[],0),u=(null==(t=(0,l.sb)(a))?void 0:t.name)||"",x=(0,s.useCallback)(()=>{o(i)},[o,i]),p=0===i.length||i.length>d;return(0,g.jsx)(C,{textLength:i.length,maxTextLength:d,submitButtonIsDisabled:p,ownerName:u,deliveryDays:h,onCloseClick:c,onSubmitClick:x,onTextChange:m})}}}]); 4//# sourceMappingURL=sourcemaps/1d417fd6d3baf481.js.map 5//# debugId=a603a8ce-bd4c-569c-b7a2-a4a898fd56a7
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.